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,qt,x)=>new Promise((ge,ue)=>{var Q=G=>{try{ie(x.next(G))}catch(B){ue(B)}},Te=G=>{try{ie(x.throw(G))}catch(B){ue(B)}},ie=G=>G.done?ge(G.value):Promise.resolve(G.value).then(Q,Te);ie((x=x.apply(xn,qt)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[3247],{89489:function(xn,qt,x){"use strict";x.d(qt,{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,ie=x(7657),G=function(h,Z){return ue.createElement(ie.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},59477:function(xn,qt,x){"use strict";x.d(qt,{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,ie=x(7657),G=function(h,Z){return ue.createElement(ie.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},40001:function(xn,qt,x){"use strict";x.d(qt,{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,ie=x(7657),G=function(h,Z){return ue.createElement(ie.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},49198:function(xn,qt,x){"use strict";x.d(qt,{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,ie=x(7657),G=function(h,Z){return ue.createElement(ie.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},84105:function(xn,qt,x){"use strict";x.d(qt,{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,ie=x(7657),G=function(h,Z){return ue.createElement(ie.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},18785:function(xn,qt,x){"use strict";x.d(qt,{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,ie=x(7657),G=function(h,Z){return ue.createElement(ie.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},73331:function(xn,qt,x){"use strict";x.d(qt,{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,ie=x(7657),G=function(h,Z){return ue.createElement(ie.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},15277:function(xn,qt,x){"use strict";x.d(qt,{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,ie=x(7657),G=function(h,Z){return ue.createElement(ie.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},52671:function(xn,qt,x){"use strict";x.d(qt,{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,ie=x(7657),G=function(h,Z){return ue.createElement(ie.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},8657:function(xn,qt,x){"use strict";x.d(qt,{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,ie=x(7657),G=function(h,Z){return ue.createElement(ie.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},56082:function(xn,qt,x){"use strict";x.d(qt,{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,ie=x(7657),G=function(h,Z){return ue.createElement(ie.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},33853:function(xn,qt,x){"use strict";x.d(qt,{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,ie=x(7657),G=function(h,Z){return ue.createElement(ie.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},15075:function(xn,qt,x){"use strict";x.d(qt,{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,ie=x(7657),G=function(h,Z){return ue.createElement(ie.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},62772:function(xn,qt,x){"use strict";x.d(qt,{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,ie=x(7657),G=function(h,Z){return ue.createElement(ie.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},43531:function(xn,qt,x){"use strict";x.d(qt,{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,ie=x(7657),G=function(h,Z){return ue.createElement(ie.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},38819:function(xn,qt,x){"use strict";x.d(qt,{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,ie=x(7657),G=function(h,Z){return ue.createElement(ie.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},47472:function(xn,qt,x){"use strict";x.d(qt,{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,ie=x(7657),G=function(h,Z){return ue.createElement(ie.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},87395:function(xn,qt,x){"use strict";x.d(qt,{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,ie=x(7657),G=function(h,Z){return ue.createElement(ie.Z,(0,ge.Z)({},h,{ref:Z,icon:Te}))},B=ue.forwardRef(G),f=B},88010:function(xn,qt){"use strict";qt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},42678:function(xn,qt,x){"use strict";var ge=x(59301),ue=Object.defineProperty,Q=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,ie=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))ie.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"})));qt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},6021:function(xn,qt,x){"use strict";x.d(qt,{Z:function(){return O}});var ge=x(3113),ue=x(59301),Q=Object.defineProperty,Te=Object.defineProperties,ie=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,ie(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=z=>{try{W(Y.next(z))}catch(le){se(le)}},X=z=>{try{W(Y.throw(z))}catch(le){se(le)}},W=z=>z.done?K(z.value):Promise.resolve(z.value).then(te,X);W((Y=Y.apply(R,I)).next())});const O=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)}},59879:function(xn,qt,x){"use strict";var ge=x(59301),ue=x(88010),Q=x(48136),Te=x(41588),ie=x(43418),G=x(59301);const B=(0,ge.forwardRef)(({callback:f,width:E,onChange:h,disabled:Z,readOnly:S,type:_="",value:O="",style:R={}},I)=>{const Y=(0,ge.useRef)(),K=(0,ge.useRef)(),[se,te]=(0,ge.useState)(0),[X,W]=(0,ge.useState)(0),[z,le]=(0,ge.useState)(!1),he=()=>{var ee=document.createElement("div");ee.innerHTML=Y.current.getValue();var ce=ee.innerText;return f&&f(ce),ce};(0,ge.useImperativeHandle)(I,()=>({getData:he}));const Ne=ee=>{ee.preventDefault();const ce=ee.clientX-se,D=ee.clientY-X;document.body.onmousemove=ot=>{let Le=ot.clientX-ce,Ce=ot.clientY-D;const Re=document.getElementsByClassName("markdown-popup-form")[0],ve=window.innerWidth-Re.offsetWidth,Pe=window.innerHeight-Re.offsetHeight;Le=Math.max(0,Math.min(Le,ve)),Ce=Math.max(0,Math.min(Ce,Pe)),Be(ot.clientX,ot.clientY,ce,D)&&(te(Le),W(Ce))},document.body.onmouseup=function(){document.body.onmousemove=null}},Be=(ee,ce,D,ot)=>{const Le=document.body.clientHeight,Ce=document.body.clientWidth;return ee<20&&D>ee||ee>Ce-20&&D<ee||ce<20&&ot>ce||ce>Le-20&&ot<ce?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,ge.useEffect)(()=>{z&&setTimeout(()=>{const ee=document.getElementsByClassName("markdown-popup-form")[0],ce=window.innerWidth/2-ee.offsetWidth/2,D=window.innerHeight/2-ee.offsetHeight/2;te(ce),W(D)},0)},[z]);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:O?18:14},value:O||""})),G.createElement(ie.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:z,onOk:()=>{const ee=K.current.getData();Y.current.setValue(ee),h(ee),le(!1)},onCancel:()=>{le(!1)},destroyOnClose:!0,className:"markdown-popup-form"},G.createElement(Te.Z,{value:O,ref:K,onChange:h,showSaveButton:!1})))});qt.Z=B},41588:function(xn,qt,x){"use strict";var ge=x(59301),ue=x(95237),Q=x(43604),Te=x(99313),ie=x(3113),G=x(85149),B=x(88010),f=x(48136),E=x(59301);const h=(0,ge.forwardRef)(({callback:Z,showSaveButton:S,value:_=""},O)=>{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((z,le)=>E.createElement("div",{key:le},E.createElement("h1",null,z.name),E.createElement(ue.Z,{gutter:[10,10]},z.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((z,le)=>E.createElement("div",{key:le},z.name&&E.createElement("h1",null,z.name),E.createElement(ue.Z,{gutter:[10,10]},z.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)(O,()=>({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(ie.ZP,{size:"large",onClick:te,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});qt.Z=h},82438:function(xn,qt,x){"use strict";x.d(qt,{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==",ie="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 O=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(O,R);I((Z=Z.apply(E,h)).next())}),f=({type:E,resdata:h,onok:Z,oktext:S,okloading:_})=>{const[O,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:z,repeat_shixun_num:le,student_count:he,total_num:Ne,use_num:Be}=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 ee=()=>{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},Be),"\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},Be),"\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},Be),"\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},Be)," \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},Be),"\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},Be),"\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},Be),"\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:ie,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((D,ot)=>ge.createElement("a",{href:`/shixuns/${D.identifier}/challenges`,target:"_blank"},"\u300A",D==null?void 0:D.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((D,ot)=>ge.createElement("a",{href:`/shixuns/${D.identifier}/challenges`,target:"_blank"},"\u300A",D==null?void 0:D.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:O,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"}},ee(),ce()))}},78734:function(xn,qt,x){"use strict";x.d(qt,{B:function(){return E},F:function(){return f}});var ge=x(44164),ue=x.n(ge),Q=x(86129),Te=x.n(Q),ie=(h,Z,S)=>new Promise((_,O)=>{var R=K=>{try{Y(S.next(K))}catch(se){O(se)}},I=K=>{try{Y(S.throw(K))}catch(se){O(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)=>ie(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=>ie(void 0,null,function*(){R<h.length-1&&(yield I.addPage())}));const O=new(Te());O.file(`${Z}.pdf`,_.output("blob"),{base64:!1}),O.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)=>ie(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 O=0;O<h.length;O++)yield _.set(S).from(h[O]).toContainer().toCanvas().toPdf().get("pdf").then(R=>ie(void 0,null,function*(){O<h.length-1&&(yield R.addPage())}));_.save(`${Z}.pdf`)})},66415:function(xn,qt,x){"use strict";x.r(qt),x.d(qt,{default:function(){return rt}});var ge=x(59301),ue=x(89070),Q=x(92832),Te=x(8591),ie=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),O=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(91106),K=x(78734),se=x(80401),te=x(14165),X=x(78297),W=x(955),z=x(94941),le=x(85149),he=x(24334),Ne=x(10977),Be=x(59879),je=x(6021),ee=x(99064),ce=x(59301),D=Object.defineProperty,ot=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,Re=(At,Nt,jt)=>Nt in At?D(At,Nt,{enumerable:!0,configurable:!0,writable:!0,value:jt}):At[Nt]=jt,ve=(At,Nt)=>{for(var jt in Nt||(Nt={}))Le.call(Nt,jt)&&Re(At,jt,Nt[jt]);if(ot)for(var jt of ot(Nt))Ce.call(Nt,jt)&&Re(At,jt,Nt[jt]);return At},Pe=(At,Nt,jt)=>new Promise((Qt,ur)=>{var or=L=>{try{fr(jt.next(L))}catch(nt){ur(nt)}},xr=L=>{try{fr(jt.throw(L))}catch(nt){ur(nt)}},fr=L=>L.done?Qt(L.value):Promise.resolve(L.value).then(or,xr);fr((jt=jt.apply(At,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"],tt=({newExercisePaper:At,isExportBlank:Nt=!1,paperlibrary:jt,user:Qt,globalSetting:ur,loading:or,dispatch:xr})=>{var fr,L,nt,k,p,d,w,q,Se,H,ne,Ge,xe;const we=(0,ue.useLocation)(),Ye=(0,ue.useParams)(),[_t]=(0,ue.useSearchParams)(),[pe,ut]=(0,ge.useState)(),ct=(0,ge.useRef)(),[Ie,ke]=(0,ge.useState)(),[vt,zt]=(0,ge.useState)(),[Ut,ar]=(0,ge.useState)([]),[Ir,Pr]=(0,ge.useState)(!1),[Kr,Tr]=(0,ge.useState)(""),[cr,Ar]=(0,ge.useState)(!1),[zr,cn]=(0,ge.useState)(!1),Sn=_t.get("isIntelligentAssistant");(0,ge.useEffect)(()=>(xr({type:"globalSetting/footerToggle",payload:!1}),()=>{xr({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,ge.useEffect)(()=>{ct.current=Ye==null?void 0:Ye.id,ut(_t.get("defaultActiveKey")||"0"),Mr(),_n(),An()},[Ye==null?void 0:Ye.id]),(0,ge.useEffect)(()=>{var me;if((me=At.exerciseExportHeadData)!=null&&me.title){const Ue=At.exerciseExportHeadData;ke(ve({},Ue||{}));const{table:Me}=Ue||{};let st,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)&&(st=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 Kt=[{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:st},{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"}],Br=[{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:st},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}];zt([...Nt?Br:Kt])}},[At.exerciseExportHeadData]);const An=()=>Pe(void 0,null,function*(){var me;const Ue=yield(0,se.cV)({id:Ye.id});Ue.status==0&&ar(Ue.data),yield _n(),_t.get("exportPDF")&&((me=jt.paperData)!=null&&me.questionList)&&(Te.ZP.info("\u6B63\u5728\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377pdf"),(0,K.F)(zn.current.children,"\u5BFC\u51FA\u8BD5\u5377"))}),_n=()=>Pe(void 0,null,function*(){const me=yield(0,se.Dq)(Ye.id);ke(me||{});const{table:Ue}=me||{};let Me,st;(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)&&(st=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:st},{key:"3",name:"\u8BC4\u5377\u4EBA"}];return zt(Nt?[{key:"1",name:"\u5E94\u5F97\u5206"},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}]:Zt),me}),xi=[{width:"9%",title:"\u9898\u578B",align:"center",dataIndex:"name",render:me=>ce.createElement("a",null,me)},{width:"9%",title:((fr=Ut.find(me=>me.value==te.fw[0].nameType))==null?void 0:fr.name)||te.fw[0].name,align:"center",dataIndex:"singles_score",render:me=>ce.createElement("a",null,me==="0.0"?0:me)},{width:"9%",title:((L=Ut.find(me=>me.value==te.fw[1].nameType))==null?void 0:L.name)||te.fw[1].name,align:"center",dataIndex:"doubles_score",render:me=>ce.createElement("a",null,me==="0.0"?0:me)},{width:"9%",title:((nt=Ut.find(me=>me.value==te.fw[3].nameType))==null?void 0:nt.name)||te.fw[3].name,align:"center",dataIndex:"nulls_score",render:me=>ce.createElement("a",null,me==="0.0"?0:me)},{width:"9%",title:((k=Ut.find(me=>me.value==te.fw[2].nameType))==null?void 0:k.name)||te.fw[2].name,align:"center",dataIndex:"judges_score",render:me=>ce.createElement("a",null,me==="0.0"?0:me)},{width:"9%",title:((p=Ut.find(me=>me.value==te.fw[6].nameType))==null?void 0:p.name)||te.fw[6].name,align:"center",dataIndex:"pros_score",render:me=>ce.createElement("a",null,me==="0.0"?0:me)},{width:"9%",title:((d=Ut.find(me=>me.value==te.fw[5].nameType))==null?void 0:d.name)||te.fw[5].name,align:"center",dataIndex:"shixuns_score",render:me=>ce.createElement("a",null,me==="0.0"?0:me)},{width:"9%",title:((w=Ut.find(me=>me.value==te.fw[4].nameType))==null?void 0:w.name)||te.fw[4].name,align:"center",dataIndex:"mains_score",render:me=>ce.createElement("a",null,me==="0.0"?0:me)},{width:"9%",title:((q=Ut.find(me=>me.value==te.fw[7].nameType))==null?void 0:q.name)||te.fw[7].name,align:"center",dataIndex:"combinations_score",render:me=>ce.createElement("a",null,me==="0.0"?0:me)},{width:"10%",title:((Se=Ut.find(me=>me.value==te.fw[8].nameType))==null?void 0:Se.name)||te.fw[8].name,align:"center",dataIndex:"bpros_score",render:me=>ce.createElement("a",null,me==="0.0"?0:me)},{width:"9%",title:"\u603B\u5206",align:"center",dataIndex:"total_score",render:me=>ce.createElement("a",null,me==="0.0"?0:me?parseFloat(me).toFixed(1):"")}],Mr=me=>{xr({type:"paperlibrary/getPaperData",payload:ve({id:ct.current},me)})},ei=(me,Ue)=>Pe(void 0,null,function*(){if(!me.destination||!me.source)return;const Me=Ue.questions[me.source.index].id,st=me.destination.index+1;(yield xr({type:"paperlibrary/adjustPosition",payload:{id:ct.current,itemId:Me,position:st}})).status!==-1&&Mr()}),Bi=()=>{xr({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-SendToClass",params:{id:ct.current}}})},zn=(0,ge.useRef)(),[Oi,yi]=(0,ge.useState)(!0),Ki=()=>Pe(void 0,null,function*(){yi(!1),Tr(""),Pr(!0)}),Ca=()=>Pe(void 0,null,function*(){yi(!0),Tr(""),Pr(!0)}),Zi=()=>Pe(void 0,null,function*(){var me;Ar(!0);const Ue=yield(0,z.Mb)({categoryId:ct.current});Ar(!1),Ue!=null&&Ue.exercise_id&&(0,W.xg)(`/classrooms/coursesId/exercise/${Ue.exercise_id}/${(me=Qt.userInfo)==null?void 0:me.login}/initate_answer`)}),ni=(me,Ue,Me)=>{var st,Zt,Kt,Br,hr,Ur,Wr,en,Vr,Hr,qr,gn,tn,Mn,Rn,pi,Pn,ln,Ht,Wt,er;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:me.name||(me==null?void 0:me.shixun_name)}),ce.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",(me==null?void 0:me.question_type)===7?`\u5171${me==null?void 0:me.sub_count}\u5C0F\u9898`:""," ",me.score,"\u5206\uFF09")),(me==null?void 0:me.question_type)===8&&ce.createElement(le.Z,{showProgramFill:!0,disabledFill:!0,value:he.Base64.decode(((st=me==null?void 0:me.program_attr)==null?void 0:st.code)||"")}),(me==null?void 0:me.question_type)===5&&ce.createElement("div",null,(Zt=me==null?void 0:me.examination_bank_shixun_challenges)==null?void 0:Zt.map((tr,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"},tr.challenge_name))))),(me==null?void 0:me.question_type)===6&&ce.createElement("div",null,ce.createElement("div",{style:{fontWeight:600,marginTop:4}},"\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00\uFF1A",(Br=(Kt=me==null?void 0:me.program_attr)==null?void 0:Kt.languages)==null?void 0:Br.join("/")),((Ur=(hr=jt==null?void 0:jt.paperData)==null?void 0:hr.exam)==null?void 0:Ur.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(ie.default,{style:{margin:10},columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",width:"10%",render:(tr,Xt,Nr)=>Nr+1},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165",dataIndex:"input",key:"input",width:"40%",render:(tr,Xt,Nr)=>ce.createElement(G.Z,{title:ce.createElement("pre",null,tr)},ce.createElement("div",{className:I.divname},tr))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:(tr,Xt,Nr)=>ce.createElement(G.Z,{title:ce.createElement("pre",null,tr)}," ",ce.createElement("div",{className:I.divname},tr))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:(Wr=me==null?void 0:me.program_attr)==null?void 0:Wr.hack_sets})),((Vr=(en=jt==null?void 0:jt.paperData)==null?void 0:en.exam)==null?void 0:Vr.show_hack_description)&&ce.createElement("div",null,ce.createElement(le.Z,{className:I.content,value:((Hr=me==null?void 0:me.program_attr)==null?void 0:Hr.description)||"- -"}))),me.question_type===Ne.c.Single&&ce.createElement(ce.Fragment,null,(qr=me.choices)==null?void 0:qr.map(function(tr,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:tr.choice_text||""}))))})),me.question_type===Ne.c.Multiple&&ce.createElement(ce.Fragment,null,(gn=me.choices)==null?void 0:gn.map(function(tr,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:tr.choice_text||""}))))})),me.question_type===Ne.c.Judge&&ce.createElement("div",{className:I.flexRow},(tn=me.choices)==null?void 0:tn.map(function(tr,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}},tr.choice_text))})),me.question_type===Ne.c.Combine&&ce.createElement(ce.Fragment,null,(Mn=me.sub_questions)==null?void 0:Mn.map(function(tr,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:tr.name||(tr==null?void 0:tr.shixun_name)}),ce.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",tr.score,"\u5206\uFF09")),ni(tr,Xt,!0))})),Oi&&ce.createElement("div",{style:{marginTop:10}},(me==null?void 0:me.question_type)<3&&(me==null?void 0:me.standard_answer_show)&&ce.createElement("span",{className:"font16 "},"\u6B63\u786E\u7B54\u6848\uFF1A",me==null?void 0:me.standard_answer_show),!!((Rn=me==null?void 0:me.standard_answer)!=null&&Rn.length)&&Oi&&(me==null?void 0:me.question_type)===3&&ce.createElement("div",null,(pi=me==null?void 0:me.standard_answer)==null?void 0:pi.map((tr,Xt)=>ce.createElement("div",null,ce.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",Xt+1,"\uFF09:"),ce.createElement("div",null,tr.answer_text.map(function(Nr,Lr){return ce.createElement(f.Z,{span:24,key:Lr},(tr==null?void 0:tr.model)===1?ce.createElement(fe,{autoSize:!0,disabled:!0,value:Nr}):ce.createElement(Be.Z,{value:Nr,disabled:!0}))}))))),!!((Pn=me==null?void 0:me.standard_answer)!=null&&Pn.length)&&Oi&&(me==null?void 0:me.question_type)===8&&ce.createElement("div",null,(ln=me==null?void 0:me.standard_answer)==null?void 0:ln.map((tr,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:(tr==null?void 0:tr.answer_text)||""}))))),!!((Ht=me==null?void 0:me.answer_texts)!=null&&Ht.length)&&(me==null?void 0:me.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=me==null?void 0:me.answer_texts)==null?void 0:Wt[0]}))),(me==null?void 0:me.question_type)===6&&ce.createElement("div",null,ce.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A",!(me!=null&&me.answer_text)&&"\u6682\u65E0"),(me==null?void 0:me.answer_text)&&ce.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},ce.createElement(le.Z,{value:me==null?void 0:me.answer_text}))),(me==null?void 0:me.question_type)<=4&&((me==null?void 0:me.standard_answer_show)||((er=me==null?void 0:me.standard_answer)==null?void 0:er.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:(me==null?void 0:me.analysis)||"\u6682\u65E0\u89E3\u6790"}))),!Me&&ce.createElement(h.Z,null))},Si=(0,ge.useCallback)(()=>{var me,Ue;return ce.createElement("div",null,ce.createElement("div",{className:I.titleForExport},(Ue=(me=jt.paperData)==null?void 0:me.exam)==null?void 0:Ue.name),ce.createElement("div",{style:{textAlign:"center",fontSize:"15px"}},"\u5171:\u3010",Ie==null?void 0:Ie.large_counts,"\u5927\u9898\u3011\u3010",Ie==null?void 0:Ie.total_count,"\u5C0F\u9898\u3011\u3010 \u6EE1\u5206",Ie==null?void 0:Ie.score,"\u5206\u3011 \u8003\u8BD5\u65F6\u95F4\uFF1A\u3010",(Ie==null?void 0:Ie.time)>-1?`${Ie==null?void 0:Ie.time}\u5206\u949F`:"\u4E0D\u9650","\u3011"),!!(Ie!=null&&Ie.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"),Ie==null?void 0:Ie.exercise_description),ce.createElement(ie.default,{style:{margin:"20px auto"},className:I.table,columns:xi,dataSource:[...vt||[]],bordered:!0,pagination:!1}))},[jt.paperData]),Ui=()=>Pe(void 0,null,function*(){const me=yield(0,ee.ZP)("/api/intelligent_imports/save_recognize_papers.json",{method:"post",body:{examination_bank_id:Ye==null?void 0:Ye.id}});(me==null?void 0:me.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},!Sn&&ce.createElement(_.ZP,{onClick:Bi,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/${ct.current}?type=2${Sn?"&isIntelligentAssistant=true":""}`),className:I.btn,icon:ce.createElement("i",{className:"iconfont icon-bianji10 font14"})},"\u7F16\u8F91\u8BD5\u5377"),ce.createElement(_.ZP,{loading:cr,onClick:Zi,className:I.btn,icon:ce.createElement("i",{className:"iconfont icon-monikaoshi2 font14"})},"\u6A21\u62DF\u8003\u8BD5"),!Sn&&ce.createElement(O.Z,{menu:{items:[{key:"1",label:ce.createElement("div",{onClick:Ca},"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377+\u7B54\u6848")},{key:"2",label:ce.createElement("div",{onClick:Ki},"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377")}]}},ce.createElement(_.ZP,{type:"primary",icon:ce.createElement("i",{className:"iconfont icon-daochu1 font14"})},"\u5BFC\u51FA")),Sn&&ce.createElement(je.Z,{onClick:Ui,type:"primary",icon:ce.createElement("i",{className:"iconfont icon-baocun1 font14"})},"\u4FDD\u5B58\u8BD5\u5377"))),ce.createElement("div",{className:`${I.wrap} pt20 pb20`,ref:zn,id:"paperDomRef"},!((ne=(H=jt.paperData)==null?void 0:H.questionList)!=null&&ne.length)&&Si(),(xe=(Ge=jt.paperData)==null?void 0:Ge.questionList)==null?void 0:xe.map((me,Ue)=>{var Me;return ce.createElement(ce.Fragment,null,(Me=me.questions)==null?void 0:Me.map((st,Zt)=>{const Kt=Math.floor(Zt/10);return Zt%10===0?ce.createElement("div",{className:"abc",key:`group-${Kt}`},Ue===0&&Zt===0&&Si(),Zt===0&&ce.createElement("div",null,ce.createElement("span",{className:"font16 c-light-primary"},me.number,"\u3001",me.name),ce.createElement("span",{className:"c-grey-999"},"\uFF08\u5171",me.questions_count,"\u9898\uFF0C",(me==null?void 0:me.question_type)===7?`\u5305\u542B${me==null?void 0:me.sub_count}\u5C0F\u9898\uFF1B`:"","\u5171",me.questions_score,"\u5206\uFF09")),me.questions.slice(Zt,Zt+10).map((Br,hr)=>ce.createElement("div",{key:Br.id},ni(Br,Zt+hr)))):null}))}))),ce.createElement(Y.Z,null),ce.createElement(R.default,{width:450,title:"\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u683C\u5F0F",open:Ir,onCancel:()=>{if(zr){Te.ZP.info("\u5BFC\u51FA\u4E2D\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3");return}Pr(!1)},okButtonProps:{loading:zr},onOk:()=>Pe(void 0,null,function*(){var me,Ue;if(cn(!0),Kr==""){cn(!1),Te.ZP.info("\u8BF7\u9009\u62E9\u4E00\u79CD\u5BFC\u51FA\u683C\u5F0F");return}else Kr=="pdf"?yield(0,K.F)(zn.current.children,(Ue=(me=jt.paperData)==null?void 0:me.exam)==null?void 0:Ue.name):Kr=="word"&&(0,X.ON)({id:ct.current,middle_export:1,export_type:Oi?1:0});cn(!1),Pr(!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} ${Kr=="pdf"?I.img_warp_active:""}`,onClick:()=>Tr("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} ${Kr=="word"?I.img_warp_active:""}`,onClick:()=>Tr("word")},ce.createElement("img",{src:x(38347),width:70,height:70})),"word\u683C\u5F0F")))))};var rt=(0,ue.connect)(({paperlibrary:At,user:Nt,loading:jt,globalSetting:Qt,newExercisePaper:ur})=>({paperlibrary:At,user:Nt,globalSetting:Qt,loading:jt.effects,newExercisePaper:ur}))(tt)},91106:function(xn,qt,x){"use strict";x.d(qt,{Z:function(){return fe}});var ge=x(59301),ue=x(89070),Q=x(92832),Te=x(8591),ie=x(43418),G=x(5871),B=x(61621),f=x(1710),E=x(3113),h=x(42678),Z=Object.defineProperty,S=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,R=(ye,at,tt)=>at in ye?Z(ye,at,{enumerable:!0,configurable:!0,writable:!0,value:tt}):ye[at]=tt,I=(ye,at)=>{for(var tt in at||(at={}))_.call(at,tt)&&R(ye,tt,at[tt]);if(S)for(var tt of S(at))O.call(at,tt)&&R(ye,tt,at[tt]);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(955),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==",z="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:tt=()=>{},onCreate:rt=()=>{}})=>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:rt,type:"primary",ghost:!0},"\u7ACB\u5373\u521B\u5EFA")):ge.createElement(ge.Fragment,null,ge.createElement("img",{src:z,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:tt,type:"primary",ghost:!0},"\u7ACB\u5373\u5237\u65B0"))),Ne=x(49692),Be=x(6021),je=x(89392),ee=x(82438),ce=x(59301),D=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,Ce=(ye,at)=>{var tt={};for(var rt in ye)ot.call(ye,rt)&&at.indexOf(rt)<0&&(tt[rt]=ye[rt]);if(ye!=null&&D)for(var rt of D(ye))at.indexOf(rt)<0&&Le.call(ye,rt)&&(tt[rt]=ye[rt]);return tt},Re=(ye,at,tt)=>new Promise((rt,At)=>{var Nt=ur=>{try{Qt(tt.next(ur))}catch(or){At(or)}},jt=ur=>{try{Qt(tt.throw(ur))}catch(or){At(or)}},Qt=ur=>ur.done?rt(ur.value):Promise.resolve(ur.value).then(Nt,jt);Qt((tt=tt.apply(ye,at)).next())});const ve=Q.default.Search,Pe=ye=>{var at=ye,{paperlibrary:tt,globalSetting:rt,loading:At,dispatch:Nt}=at,jt=Ce(at,["paperlibrary","globalSetting","loading","dispatch"]),Qt,ur,or;const[xr,fr]=(0,ge.useState)(""),[L,nt]=(0,ge.useState)([]),[k,p]=(0,ge.useState)([]),[d,w]=(0,ge.useState)(!1),[q,Se]=(0,ge.useState)(!0),[H,ne]=(0,ge.useState)(!0),[Ge,xe]=(0,ge.useState)(!0),[we,Ye]=(0,ge.useState)(!1),[_t,pe]=(0,ge.useState)(!1),ut=(or=(ur=(Qt=tt.actionTabs)==null?void 0:Qt.params)==null?void 0:ur.data)==null?void 0:or.is_random,[ct,Ie]=(0,ge.useState)(!1),[ke,vt]=(0,ge.useState)({});(0,ge.useEffect)(()=>{Ut()},[]);const zt=()=>{p([]),fr(""),Ut(!0),Nt({type:"paperlibrary/setActionTabs",payload:{}})},Ut=cr=>Re(void 0,null,function*(){ne(!0);const Ar=yield Nt({type:"paperlibrary/getCourseList",payload:{search:cr?"":xr}});Ar&&(nt((Ar==null?void 0:Ar.courses)||[]),Se(!0),Ye(!1)),ne(!1),xe(!1)}),ar=cr=>{const Ar=parseInt(cr);return(0,je.isNaN)(Ar)?"":Ar},Ir=()=>Re(void 0,null,function*(){var cr,Ar,zr,cn,Sn,An,_n;if(!k.length){Te.ZP.info("\u60A8\u9700\u8981\u9009\u62E9\u8BFE\u5802\uFF0C\u624D\u80FD\u53D1\u9001"),w(!0);return}const xi=yield Nt({type:"paperlibrary/postExistCourse",payload:{course_id:ut?k==null?void 0:k[0]:k,examination_bank_ids:((Ar=(cr=tt.actionTabs)==null?void 0:cr.params)==null?void 0:Ar.examination_bank_ids)||((cn=(zr=tt.actionTabs)==null?void 0:zr.params)==null?void 0:cn.id)}}),Mr=()=>Re(void 0,null,function*(){var ei,Bi,zn,Oi,yi,Ki;pe(!0);let Ca=yield(0,Ne.Tr)({id:(Bi=(ei=tt.actionTabs)==null?void 0:ei.params)==null?void 0:Bi.id,course_id:ut?k==null?void 0:k[0]:k,type:(Oi=(zn=tt.actionTabs)==null?void 0:zn.params)!=null&&Oi.isBatch?"batch_examination_bank":"examination_bank",examination_bank_ids:(Ki=(yi=tt.actionTabs)==null?void 0:yi.params)==null?void 0:Ki.examination_bank_ids});pe(!1),(Ca==null?void 0:Ca.student_count)===0?yield Pr([]):vt(Ca),yield new Promise(Zi=>setTimeout(()=>Zi(),1e3))});if(xi.status==0&&((Sn=xi.data)==null?void 0:Sn.count)>0){ie.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",(_n=(An=xi.data)==null?void 0:An.list)==null?void 0:_n.map((ei,Bi)=>{var zn;return ce.createElement(ce.Fragment,null,ce.createElement("span",{style:{color:"#FA6400"}},"\u300A",ei==null?void 0:ei.name,"\u300B"),Bi!==((zn=xi.data)==null?void 0:zn.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 Mr()})}),yield new Promise(ei=>setTimeout(()=>ei(),1e3));return}yield Mr()}),Pr=cr=>Re(void 0,null,function*(){var Ar,zr,cn,Sn,An,_n;if(!ut){Ie(!0);const Bi=yield Nt({type:(zr=(Ar=tt.actionTabs)==null?void 0:Ar.params)!=null&&zr.isBatch?"paperlibrary/postBatchSendToCourse":"paperlibrary/sendToClass",payload:{course_id:ut?k==null?void 0:k[0]:k,id:(Sn=(cn=tt.actionTabs)==null?void 0:cn.params)==null?void 0:Sn.id,examination_bank_ids:(_n=(An=tt.actionTabs)==null?void 0:An.params)==null?void 0:_n.examination_bank_ids,shixuns_info:cr.map(zn=>({shixun_id:zn.id,is_copy:zn.is_copy,is_use:zn.is_use,course_id:zn.course_id}))}});Ie(!1),Bi&&Bi.status===0&&(Nt({type:"paperlibrary/setActionTabs",payload:{}}),p([]),ie.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=`${Bi.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}Ie(!0),setTimeout(()=>{Ie(!1)},500);const xi=L.find(Bi=>Bi.course_id===(k==null?void 0:k[0]));let Mr=1,ei=ie.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: ",xi==null?void 0:xi.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:ar,style:{width:120},placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u6570\u91CF",min:1,defaultValue:Mr,onChange:Bi=>{Mr=Bi;const zn=document.getElementById("model_error");Mr<1||Mr>50?zn.style.display="block":zn.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:zt,onOk:()=>Re(void 0,null,function*(){var Bi,zn;if(Mr<1||Mr>50){const yi=document.getElementById("model_error");return yi.style.display="block",Promise.reject()}ei.update({cancelButtonProps:{disabled:!0}});const Oi=yield Nt({type:"paperlibrary/sendToClass",payload:{course_id:k==null?void 0:k[0],id:(zn=(Bi=tt.actionTabs)==null?void 0:Bi.params)==null?void 0:zn.id,num:Mr,shixuns_info:cr.map(yi=>({shixun_id:yi.id,is_copy:yi.is_copy,is_use:yi.is_use}))}});ei.update({cancelButtonProps:{disabled:!1}}),Oi&&Oi.status===0&&(ie.default.destroyAll(),ie.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:()=>{zt()},onOk:()=>{zt(),setTimeout(()=>{var yi,Ki;const Ca=(Ki=(yi=Oi==null?void 0:Oi.first_category_url)==null?void 0:yi.split("/"))==null?void 0:Ki[2];(0,te.xg)(`/classrooms/${Ca}/exercise`)},1e3)}}))})})}),Kr=()=>Re(void 0,null,function*(){Ye(!0),yield Ut()}),Tr=[{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(ie.default,{centered:!0,keyboard:!1,closable:!1,open:tt.actionTabs.key==="Paperlibrary-SendToClass",title:"\u53D1\u9001\u81F3\u8BFE\u5802",maskClosable:!1,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:At["paperlibrary/sendToClass"]||_t||!!At["paperlibrary/postExistCourse"],width:752,footer:!1,onOk:Ir,destroyOnClose:!0,onCancel:zt},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:xr,className:se.search,onChange:cr=>{fr(cr.target.value),cr.target.value||Ut(!0)},onSearch:cr=>{fr(cr),Ut(),p([])}})),ce.createElement(B.Z,{loading:Ge},L.length?ce.createElement("div",{className:se.radioWrap},ce.createElement(f.default,{bordered:!1,scroll:(L==null?void 0:L.length)<=7?{}:{y:350},loading:H,rowKey:"course_id",pagination:!1,dataSource:L,columns:Tr,onRow:cr=>({onClick:Ar=>{if(ut)p([cr==null?void 0:cr.course_id]);else{if(!ut&&!k.includes(cr.course_id)&&k.length>0)return;k!=null&&k.includes(cr==null?void 0:cr.course_id)?p(k==null?void 0:k.filter(zr=>zr!==(cr==null?void 0:cr.course_id))):p([...k,cr==null?void 0:cr.course_id])}}}),rowSelection:{type:"radio",hideSelectAll:!0,selectedRowKeys:k,onChange:cr=>{p(cr),w(!1)}}})):!xr&&!H&&ce.createElement(he,{createState:q,refreshLoading:we,onRefresh:Kr,onCreate:()=>{Se(!1),(0,te.xg)("/classrooms/new")}})),d&&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:zt,className:se.no,style:{marginRight:20}},"\u53D6\u6D88"),ce.createElement(Be.Z,{onClick:Ir,className:se.yes},"\u786E\u8BA4"))))),ce.createElement(ee.Z,{resdata:ke,type:"exercise",okloading:ct,oktext:(ke==null?void 0:ke.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:cr=>{Pr(cr)}}))};var fe=(0,ue.connect)(({paperlibrary:ye,loading:at,globalSetting:tt})=>({paperlibrary:ye,globalSetting:tt,loading:at.effects}))(Pe)},10977:function(xn,qt,x){"use strict";x.d(qt,{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||{})},78297:function(xn,qt,x){"use strict";x.d(qt,{AD:function(){return ot},D9:function(){return fe},Hp:function(){return z},IM:function(){return at},Iy:function(){return le},KM:function(){return fr},MJ:function(){return he},Ne:function(){return ye},ON:function(){return jt},Uj:function(){return or},VY:function(){return At},YO:function(){return ur},YX:function(){return Qt},Zn:function(){return R},_g:function(){return te},_k:function(){return ve},c6:function(){return ce},cr:function(){return I},eV:function(){return D},fi:function(){return Y},gh:function(){return je},hS:function(){return tt},iA:function(){return K},j6:function(){return X},je:function(){return Re},jj:function(){return W},kS:function(){return Nt},o6:function(){return ee},pO:function(){return xr},rQ:function(){return Le},sA:function(){return Be},xm:function(){return Pe},xo:function(){return rt},y8:function(){return Ce},yd:function(){return se}});var ge=x(92365),ue=x(89070),Q=x(955),Te=x(8591),ie=x(3294),G=Object.defineProperty,B=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,h=(L,nt,k)=>nt in L?G(L,nt,{enumerable:!0,configurable:!0,writable:!0,value:k}):L[nt]=k,Z=(L,nt)=>{for(var k in nt||(nt={}))f.call(nt,k)&&h(L,k,nt[k]);if(B)for(var k of B(nt))E.call(nt,k)&&h(L,k,nt[k]);return L},S=(L,nt,k)=>new Promise((p,d)=>{var w=H=>{try{Se(k.next(H))}catch(ne){d(ne)}},q=H=>{try{Se(k.throw(H))}catch(ne){d(ne)}},Se=H=>H.done?p(H.value):Promise.resolve(H.value).then(w,q);Se((k=k.apply(L,nt)).next())});const _=()=>{(0,ue.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},O=()=>{(0,ue.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},R=L=>S(void 0,null,function*(){_(),(yield(0,ge.YR)(Z({},L))).status===0&&(yield(0,Q.QH)("",(0,Q.NY)({url:ie.Z.API_SERVER+`/api/courses/${L.coursesId}/export_couser_info.json`,query:L}))),O()}),I=L=>S(void 0,null,function*(){const nt=yield(0,ge.yS)(Z({},L));if(nt.status===0)Te.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${L.coursesId}/exportlist/course_member_act_score`);else{if(nt.status===-2)return nt;nt.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${L.coursesId}/exportlist/course_member_act_score`))}}),Y=L=>S(void 0,null,function*(){const nt=yield(0,ge.W0)(Z({},L));if(nt.status===0)Te.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${L.coursesId}/exportlist/course_total_score`);else{if(nt.status===-4)return nt;nt.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${L.coursesId}/exportlist/course_total_score`))}}),K=L=>S(void 0,null,function*(){const nt=yield(0,ge.Nl)(Z({},L));if(nt.status===0)Te.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${L.coursesId}/exportlist/course_total_exercise_and_other`);else{if(nt.status===-4)return nt;nt.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${L.coursesId}/exportlist/course_total_exercise_and_other`))}}),se=L=>S(void 0,null,function*(){const nt=yield(0,ge.IU)(Z({},L));if(nt.status===0)Te.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${L.coursesId}/exportlist/export_star_user`);else{if(nt.status===-4)return nt;nt.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${L.coursesId}/exportlist/export_star_user`))}}),te=L=>S(void 0,null,function*(){const nt=yield(0,ge.td)(Z({},L));if(nt.status===0)Te.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${L.coursesId}/exportlist/course_total_exercise_and_other`);else{if(nt.status===-2)return nt;if(nt.status===-3)(0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${L.coursesId}/exportlist/course_total_exercise_and_other`);else if(nt.status===-4)return nt}}),X=L=>S(void 0,null,function*(){const nt=yield(0,ge.QX)(Z({},L));if(nt.status===0)Te.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${L.coursesId}/exportlist/course_total_homework`);else{if(nt.status===-4)return nt;nt.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${L.coursesId}/exportlist/course_total_homework`))}}),W=(L,nt)=>S(void 0,null,function*(){const k=yield(0,ge.o_)(Z({},L));k.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/${L.coursesId}/exportlist/${nt}`)):k.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${L.coursesId}/exportlist/${nt}`))}),z=(L,nt)=>S(void 0,null,function*(){const k=yield(0,ge.ZL)(Z({},L));k.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/${L.coursesId}/exportlist/${nt}`)):k.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${L.coursesId}/exportlist/${nt}`))}),le=(L,nt)=>S(void 0,null,function*(){const k=yield(0,ge.aP)(Z({},L));k.status===0?(Te.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${L.coursesId}/exportlist/${nt}`)):k.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${L.coursesId}/exportlist/${nt}`))}),he=(L,nt)=>S(void 0,null,function*(){const k=yield(0,ge.vV)(Z({},L));k.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/${L.coursesId}/exportlist/${nt}`)):k.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${L.coursesId}/exportlist/${nt}`))}),Ne=L=>S(void 0,null,function*(){_(),(yield exportCourseWorkListAppendix(Z({},L))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${L.categoryId}/works_list.zip`,query:L}))),O()}),Be=L=>S(void 0,null,function*(){_(),yield(0,Q.QH)("",ie.Z.API_SERVER+`/api/polls/${L.categoryId}/commit_result.xlsx`),O()}),je=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+`/api/courses/${L.coursesId}/attendances/export_xlsx_data.xlsx`,query:L}))}),ee=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+`/api/courses/${L.coursesId}/video_study_statics.xlsx`,query:L}))}),ce=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+`/api/courses/${L.coursesId}/export_video_study.xlsx`,query:L}))}),D=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+`/api/courses/${L.coursesId}/export_course_students_info.xlsx`,query:L}))}),ot=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+"/api/school_manages/students.xlsx",query:L}))}),Le=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+"/api/item_banks/export.xlsx",query:L}))}),Ce=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:L}))}),Re=L=>S(void 0,null,function*(){const nt=yield(0,ge.Uy)(Z({},L));nt.status===0?(Te.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${L.coursesId}/exportlist/exercise_score,export_exercise_users`)):nt.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${L.coursesId}/exportlist/exercise_score,export_exercise_users`))}),ve=L=>S(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+`/api/export_records/${L.id}.xlsx`,query:L}))}),Pe=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:L}))}),fe=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+`/api/courses/${L==null?void 0:L.coursesId}/${L.menuKey}_statistic.xlsx?${L.checkedList.map(nt=>`course_group_id[]=${nt}`).join("&")}`,query:L}))}),ye=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+`/api/ec_years/${L==null?void 0:L.ec_year_id}/ec_training_objectives.xlsx`,query:L}))}),at=L=>S(void 0,null,function*(){yield(0,Q.FH)(L==null?void 0:L.name,(0,Q.NY)({url:ie.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:L}))}),tt=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+`/api/ec_years/${L==null?void 0:L.ec_year_id}/ec_courses.xlsx`,query:L}))}),rt=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+`/api/ec_years/${L==null?void 0:L.ec_year_id}/ec_graduation_requirements.xlsx`,query:L}))}),At=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:L}))}),Nt=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:L}))}),jt=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+`/api/examination_banks/${L.id}.json`,query:L}))}),Qt=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+`/api/exercises/${L.categoryId}.json`,query:L}))}),ur=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+`/api/polls/${L==null?void 0:L.id}/commit_result.json`,query:L}))}),or=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+"/api/paths/get_task_pass.json",query:L}))}),xr=(L,nt)=>S(void 0,null,function*(){yield(0,Q.FH)(nt||"",(0,Q.NY)({url:ie.Z.API_SERVER+`/api/exercises/${L==null?void 0:L.exercise_id}/consult_exercise.json`,query:L}))}),fr=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+`/api/competitions/${L==null?void 0:L.identifier}/competition_commit_records/member_works.xlsx`,query:L}))})},50371:function(xn,qt){"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 ie=Q[Te];ie!==void 0&&(ge[Te]=ie)})}return ge}qt.Z=x},13845:function(xn,qt,x){"use strict";x.d(qt,{F:function(){return ge},Z:function(){return ue}});function ge(Q){return Q!=null&&Q===Q.window}function ue(Q,Te){var ie,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=((ie=Q.ownerDocument)!==null&&ie!==void 0?ie:Q).documentElement)===null||G===void 0?void 0:G[B]),f}},56762:function(xn,qt,x){"use strict";x.d(qt,{Z:function(){return ue}});var ge=x(59301);function ue(){const[,Q]=ge.useReducer(Te=>Te+1,0);return Q}},68031:function(xn,qt,x){"use strict";x.d(qt,{Z:function(){return Te}});var ge=x(16089);function ue(ie,G,B,f){const E=B-G;return ie/=f/2,ie<1?E/2*ie*ie*ie+G:E/2*((ie-=2)*ie*ie+2)+G}var Q=x(13845);function Te(ie){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,ie,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,qt,x){"use strict";x.d(qt,{F:function(){return ie},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 ie=(G,B)=>B||G},66104:function(xn,qt,x){"use strict";x.d(qt,{Z:function(){return ot}});var ge=x(92310),ue=x.n(ge),Q=x(11592),Te=x(26112),ie=x(59301),G=x(92343),B=x(36355),f=x(84105),E=x(91857);const h=Le=>{let{children:Ce}=Le;const{getPrefixCls:Re}=ie.useContext(B.E_),ve=Re("breadcrumb");return ie.createElement("li",{className:`${ve}-separator`,"aria-hidden":"true"},Ce===""?Ce:Ce||"/")};h.__ANT_BREADCRUMB_SEPARATOR=!0;var Z=h,S=function(Le,Ce){var Re={};for(var ve in Le)Object.prototype.hasOwnProperty.call(Le,ve)&&Ce.indexOf(ve)<0&&(Re[ve]=Le[ve]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,ve=Object.getOwnPropertySymbols(Le);Pe<ve.length;Pe++)Ce.indexOf(ve[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Le,ve[Pe])&&(Re[ve[Pe]]=Le[ve[Pe]]);return Re};function _(Le,Ce){if(Le.title===void 0||Le.title===null)return null;const Re=Object.keys(Ce).join("|");return typeof Le.title=="object"?Le.title:String(Le.title).replace(new RegExp(`:(${Re})`,"g"),(ve,Pe)=>Ce[Pe]||ve)}function O(Le,Ce,Re,ve){if(Re==null)return null;const{className:Pe,onClick:fe}=Ce,ye=S(Ce,["className","onClick"]),at=Object.assign(Object.assign({},(0,Te.Z)(ye,{data:!0,aria:!0})),{onClick:fe});return ve!==void 0?ie.createElement("a",Object.assign({},at,{className:ue()(`${Le}-link`,Pe),href:ve}),Re):ie.createElement("span",Object.assign({},at,{className:ue()(`${Le}-link`,Pe)}),Re)}function R(Le,Ce){return(ve,Pe,fe,ye,at)=>{if(Ce)return Ce(ve,Pe,fe,ye);const tt=_(ve,Pe);return O(Le,ve,tt,at)}}var I=function(Le,Ce){var Re={};for(var ve in Le)Object.prototype.hasOwnProperty.call(Le,ve)&&Ce.indexOf(ve)<0&&(Re[ve]=Le[ve]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,ve=Object.getOwnPropertySymbols(Le);Pe<ve.length;Pe++)Ce.indexOf(ve[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Le,ve[Pe])&&(Re[ve[Pe]]=Le[ve[Pe]]);return Re};const Y=Le=>{const{prefixCls:Ce,separator:Re="/",children:ve,menu:Pe,overlay:fe,dropdownProps:ye,href:at}=Le,rt=(At=>{if(Pe||fe){const Nt=Object.assign({},ye);if(Pe){const jt=Pe||{},{items:Qt}=jt,ur=I(jt,["items"]);Nt.menu=Object.assign(Object.assign({},ur),{items:Qt==null?void 0:Qt.map((or,xr)=>{var{key:fr,title:L,label:nt,path:k}=or,p=I(or,["key","title","label","path"]);let d=nt!=null?nt:L;return k&&(d=ie.createElement("a",{href:`${at}${k}`},d)),Object.assign(Object.assign({},p),{key:fr!=null?fr:xr,label:d})})})}else fe&&(Nt.overlay=fe);return ie.createElement(E.Z,Object.assign({placement:"bottom"},Nt),ie.createElement("span",{className:`${Ce}-overlay-link`},At,ie.createElement(f.Z,null)))}return At})(ve);return rt!=null?ie.createElement(ie.Fragment,null,ie.createElement("li",null,rt),Re&&ie.createElement(Z,null,Re)):null},K=Le=>{const{prefixCls:Ce,children:Re,href:ve}=Le,Pe=I(Le,["prefixCls","children","href"]),{getPrefixCls:fe}=ie.useContext(B.E_),ye=fe("breadcrumb",Ce);return ie.createElement(Y,Object.assign({},Pe,{prefixCls:ye}),O(ye,Pe,Re,ve))};K.__ANT_BREADCRUMB_ITEM=!0;var se=K,te=x(17313),X=x(83116),W=x(37613);const z=Le=>{const{componentCls:Ce,iconCls:Re}=Le;return{[Ce]: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},[`${Ce}-separator`]:{marginInline:Le.separatorMargin,color:Le.separatorColor},[`${Ce}-link`]:{[`
> ${Re} + span,
> ${Re} + a
`]:{marginInlineStart:Le.marginXXS}},[`${Ce}-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 Ce=(0,W.TS)(Le,{});return[z(Ce)]},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,Ce){var Re={};for(var ve in Le)Object.prototype.hasOwnProperty.call(Le,ve)&&Ce.indexOf(ve)<0&&(Re[ve]=Le[ve]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,ve=Object.getOwnPropertySymbols(Le);Pe<ve.length;Pe++)Ce.indexOf(ve[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Le,ve[Pe])&&(Re[ve[Pe]]=Le[ve[Pe]]);return Re};function Ne(Le){const{breadcrumbName:Ce,children:Re}=Le,ve=he(Le,["breadcrumbName","children"]),Pe=Object.assign({title:Ce},ve);return Re&&(Pe.menu={items:Re.map(fe=>{var{breadcrumbName:ye}=fe,at=he(fe,["breadcrumbName"]);return Object.assign(Object.assign({},at),{title:ye})})}),Pe}function Be(Le,Ce){return(0,ie.useMemo)(()=>Le||(Ce?Ce.map(Ne):null),[Le,Ce])}var je=function(Le,Ce){var Re={};for(var ve in Le)Object.prototype.hasOwnProperty.call(Le,ve)&&Ce.indexOf(ve)<0&&(Re[ve]=Le[ve]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,ve=Object.getOwnPropertySymbols(Le);Pe<ve.length;Pe++)Ce.indexOf(ve[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Le,ve[Pe])&&(Re[ve[Pe]]=Le[ve[Pe]]);return Re};const ee=(Le,Ce)=>{if(Ce===void 0)return Ce;let Re=(Ce||"").replace(/^\//,"");return Object.keys(Le).forEach(ve=>{Re=Re.replace(`:${ve}`,Le[ve])}),Re},ce=Le=>{const{prefixCls:Ce,separator:Re="/",style:ve,className:Pe,rootClassName:fe,routes:ye,items:at,children:tt,itemRender:rt,params:At={}}=Le,Nt=je(Le,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:jt,direction:Qt,breadcrumb:ur}=ie.useContext(B.E_);let or;const xr=jt("breadcrumb",Ce),[fr,L]=le(xr),nt=Be(at,ye),k=R(xr,rt);if(nt&&nt.length>0){const w=[],q=at||ye;or=nt.map((Se,H)=>{const{path:ne,key:Ge,type:xe,menu:we,overlay:Ye,onClick:_t,className:pe,separator:ut,dropdownProps:ct}=Se,Ie=ee(At,ne);Ie!==void 0&&w.push(Ie);const ke=Ge!=null?Ge:H;if(xe==="separator")return ie.createElement(Z,{key:ke},ut);const vt={},zt=H===nt.length-1;we?vt.menu=we:Ye&&(vt.overlay=Ye);let{href:Ut}=Se;return w.length&&Ie!==void 0&&(Ut=`#/${w.join("/")}`),ie.createElement(Y,Object.assign({key:ke},vt,(0,Te.Z)(Se,{data:!0,aria:!0}),{className:pe,dropdownProps:ct,href:Ut,separator:zt?"":Re,onClick:_t,prefixCls:xr}),k(Se,At,q,w,Ut))})}else if(tt){const w=(0,Q.Z)(tt).length;or=(0,Q.Z)(tt).map((q,Se)=>{if(!q)return q;const H=Se===w-1;return(0,G.Tm)(q,{separator:H?"":Re,key:Se})})}const p=ue()(xr,ur==null?void 0:ur.className,{[`${xr}-rtl`]:Qt==="rtl"},Pe,fe,L),d=Object.assign(Object.assign({},ur==null?void 0:ur.style),ve);return fr(ie.createElement("nav",Object.assign({className:p,style:d},Nt),ie.createElement("ol",null,or)))};ce.Item=se,ce.Separator=Z;var D=ce,ot=D},24905:function(xn,qt,x){"use strict";x.d(qt,{default:function(){return le}});var ge=x(92310),ue=x.n(ge),Q=x(5630),Te=x(59301),ie=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 Be={};for(var je in he)Object.prototype.hasOwnProperty.call(he,je)&&Ne.indexOf(je)<0&&(Be[je]=he[je]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,je=Object.getOwnPropertySymbols(he);ee<je.length;ee++)Ne.indexOf(je[ee])<0&&Object.prototype.propertyIsEnumerable.call(he,je[ee])&&(Be[je[ee]]=he[je[ee]]);return Be};const O=(he,Ne)=>{var Be;const{prefixCls:je,className:ee,rootClassName:ce,children:D,indeterminate:ot=!1,style:Le,onMouseEnter:Ce,onMouseLeave:Re,skipGroup:ve=!1,disabled:Pe}=he,fe=_(he,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:ye,direction:at,checkbox:tt}=Te.useContext(ie.E_),rt=Te.useContext(E),{isFormItemInput:At}=Te.useContext(B.aM),Nt=Te.useContext(G.Z),jt=(Be=(rt==null?void 0:rt.disabled)||Pe)!==null&&Be!==void 0?Be:Nt,Qt=Te.useRef(fe.value);Te.useEffect(()=>{rt==null||rt.registerValue(fe.value)},[]),Te.useEffect(()=>{if(!ve)return fe.value!==Qt.current&&(rt==null||rt.cancelValue(Qt.current),rt==null||rt.registerValue(fe.value),Qt.current=fe.value),()=>rt==null?void 0:rt.cancelValue(fe.value)},[fe.value]);const ur=ye("checkbox",je),[or,xr]=(0,h.ZP)(ur),fr=Object.assign({},fe);rt&&!ve&&(fr.onChange=function(){fe.onChange&&fe.onChange.apply(fe,arguments),rt.toggleOption&&rt.toggleOption({label:D,value:fe.value})},fr.name=rt.name,fr.checked=rt.value.includes(fe.value));const L=ue()(`${ur}-wrapper`,{[`${ur}-rtl`]:at==="rtl",[`${ur}-wrapper-checked`]:fr.checked,[`${ur}-wrapper-disabled`]:jt,[`${ur}-wrapper-in-form-item`]:At},tt==null?void 0:tt.className,ee,ce,xr),nt=ue()({[`${ur}-indeterminate`]:ot},S.A,xr),k=ot?"mixed":void 0;return or(Te.createElement(Z.Z,{component:"Checkbox",disabled:jt},Te.createElement("label",{className:L,style:Object.assign(Object.assign({},tt==null?void 0:tt.style),Le),onMouseEnter:Ce,onMouseLeave:Re},Te.createElement(Q.Z,Object.assign({"aria-checked":k},fr,{prefixCls:ur,className:nt,disabled:jt,ref:Ne})),D!==void 0&&Te.createElement("span",null,D))))};var I=Te.forwardRef(O),Y=x(26407),K=x(2738),se=function(he,Ne){var Be={};for(var je in he)Object.prototype.hasOwnProperty.call(he,je)&&Ne.indexOf(je)<0&&(Be[je]=he[je]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,je=Object.getOwnPropertySymbols(he);ee<je.length;ee++)Ne.indexOf(je[ee])<0&&Object.prototype.propertyIsEnumerable.call(he,je[ee])&&(Be[je[ee]]=he[je[ee]]);return Be};const te=(he,Ne)=>{const{defaultValue:Be,children:je,options:ee=[],prefixCls:ce,className:D,rootClassName:ot,style:Le,onChange:Ce}=he,Re=se(he,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ve,direction:Pe}=Te.useContext(ie.E_),[fe,ye]=Te.useState(Re.value||Be||[]),[at,tt]=Te.useState([]);Te.useEffect(()=>{"value"in Re&&ye(Re.value||[])},[Re.value]);const rt=Te.useMemo(()=>ee.map(p=>typeof p=="string"||typeof p=="number"?{label:p,value:p}:p),[ee]),At=p=>{tt(d=>d.filter(w=>w!==p))},Nt=p=>{tt(d=>[].concat((0,Y.Z)(d),[p]))},jt=p=>{const d=fe.indexOf(p.value),w=(0,Y.Z)(fe);d===-1?w.push(p.value):w.splice(d,1),"value"in Re||ye(w),Ce==null||Ce(w.filter(q=>at.includes(q)).sort((q,Se)=>{const H=rt.findIndex(Ge=>Ge.value===q),ne=rt.findIndex(Ge=>Ge.value===Se);return H-ne}))},Qt=ve("checkbox",ce),ur=`${Qt}-group`,[or,xr]=(0,h.ZP)(Qt),fr=(0,K.Z)(Re,["value","disabled"]),L=ee.length?rt.map(p=>Te.createElement(I,{prefixCls:Qt,key:p.value.toString(),disabled:"disabled"in p?p.disabled:Re.disabled,value:p.value,checked:fe.includes(p.value),onChange:p.onChange,className:`${ur}-item`,style:p.style,title:p.title},p.label)):je,nt={toggleOption:jt,value:fe,disabled:Re.disabled,name:Re.name,registerValue:Nt,cancelValue:At},k=ue()(ur,{[`${ur}-rtl`]:Pe==="rtl"},D,ot,xr);return or(Te.createElement("div",Object.assign({className:k,style:Le},fr,{ref:Ne}),Te.createElement(E.Provider,{value:nt},L)))},X=Te.forwardRef(te);var W=Te.memo(X);const z=I;z.Group=W,z.__ANT_CHECKBOX=!0;var le=z},98447:function(xn,qt,x){"use strict";x.d(qt,{C2:function(){return ie}});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 ie(G,B){const f=(0,ue.TS)(B,{checkboxCls:`.${G}`,checkboxSize:B.controlInteractiveSize});return[Te(f)]}qt.ZP=(0,Q.Z)("Checkbox",(G,B)=>{let{prefixCls:f}=B;return[ie(f,G)]})},93891:function(xn,qt,x){"use strict";var ge=x(59301),ue=x(36355),Q=x(64165);const Te=ie=>{const{componentName:G}=ie,{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)}};qt.Z=Te},28103:function(xn,qt,x){"use strict";x.d(qt,{Z:function(){return S}});var ge=x(92310),ue=x.n(ge),Q=x(59301),Te=x(36355),ie=x(17313),G=x(83116),B=x(37613);const f=_=>{const{componentCls:O,sizePaddingEdgeHorizontal:R,colorSplit:I,lineWidth:Y,textPaddingInline:K,orientationMargin:se,verticalMarginInline:te}=_;return{[O]:Object.assign(Object.assign({},(0,ie.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${O}-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${O}-with-text-left`]:{"&::before":{width:`${se*100}%`},"&::after":{width:`${100-se*100}%`}},[`&-horizontal${O}-with-text-right`]:{"&::before":{width:`${100-se*100}%`},"&::after":{width:`${se*100}%`}},[`${O}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:K},"&-dashed":{background:"none",borderColor:I,borderStyle:"dashed",borderWidth:`${Y}px 0 0`},[`&-horizontal${O}-with-text${O}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${O}-dashed`]:{borderInlineStartWidth:Y,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${O}-with-text`]:{color:_.colorText,fontWeight:"normal",fontSize:_.fontSize},[`&-horizontal${O}-with-text-left${O}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${O}-inner-text`]:{paddingInlineStart:R}},[`&-horizontal${O}-with-text-right${O}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${O}-inner-text`]:{paddingInlineEnd:R}}})}};var E=(0,G.Z)("Divider",_=>{const O=(0,B.TS)(_,{dividerHorizontalWithTextGutterMargin:_.margin,dividerHorizontalGutterMargin:_.marginLG,sizePaddingEdgeHorizontal:0});return[f(O)]},_=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:_.marginXS})),h=function(_,O){var R={};for(var I in _)Object.prototype.hasOwnProperty.call(_,I)&&O.indexOf(I)<0&&(R[I]=_[I]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,I=Object.getOwnPropertySymbols(_);Y<I.length;Y++)O.indexOf(I[Y])<0&&Object.prototype.propertyIsEnumerable.call(_,I[Y])&&(R[I[Y]]=_[I[Y]]);return R},S=_=>{const{getPrefixCls:O,direction:R,divider:I}=Q.useContext(Te.E_),{prefixCls:Y,type:K="horizontal",orientation:se="center",orientationMargin:te,className:X,rootClassName:W,children:z,dashed:le,plain:he,style:Ne}=_,Be=h(_,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),je=O("divider",Y),[ee,ce]=E(je),D=se.length>0?`-${se}`:se,ot=!!z,Le=se==="left"&&te!=null,Ce=se==="right"&&te!=null,Re=ue()(je,I==null?void 0:I.className,ce,`${je}-${K}`,{[`${je}-with-text`]:ot,[`${je}-with-text${D}`]:ot,[`${je}-dashed`]:!!le,[`${je}-plain`]:!!he,[`${je}-rtl`]:R==="rtl",[`${je}-no-default-orientation-margin-left`]:Le,[`${je}-no-default-orientation-margin-right`]:Ce},X,W),ve=Q.useMemo(()=>typeof te=="number"?te:/^\d+$/.test(te)?Number(te):te,[te]),Pe=Object.assign(Object.assign({},Le&&{marginLeft:ve}),Ce&&{marginRight:ve});return ee(Q.createElement("div",Object.assign({className:Re,style:Object.assign(Object.assign({},I==null?void 0:I.style),Ne)},Be,{role:"separator"}),z&&K!=="vertical"&&Q.createElement("span",{className:`${je}-inner-text`,style:Pe},z)))}},91857:function(xn,qt,x){"use strict";var ge=x(59301),ue=x(38819),Q=x(92310),Te=x.n(Q),ie=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),O=x(40875),R=x(88088),I=x(47211);const Y=null,K=W=>{const{menu:z,arrow:le,prefixCls:he,children:Ne,trigger:Be,disabled:je,dropdownRender:ee,getPopupContainer:ce,overlayClassName:D,rootClassName:ot,open:Le,onOpenChange:Ce,visible:Re,onVisibleChange:ve,mouseEnterDelay:Pe=.15,mouseLeaveDelay:fe=.1,autoAdjustOverflow:ye=!0,placement:at="",overlay:tt,transitionName:rt}=W,{getPopupContainer:At,getPrefixCls:Nt,direction:jt}=ge.useContext(S.E_),Qt=ge.useMemo(()=>{const we=Nt();return rt!==void 0?rt:at.includes("top")?`${we}-slide-down`:`${we}-slide-up`},[Nt,at,rt]),ur=ge.useMemo(()=>at?at.includes("Center")?at.slice(0,at.indexOf("Center")):at:jt==="rtl"?"bottomRight":"bottomLeft",[at,jt]),or=Nt("dropdown",he),[xr,fr]=(0,I.Z)(or),[,L]=(0,R.Z)(),nt=ge.Children.only(Ne),k=(0,Z.Tm)(nt,{className:Te()(`${or}-trigger`,{[`${or}-rtl`]:jt==="rtl"},nt.props.className),disabled:je}),p=je?[]:Be;let d;p&&p.includes("contextMenu")&&(d=!0);const[w,q]=(0,B.Z)(!1,{value:Le!=null?Le:Re}),Se=(0,G.useEvent)(we=>{Ce==null||Ce(we),ve==null||ve(we),q(we)}),H=Te()(D,ot,fr,{[`${or}-rtl`]:jt==="rtl"}),ne=(0,E.Z)({arrowPointAtCenter:typeof le=="object"&&le.pointAtCenter,autoAdjustOverflow:ye,offset:L.marginXXS,arrowWidth:le?L.sizePopupArrow:0,borderRadius:L.borderRadius}),Ge=ge.useCallback(()=>{q(!1)},[]),xe=()=>{let we;return z!=null&&z.items?we=ge.createElement(_.default,Object.assign({},z)):typeof tt=="function"?we=tt():we=tt,ee&&(we=ee(we)),we=ge.Children.only(typeof we=="string"?ge.createElement("span",null,we):we),ge.createElement(O.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:Ye=>{let{mode:_t}=Ye}},we)};return xr(ge.createElement(ie.Z,Object.assign({alignPoint:d},(0,f.Z)(W,["rootClassName"]),{mouseEnterDelay:Pe,mouseLeaveDelay:fe,visible:w,builtinPlacements:ne,arrow:!!le,overlayClassName:H,prefixCls:or,getPopupContainer:ce||At,transitionName:Qt,trigger:p,overlay:xe,placement:ur,onVisibleChange:Se}),k))};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,qt.Z=K},38854:function(xn,qt,x){"use strict";x.d(qt,{Z:function(){return R}});var ge=x(91857),ue=x(92310),Q=x.n(ue),Te=x(59301),ie=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:z,loading:le,onClick:he,htmlType:Ne,children:Be,className:je,menu:ee,arrow:ce,autoFocus:D,overlay:ot,trigger:Le,align:Ce,open:Re,onOpenChange:ve,placement:Pe,getPopupContainer:fe,href:ye,icon:at=Te.createElement(ie.Z,null),title:tt,buttonsRender:rt=xe=>xe,mouseEnterDelay:At,mouseLeaveDelay:Nt,overlayClassName:jt,overlayStyle:Qt,destroyPopupOnHide:ur,dropdownRender:or}=I,xr=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"]),fr=K("dropdown",te),L=`${fr}-button`,[nt,k]=(0,h.Z)(fr),p={menu:ee,arrow:ce,autoFocus:D,align:Ce,disabled:z,trigger:z?[]:Le,onOpenChange:ve,getPopupContainer:fe||Y,mouseEnterDelay:At,mouseLeaveDelay:Nt,overlayClassName:jt,overlayStyle:Qt,destroyPopupOnHide:ur,dropdownRender:or},{compactSize:d,compactItemClassnames:w}=(0,E.ri)(fr,se),q=Q()(L,w,je,k);"overlay"in I&&(p.overlay=ot),"open"in I&&(p.open=Re),"placement"in I?p.placement=Pe:p.placement=se==="rtl"?"bottomLeft":"bottomRight";const Se=Te.createElement(G.ZP,{type:X,danger:W,disabled:z,loading:le,onClick:he,htmlType:Ne,href:ye,title:tt},Be),H=Te.createElement(G.ZP,{type:X,danger:W,icon:at}),[ne,Ge]=rt([Se,H]);return nt(Te.createElement(f.Z.Compact,Object.assign({className:q,size:d,block:!0},xr),ne,Te.createElement(ge.Z,Object.assign({},p),Ge)))};S.__ANT_BUTTON=!0;var _=S;const O=ge.Z;O.Button=_;var R=O},47211:function(xn,qt,x){"use strict";x.d(qt,{Z:function(){return Z}});var ge=x(17313),ue=x(13826),Q=x(92899),Te=x(29878),ie=x(19447),G=x(83116),B=x(37613),E=S=>{const{componentCls:_,menuCls:O,colorError:R,colorTextLightSolid:I}=S,Y=`${O}-item`;return{[`${_}, ${_}-menu-submenu`]:{[`${O} ${Y}`]:{[`&${Y}-danger:not(${Y}-disabled)`]:{color:R,"&:hover":{color:I,backgroundColor:R}}}}}};const h=S=>{const{componentCls:_,menuCls:O,zIndexPopup:R,dropdownArrowDistance:I,sizePopupArrow:Y,antCls:K,iconCls:se,motionDurationMid:te,dropdownPaddingVertical:X,fontSize:W,dropdownEdgeChildPadding:z,colorTextDisabled:le,fontSizeIcon:he,controlPaddingHorizontal:Ne,colorBgElevated:Be}=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,ie.ZP)(S,{colorBg:Be,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${_} ${O}`]:{position:"relative",margin:0},[`${O}-submenu-popup`]:{position:"absolute",zIndex:R,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${_}, ${_}-menu-submenu`]:{[O]:Object.assign(Object.assign({padding:z,listStyleType:"none",backgroundColor:Be,backgroundClip:"padding-box",borderRadius:S.borderRadiusLG,outline:"none",boxShadow:S.boxShadowSecondary},(0,ge.Qy)(S)),{[`${O}-item-group-title`]:{padding:`${X}px ${Ne}px`,color:S.colorTextDescription,transition:`all ${te}`},[`${O}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${O}-item-icon`]:{minWidth:W,marginInlineEnd:S.marginXS,fontSize:S.fontSizeSM},[`${O}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${te}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${O}-item, ${O}-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:Be,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"}}}),[`${O}-item-group-list`]:{margin:`0 ${S.marginXS}px`,padding:0,listStyle:"none"},[`${O}-submenu-title`]:{paddingInlineEnd:Ne+S.fontSizeSM},[`${O}-submenu-vertical`]:{position:"relative"},[`${O}-submenu${O}-submenu-disabled ${_}-menu-submenu-title`]:{[`&, ${_}-menu-submenu-arrow-icon`]:{color:le,backgroundColor:Be,cursor:"not-allowed"}},[`${O}-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:O}=_;const{marginXXS:R,sizePopupArrow:I,controlHeight:Y,fontSize:K,lineHeight:se,paddingXXS:te,componentCls:X,borderRadiusLG:W}=S,z=(Y-K*se)/2,{dropdownArrowOffset:le}=(0,ie.fS)({contentRadius:W}),he=(0,B.TS)(S,{menuCls:`${X}-menu`,rootPrefixCls:O,dropdownArrowDistance:I/2+R,dropdownArrowOffset:le,dropdownPaddingVertical:z,dropdownEdgeChildPadding:te});return[h(he),E(he)]},S=>({zIndexPopup:S.zIndexPopupBase+50}))},64165:function(xn,qt,x){"use strict";x.d(qt,{Z:function(){return te}});var ge=x(92310),ue=x.n(ge),Q=x(59301),Te=x(36355),ie=x(9763),G=x(64993),B=x(88088),E=()=>{const[,X]=(0,B.Z)(),z=new G.C(X.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Q.createElement("svg",{style:z,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:z,colorFillQuaternary:le,colorBgContainer:he}=X,{borderColor:Ne,shadowColor:Be,contentColor:je}=(0,Q.useMemo)(()=>({borderColor:new G.C(W).onBackground(he).toHexShortString(),shadowColor:new G.C(z).onBackground(he).toHexShortString(),contentColor:new G.C(le).onBackground(he).toHexShortString()}),[W,z,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:Be,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 O=X=>{const{componentCls:W,margin:z,marginXS:le,marginXL:he,fontSize:Ne,lineHeight:Be}=X;return{[W]:{marginInline:le,fontSize:Ne,lineHeight:Be,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:z},"&-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:z}=X,le=(0,_.TS)(X,{emptyImgCls:`${W}-img`,emptyImgHeight:z*2.5,emptyImgHeightMD:z,emptyImgHeightSM:z*.875});return[O(le)]}),I=function(X,W){var z={};for(var le in X)Object.prototype.hasOwnProperty.call(X,le)&&W.indexOf(le)<0&&(z[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])&&(z[le[he]]=X[le[he]]);return z};const Y=Q.createElement(E,null),K=Q.createElement(Z,null),se=X=>{var{className:W,rootClassName:z,prefixCls:le,image:he=Y,description:Ne,children:Be,imageStyle:je,style:ee}=X,ce=I(X,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:D,direction:ot,empty:Le}=Q.useContext(Te.E_),Ce=D("empty",le),[Re,ve]=R(Ce),[Pe]=(0,ie.Z)("Empty"),fe=typeof Ne!="undefined"?Ne:Pe==null?void 0:Pe.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,Ce,Le==null?void 0:Le.className,{[`${Ce}-normal`]:he===K,[`${Ce}-rtl`]:ot==="rtl"},W,z),style:Object.assign(Object.assign({},Le==null?void 0:Le.style),ee)},ce),Q.createElement("div",{className:`${Ce}-image`,style:je},at),fe&&Q.createElement("div",{className:`${Ce}-description`},fe),Be&&Q.createElement("div",{className:`${Ce}-footer`},Be)))};se.PRESENTED_IMAGE_DEFAULT=Y,se.PRESENTED_IMAGE_SIMPLE=K;var te=se},8628:function(xn,qt,x){"use strict";var ge=x(59301),ue=x(34280),Q=x(56762),Te=x(69507);function ie(){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}qt.Z=ie},5871:function(xn,qt,x){"use strict";x.d(qt,{Z:function(){return ct}});var ge=x(84105),ue=x(87395),Q=x(92310),Te=x.n(Q),ie=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 _(Ie){return!Ie&&Ie!==0&&!Number.isNaN(Ie)||!String(Ie).trim()}function O(Ie){var ke=Ie.trim(),vt=ke.startsWith("-");vt&&(ke=ke.slice(1)),ke=ke.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),ke.startsWith(".")&&(ke="0".concat(ke));var zt=ke||"0",Ut=zt.split("."),ar=Ut[0]||"0",Ir=Ut[1]||"0";ar==="0"&&Ir==="0"&&(vt=!1);var Pr=vt?"-":"";return{negative:vt,negativeStr:Pr,trimStr:zt,integerStr:ar,decimalStr:Ir,fullStr:"".concat(Pr).concat(zt)}}function R(Ie){var ke=String(Ie);return!Number.isNaN(Number(ke))&&ke.includes("e")}function I(Ie){var ke=String(Ie);if(R(Ie)){var vt=Number(ke.slice(ke.indexOf("e-")+2)),zt=ke.match(/\.(\d+)/);return zt!=null&&zt[1]&&(vt+=zt[1].length),vt}return ke.includes(".")&&K(ke)?ke.length-ke.indexOf(".")-1:0}function Y(Ie){var ke=String(Ie);if(R(Ie)){if(Ie>Number.MAX_SAFE_INTEGER)return String(S()?BigInt(Ie).toString():Number.MAX_SAFE_INTEGER);if(Ie<Number.MIN_SAFE_INTEGER)return String(S()?BigInt(Ie).toString():Number.MIN_SAFE_INTEGER);ke=Ie.toFixed(I(ke))}return O(ke).fullStr}function K(Ie){return typeof Ie=="number"?!Number.isNaN(Ie):Ie?/^\s*-?\d+(\.\d+)?\s*$/.test(Ie)||/^\s*-?\d+\.\s*$/.test(Ie)||/^\s*-?\.\d+\s*$/.test(Ie):!1}var se=function(){function Ie(ke){if((0,h.Z)(this,Ie),(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),_(ke)){this.empty=!0;return}if(this.origin=String(ke),ke==="-"||Number.isNaN(ke)){this.nan=!0;return}var vt=ke;if(R(vt)&&(vt=Number(vt)),vt=typeof vt=="string"?vt:Y(vt),K(vt)){var zt=O(vt);this.negative=zt.negative;var Ut=zt.trimStr.split(".");this.integer=BigInt(Ut[0]);var ar=Ut[1]||"0";this.decimal=BigInt(ar),this.decimalLen=ar.length}else this.nan=!0}return(0,Z.Z)(Ie,[{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 zt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(vt,"0"));return BigInt(zt)}},{key:"negate",value:function(){var vt=new Ie(this.toString());return vt.negative=!vt.negative,vt}},{key:"cal",value:function(vt,zt,Ut){var ar=Math.max(this.getDecimalStr().length,vt.getDecimalStr().length),Ir=this.alignDecimal(ar),Pr=vt.alignDecimal(ar),Kr=zt(Ir,Pr).toString(),Tr=Ut(ar),cr=O(Kr),Ar=cr.negativeStr,zr=cr.trimStr,cn="".concat(Ar).concat(zr.padStart(Tr+1,"0"));return new Ie("".concat(cn.slice(0,-Tr),".").concat(cn.slice(-Tr)))}},{key:"add",value:function(vt){if(this.isInvalidate())return new Ie(vt);var zt=new Ie(vt);return zt.isInvalidate()?this:this.cal(zt,function(Ut,ar){return Ut+ar},function(Ut){return Ut})}},{key:"multi",value:function(vt){var zt=new Ie(vt);return this.isInvalidate()||zt.isInvalidate()?new Ie(NaN):this.cal(zt,function(Ut,ar){return Ut*ar},function(Ut){return Ut*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()?"":O("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Ie}(),te=function(){function Ie(ke){if((0,h.Z)(this,Ie),(0,G.Z)(this,"origin",""),(0,G.Z)(this,"number",void 0),(0,G.Z)(this,"empty",void 0),_(ke)){this.empty=!0;return}this.origin=String(ke),this.number=Number(ke)}return(0,Z.Z)(Ie,[{key:"negate",value:function(){return new Ie(-this.toNumber())}},{key:"add",value:function(vt){if(this.isInvalidate())return new Ie(vt);var zt=Number(vt);if(Number.isNaN(zt))return this;var Ut=this.number+zt;if(Ut>Number.MAX_SAFE_INTEGER)return new Ie(Number.MAX_SAFE_INTEGER);if(Ut<Number.MIN_SAFE_INTEGER)return new Ie(Number.MIN_SAFE_INTEGER);var ar=Math.max(I(this.number),I(zt));return new Ie(Ut.toFixed(ar))}},{key:"multi",value:function(vt){var zt=Number(vt);if(this.isInvalidate()||Number.isNaN(zt))return new Ie(NaN);var Ut=this.number*zt;if(Ut>Number.MAX_SAFE_INTEGER)return new Ie(Number.MAX_SAFE_INTEGER);if(Ut<Number.MIN_SAFE_INTEGER)return new Ie(Number.MIN_SAFE_INTEGER);var ar=Math.max(I(this.number),I(zt));return new Ie(Ut.toFixed(ar))}},{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}}]),Ie}();function X(Ie){return S()?new se(Ie):new te(Ie)}function W(Ie,ke,vt){var zt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Ie==="")return"";var Ut=O(Ie),ar=Ut.negativeStr,Ir=Ut.integerStr,Pr=Ut.decimalStr,Kr="".concat(ke).concat(Pr),Tr="".concat(ar).concat(Ir);if(vt>=0){var cr=Number(Pr[vt]);if(cr>=5&&!zt){var Ar=X(Ie).add("".concat(ar,"0.").concat("0".repeat(vt)).concat(10-cr));return W(Ar.toString(),ke,vt,zt)}return vt===0?Tr:"".concat(Tr).concat(ke).concat(Pr.padEnd(vt,"0").slice(0,vt))}return Kr===".0"?Tr:"".concat(Tr).concat(Kr)}var z=X,le=x(93681),he=x(34280),Ne=x(8654),Be=x(59301),je=x(48736);function ee(Ie,ke){var vt=(0,Be.useRef)(null);function zt(){try{var ar=Ie.selectionStart,Ir=Ie.selectionEnd,Pr=Ie.value,Kr=Pr.substring(0,ar),Tr=Pr.substring(Ir);vt.current={start:ar,end:Ir,value:Pr,beforeTxt:Kr,afterTxt:Tr}}catch(cr){}}function Ut(){if(Ie&&vt.current&&ke)try{var ar=Ie.value,Ir=vt.current,Pr=Ir.beforeTxt,Kr=Ir.afterTxt,Tr=Ir.start,cr=ar.length;if(ar.endsWith(Kr))cr=ar.length-vt.current.afterTxt.length;else if(ar.startsWith(Pr))cr=Pr.length;else{var Ar=Pr[Tr-1],zr=ar.indexOf(Ar,Tr-1);zr!==-1&&(cr=zr+1)}Ie.setSelectionRange(cr,cr)}catch(cn){(0,je.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(cn.message))}}return[zt,Ut]}var ce=x(49658),D=function(){var ke=(0,Be.useState)(!1),vt=(0,f.Z)(ke,2),zt=vt[0],Ut=vt[1];return(0,he.Z)(function(){Ut((0,ce.Z)())},[]),zt},ot=D,Le=x(16089),Ce=200,Re=600;function ve(Ie){var ke=Ie.prefixCls,vt=Ie.upNode,zt=Ie.downNode,Ut=Ie.upDisabled,ar=Ie.downDisabled,Ir=Ie.onStep,Pr=Be.useRef(),Kr=Be.useRef([]),Tr=Be.useRef();Tr.current=Ir;var cr=function(){clearTimeout(Pr.current)},Ar=function(ei,Bi){ei.preventDefault(),cr(),Tr.current(Bi);function zn(){Tr.current(Bi),Pr.current=setTimeout(zn,Ce)}Pr.current=setTimeout(zn,Re)};Be.useEffect(function(){return function(){cr(),Kr.current.forEach(function(Mr){return Le.Z.cancel(Mr)})}},[]);var zr=ot();if(zr)return null;var cn="".concat(ke,"-handler"),Sn=Te()(cn,"".concat(cn,"-up"),(0,G.Z)({},"".concat(cn,"-up-disabled"),Ut)),An=Te()(cn,"".concat(cn,"-down"),(0,G.Z)({},"".concat(cn,"-down-disabled"),ar)),_n=function(){return Kr.current.push((0,Le.Z)(cr))},xi={unselectable:"on",role:"button",onMouseUp:_n,onMouseLeave:_n};return Be.createElement("div",{className:"".concat(cn,"-wrap")},Be.createElement("span",(0,ie.Z)({},xi,{onMouseDown:function(ei){Ar(ei,!0)},"aria-label":"Increase Value","aria-disabled":Ut,className:Sn}),vt||Be.createElement("span",{unselectable:"on",className:"".concat(ke,"-handler-up-inner")})),Be.createElement("span",(0,ie.Z)({},xi,{onMouseDown:function(ei){Ar(ei,!1)},"aria-label":"Decrease Value","aria-disabled":ar,className:An}),zt||Be.createElement("span",{unselectable:"on",className:"".concat(ke,"-handler-down-inner")})))}function Pe(Ie){var ke=typeof Ie=="number"?Y(Ie):O(Ie).fullStr,vt=ke.includes(".");return vt?O(ke.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Ie+"0"}var fe=x(5643),ye=function(){var Ie=(0,Be.useRef)(0),ke=function(){Le.Z.cancel(Ie.current)};return(0,Be.useEffect)(function(){return ke},[]),function(vt){ke(),Ie.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"],tt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],rt=function(ke,vt){return ke||vt.isEmpty()?vt.toString():vt.toNumber()},At=function(ke){var vt=z(ke);return vt.isInvalidate()?null:vt},Nt=Be.forwardRef(function(Ie,ke){var vt,zt=Ie.prefixCls,Ut=zt===void 0?"rc-input-number":zt,ar=Ie.className,Ir=Ie.style,Pr=Ie.min,Kr=Ie.max,Tr=Ie.step,cr=Tr===void 0?1:Tr,Ar=Ie.defaultValue,zr=Ie.value,cn=Ie.disabled,Sn=Ie.readOnly,An=Ie.upHandler,_n=Ie.downHandler,xi=Ie.keyboard,Mr=Ie.controls,ei=Mr===void 0?!0:Mr,Bi=Ie.classNames,zn=Ie.stringMode,Oi=Ie.parser,yi=Ie.formatter,Ki=Ie.precision,Ca=Ie.decimalSeparator,Zi=Ie.onChange,ni=Ie.onInput,Si=Ie.onPressEnter,Ui=Ie.onStep,me=(0,E.Z)(Ie,at),Ue="".concat(Ut,"-input"),Me=Be.useRef(null),st=Be.useState(!1),Zt=(0,f.Z)(st,2),Kt=Zt[0],Br=Zt[1],hr=Be.useRef(!1),Ur=Be.useRef(!1),Wr=Be.useRef(!1),en=Be.useState(function(){return z(zr!=null?zr:Ar)}),Vr=(0,f.Z)(en,2),Hr=Vr[0],qr=Vr[1];function gn(un){zr===void 0&&qr(un)}var tn=Be.useCallback(function(un,rn){if(!rn)return Ki>=0?Ki:Math.max(I(un),I(cr))},[Ki,cr]),Mn=Be.useCallback(function(un){var rn=String(un);if(Oi)return Oi(rn);var Nn=rn;return Ca&&(Nn=Nn.replace(Ca,".")),Nn.replace(/[^\w.-]+/g,"")},[Oi,Ca]),Rn=Be.useRef(""),pi=Be.useCallback(function(un,rn){if(yi)return yi(un,{userTyping:rn,input:String(Rn.current)});var Nn=typeof un=="number"?Y(un):un;if(!rn){var wn=tn(Nn,rn);if(K(Nn)&&(Ca||wn>=0)){var jn=Ca||".";Nn=W(Nn,jn,wn)}}return Nn},[yi,tn,Ca]),Pn=Be.useState(function(){var un=Ar!=null?Ar:zr;return Hr.isInvalidate()&&["string","number"].includes((0,B.Z)(un))?Number.isNaN(un)?"":un:pi(Hr.toString(),!1)}),ln=(0,f.Z)(Pn,2),Ht=ln[0],Wt=ln[1];Rn.current=Ht;function er(un,rn){Wt(pi(un.isInvalidate()?un.toString(!1):un.toString(!rn),rn))}var tr=Be.useMemo(function(){return At(Kr)},[Kr,Ki]),Xt=Be.useMemo(function(){return At(Pr)},[Pr,Ki]),Nr=Be.useMemo(function(){return!tr||!Hr||Hr.isInvalidate()?!1:tr.lessEquals(Hr)},[tr,Hr]),Lr=Be.useMemo(function(){return!Xt||!Hr||Hr.isInvalidate()?!1:Hr.lessEquals(Xt)},[Xt,Hr]),Jr=ee(Me.current,Kt),Fn=(0,f.Z)(Jr,2),Ln=Fn[0],li=Fn[1],ti=function(rn){return tr&&!rn.lessEquals(tr)?tr:Xt&&!Xt.lessEquals(rn)?Xt:null},Ei=function(rn){return!ti(rn)},Yn=function(rn,Nn){var wn=rn,jn=Ei(wn)||wn.isEmpty();if(!wn.isEmpty()&&!Nn&&(wn=ti(wn)||wn,jn=!0),!Sn&&!cn&&jn){var ui=wn.toString(),_i=tn(ui,Nn);return _i>=0&&(wn=z(W(ui,".",_i)),Ei(wn)||(wn=z(W(ui,".",_i,!0)))),wn.equals(Hr)||(gn(wn),Zi==null||Zi(wn.isEmpty()?null:rt(zn,wn)),zr===void 0&&er(wn,Nn)),wn}return Hr},Hn=ye(),sn=function un(rn){if(Ln(),Rn.current=rn,Wt(rn),!Ur.current){var Nn=Mn(rn),wn=z(Nn);wn.isNaN()||Yn(wn,!0)}ni==null||ni(rn),Hn(function(){var jn=rn;Oi||(jn=rn.replace(/。/g,".")),jn!==rn&&un(jn)})},vi=function(){Ur.current=!0},In=function(){Ur.current=!1,sn(Me.current.value)},ii=function(rn){sn(rn.target.value)},bi=function(rn){var Nn;if(!(rn&&Nr||!rn&&Lr)){hr.current=!1;var wn=z(Wr.current?Pe(cr):cr);rn||(wn=wn.negate());var jn=(Hr||z(0)).add(wn.toString()),ui=Yn(jn,!1);Ui==null||Ui(rt(zn,ui),{offset:Wr.current?Pe(cr):cr,type:rn?"up":"down"}),(Nn=Me.current)===null||Nn===void 0||Nn.focus()}},Di=function(rn){var Nn=z(Mn(Ht)),wn=Nn;Nn.isNaN()?wn=Yn(Hr,rn):wn=Yn(Nn,rn),zr!==void 0?er(Hr,!1):wn.isNaN()||er(wn,!1)},Gn=function(){hr.current=!0},Li=function(rn){var Nn=rn.key,wn=rn.shiftKey;hr.current=!0,Wr.current=wn,Nn==="Enter"&&(Ur.current||(hr.current=!1),Di(!1),Si==null||Si(rn)),xi!==!1&&!Ur.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Nn)&&(bi(Nn==="Up"||Nn==="ArrowUp"),rn.preventDefault())},ra=function(){hr.current=!1,Wr.current=!1},si=function(){Di(!1),Br(!1),hr.current=!1};return(0,he.o)(function(){Hr.isInvalidate()||er(Hr,!1)},[Ki]),(0,he.o)(function(){var un=z(zr);qr(un);var rn=z(Mn(Ht));(!un.equals(rn)||!hr.current||yi)&&er(un,hr.current)},[zr]),(0,he.o)(function(){yi&&li()},[Ht]),Be.createElement("div",{className:Te()(Ut,Bi==null?void 0:Bi.input,ar,(vt={},(0,G.Z)(vt,"".concat(Ut,"-focused"),Kt),(0,G.Z)(vt,"".concat(Ut,"-disabled"),cn),(0,G.Z)(vt,"".concat(Ut,"-readonly"),Sn),(0,G.Z)(vt,"".concat(Ut,"-not-a-number"),Hr.isNaN()),(0,G.Z)(vt,"".concat(Ut,"-out-of-range"),!Hr.isInvalidate()&&!Ei(Hr)),vt)),style:Ir,onFocus:function(){Br(!0)},onBlur:si,onKeyDown:Li,onKeyUp:ra,onCompositionStart:vi,onCompositionEnd:In,onBeforeInput:Gn},ei&&Be.createElement(ve,{prefixCls:Ut,upNode:An,downNode:_n,upDisabled:Nr,downDisabled:Lr,onStep:bi}),Be.createElement("div",{className:"".concat(Ue,"-wrap")},Be.createElement("input",(0,ie.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Pr,"aria-valuemax":Kr,"aria-valuenow":Hr.isInvalidate()?null:Hr.toString(),step:cr},me,{ref:(0,Ne.sQ)(Me,ke),className:Ue,value:Ht,onChange:ii,disabled:cn,readOnly:Sn}))))}),jt=Be.forwardRef(function(Ie,ke){var vt=Ie.disabled,zt=Ie.style,Ut=Ie.prefixCls,ar=Ie.value,Ir=Ie.prefix,Pr=Ie.suffix,Kr=Ie.addonBefore,Tr=Ie.addonAfter,cr=Ie.classes,Ar=Ie.className,zr=Ie.classNames,cn=(0,E.Z)(Ie,tt),Sn=Be.useRef(null),An=function(xi){Sn.current&&(0,fe.nH)(Sn.current,xi)};return Be.createElement(le.BaseInput,{inputElement:Be.createElement(Nt,(0,ie.Z)({prefixCls:Ut,disabled:vt,classNames:zr,ref:(0,Ne.sQ)(Sn,ke)},cn)),className:Ar,triggerFocus:An,prefixCls:Ut,value:ar,disabled:vt,style:zt,prefix:Ir,suffix:Pr,addonAfter:Tr,addonBefore:Kr,classes:cr,classNames:zr,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});jt.displayName="InputNumber";var Qt=jt,ur=Qt,or=x(19080),xr=x(36355),fr=x(92736),L=x(1684),nt=x(19716),k=x(32441),p=x(33234),d=x(9937),w=x(17313),q=x(74207),Se=x(83116),H=x(37613);const ne=(Ie,ke)=>{let{componentCls:vt,borderRadiusSM:zt,borderRadiusLG:Ut}=Ie;const ar=ke==="lg"?Ut:zt;return{[`&-${ke}`]:{[`${vt}-handler-wrap`]:{borderStartEndRadius:ar,borderEndEndRadius:ar},[`${vt}-handler-up`]:{borderStartEndRadius:ar},[`${vt}-handler-down`]:{borderEndEndRadius:ar}}}},Ge=Ie=>{const{componentCls:ke,lineWidth:vt,lineType:zt,colorBorder:Ut,borderRadius:ar,fontSizeLG:Ir,controlHeightLG:Pr,controlHeightSM:Kr,colorError:Tr,paddingInlineSM:cr,colorTextDescription:Ar,motionDurationMid:zr,handleHoverColor:cn,paddingInline:Sn,paddingBlock:An,handleBg:_n,handleActiveBg:xi,colorTextDisabled:Mr,borderRadiusSM:ei,borderRadiusLG:Bi,controlWidth:zn,handleVisible:Oi,handleBorderColor:yi}=Ie;return[{[ke]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,w.Wf)(Ie)),(0,d.ik)(Ie)),(0,d.bi)(Ie,ke)),{display:"inline-block",width:zn,margin:0,padding:0,border:`${vt}px ${zt} ${Ut}`,borderRadius:ar,"&-rtl":{direction:"rtl",[`${ke}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Ir,borderRadius:Bi,[`input${ke}-input`]:{height:Pr-2*vt}},"&-sm":{padding:0,borderRadius:ei,[`input${ke}-input`]:{height:Kr-2*vt,padding:`0 ${cr}px`}},"&:hover":Object.assign({},(0,d.pU)(Ie)),"&-focused":Object.assign({},(0,d.M1)(Ie)),"&-out-of-range":{[`${ke}-input-wrap`]:{input:{color:Tr}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,w.Wf)(Ie)),(0,d.s7)(Ie)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${ke}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${ke}-group-addon`]:{borderRadius:Bi,fontSize:Ie.fontSizeLG}},"&-sm":{[`${ke}-group-addon`]:{borderRadius:ei}},[`${ke}-wrapper-disabled > ${ke}-group-addon`]:Object.assign({},(0,d.Xy)(Ie))}}),[`&-disabled ${ke}-input`]:{cursor:"not-allowed"},[ke]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,w.Wf)(Ie)),{width:"100%",padding:`${An}px ${Sn}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:ar,outline:0,transition:`all ${zr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,d.nz)(Ie.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[ke]:Object.assign(Object.assign(Object.assign({[`&:hover ${ke}-handler-wrap, &-focused ${ke}-handler-wrap`]:{opacity:1},[`${ke}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Ie.handleWidth,height:"100%",background:_n,borderStartStartRadius:0,borderStartEndRadius:ar,borderEndEndRadius:ar,borderEndStartRadius:0,opacity:Oi===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${zr} linear ${zr}`,[`${ke}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${ke}-handler-up-inner,
${ke}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:Ie.handleFontSize}}},[`${ke}-handler`]:{height:"50%",overflow:"hidden",color:Ar,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${vt}px ${zt} ${yi}`,transition:`all ${zr} linear`,"&:active":{background:xi},"&:hover":{height:"60%",[`
${ke}-handler-up-inner,
${ke}-handler-down-inner
`]:{color:cn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,w.Ro)()),{color:Ar,transition:`all ${zr} linear`,userSelect:"none"})},[`${ke}-handler-up`]:{borderStartEndRadius:ar},[`${ke}-handler-down`]:{borderBlockStart:`${vt}px ${zt} ${yi}`,borderEndEndRadius:ar}},ne(Ie,"lg")),ne(Ie,"sm")),{"&-disabled, &-readonly":{[`${ke}-handler-wrap`]:{display:"none"},[`${ke}-input`]:{color:"inherit"}},[`
${ke}-handler-up-disabled,
${ke}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${ke}-handler-up-disabled:hover &-handler-up-inner,
${ke}-handler-down-disabled:hover &-handler-down-inner
`]:{color:Mr}})},{[`${ke}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${ke}-handler-down`]:{borderBlockStartWidth:0}}}]},xe=Ie=>{const{componentCls:ke,paddingBlock:vt,paddingInline:zt,inputAffixPadding:Ut,controlWidth:ar,borderRadiusLG:Ir,borderRadiusSM:Pr}=Ie;return{[`${ke}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,d.ik)(Ie)),(0,d.bi)(Ie,`${ke}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:ar,padding:0,paddingInlineStart:zt,"&-lg":{borderRadius:Ir},"&-sm":{borderRadius:Pr},[`&:not(${ke}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,d.pU)(Ie)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${ke}-disabled`]:{background:"transparent"},[`> div${ke}`]:{width:"100%",border:"none",outline:"none",[`&${ke}-focused`]:{boxShadow:"none !important"}},[`input${ke}-input`]:{padding:`${vt}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${ke}-handler-wrap`]:{zIndex:2},[ke]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Ut},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:zt,marginInlineStart:Ut}}})}};var we=(0,Se.Z)("InputNumber",Ie=>{const ke=(0,H.TS)(Ie,(0,d.e5)(Ie));return[Ge(ke),xe(ke),(0,q.c)(ke)]},Ie=>Object.assign(Object.assign({},(0,d.TM)(Ie)),{controlWidth:90,handleWidth:Ie.controlHeightSM-Ie.lineWidth*2,handleFontSize:Ie.fontSize/2,handleVisible:"auto",handleActiveBg:Ie.colorFillAlter,handleBg:Ie.colorBgContainer,handleHoverColor:Ie.colorPrimary,handleBorderColor:Ie.colorBorder})),Ye=function(Ie,ke){var vt={};for(var zt in Ie)Object.prototype.hasOwnProperty.call(Ie,zt)&&ke.indexOf(zt)<0&&(vt[zt]=Ie[zt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,zt=Object.getOwnPropertySymbols(Ie);Ut<zt.length;Ut++)ke.indexOf(zt[Ut])<0&&Object.prototype.propertyIsEnumerable.call(Ie,zt[Ut])&&(vt[zt[Ut]]=Ie[zt[Ut]]);return vt};const _t=Be.forwardRef((Ie,ke)=>{const{getPrefixCls:vt,direction:zt}=Be.useContext(xr.E_),Ut=Be.useRef(null);Be.useImperativeHandle(ke,()=>Ut.current);const{className:ar,rootClassName:Ir,size:Pr,disabled:Kr,prefixCls:Tr,addonBefore:cr,addonAfter:Ar,prefix:zr,bordered:cn=!0,readOnly:Sn,status:An,controls:_n}=Ie,xi=Ye(Ie,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),Mr=vt("input-number",Tr),[ei,Bi]=we(Mr),{compactSize:zn,compactItemClassnames:Oi}=(0,p.ri)(Mr,zt);let yi=Be.createElement(ue.Z,{className:`${Mr}-handler-up-inner`}),Ki=Be.createElement(ge.Z,{className:`${Mr}-handler-down-inner`});const Ca=typeof _n=="boolean"?_n:void 0;typeof _n=="object"&&(yi=typeof _n.upIcon=="undefined"?yi:Be.createElement("span",{className:`${Mr}-handler-up-inner`},_n.upIcon),Ki=typeof _n.downIcon=="undefined"?Ki:Be.createElement("span",{className:`${Mr}-handler-down-inner`},_n.downIcon));const{hasFeedback:Zi,status:ni,isFormItemInput:Si,feedbackIcon:Ui}=Be.useContext(k.aM),me=(0,or.F)(ni,An),Ue=(0,nt.Z)(hr=>{var Ur;return(Ur=Pr!=null?Pr:zn)!==null&&Ur!==void 0?Ur:hr}),Me=Be.useContext(L.Z),st=Kr!=null?Kr:Me,Zt=Te()({[`${Mr}-lg`]:Ue==="large",[`${Mr}-sm`]:Ue==="small",[`${Mr}-rtl`]:zt==="rtl",[`${Mr}-borderless`]:!cn,[`${Mr}-in-form-item`]:Si},(0,or.Z)(Mr,me),Oi,Bi),Kt=`${Mr}-group`,Br=Be.createElement(ur,Object.assign({ref:Ut,disabled:st,className:Te()(ar,Ir),upHandler:yi,downHandler:Ki,prefixCls:Mr,readOnly:Sn,controls:Ca,prefix:zr,suffix:Zi&&Ui,addonAfter:Ar&&Be.createElement(p.BR,null,Be.createElement(k.Ux,{override:!0,status:!0},Ar)),addonBefore:cr&&Be.createElement(p.BR,null,Be.createElement(k.Ux,{override:!0,status:!0},cr)),classNames:{input:Zt},classes:{affixWrapper:Te()((0,or.Z)(`${Mr}-affix-wrapper`,me,Zi),{[`${Mr}-affix-wrapper-sm`]:Ue==="small",[`${Mr}-affix-wrapper-lg`]:Ue==="large",[`${Mr}-affix-wrapper-rtl`]:zt==="rtl",[`${Mr}-affix-wrapper-borderless`]:!cn},Bi),wrapper:Te()({[`${Kt}-rtl`]:zt==="rtl",[`${Mr}-wrapper-disabled`]:st},Bi),group:Te()({[`${Mr}-group-wrapper-sm`]:Ue==="small",[`${Mr}-group-wrapper-lg`]:Ue==="large",[`${Mr}-group-wrapper-rtl`]:zt==="rtl"},(0,or.Z)(`${Mr}-group-wrapper`,me,Zi),Bi)}},xi));return ei(Br)}),pe=_t,ut=Ie=>Be.createElement(fr.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Be.createElement(_t,Object.assign({},Ie)));pe._InternalPanelDoNotUseOrYouWillBeFired=ut;var ct=pe},9432:function(xn,qt,x){"use strict";x.d(qt,{Z:function(){return se},n:function(){return Y}});var ge=x(19248),ue=x(92310),Q=x.n(ue),Te=x(93681),ie=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),O=x(9937);function R(te){return!!(te.prefix||te.suffix||te.allowClear)}var I=function(te,X){var W={};for(var z in te)Object.prototype.hasOwnProperty.call(te,z)&&X.indexOf(z)<0&&(W[z]=te[z]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,z=Object.getOwnPropertySymbols(te);le<z.length;le++)X.indexOf(z[le])<0&&Object.prototype.propertyIsEnumerable.call(te,z[le])&&(W[z[le]]=te[z[le]]);return W};function Y(te,X){if(!te)return;te.focus(X);const{cursor:W}=X||{};if(W){const z=te.value.length;switch(W){case"start":te.setSelectionRange(0,0);break;case"end":te.setSelectionRange(z,z);break;default:te.setSelectionRange(0,z);break}}}var se=(0,G.forwardRef)((te,X)=>{var W;const{prefixCls:z,bordered:le=!0,status:he,size:Ne,disabled:Be,onBlur:je,onFocus:ee,suffix:ce,allowClear:D,addonAfter:ot,addonBefore:Le,className:Ce,style:Re,styles:ve,rootClassName:Pe,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:tt,direction:rt,input:At}=G.useContext(f.E_),Nt=tt("input",z),jt=(0,G.useRef)(null),[Qt,ur]=(0,O.ZP)(Nt),{compactSize:or,compactItemClassnames:xr}=(0,S.ri)(Nt,rt),fr=(0,h.Z)(_t=>{var pe;return(pe=Ne!=null?Ne:or)!==null&&pe!==void 0?pe:_t}),L=G.useContext(E.Z),nt=Be!=null?Be:L,{status:k,hasFeedback:p,feedbackIcon:d}=(0,G.useContext)(Z.aM),w=(0,B.F)(k,he),q=R(te)||!!p,Se=(0,G.useRef)(q);(0,G.useEffect)(()=>{var _t;q&&Se.current,Se.current=q},[q]);const H=(0,_.Z)(jt,!0),ne=_t=>{H(),je==null||je(_t)},Ge=_t=>{H(),ee==null||ee(_t)},xe=_t=>{H(),fe==null||fe(_t)},we=(p||ce)&&G.createElement(G.Fragment,null,ce,p&&d);let Ye;return typeof D=="object"&&(D!=null&&D.clearIcon)?Ye=D:D&&(Ye={clearIcon:G.createElement(ge.Z,null)}),Qt(G.createElement(Te.default,Object.assign({ref:(0,ie.sQ)(X,jt),prefixCls:Nt,autoComplete:At==null?void 0:At.autoComplete},at,{disabled:nt,onBlur:ne,onFocus:Ge,style:Object.assign(Object.assign({},At==null?void 0:At.style),Re),styles:Object.assign(Object.assign({},At==null?void 0:At.styles),ve),suffix:we,allowClear:Ye,className:Q()(Ce,Pe,xr,At==null?void 0:At.className),onChange:xe,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),At==null?void 0:At.classNames),{input:Q()({[`${Nt}-sm`]:fr==="small",[`${Nt}-lg`]:fr==="large",[`${Nt}-rtl`]:rt==="rtl",[`${Nt}-borderless`]:!le},!q&&(0,B.Z)(Nt,w),ye==null?void 0:ye.input,(W=At==null?void 0:At.classNames)===null||W===void 0?void 0:W.input,ur)}),classes:{affixWrapper:Q()({[`${Nt}-affix-wrapper-sm`]:fr==="small",[`${Nt}-affix-wrapper-lg`]:fr==="large",[`${Nt}-affix-wrapper-rtl`]:rt==="rtl",[`${Nt}-affix-wrapper-borderless`]:!le},(0,B.Z)(`${Nt}-affix-wrapper`,w,p),ur),wrapper:Q()({[`${Nt}-group-rtl`]:rt==="rtl"},ur),group:Q()({[`${Nt}-group-wrapper-sm`]:fr==="small",[`${Nt}-group-wrapper-lg`]:fr==="large",[`${Nt}-group-wrapper-rtl`]:rt==="rtl",[`${Nt}-group-wrapper-disabled`]:nt},(0,B.Z)(`${Nt}-group-wrapper`,w,p),ur)}})))})},1643:function(xn,qt,x){"use strict";var ge=x(19248),ue=x(92310),Q=x.n(ue),Te=x(9296),ie=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 O=(0,ie.forwardRef)((R,I)=>{const{prefixCls:Y,bordered:K=!0,size:se,disabled:te,status:X,allowClear:W,showCount:z,classNames:le,rootClassName:he,className:Ne}=R,Be=_(R,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:je,direction:ee}=ie.useContext(B.E_),ce=(0,E.Z)(se),D=ie.useContext(f.Z),ot=te!=null?te:D,{status:Le,hasFeedback:Ce,feedbackIcon:Re}=ie.useContext(h.aM),ve=(0,G.F)(Le,X),Pe=ie.useRef(null);ie.useImperativeHandle(I,()=>{var rt;return{resizableTextArea:(rt=Pe.current)===null||rt===void 0?void 0:rt.resizableTextArea,focus:At=>{var Nt,jt;(0,Z.n)((jt=(Nt=Pe.current)===null||Nt===void 0?void 0:Nt.resizableTextArea)===null||jt===void 0?void 0:jt.textArea,At)},blur:()=>{var At;return(At=Pe.current)===null||At===void 0?void 0:At.blur()}}});const fe=je("input",Y);let ye;typeof W=="object"&&(W!=null&&W.clearIcon)?ye=W:W&&(ye={clearIcon:ie.createElement(ge.Z,null)});const[at,tt]=(0,S.ZP)(fe);return at(ie.createElement(Te.default,Object.assign({},Be,{disabled:ot,allowClear:ye,className:Q()(Ne,he),classes:{affixWrapper:Q()(`${fe}-textarea-affix-wrapper`,{[`${fe}-affix-wrapper-rtl`]:ee==="rtl",[`${fe}-affix-wrapper-borderless`]:!K,[`${fe}-affix-wrapper-sm`]:ce==="small",[`${fe}-affix-wrapper-lg`]:ce==="large",[`${fe}-textarea-show-count`]:z},(0,G.Z)(`${fe}-affix-wrapper`,ve),tt)},classNames:Object.assign(Object.assign({},le),{textarea:Q()({[`${fe}-borderless`]:!K,[`${fe}-sm`]:ce==="small",[`${fe}-lg`]:ce==="large"},(0,G.Z)(fe,ve),tt,le==null?void 0:le.textarea)}),prefixCls:fe,suffix:Ce&&ie.createElement("span",{className:`${fe}-textarea-suffix`},Re),showCount:z,ref:Pe})))});qt.Z=O},59412:function(xn,qt,x){"use strict";x.d(qt,{Z:function(){return ue}});var ge=x(59301);function ue(Q,Te){const ie=(0,ge.useRef)([]),G=()=>{ie.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(),()=>ie.current.forEach(B=>{B&&clearTimeout(B)})),[]),G}},92832:function(xn,qt,x){"use strict";x.d(qt,{default:function(){return ce}});var ge=x(92310),ue=x.n(ge),Q=x(59301),Te=x(36355),ie=x(32441),G=x(9937),f=D=>{const{getPrefixCls:ot,direction:Le}=(0,Q.useContext)(Te.E_),{prefixCls:Ce,className:Re}=D,ve=ot("input-group",Ce),Pe=ot("input"),[fe,ye]=(0,G.ZP)(Pe),at=ue()(ve,{[`${ve}-lg`]:D.size==="large",[`${ve}-sm`]:D.size==="small",[`${ve}-compact`]:D.compact,[`${ve}-rtl`]:Le==="rtl"},ye,Re),tt=(0,Q.useContext)(ie.aM),rt=(0,Q.useMemo)(()=>Object.assign(Object.assign({},tt),{isFormItemInput:!1}),[tt]);return fe(Q.createElement("span",{className:at,style:D.style,onMouseEnter:D.onMouseEnter,onMouseLeave:D.onMouseLeave,onFocus:D.onFocus,onBlur:D.onBlur},Q.createElement(ie.aM.Provider,{value:rt},D.children)))},E=x(9432),h=x(73331),Z=x(15277),S=x(2738),_=x(8654),O=x(59412),R=function(D,ot){var Le={};for(var Ce in D)Object.prototype.hasOwnProperty.call(D,Ce)&&ot.indexOf(Ce)<0&&(Le[Ce]=D[Ce]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Ce=Object.getOwnPropertySymbols(D);Re<Ce.length;Re++)ot.indexOf(Ce[Re])<0&&Object.prototype.propertyIsEnumerable.call(D,Ce[Re])&&(Le[Ce[Re]]=D[Ce[Re]]);return Le};const I=D=>D?Q.createElement(Z.Z,null):Q.createElement(h.Z,null),Y={click:"onClick",hover:"onMouseOver"};var se=Q.forwardRef((D,ot)=>{const{visibilityToggle:Le=!0}=D,Ce=typeof Le=="object"&&Le.visible!==void 0,[Re,ve]=(0,Q.useState)(()=>Ce?Le.visible:!1),Pe=(0,Q.useRef)(null);Q.useEffect(()=>{Ce&&ve(Le.visible)},[Ce,Le]);const fe=(0,O.Z)(Pe),ye=()=>{const{disabled:nt}=D;nt||(Re&&fe(),ve(k=>{var p;const d=!k;return typeof Le=="object"&&((p=Le.onVisibleChange)===null||p===void 0||p.call(Le,d)),d}))},at=nt=>{const{action:k="click",iconRender:p=I}=D,d=Y[k]||"",w=p(Re),q={[d]:ye,className:`${nt}-icon`,key:"passwordIcon",onMouseDown:Se=>{Se.preventDefault()},onMouseUp:Se=>{Se.preventDefault()}};return Q.cloneElement(Q.isValidElement(w)?w:Q.createElement("span",null,w),q)},{className:tt,prefixCls:rt,inputPrefixCls:At,size:Nt}=D,jt=R(D,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Qt}=Q.useContext(Te.E_),ur=Qt("input",At),or=Qt("input-password",rt),xr=Le&&at(or),fr=ue()(or,tt,{[`${or}-${Nt}`]:!!Nt}),L=Object.assign(Object.assign({},(0,S.Z)(jt,["suffix","iconRender","visibilityToggle"])),{type:Re?"text":"password",className:fr,prefixCls:ur,suffix:xr});return Nt&&(L.size=Nt),Q.createElement(E.Z,Object.assign({ref:(0,_.sQ)(ot,Pe)},L))}),te=x(47472),X=x(92343),W=x(3113),z=x(19716),le=x(33234),he=function(D,ot){var Le={};for(var Ce in D)Object.prototype.hasOwnProperty.call(D,Ce)&&ot.indexOf(Ce)<0&&(Le[Ce]=D[Ce]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Ce=Object.getOwnPropertySymbols(D);Re<Ce.length;Re++)ot.indexOf(Ce[Re])<0&&Object.prototype.propertyIsEnumerable.call(D,Ce[Re])&&(Le[Ce[Re]]=D[Ce[Re]]);return Le},Be=Q.forwardRef((D,ot)=>{const{prefixCls:Le,inputPrefixCls:Ce,className:Re,size:ve,suffix:Pe,enterButton:fe=!1,addonAfter:ye,loading:at,disabled:tt,onSearch:rt,onChange:At,onCompositionStart:Nt,onCompositionEnd:jt}=D,Qt=he(D,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:ur,direction:or}=Q.useContext(Te.E_),xr=Q.useRef(!1),fr=ur("input-search",Le),L=ur("input",Ce),{compactSize:nt}=(0,le.ri)(fr,or),k=(0,z.Z)(ut=>{var ct;return(ct=ve!=null?ve:nt)!==null&&ct!==void 0?ct:ut}),p=Q.useRef(null),d=ut=>{ut&&ut.target&&ut.type==="click"&&rt&&rt(ut.target.value,ut,{source:"clear"}),At&&At(ut)},w=ut=>{var ct;document.activeElement===((ct=p.current)===null||ct===void 0?void 0:ct.input)&&ut.preventDefault()},q=ut=>{var ct,Ie;rt&&rt((Ie=(ct=p.current)===null||ct===void 0?void 0:ct.input)===null||Ie===void 0?void 0:Ie.value,ut,{source:"input"})},Se=ut=>{xr.current||at||q(ut)},H=typeof fe=="boolean"?Q.createElement(te.Z,null):null,ne=`${fr}-button`;let Ge;const xe=fe||{},we=xe.type&&xe.type.__ANT_BUTTON===!0;we||xe.type==="button"?Ge=(0,X.Tm)(xe,Object.assign({onMouseDown:w,onClick:ut=>{var ct,Ie;(Ie=(ct=xe==null?void 0:xe.props)===null||ct===void 0?void 0:ct.onClick)===null||Ie===void 0||Ie.call(ct,ut),q(ut)},key:"enterButton"},we?{className:ne,size:k}:{})):Ge=Q.createElement(W.ZP,{className:ne,type:fe?"primary":void 0,size:k,disabled:tt,key:"enterButton",onMouseDown:w,onClick:q,loading:at,icon:H},fe),ye&&(Ge=[Ge,(0,X.Tm)(ye,{key:"addonAfter"})]);const Ye=ue()(fr,{[`${fr}-rtl`]:or==="rtl",[`${fr}-${k}`]:!!k,[`${fr}-with-button`]:!!fe},Re),_t=ut=>{xr.current=!0,Nt==null||Nt(ut)},pe=ut=>{xr.current=!1,jt==null||jt(ut)};return Q.createElement(E.Z,Object.assign({ref:(0,_.sQ)(p,ot),onPressEnter:Se},Qt,{size:k,onCompositionStart:_t,onCompositionEnd:pe,prefixCls:L,addonAfter:Ge,suffix:Pe,onChange:d,className:Ye,disabled:tt}))}),je=x(1643);const ee=E.Z;ee.Group=f,ee.Search=Be,ee.TextArea=je.Z,ee.Password=se;var ce=ee},9937:function(xn,qt,x){"use strict";x.d(qt,{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 ie},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 ie=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:z,fontSizeLG:le,lineHeightLG:he,borderRadiusLG:Ne,paddingInlineLG:Be}=W;return{padding:`${z}px ${Be}px`,fontSize:le,lineHeight:he,borderRadius:Ne}},h=W=>({padding:`${W.paddingBlockSM}px ${W.paddingInlineSM}px`,borderRadius:W.borderRadiusSM}),Z=(W,z)=>{const{componentCls:le,colorError:he,colorWarning:Ne,errorActiveShadow:Be,warningActiveShadow:je,colorErrorBorderHover:ee,colorWarningBorderHover:ce}=W;return{[`&-status-error:not(${z}-disabled):not(${z}-borderless)${z}`]:{borderColor:he,"&:hover":{borderColor:ee},"&:focus, &-focused":Object.assign({},B((0,Q.TS)(W,{activeBorderColor:he,activeShadow:Be}))),[`${le}-prefix, ${le}-suffix`]:{color:he}},[`&-status-warning:not(${z}-disabled):not(${z}-borderless)${z}`]:{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}`},ie(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:z,antCls:le}=W;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:W.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${z}, &-lg > ${z}-group-addon`]:Object.assign({},E(W)),[`&-sm ${z}, &-sm > ${z}-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},[`> ${z}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${z}-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}},[`${z}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${z}-search-with-button &`]:{zIndex:0}}},[`> ${z}:first-child, ${z}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${le}-select ${le}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${z}-affix-wrapper`]:{[`&:not(:first-child) ${z}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${z}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${z}:last-child, ${z}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${le}-select ${le}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${z}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${z}-search &`]:{borderStartStartRadius:W.borderRadius,borderEndStartRadius:W.borderRadius}},[`&:not(:first-child), ${z}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${z}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,ge.dF)()),{[`${z}-group-addon, ${z}-group-wrap, > ${z}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:W.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
& > ${z}-affix-wrapper,
& > ${z}-number-affix-wrapper,
& > ${le}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-W.lineWidth,borderInlineEndWidth:W.lineWidth},[`${z}`]:{float:"none"},[`& > ${le}-select > ${le}-select-selector,
& > ${le}-select-auto-complete ${z},
& > ${le}-cascader-picker ${z},
& > ${z}-group-wrapper ${z}`]:{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 ${z},
& > ${le}-cascader-picker:first-child ${z}`]:{borderStartStartRadius:W.borderRadius,borderEndStartRadius:W.borderRadius},[`& > *:last-child,
& > ${le}-select:last-child > ${le}-select-selector,
& > ${le}-cascader-picker:last-child ${z},
& > ${le}-cascader-picker-focused:last-child ${z}`]:{borderInlineEndWidth:W.lineWidth,borderStartEndRadius:W.borderRadius,borderEndEndRadius:W.borderRadius},[`& > ${le}-select-auto-complete ${z}`]:{verticalAlign:"top"},[`${z}-group-wrapper + ${z}-group-wrapper`]:{marginInlineStart:-W.lineWidth,[`${z}-affix-wrapper`]:{borderRadius:0}},[`${z}-group-wrapper:not(:last-child)`]:{[`&${z}-search > ${z}-group`]:{[`& > ${z}-group-addon > ${z}-search-button`]:{borderRadius:0},[`& > ${z}`]:{borderStartStartRadius:W.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:W.borderRadius}}}})}},O=W=>{const{componentCls:z,controlHeightSM:le,lineWidth:he}=W,Be=(le-he*2-16)/2;return{[z]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ge.Wf)(W)),S(W)),Z(W,z)),{'&[type="color"]':{height:W.controlHeight,[`&${z}-lg`]:{height:W.controlHeightLG},[`&${z}-sm`]:{height:le,paddingTop:Be,paddingBottom:Be}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},R=W=>{const{componentCls:z}=W;return{[`${z}-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:z,inputAffixPadding:le,colorTextDescription:he,motionDurationSlow:Ne,colorIcon:Be,colorIconHover:je,iconCls:ee}=W;return{[`${z}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},S(W)),{display:"inline-flex",[`&:not(${z}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},G(W)),{zIndex:1,[`${z}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${z}[disabled]`]:{background:"transparent"}},[`> input${z}`]:{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"'},[`${z}`]:{"&-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)),{[`${ee}${z}-password-icon`]:{color:Be,cursor:"pointer",transition:`all ${Ne}`,"&:hover":{color:je}}}),Z(W,`${z}-affix-wrapper`))}},Y=W=>{const{componentCls:z,colorError:le,colorWarning:he,borderRadiusLG:Ne,borderRadiusSM:Be}=W;return{[`${z}-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":{[`${z}-group-addon`]:{borderRadius:Ne,fontSize:W.fontSizeLG}},"&-sm":{[`${z}-group-addon`]:{borderRadius:Be}},"&-status-error":{[`${z}-group-addon`]:{color:le,borderColor:le}},"&-status-warning":{[`${z}-group-addon`]:{color:he,borderColor:he}},"&-disabled":{[`${z}-group-addon`]:Object.assign({},f(W))},[`&:not(${z}-compact-first-item):not(${z}-compact-last-item)${z}-compact-item`]:{[`${z}, ${z}-group-addon`]:{borderRadius:0}},[`&:not(${z}-compact-last-item)${z}-compact-first-item`]:{[`${z}, ${z}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${z}-compact-first-item)${z}-compact-last-item`]:{[`${z}, ${z}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},K=W=>{const{componentCls:z,antCls:le}=W,he=`${z}-search`;return{[he]:{[`${z}`]:{"&:hover, &:focus":{borderColor:W.colorPrimaryHover,[`+ ${z}-group-addon ${he}-button:not(${le}-btn-primary)`]:{borderInlineStartColor:W.colorPrimaryHover}}},[`${z}-affix-wrapper`]:{borderRadius:0},[`${z}-lg`]:{lineHeight:W.lineHeightLG-2e-4},[`> ${z}-group`]:{[`> ${z}-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"},[`&${z}-compact-item`]:{[`&:not(${z}-compact-last-item)`]:{[`${z}-group-addon`]:{[`${z}-search-button`]:{marginInlineEnd:-W.lineWidth,borderRadius:0}}},[`&:not(${z}-compact-first-item)`]:{[`${z},${z}-affix-wrapper`]:{borderRadius:0}},[`> ${z}-group-addon ${z}-search-button,
> ${z},
${z}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${z}-affix-wrapper-focused`]:{zIndex:2}}}}},se=W=>{const{componentCls:z,paddingLG:le}=W,he=`${z}-textarea`;return{[he]:{position:"relative","&-show-count":{[`> ${z}`]:{height:"100%"},[`${z}-data-count`]:{position:"absolute",bottom:-W.fontSize*W.lineHeight,insetInlineEnd:0,color:W.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${z}`]:{paddingInlineEnd:le}},[`&-affix-wrapper${he}-has-feedback`]:{[`${z}`]:{paddingInlineEnd:le}},[`&-affix-wrapper${z}-affix-wrapper`]:{padding:0,[`> textarea${z}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${z}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${z}-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:z,fontSize:le,lineHeight:he,lineWidth:Ne,controlHeightSM:Be,controlHeightLG:je,fontSizeLG:ee,lineHeightLG:ce,paddingSM:D,controlPaddingHorizontalSM:ot,controlPaddingHorizontal:Le,colorFillAlter:Ce,colorPrimaryHover:Re,controlOutlineWidth:ve,controlOutline:Pe,colorErrorOutline:fe,colorWarningOutline:ye}=W;return{paddingBlock:Math.max(Math.round((z-le*he)/2*10)/10-Ne,3),paddingBlockSM:Math.max(Math.round((Be-le*he)/2*10)/10-Ne,0),paddingBlockLG:Math.ceil((je-ee*ce)/2*10)/10-Ne,paddingInline:D-Ne,paddingInlineSM:ot-Ne,paddingInlineLG:Le-Ne,addonBg:Ce,activeBorderColor:Re,hoverBorderColor:Re,activeShadow:`0 0 0 ${ve}px ${Pe}`,errorActiveShadow:`0 0 0 ${ve}px ${fe}`,warningActiveShadow:`0 0 0 ${ve}px ${ye}`}};qt.ZP=(0,Te.Z)("Input",W=>{const z=(0,Q.TS)(W,te(W));return[O(z),se(z),I(z),Y(z),K(z),(0,ue.c)(z)]},X)},45818:function(xn,qt,x){"use strict";x.d(qt,{D:function(){return te},Z:function(){return z}});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,ie=x(7657),G=function(he,Ne){return ue.createElement(ie.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 Be in le)Object.prototype.hasOwnProperty.call(le,Be)&&he.indexOf(Be)<0&&(Ne[Be]=le[Be]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Be=Object.getOwnPropertySymbols(le);je<Be.length;je++)he.indexOf(Be[je])<0&&Object.prototype.propertyIsEnumerable.call(le,Be[je])&&(Ne[Be[je]]=le[Be[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 z=ue.forwardRef((le,he)=>{const{prefixCls:Ne,className:Be,trigger:je,children:ee,defaultCollapsed:ce=!1,theme:D="dark",style:ot={},collapsible:Le=!1,reverseArrow:Ce=!1,width:Re=200,collapsedWidth:ve=80,zeroWidthTriggerStyle:Pe,breakpoint:fe,onCollapse:ye,onBreakpoint:at}=le,tt=K(le,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:rt}=(0,ue.useContext)(Y.Gs),[At,Nt]=(0,ue.useState)("collapsed"in le?le.collapsed:ce),[jt,Qt]=(0,ue.useState)(!1);(0,ue.useEffect)(()=>{"collapsed"in le&&Nt(le.collapsed)},[le.collapsed]);const ur=(k,p)=>{"collapsed"in le||Nt(k),ye==null||ye(k,p)},or=(0,ue.useRef)();or.current=k=>{Qt(k.matches),at==null||at(k.matches),At!==k.matches&&ur(k.matches,"responsive")},(0,ue.useEffect)(()=>{function k(d){return or.current(d)}let p;if(typeof window!="undefined"){const{matchMedia:d}=window;if(d&&fe&&fe in se){p=d(`(max-width: ${se[fe]})`);try{p.addEventListener("change",k)}catch(w){p.addListener(k)}k(p)}}return()=>{try{p==null||p.removeEventListener("change",k)}catch(d){p==null||p.removeListener(k)}}},[fe]),(0,ue.useEffect)(()=>{const k=X("ant-sider-");return rt.addSider(k),()=>rt.removeSider(k)},[]);const xr=()=>{ur(!At,"clickTrigger")},{getPrefixCls:fr}=(0,ue.useContext)(I.E_),L=()=>{const k=fr("layout-sider",Ne),p=(0,_.Z)(tt,["collapsed"]),d=At?ve:Re,w=R(d)?`${d}px`:String(d),q=parseFloat(String(ve||0))===0?ue.createElement("span",{onClick:xr,className:S()(`${k}-zero-width-trigger`,`${k}-zero-width-trigger-${Ce?"right":"left"}`),style:Pe},je||ue.createElement(f,null)):null,ne={expanded:Ce?ue.createElement(h.Z,null):ue.createElement(E.Z,null),collapsed:Ce?ue.createElement(E.Z,null):ue.createElement(h.Z,null)}[At?"collapsed":"expanded"],Ge=je!==null?q||ue.createElement("div",{className:`${k}-trigger`,onClick:xr,style:{width:w}},je||ne):null,xe=Object.assign(Object.assign({},ot),{flex:`0 0 ${w}`,maxWidth:w,minWidth:w,width:w}),we=S()(k,`${k}-${D}`,{[`${k}-collapsed`]:!!At,[`${k}-has-trigger`]:Le&&je!==null&&!q,[`${k}-below`]:!!jt,[`${k}-zero-width`]:parseFloat(w)===0},Be);return ue.createElement("aside",Object.assign({className:we},p,{style:xe,ref:he}),ue.createElement("div",{className:`${k}-children`},ee),Le||jt&&q?Ge:null)},nt=ue.useMemo(()=>({siderCollapsed:At}),[At]);return ue.createElement(te.Provider,{value:nt},L())})},84966:function(xn,qt,x){"use strict";x.d(qt,{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),ie=x(59301),G=x(36355),B=x(83116),E=W=>{const{componentCls:z,bodyBg:le,lightSiderBg:he,lightTriggerBg:Ne,lightTriggerColor:Be}=W;return{[`${z}-sider-light`]:{background:he,[`${z}-sider-trigger`]:{color:Be,background:Ne},[`${z}-sider-zero-width-trigger`]:{color:Be,background:Ne,border:`1px solid ${le}`,borderInlineStart:0}}}};const h=W=>{const{antCls:z,componentCls:le,colorText:he,triggerColor:Ne,footerBg:Be,triggerBg:je,headerHeight:ee,headerPadding:ce,headerColor:D,footerPadding:ot,triggerHeight:Le,zeroTriggerHeight:Ce,zeroTriggerWidth:Re,motionDurationMid:ve,motionDurationSlow:Pe,fontSize:fe,borderRadius:ye,bodyBg:at,headerBg:tt,siderBg:rt}=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:rt,transition:`all ${ve}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${z}-menu${z}-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:ee,insetInlineEnd:-Re,zIndex:1,width:Re,height:Ce,color:Ne,fontSize:W.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:rt,borderStartStartRadius:0,borderStartEndRadius:ye,borderEndEndRadius:ye,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Pe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Pe}`,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:ee,padding:ce,color:D,lineHeight:`${ee}px`,background:tt,[`${z}-menu`]:{lineHeight:"inherit"}},[`${le}-footer`]:{padding:ot,color:he,fontSize:fe,background:Be},[`${le}-content`]:{flex:"auto",minHeight:0}}};var Z=(0,B.Z)("Layout",W=>[h(W)],W=>{const{colorBgLayout:z,controlHeight:le,controlHeightLG:he,colorText:Ne,controlHeightSM:Be,marginXXS:je,colorTextLightSolid:ee,colorBgContainer:ce}=W,D=he*1.25;return{colorBgHeader:"#001529",colorBgBody:z,colorBgTrigger:"#002140",bodyBg:z,headerBg:"#001529",headerHeight:le*2,headerPadding:`0 ${D}px`,headerColor:Ne,footerPadding:`${Be}px ${D}px`,footerBg:z,siderBg:"#001529",triggerHeight:he+je*2,triggerBg:"#002140",triggerColor:ee,zeroTriggerWidth:he,zeroTriggerHeight:he,lightSiderBg:ce,lightTriggerBg:ce,lightTriggerColor:Ne}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),S=function(W,z){var le={};for(var he in W)Object.prototype.hasOwnProperty.call(W,he)&&z.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++)z.indexOf(he[Ne])<0&&Object.prototype.propertyIsEnumerable.call(W,he[Ne])&&(le[he[Ne]]=W[he[Ne]]);return le};const _=ie.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function O(W){let{suffixCls:z,tagName:le,displayName:he}=W;return Ne=>ie.forwardRef((je,ee)=>ie.createElement(Ne,Object.assign({ref:ee,suffixCls:z,tagName:le},je)))}const R=ie.forwardRef((W,z)=>{const{prefixCls:le,suffixCls:he,className:Ne,tagName:Be}=W,je=S(W,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ee}=ie.useContext(G.E_),ce=ee("layout",le),[D,ot]=Z(ce),Le=he?`${ce}-${he}`:ce;return D(ie.createElement(Be,Object.assign({className:Q()(le||Le,Ne,ot),ref:z},je)))}),I=ie.forwardRef((W,z)=>{const{direction:le}=ie.useContext(G.E_),[he,Ne]=ie.useState([]),{prefixCls:Be,className:je,rootClassName:ee,children:ce,hasSider:D,tagName:ot,style:Le}=W,Ce=S(W,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Re=(0,Te.Z)(Ce,["suffixCls"]),{getPrefixCls:ve,layout:Pe}=ie.useContext(G.E_),fe=ve("layout",Be),[ye,at]=Z(fe),tt=Q()(fe,{[`${fe}-has-sider`]:typeof D=="boolean"?D:he.length>0,[`${fe}-rtl`]:le==="rtl"},Pe==null?void 0:Pe.className,je,ee,at),rt=ie.useMemo(()=>({siderHook:{addSider:At=>{Ne(Nt=>[].concat((0,ge.Z)(Nt),[At]))},removeSider:At=>{Ne(Nt=>Nt.filter(jt=>jt!==At))}}}),[]);return ye(ie.createElement(_.Provider,{value:rt},ie.createElement(ot,Object.assign({ref:z,className:tt,style:Object.assign(Object.assign({},Pe==null?void 0:Pe.style),Le)},Re),ce)))}),Y=O({tagName:"div",displayName:"Layout"})(I),K=O({suffixCls:"header",tagName:"header",displayName:"Header"})(R),se=O({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(R),te=O({suffixCls:"content",tagName:"main",displayName:"Content"})(R);var X=Y},40875:function(xn,qt,x){"use strict";x.d(qt,{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 ie=ge.createContext(null),G=ge.forwardRef((B,f)=>{const{children:E}=B,h=Te(B,["children"]),Z=ge.useContext(ie),S=ge.useMemo(()=>Object.assign(Object.assign({},Z),h),[Z,h.prefixCls,h.mode,h.selectable]);return ge.createElement(ie.Provider,{value:S},ge.createElement(ue.BR,null,(0,Q.supportNodeRef)(E)?ge.cloneElement(E,{ref:f}):E))});qt.Z=ie},20834:function(xn,qt,x){"use strict";x.d(qt,{default:function(){return nt}});var ge=x(15285),ue=x(59301),Q=x(45818),Te=x(92310),ie=x.n(Te),G=x(36355),B=function(k,p){var d={};for(var w in k)Object.prototype.hasOwnProperty.call(k,w)&&p.indexOf(w)<0&&(d[w]=k[w]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,w=Object.getOwnPropertySymbols(k);q<w.length;q++)p.indexOf(w[q])<0&&Object.prototype.propertyIsEnumerable.call(k,w[q])&&(d[w[q]]=k[w[q]]);return d},E=k=>{const{prefixCls:p,className:d,dashed:w}=k,q=B(k,["prefixCls","className","dashed"]),{getPrefixCls:Se}=ue.useContext(G.E_),H=Se("menu",p),ne=ie()({[`${H}-item-divider-dashed`]:!!w},d);return ue.createElement(ge.iz,Object.assign({className:ne},q))},h=x(11592),Z=x(2738),S=x(6848),_=x(92343),R=(0,ue.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Y=k=>{var p;const{className:d,children:w,icon:q,title:Se,danger:H}=k,{prefixCls:ne,firstLevel:Ge,direction:xe,disableMenuItemTitleTooltip:we,inlineCollapsed:Ye}=ue.useContext(R),_t=vt=>{const zt=ue.createElement("span",{className:`${ne}-title-content`},w);return(!q||(0,_.l$)(w)&&w.type==="span")&&w&&vt&&Ge&&typeof w=="string"?ue.createElement("div",{className:`${ne}-inline-collapsed-noicon`},w.charAt(0)):zt},{siderCollapsed:pe}=ue.useContext(Q.D);let ut=Se;typeof Se=="undefined"?ut=Ge?w:"":Se===!1&&(ut="");const ct={title:ut};!pe&&!Ye&&(ct.title=null,ct.open=!1);const Ie=(0,h.Z)(w).length;let ke=ue.createElement(ge.ck,Object.assign({},(0,Z.Z)(k,["title","icon","danger"]),{className:ie()({[`${ne}-item-danger`]:H,[`${ne}-item-only-child`]:(q?Ie+1:Ie)===1},d),title:typeof Se=="string"?Se:void 0}),(0,_.Tm)(q,{className:ie()((0,_.l$)(q)?(p=q.props)===null||p===void 0?void 0:p.className:"",`${ne}-item-icon`)}),_t(Ye));return we||(ke=ue.createElement(S.Z,Object.assign({},ct,{placement:xe==="rtl"?"left":"right",overlayClassName:`${ne}-inline-collapsed-tooltip`}),ke)),ke},se=k=>{var p;const{popupClassName:d,icon:w,title:q,theme:Se}=k,H=ue.useContext(R),{prefixCls:ne,inlineCollapsed:Ge,theme:xe}=H,we=(0,ge.Xl)();let Ye;if(!w)Ye=Ge&&!we.length&&q&&typeof q=="string"?ue.createElement("div",{className:`${ne}-inline-collapsed-noicon`},q.charAt(0)):ue.createElement("span",{className:`${ne}-title-content`},q);else{const pe=(0,_.l$)(q)&&q.type==="span";Ye=ue.createElement(ue.Fragment,null,(0,_.Tm)(w,{className:ie()((0,_.l$)(w)?(p=w.props)===null||p===void 0?void 0:p.className:"",`${ne}-item-icon`)}),pe?q:ue.createElement("span",{className:`${ne}-title-content`},q))}const _t=ue.useMemo(()=>Object.assign(Object.assign({},H),{firstLevel:!1}),[H]);return ue.createElement(R.Provider,{value:_t},ue.createElement(ge.Wd,Object.assign({},(0,Z.Z)(k,["icon"]),{title:Ye,popupClassName:ie()(ne,d,`${ne}-${Se||xe}`)})))},te=x(18785),X=x(70425),W=x(62892),z=x(40875),le=function(k,p){var d={};for(var w in k)Object.prototype.hasOwnProperty.call(k,w)&&p.indexOf(w)<0&&(d[w]=k[w]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,w=Object.getOwnPropertySymbols(k);q<w.length;q++)p.indexOf(w[q])<0&&Object.prototype.propertyIsEnumerable.call(k,w[q])&&(d[w[q]]=k[w[q]]);return d};function he(k){return(k||[]).map((p,d)=>{if(p&&typeof p=="object"){const w=p,{label:q,children:Se,key:H,type:ne}=w,Ge=le(w,["label","children","key","type"]),xe=H!=null?H:`tmp-${d}`;return Se||ne==="group"?ne==="group"?ue.createElement(ge.BW,Object.assign({key:xe},Ge,{title:q}),he(Se)):ue.createElement(se,Object.assign({key:xe},Ge,{title:q}),he(Se)):ne==="divider"?ue.createElement(E,Object.assign({key:xe},Ge)):ue.createElement(Y,Object.assign({key:xe},Ge),q)}return null}).filter(p=>p)}function Ne(k){return ue.useMemo(()=>k&&he(k),[k])}var Be=x(64993),je=x(17313),ee=x(8378),ce=x(13826),D=x(29878),ot=x(83116),Le=x(37613),Re=k=>{const{componentCls:p,motionDurationSlow:d,horizontalLineHeight:w,colorSplit:q,lineWidth:Se,lineType:H,itemPaddingInline:ne}=k;return{[`${p}-horizontal`]:{lineHeight:w,border:0,borderBottom:`${Se}px ${H} ${q}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${p}-item, ${p}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ne},[`> ${p}-item:hover,
> ${p}-item-active,
> ${p}-submenu ${p}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${p}-item, ${p}-submenu-title`]:{transition:[`border-color ${d}`,`background ${d}`].join(",")},[`${p}-submenu-arrow`]:{display:"none"}}}},Pe=k=>{let{componentCls:p,menuArrowOffset:d}=k;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(-${d})`},"&::after":{transform:`rotate(45deg) translateY(${d})`}}}}};const fe=k=>Object.assign({},(0,je.oN)(k));var at=(k,p)=>{const{componentCls:d,itemColor:w,itemSelectedColor:q,groupTitleColor:Se,itemBg:H,subMenuItemBg:ne,itemSelectedBg:Ge,activeBarHeight:xe,activeBarWidth:we,activeBarBorderWidth:Ye,motionDurationSlow:_t,motionEaseInOut:pe,motionEaseOut:ut,itemPaddingInline:ct,motionDurationMid:Ie,itemHoverColor:ke,lineType:vt,colorSplit:zt,itemDisabledColor:Ut,dangerItemColor:ar,dangerItemHoverColor:Ir,dangerItemSelectedColor:Pr,dangerItemActiveBg:Kr,dangerItemSelectedBg:Tr,itemHoverBg:cr,itemActiveBg:Ar,menuSubMenuBg:zr,horizontalItemSelectedColor:cn,horizontalItemSelectedBg:Sn,horizontalItemBorderRadius:An,horizontalItemHoverBg:_n,popupBg:xi}=k;return{[`${d}-${p}, ${d}-${p} > ${d}`]:{color:w,background:H,[`&${d}-root:focus-visible`]:Object.assign({},fe(k)),[`${d}-item-group-title`]:{color:Se},[`${d}-submenu-selected`]:{[`> ${d}-submenu-title`]:{color:q}},[`${d}-item-disabled, ${d}-submenu-disabled`]:{color:`${Ut} !important`},[`${d}-item:not(${d}-item-selected):not(${d}-submenu-selected)`]:{[`&:hover, > ${d}-submenu-title:hover`]:{color:ke}},[`&:not(${d}-horizontal)`]:{[`${d}-item:not(${d}-item-selected)`]:{"&:hover":{backgroundColor:cr},"&:active":{backgroundColor:Ar}},[`${d}-submenu-title`]:{"&:hover":{backgroundColor:cr},"&:active":{backgroundColor:Ar}}},[`${d}-item-danger`]:{color:ar,[`&${d}-item:hover`]:{[`&:not(${d}-item-selected):not(${d}-submenu-selected)`]:{color:Ir}},[`&${d}-item:active`]:{background:Kr}},[`${d}-item a`]:{"&, &:hover":{color:"inherit"}},[`${d}-item-selected`]:{color:q,[`&${d}-item-danger`]:{color:Pr},"a, a:hover":{color:"inherit"}},[`& ${d}-item-selected`]:{backgroundColor:Ge,[`&${d}-item-danger`]:{backgroundColor:Tr}},[`${d}-item, ${d}-submenu-title`]:{[`&:not(${d}-item-disabled):focus-visible`]:Object.assign({},fe(k))},[`&${d}-submenu > ${d}`]:{backgroundColor:zr},[`&${d}-popup > ${d}`]:{backgroundColor:xi},[`&${d}-horizontal`]:Object.assign(Object.assign({},p==="dark"?{borderBottom:0}:{}),{[`> ${d}-item, > ${d}-submenu`]:{top:Ye,marginTop:-Ye,marginBottom:0,borderRadius:An,"&::after":{position:"absolute",insetInline:ct,bottom:0,borderBottom:`${xe}px solid transparent`,transition:`border-color ${_t} ${pe}`,content:'""'},"&:hover, &-active, &-open":{background:_n,"&::after":{borderBottomWidth:xe,borderBottomColor:cn}},"&-selected":{color:cn,backgroundColor:Sn,"&:hover":{backgroundColor:Sn},"&::after":{borderBottomWidth:xe,borderBottomColor:cn}}}}),[`&${d}-root`]:{[`&${d}-inline, &${d}-vertical`]:{borderInlineEnd:`${Ye}px ${vt} ${zt}`}},[`&${d}-inline`]:{[`${d}-sub${d}-inline`]:{background:ne},[`${d}-item, ${d}-submenu-title`]:Ye&&we?{width:`calc(100% + ${Ye}px)`}:{},[`${d}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${we}px solid ${q}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ie} ${ut}`,`opacity ${Ie} ${ut}`].join(","),content:'""'},[`&${d}-item-danger`]:{"&::after":{borderInlineEndColor:Pr}}},[`${d}-selected, ${d}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ie} ${pe}`,`opacity ${Ie} ${pe}`].join(",")}}}}}};const tt=k=>{const{componentCls:p,itemHeight:d,itemMarginInline:w,padding:q,menuArrowSize:Se,marginXS:H,itemMarginBlock:ne}=k,Ge=q+Se+H;return{[`${p}-item`]:{position:"relative",overflow:"hidden"},[`${p}-item, ${p}-submenu-title`]:{height:d,lineHeight:`${d}px`,paddingInline:q,overflow:"hidden",textOverflow:"ellipsis",marginInline:w,marginBlock:ne,width:`calc(100% - ${w*2}px)`},[`> ${p}-item,
> ${p}-submenu > ${p}-submenu-title`]:{height:d,lineHeight:`${d}px`},[`${p}-item-group-list ${p}-submenu-title,
${p}-submenu-title`]:{paddingInlineEnd:Ge}}};var At=k=>{const{componentCls:p,iconCls:d,itemHeight:w,colorTextLightSolid:q,dropdownWidth:Se,controlHeightLG:H,motionDurationMid:ne,motionEaseOut:Ge,paddingXL:xe,itemMarginInline:we,fontSizeLG:Ye,motionDurationSlow:_t,paddingXS:pe,boxShadowSecondary:ut,collapsedWidth:ct,collapsedIconSize:Ie}=k,ke={height:w,lineHeight:`${w}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[p]:{"&-inline, &-vertical":Object.assign({[`&${p}-root`]:{boxShadow:"none"}},tt(k))},[`${p}-submenu-popup`]:{[`${p}-vertical`]:Object.assign(Object.assign({},tt(k)),{boxShadow:ut})}},{[`${p}-submenu-popup ${p}-vertical${p}-sub`]:{minWidth:Se,maxHeight:`calc(100vh - ${H*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 ${ne} ${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`]:ke,[`& ${p}-item-group-title`]:{paddingInlineStart:xe}},[`${p}-item`]:ke}},{[`${p}-inline-collapsed`]:{width:ct,[`&${p}-root`]:{[`${p}-item, ${p}-submenu ${p}-submenu-title`]:{[`> ${p}-inline-collapsed-noicon`]:{fontSize:Ye,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% - ${Ye/2}px - ${we}px)`,textOverflow:"clip",[`
${p}-submenu-arrow,
${p}-submenu-expand-icon
`]:{opacity:0},[`${p}-item-icon, ${d}`]:{margin:0,fontSize:Ie,lineHeight:`${w}px`,"+ span":{display:"inline-block",opacity:0}}},[`${p}-item-icon, ${d}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${p}-item-icon, ${d}`]:{display:"none"},"a, a:hover":{color:q}},[`${p}-item-group-title`]:Object.assign(Object.assign({},je.vS),{paddingInline:pe})}}]};const Nt=k=>{const{componentCls:p,motionDurationSlow:d,motionDurationMid:w,motionEaseInOut:q,motionEaseOut:Se,iconCls:H,iconSize:ne,iconMarginInlineEnd:Ge}=k;return{[`${p}-item, ${p}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${d}`,`background ${d}`,`padding ${d} ${q}`].join(","),[`${p}-item-icon, ${H}`]:{minWidth:ne,fontSize:ne,transition:[`font-size ${w} ${Se}`,`margin ${d} ${q}`,`color ${d}`].join(","),"+ span":{marginInlineStart:Ge,opacity:1,transition:[`opacity ${d} ${q}`,`margin ${d}`,`color ${d}`].join(",")}},[`${p}-item-icon`]:Object.assign({},(0,je.Ro)()),[`&${p}-item-only-child`]:{[`> ${H}, > ${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"}}}},jt=k=>{const{componentCls:p,motionDurationSlow:d,motionEaseInOut:w,borderRadius:q,menuArrowSize:Se,menuArrowOffset:H}=k;return{[`${p}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:k.margin,width:Se,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${d} ${w}, opacity ${d}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Se*.6,height:Se*.15,backgroundColor:"currentcolor",borderRadius:q,transition:[`background ${d} ${w}`,`transform ${d} ${w}`,`top ${d} ${w}`,`color ${d} ${w}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${H})`},"&::after":{transform:`rotate(-45deg) translateY(${H})`}}}}},Qt=k=>{const{antCls:p,componentCls:d,fontSize:w,motionDurationSlow:q,motionDurationMid:Se,motionEaseInOut:H,paddingXS:ne,padding:Ge,colorSplit:xe,lineWidth:we,zIndexPopup:Ye,borderRadiusLG:_t,subMenuItemBorderRadius:pe,menuArrowSize:ut,menuArrowOffset:ct,lineType:Ie,menuPanelMaskInset:ke,groupTitleLineHeight:vt,groupTitleFontSize:zt}=k;return[{"":{[`${d}`]:Object.assign(Object.assign({},(0,je.dF)()),{"&-hidden":{display:"none"}})},[`${d}-submenu-hidden`]:{display:"none"}},{[d]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,je.Wf)(k)),(0,je.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:w,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${q} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${d}-item`]:{flex:"none"}},[`${d}-item, ${d}-submenu, ${d}-submenu-title`]:{borderRadius:k.itemBorderRadius},[`${d}-item-group-title`]:{padding:`${ne}px ${Ge}px`,fontSize:zt,lineHeight:vt,transition:`all ${q}`},[`&-horizontal ${d}-submenu`]:{transition:[`border-color ${q} ${H}`,`background ${q} ${H}`].join(",")},[`${d}-submenu, ${d}-submenu-inline`]:{transition:[`border-color ${q} ${H}`,`background ${q} ${H}`,`padding ${Se} ${H}`].join(",")},[`${d}-submenu ${d}-sub`]:{cursor:"initial",transition:[`background ${q} ${H}`,`padding ${q} ${H}`].join(",")},[`${d}-title-content`]:{transition:`color ${q}`},[`${d}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${d}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:xe,borderStyle:Ie,borderWidth:0,borderTopWidth:we,marginBlock:we,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Nt(k)),{[`${d}-item-group`]:{[`${d}-item-group-list`]:{margin:0,padding:0,[`${d}-item, ${d}-submenu-title`]:{paddingInline:`${w*2}px ${Ge}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ye,borderRadius:_t,boxShadow:"none",transformOrigin:"0 0",[`&${d}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${ke}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:ke},"\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:k.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:k.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:k.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:k.paddingXS},[`> ${d}`]:Object.assign(Object.assign(Object.assign({borderRadius:_t},Nt(k)),jt(k)),{[`${d}-item, ${d}-submenu > ${d}-submenu-title`]:{borderRadius:pe},[`${d}-submenu-title::after`]:{transition:`transform ${q} ${H}`}})}}),jt(k)),{[`&-inline-collapsed ${d}-submenu-arrow,
&-inline ${d}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ct})`},"&::after":{transform:`rotate(45deg) translateX(-${ct})`}},[`${d}-submenu-open${d}-submenu-inline > ${d}-submenu-title > ${d}-submenu-arrow`]:{transform:`translateY(-${ut*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${ct})`},"&::before":{transform:`rotate(45deg) translateX(${ct})`}}})},{[`${p}-layout-header`]:{[d]:{lineHeight:"inherit"}}}]};var ur=(k,p)=>(0,ot.Z)("Menu",w=>{if(p===!1)return[];const{colorBgElevated:q,colorPrimary:Se,colorTextLightSolid:H,controlHeightLG:ne,fontSize:Ge,darkItemColor:xe,darkDangerItemColor:we,darkItemBg:Ye,darkSubMenuItemBg:_t,darkItemSelectedColor:pe,darkItemSelectedBg:ut,darkDangerItemSelectedBg:ct,darkItemHoverBg:Ie,darkGroupTitleColor:ke,darkItemHoverColor:vt,darkItemDisabledColor:zt,darkDangerItemHoverColor:Ut,darkDangerItemSelectedColor:ar,darkDangerItemActiveBg:Ir}=w,Pr=Ge/7*5,Kr=(0,Le.TS)(w,{menuArrowSize:Pr,menuHorizontalHeight:ne*1.15,menuArrowOffset:`${Pr*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:q}),Tr=(0,Le.TS)(Kr,{itemColor:xe,itemHoverColor:vt,groupTitleColor:ke,itemSelectedColor:pe,itemBg:Ye,popupBg:Ye,subMenuItemBg:_t,itemActiveBg:"transparent",itemSelectedBg:ut,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ie,itemDisabledColor:zt,dangerItemColor:we,dangerItemHoverColor:Ut,dangerItemSelectedColor:ar,dangerItemActiveBg:Ir,dangerItemSelectedBg:ct,menuSubMenuBg:_t,horizontalItemSelectedColor:H,horizontalItemSelectedBg:Se});return[Qt(Kr),Re(Kr),At(Kr),at(Kr,"light"),at(Tr,"dark"),Pe(Kr),(0,ee.Z)(Kr),(0,ce.oN)(Kr,"slide-up"),(0,ce.oN)(Kr,"slide-down"),(0,D._y)(Kr,"zoom-big")]},w=>{const{colorPrimary:q,colorError:Se,colorTextDisabled:H,colorErrorBg:ne,colorText:Ge,colorTextDescription:xe,colorBgContainer:we,colorFillAlter:Ye,colorFillContent:_t,lineWidth:pe,lineWidthBold:ut,controlItemBgActive:ct,colorBgTextHover:Ie,controlHeightLG:ke,lineHeight:vt,colorBgElevated:zt,marginXXS:Ut,padding:ar,fontSize:Ir,controlHeightSM:Pr,fontSizeLG:Kr,colorTextLightSolid:Tr,colorErrorHover:cr}=w,Ar=new Be.C(Tr).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:q,horizontalItemHoverColor:q,colorGroupTitle:xe,groupTitleColor:xe,colorItemTextSelected:q,itemSelectedColor:q,colorItemTextSelectedHorizontal:q,horizontalItemSelectedColor:q,colorItemBg:we,itemBg:we,colorItemBgHover:Ie,itemHoverBg:Ie,colorItemBgActive:_t,itemActiveBg:ct,colorSubItemBg:Ye,subMenuItemBg:Ye,colorItemBgSelected:ct,itemSelectedBg:ct,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:ut,activeBarHeight:ut,colorActiveBarBorderSize:pe,activeBarBorderWidth:pe,colorItemTextDisabled:H,itemDisabledColor:H,colorDangerItemText:Se,dangerItemColor:Se,colorDangerItemTextHover:Se,dangerItemHoverColor:Se,colorDangerItemTextSelected:Se,dangerItemSelectedColor:Se,colorDangerItemBgActive:ne,dangerItemActiveBg:ne,colorDangerItemBgSelected:ne,dangerItemSelectedBg:ne,itemMarginInline:w.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ke,groupTitleLineHeight:vt,collapsedWidth:ke*2,popupBg:zt,itemMarginBlock:Ut,itemPaddingInline:ar,horizontalLineHeight:`${ke*1.15}px`,iconSize:Ir,iconMarginInlineEnd:Pr-Ir,collapsedIconSize:Kr,groupTitleFontSize:Ir,darkItemDisabledColor:new Be.C(Tr).setAlpha(.25).toRgbString(),darkItemColor:Ar,darkDangerItemColor:Se,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Tr,darkItemSelectedBg:q,darkDangerItemSelectedBg:Se,darkItemHoverBg:"transparent",darkGroupTitleColor:Ar,darkItemHoverColor:Tr,darkDangerItemHoverColor:cr,darkDangerItemSelectedColor:Tr,darkDangerItemActiveBg:Se}},{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"]]})(k),or=function(k,p){var d={};for(var w in k)Object.prototype.hasOwnProperty.call(k,w)&&p.indexOf(w)<0&&(d[w]=k[w]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,w=Object.getOwnPropertySymbols(k);q<w.length;q++)p.indexOf(w[q])<0&&Object.prototype.propertyIsEnumerable.call(k,w[q])&&(d[w[q]]=k[w[q]]);return d},fr=(0,ue.forwardRef)((k,p)=>{var d,w;const q=ue.useContext(z.Z),Se=q||{},{getPrefixCls:H,getPopupContainer:ne,direction:Ge,menu:xe}=ue.useContext(G.E_),we=H(),{prefixCls:Ye,className:_t,style:pe,theme:ut="light",expandIcon:ct,_internalDisableMenuItemTitleTooltip:Ie,inlineCollapsed:ke,siderCollapsed:vt,items:zt,children:Ut,rootClassName:ar,mode:Ir,selectable:Pr,onClick:Kr,overflowedIndicatorPopupClassName:Tr}=k,cr=or(k,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Ar=(0,Z.Z)(cr,["collapsedWidth"]),zr=Ne(zt)||Ut;(d=Se.validator)===null||d===void 0||d.call(Se,{mode:Ir});const cn=(0,X.useEvent)(function(){var Ki;Kr==null||Kr.apply(void 0,arguments),(Ki=Se.onClick)===null||Ki===void 0||Ki.call(Se)}),Sn=Se.mode||Ir,An=Pr!=null?Pr:Se.selectable,_n=ue.useMemo(()=>vt!==void 0?vt:ke,[ke,vt]),xi={horizontal:{motionName:`${we}-slide-up`},inline:(0,W.Z)(we),other:{motionName:`${we}-zoom-big`}},Mr=H("menu",Ye||Se.prefixCls),[ei,Bi]=ur(Mr,!q),zn=ie()(`${Mr}-${ut}`,xe==null?void 0:xe.className,_t);let Oi;if(typeof ct=="function")Oi=ct;else if(ct===null||ct===!1)Oi=null;else if(Se.expandIcon===null||Se.expandIcon===!1)Oi=null;else{const Ki=ct!=null?ct:Se.expandIcon;Oi=(0,_.Tm)(Ki,{className:ie()(`${Mr}-submenu-expand-icon`,(0,_.l$)(Ki)?(w=Ki.props)===null||w===void 0?void 0:w.className:"")})}const yi=ue.useMemo(()=>({prefixCls:Mr,inlineCollapsed:_n||!1,direction:Ge,firstLevel:!0,theme:ut,mode:Sn,disableMenuItemTitleTooltip:Ie}),[Mr,_n,Ge,Ie,ut]);return ei(ue.createElement(z.Z.Provider,{value:null},ue.createElement(R.Provider,{value:yi},ue.createElement(ge.ZP,Object.assign({getPopupContainer:ne,overflowedIndicator:ue.createElement(te.Z,null),overflowedIndicatorPopupClassName:ie()(Mr,`${Mr}-${ut}`,Tr),mode:Sn,selectable:An,onClick:cn},Ar,{inlineCollapsed:_n,style:Object.assign(Object.assign({},xe==null?void 0:xe.style),pe),className:zn,prefixCls:Mr,direction:Ge,defaultMotions:xi,expandIcon:Oi,ref:p,rootClassName:ie()(ar,Bi)}),zr))))});const L=(0,ue.forwardRef)((k,p)=>{const d=(0,ue.useRef)(null),w=ue.useContext(Q.D);return(0,ue.useImperativeHandle)(p,()=>({menu:d.current,focus:q=>{var Se;(Se=d.current)===null||Se===void 0||Se.focus(q)}})),ue.createElement(fr,Object.assign({ref:d},k,w))});L.Item=Y,L.SubMenu=se,L.Divider=E,L.ItemGroup=ge.BW;var nt=L},58421:function(xn,qt,x){"use strict";x.d(qt,{Z:function(){return Se}});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,ie=x(7657),G=function(ne,Ge){return ue.createElement(ie.Z,(0,ge.Z)({},ne,{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),O=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,z=x(91735),le=function(H){(0,K.Z)(Ge,H);var ne=(0,se.Z)(Ge);function Ge(){var xe;(0,I.Z)(this,Ge);for(var we=arguments.length,Ye=new Array(we),_t=0;_t<we;_t++)Ye[_t]=arguments[_t];return xe=ne.call.apply(ne,[this].concat(Ye)),xe.state={goInputText:""},xe.getValidValue=function(){var pe=xe.state.goInputText;return!pe||Number.isNaN(pe)?void 0:Number(pe)},xe.buildOptionText=function(pe){return"".concat(pe," ").concat(xe.props.locale.items_per_page)},xe.changeSize=function(pe){xe.props.changeSize(Number(pe))},xe.handleChange=function(pe){xe.setState({goInputText:pe.target.value})},xe.handleBlur=function(pe){var ut=xe.props,ct=ut.goButton,Ie=ut.quickGo,ke=ut.rootPrefixCls,vt=xe.state.goInputText;ct||vt===""||(xe.setState({goInputText:""}),!(pe.relatedTarget&&(pe.relatedTarget.className.indexOf("".concat(ke,"-item-link"))>=0||pe.relatedTarget.className.indexOf("".concat(ke,"-item"))>=0))&&Ie(xe.getValidValue()))},xe.go=function(pe){var ut=xe.state.goInputText;ut!==""&&(pe.keyCode===W.ENTER||pe.type==="click")&&(xe.setState({goInputText:""}),xe.props.quickGo(xe.getValidValue()))},xe}return(0,Y.Z)(Ge,[{key:"getPageSizeOptions",value:function(){var we=this.props,Ye=we.pageSize,_t=we.pageSizeOptions;return _t.some(function(pe){return pe.toString()===Ye.toString()})?_t:_t.concat([Ye.toString()]).sort(function(pe,ut){var ct=Number.isNaN(Number(pe))?0:Number(pe),Ie=Number.isNaN(Number(ut))?0:Number(ut);return ct-Ie})}},{key:"render",value:function(){var we=this,Ye=this.props,_t=Ye.pageSize,pe=Ye.locale,ut=Ye.rootPrefixCls,ct=Ye.changeSize,Ie=Ye.quickGo,ke=Ye.goButton,vt=Ye.selectComponentClass,zt=Ye.buildOptionText,Ut=Ye.selectPrefixCls,ar=Ye.disabled,Ir=this.state.goInputText,Pr="".concat(ut,"-options"),Kr=vt,Tr=null,cr=null,Ar=null;if(!ct&&!Ie)return null;var zr=this.getPageSizeOptions();if(ct&&Kr){var cn=zr.map(function(Sn,An){return ue.createElement(Kr.Option,{key:An,value:Sn.toString()},(zt||we.buildOptionText)(Sn))});Tr=ue.createElement(Kr,{disabled:ar,prefixCls:Ut,showSearch:!1,className:"".concat(Pr,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(_t||zr[0]).toString(),onChange:this.changeSize,getPopupContainer:function(An){return An.parentNode},"aria-label":pe.page_size,defaultOpen:!1},cn)}return Ie&&(ke&&(Ar=typeof ke=="boolean"?ue.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:ar,className:"".concat(Pr,"-quick-jumper-button")},pe.jump_to_confirm):ue.createElement("span",{onClick:this.go,onKeyUp:this.go},ke)),cr=ue.createElement("div",{className:"".concat(Pr,"-quick-jumper")},pe.jump_to,ue.createElement("input",{disabled:ar,type:"text",value:Ir,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":pe.page}),pe.page,Ar)),ue.createElement("li",{className:"".concat(Pr)},Tr,cr)}}]),Ge}(ue.Component);le.defaultProps={pageSizeOptions:["10","20","50","100"]};var he=le,Ne=function(ne){var Ge,xe=ne.rootPrefixCls,we=ne.page,Ye=ne.active,_t=ne.className,pe=ne.showTitle,ut=ne.onClick,ct=ne.onKeyPress,Ie=ne.itemRender,ke="".concat(xe,"-item"),vt=_()(ke,"".concat(ke,"-").concat(we),(Ge={},(0,O.Z)(Ge,"".concat(ke,"-active"),Ye),(0,O.Z)(Ge,"".concat(ke,"-disabled"),!we),(0,O.Z)(Ge,ne.className,_t),Ge)),zt=function(){ut(we)},Ut=function(Pr){ct(Pr,ut,we)},ar=Ie(we,"page",ue.createElement("a",{rel:"nofollow"},we));return ar?ue.createElement("li",{title:pe?we.toString():null,className:vt,onClick:zt,onKeyPress:Ut,tabIndex:0},ar):null},Be=Ne;function je(){}function ee(H){var ne=Number(H);return typeof ne=="number"&&!Number.isNaN(ne)&&isFinite(ne)&&Math.floor(ne)===ne}var ce=function(ne,Ge,xe){return xe};function D(H,ne,Ge){var xe=typeof H=="undefined"?ne.pageSize:H;return Math.floor((Ge.total-1)/xe)+1}var ot=function(H){(0,K.Z)(Ge,H);var ne=(0,se.Z)(Ge);function Ge(xe){var we;(0,I.Z)(this,Ge),we=ne.call(this,xe),we.paginationNode=ue.createRef(),we.getJumpPrevPage=function(){return Math.max(1,we.state.current-(we.props.showLessItems?3:5))},we.getJumpNextPage=function(){return Math.min(D(void 0,we.state,we.props),we.state.current+(we.props.showLessItems?3:5))},we.getItemIcon=function(ct,Ie){var ke=we.props.prefixCls,vt=ct||ue.createElement("button",{type:"button","aria-label":Ie,className:"".concat(ke,"-item-link")});return typeof ct=="function"&&(vt=ue.createElement(ct,(0,R.Z)({},we.props))),vt},we.isValid=function(ct){var Ie=we.props.total;return ee(ct)&&ct!==we.state.current&&ee(Ie)&&Ie>0},we.shouldDisplayQuickJumper=function(){var ct=we.props,Ie=ct.showQuickJumper,ke=ct.total,vt=we.state.pageSize;return ke<=vt?!1:Ie},we.handleKeyDown=function(ct){(ct.keyCode===W.ARROW_UP||ct.keyCode===W.ARROW_DOWN)&&ct.preventDefault()},we.handleKeyUp=function(ct){var Ie=we.getValidValue(ct),ke=we.state.currentInputValue;Ie!==ke&&we.setState({currentInputValue:Ie}),ct.keyCode===W.ENTER?we.handleChange(Ie):ct.keyCode===W.ARROW_UP?we.handleChange(Ie-1):ct.keyCode===W.ARROW_DOWN&&we.handleChange(Ie+1)},we.handleBlur=function(ct){var Ie=we.getValidValue(ct);we.handleChange(Ie)},we.changePageSize=function(ct){var Ie=we.state.current,ke=D(ct,we.state,we.props);Ie=Ie>ke?ke:Ie,ke===0&&(Ie=we.state.current),typeof ct=="number"&&("pageSize"in we.props||we.setState({pageSize:ct}),"current"in we.props||we.setState({current:Ie,currentInputValue:Ie})),we.props.onShowSizeChange(Ie,ct),"onChange"in we.props&&we.props.onChange&&we.props.onChange(Ie,ct)},we.handleChange=function(ct){var Ie=we.props,ke=Ie.disabled,vt=Ie.onChange,zt=we.state,Ut=zt.pageSize,ar=zt.current,Ir=zt.currentInputValue;if(we.isValid(ct)&&!ke){var Pr=D(void 0,we.state,we.props),Kr=ct;return ct>Pr?Kr=Pr:ct<1&&(Kr=1),"current"in we.props||we.setState({current:Kr}),Kr!==Ir&&we.setState({currentInputValue:Kr}),vt(Kr,Ut),Kr}return ar},we.prev=function(){we.hasPrev()&&we.handleChange(we.state.current-1)},we.next=function(){we.hasNext()&&we.handleChange(we.state.current+1)},we.jumpPrev=function(){we.handleChange(we.getJumpPrevPage())},we.jumpNext=function(){we.handleChange(we.getJumpNextPage())},we.hasPrev=function(){return we.state.current>1},we.hasNext=function(){return we.state.current<D(void 0,we.state,we.props)},we.runIfEnter=function(ct,Ie){if(ct.key==="Enter"||ct.charCode===13){for(var ke=arguments.length,vt=new Array(ke>2?ke-2:0),zt=2;zt<ke;zt++)vt[zt-2]=arguments[zt];Ie.apply(void 0,vt)}},we.runIfEnterPrev=function(ct){we.runIfEnter(ct,we.prev)},we.runIfEnterNext=function(ct){we.runIfEnter(ct,we.next)},we.runIfEnterJumpPrev=function(ct){we.runIfEnter(ct,we.jumpPrev)},we.runIfEnterJumpNext=function(ct){we.runIfEnter(ct,we.jumpNext)},we.handleGoTO=function(ct){(ct.keyCode===W.ENTER||ct.type==="click")&&we.handleChange(we.state.currentInputValue)},we.renderPrev=function(ct){var Ie=we.props,ke=Ie.prevIcon,vt=Ie.itemRender,zt=vt(ct,"prev",we.getItemIcon(ke,"prev page")),Ut=!we.hasPrev();return(0,ue.isValidElement)(zt)?(0,ue.cloneElement)(zt,{disabled:Ut}):zt},we.renderNext=function(ct){var Ie=we.props,ke=Ie.nextIcon,vt=Ie.itemRender,zt=vt(ct,"next",we.getItemIcon(ke,"next page")),Ut=!we.hasNext();return(0,ue.isValidElement)(zt)?(0,ue.cloneElement)(zt,{disabled:Ut}):zt};var Ye=xe.onChange!==je,_t="current"in xe;_t&&!Ye&&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=xe.defaultCurrent;"current"in xe&&(pe=xe.current);var ut=xe.defaultPageSize;return"pageSize"in xe&&(ut=xe.pageSize),pe=Math.min(pe,D(ut,void 0,xe)),we.state={current:pe,currentInputValue:pe,pageSize:ut},we}return(0,Y.Z)(Ge,[{key:"componentDidUpdate",value:function(we,Ye){var _t=this.props.prefixCls;if(Ye.current!==this.state.current&&this.paginationNode.current){var pe=this.paginationNode.current.querySelector(".".concat(_t,"-item-").concat(Ye.current));if(pe&&document.activeElement===pe){var ut;pe==null||(ut=pe.blur)===null||ut===void 0||ut.call(pe)}}}},{key:"getValidValue",value:function(we){var Ye=we.target.value,_t=D(void 0,this.state,this.props),pe=this.state.currentInputValue,ut;return Ye===""?ut=Ye:Number.isNaN(Number(Ye))?ut=pe:Ye>=_t?ut=_t:ut=Number(Ye),ut}},{key:"getShowSizeChanger",value:function(){var we=this.props,Ye=we.showSizeChanger,_t=we.total,pe=we.totalBoundaryShowSizeChanger;return typeof Ye!="undefined"?Ye:_t>pe}},{key:"render",value:function(){var we=this.props,Ye=we.prefixCls,_t=we.className,pe=we.style,ut=we.disabled,ct=we.hideOnSinglePage,Ie=we.total,ke=we.locale,vt=we.showQuickJumper,zt=we.showLessItems,Ut=we.showTitle,ar=we.showTotal,Ir=we.simple,Pr=we.itemRender,Kr=we.showPrevNextJumpers,Tr=we.jumpPrevIcon,cr=we.jumpNextIcon,Ar=we.selectComponentClass,zr=we.selectPrefixCls,cn=we.pageSizeOptions,Sn=this.state,An=Sn.current,_n=Sn.pageSize,xi=Sn.currentInputValue;if(ct===!0&&Ie<=_n)return null;var Mr=D(void 0,this.state,this.props),ei=[],Bi=null,zn=null,Oi=null,yi=null,Ki=null,Ca=vt&&vt.goButton,Zi=zt?1:2,ni=An-1>0?An-1:0,Si=An+1<Mr?An+1:Mr,Ui=(0,te.Z)(this.props,{aria:!0,data:!0}),me=ar&&ue.createElement("li",{className:"".concat(Ye,"-total-text")},ar(Ie,[Ie===0?0:(An-1)*_n+1,An*_n>Ie?Ie:An*_n]));if(Ir){Ca&&(typeof Ca=="boolean"?Ki=ue.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ke.jump_to_confirm):Ki=ue.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ca),Ki=ue.createElement("li",{title:Ut?"".concat(ke.jump_to).concat(An,"/").concat(Mr):null,className:"".concat(Ye,"-simple-pager")},Ki));var Ue=this.renderPrev(ni);return ue.createElement("ul",(0,ge.Z)({className:_()(Ye,"".concat(Ye,"-simple"),(0,O.Z)({},"".concat(Ye,"-disabled"),ut),_t),style:pe,ref:this.paginationNode},Ui),me,Ue?ue.createElement("li",{title:Ut?ke.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:_()("".concat(Ye,"-prev"),(0,O.Z)({},"".concat(Ye,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Ue):null,ue.createElement("li",{title:Ut?"".concat(An,"/").concat(Mr):null,className:"".concat(Ye,"-simple-pager")},ue.createElement("input",{type:"text",value:xi,disabled:ut,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ue.createElement("span",{className:"".concat(Ye,"-slash")},"/"),Mr),ue.createElement("li",{title:Ut?ke.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:_()("".concat(Ye,"-next"),(0,O.Z)({},"".concat(Ye,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Si)),Ki)}if(Mr<=3+Zi*2){var Me={locale:ke,rootPrefixCls:Ye,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Ut,itemRender:Pr};Mr||ei.push(ue.createElement(Be,(0,ge.Z)({},Me,{key:"noPager",page:1,className:"".concat(Ye,"-item-disabled")})));for(var st=1;st<=Mr;st+=1){var Zt=An===st;ei.push(ue.createElement(Be,(0,ge.Z)({},Me,{key:st,page:st,active:Zt})))}}else{var Kt=zt?ke.prev_3:ke.prev_5,Br=zt?ke.next_3:ke.next_5,hr=Pr(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Tr,"prev page")),Ur=Pr(this.getJumpNextPage(),"jump-next",this.getItemIcon(cr,"next page"));Kr&&(Bi=hr?ue.createElement("li",{title:Ut?Kt:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:_()("".concat(Ye,"-jump-prev"),(0,O.Z)({},"".concat(Ye,"-jump-prev-custom-icon"),!!Tr))},hr):null,zn=Ur?ue.createElement("li",{title:Ut?Br:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:_()("".concat(Ye,"-jump-next"),(0,O.Z)({},"".concat(Ye,"-jump-next-custom-icon"),!!cr))},Ur):null),yi=ue.createElement(Be,{locale:ke,last:!0,rootPrefixCls:Ye,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Mr,page:Mr,active:!1,showTitle:Ut,itemRender:Pr}),Oi=ue.createElement(Be,{locale:ke,rootPrefixCls:Ye,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Ut,itemRender:Pr});var Wr=Math.max(1,An-Zi),en=Math.min(An+Zi,Mr);An-1<=Zi&&(en=1+Zi*2),Mr-An<=Zi&&(Wr=Mr-Zi*2);for(var Vr=Wr;Vr<=en;Vr+=1){var Hr=An===Vr;ei.push(ue.createElement(Be,{locale:ke,rootPrefixCls:Ye,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Vr,page:Vr,active:Hr,showTitle:Ut,itemRender:Pr}))}An-1>=Zi*2&&An!==3&&(ei[0]=(0,ue.cloneElement)(ei[0],{className:"".concat(Ye,"-item-after-jump-prev")}),ei.unshift(Bi)),Mr-An>=Zi*2&&An!==Mr-2&&(ei[ei.length-1]=(0,ue.cloneElement)(ei[ei.length-1],{className:"".concat(Ye,"-item-before-jump-next")}),ei.push(zn)),Wr!==1&&ei.unshift(Oi),en!==Mr&&ei.push(yi)}var qr=!this.hasPrev()||!Mr,gn=!this.hasNext()||!Mr,tn=this.renderPrev(ni),Mn=this.renderNext(Si);return ue.createElement("ul",(0,ge.Z)({className:_()(Ye,_t,(0,O.Z)({},"".concat(Ye,"-disabled"),ut)),style:pe,ref:this.paginationNode},Ui),me,tn?ue.createElement("li",{title:Ut?ke.prev_page:null,onClick:this.prev,tabIndex:qr?null:0,onKeyPress:this.runIfEnterPrev,className:_()("".concat(Ye,"-prev"),(0,O.Z)({},"".concat(Ye,"-disabled"),qr)),"aria-disabled":qr},tn):null,ei,Mn?ue.createElement("li",{title:Ut?ke.next_page:null,onClick:this.next,tabIndex:gn?null:0,onKeyPress:this.runIfEnterNext,className:_()("".concat(Ye,"-next"),(0,O.Z)({},"".concat(Ye,"-disabled"),gn)),"aria-disabled":gn},Mn):null,ue.createElement(he,{disabled:ut,locale:ke,rootPrefixCls:Ye,selectComponentClass:Ar,selectPrefixCls:zr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:An,pageSize:_n,pageSizeOptions:cn,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ca}))}}],[{key:"getDerivedStateFromProps",value:function(we,Ye){var _t={};if("current"in we&&(_t.current=we.current,we.current!==Ye.current&&(_t.currentInputValue=_t.current)),"pageSize"in we&&we.pageSize!==Ye.pageSize){var pe=Ye.current,ut=D(we.pageSize,Ye,we);pe=pe>ut?ut:pe,"current"in we||(_t.current=pe,_t.currentInputValue=pe),_t.pageSize=we.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:z.Z,style:{},itemRender:ce,totalBoundaryShowSizeChanger:50};var Le=ot,Ce=x(22075),Re=x(36355),ve=x(19716),Pe=x(8628),fe=x(9763),ye=x(57809);const at=H=>ue.createElement(ye.default,Object.assign({},H,{showSearch:!0,size:"small"})),tt=H=>ue.createElement(ye.default,Object.assign({},H,{showSearch:!0,size:"middle"}));at.Option=ye.default.Option,tt.Option=ye.default.Option;var rt=x(9937),At=x(17313),Nt=x(83116),jt=x(37613);const Qt=H=>{const{componentCls:ne}=H;return{[`${ne}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${ne}-item-link`]:{color:H.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${ne}-item-link`]:{color:H.colorTextDisabled,cursor:"not-allowed"}}},[`&${ne}-disabled`]:{cursor:"not-allowed",[`${ne}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:H.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:H.colorBorder,backgroundColor:H.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:H.itemActiveBgDisabled},a:{color:H.itemActiveColorDisabled}}},[`${ne}-item-link`]:{color:H.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${ne}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${ne}-simple-pager`]:{color:H.colorTextDisabled},[`${ne}-jump-prev, ${ne}-jump-next`]:{[`${ne}-item-link-icon`]:{opacity:0},[`${ne}-item-ellipsis`]:{opacity:1}}},[`&${ne}-simple`]:{[`${ne}-prev, ${ne}-next`]:{[`&${ne}-disabled ${ne}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},ur=H=>{const{componentCls:ne}=H;return{[`&${ne}-mini ${ne}-total-text, &${ne}-mini ${ne}-simple-pager`]:{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`},[`&${ne}-mini ${ne}-item`]:{minWidth:H.itemSizeSM,height:H.itemSizeSM,margin:0,lineHeight:`${H.itemSizeSM-2}px`},[`&${ne}-mini:not(${ne}-disabled) ${ne}-item:not(${ne}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:H.colorBgTextHover},"&:active":{backgroundColor:H.colorBgTextActive}},[`&${ne}-mini ${ne}-prev, &${ne}-mini ${ne}-next`]:{minWidth:H.itemSizeSM,height:H.itemSizeSM,margin:0,lineHeight:`${H.itemSizeSM}px`},[`&${ne}-mini:not(${ne}-disabled)`]:{[`${ne}-prev, ${ne}-next`]:{[`&:hover ${ne}-item-link`]:{backgroundColor:H.colorBgTextHover},[`&:active ${ne}-item-link`]:{backgroundColor:H.colorBgTextActive},[`&${ne}-disabled:hover ${ne}-item-link`]:{backgroundColor:"transparent"}}},[`
&${ne}-mini ${ne}-prev ${ne}-item-link,
&${ne}-mini ${ne}-next ${ne}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`}},[`&${ne}-mini ${ne}-jump-prev, &${ne}-mini ${ne}-jump-next`]:{height:H.itemSizeSM,marginInlineEnd:0,lineHeight:`${H.itemSizeSM}px`},[`&${ne}-mini ${ne}-options`]:{marginInlineStart:H.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:H.miniOptionsSizeChangerTop},"&-quick-jumper":{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,rt.x0)(H)),{width:H.paginationMiniQuickJumperInputWidth,height:H.controlHeightSM})}}}},or=H=>{const{componentCls:ne}=H;return{[`
&${ne}-simple ${ne}-prev,
&${ne}-simple ${ne}-next
`]:{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`,verticalAlign:"top",[`${ne}-item-link`]:{height:H.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:H.colorBgTextHover},"&:active":{backgroundColor:H.colorBgTextActive},"&::after":{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`}}},[`&${ne}-simple ${ne}-simple-pager`]:{display:"inline-block",height:H.itemSizeSM,marginInlineEnd:H.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:H.marginXS,padding:`0 ${H.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:H.itemInputBg,border:`${H.lineWidth}px ${H.lineType} ${H.colorBorder}`,borderRadius:H.borderRadius,outline:"none",transition:`border-color ${H.motionDurationMid}`,color:"inherit","&:hover":{borderColor:H.colorPrimary},"&:focus":{borderColor:H.colorPrimaryHover,boxShadow:`${H.inputOutlineOffset}px 0 ${H.controlOutlineWidth}px ${H.controlOutline}`},"&[disabled]":{color:H.colorTextDisabled,backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,cursor:"not-allowed"}}}}},xr=H=>{const{componentCls:ne}=H;return{[`${ne}-jump-prev, ${ne}-jump-next`]:{outline:0,[`${ne}-item-container`]:{position:"relative",[`${ne}-item-link-icon`]:{color:H.colorPrimary,fontSize:H.fontSizeSM,opacity:0,transition:`all ${H.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${ne}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:H.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:H.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:H.paginationEllipsisTextIndent,opacity:1,transition:`all ${H.motionDurationMid}`}},"&:hover":{[`${ne}-item-link-icon`]:{opacity:1},[`${ne}-item-ellipsis`]:{opacity:0}}},[`
${ne}-prev,
${ne}-jump-prev,
${ne}-jump-next
`]:{marginInlineEnd:H.marginXS},[`
${ne}-prev,
${ne}-next,
${ne}-jump-prev,
${ne}-jump-next
`]:{display:"inline-block",minWidth:H.itemSize,height:H.itemSize,color:H.colorText,fontFamily:H.fontFamily,lineHeight:`${H.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:H.borderRadius,cursor:"pointer",transition:`all ${H.motionDurationMid}`},[`${ne}-prev, ${ne}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:H.colorText,cursor:"pointer",userSelect:"none"},[`${ne}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:H.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${H.lineWidth}px ${H.lineType} transparent`,borderRadius:H.borderRadius,outline:"none",transition:`all ${H.motionDurationMid}`},[`&:hover ${ne}-item-link`]:{backgroundColor:H.colorBgTextHover},[`&:active ${ne}-item-link`]:{backgroundColor:H.colorBgTextActive},[`&${ne}-disabled:hover`]:{[`${ne}-item-link`]:{backgroundColor:"transparent"}}},[`${ne}-slash`]:{marginInlineEnd:H.paginationSlashMarginInlineEnd,marginInlineStart:H.paginationSlashMarginInlineStart},[`${ne}-options`]:{display:"inline-block",marginInlineStart:H.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:H.controlHeight,marginInlineStart:H.marginXS,lineHeight:`${H.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,rt.ik)(H)),{width:H.controlHeightLG*1.25,height:H.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:H.marginXS,marginInlineEnd:H.marginXS})}}}},fr=H=>{const{componentCls:ne}=H;return{[`${ne}-item`]:{display:"inline-block",minWidth:H.itemSize,height:H.itemSize,marginInlineEnd:H.marginXS,fontFamily:H.fontFamily,lineHeight:`${H.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${H.lineWidth}px ${H.lineType} transparent`,borderRadius:H.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${H.paginationItemPaddingInline}px`,color:H.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${ne}-item-active)`]:{"&:hover":{transition:`all ${H.motionDurationMid}`,backgroundColor:H.colorBgTextHover},"&:active":{backgroundColor:H.colorBgTextActive}},"&-active":{fontWeight:H.fontWeightStrong,backgroundColor:H.itemActiveBg,borderColor:H.colorPrimary,a:{color:H.colorPrimary},"&:hover":{borderColor:H.colorPrimaryHover},"&:hover a":{color:H.colorPrimaryHover}}}}},L=H=>{const{componentCls:ne}=H;return{[ne]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,At.Wf)(H)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${ne}-total-text`]:{display:"inline-block",height:H.itemSize,marginInlineEnd:H.marginXS,lineHeight:`${H.itemSize-2}px`,verticalAlign:"middle"}}),fr(H)),xr(H)),or(H)),ur(H)),Qt(H)),{[`@media only screen and (max-width: ${H.screenLG}px)`]:{[`${ne}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${H.screenSM}px)`]:{[`${ne}-options`]:{display:"none"}}}),[`&${H.componentCls}-rtl`]:{direction:"rtl"}}},nt=H=>{const{componentCls:ne}=H;return{[`${ne}${ne}-disabled:not(${ne}-mini)`]:{"&, &:hover":{[`${ne}-item-link`]:{borderColor:H.colorBorder}},"&:focus-visible":{[`${ne}-item-link`]:{borderColor:H.colorBorder}},[`${ne}-item, ${ne}-item-link`]:{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,[`&:hover:not(${ne}-item-active)`]:{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,a:{color:H.colorTextDisabled}},[`&${ne}-item-active`]:{backgroundColor:H.itemActiveBgDisabled}},[`${ne}-prev, ${ne}-next`]:{"&:hover button":{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,color:H.colorTextDisabled},[`${ne}-item-link`]:{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder}}},[`${ne}:not(${ne}-mini)`]:{[`${ne}-prev, ${ne}-next`]:{"&:hover button":{borderColor:H.colorPrimaryHover,backgroundColor:H.itemBg},[`${ne}-item-link`]:{backgroundColor:H.itemLinkBg,borderColor:H.colorBorder},[`&:hover ${ne}-item-link`]:{borderColor:H.colorPrimary,backgroundColor:H.itemBg,color:H.colorPrimary},[`&${ne}-disabled`]:{[`${ne}-item-link`]:{borderColor:H.colorBorder,color:H.colorTextDisabled}}},[`${ne}-item`]:{backgroundColor:H.itemBg,border:`${H.lineWidth}px ${H.lineType} ${H.colorBorder}`,[`&:hover:not(${ne}-item-active)`]:{borderColor:H.colorPrimary,backgroundColor:H.itemBg,a:{color:H.colorPrimary}},"&-active":{borderColor:H.colorPrimary}}}}},k=H=>{const{componentCls:ne}=H;return{[`${ne}:not(${ne}-disabled)`]:{[`${ne}-item`]:Object.assign({},(0,At.Qy)(H)),[`${ne}-jump-prev, ${ne}-jump-next`]:{"&:focus-visible":Object.assign({[`${ne}-item-link-icon`]:{opacity:1},[`${ne}-item-ellipsis`]:{opacity:0}},(0,At.oN)(H))},[`${ne}-prev, ${ne}-next`]:{[`&:focus-visible ${ne}-item-link`]:Object.assign({},(0,At.oN)(H))}}}};var p=(0,Nt.Z)("Pagination",H=>{const ne=(0,jt.TS)(H,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:H.marginXXS/2,paginationMiniQuickJumperInputWidth:H.controlHeightLG*1.1,paginationItemPaddingInline:H.marginXXS*1.5,paginationEllipsisLetterSpacing:H.marginXXS/2,paginationSlashMarginInlineStart:H.marginXXS,paginationSlashMarginInlineEnd:H.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,rt.e5)(H),(0,rt.TM)(H));return[L(ne),k(ne),H.wireframe&&nt(ne)]},H=>({itemBg:H.colorBgContainer,itemSize:H.controlHeight,itemSizeSM:H.controlHeightSM,itemActiveBg:H.colorBgContainer,itemLinkBg:H.colorBgContainer,itemActiveColorDisabled:H.colorTextDisabled,itemActiveBgDisabled:H.controlItemBgActiveDisabled,itemInputBg:H.colorBgContainer,miniOptionsSizeChangerTop:0})),d=function(H,ne){var Ge={};for(var xe in H)Object.prototype.hasOwnProperty.call(H,xe)&&ne.indexOf(xe)<0&&(Ge[xe]=H[xe]);if(H!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,xe=Object.getOwnPropertySymbols(H);we<xe.length;we++)ne.indexOf(xe[we])<0&&Object.prototype.propertyIsEnumerable.call(H,xe[we])&&(Ge[xe[we]]=H[xe[we]]);return Ge},q=H=>{const{prefixCls:ne,selectPrefixCls:Ge,className:xe,rootClassName:we,style:Ye,size:_t,locale:pe,selectComponentClass:ut,responsive:ct,showSizeChanger:Ie}=H,ke=d(H,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:vt}=(0,Pe.Z)(ct),{getPrefixCls:zt,direction:Ut,pagination:ar={}}=ue.useContext(Re.E_),Ir=zt("pagination",ne),[Pr,Kr]=p(Ir),Tr=Ie!=null?Ie:ar.showSizeChanger,cr=ue.useMemo(()=>{const Mr=ue.createElement("span",{className:`${Ir}-item-ellipsis`},"\u2022\u2022\u2022"),ei=ue.createElement("button",{className:`${Ir}-item-link`,type:"button",tabIndex:-1},Ut==="rtl"?ue.createElement(Z.Z,null):ue.createElement(h.Z,null)),Bi=ue.createElement("button",{className:`${Ir}-item-link`,type:"button",tabIndex:-1},Ut==="rtl"?ue.createElement(h.Z,null):ue.createElement(Z.Z,null)),zn=ue.createElement("a",{className:`${Ir}-item-link`},ue.createElement("div",{className:`${Ir}-item-container`},Ut==="rtl"?ue.createElement(E.Z,{className:`${Ir}-item-link-icon`}):ue.createElement(f,{className:`${Ir}-item-link-icon`}),Mr)),Oi=ue.createElement("a",{className:`${Ir}-item-link`},ue.createElement("div",{className:`${Ir}-item-container`},Ut==="rtl"?ue.createElement(f,{className:`${Ir}-item-link-icon`}):ue.createElement(E.Z,{className:`${Ir}-item-link-icon`}),Mr));return{prevIcon:ei,nextIcon:Bi,jumpPrevIcon:zn,jumpNextIcon:Oi}},[Ut,Ir]),[Ar]=(0,fe.Z)("Pagination",Ce.Z),zr=Object.assign(Object.assign({},Ar),pe),cn=(0,ve.Z)(_t),Sn=cn==="small"||!!(vt&&!cn&&ct),An=zt("select",Ge),_n=_()({[`${Ir}-mini`]:Sn,[`${Ir}-rtl`]:Ut==="rtl"},ar==null?void 0:ar.className,xe,we,Kr),xi=Object.assign(Object.assign({},ar==null?void 0:ar.style),Ye);return Pr(ue.createElement(Le,Object.assign({},cr,ke,{style:xi,prefixCls:Ir,selectPrefixCls:An,className:_n,selectComponentClass:ut||(Sn?at:tt),locale:zr,showSizeChanger:Tr})))},Se=q},5112:function(xn,qt,x){"use strict";x.d(qt,{ZP:function(){return Pe}});var ge=x(92310),ue=x.n(ge),Q=x(18929),Te=x(26112),ie=x(59301),G=x(36355),B=x(19716);const f=ie.createContext(null),E=f.Provider;var h=f;const Z=ie.createContext(null),S=Z.Provider;var _=x(5630),O=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,tt=`${ye}-group`;return{[tt]:Object.assign(Object.assign({},(0,Y.Wf)(fe)),{display:"inline-block",fontSize:0,[`&${tt}-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:tt,radioSize:rt,motionDurationSlow:At,motionDurationMid:Nt,motionEaseInOutCirc:jt,colorBgContainer:Qt,colorBorder:ur,lineWidth:or,dotSize:xr,colorBgContainerDisabled:fr,colorTextDisabled:L,paddingXS:nt,dotColorDisabled:k,lineType:p,radioDotDisabledSize:d,wireframe:w,colorWhite:q}=fe,Se=`${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} ${tt}`,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 ${Se}`]:{borderColor:tt},[`${ye}-input:focus-visible + ${Se}`]: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:rt,height:rt,marginBlockStart:rt/-2,marginInlineStart:rt/-2,backgroundColor:w?tt:q,borderBlockStart:0,borderInlineStart:0,borderRadius:rt,transform:"scale(0)",opacity:0,transition:`all ${At} ${jt}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:rt,height:rt,backgroundColor:Qt,borderColor:ur,borderStyle:"solid",borderWidth:or,borderRadius:"50%",transition:`all ${Nt}`},[`${ye}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${ye}-checked`]:{[Se]:{borderColor:tt,backgroundColor:w?Qt:tt,"&::after":{transform:`scale(${xr/rt})`,opacity:1,transition:`all ${At} ${jt}`}}},[`${ye}-disabled`]:{cursor:"not-allowed",[Se]:{backgroundColor:fr,borderColor:ur,cursor:"not-allowed","&::after":{backgroundColor:k}},[`${ye}-input`]:{cursor:"not-allowed"},[`${ye}-disabled + span`]:{color:L,cursor:"not-allowed"},[`&${ye}-checked`]:{[Se]:{"&::after":{transform:`scale(${d/rt})`}}}},[`span${ye} + *`]:{paddingInlineStart:nt,paddingInlineEnd:nt}})}},W=fe=>{const{buttonColor:ye,controlHeight:at,componentCls:tt,lineWidth:rt,lineType:At,colorBorder:Nt,motionDurationSlow:jt,motionDurationMid:Qt,buttonPaddingInline:ur,fontSize:or,buttonBg:xr,fontSizeLG:fr,controlHeightLG:L,controlHeightSM:nt,paddingXS:k,borderRadius:p,borderRadiusSM:d,borderRadiusLG:w,buttonCheckedBg:q,buttonSolidCheckedColor:Se,colorTextDisabled:H,colorBgContainerDisabled:ne,buttonCheckedBgDisabled:Ge,buttonCheckedColorDisabled:xe,colorPrimary:we,colorPrimaryHover:Ye,colorPrimaryActive:_t,buttonSolidCheckedBg:pe,buttonSolidCheckedHoverBg:ut,buttonSolidCheckedActiveBg:ct}=fe;return{[`${tt}-button-wrapper`]:{position:"relative",display:"inline-block",height:at,margin:0,paddingInline:ur,paddingBlock:0,color:ye,fontSize:or,lineHeight:`${at-rt*2}px`,background:xr,border:`${rt}px ${At} ${Nt}`,borderBlockStartWidth:rt+.02,borderInlineStartWidth:0,borderInlineEndWidth:rt,cursor:"pointer",transition:[`color ${Qt}`,`background ${Qt}`,`box-shadow ${Qt}`].join(","),a:{color:ye},[`> ${tt}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-rt,insetInlineStart:-rt,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:rt,paddingInline:0,backgroundColor:Nt,transition:`background-color ${jt}`,content:'""'}},"&:first-child":{borderInlineStart:`${rt}px ${At} ${Nt}`,borderStartStartRadius:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p},"&:first-child:last-child":{borderRadius:p},[`${tt}-group-large &`]:{height:L,fontSize:fr,lineHeight:`${L-rt*2}px`,"&:first-child":{borderStartStartRadius:w,borderEndStartRadius:w},"&:last-child":{borderStartEndRadius:w,borderEndEndRadius:w}},[`${tt}-group-small &`]:{height:nt,paddingInline:k-rt,paddingBlock:0,lineHeight:`${nt-rt*2}px`,"&:first-child":{borderStartStartRadius:d,borderEndStartRadius:d},"&:last-child":{borderStartEndRadius:d,borderEndEndRadius:d}},"&:hover":{position:"relative",color:we},"&:has(:focus-visible)":Object.assign({},(0,Y.oN)(fe)),[`${tt}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${tt}-button-wrapper-disabled)`]:{zIndex:1,color:we,background:q,borderColor:we,"&::before":{backgroundColor:we},"&:first-child":{borderColor:we},"&:hover":{color:Ye,borderColor:Ye,"&::before":{backgroundColor:Ye}},"&:active":{color:_t,borderColor:_t,"&::before":{backgroundColor:_t}}},[`${tt}-group-solid &-checked:not(${tt}-button-wrapper-disabled)`]:{color:Se,background:pe,borderColor:pe,"&:hover":{color:Se,background:ut,borderColor:ut},"&:active":{color:Se,background:ct,borderColor:ct}},"&-disabled":{color:H,backgroundColor:ne,borderColor:Nt,cursor:"not-allowed","&:first-child, &:hover":{color:H,backgroundColor:ne,borderColor:Nt}},[`&-disabled${tt}-button-wrapper-checked`]:{color:xe,backgroundColor:Ge,borderColor:Nt,boxShadow:"none"}}}},z=fe=>fe-4*2;var le=(0,K.Z)("Radio",fe=>{const{controlOutline:ye,controlOutlineWidth:at,radioSize:tt}=fe,rt=`0 0 0 ${at}px ${ye}`,At=rt,Nt=z(tt),jt=(0,se.TS)(fe,{radioDotDisabledSize:Nt,radioFocusShadow:rt,radioButtonFocusShadow:At});return[te(jt),X(jt),W(jt)]},fe=>{const{wireframe:ye,padding:at,marginXS:tt,lineWidth:rt,fontSizeLG:At,colorText:Nt,colorBgContainer:jt,colorTextDisabled:Qt,controlItemBgActiveDisabled:ur,colorTextLightSolid:or,colorPrimary:xr,colorPrimaryHover:fr,colorPrimaryActive:L}=fe,nt=4,k=At,p=ye?z(k):k-(nt+rt)*2;return{radioSize:k,dotSize:p,dotColorDisabled:Qt,buttonSolidCheckedColor:or,buttonSolidCheckedBg:xr,buttonSolidCheckedHoverBg:fr,buttonSolidCheckedActiveBg:L,buttonBg:jt,buttonCheckedBg:jt,buttonColor:Nt,buttonCheckedBgDisabled:ur,buttonCheckedColorDisabled:Qt,buttonPaddingInline:at-rt,wrapperMarginInlineEnd:tt}}),he=x(14088),Ne=x(4572),Be=function(fe,ye){var at={};for(var tt in fe)Object.prototype.hasOwnProperty.call(fe,tt)&&ye.indexOf(tt)<0&&(at[tt]=fe[tt]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,tt=Object.getOwnPropertySymbols(fe);rt<tt.length;rt++)ye.indexOf(tt[rt])<0&&Object.prototype.propertyIsEnumerable.call(fe,tt[rt])&&(at[tt[rt]]=fe[tt[rt]]);return at};const je=(fe,ye)=>{var at,tt;const rt=ie.useContext(h),At=ie.useContext(Z),{getPrefixCls:Nt,direction:jt,radio:Qt}=ie.useContext(G.E_),ur=ie.useRef(null),or=(0,O.sQ)(ye,ur),{isFormItemInput:xr}=ie.useContext(I.aM),fr=_t=>{var pe,ut;(pe=fe.onChange)===null||pe===void 0||pe.call(fe,_t),(ut=rt==null?void 0:rt.onChange)===null||ut===void 0||ut.call(rt,_t)},{prefixCls:L,className:nt,rootClassName:k,children:p,style:d}=fe,w=Be(fe,["prefixCls","className","rootClassName","children","style"]),q=Nt("radio",L),Se=((rt==null?void 0:rt.optionType)||At)==="button",H=Se?`${q}-button`:q,[ne,Ge]=le(q),xe=Object.assign({},w),we=ie.useContext(R.Z);rt&&(xe.name=rt.name,xe.onChange=fr,xe.checked=fe.value===rt.value,xe.disabled=(at=xe.disabled)!==null&&at!==void 0?at:rt.disabled),xe.disabled=(tt=xe.disabled)!==null&&tt!==void 0?tt:we;const Ye=ue()(`${H}-wrapper`,{[`${H}-wrapper-checked`]:xe.checked,[`${H}-wrapper-disabled`]:xe.disabled,[`${H}-wrapper-rtl`]:jt==="rtl",[`${H}-wrapper-in-form-item`]:xr},Qt==null?void 0:Qt.className,nt,k,Ge);return ne(ie.createElement(he.Z,{component:"Radio",disabled:xe.disabled},ie.createElement("label",{className:Ye,style:Object.assign(Object.assign({},Qt==null?void 0:Qt.style),d),onMouseEnter:fe.onMouseEnter,onMouseLeave:fe.onMouseLeave},ie.createElement(_.Z,Object.assign({},xe,{className:ue()(xe.className,!Se&&Ne.A),type:"radio",prefixCls:H,ref:or})),p!==void 0?ie.createElement("span",null,p):null)))};var ce=ie.forwardRef(je);const D=ie.forwardRef((fe,ye)=>{const{getPrefixCls:at,direction:tt}=ie.useContext(G.E_),[rt,At]=(0,Q.Z)(fe.defaultValue,{value:fe.value}),Nt=pe=>{const ut=rt,ct=pe.target.value;"value"in fe||At(ct);const{onChange:Ie}=fe;Ie&&ct!==ut&&Ie(pe)},{prefixCls:jt,className:Qt,rootClassName:ur,options:or,buttonStyle:xr="outline",disabled:fr,children:L,size:nt,style:k,id:p,onMouseEnter:d,onMouseLeave:w,onFocus:q,onBlur:Se}=fe,H=at("radio",jt),ne=`${H}-group`,[Ge,xe]=le(H);let we=L;or&&or.length>0&&(we=or.map(pe=>typeof pe=="string"||typeof pe=="number"?ie.createElement(ce,{key:pe.toString(),prefixCls:H,disabled:fr,value:pe,checked:rt===pe},pe):ie.createElement(ce,{key:`radio-group-value-options-${pe.value}`,prefixCls:H,disabled:pe.disabled||fr,value:pe.value,checked:rt===pe.value,title:pe.title,style:pe.style},pe.label)));const Ye=(0,B.Z)(nt),_t=ue()(ne,`${ne}-${xr}`,{[`${ne}-${Ye}`]:Ye,[`${ne}-rtl`]:tt==="rtl"},Qt,ur,xe);return Ge(ie.createElement("div",Object.assign({},(0,Te.Z)(fe,{aria:!0,data:!0}),{className:_t,style:k,onMouseEnter:d,onMouseLeave:w,onFocus:q,onBlur:Se,id:p,ref:ye}),ie.createElement(E,{value:{onChange:Nt,value:rt,disabled:fe.disabled,name:fe.name,optionType:fe.optionType}},we)))});var ot=ie.memo(D),Le=function(fe,ye){var at={};for(var tt in fe)Object.prototype.hasOwnProperty.call(fe,tt)&&ye.indexOf(tt)<0&&(at[tt]=fe[tt]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,tt=Object.getOwnPropertySymbols(fe);rt<tt.length;rt++)ye.indexOf(tt[rt])<0&&Object.prototype.propertyIsEnumerable.call(fe,tt[rt])&&(at[tt[rt]]=fe[tt[rt]]);return at};const Ce=(fe,ye)=>{const{getPrefixCls:at}=ie.useContext(G.E_),{prefixCls:tt}=fe,rt=Le(fe,["prefixCls"]),At=at("radio",tt);return ie.createElement(S,{value:"button"},ie.createElement(ce,Object.assign({prefixCls:At},rt,{type:"radio",ref:ye})))};var Re=ie.forwardRef(Ce);const ve=ce;ve.Button=Re,ve.Group=ot,ve.__ANT_RADIO=!0;var Pe=ve},57809:function(xn,qt,x){"use strict";var ge=x(92310),ue=x.n(ge),Q=x(77861),Te=x(2738),ie=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),O=x(33234),R=x(14154),I=x(58582),Y=x(84443),K=x(66339),se=function(le,he){var Ne={};for(var Be in le)Object.prototype.hasOwnProperty.call(le,Be)&&he.indexOf(Be)<0&&(Ne[Be]=le[Be]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Be=Object.getOwnPropertySymbols(le);je<Be.length;je++)he.indexOf(Be[je])<0&&Object.prototype.propertyIsEnumerable.call(le,Be[je])&&(Ne[Be[je]]=le[Be[je]]);return Ne};const te="SECRET_COMBOBOX_MODE_DO_NOT_USE",X=(le,he)=>{var Ne,{prefixCls:Be,bordered:je=!0,className:ee,rootClassName:ce,getPopupContainer:D,popupClassName:ot,dropdownClassName:Le,listHeight:Ce=256,placement:Re,listItemHeight:ve=24,size:Pe,disabled:fe,notFoundContent:ye,status:at,builtinPlacements:tt,dropdownMatchSelectWidth:rt,popupMatchSelectWidth:At,direction:Nt,style:jt,allowClear:Qt}=le,ur=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:xr,renderEmpty:fr,direction:L,virtual:nt,popupMatchSelectWidth:k,popupOverflow:p,select:d}=ie.useContext(E.E_),w=xr("select",Be),q=xr(),Se=Nt!=null?Nt:L,{compactSize:H,compactItemClassnames:ne}=(0,O.ri)(w,Se),[Ge,xe]=(0,R.Z)(w),we=ie.useMemo(()=>{const{mode:xi}=ur;if(xi!=="combobox")return xi===te?"combobox":xi},[ur.mode]),Ye=we==="multiple"||we==="tags",_t=(0,Y.Z)(ur.suffixIcon,ur.showArrow),pe=(Ne=At!=null?At:rt)!==null&&Ne!==void 0?Ne:k,{status:ut,hasFeedback:ct,isFormItemInput:Ie,feedbackIcon:ke}=ie.useContext(_.aM),vt=(0,f.F)(ut,at);let zt;ye!==void 0?zt=ye:we==="combobox"?zt=null:zt=(fr==null?void 0:fr("Select"))||ie.createElement(Z.Z,{componentName:"Select"});const{suffixIcon:Ut,itemIcon:ar,removeIcon:Ir,clearIcon:Pr}=(0,K.Z)(Object.assign(Object.assign({},ur),{multiple:Ye,hasFeedback:ct,feedbackIcon:ke,showSuffixIcon:_t,prefixCls:w,showArrow:ur.showArrow,componentName:"Select"})),Kr=Qt===!0?{clearIcon:Pr}:Qt,Tr=(0,Te.Z)(ur,["suffixIcon","itemIcon"]),cr=ue()(ot||Le,{[`${w}-dropdown-${Se}`]:Se==="rtl"},ce,xe),Ar=(0,S.Z)(xi=>{var Mr;return(Mr=Pe!=null?Pe:H)!==null&&Mr!==void 0?Mr:xi}),zr=ie.useContext(h.Z),cn=fe!=null?fe:zr,Sn=ue()({[`${w}-lg`]:Ar==="large",[`${w}-sm`]:Ar==="small",[`${w}-rtl`]:Se==="rtl",[`${w}-borderless`]:!je,[`${w}-in-form-item`]:Ie},(0,f.Z)(w,vt,ct),ne,d==null?void 0:d.className,ee,ce,xe),An=ie.useMemo(()=>Re!==void 0?Re:Se==="rtl"?"bottomRight":"bottomLeft",[Re,Se]),_n=(0,I.Z)(tt,p);return Ge(ie.createElement(Q.ZP,Object.assign({ref:he,virtual:nt,showSearch:d==null?void 0:d.showSearch},Tr,{style:Object.assign(Object.assign({},d==null?void 0:d.style),jt),dropdownMatchSelectWidth:pe,builtinPlacements:_n,transitionName:(0,B.m)(q,"slide-up",ur.transitionName),listHeight:Ce,listItemHeight:ve,mode:we,prefixCls:w,placement:An,direction:Se,suffixIcon:Ut,menuItemSelectedIcon:ar,removeIcon:Ir,allowClear:Kr,notFoundContent:zt,className:Sn,getPopupContainer:D||or,dropdownClassName:cr,disabled:cn})))},W=ie.forwardRef(X),z=(0,G.Z)(W);W.SECRET_COMBOBOX_MODE_DO_NOT_USE=te,W.Option=Q.Wx,W.OptGroup=Q.Xo,W._InternalPanelDoNotUseOrYouWillBeFired=z,qt.default=W},14154:function(xn,qt,x){"use strict";x.d(qt,{Z:function(){return W}});var ge=x(17313),ue=x(74207),Q=x(37613),Te=x(83116),ie=x(13826),G=x(92899);const B=z=>{const{optionHeight:le,optionFontSize:he,optionLineHeight:Ne,optionPadding:Be}=z;return{position:"relative",display:"block",minHeight:le,padding:Be,color:z.colorText,fontWeight:"normal",fontSize:he,lineHeight:Ne,boxSizing:"border-box"}};var E=z=>{const{antCls:le,componentCls:he}=z,Ne=`${he}-item`,Be=`&${le}-slide-up-enter${le}-slide-up-enter-active`,je=`&${le}-slide-up-appear${le}-slide-up-appear-active`,ee=`&${le}-slide-up-leave${le}-slide-up-leave-active`,ce=`${he}-dropdown-placement-`;return[{[`${he}-dropdown`]:Object.assign(Object.assign({},(0,ge.Wf)(z)),{position:"absolute",top:-9999,zIndex:z.zIndexPopup,boxSizing:"border-box",padding:z.paddingXXS,overflow:"hidden",fontSize:z.fontSize,fontVariant:"initial",backgroundColor:z.colorBgElevated,borderRadius:z.borderRadiusLG,outline:"none",boxShadow:z.boxShadowSecondary,[`
${Be}${ce}bottomLeft,
${je}${ce}bottomLeft
`]:{animationName:ie.fJ},[`
${Be}${ce}topLeft,
${je}${ce}topLeft,
${Be}${ce}topRight,
${je}${ce}topRight
`]:{animationName:ie.Qt},[`${ee}${ce}bottomLeft`]:{animationName:ie.Uw},[`
${ee}${ce}topLeft,
${ee}${ce}topRight
`]:{animationName:ie.ly},"&-hidden":{display:"none"},[`${Ne}`]:Object.assign(Object.assign({},B(z)),{cursor:"pointer",transition:`background ${z.motionDurationSlow} ease`,borderRadius:z.borderRadiusSM,"&-group":{color:z.colorTextDescription,fontSize:z.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:z.optionActiveBg},[`&-selected:not(${Ne}-option-disabled)`]:{color:z.optionSelectedColor,fontWeight:z.optionSelectedFontWeight,backgroundColor:z.optionSelectedBg,[`${Ne}-option-state`]:{color:z.colorPrimary}},"&-disabled":{[`&${Ne}-option-selected`]:{backgroundColor:z.colorBgContainerDisabled},color:z.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:z.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,ie.oN)(z,"slide-up"),(0,ie.oN)(z,"slide-down"),(0,G.Fm)(z,"move-up"),(0,G.Fm)(z,"move-down")]};const h=2,Z=z=>{let{controlHeightSM:le,controlHeight:he,lineWidth:Ne}=z;const Be=(he-le)/2-Ne,je=Math.ceil(Be/2);return[Be,je]};function S(z,le){const{componentCls:he,iconCls:Ne}=z,Be=`${he}-selection-overflow`,je=z.multipleSelectItemHeight,[ee]=Z(z),ce=le?`${he}-${le}`:"";return{[`${he}-multiple${ce}`]:{fontSize:z.fontSize,[Be]:{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:`${ee-h}px ${h*2}px`,borderRadius:z.borderRadius,[`${he}-show-search&`]:{cursor:"text"},[`${he}-disabled&`]:{background:z.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:z.fontSizeIcon+z.controlPaddingHorizontal},[`${he}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:je,marginTop:h,marginBottom:h,lineHeight:`${je-z.lineWidth*2}px`,background:z.multipleItemBg,border:`${z.lineWidth}px ${z.lineType} ${z.multipleItemBorderColor}`,borderRadius:z.borderRadiusSM,cursor:"default",transition:`font-size ${z.motionDurationSlow}, line-height ${z.motionDurationSlow}, height ${z.motionDurationSlow}`,userSelect:"none",marginInlineEnd:h*2,paddingInlineStart:z.paddingXS,paddingInlineEnd:z.paddingXS/2,[`${he}-disabled&`]:{color:z.multipleItemColorDisabled,borderColor:z.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:z.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,ge.Ro)()),{display:"inline-flex",alignItems:"center",color:z.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Ne}`]:{verticalAlign:"-0.2em"},"&:hover":{color:z.colorIconHover}})},[`${Be}-item + ${Be}-item`]:{[`${he}-selection-search`]:{marginInlineStart:0}},[`${he}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:z.inputPaddingHorizontalBase-ee,"\n &-input,\n &-mirror\n ":{height:je,fontFamily:z.fontFamily,lineHeight:`${je}px`,transition:`all ${z.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:z.inputPaddingHorizontalBase,insetInlineEnd:z.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${z.motionDurationSlow}`}}}}var O=z=>{const{componentCls:le}=z,he=(0,Q.TS)(z,{controlHeight:z.controlHeightSM,multipleSelectItemHeight:z.controlHeightXS,borderRadius:z.borderRadiusSM,borderRadiusSM:z.borderRadiusXS}),Ne=(0,Q.TS)(z,{fontSize:z.fontSizeLG,controlHeight:z.controlHeightLG,multipleSelectItemHeight:z.multipleItemHeightLG,borderRadius:z.borderRadiusLG,borderRadiusSM:z.borderRadius}),[,Be]=Z(z);return[S(z),S(he,"sm"),{[`${le}-multiple${le}-sm`]:{[`${le}-selection-placeholder`]:{insetInline:z.controlPaddingHorizontalSM-z.lineWidth},[`${le}-selection-search`]:{marginInlineStart:Be}}},S(Ne,"lg")]};function R(z,le){const{componentCls:he,inputPaddingHorizontalBase:Ne,borderRadius:Be}=z,je=z.controlHeight-z.lineWidth*2,ee=Math.ceil(z.fontSize*1.25),ce=le?`${he}-${le}`:"";return{[`${he}-single${ce}`]:{fontSize:z.fontSize,[`${he}-selector`]:Object.assign(Object.assign({},(0,ge.Wf)(z)),{display:"flex",borderRadius:Be,[`${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 ${z.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:ee},[`&${he}-open ${he}-selection-item`]:{color:z.colorTextPlaceholder},[`&:not(${he}-customize-input)`]:{[`${he}-selector`]:{width:"100%",height:z.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(z){const{componentCls:le}=z,he=z.controlPaddingHorizontalSM-z.lineWidth;return[R(z),R((0,Q.TS)(z,{controlHeight:z.controlHeightSM,borderRadius:z.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+z.fontSize*1.5},[`
&${le}-show-arrow ${le}-selection-item,
&${le}-show-arrow ${le}-selection-placeholder
`]:{paddingInlineEnd:z.fontSize*1.5}}}},R((0,Q.TS)(z,{controlHeight:z.singleItemHeightLG,fontSize:z.fontSizeLG,borderRadius:z.borderRadiusLG}),"lg")]}const Y=z=>{const{componentCls:le,selectorBg:he}=z;return{position:"relative",backgroundColor:he,border:`${z.lineWidth}px ${z.lineType} ${z.colorBorder}`,transition:`all ${z.motionDurationMid} ${z.motionEaseInOut}`,input:{cursor:"pointer"},[`${le}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${le}-disabled&`]:{color:z.colorTextDisabled,background:z.colorBgContainerDisabled,cursor:"not-allowed",[`${le}-multiple&`]:{background:z.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},K=function(z,le){let he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Ne,borderHoverColor:Be,outlineColor:je,antCls:ee}=le,ce=he?{[`${Ne}-selector`]:{borderColor:Be}}:{};return{[z]:{[`&:not(${Ne}-disabled):not(${Ne}-customize-input):not(${ee}-pagination-size-changer)`]:Object.assign(Object.assign({},ce),{[`${Ne}-focused& ${Ne}-selector`]:{borderColor:Be,boxShadow:`0 0 0 ${le.controlOutlineWidth}px ${je}`,outline:0},[`&:hover ${Ne}-selector`]:{borderColor:Be}})}}},se=z=>{const{componentCls:le}=z;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=z=>{const{componentCls:le,inputPaddingHorizontalBase:he,iconCls:Ne}=z;return{[le]:Object.assign(Object.assign({},(0,ge.Wf)(z)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${le}-customize-input) ${le}-selector`]:Object.assign(Object.assign({},Y(z)),se(z)),[`${le}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},ge.vS),[`${le}-selection-placeholder`]:Object.assign(Object.assign({},ge.vS),{flex:1,color:z.colorTextPlaceholder,pointerEvents:"none"}),[`${le}-arrow`]:Object.assign(Object.assign({},(0,ge.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:he,height:z.fontSizeIcon,marginTop:-z.fontSizeIcon/2,color:z.colorTextQuaternary,fontSize:z.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Ne]:{verticalAlign:"top",transition:`transform ${z.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:z.fontSizeIcon,height:z.fontSizeIcon,marginTop:-z.fontSizeIcon/2,color:z.colorTextQuaternary,fontSize:z.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:z.clearBg,cursor:"pointer",opacity:0,transition:`color ${z.motionDurationMid} ease, opacity ${z.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:z.colorTextTertiary}},"&:hover":{[`${le}-clear`]:{opacity:1}}}),[`${le}-has-feedback`]:{[`${le}-clear`]:{insetInlineEnd:he+z.fontSize+z.paddingXS}}}},X=z=>{const{componentCls:le}=z;return[{[le]:{[`&-borderless ${le}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${le}-in-form-item`]:{width:"100%"}}},te(z),I(z),O(z),E(z),{[`${le}-rtl`]:{direction:"rtl"}},K(le,(0,Q.TS)(z,{borderHoverColor:z.colorPrimaryHover,outlineColor:z.controlOutline})),K(`${le}-status-error`,(0,Q.TS)(z,{borderHoverColor:z.colorErrorHover,outlineColor:z.colorErrorOutline}),!0),K(`${le}-status-warning`,(0,Q.TS)(z,{borderHoverColor:z.colorWarningHover,outlineColor:z.colorWarningOutline}),!0),(0,ue.c)(z,{borderElCls:`${le}-selector`,focusElCls:`${le}-focused`})]};var W=(0,Te.Z)("Select",(z,le)=>{let{rootPrefixCls:he}=le;const Ne=(0,Q.TS)(z,{rootPrefixCls:he,inputPaddingHorizontalBase:z.paddingSM-1,multipleSelectItemHeight:z.multipleItemHeight});return[X(Ne)]},z=>{const{fontSize:le,lineHeight:he,controlHeight:Ne,controlPaddingHorizontal:Be,zIndexPopupBase:je,colorText:ee,fontWeightStrong:ce,controlItemBgActive:D,controlItemBgHover:ot,colorBgContainer:Le,colorFillSecondary:Ce,controlHeightLG:Re,controlHeightSM:ve,colorBgContainerDisabled:Pe,colorTextDisabled:fe}=z;return{zIndexPopup:je+50,optionSelectedColor:ee,optionSelectedFontWeight:ce,optionSelectedBg:D,optionActiveBg:ot,optionPadding:`${(Ne-le*he)/2}px ${Be}px`,optionFontSize:le,optionLineHeight:he,optionHeight:Ne,selectorBg:Le,clearBg:Le,singleItemHeightLG:Re,multipleItemBg:Ce,multipleItemBorderColor:"transparent",multipleItemHeight:ve,multipleItemHeightLG:Ne,multipleSelectorBgDisabled:Pe,multipleItemColorDisabled:fe,multipleItemBorderColorDisabled:"transparent"}})},58582:function(xn,qt,x){"use strict";x.d(qt,{Z:function(){return ue}});const ge=Q=>{const ie={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Q==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},ie),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},ie),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},ie),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},ie),{points:["br","tr"],offset:[0,-4]})}};function ue(Q,Te){return Q||ge(Te)}},84443:function(xn,qt,x){"use strict";x.d(qt,{Z:function(){return ge}});function ge(ue,Q){return Q!==void 0?Q:ue!==null}},66339:function(xn,qt,x){"use strict";x.d(qt,{Z:function(){return f}});var ge=x(40001),ue=x(19248),Q=x(99267),Te=x(84105),ie=x(58617),G=x(47472),B=x(59301);function f(E){let{suffixIcon:h,clearIcon:Z,menuItemSelectedIcon:S,removeIcon:_,loading:O,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),z=Be=>h===null&&!I&&!te?null:B.createElement(B.Fragment,null,K!==!1&&Be,I&&se);let le=null;if(h!==void 0)le=z(h);else if(O)le=z(B.createElement(ie.Z,{spin:!0}));else{const Be=`${Y}-suffix`;le=je=>{let{open:ee,showSearch:ce}=je;return z(ee&&ce?B.createElement(G.Z,{className:Be}):B.createElement(Te.Z,{className:Be}))}}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,qt,x){"use strict";x.d(qt,{Z:function(){return p}});var ge=x(92310),ue=x.n(ge),Q=x(59301),Te=x(36355),ie=x(2738),B=d=>{const{prefixCls:w,className:q,style:Se,size:H,shape:ne}=d,Ge=ue()({[`${w}-lg`]:H==="large",[`${w}-sm`]:H==="small"}),xe=ue()({[`${w}-circle`]:ne==="circle",[`${w}-square`]:ne==="square",[`${w}-round`]:ne==="round"}),we=Q.useMemo(()=>typeof H=="number"?{width:H,height:H,lineHeight:`${H}px`}:{},[H]);return Q.createElement("span",{className:ue()(w,Ge,xe,q),style:Object.assign(Object.assign({},we),Se)})},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=d=>({height:d,lineHeight:`${d}px`}),_=d=>Object.assign({width:d},S(d)),O=d=>({background:d.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Z,animationDuration:d.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),R=d=>Object.assign({width:d*5,minWidth:d*5},S(d)),I=d=>{const{skeletonAvatarCls:w,gradientFromColor:q,controlHeight:Se,controlHeightLG:H,controlHeightSM:ne}=d;return{[`${w}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:q},_(Se)),[`${w}${w}-circle`]:{borderRadius:"50%"},[`${w}${w}-lg`]:Object.assign({},_(H)),[`${w}${w}-sm`]:Object.assign({},_(ne))}},Y=d=>{const{controlHeight:w,borderRadiusSM:q,skeletonInputCls:Se,controlHeightLG:H,controlHeightSM:ne,gradientFromColor:Ge}=d;return{[`${Se}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ge,borderRadius:q},R(w)),[`${Se}-lg`]:Object.assign({},R(H)),[`${Se}-sm`]:Object.assign({},R(ne))}},K=d=>Object.assign({width:d},S(d)),se=d=>{const{skeletonImageCls:w,imageSizeBase:q,gradientFromColor:Se,borderRadiusSM:H}=d;return{[`${w}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Se,borderRadius:H},K(q*2)),{[`${w}-path`]:{fill:"#bfbfbf"},[`${w}-svg`]:Object.assign(Object.assign({},K(q)),{maxWidth:q*4,maxHeight:q*4}),[`${w}-svg${w}-svg-circle`]:{borderRadius:"50%"}}),[`${w}${w}-circle`]:{borderRadius:"50%"}}},te=(d,w,q)=>{const{skeletonButtonCls:Se}=d;return{[`${q}${Se}-circle`]:{width:w,minWidth:w,borderRadius:"50%"},[`${q}${Se}-round`]:{borderRadius:w}}},X=d=>Object.assign({width:d*2,minWidth:d*2},S(d)),W=d=>{const{borderRadiusSM:w,skeletonButtonCls:q,controlHeight:Se,controlHeightLG:H,controlHeightSM:ne,gradientFromColor:Ge}=d;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${q}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ge,borderRadius:w,width:Se*2,minWidth:Se*2},X(Se))},te(d,Se,q)),{[`${q}-lg`]:Object.assign({},X(H))}),te(d,H,`${q}-lg`)),{[`${q}-sm`]:Object.assign({},X(ne))}),te(d,ne,`${q}-sm`))},z=d=>{const{componentCls:w,skeletonAvatarCls:q,skeletonTitleCls:Se,skeletonParagraphCls:H,skeletonButtonCls:ne,skeletonInputCls:Ge,skeletonImageCls:xe,controlHeight:we,controlHeightLG:Ye,controlHeightSM:_t,gradientFromColor:pe,padding:ut,marginSM:ct,borderRadius:Ie,titleHeight:ke,blockRadius:vt,paragraphLiHeight:zt,controlHeightXS:Ut,paragraphMarginTop:ar}=d;return{[`${w}`]:{display:"table",width:"100%",[`${w}-header`]:{display:"table-cell",paddingInlineEnd:ut,verticalAlign:"top",[`${q}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:pe},_(we)),[`${q}-circle`]:{borderRadius:"50%"},[`${q}-lg`]:Object.assign({},_(Ye)),[`${q}-sm`]:Object.assign({},_(_t))},[`${w}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Se}`]:{width:"100%",height:ke,background:pe,borderRadius:vt,[`+ ${H}`]:{marginBlockStart:_t}},[`${H}`]:{padding:0,"> li":{width:"100%",height:zt,listStyle:"none",background:pe,borderRadius:vt,"+ li":{marginBlockStart:Ut}}},[`${H}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${w}-content`]:{[`${Se}, ${H} > li`]:{borderRadius:Ie}}},[`${w}-with-avatar ${w}-content`]:{[`${Se}`]:{marginBlockStart:ct,[`+ ${H}`]:{marginBlockStart:ar}}},[`${w}${w}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},W(d)),I(d)),Y(d)),se(d)),[`${w}${w}-block`]:{width:"100%",[`${ne}`]:{width:"100%"},[`${Ge}`]:{width:"100%"}},[`${w}${w}-active`]:{[`
${Se},
${H} > li,
${q},
${ne},
${Ge},
${xe}
`]:Object.assign({},O(d))}}};var le=(0,E.Z)("Skeleton",d=>{const{componentCls:w}=d,q=(0,h.TS)(d,{skeletonAvatarCls:`${w}-avatar`,skeletonTitleCls:`${w}-title`,skeletonParagraphCls:`${w}-paragraph`,skeletonButtonCls:`${w}-button`,skeletonInputCls:`${w}-input`,skeletonImageCls:`${w}-image`,imageSizeBase:d.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${d.gradientFromColor} 25%, ${d.gradientToColor} 37%, ${d.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[z(q)]},d=>{const{colorFillContent:w,colorFill:q}=d,Se=w,H=q;return{color:Se,colorGradientEnd:H,gradientFromColor:Se,gradientToColor:H,titleHeight:d.controlHeight/2,blockRadius:d.borderRadiusSM,paragraphMarginTop:d.marginLG+d.marginXXS,paragraphLiHeight:d.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Ne=d=>{const{prefixCls:w,className:q,rootClassName:Se,active:H,shape:ne="circle",size:Ge="default"}=d,{getPrefixCls:xe}=Q.useContext(Te.E_),we=xe("skeleton",w),[Ye,_t]=le(we),pe=(0,ie.Z)(d,["prefixCls","className"]),ut=ue()(we,`${we}-element`,{[`${we}-active`]:H},q,Se,_t);return Ye(Q.createElement("div",{className:ut},Q.createElement(B,Object.assign({prefixCls:`${we}-avatar`,shape:ne,size:Ge},pe))))},je=d=>{const{prefixCls:w,className:q,rootClassName:Se,active:H,block:ne=!1,size:Ge="default"}=d,{getPrefixCls:xe}=Q.useContext(Te.E_),we=xe("skeleton",w),[Ye,_t]=le(we),pe=(0,ie.Z)(d,["prefixCls"]),ut=ue()(we,`${we}-element`,{[`${we}-active`]:H,[`${we}-block`]:ne},q,Se,_t);return Ye(Q.createElement("div",{className:ut},Q.createElement(B,Object.assign({prefixCls:`${we}-button`,size:Ge},pe))))};const ee="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 D=d=>{const{prefixCls:w,className:q,rootClassName:Se,style:H,active:ne}=d,{getPrefixCls:Ge}=Q.useContext(Te.E_),xe=Ge("skeleton",w),[we,Ye]=le(xe),_t=ue()(xe,`${xe}-element`,{[`${xe}-active`]:ne},q,Se,Ye);return we(Q.createElement("div",{className:_t},Q.createElement("div",{className:ue()(`${xe}-image`,q),style:H},Q.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${xe}-image-svg`},Q.createElement("path",{d:ee,className:`${xe}-image-path`})))))},Le=d=>{const{prefixCls:w,className:q,rootClassName:Se,active:H,block:ne,size:Ge="default"}=d,{getPrefixCls:xe}=Q.useContext(Te.E_),we=xe("skeleton",w),[Ye,_t]=le(we),pe=(0,ie.Z)(d,["prefixCls"]),ut=ue()(we,`${we}-element`,{[`${we}-active`]:H,[`${we}-block`]:ne},q,Se,_t);return Ye(Q.createElement("div",{className:ut},Q.createElement(B,Object.assign({prefixCls:`${we}-input`,size:Ge},pe))))},Ce=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,Pe=x(7657),fe=function(w,q){return Q.createElement(Pe.Z,(0,Ce.Z)({},w,{ref:q,icon:ve}))},ye=Q.forwardRef(fe),at=ye,rt=d=>{const{prefixCls:w,className:q,rootClassName:Se,style:H,active:ne,children:Ge}=d,{getPrefixCls:xe}=Q.useContext(Te.E_),we=xe("skeleton",w),[Ye,_t]=le(we),pe=ue()(we,`${we}-element`,{[`${we}-active`]:ne},_t,q,Se),ut=Ge!=null?Ge:Q.createElement(at,null);return Ye(Q.createElement("div",{className:pe},Q.createElement("div",{className:ue()(`${we}-image`,q),style:H},ut)))},At=x(26407),jt=d=>{const w=xe=>{const{width:we,rows:Ye=2}=d;if(Array.isArray(we))return we[xe];if(Ye-1===xe)return we},{prefixCls:q,className:Se,style:H,rows:ne}=d,Ge=(0,At.Z)(Array(ne)).map((xe,we)=>Q.createElement("li",{key:we,style:{width:w(we)}}));return Q.createElement("ul",{className:ue()(q,Se),style:H},Ge)},ur=d=>{let{prefixCls:w,className:q,width:Se,style:H}=d;return Q.createElement("h3",{className:ue()(w,q),style:Object.assign({width:Se},H)})};function or(d){return d&&typeof d=="object"?d:{}}function xr(d,w){return d&&!w?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function fr(d,w){return!d&&w?{width:"38%"}:d&&w?{width:"50%"}:{}}function L(d,w){const q={};return(!d||!w)&&(q.width="61%"),!d&&w?q.rows=3:q.rows=2,q}const nt=d=>{const{prefixCls:w,loading:q,className:Se,rootClassName:H,style:ne,children:Ge,avatar:xe=!1,title:we=!0,paragraph:Ye=!0,active:_t,round:pe}=d,{getPrefixCls:ut,direction:ct,skeleton:Ie}=Q.useContext(Te.E_),ke=ut("skeleton",w),[vt,zt]=le(ke);if(q||!("loading"in d)){const Ut=!!xe,ar=!!we,Ir=!!Ye;let Pr;if(Ut){const cr=Object.assign(Object.assign({prefixCls:`${ke}-avatar`},xr(ar,Ir)),or(xe));Pr=Q.createElement("div",{className:`${ke}-header`},Q.createElement(B,Object.assign({},cr)))}let Kr;if(ar||Ir){let cr;if(ar){const zr=Object.assign(Object.assign({prefixCls:`${ke}-title`},fr(Ut,Ir)),or(we));cr=Q.createElement(ur,Object.assign({},zr))}let Ar;if(Ir){const zr=Object.assign(Object.assign({prefixCls:`${ke}-paragraph`},L(Ut,ar)),or(Ye));Ar=Q.createElement(jt,Object.assign({},zr))}Kr=Q.createElement("div",{className:`${ke}-content`},cr,Ar)}const Tr=ue()(ke,{[`${ke}-with-avatar`]:Ut,[`${ke}-active`]:_t,[`${ke}-rtl`]:ct==="rtl",[`${ke}-round`]:pe},Ie==null?void 0:Ie.className,Se,H,zt);return vt(Q.createElement("div",{className:Tr,style:Object.assign(Object.assign({},Ie==null?void 0:Ie.style),ne)},Pr,Kr))}return typeof Ge!="undefined"?Ge:null};nt.Button=je,nt.Avatar=Ne,nt.Input=Le,nt.Image=D,nt.Node=rt;var k=nt,p=k},81327:function(xn,qt,x){"use strict";x.d(qt,{Z:function(){return Y}});var ge=x(59301),ue=x(92310),Q=x.n(ue),Te=x(11592),ie=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:z}=K;const{latestIndex:le}=ge.useContext(B);return X==null?null:ge.createElement(ge.Fragment,null,ge.createElement("div",{className:se,style:z},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 O=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:z,direction:le}=ge.useContext(ie.E_),{size:he=(z==null?void 0:z.size)||"small",align:Ne,className:Be,rootClassName:je,children:ee,direction:ce="horizontal",prefixCls:D,split:ot,style:Le,wrap:Ce=!1,classNames:Re,styles:ve}=K,Pe=O(K,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[fe,ye]=Array.isArray(he)?he:[he,he],at=S(ye),tt=S(fe),rt=_(ye),At=_(fe),Nt=(0,Te.Z)(ee,{keepEmpty:!0}),jt=Ne===void 0&&ce==="horizontal"?"center":Ne,Qt=W("space",D),[ur,or]=(0,Z.Z)(Qt),xr=Q()(Qt,z==null?void 0:z.className,or,`${Qt}-${ce}`,{[`${Qt}-rtl`]:le==="rtl",[`${Qt}-align-${jt}`]:jt,[`${Qt}-gap-row-${ye}`]:at,[`${Qt}-gap-col-${fe}`]:tt},Be,je),fr=Q()(`${Qt}-item`,(te=Re==null?void 0:Re.item)!==null&&te!==void 0?te:(X=z==null?void 0:z.classNames)===null||X===void 0?void 0:X.item);let L=0;const nt=Nt.map((d,w)=>{var q,Se;d!=null&&(L=w);const H=d&&d.key||`${fr}-${w}`;return ge.createElement(h,{className:fr,key:H,index:w,split:ot,style:(q=ve==null?void 0:ve.item)!==null&&q!==void 0?q:(Se=z==null?void 0:z.styles)===null||Se===void 0?void 0:Se.item},d)}),k=ge.useMemo(()=>({latestIndex:L}),[L]);if(Nt.length===0)return null;const p={};return Ce&&(p.flexWrap="wrap"),!tt&&At&&(p.columnGap=fe),!at&&rt&&(p.rowGap=ye),ur(ge.createElement("div",Object.assign({ref:se,className:xr,style:Object.assign(Object.assign(Object.assign({},p),z==null?void 0:z.style),Le)},Pe),ge.createElement(f,{value:k},nt)))});I.Compact=G.ZP;var Y=I},8378:function(xn,qt){"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`}}});qt.Z=x},92899:function(xn,qt,x){"use strict";x.d(qt,{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}}),ie=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:ie,outKeyframes:G},"move-right":{inKeyframes:B,outKeyframes:f}},S=(_,O)=>{const{antCls:R}=_,I=`${R}-${O}`,{inKeyframes:Y,outKeyframes:K}=Z[O];return[(0,ue.R)(I,Y,K,_.motionDurationMid),{[`
${I}-enter,
${I}-appear
`]:{opacity:0,animationTimingFunction:_.motionEaseOutCirc},[`${I}-leave`]:{animationTimingFunction:_.motionEaseInOutCirc}}]}},13826:function(xn,qt,x){"use strict";x.d(qt,{Qt:function(){return ie},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}}),ie=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:ie,outKeyframes:G},"slide-left":{inKeyframes:B,outKeyframes:f},"slide-right":{inKeyframes:E,outKeyframes:h}},S=(_,O)=>{const{antCls:R}=_,I=`${R}-${O}`,{inKeyframes:Y,outKeyframes:K}=Z[O];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,qt,x){"use strict";x.d(qt,{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,qt,x){"use strict";x.d(qt,{default:function(){return Bt}});var ge={},ue="rc-table-internal-hook",Q=x(33606),Te=x(6089),ie=x(34280),G=x(13697),B=x(59301),f=x(4676);function E(U){var j=B.createContext(void 0),Ee=function(Je){var He=Je.value,dt=Je.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,ie.Z)(function(){(0,f.unstable_batchedUpdates)(function(){Ze.listeners.forEach(function(Xe){Xe(He)})})},[He]),B.createElement(j.Provider,{value:Ze},dt)};return{Context:j,Provider:Ee,defaultValue:U}}function h(U,j){var Ee=(0,Te.Z)(typeof j=="function"?j:function(Xe){if(j===void 0)return Xe;if(!Array.isArray(j))return Xe[j];var mt={};return j.forEach(function(yt){mt[yt]=Xe[yt]}),mt}),De=B.useContext(U==null?void 0:U.Context),Je=De||{},He=Je.listeners,dt=Je.getValue,pt=B.useRef();pt.current=Ee(De?dt():U==null?void 0:U.defaultValue);var Et=B.useState({}),de=(0,Q.Z)(Et,2),Ze=de[1];return(0,ie.Z)(function(){if(!De)return;function Xe(mt){var yt=Ee(mt);(0,G.Z)(pt.current,yt,!0)||Ze({})}return He.add(Xe),function(){He.delete(Xe)}},[De]),pt.current}var Z=x(92413),S=x(8654);function _(){var U=B.createContext(null);function j(){return B.useContext(U)}function Ee(Je,He){var dt=(0,S.Yr)(Je),pt=function(de,Ze){var Xe=dt?{ref:Ze}:{},mt=B.useRef(0),yt=B.useRef(de),It=j();return It!==null?B.createElement(Je,(0,Z.Z)({},de,Xe)):((!He||He(yt.current,de))&&(mt.current+=1),yt.current=de,B.createElement(U.Provider,{value:mt.current},B.createElement(Je,(0,Z.Z)({},de,Xe))))};return dt?B.forwardRef(pt):pt}function De(Je,He){var dt=(0,S.Yr)(Je),pt=function(de,Ze){var Xe=dt?{ref:Ze}:{};return j(),B.createElement(Je,(0,Z.Z)({},de,Xe))};return dt?B.memo(B.forwardRef(pt),He):B.memo(pt,He)}return{makeImmutable:Ee,responseImmutable:De,useImmutableMark:j}}var O=_(),R=O.makeImmutable,I=O.responseImmutable,Y=O.useImmutableMark,K=_(),se=K.makeImmutable,te=K.responseImmutable,X=K.useImmutableMark,W=E(),z=W;function le(U,j){var Ee=B.useRef(0);Ee.current+=1;var De=B.useRef(U),Je=[];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])&&Je.push(dt)}),De.current=U;var He=B.useRef([]);return Je.length&&(He.current=Je),B.useDebugValue(Ee.current),B.useDebugValue(He.current.join(", ")),j&&console.log("".concat(j,":"),Ee.current,He.current),Ee.current}var he=null,Ne=B.memo(function(){var U=le();return B.createElement("h1",null,"Render Times: ",U)});Ne.displayName="RenderBlock";var Be=x(39559),je=x(33708),ee=x(400),ce=x(92310),D=x.n(ce),ot=x(80547),Le=x(97938),Ce=x(48736),Re=B.createContext({renderWithProps:!1}),ve=Re,Pe="RC_TABLE_KEY";function fe(U){return U==null?[]:Array.isArray(U)?U:[U]}function ye(U){var j=[],Ee={};return U.forEach(function(De){for(var Je=De||{},He=Je.key,dt=Je.dataIndex,pt=He||fe(dt).join("-")||Pe;Ee[pt];)pt="".concat(pt,"_next");Ee[pt]=!0,j.push(pt)}),j}function at(U){return U!=null}function tt(U){return U&&(0,Be.Z)(U)==="object"&&!Array.isArray(U)&&!B.isValidElement(U)}function rt(U,j,Ee,De,Je,He){var dt=B.useContext(ve),pt=X(),Et=(0,ot.Z)(function(){if(at(De))return[De];var de=j==null||j===""?[]:Array.isArray(j)?j:[j],Ze=(0,Le.Z)(U,de),Xe=Ze,mt=void 0;if(Je){var yt=Je(Ze,U,Ee);tt(yt)?(Xe=yt.children,mt=yt.props,dt.renderWithProps=!0):Xe=yt}return[Xe,mt]},[pt,U,De,j,Je,Ee],function(de,Ze){if(He){var Xe=(0,Q.Z)(de,2),mt=Xe[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 At(U,j,Ee,De){var Je=U+j-1;return U<=De&&Je>=Ee}function Nt(U,j){return h(z,function(Ee){var De=At(U,j||1,Ee.hoverStartRow,Ee.hoverEndRow);return[De,Ee.onHover]})}var jt=function(j){var Ee=j.ellipsis,De=j.rowType,Je=j.children,He,dt=Ee===!0?{showTitle:!0}:Ee;return dt&&(dt.showTitle||De==="header")&&(typeof Je=="string"||typeof Je=="number"?He=Je.toString():B.isValidElement(Je)&&typeof Je.props.children=="string"&&(He=Je.props.children)),He};function Qt(U){var j,Ee,De,Je,He,dt,pt,Et,de=U.component,Ze=U.children,Xe=U.ellipsis,mt=U.scope,yt=U.prefixCls,It=U.className,Rt=U.align,Tt=U.record,pr=U.render,sr=U.dataIndex,_r=U.renderIndex,Qr=U.shouldCellUpdate,hn=U.index,rr=U.rowType,St=U.colSpan,Un=U.rowSpan,jr=U.fixLeft,yr=U.fixRight,Fr=U.firstFixLeft,br=U.lastFixLeft,kr=U.firstFixRight,fn=U.lastFixRight,$n=U.appendNode,Kn=U.additionalProps,Bn=Kn===void 0?{}:Kn,ai=U.isSticky,Ci="".concat(yt,"-cell"),fi=h(z,["supportSticky","allColumnsFixedLeft"]),gi=fi.supportSticky,Dn=fi.allColumnsFixedLeft,pa=rt(Tt,sr,_r,Ze,pr,Qr),qn=(0,Q.Z)(pa,2),co=qn[0],Ri=qn[1],na={},Ta=typeof jr=="number"&&gi,ga=typeof yr=="number"&&gi;Ta&&(na.position="sticky",na.left=jr),ga&&(na.position="sticky",na.right=yr);var Vn=(j=(Ee=(De=Ri==null?void 0:Ri.colSpan)!==null&&De!==void 0?De:Bn.colSpan)!==null&&Ee!==void 0?Ee:St)!==null&&j!==void 0?j:1,Wn=(Je=(He=(dt=Ri==null?void 0:Ri.rowSpan)!==null&&dt!==void 0?dt:Bn.rowSpan)!==null&&He!==void 0?He:Un)!==null&&Je!==void 0?Je:1,mi=Nt(hn,Wn),hi=(0,Q.Z)(mi,2),Vi=hi[0],mn=hi[1],Xn=function(Cn){var Ao;Tt&&mn(hn,hn+Wn-1),Bn==null||(Ao=Bn.onMouseEnter)===null||Ao===void 0||Ao.call(Bn,Cn)},oa=function(Cn){var Ao;Tt&&mn(-1,-1),Bn==null||(Ao=Bn.onMouseLeave)===null||Ao===void 0||Ao.call(Bn,Cn)};if(Vn===0||Wn===0)return null;var ji=(pt=Bn.title)!==null&&pt!==void 0?pt:jt({rowType:rr,ellipsis:Xe,children:co}),Lo=D()(Ci,It,(Et={},(0,ee.Z)(Et,"".concat(Ci,"-fix-left"),Ta&&gi),(0,ee.Z)(Et,"".concat(Ci,"-fix-left-first"),Fr&&gi),(0,ee.Z)(Et,"".concat(Ci,"-fix-left-last"),br&&gi),(0,ee.Z)(Et,"".concat(Ci,"-fix-left-all"),br&&Dn&&gi),(0,ee.Z)(Et,"".concat(Ci,"-fix-right"),ga&&gi),(0,ee.Z)(Et,"".concat(Ci,"-fix-right-first"),kr&&gi),(0,ee.Z)(Et,"".concat(Ci,"-fix-right-last"),fn&&gi),(0,ee.Z)(Et,"".concat(Ci,"-ellipsis"),Xe),(0,ee.Z)(Et,"".concat(Ci,"-with-append"),$n),(0,ee.Z)(Et,"".concat(Ci,"-fix-sticky"),(Ta||ga)&&ai&&gi),(0,ee.Z)(Et,"".concat(Ci,"-row-hover"),!Ri&&Vi),Et),Bn.className,Ri==null?void 0:Ri.className),ko={};Rt&&(ko.textAlign=Rt);var Hi=(0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)({},na),Bn.style),ko),Ri==null?void 0:Ri.style),eo=co;return(0,Be.Z)(eo)==="object"&&!Array.isArray(eo)&&!B.isValidElement(eo)&&(eo=null),Xe&&(br||kr)&&(eo=B.createElement("span",{className:"".concat(Ci,"-content")},eo)),B.createElement(de,(0,Z.Z)({},Ri,Bn,{className:Lo,style:Hi,title:ji,scope:mt,onMouseEnter:Xn,onMouseLeave:oa,colSpan:Vn!==1?Vn:null,rowSpan:Wn!==1?Wn:null}),$n,eo)}var ur=B.memo(Qt);function or(U,j,Ee,De,Je,He){var dt=Ee[U]||{},pt=Ee[j]||{},Et,de;dt.fixed==="left"?Et=De.left[Je==="rtl"?j:U]:pt.fixed==="right"&&(de=De.right[Je==="rtl"?U:j]);var Ze=!1,Xe=!1,mt=!1,yt=!1,It=Ee[j+1],Rt=Ee[U-1],Tt=!(He!=null&&He.children);if(Je==="rtl"){if(Et!==void 0){var pr=Rt&&Rt.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 _r=It&&It.fixed==="left";Ze=!_r&&Tt}else if(de!==void 0){var Qr=Rt&&Rt.fixed==="right";Xe=!Qr&&Tt}return{fixLeft:Et,fixRight:de,lastFixLeft:Ze,firstFixRight:Xe,lastFixRight:mt,firstFixLeft:yt,isSticky:De.isSticky}}var xr=B.createContext({}),fr=xr;function L(U){var j=U.className,Ee=U.index,De=U.children,Je=U.colSpan,He=Je===void 0?1:Je,dt=U.rowSpan,pt=U.align,Et=h(z,["prefixCls","direction"]),de=Et.prefixCls,Ze=Et.direction,Xe=B.useContext(fr),mt=Xe.scrollColumnIndex,yt=Xe.stickyOffsets,It=Xe.flattenColumns,Rt=Xe.columns,Tt=Ee+He-1,pr=Tt+1===mt?He+1:He,sr=or(Ee,Ee+pr-1,It,yt,Ze,Rt==null?void 0:Rt[Ee]);return B.createElement(ur,(0,Z.Z)({className:j,index:Ee,component:"td",prefixCls:de,record:null,dataIndex:null,align:pt,colSpan:pr,rowSpan:dt,render:function(){return De}},sr))}var nt=x(37061),k=["children"];function p(U){var j=U.children,Ee=(0,nt.Z)(U,k);return B.createElement("tr",Ee,j)}function d(U){var j=U.children;return j}d.Row=p,d.Cell=L;var w=d;function q(U){var j=U.children,Ee=U.stickyOffsets,De=U.flattenColumns,Je=U.columns,He=h(z,"prefixCls"),dt=De.length-1,pt=De[dt],Et=B.useMemo(function(){return{stickyOffsets:Ee,flattenColumns:De,scrollColumnIndex:pt!=null&&pt.scrollbar?dt:null,columns:Je}},[pt,De,dt,Ee,Je]);return B.createElement(fr.Provider,{value:Et},B.createElement("tfoot",{className:"".concat(He,"-summary")},j))}var Se=te(q),H=w,ne=x(70425),Ge=x(29301),xe=x(29194),we=x(24514),Ye=x(75152),_t=x(26112);function pe(U,j,Ee,De,Je,He,dt){U.push({record:j,indent:Ee,index:dt});var pt=He(j),Et=Je==null?void 0:Je.has(pt);if(j&&Array.isArray(j[De])&&Et)for(var de=0;de<j[De].length;de+=1)pe(U,j[De][de],Ee+1,De,Je,He,de)}function ut(U,j,Ee,De){var Je=B.useMemo(function(){if(Ee!=null&&Ee.size){for(var He=[],dt=0;dt<(U==null?void 0:U.length);dt+=1){var pt=U[dt];pe(He,pt,0,j,Ee,De,dt)}return He}return U==null?void 0:U.map(function(Et,de){return{record:Et,indent:0,index:de}})},[U,j,Ee,De]);return Je}function ct(U){var j=U.prefixCls,Ee=U.children,De=U.component,Je=U.cellComponent,He=U.className,dt=U.expanded,pt=U.colSpan,Et=U.isEmpty,de=h(z,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Ze=de.scrollbarSize,Xe=de.fixHeader,mt=de.fixColumn,yt=de.componentWidth,It=de.horizonScroll,Rt=Ee;return(Et?It&&yt:mt)&&(Rt=B.createElement("div",{style:{width:yt-(Xe?Ze:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(j,"-expanded-row-fixed")},Rt)),B.createElement(De,{className:He,style:{display:dt?null:"none"}},B.createElement(ur,{component:Je,prefixCls:j,colSpan:pt},Rt))}var Ie=ct;function ke(U,j,Ee,De){var Je=h(z,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),He=Je.flattenColumns,dt=Je.expandableType,pt=Je.expandedKeys,Et=Je.childrenColumnName,de=Je.onTriggerExpand,Ze=Je.rowExpandable,Xe=Je.onRow,mt=Je.expandRowByClick,yt=Je.rowClassName,It=dt==="nest",Rt=dt==="row"&&(!Ze||Ze(U)),Tt=Rt||It,pr=pt&&pt.has(j),sr=Et&&U&&U[Et],_r=(0,ne.useEvent)(de),Qr=Xe==null?void 0:Xe(U,Ee),hn=Qr==null?void 0:Qr.onClick,rr=function(yr){mt&&Tt&&de(U,yr);for(var Fr=arguments.length,br=new Array(Fr>1?Fr-1:0),kr=1;kr<Fr;kr++)br[kr-1]=arguments[kr];hn==null||hn.apply(void 0,[yr].concat(br))},St;typeof yt=="string"?St=yt:typeof yt=="function"&&(St=yt(U,Ee,De));var Un=ye(He);return(0,je.Z)((0,je.Z)({},Je),{},{columnsKey:Un,nestExpandable:It,expanded:pr,hasNestChildren:sr,record:U,onTriggerExpand:_r,rowSupportExpand:Rt,expandable:Tt,rowProps:(0,je.Z)((0,je.Z)({},Qr),{},{className:D()(St,Qr==null?void 0:Qr.className),onClick:rr})})}function vt(U,j,Ee,De,Je){var He=U.record,dt=U.prefixCls,pt=U.columnsKey,Et=U.fixedInfoList,de=U.expandIconColumnIndex,Ze=U.nestExpandable,Xe=U.indentSize,mt=U.expandIcon,yt=U.expanded,It=U.hasNestChildren,Rt=U.onTriggerExpand,Tt=pt[Ee],pr=Et[Ee],sr;Ee===(de||0)&&Ze&&(sr=B.createElement(B.Fragment,null,B.createElement("span",{style:{paddingLeft:"".concat(Xe*De,"px")},className:"".concat(dt,"-row-indent indent-level-").concat(De)}),mt({prefixCls:dt,expanded:yt,expandable:It,record:He,onExpand:Rt})));var _r;return j.onCell&&(_r=j.onCell(He,Je)),{key:Tt,fixedInfo:pr,appendCellNode:sr,additionalCellProps:_r||{}}}function zt(U){var j=U.className,Ee=U.style,De=U.record,Je=U.index,He=U.renderIndex,dt=U.rowKey,pt=U.indent,Et=pt===void 0?0:pt,de=U.rowComponent,Ze=U.cellComponent,Xe=U.scopeCellComponent,mt=ke(De,dt,Je,Et),yt=mt.prefixCls,It=mt.flattenColumns,Rt=mt.expandedRowClassName,Tt=mt.expandedRowRender,pr=mt.rowProps,sr=mt.expanded,_r=mt.rowSupportExpand,Qr=B.useState(!1),hn=(0,Q.Z)(Qr,2),rr=hn[0],St=hn[1];B.useEffect(function(){sr&&St(!0)},[sr]);var Un=B.createElement(de,(0,Z.Z)({},pr,{"data-row-key":dt,className:D()(j,"".concat(yt,"-row"),"".concat(yt,"-row-level-").concat(Et),pr==null?void 0:pr.className),style:(0,je.Z)((0,je.Z)({},Ee),pr==null?void 0:pr.style)}),It.map(function(br,kr){var fn=br.render,$n=br.dataIndex,Kn=br.className,Bn=vt(mt,br,kr,Et,Je),ai=Bn.key,Ci=Bn.fixedInfo,fi=Bn.appendCellNode,gi=Bn.additionalCellProps;return B.createElement(ur,(0,Z.Z)({className:Kn,ellipsis:br.ellipsis,align:br.align,scope:br.rowScope,component:br.rowScope?Xe:Ze,prefixCls:yt,key:ai,record:De,index:Je,renderIndex:He,dataIndex:$n,render:fn,shouldCellUpdate:br.shouldCellUpdate},Ci,{appendNode:fi,additionalProps:gi}))})),jr;if(_r&&(rr||sr)){var yr=Tt(De,Je,Et+1,sr),Fr=Rt&&Rt(De,Je,Et);jr=B.createElement(Ie,{expanded:sr,className:D()("".concat(yt,"-expanded-row"),"".concat(yt,"-expanded-row-level-").concat(Et+1),Fr),prefixCls:yt,component:de,cellComponent:Ze,colSpan:It.length,isEmpty:!1},yr)}return B.createElement(B.Fragment,null,Un,jr)}zt.displayName="BodyRow";var Ut=te(zt);function ar(U){var j=U.columnKey,Ee=U.onColumnResize,De=B.useRef();return B.useEffect(function(){De.current&&Ee(j,De.current.offsetWidth)},[]),B.createElement(Ge.Z,{data:j},B.createElement("td",{ref:De,style:{padding:0,border:0,height:0}},B.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Ir(U){var j=U.prefixCls,Ee=U.columnsKey,De=U.onColumnResize;return B.createElement("tr",{"aria-hidden":"true",className:"".concat(j,"-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)})}},Ee.map(function(Je){return B.createElement(ar,{key:Je,columnKey:Je,onColumnResize:De})})))}function Pr(U){var j=U.data,Ee=U.measureColumnWidth,De=h(z,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Je=De.prefixCls,He=De.getComponent,dt=De.onColumnResize,pt=De.flattenColumns,Et=De.getRowKey,de=De.expandedKeys,Ze=De.childrenColumnName,Xe=De.emptyNode,mt=ut(j,Ze,de,Et),yt=B.useRef({renderWithProps:!1}),It=He(["body","wrapper"],"tbody"),Rt=He(["body","row"],"tr"),Tt=He(["body","cell"],"td"),pr=He(["body","cell"],"th"),sr;j.length?sr=mt.map(function(Qr,hn){var rr=Qr.record,St=Qr.indent,Un=Qr.index,jr=Et(rr,hn);return B.createElement(Ut,{key:jr,rowKey:jr,record:rr,index:hn,renderIndex:Un,rowComponent:Rt,cellComponent:Tt,scopeCellComponent:pr,getRowKey:Et,indent:St})}):sr=B.createElement(Ie,{expanded:!0,className:"".concat(Je,"-placeholder"),prefixCls:Je,component:Rt,cellComponent:Tt,colSpan:pt.length,isEmpty:!0},Xe);var _r=ye(pt);return B.createElement(ve.Provider,{value:yt.current},B.createElement(It,{className:"".concat(Je,"-tbody")},Ee&&B.createElement(Ir,{prefixCls:Je,columnsKey:_r,onColumnResize:dt}),sr))}Pr.displayName="Body";var Kr=te(Pr),Tr=["expandable"],cr="RC_TABLE_INTERNAL_COL_DEFINE";function Ar(U){var j=U.expandable,Ee=(0,nt.Z)(U,Tr),De;return"expandable"in U?De=(0,je.Z)((0,je.Z)({},Ee),j):De=Ee,De.showExpandColumn===!1&&(De.expandIconColumnIndex=-1),De}var zr=["columnType"];function cn(U){for(var j=U.colWidths,Ee=U.columns,De=U.columCount,Je=[],He=De||Ee.length,dt=!1,pt=He-1;pt>=0;pt-=1){var Et=j[pt],de=Ee&&Ee[pt],Ze=de&&de[cr];if(Et||Ze||dt){var Xe=Ze||{},mt=Xe.columnType,yt=(0,nt.Z)(Xe,zr);Je.unshift(B.createElement("col",(0,Z.Z)({key:pt,style:{width:Et}},yt))),dt=!0}}return B.createElement("colgroup",null,Je)}var Sn=cn,An=x(26407),_n=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function xi(U,j){return(0,B.useMemo)(function(){for(var Ee=[],De=0;De<j;De+=1){var Je=U[De];if(Je!==void 0)Ee[De]=Je;else return null}return Ee},[U.join("_"),j])}var Mr=B.forwardRef(function(U,j){var Ee=U.className,De=U.noData,Je=U.columns,He=U.flattenColumns,dt=U.colWidths,pt=U.columCount,Et=U.stickyOffsets,de=U.direction,Ze=U.fixHeader,Xe=U.stickyTopOffset,mt=U.stickyBottomOffset,yt=U.stickyClassName,It=U.onScroll,Rt=U.maxContentScroll,Tt=U.children,pr=(0,nt.Z)(U,_n),sr=h(z,["prefixCls","scrollbarSize","isSticky"]),_r=sr.prefixCls,Qr=sr.scrollbarSize,hn=sr.isSticky,rr=hn&&!Ze?0:Qr,St=B.useRef(null),Un=B.useCallback(function(Kn){(0,S.mH)(j,Kn),(0,S.mH)(St,Kn)},[]);B.useEffect(function(){var Kn;function Bn(ai){var Ci=ai,fi=Ci.currentTarget,gi=Ci.deltaX;gi&&(It({currentTarget:fi,scrollLeft:fi.scrollLeft+gi}),ai.preventDefault())}return(Kn=St.current)===null||Kn===void 0||Kn.addEventListener("wheel",Bn),function(){var ai;(ai=St.current)===null||ai===void 0||ai.removeEventListener("wheel",Bn)}},[]);var jr=B.useMemo(function(){return He.every(function(Kn){return Kn.width})},[He]),yr=He[He.length-1],Fr={fixed:yr?yr.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(_r,"-cell-scrollbar")}}},br=(0,B.useMemo)(function(){return rr?[].concat((0,An.Z)(Je),[Fr]):Je},[rr,Je]),kr=(0,B.useMemo)(function(){return rr?[].concat((0,An.Z)(He),[Fr]):He},[rr,He]),fn=(0,B.useMemo)(function(){var Kn=Et.right,Bn=Et.left;return(0,je.Z)((0,je.Z)({},Et),{},{left:de==="rtl"?[].concat((0,An.Z)(Bn.map(function(ai){return ai+rr})),[0]):Bn,right:de==="rtl"?Kn:[].concat((0,An.Z)(Kn.map(function(ai){return ai+rr})),[0]),isSticky:hn})},[rr,Et,hn]),$n=xi(dt,pt);return B.createElement("div",{style:(0,je.Z)({overflow:"hidden"},hn?{top:Xe,bottom:mt}:{}),ref:Un,className:D()(Ee,(0,ee.Z)({},yt,!!yt))},B.createElement("table",{style:{tableLayout:"fixed",visibility:De||$n?null:"hidden"}},(!De||!Rt||jr)&&B.createElement(Sn,{colWidths:$n?[].concat((0,An.Z)($n),[rr]):[],columCount:pt+1,columns:kr}),Tt((0,je.Z)((0,je.Z)({},pr),{},{stickyOffsets:fn,columns:br,flattenColumns:kr}))))});Mr.displayName="FixedHolder";var ei=B.memo(Mr);function Bi(U){var j=U.cells,Ee=U.stickyOffsets,De=U.flattenColumns,Je=U.rowComponent,He=U.cellComponent,dt=U.tdCellComponent,pt=U.onHeaderRow,Et=U.index,de=h(z,["prefixCls","direction"]),Ze=de.prefixCls,Xe=de.direction,mt;pt&&(mt=pt(j.map(function(It){return It.column}),Et));var yt=ye(j.map(function(It){return It.column}));return B.createElement(Je,mt,j.map(function(It,Rt){var Tt=It.column,pr=or(It.colStart,It.colEnd,De,Ee,Xe,Tt),sr;return Tt&&Tt.onHeaderCell&&(sr=It.column.onHeaderCell(Tt)),B.createElement(ur,(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[Rt]},pr,{additionalProps:sr,rowType:"header"}))}))}Bi.displayName="HeaderRow";var zn=Bi;function Oi(U){var j=[];function Ee(dt,pt){var Et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;j[Et]=j[Et]||[];var de=pt,Ze=dt.filter(Boolean).map(function(Xe){var mt={key:Xe.key,className:Xe.className||"",children:Xe.title,column:Xe,colStart:de},yt=1,It=Xe.children;return It&&It.length>0&&(yt=Ee(It,de,Et+1).reduce(function(Rt,Tt){return Rt+Tt},0),mt.hasSubColumns=!0),"colSpan"in Xe&&(yt=Xe.colSpan),"rowSpan"in Xe&&(mt.rowSpan=Xe.rowSpan),mt.colSpan=yt,mt.colEnd=mt.colStart+yt-1,j[Et].push(mt),de+=yt,yt});return Ze}Ee(U,0);for(var De=j.length,Je=function(pt){j[pt].forEach(function(Et){!("rowSpan"in Et)&&!Et.hasSubColumns&&(Et.rowSpan=De-pt)})},He=0;He<De;He+=1)Je(He);return j}function yi(U){var j=U.stickyOffsets,Ee=U.columns,De=U.flattenColumns,Je=U.onHeaderRow,He=h(z,["prefixCls","getComponent"]),dt=He.prefixCls,pt=He.getComponent,Et=B.useMemo(function(){return Oi(Ee)},[Ee]),de=pt(["header","wrapper"],"thead"),Ze=pt(["header","row"],"tr"),Xe=pt(["header","cell"],"th"),mt=pt(["header","cell"],"td");return B.createElement(de,{className:"".concat(dt,"-thead")},Et.map(function(yt,It){var Rt=B.createElement(zn,{key:It,flattenColumns:De,cells:yt,stickyOffsets:j,rowComponent:Ze,cellComponent:Xe,tdCellComponent:mt,onHeaderRow:Je,index:It});return Rt}))}var Ki=te(yi),Ca=x(11592);function Zi(U){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof j=="number"?j:j.endsWith("%")?U*parseFloat(j)/100:null}function ni(U,j){return B.useMemo(function(){if(j&&j>0){var Ee=0,De=0;U.forEach(function(de){var Ze=Zi(j,de.width);Ze?Ee+=Ze:De+=1});var Je=j-Ee,He=De,dt=Je/De,pt=0,Et=U.map(function(de){var Ze=(0,je.Z)({},de),Xe=Zi(j,Ze.width);if(Xe)Ze.width=Xe;else{var mt=Math.floor(dt);Ze.width=He===1?Je:mt,Je-=mt,He-=1}return pt+=Ze.width,Ze});return[Et,pt]}return[U,j]},[U,j])}var Si=["children"],Ui=["fixed"];function me(U){return(0,Ca.Z)(U).filter(function(j){return B.isValidElement(j)}).map(function(j){var Ee=j.key,De=j.props,Je=De.children,He=(0,nt.Z)(De,Si),dt=(0,je.Z)({key:Ee},He);return Je&&(dt.children=me(Je)),dt})}function Ue(U){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return U.filter(function(Ee){return Ee&&(0,Be.Z)(Ee)==="object"}).reduce(function(Ee,De,Je){var He=De.fixed,dt=He===!0?"left":He,pt="".concat(j,"-").concat(Je),Et=De.children;return Et&&Et.length>0?[].concat((0,An.Z)(Ee),(0,An.Z)(Ue(Et,pt).map(function(de){return(0,je.Z)({fixed:dt},de)}))):[].concat((0,An.Z)(Ee),[(0,je.Z)((0,je.Z)({key:pt},De),{},{fixed:dt})])},[])}function Me(U){for(var j=!0,Ee=0;Ee<U.length;Ee+=1){var De=U[Ee];if(j&&De.fixed!=="left")j=!1;else if(!j&&De.fixed==="left"){warning(!1,"Index ".concat(Ee-1," of `columns` missing `fixed='left'` prop."));break}}for(var Je=!0,He=U.length-1;He>=0;He-=1){var dt=U[He];if(Je&&dt.fixed!=="right")Je=!1;else if(!Je&&dt.fixed==="right"){warning(!1,"Index ".concat(He+1," of `columns` missing `fixed='right'` prop."));break}}}function st(U){return U.map(function(j){var Ee=j.fixed,De=(0,nt.Z)(j,Ui),Je=Ee;return Ee==="left"?Je="right":Ee==="right"&&(Je="left"),(0,je.Z)({fixed:Je},De)})}function Zt(U,j){var Ee=U.prefixCls,De=U.columns,Je=U.children,He=U.expandable,dt=U.expandedKeys,pt=U.columnTitle,Et=U.getRowKey,de=U.onTriggerExpand,Ze=U.expandIcon,Xe=U.rowExpandable,mt=U.expandIconColumnIndex,yt=U.direction,It=U.expandRowByClick,Rt=U.columnWidth,Tt=U.fixed,pr=U.scrollWidth,sr=B.useMemo(function(){return De||me(Je)},[De,Je]),_r=B.useMemo(function(){if(He){var yr,Fr=sr.slice();if(!Fr.includes(ge)){var br=mt||0;br>=0&&Fr.splice(br,0,ge)}var kr=Fr.indexOf(ge);Fr=Fr.filter(function(Bn,ai){return Bn!==ge||ai===kr});var fn=sr[kr],$n;(Tt==="left"||Tt)&&!mt?$n="left":(Tt==="right"||Tt)&&mt===sr.length?$n="right":$n=fn?fn.fixed:null;var Kn=(yr={},(0,ee.Z)(yr,cr,{className:"".concat(Ee,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,ee.Z)(yr,"title",pt),(0,ee.Z)(yr,"fixed",$n),(0,ee.Z)(yr,"className","".concat(Ee,"-row-expand-icon-cell")),(0,ee.Z)(yr,"width",Rt),(0,ee.Z)(yr,"render",function(ai,Ci,fi){var gi=Et(Ci,fi),Dn=dt.has(gi),pa=Xe?Xe(Ci):!0,qn=Ze({prefixCls:Ee,expanded:Dn,expandable:pa,record:Ci,onExpand:de});return It?B.createElement("span",{onClick:function(Ri){return Ri.stopPropagation()}},qn):qn}),yr);return Fr.map(function(Bn){return Bn===ge?Kn:Bn})}return sr.filter(function(Bn){return Bn!==ge})},[He,sr,Et,dt,Ze,yt]),Qr=B.useMemo(function(){var yr=_r;return j&&(yr=j(yr)),yr.length||(yr=[{render:function(){return null}}]),yr},[j,_r,yt]),hn=B.useMemo(function(){return yt==="rtl"?st(Ue(Qr)):Ue(Qr)},[Qr,yt,pr]),rr=ni(hn,pr),St=(0,Q.Z)(rr,2),Un=St[0],jr=St[1];return[Qr,Un,jr]}var Kt=Zt;function Br(U){var j,Ee=U.prefixCls,De=U.record,Je=U.onExpand,He=U.expanded,dt=U.expandable,pt="".concat(Ee,"-row-expand-icon");if(!dt)return B.createElement("span",{className:D()(pt,"".concat(Ee,"-row-spaced"))});var Et=function(Ze){Je(De,Ze),Ze.stopPropagation()};return B.createElement("span",{className:D()(pt,(j={},(0,ee.Z)(j,"".concat(Ee,"-row-expanded"),He),(0,ee.Z)(j,"".concat(Ee,"-row-collapsed"),!He),j)),onClick:Et})}function hr(U,j,Ee){var De=[];function Je(He){(He||[]).forEach(function(dt,pt){De.push(j(dt,pt)),Je(dt[Ee])})}return Je(U),De}function Ur(U,j,Ee){var De=Ar(U),Je=De.expandIcon,He=De.expandedRowKeys,dt=De.defaultExpandedRowKeys,pt=De.defaultExpandAllRows,Et=De.expandedRowRender,de=De.onExpand,Ze=De.onExpandedRowsChange,Xe=De.childrenColumnName,mt=Je||Br,yt=Xe||"children",It=B.useMemo(function(){return Et?"row":U.expandable&&U.internalHooks===ue&&U.expandable.__PARENT_RENDER_ICON__||j.some(function(hn){return hn&&(0,Be.Z)(hn)==="object"&&hn[yt]})?"nest":!1},[!!Et,j]),Rt=B.useState(function(){return dt||(pt?hr(j,Ee,yt):[])}),Tt=(0,Q.Z)(Rt,2),pr=Tt[0],sr=Tt[1],_r=B.useMemo(function(){return new Set(He||pr||[])},[He,pr]),Qr=B.useCallback(function(hn){var rr=Ee(hn,j.indexOf(hn)),St,Un=_r.has(rr);Un?(_r.delete(rr),St=(0,An.Z)(_r)):St=[].concat((0,An.Z)(_r),[rr]),sr(St),de&&de(!Un,hn),Ze&&Ze(St)},[Ee,_r,j,de,Ze]);return[De,It,_r,mt,yt,Qr]}function Wr(U,j,Ee,De){var Je=U.map(function(He,dt){return or(dt,dt,U,j,Ee,De==null?void 0:De[dt])});return(0,ot.Z)(function(){return Je},[Je],function(He,dt){return!(0,G.Z)(He,dt)})}function en(U){var j=(0,B.useRef)(U),Ee=(0,B.useState)({}),De=(0,Q.Z)(Ee,2),Je=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,Xe=j.current;dt.current=[],Ze.forEach(function(mt){j.current=mt(j.current)}),He.current=null,Xe!==j.current&&Je({})}})}return(0,B.useEffect)(function(){return function(){He.current=null}},[]),[j.current,pt]}function Vr(U){var j=(0,B.useRef)(U||null),Ee=(0,B.useRef)();function De(){window.clearTimeout(Ee.current)}function Je(dt){j.current=dt,De(),Ee.current=window.setTimeout(function(){j.current=null,Ee.current=void 0},100)}function He(){return j.current}return(0,B.useEffect)(function(){return De},[]),[Je,He]}function Hr(){var U=B.useState(-1),j=(0,Q.Z)(U,2),Ee=j[0],De=j[1],Je=B.useState(-1),He=(0,Q.Z)(Je,2),dt=He[0],pt=He[1],Et=B.useCallback(function(de,Ze){De(de),pt(Ze)},[]);return[Ee,dt,Et]}var qr=x(47273),gn=(0,qr.Z)()?window:null;function tn(U,j){var Ee=(0,Be.Z)(U)==="object"?U:{},De=Ee.offsetHeader,Je=De===void 0?0:De,He=Ee.offsetSummary,dt=He===void 0?0:He,pt=Ee.offsetScroll,Et=pt===void 0?0:pt,de=Ee.getContainer,Ze=de===void 0?function(){return gn}:de,Xe=Ze()||gn;return B.useMemo(function(){var mt=!!U;return{isSticky:mt,stickyClassName:mt?"".concat(j,"-sticky-holder"):"",offsetHeader:Je,offsetSummary:dt,offsetScroll:Et,container:Xe}},[Et,Je,dt,j,Xe])}function Mn(U,j,Ee){var De=(0,B.useMemo)(function(){for(var Je=[],He=[],dt=0,pt=0,Et=0;Et<j;Et+=1)if(Ee==="rtl"){He[Et]=pt,pt+=U[Et]||0;var de=j-Et-1;Je[de]=dt,dt+=U[de]||0}else{Je[Et]=dt,dt+=U[Et]||0;var Ze=j-Et-1;He[Ze]=pt,pt+=U[Ze]||0}return{left:Je,right:He}},[U,j,Ee]);return De}var Rn=Mn;function pi(U){var j=U.className,Ee=U.children;return B.createElement("div",{className:j},Ee)}var Pn=pi,ln=x(8224),Ht=x(55468),Wt=function(j,Ee){var De,Je,He=j.scrollBodyRef,dt=j.onScroll,pt=j.offsetScroll,Et=j.container,de=h(z,"prefixCls"),Ze=((De=He.current)===null||De===void 0?void 0:De.scrollWidth)||0,Xe=((Je=He.current)===null||Je===void 0?void 0:Je.clientWidth)||0,mt=Ze&&Xe*(Xe/Ze),yt=B.useRef(),It=en({scrollLeft:0,isHiddenScrollBar:!1}),Rt=(0,Q.Z)(It,2),Tt=Rt[0],pr=Rt[1],sr=B.useRef({delta:0,x:0}),_r=B.useState(!1),Qr=(0,Q.Z)(_r,2),hn=Qr[0],rr=Qr[1],St=function(){rr(!1)},Un=function(kr){kr.persist(),sr.current.delta=kr.pageX-Tt.scrollLeft,sr.current.x=0,rr(!0),kr.preventDefault()},jr=function(kr){var fn,$n=kr||((fn=window)===null||fn===void 0?void 0:fn.event),Kn=$n.buttons;if(!hn||Kn===0){hn&&rr(!1);return}var Bn=sr.current.x+kr.pageX-sr.current.x-sr.current.delta;Bn<=0&&(Bn=0),Bn+mt>=Xe&&(Bn=Xe-mt),dt({scrollLeft:Bn/Xe*(Ze+2)}),sr.current.x=kr.pageX},yr=function(){if(He.current){var kr=(0,Ht.os)(He.current).top,fn=kr+He.current.offsetHeight,$n=Et===window?document.documentElement.scrollTop+window.innerHeight:(0,Ht.os)(Et).top+Et.clientHeight;fn-(0,Ye.Z)()<=$n||kr>=$n-pt?pr(function(Kn){return(0,je.Z)((0,je.Z)({},Kn),{},{isHiddenScrollBar:!0})}):pr(function(Kn){return(0,je.Z)((0,je.Z)({},Kn),{},{isHiddenScrollBar:!1})})}},Fr=function(kr){pr(function(fn){return(0,je.Z)((0,je.Z)({},fn),{},{scrollLeft:kr/Ze*Xe||0})})};return B.useImperativeHandle(Ee,function(){return{setScrollLeft:Fr}}),B.useEffect(function(){var br=(0,ln.Z)(document.body,"mouseup",St,!1),kr=(0,ln.Z)(document.body,"mousemove",jr,!1);return yr(),function(){br.remove(),kr.remove()}},[mt,hn]),B.useEffect(function(){var br=(0,ln.Z)(Et,"scroll",yr,!1),kr=(0,ln.Z)(window,"resize",yr,!1);return function(){br.remove(),kr.remove()}},[Et]),B.useEffect(function(){Tt.isHiddenScrollBar||pr(function(br){var kr=He.current;return kr?(0,je.Z)((0,je.Z)({},br),{},{scrollLeft:kr.scrollLeft/kr.scrollWidth*kr.clientWidth}):br})},[Tt.isHiddenScrollBar]),Ze<=Xe||!mt||Tt.isHiddenScrollBar?null:B.createElement("div",{style:{height:(0,Ye.Z)(),width:Xe,bottom:pt},className:"".concat(de,"-sticky-scroll")},B.createElement("div",{onMouseDown:Un,ref:yt,className:D()("".concat(de,"-sticky-scroll-bar"),(0,ee.Z)({},"".concat(de,"-sticky-scroll-bar-active"),hn)),style:{width:"".concat(mt,"px"),transform:"translate3d(".concat(Tt.scrollLeft,"px, 0, 0)")}}))},er=B.forwardRef(Wt);function tr(U){return null}var Xt=tr;function Nr(U){return null}var Lr=Nr,Jr="rc-table",Fn=[],Ln={};function li(){return"No Data"}function ti(U){var j,Ee=(0,je.Z)({rowKey:"key",prefixCls:Jr,emptyText:li},U),De=Ee.prefixCls,Je=Ee.className,He=Ee.rowClassName,dt=Ee.style,pt=Ee.data,Et=Ee.rowKey,de=Ee.scroll,Ze=Ee.tableLayout,Xe=Ee.direction,mt=Ee.title,yt=Ee.footer,It=Ee.summary,Rt=Ee.caption,Tt=Ee.id,pr=Ee.showHeader,sr=Ee.components,_r=Ee.emptyText,Qr=Ee.onRow,hn=Ee.onHeaderRow,rr=Ee.internalHooks,St=Ee.transformColumns,Un=Ee.internalRefs,jr=Ee.tailor,yr=Ee.sticky,Fr=pt||Fn,br=!!Fr.length,kr=rr===ue,fn=B.useCallback(function(_a,ya){return(0,Le.Z)(sr,_a)||ya},[sr]),$n=B.useMemo(function(){return typeof Et=="function"?Et:function(_a){var ya=_a&&_a[Et];return ya}},[Et]),Kn=fn(["body"]),Bn=Hr(),ai=(0,Q.Z)(Bn,3),Ci=ai[0],fi=ai[1],gi=ai[2],Dn=Ur(Ee,Fr,$n),pa=(0,Q.Z)(Dn,6),qn=pa[0],co=pa[1],Ri=pa[2],na=pa[3],Ta=pa[4],ga=pa[5],Vn=de==null?void 0:de.x,Wn=B.useState(0),mi=(0,Q.Z)(Wn,2),hi=mi[0],Vi=mi[1],mn=Kt((0,je.Z)((0,je.Z)((0,je.Z)({},Ee),qn),{},{expandable:!!qn.expandedRowRender,columnTitle:qn.columnTitle,expandedKeys:Ri,getRowKey:$n,onTriggerExpand:ga,expandIcon:na,expandIconColumnIndex:qn.expandIconColumnIndex,direction:Xe,scrollWidth:kr&&jr&&typeof Vn=="number"?Vn:null}),kr?St:null),Xn=(0,Q.Z)(mn,3),oa=Xn[0],ji=Xn[1],Lo=Xn[2],ko=Lo!=null?Lo:Vn,Hi=B.useMemo(function(){return{columns:oa,flattenColumns:ji}},[oa,ji]),eo=B.useRef(),as=B.useRef(),Cn=B.useRef(),Ao=B.useRef(),Ho=B.useRef(),qi=B.useState(!1),on=(0,Q.Z)(qi,2),va=on[0],uo=on[1],Va=B.useState(!1),Mi=(0,Q.Z)(Va,2),Do=Mi[0],Po=Mi[1],os=en(new Map),fs=(0,Q.Z)(os,2),ss=fs[0],hs=fs[1],Bl=ye(ji),qo=Bl.map(function(_a){return ss.get(_a)}),Ds=B.useMemo(function(){return qo},[qo.join("_")]),ps=Rn(Ds,ji.length,Xe),jo=de&&at(de.y),yo=de&&at(ko)||!!qn.fixed,Hs=yo&&ji.some(function(_a){var ya=_a.fixed;return ya}),oc=B.useRef(),Sl=tn(yr,De),Ol=Sl.isSticky,nA=Sl.offsetHeader,HA=Sl.offsetSummary,ma=Sl.offsetScroll,io=Sl.stickyClassName,Ka=Sl.container,bo=B.useMemo(function(){return It==null?void 0:It(Fr)},[It,Fr]),ms=(jo||Ol)&&B.isValidElement(bo)&&bo.type===w&&bo.props.fixed,Ps,gs,Gl;jo&&(gs={overflowY:"scroll",maxHeight:de.y}),yo&&(Ps={overflowX:"auto"},jo||(gs={overflowY:"hidden"}),Gl={width:ko===!0?"auto":ko,minWidth:"100%"});var El=B.useCallback(function(_a,ya){(0,xe.Z)(eo.current)&&hs(function(Js){if(Js.get(_a)!==ya){var _l=new Map(Js);return _l.set(_a,ya),_l}return Js})},[]),zc=Vr(null),Ns=(0,Q.Z)(zc,2),wa=Ns[0],Bo=Ns[1];function Tl(_a,ya){ya&&(typeof ya=="function"?ya(_a):ya.scrollLeft!==_a&&(ya.scrollLeft=_a,ya.scrollLeft!==_a&&setTimeout(function(){ya.scrollLeft=_a},0)))}var Xl=(0,Te.Z)(function(_a){var ya=_a.currentTarget,Js=_a.scrollLeft,_l=Xe==="rtl",Rl=typeof Js=="number"?Js:ya.scrollLeft,VA=ya||Ln;if(!Bo()||Bo()===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=ya||as.current;if(dl){var ql=dl.scrollWidth,ec=dl.clientWidth;if(ql===ec){uo(!1),Po(!1);return}_l?(uo(-Rl<ql-ec),Po(-Rl>0)):(uo(Rl>0),Po(Rl<ql-ec))}}),js=function(){yo&&Cn.current?Xl({currentTarget:Cn.current}):(uo(!1),Po(!1))},xA=function(ya){var Js=ya.width;Js!==hi&&(js(),Vi(eo.current?eo.current.offsetWidth:Js))},Jl=B.useRef(!1);B.useEffect(function(){Jl.current&&js()},[yo,pt,oa.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),dn=sc[0],Zc=sc[1];B.useEffect(function(){(!jr||!kr)&&(Cn.current instanceof Element?CA((0,Ye.o)(Cn.current).width):CA((0,Ye.o)(Ao.current).width)),Zc((0,we.G)("position","sticky"))},[]),B.useEffect(function(){kr&&Un&&(Un.body.current=Cn.current)});var Os=B.useCallback(function(_a){return B.createElement(B.Fragment,null,B.createElement(Ki,_a),ms==="top"&&B.createElement(Se,_a,bo))},[ms,bo]),BA=B.useCallback(function(_a){return B.createElement(Se,_a,bo)},[bo]),Vc=fn(["table"],"table"),la=B.useMemo(function(){return Ze||(Hs?ko==="max-content"?"auto":"fixed":jo||Ol||ji.some(function(_a){var ya=_a.ellipsis;return ya})?"fixed":"auto")},[jo,Hs,ji,Ze,Ol]),zA,$A={colWidths:Ds,columCount:ji.length,stickyOffsets:ps,onHeaderRow:hn,fixHeader:jo,scroll:de},So=B.useMemo(function(){return br?null:typeof _r=="function"?_r():_r},[br,_r]),ZA=B.createElement(Kr,{data:Fr,measureColumnWidth:jo||yo||Ol}),aA=B.createElement(Sn,{colWidths:ji.map(function(_a){var ya=_a.width;return ya}),columns:ji}),lc=Rt!=null?B.createElement("caption",{className:"".concat(De,"-caption")},Rt):void 0,Wc=(0,_t.Z)(Ee,{data:!0}),Yl=(0,_t.Z)(Ee,{aria:!0});if(jo||Ol){var cc;typeof Kn=="function"?(cc=Kn(Fr,{scrollbarSize:$c,ref:Cn,onScroll:Xl}),$A.colWidths=ji.map(function(_a,ya){var Js=_a.width,_l=ya===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:D()("".concat(De,"-body"))},B.createElement(Vc,(0,Z.Z)({style:(0,je.Z)((0,je.Z)({},Gl),{},{tableLayout:la})},Yl),lc,aA,ZA,!ms&&bo&&B.createElement(Se,{stickyOffsets:ps,flattenColumns:ji,columns:oa},bo)));var xo=(0,je.Z)((0,je.Z)((0,je.Z)({noData:!Fr.length,maxContentScroll:yo&&ko==="max-content"},$A),Hi),{},{direction:Xe,stickyClassName:io,onScroll:Xl});zA=B.createElement(B.Fragment,null,pr!==!1&&B.createElement(ei,(0,Z.Z)({},xo,{stickyTopOffset:nA,className:"".concat(De,"-header"),ref:as}),Os),cc,ms&&ms!=="top"&&B.createElement(ei,(0,Z.Z)({},xo,{stickyBottomOffset:HA,className:"".concat(De,"-summary"),ref:Ho}),BA),Ol&&B.createElement(er,{ref:oc,offsetScroll:ma,scrollBodyRef:Cn,onScroll:Xl,container:Ka}))}else zA=B.createElement("div",{style:(0,je.Z)((0,je.Z)({},Ps),gs),className:D()("".concat(De,"-content")),onScroll:Xl,ref:Cn},B.createElement(Vc,(0,Z.Z)({style:(0,je.Z)((0,je.Z)({},Gl),{},{tableLayout:la})},Yl),lc,aA,pr!==!1&&B.createElement(Ki,(0,Z.Z)({},$A,Hi)),ZA,bo&&B.createElement(Se,{stickyOffsets:ps,flattenColumns:ji,columns:oa},bo)));var Xs=B.createElement("div",(0,Z.Z)({className:D()(De,Je,(j={},(0,ee.Z)(j,"".concat(De,"-rtl"),Xe==="rtl"),(0,ee.Z)(j,"".concat(De,"-ping-left"),va),(0,ee.Z)(j,"".concat(De,"-ping-right"),Do),(0,ee.Z)(j,"".concat(De,"-layout-fixed"),Ze==="fixed"),(0,ee.Z)(j,"".concat(De,"-fixed-header"),jo),(0,ee.Z)(j,"".concat(De,"-fixed-column"),Hs),(0,ee.Z)(j,"".concat(De,"-scroll-horizontal"),yo),(0,ee.Z)(j,"".concat(De,"-has-fix-left"),ji[0]&&ji[0].fixed),(0,ee.Z)(j,"".concat(De,"-has-fix-right"),ji[ji.length-1]&&ji[ji.length-1].fixed==="right"),j)),style:dt,id:Tt,ref:eo},Wc),mt&&B.createElement(Pn,{className:"".concat(De,"-title")},mt(Fr)),B.createElement("div",{ref:Ao,className:"".concat(De,"-container")},zA),yt&&B.createElement(Pn,{className:"".concat(De,"-footer")},yt(Fr)));yo&&(Xs=B.createElement(Ge.Z,{onResize:xA},Xs));var ls=Wr(ji,ps,Xe,oa),ul=B.useMemo(function(){return{scrollX:ko,prefixCls:De,getComponent:fn,scrollbarSize:$c,direction:Xe,fixedInfoList:ls,isSticky:Ol,supportSticky:dn,componentWidth:hi,fixHeader:jo,fixColumn:Hs,horizonScroll:yo,tableLayout:la,rowClassName:He,expandedRowClassName:qn.expandedRowClassName,expandIcon:na,expandableType:co,expandRowByClick:qn.expandRowByClick,expandedRowRender:qn.expandedRowRender,onTriggerExpand:ga,expandIconColumnIndex:qn.expandIconColumnIndex,indentSize:qn.indentSize,allColumnsFixedLeft:ji.every(function(_a){return _a.fixed==="left"}),emptyNode:So,columns:oa,flattenColumns:ji,onColumnResize:El,hoverStartRow:Ci,hoverEndRow:fi,onHover:gi,rowExpandable:qn.rowExpandable,onRow:Qr,getRowKey:$n,expandedKeys:Ri,childrenColumnName:Ta}},[ko,De,fn,$c,Xe,ls,Ol,dn,hi,jo,Hs,yo,la,He,qn.expandedRowClassName,na,co,qn.expandRowByClick,qn.expandedRowRender,ga,qn.expandIconColumnIndex,qn.indentSize,So,oa,ji,El,Ci,fi,gi,qn.rowExpandable,Qr,$n,Ri,Ta]);return B.createElement(z.Provider,{value:ul},Xs)}function Ei(U){return se(ti,U)}var Yn=Ei();Yn.EXPAND_COLUMN=ge,Yn.INTERNAL_HOOKS=ue,Yn.Column=Xt,Yn.ColumnGroup=Lr,Yn.Summary=H;var Hn=Yn,sn=x(24916),vi=E(null),In=E(null);function ii(U,j,Ee){var De=j||1;return Ee[U+De]-(Ee[U]||0)}function bi(U){var j=U.rowInfo,Ee=U.column,De=U.colIndex,Je=U.indent,He=U.index,dt=U.renderIndex,pt=U.record,Et=U.style,de=U.className,Ze=U.inverse,Xe=U.getHeight,mt=Ee.render,yt=Ee.dataIndex,It=Ee.className,Rt=Ee.width,Tt=h(In,["columnsOffset"]),pr=Tt.columnsOffset,sr=vt(j,Ee,De,Je,He),_r=sr.key,Qr=sr.fixedInfo,hn=sr.appendCellNode,rr=sr.additionalCellProps,St=rr.style,Un=rr.colSpan,jr=Un===void 0?1:Un,yr=rr.rowSpan,Fr=yr===void 0?1:yr,br=De-1,kr=ii(br,jr,pr),fn=jr>1?Rt-kr:0,$n=(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"}),Kn=B.useMemo(function(){return Ze?Fr<=1:jr===0||Fr===0||Fr>1},[Fr,jr,Ze]);Kn?$n.visibility="hidden":Ze&&($n.height=Xe==null?void 0:Xe(Fr));var Bn=Kn?function(){return null}:mt,ai={};return(Fr===0||jr===0)&&(ai.rowSpan=1,ai.colSpan=1),B.createElement(ur,(0,Z.Z)({className:D()(It,de),ellipsis:Ee.ellipsis,align:Ee.align,scope:Ee.rowScope,component:"div",prefixCls:j.prefixCls,key:_r,record:pt,index:He,renderIndex:dt,dataIndex:yt,render:Bn,shouldCellUpdate:Ee.shouldCellUpdate},Qr,{appendNode:hn,additionalProps:(0,je.Z)((0,je.Z)({},rr),{},{style:$n},ai)}))}var Di=bi,Gn=["data","index","className","rowKey","style","extra","getHeight"],Li=B.forwardRef(function(U,j){var Ee=U.data,De=U.index,Je=U.className,He=U.rowKey,dt=U.style,pt=U.extra,Et=U.getHeight,de=(0,nt.Z)(U,Gn),Ze=Ee.record,Xe=Ee.indent,mt=Ee.index,yt=h(z,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),It=yt.scrollX,Rt=yt.flattenColumns,Tt=yt.prefixCls,pr=yt.fixColumn,sr=yt.componentWidth,_r=ke(Ze,He,De,Xe),Qr=_r.rowSupportExpand,hn=_r.expanded,rr=_r.rowProps,St=_r.expandedRowRender,Un=_r.expandedRowClassName,jr;if(Qr&&hn){var yr=St(Ze,De,Xe+1,hn),Fr=Un==null?void 0:Un(Ze,De,Xe),br={};pr&&(br={style:(0,ee.Z)({},"--virtual-width","".concat(sr,"px"))});var kr="".concat(Tt,"-expanded-row-cell");jr=B.createElement("div",{className:D()("".concat(Tt,"-expanded-row"),"".concat(Tt,"-expanded-row-level-").concat(Xe+1),Fr)},B.createElement(ur,{component:"div",prefixCls:Tt,className:D()(kr,(0,ee.Z)({},"".concat(kr,"-fixed"),pr)),additionalProps:br},yr))}var fn=(0,je.Z)((0,je.Z)({},dt),{},{width:It});pt&&(fn.position="absolute",fn.pointerEvents="none");var $n=B.createElement("div",(0,Z.Z)({},rr,de,{ref:Qr?null:j,className:D()(Je,"".concat(Tt,"-row"),rr==null?void 0:rr.className,(0,ee.Z)({},"".concat(Tt,"-row-extra"),pt)),style:(0,je.Z)((0,je.Z)({},fn),rr==null?void 0:rr.style)}),Rt.map(function(Kn,Bn){return B.createElement(Di,{key:Bn,rowInfo:_r,column:Kn,colIndex:Bn,indent:Xe,index:De,renderIndex:mt,record:Ze,inverse:pt,getHeight:Et})}));return Qr?B.createElement("div",{ref:j},$n,jr):$n}),ra=te(Li),si=ra,un=B.forwardRef(function(U,j){var Ee=U.data,De=U.onScroll,Je=h(z,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),He=Je.flattenColumns,dt=Je.onColumnResize,pt=Je.getRowKey,Et=Je.expandedKeys,de=Je.prefixCls,Ze=Je.childrenColumnName,Xe=Je.emptyNode,mt=Je.scrollX,yt=h(vi),It=yt.scrollY,Rt=yt.listItemHeight,Tt=B.useRef(),pr=ut(Ee,Ze,Et,pt),sr=B.useMemo(function(){var jr=0;return He.map(function(yr){var Fr=yr.width,br=yr.key;return jr+=Fr,[br,Fr,jr]})},[He]),_r=B.useMemo(function(){return sr.map(function(jr){return jr[2]})},[sr]);B.useEffect(function(){sr.forEach(function(jr){var yr=(0,Q.Z)(jr,2),Fr=yr[0],br=yr[1];dt(Fr,br)})},[sr]),B.useImperativeHandle(j,function(){var jr={};return Object.defineProperty(jr,"scrollLeft",{get:function(){var Fr;return((Fr=Tt.current)===null||Fr===void 0?void 0:Fr.getScrollInfo().x)||0},set:function(Fr){var br;(br=Tt.current)===null||br===void 0||br.scrollTo({left:Fr})}}),jr});var Qr=function(yr,Fr){var br,kr=(br=pr[Fr])===null||br===void 0?void 0:br.record,fn=yr.onCell;if(fn){var $n,Kn=fn(kr,Fr);return($n=Kn==null?void 0:Kn.rowSpan)!==null&&$n!==void 0?$n:1}return 1},hn=function(yr){var Fr=yr.start,br=yr.end,kr=yr.getSize,fn=yr.offsetY;if(br<0)return null;for(var $n=He.filter(function(Vn){return Qr(Vn,Fr)===0}),Kn=Fr,Bn=function(Wn){if($n=$n.filter(function(mi){return Qr(mi,Wn)===0}),!$n.length)return Kn=Wn,"break"},ai=Fr;ai>=0;ai-=1){var Ci=Bn(ai);if(Ci==="break")break}for(var fi=He.filter(function(Vn){return Qr(Vn,br)!==1}),gi=br,Dn=function(Wn){if(fi=fi.filter(function(mi){return Qr(mi,Wn)!==1}),!fi.length)return gi=Math.max(Wn-1,br),"break"},pa=br;pa<pr.length;pa+=1){var qn=Dn(pa);if(qn==="break")break}for(var co=[],Ri=function(Wn){var mi=pr[Wn];if(!mi)return"continue";He.some(function(hi){return Qr(hi,Wn)>1})&&co.push(Wn)},na=Kn;na<=gi;na+=1)var Ta=Ri(na);var ga=co.map(function(Vn){var Wn=pr[Vn],mi=pt(Wn.record,Vn),hi=function(Xn){var oa=Vn+Xn-1,ji=pt(pr[oa].record,oa),Lo=kr(mi,ji);return Lo.bottom-Lo.top},Vi=kr(mi);return B.createElement(si,{key:Vn,data:Wn,rowKey:mi,index:Vn,style:{top:-fn+Vi.top},extra:!0,getHeight:hi})});return ga},rr=B.useMemo(function(){return{columnsOffset:_r}},[_r]),St="".concat(de,"-tbody"),Un;return pr.length?Un=B.createElement(sn.Z,{fullHeight:!1,ref:Tt,className:D()(St,"".concat(St,"-virtual")),height:It,itemHeight:Rt||24,data:pr,itemKey:function(yr){return pt(yr.record)},scrollWidth:mt,onVirtualScroll:function(yr){var Fr=yr.x;De({scrollLeft:Fr})},extraRender:hn},function(jr,yr,Fr){var br=pt(jr.record,yr);return B.createElement(si,(0,Z.Z)({data:jr,rowKey:br,index:yr},Fr))}):Un=B.createElement("div",{className:D()("".concat(de,"-placeholder"))},B.createElement(ur,{component:"div",prefixCls:de},Xe)),B.createElement(In.Provider,{value:rr},Un)}),rn=te(un),Nn=rn,wn=function(j,Ee){var De=Ee.ref,Je=Ee.onScroll;return B.createElement(Nn,{ref:De,data:j,onScroll:Je})},jn=100;function ui(U){var j=U.columns,Ee=U.scroll,De=U.prefixCls,Je=De===void 0?Jr:De,He=U.className,dt=U.listItemHeight,pt=Ee||{},Et=pt.x,de=pt.y;typeof Et!="number"&&(Et=((j||[]).length+1)*jn),typeof de!="number"&&(de=500);var Ze=B.useMemo(function(){return{scrollY:de,listItemHeight:dt}},[de,dt]);return B.createElement(vi.Provider,{value:Ze},B.createElement(Hn,(0,Z.Z)({},U,{className:D()(He,"".concat(Je,"-virtual")),scroll:(0,je.Z)((0,je.Z)({},Ee),{},{x:Et}),components:{body:wn},columns:j,internalHooks:ue,tailor:!0})))}function _i(U){return se(ui,U)}var ca=_i(),Yi=null;function so(U){return null}var ri=so;function On(U){return null}var ki=On,Ii=x(2738),da=x(68031),To=x(36355),ia=x(93891),Ji=x(19716),ja=x(8628),Fa=x(31724),ro=x(58421),wo=x(71418),Ba=x(88088);function di(U){return function(Ee){let{prefixCls:De,onExpand:Je,record:He,expanded:dt,expandable:pt}=Ee;const Et=`${De}-row-expand-icon`;return B.createElement("button",{type:"button",onClick:de=>{Je(He,de),de.stopPropagation()},className:D()(Et,{[`${Et}-spaced`]:!pt,[`${Et}-expanded`]:pt&&dt,[`${Et}-collapsed`]:pt&&!dt}),"aria-label":dt?U.collapse:U.expand,"aria-expanded":dt})}}var Aa=di;function No(U,j){return"key"in U&&U.key!==void 0&&U.key!==null?U.key:U.dataIndex?Array.isArray(U.dataIndex)?U.dataIndex.join("."):U.dataIndex:j}function ho(U,j){return j?`${j}-${U}`:`${U}`}function Ja(U,j){return typeof U=="function"?U(j):U}function Ni(U,j){const Ee=Ja(U,j);return Object.prototype.toString.call(Ee)==="[object Object]"?"":Ee}var Oo={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"},po=Oo,el=x(7657),Wo=function(j,Ee){return B.createElement(el.Z,(0,Z.Z)({},j,{ref:Ee,icon:po}))},Rs=B.forwardRef(Wo),Go=Rs,xl=x(56762);function za(U){const j=B.useRef(U),Ee=(0,xl.Z)();return[()=>j.current,De=>{j.current=De,Ee()}]}var Qa=x(3113),Ea=x(24905),Qs=x(38854),wi=x(64165),Wi=x(20834),Ti=x(40875),Gi=x(5112),ua=x(17574),Ia=x(47472),Xo=x(92832);function Fo(U){let{value:j,onChange:Ee,filterSearch:De,tablePrefixCls:Je,locale:He}=U;return De?B.createElement("div",{className:`${Je}-filter-dropdown-search`},B.createElement(Xo.default,{prefix:B.createElement(Ia.Z,null),placeholder:He.filterSearchPlaceholder,onChange:Ee,value:j,htmlSize:1,className:`${Je}-filter-dropdown-search-input`})):null}var Eo=Fo,$a=x(10228);const Sa=U=>{const{keyCode:j}=U;j===$a.Z.ENTER&&U.stopPropagation()};var Da=B.forwardRef((U,j)=>B.createElement("div",{className:U.className,onClick:Ee=>Ee.stopPropagation(),onKeyDown:Sa,ref:j},U.children));function Ya(U){let j=[];return(U||[]).forEach(Ee=>{let{value:De,children:Je}=Ee;j.push(De),Je&&(j=[].concat((0,An.Z)(j),(0,An.Z)(Ya(Je))))}),j}function lo(U){return U.some(j=>{let{children:Ee}=j;return Ee})}function Oa(U,j){return typeof j=="string"||typeof j=="number"?j==null?void 0:j.toString().toLowerCase().includes(U.trim().toLowerCase()):!1}function Ma(U){let{filters:j,prefixCls:Ee,filteredKeys:De,filterMultiple:Je,searchValue:He,filterSearch:dt}=U;return j.map((pt,Et)=>{const de=String(pt.value);if(pt.children)return{key:de||Et,label:pt.text,popupClassName:`${Ee}-dropdown-submenu`,children:Ma({filters:pt.children,prefixCls:Ee,filteredKeys:De,filterMultiple:Je,searchValue:He,filterSearch:dt})};const Ze=Je?Ea.default:Gi.ZP,Xe={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)?Xe:null:Oa(He,pt.text)?Xe:null:Xe})}function Io(U){var j,Ee;const{tablePrefixCls:De,prefixCls:Je,column:He,dropdownPrefixCls:dt,columnKey:pt,filterMultiple:Et,filterMode:de="menu",filterSearch:Ze=!1,filterState:Xe,triggerFilter:mt,locale:yt,children:It,getPopupContainer:Rt}=U,{filterDropdownOpen:Tt,onFilterDropdownOpenChange:pr,filterResetToDefaultFilteredValue:sr,defaultFilteredValue:_r,filterDropdownVisible:Qr,onFilterDropdownVisibleChange:hn}=He,[rr,St]=B.useState(!1),Un=!!(Xe&&(!((j=Xe.filteredKeys)===null||j===void 0)&&j.length||Xe.forceFiltered)),jr=mn=>{St(mn),pr==null||pr(mn),hn==null||hn(mn)},yr=(Ee=Tt!=null?Tt:Qr)!==null&&Ee!==void 0?Ee:rr,Fr=Xe==null?void 0:Xe.filteredKeys,[br,kr]=za(Fr||[]),fn=mn=>{let{selectedKeys:Xn}=mn;kr(Xn)},$n=(mn,Xn)=>{let{node:oa,checked:ji}=Xn;fn(Et?{selectedKeys:mn}:{selectedKeys:ji&&oa.key?[oa.key]:[]})};B.useEffect(()=>{rr&&fn({selectedKeys:Fr||[]})},[Fr]);const[Kn,Bn]=B.useState([]),ai=mn=>{Bn(mn)},[Ci,fi]=B.useState(""),gi=mn=>{const{value:Xn}=mn.target;fi(Xn)};B.useEffect(()=>{rr||fi("")},[rr]);const Dn=mn=>{const Xn=mn&&mn.length?mn:null;if(Xn===null&&(!Xe||!Xe.filteredKeys)||(0,G.Z)(Xn,Xe==null?void 0:Xe.filteredKeys,!0))return null;mt({column:He,key:pt,filteredKeys:Xn})},pa=()=>{jr(!1),Dn(br())},qn=function(){let{confirm:mn,closeDropdown:Xn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};mn&&Dn([]),Xn&&jr(!1),fi(""),kr(sr?(_r||[]).map(oa=>String(oa)):[])},co=function(){let{closeDropdown:mn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};mn&&jr(!1),Dn(br())},Ri=mn=>{mn&&Fr!==void 0&&kr(Fr||[]),jr(mn),!mn&&!He.filterDropdown&&pa()},na=D()({[`${dt}-menu-without-submenu`]:!lo(He.filters||[])}),Ta=mn=>{if(mn.target.checked){const Xn=Ya(He==null?void 0:He.filters).map(oa=>String(oa));kr(Xn)}else kr([])},ga=mn=>{let{filters:Xn}=mn;return(Xn||[]).map((oa,ji)=>{const Lo=String(oa.value),ko={title:oa.text,key:oa.value!==void 0?Lo:ji};return oa.children&&(ko.children=ga({filters:oa.children})),ko})},Vn=mn=>{var Xn;return Object.assign(Object.assign({},mn),{text:mn.title,value:mn.key,children:((Xn=mn.children)===null||Xn===void 0?void 0:Xn.map(oa=>Vn(oa)))||[]})};let Wn;if(typeof He.filterDropdown=="function")Wn=He.filterDropdown({prefixCls:`${dt}-custom`,setSelectedKeys:mn=>fn({selectedKeys:mn}),selectedKeys:br(),confirm:co,clearFilters:qn,filters:He.filters,visible:yr,close:()=>{jr(!1)}});else if(He.filterDropdown)Wn=He.filterDropdown;else{const mn=br()||[],Xn=()=>(He.filters||[]).length===0?B.createElement(wi.Z,{image:wi.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(Eo,{filterSearch:Ze,value:Ci,onChange:gi,tablePrefixCls:De,locale:yt}),B.createElement("div",{className:`${De}-filter-dropdown-tree`},Et?B.createElement(Ea.default,{checked:mn.length===Ya(He.filters).length,indeterminate:mn.length>0&&mn.length<Ya(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:$n,checkedKeys:mn,selectedKeys:mn,showIcon:!1,treeData:ga({filters:He.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Ci.trim()?ji=>typeof Ze=="function"?Ze(Ci,Vn(ji)):Oa(Ci,ji.title):void 0}))):B.createElement(B.Fragment,null,B.createElement(Eo,{filterSearch:Ze,value:Ci,onChange:gi,tablePrefixCls:De,locale:yt}),B.createElement(Wi.default,{selectable:!0,multiple:Et,prefixCls:`${dt}-menu`,className:na,onSelect:fn,onDeselect:fn,selectedKeys:mn,getPopupContainer:Rt,openKeys:Kn,onOpenChange:ai,items:Ma({filters:He.filters||[],filterSearch:Ze,prefixCls:Je,filteredKeys:br(),filterMultiple:Et,searchValue:Ci})})),oa=()=>sr?(0,G.Z)((_r||[]).map(ji=>String(ji)),mn,!0):mn.length===0;Wn=B.createElement(B.Fragment,null,Xn(),B.createElement("div",{className:`${Je}-dropdown-btns`},B.createElement(Qa.ZP,{type:"link",size:"small",disabled:oa(),onClick:()=>qn()},yt.filterReset),B.createElement(Qa.ZP,{type:"primary",size:"small",onClick:pa},yt.filterConfirm)))}He.filterDropdown&&(Wn=B.createElement(Ti.J,{selectable:void 0},Wn));const mi=()=>B.createElement(Da,{className:`${Je}-dropdown`},Wn);let hi;typeof He.filterIcon=="function"?hi=He.filterIcon(Un):He.filterIcon?hi=He.filterIcon:hi=B.createElement(Go,null);const{direction:Vi}=B.useContext(To.E_);return B.createElement("div",{className:`${Je}-column`},B.createElement("span",{className:`${De}-column-title`},It),B.createElement(Qs.Z,{dropdownRender:mi,trigger:["click"],open:yr,onOpenChange:Ri,getPopupContainer:Rt,placement:Vi==="rtl"?"bottomLeft":"bottomRight"},B.createElement("span",{role:"button",tabIndex:-1,className:D()(`${Je}-trigger`,{active:Un}),onClick:mn=>{mn.stopPropagation()}},hi)))}var kl=Io;function ds(U,j,Ee){let De=[];return(U||[]).forEach((Je,He)=>{var dt;const pt=ho(He,Ee);if(Je.filters||"filterDropdown"in Je||"onFilter"in Je)if("filteredValue"in Je){let Et=Je.filteredValue;"filterDropdown"in Je||(Et=(dt=Et==null?void 0:Et.map(String))!==null&&dt!==void 0?dt:Et),De.push({column:Je,key:No(Je,pt),filteredKeys:Et,forceFiltered:Je.filtered})}else De.push({column:Je,key:No(Je,pt),filteredKeys:j&&Je.defaultFilteredValue?Je.defaultFilteredValue:void 0,forceFiltered:Je.filtered});"children"in Je&&(De=[].concat((0,An.Z)(De),(0,An.Z)(ds(Je.children,j,pt))))}),De}function ll(U,j,Ee,De,Je,He,dt,pt){return Ee.map((Et,de)=>{const Ze=ho(de,pt),{filterMultiple:Xe=!0,filterMode:mt,filterSearch:yt}=Et;let It=Et;if(It.filters||It.filterDropdown){const Rt=No(It,Ze),Tt=De.find(pr=>{let{key:sr}=pr;return Rt===sr});It=Object.assign(Object.assign({},It),{title:pr=>B.createElement(kl,{tablePrefixCls:U,prefixCls:`${U}-filter`,dropdownPrefixCls:j,column:It,columnKey:Rt,filterState:Tt,filterMultiple:Xe,filterMode:mt,filterSearch:yt,triggerFilter:He,locale:Je,getPopupContainer:dt},Ja(Et.title,pr))})}return"children"in It&&(It=Object.assign(Object.assign({},It),{children:ll(U,j,It.children,De,Je,He,dt,Ze)})),It})}function Uo(U){const j={};return U.forEach(Ee=>{let{key:De,filteredKeys:Je,column:He}=Ee;const{filters:dt,filterDropdown:pt}=He;if(pt)j[De]=Je||null;else if(Array.isArray(Je)){const Et=Ya(dt);j[De]=Et.filter(de=>Je.includes(String(de)))}else j[De]=null}),j}function Ms(U,j){return j.reduce((Ee,De)=>{const{column:{onFilter:Je,filters:He},filteredKeys:dt}=De;return Je&&dt&&dt.length?Ee.filter(pt=>dt.some(Et=>{const de=Ya(He),Ze=de.findIndex(mt=>String(mt)===String(Et)),Xe=Ze!==-1?de[Ze]:Et;return Je(Xe,pt)})):Ee},U)}const Mo=U=>U.flatMap(j=>"children"in j?[j].concat((0,An.Z)(Mo(j.children||[]))):[j]);function Qn(U){let{prefixCls:j,dropdownPrefixCls:Ee,mergedColumns:De,onFilterChange:Je,getPopupContainer:He,locale:dt}=U;const pt=B.useMemo(()=>Mo(De||[]),[De]),[Et,de]=B.useState(()=>ds(pt,!0)),Ze=B.useMemo(()=>{const It=ds(pt,!1);if(It.length===0)return It;let Rt=!0,Tt=!0;if(It.forEach(pr=>{let{filteredKeys:sr}=pr;sr!==void 0?Rt=!1:Tt=!1}),Rt){const pr=(pt||[]).map((sr,_r)=>No(sr,ho(_r)));return Et.filter(sr=>{let{key:_r}=sr;return pr.includes(_r)}).map(sr=>{const _r=pt[pr.findIndex(Qr=>Qr===sr.key)];return Object.assign(Object.assign({},sr),{column:Object.assign(Object.assign({},sr.column),_r),forceFiltered:_r.filtered})})}return It},[pt,Et]),Xe=B.useMemo(()=>Uo(Ze),[Ze]),mt=It=>{const Rt=Ze.filter(Tt=>{let{key:pr}=Tt;return pr!==It.key});Rt.push(It),de(Rt),Je(Uo(Rt),Rt)};return[It=>ll(j,Ee,It,Ze,dt,mt,He),Ze,Xe]}var Dl=Qn;function Ro(U,j,Ee){const De=B.useRef({});function Je(He){if(!De.current||De.current.data!==U||De.current.childrenColumnName!==j||De.current.getRowKey!==Ee){let pt=function(Et){Et.forEach((de,Ze)=>{const Xe=Ee(de,Ze);dt.set(Xe,de),de&&typeof de=="object"&&j in de&&pt(de[j]||[])})};const dt=new Map;pt(U),De.current={data:U,childrenColumnName:j,kvMap:dt,getRowKey:Ee}}return De.current.kvMap.get(He)}return[Je]}var Vl=x(50371),Ks=function(U,j){var Ee={};for(var De in U)Object.prototype.hasOwnProperty.call(U,De)&&j.indexOf(De)<0&&(Ee[De]=U[De]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,De=Object.getOwnPropertySymbols(U);Je<De.length;Je++)j.indexOf(De[Je])<0&&Object.prototype.propertyIsEnumerable.call(U,De[Je])&&(Ee[De[Je]]=U[De[Je]]);return Ee};const bs=10;function La(U,j){const Ee={current:U.current,pageSize:U.pageSize};return Object.keys(j&&typeof j=="object"?j:{}).forEach(Je=>{const He=U[Je];typeof He!="function"&&(Ee[Je]=He)}),Ee}function Qo(U,j,Ee){const De=Ee&&typeof Ee=="object"?Ee:{},{total:Je=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:Je>0?Je:U}),de=Math.ceil((Je||U)/Et.pageSize);Et.current>de&&(Et.current=de||1);const Ze=(mt,yt)=>{pt({current:mt!=null?mt:1,pageSize:yt||Et.pageSize})},Xe=(mt,yt)=>{var It;Ee&&((It=Ee.onChange)===null||It===void 0||It.call(Ee,mt,yt)),Ze(mt,yt),j(mt,yt||(Et==null?void 0:Et.pageSize))};return Ee===!1?[{},()=>{}]:[Object.assign(Object.assign({},Et),{onChange:Xe}),Ze]}var Wl=Qo,ac=x(84105),cl=x(35654),ha=x(90782),aa=x(71430),mo=x(18929);const Za={},no="SELECT_ALL",Ko="SELECT_INVERT",qa="SELECT_NONE",Jo=[],Ls=(U,j)=>{let Ee=[];return(j||[]).forEach(De=>{Ee.push(De),De&&typeof De=="object"&&U in De&&(Ee=[].concat((0,An.Z)(Ee),(0,An.Z)(Ls(U,De[U]))))}),Ee};var Vs=(U,j)=>{const{preserveSelectedRowKeys:Ee,selectedRowKeys:De,defaultSelectedRowKeys:Je,getCheckboxProps:He,onChange:dt,onSelect:pt,onSelectAll:Et,onSelectInvert:de,onSelectNone:Ze,onSelectMultiple:Xe,columnWidth:mt,type:yt,selections:It,fixed:Rt,renderCell:Tt,hideSelectAll:pr,checkStrictly:sr=!0}=j||{},{prefixCls:_r,data:Qr,pageData:hn,getRecordByKey:rr,getRowKey:St,expandType:Un,childrenColumnName:jr,locale:yr,getPopupContainer:Fr}=U,[br,kr]=(0,mo.Z)(De||Je||Jo,{value:De}),fn=B.useRef(new Map),$n=(0,B.useCallback)(Vn=>{if(Ee){const Wn=new Map;Vn.forEach(mi=>{let hi=rr(mi);!hi&&fn.current.has(mi)&&(hi=fn.current.get(mi)),Wn.set(mi,hi)}),fn.current=Wn}},[rr,Ee]);B.useEffect(()=>{$n(br)},[br]);const{keyEntities:Kn}=(0,B.useMemo)(()=>{if(sr)return{keyEntities:null};let Vn=Qr;if(Ee){const Wn=new Set(Qr.map((hi,Vi)=>St(hi,Vi))),mi=Array.from(fn.current).reduce((hi,Vi)=>{let[mn,Xn]=Vi;return Wn.has(mn)?hi:hi.concat(Xn)},[]);Vn=[].concat((0,An.Z)(Vn),(0,An.Z)(mi))}return(0,aa.I8)(Vn,{externalGetKey:St,childrenPropName:jr})},[Qr,St,sr,jr,Ee]),Bn=(0,B.useMemo)(()=>Ls(jr,hn),[jr,hn]),ai=(0,B.useMemo)(()=>{const Vn=new Map;return Bn.forEach((Wn,mi)=>{const hi=St(Wn,mi),Vi=(He?He(Wn):null)||{};Vn.set(hi,Vi)}),Vn},[Bn,St,He]),Ci=(0,B.useCallback)(Vn=>{var Wn;return!!(!((Wn=ai.get(St(Vn)))===null||Wn===void 0)&&Wn.disabled)},[ai,St]),[fi,gi]=(0,B.useMemo)(()=>{if(sr)return[br||[],[]];const{checkedKeys:Vn,halfCheckedKeys:Wn}=(0,ha.S)(br,!0,Kn,Ci);return[Vn||[],Wn]},[br,sr,Kn,Ci]),Dn=(0,B.useMemo)(()=>{const Vn=yt==="radio"?fi.slice(0,1):fi;return new Set(Vn)},[fi,yt]),pa=(0,B.useMemo)(()=>yt==="radio"?new Set:new Set(gi),[gi,yt]),[qn,co]=(0,B.useState)(null);B.useEffect(()=>{j||kr(Jo)},[!!j]);const Ri=(0,B.useCallback)((Vn,Wn)=>{let mi,hi;$n(Vn),Ee?(mi=Vn,hi=Vn.map(Vi=>fn.current.get(Vi))):(mi=[],hi=[],Vn.forEach(Vi=>{const mn=rr(Vi);mn!==void 0&&(mi.push(Vi),hi.push(mn))})),kr(mi),dt==null||dt(mi,hi,{type:Wn})},[kr,rr,dt,Ee]),na=(0,B.useCallback)((Vn,Wn,mi,hi)=>{if(pt){const Vi=mi.map(mn=>rr(mn));pt(rr(Vn),Wn,Vi,hi)}Ri(mi,"single")},[pt,rr,Ri]),Ta=(0,B.useMemo)(()=>!It||pr?null:(It===!0?[no,Ko,qa]:It).map(Wn=>Wn===no?{key:"all",text:yr.selectionAll,onSelect(){Ri(Qr.map((mi,hi)=>St(mi,hi)).filter(mi=>{const hi=ai.get(mi);return!(hi!=null&&hi.disabled)||Dn.has(mi)}),"all")}}:Wn===Ko?{key:"invert",text:yr.selectInvert,onSelect(){const mi=new Set(Dn);hn.forEach((Vi,mn)=>{const Xn=St(Vi,mn),oa=ai.get(Xn);oa!=null&&oa.disabled||(mi.has(Xn)?mi.delete(Xn):mi.add(Xn))});const hi=Array.from(mi);de&&de(hi),Ri(hi,"invert")}}:Wn===qa?{key:"none",text:yr.selectNone,onSelect(){Ze==null||Ze(),Ri(Array.from(Dn).filter(mi=>{const hi=ai.get(mi);return hi==null?void 0:hi.disabled}),"none")}}:Wn).map(Wn=>Object.assign(Object.assign({},Wn),{onSelect:function(){for(var mi,hi,Vi=arguments.length,mn=new Array(Vi),Xn=0;Xn<Vi;Xn++)mn[Xn]=arguments[Xn];(hi=Wn.onSelect)===null||hi===void 0||(mi=hi).call.apply(mi,[Wn].concat(mn)),co(null)}})),[It,Dn,hn,St,de,Ri]);return[(0,B.useCallback)(Vn=>{var Wn;if(!j)return Vn.filter(qi=>qi!==Za);let mi=(0,An.Z)(Vn);const hi=new Set(Dn),Vi=Bn.map(St).filter(qi=>!ai.get(qi).disabled),mn=Vi.every(qi=>hi.has(qi)),Xn=Vi.some(qi=>hi.has(qi)),oa=()=>{const qi=[];mn?Vi.forEach(va=>{hi.delete(va),qi.push(va)}):Vi.forEach(va=>{hi.has(va)||(hi.add(va),qi.push(va))});const on=Array.from(hi);Et==null||Et(!mn,on.map(va=>rr(va)),qi.map(va=>rr(va))),Ri(on,"all"),co(null)};let ji;if(yt!=="radio"){let qi;if(Ta){const Mi={getPopupContainer:Fr,items:Ta.map((Do,Po)=>{const{key:os,text:fs,onSelect:ss}=Do;return{key:os!=null?os:Po,onClick:()=>{ss==null||ss(Vi)},label:fs}})};qi=B.createElement("div",{className:`${_r}-selection-extra`},B.createElement(Qs.Z,{menu:Mi,getPopupContainer:Fr},B.createElement("span",null,B.createElement(ac.Z,null))))}const on=Bn.map((Mi,Do)=>{const Po=St(Mi,Do),os=ai.get(Po)||{};return Object.assign({checked:hi.has(Po)},os)}).filter(Mi=>{let{disabled:Do}=Mi;return Do}),va=!!on.length&&on.length===Bn.length,uo=va&&on.every(Mi=>{let{checked:Do}=Mi;return Do}),Va=va&&on.some(Mi=>{let{checked:Do}=Mi;return Do});ji=!pr&&B.createElement("div",{className:`${_r}-selection`},B.createElement(Ea.default,{checked:va?uo:!!Bn.length&&mn,indeterminate:va?!uo&&Va:!mn&&Xn,onChange:oa,disabled:Bn.length===0||va,"aria-label":qi?"Custom selection":"Select all",skipGroup:!0}),qi)}let Lo;yt==="radio"?Lo=(qi,on,va)=>{const uo=St(on,va),Va=hi.has(uo);return{node:B.createElement(Gi.ZP,Object.assign({},ai.get(uo),{checked:Va,onClick:Mi=>Mi.stopPropagation(),onChange:Mi=>{hi.has(uo)||na(uo,!0,[uo],Mi.nativeEvent)}})),checked:Va}}:Lo=(qi,on,va)=>{var uo;const Va=St(on,va),Mi=hi.has(Va),Do=pa.has(Va),Po=ai.get(Va);let os;return Un==="nest"?os=Do:os=(uo=Po==null?void 0:Po.indeterminate)!==null&&uo!==void 0?uo:Do,{node:B.createElement(Ea.default,Object.assign({},Po,{indeterminate:os,checked:Mi,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([qn,Va]);Vi.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=Vi.slice(Bl,qo+1),ps=[];Mi?Ds.forEach(yo=>{hi.has(yo)&&(ps.push(yo),hi.delete(yo))}):Ds.forEach(yo=>{hi.has(yo)||(ps.push(yo),hi.add(yo))});const jo=Array.from(hi);Xe==null||Xe(!Mi,jo.map(yo=>rr(yo)),ps.map(yo=>rr(yo))),Ri(jo,"multiple")}else{const Ds=fi;if(sr){const ps=Mi?(0,cl._5)(Ds,Va):(0,cl.L0)(Ds,Va);na(Va,!Mi,ps,ss)}else{const ps=(0,ha.S)([].concat((0,An.Z)(Ds),[Va]),!0,Kn,Ci),{checkedKeys:jo,halfCheckedKeys:yo}=ps;let Hs=jo;if(Mi){const oc=new Set(jo);oc.delete(Va),Hs=(0,ha.S)(Array.from(oc),{checked:!1,halfCheckedKeys:yo},Kn,Ci).checkedKeys}na(Va,!Mi,Hs,ss)}}co(Mi?null:Va)}})),checked:Mi}};const ko=(qi,on,va)=>{const{node:uo,checked:Va}=Lo(qi,on,va);return Tt?Tt(Va,on,va,uo):uo};if(!mi.includes(Za))if(mi.findIndex(qi=>{var on;return((on=qi[cr])===null||on===void 0?void 0:on.columnType)==="EXPAND_COLUMN"})===0){const[qi,...on]=mi;mi=[qi,Za].concat((0,An.Z)(on))}else mi=[Za].concat((0,An.Z)(mi));const Hi=mi.indexOf(Za);mi=mi.filter((qi,on)=>qi!==Za||on===Hi);const eo=mi[Hi-1],as=mi[Hi+1];let Cn=Rt;Cn===void 0&&((as==null?void 0:as.fixed)!==void 0?Cn=as.fixed:(eo==null?void 0:eo.fixed)!==void 0&&(Cn=eo.fixed)),Cn&&eo&&((Wn=eo[cr])===null||Wn===void 0?void 0:Wn.columnType)==="EXPAND_COLUMN"&&eo.fixed===void 0&&(eo.fixed=Cn);const Ao=D()(`${_r}-selection-col`,{[`${_r}-selection-col-with-dropdown`]:It&&yt==="checkbox"}),Ho={fixed:Cn,width:mt,className:`${_r}-selection-column`,title:j.columnTitle||ji,render:ko,onCell:j.onCell,[cr]:{className:Ao}};return mi.map(qi=>qi===Za?Ho:qi)},[St,Bn,j,fi,Dn,pa,mt,Ta,Un,qn,ai,Xe,na,Ci]),Dn]},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,j){return j?U[U.indexOf(j)+1]:U[0]}function Nl(U,j,Ee){let De=[];function Je(He,dt){De.push({column:He,key:No(He,dt),multiplePriority:rA(He),sortOrder:He.sortOrder})}return(U||[]).forEach((He,dt)=>{const pt=ho(dt,Ee);He.children?("sortOrder"in He&&Je(He,pt),De=[].concat((0,An.Z)(De),(0,An.Z)(Nl(He.children,j,pt)))):He.sorter&&("sortOrder"in He?Je(He,pt):j&&He.defaultSortOrder&&De.push({column:He,key:No(He,pt),multiplePriority:rA(He),sortOrder:He.defaultSortOrder}))}),De}function Gs(U,j,Ee,De,Je,He,dt,pt){return(j||[]).map((Et,de)=>{const Ze=ho(de,pt);let Xe=Et;if(Xe.sorter){const mt=Xe.sortDirections||Je,yt=Xe.showSorterTooltip===void 0?dt:Xe.showSorterTooltip,It=No(Xe,Ze),Rt=Ee.find(Un=>{let{key:jr}=Un;return jr===It}),Tt=Rt?Rt.sortOrder:null,pr=yA(mt,Tt);let sr;if(Et.sortIcon)sr=Et.sortIcon({sortOrder:Tt});else{const Un=mt.includes(Ws)&&B.createElement(Hc.Z,{className:D()(`${U}-column-sorter-up`,{active:Tt===Ws})}),jr=mt.includes(tA)&&B.createElement(tl.Z,{className:D()(`${U}-column-sorter-down`,{active:Tt===tA})});sr=B.createElement("span",{className:D()(`${U}-column-sorter`,{[`${U}-column-sorter-full`]:!!(Un&&jr)})},B.createElement("span",{className:`${U}-column-sorter-inner`,"aria-hidden":"true"},Un,jr))}const{cancelSort:_r,triggerAsc:Qr,triggerDesc:hn}=He||{};let rr=_r;pr===tA?rr=hn:pr===Ws&&(rr=Qr);const St=typeof yt=="object"?yt:{title:rr};Xe=Object.assign(Object.assign({},Xe),{className:D()(Xe.className,{[`${U}-column-sort`]:Tt}),title:Un=>{const jr=B.createElement("div",{className:`${U}-column-sorters`},B.createElement("span",{className:`${U}-column-title`},Ja(Et.title,Un)),sr);return yt?B.createElement(Pl.Z,Object.assign({},St),jr):jr},onHeaderCell:Un=>{const jr=Et.onHeaderCell&&Et.onHeaderCell(Un)||{},yr=jr.onClick,Fr=jr.onKeyDown;jr.onClick=fn=>{De({column:Et,key:It,sortOrder:pr,multiplePriority:rA(Et)}),yr==null||yr(fn)},jr.onKeyDown=fn=>{fn.keyCode===$a.Z.ENTER&&(De({column:Et,key:It,sortOrder:pr,multiplePriority:rA(Et)}),Fr==null||Fr(fn))};const br=Ni(Et.title,{}),kr=br==null?void 0:br.toString();return Tt?jr["aria-sort"]=Tt==="ascend"?"ascending":"descending":jr["aria-label"]=kr||"",jr.className=D()(jr.className,`${U}-column-has-sorters`),jr.tabIndex=0,Et.ellipsis&&(jr.title=(br!=null?br:"").toString()),jr}})}return"children"in Xe&&(Xe=Object.assign(Object.assign({},Xe),{children:Gs(U,Xe.children,Ee,De,Je,He,dt,Ze)})),Xe})}function rl(U){const{column:j,sortOrder:Ee}=U;return{column:j,order:Ee,field:j.dataIndex,columnKey:j.key}}function nl(U){const j=U.filter(Ee=>{let{sortOrder:De}=Ee;return De}).map(rl);return j.length===0&&U.length?Object.assign(Object.assign({},rl(U[U.length-1])),{column:void 0}):j.length<=1?j[0]||{}:j}function Pa(U,j,Ee){const De=j.slice().sort((dt,pt)=>pt.multiplePriority-dt.multiplePriority),Je=U.slice(),He=De.filter(dt=>{let{column:{sorter:pt},sortOrder:Et}=dt;return fc(pt)&&Et});return He.length?Je.sort((dt,pt)=>{for(let Et=0;Et<He.length;Et+=1){const de=He[Et],{column:{sorter:Ze},sortOrder:Xe}=de,mt=fc(Ze);if(mt&&Xe){const yt=mt(dt,pt,Xe);if(yt!==0)return Xe===Ws?yt:-yt}}return 0}).map(dt=>{const pt=dt[Ee];return pt?Object.assign(Object.assign({},dt),{[Ee]:Pa(pt,j,Ee)}):dt}):Je}function go(U){let{prefixCls:j,mergedColumns:Ee,onSorterChange:De,sortDirections:Je,tableLocale:He,showSorterTooltip:dt}=U;const[pt,Et]=B.useState(Nl(Ee,!0)),de=B.useMemo(()=>{let It=!0;const Rt=Nl(Ee,!1);if(!Rt.length)return pt;const Tt=[];function pr(_r){It?Tt.push(_r):Tt.push(Object.assign(Object.assign({},_r),{sortOrder:null}))}let sr=null;return Rt.forEach(_r=>{sr===null?(pr(_r),_r.sortOrder&&(_r.multiplePriority===!1?It=!1:sr=!0)):(sr&&_r.multiplePriority!==!1||(It=!1),pr(_r))}),Tt},[Ee,pt]),Ze=B.useMemo(()=>{const It=de.map(Rt=>{let{column:Tt,sortOrder:pr}=Rt;return{column:Tt,order:pr}});return{sortColumns:It,sortColumn:It[0]&&It[0].column,sortOrder:It[0]&&It[0].order}},[de]);function Xe(It){let Rt;It.multiplePriority===!1||!de.length||de[0].multiplePriority===!1?Rt=[It]:Rt=[].concat((0,An.Z)(de.filter(Tt=>{let{key:pr}=Tt;return pr!==It.key})),[It]),Et(Rt),De(nl(Rt),Rt)}return[It=>Gs(j,It,de,Xe,Je,He,dt),de,Ze,()=>nl(de)]}function vo(U,j){return U.map(Ee=>{const De=Object.assign({},Ee);return De.title=Ja(Ee.title,j),"children"in De&&(De.children=vo(De.children,j)),De})}function Yo(U){return[B.useCallback(Ee=>vo(Ee,U),[U])]}var ks=Ei((U,j)=>{const{_renderTimes:Ee}=U,{_renderTimes:De}=j;return Ee!==De}),Mc=_i((U,j)=>{const{_renderTimes:Ee}=U,{_renderTimes:De}=j;return Ee!==De}),Cl=x(64993),jc=x(17313),bA=x(83116),wA=x(37613),pc=U=>{const{componentCls:j}=U,Ee=`${U.lineWidth}px ${U.lineType} ${U.tableBorderColor}`,De=(Je,He,dt)=>({[`&${j}-${Je}`]:{[`> ${j}-container`]:{[`> ${j}-content, > ${j}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${j}-expanded-row-fixed`]:{margin:`-${He}px -${dt+U.lineWidth}px`}}}}}});return{[`${j}-wrapper`]:{[`${j}${j}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${j}-title`]:{border:Ee,borderBottom:0},[`> ${j}-container`]:{borderInlineStart:Ee,borderTop:Ee,[`
> ${j}-content,
> ${j}-header,
> ${j}-body,
> ${j}-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:Ee},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Ee},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${j}-cell-fix-right-first::after`]:{borderInlineEnd:Ee}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${j}-expanded-row-fixed`]:{margin:`-${U.tablePaddingVertical}px -${U.tablePaddingHorizontal+U.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:U.lineWidth,bottom:0,borderInlineEnd:Ee,content:'""'}}}}}},[`&${j}-scroll-horizontal`]:{[`> ${j}-container > ${j}-body`]:{"> table > tbody":{[`
> tr${j}-expanded-row,
> tr${j}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},De("middle",U.tablePaddingVerticalMiddle,U.tablePaddingHorizontalMiddle)),De("small",U.tablePaddingVerticalSmall,U.tablePaddingHorizontalSmall)),{[`> ${j}-footer`]:{border:Ee,borderTop:0}}),[`${j}-cell`]:{[`${j}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${U.lineWidth}px 0 ${U.lineWidth}px ${U.tableHeaderBg}`}},[`${j}-bordered ${j}-cell-scrollbar`]:{borderInlineEnd:Ee}}}},KA=U=>{const{componentCls:j}=U;return{[`${j}-wrapper`]:{[`${j}-cell-ellipsis`]:Object.assign(Object.assign({},jc.vS),{wordBreak:"keep-all",[`
&${j}-cell-fix-left-last,
&${j}-cell-fix-right-first
`]:{overflow:"visible",[`${j}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${j}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},od=U=>{const{componentCls:j}=U;return{[`${j}-wrapper`]:{[`${j}-tbody > tr${j}-placeholder`]:{textAlign:"center",color:U.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:U.colorBgContainer}}}}},ou=x(15969),Pu=U=>{const{componentCls:j,antCls:Ee,controlInteractiveSize:De,motionDurationSlow:Je,lineWidth:He,paddingXS:dt,lineType:pt,tableBorderColor:Et,tableExpandIconBg:de,tableExpandColumnWidth:Ze,borderRadius:Xe,fontSize:mt,fontSizeSM:yt,lineHeight:It,tablePaddingVertical:Rt,tablePaddingHorizontal:Tt,tableExpandedRowBg:pr,paddingXXS:sr}=U,_r=De/2-He,Qr=_r*2+He*3,hn=`${He}px ${pt} ${Et}`,rr=sr-He;return{[`${j}-wrapper`]:{[`${j}-expand-icon-col`]:{width:Ze},[`${j}-row-expand-icon-cell`]:{textAlign:"center",[`${j}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${j}-row-indent`]:{height:1,float:"left"},[`${j}-row-expand-icon`]:Object.assign(Object.assign({},(0,ou.N)(U)),{position:"relative",float:"left",boxSizing:"border-box",width:Qr,height:Qr,padding:0,color:"inherit",lineHeight:`${Qr}px`,background:de,border:hn,borderRadius:Xe,transform:`scale(${De/Qr})`,transition:`all ${Je}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Je} ease-out`,content:'""'},"&::before":{top:_r,insetInlineEnd:rr,insetInlineStart:rr,height:He},"&::after":{top:rr,bottom:rr,insetInlineStart:_r,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"}}),[`${j}-row-indent + ${j}-row-expand-icon`]:{marginTop:(mt*It-He*3)/2-Math.ceil((yt*1.4-He*3)/2),marginInlineEnd:dt},[`tr${j}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:pr}},[`${Ee}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${j}-expanded-row-fixed`]:{position:"relative",margin:`-${Rt}px -${Tt}px`,padding:`${Rt}px ${Tt}px`}}}},sd=U=>{const{componentCls:j,antCls:Ee,iconCls:De,tableFilterDropdownWidth:Je,tableFilterDropdownSearchWidth:He,paddingXXS:dt,paddingXS:pt,colorText:Et,lineWidth:de,lineType:Ze,tableBorderColor:Xe,tableHeaderIconColor:mt,fontSizeSM:yt,tablePaddingHorizontal:It,borderRadius:Rt,motionDurationSlow:Tt,colorTextDescription:pr,colorPrimary:sr,tableHeaderFilterActiveBg:_r,colorTextDisabled:Qr,tableFilterDropdownBg:hn,tableFilterDropdownHeight:rr,controlItemBgHover:St,controlItemBgActive:Un,boxShadowSecondary:jr,filterDropdownMenuBg:yr}=U,Fr=`${Ee}-dropdown`,br=`${j}-filter-dropdown`,kr=`${Ee}-tree`,fn=`${de}px ${Ze} ${Xe}`;return[{[`${j}-wrapper`]:{[`${j}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${j}-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:Rt,cursor:"pointer",transition:`all ${Tt}`,"&:hover":{color:pr,background:_r},"&.active":{color:sr}}}},{[`${Ee}-dropdown`]:{[br]:Object.assign(Object.assign({},(0,jc.Wf)(U)),{minWidth:Je,backgroundColor:hn,borderRadius:Rt,boxShadow:jr,overflow:"hidden",[`${Fr}-menu`]:{maxHeight:rr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:yr,"&:empty::after":{display:"block",padding:`${pt}px 0`,color:Qr,fontSize:yt,textAlign:"center",content:'"Not Found"'}},[`${br}-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:Un}}},[`${br}-search`]:{padding:pt,borderBottom:fn,"&-input":{input:{minWidth:He},[De]:{color:Qr}}},[`${br}-checkall`]:{width:"100%",marginBottom:dt,marginInlineStart:dt},[`${br}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${pt-de}px ${pt}px`,overflow:"hidden",borderTop:fn}})}},{[`${Ee}-dropdown ${br}, ${br}-submenu`]:{[`${Ee}-checkbox-wrapper + span`]:{paddingInlineStart:pt,color:Et},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},a=U=>{const{componentCls:j,lineWidth:Ee,colorSplit:De,motionDurationSlow:Je,zIndexTableFixed:He,tableBg:dt,zIndexTableSticky:pt}=U,Et=De;return{[`${j}-wrapper`]:{[`
${j}-cell-fix-left,
${j}-cell-fix-right
`]:{position:"sticky !important",zIndex:He,background:dt},[`
${j}-cell-fix-left-first::after,
${j}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Ee,width:30,transform:"translateX(100%)",transition:`box-shadow ${Je}`,content:'""',pointerEvents:"none"},[`${j}-cell-fix-left-all::after`]:{display:"none"},[`
${j}-cell-fix-right-first::after,
${j}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-Ee,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Je}`,content:'""',pointerEvents:"none"},[`${j}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:pt+1,width:30,transition:`box-shadow ${Je}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${j}-ping-left`]:{[`&:not(${j}-has-fix-left) ${j}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Et}`}},[`
${j}-cell-fix-left-first::after,
${j}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${Et}`},[`${j}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${j}-ping-right`]:{[`&:not(${j}-has-fix-right) ${j}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Et}`}},[`
${j}-cell-fix-right-first::after,
${j}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${Et}`}}}}},v=U=>{const{componentCls:j,antCls:Ee}=U;return{[`${j}-wrapper`]:{[`${j}-pagination${Ee}-pagination`]:{margin:`${U.margin}px 0`},[`${j}-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:j,tableRadius:Ee}=U;return{[`${j}-wrapper`]:{[j]:{[`${j}-title, ${j}-header`]:{borderRadius:`${Ee}px ${Ee}px 0 0`},[`${j}-title + ${j}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${j}-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:Ee,borderStartEndRadius:Ee,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Ee},"> *:last-child":{borderStartEndRadius:Ee}}},"&-footer":{borderRadius:`0 0 ${Ee}px ${Ee}px`}}}}},V=U=>{const{componentCls:j}=U;return{[`${j}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${j}-pagination-left`]:{justifyContent:"flex-end"},[`${j}-pagination-right`]:{justifyContent:"flex-start"},[`${j}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${j}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${j}-row-indent`]:{float:"right"}}}}},_e=U=>{const{componentCls:j,antCls:Ee,iconCls:De,fontSizeIcon:Je,padding:He,paddingXS:dt,tableHeaderIconColor:pt,tableHeaderIconColorHover:Et,tableSelectionColumnWidth:de}=U;return{[`${j}-wrapper`]:{[`${j}-selection-col`]:{width:de,[`&${j}-selection-col-with-dropdown`]:{width:de+Je+He/4}},[`${j}-bordered ${j}-selection-col`]:{width:de+dt*2,[`&${j}-selection-col-with-dropdown`]:{width:de+Je+He/4+dt*2}},[`
table tr th${j}-selection-column,
table tr td${j}-selection-column
`]:{paddingInlineEnd:U.paddingXS,paddingInlineStart:U.paddingXS,textAlign:"center",[`${Ee}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${j}-selection-column${j}-cell-fix-left`]:{zIndex:U.zIndexTableFixed+1},[`table tr th${j}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${j}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${j}-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:Je,verticalAlign:"baseline","&:hover":{color:Et}}}}}},Ve=U=>{const{componentCls:j}=U,Ee=(De,Je,He,dt)=>({[`${j}${j}-${De}`]:{fontSize:dt,[`
${j}-title,
${j}-footer,
${j}-cell,
${j}-thead > tr > th,
${j}-tbody > tr > th,
${j}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${Je}px ${He}px`},[`${j}-filter-trigger`]:{marginInlineEnd:`-${He/2}px`},[`${j}-expanded-row-fixed`]:{margin:`-${Je}px -${He}px`},[`${j}-tbody`]:{[`${j}-wrapper:only-child ${j}`]:{marginBlock:`-${Je}px`,marginInline:`${U.tableExpandColumnWidth-He}px -${He}px`}},[`${j}-selection-column`]:{paddingInlineStart:`${He/4}px`}}});return{[`${j}-wrapper`]:Object.assign(Object.assign({},Ee("middle",U.tablePaddingVerticalMiddle,U.tablePaddingHorizontalMiddle,U.tableFontSizeMiddle)),Ee("small",U.tablePaddingVerticalSmall,U.tablePaddingHorizontalSmall,U.tableFontSizeSmall))}},be=U=>{const{componentCls:j,marginXXS:Ee,fontSizeIcon:De,tableHeaderIconColor:Je,tableHeaderIconColorHover:He}=U;return{[`${j}-wrapper`]:{[`${j}-thead th${j}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${U.motionDurationSlow}`,"&:hover":{background:U.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:U.colorPrimary},[`
&${j}-cell-fix-left:hover,
&${j}-cell-fix-right:hover
`]:{background:U.tableFixedHeaderSortActiveBg}},[`${j}-thead th${j}-column-sort`]:{background:U.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${j}-column-sort`]:{background:U.tableBodySortBg},[`${j}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${j}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${j}-column-sorter`]:{marginInlineStart:Ee,color:Je,fontSize:0,transition:`color ${U.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:De,"&.active":{color:U.colorPrimary}},[`${j}-column-sorter-up + ${j}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${j}-column-sorters:hover ${j}-column-sorter`]:{color:He}}}},wt=U=>{const{componentCls:j,opacityLoading:Ee,tableScrollThumbBg:De,tableScrollThumbBgHover:Je,tableScrollThumbSize:He,tableScrollBg:dt,zIndexTableSticky:pt,stickyScrollBarBorderRadius:Et}=U,de=`${U.lineWidth}px ${U.lineType} ${U.tableBorderColor}`;return{[`${j}-wrapper`]:{[`${j}-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:Ee,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:He,backgroundColor:De,borderRadius:Et,transition:`all ${U.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Je}}}}}}},ht=U=>{const{componentCls:j,lineWidth:Ee,tableBorderColor:De}=U,Je=`${Ee}px ${U.lineType} ${De}`;return{[`${j}-wrapper`]:{[`${j}-summary`]:{position:"relative",zIndex:U.zIndexTableFixed,background:U.tableBg,"> tr":{"> th, > td":{borderBottom:Je}}},[`div${j}-summary`]:{boxShadow:`0 -${Ee}px 0 ${De}`}}}},ir=U=>{const{componentCls:j}=U,Ee=`${U.lineWidth}px ${U.lineType} ${U.tableBorderColor}`,De=`${j}-expanded-row-cell`;return{[`${j}-wrapper`]:{[`${j}-tbody-virtual`]:{[`${j}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${j}-cell`]:{borderBottom:Ee},[`${j}-expanded-row`]:{[`${De}${De}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${U.lineWidth}px)`,borderInlineEnd:"none"}}},[`${j}-bordered`]:{[`${j}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Ee,position:"absolute"},[`${j}-cell`]:{borderInlineEnd:Ee,[`&${j}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-U.lineWidth,borderInlineStart:Ee}}}}}}};const gr=U=>{const{componentCls:j,fontWeightStrong:Ee,tablePaddingVertical:De,tablePaddingHorizontal:Je,lineWidth:He,lineType:dt,tableBorderColor:pt,tableFontSize:Et,tableBg:de,tableRadius:Ze,tableHeaderTextColor:Xe,motionDurationMid:mt,tableHeaderBg:yt,tableHeaderCellSplitColor:It,tableRowHoverBg:Rt,tableSelectedRowBg:Tt,tableSelectedRowHoverBg:pr,tableFooterTextColor:sr,tableFooterBg:_r,paddingContentVerticalLG:Qr}=U,hn=`${He}px ${dt} ${pt}`;return{[`${j}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,jc.dF)()),{[j]: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},[`
${j}-cell,
${j}-thead > tr > th,
${j}-tbody > tr > th,
${j}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${Qr}px ${Je}px`,overflowWrap:"break-word"},[`${j}-title`]:{padding:`${De}px ${Je}px`},[`${j}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Xe,fontWeight:Ee,textAlign:"start",background:yt,borderBottom:hn,transition:`background ${mt} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${j}-selection-column):not(${j}-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}},[`${j}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${mt}, border-color ${mt}`,borderBottom:hn,[`
> ${j}-wrapper:only-child,
> ${j}-expanded-row-fixed > ${j}-wrapper:only-child
`]:{[j]:{marginBlock:`-${De}px`,marginInline:`${U.tableExpandColumnWidth-Je}px -${Je}px`,[`${j}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Xe,fontWeight:Ee,textAlign:"start",background:yt,borderBottom:hn,transition:`background ${mt} ease`},[`
&${j}-row:hover > th,
&${j}-row:hover > td,
> th${j}-cell-row-hover,
> td${j}-cell-row-hover
`]:{background:Rt},[`&${j}-row-selected`]:{"> th, > td":{background:Tt},"&:hover > th, &:hover > td":{background:pr}}}},[`${j}-footer`]:{padding:`${De}px ${Je}px`,color:sr,background:_r}})}};var Rr=(0,bA.Z)("Table",U=>{const{colorTextHeading:j,colorSplit:Ee,colorIcon:De,colorIconHover:Je,opacityLoading:He,colorBgContainer:dt,controlInteractiveSize:pt,headerBg:Et,headerColor:de,headerSortActiveBg:Ze,headerSortHoverBg:Xe,bodySortBg:mt,rowHoverBg:yt,rowSelectedBg:It,rowSelectedHoverBg:Rt,rowExpandedBg:Tt,cellPaddingBlock:pr,cellPaddingInline:sr,cellPaddingBlockMD:_r,cellPaddingInlineMD:Qr,cellPaddingBlockSM:hn,cellPaddingInlineSM:rr,borderColor:St,footerBg:Un,footerColor:jr,headerBorderRadius:yr,cellFontSize:Fr,cellFontSizeMD:br,cellFontSizeSM:kr,headerSplitColor:fn,fixedHeaderSortActiveBg:$n,headerFilterHoverBg:Kn,filterDropdownBg:Bn,expandIconBg:ai,selectionColumnWidth:Ci,stickyScrollBarBg:fi}=U,gi=new Cl.C(De),Dn=new Cl.C(Je),pa=2,qn=(0,wA.TS)(U,{tableFontSize:Fr,tableBg:dt,tableRadius:yr,tablePaddingVertical:pr,tablePaddingHorizontal:sr,tablePaddingVerticalMiddle:_r,tablePaddingHorizontalMiddle:Qr,tablePaddingVerticalSmall:hn,tablePaddingHorizontalSmall:rr,tableBorderColor:St,tableHeaderTextColor:de,tableHeaderBg:Et,tableFooterTextColor:jr,tableFooterBg:Un,tableHeaderCellSplitColor:fn,tableHeaderSortBg:Ze,tableHeaderSortHoverBg:Xe,tableHeaderIconColor:gi.clone().setAlpha(gi.getAlpha()*He).toRgbString(),tableHeaderIconColorHover:Dn.clone().setAlpha(Dn.getAlpha()*He).toRgbString(),tableBodySortBg:mt,tableFixedHeaderSortActiveBg:$n,tableHeaderFilterActiveBg:Kn,tableFilterDropdownBg:Bn,tableRowHoverBg:yt,tableSelectedRowBg:It,tableSelectedRowHoverBg:Rt,zIndexTableFixed:pa,zIndexTableSticky:pa+1,tableFontSizeMiddle:br,tableFontSizeSmall:kr,tableSelectionColumnWidth:Ci,tableExpandIconBg:ai,tableExpandColumnWidth:pt+2*U.padding,tableExpandedRowBg:Tt,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:fi,tableScrollThumbBgHover:j,tableScrollBg:Ee});return[gr(qn),v(qn),ht(qn),be(qn),sd(qn),pc(qn),C(qn),Pu(qn),ht(qn),od(qn),_e(qn),a(qn),wt(qn),KA(qn),Ve(qn),V(qn),ir(qn)]},U=>{const{colorFillAlter:j,colorBgContainer:Ee,colorTextHeading:De,colorFillSecondary:Je,colorFillContent:He,controlItemBgActive:dt,controlItemBgActiveHover:pt,padding:Et,paddingSM:de,paddingXS:Ze,colorBorderSecondary:Xe,borderRadiusLG:mt,fontSize:yt,controlHeight:It,colorTextPlaceholder:Rt}=U,Tt=new Cl.C(Je).onBackground(Ee).toHexShortString(),pr=new Cl.C(He).onBackground(Ee).toHexShortString(),sr=new Cl.C(j).onBackground(Ee).toHexShortString();return{headerBg:sr,headerColor:De,headerSortActiveBg:Tt,headerSortHoverBg:pr,bodySortBg:sr,rowHoverBg:sr,rowSelectedBg:dt,rowSelectedHoverBg:pt,rowExpandedBg:j,cellPaddingBlock:Et,cellPaddingInline:Et,cellPaddingBlockMD:de,cellPaddingInlineMD:Ze,cellPaddingBlockSM:Ze,cellPaddingInlineSM:Ze,borderColor:Xe,headerBorderRadius:mt,footerBg:sr,footerColor:De,cellFontSize:yt,cellFontSizeMD:yt,cellFontSizeSM:yt,headerSplitColor:Xe,fixedHeaderSortActiveBg:Tt,headerFilterHoverBg:He,filterDropdownMenuBg:Ee,filterDropdownBg:Ee,expandIconBg:Ee,selectionColumnWidth:It,stickyScrollBarBg:Rt,stickyScrollBarBorderRadius:100}});const yn=[],Er=(U,j)=>{const{prefixCls:Ee,className:De,rootClassName:Je,style:He,size:dt,bordered:pt,dropdownPrefixCls:Et,dataSource:de,pagination:Ze,rowSelection:Xe,rowKey:mt="key",rowClassName:yt,columns:It,children:Rt,childrenColumnName:Tt,onChange:pr,getPopupContainer:sr,loading:_r,expandIcon:Qr,expandable:hn,expandedRowRender:rr,expandIconColumnIndex:St,indentSize:Un,scroll:jr,sortDirections:yr,locale:Fr,showSorterTooltip:br=!0,virtual:kr}=U,fn=B.useMemo(()=>It||me(Rt),[It,Rt]),$n=B.useMemo(()=>fn.some(ma=>ma.responsive),[fn]),Kn=(0,ja.Z)($n),Bn=B.useMemo(()=>{const ma=new Set(Object.keys(Kn).filter(io=>Kn[io]));return fn.filter(io=>!io.responsive||io.responsive.some(Ka=>ma.has(Ka)))},[fn,Kn]),ai=(0,Ii.Z)(U,["className","style","columns"]),{locale:Ci=Fa.Z,direction:fi,table:gi,renderEmpty:Dn,getPrefixCls:pa,getPopupContainer:qn}=B.useContext(To.E_),co=(0,Ji.Z)(dt),Ri=Object.assign(Object.assign({},Ci.Table),Fr),na=de||yn,Ta=pa("table",Ee),ga=pa("dropdown",Et),Vn=Object.assign({childrenColumnName:Tt,expandIconColumnIndex:St},hn),{childrenColumnName:Wn="children"}=Vn,mi=B.useMemo(()=>na.some(ma=>ma==null?void 0:ma[Wn])?"nest":rr||hn&&hn.expandedRowRender?"row":null,[na]),hi={body:B.useRef()},Vi=B.useMemo(()=>typeof mt=="function"?mt:ma=>ma==null?void 0:ma[mt],[mt]),[mn]=Ro(na,Wn,Vi),Xn={},oa=function(ma,io){let Ka=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var bo,ms,Ps;const gs=Object.assign(Object.assign({},Xn),ma);Ka&&((bo=Xn.resetPagination)===null||bo===void 0||bo.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)),jr&&jr.scrollToFirstRowOnChange!==!1&&hi.body.current&&(0,da.Z)(0,{getContainer:()=>hi.body.current}),pr==null||pr(gs.pagination,gs.filters,gs.sorter,{currentDataSource:Ms(Pa(na,gs.sorterStates,Wn),gs.filterStates),action:io})},ji=(ma,io)=>{oa({sorter:ma,sorterStates:io},"sort",!1)},[Lo,ko,Hi,eo]=go({prefixCls:Ta,mergedColumns:Bn,onSorterChange:ji,sortDirections:yr||["ascend","descend"],tableLocale:Ri,showSorterTooltip:br}),as=B.useMemo(()=>Pa(na,ko,Wn),[na,ko]);Xn.sorter=eo(),Xn.sorterStates=ko;const Cn=(ma,io)=>{oa({filters:ma,filterStates:io},"filter",!0)},[Ao,Ho,qi]=Dl({prefixCls:Ta,locale:Ri,dropdownPrefixCls:ga,mergedColumns:Bn,onFilterChange:Cn,getPopupContainer:sr||qn}),on=Ms(as,Ho);Xn.filters=qi,Xn.filterStates=Ho;const va=B.useMemo(()=>{const ma={};return Object.keys(qi).forEach(io=>{qi[io]!==null&&(ma[io]=qi[io])}),Object.assign(Object.assign({},Hi),{filters:ma})},[Hi,qi]),[uo]=Yo(va),Va=(ma,io)=>{oa({pagination:Object.assign(Object.assign({},Xn.pagination),{current:ma,pageSize:io})},"paginate")},[Mi,Do]=Wl(on.length,Va,Ze);Xn.pagination=Ze===!1?{}:La(Mi,Ze),Xn.resetPagination=Do;const Po=B.useMemo(()=>{if(Ze===!1||!Mi.pageSize)return on;const{current:ma=1,total:io,pageSize:Ka=bs}=Mi;return on.length<io?on.length>Ka?on.slice((ma-1)*Ka,ma*Ka):on:on.slice((ma-1)*Ka,ma*Ka)},[!!Ze,on,Mi&&Mi.current,Mi&&Mi.pageSize,Mi&&Mi.total]),[os,fs]=Vs({prefixCls:Ta,data:on,pageData:Po,getRowKey:Vi,getRecordByKey:mn,expandType:mi,childrenColumnName:Wn,locale:Ri,getPopupContainer:sr||qn},Xe),ss=(ma,io,Ka)=>{let bo;return typeof yt=="function"?bo=D()(yt(ma,io,Ka)):bo=D()(yt),D()({[`${Ta}-row-selected`]:fs.has(Vi(ma,io))},bo)};Vn.__PARENT_RENDER_ICON__=Vn.expandIcon,Vn.expandIcon=Vn.expandIcon||Qr||Aa(Ri),mi==="nest"&&Vn.expandIconColumnIndex===void 0?Vn.expandIconColumnIndex=Xe?1:0:Vn.expandIconColumnIndex>0&&Xe&&(Vn.expandIconColumnIndex-=1),typeof Vn.indentSize!="number"&&(Vn.indentSize=typeof Un=="number"?Un:15);const hs=B.useCallback(ma=>uo(os(Ao(Lo(ma)))),[Lo,Ao,os]);let Bl,qo;if(Ze!==!1&&(Mi!=null&&Mi.total)){let ma;Mi.size?ma=Mi.size:ma=co==="small"||co==="middle"?"small":void 0;const io=ms=>B.createElement(ro.Z,Object.assign({},Mi,{className:D()(`${Ta}-pagination ${Ta}-pagination-${ms}`,Mi.className),size:ma})),Ka=fi==="rtl"?"left":"right",{position:bo}=Mi;if(bo!==null&&Array.isArray(bo)){const ms=bo.find(Gl=>Gl.includes("top")),Ps=bo.find(Gl=>Gl.includes("bottom")),gs=bo.every(Gl=>`${Gl}`=="none");!ms&&!Ps&&!gs&&(qo=io(Ka)),ms&&(Bl=io(ms.toLowerCase().replace("top",""))),Ps&&(qo=io(Ps.toLowerCase().replace("bottom","")))}else qo=io(Ka)}let Ds;typeof _r=="boolean"?Ds={spinning:_r}:typeof _r=="object"&&(Ds=Object.assign({spinning:!0},_r));const[ps,jo]=Rr(Ta),[,yo]=(0,Ba.Z)(),Hs=D()(`${Ta}-wrapper`,gi==null?void 0:gi.className,{[`${Ta}-wrapper-rtl`]:fi==="rtl"},De,Je,jo),oc=Object.assign(Object.assign({},gi==null?void 0:gi.style),He),Sl=Fr&&Fr.emptyText||(Dn==null?void 0:Dn("Table"))||B.createElement(ia.Z,{componentName:"Table"}),Ol=kr?Mc:ks,nA={},HA=B.useMemo(()=>{const{fontSize:ma,lineHeight:io,padding:Ka,paddingXS:bo,paddingSM:ms}=yo,Ps=Math.floor(ma*io);switch(co){case"large":return Ka*2+Ps;case"small":return bo*2+Ps;default:return ms*2+Ps}},[yo,co]);return kr&&(nA.listItemHeight=HA),ps(B.createElement("div",{ref:j,className:Hs,style:oc},B.createElement(wo.Z,Object.assign({spinning:!1},Ds),Bl,B.createElement(Ol,Object.assign({},nA,ai,{columns:Bn,direction:fi,expandable:Vn,prefixCls:Ta,className:D()({[`${Ta}-middle`]:co==="middle",[`${Ta}-small`]:co==="small",[`${Ta}-bordered`]:pt,[`${Ta}-empty`]:na.length===0}),data:Po,rowKey:Vi,rowClassName:ss,emptyText:Sl,internalHooks:ue,internalRefs:hi,transformColumns:hs})),qo)))};var Gt=B.forwardRef(Er);const Dr=(U,j)=>{const Ee=B.useRef(0);return Ee.current+=1,B.createElement(Gt,Object.assign({},U,{ref:j,_renderTimes:Ee.current}))},Zr=B.forwardRef(Dr);Zr.SELECTION_COLUMN=Za,Zr.EXPAND_COLUMN=ge,Zr.SELECTION_ALL=no,Zr.SELECTION_INVERT=Ko,Zr.SELECTION_NONE=qa,Zr.Column=ri,Zr.ColumnGroup=ki,Zr.Summary=H;var bt=Zr,Bt=bt},99313:function(xn,qt,x){"use strict";x.d(qt,{default:function(){return Ui}});var ge=x(99267),ue=x(18785),Q=x(62772),Te=x(92310),ie=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),O=x(18929),R=x(77900),I=(0,S.createContext)(null),Y=S.forwardRef(function(me,Ue){var Me=me.prefixCls,st=me.className,Zt=me.style,Kt=me.id,Br=me.active,hr=me.tabKey,Ur=me.children;return S.createElement("div",{id:Kt&&"".concat(Kt,"-panel-").concat(hr),role:"tabpanel",tabIndex:Br?0:-1,"aria-labelledby":Kt&&"".concat(Kt,"-tab-").concat(hr),"aria-hidden":!Br,style:Zt,className:ie()(Me,Br&&"".concat(Me,"-active"),st),ref:Ue},Ur)}),K=Y,se=["key","forceRender","style","className"];function te(me){var Ue=me.id,Me=me.activeKey,st=me.animated,Zt=me.tabPosition,Kt=me.destroyInactiveTabPane,Br=S.useContext(I),hr=Br.prefixCls,Ur=Br.tabs,Wr=st.tabPane,en="".concat(hr,"-tabpane");return S.createElement("div",{className:ie()("".concat(hr,"-content-holder"))},S.createElement("div",{className:ie()("".concat(hr,"-content"),"".concat(hr,"-content-").concat(Zt),(0,B.Z)({},"".concat(hr,"-content-animated"),Wr))},Ur.map(function(Vr){var Hr=Vr.key,qr=Vr.forceRender,gn=Vr.style,tn=Vr.className,Mn=(0,Z.Z)(Vr,se),Rn=Hr===Me;return S.createElement(R.default,(0,G.Z)({key:Hr,visible:Rn,forceRender:qr,removeOnLeave:!!Kt,leavedClassName:"".concat(en,"-hidden")},st.tabPaneMotion),function(pi,Pn){var ln=pi.style,Ht=pi.className;return S.createElement(K,(0,G.Z)({},Mn,{prefixCls:en,id:Ue,tabKey:Hr,animated:Wr,active:Rn,style:(0,f.Z)((0,f.Z)({},gn),ln),className:ie()(tn,Ht),ref:Pn}))})})))}var X=x(26407),W=x(29301),z=x(6089),le=x(8654),he={width:0,height:0,left:0,top:0};function Ne(me,Ue,Me){return(0,S.useMemo)(function(){for(var st,Zt=new Map,Kt=Ue.get((st=me[0])===null||st===void 0?void 0:st.key)||he,Br=Kt.left+Kt.width,hr=0;hr<me.length;hr+=1){var Ur=me[hr].key,Wr=Ue.get(Ur);if(!Wr){var en;Wr=Ue.get((en=me[hr-1])===null||en===void 0?void 0:en.key)||he}var Vr=Zt.get(Ur)||(0,f.Z)({},Wr);Vr.right=Br-Vr.left-Vr.width,Zt.set(Ur,Vr)}return Zt},[me.map(function(st){return st.key}).join("_"),Ue,Me])}function Be(me,Ue){var Me=S.useRef(me),st=S.useState({}),Zt=(0,E.Z)(st,2),Kt=Zt[1];function Br(hr){var Ur=typeof hr=="function"?hr(Me.current):hr;Ur!==Me.current&&Ue(Ur,Me.current),Me.current=Ur,Kt({})}return[Me.current,Br]}var je=.1,ee=.01,ce=20,D=Math.pow(.995,ce);function ot(me,Ue){var Me=(0,S.useState)(),st=(0,E.Z)(Me,2),Zt=st[0],Kt=st[1],Br=(0,S.useState)(0),hr=(0,E.Z)(Br,2),Ur=hr[0],Wr=hr[1],en=(0,S.useState)(0),Vr=(0,E.Z)(en,2),Hr=Vr[0],qr=Vr[1],gn=(0,S.useState)(),tn=(0,E.Z)(gn,2),Mn=tn[0],Rn=tn[1],pi=(0,S.useRef)();function Pn(Xt){var Nr=Xt.touches[0],Lr=Nr.screenX,Jr=Nr.screenY;Kt({x:Lr,y:Jr}),window.clearInterval(pi.current)}function ln(Xt){if(Zt){Xt.preventDefault();var Nr=Xt.touches[0],Lr=Nr.screenX,Jr=Nr.screenY;Kt({x:Lr,y:Jr});var Fn=Lr-Zt.x,Ln=Jr-Zt.y;Ue(Fn,Ln);var li=Date.now();Wr(li),qr(li-Ur),Rn({x:Fn,y:Ln})}}function Ht(){if(Zt&&(Kt(null),Rn(null),Mn)){var Xt=Mn.x/Hr,Nr=Mn.y/Hr,Lr=Math.abs(Xt),Jr=Math.abs(Nr);if(Math.max(Lr,Jr)<je)return;var Fn=Xt,Ln=Nr;pi.current=window.setInterval(function(){if(Math.abs(Fn)<ee&&Math.abs(Ln)<ee){window.clearInterval(pi.current);return}Fn*=D,Ln*=D,Ue(Fn*ce,Ln*ce)},ce)}}var Wt=(0,S.useRef)();function er(Xt){var Nr=Xt.deltaX,Lr=Xt.deltaY,Jr=0,Fn=Math.abs(Nr),Ln=Math.abs(Lr);Fn===Ln?Jr=Wt.current==="x"?Nr:Lr:Fn>Ln?(Jr=Nr,Wt.current="x"):(Jr=Lr,Wt.current="y"),Ue(-Jr,-Jr)&&Xt.preventDefault()}var tr=(0,S.useRef)(null);tr.current={onTouchStart:Pn,onTouchMove:ln,onTouchEnd:Ht,onWheel:er},S.useEffect(function(){function Xt(Fn){tr.current.onTouchStart(Fn)}function Nr(Fn){tr.current.onTouchMove(Fn)}function Lr(Fn){tr.current.onTouchEnd(Fn)}function Jr(Fn){tr.current.onWheel(Fn)}return document.addEventListener("touchmove",Nr,{passive:!1}),document.addEventListener("touchend",Lr,{passive:!1}),me.current.addEventListener("touchstart",Xt,{passive:!1}),me.current.addEventListener("wheel",Jr),function(){document.removeEventListener("touchmove",Nr),document.removeEventListener("touchend",Lr)}},[])}var Le=x(34280);function Ce(me){var Ue=(0,S.useState)(0),Me=(0,E.Z)(Ue,2),st=Me[0],Zt=Me[1],Kt=(0,S.useRef)(0),Br=(0,S.useRef)();return Br.current=me,(0,Le.o)(function(){var hr;(hr=Br.current)===null||hr===void 0||hr.call(Br)},[st]),function(){Kt.current===st&&(Kt.current+=1,Zt(Kt.current))}}function Re(me){var Ue=(0,S.useRef)([]),Me=(0,S.useState)({}),st=(0,E.Z)(Me,2),Zt=st[1],Kt=(0,S.useRef)(typeof me=="function"?me():me),Br=Ce(function(){var Ur=Kt.current;Ue.current.forEach(function(Wr){Ur=Wr(Ur)}),Ue.current=[],Kt.current=Ur,Zt({})});function hr(Ur){Ue.current.push(Ur),Br()}return[Kt.current,hr]}var ve={width:0,height:0,left:0,top:0,right:0};function Pe(me,Ue,Me,st,Zt,Kt,Br){var hr=Br.tabs,Ur=Br.tabPosition,Wr=Br.rtl,en,Vr,Hr;return["top","bottom"].includes(Ur)?(en="width",Vr=Wr?"right":"left",Hr=Math.abs(Me)):(en="height",Vr="top",Hr=-Me),(0,S.useMemo)(function(){if(!hr.length)return[0,0];for(var qr=hr.length,gn=qr,tn=0;tn<qr;tn+=1){var Mn=me.get(hr[tn].key)||ve;if(Mn[Vr]+Mn[en]>Hr+Ue){gn=tn-1;break}}for(var Rn=0,pi=qr-1;pi>=0;pi-=1){var Pn=me.get(hr[pi].key)||ve;if(Pn[Vr]<Hr){Rn=pi+1;break}}return Rn>=gn?[0,0]:[Rn,gn]},[me,Ue,st,Zt,Kt,Hr,Ur,hr.map(function(qr){return qr.key}).join("_"),Wr])}function fe(me){var Ue;return me instanceof Map?(Ue={},me.forEach(function(Me,st){Ue[st]=Me})):Ue=me,JSON.stringify(Ue)}var ye="TABS_DQ";function at(me){return String(me).replace(/"/g,ye)}function tt(me,Ue,Me,st){return!(!Me||st||me===!1||me===void 0&&(Ue===!1||Ue===null))}function rt(me,Ue){var Me=me.prefixCls,st=me.editable,Zt=me.locale,Kt=me.style;return!st||st.showAdd===!1?null:S.createElement("button",{ref:Ue,type:"button",className:"".concat(Me,"-nav-add"),style:Kt,"aria-label":(Zt==null?void 0:Zt.addAriaLabel)||"Add tab",onClick:function(hr){st.onEdit("add",{event:hr})}},st.addIcon||"+")}var At=S.forwardRef(rt),Nt=S.forwardRef(function(me,Ue){var Me=me.position,st=me.prefixCls,Zt=me.extra;if(!Zt)return null;var Kt,Br={};return(0,h.Z)(Zt)==="object"&&!S.isValidElement(Zt)?Br=Zt:Br.right=Zt,Me==="right"&&(Kt=Br.right),Me==="left"&&(Kt=Br.left),Kt?S.createElement("div",{className:"".concat(st,"-extra-content"),ref:Ue},Kt):null}),jt=Nt,Qt=x(31561),ur=x(15285),or=x(10228);function xr(me,Ue){var Me=me.prefixCls,st=me.id,Zt=me.tabs,Kt=me.locale,Br=me.mobile,hr=me.moreIcon,Ur=hr===void 0?"More":hr,Wr=me.moreTransitionName,en=me.style,Vr=me.className,Hr=me.editable,qr=me.tabBarGutter,gn=me.rtl,tn=me.removeAriaLabel,Mn=me.onTabClick,Rn=me.getPopupContainer,pi=me.popupClassName,Pn=(0,S.useState)(!1),ln=(0,E.Z)(Pn,2),Ht=ln[0],Wt=ln[1],er=(0,S.useState)(null),tr=(0,E.Z)(er,2),Xt=tr[0],Nr=tr[1],Lr="".concat(st,"-more-popup"),Jr="".concat(Me,"-dropdown"),Fn=Xt!==null?"".concat(Lr,"-").concat(Xt):null,Ln=Kt==null?void 0:Kt.dropdownAriaLabel;function li(In,ii){In.preventDefault(),In.stopPropagation(),Hr.onEdit("remove",{key:ii,event:In})}var ti=S.createElement(ur.ZP,{onClick:function(ii){var bi=ii.key,Di=ii.domEvent;Mn(bi,Di),Wt(!1)},prefixCls:"".concat(Jr,"-menu"),id:Lr,tabIndex:-1,role:"listbox","aria-activedescendant":Fn,selectedKeys:[Xt],"aria-label":Ln!==void 0?Ln:"expanded dropdown"},Zt.map(function(In){var ii=In.closable,bi=In.disabled,Di=In.closeIcon,Gn=In.key,Li=In.label,ra=tt(ii,Di,Hr,bi);return S.createElement(ur.sN,{key:Gn,id:"".concat(Lr,"-").concat(Gn),role:"option","aria-controls":st&&"".concat(st,"-panel-").concat(Gn),disabled:bi},S.createElement("span",null,Li),ra&&S.createElement("button",{type:"button","aria-label":tn||"remove",tabIndex:0,className:"".concat(Jr,"-menu-item-remove"),onClick:function(un){un.stopPropagation(),li(un,Gn)}},Di||Hr.removeIcon||"\xD7"))}));function Ei(In){for(var ii=Zt.filter(function(ra){return!ra.disabled}),bi=ii.findIndex(function(ra){return ra.key===Xt})||0,Di=ii.length,Gn=0;Gn<Di;Gn+=1){bi=(bi+In+Di)%Di;var Li=ii[bi];if(!Li.disabled){Nr(Li.key);return}}}function Yn(In){var ii=In.which;if(!Ht){[or.Z.DOWN,or.Z.SPACE,or.Z.ENTER].includes(ii)&&(Wt(!0),In.preventDefault());return}switch(ii){case or.Z.UP:Ei(-1),In.preventDefault();break;case or.Z.DOWN:Ei(1),In.preventDefault();break;case or.Z.ESC:Wt(!1);break;case or.Z.SPACE:case or.Z.ENTER:Xt!==null&&Mn(Xt,In);break}}(0,S.useEffect)(function(){var In=document.getElementById(Fn);In&&In.scrollIntoView&&In.scrollIntoView(!1)},[Xt]),(0,S.useEffect)(function(){Ht||Nr(null)},[Ht]);var Hn=(0,B.Z)({},gn?"marginRight":"marginLeft",qr);Zt.length||(Hn.visibility="hidden",Hn.order=1);var sn=ie()((0,B.Z)({},"".concat(Jr,"-rtl"),gn)),vi=Br?null:S.createElement(Qt.Z,{prefixCls:Jr,overlay:ti,trigger:["hover"],visible:Zt.length?Ht:!1,transitionName:Wr,onVisibleChange:Wt,overlayClassName:ie()(sn,pi),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:Rn},S.createElement("button",{type:"button",className:"".concat(Me,"-nav-more"),style:Hn,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Lr,id:"".concat(st,"-more"),"aria-expanded":Ht,onKeyDown:Yn},Ur));return S.createElement("div",{className:ie()("".concat(Me,"-nav-operations"),Vr),style:en,ref:Ue},vi,S.createElement(At,{prefixCls:Me,locale:Kt,editable:Hr}))}var fr=S.memo(S.forwardRef(xr),function(me,Ue){return Ue.tabMoving});function L(me){var Ue,Me=me.prefixCls,st=me.id,Zt=me.active,Kt=me.tab,Br=Kt.key,hr=Kt.label,Ur=Kt.disabled,Wr=Kt.closeIcon,en=me.closable,Vr=me.renderWrapper,Hr=me.removeAriaLabel,qr=me.editable,gn=me.onClick,tn=me.onFocus,Mn=me.style,Rn="".concat(Me,"-tab"),pi=tt(en,Wr,qr,Ur);function Pn(Wt){Ur||gn(Wt)}function ln(Wt){Wt.preventDefault(),Wt.stopPropagation(),qr.onEdit("remove",{key:Br,event:Wt})}var Ht=S.createElement("div",{key:Br,"data-node-key":at(Br),className:ie()(Rn,(Ue={},(0,B.Z)(Ue,"".concat(Rn,"-with-remove"),pi),(0,B.Z)(Ue,"".concat(Rn,"-active"),Zt),(0,B.Z)(Ue,"".concat(Rn,"-disabled"),Ur),Ue)),style:Mn,onClick:Pn},S.createElement("div",{role:"tab","aria-selected":Zt,id:st&&"".concat(st,"-tab-").concat(Br),className:"".concat(Rn,"-btn"),"aria-controls":st&&"".concat(st,"-panel-").concat(Br),"aria-disabled":Ur,tabIndex:Ur?null:0,onClick:function(er){er.stopPropagation(),Pn(er)},onKeyDown:function(er){[or.Z.SPACE,or.Z.ENTER].includes(er.which)&&(er.preventDefault(),Pn(er))},onFocus:tn},hr),pi&&S.createElement("button",{type:"button","aria-label":Hr||"remove",tabIndex:0,className:"".concat(Rn,"-remove"),onClick:function(er){er.stopPropagation(),ln(er)}},Wr||qr.removeIcon||"\xD7"));return Vr?Vr(Ht):Ht}var nt=L,k=x(16089),p=function(Ue){var Me=Ue.activeTabOffset,st=Ue.horizontal,Zt=Ue.rtl,Kt=Ue.indicatorSize,Br=(0,S.useState)(),hr=(0,E.Z)(Br,2),Ur=hr[0],Wr=hr[1],en=(0,S.useRef)(),Vr=function(gn){return typeof Kt=="function"?Kt(gn):typeof Kt=="number"?Kt:gn};function Hr(){k.Z.cancel(en.current)}return(0,S.useEffect)(function(){var qr={};return Me&&(st?(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=Vr(Me.width)):(qr.top=Me.top+Me.height/2,qr.transform="translateY(-50%)",qr.height=Vr(Me.height))),Hr(),en.current=(0,k.Z)(function(){Wr(qr)}),Hr},[Me,st,Zt,Kt]),{style:Ur}},d=p,w=function(Ue){var Me=Ue.current||{},st=Me.offsetWidth,Zt=st===void 0?0:st,Kt=Me.offsetHeight,Br=Kt===void 0?0:Kt;return[Zt,Br]},q=function(Ue,Me){return Ue[Me?0:1]};function Se(me,Ue){var Me,st=S.useContext(I),Zt=st.prefixCls,Kt=st.tabs,Br=me.className,hr=me.style,Ur=me.id,Wr=me.animated,en=me.activeKey,Vr=me.rtl,Hr=me.extra,qr=me.editable,gn=me.locale,tn=me.tabPosition,Mn=me.tabBarGutter,Rn=me.children,pi=me.onTabClick,Pn=me.onTabScroll,ln=me.indicatorSize,Ht=(0,S.useRef)(),Wt=(0,S.useRef)(),er=(0,S.useRef)(),tr=(0,S.useRef)(),Xt=(0,S.useRef)(),Nr=(0,S.useRef)(),Lr=(0,S.useRef)(),Jr=tn==="top"||tn==="bottom",Fn=Be(0,function(Sa,fa){Jr&&Pn&&Pn({direction:Sa>fa?"left":"right"})}),Ln=(0,E.Z)(Fn,2),li=Ln[0],ti=Ln[1],Ei=Be(0,function(Sa,fa){!Jr&&Pn&&Pn({direction:Sa>fa?"top":"bottom"})}),Yn=(0,E.Z)(Ei,2),Hn=Yn[0],sn=Yn[1],vi=(0,S.useState)([0,0]),In=(0,E.Z)(vi,2),ii=In[0],bi=In[1],Di=(0,S.useState)([0,0]),Gn=(0,E.Z)(Di,2),Li=Gn[0],ra=Gn[1],si=(0,S.useState)([0,0]),un=(0,E.Z)(si,2),rn=un[0],Nn=un[1],wn=(0,S.useState)([0,0]),jn=(0,E.Z)(wn,2),ui=jn[0],_i=jn[1],ca=Re(new Map),Yi=(0,E.Z)(ca,2),so=Yi[0],ri=Yi[1],On=Ne(Kt,so,Li[0]),ki=q(ii,Jr),Ii=q(Li,Jr),da=q(rn,Jr),To=q(ui,Jr),ia=ki<Ii+da,Ji=ia?ki-To:ki-da,ja="".concat(Zt,"-nav-operations-hidden"),Fa=0,ro=0;Jr&&Vr?(Fa=0,ro=Math.max(0,Ii-Ji)):(Fa=Math.min(0,Ji-Ii),ro=0);function wo(Sa){return Sa<Fa?Fa:Sa>ro?ro:Sa}var Ba=(0,S.useRef)(),di=(0,S.useState)(),Aa=(0,E.Z)(di,2),No=Aa[0],ho=Aa[1];function Ja(){ho(Date.now())}function Ni(){window.clearTimeout(Ba.current)}ot(tr,function(Sa,fa){function Da(Ya,lo){Ya(function(Oa){var Ma=wo(Oa+lo);return Ma})}return ia?(Jr?Da(ti,Sa):Da(sn,fa),Ni(),Ja(),!0):!1}),(0,S.useEffect)(function(){return Ni(),No&&(Ba.current=window.setTimeout(function(){ho(0)},100)),Ni},[No]);var Oo=Pe(On,Ji,Jr?li:Hn,Ii,da,To,(0,f.Z)((0,f.Z)({},me),{},{tabs:Kt})),po=(0,E.Z)(Oo,2),el=po[0],Wo=po[1],Rs=(0,z.Z)(function(){var Sa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:en,fa=On.get(Sa)||{width:0,height:0,left:0,right:0,top:0};if(Jr){var Da=li;Vr?fa.right<li?Da=fa.right:fa.right+fa.width>li+Ji&&(Da=fa.right+fa.width-Ji):fa.left<-li?Da=-fa.left:fa.left+fa.width>-li+Ji&&(Da=-(fa.left+fa.width-Ji)),sn(0),ti(wo(Da))}else{var Ya=Hn;fa.top<-Hn?Ya=-fa.top:fa.top+fa.height>-Hn+Ji&&(Ya=-(fa.top+fa.height-Ji)),ti(0),sn(wo(Ya))}}),Go={};tn==="top"||tn==="bottom"?Go[Vr?"marginRight":"marginLeft"]=Mn:Go.marginTop=Mn;var xl=Kt.map(function(Sa,fa){var Da=Sa.key;return S.createElement(nt,{id:Ur,prefixCls:Zt,key:Da,tab:Sa,style:fa===0?void 0:Go,closable:Sa.closable,editable:qr,active:Da===en,renderWrapper:Rn,removeAriaLabel:gn==null?void 0:gn.removeAriaLabel,onClick:function(lo){pi(Da,lo)},onFocus:function(){Rs(Da),Ja(),tr.current&&(Vr||(tr.current.scrollLeft=0),tr.current.scrollTop=0)}})}),za=function(){return ri(function(){var fa=new Map;return Kt.forEach(function(Da){var Ya,lo=Da.key,Oa=(Ya=Xt.current)===null||Ya===void 0?void 0:Ya.querySelector('[data-node-key="'.concat(at(lo),'"]'));Oa&&fa.set(lo,{width:Oa.offsetWidth,height:Oa.offsetHeight,left:Oa.offsetLeft,top:Oa.offsetTop})}),fa})};(0,S.useEffect)(function(){za()},[Kt.map(function(Sa){return Sa.key}).join("_")]);var Qa=Ce(function(){var Sa=w(Ht),fa=w(Wt),Da=w(er);bi([Sa[0]-fa[0]-Da[0],Sa[1]-fa[1]-Da[1]]);var Ya=w(Lr);Nn(Ya);var lo=w(Nr);_i(lo);var Oa=w(Xt);ra([Oa[0]-Ya[0],Oa[1]-Ya[1]]),za()}),Ea=Kt.slice(0,el),Qs=Kt.slice(Wo+1),wi=[].concat((0,X.Z)(Ea),(0,X.Z)(Qs)),Wi=On.get(en),Ti=d({activeTabOffset:Wi,horizontal:Jr,rtl:Vr,indicatorSize:ln}),Gi=Ti.style;(0,S.useEffect)(function(){Rs()},[en,Fa,ro,fe(Wi),fe(On),Jr]),(0,S.useEffect)(function(){Qa()},[Vr]);var ua=!!wi.length,Ia="".concat(Zt,"-nav-wrap"),Xo,Fo,Eo,$a;return Jr?Vr?(Fo=li>0,Xo=li!==ro):(Xo=li<0,Fo=li!==Fa):(Eo=Hn<0,$a=Hn!==Fa),S.createElement(W.Z,{onResize:Qa},S.createElement("div",{ref:(0,le.x1)(Ue,Ht),role:"tablist",className:ie()("".concat(Zt,"-nav"),Br),style:hr,onKeyDown:function(){Ja()}},S.createElement(jt,{ref:Wt,position:"left",extra:Hr,prefixCls:Zt}),S.createElement(W.Z,{onResize:Qa},S.createElement("div",{className:ie()(Ia,(Me={},(0,B.Z)(Me,"".concat(Ia,"-ping-left"),Xo),(0,B.Z)(Me,"".concat(Ia,"-ping-right"),Fo),(0,B.Z)(Me,"".concat(Ia,"-ping-top"),Eo),(0,B.Z)(Me,"".concat(Ia,"-ping-bottom"),$a),Me)),ref:tr},S.createElement(W.Z,{onResize:Qa},S.createElement("div",{ref:Xt,className:"".concat(Zt,"-nav-list"),style:{transform:"translate(".concat(li,"px, ").concat(Hn,"px)"),transition:No?"none":void 0}},xl,S.createElement(At,{ref:Lr,prefixCls:Zt,locale:gn,editable:qr,style:(0,f.Z)((0,f.Z)({},xl.length===0?void 0:Go),{},{visibility:ua?"hidden":null})}),S.createElement("div",{className:ie()("".concat(Zt,"-ink-bar"),(0,B.Z)({},"".concat(Zt,"-ink-bar-animated"),Wr.inkBar)),style:Gi}))))),S.createElement(fr,(0,G.Z)({},me,{removeAriaLabel:gn==null?void 0:gn.removeAriaLabel,ref:Nr,prefixCls:Zt,tabs:wi,className:!ua&&ja,tabMoving:!!No})),S.createElement(jt,{ref:er,position:"right",extra:Hr,prefixCls:Zt})))}var H=S.forwardRef(Se),ne=["renderTabBar"],Ge=["label","key"];function xe(me){var Ue=me.renderTabBar,Me=(0,Z.Z)(me,ne),st=S.useContext(I),Zt=st.tabs;if(Ue){var Kt=(0,f.Z)((0,f.Z)({},Me),{},{panes:Zt.map(function(Br){var hr=Br.label,Ur=Br.key,Wr=(0,Z.Z)(Br,Ge);return S.createElement(K,(0,G.Z)({tab:hr,key:Ur,tabKey:Ur},Wr))})});return Ue(Kt,H)}return S.createElement(H,Me)}var we=x(48736);function Ye(){var me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},Ue;return me===!1?Ue={inkBar:!1,tabPane:!1}:me===!0?Ue={inkBar:!0,tabPane:!1}:Ue=(0,f.Z)({inkBar:!0},(0,h.Z)(me)==="object"?me:{}),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 ut(me,Ue){var Me,st=me.id,Zt=me.prefixCls,Kt=Zt===void 0?"rc-tabs":Zt,Br=me.className,hr=me.items,Ur=me.direction,Wr=me.activeKey,en=me.defaultActiveKey,Vr=me.editable,Hr=me.animated,qr=me.tabPosition,gn=qr===void 0?"top":qr,tn=me.tabBarGutter,Mn=me.tabBarStyle,Rn=me.tabBarExtraContent,pi=me.locale,Pn=me.moreIcon,ln=me.moreTransitionName,Ht=me.destroyInactiveTabPane,Wt=me.renderTabBar,er=me.onChange,tr=me.onTabClick,Xt=me.onTabScroll,Nr=me.getPopupContainer,Lr=me.popupClassName,Jr=me.indicatorSize,Fn=(0,Z.Z)(me,_t),Ln=S.useMemo(function(){return(hr||[]).filter(function(_i){return _i&&(0,h.Z)(_i)==="object"&&"key"in _i})},[hr]),li=Ur==="rtl",ti=Ye(Hr),Ei=(0,S.useState)(!1),Yn=(0,E.Z)(Ei,2),Hn=Yn[0],sn=Yn[1];(0,S.useEffect)(function(){sn((0,_.Z)())},[]);var vi=(0,O.Z)(function(){var _i;return(_i=Ln[0])===null||_i===void 0?void 0:_i.key},{value:Wr,defaultValue:en}),In=(0,E.Z)(vi,2),ii=In[0],bi=In[1],Di=(0,S.useState)(function(){return Ln.findIndex(function(_i){return _i.key===ii})}),Gn=(0,E.Z)(Di,2),Li=Gn[0],ra=Gn[1];(0,S.useEffect)(function(){var _i=Ln.findIndex(function(Yi){return Yi.key===ii});if(_i===-1){var ca;_i=Math.max(0,Math.min(Li,Ln.length-1)),bi((ca=Ln[_i])===null||ca===void 0?void 0:ca.key)}ra(_i)},[Ln.map(function(_i){return _i.key}).join("_"),ii,Li]);var si=(0,O.Z)(null,{value:st}),un=(0,E.Z)(si,2),rn=un[0],Nn=un[1];(0,S.useEffect)(function(){st||(Nn("rc-tabs-".concat(pe)),pe+=1)},[]);function wn(_i,ca){tr==null||tr(_i,ca);var Yi=_i!==ii;bi(_i),Yi&&(er==null||er(_i))}var jn={id:rn,activeKey:ii,animated:ti,tabPosition:gn,rtl:li,mobile:Hn},ui=(0,f.Z)((0,f.Z)({},jn),{},{editable:Vr,locale:pi,moreIcon:Pn,moreTransitionName:ln,tabBarGutter:tn,onTabClick:wn,onTabScroll:Xt,extra:Rn,style:Mn,panes:null,getPopupContainer:Nr,popupClassName:Lr,indicatorSize:Jr});return S.createElement(I.Provider,{value:{tabs:Ln,prefixCls:Kt}},S.createElement("div",(0,G.Z)({ref:Ue,id:st,className:ie()(Kt,"".concat(Kt,"-").concat(gn),(Me={},(0,B.Z)(Me,"".concat(Kt,"-mobile"),Hn),(0,B.Z)(Me,"".concat(Kt,"-editable"),Vr),(0,B.Z)(Me,"".concat(Kt,"-rtl"),li),Me),Br)},Fn),S.createElement(xe,(0,G.Z)({},ui,{renderTabBar:Wt})),S.createElement(te,(0,G.Z)({destroyInactiveTabPane:Ht},jn,{animated:ti}))))}var ct=S.forwardRef(ut),Ie=ct,ke=Ie,vt=x(36355),zt=x(19716),ar=()=>null,Ir=x(62892);const Pr={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Kr(me){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({},Pr),{motionName:(0,Ir.m)(me,"switch")})),Me}var Tr=x(11592),cr=function(me,Ue){var Me={};for(var st in me)Object.prototype.hasOwnProperty.call(me,st)&&Ue.indexOf(st)<0&&(Me[st]=me[st]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,st=Object.getOwnPropertySymbols(me);Zt<st.length;Zt++)Ue.indexOf(st[Zt])<0&&Object.prototype.propertyIsEnumerable.call(me,st[Zt])&&(Me[st[Zt]]=me[st[Zt]]);return Me};function Ar(me){return me.filter(Ue=>Ue)}function zr(me,Ue){if(me)return me;const Me=(0,Tr.Z)(Ue).map(st=>{if(S.isValidElement(st)){const{key:Zt,props:Kt}=st,Br=Kt||{},{tab:hr}=Br,Ur=cr(Br,["tab"]);return Object.assign(Object.assign({key:String(Zt)},Ur),{label:hr})}return null});return Ar(Me)}var cn=x(17313),Sn=x(83116),An=x(37613),_n=x(13826),Mr=me=>{const{componentCls:Ue,motionDurationSlow:Me}=me;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,_n.oN)(me,"slide-up"),(0,_n.oN)(me,"slide-down")]]};const ei=me=>{const{componentCls:Ue,tabsCardPadding:Me,cardBg:st,cardGutter:Zt,colorBorderSecondary:Kt,itemSelectedColor:Br}=me;return{[`${Ue}-card`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-tab`]:{margin:0,padding:Me,background:st,border:`${me.lineWidth}px ${me.lineType} ${Kt}`,transition:`all ${me.motionDurationSlow} ${me.motionEaseInOut}`},[`${Ue}-tab-active`]:{color:Br,background:me.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:`${me.borderRadiusLG}px ${me.borderRadiusLG}px 0 0`},[`${Ue}-tab-active`]:{borderBottomColor:me.colorBgContainer}}},[`&${Ue}-bottom`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-tab`]:{borderRadius:`0 0 ${me.borderRadiusLG}px ${me.borderRadiusLG}px`},[`${Ue}-tab-active`]:{borderTopColor:me.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:`${me.borderRadiusLG}px 0 0 ${me.borderRadiusLG}px`}},[`${Ue}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:me.colorBgContainer}}}},[`&${Ue}-right`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${me.borderRadiusLG}px ${me.borderRadiusLG}px 0`}},[`${Ue}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:me.colorBgContainer}}}}}}},Bi=me=>{const{componentCls:Ue,itemHoverColor:Me,dropdownEdgeChildVerticalPadding:st}=me;return{[`${Ue}-dropdown`]:Object.assign(Object.assign({},(0,cn.Wf)(me)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:me.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${Ue}-dropdown-menu`]:{maxHeight:me.tabsDropdownHeight,margin:0,padding:`${st}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:me.colorBgContainer,backgroundClip:"padding-box",borderRadius:me.borderRadiusLG,outline:"none",boxShadow:me.boxShadowSecondary,"&-item":Object.assign(Object.assign({},cn.vS),{display:"flex",alignItems:"center",minWidth:me.tabsDropdownWidth,margin:0,padding:`${me.paddingXXS}px ${me.paddingSM}px`,color:me.colorText,fontWeight:"normal",fontSize:me.fontSize,lineHeight:me.lineHeight,cursor:"pointer",transition:`all ${me.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:me.marginSM},color:me.colorTextDescription,fontSize:me.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:Me}},"&:hover":{background:me.controlItemBgHover},"&-disabled":{"&, &:hover":{color:me.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},zn=me=>{const{componentCls:Ue,margin:Me,colorBorderSecondary:st,horizontalMargin:Zt,verticalItemPadding:Kt,verticalItemMargin:Br}=me;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:`${me.lineWidth}px ${me.lineType} ${st}`,content:"''"},[`${Ue}-ink-bar`]:{height:me.lineWidthBold,"&-animated":{transition:`width ${me.motionDurationSlow}, left ${me.motionDurationSlow},
right ${me.motionDurationSlow}`}},[`${Ue}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:me.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:me.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:me.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:me.controlHeight*1.25,[`${Ue}-tab`]:{padding:Kt,textAlign:"center"},[`${Ue}-tab + ${Ue}-tab`]:{margin:Br},[`${Ue}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:me.controlHeight},"&::before":{top:0,boxShadow:me.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:me.boxShadowTabsOverflowBottom},[`&${Ue}-nav-wrap-ping-top::before`]:{opacity:1},[`&${Ue}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${Ue}-ink-bar`]:{width:me.lineWidthBold,"&-animated":{transition:`height ${me.motionDurationSlow}, top ${me.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:`-${me.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${me.lineWidth}px ${me.lineType} ${me.colorBorder}`},[`> ${Ue}-content > ${Ue}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:me.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:-me.lineWidth},borderRight:{_skip_check_:!0,value:`${me.lineWidth}px ${me.lineType} ${me.colorBorder}`},[`> ${Ue}-content > ${Ue}-tabpane`]:{paddingRight:{_skip_check_:!0,value:me.paddingLG}}}}}},Oi=me=>{const{componentCls:Ue,cardPaddingSM:Me,cardPaddingLG:st,horizontalItemPaddingSM:Zt,horizontalItemPaddingLG:Kt}=me;return{[Ue]:{"&-small":{[`> ${Ue}-nav`]:{[`${Ue}-tab`]:{padding:Zt,fontSize:me.titleFontSizeSM}}},"&-large":{[`> ${Ue}-nav`]:{[`${Ue}-tab`]:{padding:Kt,fontSize:me.titleFontSizeLG}}}},[`${Ue}-card`]:{[`&${Ue}-small`]:{[`> ${Ue}-nav`]:{[`${Ue}-tab`]:{padding:Me}},[`&${Ue}-bottom`]:{[`> ${Ue}-nav ${Ue}-tab`]:{borderRadius:`0 0 ${me.borderRadius}px ${me.borderRadius}px`}},[`&${Ue}-top`]:{[`> ${Ue}-nav ${Ue}-tab`]:{borderRadius:`${me.borderRadius}px ${me.borderRadius}px 0 0`}},[`&${Ue}-right`]:{[`> ${Ue}-nav ${Ue}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${me.borderRadius}px ${me.borderRadius}px 0`}}},[`&${Ue}-left`]:{[`> ${Ue}-nav ${Ue}-tab`]:{borderRadius:{_skip_check_:!0,value:`${me.borderRadius}px 0 0 ${me.borderRadius}px`}}}},[`&${Ue}-large`]:{[`> ${Ue}-nav`]:{[`${Ue}-tab`]:{padding:st}}}}}},yi=me=>{const{componentCls:Ue,itemActiveColor:Me,itemHoverColor:st,iconCls:Zt,tabsHorizontalItemMargin:Kt,horizontalItemPadding:Br,itemSelectedColor:hr,itemColor:Ur}=me,Wr=`${Ue}-tab`;return{[Wr]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:Br,fontSize:me.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:Ur,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:Me}},(0,cn.Qy)(me)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-me.marginXXS},marginLeft:{_skip_check_:!0,value:me.marginXS},color:me.colorTextDescription,fontSize:me.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${me.motionDurationSlow}`,"&:hover":{color:me.colorTextHeading}},"&:hover":{color:st},[`&${Wr}-active ${Wr}-btn`]:{color:hr,textShadow:me.tabsActiveTextShadow},[`&${Wr}-disabled`]:{color:me.colorTextDisabled,cursor:"not-allowed"},[`&${Wr}-disabled ${Wr}-btn, &${Wr}-disabled ${Ue}-remove`]:{"&:focus, &:active":{color:me.colorTextDisabled}},[`& ${Wr}-remove ${Zt}`]:{margin:0},[Zt]:{marginRight:{_skip_check_:!0,value:me.marginSM}}},[`${Wr} + ${Wr}`]:{margin:{_skip_check_:!0,value:Kt}}}},Ki=me=>{const{componentCls:Ue,tabsHorizontalItemMarginRTL:Me,iconCls:st,cardGutter:Zt}=me;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}},[st]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${me.marginSM}px`}},[`${Ue}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${me.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${me.marginXXS}px`},[st]:{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"}}}}},Ca=me=>{const{componentCls:Ue,tabsCardPadding:Me,cardHeight:st,cardGutter:Zt,itemHoverColor:Kt,itemActiveColor:Br,colorBorderSecondary:hr}=me;return{[Ue]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,cn.Wf)(me)),{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 ${me.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${Ue}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${me.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:me.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:me.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${Ue}-nav-add`]:Object.assign({minWidth:st,marginLeft:{_skip_check_:!0,value:Zt},padding:`0 ${me.paddingXS}px`,background:"transparent",border:`${me.lineWidth}px ${me.lineType} ${hr}`,borderRadius:`${me.borderRadiusLG}px ${me.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:me.colorText,transition:`all ${me.motionDurationSlow} ${me.motionEaseInOut}`,"&:hover":{color:Kt},"&:active, &:focus:not(:focus-visible)":{color:Br}},(0,cn.Qy)(me))},[`${Ue}-extra-content`]:{flex:"none"},[`${Ue}-ink-bar`]:{position:"absolute",background:me.inkBarColor,pointerEvents:"none"}}),yi(me)),{[`${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 Zi=(0,Sn.Z)("Tabs",me=>{const Ue=(0,An.TS)(me,{tabsCardPadding:me.cardPadding||`${(me.cardHeight-Math.round(me.fontSize*me.lineHeight))/2-me.lineWidth}px ${me.padding}px`,dropdownEdgeChildVerticalPadding:me.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${me.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${me.horizontalItemGutter}px`});return[Oi(Ue),Ki(Ue),zn(Ue),Bi(Ue),ei(Ue),Ca(Ue),Mr(Ue)]},me=>{const Ue=me.controlHeightLG;return{zIndexPopup:me.zIndexPopupBase+50,cardBg:me.colorFillAlter,cardHeight:Ue,cardPadding:"",cardPaddingSM:`${me.paddingXXS*1.5}px ${me.padding}px`,cardPaddingLG:`${me.paddingXS}px ${me.padding}px ${me.paddingXXS*1.5}px`,titleFontSize:me.fontSize,titleFontSizeLG:me.fontSizeLG,titleFontSizeSM:me.fontSize,inkBarColor:me.colorPrimary,horizontalMargin:`0 0 ${me.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${me.paddingSM}px 0`,horizontalItemPaddingSM:`${me.paddingXS}px 0`,horizontalItemPaddingLG:`${me.padding}px 0`,verticalItemPadding:`${me.paddingXS}px ${me.paddingLG}px`,verticalItemMargin:`${me.margin}px 0 0 0`,itemColor:me.colorText,itemSelectedColor:me.colorPrimary,itemHoverColor:me.colorPrimaryHover,itemActiveColor:me.colorPrimaryActive,cardGutter:me.marginXXS/2}}),ni=function(me,Ue){var Me={};for(var st in me)Object.prototype.hasOwnProperty.call(me,st)&&Ue.indexOf(st)<0&&(Me[st]=me[st]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,st=Object.getOwnPropertySymbols(me);Zt<st.length;Zt++)Ue.indexOf(st[Zt])<0&&Object.prototype.propertyIsEnumerable.call(me,st[Zt])&&(Me[st[Zt]]=me[st[Zt]]);return Me};const Si=me=>{const{type:Ue,className:Me,rootClassName:st,size:Zt,onEdit:Kt,hideAdd:Br,centered:hr,addIcon:Ur,popupClassName:Wr,children:en,items:Vr,animated:Hr,style:qr,indicatorSize:gn}=me,tn=ni(me,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:Mn,moreIcon:Rn=S.createElement(ue.Z,null)}=tn,{direction:pi,tabs:Pn,getPrefixCls:ln,getPopupContainer:Ht}=S.useContext(vt.E_),Wt=ln("tabs",Mn),[er,tr]=Zi(Wt);let Xt;Ue==="editable-card"&&(Xt={onEdit:(li,ti)=>{let{key:Ei,event:Yn}=ti;Kt==null||Kt(li==="add"?Yn:Ei,li)},removeIcon:S.createElement(ge.Z,null),addIcon:Ur||S.createElement(Q.Z,null),showAdd:Br!==!0});const Nr=ln(),Lr=zr(Vr,en),Jr=Kr(Wt,Hr),Fn=(0,zt.Z)(Zt),Ln=Object.assign(Object.assign({},Pn==null?void 0:Pn.style),qr);return er(S.createElement(ke,Object.assign({direction:pi,getPopupContainer:Ht,moreTransitionName:`${Nr}-slide-up`},tn,{items:Lr,className:ie()({[`${Wt}-${Fn}`]:Fn,[`${Wt}-card`]:["card","editable-card"].includes(Ue),[`${Wt}-editable-card`]:Ue==="editable-card",[`${Wt}-centered`]:hr},Pn==null?void 0:Pn.className,Me,st,tr),popupClassName:ie()(Wr,tr),style:Ln,editable:Xt,moreIcon:Rn,prefixCls:Wt,animated:Jr,indicatorSize:gn!=null?gn:Pn==null?void 0:Pn.indicatorSize})))};Si.TabPane=ar;var Ui=Si},17574:function(xn,qt,x){"use strict";x.d(qt,{default:function(){return Pe}});var ge=x(23130),ue=x(26407),Q=x(52671),Te=x(8657),ie=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,ie.Z)({},ye,{ref:at,icon:f}))},Z=G.forwardRef(h),S=Z,_=x(92310),O=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:tt,indent:rt,direction:At="ltr"}=fe,Nt=At==="ltr"?"left":"right",jt=At==="ltr"?"right":"left",Qt={[Nt]:-at*rt+X,[jt]:0};switch(ye){case-1:Qt.top=-3;break;case 1:Qt.bottom=-3;break;default:Qt.bottom=-3,Qt[Nt]=rt+X;break}return G.createElement("div",{style:Qt,className:`${tt}-drop-indicator`})}var z=x(71997),he=G.forwardRef((fe,ye)=>{const{getPrefixCls:at,direction:tt,virtual:rt,tree:At}=G.useContext(Y.E_),{prefixCls:Nt,className:jt,showIcon:Qt=!1,showLine:ur,switcherIcon:or,blockNode:xr=!1,children:fr,checkable:L=!1,selectable:nt=!0,draggable:k,motion:p,style:d}=fe,w=at("tree",Nt),q=at(),Se=p!=null?p:Object.assign(Object.assign({},(0,se.Z)(q)),{motionAppear:!1}),H=Object.assign(Object.assign({},fe),{checkable:L,selectable:nt,showIcon:Qt,motion:Se,blockNode:xr,showLine:!!ur,dropIndicatorRender:W}),[ne,Ge]=(0,te.ZP)(w),xe=G.useMemo(()=>{if(!k)return!1;let Ye={};switch(typeof k){case"function":Ye.nodeDraggable=k;break;case"object":Ye=Object.assign({},k);break;default:break}return Ye.icon!==!1&&(Ye.icon=Ye.icon||G.createElement(K.Z,null)),Ye},[k]),we=Ye=>G.createElement(z.Z,{prefixCls:w,switcherIcon:or,treeNodeProps:Ye,showLine:ur});return ne(G.createElement(ge.Z,Object.assign({itemHeight:20,ref:ye,virtual:rt},H,{style:Object.assign(Object.assign({},At==null?void 0:At.style),d),prefixCls:w,className:O()({[`${w}-icon-hide`]:!Qt,[`${w}-block-node`]:xr,[`${w}-unselectable`]:!nt,[`${w}-rtl`]:tt==="rtl"},At==null?void 0:At.className,jt,Ge),direction:tt,checkable:L&&G.createElement("span",{className:`${w}-checkbox-inner`}),selectable:nt,switcherIcon:we,draggable:xe}),fr))}),Ne;(function(fe){fe[fe.None=0]="None",fe[fe.Start=1]="Start",fe[fe.End=2]="End"})(Ne||(Ne={}));function Be(fe,ye){function at(tt){const{key:rt,children:At}=tt;ye(rt,tt)!==!1&&Be(At||[],ye)}fe.forEach(at)}function je(fe){let{treeData:ye,expandedKeys:at,startKey:tt,endKey:rt}=fe;const At=[];let Nt=Ne.None;if(tt&&tt===rt)return[tt];if(!tt||!rt)return[];function jt(Qt){return Qt===tt||Qt===rt}return Be(ye,Qt=>{if(Nt===Ne.End)return!1;if(jt(Qt)){if(At.push(Qt),Nt===Ne.None)Nt=Ne.Start;else if(Nt===Ne.Start)return Nt=Ne.End,!1}else Nt===Ne.Start&&At.push(Qt);return at.includes(Qt)}),At}function ee(fe,ye){const at=(0,ue.Z)(ye),tt=[];return Be(fe,(rt,At)=>{const Nt=at.indexOf(rt);return Nt!==-1&&(tt.push(At),at.splice(Nt,1)),!!at.length}),tt}var ce=function(fe,ye){var at={};for(var tt in fe)Object.prototype.hasOwnProperty.call(fe,tt)&&ye.indexOf(tt)<0&&(at[tt]=fe[tt]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,tt=Object.getOwnPropertySymbols(fe);rt<tt.length;rt++)ye.indexOf(tt[rt])<0&&Object.prototype.propertyIsEnumerable.call(fe,tt[rt])&&(at[tt[rt]]=fe[tt[rt]]);return at};function D(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:tt,defaultExpandedKeys:rt}=fe,At=ce(fe,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Nt=G.useRef(),jt=G.useRef(),Qt=()=>{const{keyEntities:xe}=(0,I.I8)(ot(At));let we;return at?we=Object.keys(xe):tt?we=(0,R.r7)(At.expandedKeys||rt||[],xe):we=At.expandedKeys||rt,we},[ur,or]=G.useState(At.selectedKeys||At.defaultSelectedKeys||[]),[xr,fr]=G.useState(()=>Qt());G.useEffect(()=>{"selectedKeys"in At&&or(At.selectedKeys)},[At.selectedKeys]),G.useEffect(()=>{"expandedKeys"in At&&fr(At.expandedKeys)},[At.expandedKeys]);const L=(xe,we)=>{var Ye;return"expandedKeys"in At||fr(xe),(Ye=At.onExpand)===null||Ye===void 0?void 0:Ye.call(At,xe,we)},nt=(xe,we)=>{var Ye;const{multiple:_t}=At,{node:pe,nativeEvent:ut}=we,{key:ct=""}=pe,Ie=ot(At),ke=Object.assign(Object.assign({},we),{selected:!0}),vt=(ut==null?void 0:ut.ctrlKey)||(ut==null?void 0:ut.metaKey),zt=ut==null?void 0:ut.shiftKey;let Ut;_t&&vt?(Ut=xe,Nt.current=ct,jt.current=Ut,ke.selectedNodes=ee(Ie,Ut)):_t&&zt?(Ut=Array.from(new Set([].concat((0,ue.Z)(jt.current||[]),(0,ue.Z)(je({treeData:Ie,expandedKeys:xr,startKey:ct,endKey:Nt.current}))))),ke.selectedNodes=ee(Ie,Ut)):(Ut=[ct],Nt.current=ct,jt.current=Ut,ke.selectedNodes=ee(Ie,Ut)),(Ye=At.onSelect)===null||Ye===void 0||Ye.call(At,Ut,ke),"selectedKeys"in At||or(Ut)},{getPrefixCls:k,direction:p}=G.useContext(Y.E_),{prefixCls:d,className:w,showIcon:q=!0,expandAction:Se="click"}=At,H=ce(At,["prefixCls","className","showIcon","expandAction"]),ne=k("tree",d),Ge=O()(`${ne}-directory`,{[`${ne}-directory-rtl`]:p==="rtl"},w);return G.createElement(he,Object.assign({icon:D,ref:ye,blockNode:!0},H,{showIcon:q,expandAction:Se,prefixCls:ne,className:Ge,expandedKeys:xr,selectedKeys:ur,onSelect:nt,onExpand:L}))};var Re=G.forwardRef(Le);const ve=he;ve.DirectoryTree=Re,ve.TreeNode=ge.O;var Pe=ve},20648:function(xn,qt,x){"use strict";x.d(qt,{TM:function(){return _},Yk:function(){return S}});var ge=x(93083),ue=x(98447),Q=x(17313),Te=x(8378),ie=x(37613),G=x(83116);const B=new ge.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),f=(O,R)=>({[`.${O}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${R.motionDurationSlow}`}}}),E=(O,R)=>({[`.${O}-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=(O,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(O,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(O,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=O=>{const{treeCls:R,treeNodeCls:I,treeNodePadding:Y,directoryNodeSelectedBg:K,directoryNodeSelectedColor:se}=O;return{[`${R}${R}-directory`]:{[I]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:Y,insetInlineStart:0,transition:`background-color ${O.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:O.controlItemBgHover}},"> *":{zIndex:1},[`${R}-switcher`]:{transition:`color ${O.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=(O,R)=>{const I=`.${O}`,Y=`${I}-treenode`,K=R.paddingXS/2,se=(0,ie.TS)(R,{treeCls:I,treeNodeCls:Y,treeNodePadding:K});return[h(O,se),Z(se)]},_=O=>{const{controlHeightSM:R}=O;return{titleHeight:R,nodeHoverBg:O.controlItemBgHover,nodeSelectedBg:O.controlItemBgActive}};qt.ZP=(0,G.Z)("Tree",(O,R)=>{let{prefixCls:I}=R;return[{[O.componentCls]:(0,ue.C2)(`${I}-checkbox`,O)},S(I,O),(0,Te.Z)(O)]},O=>{const{colorTextLightSolid:R,colorPrimary:I}=O;return Object.assign(Object.assign({},_(O)),{directoryNodeSelectedColor:R,directoryNodeSelectedBg:I})})},71997:function(xn,qt,x){"use strict";x.d(qt,{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,ie=x(7657),G=function(se,te){return ue.createElement(ie.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),O=x.n(_),R=x(92343),Y=K=>{const{prefixCls:se,switcherIcon:te,treeNodeProps:X,showLine:W}=K,{isLeaf:z,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),z){if(!W)return null;if(typeof Ne!="boolean"&&Ne){const ee=typeof Ne=="function"?Ne(X):Ne,ce=`${se}-switcher-line-custom-icon`;return(0,R.l$)(ee)?(0,R.Tm)(ee,{className:O()(ee.props.className||"",ce)}):ee}return Ne?ue.createElement(E.Z,{className:`${se}-switcher-line-icon`}):ue.createElement("span",{className:`${se}-switcher-leaf-line`})}const Be=`${se}-switcher-icon`,je=typeof te=="function"?te(X):te;return(0,R.l$)(je)?(0,R.Tm)(je,{className:O()(je.props.className||"",Be)}):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:Be})}},86251:function(xn,qt){"use strict";qt.byteLength=B,qt.toByteArray=E,qt.fromByteArray=S;for(var x=[],ge=[],ue=typeof Uint8Array!="undefined"?Uint8Array:Array,Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Te=0,ie=Q.length;Te<ie;++Te)x[Te]=Q[Te],ge[Q.charCodeAt(Te)]=Te;ge[45]=62,ge[95]=63;function G(_){var O=_.length;if(O%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var R=_.indexOf("=");R===-1&&(R=O);var I=R===O?0:4-R%4;return[R,I]}function B(_){var O=G(_),R=O[0],I=O[1];return(R+I)*3/4-I}function f(_,O,R){return(O+R)*3/4-R}function E(_){var O,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)O=ge[_.charCodeAt(X)]<<18|ge[_.charCodeAt(X+1)]<<12|ge[_.charCodeAt(X+2)]<<6|ge[_.charCodeAt(X+3)],K[se++]=O>>16&255,K[se++]=O>>8&255,K[se++]=O&255;return Y===2&&(O=ge[_.charCodeAt(X)]<<2|ge[_.charCodeAt(X+1)]>>4,K[se++]=O&255),Y===1&&(O=ge[_.charCodeAt(X)]<<10|ge[_.charCodeAt(X+1)]<<4|ge[_.charCodeAt(X+2)]>>2,K[se++]=O>>8&255,K[se++]=O&255),K}function h(_){return x[_>>18&63]+x[_>>12&63]+x[_>>6&63]+x[_&63]}function Z(_,O,R){for(var I,Y=[],K=O;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 O,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?(O=_[R-1],Y.push(x[O>>2]+x[O<<4&63]+"==")):I===2&&(O=(_[R-2]<<8)+_[R-1],Y.push(x[O>>10]+x[O>>4&63]+x[O<<2&63]+"=")),Y.join("")}},19208:function(xn,qt,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;qt.lW=f,ge=se,qt.h2=50;var ie=2147483647;ge=ie,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 k=new Uint8Array(1),p={foo:function(){return 42}};return Object.setPrototypeOf(p,Uint8Array.prototype),Object.setPrototypeOf(k,p),k.foo()===42}catch(d){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(k){if(k>ie)throw new RangeError('The value "'+k+'" is invalid for option "size"');var p=new Uint8Array(k);return Object.setPrototypeOf(p,f.prototype),p}function f(k,p,d){if(typeof k=="number"){if(typeof p=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(k)}return E(k,p,d)}f.poolSize=8192;function E(k,p,d){if(typeof k=="string")return _(k,p);if(ArrayBuffer.isView(k))return R(k);if(k==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof k);if(fr(k,ArrayBuffer)||k&&fr(k.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(fr(k,SharedArrayBuffer)||k&&fr(k.buffer,SharedArrayBuffer)))return I(k,p,d);if(typeof k=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var w=k.valueOf&&k.valueOf();if(w!=null&&w!==k)return f.from(w,p,d);var q=Y(k);if(q)return q;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof k[Symbol.toPrimitive]=="function")return f.from(k[Symbol.toPrimitive]("string"),p,d);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof k)}f.from=function(k,p,d){return E(k,p,d)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array);function h(k){if(typeof k!="number")throw new TypeError('"size" argument must be of type number');if(k<0)throw new RangeError('The value "'+k+'" is invalid for option "size"')}function Z(k,p,d){return h(k),k<=0?B(k):p!==void 0?typeof d=="string"?B(k).fill(p,d):B(k).fill(p):B(k)}f.alloc=function(k,p,d){return Z(k,p,d)};function S(k){return h(k),B(k<0?0:K(k)|0)}f.allocUnsafe=function(k){return S(k)},f.allocUnsafeSlow=function(k){return S(k)};function _(k,p){if((typeof p!="string"||p==="")&&(p="utf8"),!f.isEncoding(p))throw new TypeError("Unknown encoding: "+p);var d=te(k,p)|0,w=B(d),q=w.write(k,p);return q!==d&&(w=w.slice(0,q)),w}function O(k){for(var p=k.length<0?0:K(k.length)|0,d=B(p),w=0;w<p;w+=1)d[w]=k[w]&255;return d}function R(k){if(fr(k,Uint8Array)){var p=new Uint8Array(k);return I(p.buffer,p.byteOffset,p.byteLength)}return O(k)}function I(k,p,d){if(p<0||k.byteLength<p)throw new RangeError('"offset" is outside of buffer bounds');if(k.byteLength<p+(d||0))throw new RangeError('"length" is outside of buffer bounds');var w;return p===void 0&&d===void 0?w=new Uint8Array(k):d===void 0?w=new Uint8Array(k,p):w=new Uint8Array(k,p,d),Object.setPrototypeOf(w,f.prototype),w}function Y(k){if(f.isBuffer(k)){var p=K(k.length)|0,d=B(p);return d.length===0||k.copy(d,0,0,p),d}if(k.length!==void 0)return typeof k.length!="number"||L(k.length)?B(0):O(k);if(k.type==="Buffer"&&Array.isArray(k.data))return O(k.data)}function K(k){if(k>=ie)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ie.toString(16)+" bytes");return k|0}function se(k){return+k!=k&&(k=0),f.alloc(+k)}f.isBuffer=function(p){return p!=null&&p._isBuffer===!0&&p!==f.prototype},f.compare=function(p,d){if(fr(p,Uint8Array)&&(p=f.from(p,p.offset,p.byteLength)),fr(d,Uint8Array)&&(d=f.from(d,d.offset,d.byteLength)),!f.isBuffer(p)||!f.isBuffer(d))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(p===d)return 0;for(var w=p.length,q=d.length,Se=0,H=Math.min(w,q);Se<H;++Se)if(p[Se]!==d[Se]){w=p[Se],q=d[Se];break}return w<q?-1:q<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,d){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(d===void 0)for(d=0,w=0;w<p.length;++w)d+=p[w].length;var q=f.allocUnsafe(d),Se=0;for(w=0;w<p.length;++w){var H=p[w];if(fr(H,Uint8Array))Se+H.length>q.length?f.from(H).copy(q,Se):Uint8Array.prototype.set.call(q,H,Se);else if(f.isBuffer(H))H.copy(q,Se);else throw new TypeError('"list" argument must be an Array of Buffers');Se+=H.length}return q};function te(k,p){if(f.isBuffer(k))return k.length;if(ArrayBuffer.isView(k)||fr(k,ArrayBuffer))return k.byteLength;if(typeof k!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof k);var d=k.length,w=arguments.length>2&&arguments[2]===!0;if(!w&&d===0)return 0;for(var q=!1;;)switch(p){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return jt(k).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d*2;case"hex":return d>>>1;case"base64":return or(k).length;default:if(q)return w?-1:jt(k).length;p=(""+p).toLowerCase(),q=!0}}f.byteLength=te;function X(k,p,d){var w=!1;if((p===void 0||p<0)&&(p=0),p>this.length||((d===void 0||d>this.length)&&(d=this.length),d<=0)||(d>>>=0,p>>>=0,d<=p))return"";for(k||(k="utf8");;)switch(k){case"hex":return ve(this,p,d);case"utf8":case"utf-8":return D(this,p,d);case"ascii":return Ce(this,p,d);case"latin1":case"binary":return Re(this,p,d);case"base64":return ce(this,p,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pe(this,p,d);default:if(w)throw new TypeError("Unknown encoding: "+k);k=(k+"").toLowerCase(),w=!0}}f.prototype._isBuffer=!0;function W(k,p,d){var w=k[p];k[p]=k[d],k[d]=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 d=0;d<p;d+=2)W(this,d,d+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 d=0;d<p;d+=4)W(this,d,d+3),W(this,d+1,d+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 d=0;d<p;d+=8)W(this,d,d+7),W(this,d+1,d+6),W(this,d+2,d+5),W(this,d+3,d+4);return this},f.prototype.toString=function(){var p=this.length;return p===0?"":arguments.length===0?D(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="",d=qt.h2;return p=this.toString("hex",0,d).replace(/(.{2})/g,"$1 ").trim(),this.length>d&&(p+=" ... "),"<Buffer "+p+">"},Te&&(f.prototype[Te]=f.prototype.inspect),f.prototype.compare=function(p,d,w,q,Se){if(fr(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(d===void 0&&(d=0),w===void 0&&(w=p?p.length:0),q===void 0&&(q=0),Se===void 0&&(Se=this.length),d<0||w>p.length||q<0||Se>this.length)throw new RangeError("out of range index");if(q>=Se&&d>=w)return 0;if(q>=Se)return-1;if(d>=w)return 1;if(d>>>=0,w>>>=0,q>>>=0,Se>>>=0,this===p)return 0;for(var H=Se-q,ne=w-d,Ge=Math.min(H,ne),xe=this.slice(q,Se),we=p.slice(d,w),Ye=0;Ye<Ge;++Ye)if(xe[Ye]!==we[Ye]){H=xe[Ye],ne=we[Ye];break}return H<ne?-1:ne<H?1:0};function z(k,p,d,w,q){if(k.length===0)return-1;if(typeof d=="string"?(w=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),d=+d,L(d)&&(d=q?0:k.length-1),d<0&&(d=k.length+d),d>=k.length){if(q)return-1;d=k.length-1}else if(d<0)if(q)d=0;else return-1;if(typeof p=="string"&&(p=f.from(p,w)),f.isBuffer(p))return p.length===0?-1:le(k,p,d,w,q);if(typeof p=="number")return p=p&255,typeof Uint8Array.prototype.indexOf=="function"?q?Uint8Array.prototype.indexOf.call(k,p,d):Uint8Array.prototype.lastIndexOf.call(k,p,d):le(k,[p],d,w,q);throw new TypeError("val must be string, number or Buffer")}function le(k,p,d,w,q){var Se=1,H=k.length,ne=p.length;if(w!==void 0&&(w=String(w).toLowerCase(),w==="ucs2"||w==="ucs-2"||w==="utf16le"||w==="utf-16le")){if(k.length<2||p.length<2)return-1;Se=2,H/=2,ne/=2,d/=2}function Ge(pe,ut){return Se===1?pe[ut]:pe.readUInt16BE(ut*Se)}var xe;if(q){var we=-1;for(xe=d;xe<H;xe++)if(Ge(k,xe)===Ge(p,we===-1?0:xe-we)){if(we===-1&&(we=xe),xe-we+1===ne)return we*Se}else we!==-1&&(xe-=xe-we),we=-1}else for(d+ne>H&&(d=H-ne),xe=d;xe>=0;xe--){for(var Ye=!0,_t=0;_t<ne;_t++)if(Ge(k,xe+_t)!==Ge(p,_t)){Ye=!1;break}if(Ye)return xe}return-1}f.prototype.includes=function(p,d,w){return this.indexOf(p,d,w)!==-1},f.prototype.indexOf=function(p,d,w){return z(this,p,d,w,!0)},f.prototype.lastIndexOf=function(p,d,w){return z(this,p,d,w,!1)};function he(k,p,d,w){d=Number(d)||0;var q=k.length-d;w?(w=Number(w),w>q&&(w=q)):w=q;var Se=p.length;w>Se/2&&(w=Se/2);for(var H=0;H<w;++H){var ne=parseInt(p.substr(H*2,2),16);if(L(ne))return H;k[d+H]=ne}return H}function Ne(k,p,d,w){return xr(jt(p,k.length-d),k,d,w)}function Be(k,p,d,w){return xr(Qt(p),k,d,w)}function je(k,p,d,w){return xr(or(p),k,d,w)}function ee(k,p,d,w){return xr(ur(p,k.length-d),k,d,w)}f.prototype.write=function(p,d,w,q){if(d===void 0)q="utf8",w=this.length,d=0;else if(w===void 0&&typeof d=="string")q=d,w=this.length,d=0;else if(isFinite(d))d=d>>>0,isFinite(w)?(w=w>>>0,q===void 0&&(q="utf8")):(q=w,w=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Se=this.length-d;if((w===void 0||w>Se)&&(w=Se),p.length>0&&(w<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");q||(q="utf8");for(var H=!1;;)switch(q){case"hex":return he(this,p,d,w);case"utf8":case"utf-8":return Ne(this,p,d,w);case"ascii":case"latin1":case"binary":return Be(this,p,d,w);case"base64":return je(this,p,d,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,p,d,w);default:if(H)throw new TypeError("Unknown encoding: "+q);q=(""+q).toLowerCase(),H=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ce(k,p,d){return p===0&&d===k.length?ue.fromByteArray(k):ue.fromByteArray(k.slice(p,d))}function D(k,p,d){d=Math.min(k.length,d);for(var w=[],q=p;q<d;){var Se=k[q],H=null,ne=Se>239?4:Se>223?3:Se>191?2:1;if(q+ne<=d){var Ge,xe,we,Ye;switch(ne){case 1:Se<128&&(H=Se);break;case 2:Ge=k[q+1],(Ge&192)===128&&(Ye=(Se&31)<<6|Ge&63,Ye>127&&(H=Ye));break;case 3:Ge=k[q+1],xe=k[q+2],(Ge&192)===128&&(xe&192)===128&&(Ye=(Se&15)<<12|(Ge&63)<<6|xe&63,Ye>2047&&(Ye<55296||Ye>57343)&&(H=Ye));break;case 4:Ge=k[q+1],xe=k[q+2],we=k[q+3],(Ge&192)===128&&(xe&192)===128&&(we&192)===128&&(Ye=(Se&15)<<18|(Ge&63)<<12|(xe&63)<<6|we&63,Ye>65535&&Ye<1114112&&(H=Ye))}}H===null?(H=65533,ne=1):H>65535&&(H-=65536,w.push(H>>>10&1023|55296),H=56320|H&1023),w.push(H),q+=ne}return Le(w)}var ot=4096;function Le(k){var p=k.length;if(p<=ot)return String.fromCharCode.apply(String,k);for(var d="",w=0;w<p;)d+=String.fromCharCode.apply(String,k.slice(w,w+=ot));return d}function Ce(k,p,d){var w="";d=Math.min(k.length,d);for(var q=p;q<d;++q)w+=String.fromCharCode(k[q]&127);return w}function Re(k,p,d){var w="";d=Math.min(k.length,d);for(var q=p;q<d;++q)w+=String.fromCharCode(k[q]);return w}function ve(k,p,d){var w=k.length;(!p||p<0)&&(p=0),(!d||d<0||d>w)&&(d=w);for(var q="",Se=p;Se<d;++Se)q+=nt[k[Se]];return q}function Pe(k,p,d){for(var w=k.slice(p,d),q="",Se=0;Se<w.length-1;Se+=2)q+=String.fromCharCode(w[Se]+w[Se+1]*256);return q}f.prototype.slice=function(p,d){var w=this.length;p=~~p,d=d===void 0?w:~~d,p<0?(p+=w,p<0&&(p=0)):p>w&&(p=w),d<0?(d+=w,d<0&&(d=0)):d>w&&(d=w),d<p&&(d=p);var q=this.subarray(p,d);return Object.setPrototypeOf(q,f.prototype),q};function fe(k,p,d){if(k%1!==0||k<0)throw new RangeError("offset is not uint");if(k+p>d)throw new RangeError("Trying to access beyond buffer length")}f.prototype.readUintLE=f.prototype.readUIntLE=function(p,d,w){p=p>>>0,d=d>>>0,w||fe(p,d,this.length);for(var q=this[p],Se=1,H=0;++H<d&&(Se*=256);)q+=this[p+H]*Se;return q},f.prototype.readUintBE=f.prototype.readUIntBE=function(p,d,w){p=p>>>0,d=d>>>0,w||fe(p,d,this.length);for(var q=this[p+--d],Se=1;d>0&&(Se*=256);)q+=this[p+--d]*Se;return q},f.prototype.readUint8=f.prototype.readUInt8=function(p,d){return p=p>>>0,d||fe(p,1,this.length),this[p]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(p,d){return p=p>>>0,d||fe(p,2,this.length),this[p]|this[p+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(p,d){return p=p>>>0,d||fe(p,2,this.length),this[p]<<8|this[p+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(p,d){return p=p>>>0,d||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,d){return p=p>>>0,d||fe(p,4,this.length),this[p]*16777216+(this[p+1]<<16|this[p+2]<<8|this[p+3])},f.prototype.readIntLE=function(p,d,w){p=p>>>0,d=d>>>0,w||fe(p,d,this.length);for(var q=this[p],Se=1,H=0;++H<d&&(Se*=256);)q+=this[p+H]*Se;return Se*=128,q>=Se&&(q-=Math.pow(2,8*d)),q},f.prototype.readIntBE=function(p,d,w){p=p>>>0,d=d>>>0,w||fe(p,d,this.length);for(var q=d,Se=1,H=this[p+--q];q>0&&(Se*=256);)H+=this[p+--q]*Se;return Se*=128,H>=Se&&(H-=Math.pow(2,8*d)),H},f.prototype.readInt8=function(p,d){return p=p>>>0,d||fe(p,1,this.length),this[p]&128?(255-this[p]+1)*-1:this[p]},f.prototype.readInt16LE=function(p,d){p=p>>>0,d||fe(p,2,this.length);var w=this[p]|this[p+1]<<8;return w&32768?w|4294901760:w},f.prototype.readInt16BE=function(p,d){p=p>>>0,d||fe(p,2,this.length);var w=this[p+1]|this[p]<<8;return w&32768?w|4294901760:w},f.prototype.readInt32LE=function(p,d){return p=p>>>0,d||fe(p,4,this.length),this[p]|this[p+1]<<8|this[p+2]<<16|this[p+3]<<24},f.prototype.readInt32BE=function(p,d){return p=p>>>0,d||fe(p,4,this.length),this[p]<<24|this[p+1]<<16|this[p+2]<<8|this[p+3]},f.prototype.readFloatLE=function(p,d){return p=p>>>0,d||fe(p,4,this.length),Q.read(this,p,!0,23,4)},f.prototype.readFloatBE=function(p,d){return p=p>>>0,d||fe(p,4,this.length),Q.read(this,p,!1,23,4)},f.prototype.readDoubleLE=function(p,d){return p=p>>>0,d||fe(p,8,this.length),Q.read(this,p,!0,52,8)},f.prototype.readDoubleBE=function(p,d){return p=p>>>0,d||fe(p,8,this.length),Q.read(this,p,!1,52,8)};function ye(k,p,d,w,q,Se){if(!f.isBuffer(k))throw new TypeError('"buffer" argument must be a Buffer instance');if(p>q||p<Se)throw new RangeError('"value" argument is out of bounds');if(d+w>k.length)throw new RangeError("Index out of range")}f.prototype.writeUintLE=f.prototype.writeUIntLE=function(p,d,w,q){if(p=+p,d=d>>>0,w=w>>>0,!q){var Se=Math.pow(2,8*w)-1;ye(this,p,d,w,Se,0)}var H=1,ne=0;for(this[d]=p&255;++ne<w&&(H*=256);)this[d+ne]=p/H&255;return d+w},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(p,d,w,q){if(p=+p,d=d>>>0,w=w>>>0,!q){var Se=Math.pow(2,8*w)-1;ye(this,p,d,w,Se,0)}var H=w-1,ne=1;for(this[d+H]=p&255;--H>=0&&(ne*=256);)this[d+H]=p/ne&255;return d+w},f.prototype.writeUint8=f.prototype.writeUInt8=function(p,d,w){return p=+p,d=d>>>0,w||ye(this,p,d,1,255,0),this[d]=p&255,d+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(p,d,w){return p=+p,d=d>>>0,w||ye(this,p,d,2,65535,0),this[d]=p&255,this[d+1]=p>>>8,d+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(p,d,w){return p=+p,d=d>>>0,w||ye(this,p,d,2,65535,0),this[d]=p>>>8,this[d+1]=p&255,d+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(p,d,w){return p=+p,d=d>>>0,w||ye(this,p,d,4,4294967295,0),this[d+3]=p>>>24,this[d+2]=p>>>16,this[d+1]=p>>>8,this[d]=p&255,d+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(p,d,w){return p=+p,d=d>>>0,w||ye(this,p,d,4,4294967295,0),this[d]=p>>>24,this[d+1]=p>>>16,this[d+2]=p>>>8,this[d+3]=p&255,d+4},f.prototype.writeIntLE=function(p,d,w,q){if(p=+p,d=d>>>0,!q){var Se=Math.pow(2,8*w-1);ye(this,p,d,w,Se-1,-Se)}var H=0,ne=1,Ge=0;for(this[d]=p&255;++H<w&&(ne*=256);)p<0&&Ge===0&&this[d+H-1]!==0&&(Ge=1),this[d+H]=(p/ne>>0)-Ge&255;return d+w},f.prototype.writeIntBE=function(p,d,w,q){if(p=+p,d=d>>>0,!q){var Se=Math.pow(2,8*w-1);ye(this,p,d,w,Se-1,-Se)}var H=w-1,ne=1,Ge=0;for(this[d+H]=p&255;--H>=0&&(ne*=256);)p<0&&Ge===0&&this[d+H+1]!==0&&(Ge=1),this[d+H]=(p/ne>>0)-Ge&255;return d+w},f.prototype.writeInt8=function(p,d,w){return p=+p,d=d>>>0,w||ye(this,p,d,1,127,-128),p<0&&(p=255+p+1),this[d]=p&255,d+1},f.prototype.writeInt16LE=function(p,d,w){return p=+p,d=d>>>0,w||ye(this,p,d,2,32767,-32768),this[d]=p&255,this[d+1]=p>>>8,d+2},f.prototype.writeInt16BE=function(p,d,w){return p=+p,d=d>>>0,w||ye(this,p,d,2,32767,-32768),this[d]=p>>>8,this[d+1]=p&255,d+2},f.prototype.writeInt32LE=function(p,d,w){return p=+p,d=d>>>0,w||ye(this,p,d,4,2147483647,-2147483648),this[d]=p&255,this[d+1]=p>>>8,this[d+2]=p>>>16,this[d+3]=p>>>24,d+4},f.prototype.writeInt32BE=function(p,d,w){return p=+p,d=d>>>0,w||ye(this,p,d,4,2147483647,-2147483648),p<0&&(p=4294967295+p+1),this[d]=p>>>24,this[d+1]=p>>>16,this[d+2]=p>>>8,this[d+3]=p&255,d+4};function at(k,p,d,w,q,Se){if(d+w>k.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function tt(k,p,d,w,q){return p=+p,d=d>>>0,q||at(k,p,d,4,34028234663852886e22,-34028234663852886e22),Q.write(k,p,d,w,23,4),d+4}f.prototype.writeFloatLE=function(p,d,w){return tt(this,p,d,!0,w)},f.prototype.writeFloatBE=function(p,d,w){return tt(this,p,d,!1,w)};function rt(k,p,d,w,q){return p=+p,d=d>>>0,q||at(k,p,d,8,17976931348623157e292,-17976931348623157e292),Q.write(k,p,d,w,52,8),d+8}f.prototype.writeDoubleLE=function(p,d,w){return rt(this,p,d,!0,w)},f.prototype.writeDoubleBE=function(p,d,w){return rt(this,p,d,!1,w)},f.prototype.copy=function(p,d,w,q){if(!f.isBuffer(p))throw new TypeError("argument should be a Buffer");if(w||(w=0),!q&&q!==0&&(q=this.length),d>=p.length&&(d=p.length),d||(d=0),q>0&&q<w&&(q=w),q===w||p.length===0||this.length===0)return 0;if(d<0)throw new RangeError("targetStart out of bounds");if(w<0||w>=this.length)throw new RangeError("Index out of range");if(q<0)throw new RangeError("sourceEnd out of bounds");q>this.length&&(q=this.length),p.length-d<q-w&&(q=p.length-d+w);var Se=q-w;return this===p&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(d,w,q):Uint8Array.prototype.set.call(p,this.subarray(w,q),d),Se},f.prototype.fill=function(p,d,w,q){if(typeof p=="string"){if(typeof d=="string"?(q=d,d=0,w=this.length):typeof w=="string"&&(q=w,w=this.length),q!==void 0&&typeof q!="string")throw new TypeError("encoding must be a string");if(typeof q=="string"&&!f.isEncoding(q))throw new TypeError("Unknown encoding: "+q);if(p.length===1){var Se=p.charCodeAt(0);(q==="utf8"&&Se<128||q==="latin1")&&(p=Se)}}else typeof p=="number"?p=p&255:typeof p=="boolean"&&(p=Number(p));if(d<0||this.length<d||this.length<w)throw new RangeError("Out of range index");if(w<=d)return this;d=d>>>0,w=w===void 0?this.length:w>>>0,p||(p=0);var H;if(typeof p=="number")for(H=d;H<w;++H)this[H]=p;else{var ne=f.isBuffer(p)?p:f.from(p,q),Ge=ne.length;if(Ge===0)throw new TypeError('The value "'+p+'" is invalid for argument "value"');for(H=0;H<w-d;++H)this[H+d]=ne[H%Ge]}return this};var At=/[^+/0-9A-Za-z-_]/g;function Nt(k){if(k=k.split("=")[0],k=k.trim().replace(At,""),k.length<2)return"";for(;k.length%4!==0;)k=k+"=";return k}function jt(k,p){p=p||1/0;for(var d,w=k.length,q=null,Se=[],H=0;H<w;++H){if(d=k.charCodeAt(H),d>55295&&d<57344){if(!q){if(d>56319){(p-=3)>-1&&Se.push(239,191,189);continue}else if(H+1===w){(p-=3)>-1&&Se.push(239,191,189);continue}q=d;continue}if(d<56320){(p-=3)>-1&&Se.push(239,191,189),q=d;continue}d=(q-55296<<10|d-56320)+65536}else q&&(p-=3)>-1&&Se.push(239,191,189);if(q=null,d<128){if((p-=1)<0)break;Se.push(d)}else if(d<2048){if((p-=2)<0)break;Se.push(d>>6|192,d&63|128)}else if(d<65536){if((p-=3)<0)break;Se.push(d>>12|224,d>>6&63|128,d&63|128)}else if(d<1114112){if((p-=4)<0)break;Se.push(d>>18|240,d>>12&63|128,d>>6&63|128,d&63|128)}else throw new Error("Invalid code point")}return Se}function Qt(k){for(var p=[],d=0;d<k.length;++d)p.push(k.charCodeAt(d)&255);return p}function ur(k,p){for(var d,w,q,Se=[],H=0;H<k.length&&!((p-=2)<0);++H)d=k.charCodeAt(H),w=d>>8,q=d%256,Se.push(q),Se.push(w);return Se}function or(k){return ue.toByteArray(Nt(k))}function xr(k,p,d,w){for(var q=0;q<w&&!(q+d>=p.length||q>=k.length);++q)p[q+d]=k[q];return q}function fr(k,p){return k instanceof p||k!=null&&k.constructor!=null&&k.constructor.name!=null&&k.constructor.name===p.name}function L(k){return k!==k}var nt=function(){for(var k="0123456789abcdef",p=new Array(256),d=0;d<16;++d)for(var w=d*16,q=0;q<16;++q)p[w+q]=k[d]+k[q];return p}()},64270:function(xn){(function(qt,x){xn.exports=x()})(this,function(){"use strict";var qt=function(m,u){return qt=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])},qt(m,u)};function x(m,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");qt(m,u);function y(){this.constructor=m}m.prototype=u===null?Object.create(u):(y.prototype=u.prototype,new y)}var ge=function(){return ge=Object.assign||function(u){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)&&(u[Fe]=y[Fe])}return u},ge.apply(this,arguments)};function ue(m,u,y,g){function re(Fe){return Fe instanceof y?Fe:new y(function(et){et(Fe)})}return new(y||(y=Promise))(function(Fe,et){function Ct(mr){try{nr(g.next(mr))}catch(Cr){et(Cr)}}function xt(mr){try{nr(g.throw(mr))}catch(Cr){et(Cr)}}function nr(mr){mr.done?Fe(mr.value):re(mr.value).then(Ct,xt)}nr((g=g.apply(m,u||[])).next())})}function Q(m,u){var y={label:0,sent:function(){if(Fe[0]&1)throw Fe[1];return Fe[1]},trys:[],ops:[]},g,re,Fe,et;return et={next:Ct(0),throw:Ct(1),return:Ct(2)},typeof Symbol=="function"&&(et[Symbol.iterator]=function(){return this}),et;function Ct(nr){return function(mr){return xt([nr,mr])}}function xt(nr){if(g)throw new TypeError("Generator is already executing.");for(;y;)try{if(g=1,re&&(Fe=nr[0]&2?re.return:nr[0]?re.throw||((Fe=re.return)&&Fe.call(re),0):re.next)&&!(Fe=Fe.call(re,nr[1])).done)return Fe;switch(re=0,Fe&&(nr=[nr[0]&2,Fe.value]),nr[0]){case 0:case 1:Fe=nr;break;case 4:return y.label++,{value:nr[1],done:!1};case 5:y.label++,re=nr[1],nr=[0];continue;case 7:nr=y.ops.pop(),y.trys.pop();continue;default:if(Fe=y.trys,!(Fe=Fe.length>0&&Fe[Fe.length-1])&&(nr[0]===6||nr[0]===2)){y=0;continue}if(nr[0]===3&&(!Fe||nr[1]>Fe[0]&&nr[1]<Fe[3])){y.label=nr[1];break}if(nr[0]===6&&y.label<Fe[1]){y.label=Fe[1],Fe=nr;break}if(Fe&&y.label<Fe[2]){y.label=Fe[2],y.ops.push(nr);break}Fe[2]&&y.ops.pop(),y.trys.pop();continue}nr=u.call(m,y)}catch(mr){nr=[6,mr],re=0}finally{g=Fe=0}if(nr[0]&5)throw nr[1];return{value:nr[0]?nr[1]:void 0,done:!0}}}function Te(m,u,y){if(y||arguments.length===2)for(var g=0,re=u.length,Fe;g<re;g++)(Fe||!(g in u))&&(Fe||(Fe=Array.prototype.slice.call(u,0,g)),Fe[g]=u[g]);return m.concat(Fe||u)}for(var ie=function(){function m(u,y,g,re){this.left=u,this.top=y,this.width=g,this.height=re}return m.prototype.add=function(u,y,g,re){return new m(this.left+u,this.top+y,this.width+g,this.height+re)},m.fromClientRect=function(u,y){return new m(y.left+u.windowBounds.left,y.top+u.windowBounds.top,y.width,y.height)},m.fromDOMRectList=function(u,y){var g=Array.from(y).find(function(re){return re.width!==0});return g?new m(g.left+u.windowBounds.left,g.top+u.windowBounds.top,g.width,g.height):m.EMPTY},m.EMPTY=new m(0,0,0,0),m}(),G=function(m,u){return ie.fromClientRect(m,u.getBoundingClientRect())},B=function(m){var u=m.body,y=m.documentElement;if(!u||!y)throw new Error("Unable to get document size");var g=Math.max(Math.max(u.scrollWidth,y.scrollWidth),Math.max(u.offsetWidth,y.offsetWidth),Math.max(u.clientWidth,y.clientWidth)),re=Math.max(Math.max(u.scrollHeight,y.scrollHeight),Math.max(u.offsetHeight,y.offsetHeight),Math.max(u.clientHeight,y.clientHeight));return new ie(0,0,g,re)},f=function(m){for(var u=[],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?u.push(((re&1023)<<10)+(Fe&1023)+65536):(u.push(re),y--)}else u.push(re)}return u},E=function(){for(var m=[],u=0;u<arguments.length;u++)m[u]=arguments[u];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 et=m[re];et<=65535?g.push(et):(et-=65536,g.push((et>>10)+55296,et%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+/",O=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),R=0;R<_.length;R++)O[_.charCodeAt(R)]=R;for(var I=function(m){var u=m.length*.75,y=m.length,g,re=0,Fe,et,Ct,xt;m[m.length-1]==="="&&(u--,m[m.length-2]==="="&&u--);var nr=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(u):new Array(u),mr=Array.isArray(nr)?nr:new Uint8Array(nr);for(g=0;g<y;g+=4)Fe=O[m.charCodeAt(g)],et=O[m.charCodeAt(g+1)],Ct=O[m.charCodeAt(g+2)],xt=O[m.charCodeAt(g+3)],mr[re++]=Fe<<2|et>>4,mr[re++]=(et&15)<<4|Ct>>2,mr[re++]=(Ct&3)<<6|xt&63;return nr},Y=function(m){for(var u=m.length,y=[],g=0;g<u;g+=2)y.push(m[g+1]<<8|m[g]);return y},K=function(m){for(var u=m.length,y=[],g=0;g<u;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,z=65536>>se,le=1<<se,he=le-1,Ne=1024>>se,Be=z+Ne,je=Be,ee=32,ce=je+ee,D=65536>>te,ot=1<<W,Le=ot-1,Ce=function(m,u,y){return m.slice?m.slice(u,y):new Uint16Array(Array.prototype.slice.call(m,u,y))},Re=function(m,u,y){return m.slice?m.slice(u,y):new Uint32Array(Array.prototype.slice.call(m,u,y))},ve=function(m,u){var y=I(m),g=Array.isArray(y)?K(y):new Uint32Array(y),re=Array.isArray(y)?Y(y):new Uint16Array(y),Fe=24,et=Ce(re,Fe/2,g[4]/2),Ct=g[5]===2?Ce(re,(Fe+g[4])/2):Re(g,Math.ceil((Fe+g[4])/4));return new Pe(g[0],g[1],g[2],g[3],et,Ct)},Pe=function(){function m(u,y,g,re,Fe,et){this.initialValue=u,this.errorValue=y,this.highStart=g,this.highValueIndex=re,this.index=Fe,this.data=et}return m.prototype.get=function(u){var y;if(u>=0){if(u<55296||u>56319&&u<=65535)return y=this.index[u>>se],y=(y<<X)+(u&he),this.data[y];if(u<=65535)return y=this.index[z+(u-55296>>se)],y=(y<<X)+(u&he),this.data[y];if(u<this.highStart)return y=ce-D+(u>>te),y=this.index[y],y+=u>>se&Le,y=this.index[y],y=(y<<X)+(u&he),this.data[y];if(u<=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 tt="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==",rt=50,At=1,Nt=2,jt=3,Qt=4,ur=5,or=7,xr=8,fr=9,L=10,nt=11,k=12,p=13,d=14,w=15,q=16,Se=17,H=18,ne=19,Ge=20,xe=21,we=22,Ye=23,_t=24,pe=25,ut=26,ct=27,Ie=28,ke=29,vt=30,zt=31,Ut=32,ar=33,Ir=34,Pr=35,Kr=36,Tr=37,cr=38,Ar=39,zr=40,cn=41,Sn=42,An=43,_n=[9001,65288],xi="!",Mr="\xD7",ei="\xF7",Bi=ve(tt),zn=[vt,Kr],Oi=[At,Nt,jt,ur],yi=[L,xr],Ki=[ct,ut],Ca=Oi.concat(yi),Zi=[cr,Ar,zr,Ir,Pr],ni=[w,p],Si=function(m,u){u===void 0&&(u="strict");var y=[],g=[],re=[];return m.forEach(function(Fe,et){var Ct=Bi.get(Fe);if(Ct>rt?(re.push(!0),Ct-=rt):re.push(!1),["normal","auto","loose"].indexOf(u)!==-1&&[8208,8211,12316,12448].indexOf(Fe)!==-1)return g.push(et),y.push(q);if(Ct===Qt||Ct===nt){if(et===0)return g.push(et),y.push(vt);var xt=y[et-1];return Ca.indexOf(xt)===-1?(g.push(g[et-1]),y.push(xt)):(g.push(et),y.push(vt))}if(g.push(et),Ct===zt)return y.push(u==="strict"?xe:Tr);if(Ct===Sn||Ct===ke)return y.push(vt);if(Ct===An)return Fe>=131072&&Fe<=196605||Fe>=196608&&Fe<=262141?y.push(Tr):y.push(vt);y.push(Ct)}),[g,y,re]},Ui=function(m,u,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 et=g[Fe];if(et===u)return!0;if(et!==L)break}if(re===L)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 et=g[xt];if(et===u)return!0;if(et!==L)break}if(Ct!==L)break}return!1},me=function(m,u){for(var y=m;y>=0;){var g=u[y];if(g===L)y--;else return g}return 0},Ue=function(m,u,y,g,re){if(y[g]===0)return Mr;var Fe=g-1;if(Array.isArray(re)&&re[Fe]===!0)return Mr;var et=Fe-1,Ct=Fe+1,xt=u[Fe],nr=et>=0?u[et]:0,mr=u[Ct];if(xt===Nt&&mr===jt)return Mr;if(Oi.indexOf(xt)!==-1)return xi;if(Oi.indexOf(mr)!==-1||yi.indexOf(mr)!==-1)return Mr;if(me(Fe,u)===xr)return ei;if(Bi.get(m[Fe])===nt||(xt===Ut||xt===ar)&&Bi.get(m[Ct])===nt||xt===or||mr===or||xt===fr||[L,p,w].indexOf(xt)===-1&&mr===fr||[Se,H,ne,_t,Ie].indexOf(mr)!==-1||me(Fe,u)===we||Ui(Ye,we,Fe,u)||Ui([Se,H],xe,Fe,u)||Ui(k,k,Fe,u))return Mr;if(xt===L)return ei;if(xt===Ye||mr===Ye)return Mr;if(mr===q||xt===q)return ei;if([p,w,xe].indexOf(mr)!==-1||xt===d||nr===Kr&&ni.indexOf(xt)!==-1||xt===Ie&&mr===Kr||mr===Ge||zn.indexOf(mr)!==-1&&xt===pe||zn.indexOf(xt)!==-1&&mr===pe||xt===ct&&[Tr,Ut,ar].indexOf(mr)!==-1||[Tr,Ut,ar].indexOf(xt)!==-1&&mr===ut||zn.indexOf(xt)!==-1&&Ki.indexOf(mr)!==-1||Ki.indexOf(xt)!==-1&&zn.indexOf(mr)!==-1||[ct,ut].indexOf(xt)!==-1&&(mr===pe||[we,w].indexOf(mr)!==-1&&u[Ct+1]===pe)||[we,w].indexOf(xt)!==-1&&mr===pe||xt===pe&&[pe,Ie,_t].indexOf(mr)!==-1)return Mr;if([pe,Ie,_t,Se,H].indexOf(mr)!==-1)for(var Cr=Fe;Cr>=0;){var o=u[Cr];if(o===pe)return Mr;if([Ie,_t].indexOf(o)!==-1)Cr--;else break}if([ct,ut].indexOf(mr)!==-1)for(var Cr=[Se,H].indexOf(xt)!==-1?et:Fe;Cr>=0;){var o=u[Cr];if(o===pe)return Mr;if([Ie,_t].indexOf(o)!==-1)Cr--;else break}if(cr===xt&&[cr,Ar,Ir,Pr].indexOf(mr)!==-1||[Ar,Ir].indexOf(xt)!==-1&&[Ar,zr].indexOf(mr)!==-1||[zr,Pr].indexOf(xt)!==-1&&mr===zr||Zi.indexOf(xt)!==-1&&[Ge,ut].indexOf(mr)!==-1||Zi.indexOf(mr)!==-1&&xt===ct||zn.indexOf(xt)!==-1&&zn.indexOf(mr)!==-1||xt===_t&&zn.indexOf(mr)!==-1||zn.concat(pe).indexOf(xt)!==-1&&mr===we&&_n.indexOf(m[Ct])===-1||zn.concat(pe).indexOf(mr)!==-1&&xt===H)return Mr;if(xt===cn&&mr===cn){for(var b=y[Fe],P=1;b>0&&(b--,u[b]===cn);)P++;if(P%2!==0)return Mr}return xt===Ut&&mr===ar?Mr:ei},Me=function(m,u){u||(u={lineBreak:"normal",wordBreak:"normal"});var y=Si(m,u.lineBreak),g=y[0],re=y[1],Fe=y[2];(u.wordBreak==="break-all"||u.wordBreak==="break-word")&&(re=re.map(function(Ct){return[pe,vt,Sn].indexOf(Ct)!==-1?Tr:Ct}));var et=u.wordBreak==="keep-all"?Fe.map(function(Ct,xt){return Ct&&m[xt]>=19968&&m[xt]<=40959}):void 0;return[g,re,et]},st=function(){function m(u,y,g,re){this.codePoints=u,this.required=y===xi,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,u){var y=f(m),g=Me(y,u),re=g[0],Fe=g[1],et=g[2],Ct=y.length,xt=0,nr=0;return{next:function(){if(nr>=Ct)return{done:!0,value:null};for(var mr=Mr;nr<Ct&&(mr=Ue(y,Fe,re,++nr,et))===Mr;);if(mr!==Mr||nr===Ct){var Cr=new st(y,mr,xt,nr);return xt=nr,{value:Cr,done:!1}}return{done:!0,value:null}}}},Kt=1,Br=2,hr=4,Ur=8,Wr=10,en=47,Vr=92,Hr=9,qr=32,gn=34,tn=61,Mn=35,Rn=36,pi=37,Pn=39,ln=40,Ht=41,Wt=95,er=45,tr=33,Xt=60,Nr=62,Lr=64,Jr=91,Fn=93,Ln=61,li=123,ti=63,Ei=125,Yn=124,Hn=126,sn=128,vi=65533,In=42,ii=43,bi=44,Di=58,Gn=59,Li=46,ra=0,si=8,un=11,rn=14,Nn=31,wn=127,jn=-1,ui=48,_i=97,ca=101,Yi=102,so=117,ri=122,On=65,ki=69,Ii=70,da=85,To=90,ia=function(m){return m>=ui&&m<=57},Ji=function(m){return m>=55296&&m<=57343},ja=function(m){return ia(m)||m>=On&&m<=Ii||m>=_i&&m<=Yi},Fa=function(m){return m>=_i&&m<=ri},ro=function(m){return m>=On&&m<=To},wo=function(m){return Fa(m)||ro(m)},Ba=function(m){return m>=sn},di=function(m){return m===Wr||m===Hr||m===qr},Aa=function(m){return wo(m)||Ba(m)||m===Wt},No=function(m){return Aa(m)||ia(m)||m===er},ho=function(m){return m>=ra&&m<=si||m===un||m>=rn&&m<=Nn||m===wn},Ja=function(m,u){return m!==Vr?!1:u!==Wr},Ni=function(m,u,y){return m===er?Aa(u)||Ja(u,y):Aa(m)?!0:!!(m===Vr&&Ja(m,u))},Oo=function(m,u,y){return m===ii||m===er?ia(u)?!0:u===Li&&ia(y):ia(m===Li?u:m)},po=function(m){var u=0,y=1;(m[u]===ii||m[u]===er)&&(m[u]===er&&(y=-1),u++);for(var g=[];ia(m[u]);)g.push(m[u++]);var re=g.length?parseInt(E.apply(void 0,g),10):0;m[u]===Li&&u++;for(var Fe=[];ia(m[u]);)Fe.push(m[u++]);var et=Fe.length,Ct=et?parseInt(E.apply(void 0,Fe),10):0;(m[u]===ki||m[u]===ca)&&u++;var xt=1;(m[u]===ii||m[u]===er)&&(m[u]===er&&(xt=-1),u++);for(var nr=[];ia(m[u]);)nr.push(m[u++]);var mr=nr.length?parseInt(E.apply(void 0,nr),10):0;return y*(re+Ct*Math.pow(10,-et))*Math.pow(10,xt*mr)},el={type:2},Wo={type:3},Rs={type:4},Go={type:13},xl={type:8},za={type:21},Qa={type:9},Ea={type:10},Qs={type:11},wi={type:12},Wi={type:14},Ti={type:23},Gi={type:1},ua={type:25},Ia={type:24},Xo={type:26},Fo={type:27},Eo={type:28},$a={type:29},Sa={type:31},fa={type:32},Da=function(){function m(){this._value=[]}return m.prototype.write=function(u){this._value=this._value.concat(f(u))},m.prototype.read=function(){for(var u=[],y=this.consumeToken();y!==fa;)u.push(y),y=this.consumeToken();return u},m.prototype.consumeToken=function(){var u=this.consumeCodePoint();switch(u){case gn:return this.consumeStringToken(gn);case Mn:var y=this.peekCodePoint(0),g=this.peekCodePoint(1),re=this.peekCodePoint(2);if(No(y)||Ja(g,re)){var Fe=Ni(y,g,re)?Br:Kt,et=this.consumeName();return{type:5,value:et,flags:Fe}}break;case Rn:if(this.peekCodePoint(0)===tn)return this.consumeCodePoint(),Go;break;case Pn:return this.consumeStringToken(Pn);case ln:return el;case Ht:return Wo;case In:if(this.peekCodePoint(0)===tn)return this.consumeCodePoint(),Wi;break;case ii:if(Oo(u,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(u),this.consumeNumericToken();break;case bi:return Rs;case er:var Ct=u,xt=this.peekCodePoint(0),nr=this.peekCodePoint(1);if(Oo(Ct,xt,nr))return this.reconsumeCodePoint(u),this.consumeNumericToken();if(Ni(Ct,xt,nr))return this.reconsumeCodePoint(u),this.consumeIdentLikeToken();if(xt===er&&nr===Nr)return this.consumeCodePoint(),this.consumeCodePoint(),Ia;break;case Li:if(Oo(u,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(u),this.consumeNumericToken();break;case en:if(this.peekCodePoint(0)===In)for(this.consumeCodePoint();;){var mr=this.consumeCodePoint();if(mr===In&&(mr=this.consumeCodePoint(),mr===en))return this.consumeToken();if(mr===jn)return this.consumeToken()}break;case Di:return Xo;case Gn:return Fo;case Xt:if(this.peekCodePoint(0)===tr&&this.peekCodePoint(1)===er&&this.peekCodePoint(2)===er)return this.consumeCodePoint(),this.consumeCodePoint(),ua;break;case Lr:var Cr=this.peekCodePoint(0),o=this.peekCodePoint(1),b=this.peekCodePoint(2);if(Ni(Cr,o,b)){var et=this.consumeName();return{type:7,value:et}}break;case Jr:return Eo;case Vr:if(Ja(u,this.peekCodePoint(0)))return this.reconsumeCodePoint(u),this.consumeIdentLikeToken();break;case Fn:return $a;case Ln:if(this.peekCodePoint(0)===tn)return this.consumeCodePoint(),xl;break;case li:return Qs;case Ei:return wi;case so:case da:var P=this.peekCodePoint(0),oe=this.peekCodePoint(1);return P===ii&&(ja(oe)||oe===ti)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(u),this.consumeIdentLikeToken();case Yn:if(this.peekCodePoint(0)===tn)return this.consumeCodePoint(),Qa;if(this.peekCodePoint(0)===Yn)return this.consumeCodePoint(),za;break;case Hn:if(this.peekCodePoint(0)===tn)return this.consumeCodePoint(),Ea;break;case jn:return fa}return di(u)?(this.consumeWhiteSpace(),Sa):ia(u)?(this.reconsumeCodePoint(u),this.consumeNumericToken()):Aa(u)?(this.reconsumeCodePoint(u),this.consumeIdentLikeToken()):{type:6,value:E(u)}},m.prototype.consumeCodePoint=function(){var u=this._value.shift();return typeof u=="undefined"?-1:u},m.prototype.reconsumeCodePoint=function(u){this._value.unshift(u)},m.prototype.peekCodePoint=function(u){return u>=this._value.length?-1:this._value[u]},m.prototype.consumeUnicodeRangeToken=function(){for(var u=[],y=this.consumeCodePoint();ja(y)&&u.length<6;)u.push(y),y=this.consumeCodePoint();for(var g=!1;y===ti&&u.length<6;)u.push(y),y=this.consumeCodePoint(),g=!0;if(g){var re=parseInt(E.apply(void 0,u.map(function(xt){return xt===ti?ui:xt})),16),Fe=parseInt(E.apply(void 0,u.map(function(xt){return xt===ti?Ii:xt})),16);return{type:30,start:re,end:Fe}}var et=parseInt(E.apply(void 0,u),16);if(this.peekCodePoint(0)===er&&ja(this.peekCodePoint(1))){this.consumeCodePoint(),y=this.consumeCodePoint();for(var Ct=[];ja(y)&&Ct.length<6;)Ct.push(y),y=this.consumeCodePoint();var Fe=parseInt(E.apply(void 0,Ct),16);return{type:30,start:et,end:Fe}}else return{type:30,start:et,end:et}},m.prototype.consumeIdentLikeToken=function(){var u=this.consumeName();return u.toLowerCase()==="url"&&this.peekCodePoint(0)===ln?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===ln?(this.consumeCodePoint(),{type:19,value:u}):{type:20,value:u}},m.prototype.consumeUrlToken=function(){var u=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===jn)return{type:22,value:""};var y=this.peekCodePoint(0);if(y===Pn||y===gn){var g=this.consumeStringToken(this.consumeCodePoint());return g.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===jn||this.peekCodePoint(0)===Ht)?(this.consumeCodePoint(),{type:22,value:g.value}):(this.consumeBadUrlRemnants(),Ti)}for(;;){var re=this.consumeCodePoint();if(re===jn||re===Ht)return{type:22,value:E.apply(void 0,u)};if(di(re))return this.consumeWhiteSpace(),this.peekCodePoint(0)===jn||this.peekCodePoint(0)===Ht?(this.consumeCodePoint(),{type:22,value:E.apply(void 0,u)}):(this.consumeBadUrlRemnants(),Ti);if(re===gn||re===Pn||re===ln||ho(re))return this.consumeBadUrlRemnants(),Ti;if(re===Vr)if(Ja(re,this.peekCodePoint(0)))u.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Ti;else u.push(re)}},m.prototype.consumeWhiteSpace=function(){for(;di(this.peekCodePoint(0));)this.consumeCodePoint()},m.prototype.consumeBadUrlRemnants=function(){for(;;){var u=this.consumeCodePoint();if(u===Ht||u===jn)return;Ja(u,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},m.prototype.consumeStringSlice=function(u){for(var y=5e4,g="";u>0;){var re=Math.min(y,u);g+=E.apply(void 0,this._value.splice(0,re)),u-=re}return this._value.shift(),g},m.prototype.consumeStringToken=function(u){var y="",g=0;do{var re=this._value[g];if(re===jn||re===void 0||re===u)return y+=this.consumeStringSlice(g),{type:0,value:y};if(re===Wr)return this._value.splice(0,g),Gi;if(re===Vr){var Fe=this._value[g+1];Fe!==jn&&Fe!==void 0&&(Fe===Wr?(y+=this.consumeStringSlice(g),g=-1,this._value.shift()):Ja(re,Fe)&&(y+=this.consumeStringSlice(g),y+=E(this.consumeEscapedCodePoint()),g=-1))}g++}while(!0)},m.prototype.consumeNumber=function(){var u=[],y=hr,g=this.peekCodePoint(0);for((g===ii||g===er)&&u.push(this.consumeCodePoint());ia(this.peekCodePoint(0));)u.push(this.consumeCodePoint());g=this.peekCodePoint(0);var re=this.peekCodePoint(1);if(g===Li&&ia(re))for(u.push(this.consumeCodePoint(),this.consumeCodePoint()),y=Ur;ia(this.peekCodePoint(0));)u.push(this.consumeCodePoint());g=this.peekCodePoint(0),re=this.peekCodePoint(1);var Fe=this.peekCodePoint(2);if((g===ki||g===ca)&&((re===ii||re===er)&&ia(Fe)||ia(re)))for(u.push(this.consumeCodePoint(),this.consumeCodePoint()),y=Ur;ia(this.peekCodePoint(0));)u.push(this.consumeCodePoint());return[po(u),y]},m.prototype.consumeNumericToken=function(){var u=this.consumeNumber(),y=u[0],g=u[1],re=this.peekCodePoint(0),Fe=this.peekCodePoint(1),et=this.peekCodePoint(2);if(Ni(re,Fe,et)){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 u=this.consumeCodePoint();if(ja(u)){for(var y=E(u);ja(this.peekCodePoint(0))&&y.length<6;)y+=E(this.consumeCodePoint());di(this.peekCodePoint(0))&&this.consumeCodePoint();var g=parseInt(y,16);return g===0||Ji(g)||g>1114111?vi:g}return u===jn?vi:u},m.prototype.consumeName=function(){for(var u="";;){var y=this.consumeCodePoint();if(No(y))u+=E(y);else if(Ja(y,this.peekCodePoint(0)))u+=E(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(y),u}},m}(),Ya=function(){function m(u){this._tokens=u}return m.create=function(u){var y=new Da;return y.write(u),new m(y.read())},m.parseValue=function(u){return m.create(u).parseComponentValue()},m.parseValues=function(u){return m.create(u).parseComponentValues()},m.prototype.parseComponentValue=function(){for(var u=this.consumeToken();u.type===31;)u=this.consumeToken();if(u.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(u);var y=this.consumeComponentValue();do u=this.consumeToken();while(u.type===31);if(u.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 u=[];;){var y=this.consumeComponentValue();if(y.type===32)return u;u.push(y),u.push()}},m.prototype.consumeComponentValue=function(){var u=this.consumeToken();switch(u.type){case 11:case 28:case 2:return this.consumeSimpleBlock(u.type);case 19:return this.consumeFunction(u)}return u},m.prototype.consumeSimpleBlock=function(u){for(var y={type:u,values:[]},g=this.consumeToken();;){if(g.type===32||Ms(g,u))return y;this.reconsumeToken(g),y.values.push(this.consumeComponentValue()),g=this.consumeToken()}},m.prototype.consumeFunction=function(u){for(var y={name:u.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 u=this._tokens.shift();return typeof u=="undefined"?fa:u},m.prototype.reconsumeToken=function(u){this._tokens.unshift(u)},m}(),lo=function(m){return m.type===15},Oa=function(m){return m.type===17},Ma=function(m){return m.type===20},Io=function(m){return m.type===0},kl=function(m,u){return Ma(m)&&m.value===u},ds=function(m){return m.type!==31},ll=function(m){return m.type!==31&&m.type!==4},Uo=function(m){var u=[],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");u.push(y),y=[];return}g.type!==31&&y.push(g)}),y.length&&u.push(y),u},Ms=function(m,u){return u===11&&m.type===12||u===28&&m.type===29?!0:u===2&&m.type===3},Mo=function(m){return m.type===17||m.type===15},Qn=function(m){return m.type===16||Mo(m)},Dl=function(m){return m.length>1?[m[0],m[1]]:[m[0]]},Ro={type:17,number:0,flags:hr},Vl={type:16,number:50,flags:hr},Ks={type:16,number:100,flags:hr},bs=function(m,u,y){var g=m[0],re=m[1];return[La(g,u),La(typeof re!="undefined"?re:g,y)]},La=function(m,u){if(m.type===16)return m.number/100*u;if(lo(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",ha={name:"angle",parse:function(m,u){if(u.type===15)switch(u.unit){case Qo:return Math.PI*u.number/180;case Wl:return Math.PI/200*u.number;case ac:return u.number;case cl:return Math.PI*2*u.number}throw new Error("Unsupported angle type")}},aa=function(m){return m.type===15&&(m.unit===Qo||m.unit===Wl||m.unit===ac||m.unit===cl)},mo=function(m){var u=m.filter(Ma).map(function(y){return y.value}).join(" ");switch(u){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Ro,Ro];case"to top":case"bottom":return Za(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Ro,Ks];case"to right":case"left":return Za(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ks,Ks];case"to bottom":case"top":return Za(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ks,Ro];case"to left":case"right":return Za(270)}return 0},Za=function(m){return Math.PI*m/180},no={name:"color",parse:function(m,u){if(u.type===18){var y=Hc[u.name];if(typeof y=="undefined")throw new Error('Attempting to parse an unsupported color function "'+u.name+'"');return y(m,u.values)}if(u.type===5){if(u.value.length===3){var g=u.value.substring(0,1),re=u.value.substring(1,2),Fe=u.value.substring(2,3);return Jo(parseInt(g+g,16),parseInt(re+re,16),parseInt(Fe+Fe,16),1)}if(u.value.length===4){var g=u.value.substring(0,1),re=u.value.substring(1,2),Fe=u.value.substring(2,3),et=u.value.substring(3,4);return Jo(parseInt(g+g,16),parseInt(re+re,16),parseInt(Fe+Fe,16),parseInt(et+et,16)/255)}if(u.value.length===6){var g=u.value.substring(0,2),re=u.value.substring(2,4),Fe=u.value.substring(4,6);return Jo(parseInt(g,16),parseInt(re,16),parseInt(Fe,16),1)}if(u.value.length===8){var g=u.value.substring(0,2),re=u.value.substring(2,4),Fe=u.value.substring(4,6),et=u.value.substring(6,8);return Jo(parseInt(g,16),parseInt(re,16),parseInt(Fe,16),parseInt(et,16)/255)}}if(u.type===20){var Ct=Ws[u.value.toUpperCase()];if(typeof Ct!="undefined")return Ct}return Ws.TRANSPARENT}},Ko=function(m){return(255&m)===0},qa=function(m){var u=255&m,y=255&m>>8,g=255&m>>16,re=255&m>>24;return u<255?"rgba("+re+","+g+","+y+","+u/255+")":"rgb("+re+","+g+","+y+")"},Jo=function(m,u,y,g){return(m<<24|u<<16|y<<8|Math.round(g*255)<<0)>>>0},Ls=function(m,u){if(m.type===17)return m.number;if(m.type===16){var y=u===3?1:255;return u===3?m.number/100*y:Math.round(m.number/100*y)}return 0},Al=function(m,u){var y=u.filter(ll);if(y.length===3){var g=y.map(Ls),re=g[0],Fe=g[1],et=g[2];return Jo(re,Fe,et,1)}if(y.length===4){var Ct=y.map(Ls),re=Ct[0],Fe=Ct[1],et=Ct[2],xt=Ct[3];return Jo(re,Fe,et,xt)}return 0};function Vs(m,u,y){return y<0&&(y+=1),y>=1&&(y-=1),y<1/6?(u-m)*y*6+m:y<1/2?u:y<2/3?(u-m)*6*(2/3-y)+m:m}var tl=function(m,u){var y=u.filter(ll),g=y[0],re=y[1],Fe=y[2],et=y[3],Ct=(g.type===17?Za(g.number):ha.parse(m,g))/(Math.PI*2),xt=Qn(re)?re.number/100:0,nr=Qn(Fe)?Fe.number/100:0,mr=typeof et!="undefined"&&Qn(et)?La(et,1):1;if(xt===0)return Jo(nr*255,nr*255,nr*255,1);var Cr=nr<=.5?nr*(xt+1):nr+xt-nr*xt,o=nr*2-Cr,b=Vs(o,Cr,Ct+1/3),P=Vs(o,Cr,Ct),oe=Vs(o,Cr,Ct-1/3);return Jo(b*255,P*255,oe*255,mr)},Hc={hsl:tl,hsla:tl,rgb:Al,rgba:Al},Pl=function(m,u){return no.parse(m,Ya.create(u).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,u){return u.map(function(y){if(Ma(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,u){var y=no.parse(m,u[0]),g=u[1];return g&&Qn(g)?{color:y,stop:g}:{color:y,stop:null}},yA=function(m,u){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,et=0;et<m.length;et++){var Ct=m[et].stop;if(Ct!==null){var xt=La(Ct,u);xt>Fe?re.push(xt):re.push(Fe),Fe=xt}else re.push(null)}for(var nr=null,et=0;et<re.length;et++){var mr=re[et];if(mr===null)nr===null&&(nr=et);else if(nr!==null){for(var Cr=et-nr,o=re[nr-1],b=(mr-o)/(Cr+1),P=1;P<=Cr;P++)re[nr+P-1]=b*P;nr=null}}return m.map(function(oe,Oe){var Ke=oe.color;return{color:Ke,stop:Math.max(Math.min(1,re[Oe]/u),0)}})},Nl=function(m,u,y){var g=u/2,re=y/2,Fe=La(m[0],u)-g,et=re-La(m[1],y);return(Math.atan2(et,Fe)+Math.PI*2)%(Math.PI*2)},Gs=function(m,u,y){var g=typeof m=="number"?m:Nl(m,u,y),re=Math.abs(u*Math.sin(g))+Math.abs(y*Math.cos(g)),Fe=u/2,et=y/2,Ct=re/2,xt=Math.sin(g-Math.PI/2)*Ct,nr=Math.cos(g-Math.PI/2)*Ct;return[re,Fe-nr,Fe+nr,et-xt,et+xt]},rl=function(m,u){return Math.sqrt(m*m+u*u)},nl=function(m,u,y,g,re){var Fe=[[0,0],[0,u],[m,0],[m,u]];return Fe.reduce(function(et,Ct){var xt=Ct[0],nr=Ct[1],mr=rl(y-xt,g-nr);return(re?mr<et.optimumDistance:mr>et.optimumDistance)?{optimumCorner:Ct,optimumDistance:mr}:et},{optimumDistance:re?1/0:-1/0,optimumCorner:null}).optimumCorner},Pa=function(m,u,y,g,re){var Fe=0,et=0;switch(m.size){case 0:m.shape===0?Fe=et=Math.min(Math.abs(u),Math.abs(u-g),Math.abs(y),Math.abs(y-re)):m.shape===1&&(Fe=Math.min(Math.abs(u),Math.abs(u-g)),et=Math.min(Math.abs(y),Math.abs(y-re)));break;case 2:if(m.shape===0)Fe=et=Math.min(rl(u,y),rl(u,y-re),rl(u-g,y),rl(u-g,y-re));else if(m.shape===1){var Ct=Math.min(Math.abs(y),Math.abs(y-re))/Math.min(Math.abs(u),Math.abs(u-g)),xt=nl(g,re,u,y,!0),nr=xt[0],mr=xt[1];Fe=rl(nr-u,(mr-y)/Ct),et=Ct*Fe}break;case 1:m.shape===0?Fe=et=Math.max(Math.abs(u),Math.abs(u-g),Math.abs(y),Math.abs(y-re)):m.shape===1&&(Fe=Math.max(Math.abs(u),Math.abs(u-g)),et=Math.max(Math.abs(y),Math.abs(y-re)));break;case 3:if(m.shape===0)Fe=et=Math.max(rl(u,y),rl(u,y-re),rl(u-g,y),rl(u-g,y-re));else if(m.shape===1){var Ct=Math.max(Math.abs(y),Math.abs(y-re))/Math.max(Math.abs(u),Math.abs(u-g)),Cr=nl(g,re,u,y,!1),nr=Cr[0],mr=Cr[1];Fe=rl(nr-u,(mr-y)/Ct),et=Ct*Fe}break}return Array.isArray(m.size)&&(Fe=La(m.size[0],g),et=m.size.length===2?La(m.size[1],re):Fe),[Fe,et]},go=function(m,u){var y=Za(180),g=[];return Uo(u).forEach(function(re,Fe){if(Fe===0){var et=re[0];if(et.type===20&&et.value==="to"){y=mo(re);return}else if(aa(et)){y=ha.parse(m,et);return}}var Ct=fc(m,re);g.push(Ct)}),{angle:y,stops:g,type:1}},vo=function(m,u){var y=Za(180),g=[];return Uo(u).forEach(function(re,Fe){if(Fe===0){var et=re[0];if(et.type===20&&["top","left","right","bottom"].indexOf(et.value)!==-1){y=mo(re);return}else if(aa(et)){y=(ha.parse(m,et)+Za(270))%Za(360);return}}var Ct=fc(m,re);g.push(Ct)}),{angle:y,stops:g,type:1}},Yo=function(m,u){var y=Za(180),g=[],re=1,Fe=0,et=3,Ct=[];return Uo(u).forEach(function(xt,nr){var mr=xt[0];if(nr===0){if(Ma(mr)&&mr.value==="linear"){re=1;return}else if(Ma(mr)&&mr.value==="radial"){re=2;return}}if(mr.type===18){if(mr.name==="from"){var Cr=no.parse(m,mr.values[0]);g.push({stop:Ro,color:Cr})}else if(mr.name==="to"){var Cr=no.parse(m,mr.values[0]);g.push({stop:Ks,color:Cr})}else if(mr.name==="color-stop"){var o=mr.values.filter(ll);if(o.length===2){var Cr=no.parse(m,o[1]),b=o[0];Oa(b)&&g.push({stop:{type:16,number:b.number*100,flags:b.flags},color:Cr})}}}}),re===1?{angle:(y+Za(180))%Za(360),stops:g,type:re}:{size:et,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,u){var y=0,g=3,re=[],Fe=[];return Uo(u).forEach(function(et,Ct){var xt=!0;if(Ct===0){var nr=!1;xt=et.reduce(function(Cr,o){if(nr)if(Ma(o))switch(o.value){case"center":return Fe.push(Vl),Cr;case"top":case"left":return Fe.push(Ro),Cr;case"right":case"bottom":return Fe.push(Ks),Cr}else(Qn(o)||Mo(o))&&Fe.push(o);else if(Ma(o))switch(o.value){case bA:return y=0,!1;case wA:return y=1,!1;case"at":return nr=!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(Mo(o)||Qn(o))return Array.isArray(g)||(g=[]),g.push(o),!1;return Cr},xt)}if(xt){var mr=fc(m,et);re.push(mr)}}),{size:g,shape:y,stops:re,position:Fe,type:2}},KA=function(m,u){var y=0,g=3,re=[],Fe=[];return Uo(u).forEach(function(et,Ct){var xt=!0;if(Ct===0?xt=et.reduce(function(mr,Cr){if(Ma(Cr))switch(Cr.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(Qn(Cr)||Mo(Cr))return Fe.push(Cr),!1;return mr},xt):Ct===1&&(xt=et.reduce(function(mr,Cr){if(Ma(Cr))switch(Cr.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(Mo(Cr)||Qn(Cr))return Array.isArray(g)||(g=[]),g.push(Cr),!1;return mr},xt)),xt){var nr=fc(m,et);re.push(nr)}}),{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,u){if(u.type===22){var y={url:u.value,type:0};return m.cache.addImage(u.value),y}if(u.type===18){var g=Pu[u.name];if(typeof g=="undefined")throw new Error('Attempting to parse an unsupported image function "'+u.name+'"');return g(m,u.values)}throw new Error("Unsupported image type "+u.type)}};function Sd(m){return!(m.type===20&&m.value==="none")&&(m.type!==18||!!Pu[m.name])}var Pu={"linear-gradient":go,"-moz-linear-gradient":vo,"-ms-linear-gradient":vo,"-o-linear-gradient":vo,"-webkit-linear-gradient":vo,"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,u){if(u.length===0)return[];var y=u[0];return y.type===20&&y.value==="none"?[]:u.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,u){return u.map(function(y){if(Ma(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,u){return Uo(u).map(function(y){return y.filter(Qn)}).map(Dl)}},a={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(m,u){return Uo(u).map(function(y){return y.filter(Ma).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,u){return Uo(u).map(function(y){return y.filter(C)})}},C=function(m){return Ma(m)||Qn(m)},T=function(m){return{name:"border-"+m+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},V=T("top"),ae=T("right"),_e=T("bottom"),We=T("left"),Ve=function(m){return{name:"border-radius-"+m,initialValue:"0 0",prefix:!1,type:1,parse:function(u,y){return Dl(y.filter(Qn))}}},lt=Ve("top-left"),be=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(u,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"),ir=kt("bottom"),gr=kt("left"),Rr=function(m){return{name:"border-"+m+"-width",initialValue:"0",type:0,prefix:!1,parse:function(u,y){return lo(y)?y.number:0}}},yn=Rr("top"),Er=Rr("right"),Gt=Rr("bottom"),Dr=Rr("left"),Zr={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},bt={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(m,u){switch(u){case"rtl":return 1;case"ltr":default:return 0}}},Bt={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(m,u){return u.filter(Ma).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},j={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(m,u){switch(u){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Ee={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(m,u){return u.type===20&&u.value==="normal"?0:u.type===17||u.type===15?u.number:0}},De;(function(m){m.NORMAL="normal",m.STRICT="strict"})(De||(De={}));var Je={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(m,u){switch(u){case"strict":return De.STRICT;case"normal":default:return De.NORMAL}}},He={name:"line-height",initialValue:"normal",prefix:!1,type:4},dt=function(m,u){return Ma(m)&&m.value==="normal"?1.2*u:m.type===17?u*m.number:Qn(m)?La(m,u):u},pt={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(m,u){return u.type===20&&u.value==="none"?null:ou.parse(m,u)}},Et={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(m,u){switch(u){case"inside":return 0;case"outside":default:return 1}}},de={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(m,u){switch(u){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}},Xe=Ze("top"),mt=Ze("right"),yt=Ze("bottom"),It=Ze("left"),Rt={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(m,u){return u.filter(Ma).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,u){switch(u){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"),_r=pr("right"),Qr=pr("bottom"),hn=pr("left"),rr={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(m,u){switch(u){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,u){switch(u){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Un={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(m,u){return u.length===1&&kl(u[0],"none")?[]:Uo(u).map(function(y){for(var g={color:Ws.TRANSPARENT,offsetX:Ro,offsetY:Ro,blur:Ro},re=0,Fe=0;Fe<y.length;Fe++){var et=y[Fe];Mo(et)?(re===0?g.offsetX=et:re===1?g.offsetY=et:g.blur=et,re++):g.color=no.parse(m,et)}return g})}},jr={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(m,u){switch(u){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},yr={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(m,u){if(u.type===20&&u.value==="none")return null;if(u.type===18){var y=kr[u.name];if(typeof y=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+u.name+'"');return y(u.values)}return null}},Fr=function(m){var u=m.filter(function(y){return y.type===17}).map(function(y){return y.number});return u.length===6?u:null},br=function(m){var u=m.filter(function(xt){return xt.type===17}).map(function(xt){return xt.number}),y=u[0],g=u[1];u[2],u[3];var re=u[4],Fe=u[5];u[6],u[7],u[8],u[9],u[10],u[11];var et=u[12],Ct=u[13];return u[14],u[15],u.length===16?[y,g,re,Fe,et,Ct]:null},kr={matrix:Fr,matrix3d:br},fn={type:16,number:50,flags:hr},$n=[fn,fn],Kn={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(m,u){var y=u.filter(Qn);return y.length!==2?$n:[y[0],y[1]]}},Bn={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(m,u){switch(u){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},ai;(function(m){m.NORMAL="normal",m.BREAK_ALL="break-all",m.KEEP_ALL="keep-all"})(ai||(ai={}));for(var Ci={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(m,u){switch(u){case"break-all":return ai.BREAK_ALL;case"keep-all":return ai.KEEP_ALL;case"normal":default:return ai.NORMAL}}},fi={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(m,u){if(u.type===20)return{auto:!0,order:0};if(Oa(u))return{auto:!1,order:u.number};throw new Error("Invalid z-index number parsed")}},gi={name:"time",parse:function(m,u){if(u.type===15)switch(u.unit.toLowerCase()){case"s":return 1e3*u.number;case"ms":return u.number}throw new Error("Unsupported time type")}},Dn={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(m,u){return Oa(u)?u.number:1}},pa={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},qn={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(m,u){return u.filter(Ma).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})}},co={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(m,u){var y=[],g=[];return u.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+"'"})}},Ri={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},na={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(m,u){if(Oa(u))return u.number;if(Ma(u))switch(u.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,u){return u.filter(Ma).map(function(y){return y.value})}},ga={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(m,u){switch(u){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Vn=function(m,u){return(m&u)!==0},Wn={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(m,u){if(u.length===0)return[];var y=u[0];return y.type===20&&y.value==="none"?[]:u}},mi={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(m,u){if(u.length===0)return null;var y=u[0];if(y.type===20&&y.value==="none")return null;for(var g=[],re=u.filter(ds),Fe=0;Fe<re.length;Fe++){var et=re[Fe],Ct=re[Fe+1];if(et.type===20){var xt=Ct&&Oa(Ct)?Ct.number:1;g.push({counter:et.value,increment:xt})}}return g}},hi={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(m,u){if(u.length===0)return[];for(var y=[],g=u.filter(ds),re=0;re<g.length;re++){var Fe=g[re],et=g[re+1];if(Ma(Fe)&&Fe.value!=="none"){var Ct=et&&Oa(et)?et.number:0;y.push({counter:Fe.value,reset:Ct})}}return y}},Vi={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(m,u){return u.filter(lo).map(function(y){return gi.parse(m,y)})}},mn={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(m,u){if(u.length===0)return null;var y=u[0];if(y.type===20&&y.value==="none")return null;var g=[],re=u.filter(Io);if(re.length%2!==0)return null;for(var Fe=0;Fe<re.length;Fe+=2){var et=re[Fe].value,Ct=re[Fe+1].value;g.push({open:et,close:Ct})}return g}},Xn=function(m,u,y){if(!m)return"";var g=m[Math.min(u,m.length-1)];return g?y?g.open:g.close:""},oa={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(m,u){return u.length===1&&kl(u[0],"none")?[]:Uo(u).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 et=y[Fe];kl(et,"inset")?g.inset=!0:Mo(et)?(re===0?g.offsetX=et:re===1?g.offsetY=et:re===2?g.blur=et:g.spread=et,re++):g.color=no.parse(m,et)}return g})}},ji={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(m,u){var y=[0,1,2],g=[];return u.filter(Ma).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}},Lo={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},ko={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(m,u){return lo(u)?u.number:0}},Hi=function(){function m(u,y){var g,re;this.animationDuration=Cn(u,Vi,y.animationDuration),this.backgroundClip=Cn(u,tA,y.backgroundClip),this.backgroundColor=Cn(u,rA,y.backgroundColor),this.backgroundImage=Cn(u,su,y.backgroundImage),this.backgroundOrigin=Cn(u,sd,y.backgroundOrigin),this.backgroundPosition=Cn(u,c,y.backgroundPosition),this.backgroundRepeat=Cn(u,a,y.backgroundRepeat),this.backgroundSize=Cn(u,F,y.backgroundSize),this.borderTopColor=Cn(u,V,y.borderTopColor),this.borderRightColor=Cn(u,ae,y.borderRightColor),this.borderBottomColor=Cn(u,_e,y.borderBottomColor),this.borderLeftColor=Cn(u,We,y.borderLeftColor),this.borderTopLeftRadius=Cn(u,lt,y.borderTopLeftRadius),this.borderTopRightRadius=Cn(u,be,y.borderTopRightRadius),this.borderBottomRightRadius=Cn(u,Lt,y.borderBottomRightRadius),this.borderBottomLeftRadius=Cn(u,wt,y.borderBottomLeftRadius),this.borderTopStyle=Cn(u,ht,y.borderTopStyle),this.borderRightStyle=Cn(u,Pt,y.borderRightStyle),this.borderBottomStyle=Cn(u,ir,y.borderBottomStyle),this.borderLeftStyle=Cn(u,gr,y.borderLeftStyle),this.borderTopWidth=Cn(u,yn,y.borderTopWidth),this.borderRightWidth=Cn(u,Er,y.borderRightWidth),this.borderBottomWidth=Cn(u,Gt,y.borderBottomWidth),this.borderLeftWidth=Cn(u,Dr,y.borderLeftWidth),this.boxShadow=Cn(u,oa,y.boxShadow),this.color=Cn(u,Zr,y.color),this.direction=Cn(u,bt,y.direction),this.display=Cn(u,Bt,y.display),this.float=Cn(u,j,y.cssFloat),this.fontFamily=Cn(u,co,y.fontFamily),this.fontSize=Cn(u,Ri,y.fontSize),this.fontStyle=Cn(u,ga,y.fontStyle),this.fontVariant=Cn(u,Ta,y.fontVariant),this.fontWeight=Cn(u,na,y.fontWeight),this.letterSpacing=Cn(u,Ee,y.letterSpacing),this.lineBreak=Cn(u,Je,y.lineBreak),this.lineHeight=Cn(u,He,y.lineHeight),this.listStyleImage=Cn(u,pt,y.listStyleImage),this.listStylePosition=Cn(u,Et,y.listStylePosition),this.listStyleType=Cn(u,de,y.listStyleType),this.marginTop=Cn(u,Xe,y.marginTop),this.marginRight=Cn(u,mt,y.marginRight),this.marginBottom=Cn(u,yt,y.marginBottom),this.marginLeft=Cn(u,It,y.marginLeft),this.opacity=Cn(u,Dn,y.opacity);var Fe=Cn(u,Rt,y.overflow);this.overflowX=Fe[0],this.overflowY=Fe[Fe.length>1?1:0],this.overflowWrap=Cn(u,Tt,y.overflowWrap),this.paddingTop=Cn(u,sr,y.paddingTop),this.paddingRight=Cn(u,_r,y.paddingRight),this.paddingBottom=Cn(u,Qr,y.paddingBottom),this.paddingLeft=Cn(u,hn,y.paddingLeft),this.paintOrder=Cn(u,ji,y.paintOrder),this.position=Cn(u,St,y.position),this.textAlign=Cn(u,rr,y.textAlign),this.textDecorationColor=Cn(u,pa,(g=y.textDecorationColor)!==null&&g!==void 0?g:y.color),this.textDecorationLine=Cn(u,qn,(re=y.textDecorationLine)!==null&&re!==void 0?re:y.textDecoration),this.textShadow=Cn(u,Un,y.textShadow),this.textTransform=Cn(u,jr,y.textTransform),this.transform=Cn(u,yr,y.transform),this.transformOrigin=Cn(u,Kn,y.transformOrigin),this.visibility=Cn(u,Bn,y.visibility),this.webkitTextStrokeColor=Cn(u,Lo,y.webkitTextStrokeColor),this.webkitTextStrokeWidth=Cn(u,ko,y.webkitTextStrokeWidth),this.wordBreak=Cn(u,Ci,y.wordBreak),this.zIndex=Cn(u,fi,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}(),eo=function(){function m(u,y){this.content=Cn(u,Wn,y.content),this.quotes=Cn(u,mn,y.quotes)}return m}(),as=function(){function m(u,y){this.counterIncrement=Cn(u,mi,y.counterIncrement),this.counterReset=Cn(u,hi,y.counterReset)}return m}(),Cn=function(m,u,y){var g=new Da,re=y!==null&&typeof y!="undefined"?y.toString():u.initialValue;g.write(re);var Fe=new Ya(g.read());switch(u.type){case 2:var et=Fe.parseComponentValue();return u.parse(m,Ma(et)?et.value:u.initialValue);case 0:return u.parse(m,Fe.parseComponentValue());case 1:return u.parse(m,Fe.parseComponentValues());case 4:return Fe.parseComponentValue();case 3:switch(u.format){case"angle":return ha.parse(m,Fe.parseComponentValue());case"color":return no.parse(m,Fe.parseComponentValue());case"image":return ou.parse(m,Fe.parseComponentValue());case"length":var Ct=Fe.parseComponentValue();return Mo(Ct)?Ct:Ro;case"length-percentage":var xt=Fe.parseComponentValue();return Qn(xt)?xt:Ro;case"time":return gi.parse(m,Fe.parseComponentValue())}break}},Ao="data-html2canvas-debug",Ho=function(m){var u=m.getAttribute(Ao);switch(u){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},qi=function(m,u){var y=Ho(m);return y===1||u===y},on=function(){function m(u,y){if(this.context=u,this.textNodes=[],this.elements=[],this.flags=0,qi(y,3))debugger;this.styles=new Hi(u,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),qi(y,4)&&(this.flags|=16)}return m}(),va="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",uo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Va=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Mi=0;Mi<uo.length;Mi++)Va[uo.charCodeAt(Mi)]=Mi;for(var Do=function(m){var u=m.length*.75,y=m.length,g,re=0,Fe,et,Ct,xt;m[m.length-1]==="="&&(u--,m[m.length-2]==="="&&u--);var nr=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(u):new Array(u),mr=Array.isArray(nr)?nr:new Uint8Array(nr);for(g=0;g<y;g+=4)Fe=Va[m.charCodeAt(g)],et=Va[m.charCodeAt(g+1)],Ct=Va[m.charCodeAt(g+2)],xt=Va[m.charCodeAt(g+3)],mr[re++]=Fe<<2|et>>4,mr[re++]=(et&15)<<4|Ct>>2,mr[re++]=(Ct&3)<<6|xt&63;return nr},Po=function(m){for(var u=m.length,y=[],g=0;g<u;g+=2)y.push(m[g+1]<<8|m[g]);return y},os=function(m){for(var u=m.length,y=[],g=0;g<u;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,yo=qo+jo,Hs=yo,oc=32,Sl=Hs+oc,Ol=65536>>ss,nA=1<<Bl,HA=nA-1,ma=function(m,u,y){return m.slice?m.slice(u,y):new Uint16Array(Array.prototype.slice.call(m,u,y))},io=function(m,u,y){return m.slice?m.slice(u,y):new Uint32Array(Array.prototype.slice.call(m,u,y))},Ka=function(m,u){var y=Do(m),g=Array.isArray(y)?os(y):new Uint32Array(y),re=Array.isArray(y)?Po(y):new Uint16Array(y),Fe=24,et=ma(re,Fe/2,g[4]/2),Ct=g[5]===2?ma(re,(Fe+g[4])/2):io(g,Math.ceil((Fe+g[4])/4));return new bo(g[0],g[1],g[2],g[3],et,Ct)},bo=function(){function m(u,y,g,re,Fe,et){this.initialValue=u,this.errorValue=y,this.highStart=g,this.highValueIndex=re,this.index=Fe,this.data=et}return m.prototype.get=function(u){var y;if(u>=0){if(u<55296||u>56319&&u<=65535)return y=this.index[u>>fs],y=(y<<hs)+(u&ps),this.data[y];if(u<=65535)return y=this.index[qo+(u-55296>>fs)],y=(y<<hs)+(u&ps),this.data[y];if(u<this.highStart)return y=Sl-Ol+(u>>ss),y=this.index[y],y+=u>>fs&HA,y=this.index[y],y=(y<<hs)+(u&ps),this.data[y];if(u<=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,Bo=7,Tl=8,Xl=9,js=10,xA=11,Jl=12,iA=13,jA=14,$c=15,CA=function(m){for(var u=[],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?u.push(((re&1023)<<10)+(Fe&1023)+65536):(u.push(re),y--)}else u.push(re)}return u},Ul=function(){for(var m=[],u=0;u<arguments.length;u++)m[u]=arguments[u];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 et=m[re];et<=65535?g.push(et):(et-=65536,g.push((et>>10)+55296,et%1024+56320)),(re+1===y||g.length>16384)&&(Fe+=String.fromCharCode.apply(String,g),g.length=0)}return Fe},sc=Ka(va),dn="\xD7",Zc="\xF7",Os=function(m){return sc.get(m)},BA=function(m,u,y){var g=y-2,re=u[g],Fe=u[y-1],et=u[y];if(Fe===El&&et===zc)return dn;if(Fe===El||Fe===zc||Fe===Ns||et===El||et===zc||et===Ns)return Zc;if(Fe===Tl&&[Tl,Xl,xA,Jl].indexOf(et)!==-1||(Fe===xA||Fe===Xl)&&(et===Xl||et===js)||(Fe===Jl||Fe===js)&&et===js||et===iA||et===wa||et===Bo||Fe===Gl)return dn;if(Fe===iA&&et===jA){for(;re===wa;)re=u[--g];if(re===jA)return dn}if(Fe===$c&&et===$c){for(var Ct=0;re===$c;)Ct++,re=u[--g];if(Ct%2===0)return dn}return Zc},Vc=function(m){var u=CA(m),y=u.length,g=0,re=0,Fe=u.map(Os);return{next:function(){if(g>=y)return{done:!0,value:null};for(var et=dn;g<y&&(et=BA(u,Fe,++g))===dn;);if(et!==dn||g===y){var Ct=Ul.apply(null,u.slice(re,g));return re=g,{value:Ct,done:!1}}return{done:!0,value:null}}}},la=function(m){for(var u=Vc(m),y=[],g;!(g=u.next()).done;)g.value&&y.push(g.value.slice());return y},zA=function(m){var u=123;if(m.createRange){var y=m.createRange();if(y.getBoundingClientRect){var g=m.createElement("boundtest");g.style.height=u+"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===u)return!0}}return!1},$A=function(m){var u=m.createElement("boundtest");u.style.width="50px",u.style.display="block",u.style.fontSize="12px",u.style.letterSpacing="0px",u.style.wordSpacing="0px",m.body.appendChild(u);var y=m.createRange();u.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var g=u.firstChild,re=f(g.data).map(function(xt){return E(xt)}),Fe=0,et={},Ct=re.every(function(xt,nr){y.setStart(g,Fe),y.setEnd(g,Fe+xt.length);var mr=y.getBoundingClientRect();Fe+=xt.length;var Cr=mr.x>et.x||mr.y>et.y;return et=mr,nr===0?!0:Cr});return m.body.removeChild(u),Ct},So=function(){return typeof new Image().crossOrigin!="undefined"},ZA=function(){return typeof new XMLHttpRequest().responseType=="string"},aA=function(m){var u=new Image,y=m.createElement("canvas"),g=y.getContext("2d");if(!g)return!1;u.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{g.drawImage(u,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 u=m.createElement("canvas"),y=100;u.width=y,u.height=y;var g=u.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=u.toDataURL();re.src=Fe;var et=Yl(y,y,0,0,re);return g.fillStyle="red",g.fillRect(0,0,y,y),cc(et).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 nr=m.createElement("div");return nr.style.backgroundImage="url("+Fe+")",nr.style.height=y+"px",lc(xt)?cc(Yl(y,y,0,0,nr)):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,u,y,g,re){var Fe="http://www.w3.org/2000/svg",et=document.createElementNS(Fe,"svg"),Ct=document.createElementNS(Fe,"foreignObject");return et.setAttributeNS(null,"width",m.toString()),et.setAttributeNS(null,"height",u.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"),et.appendChild(Ct),Ct.appendChild(re),et},cc=function(m){return new Promise(function(u,y){var g=new Image;g.onload=function(){return u(g)},g.onerror=y,g.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(m))})},xo={get SUPPORT_RANGE_BOUNDS(){var m=zA(document);return Object.defineProperty(xo,"SUPPORT_RANGE_BOUNDS",{value:m}),m},get SUPPORT_WORD_BREAKING(){var m=xo.SUPPORT_RANGE_BOUNDS&&$A(document);return Object.defineProperty(xo,"SUPPORT_WORD_BREAKING",{value:m}),m},get SUPPORT_SVG_DRAWING(){var m=aA(document);return Object.defineProperty(xo,"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(xo,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:m}),m},get SUPPORT_CORS_IMAGES(){var m=So();return Object.defineProperty(xo,"SUPPORT_CORS_IMAGES",{value:m}),m},get SUPPORT_RESPONSE_TYPE(){var m=ZA();return Object.defineProperty(xo,"SUPPORT_RESPONSE_TYPE",{value:m}),m},get SUPPORT_CORS_XHR(){var m="withCredentials"in new XMLHttpRequest;return Object.defineProperty(xo,"SUPPORT_CORS_XHR",{value:m}),m},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var m=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(xo,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:m}),m}},Xs=function(){function m(u,y){this.text=u,this.bounds=y}return m}(),ls=function(m,u,y,g){var re=_l(u,y),Fe=[],et=0;return re.forEach(function(Ct){if(y.textDecorationLine.length||Ct.trim().length>0)if(xo.SUPPORT_RANGE_BOUNDS){var xt=_a(g,et,Ct.length).getClientRects();if(xt.length>1){var nr=ya(Ct),mr=0;nr.forEach(function(o){Fe.push(new Xs(o,ie.fromDOMRectList(m,_a(g,mr+et,o.length).getClientRects()))),mr+=o.length})}else Fe.push(new Xs(Ct,ie.fromDOMRectList(m,xt)))}else{var Cr=g.splitText(Ct.length);Fe.push(new Xs(Ct,ul(m,g))),g=Cr}else xo.SUPPORT_RANGE_BOUNDS||(g=g.splitText(Ct.length));et+=Ct.length}),Fe},ul=function(m,u){var y=u.ownerDocument;if(y){var g=y.createElement("html2canvaswrapper");g.appendChild(u.cloneNode(!0));var re=u.parentNode;if(re){re.replaceChild(g,u);var Fe=G(m,g);return g.firstChild&&re.replaceChild(g.firstChild,g),Fe}}return ie.EMPTY},_a=function(m,u,y){var g=m.ownerDocument;if(!g)throw new Error("Node has no owner document");var re=g.createRange();return re.setStart(m,u),re.setEnd(m,u+y),re},ya=function(m){if(xo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var u=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(u.segment(m)).map(function(y){return y.segment})}return la(m)},Js=function(m,u){if(xo.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,u)},_l=function(m,u){return u.letterSpacing!==0?ya(m):Js(m,u)},Rl=[32,160,4961,65792,65793,4153,4241],VA=function(m,u){for(var y=Zt(m,{lineBreak:u.lineBreak,wordBreak:u.overflowWrap==="break-word"?"break-word":u.wordBreak}),g=[],re,Fe=function(){if(re.value){var et=re.value.slice(),Ct=f(et),xt="";Ct.forEach(function(nr){Rl.indexOf(nr)===-1?xt+=E(nr):(xt.length&&g.push(xt),g.push(E(nr)),xt="")}),xt.length&&g.push(xt)}};!(re=y.next()).done;)Fe();return g},cs=function(){function m(u,y,g){this.text=dl(y.data,g.textTransform),this.textBounds=ls(u,this.text,g,y)}return m}(),dl=function(m,u){switch(u){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,u,y){return m.length>0?u+y.toUpperCase():m},lu=function(m){x(u,m);function u(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 u}(on),ba=function(m){x(u,m);function u(y,g){var re=m.call(this,y,g)||this;return re.canvas=g,re.intrinsicWidth=g.width,re.intrinsicHeight=g.height,re}return u}(on),fl=function(m){x(u,m);function u(y,g){var re=m.call(this,y,g)||this,Fe=new XMLSerializer,et=G(y,g);return g.setAttribute("width",et.width+"px"),g.setAttribute("height",et.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 u}(on),mc=function(m){x(u,m);function u(y,g){var re=m.call(this,y,g)||this;return re.value=g.value,re}return u}(on),gc=function(m){x(u,m);function u(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 u}(on),$r=[{type:15,flags:0,unit:"px",number:3}],cu=[{type:16,flags:0,number:50}],Ed=function(m){return m.width>m.height?new ie(m.left+(m.width-m.height)/2,m.top,m.height,m.height):m.width<m.height?new ie(m.left,m.top+(m.height-m.width)/2,m.width,m.width):m},WA=function(m){var u=m.type===Au?new Array(m.value.length+1).join("\u2022"):m.value;return u.length===0?m.placeholder||"":u},SA="checkbox",Lc="radio",Au="password",uu=707406591,ws=function(m){x(u,m);function u(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=$r;break;case Lc:re.styles.borderTopRightRadius=re.styles.borderTopLeftRadius=re.styles.borderBottomRightRadius=re.styles.borderBottomLeftRadius=cu;break}return re}return u}(on),vc=function(m){x(u,m);function u(y,g){var re=m.call(this,y,g)||this,Fe=g.options[g.selectedIndex||0];return re.value=Fe&&Fe.text||"",re}return u}(on),GA=function(m){x(u,m);function u(y,g){var re=m.call(this,y,g)||this;return re.value=g.value,re}return u}(on),Gc=function(m){x(u,m);function u(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,et=g.contentWindow.document.body?Pl(y,getComputedStyle(g.contentWindow.document.body).backgroundColor):Ws.TRANSPARENT;re.backgroundColor=Ko(Fe)?Ko(et)?re.styles.backgroundColor:et:Fe}}catch(Ct){}return re}return u}(on),XA=["OL","UL","MENU"],EA=function(m,u,y,g){for(var re=u.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 et=kc(m,re);et.styles.isVisible()&&(N(re,et,g)?et.flags|=4:$e(et.styles)&&(et.flags|=2),XA.indexOf(re.tagName)!==-1&&(et.flags|=8),y.elements.push(et),re.slot,re.shadowRoot?EA(m,re.shadowRoot,et,g):!pl(re)&&!xa(re)&&!tc(re)&&EA(m,re,et,g))}},kc=function(m,u){return zo(u)?new lu(m,u):vs(u)?new ba(m,u):xa(u)?new fl(m,u):kn(u)?new mc(m,u):Pi(u)?new gc(m,u):ea(u)?new ws(m,u):tc(u)?new vc(m,u):pl(u)?new GA(m,u):hl(u)?new Gc(m,u):new on(m,u)},JA=function(m,u){var y=kc(m,u);return y.flags|=4,EA(m,u,y,y),y},N=function(m,u,y){return u.styles.isPositionedWithZIndex()||u.styles.opacity<1||u.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"},kn=function(m){return m.tagName==="LI"},Pi=function(m){return m.tagName==="OL"},ea=function(m){return m.tagName==="INPUT"},ka=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(u){var y=this.counters[u];return y&&y.length?y[y.length-1]:1},m.prototype.getCounterValues=function(u){var y=this.counters[u];return y||[]},m.prototype.pop=function(u){var y=this;u.forEach(function(g){return y.counters[g].pop()})},m.prototype.parse=function(u){var y=this,g=u.counterIncrement,re=u.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 et=[];return Fe&&re.forEach(function(Ct){var xt=y.counters[Ct.counter];et.push(Ct.counter),xt||(xt=y.counters[Ct.counter]=[]),xt.push(Ct.reset)}),et},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,u,y,g,re,Fe){return m<u||m>y?Hl(m,re,Fe.length>0):g.integers.reduce(function(et,Ct,xt){for(;m>=Ct;)m-=Ct,et+=g.values[xt];return et},"")+Fe},qA=function(m,u,y,g){var re="";do y||m--,re=g(m)+re,m/=u;while(m*u>=u);return re},ns=function(m,u,y,g,re){var Fe=y-u+1;return(m<0?"-":"")+(qA(Math.abs(m),Fe,g,function(et){return E(Math.floor(et%Fe)+u)})+re)},yc=function(m,u,y){y===void 0&&(y=". ");var g=u.length;return qA(Math.abs(m),g,!1,function(re){return u[Math.floor(re%g)]})+y},Xc=1,Ts=2,ml=4,Ql=8,gl=function(m,u,y,g,re,Fe){if(m<-9999||m>9999)return Hl(m,4,re.length>0);var et=Math.abs(m),Ct=re;if(et===0)return u[0]+Ct;for(var xt=0;et>0&&xt<=4;xt++){var nr=et%10;nr===0&&Vn(Fe,Xc)&&Ct!==""?Ct=u[nr]+Ct:nr>1||nr===1&&xt===0||nr===1&&xt===1&&Vn(Fe,Ts)||nr===1&&xt===1&&Vn(Fe,ml)&&m>100||nr===1&&xt>1&&Vn(Fe,Ql)?Ct=u[nr]+(xt>0?y[xt-1]:"")+Ct:nr===1&&xt>0&&(Ct=y[xt-1]+Ct),et=Math.floor(et/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,u,y){var g=y?". ":"",re=y?"\u3001":"",Fe=y?", ":"",et=y?" ":"";switch(u){case 0:return"\u2022"+et;case 1:return"\u25E6"+et;case 2:return"\u25FE"+et;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(u,y,g){if(this.context=u,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(u,y){var g=this,re=cA(u,y);if(!re.contentWindow)return Promise.reject("Unable to find iframe window");var Fe=u.defaultView.pageXOffset,et=u.defaultView.pageYOffset,Ct=re.contentWindow,xt=Ct.document,nr=pu(re).then(function(){return ue(g,void 0,void 0,function(){var mr,Cr;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,Cr=this.clonedReferenceElement,typeof Cr=="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,Cr)}).then(function(){return re})]:[2,re]}})})});return xt.open(),xt.write(Ou(document.doctype)+"<html></html>"),jl(this.referenceElement.ownerDocument,Fe,et),xt.replaceChild(xt.adoptNode(this.documentElement),xt.documentElement),xt.close(),nr},m.prototype.createElementClone=function(u){if(qi(u,2))debugger;if(vs(u))return this.createCanvasClone(u);if(xs(u))return this.createVideoClone(u);if(Cs(u))return this.createStyleClone(u);var y=u.cloneNode(!1);return zo(y)&&(zo(u)&&u.currentSrc&&u.currentSrc!==u.src&&(y.src=u.currentSrc,y.srcset=""),y.loading==="lazy"&&(y.loading="eager")),du(y)?this.createCustomElementClone(y):y},m.prototype.createCustomElementClone=function(u){var y=document.createElement("html2canvascustomelement");return Bs(u.style,y),y},m.prototype.createStyleClone=function(u){try{var y=u.sheet;if(y&&y.cssRules){var g=[].slice.call(y.cssRules,0).reduce(function(Fe,et){return et&&typeof et.cssText=="string"?Fe+et.cssText:Fe},""),re=u.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 u.cloneNode(!1)},m.prototype.createCanvasClone=function(u){var y;if(this.options.inlineImages&&u.ownerDocument){var g=u.ownerDocument.createElement("img");try{return g.src=u.toDataURL(),g}catch(nr){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",u)}}var re=u.cloneNode(!1);try{re.width=u.width,re.height=u.height;var Fe=u.getContext("2d"),et=re.getContext("2d");if(et)if(!this.options.allowTaint&&Fe)et.putImageData(Fe.getImageData(0,0,u.width,u.height),0,0);else{var Ct=(y=u.getContext("webgl2"))!==null&&y!==void 0?y:u.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",u)}et.drawImage(u,0,0)}return re}catch(nr){this.context.logger.info("Unable to clone canvas as it is tainted",u)}return re},m.prototype.createVideoClone=function(u){var y=u.ownerDocument.createElement("canvas");y.width=u.offsetWidth,y.height=u.offsetHeight;var g=y.getContext("2d");try{return g&&(g.drawImage(u,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",u)}var re=u.ownerDocument.createElement("canvas");return re.width=u.offsetWidth,re.height=u.offsetHeight,re},m.prototype.appendChildNode=function(u,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))&&u.appendChild(this.cloneNode(y,g))},m.prototype.cloneChildNodes=function(u,y,g){for(var re=this,Fe=u.shadowRoot?u.shadowRoot.firstChild:u.firstChild;Fe;Fe=Fe.nextSibling)if(Jt(Fe)&&oA(Fe)&&typeof Fe.assignedNodes=="function"){var et=Fe.assignedNodes();et.length&&et.forEach(function(Ct){return re.appendChildNode(y,Ct,g)})}else this.appendChildNode(y,Fe,g)},m.prototype.cloneNode=function(u,y){if(Dt(u))return document.createTextNode(u.data);if(!u.ownerDocument)return u.cloneNode(!1);var g=u.ownerDocument.defaultView;if(g&&Jt(u)&&(vr(u)||Xr(u))){var re=this.createElementClone(u);re.style.transitionProperty="none";var Fe=g.getComputedStyle(u),et=g.getComputedStyle(u,":before"),Ct=g.getComputedStyle(u,":after");this.referenceElement===u&&vr(re)&&(this.clonedReferenceElement=re),zi(re)&&rc(re);var xt=this.counters.parse(new as(this.context,Fe)),nr=this.resolvePseudoContent(u,re,et,Ys.BEFORE);du(u)&&(y=!0),xs(u)||this.cloneChildNodes(u,re,y),nr&&re.insertBefore(nr,re.firstChild);var mr=this.resolvePseudoContent(u,re,Ct,Ys.AFTER);return mr&&re.appendChild(mr),this.counters.pop(xt),(Fe&&(this.options.copyStyles||Xr(u))&&!hl(u)||y)&&Bs(Fe,re),(u.scrollTop!==0||u.scrollLeft!==0)&&this.scrolledElements.push([re,u.scrollLeft,u.scrollTop]),(pl(u)||tc(u))&&(pl(re)||tc(re))&&(re.value=u.value),re}return u.cloneNode(!1)},m.prototype.resolvePseudoContent=function(u,y,g,re){var Fe=this;if(g){var et=g.content,Ct=y.ownerDocument;if(!(!Ct||!et||et==="none"||et==="-moz-alt-content"||g.display==="none")){this.counters.parse(new as(this.context,g));var xt=new eo(this.context,g),nr=Ct.createElement("html2canvaspseudoelement");Bs(g,nr),xt.content.forEach(function(Cr){if(Cr.type===0)nr.appendChild(Ct.createTextNode(Cr.value));else if(Cr.type===22){var o=Ct.createElement("img");o.src=Cr.value,o.style.opacity="1",nr.appendChild(o)}else if(Cr.type===18){if(Cr.name==="attr"){var b=Cr.values.filter(Ma);b.length&&nr.appendChild(Ct.createTextNode(u.getAttribute(b[0].value)||""))}else if(Cr.name==="counter"){var P=Cr.values.filter(ll),oe=P[0],Oe=P[1];if(oe&&Ma(oe)){var Ke=Fe.counters.getCounterValue(oe.value),ze=Oe&&Ma(Oe)?de.parse(Fe.context,Oe.value):3;nr.appendChild(Ct.createTextNode(Hl(Ke,ze,!1)))}}else if(Cr.name==="counters"){var qe=Cr.values.filter(ll),oe=qe[0],it=qe[1],Oe=qe[2];if(oe&&Ma(oe)){var gt=Fe.counters.getCounterValues(oe.value),Mt=Oe&&Ma(Oe)?de.parse(Fe.context,Oe.value):3,dr=it&&it.type===0?it.value:"",lr=gt.map(function(Or){return Hl(Or,Mt,!1)}).join(dr);nr.appendChild(Ct.createTextNode(lr))}}}else if(Cr.type===20)switch(Cr.value){case"open-quote":nr.appendChild(Ct.createTextNode(Xn(xt.quotes,Fe.quoteDepth++,!0)));break;case"close-quote":nr.appendChild(Ct.createTextNode(Xn(xt.quotes,--Fe.quoteDepth,!1)));break;default:nr.appendChild(Ct.createTextNode(Cr.value))}}),nr.className=eu+" "+xc;var mr=re===Ys.BEFORE?" "+eu:" "+xc;return Xr(y)?y.className.baseValue+=mr:y.className+=mr,nr}}},m.destroy=function(u){return u.parentNode?(u.parentNode.removeChild(u),!0):!1},m}(),Ys;(function(m){m[m.BEFORE=0]="BEFORE",m[m.AFTER=1]="AFTER"})(Ys||(Ys={}));var cA=function(m,u){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=u.width.toString(),y.height=u.height.toString(),y.scrolling="no",y.setAttribute(Pc,"true"),m.body.appendChild(y),y},Jc=function(m){return new Promise(function(u){if(m.complete){u();return}if(!m.src){u();return}m.onload=u,m.onerror=u})},Yc=function(m){return Promise.all([].slice.call(m.images,0).map(Jc))},pu=function(m){return new Promise(function(u,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),u(m))},50)}})},qc=["all","d","content"],Bs=function(m,u){for(var y=m.length-1;y>=0;y--){var g=m.item(y);qc.indexOf(g)===-1&&u.style.setProperty(g,m.getPropertyValue(g))}return u},Ou=function(m){var u="";return m&&(u+="<!DOCTYPE ",m.name&&(u+=m.name),m.internalSubset&&(u+=m.internalSubset),m.publicId&&(u+='"'+m.publicId+'"'),m.systemId&&(u+='"'+m.systemId+'"'),u+=">"),u},jl=function(m,u,y){m&&m.defaultView&&(u!==m.defaultView.pageXOffset||y!==m.defaultView.pageYOffset)&&m.defaultView.scrollTo(u,y)},wc=function(m){var u=m[0],y=m[1],g=m[2];u.scrollLeft=y,u.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,u){var y=m.ownerDocument;if(y){var g=y.createElement("style");g.textContent=u,m.appendChild(g)}},_A=function(){function m(){}return m.getOrigin=function(u){var y=m._link;return y?(y.href=u,y.href=y.href,y.protocol+y.hostname+y.port):"about:blank"},m.isSameOrigin=function(u){return m.getOrigin(u)===m._origin},m.setContext=function(u){m._link=u.document.createElement("a"),m._origin=m.getOrigin(u.location.href)},m._origin="about:blank",m}(),FA=function(){function m(u,y){this.context=u,this._options=y,this._cache={}}return m.prototype.addImage=function(u){var y=Promise.resolve();return this.has(u)||(Ss(u)||Ac(u))&&(this._cache[u]=this.loadImage(u)).catch(function(){}),y},m.prototype.match=function(u){return this._cache[u]},m.prototype.loadImage=function(u){return ue(this,void 0,void 0,function(){var y,g,re,Fe,et=this;return Q(this,function(Ct){switch(Ct.label){case 0:return y=_A.isSameOrigin(u),g=!$o(u)&&this._options.useCORS===!0&&xo.SUPPORT_CORS_IMAGES&&!y,re=!$o(u)&&!y&&!Ss(u)&&typeof this._options.proxy=="string"&&xo.SUPPORT_CORS_XHR&&!g,!y&&this._options.allowTaint===!1&&!$o(u)&&!Ss(u)&&!re&&!g?[2]:(Fe=u,re?[4,this.proxy(Fe)]:[3,2]);case 1:Fe=Ct.sent(),Ct.label=2;case 2:return this.context.logger.debug("Added image "+u.substring(0,256)),[4,new Promise(function(xt,nr){var mr=new Image;mr.onload=function(){return xt(mr)},mr.onerror=nr,(is(Fe)||g)&&(mr.crossOrigin="anonymous"),mr.src=Fe,mr.complete===!0&&setTimeout(function(){return xt(mr)},500),et._options.imageTimeout>0&&setTimeout(function(){return nr("Timed out ("+et._options.imageTimeout+"ms) loading image")},et._options.imageTimeout)})];case 3:return[2,Ct.sent()]}})})},m.prototype.has=function(u){return typeof this._cache[u]!="undefined"},m.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},m.prototype.proxy=function(u){var y=this,g=this._options.proxy;if(!g)throw new Error("No proxy defined");var re=u.substring(0,256);return new Promise(function(Fe,et){var Ct=xo.SUPPORT_RESPONSE_TYPE?"blob":"text",xt=new XMLHttpRequest;xt.onload=function(){if(xt.status===200)if(Ct==="text")Fe(xt.response);else{var Cr=new FileReader;Cr.addEventListener("load",function(){return Fe(Cr.result)},!1),Cr.addEventListener("error",function(o){return et(o)},!1),Cr.readAsDataURL(xt.response)}else et("Failed to proxy resource "+re+" with status code "+xt.status)},xt.onerror=et;var nr=g.indexOf("?")>-1?"&":"?";if(xt.open("GET",""+g+nr+"url="+encodeURIComponent(u)+"&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 et("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 xo.SUPPORT_SVG_DRAWING||!sa(m)},$o=function(m){return Bc.test(m)},is=function(m){return Tu.test(m)},Ss=function(m){return m.substr(0,4)==="blob"},sa=function(m){return m.substr(-3).toLowerCase()==="svg"||AA.test(m)},ci=function(){function m(u,y){this.type=0,this.x=u,this.y=y}return m.prototype.add=function(u,y){return new m(this.x+u,this.y+y)},m}(),uc=function(m,u,y){return new ci(m.x+(u.x-m.x)*y,m.y+(u.y-m.y)*y)},uA=function(){function m(u,y,g,re){this.type=1,this.start=u,this.startControl=y,this.endControl=g,this.end=re}return m.prototype.subdivide=function(u,y){var g=uc(this.start,this.startControl,u),re=uc(this.startControl,this.endControl,u),Fe=uc(this.endControl,this.end,u),et=uc(g,re,u),Ct=uc(re,Fe,u),xt=uc(et,Ct,u);return y?new m(this.start,g,et,xt):new m(xt,Ct,Fe,this.end)},m.prototype.add=function(u,y){return new m(this.start.add(u,y),this.startControl.add(u,y),this.endControl.add(u,y),this.end.add(u,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(u){var y=u.styles,g=u.bounds,re=bs(y.borderTopLeftRadius,g.width,g.height),Fe=re[0],et=re[1],Ct=bs(y.borderTopRightRadius,g.width,g.height),xt=Ct[0],nr=Ct[1],mr=bs(y.borderBottomRightRadius,g.width,g.height),Cr=mr[0],o=mr[1],b=bs(y.borderBottomLeftRadius,g.width,g.height),P=b[0],oe=b[1],Oe=[];Oe.push((Fe+xt)/g.width),Oe.push((P+Cr)/g.width),Oe.push((et+oe)/g.height),Oe.push((nr+o)/g.height);var Ke=Math.max.apply(Math,Oe);Ke>1&&(Fe/=Ke,et/=Ke,xt/=Ke,nr/=Ke,Cr/=Ke,o/=Ke,P/=Ke,oe/=Ke);var ze=g.width-xt,qe=g.height-o,it=g.width-Cr,gt=g.height-oe,Mt=y.borderTopWidth,dr=y.borderRightWidth,lr=y.borderBottomWidth,Vt=y.borderLeftWidth,Gr=La(y.paddingTop,u.bounds.width),Or=La(y.paddingRight,u.bounds.width),Yt=La(y.paddingBottom,u.bounds.width),$t=La(y.paddingLeft,u.bounds.width);this.topLeftBorderDoubleOuterBox=Fe>0||et>0?ao(g.left+Vt/3,g.top+Mt/3,Fe-Vt/3,et-Mt/3,Wa.TOP_LEFT):new ci(g.left+Vt/3,g.top+Mt/3),this.topRightBorderDoubleOuterBox=Fe>0||et>0?ao(g.left+ze,g.top+Mt/3,xt-dr/3,nr-Mt/3,Wa.TOP_RIGHT):new ci(g.left+g.width-dr/3,g.top+Mt/3),this.bottomRightBorderDoubleOuterBox=Cr>0||o>0?ao(g.left+it,g.top+qe,Cr-dr/3,o-lr/3,Wa.BOTTOM_RIGHT):new ci(g.left+g.width-dr/3,g.top+g.height-lr/3),this.bottomLeftBorderDoubleOuterBox=P>0||oe>0?ao(g.left+Vt/3,g.top+gt,P-Vt/3,oe-lr/3,Wa.BOTTOM_LEFT):new ci(g.left+Vt/3,g.top+g.height-lr/3),this.topLeftBorderDoubleInnerBox=Fe>0||et>0?ao(g.left+Vt*2/3,g.top+Mt*2/3,Fe-Vt*2/3,et-Mt*2/3,Wa.TOP_LEFT):new ci(g.left+Vt*2/3,g.top+Mt*2/3),this.topRightBorderDoubleInnerBox=Fe>0||et>0?ao(g.left+ze,g.top+Mt*2/3,xt-dr*2/3,nr-Mt*2/3,Wa.TOP_RIGHT):new ci(g.left+g.width-dr*2/3,g.top+Mt*2/3),this.bottomRightBorderDoubleInnerBox=Cr>0||o>0?ao(g.left+it,g.top+qe,Cr-dr*2/3,o-lr*2/3,Wa.BOTTOM_RIGHT):new ci(g.left+g.width-dr*2/3,g.top+g.height-lr*2/3),this.bottomLeftBorderDoubleInnerBox=P>0||oe>0?ao(g.left+Vt*2/3,g.top+gt,P-Vt*2/3,oe-lr*2/3,Wa.BOTTOM_LEFT):new ci(g.left+Vt*2/3,g.top+g.height-lr*2/3),this.topLeftBorderStroke=Fe>0||et>0?ao(g.left+Vt/2,g.top+Mt/2,Fe-Vt/2,et-Mt/2,Wa.TOP_LEFT):new ci(g.left+Vt/2,g.top+Mt/2),this.topRightBorderStroke=Fe>0||et>0?ao(g.left+ze,g.top+Mt/2,xt-dr/2,nr-Mt/2,Wa.TOP_RIGHT):new ci(g.left+g.width-dr/2,g.top+Mt/2),this.bottomRightBorderStroke=Cr>0||o>0?ao(g.left+it,g.top+qe,Cr-dr/2,o-lr/2,Wa.BOTTOM_RIGHT):new ci(g.left+g.width-dr/2,g.top+g.height-lr/2),this.bottomLeftBorderStroke=P>0||oe>0?ao(g.left+Vt/2,g.top+gt,P-Vt/2,oe-lr/2,Wa.BOTTOM_LEFT):new ci(g.left+Vt/2,g.top+g.height-lr/2),this.topLeftBorderBox=Fe>0||et>0?ao(g.left,g.top,Fe,et,Wa.TOP_LEFT):new ci(g.left,g.top),this.topRightBorderBox=xt>0||nr>0?ao(g.left+ze,g.top,xt,nr,Wa.TOP_RIGHT):new ci(g.left+g.width,g.top),this.bottomRightBorderBox=Cr>0||o>0?ao(g.left+it,g.top+qe,Cr,o,Wa.BOTTOM_RIGHT):new ci(g.left+g.width,g.top+g.height),this.bottomLeftBorderBox=P>0||oe>0?ao(g.left,g.top+gt,P,oe,Wa.BOTTOM_LEFT):new ci(g.left,g.top+g.height),this.topLeftPaddingBox=Fe>0||et>0?ao(g.left+Vt,g.top+Mt,Math.max(0,Fe-Vt),Math.max(0,et-Mt),Wa.TOP_LEFT):new ci(g.left+Vt,g.top+Mt),this.topRightPaddingBox=xt>0||nr>0?ao(g.left+Math.min(ze,g.width-dr),g.top+Mt,ze>g.width+dr?0:Math.max(0,xt-dr),Math.max(0,nr-Mt),Wa.TOP_RIGHT):new ci(g.left+g.width-dr,g.top+Mt),this.bottomRightPaddingBox=Cr>0||o>0?ao(g.left+Math.min(it,g.width-Vt),g.top+Math.min(qe,g.height-lr),Math.max(0,Cr-dr),Math.max(0,o-lr),Wa.BOTTOM_RIGHT):new ci(g.left+g.width-dr,g.top+g.height-lr),this.bottomLeftPaddingBox=P>0||oe>0?ao(g.left+Vt,g.top+Math.min(gt,g.height-lr),Math.max(0,P-Vt),Math.max(0,oe-lr),Wa.BOTTOM_LEFT):new ci(g.left+Vt,g.top+g.height-lr),this.topLeftContentBox=Fe>0||et>0?ao(g.left+Vt+$t,g.top+Mt+Gr,Math.max(0,Fe-(Vt+$t)),Math.max(0,et-(Mt+Gr)),Wa.TOP_LEFT):new ci(g.left+Vt+$t,g.top+Mt+Gr),this.topRightContentBox=xt>0||nr>0?ao(g.left+Math.min(ze,g.width+Vt+$t),g.top+Mt+Gr,ze>g.width+Vt+$t?0:xt-Vt+$t,nr-(Mt+Gr),Wa.TOP_RIGHT):new ci(g.left+g.width-(dr+Or),g.top+Mt+Gr),this.bottomRightContentBox=Cr>0||o>0?ao(g.left+Math.min(it,g.width-(Vt+$t)),g.top+Math.min(qe,g.height+Mt+Gr),Math.max(0,Cr-(dr+Or)),o-(lr+Yt),Wa.BOTTOM_RIGHT):new ci(g.left+g.width-(dr+Or),g.top+g.height-(lr+Yt)),this.bottomLeftContentBox=P>0||oe>0?ao(g.left+Vt+$t,g.top+gt,Math.max(0,P-(Vt+$t)),oe-(lr+Yt),Wa.BOTTOM_LEFT):new ci(g.left+Vt+$t,g.top+g.height-(lr+Yt))}return m}(),Wa;(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"})(Wa||(Wa={}));var ao=function(m,u,y,g,re){var Fe=4*((Math.sqrt(2)-1)/3),et=y*Fe,Ct=g*Fe,xt=m+y,nr=u+g;switch(re){case Wa.TOP_LEFT:return new uA(new ci(m,nr),new ci(m,nr-Ct),new ci(xt-et,u),new ci(xt,u));case Wa.TOP_RIGHT:return new uA(new ci(m,u),new ci(m+et,u),new ci(xt,nr-Ct),new ci(xt,nr));case Wa.BOTTOM_RIGHT:return new uA(new ci(xt,u),new ci(xt,u+Ct),new ci(m+et,nr),new ci(m,nr));case Wa.BOTTOM_LEFT:default:return new uA(new ci(xt,nr),new ci(xt-et,nr),new ci(m,u+Ct),new ci(m,u))}},Ga=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(u,y,g){this.offsetX=u,this.offsetY=y,this.matrix=g,this.type=0,this.target=6}return m}(),MA=function(){function m(u,y){this.path=u,this.target=y,this.type=1}return m}(),tu=function(){function m(u){this.opacity=u,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,u){return m.length===u.length?m.some(function(y,g){return y===u[g]}):!1},Qu=function(m,u,y,g,re){return m.map(function(Fe,et){switch(et){case 0:return Fe.add(u,y);case 1:return Fe.add(u+g,y);case 2:return Fe.add(u+g,y+re);case 3:return Fe.add(u,y+re)}return Fe})},vn=function(){function m(u){this.element=u,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return m}(),Zo=function(){function m(u,y){if(this.container=u,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 et=Ga(this.curves),Ct=IA(this.curves);Ru(et,Ct)?this.effects.push(new MA(et,6)):(this.effects.push(new MA(et,2)),this.effects.push(new MA(Ct,4)))}}return m.prototype.getEffects=function(u){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 et=Ga(g.curves),Ct=IA(g.curves);Ru(et,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,u)})},m}(),Zd=function(m,u,y,g){m.container.elements.forEach(function(re){var Fe=Vn(re.flags,4),et=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||et){var nr=Fe||re.styles.isPositioned()?y:u,mr=new vn(Ct);if(re.styles.isPositioned()||re.styles.opacity<1||re.styles.isTransformed()){var Cr=re.styles.zIndex.order;if(Cr<0){var o=0;nr.negativeZIndex.some(function(P,oe){return Cr>P.element.container.styles.zIndex.order?(o=oe,!1):o>0}),nr.negativeZIndex.splice(o,0,mr)}else if(Cr>0){var b=0;nr.positiveZIndex.some(function(P,oe){return Cr>=P.element.container.styles.zIndex.order?(b=oe+1,!1):b>0}),nr.positiveZIndex.splice(b,0,mr)}else nr.zeroOrAutoZIndexOrTransformedOrOpacity.push(mr)}else re.styles.isFloating()?nr.nonPositionedFloats.push(mr):nr.nonPositionedInlineLevel.push(mr);Zd(Ct,mr,Fe?mr:y,xt)}else re.styles.isInlineLevel()?u.inlineLevel.push(Ct):u.nonInlineLevel.push(Ct),Zd(Ct,u,y,xt);Vn(re.flags,8)&&Vd(re,xt)})},Vd=function(m,u){for(var y=m instanceof gc?m.start:1,g=m instanceof gc?m.reversed:!1,re=0;re<u.length;re++){var Fe=u[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 u=new Zo(m,null),y=new vn(u),g=[];return Zd(u,y,y,g),Vd(u.container,g),y},_d=function(m,u){switch(u){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,u){switch(u){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,u){switch(u){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,u){switch(u){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,u){var y=[];return Fs(m)?y.push(m.subdivide(.5,!1)):y.push(m),Fs(u)?y.push(u.subdivide(.5,!0)):y.push(u),y},$l=function(m,u,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(u)?re.push(u.subdivide(.5,!1).reverse()):re.push(u),re},Nc=function(m){var u=m.bounds,y=m.styles;return u.add(y.borderLeftWidth,y.borderTopWidth,-(y.borderRightWidth+y.borderLeftWidth),-(y.borderTopWidth+y.borderBottomWidth))},Is=function(m){var u=m.styles,y=m.bounds,g=La(u.paddingLeft,y.width),re=La(u.paddingRight,y.width),Fe=La(u.paddingTop,y.width),et=La(u.paddingBottom,y.width);return y.add(g+u.borderLeftWidth,Fe+u.borderTopWidth,-(u.borderRightWidth+u.borderLeftWidth+g+re),-(u.borderTopWidth+u.borderBottomWidth+Fe+et))},Hu=function(m,u){return m===0?u.bounds:m===2?Is(u):Nc(u)},dd=function(m,u){return m===0?u.bounds:m===2?Is(u):Nc(u)},dA=function(m,u,y){var g=Hu(yl(m.styles.backgroundOrigin,u),m),re=dd(yl(m.styles.backgroundClip,u),m),Fe=ju(yl(m.styles.backgroundSize,u),y,g),et=Fe[0],Ct=Fe[1],xt=bs(yl(m.styles.backgroundPosition,u),g.width-et,g.height-Ct),nr=Sc(yl(m.styles.backgroundRepeat,u),xt,Fe,g,re),mr=Math.round(g.left+xt[0]),Cr=Math.round(g.top+xt[1]);return[nr,mr,Cr,et,Ct]},vl=function(m){return Ma(m)&&m.value===v.AUTO},fd=function(m){return typeof m=="number"},ju=function(m,u,y){var g=u[0],re=u[1],Fe=u[2],et=m[0],Ct=m[1];if(!et)return[0,0];if(Qn(et)&&Ct&&Qn(Ct))return[La(et,y.width),La(Ct,y.height)];var xt=fd(Fe);if(Ma(et)&&(et.value===v.CONTAIN||et.value===v.COVER)){if(fd(Fe)){var nr=y.width/y.height;return nr<Fe!=(et.value===v.COVER)?[y.width,y.width/Fe]:[y.height*Fe,y.height]}return[y.width,y.height]}var mr=fd(g),Cr=fd(re),o=mr||Cr;if(vl(et)&&(!Ct||vl(Ct))){if(mr&&Cr)return[g,re];if(!xt&&!o)return[y.width,y.height];if(o&&xt){var b=mr?g:re*Fe,P=Cr?re:g/Fe;return[b,P]}var oe=mr?g:y.width,Oe=Cr?re:y.height;return[oe,Oe]}if(xt){var Ke=0,ze=0;return Qn(et)?Ke=La(et,y.width):Qn(Ct)&&(ze=La(Ct,y.height)),vl(et)?Ke=ze*Fe:(!Ct||vl(Ct))&&(ze=Ke/Fe),[Ke,ze]}var qe=null,it=null;if(Qn(et)?qe=La(et,y.width):Ct&&Qn(Ct)&&(it=La(Ct,y.height)),qe!==null&&(!Ct||vl(Ct))&&(it=mr&&Cr?qe/g*re:y.height),it!==null&&vl(et)&&(qe=mr&&Cr?it/re*g:y.width),qe!==null&&it!==null)return[qe,it];throw new Error("Unable to calculate background-size for element")},yl=function(m,u){var y=m[u];return typeof y=="undefined"?m[0]:y},Sc=function(m,u,y,g,re){var Fe=u[0],et=u[1],Ct=y[0],xt=y[1];switch(m){case 2:return[new ci(Math.round(g.left),Math.round(g.top+et)),new ci(Math.round(g.left+g.width),Math.round(g.top+et)),new ci(Math.round(g.left+g.width),Math.round(xt+g.top+et)),new ci(Math.round(g.left),Math.round(xt+g.top+et))];case 3:return[new ci(Math.round(g.left+Fe),Math.round(g.top)),new ci(Math.round(g.left+Fe+Ct),Math.round(g.top)),new ci(Math.round(g.left+Fe+Ct),Math.round(g.height+g.top)),new ci(Math.round(g.left+Fe),Math.round(g.height+g.top))];case 1:return[new ci(Math.round(g.left+Fe),Math.round(g.top+et)),new ci(Math.round(g.left+Fe+Ct),Math.round(g.top+et)),new ci(Math.round(g.left+Fe+Ct),Math.round(g.top+et+xt)),new ci(Math.round(g.left+Fe),Math.round(g.top+et+xt))];default:return[new ci(Math.round(re.left),Math.round(re.top)),new ci(Math.round(re.left+re.width),Math.round(re.top)),new ci(Math.round(re.left+re.width),Math.round(re.height+re.top)),new ci(Math.round(re.left),Math.round(re.height+re.top))]}},fA="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",zu="Hidden Text",Gd=function(){function m(u){this._data={},this._document=u}return m.prototype.parseMetrics=function(u,y){var g=this._document.createElement("div"),re=this._document.createElement("img"),Fe=this._document.createElement("span"),et=this._document.body;g.style.visibility="hidden",g.style.fontFamily=u,g.style.fontSize=y,g.style.margin="0",g.style.padding="0",g.style.whiteSpace="nowrap",et.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=u,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 et.removeChild(g),{baseline:Ct,middle:xt}},m.prototype.getMetrics=function(u,y){var g=u+" "+y;return typeof this._data[g]=="undefined"&&(this._data[g]=this.parseMetrics(u,y)),this._data[g]},m}(),hA=function(){function m(u,y){this.context=u,this.options=y}return m}(),Ec=1e4,$u=function(m){x(u,m);function u(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 u.prototype.applyEffects=function(y){for(var g=this;this._activeEffects.length;)this.popEffect();y.forEach(function(re){return g.applyEffect(re)})},u.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)},u.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},u.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]}})})},u.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]}})})},u.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 et=ya(y.text);et.reduce(function(Ct,xt){return Fe.ctx.fillText(xt,Ct,y.bounds.top+re),Ct+Fe.ctx.measureText(xt).width},y.bounds.left)}},u.prototype.createFontStyle=function(y){var g=y.fontVariant.filter(function(et){return et==="normal"||et==="small-caps"}).join(""),re=Xd(y.fontFamily).join(", "),Fe=lo(y.fontSize)?""+y.fontSize.number+y.fontSize.unit:y.fontSize.number+"px";return[[y.fontStyle,g,y.fontWeight,Fe,re].join(" "),re,Fe]},u.prototype.renderTextNode=function(y,g){return ue(this,void 0,void 0,function(){var re,Fe,et,Ct,xt,nr,mr,Cr,o=this;return Q(this,function(b){return re=this.createFontStyle(g),Fe=re[0],et=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(et,Ct),nr=xt.baseline,mr=xt.middle,Cr=g.paintOrder,y.textBounds.forEach(function(P){Cr.forEach(function(oe){switch(oe){case 0:o.ctx.fillStyle=qa(g.color),o.renderTextWithLetterSpacing(P,g.letterSpacing,nr);var Oe=g.textShadow;Oe.length&&P.text.trim().length&&(Oe.slice(0).reverse().forEach(function(Ke){o.ctx.shadowColor=qa(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(P,g.letterSpacing,nr)}),o.ctx.shadowColor="",o.ctx.shadowOffsetX=0,o.ctx.shadowOffsetY=0,o.ctx.shadowBlur=0),g.textDecorationLine.length&&(o.ctx.fillStyle=qa(g.textDecorationColor||g.color),g.textDecorationLine.forEach(function(Ke){switch(Ke){case 1:o.ctx.fillRect(P.bounds.left,Math.round(P.bounds.top+nr),P.bounds.width,1);break;case 2:o.ctx.fillRect(P.bounds.left,Math.round(P.bounds.top),P.bounds.width,1);break;case 3:o.ctx.fillRect(P.bounds.left,Math.ceil(P.bounds.top+mr),P.bounds.width,1);break}}));break;case 1:g.webkitTextStrokeWidth&&P.text.trim().length&&(o.ctx.strokeStyle=qa(g.webkitTextStrokeColor),o.ctx.lineWidth=g.webkitTextStrokeWidth,o.ctx.lineJoin=window.chrome?"miter":"round",o.ctx.strokeText(P.text,P.bounds.left,P.bounds.top+nr)),o.ctx.strokeStyle="",o.ctx.lineWidth=0,o.ctx.lineJoin="miter";break}})}),[2]})})},u.prototype.renderReplacedElement=function(y,g,re){if(re&&y.intrinsicWidth>0&&y.intrinsicHeight>0){var Fe=Is(y),et=IA(g);this.path(et),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()}},u.prototype.renderNodeContent=function(y){return ue(this,void 0,void 0,function(){var g,re,Fe,et,Ct,xt,ze,ze,nr,mr,Cr,o,it,b,P,gt,oe,Oe,Ke,ze,qe,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,et=0,Ct=g.textNodes,Mt.label=1;case 1:return et<Ct.length?(xt=Ct[et],[4,this.renderTextNode(xt,Fe)]):[3,4];case 2:Mt.sent(),Mt.label=3;case 3:return et++,[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 ba&&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?(nr=new u(this.context,{scale:this.options.scale,backgroundColor:g.backgroundColor,x:0,y:0,width:g.width,height:g.height}),[4,nr.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&&(Cr=Math.min(g.bounds.width,g.bounds.height),g.type===SA?g.checked&&(this.ctx.save(),this.path([new ci(g.bounds.left+Cr*.39363,g.bounds.top+Cr*.79),new ci(g.bounds.left+Cr*.16,g.bounds.top+Cr*.5549),new ci(g.bounds.left+Cr*.27347,g.bounds.top+Cr*.44071),new ci(g.bounds.left+Cr*.39694,g.bounds.top+Cr*.5649),new ci(g.bounds.left+Cr*.72983,g.bounds.top+Cr*.23),new ci(g.bounds.left+Cr*.84,g.bounds.top+Cr*.34085),new ci(g.bounds.left+Cr*.39363,g.bounds.top+Cr*.79)]),this.ctx.fillStyle=qa(uu),this.ctx.fill(),this.ctx.restore()):g.type===Lc&&g.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(g.bounds.left+Cr/2,g.bounds.top+Cr/2,Cr/4,0,Math.PI*2,!0),this.ctx.fillStyle=qa(uu),this.ctx.fill(),this.ctx.restore())),Zu(g)&&g.value.length){switch(o=this.createFontStyle(Fe),it=o[0],b=o[1],P=this.fontMetrics.getMetrics(it,b).baseline,this.ctx.font=it,this.ctx.fillStyle=qa(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 ci(gt.left,gt.top),new ci(gt.left+gt.width,gt.top),new ci(gt.left+gt.width,gt.top+gt.height),new ci(gt.left,gt.top+gt.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Xs(g.value,Oe),Fe.letterSpacing,P),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,qe=Ke.url,Mt.label=15;case 15:return Mt.trys.push([15,17,,18]),[4,this.context.cache.match(qe)];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 "+qe),[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=qa(Fe.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",gt=new ie(g.bounds.left,g.bounds.top+La(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]}})})},u.prototype.renderStackContent=function(y){return ue(this,void 0,void 0,function(){var g,re,Ke,Fe,et,Ke,Ct,xt,Ke,nr,mr,Ke,Cr,o,Ke,b,P,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,et=y.nonInlineLevel,ze.label=7;case 7:return Fe<et.length?(Ke=et[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:nr=0,mr=y.nonPositionedInlineLevel,ze.label=15;case 15:return nr<mr.length?(Ke=mr[nr],[4,this.renderStack(Ke)]):[3,18];case 16:ze.sent(),ze.label=17;case 17:return nr++,[3,15];case 18:Cr=0,o=y.inlineLevel,ze.label=19;case 19:return Cr<o.length?(Ke=o[Cr],[4,this.renderNode(Ke)]):[3,22];case 20:ze.sent(),ze.label=21;case 21:return Cr++,[3,19];case 22:b=0,P=y.zeroOrAutoZIndexOrTransformedOrOpacity,ze.label=23;case 23:return b<P.length?(Ke=P[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]}})})},u.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()},u.prototype.path=function(y){this.ctx.beginPath(),this.formatPath(y),this.ctx.closePath()},u.prototype.formatPath=function(y){var g=this;y.forEach(function(re,Fe){var et=Fs(re)?re.start:re;Fe===0?g.ctx.moveTo(et.x,et.y):g.ctx.lineTo(et.x,et.y),Fs(re)&&g.ctx.bezierCurveTo(re.startControl.x,re.startControl.y,re.endControl.x,re.endControl.y,re.end.x,re.end.y)})},u.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)},u.prototype.resizeImage=function(y,g,re){var Fe;if(y.width===g&&y.height===re)return y;var et=(Fe=this.canvas.ownerDocument)!==null&&Fe!==void 0?Fe:document,Ct=et.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},u.prototype.renderBackgroundImage=function(y){return ue(this,void 0,void 0,function(){var g,re,Fe,et,Ct,xt;return Q(this,function(nr){switch(nr.label){case 0:g=y.styles.backgroundImage.length-1,re=function(mr){var Cr,o,b,Gr,nn,Ai,$t,Yr,lr,P,Gr,nn,Ai,$t,Yr,oe,Oe,Ke,ze,qe,it,gt,Mt,dr,lr,Vt,Gr,Or,Yt,$t,Yr,bn,nn,Ai,Jn,Xi,oi,Ha,Ua,Ra,Na,to;return Q(this,function(fo){switch(fo.label){case 0:if(mr.type!==0)return[3,5];Cr=void 0,o=mr.url,fo.label=1;case 1:return fo.trys.push([1,3,,4]),[4,Fe.context.cache.match(o)];case 2:return Cr=fo.sent(),[3,4];case 3:return fo.sent(),Fe.context.logger.error("Error loading background-image "+o),[3,4];case 4:return Cr&&(b=dA(y,g,[Cr.width,Cr.height,Cr.width/Cr.height]),Gr=b[0],nn=b[1],Ai=b[2],$t=b[3],Yr=b[4],lr=Fe.ctx.createPattern(Fe.resizeImage(Cr,$t,Yr),"repeat"),Fe.renderRepeat(Gr,lr,nn,Ai)),[3,6];case 5:ad(mr)?(P=dA(y,g,[null,null,null]),Gr=P[0],nn=P[1],Ai=P[2],$t=P[3],Yr=P[4],oe=Gs(mr.angle,$t,Yr),Oe=oe[0],Ke=oe[1],ze=oe[2],qe=oe[3],it=oe[4],gt=document.createElement("canvas"),gt.width=$t,gt.height=Yr,Mt=gt.getContext("2d"),dr=Mt.createLinearGradient(Ke,qe,ze,it),yA(mr.stops,Oe).forEach(function(ta){return dr.addColorStop(ta.stop,qa(ta.color))}),Mt.fillStyle=dr,Mt.fillRect(0,0,$t,Yr),$t>0&&Yr>0&&(lr=Fe.ctx.createPattern(gt,"repeat"),Fe.renderRepeat(Gr,lr,nn,Ai))):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,nn=La(bn[0],$t),Ai=La(bn[bn.length-1],Yr),Jn=Pa(mr,nn,Ai,$t,Yr),Xi=Jn[0],oi=Jn[1],Xi>0&&oi>0&&(Ha=Fe.ctx.createRadialGradient(Or+nn,Yt+Ai,0,Or+nn,Yt+Ai,Xi),yA(mr.stops,Xi*2).forEach(function(ta){return Ha.addColorStop(ta.stop,qa(ta.color))}),Fe.path(Gr),Fe.ctx.fillStyle=Ha,Xi!==oi?(Ua=y.bounds.left+.5*y.bounds.width,Ra=y.bounds.top+.5*y.bounds.height,Na=oi/Xi,to=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,to*(Yt-Ra)+Ra,$t,Yr*to),Fe.ctx.restore()):Fe.ctx.fill())),fo.label=6;case 6:return g--,[2]}})},Fe=this,et=0,Ct=y.styles.backgroundImage.slice(0).reverse(),nr.label=1;case 1:return et<Ct.length?(xt=Ct[et],[5,re(xt)]):[3,4];case 2:nr.sent(),nr.label=3;case 3:return et++,[3,1];case 4:return[2]}})})},u.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=qa(y),this.ctx.fill(),[2]})})},u.prototype.renderDoubleBorder=function(y,g,re,Fe){return ue(this,void 0,void 0,function(){var et,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 et=Ku(Fe,re),this.path(et),this.ctx.fillStyle=qa(y),this.ctx.fill(),Ct=ud(Fe,re),this.path(Ct),this.ctx.fill(),[2]}})})},u.prototype.renderNodeBackgroundAndBorders=function(y){return ue(this,void 0,void 0,function(){var g,re,Fe,et,Ct,xt,nr,mr,Cr=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}],et=hd(yl(g.backgroundClip,0),y.curves),re||g.boxShadow.length?(this.ctx.save(),this.path(et),this.ctx.clip(),Ko(g.backgroundColor)||(this.ctx.fillStyle=qa(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){Cr.ctx.save();var P=Ga(y.curves),oe=b.inset?0:Ec,Oe=Qu(P,-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?(Cr.path(P),Cr.ctx.clip(),Cr.mask(Oe)):(Cr.mask(P),Cr.ctx.clip(),Cr.path(Oe)),Cr.ctx.shadowOffsetX=b.offsetX.number+oe,Cr.ctx.shadowOffsetY=b.offsetY.number,Cr.ctx.shadowColor=qa(b.color),Cr.ctx.shadowBlur=b.blur.number,Cr.ctx.fillStyle=b.inset?qa(b.color):"rgba(0,0,0,1)",Cr.ctx.fill(),Cr.ctx.restore()}),o.label=2;case 2:Ct=0,xt=0,nr=Fe,o.label=3;case 3:return xt<nr.length?(mr=nr[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]}})})},u.prototype.renderDashedDottedBorder=function(y,g,re,Fe,et){return ue(this,void 0,void 0,function(){var Ct,xt,nr,mr,Cr,o,b,P,oe,Oe,Ke,ze,qe,it,gt,Mt,gt,Mt;return Q(this,function(dr){return this.ctx.save(),Ct=vf(Fe,re),xt=_d(Fe,re),et===2&&(this.path(xt),this.ctx.clip()),Fs(xt[0])?(nr=xt[0].start.x,mr=xt[0].start.y):(nr=xt[0].x,mr=xt[0].y),Fs(xt[1])?(Cr=xt[1].end.x,o=xt[1].end.y):(Cr=xt[1].x,o=xt[1].y),re===0||re===2?b=Math.abs(nr-Cr):b=Math.abs(mr-o),this.ctx.beginPath(),et===3?this.formatPath(Ct):this.formatPath(xt.slice(0,2)),P=g<3?g*3:g*2,oe=g<3?g*2:g,et===3&&(P=g,oe=g),Oe=!0,b<=P*2?Oe=!1:b<=P*2+oe?(Ke=b/(2*P+oe),P*=Ke,oe*=Ke):(ze=Math.floor((b+oe)/(P+oe)),qe=(b-ze*P)/(ze-1),it=(b-(ze+1)*P)/ze,oe=it<=0||Math.abs(oe-qe)<Math.abs(oe-it)?qe:it),Oe&&(et===3?this.ctx.setLineDash([0,P+oe]):this.ctx.setLineDash([P,oe])),et===3?(this.ctx.lineCap="round",this.ctx.lineWidth=g):this.ctx.lineWidth=g*2+1.1,this.ctx.strokeStyle=qa(y),this.ctx.stroke(),this.ctx.setLineDash([]),et===2&&(Fs(xt[0])&&(gt=xt[3],Mt=xt[0],this.ctx.beginPath(),this.formatPath([new ci(gt.end.x,gt.end.y),new ci(Mt.start.x,Mt.start.y)]),this.ctx.stroke()),Fs(xt[1])&&(gt=xt[1],Mt=xt[2],this.ctx.beginPath(),this.formatPath([new ci(gt.end.x,gt.end.y),new ci(Mt.start.x,Mt.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},u.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=qa(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]}})})},u}(hA),Zu=function(m){return m instanceof GA||m instanceof vc?!0:m instanceof ws&&m.type!==Lc&&m.type!==SA},hd=function(m,u){switch(m){case 0:return Ga(u);case 2:return Uu(u);case 1:default:return IA(u)}},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(u){return pA.indexOf(u)===-1}):m},Jd=function(m){x(u,m);function u(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 u.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=qa(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]}})})},u}(hA),vu=function(m){return new Promise(function(u,y){var g=new Image;g.onload=function(){u(g)},g.onerror=y,g.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(m))})},Vu=function(){function m(u){var y=u.id,g=u.enabled;this.id=y,this.enabled=g,this.start=Date.now()}return m.prototype.debug=function(){for(var u=[],y=0;y<arguments.length;y++)u[y]=arguments[y];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Te([this.id,this.getTime()+"ms"],u)):this.info.apply(this,u))},m.prototype.getTime=function(){return Date.now()-this.start},m.prototype.info=function(){for(var u=[],y=0;y<arguments.length;y++)u[y]=arguments[y];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Te([this.id,this.getTime()+"ms"],u))},m.prototype.warn=function(){for(var u=[],y=0;y<arguments.length;y++)u[y]=arguments[y];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Te([this.id,this.getTime()+"ms"],u)):this.info.apply(this,u))},m.prototype.error=function(){for(var u=[],y=0;y<arguments.length;y++)u[y]=arguments[y];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,Te([this.id,this.getTime()+"ms"],u)):this.info.apply(this,u))},m.instances={},m}(),Wu=function(){function m(u,y){var g;this.windowBounds=y,this.instanceName="#"+m.instanceCount++,this.logger=new Vu({id:this.instanceName,enabled:u.logging}),this.cache=(g=u.cache)!==null&&g!==void 0?g:new FA(this,u)}return m.instanceCount=1,m}(),Fd=function(m,u){return u===void 0&&(u={}),Yd(m,u)};typeof window!="undefined"&&_A.setContext(window);var Yd=function(m,u){return ue(void 0,void 0,void 0,function(){var y,g,re,Fe,et,Ct,xt,nr,mr,Cr,o,b,P,oe,Oe,Ke,ze,qe,it,gt,dr,Mt,dr,lr,Vt,Gr,Or,Yt,$t,Yr,bn,nn,Ai,Jn,Xi,oi,Ha,Ua,Ra,Na;return Q(this,function(to){switch(to.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=u.allowTaint)!==null&&lr!==void 0?lr:!1,imageTimeout:(Vt=u.imageTimeout)!==null&&Vt!==void 0?Vt:15e3,proxy:u.proxy,useCORS:(Gr=u.useCORS)!==null&&Gr!==void 0?Gr:!1},Fe=ge({logging:(Or=u.logging)!==null&&Or!==void 0?Or:!0,cache:u.cache},re),et={windowWidth:(Yt=u.windowWidth)!==null&&Yt!==void 0?Yt:g.innerWidth,windowHeight:($t=u.windowHeight)!==null&&$t!==void 0?$t:g.innerHeight,scrollX:(Yr=u.scrollX)!==null&&Yr!==void 0?Yr:g.pageXOffset,scrollY:(bn=u.scrollY)!==null&&bn!==void 0?bn:g.pageYOffset},Ct=new ie(et.scrollX,et.scrollY,et.windowWidth,et.windowHeight),xt=new Wu(Fe,Ct),nr=(nn=u.foreignObjectRendering)!==null&&nn!==void 0?nn:!1,mr={allowTaint:(Ai=u.allowTaint)!==null&&Ai!==void 0?Ai:!1,onclone:u.onclone,ignoreElements:u.ignoreElements,inlineImages:nr,copyStyles:nr},xt.logger.debug("Starting document clone with size "+Ct.width+"x"+Ct.height+" scrolled to "+-Ct.left+","+-Ct.top),Cr=new il(xt,m,mr),o=Cr.clonedReferenceElement,o?[4,Cr.toIFrame(y,Ct)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return b=to.sent(),P=zi(o)||ka(o)?B(o.ownerDocument):G(xt,o),oe=P.width,Oe=P.height,Ke=P.left,ze=P.top,qe=yf(xt,o,u.backgroundColor),it={canvas:u.canvas,backgroundColor:qe,scale:(Xi=(Jn=u.scale)!==null&&Jn!==void 0?Jn:g.devicePixelRatio)!==null&&Xi!==void 0?Xi:1,x:((oi=u.x)!==null&&oi!==void 0?oi:0)+Ke,y:((Ha=u.y)!==null&&Ha!==void 0?Ha:0)+ze,width:(Ua=u.width)!==null&&Ua!==void 0?Ua:Math.ceil(oe),height:(Ra=u.height)!==null&&Ra!==void 0?Ra:Math.ceil(Oe)},nr?(xt.logger.debug("Document cloned, using foreign object rendering"),dr=new Jd(xt,it),[4,dr.render(o)]):[3,3];case 2:return gt=to.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),qe===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),dr=new $u(xt,it),[4,dr.render(Mt)];case 4:gt=to.sent(),to.label=5;case 5:return(!((Na=u.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,u,y){var g=u.ownerDocument,re=g.documentElement?Pl(m,getComputedStyle(g.documentElement).backgroundColor):Ws.TRANSPARENT,Fe=g.body?Pl(m,getComputedStyle(g.body).backgroundColor):Ws.TRANSPARENT,et=typeof y=="string"?Pl(m,y):y===null?Ws.TRANSPARENT:4294967295;return u===g.documentElement?Ko(re)?Ko(Fe)?et:Fe:re:et};return Fd})},44164:function(xn,qt,x){var ge=x(97671);(function(Q,Te){xn.exports=Te(x(73207),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"),O=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"),z=(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 Be=(0,I.unitConvert)(he[Ne],this.prop.pageSize.k);Be.left-=z.left,Be.top-=z.top;var je=Math.floor(Be.top/this.prop.pageSize.inner.height)+1,ee=this.opt.margin[0]+Be.top%this.prop.pageSize.inner.height,ce=this.opt.margin[1]+Be.left;Y.push({page:je,top:ee,left:ce,clientRect:Be,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"),O=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),z=h("./node_modules/core-js/modules/web.dom-collections.iterator.js"),le=h.n(z),he=h("jspdf"),Ne=h.n(he);function Be(je){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Be=function(ce){return typeof ce}:Be=function(ce){return ce&&typeof Symbol=="function"&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},Be(je)}he.jsPDF.getPageSize=function(je,ee,ce){if(Be(je)==="object"){var D=je;je=D.orientation,ee=D.unit||ee,ce=D.format||ce}ee=ee||"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(ee){case"pt":var Ce=1;break;case"mm":var Ce=72/25.4;break;case"cm":var Ce=72/2.54;break;case"in":var Ce=72;break;case"px":var Ce=72/96;break;case"pc":var Ce=12;break;case"em":var Ce=12;break;case"ex":var Ce=6;break;default:throw"Invalid unit: "+ee}if(Le.hasOwnProperty(ot))var Re=Le[ot][1]/Ce,ve=Le[ot][0]/Ce;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 Pe=ve;ve=Re,Re=Pe}}else if(je==="l"||je==="landscape"){if(je="l",Re>ve){var Pe=ve;ve=Re,Re=Pe}}else throw"Invalid orientation: "+je;var fe={width:ve,height:Re,unit:ee,k:Ce};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"),O=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"),z={toContainer:X.default.prototype.toContainer};X.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},X.default.prototype.toContainer=function(){return z.toContainer.call(this).then(function(){var Ne=this.prop.container,Be=this.prop.pageSize.inner.px.height,je=[].concat(this.opt.pagebreak.mode),ee={avoidAll:je.indexOf("avoid-all")!==-1,css:je.indexOf("css")!==-1,legacy:je.indexOf("legacy")!==-1},ce={},D=this;["before","after","avoid"].forEach(function(Ce){var Re=ee.avoidAll&&Ce==="avoid";ce[Ce]=Re?[]:[].concat(D.opt.pagebreak[Ce]||[]),ce[Ce].length>0&&(ce[Ce]=Array.prototype.slice.call(Ne.querySelectorAll(ce[Ce].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:ee.legacy&&ot.indexOf(Re)!==-1,avoid:ee.avoidAll};if(ee.css){var Pe=window.getComputedStyle(Re),fe=["always","page","left","right"],ye=["avoid","avoid-page"];ve={before:ve.before||fe.indexOf(Pe.breakBefore||Pe.pageBreakBefore)!==-1,after:ve.after||fe.indexOf(Pe.breakAfter||Pe.pageBreakAfter)!==-1,avoid:ve.avoid||ye.indexOf(Pe.breakInside||Pe.pageBreakInside)!==-1}}Object.keys(ve).forEach(function(jt){ve[jt]=ve[jt]||ce[jt].indexOf(Re)!==-1});var at=Re.getBoundingClientRect();if(ve.avoid&&!ve.before){var tt=Math.floor(at.top/Be),rt=Math.floor(at.bottom/Be),At=Math.abs(at.bottom-at.top)/Be;rt!==tt&&At<=1&&(ve.before=!0)}if(ve.before){var Nt=(0,W.createElement)("div",{style:{display:"block",height:Be-at.top%Be+"px"}});Re.parentNode.insertBefore(Nt,Re)}if(ve.after){var Nt=(0,W.createElement)("div",{style:{display:"block",height:Be-at.bottom%Be+"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 ee},cloneNode:function(){return ce},unitConvert:function(){return D},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"),O=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),z=h("./node_modules/core-js/modules/es.string.iterator.js"),le=h.n(z),he=h("./node_modules/core-js/modules/web.dom-collections.iterator.js"),Ne=h.n(he);function Be(Le){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Be=function(Re){return typeof Re}:Be=function(Re){return Re&&typeof Symbol=="function"&&Re.constructor===Symbol&&Re!==Symbol.prototype?"symbol":typeof Re},Be(Le)}var je=function(Ce){var Re=Be(Ce);return Re==="undefined"?"undefined":Re==="string"||Ce instanceof String?"string":Re==="number"||Ce instanceof Number?"number":Re==="function"||Ce instanceof Function?"function":Ce&&Ce.constructor===Array?"array":Ce&&Ce.nodeType===1?"element":Re==="object"?"object":"unknown"},ee=function(Ce,Re){var ve=document.createElement(Ce);if(Re.className&&(ve.className=Re.className),Re.innerHTML){ve.innerHTML=Re.innerHTML;for(var Pe=ve.getElementsByTagName("script"),fe=Pe.length;fe-- >0;null)Pe[fe].parentNode.removeChild(Pe[fe])}for(var ye in Re.style)ve.style[ye]=Re.style[ye];return ve},ce=function Le(Ce,Re){for(var ve=Ce.nodeType===3?document.createTextNode(Ce.nodeValue):Ce.cloneNode(!1),Pe=Ce.firstChild;Pe;Pe=Pe.nextSibling)(Re===!0||Pe.nodeType!==1||Pe.nodeName!=="SCRIPT")&&ve.appendChild(Le(Pe,Re));return Ce.nodeType===1&&(Ce.nodeName==="CANVAS"?(ve.width=Ce.width,ve.height=Ce.height,ve.getContext("2d").drawImage(Ce,0,0)):(Ce.nodeName==="TEXTAREA"||Ce.nodeName==="SELECT")&&(ve.value=Ce.value),ve.addEventListener("load",function(){ve.scrollTop=Ce.scrollTop,ve.scrollLeft=Ce.scrollLeft},!0)),ve},D=function(Ce,Re){if(je(Ce)==="number")return Ce*72/96/Re;var ve={};for(var Pe in Ce)ve[Pe]=Ce[Pe]*72/96/Re;return ve},ot=function(Ce,Re){return Math.floor(Ce*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"),O=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),z=h("./node_modules/core-js/modules/es.function.name.js"),le=h.n(z),he=h("./node_modules/core-js/modules/web.dom-collections.for-each.js"),Ne=h.n(he),Be=h("jspdf"),je=h.n(Be),ee=h("html2canvas"),ce=h.n(ee),D=h("./src/utils.js"),ot=h("./node_modules/es6-promise/dist/es6-promise.js"),Le=h.n(ot),Ce=Le().Promise,Re=function ve(Pe){var fe=Object.assign(ve.convert(Ce.resolve()),JSON.parse(JSON.stringify(ve.template))),ye=ve.convert(Ce.resolve(),fe);return ye=ye.setProgress(1,ve,1,[ve]),ye=ye.set(Pe),ye};Re.prototype=Object.create(Ce.prototype),Re.prototype.constructor=Re,Re.convert=function(Pe,fe){return Pe.__proto__=fe||Re.prototype,Pe},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(Pe,fe){function ye(at){switch((0,D.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(Pe),fe){case"string":return this.set({src:(0,D.createElement)("div",{innerHTML:Pe})});case"element":return this.set({src:Pe});case"canvas":return this.set({canvas:Pe});case"img":return this.set({img:Pe});default:return this.error("Unknown source type.")}})},Re.prototype.to=function(Pe){switch(Pe){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 Pe=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(Pe).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 tt=(0,D.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,D.createElement)("div",{className:"html2pdf__overlay",style:ye}),this.prop.container=(0,D.createElement)("div",{className:"html2pdf__container",style:at}),this.prop.container.appendChild(tt),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},Re.prototype.toCanvas=function(){var Pe=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Pe).then(function(){var ye=Object.assign({},this.opt.html2canvas);return delete ye.onrendered,ee(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 Pe=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(Pe).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 Pe=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(Pe).then(function(){var ye=this.prop.canvas,at=this.opt,tt=ye.height,rt=Math.floor(ye.width*this.prop.pageSize.inner.ratio),At=Math.ceil(tt/rt),Nt=this.prop.pageSize.inner.height,jt=document.createElement("canvas"),Qt=jt.getContext("2d");jt.width=ye.width,jt.height=rt,this.prop.pdf=this.prop.pdf||new Be.jsPDF(at.jsPDF);for(var ur=0;ur<At;ur++){ur===At-1&&tt%rt!==0&&(jt.height=tt%rt,Nt=jt.height*this.prop.pageSize.inner.width/jt.width);var or=jt.width,xr=jt.height;Qt.fillStyle="white",Qt.fillRect(0,0,or,xr),Qt.drawImage(ye,0,ur*rt,or,xr,0,0,or,xr),ur&&this.prop.pdf.addPage();var fr=jt.toDataURL("image/"+at.image.type,at.image.quality);this.prop.pdf.addImage(fr,at.image.type,at.margin[1],at.margin[0],this.prop.pageSize.inner.width,Nt)}})},Re.prototype.output=function(Pe,fe,ye){return ye=ye||"pdf",ye.toLowerCase()==="img"||ye.toLowerCase()==="image"?this.outputImg(Pe,fe):this.outputPdf(Pe,fe)},Re.prototype.outputPdf=function(Pe,fe){var ye=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(ye).then(function(){return this.prop.pdf.output(Pe,fe)})},Re.prototype.outputImg=function(Pe,fe){var ye=[function(){return this.prop.img||this.toImg()}];return this.thenList(ye).then(function(){switch(Pe){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 "'+Pe+'" is not supported.'}})},Re.prototype.save=function(Pe){var fe=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(fe).set(Pe?{filename:Pe}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},Re.prototype.set=function(Pe){if((0,D.objType)(Pe)!=="object")return this;var fe=Object.keys(Pe||{}).map(function(ye){switch(ye){case"margin":return this.setMargin.bind(this,Pe.margin);case"jsPDF":return function(){return this.opt.jsPDF=Pe.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,Pe.pageSize);default:return ye in Re.template.prop?function(){this.prop[ye]=Pe[ye]}:function(){this.opt[ye]=Pe[ye]}}},this);return this.then(function(){return this.thenList(fe)})},Re.prototype.get=function(Pe,fe){return this.then(function(){var at=Pe in Re.template.prop?this.prop[Pe]:this.opt[Pe];return fe?fe(at):at})},Re.prototype.setMargin=function(Pe){return this.then(function(){switch((0,D.objType)(Pe)){case"number":Pe=[Pe,Pe,Pe,Pe];case"array":if(Pe.length===2&&(Pe=[Pe[0],Pe[1],Pe[0],Pe[1]]),Pe.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=Pe}).then(this.setPageSize)},Re.prototype.setPageSize=function(Pe){return this.then(function(){Pe=Pe||Be.jsPDF.getPageSize(this.opt.jsPDF),Pe.hasOwnProperty("inner")||(Pe.inner={width:Pe.width-this.opt.margin[1]-this.opt.margin[3],height:Pe.height-this.opt.margin[0]-this.opt.margin[2]},Pe.inner.px={width:(0,D.toPx)(Pe.inner.width,Pe.k),height:(0,D.toPx)(Pe.inner.height,Pe.k)},Pe.inner.ratio=Pe.inner.height/Pe.inner.width),this.prop.pageSize=Pe})},Re.prototype.setProgress=function(Pe,fe,ye,at){return Pe!=null&&(this.progress.val=Pe),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(Pe,fe,ye,at){return this.setProgress(Pe?this.progress.val+Pe:null,fe||null,ye?this.progress.n+ye:null,at?this.progress.stack.concat(at):null)},Re.prototype.then=function(Pe,fe){var ye=this;return this.thenCore(Pe,fe,function(tt,rt){return ye.updateProgress(null,null,1,[tt]),Ce.prototype.then.call(this,function(Nt){return ye.updateProgress(null,tt),Nt}).then(tt,rt).then(function(Nt){return ye.updateProgress(1),Nt})})},Re.prototype.thenCore=function(Pe,fe,ye){ye=ye||Ce.prototype.then;var at=this;Pe&&(Pe=Pe.bind(at)),fe&&(fe=fe.bind(at));var tt=Ce.toString().indexOf("[native code]")!==-1&&Ce.name==="Promise",rt=tt?at:Re.convert(Object.assign({},at),Ce.prototype),At=ye.call(rt,Pe,fe);return Re.convert(At,at.__proto__)},Re.prototype.thenExternal=function(Pe,fe){return Ce.prototype.then.call(this,Pe,fe)},Re.prototype.thenList=function(Pe){var fe=this;return Pe.forEach(function(at){fe=fe.thenCore(at)}),fe},Re.prototype.catch=function(ve){ve&&(ve=ve.bind(this));var Pe=Ce.prototype.catch.call(this,ve);return Re.convert(Pe,this)},Re.prototype.catchExternal=function(Pe){return Ce.prototype.catch.call(this,Pe)},Re.prototype.error=function(Pe){return this.then(function(){throw new Error(Pe)})},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"),O=Z("unscopables"),R=Array.prototype;R[O]==null&&_.f(R,O,{configurable:!0,value:S(null)}),f.exports=function(I){R[O][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"),O=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:O(!0),indexOf:O(!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"),O=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,z=K==6,le=K==7,he=K==5||z;return function(Ne,Be,je,ee){for(var ce=_(Ne),D=S(ce),ot=Z(Be,je,3),Le=O(D.length),Ce=0,Re=ee||R,ve=se?Re(Ne,Le):te||le?Re(Ne,0):void 0,Pe,fe;Le>Ce;Ce++)if((he||Ce in D)&&(Pe=D[Ce],fe=ot(Pe,Ce,ce),K))if(se)ve[Ce]=fe;else if(fe)switch(K){case 3:return!0;case 5:return Pe;case 6:return Ce;case 2:I.call(ve,Pe)}else switch(K){case 4:return!1;case 7:I.call(ve,Pe)}return z?-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"),O=S("species");f.exports=function(R){return _>=51||!Z(function(){var I=[],Y=I.constructor={};return Y[O]=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 O=[][S];return!!O&&Z(function(){O.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"),O=_("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[O],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"),O=_("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),O))=="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"),O=h("./node_modules/core-js/internals/object-define-property.js");f.exports=function(R,I){for(var Y=S(I),K=O.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(O,R,I,Y){var K=S(Z(O)),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"),O=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)}),O(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(O,R,I){return S.f(O,R,_(1,I))}:function(O,R,I){return O[R]=I,O}},"./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(O,R,I){var Y=Z(R);Y in O?S.f(O,Y,_(0,I)):O[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"),O=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,z=X.BUGGY_SAFARI_ITERATORS,le=K("iterator"),he="keys",Ne="values",Be="entries",je=function(){return this};f.exports=function(ee,ce,D,ot,Le,Ce,Re){S(D,ce,ot);var ve=function(Qt){if(Qt===Le&&tt)return tt;if(!z&&Qt in ye)return ye[Qt];switch(Qt){case he:return function(){return new D(this,Qt)};case Ne:return function(){return new D(this,Qt)};case Be:return function(){return new D(this,Qt)}}return function(){return new D(this)}},Pe=ce+" Iterator",fe=!1,ye=ee.prototype,at=ye[le]||ye["@@iterator"]||Le&&ye[Le],tt=!z&&at||ve(Le),rt=ce=="Array"&&ye.entries||at,At,Nt,jt;if(rt&&(At=_(rt.call(new ee)),W!==Object.prototype&&At.next&&(!se&&_(At)!==W&&(O?O(At,W):typeof At[le]!="function"&&I(At,le,je)),R(At,Pe,!0,!0),se&&(te[Pe]=je))),Le==Ne&&at&&at.name!==Ne&&(fe=!0,tt=function(){return at.call(this)}),(!se||Re)&&ye[le]!==tt&&I(ye,le,tt),te[ce]=tt,Le)if(Nt={values:ve(Ne),keys:Ce?tt:ve(he),entries:ve(Be)},Re)for(jt in Nt)(z||fe||!(jt in ye))&&Y(ye,jt,Nt[jt]);else Z({target:ce,proto:!0,forced:z||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"),O=h("./node_modules/core-js/internals/object-define-property.js").f;f.exports=function(R){var I=Z.Symbol||(Z.Symbol={});S(I,R)||O(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,O=S(_)&&S(_.createElement);f.exports=function(R){return O?_.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,O=Z.Deno,R=_&&_.versions||O&&O.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"),O=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,z,le,he,Ne,Be,je;if(X?le=Z:W?le=Z[te]||R(te,{}):le=(Z[te]||{}).prototype,le)for(he in se){if(Be=se[he],K.noTargetGet?(je=S(le,he),Ne=je&&je.value):Ne=le[he],z=Y(X?he:te+(W?".":"#")+he,K.forced),!z&&Ne!==void 0){if(typeof Be==typeof Ne)continue;I(Be,Ne)}(K.sham||Ne&&Ne.sham)&&_(Be,"sham",!0),O(le,he,Be,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,_,O){if(Z(S),_===void 0)return S;switch(O){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(_,O){return arguments.length<2?S(Z[_]):Z[_]&&Z[_][O]}},"./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(O,R){return S.call(Z(O),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(O){return S(O)=="String"?_.call(O,""):Object(O)}: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(_,O,R){var I,Y;return S&&typeof(I=O.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"),O=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,z,le=function(D){return z(D)?W(D):X(D,{})},he=function(D){return function(ot){var Le;if(!_(ot)||(Le=W(ot)).type!==D)throw TypeError("Incompatible receiver, "+D+" required");return Le}};if(Z||I.state){var Ne=I.state||(I.state=new te),Be=Ne.get,je=Ne.has,ee=Ne.set;X=function(D,ot){if(je.call(Ne,D))throw new TypeError(se);return ot.facade=D,ee.call(Ne,D,ot),ot},W=function(D){return Be.call(Ne,D)||{}},z=function(D){return je.call(Ne,D)}}else{var ce=Y("state");K[ce]=!0,X=function(D,ot){if(R(D,ce))throw new TypeError(se);return ot.facade=D,O(D,ce,ot),ot},W=function(D){return R(D,ce)?D[ce]:{}},z=function(D){return R(D,ce)}}f.exports={set:X,get:W,has:z,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[O(K)];return te==Y?!0:te==I?!1:typeof se=="function"?Z(se):!!se},O=_.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 O=Z("Symbol");return typeof O=="function"&&Object(_)instanceof O}},"./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"),O=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 z=te==null||Z(function(){var le={};return te[Y].call(le)!==le});z&&(te={}),(!I||z)&&!O(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"),O=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(),z="abcdefghijklmnopqrst";return te[W]=7,z.split("").forEach(function(le){X[le]=le}),K({},te)[W]!=7||_(K({},X)).join("")!=z})?function(X,W){for(var z=I(X),le=arguments.length,he=1,Ne=O.f,Be=R.f;le>he;)for(var je=Y(arguments[he++]),ee=Ne?_(je).concat(Ne(je)):_(je),ce=ee.length,D=0,ot;ce>D;)ot=ee[D++],(!Z||Be.call(je,ot))&&(z[ot]=je[ot]);return z}: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"),O=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"),z=function(){},le=function(ee){return se+X+K+ee+se+"/"+X+K},he=function(ee){ee.write(le("")),ee.close();var ce=ee.parentWindow.Object;return ee=null,ce},Ne=function(){var ee=I("iframe"),ce="java"+X+":",D;if(ee.style)return ee.style.display="none",R.appendChild(ee),ee.src=String(ce),D=ee.contentWindow.document,D.open(),D.write(le("document.F=Object")),D.close(),D.F},Be,je=function(){try{Be=new ActiveXObject("htmlfile")}catch(ce){}je=document.domain&&Be?he(Be):Ne()||he(Be);for(var ee=_.length;ee--;)delete je[te][_[ee]];return je()};O[W]=!0,f.exports=Object.create||function(ce,D){var ot;return ce!==null?(z[te]=Z(ce),ot=new z,z[te]=null,ot[W]=ce):ot=je(),D===void 0?ot:S(ot,D)}},"./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"),O=h("./node_modules/core-js/internals/object-keys.js");f.exports=Z?Object.defineProperties:function(I,Y){_(I);for(var K=O(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"),O=h("./node_modules/core-js/internals/to-property-key.js"),R=Object.defineProperty;E.f=Z?R:function(Y,K,se){if(_(Y),K=O(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"),O=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=O(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,O=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],R=function(I){try{return S(I)}catch(Y){return O.slice()}};f.exports.f=function(Y){return O&&_.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"),O=h("./node_modules/core-js/internals/correct-prototype-getter.js"),R=_("IE_PROTO"),I=Object.prototype;f.exports=O?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,O=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(O,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(O){return Z(O,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(O){var R=Z(this,O);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,O={},R;try{R=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,R.call(O,[]),_=O 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 O,R;if(_==="string"&&typeof(O=S.toString)=="function"&&!Z(R=O.call(S))||typeof(O=S.valueOf)=="function"&&!Z(R=O.call(S))||_!=="string"&&typeof(O=S.toString)=="function"&&!Z(R=O.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"),O=h("./node_modules/core-js/internals/an-object.js");f.exports=Z("Reflect","ownKeys")||function(I){var Y=S.f(O(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"),O=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,z){var le=z?!!z.unsafe:!1,he=z?!!z.enumerable:!1,Ne=z?!!z.noTargetGet:!1,Be;if(typeof W=="function"&&(typeof X=="string"&&!_(W,"name")&&S(W,"name",X),Be=K(W),Be.source||(Be.source=se.join(typeof X=="string"?X:""))),te===Z){he?te[X]=W:O(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(O){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"),O=_("toStringTag");f.exports=function(R,I,Y){R&&!S(R=Y?R:R.prototype,O)&&Z(R,O,{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(O){return _[O]||(_[O]=S(O))}},"./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__",O=Z[_]||S(_,{});f.exports=O},"./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(_,O){return S[_]||(S[_]=O!==void 0?O:{})})("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"),O=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:O(!1),charAt:O(!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"),O="["+_+"]",R=RegExp("^"+O+O+"*"),I=RegExp(O+O+"*$"),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(O,R){var I=Z(O);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"),O=h("./node_modules/core-js/internals/well-known-symbol.js"),R=O("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 O=Z(_,"string");return S(O)?O:String(O)}},"./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"),O=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||O;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"),O=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"),z=9007199254740991,le="Maximum allowed index exceeded",he=X>=51||!S(function(){var ee=[];return ee[W]=!1,ee.concat()[0]!==ee}),Ne=se("concat"),Be=function(ee){if(!O(ee))return!1;var ce=ee[W];return ce!==void 0?!!ce:_(ee)},je=!he||!Ne;Z({target:"Array",proto:!0,forced:je},{concat:function(ce){var D=R(this),ot=K(D,0),Le=0,Ce,Re,ve,Pe,fe;for(Ce=-1,ve=arguments.length;Ce<ve;Ce++)if(fe=Ce===-1?D:arguments[Ce],Be(fe)){if(Pe=I(fe.length),Le+Pe>z)throw TypeError(le);for(Re=0;Re<Pe;Re++,Le++)Re in fe&&Y(ot,Le,fe[Re])}else{if(Le>=z)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"),O=h("./node_modules/core-js/internals/internal-state.js"),R=h("./node_modules/core-js/internals/define-iterator.js"),I="Array Iterator",Y=O.set,K=O.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"),O=h("./node_modules/core-js/internals/array-method-is-strict.js"),R=[].join,I=S!=Object,Y=O("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"),O=_("map");Z({target:"Array",proto:!0,forced:!O},{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"),O=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,z=Math.max;Z({target:"Array",proto:!0,forced:!te},{slice:function(he,Ne){var Be=I(this),je=R(Be.length),ee=O(he,je),ce=O(Ne===void 0?je:Ne,je),D,ot,Le;if(_(Be)&&(D=Be.constructor,typeof D=="function"&&(D===Array||_(D.prototype))?D=void 0:S(D)&&(D=D[X],D===null&&(D=void 0)),D===Array||D===void 0))return W.call(Be,ee,ce);for(ot=new(D===void 0?Array:D)(z(ce-ee,0)),Le=0;ee<ce;ee++,Le++)ee in Be&&Y(ot,Le,Be[ee]);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,O=_.toString,R=/^\s*function ([^ (]*)/,I="name";Z&&!(I in _)&&S(_,I,{configurable:!0,get:function(){try{return O.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"),O=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,z=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",Be=S[Ne],je=Be.prototype,ee=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"),Pe,fe,ye,at,tt,rt,At,Nt;if(typeof ve=="string"&&ve.length>2){if(ve=he(ve),Pe=ve.charCodeAt(0),Pe===43||Pe===45){if(fe=ve.charCodeAt(2),fe===88||fe===120)return NaN}else if(Pe===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(tt=ve.slice(2),rt=tt.length,At=0;At<rt;At++)if(Nt=tt.charCodeAt(At),Nt<48||Nt>at)return NaN;return parseInt(tt,ye)}}return+ve};if(_(Ne,!Be(" 0o1")||!Be("0b1")||Be("+0x1"))){for(var D=function(ve){var Pe=arguments.length<1?0:ve,fe=this;return fe instanceof D&&(ee?te(function(){je.valueOf.call(fe)}):I(fe)!=Ne)?Y(new Be(ce(Pe)),fe,D):ce(Pe)},ot=Z?W(Be):"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,Ce;ot.length>Le;Le++)R(Be,Ce=ot[Le])&&!R(D,Ce)&&le(D,Ce,z(Be,Ce));D.prototype=je,je.constructor=D,O(S,Ne,D)}},"./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"),O=h("./node_modules/core-js/internals/fails.js"),R=O(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"),O=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=O(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),z=_(W.source),le=W.flags,he=_(le===void 0&&W instanceof RegExp&&!("flags"in Y)?R.call(W):le);return"/"+z+"/"+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"),O=h("./node_modules/core-js/internals/define-iterator.js"),R="String Iterator",I=_.set,Y=_.getterFor(R);O(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"),O=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]),Be=this instanceof te?new K(Ne):Ne===void 0?K():K(Ne);return Ne===""&&(se[Be]=!0),Be};Y(te,K);var X=te.prototype=K.prototype;X.constructor=te;var W=X.toString,z=String(K("test"))=="Symbol(test)",le=/^Symbol\((.*)\)[^)]+$/;I(X,"description",{configurable:!0,get:function(){var Ne=R(this)?this.valueOf():this,Be=W.call(Ne);if(O(se,Ne))return"";var je=z?Be.slice(7,-1):Be.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"),O=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"),z=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"),Be=h("./node_modules/core-js/internals/create-property-descriptor.js"),je=h("./node_modules/core-js/internals/object-create.js"),ee=h("./node_modules/core-js/internals/object-keys.js"),ce=h("./node_modules/core-js/internals/object-get-own-property-names.js"),D=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"),Ce=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"),Pe=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"),tt=h("./node_modules/core-js/internals/uid.js"),rt=h("./node_modules/core-js/internals/well-known-symbol.js"),At=h("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Nt=h("./node_modules/core-js/internals/define-well-known-symbol.js"),jt=h("./node_modules/core-js/internals/set-to-string-tag.js"),Qt=h("./node_modules/core-js/internals/internal-state.js"),ur=h("./node_modules/core-js/internals/array-iteration.js").forEach,or=ye("hidden"),xr="Symbol",fr="prototype",L=rt("toPrimitive"),nt=Qt.set,k=Qt.getterFor(xr),p=Object[fr],d=S.Symbol,w=_("JSON","stringify"),q=Le.f,Se=Ce.f,H=D.f,ne=Re.f,Ge=fe("symbols"),xe=fe("op-symbols"),we=fe("string-to-symbol-registry"),Ye=fe("symbol-to-string-registry"),_t=fe("wks"),pe=S.QObject,ut=!pe||!pe[fr]||!pe[fr].findChild,ct=R&&Y(function(){return je(Se({},"a",{get:function(){return Se(this,"a",{value:7}).a}})).a!=7})?function(Tr,cr,Ar){var zr=q(p,cr);zr&&delete p[cr],Se(Tr,cr,Ar),zr&&Tr!==p&&Se(p,cr,zr)}:Se,Ie=function(Tr,cr){var Ar=Ge[Tr]=je(d[fr]);return nt(Ar,{type:xr,tag:Tr,description:cr}),R||(Ar.description=cr),Ar},ke=function(cr,Ar,zr){cr===p&&ke(xe,Ar,zr),W(cr);var cn=he(Ar);return W(zr),K(Ge,cn)?(zr.enumerable?(K(cr,or)&&cr[or][cn]&&(cr[or][cn]=!1),zr=je(zr,{enumerable:Be(0,!1)})):(K(cr,or)||Se(cr,or,Be(1,{})),cr[or][cn]=!0),ct(cr,cn,zr)):Se(cr,cn,zr)},vt=function(cr,Ar){W(cr);var zr=le(Ar),cn=ee(zr).concat(Pr(zr));return ur(cn,function(Sn){(!R||Ut.call(zr,Sn))&&ke(cr,Sn,zr[Sn])}),cr},zt=function(cr,Ar){return Ar===void 0?je(cr):vt(je(cr),Ar)},Ut=function(cr){var Ar=he(cr),zr=ne.call(this,Ar);return this===p&&K(Ge,Ar)&&!K(xe,Ar)?!1:zr||!K(this,Ar)||!K(Ge,Ar)||K(this,or)&&this[or][Ar]?zr:!0},ar=function(cr,Ar){var zr=le(cr),cn=he(Ar);if(!(zr===p&&K(Ge,cn)&&!K(xe,cn))){var Sn=q(zr,cn);return Sn&&K(Ge,cn)&&!(K(zr,or)&&zr[or][cn])&&(Sn.enumerable=!0),Sn}},Ir=function(cr){var Ar=H(le(cr)),zr=[];return ur(Ar,function(cn){!K(Ge,cn)&&!K(at,cn)&&zr.push(cn)}),zr},Pr=function(cr){var Ar=cr===p,zr=H(Ar?xe:le(cr)),cn=[];return ur(zr,function(Sn){K(Ge,Sn)&&(!Ar||K(p,Sn))&&cn.push(Ge[Sn])}),cn};if(I||(d=function(){if(this instanceof d)throw TypeError("Symbol is not a constructor");var cr=!arguments.length||arguments[0]===void 0?void 0:Ne(arguments[0]),Ar=tt(cr),zr=function(cn){this===p&&zr.call(xe,cn),K(this,or)&&K(this[or],Ar)&&(this[or][Ar]=!1),ct(this,Ar,Be(1,cn))};return R&&ut&&ct(p,Ar,{configurable:!0,set:zr}),Ie(Ar,cr)},Pe(d[fr],"toString",function(){return k(this).tag}),Pe(d,"withoutSetter",function(Tr){return Ie(tt(Tr),Tr)}),Re.f=Ut,Ce.f=ke,Le.f=ar,ce.f=D.f=Ir,ot.f=Pr,At.f=function(Tr){return Ie(rt(Tr),Tr)},R&&(Se(d[fr],"description",{configurable:!0,get:function(){return k(this).description}}),O||Pe(p,"propertyIsEnumerable",Ut,{unsafe:!0}))),Z({global:!0,wrap:!0,forced:!I,sham:!I},{Symbol:d}),ur(ee(_t),function(Tr){Nt(Tr)}),Z({target:xr,stat:!0,forced:!I},{for:function(Tr){var cr=Ne(Tr);if(K(we,cr))return we[cr];var Ar=d(cr);return we[cr]=Ar,Ye[Ar]=cr,Ar},keyFor:function(cr){if(!X(cr))throw TypeError(cr+" is not a symbol");if(K(Ye,cr))return Ye[cr]},useSetter:function(){ut=!0},useSimple:function(){ut=!1}}),Z({target:"Object",stat:!0,forced:!I,sham:!R},{create:zt,defineProperty:ke,defineProperties:vt,getOwnPropertyDescriptor:ar}),Z({target:"Object",stat:!0,forced:!I},{getOwnPropertyNames:Ir,getOwnPropertySymbols:Pr}),Z({target:"Object",stat:!0,forced:Y(function(){ot.f(1)})},{getOwnPropertySymbols:function(cr){return ot.f(z(cr))}}),w){var Kr=!I||Y(function(){var Tr=d();return w([Tr])!="[null]"||w({a:Tr})!="{}"||w(Object(Tr))!="{}"});Z({target:"JSON",stat:!0,forced:Kr},{stringify:function(cr,Ar,zr){for(var cn=[cr],Sn=1,An;arguments.length>Sn;)cn.push(arguments[Sn++]);if(An=Ar,!(!te(Ar)&&cr===void 0||X(cr)))return se(Ar)||(Ar=function(_n,xi){if(typeof An=="function"&&(xi=An.call(this,_n,xi)),!X(xi))return xi}),cn[1]=Ar,w.apply(null,cn)}})}d[fr][L]||ve(d[fr],L,d[fr].valueOf),jt(d,xr),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"),O=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{O(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"),O=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{O(X,I,K)}catch(z){X[I]=K}if(X[Y]||O(X,Y,se),S[se]){for(var W in _)if(X[W]!==_[W])try{O(X,W,_[W])}catch(z){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 ut=typeof pe;return pe!==null&&(ut==="object"||ut==="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,O=void 0,R=void 0,I=function(ut,ct){ee[_]=ut,ee[_+1]=ct,_+=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]",z=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function le(){return function(){return ge.nextTick(ce)}}function he(){return typeof O!="undefined"?function(){O(ce)}:je()}function Ne(){var pe=0,ut=new X(ce),ct=document.createTextNode("");return ut.observe(ct,{characterData:!0}),function(){ct.data=pe=++pe%2}}function Be(){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 ee=new Array(1e3);function ce(){for(var pe=0;pe<_;pe+=2){var ut=ee[pe],ct=ee[pe+1];ut(ct),ee[pe]=void 0,ee[pe+1]=void 0}_=0}function D(){try{var pe=Function("return this")().require("vertx");return O=pe.runOnLoop||pe.runOnContext,he()}catch(ut){return je()}}var ot=void 0;W?ot=le():X?ot=Ne():z?ot=Be():se===void 0?ot=D():ot=je();function Le(pe,ut){var ct=this,Ie=new this.constructor(ve);Ie[Re]===void 0&&w(Ie);var ke=ct._state;if(ke){var vt=arguments[ke-1];I(function(){return nt(ke,Ie,vt,ct._result)})}else fr(ct,Ie,pe,ut);return Ie}function Ce(pe){var ut=this;if(pe&&typeof pe=="object"&&pe.constructor===ut)return pe;var ct=new ut(ve);return Qt(ct,pe),ct}var Re=Math.random().toString(36).substring(2);function ve(){}var Pe=void 0,fe=1,ye=2;function at(){return new TypeError("You cannot resolve a promise with itself")}function tt(){return new TypeError("A promises callback cannot return that same promise.")}function rt(pe,ut,ct,Ie){try{pe.call(ut,ct,Ie)}catch(ke){return ke}}function At(pe,ut,ct){I(function(Ie){var ke=!1,vt=rt(ct,ut,function(zt){ke||(ke=!0,ut!==zt?Qt(Ie,zt):or(Ie,zt))},function(zt){ke||(ke=!0,xr(Ie,zt))},"Settle: "+(Ie._label||" unknown promise"));!ke&&vt&&(ke=!0,xr(Ie,vt))},pe)}function Nt(pe,ut){ut._state===fe?or(pe,ut._result):ut._state===ye?xr(pe,ut._result):fr(ut,void 0,function(ct){return Qt(pe,ct)},function(ct){return xr(pe,ct)})}function jt(pe,ut,ct){ut.constructor===pe.constructor&&ct===Le&&ut.constructor.resolve===Ce?Nt(pe,ut):ct===void 0?or(pe,ut):h(ct)?At(pe,ut,ct):or(pe,ut)}function Qt(pe,ut){if(pe===ut)xr(pe,at());else if(E(ut)){var ct=void 0;try{ct=ut.then}catch(Ie){xr(pe,Ie);return}jt(pe,ut,ct)}else or(pe,ut)}function ur(pe){pe._onerror&&pe._onerror(pe._result),L(pe)}function or(pe,ut){pe._state===Pe&&(pe._result=ut,pe._state=fe,pe._subscribers.length!==0&&I(L,pe))}function xr(pe,ut){pe._state===Pe&&(pe._state=ye,pe._result=ut,I(ur,pe))}function fr(pe,ut,ct,Ie){var ke=pe._subscribers,vt=ke.length;pe._onerror=null,ke[vt]=ut,ke[vt+fe]=ct,ke[vt+ye]=Ie,vt===0&&pe._state&&I(L,pe)}function L(pe){var ut=pe._subscribers,ct=pe._state;if(ut.length!==0){for(var Ie=void 0,ke=void 0,vt=pe._result,zt=0;zt<ut.length;zt+=3)Ie=ut[zt],ke=ut[zt+ct],Ie?nt(ct,Ie,ke,vt):ke(vt);pe._subscribers.length=0}}function nt(pe,ut,ct,Ie){var ke=h(ct),vt=void 0,zt=void 0,Ut=!0;if(ke){try{vt=ct(Ie)}catch(ar){Ut=!1,zt=ar}if(ut===vt){xr(ut,tt());return}}else vt=Ie;ut._state!==Pe||(ke&&Ut?Qt(ut,vt):Ut===!1?xr(ut,zt):pe===fe?or(ut,vt):pe===ye&&xr(ut,vt))}function k(pe,ut){try{ut(function(Ie){Qt(pe,Ie)},function(Ie){xr(pe,Ie)})}catch(ct){xr(pe,ct)}}var p=0;function d(){return p++}function w(pe){pe[Re]=p++,pe._state=void 0,pe._result=void 0,pe._subscribers=[]}function q(){return new Error("Array Methods must be provided an Array")}var Se=function(){function pe(ut,ct){this._instanceConstructor=ut,this.promise=new ut(ve),this.promise[Re]||w(this.promise),S(ct)?(this.length=ct.length,this._remaining=ct.length,this._result=new Array(this.length),this.length===0?or(this.promise,this._result):(this.length=this.length||0,this._enumerate(ct),this._remaining===0&&or(this.promise,this._result))):xr(this.promise,q())}return pe.prototype._enumerate=function(ct){for(var Ie=0;this._state===Pe&&Ie<ct.length;Ie++)this._eachEntry(ct[Ie],Ie)},pe.prototype._eachEntry=function(ct,Ie){var ke=this._instanceConstructor,vt=ke.resolve;if(vt===Ce){var zt=void 0,Ut=void 0,ar=!1;try{zt=ct.then}catch(Pr){ar=!0,Ut=Pr}if(zt===Le&&ct._state!==Pe)this._settledAt(ct._state,Ie,ct._result);else if(typeof zt!="function")this._remaining--,this._result[Ie]=ct;else if(ke===Ye){var Ir=new ke(ve);ar?xr(Ir,Ut):jt(Ir,ct,zt),this._willSettleAt(Ir,Ie)}else this._willSettleAt(new ke(function(Pr){return Pr(ct)}),Ie)}else this._willSettleAt(vt(ct),Ie)},pe.prototype._settledAt=function(ct,Ie,ke){var vt=this.promise;vt._state===Pe&&(this._remaining--,ct===ye?xr(vt,ke):this._result[Ie]=ke),this._remaining===0&&or(vt,this._result)},pe.prototype._willSettleAt=function(ct,Ie){var ke=this;fr(ct,void 0,function(vt){return ke._settledAt(fe,Ie,vt)},function(vt){return ke._settledAt(ye,Ie,vt)})},pe}();function H(pe){return new Se(this,pe).promise}function ne(pe){var ut=this;return S(pe)?new ut(function(ct,Ie){for(var ke=pe.length,vt=0;vt<ke;vt++)ut.resolve(pe[vt]).then(ct,Ie)}):new ut(function(ct,Ie){return Ie(new TypeError("You must pass an array to race."))})}function Ge(pe){var ut=this,ct=new ut(ve);return xr(ct,pe),ct}function xe(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function we(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var Ye=function(){function pe(ut){this[Re]=d(),this._result=this._state=void 0,this._subscribers=[],ve!==ut&&(typeof ut!="function"&&xe(),this instanceof pe?k(this,ut):we())}return pe.prototype.catch=function(ct){return this.then(null,ct)},pe.prototype.finally=function(ct){var Ie=this,ke=Ie.constructor;return h(ct)?Ie.then(function(vt){return ke.resolve(ct()).then(function(){return vt})},function(vt){return ke.resolve(ct()).then(function(){throw vt})}):Ie.then(ct,ct)},pe}();Ye.prototype.then=Le,Ye.all=H,Ye.race=ne,Ye.resolve=Ce,Ye.reject=Ge,Ye._setScheduler=Y,Ye._setAsap=K,Ye._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(Ie){throw new Error("polyfill failed because global object is unavailable in this environment")}var ut=pe.Promise;if(ut){var ct=null;try{ct=Object.prototype.toString.call(ut.resolve())}catch(Ie){}if(ct==="[object Promise]"&&!ut.cast)return}pe.Promise=Ye}return Ye.polyfill=_t,Ye.Promise=Ye,Ye})},html2canvas:function(f){"use strict";f.exports=Q},jspdf:function(f){"use strict";f.exports=ue}},ie={};function G(f){var E=ie[f];if(E!==void 0)return E.exports;var h=ie[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 _(O,R){var I=new _.Worker(R);return O?I.from(O).save():I};S.Worker=f.default,B.default=S}(),B=B.default,B}()})},67467:function(xn,qt){qt.read=function(x,ge,ue,Q,Te){var ie,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,ie=_&(1<<-h)-1,_>>=-h,h+=B;h>0;ie=ie*256+x[ge+Z],Z+=S,h-=8);for(G=ie&(1<<-h)-1,ie>>=-h,h+=Q;h>0;G=G*256+x[ge+Z],Z+=S,h-=8);if(ie===0)ie=1-E;else{if(ie===f)return G?NaN:(_?-1:1)*(1/0);G=G+Math.pow(2,Q),ie=ie-E}return(_?-1:1)*G*Math.pow(2,ie-Q)},qt.write=function(x,ge,ue,Q,Te,ie){var G,B,f,E=ie*8-Te-1,h=(1<<E)-1,Z=h>>1,S=Te===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=Q?0:ie-1,O=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,_+=O,B/=256,Te-=8);for(G=G<<Te|B,E+=Te;E>0;x[ue+_]=G&255,_+=O,G/=256,E-=8);x[ue+_-O]|=R*128}},24334:function(xn,qt,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,ie="2.6.4",G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",B=function(D){for(var ot={},Le=0,Ce=D.length;Le<Ce;Le++)ot[D.charAt(Le)]=Le;return ot}(G),f=String.fromCharCode,E=function(D){if(D.length<2){var ot=D.charCodeAt(0);return ot<128?D: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+(D.charCodeAt(0)-55296)*1024+(D.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(D){return D.replace(h,E)},S=function(D){var ot=[0,2,1][D.length%3],Le=D.charCodeAt(0)<<16|(D.length>1?D.charCodeAt(1):0)<<8|(D.length>2?D.charCodeAt(2):0),Ce=[G.charAt(Le>>>18),G.charAt(Le>>>12&63),ot>=2?"=":G.charAt(Le>>>6&63),ot>=1?"=":G.charAt(Le&63)];return Ce.join("")},_=Q.btoa&&typeof Q.btoa=="function"?function(D){return Q.btoa(D)}:function(D){if(D.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return D.replace(/[\s\S]{1,3}/g,S)},O=function(D){return _(Z(String(D)))},R=function(D){return D.replace(/[+\/]/g,function(ot){return ot=="+"?"-":"_"}).replace(/=/g,"")},I=function(D,ot){return ot?R(O(D)):O(D)},Y=function(D){return I(D,!0)},K;Q.Uint8Array&&(K=function(D,ot){for(var Le="",Ce=0,Re=D.length;Ce<Re;Ce+=3){var ve=D[Ce],Pe=D[Ce+1],fe=D[Ce+2],ye=ve<<16|Pe<<8|fe;Le+=G.charAt(ye>>>18)+G.charAt(ye>>>12&63)+(typeof Pe!="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(D){switch(D.length){case 4:var ot=(7&D.charCodeAt(0))<<18|(63&D.charCodeAt(1))<<12|(63&D.charCodeAt(2))<<6|63&D.charCodeAt(3),Le=ot-65536;return f((Le>>>10)+55296)+f((Le&1023)+56320);case 3:return f((15&D.charCodeAt(0))<<12|(63&D.charCodeAt(1))<<6|63&D.charCodeAt(2));default:return f((31&D.charCodeAt(0))<<6|63&D.charCodeAt(1))}},X=function(D){return D.replace(se,te)},W=function(D){var ot=D.length,Le=ot%4,Ce=(ot>0?B[D.charAt(0)]<<18:0)|(ot>1?B[D.charAt(1)]<<12:0)|(ot>2?B[D.charAt(2)]<<6:0)|(ot>3?B[D.charAt(3)]:0),Re=[f(Ce>>>16),f(Ce>>>8&255),f(Ce&255)];return Re.length-=[0,0,2,1][Le],Re.join("")},z=Q.atob&&typeof Q.atob=="function"?function(D){return Q.atob(D)}:function(D){return D.replace(/\S{1,4}/g,W)},le=function(D){return z(String(D).replace(/[^A-Za-z0-9\+\/]/g,""))},he=function(D){return X(z(D))},Ne=function(D){return String(D).replace(/[-_]/g,function(ot){return ot=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Be=function(D){return he(Ne(D))},je;Q.Uint8Array&&(je=function(D){return Uint8Array.from(le(Ne(D)),function(ot){return ot.charCodeAt(0)})});var ee=function(){var D=Q.Base64;return Q.Base64=Te,D};if(Q.Base64={VERSION:ie,atob:le,btoa:_,fromBase64:Be,toBase64:I,utob:Z,encode:I,encodeURI:Y,btou:X,decode:Be,noConflict:ee,fromUint8Array:K,toUint8Array:je},typeof Object.defineProperty=="function"){var ce=function(D){return{value:D,enumerable:!1,writable:!0,configurable:!0}};Q.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",ce(function(){return Be(this)})),Object.defineProperty(String.prototype,"toBase64",ce(function(D){return I(this,D)})),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(qt,ge),ue!==void 0&&(xn.exports=ue)),{Base64:Q.Base64}})},73207:function(xn,qt,x){"use strict";x.r(qt),x.d(qt,{AcroForm:function(){return Ro},AcroFormAppearance:function(){return Qn},AcroFormButton:function(){return Io},AcroFormCheckBox:function(){return Uo},AcroFormChoiceField:function(){return Ya},AcroFormComboBox:function(){return Oa},AcroFormEditBox:function(){return Ma},AcroFormListBox:function(){return lo},AcroFormPasswordField:function(){return Mo},AcroFormPushButton:function(){return kl},AcroFormRadioButton:function(){return ds},AcroFormTextField:function(){return Ms},GState:function(){return Fa},ShadingPattern:function(){return wo},TilingPattern:function(){return Ba},default:function(){return sd},jsPDF:function(){return di}});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(T){var V=T.data,ae=V.$e$;if(ae){var _e=new Error(ae[0]);_e.code=ae[1],_e.stack=ae[2],F(_e,null)}else F(null,V)},C.postMessage(l,v),C},Te=Uint8Array,ie=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 ie(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 O=h(f,0),R=O.b,I=O.r,Y=new ie(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 ie(a);F<v;++F)c[F]&&++C[c[F]-1];var T=new ie(a);for(F=1;F<a;++F)T[F]=T[F-1]+C[F-1]<<1;var V;if(l){V=new ie(1<<a);var ae=15-a;for(F=0;F<v;++F)if(c[F])for(var _e=F<<4|c[F],We=a-c[F],Ve=T[c[F]-1]++<<We,lt=Ve|(1<<We)-1;Ve<=lt;++Ve)V[Y[Ve]>>ae]=_e}else for(V=new ie(v),F=0;F<v;++F)c[F]&&(V[F]=Y[T[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 z=te(X,9,0),le=te(X,9,1),he=te(W,5,0),Ne=te(W,5,1),Be=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},ee=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},D=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"],Ce=function(c,a,l){var v=new Error(a||Le[c]);if(v.code=c,Error.captureStackTrace&&Error.captureStackTrace(v,Ce),!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 T=!l,V=T||a.i!=2,ae=a.i;T&&(l=new Te(F*3));var _e=function(sr){var _r=l.length;if(sr>_r){var Qr=new Te(Math.max(_r*2,sr));Qr.set(l),l=Qr}},We=a.f||0,Ve=a.p||0,lt=a.b||0,be=a.l,Lt=a.d,wt=a.m,kt=a.n,ht=F*8;do{if(!be){We=je(c,Ve,1);var Pt=je(c,Ve+1,3);if(Ve+=3,Pt)if(Pt==1)be=le,Lt=Ne,wt=9,kt=5;else if(Pt==2){var yn=je(c,Ve,31)+257,Er=je(c,Ve+10,15)+4,Gt=yn+je(c,Ve+5,31)+1;Ve+=14;for(var Dr=new Te(Gt),Zr=new Te(19),bt=0;bt<Er;++bt)Zr[E[bt]]=je(c,Ve+bt*3,7);Ve+=Er*3;for(var Bt=Be(Zr),U=(1<<Bt)-1,j=te(Zr,Bt,1),bt=0;bt<Gt;){var Ee=j[je(c,Ve,U)];Ve+=Ee&15;var ir=Ee>>4;if(ir<16)Dr[bt++]=ir;else{var De=0,Je=0;for(ir==16?(Je=3+je(c,Ve,3),Ve+=2,De=Dr[bt-1]):ir==17?(Je=3+je(c,Ve,7),Ve+=3):ir==18&&(Je=11+je(c,Ve,127),Ve+=7);Je--;)Dr[bt++]=De}}var He=Dr.subarray(0,yn),dt=Dr.subarray(yn);wt=Be(He),kt=Be(dt),be=te(He,wt,1),Lt=te(dt,kt,1)}else Ce(1);else{var ir=ce(Ve)+4,gr=c[ir-4]|c[ir-3]<<8,Rr=ir+gr;if(Rr>F){ae&&Ce(0);break}V&&_e(lt+gr),l.set(c.subarray(ir,Rr),lt),a.b=lt+=gr,a.p=Ve=Rr*8,a.f=We;continue}if(Ve>ht){ae&&Ce(0);break}}V&&_e(lt+131072);for(var pt=(1<<wt)-1,Et=(1<<kt)-1,de=Ve;;de=Ve){var De=be[ee(c,Ve)&pt],Ze=De>>4;if(Ve+=De&15,Ve>ht){ae&&Ce(0);break}if(De||Ce(2),Ze<256)l[lt++]=Ze;else if(Ze==256){de=Ve,be=null;break}else{var Xe=Ze-254;if(Ze>264){var bt=Ze-257,mt=B[bt];Xe=je(c,Ve,(1<<mt)-1)+S[bt],Ve+=mt}var yt=Lt[ee(c,Ve)&Et],It=yt>>4;yt||Ce(3),Ve+=yt&15;var dt=R[It];if(It>3){var mt=f[It];dt+=ee(c,Ve)&(1<<mt)-1,Ve+=mt}if(Ve>ht){ae&&Ce(0);break}V&&_e(lt+131072);var Rt=lt+Xe;if(lt<dt){var Tt=C-dt,pr=Math.min(dt,Rt);for(Tt+lt<0&&Ce(3);lt<pr;++lt)l[lt]=v[Tt+lt]}for(;lt<Rt;++lt)l[lt]=l[lt-dt]}}a.l=be,a.p=de,a.b=lt,a.f=We,be&&(We=1,a.m=wt,a.d=Lt,a.n=kt)}while(!We);return lt!=l.length&&T?D(l,0,lt):l.subarray(0,lt)},ve=function(c,a,l){l<<=a&7;var v=a/8|0;c[v]|=l,c[v+1]|=l>>8},Pe=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:jt,l:0};if(F==1){var T=new Te(l[0].s+1);return T[l[0].s]=1,{t:T,l:1}}l.sort(function(Rr,yn){return Rr.f-yn.f}),l.push({s:-1,f:25001});var V=l[0],ae=l[1],_e=0,We=1,Ve=2;for(l[0]={s:-1,f:V.f+ae.f,l:V,r:ae};We!=F-1;)V=l[l[_e].f<l[Ve].f?_e++:Ve++],ae=l[_e!=We&&l[_e].f<l[Ve].f?_e++:Ve++],l[We++]={s:-1,f:V.f+ae.f,l:V,r:ae};for(var lt=C[0].s,v=1;v<F;++v)C[v].s>lt&&(lt=C[v].s);var be=new ie(lt+1),Lt=ye(l[We-1],be,0);if(Lt>a){var v=0,wt=0,kt=Lt-a,ht=1<<kt;for(C.sort(function(yn,Er){return be[Er.s]-be[yn.s]||yn.f-Er.f});v<F;++v){var Pt=C[v].s;if(be[Pt]>a)wt+=ht-(1<<Lt-be[Pt]),be[Pt]=a;else break}for(wt>>=kt;wt>0;){var ir=C[v].s;be[ir]<a?wt-=1<<a-be[ir]++-1:++v}for(;v>=0&&wt;--v){var gr=C[v].s;be[gr]==a&&(--be[gr],++wt)}Lt=a}return{t:new Te(be),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 ie(++a),v=0,F=c[0],C=1,T=function(ae){l[v++]=ae},V=1;V<=a;++V)if(c[V]==F&&V!=a)++C;else{if(!F&&C>2){for(;C>138;C-=138)T(32754);C>2&&(T(C>10?C-11<<5|28690:C-3<<5|12305),C=0)}else if(C>3){for(T(F),--C;C>6;C-=6)T(8304);C>2&&(T(C-3<<5|8208),C=0)}for(;C--;)T(F);C=1,F=c[V]}return{c:l.subarray(0,v),n:a}},tt=function(c,a){for(var l=0,v=0;v<a.length;++v)l+=c[v]*a[v];return l},rt=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},At=function(c,a,l,v,F,C,T,V,ae,_e,We){ve(a,We++,l),++F[256];for(var Ve=fe(F,15),lt=Ve.t,be=Ve.l,Lt=fe(C,15),wt=Lt.t,kt=Lt.l,ht=at(lt),Pt=ht.c,ir=ht.n,gr=at(wt),Rr=gr.c,yn=gr.n,Er=new ie(19),Gt=0;Gt<Pt.length;++Gt)++Er[Pt[Gt]&31];for(var Gt=0;Gt<Rr.length;++Gt)++Er[Rr[Gt]&31];for(var Dr=fe(Er,7),Zr=Dr.t,bt=Dr.l,Bt=19;Bt>4&&!Zr[E[Bt-1]];--Bt);var U=_e+5<<3,j=tt(F,X)+tt(C,W)+T,Ee=tt(F,lt)+tt(C,wt)+T+14+3*Bt+tt(Er,Zr)+2*Er[16]+3*Er[17]+7*Er[18];if(ae>=0&&U<=j&&U<=Ee)return rt(a,We,c.subarray(ae,ae+_e));var De,Je,He,dt;if(ve(a,We,1+(Ee<j)),We+=2,Ee<j){De=te(lt,be,0),Je=lt,He=te(wt,kt,0),dt=wt;var pt=te(Zr,bt,0);ve(a,We,ir-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,Zr[E[Gt]]);We+=3*Bt;for(var Et=[Pt,Rr],de=0;de<2;++de)for(var Ze=Et[de],Gt=0;Gt<Ze.length;++Gt){var Xe=Ze[Gt]&31;ve(a,We,pt[Xe]),We+=Zr[Xe],Xe>15&&(ve(a,We,Ze[Gt]>>5&127),We+=Ze[Gt]>>12)}}else De=z,Je=X,He=he,dt=W;for(var Gt=0;Gt<V;++Gt){var mt=v[Gt];if(mt>255){var Xe=mt>>18&31;Pe(a,We,De[Xe+257]),We+=Je[Xe+257],Xe>7&&(ve(a,We,mt>>23&31),We+=B[Xe]);var yt=mt&31;Pe(a,We,He[yt]),We+=dt[yt],yt>3&&(Pe(a,We,mt>>5&8191),We+=f[yt])}else Pe(a,We,De[mt]),We+=Je[mt]}return Pe(a,We,De[256]),We+Je[256]},Nt=new G([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),jt=new Te(0),Qt=function(c,a,l,v,F,C){var T=C.z||c.length,V=new Te(v+T+5*(1+Math.ceil(T/7e3))+F),ae=V.subarray(v,V.length-F),_e=C.l,We=(C.r||0)&7;if(a){We&&(ae[0]=C.r>>3);for(var Ve=Nt[a-1],lt=Ve>>13,be=Ve&8191,Lt=(1<<l)-1,wt=C.p||new ie(32768),kt=C.h||new ie(Lt+1),ht=Math.ceil(l/3),Pt=2*ht,ir=function(hn){return(c[hn]^c[hn+1]<<ht^c[hn+2]<<Pt)&Lt},gr=new G(25e3),Rr=new ie(288),yn=new ie(32),Er=0,Gt=0,Dr=C.i||0,Zr=0,bt=C.w||0,Bt=0;Dr+2<T;++Dr){var U=ir(Dr),j=Dr&32767,Ee=kt[U];if(wt[j]=Ee,kt[U]=j,bt<=Dr){var De=T-Dr;if((Er>7e3||Zr>24576)&&(De>423||!_e)){We=At(c,ae,0,gr,Rr,yn,Gt,Zr,Bt,Dr-Bt,We),Zr=Er=Gt=0,Bt=Dr;for(var Je=0;Je<286;++Je)Rr[Je]=0;for(var Je=0;Je<30;++Je)yn[Je]=0}var He=2,dt=0,pt=be,Et=j-Ee&32767;if(De>2&&U==ir(Dr-Et))for(var de=Math.min(lt,De)-1,Ze=Math.min(32767,Dr),Xe=Math.min(258,De);Et<=Ze&&--pt&&j!=Ee;){if(c[Dr+He]==c[Dr+He-Et]){for(var mt=0;mt<Xe&&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,Je=0;Je<yt;++Je){var Rt=Dr-Et+Je&32767,Tt=wt[Rt],pr=Rt-Tt&32767;pr>It&&(It=pr,Ee=Rt)}}}j=Ee,Ee=wt[j],Et+=j-Ee&32767}if(dt){gr[Zr++]=268435456|_[He]<<18|I[dt];var sr=_[He]&31,_r=I[dt]&31;Gt+=B[sr]+f[_r],++Rr[257+sr],++yn[_r],bt=Dr+He,++Er}else gr[Zr++]=c[Dr],++Rr[c[Dr]]}}for(Dr=Math.max(Dr,bt);Dr<T;++Dr)gr[Zr++]=c[Dr],++Rr[c[Dr]];We=At(c,ae,_e,gr,Rr,yn,Gt,Zr,Bt,Dr-Bt,We),_e||(C.r=We&7|ae[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<T+_e;Dr+=65535){var Qr=Dr+65535;Qr>=T&&(ae[We/8|0]=_e,Qr=T),We=rt(ae,We+1,c.subarray(Dr,Qr))}C.i=T}return D(V,0,v+ce(We)+F)},ur=null,or=function(){var c=-1;return{p:function(a){for(var l=c,v=0;v<a.length;++v)l=ur[l&255^a[v]]^l>>>8;c=l},d:function(){return~c}}},xr=function(){var c=1,a=0;return{p:function(l){for(var v=c,F=a,C=l.length|0,T=0;T!=C;){for(var V=Math.min(T+2655,C);T<V;++T)F+=v+=l[T];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}}},fr=function(c,a,l,v,F){if(!F&&(F={l:1},a.dictionary)){var C=a.dictionary.subarray(-32768),T=new Te(C.length+c.length);T.set(C),T.set(c,C.length),c=T,F.w=C.length}return Qt(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)},L=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},nt=function(c,a,l){for(var v=c(),F=c.toString(),C=F.slice(F.indexOf("[")+1,F.lastIndexOf("]")).replace(/\s+/g,"").split(","),T=0;T<v.length;++T){var V=v[T],ae=C[T];if(typeof V=="function"){a+=";"+ae+"=";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+=";"+ae+".prototype."+Ve+"="+V.prototype[Ve].toString()}else a+=_e}else l[ae]=V}return a},k=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},d=function(c,a,l,v){if(!k[l]){for(var F="",C={},T=c.length-1,V=0;V<T;++V)F=nt(c[V],F,C);k[l]={c:nt(c[T],F,C),e:C}}var ae=L({},k[l].e);return Q(k[l].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+a.toString()+"}",l,ae,p(ae),v)},w=function(){return[Te,ie,G,B,f,E,S,R,le,Ne,Y,Le,te,Be,je,ee,ce,D,Ce,Re,_n,xe,we]},q=function(){return[Te,ie,G,B,f,E,_,I,z,X,he,W,Y,Nt,jt,te,ve,Pe,fe,ye,at,tt,rt,At,ce,D,Qt,fr,zr,xe]},Se=function(){return[vt,ar,ke,or,ur]},H=function(){return[zt,Ut]},ne=function(){return[Ir,ke,xr]},Ge=function(){return[Pr]},xe=function(c){return postMessage(c,[c.buffer])},we=function(c){return c&&{out:c.size&&new Te(c.size),dictionary:c.dictionary}},Ye=function(c,a,l,v,F,C){var T=d(l,v,F,function(V,ae){T.terminate(),C(V,ae)});return T.postMessage([c,a],a.consume?[c.buffer]:[]),function(){T.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,T){var V,ae=d(c,v,F,function(_e,We){_e?(ae.terminate(),a.ondata.call(a,_e)):Array.isArray(We)?We.length==1?(a.queuedSize-=We[0],a.ondrain&&a.ondrain(We[0])):(We[1]&&ae.terminate(),a.ondata.call(a,_e,We[0],We[1])):T(We)});ae.postMessage(l),a.queuedSize=0,a.push=function(_e,We){a.ondata||Ce(5),V&&a.ondata(Ce(4,0,1),null,!!We),a.queuedSize+=_e.length,ae.postMessage([_e,V=We],[_e.buffer])},a.terminate=function(){ae.terminate()},C&&(a.flush=function(){ae.postMessage([])})},ut=function(c,a){return c[a]|c[a+1]<<8},ct=function(c,a){return(c[a]|c[a+1]<<8|c[a+2]<<16|c[a+3]<<24)>>>0},Ie=function(c,a){return ct(c,a)+ct(c,a+4)*4294967296},ke=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&&ke(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)}},zt=function(c){(c[0]!=31||c[1]!=139||c[2]!=8)&&Ce(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)},Ut=function(c){var a=c.length;return(c[a-4]|c[a-3]<<8|c[a-2]<<16|c[a-1]<<24)>>>0},ar=function(c){return 10+(c.filename?c.filename.length+1:0)},Ir=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=xr();F.p(a.dictionary),ke(c,2,F.d())}},Pr=function(c,a){return((c[0]&15)!=8||c[0]>>4>7||(c[0]<<8|c[1])%31)&&Ce(6,"invalid zlib data"),(c[1]>>5&1)==+!a&&Ce(6,"invalid zlib data: "+(c[1]&32?"need":"unexpected")+" dictionary"),(c[1]>>3&4)+2};function Kr(c,a){return typeof c=="function"&&(a=c,c={}),this.ondata=a,c}var Tr=null,cr=null;function Ar(c,a,l){return l||(l=a,a={}),typeof l!="function"&&Ce(7),Ye(c,a,[q],function(v){return xe(zr(v.data[0],v.data[1]))},0,l)}function zr(c,a){return fr(c,a||{},0,0)}var cn=null,Sn=null;function An(c,a,l){return l||(l=a,a={}),typeof l!="function"&&Ce(7),Ye(c,a,[w],function(v){return xe(_n(v.data[0],we(v.data[1])))},1,l)}function _n(c,a){return Re(c,{i:2},a&&a.out,a&&a.dictionary)}var xi=null,Mr=null;function ei(c,a,l){return l||(l=a,a={}),typeof l!="function"&&Ce(7),Ye(c,a,[q,Se,function(){return[Bi]}],function(v){return xe(Bi(v.data[0],v.data[1]))},2,l)}function Bi(c,a){a||(a={});var l=or(),v=c.length;l.p(c);var F=fr(c,a,ar(a),8),C=F.length;return vt(F,a),ke(F,C-8,l.d()),ke(F,C-4,v),F}var zn=null,Oi=null;function yi(c,a,l){return l||(l=a,a={}),typeof l!="function"&&Ce(7),Ye(c,a,[w,H,function(){return[Ki]}],function(v){return xe(Ki(v.data[0],v.data[1]))},3,l)}function Ki(c,a){var l=zt(c);return l+8>c.length&&Ce(6,"invalid gzip data"),Re(c.subarray(l,-8),{i:2},a&&a.out||new Te(Ut(c)),a&&a.dictionary)}var Ca=null,Zi=null;function ni(c,a,l){return l||(l=a,a={}),typeof l!="function"&&Ce(7),Ye(c,a,[q,ne,function(){return[Si]}],function(v){return xe(Si(v.data[0],v.data[1]))},4,l)}function Si(c,a){a||(a={});var l=xr();l.p(c);var v=fr(c,a,a.dictionary?6:2,4);return Ir(v,a),ke(v,v.length-4,l.d()),v}var Ui=null,me=null;function Ue(c,a,l){return l||(l=a,a={}),typeof l!="function"&&Ce(7),Ye(c,a,[w,Ge,function(){return[Me]}],function(v){return xe(Me(v.data[0],we(v.data[1])))},5,l)}function Me(c,a){return Re(c.subarray(Pr(c,a&&a.dictionary),-4),{i:2},a&&a.out,a&&a.dictionary)}var st=null,Zt=null;function Kt(c,a,l){return l||(l=a,a={}),typeof l!="function"&&Ce(7),c[0]==31&&c[1]==139&&c[2]==8?yi(c,a,l):(c[0]&15)!=8||c[0]>>4>7||(c[0]<<8|c[1])%31?An(c,a,l):Ue(c,a,l)}function Br(c,a){return c[0]==31&&c[1]==139&&c[2]==8?Ki(c,a):(c[0]&15)!=8||c[0]>>4>7||(c[0]<<8|c[1])%31?_n(c,a):Me(c,a)}var hr=function(c,a,l,v){for(var F in c){var C=c[F],T=a+F,V=v;Array.isArray(C)&&(V=L(v,C[1]),C=C[0]),C instanceof Te?l[T]=[C,V]:(l[T+="/"]=[new Te(0),V],hr(C,T,l,v))}},Ur=typeof TextEncoder!="undefined"&&new TextEncoder,Wr=typeof TextDecoder!="undefined"&&new TextDecoder,en=0;try{Wr.decode(jt,{stream:!0}),en=1}catch(c){}var Vr=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:D(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)}},Hr=null,qr=null;function gn(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(Ur)return Ur.encode(c);for(var F=c.length,C=new Te(c.length+(c.length>>1)),T=0,V=function(We){C[T++]=We},v=0;v<F;++v){if(T+5>C.length){var ae=new Te(T+8+(F-v<<1));ae.set(C),C=ae}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 D(C,0,T)}function tn(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=Vr(c),C=F.s,l=F.r;return l.length&&Ce(8),C}}var Mn=function(c){return c==1?3:c<6?2:c==9?1:0},Rn=function(c,a){return a+30+ut(c,a+26)+ut(c,a+28)},pi=function(c,a,l){var v=ut(c,a+28),F=tn(c.subarray(a+46,a+46+v),!(ut(c,a+8)&2048)),C=a+46+v,T=ct(c,a+20),V=l&&T==4294967295?Pn(c,C):[T,ct(c,a+24),ct(c,a+42)],ae=V[0],_e=V[1],We=V[2];return[ut(c,a+10),ae,_e,F,C+ut(c,a+30)+ut(c,a+32),We]},Pn=function(c,a){for(;ut(c,a)!=1;a+=4+ut(c,a+2));return[Ie(c,a+12),Ie(c,a+4),Ie(c,a+20)]},ln=function(c){var a=0;if(c)for(var l in c){var v=c[l].length;v>65535&&Ce(9),a+=v+4}return a},Ht=function(c,a,l,v,F,C,T,V){var ae=v.length,_e=l.extra,We=V&&V.length,Ve=ln(_e);ke(c,a,T!=null?33639248:67324752),a+=4,T!=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 lt=new Date(l.mtime==null?Date.now():l.mtime),be=lt.getFullYear()-1980;if((be<0||be>119)&&Ce(10),ke(c,a,be<<25|lt.getMonth()+1<<21|lt.getDate()<<16|lt.getHours()<<11|lt.getMinutes()<<5|lt.getSeconds()>>1),a+=4,C!=-1&&(ke(c,a,l.crc),ke(c,a+4,C<0?-C-2:C),ke(c,a+8,l.size)),ke(c,a+12,ae),ke(c,a+14,Ve),a+=16,T!=null&&(ke(c,a,We),ke(c,a+6,l.attrs),ke(c,a+10,T),a+=14),c.set(v,a),a+=ae,Ve)for(var Lt in _e){var wt=_e[Lt],kt=wt.length;ke(c,a,+Lt),ke(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){ke(c,a,101010256),ke(c,a+8,l),ke(c,a+10,l),ke(c,a+12,v),ke(c,a+16,F)},er=null,tr=null,Xt=null,Nr=null;function Lr(c,a,l){l||(l=a,a={}),typeof l!="function"&&Ce(7);var v={};hr(c,"",v,a);var F=Object.keys(v),C=F.length,T=0,V=0,ae=C,_e=new Array(C),We=[],Ve=function(){for(var kt=0;kt<We.length;++kt)We[kt]()},lt=function(kt,ht){Ei(function(){l(kt,ht)})};Ei(function(){lt=l});var be=function(){var kt=new Te(V+22),ht=T,Pt=V-T;V=0;for(var ir=0;ir<ae;++ir){var gr=_e[ir];try{var Rr=gr.c.length;Ht(kt,V,gr,gr.f,gr.u,Rr);var yn=30+gr.f.length+ln(gr.extra),Er=V+yn;kt.set(gr.c,Er),Ht(kt,T,gr,gr.f,gr.u,Rr,V,gr.m),T+=16+yn+(gr.m?gr.m.length:0),V=Er+Rr}catch(Gt){return lt(Gt,null)}}Wt(kt,T,_e.length,Pt,ht),lt(null,kt)};C||be();for(var Lt=function(kt){var ht=F[kt],Pt=v[ht],ir=Pt[0],gr=Pt[1],Rr=or(),yn=ir.length;Rr.p(ir);var Er=gn(ht),Gt=Er.length,Dr=gr.comment,Zr=Dr&&gn(Dr),bt=Zr&&Zr.length,Bt=ln(gr.extra),U=gr.level==0?0:8,j=function(Ee,De){if(Ee)Ve(),lt(Ee,null);else{var Je=De.length;_e[kt]=L(gr,{size:yn,crc:Rr.d(),c:De,f:Er,m:Zr,u:Gt!=ht.length||Zr&&Dr.length!=bt,compression:U}),T+=30+Gt+Bt+Je,V+=76+2*(Gt+Bt)+(bt||0)+Je,--C||be()}};if(Gt>65535&&j(Ce(11,0,1),null),!U)j(null,ir);else if(yn<16e4)try{j(null,zr(ir,gr))}catch(Ee){j(Ee,null)}else We.push(Ar(ir,gr,j))},wt=0;wt<ae;++wt)Lt(wt);return Ve}function Jr(c,a){a||(a={});var l={},v=[];hr(c,"",l,a);var F=0,C=0;for(var T in l){var V=l[T],ae=V[0],_e=V[1],We=_e.level==0?0:8,Ve=gn(T),lt=Ve.length,be=_e.comment,Lt=be&&gn(be),wt=Lt&&Lt.length,kt=ln(_e.extra);lt>65535&&Ce(11);var ht=We?zr(ae,_e):ae,Pt=ht.length,ir=or();ir.p(ae),v.push(L(_e,{size:ae.length,crc:ir.d(),c:ht,f:Ve,m:Lt,u:lt!=T.length||Lt&&be.length!=wt,o:F,compression:We})),F+=30+lt+kt+Pt,C+=76+2*(lt+kt)+(wt||0)+Pt}for(var gr=new Te(C+22),Rr=F,yn=C-F,Er=0;Er<v.length;++Er){var Ve=v[Er];Ht(gr,Ve.o,Ve,Ve.f,Ve.u,Ve.c.length);var Gt=30+Ve.f.length+ln(Ve.extra);gr.set(Ve.c,Ve.o+Gt),Ht(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,Rr),gr}var Fn=null,Ln=null,li=null,ti=null,Ei=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(c){c()};function Yn(c,a,l){l||(l=a,a={}),typeof l!="function"&&Ce(7);var v=[],F=function(){for(var kt=0;kt<v.length;++kt)v[kt]()},C={},T=function(kt,ht){Ei(function(){l(kt,ht)})};Ei(function(){T=l});for(var V=c.length-22;ct(c,V)!=101010256;--V)if(!V||c.length-V>65558)return T(Ce(13,0,1),null),F;var ae=ut(c,V+8);if(ae){var _e=ae,We=ct(c,V+16),Ve=We==4294967295||_e==65535;if(Ve){var lt=ct(c,V-12);Ve=ct(c,lt)==101075792,Ve&&(_e=ae=ct(c,lt+32),We=ct(c,lt+48))}for(var be=a&&a.filter,Lt=function(kt){var ht=pi(c,We,Ve),Pt=ht[0],ir=ht[1],gr=ht[2],Rr=ht[3],yn=ht[4],Er=ht[5],Gt=Rn(c,Er);We=yn;var Dr=function(bt,Bt){bt?(F(),T(bt,null)):(Bt&&(C[Rr]=Bt),--ae||T(null,C))};if(!be||be({name:Rr,size:ir,originalSize:gr,compression:Pt}))if(!Pt)Dr(null,D(c,Gt,Gt+ir));else if(Pt==8){var Zr=c.subarray(Gt,Gt+ir);if(gr<524288||ir>.8*gr)try{Dr(null,_n(Zr,{out:new Te(gr)}))}catch(bt){Dr(bt,null)}else v.push(An(Zr,{size:gr},Dr))}else Dr(Ce(14,"unknown compression type "+Pt,1),null);else Dr(null,null)},wt=0;wt<_e;++wt)Lt(wt)}else T(null,{});return F}function Hn(c,a){for(var l={},v=c.length-22;ct(c,v)!=101010256;--v)(!v||c.length-v>65558)&&Ce(13);var F=ut(c,v+8);if(!F)return{};var C=ct(c,v+16),T=C==4294967295||F==65535;if(T){var V=ct(c,v-12);T=ct(c,V)==101075792,T&&(F=ct(c,V+32),C=ct(c,V+48))}for(var ae=a&&a.filter,_e=0;_e<F;++_e){var We=pi(c,C,T),Ve=We[0],lt=We[1],be=We[2],Lt=We[3],wt=We[4],kt=We[5],ht=Rn(c,kt);C=wt,(!ae||ae({name:Lt,size:lt,originalSize:be,compression:Ve}))&&(Ve?Ve==8?l[Lt]=_n(c.subarray(ht,ht+lt),{out:new Te(be)}):Ce(14,"unknown compression type "+Ve):l[Lt]=D(c,ht,ht+lt))}return l}var sn=function(){return typeof window!="undefined"?window:typeof x.g!="undefined"?x.g:typeof self!="undefined"?self:this}();function vi(){sn.console&&typeof sn.console.log=="function"&&sn.console.log.apply(sn.console,arguments)}var In={log:vi,warn:function(c){sn.console&&(typeof sn.console.warn=="function"?sn.console.warn.apply(sn.console,arguments):vi.call(null,arguments))},error:function(c){sn.console&&(typeof sn.console.error=="function"?sn.console.error.apply(sn.console,arguments):vi(c))}};function ii(c,a,l){var v=new XMLHttpRequest;v.open("GET",c),v.responseType="blob",v.onload=function(){ra(v.response,a,l)},v.onerror=function(){In.error("could not download file")},v.send()}function bi(c){var a=new XMLHttpRequest;a.open("HEAD",c,!1);try{a.send()}catch(l){}return a.status>=200&&a.status<=299}function Di(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 Gn,Li,ra=sn.saveAs||((typeof window=="undefined"?"undefined":(0,ge.Z)(window))!=="object"||window!==sn?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(c,a,l){var v=sn.URL||sn.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?bi(F.href)?ii(c,a,l):Di(F,F.target="_blank"):Di(F)):(F.href=v.createObjectURL(c),setTimeout(function(){v.revokeObjectURL(F.href)},4e4),setTimeout(function(){Di(F)},0))}:"msSaveOrOpenBlob"in navigator?function(c,a,l){if(a=a||c.name||"download",typeof c=="string")if(bi(c))ii(c,a,l);else{var v=document.createElement("a");v.href=c,v.target="_blank",setTimeout(function(){Di(v)})}else navigator.msSaveOrOpenBlob(function(F,C){return C===void 0?C={autoBom:!1}:(0,ge.Z)(C)!=="object"&&(In.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 ii(c,a,l);var F=c.type==="application/octet-stream",C=/constructor/i.test(sn.HTMLElement)||sn.safari,T=/CriOS\/[\d]+/.test(navigator.userAgent);if((T||F&&C)&&(typeof FileReader=="undefined"?"undefined":(0,ge.Z)(FileReader))==="object"){var V=new FileReader;V.onloadend=function(){var We=V.result;We=T?We:We.replace(/^data:[^;]*;/,"data:attachment/file;"),v?v.location.href=We:location=We,v=null},V.readAsDataURL(c)}else{var ae=sn.URL||sn.webkitURL,_e=ae.createObjectURL(c);v?v.location=_e:location.href=_e,v=null,setTimeout(function(){ae.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,T=F.exec(c);T&&(a=C(T),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),ae=this.g.toString(16),_e=this.b.toString(16);return V.length==1&&(V="0"+V),ae.length==1&&(ae="0"+ae),_e.length==1&&(_e="0"+_e),"#"+V+ae+_e}}function un(c,a){var l=c[0],v=c[1],F=c[2],C=c[3];l=Nn(l,v,F,C,a[0],7,-680876936),C=Nn(C,l,v,F,a[1],12,-389564586),F=Nn(F,C,l,v,a[2],17,606105819),v=Nn(v,F,C,l,a[3],22,-1044525330),l=Nn(l,v,F,C,a[4],7,-176418897),C=Nn(C,l,v,F,a[5],12,1200080426),F=Nn(F,C,l,v,a[6],17,-1473231341),v=Nn(v,F,C,l,a[7],22,-45705983),l=Nn(l,v,F,C,a[8],7,1770035416),C=Nn(C,l,v,F,a[9],12,-1958414417),F=Nn(F,C,l,v,a[10],17,-42063),v=Nn(v,F,C,l,a[11],22,-1990404162),l=Nn(l,v,F,C,a[12],7,1804603682),C=Nn(C,l,v,F,a[13],12,-40341101),F=Nn(F,C,l,v,a[14],17,-1502002290),l=wn(l,v=Nn(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=jn(l,v=wn(v,F,C,l,a[12],20,-1926607734),F,C,a[5],4,-378558),C=jn(C,l,v,F,a[8],11,-2022574463),F=jn(F,C,l,v,a[11],16,1839030562),v=jn(v,F,C,l,a[14],23,-35309556),l=jn(l,v,F,C,a[1],4,-1530992060),C=jn(C,l,v,F,a[4],11,1272893353),F=jn(F,C,l,v,a[7],16,-155497632),v=jn(v,F,C,l,a[10],23,-1094730640),l=jn(l,v,F,C,a[13],4,681279174),C=jn(C,l,v,F,a[0],11,-358537222),F=jn(F,C,l,v,a[3],16,-722521979),v=jn(v,F,C,l,a[6],23,76029189),l=jn(l,v,F,C,a[9],4,-640364487),C=jn(C,l,v,F,a[12],11,-421815835),F=jn(F,C,l,v,a[15],16,530742520),l=ui(l,v=jn(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]=Ii(l,c[0]),c[1]=Ii(v,c[1]),c[2]=Ii(F,c[2]),c[3]=Ii(C,c[3])}function rn(c,a,l,v,F,C){return a=Ii(Ii(a,c),Ii(v,C)),Ii(a<<F|a>>>32-F,l)}function Nn(c,a,l,v,F,C,T){return rn(a&l|~a&v,c,a,F,C,T)}function wn(c,a,l,v,F,C,T){return rn(a&v|l&~v,c,a,F,C,T)}function jn(c,a,l,v,F,C,T){return rn(a^l^v,c,a,F,C,T)}function ui(c,a,l,v,F,C,T){return rn(l^(a|~v),c,a,F,C,T)}function _i(c){var a,l=c.length,v=[1732584193,-271733879,-1732584194,271733878];for(a=64;a<=c.length;a+=64)un(v,ca(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(un(v,F),a=0;a<16;a++)F[a]=0;return F[14]=8*l,un(v,F),v}function ca(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}Gn=sn.atob.bind(sn),Li=sn.btoa.bind(sn);var Yi="0123456789abcdef".split("");function so(c){for(var a="",l=0;l<4;l++)a+=Yi[c>>8*l+4&15]+Yi[c>>8*l&15];return a}function ri(c){return String.fromCharCode((255&c)>>0,(65280&c)>>8,(16711680&c)>>16,(4278190080&c)>>24)}function On(c){return _i(c).map(ri).join("")}var ki=function(c){for(var a=0;a<c.length;a++)c[a]=so(c[a]);return c.join("")}(_i("hello"))!="5d41402abc4b2a76b9719d911017c592";function Ii(c,a){if(ki){var l=(65535&c)+(65535&a);return(c>>16)+(a>>16)+(l>>16)<<16|65535&l}return c+a&4294967295}function da(c,a){var l,v,F,C;if(c!==l){for(var T=(F=c,C=1+(256/c.length>>0),new Array(C+1).join(F)),V=[],ae=0;ae<256;ae++)V[ae]=ae;var _e=0;for(ae=0;ae<256;ae++){var We=V[ae];_e=(_e+We+T.charCodeAt(ae))%256,V[ae]=V[_e],V[_e]=We}l=c,v=V}else V=v;var Ve=a.length,lt=0,be=0,Lt="";for(ae=0;ae<Ve;ae++)be=(be+(We=V[lt=(lt+1)%256]))%256,V[lt]=V[be],V[be]=We,T=V[(V[lt]+V[be])%256],Lt+=String.fromCharCode(a.charCodeAt(ae)^T);return Lt}var To={print:4,modify:8,copy:16,"annot-forms":32};function ia(c,a,l,v){this.v=1,this.r=2;var F=192;c.forEach(function(V){if(To.perm!==void 0)throw new Error("Invalid permission: "+V);F+=To[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),T=(l+this.padding).substr(0,32);this.O=this.processOwnerPassword(C,T),this.P=-(1+(255^F)),this.encryptionKey=On(C+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(v)).substr(0,5),this.U=da(this.encryptionKey,this.padding)}function Ji(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 ja(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 T=a[l][C];try{T[0].apply(c,v)}catch(V){sn.console&&In.error("jsPDF PubSub Error",V.message,V)}T[1]&&F.push(C)}F.length&&F.forEach(this.unsubscribe)}},this.getTopics=function(){return a}}function Fa(c){if(!(this instanceof Fa))return new Fa(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 ro(c,a){this.gState=c,this.matrix=a,this.id="",this.objectNumber=-1}function wo(c,a,l,v,F){if(!(this instanceof wo))return new wo(c,a,l,v,F);this.type=c==="axial"?2:3,this.coords=a,this.colors=l,ro.call(this,v,F)}function Ba(c,a,l,v,F){if(!(this instanceof Ba))return new Ba(c,a,l,v,F);this.boundingBox=c,this.xStep=a,this.yStep=l,this.stream="",this.cloneIndex=0,ro.call(this,v,F)}function di(c){var a,l=typeof arguments[0]=="string"?arguments[0]:"p",v=arguments[1],F=arguments[2],C=arguments[3],T=[],V=1,ae=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&&(ae=c.floatPrecision),_e=c.defaultPathOperation||"S"),T=c.filters||(C===!0?["FlateEncode"]:T),v=v||"mm",l=(""+(l||"P")).toLowerCase();var Ve=c.putOnlyUsedFonts||!1,lt={},be={internal:{},__private__:{}};be.__private__.PubSub=ja;var Lt="1.3",wt=be.__private__.getPdfVersion=function(){return Lt};be.__private__.setPdfVersion=function(N){Lt=N};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]};be.__private__.getPageFormats=function(){return kt};var ht=be.__private__.getPageFormat=function(N){return kt[N]};F=F||"a4";var Pt={COMPAT:"compat",ADVANCED:"advanced"},ir=Pt.COMPAT;function gr(){this.saveGraphicsState(),St(new Hi(Dn,0,0,-Dn,0,kc()*Dn).toString()+" cm"),this.setFontSize(this.getFontSize()/Dn),_e="n",ir=Pt.ADVANCED}function Rr(){this.restoreGraphicsState(),_e="S",ir=Pt.COMPAT}var yn=be.__private__.combineFontStyleAndFontWeight=function(N,$e){if(N=="bold"&&$e=="normal"||N=="bold"&&$e==400||N=="normal"&&$e=="italic"||N=="bold"&&$e=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return $e&&(N=$e==400||$e==="normal"?N==="italic"?"italic":"normal":$e!=700&&$e!=="bold"||N!=="normal"?($e==700?"bold":$e)+""+N:"bold"),N};be.advancedAPI=function(N){var $e=ir===Pt.COMPAT;return $e&&gr.call(this),typeof N!="function"||(N(this),$e&&Rr.call(this)),this},be.compatAPI=function(N){var $e=ir===Pt.ADVANCED;return $e&&Rr.call(this),typeof N!="function"||(N(this),$e&&gr.call(this)),this},be.isAdvancedAPI=function(){return ir===Pt.ADVANCED};var Er,Gt=function(N){if(ir!==Pt.ADVANCED)throw new Error(N+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Dr=be.roundToPrecision=be.__private__.roundToPrecision=function(N,$e){var Dt=a||$e;if(isNaN(N)||isNaN(Dt))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return N.toFixed(Dt).replace(/0+$/,"")};Er=be.hpf=be.__private__.hpf=typeof ae=="number"?function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.hpf");return Dr(N,ae)}:ae==="smart"?function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.hpf");return Dr(N,N>-1&&N<1?16:5)}:function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.hpf");return Dr(N,16)};var Zr=be.f2=be.__private__.f2=function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.f2");return Dr(N,2)},bt=be.__private__.f3=function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.f3");return Dr(N,3)},Bt=be.scale=be.__private__.scale=function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.scale");return ir===Pt.COMPAT?N*Dn:ir===Pt.ADVANCED?N:void 0},U=function(N){return ir===Pt.COMPAT?kc()-N:ir===Pt.ADVANCED?N:void 0},j=function(N){return Bt(U(N))};be.__private__.setPrecision=be.setPrecision=function(N){typeof parseInt(N,10)=="number"&&(a=parseInt(N,10))};var Ee,De="00000000000000000000000000000000",Je=be.__private__.getFileId=function(){return De},He=be.__private__.setFileId=function(N){return De=N!==void 0&&/^[a-fA-F0-9]{32}$/.test(N)?N.toUpperCase():De.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),We!==null&&(Os=new ia(We.userPermissions,We.userPassword,We.ownerPassword,De)),De};be.setFileId=function(N){return He(N),this},be.getFileId=function(){return Je()};var dt=be.__private__.convertDateToPDFDate=function(N){var $e=N.getTimezoneOffset(),Dt=$e<0?"+":"-",Jt=Math.floor(Math.abs($e/60)),vr=Math.abs($e%60),Xr=[Dt,Xe(Jt),"'",Xe(vr),"'"].join("");return["D:",N.getFullYear(),Xe(N.getMonth()+1),Xe(N.getDate()),Xe(N.getHours()),Xe(N.getMinutes()),Xe(N.getSeconds()),Xr].join("")},pt=be.__private__.convertPDFDateToDate=function(N){var $e=parseInt(N.substr(2,4),10),Dt=parseInt(N.substr(6,2),10)-1,Jt=parseInt(N.substr(8,2),10),vr=parseInt(N.substr(10,2),10),Xr=parseInt(N.substr(12,2),10),kn=parseInt(N.substr(14,2),10);return new Date($e,Dt,Jt,vr,Xr,kn,0)},Et=be.__private__.setCreationDate=function(N){var $e;if(N===void 0&&(N=new Date),N instanceof Date)$e=dt(N);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(N))throw new Error("Invalid argument passed to jsPDF.setCreationDate");$e=N}return Ee=$e},de=be.__private__.getCreationDate=function(N){var $e=Ee;return N==="jsDate"&&($e=pt(Ee)),$e};be.setCreationDate=function(N){return Et(N),this},be.getCreationDate=function(N){return de(N)};var Ze,Xe=be.__private__.padd2=function(N){return("0"+parseInt(N)).slice(-2)},mt=be.__private__.padd2Hex=function(N){return("00"+(N=N.toString())).substr(N.length)},yt=0,It=[],Rt=[],Tt=0,pr=[],sr=[],_r=!1,Qr=Rt,hn=function(){yt=0,Tt=0,Rt=[],It=[],pr=[],va=Ho(),uo=Ho()};be.__private__.setCustomOutputDestination=function(N){_r=!0,Qr=N};var rr=function(N){_r||(Qr=N)};be.__private__.resetCustomOutputDestination=function(){_r=!1,Qr=Rt};var St=be.__private__.out=function(N){return N=N.toString(),Tt+=N.length+1,Qr.push(N),Qr},Un=be.__private__.write=function(N){return St(arguments.length===1?N.toString():Array.prototype.join.call(arguments," "))},jr=be.__private__.getArrayBuffer=function(N){for(var $e=N.length,Dt=new ArrayBuffer($e),Jt=new Uint8Array(Dt);$e--;)Jt[$e]=N.charCodeAt($e);return Dt},yr=[["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]];be.__private__.getStandardFonts=function(){return yr};var Fr=c.fontSize||16;be.__private__.setFontSize=be.setFontSize=function(N){return Fr=ir===Pt.ADVANCED?N/Dn:N,this};var br,kr=be.__private__.getFontSize=be.getFontSize=function(){return ir===Pt.COMPAT?Fr:Fr*Dn},fn=c.R2L||!1;be.__private__.setR2L=be.setR2L=function(N){return fn=N,this},be.__private__.getR2L=be.getR2L=function(){return fn};var $n,Kn=be.__private__.setZoomMode=function(N){var $e=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(N))br=N;else if(isNaN(N)){if($e.indexOf(N)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+N+'" is not recognized.');br=N}else br=parseInt(N,10)};be.__private__.getZoomMode=function(){return br};var Bn,ai=be.__private__.setPageMode=function(N){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(N)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+N+'" is not recognized.');$n=N};be.__private__.getPageMode=function(){return $n};var Ci=be.__private__.setLayoutMode=function(N){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(N)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+N+'" is not recognized.');Bn=N};be.__private__.getLayoutMode=function(){return Bn},be.__private__.setDisplayMode=be.setDisplayMode=function(N,$e,Dt){return Kn(N),Ci($e),ai(Dt),this};var fi={title:"",subject:"",author:"",keywords:"",creator:""};be.__private__.getDocumentProperty=function(N){if(Object.keys(fi).indexOf(N)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return fi[N]},be.__private__.getDocumentProperties=function(){return fi},be.__private__.setDocumentProperties=be.setProperties=be.setDocumentProperties=function(N){for(var $e in fi)fi.hasOwnProperty($e)&&N[$e]&&(fi[$e]=N[$e]);return this},be.__private__.setDocumentProperty=function(N,$e){if(Object.keys(fi).indexOf(N)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return fi[N]=$e};var gi,Dn,pa,qn,co,Ri={},na={},Ta=[],ga={},Vn={},Wn={},mi={},hi=null,Vi=0,mn=[],Xn=new ja(be),oa=c.hotfixes||[],ji={},Lo={},ko=[],Hi=function N($e,Dt,Jt,vr,Xr,kn){if(!(this instanceof N))return new N($e,Dt,Jt,vr,Xr,kn);isNaN($e)&&($e=1),isNaN(Dt)&&(Dt=0),isNaN(Jt)&&(Jt=0),isNaN(vr)&&(vr=1),isNaN(Xr)&&(Xr=0),isNaN(kn)&&(kn=0),this._matrix=[$e,Dt,Jt,vr,Xr,kn]};Object.defineProperty(Hi.prototype,"sx",{get:function(){return this._matrix[0]},set:function(N){this._matrix[0]=N}}),Object.defineProperty(Hi.prototype,"shy",{get:function(){return this._matrix[1]},set:function(N){this._matrix[1]=N}}),Object.defineProperty(Hi.prototype,"shx",{get:function(){return this._matrix[2]},set:function(N){this._matrix[2]=N}}),Object.defineProperty(Hi.prototype,"sy",{get:function(){return this._matrix[3]},set:function(N){this._matrix[3]=N}}),Object.defineProperty(Hi.prototype,"tx",{get:function(){return this._matrix[4]},set:function(N){this._matrix[4]=N}}),Object.defineProperty(Hi.prototype,"ty",{get:function(){return this._matrix[5]},set:function(N){this._matrix[5]=N}}),Object.defineProperty(Hi.prototype,"a",{get:function(){return this._matrix[0]},set:function(N){this._matrix[0]=N}}),Object.defineProperty(Hi.prototype,"b",{get:function(){return this._matrix[1]},set:function(N){this._matrix[1]=N}}),Object.defineProperty(Hi.prototype,"c",{get:function(){return this._matrix[2]},set:function(N){this._matrix[2]=N}}),Object.defineProperty(Hi.prototype,"d",{get:function(){return this._matrix[3]},set:function(N){this._matrix[3]=N}}),Object.defineProperty(Hi.prototype,"e",{get:function(){return this._matrix[4]},set:function(N){this._matrix[4]=N}}),Object.defineProperty(Hi.prototype,"f",{get:function(){return this._matrix[5]},set:function(N){this._matrix[5]=N}}),Object.defineProperty(Hi.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Hi.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Hi.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Hi.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Hi.prototype.join=function(N){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Er).join(N)},Hi.prototype.multiply=function(N){var $e=N.sx*this.sx+N.shy*this.shx,Dt=N.sx*this.shy+N.shy*this.sy,Jt=N.shx*this.sx+N.sy*this.shx,vr=N.shx*this.shy+N.sy*this.sy,Xr=N.tx*this.sx+N.ty*this.shx+this.tx,kn=N.tx*this.shy+N.ty*this.sy+this.ty;return new Hi($e,Dt,Jt,vr,Xr,kn)},Hi.prototype.decompose=function(){var N=this.sx,$e=this.shy,Dt=this.shx,Jt=this.sy,vr=this.tx,Xr=this.ty,kn=Math.sqrt(N*N+$e*$e),Pi=(N/=kn)*Dt+($e/=kn)*Jt;Dt-=N*Pi,Jt-=$e*Pi;var ea=Math.sqrt(Dt*Dt+Jt*Jt);return Pi/=ea,N*(Jt/=ea)<$e*(Dt/=ea)&&(N=-N,$e=-$e,Pi=-Pi,kn=-kn),{scale:new Hi(kn,0,0,ea,0,0),translate:new Hi(1,0,0,1,vr,Xr),rotate:new Hi(N,$e,-$e,N,0,0),skew:new Hi(1,0,Pi,1,0,0)}},Hi.prototype.toString=function(N){return this.join(" ")},Hi.prototype.inversed=function(){var N=this.sx,$e=this.shy,Dt=this.shx,Jt=this.sy,vr=this.tx,Xr=this.ty,kn=1/(N*Jt-$e*Dt),Pi=Jt*kn,ea=-$e*kn,ka=-Dt*kn,xa=N*kn;return new Hi(Pi,ea,ka,xa,-Pi*vr-ka*Xr,-ea*vr-xa*Xr)},Hi.prototype.applyToPoint=function(N){var $e=N.x*this.sx+N.y*this.shx+this.tx,Dt=N.x*this.shy+N.y*this.sy+this.ty;return new Au($e,Dt)},Hi.prototype.applyToRectangle=function(N){var $e=this.applyToPoint(N),Dt=this.applyToPoint(new Au(N.x+N.w,N.y+N.h));return new uu($e.x,$e.y,Dt.x-$e.x,Dt.y-$e.y)},Hi.prototype.clone=function(){var N=this.sx,$e=this.shy,Dt=this.shx,Jt=this.sy,vr=this.tx,Xr=this.ty;return new Hi(N,$e,Dt,Jt,vr,Xr)},be.Matrix=Hi;var eo=be.matrixMult=function(N,$e){return $e.multiply(N)},as=new Hi(1,0,0,1,0,0);be.unitMatrix=be.identityMatrix=as;var Cn=function(N,$e){if(!Vn[N]){var Dt=($e instanceof wo?"Sh":"P")+(Object.keys(ga).length+1).toString(10);$e.id=Dt,Vn[N]=Dt,ga[Dt]=$e,Xn.publish("addPattern",$e)}};be.ShadingPattern=wo,be.TilingPattern=Ba,be.addShadingPattern=function(N,$e){return Gt("addShadingPattern()"),Cn(N,$e),this},be.beginTilingPattern=function(N){Gt("beginTilingPattern()"),vc(N.boundingBox[0],N.boundingBox[1],N.boundingBox[2]-N.boundingBox[0],N.boundingBox[3]-N.boundingBox[1],N.matrix)},be.endTilingPattern=function(N,$e){Gt("endTilingPattern()"),$e.stream=sr[Ze].join(`
`),Cn(N,$e),Xn.publish("endTilingPattern",$e),ko.pop().restore()};var Ao=be.__private__.newObject=function(){var N=Ho();return qi(N,!0),N},Ho=be.__private__.newObjectDeferred=function(){return yt++,It[yt]=function(){return Tt},yt},qi=function(N,$e){return $e=typeof $e=="boolean"&&$e,It[N]=Tt,$e&&St(N+" 0 obj"),N},on=be.__private__.newAdditionalObject=function(){var N={objId:Ho(),content:""};return pr.push(N),N},va=Ho(),uo=Ho(),Va=be.__private__.decodeColorString=function(N){var $e=N.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},Mi=be.__private__.encodeColorString=function(N){var $e;typeof N=="string"&&(N={ch1:N});var Dt=N.ch1,Jt=N.ch2,vr=N.ch3,Xr=N.ch4,kn=N.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof Dt=="string"&&Dt.charAt(0)!=="#"){var Pi=new si(Dt);if(Pi.ok)Dt=Pi.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 ea=parseInt(Dt.substr(1),16);Dt=ea>>16&255,Jt=ea>>8&255,vr=255&ea}if(Jt===void 0||Xr===void 0&&Dt===Jt&&Jt===vr)if(typeof Dt=="string")$e=Dt+" "+kn[0];else switch(N.precision){case 2:$e=Zr(Dt/255)+" "+kn[0];break;case 3:default:$e=bt(Dt/255)+" "+kn[0]}else if(Xr===void 0||(0,ge.Z)(Xr)==="object"){if(Xr&&!isNaN(Xr.a)&&Xr.a===0)return $e=["1.","1.","1.",kn[1]].join(" ");if(typeof Dt=="string")$e=[Dt,Jt,vr,kn[1]].join(" ");else switch(N.precision){case 2:$e=[Zr(Dt/255),Zr(Jt/255),Zr(vr/255),kn[1]].join(" ");break;default:case 3:$e=[bt(Dt/255),bt(Jt/255),bt(vr/255),kn[1]].join(" ")}}else if(typeof Dt=="string")$e=[Dt,Jt,vr,Xr,kn[2]].join(" ");else switch(N.precision){case 2:$e=[Zr(Dt),Zr(Jt),Zr(vr),Zr(Xr),kn[2]].join(" ");break;case 3:default:$e=[bt(Dt),bt(Jt),bt(vr),bt(Xr),kn[2]].join(" ")}return $e},Do=be.__private__.getFilters=function(){return T},Po=be.__private__.putStream=function(N){var $e=(N=N||{}).data||"",Dt=N.filters||Do(),Jt=N.alreadyAppliedFilters||[],vr=N.addLength1||!1,Xr=$e.length,kn=N.objectId,Pi=function(hl){return hl};if(We!==null&&kn===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");We!==null&&(Pi=Os.encryptor(kn,0));var ea={};Dt===!0&&(Dt=["FlateEncode"]);var ka=N.additionalKeyValues||[],xa=(ea=di.API.processDataByFilters!==void 0?di.API.processDataByFilters($e,Dt):{data:$e,reverseChain:[]}).reverseChain+(Array.isArray(Jt)?Jt.join(" "):Jt.toString());if(ea.data.length!==0&&(ka.push({key:"Length",value:ea.data.length}),vr===!0&&ka.push({key:"Length1",value:Xr})),xa.length!=0)if(xa.split("/").length-1==1)ka.push({key:"Filter",value:xa});else{ka.push({key:"Filter",value:"["+xa+"]"});for(var zi=0;zi<ka.length;zi+=1)if(ka[zi].key==="DecodeParms"){for(var vs=[],xs=0;xs<ea.reverseChain.split("/").length-1;xs+=1)vs.push("null");vs.push(ka[zi].value),ka[zi].value="["+vs.join(" ")+"]"}}St("<<");for(var zo=0;zo<ka.length;zo++)St("/"+ka[zo].key+" "+ka[zo].value);St(">>"),ea.data.length!==0&&(St("stream"),St(Pi(ea.data)),St("endstream"))},os=be.__private__.putPage=function(N){var $e=N.number,Dt=N.data,Jt=N.objId,vr=N.contentsObjId;qi(Jt,!0),St("<</Type /Page"),St("/Parent "+N.rootDictionaryObjId+" 0 R"),St("/Resources "+N.resourceDictionaryObjId+" 0 R"),St("/MediaBox ["+parseFloat(Er(N.mediaBox.bottomLeftX))+" "+parseFloat(Er(N.mediaBox.bottomLeftY))+" "+Er(N.mediaBox.topRightX)+" "+Er(N.mediaBox.topRightY)+"]"),N.cropBox!==null&&St("/CropBox ["+Er(N.cropBox.bottomLeftX)+" "+Er(N.cropBox.bottomLeftY)+" "+Er(N.cropBox.topRightX)+" "+Er(N.cropBox.topRightY)+"]"),N.bleedBox!==null&&St("/BleedBox ["+Er(N.bleedBox.bottomLeftX)+" "+Er(N.bleedBox.bottomLeftY)+" "+Er(N.bleedBox.topRightX)+" "+Er(N.bleedBox.topRightY)+"]"),N.trimBox!==null&&St("/TrimBox ["+Er(N.trimBox.bottomLeftX)+" "+Er(N.trimBox.bottomLeftY)+" "+Er(N.trimBox.topRightX)+" "+Er(N.trimBox.topRightY)+"]"),N.artBox!==null&&St("/ArtBox ["+Er(N.artBox.bottomLeftX)+" "+Er(N.artBox.bottomLeftY)+" "+Er(N.artBox.topRightX)+" "+Er(N.artBox.topRightY)+"]"),typeof N.userUnit=="number"&&N.userUnit!==1&&St("/UserUnit "+N.userUnit),Xn.publish("putPage",{objId:Jt,pageContext:mn[$e],pageNumber:$e,page:Dt}),St("/Contents "+vr+" 0 R"),St(">>"),St("endobj");var Xr=Dt.join(`
`);return ir===Pt.ADVANCED&&(Xr+=`
Q`),qi(vr,!0),Po({data:Xr,filters:Do(),objectId:vr}),St("endobj"),Jt},fs=be.__private__.putPages=function(){var N,$e,Dt=[];for(N=1;N<=Vi;N++)mn[N].objId=Ho(),mn[N].contentsObjId=Ho();for(N=1;N<=Vi;N++)Dt.push(os({number:N,data:sr[N],objId:mn[N].objId,contentsObjId:mn[N].contentsObjId,mediaBox:mn[N].mediaBox,cropBox:mn[N].cropBox,bleedBox:mn[N].bleedBox,trimBox:mn[N].trimBox,artBox:mn[N].artBox,userUnit:mn[N].userUnit,rootDictionaryObjId:va,resourceDictionaryObjId:uo}));qi(va,!0),St("<</Type /Pages");var Jt="/Kids [";for($e=0;$e<Vi;$e++)Jt+=Dt[$e]+" 0 R ";St(Jt+"]"),St("/Count "+Vi),St(">>"),St("endobj"),Xn.publish("postPutPages")},ss=function(N){Xn.publish("putFont",{font:N,out:St,newObject:Ao,putStream:Po}),N.isAlreadyPutted!==!0&&(N.objectNumber=Ao(),St("<<"),St("/Type /Font"),St("/BaseFont /"+Ji(N.postScriptName)),St("/Subtype /Type1"),typeof N.encoding=="string"&&St("/Encoding /"+N.encoding),St("/FirstChar 32"),St("/LastChar 255"),St(">>"),St("endobj"))},hs=function(){for(var N in Ri)Ri.hasOwnProperty(N)&&(Ve===!1||Ve===!0&&lt.hasOwnProperty(N))&&ss(Ri[N])},Bl=function(N){N.objectNumber=Ao();var $e=[];$e.push({key:"Type",value:"/XObject"}),$e.push({key:"Subtype",value:"/Form"}),$e.push({key:"BBox",value:"["+[Er(N.x),Er(N.y),Er(N.x+N.width),Er(N.y+N.height)].join(" ")+"]"}),$e.push({key:"Matrix",value:"["+N.matrix.toString()+"]"});var Dt=N.pages[1].join(`
`);Po({data:Dt,additionalKeyValues:$e,objectId:N.objectNumber}),St("endobj")},qo=function(){for(var N in ji)ji.hasOwnProperty(N)&&Bl(ji[N])},Ds=function(N,$e){var Dt,Jt=[],vr=1/($e-1);for(Dt=0;Dt<1;Dt+=vr)Jt.push(Dt);if(Jt.push(1),N[0].offset!=0){var Xr={offset:0,color:N[0].color};N.unshift(Xr)}if(N[N.length-1].offset!=1){var kn={offset:1,color:N[N.length-1].color};N.push(kn)}for(var Pi="",ea=0,ka=0;ka<Jt.length;ka++){for(Dt=Jt[ka];Dt>N[ea+1].offset;)ea++;var xa=N[ea].offset,zi=(Dt-xa)/(N[ea+1].offset-xa),vs=N[ea].color,xs=N[ea+1].color;Pi+=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 Pi.trim()},ps=function(N,$e){$e||($e=21);var Dt=Ao(),Jt=Ds(N.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]"}),Po({data:Jt,additionalKeyValues:vr,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Dt}),St("endobj"),N.objectNumber=Ao(),St("<< /ShadingType "+N.type),St("/ColorSpace /DeviceRGB");var Xr="/Coords ["+Er(parseFloat(N.coords[0]))+" "+Er(parseFloat(N.coords[1]))+" ";N.type===2?Xr+=Er(parseFloat(N.coords[2]))+" "+Er(parseFloat(N.coords[3])):Xr+=Er(parseFloat(N.coords[2]))+" "+Er(parseFloat(N.coords[3]))+" "+Er(parseFloat(N.coords[4]))+" "+Er(parseFloat(N.coords[5])),St(Xr+="]"),N.matrix&&St("/Matrix ["+N.matrix.toString()+"]"),St("/Function "+Dt+" 0 R"),St("/Extend [true true]"),St(">>"),St("endobj")},jo=function(N,$e){var Dt=Ho(),Jt=Ao();$e.push({resourcesOid:Dt,objectOid:Jt}),N.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:"["+N.boundingBox.map(Er).join(" ")+"]"}),vr.push({key:"XStep",value:Er(N.xStep)}),vr.push({key:"YStep",value:Er(N.yStep)}),vr.push({key:"Resources",value:Dt+" 0 R"}),N.matrix&&vr.push({key:"Matrix",value:"["+N.matrix.toString()+"]"}),Po({data:N.stream,additionalKeyValues:vr,objectId:N.objectNumber}),St("endobj")},yo=function(N){var $e;for($e in ga)ga.hasOwnProperty($e)&&(ga[$e]instanceof wo?ps(ga[$e]):ga[$e]instanceof Ba&&jo(ga[$e],N))},Hs=function(N){for(var $e in N.objectNumber=Ao(),St("<<"),N)switch($e){case"opacity":St("/ca "+Zr(N[$e]));break;case"stroke-opacity":St("/CA "+Zr(N[$e]))}St(">>"),St("endobj")},oc=function(){var N;for(N in Wn)Wn.hasOwnProperty(N)&&Hs(Wn[N])},Sl=function(){for(var N in St("/XObject <<"),ji)ji.hasOwnProperty(N)&&ji[N].objectNumber>=0&&St("/"+N+" "+ji[N].objectNumber+" 0 R");Xn.publish("putXobjectDict"),St(">>")},Ol=function(){Os.oid=Ao(),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 N in St("/Font <<"),Ri)Ri.hasOwnProperty(N)&&(Ve===!1||Ve===!0&&lt.hasOwnProperty(N))&&St("/"+N+" "+Ri[N].objectNumber+" 0 R");St(">>")},HA=function(){if(Object.keys(ga).length>0){for(var N in St("/Shading <<"),ga)ga.hasOwnProperty(N)&&ga[N]instanceof wo&&ga[N].objectNumber>=0&&St("/"+N+" "+ga[N].objectNumber+" 0 R");Xn.publish("putShadingPatternDict"),St(">>")}},ma=function(N){if(Object.keys(ga).length>0){for(var $e in St("/Pattern <<"),ga)ga.hasOwnProperty($e)&&ga[$e]instanceof be.TilingPattern&&ga[$e].objectNumber>=0&&ga[$e].objectNumber<N&&St("/"+$e+" "+ga[$e].objectNumber+" 0 R");Xn.publish("putTilingPatternDict"),St(">>")}},io=function(){if(Object.keys(Wn).length>0){var N;for(N in St("/ExtGState <<"),Wn)Wn.hasOwnProperty(N)&&Wn[N].objectNumber>=0&&St("/"+N+" "+Wn[N].objectNumber+" 0 R");Xn.publish("putGStateDict"),St(">>")}},Ka=function(N){qi(N.resourcesOid,!0),St("<<"),St("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),nA(),HA(),ma(N.objectOid),io(),Sl(),St(">>"),St("endobj")},bo=function(){var N=[];hs(),oc(),qo(),yo(N),Xn.publish("putResources"),N.forEach(Ka),Ka({resourcesOid:uo,objectOid:Number.MAX_SAFE_INTEGER}),Xn.publish("postPutResources")},ms=function(){Xn.publish("putAdditionalObjects");for(var N=0;N<pr.length;N++){var $e=pr[N];qi($e.objId,!0),St($e.content),St("endobj")}Xn.publish("postPutAdditionalObjects")},Ps=function(N){na[N.fontName]=na[N.fontName]||{},na[N.fontName][N.fontStyle]=N.id},gs=function(N,$e,Dt,Jt,vr){var Xr={id:"F"+(Object.keys(Ri).length+1).toString(10),postScriptName:N,fontName:$e,fontStyle:Dt,encoding:Jt,isStandardFont:vr||!1,metadata:{}};return Xn.publish("addFont",{font:Xr,instance:this}),Ri[Xr.id]=Xr,Ps(Xr),Xr.id},Gl=function(N){for(var $e=0,Dt=yr.length;$e<Dt;$e++){var Jt=gs.call(this,N[$e][0],N[$e][1],N[$e][2],yr[$e][3],!0);Ve===!1&&(lt[Jt]=!0);var vr=N[$e][0].split("-");Ps({id:Jt,fontName:vr[0],fontStyle:vr[1]||""})}Xn.publish("addFonts",{fonts:Ri,dictionary:na})},El=function(N){return N.foo=function(){try{return N.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(!sn.console)throw new Error(Dt);sn.console.error(Dt,Jt),sn.alert&&alert(Dt)}},N.foo.bar=N,N.foo},zc=function(N,$e){var Dt,Jt,vr,Xr,kn,Pi,ea,ka,xa;if(vr=($e=$e||{}).sourceEncoding||"Unicode",kn=$e.outputEncoding,($e.autoencode||kn)&&Ri[gi].metadata&&Ri[gi].metadata[vr]&&Ri[gi].metadata[vr].encoding&&(Xr=Ri[gi].metadata[vr].encoding,!kn&&Ri[gi].encoding&&(kn=Ri[gi].encoding),!kn&&Xr.codePages&&(kn=Xr.codePages[0]),typeof kn=="string"&&(kn=Xr[kn]),kn)){for(ea=!1,Pi=[],Dt=0,Jt=N.length;Dt<Jt;Dt++)(ka=kn[N.charCodeAt(Dt)])?Pi.push(String.fromCharCode(ka)):Pi.push(N[Dt]),Pi[Dt].charCodeAt(0)>>8&&(ea=!0);N=Pi.join("")}for(Dt=N.length;ea===void 0&&Dt!==0;)N.charCodeAt(Dt-1)>>8&&(ea=!0),Dt--;if(!ea)return N;for(Pi=$e.noBOM?[]:[254,255],Dt=0,Jt=N.length;Dt<Jt;Dt++){if((xa=(ka=N.charCodeAt(Dt))>>8)>>8)throw new Error("Character at position "+Dt+" of string '"+N+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Pi.push(xa),Pi.push(ka-(xa<<8))}return String.fromCharCode.apply(void 0,Pi)},Ns=be.__private__.pdfEscape=be.pdfEscape=function(N,$e){return zc(N,$e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},wa=be.__private__.beginPage=function(N){sr[++Vi]=[],mn[Vi]={objId:0,contentsObjId:0,userUnit:Number(V),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(N[0]),topRightY:Number(N[1])}},Xl(Vi),rr(sr[Ze])},Bo=function(N,$e){var Dt,Jt,vr;switch(l=$e||l,typeof N=="string"&&(Dt=ht(N.toLowerCase()),Array.isArray(Dt)&&(Jt=Dt[0],vr=Dt[1])),Array.isArray(N)&&(Jt=N[0]*Dn,vr=N[1]*Dn),isNaN(Jt)&&(Jt=F[0],vr=F[1]),(Jt>14400||vr>14400)&&(In.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:Vi})},Tl=function(N){N>0&&N<=Vi&&(sr.splice(N,1),mn.splice(N,1),Vi--,Ze>Vi&&(Ze=Vi),this.setPage(Ze))},Xl=function(N){N>0&&N<=Vi&&(Ze=N)},js=be.__private__.getNumberOfPages=be.getNumberOfPages=function(){return sr.length-1},xA=function(N,$e,Dt){var Jt,vr=void 0;return Dt=Dt||{},N=N!==void 0?N:Ri[gi].fontName,$e=$e!==void 0?$e:Ri[gi].fontStyle,Jt=N.toLowerCase(),na[Jt]!==void 0&&na[Jt][$e]!==void 0?vr=na[Jt][$e]:na[N]!==void 0&&na[N][$e]!==void 0?vr=na[N][$e]:Dt.disableWarning===!1&&In.warn("Unable to look up font label for font '"+N+"', '"+$e+"'. Refer to getFontList() for available fonts."),vr||Dt.noFallback||(vr=na.times[$e])==null&&(vr=na.times.normal),vr},Jl=be.__private__.putInfo=function(){var N=Ao(),$e=function(Jt){return Jt};for(var Dt in We!==null&&($e=Os.encryptor(N,0)),St("<<"),St("/Producer ("+Ns($e("jsPDF "+di.version))+")"),fi)fi.hasOwnProperty(Dt)&&fi[Dt]&&St("/"+Dt.substr(0,1).toUpperCase()+Dt.substr(1)+" ("+Ns($e(fi[Dt]))+")");St("/CreationDate ("+Ns($e(Ee))+")"),St(">>"),St("endobj")},iA=be.__private__.putCatalog=function(N){var $e=(N=N||{}).rootDictionaryObjId||va;switch(Ao(),St("<<"),St("/Type /Catalog"),St("/Pages "+$e+" 0 R"),br||(br="fullwidth"),br){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=""+br;Dt.substr(Dt.length-1)==="%"&&(br=parseInt(br)/100),typeof br=="number"&&St("/OpenAction [3 0 R /XYZ null null "+Zr(br)+"]")}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")}$n&&St("/PageMode /"+$n),Xn.publish("putCatalog"),St(">>"),St("endobj")},jA=be.__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=be.__private__.putHeader=function(){St("%PDF-"+Lt),St("%\xBA\xDF\xAC\xE0")},CA=be.__private__.putXRef=function(){var N="0000000000";St("xref"),St("0 "+(yt+1)),St("0000000000 65535 f ");for(var $e=1;$e<=yt;$e++)typeof It[$e]=="function"?St((N+It[$e]()).slice(-10)+" 00000 n "):It[$e]!==void 0?St((N+It[$e]).slice(-10)+" 00000 n "):St("0000000000 00000 n ")},Ul=be.__private__.buildDocument=function(){hn(),rr(Rt),Xn.publish("buildDocument"),$c(),fs(),ms(),bo(),We!==null&&Ol(),Jl(),iA();var N=Tt;return CA(),jA(),St("startxref"),St(""+N),St("%%EOF"),rr(sr[Ze]),Rt.join(`
`)},sc=be.__private__.getBlob=function(N){return new Blob([jr(N)],{type:"application/pdf"})},dn=be.output=be.__private__.output=El(function(N,$e){switch(typeof($e=$e||{})=="string"?$e={filename:$e}:$e.filename=$e.filename||"generated.pdf",N){case void 0:return Ul();case"save":be.save($e.filename);break;case"arraybuffer":return jr(Ul());case"blob":return sc(Ul());case"bloburi":case"bloburl":if(sn.URL!==void 0&&typeof sn.URL.createObjectURL=="function")return sn.URL&&sn.URL.createObjectURL(sc(Ul()))||void 0;In.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=Li(Jt)}catch(xs){Dt=Li(unescape(encodeURIComponent(Jt)))}return"data:application/pdf;filename="+$e.filename+";base64,"+Dt;case"pdfobjectnewwindow":if(Object.prototype.toString.call(sn)==="[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 kn='<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>",Pi=sn.open();return Pi!==null&&Pi.document.write(kn),Pi}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(sn)==="[object Window]"){var ea='<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>',ka=sn.open();if(ka!==null){ka.document.write(ea);var xa=this;ka.document.documentElement.querySelector("#pdfViewer").onload=function(){ka.document.title=$e.filename,ka.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(xa.output("bloburl"))}}return ka}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(sn)!=="[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=sn.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 sn.document.location.href=this.output("datauristring",$e);default:return null}}),Zc=function(N){return Array.isArray(oa)===!0&&oa.indexOf(N)>-1};switch(v){case"pt":Dn=1;break;case"mm":Dn=72/25.4;break;case"cm":Dn=72/2.54;break;case"in":Dn=72;break;case"px":Dn=Zc("px_scaling")==1?.75:96/72;break;case"pc":case"em":Dn=12;break;case"ex":Dn=6;break;default:if(typeof v!="number")throw new Error("Invalid unit: "+v);Dn=v}var Os=null;Et(),He();var BA=function(N){return We!==null?Os.encryptor(N,0):function($e){return $e}},Vc=be.__private__.getPageInfo=be.getPageInfo=function(N){if(isNaN(N)||N%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:mn[N].objId,pageNumber:N,pageContext:mn[N]}},la=be.__private__.getPageInfoByObjId=function(N){if(isNaN(N)||N%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var $e in mn)if(mn[$e].objId===N)break;return Vc($e)},zA=be.__private__.getCurrentPageInfo=be.getCurrentPageInfo=function(){return{objId:mn[Ze].objId,pageNumber:Ze,pageContext:mn[Ze]}};be.addPage=function(){return Bo.apply(this,arguments),this},be.setPage=function(){return Xl.apply(this,arguments),rr.call(this,sr[Ze]),this},be.insertPage=function(N){return this.addPage(),this.movePage(Ze,N),this},be.movePage=function(N,$e){var Dt,Jt;if(N>$e){Dt=sr[N],Jt=mn[N];for(var vr=N;vr>$e;vr--)sr[vr]=sr[vr-1],mn[vr]=mn[vr-1];sr[$e]=Dt,mn[$e]=Jt,this.setPage($e)}else if(N<$e){Dt=sr[N],Jt=mn[N];for(var Xr=N;Xr<$e;Xr++)sr[Xr]=sr[Xr+1],mn[Xr]=mn[Xr+1];sr[$e]=Dt,mn[$e]=Jt,this.setPage($e)}return this},be.deletePage=function(){return Tl.apply(this,arguments),this},be.__private__.text=be.text=function(N,$e,Dt,Jt,vr){var Xr,kn,Pi,ea,ka,xa,zi,vs,xs,zo=(Jt=Jt||{}).scope||this;if(typeof N=="number"&&typeof $e=="number"&&(typeof Dt=="string"||Array.isArray(Dt))){var hl=Dt;Dt=$e,$e=N,N=hl}if(arguments[3]instanceof Hi?(Gt("The transform parameter of text() with a Matrix value"),xs=vr):(Pi=arguments[4],ea=arguments[5],(0,ge.Z)(zi=arguments[3])==="object"&&zi!==null||(typeof Pi=="string"&&(ea=Pi,Pi=null),typeof zi=="string"&&(ea=zi,zi=null),typeof zi=="number"&&(Pi=zi,zi=null),Jt={flags:zi,angle:Pi,align:ea})),isNaN($e)||isNaN(Dt)||N==null)throw new Error("Invalid arguments passed to jsPDF.text");if(N.length===0)return zo;var Cs="",Dc=!1,pl=typeof Jt.lineHeightFactor=="number"?Jt.lineHeightFactor:ya,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(),sa=[],ci=Ss.length;ci--;)typeof(is=Ss.shift())=="string"?sa.push(is):Array.isArray($o)&&(is.length===1||is[1]===void 0&&is[2]===void 0)?sa.push(is[0]):sa.push([is[0],is[1],is[2]]);return sa}function fu($o,is){var Ss;if(typeof $o=="string")Ss=is($o)[0];else if(Array.isArray($o)){for(var sa,ci,uc=$o.concat(),uA=[],Fs=uc.length;Fs--;)typeof(sa=uc.shift())=="string"?uA.push(is(sa)[0]):Array.isArray(sa)&&typeof sa[0]=="string"&&(ci=is(sa[0],sa[1],sa[2]),uA.push([ci[0],ci[1],ci[2]]));Ss=uA}return Ss}var sA=!1,YA=!0;if(typeof N=="string")sA=!0;else if(Array.isArray(N)){var Nu=N.concat();kn=[];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. "'+N+'" is not recognized.');typeof N=="string"&&(N=N.match(/[\r?\n]/)?N.split(/\r\n|\r|\n/g):[N]);var qA=Fr/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 N=="string"?N=zo.splitTextToSize(N,xa):Object.prototype.toString.call(N)==="[object Array]"&&(N=N.reduce(function($o,is){return $o.concat(zo.splitTextToSize(is,xa))},[]))),Xr={text:N,x:$e,y:Dt,options:Jt,mutex:{pdfEscape:Ns,activeFontKey:gi,fonts:Ri,activeFontSize:Fr}},Xn.publish("preProcessText",Xr),N=Xr.text,Pi=(Jt=Xr.options).angle,!(xs instanceof Hi)&&Pi&&typeof Pi=="number"){Pi*=Math.PI/180,Jt.rotationDirection===0&&(Pi=-Pi),ir===Pt.ADVANCED&&(Pi=-Pi);var yc=Math.cos(Pi),Xc=Math.sin(Pi);xs=new Hi(yc,Xc,-Xc,yc,0,0)}else Pi&&Pi instanceof Hi&&(xs=Pi);ir!==Pt.ADVANCED||xs||(xs=as),(ka=Jt.charSpace||cu)!==void 0&&(Cs+=Er(Bt(ka))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(vs=Jt.horizontalScale)!==void 0&&(Cs+=Er(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),ea=Jt.align||"left";var Us,Kl=Fr*pl,bc=zo.internal.pageSize.getWidth(),lA=Ri[gi];ka=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:ka,fontSize:Fr,doKerning:!1})*Fr/tc};if(Object.prototype.toString.call(N)==="[object Array]"){var il;kn=du(N),ea!=="left"&&(Us=kn.map(Pc));var Ys,cA=0;if(ea==="right"){$e-=Us[0],N=[],_s=kn.length;for(var Jc=0;Jc<_s;Jc++)Jc===0?(Ys=ql($e),il=ec(Dt)):(Ys=Bt(cA-Us[Jc]),il=-Kl),N.push([kn[Jc],Ys,il]),cA=Us[Jc]}else if(ea==="center"){$e-=Us[0]/2,N=[],_s=kn.length;for(var Yc=0;Yc<_s;Yc++)Yc===0?(Ys=ql($e),il=ec(Dt)):(Ys=Bt((cA-Us[Yc])/2),il=-Kl),N.push([kn[Yc],Ys,il]),cA=Us[Yc]}else if(ea==="left"){N=[],_s=kn.length;for(var pu=0;pu<_s;pu++)N.push(kn[pu])}else if(ea==="justify"&&lA.encoding==="Identity-H"){N=[],_s=kn.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])/(kn[Bs].split(" ").length-1)),jl=kn[Bs].split(" ");N.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?N.push([jl[wc],mu,0]):N.push([jl[wc]+" ",mu,0]),qc-=mu}}else N.push([kn[Bs],Ys,il]);N.push(["",qc,0])}else{if(ea!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(N=[],_s=kn.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(Er(Bt((xa-Us[Bs])/(kn[Bs].split(" ").length-1)))):Hl.push(0),N.push([kn[Bs],Ys,il])}}var ld=typeof Jt.R2L=="boolean"?Jt.R2L:fn;ld===!0&&(N=fu(N,function($o,is,Ss){return[$o.split("").reverse().join(""),is,Ss]})),Xr={text:N,x:$e,y:Dt,options:Jt,mutex:{pdfEscape:Ns,activeFontKey:gi,fonts:Ri,activeFontSize:Fr}},Xn.publish("postProcessText",Xr),N=Xr.text,Dc=Xr.mutex.isHex||!1;var eu=Ri[gi].encoding;eu!=="WinAnsiEncoding"&&eu!=="StandardEncoding"||(N=fu(N,function($o,is,Ss){return[oA($o),is,Ss]})),kn=du(N),N=[];for(var xc,Cc,rc,zl=0,_A=1,FA=Array.isArray(kn[0])?_A:zl,AA="",Tu=function($o,is,Ss){var sa="";return Ss instanceof Hi?(Ss=typeof Jt.angle=="number"?eo(Ss,new Hi(1,0,0,1,$o,is)):eo(new Hi(1,0,0,1,$o,is),Ss),ir===Pt.ADVANCED&&(Ss=eo(new Hi(1,0,0,-1,0,0),Ss)),sa=Ss.join(" ")+` Tm
`):sa=Er($o)+" "+Er(is)+` Td
`,sa},Bc=0;Bc<kn.length;Bc++){switch(AA="",FA){case _A:rc=(Dc?"<":"(")+kn[Bc][0]+(Dc?">":")"),xc=parseFloat(kn[Bc][1]),Cc=parseFloat(kn[Bc][2]);break;case zl:rc=(Dc?"<":"(")+kn[Bc]+(Dc?">":")"),xc=ql($e),Cc=ec(Dt)}Hl!==void 0&&Hl[Bc]!==void 0&&(AA=Hl[Bc]+` Tw
`),Bc===0?N.push(AA+Tu(xc,Cc,xs)+rc):FA===zl?N.push(AA+rc):FA===_A&&N.push(AA+Tu(xc,Cc,xs)+rc)}N=FA===zl?N.join(` Tj
T* `):N.join(` Tj
`),N+=` Tj
`;var Ac=`BT
/`;return Ac+=gi+" "+Fr+` Tf
`,Ac+=Er(Fr*pl)+` TL
`,Ac+=gc+`
`,Ac+=Cs,Ac+=N,St(Ac+="ET"),lt[gi]=!0,zo};var $A=be.__private__.clip=be.clip=function(N){return St(N==="evenodd"?"W*":"W"),this};be.clipEvenOdd=function(){return $A("evenodd")},be.__private__.discardPath=be.discardPath=function(){return St("n"),this};var So=be.__private__.isValidStyle=function(N){var $e=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(N)!==-1&&($e=!0),$e};be.__private__.setDefaultPathOperation=be.setDefaultPathOperation=function(N){return So(N)&&(_e=N),this};var ZA=be.__private__.getStyle=be.getStyle=function(N){var $e=_e;switch(N){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=N}return $e},aA=be.close=function(){return St("h"),this};be.stroke=function(){return St("S"),this},be.fill=function(N){return lc("f",N),this},be.fillEvenOdd=function(N){return lc("f*",N),this},be.fillStroke=function(N){return lc("B",N),this},be.fillStrokeEvenOdd=function(N){return lc("B*",N),this};var lc=function(N,$e){(0,ge.Z)($e)==="object"?cc($e,N):St(N)},Wc=function(N){N===null||ir===Pt.ADVANCED&&N===void 0||(N=ZA(N),St(N))};function Yl(N,$e,Dt,Jt,vr){var Xr=new Ba($e||this.boundingBox,Dt||this.xStep,Jt||this.yStep,this.gState,vr||this.matrix);Xr.stream=this.stream;var kn=N+"$$"+this.cloneIndex+++"$$";return Cn(kn,Xr),Xr}var cc=function(N,$e){var Dt=Vn[N.key],Jt=ga[Dt];if(Jt instanceof wo)St("q"),St(xo($e)),Jt.gState&&be.setGState(Jt.gState),St(N.matrix.toString()+" cm"),St("/"+Dt+" sh"),St("Q");else if(Jt instanceof Ba){var vr=new Hi(1,0,0,-1,0,kc());N.matrix&&(vr=vr.multiply(N.matrix||as),Dt=Yl.call(Jt,N.key,N.boundingBox,N.xStep,N.yStep,vr).id),St("q"),St("/Pattern cs"),St("/"+Dt+" scn"),Jt.gState&&be.setGState(Jt.gState),St($e),St("Q")}},xo=function(N){switch(N){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=be.moveTo=function(N,$e){return St(Er(Bt(N))+" "+Er(j($e))+" m"),this},ls=be.lineTo=function(N,$e){return St(Er(Bt(N))+" "+Er(j($e))+" l"),this},ul=be.curveTo=function(N,$e,Dt,Jt,vr,Xr){return St([Er(Bt(N)),Er(j($e)),Er(Bt(Dt)),Er(j(Jt)),Er(Bt(vr)),Er(j(Xr)),"c"].join(" ")),this};be.__private__.line=be.line=function(N,$e,Dt,Jt,vr){if(isNaN(N)||isNaN($e)||isNaN(Dt)||isNaN(Jt)||!So(vr))throw new Error("Invalid arguments passed to jsPDF.line");return ir===Pt.COMPAT?this.lines([[Dt-N,Jt-$e]],N,$e,[1,1],vr||"S"):this.lines([[Dt-N,Jt-$e]],N,$e,[1,1]).stroke()},be.__private__.lines=be.lines=function(N,$e,Dt,Jt,vr,Xr){var kn,Pi,ea,ka,xa,zi,vs,xs,zo,hl,Cs,Dc;if(typeof N=="number"&&(Dc=Dt,Dt=$e,$e=N,N=Dc),Jt=Jt||[1,1],Xr=Xr||!1,isNaN($e)||isNaN(Dt)||!Array.isArray(N)||!Array.isArray(Jt)||!So(vr)||typeof Xr!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Xs($e,Dt),kn=Jt[0],Pi=Jt[1],ka=N.length,hl=$e,Cs=Dt,ea=0;ea<ka;ea++)(xa=N[ea]).length===2?(hl=xa[0]*kn+hl,Cs=xa[1]*Pi+Cs,ls(hl,Cs)):(zi=xa[0]*kn+hl,vs=xa[1]*Pi+Cs,xs=xa[2]*kn+hl,zo=xa[3]*Pi+Cs,hl=xa[4]*kn+hl,Cs=xa[5]*Pi+Cs,ul(zi,vs,xs,zo,hl,Cs));return Xr&&aA(),Wc(vr),this},be.path=function(N){for(var $e=0;$e<N.length;$e++){var Dt=N[$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},be.__private__.rect=be.rect=function(N,$e,Dt,Jt,vr){if(isNaN(N)||isNaN($e)||isNaN(Dt)||isNaN(Jt)||!So(vr))throw new Error("Invalid arguments passed to jsPDF.rect");return ir===Pt.COMPAT&&(Jt=-Jt),St([Er(Bt(N)),Er(j($e)),Er(Bt(Dt)),Er(Bt(Jt)),"re"].join(" ")),Wc(vr),this},be.__private__.triangle=be.triangle=function(N,$e,Dt,Jt,vr,Xr,kn){if(isNaN(N)||isNaN($e)||isNaN(Dt)||isNaN(Jt)||isNaN(vr)||isNaN(Xr)||!So(kn))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Dt-N,Jt-$e],[vr-Dt,Xr-Jt],[N-vr,$e-Xr]],N,$e,[1,1],kn,!0),this},be.__private__.roundedRect=be.roundedRect=function(N,$e,Dt,Jt,vr,Xr,kn){if(isNaN(N)||isNaN($e)||isNaN(Dt)||isNaN(Jt)||isNaN(vr)||isNaN(Xr)||!So(kn))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Pi=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*Pi,0,vr,Xr-Xr*Pi,vr,Xr],[0,Jt-2*Xr],[0,Xr*Pi,-vr*Pi,Xr,-vr,Xr],[2*vr-Dt,0],[-vr*Pi,0,-vr,-Xr*Pi,-vr,-Xr],[0,2*Xr-Jt],[0,-Xr*Pi,vr*Pi,-Xr,vr,-Xr]],N+vr,$e,[1,1],kn,!0),this},be.__private__.ellipse=be.ellipse=function(N,$e,Dt,Jt,vr){if(isNaN(N)||isNaN($e)||isNaN(Dt)||isNaN(Jt)||!So(vr))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Xr=4/3*(Math.SQRT2-1)*Dt,kn=4/3*(Math.SQRT2-1)*Jt;return Xs(N+Dt,$e),ul(N+Dt,$e-kn,N+Xr,$e-Jt,N,$e-Jt),ul(N-Xr,$e-Jt,N-Dt,$e-kn,N-Dt,$e),ul(N-Dt,$e+kn,N-Xr,$e+Jt,N,$e+Jt),ul(N+Xr,$e+Jt,N+Dt,$e+kn,N+Dt,$e),Wc(vr),this},be.__private__.circle=be.circle=function(N,$e,Dt,Jt){if(isNaN(N)||isNaN($e)||isNaN(Dt)||!So(Jt))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(N,$e,Dt,Dt,Jt)},be.setFont=function(N,$e,Dt){return Dt&&($e=yn($e,Dt)),gi=xA(N,$e,{disableWarning:!1}),this};var _a=be.__private__.getFont=be.getFont=function(){return Ri[xA.apply(be,arguments)]};be.__private__.getFontList=be.getFontList=function(){var N,$e,Dt={};for(N in na)if(na.hasOwnProperty(N))for($e in Dt[N]=[],na[N])na[N].hasOwnProperty($e)&&Dt[N].push($e);return Dt},be.addFont=function(N,$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,N,$e,Dt,vr)};var ya,Js=c.lineWidth||.200025,_l=be.__private__.getLineWidth=be.getLineWidth=function(){return Js},Rl=be.__private__.setLineWidth=be.setLineWidth=function(N){return Js=N,St(Er(Bt(N))+" w"),this};be.__private__.setLineDash=di.API.setLineDash=di.API.setLineDashPattern=function(N,$e){if(N=N||[],$e=$e||0,isNaN($e)||!Array.isArray(N))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return N=N.map(function(Dt){return Er(Bt(Dt))}).join(" "),$e=Er(Bt($e)),St("["+N+"] "+$e+" d"),this};var VA=be.__private__.getLineHeight=be.getLineHeight=function(){return Fr*ya};be.__private__.getLineHeight=be.getLineHeight=function(){return Fr*ya};var cs=be.__private__.setLineHeightFactor=be.setLineHeightFactor=function(N){return typeof(N=N||1.15)=="number"&&(ya=N),this},dl=be.__private__.getLineHeightFactor=be.getLineHeightFactor=function(){return ya};cs(c.lineHeight);var ql=be.__private__.getHorizontalCoordinate=function(N){return Bt(N)},ec=be.__private__.getVerticalCoordinate=function(N){return ir===Pt.ADVANCED?N:mn[Ze].mediaBox.topRightY-mn[Ze].mediaBox.bottomLeftY-Bt(N)},lu=be.__private__.getHorizontalCoordinateString=be.getHorizontalCoordinateString=function(N){return Er(ql(N))},ba=be.__private__.getVerticalCoordinateString=be.getVerticalCoordinateString=function(N){return Er(ec(N))},fl=c.strokeColor||"0 G";be.__private__.getStrokeColor=be.getDrawColor=function(){return Va(fl)},be.__private__.setStrokeColor=be.setDrawColor=function(N,$e,Dt,Jt){return fl=Mi({ch1:N,ch2:$e,ch3:Dt,ch4:Jt,pdfColorType:"draw",precision:2}),St(fl),this};var mc=c.fillColor||"0 g";be.__private__.getFillColor=be.getFillColor=function(){return Va(mc)},be.__private__.setFillColor=be.setFillColor=function(N,$e,Dt,Jt){return mc=Mi({ch1:N,ch2:$e,ch3:Dt,ch4:Jt,pdfColorType:"fill",precision:2}),St(mc),this};var gc=c.textColor||"0 g",$r=be.__private__.getTextColor=be.getTextColor=function(){return Va(gc)};be.__private__.setTextColor=be.setTextColor=function(N,$e,Dt,Jt){return gc=Mi({ch1:N,ch2:$e,ch3:Dt,ch4:Jt,pdfColorType:"text",precision:3}),this};var cu=c.charSpace,Ed=be.__private__.getCharSpace=be.getCharSpace=function(){return parseFloat(cu||0)};be.__private__.setCharSpace=be.setCharSpace=function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return cu=N,this};var WA=0;be.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},be.__private__.setLineCap=be.setLineCap=function(N){var $e=be.CapJoinStyles[N];if($e===void 0)throw new Error("Line cap style of '"+N+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return WA=$e,St($e+" J"),this};var SA=0;be.__private__.setLineJoin=be.setLineJoin=function(N){var $e=be.CapJoinStyles[N];if($e===void 0)throw new Error("Line join style of '"+N+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return SA=$e,St($e+" j"),this},be.__private__.setLineMiterLimit=be.__private__.setMiterLimit=be.setLineMiterLimit=be.setMiterLimit=function(N){if(N=N||0,isNaN(N))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return St(Er(Bt(N))+" M"),this},be.GState=Fa,be.setGState=function(N){(N=typeof N=="string"?Wn[mi[N]]:Lc(null,N)).equals(hi)||(St("/"+N.id+" gs"),hi=N)};var Lc=function(N,$e){if(!N||!mi[N]){var Dt=!1;for(var Jt in Wn)if(Wn.hasOwnProperty(Jt)&&Wn[Jt].equals($e)){Dt=!0;break}if(Dt)$e=Wn[Jt];else{var vr="GS"+(Object.keys(Wn).length+1).toString(10);Wn[vr]=$e,$e.id=vr}return N&&(mi[N]=$e.id),Xn.publish("addGState",$e),$e}};be.addGState=function(N,$e){return Lc(N,$e),this},be.saveGraphicsState=function(){return St("q"),Ta.push({key:gi,size:Fr,color:gc}),this},be.restoreGraphicsState=function(){St("Q");var N=Ta.pop();return gi=N.key,Fr=N.size,gc=N.color,hi=null,this},be.setCurrentTransformationMatrix=function(N){return St(N.toString()+" cm"),this},be.comment=function(N){return St("#"+N),this};var Au=function(N,$e){var Dt=N||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(N,$e,Dt,Jt){Au.call(this,N,$e),this.type="rect";var vr=Dt||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return vr},set:function(kn){isNaN(kn)||(vr=parseFloat(kn))}});var Xr=Jt||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Xr},set:function(kn){isNaN(kn)||(Xr=parseFloat(kn))}}),this},ws=function(){this.page=Vi,this.currentPage=Ze,this.pages=sr.slice(0),this.pagesContext=mn.slice(0),this.x=pa,this.y=qn,this.matrix=co,this.width=XA(Ze),this.height=kc(Ze),this.outputDestination=Qr,this.id="",this.objectNumber=-1};ws.prototype.restore=function(){Vi=this.page,Ze=this.currentPage,mn=this.pagesContext,sr=this.pages,pa=this.x,qn=this.y,co=this.matrix,EA(Ze,this.width),JA(Ze,this.height),Qr=this.outputDestination};var vc=function(N,$e,Dt,Jt,vr){ko.push(new ws),Vi=Ze=0,sr=[],pa=N,qn=$e,co=vr,wa([Dt,Jt])},GA=function(N){if(Lo[N])ko.pop().restore();else{var $e=new ws,Dt="Xo"+(Object.keys(ji).length+1).toString(10);$e.id=Dt,Lo[N]=Dt,ji[Dt]=$e,Xn.publish("addFormObject",$e),ko.pop().restore()}};for(var Gc in be.beginFormObject=function(N,$e,Dt,Jt,vr){return vc(N,$e,Dt,Jt,vr),this},be.endFormObject=function(N){return GA(N),this},be.doFormObject=function(N,$e){var Dt=ji[Lo[N]];return St("q"),St($e.toString()+" cm"),St("/"+Dt.id+" Do"),St("Q"),this},be.getFormObject=function(N){var $e=ji[Lo[N]];return{x:$e.x,y:$e.y,width:$e.width,height:$e.height,matrix:$e.matrix}},be.save=function(N,$e){return N=N||"generated.pdf",($e=$e||{}).returnPromise=$e.returnPromise||!1,$e.returnPromise===!1?(ra(sc(Ul()),N),typeof ra.unload=="function"&&sn.setTimeout&&setTimeout(ra.unload,911),this):new Promise(function(Dt,Jt){try{var vr=ra(sc(Ul()),N);typeof ra.unload=="function"&&sn.setTimeout&&setTimeout(ra.unload,911),Dt(vr)}catch(Xr){Jt(Xr.message)}})},di.API)di.API.hasOwnProperty(Gc)&&(Gc==="events"&&di.API.events.length?function(N,$e){var Dt,Jt,vr;for(vr=$e.length-1;vr!==-1;vr--)Dt=$e[vr][0],Jt=$e[vr][1],N.subscribe.apply(N,[Dt].concat(typeof Jt=="function"?[Jt]:Jt))}(Xn,di.API.events):be[Gc]=di.API[Gc]);var XA=be.getPageWidth=function(N){return(mn[N=N||Ze].mediaBox.topRightX-mn[N].mediaBox.bottomLeftX)/Dn},EA=be.setPageWidth=function(N,$e){mn[N].mediaBox.topRightX=$e*Dn+mn[N].mediaBox.bottomLeftX},kc=be.getPageHeight=function(N){return(mn[N=N||Ze].mediaBox.topRightY-mn[N].mediaBox.bottomLeftY)/Dn},JA=be.setPageHeight=function(N,$e){mn[N].mediaBox.topRightY=$e*Dn+mn[N].mediaBox.bottomLeftY};return be.internal={pdfEscape:Ns,getStyle:ZA,getFont:_a,getFontSize:kr,getCharSpace:Ed,getTextColor:$r,getLineHeight:VA,getLineHeightFactor:dl,getLineWidth:_l,write:Un,getHorizontalCoordinate:ql,getVerticalCoordinate:ec,getCoordinateString:lu,getVerticalCoordinateString:ba,collections:{},newObject:Ao,newAdditionalObject:on,newObjectDeferred:Ho,newObjectDeferredBegin:qi,getFilters:Do,putStream:Po,events:Xn,scaleFactor:Dn,pageSize:{getWidth:function(){return XA(Ze)},setWidth:function(N){EA(Ze,N)},getHeight:function(){return kc(Ze)},setHeight:function(N){JA(Ze,N)}},encryptionOptions:We,encryption:Os,getEncryptor:BA,output:dn,getNumberOfPages:js,pages:sr,out:St,f2:Zr,f3:bt,getPageInfo:Vc,getPageInfoByObjId:la,getCurrentPageInfo:zA,getPDFVersion:wt,Point:Au,Rectangle:uu,Matrix:Hi,hasHotfix:Zc},Object.defineProperty(be.internal.pageSize,"width",{get:function(){return XA(Ze)},set:function(N){EA(Ze,N)},enumerable:!0,configurable:!0}),Object.defineProperty(be.internal.pageSize,"height",{get:function(){return kc(Ze)},set:function(N){JA(Ze,N)},enumerable:!0,configurable:!0}),Gl.call(be,yr),gi="F1",Bo(F,l),Xn.publish("initialized"),be}ia.prototype.lsbFirstWord=function(c){return String.fromCharCode(c>>0&255,c>>8&255,c>>16&255,c>>24&255)},ia.prototype.toHexString=function(c){return c.split("").map(function(a){return("0"+(255&a.charCodeAt(0)).toString(16)).slice(-2)}).join("")},ia.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("")},ia.prototype.processOwnerPassword=function(c,a){return da(On(a).substr(0,5),c)},ia.prototype.encryptor=function(c,a){var l=On(this.encryptionKey+String.fromCharCode(255&c,c>>8&255,c>>16&255,255&a,a>>8&255)).substr(0,10);return function(v){return da(l,v)}},Fa.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},di.API={events:[]},di.version="3.0.0";var Aa=di.API,No=1,ho=function(c){return c.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ja=function(c){return c.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Ni=function(c){return c.toFixed(2)},Oo=function(c){return c.toFixed(5)};Aa.__acroform__={};var po=function(c,a){c.prototype=Object.create(a.prototype),c.prototype.constructor=c},el=function(c){return c*No},Wo=function(c){var a=new Sa,l=Qn.internal.getHeight(c)||0,v=Qn.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},za=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)},Ea=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],T=c[2],V=c[3],ae={};return ae.lowerLeft_X=l(F)||0,ae.lowerLeft_Y=v(C+V)||0,ae.upperRight_X=l(F+T)||0,ae.upperRight_Y=v(C)||0,[Number(Ni(ae.lowerLeft_X)),Number(Ni(ae.lowerLeft_Y)),Number(Ni(ae.upperRight_X)),Number(Ni(ae.upperRight_Y))]},wi=function(c){if(c.appearanceStreamContent)return c.appearanceStreamContent;if(c.V||c.DV){var a=[],l=c._V||c.DV,v=Wi(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}},Wi=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,T=Qn.internal.getHeight(c)||0;T=T<0?-T:T;var V=Qn.internal.getWidth(c)||0;V=V<0?-V:V;var ae=function(bt,Bt,U){if(bt+1<F.length){var j=Bt+" "+F[bt+1][0];return Ti(j,c,U).width<=V-4}return!1};C++;e:for(;C>0;){a="",C--;var _e,We,Ve=Ti("3",c,C).height,lt=c.multiline?T-C:(T-Ve)/2,be=lt+=2,Lt=0,wt=0,kt=0;if(C<=0){a=`(...) Tj
`,a+="% Width of Text: "+Ti(a,c,C=12).width+", FieldWidth:"+V+`
`;break}for(var ht="",Pt=0,ir=0;ir<F.length;ir++)if(F.hasOwnProperty(ir)){var gr=!1;if(F[ir].length!==1&&kt!==F[ir].length-1){if((Ve+2)*(Pt+2)+2>T)continue e;ht+=F[ir][kt],gr=!0,wt=ir,ir--}else{ht=(ht+=F[ir][kt]+" ").substr(ht.length-1)==" "?ht.substr(0,ht.length-1):ht;var Rr=parseInt(ir),yn=ae(Rr,ht,C),Er=ir>=F.length-1;if(yn&&!Er){ht+=" ",kt=0;continue}if(yn||Er){if(Er)wt=Rr;else if(c.multiline&&(Ve+2)*(Pt+2)+2>T)continue e}else{if(!c.multiline||(Ve+2)*(Pt+2)+2>T)continue e;wt=Rr}}for(var Gt="",Dr=Lt;Dr<=wt;Dr++){var Zr=F[Dr];if(c.multiline){if(Dr===wt){Gt+=Zr[kt]+" ",kt=(kt+1)%Zr.length;continue}if(Dr===Lt){Gt+=Zr[Zr.length-1]+" ";continue}}Gt+=Zr[0]+" "}switch(Gt=Gt.substr(Gt.length-1)==" "?Gt.substr(0,Gt.length-1):Gt,We=Ti(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(be)+` Td
`,a+="("+ho(Gt)+`) Tj
`,a+=-Ni(_e)+` 0 Td
`,be=-(C+2),We=0,Lt=gr?wt:wt+1,Pt++,ht=""}break}return v.text=a,v.fontSize=C,v},Ti=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}},Gi={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)},Ia=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(Gi)),c.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");No=c.internal.scaleFactor,c.internal.acroformPlugin.acroFormDictionaryRoot=new fa,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 T 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(T)){var V=v[T],ae=[],_e=V.Rect;if(V.Rect&&(V.Rect=Qs(V.Rect,F)),F.internal.newObjectDeferredBegin(V.objId,!0),V.DA=Qn.createDefaultAppearanceStream(V),(0,ge.Z)(V)==="object"&&typeof V.getKeyValueListForStream=="function"&&(ae=V.getKeyValueListForStream()),V.Rect=_e,V.hasAppearanceStream&&!V.appearanceStreamContent){var We=wi(V);ae.push({key:"AP",value:"<</N "+We+">>"}),F.internal.acroformPlugin.xForms.push(We)}if(V.appearanceStreamContent){var Ve="";for(var lt in V.appearanceStreamContent)if(V.appearanceStreamContent.hasOwnProperty(lt)){var be=V.appearanceStreamContent[lt];if(Ve+="/"+lt+" ",Ve+="<<",Object.keys(be).length>=1||Array.isArray(be)){for(var T in be)if(be.hasOwnProperty(T)){var Lt=be[T];typeof Lt=="function"&&(Lt=Lt.call(F,V)),Ve+="/"+T+" "+Lt+" ",F.internal.acroformPlugin.xForms.indexOf(Lt)>=0||F.internal.acroformPlugin.xForms.push(Lt)}}else typeof(Lt=be)=="function"&&(Lt=Lt.call(F,V)),Ve+="/"+T+" "+Lt,F.internal.acroformPlugin.xForms.indexOf(Lt)>=0||F.internal.acroformPlugin.xForms.push(Lt);Ve+=">>"}ae.push({key:"AP",value:`<<
`+Ve+">>"})}F.internal.putStream({additionalKeyValues:ae,objectId:V.objId}),F.internal.out("endobj")}C&&Ia(F.internal.acroformPlugin.xForms,F)})(l,c)}),c.internal.acroformPlugin.isInitialized=!0}},Fo=Aa.__acroform__.arrayToPdfArray=function(c,a,l){var v=function(T){return T};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+="("+ho(v(c[C].toString()))+")"):F+=c[C].toString()}return F+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Eo=function(c,a,l){var v=function(F){return F};return a!==void 0&&l&&(v=l.internal.getEncryptor(a)),(c=c||"").toString(),c="("+ho(v(c))+")"},$a=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})};$a.prototype.toString=function(){return this.objId+" 0 R"},$a.prototype.putStream=function(){var c=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:c,objectId:this.objId}),this.scope.internal.out("endobj")},$a.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:Fo(F,this.objId,this.scope)}):F instanceof $a?(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 Sa=function(){$a.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}})};po(Sa,$a);var fa=function(){$a.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)),"("+ho(l(c))+")"}},set:function(l){c=l}})};po(fa,$a);var Da=function c(){$a.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!!za(a,3)},set:function(ht){ht?this.F=Qa(a,3):this.F=Ea(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)),"("+ho(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 T="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return T},set:function(ht){T=ht}});var V="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return V},set:function(ht){V=ht}});var ae=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return ae},set:function(ht){ae=ht}});var _e=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return _e===void 0?50/No:_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 Eo(Ve,this.objId,this.scope)},set:function(ht){ht=ht.toString(),Ve=ht}});var lt=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(lt)return this instanceof Io?lt:Eo(lt,this.objId,this.scope)},set:function(ht){ht=ht.toString(),lt=this instanceof Io?ht:ht.substr(0,1)==="("?Ja(ht.substr(1,ht.length-2)):Ja(ht)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Io?Ja(lt.substr(1,lt.length-1)):lt},set:function(ht){ht=ht.toString(),lt=this instanceof Io?"/"+ht:ht}});var be=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(be)return be},set:function(ht){this.V=ht}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(be)return this instanceof Io?be:Eo(be,this.objId,this.scope)},set:function(ht){ht=ht.toString(),be=this instanceof Io?ht:ht.substr(0,1)==="("?Ja(ht.substr(1,ht.length-2)):Ja(ht)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Io?Ja(be.substr(1,be.length-1)):be},set:function(ht){ht=ht.toString(),be=this instanceof Io?"/"+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!!za(this.Ff,1)},set:function(ht){ht?this.Ff=Qa(this.Ff,1):this.Ff=Ea(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,2)},set:function(ht){ht?this.Ff=Qa(this.Ff,2):this.Ff=Ea(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,3)},set:function(ht){ht?this.Ff=Qa(this.Ff,3):this.Ff=Ea(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}}})};po(Da,$a);var Ya=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 Fo(a,this.objId,this.scope)},set:function(l){var v,F;F=[],typeof(v=l)=="string"&&(F=function(C,T,V){V||(V=1);for(var ae,_e=[];ae=T.exec(C);)_e.push(ae[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!!za(this.Ff,18)},set:function(l){l?this.Ff=Qa(this.Ff,18):this.Ff=Ea(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,19)},set:function(l){this.combo===!0&&(l?this.Ff=Qa(this.Ff,19):this.Ff=Ea(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,20)},set:function(l){l?(this.Ff=Qa(this.Ff,20),a.sort()):this.Ff=Ea(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,22)},set:function(l){l?this.Ff=Qa(this.Ff,22):this.Ff=Ea(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,23)},set:function(l){l?this.Ff=Qa(this.Ff,23):this.Ff=Ea(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,27)},set:function(l){l?this.Ff=Qa(this.Ff,27):this.Ff=Ea(this.Ff,27)}}),this.hasAppearanceStream=!1};po(Ya,Da);var lo=function(){Ya.call(this),this.fontName="helvetica",this.combo=!1};po(lo,Ya);var Oa=function(){lo.call(this),this.combo=!0};po(Oa,lo);var Ma=function(){Oa.call(this),this.edit=!0};po(Ma,Oa);var Io=function(){Da.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,15)},set:function(l){l?this.Ff=Qa(this.Ff,15):this.Ff=Ea(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,16)},set:function(l){l?this.Ff=Qa(this.Ff,16):this.Ff=Ea(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,17)},set:function(l){l?this.Ff=Qa(this.Ff,17):this.Ff=Ea(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,26)},set:function(l){l?this.Ff=Qa(this.Ff,26):this.Ff=Ea(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+" ("+ho(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}})};po(Io,Da);var kl=function(){Io.call(this),this.pushButton=!0};po(kl,Io);var ds=function(){Io.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:[]}})};po(ds,Io);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,T=[];for(C in T.push("<<"),v)T.push("/"+C+" ("+ho(F(v[C]))+")");return T.push(">>"),T.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=Qn.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};po(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(){Io.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Qn.CheckBox.createAppearanceStream()};po(Uo,Io);var Ms=function(){Da.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,13)},set:function(a){a?this.Ff=Qa(this.Ff,13):this.Ff=Ea(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,21)},set:function(a){a?this.Ff=Qa(this.Ff,21):this.Ff=Ea(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,23)},set:function(a){a?this.Ff=Qa(this.Ff,23):this.Ff=Ea(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,24)},set:function(a){a?this.Ff=Qa(this.Ff,24):this.Ff=Ea(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,25)},set:function(a){a?this.Ff=Qa(this.Ff,25):this.Ff=Ea(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,26)},set:function(a){a?this.Ff=Qa(this.Ff,26):this.Ff=Ea(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}})};po(Ms,Da);var Mo=function(){Ms.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,14)},set:function(c){c?this.Ff=Qa(this.Ff,14):this.Ff=Ea(this.Ff,14)}}),this.password=!0};po(Mo,Ms);var Qn={CheckBox:{createAppearanceStream:function(){return{N:{On:Qn.CheckBox.YesNormal},D:{On:Qn.CheckBox.YesPushDown,Off:Qn.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=Wi(c,c.caption);return l.push("0.749023 g"),l.push("0 0 "+Ni(Qn.internal.getWidth(c))+" "+Ni(Qn.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=Qn.internal.getHeight(c),T=Qn.internal.getWidth(c),V=Wi(c,c.caption);return F.push("1 g"),F.push("0 0 "+Ni(T)+" "+Ni(C)+" re"),F.push("f"),F.push("q"),F.push("0 0 1 rg"),F.push("0 0 "+Ni(T-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(Qn.internal.getWidth(c))+" "+Ni(Qn.internal.getHeight(c))+" re"),l.push("f"),a.stream=l.join(`
`),a}},RadioButton:{Circle:{createAppearanceStream:function(c){var a={D:{Off:Qn.RadioButton.Circle.OffPushDown},N:{}};return a.N[c]=Qn.RadioButton.Circle.YesNormal,a.D[c]=Qn.RadioButton.Circle.YesPushDown,a},getCA:function(){return"l"},YesNormal:function(c){var a=Wo(c);a.scope=c.scope;var l=[],v=Qn.internal.getWidth(c)<=Qn.internal.getHeight(c)?Qn.internal.getWidth(c)/4:Qn.internal.getHeight(c)/4;v=Number((.9*v).toFixed(5));var F=Qn.internal.Bezier_C,C=Number((v*F).toFixed(5));return l.push("q"),l.push("1 0 0 1 "+Oo(Qn.internal.getWidth(c)/2)+" "+Oo(Qn.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=Qn.internal.getWidth(c)<=Qn.internal.getHeight(c)?Qn.internal.getWidth(c)/4:Qn.internal.getHeight(c)/4;v=Number((.9*v).toFixed(5));var F=Number((2*v).toFixed(5)),C=Number((F*Qn.internal.Bezier_C).toFixed(5)),T=Number((v*Qn.internal.Bezier_C).toFixed(5));return l.push("0.749023 g"),l.push("q"),l.push("1 0 0 1 "+Oo(Qn.internal.getWidth(c)/2)+" "+Oo(Qn.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 "+Oo(Qn.internal.getWidth(c)/2)+" "+Oo(Qn.internal.getHeight(c)/2)+" cm"),l.push(v+" 0 m"),l.push(v+" "+T+" "+T+" "+v+" 0 "+v+" c"),l.push("-"+T+" "+v+" -"+v+" "+T+" -"+v+" 0 c"),l.push("-"+v+" -"+T+" -"+T+" -"+v+" 0 -"+v+" c"),l.push(T+" -"+v+" "+v+" -"+T+" "+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=Qn.internal.getWidth(c)<=Qn.internal.getHeight(c)?Qn.internal.getWidth(c)/4:Qn.internal.getHeight(c)/4;v=Number((.9*v).toFixed(5));var F=Number((2*v).toFixed(5)),C=Number((F*Qn.internal.Bezier_C).toFixed(5));return l.push("0.749023 g"),l.push("q"),l.push("1 0 0 1 "+Oo(Qn.internal.getWidth(c)/2)+" "+Oo(Qn.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:Qn.RadioButton.Cross.OffPushDown},N:{}};return a.N[c]=Qn.RadioButton.Cross.YesNormal,a.D[c]=Qn.RadioButton.Cross.YesPushDown,a},getCA:function(){return"8"},YesNormal:function(c){var a=Wo(c);a.scope=c.scope;var l=[],v=Qn.internal.calculateCross(c);return l.push("q"),l.push("1 1 "+Ni(Qn.internal.getWidth(c)-2)+" "+Ni(Qn.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=Qn.internal.calculateCross(c),v=[];return v.push("0.749023 g"),v.push("0 0 "+Ni(Qn.internal.getWidth(c))+" "+Ni(Qn.internal.getHeight(c))+" re"),v.push("f"),v.push("q"),v.push("1 1 "+Ni(Qn.internal.getWidth(c)-2)+" "+Ni(Qn.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(Qn.internal.getWidth(c))+" "+Ni(Qn.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}};Qn.internal={Bezier_C:.551915024494,calculateCross:function(c){var a=Qn.internal.getWidth(c),l=Qn.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}}}},Qn.internal.getWidth=function(c){var a=0;return(0,ge.Z)(c)==="object"&&(a=el(c.Rect[2])),a},Qn.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=Ya,Aa.AcroFormListBox=lo,Aa.AcroFormComboBox=Oa,Aa.AcroFormEditBox=Ma,Aa.AcroFormButton=Io,Aa.AcroFormPushButton=kl,Aa.AcroFormRadioButton=ds,Aa.AcroFormCheckBox=Uo,Aa.AcroFormTextField=Ms,Aa.AcroFormPasswordField=Mo,Aa.AcroFormAppearance=Qn,Aa.AcroForm={ChoiceField:Ya,ListBox:lo,ComboBox:Oa,EditBox:Ma,Button:Io,PushButton:kl,RadioButton:ds,CheckBox:Uo,TextField:Ms,PasswordField:Mo,Appearance:Qn},di.AcroForm={ChoiceField:Ya,ListBox:lo,ComboBox:Oa,EditBox:Ma,Button:Io,PushButton:kl,RadioButton:ds,CheckBox:Uo,TextField:Ms,PasswordField:Mo,Appearance:Qn};var Ro=di.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,j,Ee,De,Je,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(Je in l)for(Ee=l[Je],U=0;U<Ee.length;U+=1){for(De=!0,j=0;j<Ee[U].length;j+=1)if(Ee[U][j]!==void 0&&Ee[U][j]!==bt[j]){De=!1;break}if(De===!0){He=Je;break}}else for(Je in l)for(Ee=l[Je],U=0;U<Ee.length;U+=1){for(De=!0,j=0;j<Ee[U].length;j+=1)if(Ee[U][j]!==void 0&&Ee[U][j]!==bt.charCodeAt(j)){De=!1;break}if(De===!0){He=Je;break}}return He===a&&Bt!==a&&(He=Bt),He},F=function bt(Bt){for(var U=this.internal.write,j=this.internal.putStream,Ee=(0,this.internal.getFilters)();Ee.indexOf("FlateEncode")!==-1;)Ee.splice(Ee.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 Je="",He=0,dt=Bt.transparency.length;He<dt;He++)Je+=Bt.transparency[He]+" "+Bt.transparency[He]+" ";De.push({key:"Mask",value:"["+Je+"]"})}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(j({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();j({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])},T=function(){var bt,Bt=this.internal.collections.addImage_images,U=this.internal.write;for(var j in Bt)U("/I"+(bt=Bt[j]).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",T))},ae=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},lt=function(bt,Bt){if(bt.nodeName==="IMG"&&bt.hasAttribute("src")){var U=""+bt.getAttribute("src");if(U.indexOf("data:image/")===0)return Gn(unescape(U).split("base64,").pop());var j=c.loadFile(U,!0);if(j!==void 0)return j}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 Ee;switch(Bt){case"PNG":Ee="image/png";break;case"WEBP":Ee="image/webp";break;case"JPEG":case"JPG":default:Ee="image/jpeg"}return Gn(bt.toDataURL(Ee,1).split("base64,").pop())}},be=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,j,Ee,De){var Je=Lt.call(this,U,j,Ee),He=this.internal.getCoordinateString,dt=this.internal.getVerticalCoordinateString,pt=ae.call(this);if(U=Je[0],j=Je[1],pt[Ee.index]=Ee,De){De*=Math.PI/180;var Et=Math.cos(De),de=Math.sin(De),Ze=function(mt){return mt.toFixed(4)},Xe=[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+j),"cm"].join(" ")),this.internal.write(Xe.join(" ")),this.internal.write([He(U),"0","0",He(j),"0","0","cm"].join(" "))):this.internal.write([He(U),"0","0",He(j),He(bt),dt(Bt+j),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Ee.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,j=0;if(typeof bt=="string")for(U=bt.length,Bt=0;Bt<U;Bt++)j=(j<<5)-j+bt.charCodeAt(Bt),j|=0;else if(yn(bt))for(U=bt.byteLength/2,Bt=0;Bt<U;Bt++)j=(j<<5)-j+bt[Bt],j|=0;return j},ir=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 j=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(Bt[0]);Array.isArray(j)&&(U={mimeType:j[1],charset:j[2],data:Bt[1]})}return U},Rr=c.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};c.__addimage__.isArrayBuffer=function(bt){return Rr()&&bt instanceof ArrayBuffer};var yn=c.__addimage__.isArrayBufferView=function(bt){return Rr()&&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)},Er=c.__addimage__.binaryStringToUint8Array=function(bt){for(var Bt=bt.length,U=new Uint8Array(Bt),j=0;j<Bt;j++)U[j]=bt.charCodeAt(j);return U},Gt=c.__addimage__.arrayBufferToBinaryString=function(bt){for(var Bt="",U=yn(bt)?bt:new Uint8Array(bt),j=0;j<U.length;j+=8192)Bt+=String.fromCharCode.apply(null,U.subarray(j,j+8192));return Bt};c.addImage=function(){var bt,Bt,U,j,Ee,De,Je,He,dt;if(typeof arguments[1]=="number"?(Bt=a,U=arguments[1],j=arguments[2],Ee=arguments[3],De=arguments[4],Je=arguments[5],He=arguments[6],dt=arguments[7]):(Bt=arguments[1],U=arguments[2],j=arguments[3],Ee=arguments[4],De=arguments[5],Je=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,j=pt.y||j||0,Ee=pt.w||pt.width||Ee,De=pt.h||pt.height||De,Je=pt.alias||Je,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(j))throw new Error("Invalid coordinates passed to jsPDF.addImage");V.call(this);var de=Dr.call(this,bt,Bt,Je,He);return wt.call(this,U,j,Ee,De,de,dt),this};var Dr=function(bt,Bt,U,j){var Ee,De,Je;if(typeof bt=="string"&&v(bt)===a){bt=unescape(bt);var He=Zr(bt,!1);(He!==""||(He=c.loadFile(bt,!0))!==void 0)&&(bt=He)}if(Ve(bt)&&(bt=lt(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(((Je=U)==null||Je.length===0)&&(U=function(dt){return typeof dt=="string"||yn(dt)?Pt(dt):yn(dt.data)?Pt(dt.data):null}(bt)),(Ee=be.call(this,U))||(Rr()&&(bt instanceof Uint8Array||Bt==="RGBA"||(De=bt,bt=Er(bt))),Ee=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}(j),De)),!Ee)throw new Error("An unknown error occurred whilst processing the image.");return Ee},Zr=c.__addimage__.convertBase64ToBinaryString=function(bt,Bt){var U;Bt=typeof Bt!="boolean"||Bt;var j,Ee="";if(typeof bt=="string"){j=(U=gr(bt))!==null?U.data:bt;try{Ee=Gn(j)}catch(De){if(Bt)throw ir(j)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+De.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return Ee};c.getImageProperties=function(bt){var Bt,U,j="";if(Ve(bt)&&(bt=lt(bt)),typeof bt=="string"&&v(bt)===a&&((j=Zr(bt,!1))===""&&(j=c.loadFile(bt)||""),bt=j),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(!Rr()||bt instanceof Uint8Array||(bt=Er(bt)),!(Bt=this["process"+U.toUpperCase()](bt)))throw new Error("An unknown error occurred whilst processing the image");return Bt.fileType=U,Bt}})(di.API),function(c){var a=function(l){if(l!==void 0&&l!="")return!0};di.API.events.push(["addPage",function(l){this.internal.getPageInfo(l.pageNumber).pageContext.annotations=[]}]),c.events.push(["putPage",function(l){for(var v,F,C,T=this.internal.getCoordinateString,V=this.internal.getVerticalCoordinateString,ae=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 lt=0;lt<_e.length;lt++){v=_e[lt];var be=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 ["+T(v.bounds.x)+" "+V(v.bounds.y+v.bounds.h)+" "+T(v.bounds.x+v.bounds.w)+" "+V(v.bounds.y)+"] ")+"/Contents ("+be(ht(v.contents))+")",C+=" /Popup "+kt.objId+" 0 R",C+=" /P "+ae.objId+" 0 R",C+=" /T ("+be(ht(Pt))+") >>",wt.content=C;var ir=wt.objId+" 0 R";C="<</Type /Annot /Subtype /Popup "+(F="/Rect ["+T(v.bounds.x+30)+" "+V(v.bounds.y+v.bounds.h)+" "+T(v.bounds.x+v.bounds.w+30)+" "+V(v.bounds.y)+"] ")+" /Parent "+ir,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 ["+T(v.bounds.x)+" "+V(v.bounds.y)+" "+T(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 ("+be(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 Rr=this.annotations._nameMap[v.options.name];v.options.pageNumber=Rr.page,v.options.top=Rr.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 ("+be(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,T){var V=this.internal.getCurrentPageInfo(),ae=this.internal.getCoordinateString,_e=this.internal.getVerticalCoordinateString;V.pageContext.annotations.push({finalBounds:{x:ae(l),y:_e(v),w:ae(l+F),h:_e(v+C)},options:T,type:"link"})},c.textWithLink=function(l,v,F,C){var T,V,ae=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;T=Math.ceil(_e*We)}else V=ae,T=_e;return this.text(l,v,F,C),F+=.2*_e,C.align==="center"&&(v-=ae/2),C.align==="right"&&(v-=ae),this.link(v,F-_e,V,T,C),ae},c.getTextWidth=function(l){var v=this.internal.getFontSize();return this.getStringUnitWidth(l)*v/this.internal.scaleFactor}}(di.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},T=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 T(wt)&&C(wt)&&a[wt.charCodeAt(0)].length<=2},ae=c.__arabicParser__.isArabicAlfLetter=function(wt){return T(wt)&&F.indexOf(wt.charCodeAt(0))>=0};c.__arabicParser__.arabicLetterHasIsolatedForm=function(wt){return T(wt)&&C(wt)&&a[wt.charCodeAt(0)].length>=1};var _e=c.__arabicParser__.arabicLetterHasFinalForm=function(wt){return T(wt)&&C(wt)&&a[wt.charCodeAt(0)].length>=2};c.__arabicParser__.arabicLetterHasInitialForm=function(wt){return T(wt)&&C(wt)&&a[wt.charCodeAt(0)].length>=3};var We=c.__arabicParser__.arabicLetterHasMedialForm=function(wt){return T(wt)&&C(wt)&&a[wt.charCodeAt(0)].length==4},Ve=c.__arabicParser__.resolveLigatures=function(wt){var kt=0,ht=l,Pt="",ir=0;for(kt=0;kt<wt.length;kt+=1)ht[wt.charCodeAt(kt)]!==void 0?(ir++,typeof(ht=ht[wt.charCodeAt(kt)])=="number"&&(Pt+=String.fromCharCode(ht),ht=l,ir=0),kt===wt.length-1&&(ht=l,Pt+=wt.charAt(kt-(ir-1)),kt-=ir-1,ir=0)):(ht=l,Pt+=wt.charAt(kt-ir),kt-=ir,ir=0);return Pt};c.__arabicParser__.isArabicDiacritic=function(wt){return wt!==void 0&&v[wt.charCodeAt(0)]!==void 0};var lt=c.__arabicParser__.getCorrectForm=function(wt,kt,ht){return T(wt)?C(wt)===!1?-1:!_e(wt)||!T(kt)&&!T(ht)||!T(ht)&&V(kt)||V(wt)&&!T(kt)||V(wt)&&ae(kt)||V(wt)&&V(kt)?0:We(wt)&&T(kt)&&!V(kt)&&T(ht)&&_e(ht)?3:V(wt)||!T(ht)?1:2:-1},be=function(wt){var kt=0,ht=0,Pt=0,ir="",gr="",Rr="",yn=(wt=wt||"").split("\\s+"),Er=[];for(kt=0;kt<yn.length;kt+=1){for(Er.push(""),ht=0;ht<yn[kt].length;ht+=1)ir=yn[kt][ht],gr=yn[kt][ht-1],Rr=yn[kt][ht+1],T(ir)?(Pt=lt(ir,gr,Rr),Er[kt]+=Pt!==-1?String.fromCharCode(a[ir.charCodeAt(0)][Pt]):ir):Er[kt]+=ir;Er[kt]=Ve(Er[kt])}return Er.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([be(kt[Pt][0]),kt[Pt][1],kt[Pt][2]]):ht.push([be(kt[Pt])]);wt=ht}else wt=be(kt);return typeof arguments[0]=="string"?wt:(arguments[0].text=wt,arguments[0])};c.events.push(["preProcessText",Lt])}(di.API),di.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 T={};Object.defineProperty(this,"style",{get:function(){return T},set:function(V){T=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}])}(di.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 ae=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return ae},set:function(wt){ae=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 lt=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return lt},set:function(wt){lt=wt}});var be=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return be},set:function(wt){be=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(ae){return v.call(this),this.internal.__cell__.headerFunction=typeof ae=="function"?ae:void 0,this},c.getTextDimensions=function(ae,_e){v.call(this);var We=(_e=_e||{}).fontSize||this.getFontSize(),Ve=_e.font||this.getFont(),lt=_e.scaleFactor||this.internal.scaleFactor,be=0,Lt=0,wt=0,kt=this;if(!Array.isArray(ae)&&typeof ae!="string"){if(typeof ae!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");ae=String(ae)}var ht=_e.maxWidth;ht>0?typeof ae=="string"?ae=this.splitTextToSize(ae,ht):Object.prototype.toString.call(ae)==="[object Array]"&&(ae=ae.reduce(function(ir,gr){return ir.concat(kt.splitTextToSize(gr,ht))},[])):ae=Array.isArray(ae)?ae:[ae];for(var Pt=0;Pt<ae.length;Pt++)be<(wt=this.getStringUnitWidth(ae[Pt],{font:Ve})*We)&&(be=wt);return be!==0&&(Lt=ae.length),{w:be/=lt,h:Math.max((Lt*We*this.getLineHeightFactor()-We*(this.getLineHeightFactor()-1))/lt,0)}},c.cellAddPage=function(){v.call(this),this.addPage();var ae=this.internal.__cell__.margins||a;return this.internal.__cell__.lastCell=new C(ae.left,ae.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var T=c.cell=function(){var ae;ae=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,lt=this.internal.__cell__.tableHeaderRow,be=this.internal.__cell__.printHeaders;return _e.lineNumber!==void 0&&(_e.lineNumber===ae.lineNumber?(ae.x=(_e.x||0)+(_e.width||0),ae.y=_e.y||0):_e.y+_e.height+ae.height+Ve.bottom>this.getPageHeight()?(this.cellAddPage(),ae.y=Ve.top,be&&lt&&(this.printHeaderRow(ae.lineNumber,!0),ae.y+=lt[0].height)):ae.y=_e.y+_e.height||ae.y),ae.text[0]!==void 0&&(this.rect(ae.x,ae.y,ae.width,ae.height,l===!0?"FD":void 0),ae.align==="right"?this.text(ae.text,ae.x+ae.width-We,ae.y+We,{align:"right",baseline:"top"}):ae.align==="center"?this.text(ae.text,ae.x+ae.width/2,ae.y+We,{align:"center",baseline:"top",maxWidth:ae.width-We-We}):this.text(ae.text,ae.x+We,ae.y+We,{align:"left",baseline:"top",maxWidth:ae.width-We-We})),this.internal.__cell__.lastCell=ae,this};c.table=function(ae,_e,We,Ve,lt){if(v.call(this),!We)throw new Error("No data for PDF table.");var be,Lt,wt,kt,ht=[],Pt=[],ir=[],gr={},Rr={},yn=[],Er=[],Gt=(lt=lt||{}).autoSize||!1,Dr=lt.printHeaders!==!1,Zr=lt.css&&lt.css["font-size"]!==void 0?16*lt.css["font-size"]:lt.fontSize||12,bt=lt.margins||Object.assign({width:this.getPageWidth()},a),Bt=typeof lt.padding=="number"?lt.padding:3,U=lt.headerBackgroundColor||"#c8c8c8",j=lt.headerTextColor||"#000";if(F.call(this),this.internal.__cell__.printHeaders=Dr,this.internal.__cell__.margins=bt,this.internal.__cell__.table_font_size=Zr,this.internal.__cell__.padding=Bt,this.internal.__cell__.headerBackgroundColor=U,this.internal.__cell__.headerTextColor=j,this.setFontSize(Zr),Ve==null)Pt=ht=Object.keys(We[0]),ir=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||""}),ir=Ve.map(function(pt){return pt.align||"left"}),be=0;be<Ve.length;be+=1)Rr[Ve[be].name]=Ve[be].width*(19.049976/25.4);else Array.isArray(Ve)&&typeof Ve[0]=="string"&&(Pt=ht=Ve,ir=ht.map(function(){return"left"}));if(Gt||Array.isArray(Ve)&&typeof Ve[0]=="string")for(be=0;be<ht.length;be+=1){for(gr[kt=ht[be]]=We.map(function(pt){return pt[kt]}),this.setFont(void 0,"bold"),yn.push(this.getTextDimensions(Pt[be],{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);Rr[kt]=Math.max.apply(null,yn)+Bt+Bt,yn=[]}if(Dr){var Ee={};for(be=0;be<ht.length;be+=1)Ee[ht[be]]={},Ee[ht[be]].text=Pt[be],Ee[ht[be]].align=ir[be];var De=V.call(this,Ee,Rr);Er=ht.map(function(pt){return new C(ae,_e,Rr[pt],De,Ee[pt].text,void 0,Ee[pt].align)}),this.setTableHeaderRow(Er),this.printHeaderRow(1,!1)}var Je=Ve.reduce(function(pt,Et){return pt[Et.name]=Et.align,pt},{});for(be=0;be<We.length;be+=1){"rowStart"in lt&&lt.rowStart instanceof Function&&lt.rowStart({row:be,data:We[be]},this);var He=V.call(this,We[be],Rr);for(wt=0;wt<ht.length;wt+=1){var dt=We[be][ht[wt]];"cellStart"in lt&&lt.cellStart instanceof Function&&lt.cellStart({row:be,col:wt,data:dt},this),T.call(this,new C(ae,_e,Rr[ht[wt]],He,dt,be+2,Je[ht[wt]]))}}return this.internal.__cell__.table_x=ae,this.internal.__cell__.table_y=_e,this};var V=function(ae,_e){var We=this.internal.__cell__.padding,Ve=this.internal.__cell__.table_font_size,lt=this.internal.scaleFactor;return Object.keys(ae).map(function(be){var Lt=ae[be];return this.splitTextToSize(Lt.hasOwnProperty("text")?Lt.text:Lt,_e[be]-We-We)},this).map(function(be){return this.getLineHeightFactor()*be.length*Ve/lt+We+We},this).reduce(function(be,Lt){return Math.max(be,Lt)},0)};c.setTableHeaderRow=function(ae){v.call(this),this.internal.__cell__.tableHeaderRow=ae},c.printHeaderRow=function(ae,_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 lt=[],be=0;be<this.internal.__cell__.tableHeaderRow.length;be+=1){We=this.internal.__cell__.tableHeaderRow[be].clone(),_e&&(We.y=this.internal.__cell__.margins.top||0,lt.push(We)),We.lineNumber=ae;var Lt=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),T.call(this,We),this.setTextColor(Lt)}lt.length>0&&this.setTableHeaderRow(lt),this.setFont(void 0,"normal"),l=!1}}(di.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"],La=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 La[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 ha={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},aa={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function mo(c){return[c.stretch,c.style,c.weight,c.family].join(" ")}function Za(c,a,l){for(var v=(l=l||{}).defaultFontFamily||"times",F=Object.assign({},ha,l.genericFontFamilies||{}),C=null,T=null,V=0;V<a.length;++V)if(F[(C=ac(a[V])).family]&&(C.family=F[C.family]),c.hasOwnProperty(C.family)){T=c[C.family];break}if(!(T=T||c[v]))throw new Error("Could not find a font-family for the rule '"+mo(C)+"' and default family '"+v+"'.");if(T=function(ae,_e){if(_e[ae])return _e[ae];var We=La[ae],Ve=We<=La.normal?-1:1,lt=cl(_e,bs,We,Ve);if(!lt)throw new Error("Could not find a matching font-stretch value for "+ae);return lt}(C.stretch,T),T=function(ae,_e){if(_e[ae])return _e[ae];for(var We=Ks[ae],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 "+ae)}(C.style,T),!(T=function(ae,_e){if(_e[ae])return _e[ae];if(ae===400&&_e[500])return _e[500];if(ae===500&&_e[400])return _e[400];var We=Wl[ae],Ve=cl(_e,Qo,We,ae<400?-1:1);if(!Ve)throw new Error("Could not find a matching font-weight for value "+ae);return Ve}(C.weight,T)))throw new Error("Failed to resolve a font for the rule '"+mo(C)+"'.");return T}function no(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 qa(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,T,V,ae,_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 ae,this.globalCompositeOperation=de.globalCompositeOperation||"normal",this.globalAlpha=de.globalAlpha||1,this.clip_path=de.clip_path||[],this.currentPoint=de.currentPoint||new T,this.miterLimit=de.miterLimit||10,this.lastPoint=de.lastPoint||new T,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,T=this.internal.Point,V=this.internal.Rectangle,ae=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 Xe=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Xe},set:function(rr){Xe=!!rr}});var mt=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return mt},set:function(rr){mt=!!rr}});var yt=0;Object.defineProperty(this,"posX",{get:function(){return yt},set:function(rr){isNaN(rr)||(yt=rr)}});var It=0;Object.defineProperty(this,"posY",{get:function(){return It},set:function(rr){isNaN(rr)||(It=rr)}}),Object.defineProperty(this,"margin",{get:function(){return _e.margin},set:function(rr){var St;typeof rr=="number"?St=[rr,rr,rr,rr]:((St=new Array(4))[0]=rr[0],St[1]=rr.length>=2?rr[1]:St[0],St[2]=rr.length>=3?rr[2]:St[0],St[3]=rr.length>=4?rr[3]:St[1]),_e.margin=St}});var Rt=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Rt},set:function(rr){Rt=rr}});var Tt=0;Object.defineProperty(this,"lastBreak",{get:function(){return Tt},set:function(rr){Tt=rr}});var pr=[];Object.defineProperty(this,"pageBreaks",{get:function(){return pr},set:function(rr){pr=rr}}),Object.defineProperty(this,"ctx",{get:function(){return _e},set:function(rr){rr instanceof We&&(_e=rr)}}),Object.defineProperty(this,"path",{get:function(){return _e.path},set:function(rr){_e.path=rr}});var sr=[];Object.defineProperty(this,"ctxStack",{get:function(){return sr},set:function(rr){sr=rr}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(rr){var St;St=lt(rr),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(rr){var St=lt(rr);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(rr){["butt","round","square"].indexOf(rr)!==-1&&(this.ctx.lineCap=rr,this.pdf.setLineCap(rr))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(rr){isNaN(rr)||(this.ctx.lineWidth=rr,this.pdf.setLineWidth(rr))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(rr){["bevel","round","miter"].indexOf(rr)!==-1&&(this.ctx.lineJoin=rr,this.pdf.setLineJoin(rr))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(rr){isNaN(rr)||(this.ctx.miterLimit=rr,this.pdf.setMiterLimit(rr))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(rr){this.ctx.textBaseline=rr}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(rr){["right","end","center","left","start"].indexOf(rr)!==-1&&(this.ctx.textAlign=rr)}});var _r=null;function Qr(rr,St){if(_r===null){var Un=function(jr){var yr=[];return Object.keys(jr).forEach(function(Fr){jr[Fr].forEach(function(br){var kr=null;switch(br){case"bold":kr={family:Fr,weight:"bold"};break;case"italic":kr={family:Fr,style:"italic"};break;case"bolditalic":kr={family:Fr,weight:"bold",style:"italic"};break;case"":case"normal":kr={family:Fr}}kr!==null&&(kr.ref={name:Fr,style:br},yr.push(kr))})}),yr}(rr.getFontList());_r=function(jr){for(var yr={},Fr=0;Fr<jr.length;++Fr){var br=ac(jr[Fr]),kr=br.family,fn=br.stretch,$n=br.style,Kn=br.weight;yr[kr]=yr[kr]||{},yr[kr][fn]=yr[kr][fn]||{},yr[kr][fn][$n]=yr[kr][fn][$n]||{},yr[kr][fn][$n][Kn]=br}return yr}(Un.concat(St))}return _r}var hn=null;Object.defineProperty(this,"fontFaces",{get:function(){return hn},set:function(rr){_r=null,hn=rr}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(rr){var St;if(this.ctx.font=rr,(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(rr))!==null){var Un=St[1],jr=(St[2],St[3]),yr=St[4],Fr=(St[5],St[6]),br=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(yr)[2];yr=Math.floor(br==="px"?parseFloat(yr)*this.pdf.internal.scaleFactor:br==="em"?parseFloat(yr)*this.pdf.getFontSize():parseFloat(yr)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(yr);var kr=function(fi){var gi,Dn,pa=[],qn=fi.trim();if(qn==="")return Vs;if(qn in aa)return[aa[qn]];for(;qn!=="";){switch(Dn=null,gi=(qn=no(qn)).charAt(0)){case'"':case"'":Dn=Ko(qn.substring(1),gi);break;default:Dn=qa(qn)}if(Dn===null||(pa.push(Dn[0]),(qn=no(Dn[1]))!==""&&qn.charAt(0)!==","))return Vs;qn=qn.replace(/^,/,"")}return pa}(Fr);if(this.fontFaces){var fn=Za(Qr(this.pdf,this.fontFaces),kr.map(function(fi){return{family:fi,stretch:"normal",weight:jr,style:Un}}));this.pdf.setFont(fn.ref.name,fn.ref.style)}else{var $n="";(jr==="bold"||parseInt(jr,10)>=700||Un==="bold")&&($n="bold"),Un==="italic"&&($n+="italic"),$n.length===0&&($n="normal");for(var Kn="",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"},ai=0;ai<kr.length;ai++){if(this.pdf.internal.getFont(kr[ai],$n,{noFallback:!0,disableWarning:!0})!==void 0){Kn=kr[ai];break}if($n==="bolditalic"&&this.pdf.internal.getFont(kr[ai],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Kn=kr[ai],$n="bold";else if(this.pdf.internal.getFont(kr[ai],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Kn=kr[ai],$n="normal";break}}if(Kn===""){for(var Ci=0;Ci<kr.length;Ci++)if(Bn[kr[Ci]]){Kn=Bn[kr[Ci]];break}}Kn=Kn===""?"Times":Kn,this.pdf.setFont(Kn,$n)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(rr){this.ctx.globalCompositeOperation=rr}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(rr){this.ctx.globalAlpha=rr}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(rr){this.ctx.lineDashOffset=rr,Et.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(rr){this.ctx.lineDash=rr,Et.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(rr){this.ctx.ignoreClearRect=!!rr}})};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 In.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var Xe=this.ctx.transform.applyToPoint(new T(de,Ze));this.path.push({type:"mt",x:Xe.x,y:Xe.y}),this.ctx.lastPoint=new T(de,Ze)},Ve.prototype.closePath=function(){var de=new T(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 T(this.path[Ze+1].x,this.path[Ze+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new T(de.x,de.y)},Ve.prototype.lineTo=function(de,Ze){if(isNaN(de)||isNaN(Ze))throw In.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var Xe=this.ctx.transform.applyToPoint(new T(de,Ze));this.path.push({type:"lt",x:Xe.x,y:Xe.y}),this.ctx.lastPoint=new T(Xe.x,Xe.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,Xe,mt){if(isNaN(Xe)||isNaN(mt)||isNaN(de)||isNaN(Ze))throw In.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var yt=this.ctx.transform.applyToPoint(new T(Xe,mt)),It=this.ctx.transform.applyToPoint(new T(de,Ze));this.path.push({type:"qct",x1:It.x,y1:It.y,x:yt.x,y:yt.y}),this.ctx.lastPoint=new T(yt.x,yt.y)},Ve.prototype.bezierCurveTo=function(de,Ze,Xe,mt,yt,It){if(isNaN(yt)||isNaN(It)||isNaN(de)||isNaN(Ze)||isNaN(Xe)||isNaN(mt))throw In.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Rt=this.ctx.transform.applyToPoint(new T(yt,It)),Tt=this.ctx.transform.applyToPoint(new T(de,Ze)),pr=this.ctx.transform.applyToPoint(new T(Xe,mt));this.path.push({type:"bct",x1:Tt.x,y1:Tt.y,x2:pr.x,y2:pr.y,x:Rt.x,y:Rt.y}),this.ctx.lastPoint=new T(Rt.x,Rt.y)},Ve.prototype.arc=function(de,Ze,Xe,mt,yt,It){if(isNaN(de)||isNaN(Ze)||isNaN(Xe)||isNaN(mt)||isNaN(yt))throw In.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(It=!!It,!this.ctx.transform.isIdentity){var Rt=this.ctx.transform.applyToPoint(new T(de,Ze));de=Rt.x,Ze=Rt.y;var Tt=this.ctx.transform.applyToPoint(new T(0,Xe)),pr=this.ctx.transform.applyToPoint(new T(0,0));Xe=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:Xe,startAngle:mt,endAngle:yt,counterclockwise:It})},Ve.prototype.arcTo=function(de,Ze,Xe,mt,yt){throw new Error("arcTo not implemented.")},Ve.prototype.rect=function(de,Ze,Xe,mt){if(isNaN(de)||isNaN(Ze)||isNaN(Xe)||isNaN(mt))throw In.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(de,Ze),this.lineTo(de+Xe,Ze),this.lineTo(de+Xe,Ze+mt),this.lineTo(de,Ze+mt),this.lineTo(de,Ze),this.lineTo(de+Xe,Ze),this.lineTo(de,Ze)},Ve.prototype.fillRect=function(de,Ze,Xe,mt){if(isNaN(de)||isNaN(Ze)||isNaN(Xe)||isNaN(mt))throw In.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!be.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,Xe,mt),this.fill(),yt.hasOwnProperty("lineCap")&&(this.lineCap=yt.lineCap),yt.hasOwnProperty("lineJoin")&&(this.lineJoin=yt.lineJoin)}},Ve.prototype.strokeRect=function(de,Ze,Xe,mt){if(isNaN(de)||isNaN(Ze)||isNaN(Xe)||isNaN(mt))throw In.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,Xe,mt),this.stroke())},Ve.prototype.clearRect=function(de,Ze,Xe,mt){if(isNaN(de)||isNaN(Ze)||isNaN(Xe)||isNaN(mt))throw In.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,Xe,mt))},Ve.prototype.save=function(de){de=typeof de!="boolean"||de;for(var Ze=this.pdf.internal.getCurrentPageInfo().pageNumber,Xe=0;Xe<this.pdf.internal.getNumberOfPages();Xe++)this.pdf.setPage(Xe+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,Xe=0;Xe<this.pdf.internal.getNumberOfPages();Xe++)this.pdf.setPage(Xe+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 lt=function(de){var Ze,Xe,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,Xe=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]),Xe=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]),Xe=parseInt(It[2]),mt=parseInt(It[3]),yt=parseFloat(It[4]);else{if(yt=1,typeof de=="string"&&de.charAt(0)!=="#"){var Rt=new si(de);de=Rt.ok?Rt.toHex():"#000000"}de.length===4?(Ze=de.substring(1,2),Ze+=Ze,Xe=de.substring(2,3),Xe+=Xe,mt=de.substring(3,4),mt+=mt):(Ze=de.substring(1,3),Xe=de.substring(3,5),mt=de.substring(5,7)),Ze=parseInt(Ze,16),Xe=parseInt(Xe,16),mt=parseInt(mt,16)}}return{r:Ze,g:Xe,b:mt,a:yt,style:de}},be=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},Lt=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Ve.prototype.fillText=function(de,Ze,Xe,mt){if(isNaN(Ze)||isNaN(Xe)||typeof de!="string")throw In.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(mt=isNaN(mt)?void 0:mt,!be.call(this)){var yt=He(this.ctx.transform.rotation),It=this.ctx.transform.scaleX;Bt.call(this,{text:de,x:Ze,y:Xe,scale:It,angle:yt,align:this.textAlign,maxWidth:mt})}},Ve.prototype.strokeText=function(de,Ze,Xe,mt){if(isNaN(Ze)||isNaN(Xe)||typeof de!="string")throw In.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:Xe,scale:It,renderingMode:"stroke",angle:yt,align:this.textAlign,maxWidth:mt})}},Ve.prototype.measureText=function(de){if(typeof de!="string")throw In.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var Ze=this.pdf,Xe=this.pdf.internal.scaleFactor,mt=Ze.internal.getFontSize(),yt=Ze.getStringUnitWidth(de)*mt/Ze.internal.scaleFactor,It=function(Rt){var Tt=(Rt=Rt||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Tt}}),this};return new It({width:yt*=Math.round(96*Xe/72*1e4)/1e4})},Ve.prototype.scale=function(de,Ze){if(isNaN(de)||isNaN(Ze))throw In.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var Xe=new ae(de,0,0,Ze,0,0);this.ctx.transform=this.ctx.transform.multiply(Xe)},Ve.prototype.rotate=function(de){if(isNaN(de))throw In.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var Ze=new ae(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 In.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var Xe=new ae(1,0,0,1,de,Ze);this.ctx.transform=this.ctx.transform.multiply(Xe)},Ve.prototype.transform=function(de,Ze,Xe,mt,yt,It){if(isNaN(de)||isNaN(Ze)||isNaN(Xe)||isNaN(mt)||isNaN(yt)||isNaN(It))throw In.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Rt=new ae(de,Ze,Xe,mt,yt,It);this.ctx.transform=this.ctx.transform.multiply(Rt)},Ve.prototype.setTransform=function(de,Ze,Xe,mt,yt,It){de=isNaN(de)?1:de,Ze=isNaN(Ze)?0:Ze,Xe=isNaN(Xe)?0:Xe,mt=isNaN(mt)?1:mt,yt=isNaN(yt)?0:yt,It=isNaN(It)?0:It,this.ctx.transform=new ae(de,Ze,Xe,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,Xe,mt,yt,It,Rt,Tt,pr){var sr=this.pdf.getImageProperties(de),_r=1,Qr=1,hn=1,rr=1;mt!==void 0&&Tt!==void 0&&(hn=Tt/mt,rr=pr/yt,_r=sr.width/mt*Tt/mt,Qr=sr.height/yt*pr/yt),It===void 0&&(It=Ze,Rt=Xe,Ze=0,Xe=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,Un=this.ctx.transform.decompose(),jr=He(Un.rotate.shx),yr=new ae,Fr=(yr=(yr=(yr=yr.multiply(Un.translate)).multiply(Un.skew)).multiply(Un.scale)).applyToRectangle(new V(It-Ze*hn,Rt-Xe*rr,mt*_r,yt*Qr)),br=kt.call(this,Fr),kr=[],fn=0;fn<br.length;fn+=1)kr.indexOf(br[fn])===-1&&kr.push(br[fn]);if(ir(kr),this.autoPaging)for(var $n=kr[0],Kn=kr[kr.length-1],Bn=$n;Bn<Kn+1;Bn++){this.pdf.setPage(Bn);var ai=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ci=Bn===1?this.posY+this.margin[0]:this.margin[0],fi=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],gi=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Dn=Bn===1?0:fi+(Bn-2)*gi;if(this.ctx.clip_path.length!==0){var pa=this.path;St=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Pt(St,this.posX+this.margin[3],-Dn+Ci+this.ctx.prevPageLastElemOffset),Rr.call(this,"fill",!0),this.path=pa}var qn=JSON.parse(JSON.stringify(Fr));qn=Pt([qn],this.posX+this.margin[3],-Dn+Ci+this.ctx.prevPageLastElemOffset)[0];var co=(Bn>$n||Bn<Kn)&&wt.call(this);co&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ai,gi,null).clip().discardPath()),this.pdf.addImage(de,"JPEG",qn.x,qn.y,qn.w,qn.h,null,null,jr),co&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(de,"JPEG",Fr.x,Fr.y,Fr.w,Fr.h,null,null,jr)};var kt=function(de,Ze,Xe){var mt=[];Ze=Ze||this.pdf.internal.pageSize.width,Xe=Xe||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)/Xe)+1);break;case"arc":mt.push(Math.floor((de.y+yt-de.radius)/Xe)+1),mt.push(Math.floor((de.y+yt+de.radius)/Xe)+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)/Xe)+1),mt.push(Math.floor((It.y+It.h+yt)/Xe)+1);break;case"bct":var Rt=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((Rt.y+yt)/Xe)+1),mt.push(Math.floor((Rt.y+Rt.h+yt)/Xe)+1);break;case"rect":mt.push(Math.floor((de.y+yt)/Xe)+1),mt.push(Math.floor((de.y+de.h+yt)/Xe)+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,Xe=this.font,mt=this.lineCap,yt=this.lineWidth,It=this.lineJoin;this.pdf.addPage(),this.fillStyle=de,this.strokeStyle=Ze,this.font=Xe,this.lineCap=mt,this.lineWidth=yt,this.lineJoin=It},Pt=function(de,Ze,Xe){for(var mt=0;mt<de.length;mt++)switch(de[mt].type){case"bct":de[mt].x2+=Ze,de[mt].y2+=Xe;case"qct":de[mt].x1+=Ze,de[mt].y1+=Xe;case"mt":case"lt":case"arc":default:de[mt].x+=Ze,de[mt].y+=Xe}return de},ir=function(de){return de.sort(function(Ze,Xe){return Ze-Xe})},gr=function(de,Ze){for(var Xe,mt,yt=this.fillStyle,It=this.strokeStyle,Rt=this.lineCap,Tt=this.lineWidth,pr=Math.abs(Tt*this.ctx.transform.scaleX),sr=this.lineJoin,_r=JSON.parse(JSON.stringify(this.path)),Qr=JSON.parse(JSON.stringify(this.path)),hn=[],rr=0;rr<Qr.length;rr++)if(Qr[rr].x!==void 0)for(var St=kt.call(this,Qr[rr]),Un=0;Un<St.length;Un+=1)hn.indexOf(St[Un])===-1&&hn.push(St[Un]);for(var jr=0;jr<hn.length;jr++)for(;this.pdf.internal.getNumberOfPages()<hn[jr];)ht.call(this);if(ir(hn),this.autoPaging)for(var yr=hn[0],Fr=hn[hn.length-1],br=yr;br<Fr+1;br++){this.pdf.setPage(br),this.fillStyle=yt,this.strokeStyle=It,this.lineCap=Rt,this.lineWidth=pr,this.lineJoin=sr;var kr=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],fn=br===1?this.posY+this.margin[0]:this.margin[0],$n=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Kn=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Bn=br===1?0:$n+(br-2)*Kn;if(this.ctx.clip_path.length!==0){var ai=this.path;Xe=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Pt(Xe,this.posX+this.margin[3],-Bn+fn+this.ctx.prevPageLastElemOffset),Rr.call(this,de,!0),this.path=ai}if(mt=JSON.parse(JSON.stringify(_r)),this.path=Pt(mt,this.posX+this.margin[3],-Bn+fn+this.ctx.prevPageLastElemOffset),Ze===!1||br===0){var Ci=(br>yr||br<Fr)&&wt.call(this);Ci&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],kr,Kn,null).clip().discardPath()),Rr.call(this,de,Ze),Ci&&this.pdf.restoreGraphicsState()}this.lineWidth=Tt}else this.lineWidth=pr,Rr.call(this,de,Ze),this.lineWidth=Tt;this.path=_r},Rr=function(de,Ze){if((de!=="stroke"||Ze||!Lt.call(this))&&(de==="stroke"||Ze||!be.call(this))){for(var Xe,mt,yt=[],It=this.path,Rt=0;Rt<It.length;Rt++){var Tt=It[Rt];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[Rt-1]&&!isNaN(It[Rt-1].x)&&(Xe=[Tt.x-It[Rt-1].x,Tt.y-It[Rt-1].y],pr>0)){for(;pr>=0;pr--)if(yt[pr-1].close!==!0&&yt[pr-1].begin!==!0){yt[pr-1].deltas.push(Xe),yt[pr-1].abs.push(Tt);break}}break;case"bct":Xe=[Tt.x1-It[Rt-1].x,Tt.y1-It[Rt-1].y,Tt.x2-It[Rt-1].x,Tt.y2-It[Rt-1].y,Tt.x-It[Rt-1].x,Tt.y-It[Rt-1].y],yt[yt.length-1].deltas.push(Xe);break;case"qct":var sr=It[Rt-1].x+2/3*(Tt.x1-It[Rt-1].x),_r=It[Rt-1].y+2/3*(Tt.y1-It[Rt-1].y),Qr=Tt.x+2/3*(Tt.x1-Tt.x),hn=Tt.y+2/3*(Tt.y1-Tt.y),rr=Tt.x,St=Tt.y;Xe=[sr-It[Rt-1].x,_r-It[Rt-1].y,Qr-It[Rt-1].x,hn-It[Rt-1].y,rr-It[Rt-1].x,St-It[Rt-1].y],yt[yt.length-1].deltas.push(Xe);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 Un=!1,jr=0;jr<yt.length;jr++)if(yt[jr].arc)for(var yr=yt[jr].abs,Fr=0;Fr<yr.length;Fr++){var br=yr[Fr];br.type==="arc"?Gt.call(this,br.x,br.y,br.radius,br.startAngle,br.endAngle,br.counterclockwise,void 0,Ze,!Un):U.call(this,br.x,br.y),Un=!0}else if(yt[jr].close===!0)this.pdf.internal.out("h"),Un=!1;else if(yt[jr].begin!==!0){var kr=yt[jr].start.x,fn=yt[jr].start.y;j.call(this,yt[jr].deltas,kr,fn),Un=!0}mt&&Dr.call(this,mt),Ze&&Zr.call(this)}},yn=function(de){var Ze=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Xe=Ze*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return de-Xe;case"top":return de+Ze-Xe;case"hanging":return de+Ze-2*Xe;case"middle":return de+Ze/2-Xe;case"ideographic":return de;case"alphabetic":default:return de}},Er=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,Xe){this.colorStops.push([Ze,Xe])},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,Xe,mt,yt,It,Rt,Tt,pr){for(var sr=De.call(this,Xe,mt,yt,It),_r=0;_r<sr.length;_r++){var Qr=sr[_r];_r===0&&(pr?bt.call(this,Qr.x1+de,Qr.y1+Ze):U.call(this,Qr.x1+de,Qr.y1+Ze)),Ee.call(this,de,Ze,Qr.x2,Qr.y2,Qr.x3,Qr.y3,Qr.x4,Qr.y4)}Tt?Zr.call(this):Dr.call(this,Rt)},Dr=function(de){switch(de){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Zr=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 Xe=this.pdf.getTextDimensions(de.text),mt=yn.call(this,de.y),yt=Er.call(this,mt)-Xe.h,It=this.ctx.transform.applyToPoint(new T(de.x,mt)),Rt=this.ctx.transform.decompose(),Tt=new ae;Tt=(Tt=(Tt=Tt.multiply(Rt.translate)).multiply(Rt.skew)).multiply(Rt.scale);for(var pr,sr,_r,Qr=this.ctx.transform.applyToRectangle(new V(de.x,mt,Xe.w,Xe.h)),hn=Tt.applyToRectangle(new V(de.x,yt,Xe.w,Xe.h)),rr=kt.call(this,hn),St=[],Un=0;Un<rr.length;Un+=1)St.indexOf(rr[Un])===-1&&St.push(rr[Un]);if(ir(St),this.autoPaging)for(var jr=St[0],yr=St[St.length-1],Fr=jr;Fr<yr+1;Fr++){this.pdf.setPage(Fr);var br=Fr===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],$n=fn-this.margin[0],Kn=this.pdf.internal.pageSize.width-this.margin[1],Bn=Kn-this.margin[3],ai=Fr===1?0:kr+(Fr-2)*$n;if(this.ctx.clip_path.length!==0){var Ci=this.path;pr=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Pt(pr,this.posX+this.margin[3],-1*ai+br),Rr.call(this,"fill",!0),this.path=Ci}var fi=Pt([JSON.parse(JSON.stringify(hn))],this.posX+this.margin[3],-ai+br+this.ctx.prevPageLastElemOffset)[0];de.scale>=.01&&(sr=this.pdf.internal.getFontSize(),this.pdf.setFontSize(sr*de.scale),_r=this.lineWidth,this.lineWidth=_r*de.scale);var gi=this.autoPaging!=="text";if(gi||fi.y+fi.h<=fn){if(gi||fi.y>=br&&fi.x<=Kn){var Dn=gi?de.text:this.pdf.splitTextToSize(de.text,de.maxWidth||Kn-fi.x)[0],pa=Pt([JSON.parse(JSON.stringify(Qr))],this.posX+this.margin[3],-ai+br+this.ctx.prevPageLastElemOffset)[0],qn=gi&&(Fr>jr||Fr<yr)&&wt.call(this);qn&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Bn,$n,null).clip().discardPath()),this.pdf.text(Dn,pa.x,pa.y,{angle:de.angle,align:Ze,renderingMode:de.renderingMode}),qn&&this.pdf.restoreGraphicsState()}}else fi.y<fn&&(this.ctx.prevPageLastElemOffset+=fn-fi.y);de.scale>=.01&&(this.pdf.setFontSize(sr),this.lineWidth=_r)}else de.scale>=.01&&(sr=this.pdf.internal.getFontSize(),this.pdf.setFontSize(sr*de.scale),_r=this.lineWidth,this.lineWidth=_r*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=_r)},U=function(de,Ze,Xe,mt){Xe=Xe||0,mt=mt||0,this.pdf.internal.out(l(de+Xe)+" "+v(Ze+mt)+" l")},j=function(de,Ze,Xe){return this.pdf.lines(de,Ze,Xe,null,null)},Ee=function(de,Ze,Xe,mt,yt,It,Rt,Tt){this.pdf.internal.out([a(F(Xe+de)),a(C(mt+Ze)),a(F(yt+de)),a(C(It+Ze)),a(F(Rt+de)),a(C(Tt+Ze)),"c"].join(" "))},De=function(de,Ze,Xe,mt){for(var yt=2*Math.PI,It=Math.PI/2;Ze>Xe;)Ze-=yt;var Rt=Math.abs(Xe-Ze);Rt<yt&&mt&&(Rt=yt-Rt);for(var Tt=[],pr=mt?-1:1,sr=Ze;Rt>1e-5;){var _r=sr+pr*Math.min(Rt,It);Tt.push(Je.call(this,de,sr,_r)),Rt-=Math.abs(_r-sr),sr=_r}return Tt},Je=function(de,Ze,Xe){var mt=(Xe-Ze)/2,yt=de*Math.cos(mt),It=de*Math.sin(mt),Rt=yt,Tt=-It,pr=Rt*Rt+Tt*Tt,sr=pr+Rt*yt+Tt*It,_r=4/3*(Math.sqrt(2*pr*sr)-sr)/(Rt*It-Tt*yt),Qr=Rt-_r*Tt,hn=Tt+_r*Rt,rr=Qr,St=-hn,Un=mt+Ze,jr=Math.cos(Un),yr=Math.sin(Un);return{x1:de*Math.cos(Ze),y1:de*Math.sin(Ze),x2:Qr*jr-hn*yr,y2:Qr*yr+hn*jr,x3:rr*jr-St*yr,y3:rr*yr+St*jr,x4:de*Math.cos(Xe),y4:de*Math.sin(Xe)}},He=function(de){return 180*de/Math.PI},dt=function(de,Ze,Xe,mt,yt,It){var Rt=de+.5*(Xe-de),Tt=Ze+.5*(mt-Ze),pr=yt+.5*(Xe-yt),sr=It+.5*(mt-It),_r=Math.min(de,yt,Rt,pr),Qr=Math.max(de,yt,Rt,pr),hn=Math.min(Ze,It,Tt,sr),rr=Math.max(Ze,It,Tt,sr);return new V(_r,hn,Qr-_r,rr-hn)},pt=function(de,Ze,Xe,mt,yt,It,Rt,Tt){var pr,sr,_r,Qr,hn,rr,St,Un,jr,yr,Fr,br,kr,fn,$n=Xe-de,Kn=mt-Ze,Bn=yt-Xe,ai=It-mt,Ci=Rt-yt,fi=Tt-It;for(sr=0;sr<41;sr++)jr=(St=(_r=de+(pr=sr/40)*$n)+pr*((hn=Xe+pr*Bn)-_r))+pr*(hn+pr*(yt+pr*Ci-hn)-St),yr=(Un=(Qr=Ze+pr*Kn)+pr*((rr=mt+pr*ai)-Qr))+pr*(rr+pr*(It+pr*fi-rr)-Un),sr==0?(Fr=jr,br=yr,kr=jr,fn=yr):(Fr=Math.min(Fr,jr),br=Math.min(br,yr),kr=Math.max(kr,jr),fn=Math.max(fn,yr));return new V(Math.round(Fr),Math.round(br),Math.round(kr-Fr),Math.round(fn-br))},Et=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var de,Ze,Xe=(de=this.ctx.lineDash,Ze=this.ctx.lineDashOffset,JSON.stringify({lineDash:de,lineDashOffset:Ze}));this.prevLineDash!==Xe&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Xe)}}})(di.API),function(c){var a=function(C){var T,V,ae,_e,We,Ve,lt,be,Lt,wt;for(/[^\x00-\xFF]/.test(C),V=[],ae=0,_e=(C+=T="\0\0\0\0".slice(C.length%4||4)).length;_e>ae;ae+=4)(We=(C.charCodeAt(ae)<<24)+(C.charCodeAt(ae+1)<<16)+(C.charCodeAt(ae+2)<<8)+C.charCodeAt(ae+3))!==0?(Ve=(We=((We=((We=((We=(We-(wt=We%85))/85)-(Lt=We%85))/85)-(be=We%85))/85)-(lt=We%85))/85)%85,V.push(Ve+33,lt+33,be+33,Lt+33,wt+33)):V.push(122);return function(kt,ht){for(var Pt=ht;Pt>0;Pt--)kt.pop()}(V,T.length),String.fromCharCode.apply(String,V)+"~>"},l=function(C){var T,V,ae,_e,We,Ve=String,lt="length",be=255,Lt="charCodeAt",wt="slice",kt="replace";for(C[wt](-2),C=C[wt](0,-2)[kt](/\s/g,"")[kt]("z","!!!!!"),ae=[],_e=0,We=(C+=T="uuuuu"[wt](C[lt]%5||5))[lt];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),ae.push(be&V>>24,be&V>>16,be&V>>8,be&V);return function(ht,Pt){for(var ir=Pt;ir>0;ir--)ht.pop()}(ae,T[lt]),Ve.fromCharCode.apply(Ve,ae)},v=function(C){var T=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"),T.test(C)===!1)return"";for(var V="",ae=0;ae<C.length;ae+=2)V+=String.fromCharCode("0x"+(C[ae]+C[ae+1]));return V},F=function(C){for(var T=new Uint8Array(C.length),V=C.length;V--;)T[V]=C.charCodeAt(V);return C=(T=Si(T)).reduce(function(ae,_e){return ae+String.fromCharCode(_e)},"")};c.processDataByFilters=function(C,T){var V=0,ae=C||"",_e=[];for(typeof(T=T||[])=="string"&&(T=[T]),V=0;V<T.length;V+=1)switch(T[V]){case"ASCII85Decode":case"/ASCII85Decode":ae=l(ae),_e.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":ae=a(ae),_e.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":ae=v(ae),_e.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":ae=ae.split("").map(function(We){return("0"+We.charCodeAt().toString(16)).slice(-2)}).join("")+">",_e.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":ae=F(ae),_e.push("/FlateDecode");break;default:throw new Error('The filter: "'+T[V]+'" is not implemented')}return{data:ae,reverseChain:_e.reverse().join(" ")}}}(di.API),function(c){c.loadFile=function(a,l,v){return function(F,C,T){C=C!==!1,T=typeof T=="function"?T:function(){};var V=void 0;try{V=function(ae,_e,We){var Ve=new XMLHttpRequest,lt=0,be=function(Lt){var wt=Lt.length,kt=[],ht=String.fromCharCode;for(lt=0;lt<wt;lt+=1)kt.push(ht(255&Lt.charCodeAt(lt)));return kt.join("")};if(Ve.open("GET",ae,!_e),Ve.overrideMimeType("text/plain; charset=x-user-defined"),_e===!1&&(Ve.onload=function(){Ve.status===200?We(be(this.responseText)):We(void 0)}),Ve.send(null),_e&&Ve.status===200)return be(Ve.responseText)}(F,C,T)}catch(ae){}return V}(a,l,v)},c.loadImageFile=c.loadFile}(di.API),function(c){function a(){return(sn.html2canvas?Promise.resolve(sn.html2canvas):Promise.resolve().then(x.t.bind(x,64270,23))).catch(function(T){return Promise.reject(new Error("Could not load html2canvas: "+T))}).then(function(T){return T.default?T.default:T})}function l(){return(sn.DOMPurify?Promise.resolve(sn.DOMPurify):x.e(7631).then(x.bind(x,87631))).catch(function(T){return Promise.reject(new Error("Could not load dompurify: "+T))}).then(function(T){return T.default?T.default:T})}var v=function(T){var V=(0,ge.Z)(T);return V==="undefined"?"undefined":V==="string"||T instanceof String?"string":V==="number"||T instanceof Number?"number":V==="function"||T instanceof Function?"function":T&&T.constructor===Array?"array":T&&T.nodeType===1?"element":V==="object"?"object":"unknown"},F=function(T,V){var ae=document.createElement(T);for(var _e in V.className&&(ae.className=V.className),V.innerHTML&&V.dompurify&&(ae.innerHTML=V.dompurify.sanitize(V.innerHTML)),V.style)ae.style[_e]=V.style[_e];return ae},C=function T(V){var ae=Object.assign(T.convert(Promise.resolve()),JSON.parse(JSON.stringify(T.template))),_e=T.convert(Promise.resolve(),ae);return _e=(_e=_e.setProgress(1,T,1,[T])).set(V)};(C.prototype=Object.create(Promise.prototype)).constructor=C,C.convert=function(T,V){return T.__proto__=V||C.prototype,T},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(T,V){return this.then(function(){switch(V=V||function(ae){switch(v(ae)){case"string":return"string";case"element":return ae.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(T)){case"string":return this.then(l).then(function(ae){return this.set({src:F("div",{innerHTML:T,dompurify:ae})})});case"element":return this.set({src:T});case"canvas":return this.set({canvas:T});case"img":return this.set({img:T});default:return this.error("Unknown source type.")}})},C.prototype.to=function(T){switch(T){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 T={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 ae(_e,We){for(var Ve=_e.nodeType===3?document.createTextNode(_e.nodeValue):_e.cloneNode(!1),lt=_e.firstChild;lt;lt=lt.nextSibling)We!==!0&&lt.nodeType===1&&lt.nodeName==="SCRIPT"||Ve.appendChild(ae(lt,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"&&(T.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:T}),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 T=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(T).then(a).then(function(V){var ae=Object.assign({},this.opt.html2canvas);return delete ae.onrendered,V(this.prop.container,ae)}).then(function(V){(this.opt.html2canvas.onrendered||function(){})(V),this.prop.canvas=V,document.body.removeChild(this.prop.overlay)})},C.prototype.toContext2d=function(){var T=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(T).then(a).then(function(V){var ae=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,ae.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,ae.context2d.posX=this.opt.x,ae.context2d.posY=this.opt.y,ae.context2d.margin=this.opt.margin,ae.context2d.fontFaces=_e,_e)for(var lt=0;lt<_e.length;++lt){var be=_e[lt],Lt=be.src.find(function(wt){return wt.format==="truetype"});Lt&&ae.addFont(Lt.url,be.ref.name,be.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,ae.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 T=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=T})},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(T,V,ae){return(ae=ae||"pdf").toLowerCase()==="img"||ae.toLowerCase()==="image"?this.outputImg(T,V):this.outputPdf(T,V)},C.prototype.outputPdf=function(T,V){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(T,V)})},C.prototype.outputImg=function(T){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(T){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 "'+T+'" is not supported.'}})},C.prototype.save=function(T){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(T?{filename:T}: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(T){if(v(T)!=="object")return this;var V=Object.keys(T||{}).map(function(ae){if(ae in C.template.prop)return function(){this.prop[ae]=T[ae]};switch(ae){case"margin":return this.setMargin.bind(this,T.margin);case"jsPDF":return function(){return this.opt.jsPDF=T.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,T.pageSize);default:return function(){this.opt[ae]=T[ae]}}},this);return this.then(function(){return this.thenList(V)})},C.prototype.get=function(T,V){return this.then(function(){var ae=T in C.template.prop?this.prop[T]:this.opt[T];return V?V(ae):ae})},C.prototype.setMargin=function(T){return this.then(function(){switch(v(T)){case"number":T=[T,T,T,T];case"array":if(T.length===2&&(T=[T[0],T[1],T[0],T[1]]),T.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=T}).then(this.setPageSize)},C.prototype.setPageSize=function(T){function V(ae,_e){return Math.floor(ae*_e/72*96)}return this.then(function(){(T=T||di.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(T.inner={width:T.width-this.opt.margin[1]-this.opt.margin[3],height:T.height-this.opt.margin[0]-this.opt.margin[2]},T.inner.px={width:V(T.inner.width,T.k),height:V(T.inner.height,T.k)},T.inner.ratio=T.inner.height/T.inner.width),this.prop.pageSize=T})},C.prototype.setProgress=function(T,V,ae,_e){return T!=null&&(this.progress.val=T),V!=null&&(this.progress.state=V),ae!=null&&(this.progress.n=ae),_e!=null&&(this.progress.stack=_e),this.progress.ratio=this.progress.val/this.progress.state,this},C.prototype.updateProgress=function(T,V,ae,_e){return this.setProgress(T?this.progress.val+T:null,V||null,ae?this.progress.n+ae:null,_e?this.progress.stack.concat(_e):null)},C.prototype.then=function(T,V){var ae=this;return this.thenCore(T,V,function(_e,We){return ae.updateProgress(null,null,1,[_e]),Promise.prototype.then.call(this,function(Ve){return ae.updateProgress(null,_e),Ve}).then(_e,We).then(function(Ve){return ae.updateProgress(1),Ve})})},C.prototype.thenCore=function(T,V,ae){ae=ae||Promise.prototype.then,T&&(T=T.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=ae.call(_e,T,V);return C.convert(We,this.__proto__)},C.prototype.thenExternal=function(T,V){return Promise.prototype.then.call(this,T,V)},C.prototype.thenList=function(T){var V=this;return T.forEach(function(ae){V=V.thenCore(ae)}),V},C.prototype.catch=function(T){T&&(T=T.bind(this));var V=Promise.prototype.catch.call(this,T);return C.convert(V,this)},C.prototype.catchExternal=function(T){return Promise.prototype.catch.call(this,T)},C.prototype.error=function(T){return this.then(function(){throw new Error(T)})},C.prototype.using=C.prototype.set,C.prototype.saveAs=C.prototype.save,C.prototype.export=C.prototype.output,C.prototype.run=C.prototype.then,di.getPageSize=function(T,V,ae){if((0,ge.Z)(T)==="object"){var _e=T;T=_e.orientation,V=_e.unit||V,ae=_e.format||ae}V=V||"mm",ae=ae||"a4",T=(""+(T||"P")).toLowerCase();var We,Ve=(""+ae).toLowerCase(),lt={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 be,Lt=0,wt=0;if(lt.hasOwnProperty(Ve))Lt=lt[Ve][1]/We,wt=lt[Ve][0]/We;else try{Lt=ae[1],wt=ae[0]}catch(kt){throw new Error("Invalid format: "+ae)}if(T==="p"||T==="portrait")T="p",wt>Lt&&(be=wt,wt=Lt,Lt=be);else{if(T!=="l"&&T!=="landscape")throw"Invalid orientation: "+T;T="l",Lt>wt&&(be=wt,wt=Lt,Lt=be)}return{width:wt,height:Lt,unit:V,k:We,orientation:T}},c.html=function(T,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 ae=new C(V);return V.worker?ae:ae.from(T).doCallback()}}(di.API),di.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 T=F[C],V=v.exec(T);if(V!=null){var ae=V[1];l.internal.newObjectDeferredBegin(ae,!1)}l.internal.write(T)}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 lt=l.internal.getPageInfo(C+1);l.internal.write("<< /D["+lt.objId+" 0 R /XYZ null null null]>> endobj")}var be=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 "+be+" 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 T={title:F,options:C,children:[]};return v==null&&(v=this.root),v.children.push(T),T},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 T=v.children[C];this.objStart(T),this.line("/Title "+this.makeString(T.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])),T.children.length>0&&(this.line("/First "+this.makeRef(T.children[0])),this.line("/Last "+this.makeRef(T.children[T.children.length-1])));var V=this.count=this.count_r({count:0},T);if(V>0&&this.line("/Count "+V),T.options&&T.options.pageNumber){var ae=l.internal.getPageInfo(T.options.pageNumber);this.line("/Dest ["+ae.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}}])}(di.API),function(c){var a=[192,193,194,195,196,197,198,199];c.processJPEG=function(l,v,F,C,T,V){var ae,_e=this.decode.DCT_DECODE,We=null;if(typeof l=="string"||this.__addimage__.isArrayBuffer(l)||this.__addimage__.isArrayBufferView(l)){switch(l=T||l,l=this.__addimage__.isArrayBuffer(l)?new Uint8Array(l):l,(ae=function(Ve){for(var lt,be=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+=be,a.indexOf(Ve.charCodeAt(kt+1))!==-1){lt=256*Ve.charCodeAt(kt+5)+Ve.charCodeAt(kt+6),wt={width:256*Ve.charCodeAt(kt+7)+Ve.charCodeAt(kt+8),height:lt,numcomponents:Ve.charCodeAt(kt+9)};break}be=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:ae.width,height:ae.height,colorSpace:V,bitsPerComponent:8,filter:_e,index:v,alias:F}}return We}}(di.API);var tl,Hc,Pl,Ws,tA,rA=function(){var c,a,l;function v(C){var T,V,ae,_e,We,Ve,lt,be,Lt,wt,kt,ht,Pt,ir;for(this.data=C,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},Ve=null;;){switch(T=this.readUInt32(),Lt=function(){var gr,Rr;for(Rr=[],gr=0;gr<4;++gr)Rr.push(String.fromCharCode(this.data[this.pos++]));return Rr}.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(T);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,T-=4),C=(Ve!=null?Ve.data:void 0)||this.imgData,ht=0;0<=T?ht<T:ht>T;0<=T?++ht:--ht)C.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(ae=this.palette.length/3,this.transparency.indexed=this.read(T),this.transparency.indexed.length>ae)throw new Error("More transparent colors than palette size");if((wt=ae-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(T)[0];break;case 2:this.transparency.rgb=this.read(T)}break;case"tEXt":lt=(kt=this.read(T)).indexOf(0),be=String.fromCharCode.apply(String,kt.slice(0,lt)),this.text[be]=String.fromCharCode.apply(String,kt.slice(lt+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=(ir=this.colorType)===4||ir===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+=T}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}v.prototype.read=function(C){var T,V;for(V=[],T=0;0<=C?T<C:T>C;0<=C?++T:--T)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 T=this.pixelBitlength/8,V=new Uint8Array(this.width*this.height*T),ae=0,_e=this;if(C==null&&(C=this.imgData),C.length===0)return new Uint8Array(0);function We(Ve,lt,be,Lt){var wt,kt,ht,Pt,ir,gr,Rr,yn,Er,Gt,Dr,Zr,bt,Bt,U,j,Ee,De,Je,He,dt,pt=Math.ceil((_e.width-Ve)/be),Et=Math.ceil((_e.height-lt)/Lt),de=_e.width==pt&&_e.height==Et;for(Bt=T*pt,Zr=de?V:new Uint8Array(Bt*Et),gr=C.length,bt=0,kt=0;bt<Et&&ae<gr;){switch(C[ae++]){case 0:for(Pt=Ee=0;Ee<Bt;Pt=Ee+=1)Zr[kt++]=C[ae++];break;case 1:for(Pt=De=0;De<Bt;Pt=De+=1)wt=C[ae++],ir=Pt<T?0:Zr[kt-T],Zr[kt++]=(wt+ir)%256;break;case 2:for(Pt=Je=0;Je<Bt;Pt=Je+=1)wt=C[ae++],ht=(Pt-Pt%T)/T,U=bt&&Zr[(bt-1)*Bt+ht*T+Pt%T],Zr[kt++]=(U+wt)%256;break;case 3:for(Pt=He=0;He<Bt;Pt=He+=1)wt=C[ae++],ht=(Pt-Pt%T)/T,ir=Pt<T?0:Zr[kt-T],U=bt&&Zr[(bt-1)*Bt+ht*T+Pt%T],Zr[kt++]=(wt+Math.floor((ir+U)/2))%256;break;case 4:for(Pt=dt=0;dt<Bt;Pt=dt+=1)wt=C[ae++],ht=(Pt-Pt%T)/T,ir=Pt<T?0:Zr[kt-T],bt===0?U=j=0:(U=Zr[(bt-1)*Bt+ht*T+Pt%T],j=ht&&Zr[(bt-1)*Bt+(ht-1)*T+Pt%T]),Rr=ir+U-j,yn=Math.abs(Rr-ir),Gt=Math.abs(Rr-U),Dr=Math.abs(Rr-j),Er=yn<=Gt&&yn<=Dr?ir:Gt<=Dr?U:j,Zr[kt++]=(wt+Er)%256;break;default:throw new Error("Invalid filter algorithm: "+C[ae-1])}if(!de){var Ze=((lt+bt*Lt)*_e.width+Ve)*T,Xe=bt*Bt;for(Pt=0;Pt<pt;Pt+=1){for(var mt=0;mt<T;mt+=1)V[Ze++]=Zr[Xe++];Ze+=(be-1)*T}}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,T,V,ae,_e,We,Ve,lt,be;for(V=this.palette,We=this.transparency.indexed||[],_e=new Uint8Array((We.length||0)+V.length),ae=0,C=0,T=Ve=0,lt=V.length;Ve<lt;T=Ve+=3)_e[ae++]=V[T],_e[ae++]=V[T+1],_e[ae++]=V[T+2],_e[ae++]=(be=We[C++])!=null?be:255;return _e},v.prototype.copyToImageData=function(C,T){var V,ae,_e,We,Ve,lt,be,Lt,wt,kt,ht;if(ae=this.colors,wt=null,V=this.hasAlphaChannel,this.palette.length&&(wt=(ht=this._decodedPalette)!=null?ht:this._decodedPalette=this.decodePalette(),ae=4,V=!0),Lt=(_e=C.data||C).length,Ve=wt||T,We=lt=0,ae===1)for(;We<Lt;)be=wt?4*T[We/4]:lt,kt=Ve[be++],_e[We++]=kt,_e[We++]=kt,_e[We++]=kt,_e[We++]=V?Ve[be++]:255,lt=be;else for(;We<Lt;)be=wt?4*T[We/4]:lt,_e[We++]=Ve[be++],_e[We++]=Ve[be++],_e[We++]=Ve[be++],_e[We++]=V?Ve[be++]:255,lt=be},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(sn)==="[object Window]"){try{a=sn.document.createElement("canvas"),l=a.getContext("2d")}catch(C){return!1}return!0}return!1};return F(),c=function(C){var T;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),(T=new Image).src=a.toDataURL(),T;throw new Error("This method requires a Browser with Canvas-capability.")},v.prototype.decodeFrames=function(C){var T,V,ae,_e,We,Ve,lt,be;if(this.animation){for(be=[],V=We=0,Ve=(lt=this.animation.frames).length;We<Ve;V=++We)T=lt[V],ae=C.createImageData(T.width,T.height),_e=this.decodePixels(new Uint8Array(T.data)),this.copyToImageData(ae,_e),T.imageData=ae,be.push(T.image=c(ae));return be}},v.prototype.renderFrame=function(C,T){var V,ae,_e;return V=(ae=this.animation.frames)[T],_e=ae[T-1],T===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 T,V,ae,_e,We,Ve,lt=this;return V=0,Ve=this.animation,_e=Ve.numFrames,ae=Ve.frames,We=Ve.numPlays,(T=function(){var be,Lt;if(be=V++%_e,Lt=ae[be],lt.renderFrame(C,be),_e>1&&V/_e<We)return lt.animation._timeout=setTimeout(T,Lt.delay)})()},v.prototype.stopAnimation=function(){var C;return clearTimeout((C=this.animation)!=null?C._timeout:void 0)},v.prototype.render=function(C){var T,V;return C._png&&C._png.stopAnimation(),C._png=this,C.width=this.width,C.height=this.height,T=C.getContext("2d"),this.animation?(this.decodeFrames(T),this.animate(T)):(V=T.createImageData(this.width,this.height),this.copyToImageData(V,this.decodePixels()),T.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,T=1<<(7&F)+1;c[a++],c[a++];var V=null,ae=null;C&&(V=a,ae=T,a+=3*T);var _e=!0,We=[],Ve=0,lt=null,be=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,lt=c[a++],!(1&wt)&&(lt=null),be=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,ir=c[a++]|c[a++]<<8,gr=c[a++],Rr=gr>>6&1,yn=1<<(7&gr)+1,Er=V,Gt=ae,Dr=!1;gr>>7&&(Dr=!0,Er=a,Gt=yn,a+=3*yn);var Zr=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:ir,has_local_palette:Dr,palette_offset:Er,palette_size:Gt,data_offset:Zr,data_length:a-Zr,transparent_index:lt,interlaced:!!Rr,delay:Ve,disposal:be});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 j=this.frameInfo(Bt),Ee=j.width*j.height,De=new Uint8Array(Ee);yA(c,j.data_offset,De,Ee);var Je=j.palette_offset,He=j.transparent_index;He===null&&(He=256);var dt=j.width,pt=l-dt,Et=dt,de=4*(j.y*l+j.x),Ze=4*((j.y+j.height)*l+j.x),Xe=de,mt=4*pt;j.interlaced===!0&&(mt+=4*l*7);for(var yt=8,It=0,Rt=De.length;It<Rt;++It){var Tt=De[It];if(Et===0&&(Et=dt,(Xe+=mt)>=Ze&&(mt=4*pt+4*l*(yt-1),Xe=de+(dt+pt)*(yt<<1),yt>>=1)),Tt===He)Xe+=4;else{var pr=c[Je+3*Tt],sr=c[Je+3*Tt+1],_r=c[Je+3*Tt+2];U[Xe++]=_r,U[Xe++]=sr,U[Xe++]=pr,U[Xe++]=255}--Et}},this.decodeAndBlitFrameRGBA=function(Bt,U){var j=this.frameInfo(Bt),Ee=j.width*j.height,De=new Uint8Array(Ee);yA(c,j.data_offset,De,Ee);var Je=j.palette_offset,He=j.transparent_index;He===null&&(He=256);var dt=j.width,pt=l-dt,Et=dt,de=4*(j.y*l+j.x),Ze=4*((j.y+j.height)*l+j.x),Xe=de,mt=4*pt;j.interlaced===!0&&(mt+=4*l*7);for(var yt=8,It=0,Rt=De.length;It<Rt;++It){var Tt=De[It];if(Et===0&&(Et=dt,(Xe+=mt)>=Ze&&(mt=4*pt+4*l*(yt-1),Xe=de+(dt+pt)*(yt<<1),yt>>=1)),Tt===He)Xe+=4;else{var pr=c[Je+3*Tt],sr=c[Je+3*Tt+1],_r=c[Je+3*Tt+2];U[Xe++]=pr,U[Xe++]=sr,U[Xe++]=_r,U[Xe++]=255}--Et}}}function yA(c,a,l,v){for(var F=c[a++],C=1<<F,T=C+1,V=T+1,ae=F+1,_e=(1<<ae)-1,We=0,Ve=0,lt=0,be=c[a++],Lt=new Int32Array(4096),wt=null;;){for(;We<16&&be!==0;)Ve|=c[a++]<<We,We+=8,be===1?be=c[a++]:--be;if(We<ae)break;var kt=Ve&_e;if(Ve>>=ae,We-=ae,kt!==C){if(kt===T)break;for(var ht=kt<V?kt:wt,Pt=0,ir=ht;ir>C;)ir=Lt[ir]>>8,++Pt;var gr=ir;if(lt+Pt+(ht!==kt?1:0)>v)return void In.log("Warning, gif stream longer than expected.");l[lt++]=gr;var Rr=lt+=Pt;for(ht!==kt&&(l[lt++]=gr),ir=ht;Pt--;)ir=Lt[ir],l[--Rr]=255&ir,ir>>=8;wt!==null&&V<4096&&(Lt[V++]=wt<<8|gr,V>=_e+1&&ae<12&&(++ae,_e=_e<<1|1)),wt=kt}else V=T+1,_e=(1<<(ae=F+1))-1,wt=null}return lt!==v&&In.log("Warning, gif stream shorter than expected."),l}function Nl(c){var a,l,v,F,C,T=Math.floor,V=new Array(64),ae=new Array(64),_e=new Array(64),We=new Array(64),Ve=new Array(65535),lt=new Array(65535),be=new Array(64),Lt=new Array(64),wt=[],kt=0,ht=7,Pt=new Array(64),ir=new Array(64),gr=new Array(64),Rr=new Array(256),yn=new Array(2048),Er=[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],Zr=[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],j=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Ee=[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 Xe=0,mt=0,yt=new Array,It=1;It<=16;It++){for(var Rt=1;Rt<=de[It];Rt++)yt[Ze[mt]]=[],yt[Ze[mt]][0]=Xe,yt[Ze[mt]][1]=It,mt++,Xe++;Xe*=2}return yt}function Je(de){for(var Ze=de[0],Xe=de[1]-1;Xe>=0;)Ze&1<<Xe&&(kt|=1<<ht),Xe--,--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,Xe,mt,yt){for(var It,Rt=yt[0],Tt=yt[240],pr=function(yr,Fr){var br,kr,fn,$n,Kn,Bn,ai,Ci,fi,gi,Dn=0;for(fi=0;fi<8;++fi){br=yr[Dn],kr=yr[Dn+1],fn=yr[Dn+2],$n=yr[Dn+3],Kn=yr[Dn+4],Bn=yr[Dn+5],ai=yr[Dn+6];var pa=br+(Ci=yr[Dn+7]),qn=br-Ci,co=kr+ai,Ri=kr-ai,na=fn+Bn,Ta=fn-Bn,ga=$n+Kn,Vn=$n-Kn,Wn=pa+ga,mi=pa-ga,hi=co+na,Vi=co-na;yr[Dn]=Wn+hi,yr[Dn+4]=Wn-hi;var mn=.707106781*(Vi+mi);yr[Dn+2]=mi+mn,yr[Dn+6]=mi-mn;var Xn=.382683433*((Wn=Vn+Ta)-(Vi=Ri+qn)),oa=.5411961*Wn+Xn,ji=1.306562965*Vi+Xn,Lo=.707106781*(hi=Ta+Ri),ko=qn+Lo,Hi=qn-Lo;yr[Dn+5]=Hi+oa,yr[Dn+3]=Hi-oa,yr[Dn+1]=ko+ji,yr[Dn+7]=ko-ji,Dn+=8}for(Dn=0,fi=0;fi<8;++fi){br=yr[Dn],kr=yr[Dn+8],fn=yr[Dn+16],$n=yr[Dn+24],Kn=yr[Dn+32],Bn=yr[Dn+40],ai=yr[Dn+48];var eo=br+(Ci=yr[Dn+56]),as=br-Ci,Cn=kr+ai,Ao=kr-ai,Ho=fn+Bn,qi=fn-Bn,on=$n+Kn,va=$n-Kn,uo=eo+on,Va=eo-on,Mi=Cn+Ho,Do=Cn-Ho;yr[Dn]=uo+Mi,yr[Dn+32]=uo-Mi;var Po=.707106781*(Do+Va);yr[Dn+16]=Va+Po,yr[Dn+48]=Va-Po;var os=.382683433*((uo=va+qi)-(Do=Ao+as)),fs=.5411961*uo+os,ss=1.306562965*Do+os,hs=.707106781*(Mi=qi+Ao),Bl=as+hs,qo=as-hs;yr[Dn+40]=qo+fs,yr[Dn+24]=qo-fs,yr[Dn+8]=Bl+ss,yr[Dn+56]=Bl-ss,Dn++}for(fi=0;fi<64;++fi)gi=yr[fi]*Fr[fi],be[fi]=gi>0?gi+.5|0:gi-.5|0;return be}(de,Ze),sr=0;sr<64;++sr)Lt[Er[sr]]=pr[sr];var _r=Lt[0]-Xe;Xe=Lt[0],_r==0?Je(mt[0]):(Je(mt[lt[It=32767+_r]]),Je(Ve[It]));for(var Qr=63;Qr>0&&Lt[Qr]==0;)Qr--;if(Qr==0)return Je(Rt),Xe;for(var hn,rr=1;rr<=Qr;){for(var St=rr;Lt[rr]==0&&rr<=Qr;)++rr;var Un=rr-St;if(Un>=16){hn=Un>>4;for(var jr=1;jr<=hn;++jr)Je(Tt);Un&=15}It=32767+Lt[rr],Je(yt[(Un<<4)+lt[It]]),Je(Ve[It]),rr++}return Qr!=63&&Je(Rt),Xe}function Et(de){de=Math.min(Math.max(de,1),100),C!=de&&(function(Ze){for(var Xe=[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=T((Xe[mt]*Ze+50)/100);yt=Math.min(Math.max(yt,1),255),V[Er[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],Rt=0;Rt<64;Rt++){var Tt=T((It[Rt]*Ze+50)/100);Tt=Math.min(Math.max(Tt,1),255),ae[Er[Rt]]=Tt}for(var pr=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],sr=0,_r=0;_r<8;_r++)for(var Qr=0;Qr<8;Qr++)_e[sr]=1/(V[Er[sr]]*pr[_r]*pr[Qr]*8),We[sr]=1/(ae[Er[sr]]*pr[_r]*pr[Qr]*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(ae[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 $n=0;$n<16;$n++)He(Zr[$n+1]);for(var Kn=0;Kn<=161;Kn++)He(bt[Kn]);He(1);for(var Bn=0;Bn<16;Bn++)He(Bt[Bn+1]);for(var ai=0;ai<=11;ai++)He(U[ai]);He(17);for(var Ci=0;Ci<16;Ci++)He(j[Ci+1]);for(var fi=0;fi<=161;fi++)He(Ee[fi])}(),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 Xe=0,mt=0,yt=0;kt=0,ht=7,this.encode.displayName="_encode_";for(var It,Rt,Tt,pr,sr,_r,Qr,hn,rr,St=de.data,Un=de.width,jr=de.height,yr=4*Un,Fr=0;Fr<jr;){for(It=0;It<yr;){for(sr=yr*Fr+It,Qr=-1,hn=0,rr=0;rr<64;rr++)_r=sr+(hn=rr>>3)*yr+(Qr=4*(7&rr)),Fr+hn>=jr&&(_r-=yr*(Fr+1+hn-jr)),It+Qr>=yr&&(_r-=It+Qr-yr+4),Rt=St[_r++],Tt=St[_r++],pr=St[_r++],Pt[rr]=(yn[Rt]+yn[Tt+256>>0]+yn[pr+512>>0]>>16)-128,ir[rr]=(yn[Rt+768>>0]+yn[Tt+1024>>0]+yn[pr+1280>>0]>>16)-128,gr[rr]=(yn[Rt+1280>>0]+yn[Tt+1536>>0]+yn[pr+1792>>0]>>16)-128;Xe=pt(Pt,_e,Xe,a,v),mt=pt(ir,We,mt,l,F),yt=pt(gr,We,yt,l,F),It+=32}Fr+=8}if(ht>=0){var br=[];br[1]=ht+1,br[0]=(1<<ht+1)-1,Je(br)}return dt(65497),new Uint8Array(wt)},c=c||50,function(){for(var de=String.fromCharCode,Ze=0;Ze<256;Ze++)Rr[Ze]=de(Ze)}(),a=De(Gt,Dr),l=De(Bt,U),v=De(Zr,bt),F=De(j,Ee),function(){for(var de=1,Ze=2,Xe=1;Xe<=15;Xe++){for(var mt=de;mt<Ze;mt++)lt[32767+mt]=Xe,Ve[32767+mt]=[],Ve[32767+mt][1]=Xe,Ve[32767+mt][0]=mt;for(var yt=-(Ze-1);yt<=-de;yt++)lt[32767+yt]=Xe,Ve[32767+yt]=[],Ve[32767+yt][1]=Xe,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,Zr){for(var bt=0;4>bt;bt++)if(Gt[Dr+bt]!=Zr.charCodeAt(bt))return!0;return!1}function v(Gt,Dr,Zr,bt,Bt){for(var U=0;U<Bt;U++)Gt[Dr+U]=Zr[bt+U]}function F(Gt,Dr,Zr,bt){for(var Bt=0;Bt<bt;Bt++)Gt[Dr+Bt]=Zr}function C(Gt){return new Int32Array(Gt)}function T(Gt,Dr){for(var Zr=[],bt=0;bt<Gt;bt++)Zr.push(new Dr);return Zr}function V(Gt,Dr){var Zr=[];return function bt(Bt,U,j){for(var Ee=j[U],De=0;De<Ee&&(Bt.push(j.length>U+1?[]:new Dr),!(j.length<U+1));De++)bt(Bt[De],U+1,j)}(Zr,0,Gt),Zr}var ae=function(){var Gt=this;function Dr(o,b){for(var P=1<<b-1>>>0;o&P;)P>>>=1;return P?(o&P-1)+P:o}function Zr(o,b,P,oe,Oe){a(!(oe%P));do o[b+(oe-=P)]=Oe;while(0<oe)}function bt(o,b,P,oe,Oe){if(a(2328>=Oe),512>=Oe)var Ke=C(512);else if((Ke=C(Oe))==null)return 0;return function(ze,qe,it,gt,Mt,dr){var lr,Vt,Gr=qe,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]&&(dr[$t[lr]++]=Vt);if($t[15]==1)return(gt=new Bt).g=0,gt.value=dr[0],Zr(ze,Gr,1,Or,gt),Or;var Yr,bn=-1,nn=Or-1,Ai=0,Jn=1,Xi=1,oi=1<<it;for(Vt=0,lr=1,Mt=2;lr<=it;++lr,Mt<<=1){if(Jn+=Xi<<=1,0>(Xi-=Yt[lr]))return 0;for(;0<Yt[lr];--Yt[lr])(gt=new Bt).g=lr,gt.value=dr[Vt++],Zr(ze,Gr+Ai,Mt,oi,gt),Ai=Dr(Ai,lr)}for(lr=it+1,Mt=2;15>=lr;++lr,Mt<<=1){if(Jn+=Xi<<=1,0>(Xi-=Yt[lr]))return 0;for(;0<Yt[lr];--Yt[lr]){if(gt=new Bt,(Ai&nn)!=bn){for(Gr+=oi,Yr=1<<(bn=lr)-it;15>bn&&!(0>=(Yr-=Yt[bn]));)++bn,Yr<<=1;Or+=oi=1<<(Yr=bn-it),ze[qe+(bn=Ai&nn)].g=Yr+it,ze[qe+bn].value=Gr-qe-bn}gt.g=lr-it,gt.value=dr[Vt++],Zr(ze,Gr+(Ai>>it),Mt,oi,gt),Ai=Dr(Ai,lr)}}return Jn!=2*$t[15]-1?0:Or}(o,b,P,oe,Oe,Ke)}function Bt(){this.value=this.g=0}function U(){this.value=this.g=0}function j(){this.G=T(5,Bt),this.H=C(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=T(_s,U)}function Ee(o,b,P,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=P,o.Jd=b,o.Yc=P+oe,o.Zc=4<=oe?P+oe-4+1:P,It(o)}function De(o,b){for(var P=0;0<b--;)P|=Tt(o,128)<<b;return P}function Je(o,b){var P=De(o,b);return Rt(o)?-P:P}function He(o,b,P,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[P+Oe]<<8*Oe;o.Ra=Ke,o.bb=oe,o.oa=b,o.pa=P}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;Xe(o)&&(o.h=1,o.u=0)}function pt(o,b){if(a(0<=b),!o.h&&b<=ns){var P=Ze(o)&qA[b];return o.u+=b,dt(o),P}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 Xe(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=Xe(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 Rt(o){return De(o,1)}function Tt(o,b){var P=o.Ca;0>o.b&&It(o);var oe=o.b,Oe=P*b>>>8,Ke=(o.I>>>oe>Oe)+0;for(Ke?(P-=Oe,o.I-=Oe+1<<oe>>>0):P=Oe+1,oe=P,Oe=0;256<=oe;)Oe+=8,oe>>=8;return oe=7^Oe+Ts[oe],o.b-=oe,o.Ca=(P<<oe)-1,Ke}function pr(o,b,P){o[b+0]=P>>24&255,o[b+1]=P>>16&255,o[b+2]=P>>8&255,o[b+3]=P>>0&255}function sr(o,b){return o[b+0]<<0|o[b+1]<<8}function _r(o,b){return sr(o,b)|o[b+2]<<16}function Qr(o,b){return sr(o,b)|sr(o,b+2)<<16}function hn(o,b){var P=1<<b;return a(o!=null),a(0<b),o.X=C(P),o.X==null?0:(o.Mb=32-b,o.Xa=b,1)}function rr(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 Un(o,b,P,oe){a(P!=null),a(oe!=null);var Oe=P[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:(P[0]=Oe,oe[0]=Ke,1)}function jr(o,b){return o+(1<<b)-1>>>b}function yr(o,b){return((4278255360&o)+(4278255360&b)>>>0&4278255360)+((16711935&o)+(16711935&b)>>>0&16711935)>>>0}function Fr(o,b){Gt[b]=function(P,oe,Oe,Ke,ze,qe,it){var gt;for(gt=0;gt<ze;++gt){var Mt=Gt[o](qe[it+gt-1],Oe,Ke+gt);qe[it+gt]=yr(P[oe+gt],Mt)}}}function br(){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 $n(o,b){return fn(o+(o-b+.5>>1))}function Kn(o,b,P){return Math.abs(b-P)-Math.abs(o-P)}function Bn(o,b,P,oe,Oe,Ke,ze){for(oe=Ke[ze-1],P=0;P<Oe;++P)Ke[ze+P]=oe=yr(o[b+P],oe)}function ai(o,b,P,oe,Oe){var Ke;for(Ke=0;Ke<P;++Ke){var ze=o[b+Ke],qe=ze>>8&255,it=16711935&(it=(it=16711935&ze)+((qe<<16)+qe));oe[Oe+Ke]=(4278255360&ze)+it>>>0}}function Ci(o,b){b.jd=o>>0&255,b.hd=o>>8&255,b.ud=o>>16&255}function fi(o,b,P,oe,Oe,Ke){var ze;for(ze=0;ze<oe;++ze){var qe=b[P+ze],it=qe>>>8,gt=qe,Mt=255&(Mt=(Mt=qe>>>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&qe)+(Mt<<16)+gt}}function gi(o,b,P,oe,Oe){Gt[b]=function(Ke,ze,qe,it,gt,Mt,dr,lr,Vt){for(it=dr;it<lr;++it)for(dr=0;dr<Vt;++dr)gt[Mt++]=Oe(qe[oe(Ke[ze++])])},Gt[o]=function(Ke,ze,qe,it,gt,Mt,dr){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<qe;++ze){var Yt,$t=0;for(Yt=0;Yt<Vt;++Yt)Yt&Ke||($t=oe(it[gt++])),Mt[dr++]=Oe(Gr[$t&Or]),$t>>=lr}else Gt["VP8LMapColor"+P](it,gt,Gr,Or,Mt,dr,ze,qe,Vt)}}function Dn(o,b,P,oe,Oe){for(P=b+P;b<P;){var Ke=o[b++];oe[Oe++]=Ke>>16&255,oe[Oe++]=Ke>>8&255,oe[Oe++]=Ke>>0&255}}function pa(o,b,P,oe,Oe){for(P=b+P;b<P;){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 qn(o,b,P,oe,Oe){for(P=b+P;b<P;){var Ke=(ze=o[b++])>>16&240|ze>>12&15,ze=ze>>0&240|ze>>28&15;oe[Oe++]=Ke,oe[Oe++]=ze}}function co(o,b,P,oe,Oe){for(P=b+P;b<P;){var Ke=(ze=o[b++])>>16&248|ze>>13&7,ze=ze>>5&224|ze>>3&31;oe[Oe++]=Ke,oe[Oe++]=ze}}function Ri(o,b,P,oe,Oe){for(P=b+P;b<P;){var Ke=o[b++];oe[Oe++]=Ke>>0&255,oe[Oe++]=Ke>>8&255,oe[Oe++]=Ke>>16&255}}function na(o,b,P,oe,Oe,Ke){if(Ke==0)for(P=b+P;b<P;)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,P)}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 ga(o){return o==al||o==Ru||o==Qu||o==vn}function Vn(){this.eb=[],this.size=this.A=this.fb=0}function Wn(){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 mi(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Vn,this.f.kb=new Wn,this.sd=null}function hi(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Vi(){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 mn(o){return alert("todo:WebPSamplerProcessPlane"),o.T}function Xn(o,b){var P=o.T,oe=b.ba.f.RGBA,Oe=oe.eb,Ke=oe.fb+o.ka*oe.A,ze=Ec[b.ba.S],qe=o.y,it=o.O,gt=o.f,Mt=o.N,dr=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,nn=bn+1>>1;for($t==0?ze(qe,it,null,null,gt,Mt,dr,lr,gt,Mt,dr,lr,Oe,Ke,null,null,bn):(ze(b.ec,b.fc,qe,it,Vt,Gr,Or,Yt,gt,Mt,dr,lr,Oe,Ke-oe.A,Oe,Ke,bn),++P);$t+2<Yr;$t+=2)Vt=gt,Gr=Mt,Or=dr,Yt=lr,Mt+=o.Rc,lr+=o.Rc,Ke+=2*oe.A,ze(qe,(it+=2*o.fa)-o.fa,qe,it,Vt,Gr,Or,Yt,gt,Mt,dr,lr,Oe,Ke-oe.A,Oe,Ke,bn);return it+=o.fa,o.j+Yr<o.o?(v(b.ec,b.fc,qe,it,bn),v(b.cc,b.dc,gt,Mt,nn),v(b.Mc,b.Nc,dr,lr,nn),P--):1&Yr||ze(qe,it,null,null,gt,Mt,dr,lr,gt,Mt,dr,lr,Oe,Ke+oe.A,null,null,bn),P}function oa(o,b,P){var oe=o.F,Oe=[o.J];if(oe!=null){var Ke=o.U,ze=b.ba.S,qe=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+(qe?0:3),b.A),a(P==it),o&&ga(ze)&&Ac(Mt,gt,qe,Ke,it,b.A)}return 0}function ji(o){var b=o.ma,P=b.ba.S,oe=11>P,Oe=P==IA||P==MA||P==tu||P==LA||P==12||ga(P);if(b.memory=null,b.Ib=null,b.Jb=null,b.Nd=null,!YA(b.Oa,o,Oe?11:12))return 0;if(Oe&&ga(P)&&kn(),o.da)alert("todo:use_scaling");else{if(oe){if(b.Ib=mn,o.Kb){if(P=o.U+1>>1,b.memory=C(o.U+2*P),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+P,b.Ib=Xn,kn()}}else alert("todo:EmitYUV");Oe&&(b.Jb=oa,oe&&vr())}if(oe&&!m){for(o=0;256>o;++o)u[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),et[o-Wu]=pl(b+8>>4,15);m=1}return 1}function Lo(o){var b=o.ma,P=o.U,oe=o.T;return a(!(1&o.ka)),0>=P||0>=oe?0:(P=b.Ib(o,b),b.Jb!=null&&b.Jb(o,b,P),b.Dc+=P,1)}function ko(o){o.ma.memory=null}function Hi(o,b,P,oe){return pt(o,8)!=47?0:(b[0]=pt(o,14)+1,P[0]=pt(o,14)+1,oe[0]=pt(o,1),pt(o,3)!=0?0:!o.h)}function eo(o,b){if(4>o)return o+1;var P=o-2>>1;return(2+(1&o)<<P)+pt(b,P)+1}function as(o,b){return 120<b?b-120:1<=(P=((P=Ku[b-1])>>4)*o+(8-(15&P)))?P:1;var P}function Cn(o,b,P){var oe=Ze(P),Oe=o[b+=255&oe].g-8;return 0<Oe&&(mt(P,P.u+8),oe=Ze(P),b+=o[b].value,b+=oe&(1<<Oe)-1),mt(P,P.u+o[b].g),o[b].value}function Ao(o,b,P){return P.g+=o.g,P.value+=o.value<<b>>>0,a(8>=P.g),o.g}function Ho(o,b,P){var oe=o.xc;return a((b=oe==0?0:o.vc[o.md*(P>>oe)+(b>>oe)])<o.Wb),o.Ya[b]}function qi(o,b,P,oe){var Oe=o.ab,Ke=o.c*b,ze=o.C;b=ze+b;var qe=P,it=oe;for(oe=o.Ta,P=o.Ua;0<Oe--;){var gt=o.gc[Oe],Mt=ze,dr=b,lr=qe,Vt=it,Gr=(it=oe,qe=P,gt.Ea);switch(a(Mt<dr),a(dr<=gt.nc),gt.hc){case 2:gl(lr,Vt,(dr-Mt)*Gr,it,qe);break;case 0:var Or=Mt,Yt=dr,$t=it,Yr=qe,bn=(oi=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 nn=1<<oi.b,Ai=nn-1,Jn=jr(bn,oi.b),Xi=oi.K,oi=oi.w+(Or>>oi.b)*Jn;Or<Yt;){var Ha=Xi,Ua=oi,Ra=1;for(Ql(lr,Vt,$t,Yr-bn,1,$t,Yr);Ra<bn;){var Na=(Ra&~Ai)+nn;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&Ai||(oi+=Jn)}dr!=gt.nc&&v(it,qe-Gr,it,qe+(dr-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=jr(lr,gt.b),nn=gt.K,gt=gt.w+(Mt>>gt.b)*Or;Mt<dr;){for(Ai=nn,Jn=gt,Xi=new br,oi=Yt+Yr,Ha=Yt+lr;Yt<oi;)Ci(Ai[Jn++],Xi),Pc(Xi,Gr,Yt,Vt,it,qe),Yt+=Vt,qe+=Vt;Yt<Ha&&(Ci(Ai[Jn++],Xi),Pc(Xi,Gr,Yt,bn,it,qe),Yt+=bn,qe+=bn),++Mt&$t||(gt+=Or)}break;case 3:if(lr==it&&Vt==qe&&0<gt.b){for(Yt=it,lr=Gr=qe+(dr-Mt)*Gr-(Yr=(dr-Mt)*jr(gt.Ea,gt.b)),Vt=it,$t=qe,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,dr,it,Gr,it,qe)}else Us(gt,Mt,dr,lr,Vt,it,qe)}qe=oe,it=P}it!=P&&v(oe,P,qe,it,Ke)}function on(o,b){var P=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,qe=o.Ua,it=Ke.width;if(qi(o,Oe,P,oe),Oe=qe=[qe],a((P=o.C)<(oe=b)),a(Ke.v<Ke.va),oe>Ke.o&&(oe=Ke.o),P<Ke.j){var gt=Ke.j-P;P=Ke.j,Oe[0]+=gt*it}if(P>=oe?P=0:(Oe[0]+=4*Ke.v,Ke.ka=P-Ke.j,Ke.U=Ke.va-Ke.v,Ke.T=oe-P,P=1),P){if(qe=qe[0],11>(P=o.ca).S){var Mt=P.f.RGBA,dr=(oe=P.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=qe,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)}qe+=it,Mt+=dr}o.Ma+=Ke}else alert("todo:EmitRescaledRowsYUVA");a(o.Ma<=P.height)}}o.C=b,a(o.C<=o.i)}function va(o){var b;if(0<o.ua)return 0;for(b=0;b<o.Wb;++b){var P=o.Ya[b].G,oe=o.Ya[b].H;if(0<P[1][oe[1]+0].g||0<P[2][oe[2]+0].g||0<P[3][oe[3]+0].g)return 0}return 1}function uo(o,b,P,oe,Oe,Ke){if(o.Z!=0){var ze=o.qd,qe=o.rd;for(a(hA[o.Z]!=null);b<P;++b)hA[o.Z](ze,qe,oe,Oe,oe,Oe,Ke),ze=oe,qe=Oe,Oe+=Ke;o.qd=ze,o.rd=qe}}function Va(o,b){var P=o.l.ma,oe=P.Z==0||P.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=P.ca,ze=P.tb+Oe*oe,qe=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,qe,it,Ke,ze),uo(P,oe,b,Ke,ze,Oe)}o.C=o.Ma=b}function Mi(o,b,P,oe,Oe,Ke,ze){var qe=o.$/oe,it=o.$%oe,gt=o.m,Mt=o.s,dr=P+o.$,lr=dr;Oe=P+oe*Oe;var Vt=P+oe*Ke,Gr=280+Mt.ua,Or=o.Pb?qe:16777216,Yt=0<Mt.ua?Mt.Wa:null,$t=Mt.wc,Yr=dr<Vt?Ho(Mt,it,qe):null;a(o.C<Ke),a(Vt<=Oe);var bn=!1;e:for(;;){for(;bn||dr<Vt;){var nn=0;if(qe>=Or){var Ai=dr-P;a((Or=o).Pb),Or.wd=Or.m,Or.xd=Ai,0<Or.s.ua&&rr(Or.s.Wa,Or.s.vb),Or=qe+vf}if(it&$t||(Yr=Ho(Mt,it,qe)),a(Yr!=null),Yr.Qb&&(b[dr]=Yr.qb,bn=!0),!bn)if(yt(gt),Yr.jc){nn=gt,Ai=b;var Jn=dr,Xi=Yr.pd[Ze(nn)&_s-1];a(Yr.jc),256>Xi.g?(mt(nn,nn.u+Xi.g),Ai[Jn]=Xi.value,nn=0):(mt(nn,nn.u+Xi.g-256),a(256<=Xi.value),nn=Xi.value),nn==0&&(bn=!0)}else nn=Cn(Yr.G[0],Yr.H[0],gt);if(gt.h)break;if(bn||256>nn){if(!bn)if(Yr.nd)b[dr]=(Yr.qb|nn<<8)>>>0;else{if(yt(gt),bn=Cn(Yr.G[1],Yr.H[1],gt),yt(gt),Ai=Cn(Yr.G[2],Yr.H[2],gt),Jn=Cn(Yr.G[3],Yr.H[3],gt),gt.h)break;b[dr]=(Jn<<24|bn<<16|nn<<8|Ai)>>>0}if(bn=!1,++dr,++it>=oe&&(it=0,++qe,ze!=null&&qe<=Ke&&!(qe%16)&&ze(o,qe),Yt!=null))for(;lr<dr;)nn=b[lr++],Yt.X[(506832829*nn&4294967295)>>>Yt.Mb]=nn}else if(280>nn){if(nn=eo(nn-256,gt),Ai=Cn(Yr.G[4],Yr.H[4],gt),yt(gt),Ai=as(oe,Ai=eo(Ai,gt)),gt.h)break;if(dr-P<Ai||Oe-dr<nn)break e;for(Jn=0;Jn<nn;++Jn)b[dr+Jn]=b[dr+Jn-Ai];for(dr+=nn,it+=nn;it>=oe;)it-=oe,++qe,ze!=null&&qe<=Ke&&!(qe%16)&&ze(o,qe);if(a(dr<=Oe),it&$t&&(Yr=Ho(Mt,it,qe)),Yt!=null)for(;lr<dr;)nn=b[lr++],Yt.X[(506832829*nn&4294967295)>>>Yt.Mb]=nn}else{if(!(nn<Gr))break e;for(bn=nn-280,a(Yt!=null);lr<dr;)nn=b[lr++],Yt.X[(506832829*nn&4294967295)>>>Yt.Mb]=nn;nn=dr,a(!(bn>>>(Ai=Yt).Xa)),b[nn]=Ai.X[bn],bn=!0}bn||a(gt.h==Xe(gt))}if(o.Pb&&gt.h&&dr<Oe)a(o.m.h),o.a=5,o.m=o.wd,o.$=o.xd,0<o.s.ua&&rr(o.s.vb,o.s.Wa);else{if(gt.h)break e;ze!=null&&ze(o,qe>Ke?Ke:qe),o.a=0,o.$=dr-P}return 1}return o.a=3,0}function Do(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 Po(){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=ai,Pc=fi,il=Dn,Ys=pa,cA=qn,Jc=co,Yc=Ri,Gt.VP8LMapColor32b=Kl,Gt.VP8LMapColor8b=lA,o)}function os(o,b,P,oe,Oe){var Ke=1,ze=[o],qe=[b],it=oe.m,gt=oe.s,Mt=null,dr=0;e:for(;;){if(P)for(;Ke&&pt(it,1);){var lr=ze,Vt=qe,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(jr($t.Ea,$t.b),jr($t.nc,$t.b),0,Gr,$t.K),$t.K=$t.K[0];break;case 3:var bn,nn=pt(Yt,8)+1,Ai=16<nn?0:4<nn?1:2<nn?2:3;if(lr[0]=jr($t.Ea,Ai),$t.b=Ai,bn=Or=os(nn,1,0,Gr,$t.K)){var Jn,Xi=nn,oi=$t,Ha=1<<(8>>oi.b),Ua=C(Ha);if(Ua==null)bn=0;else{var Ra=oi.K[0],Na=oi.w;for(Ua[0]=oi.K[0][0],Jn=1;Jn<1*Xi;++Jn)Ua[Jn]=yr(Ra[Na+Jn],Ua[Jn-1]);for(;Jn<4*Ha;++Jn)Ua[Jn]=0;oi.K[0]=null,oi.K[0]=Ua,bn=1}}Or=bn;break;case 2:break;default:a(0)}Ke=Or}}if(ze=ze[0],qe=qe[0],Ke&&pt(it,1)&&!(Ke=1<=(dr=pt(it,4))&&11>=dr)){oe.a=3;break e}var to;if(to=Ke)t:{var fo,ta,ol,bl=oe,qs=ze,_c=qe,es=dr,Fc=P,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=jr(qs,zs),NA=jr(_c,zs),OA=PA*NA;if(!os(PA,NA,0,bl,wl))break r;for(wl=wl[0],Fl.xc=zs,fo=0;fo<OA;++fo){var ru=wl[fo]>>8&65535;wl[fo]=ru,ru>=dc&&(dc=ru+1)}}if(Oc.h)break r;for(ta=0;5>ta;++ta){var As=Vd[ta];!ta&&0<es&&(As+=1<<es),eA<As&&(eA=As)}var pd=T(dc*DA,Bt),qd=dc,Rf=T(qd,j);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(fo=ol=0;fo<dc;++fo){var nc=ef[fo],md=nc.G,gd=nc.H,Qf=0,Ju=1,bf=0;for(ta=0;5>ta;++ta){As=Vd[ta],md[ta]=Xu,gd[ta]=ol,!ta&&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=T(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[ta]==1&&(Ju=Xu[ol].g==0),Qf+=Xu[ol].g,ol+=Uc,3>=ta){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>>=Ao(nf,8,nu),xu>>=Ao(Rc.G[1][Rc.H[1]+xu],16,nu),xu>>=Ao(Rc.G[2][Rc.H[2]+xu],0,nu),Ao(Rc.G[3][Rc.H[3]+xu],24,nu))}}}Fl.vc=wl,Fl.Wb=dc,Fl.Ya=ef,Fl.yc=pd,to=1;break t}to=0}if(!(Ke=to)){oe.a=3;break e}if(0<dr){if(gt.ua=1<<dr,!hn(gt.Wa,dr)){oe.a=1,Ke=0;break e}}else gt.ua=0;var Sf=oe,Vf=ze,w0=qe,Ef=Sf.s,_f=Ef.xc;if(Sf.c=Vf,Sf.i=w0,Ef.md=jr(Vf,_f),Ef.wc=_f==0?-1:(1<<_f)-1,P){oe.xb=zu;break e}if((Mt=C(ze*qe))==null){oe.a=1,Ke=0;break e}Ke=(Ke=Mi(oe,Mt,0,ze,qe,qe,null))&&!it.h;break e}return Ke?(Oe!=null?Oe[0]=Mt:(a(Mt==null),a(P)),oe.$=0,P||Do(gt)):Do(gt),Ke}function fs(o,b){var P=o.c*o.i,oe=P+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+P+b,1)}function ss(o,b){var P=o.C,oe=b-P,Oe=o.V,Ke=o.Ba+o.c*P;for(a(b<=o.l.o);0<oe;){var ze=16<oe?16:oe,qe=o.l.ma,it=o.l.width,gt=it*ze,Mt=qe.ca,dr=qe.tb+it*P,lr=o.Ta,Vt=o.Ua;qi(o,ze,Oe,Ke),Ss(lr,Vt,Mt,dr,gt),uo(qe,P,P+ze,Mt,dr,it),oe-=ze,Oe+=ze*o.c,P+=ze}a(P==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(P,oe,Oe){for(var Ke=Oe[oe],ze=0;ze<Ke&&(P.push(Oe.length>oe+1?[]:0),!(Oe.length<oe+1));ze++)b(P[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 yo(){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 yo),this.Y=0,this.ya=Array(new Sl),this.aa=0,this.l=new ma}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=T(8,Et),this.ia=0,this.pb=T(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 yo),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],yo),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 ma(){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 io(){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,P){return o.a==0&&(o.a=b,o.sc=P,o.cb=0),0}function bo(o,b,P){return 3<=P&&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 P=b.data,oe=b.w,Oe=b.ha;if(4>Oe)return Ka(o,7,"Truncated header.");var Ke=P[oe+0]|P[oe+1]<<8|P[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 qe=o.Kc;if(ze.Rb){if(7>Oe)return Ka(o,7,"cannot parse picture header");if(!bo(P,oe,Oe))return Ka(o,3,"Bad code word");qe.c=16383&(P[oe+4]<<8|P[oe+3]),qe.Td=P[oe+4]>>6,qe.i=16383&(P[oe+6]<<8|P[oe+5]),qe.Ud=P[oe+6]>>6,oe+=7,Oe-=7,o.za=qe.c+15>>4,o.Ub=qe.i+15>>4,b.width=qe.c,b.height=qe.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");Ee(Ke=o.m,P,oe,ze.ub),oe+=ze.ub,Oe-=ze.ub,ze.Rb&&(qe.Ld=Rt(Ke),qe.Kd=Rt(Ke)),qe=o.Qa;var it,gt=o.Pa;if(a(Ke!=null),a(qe!=null),qe.Cb=Rt(Ke),qe.Cb){if(qe.Bb=Rt(Ke),Rt(Ke)){for(qe.Fb=Rt(Ke),it=0;4>it;++it)qe.Zb[it]=Rt(Ke)?Je(Ke,7):0;for(it=0;4>it;++it)qe.Lb[it]=Rt(Ke)?Je(Ke,6):0}if(qe.Bb)for(it=0;3>it;++it)gt.jb[it]=Rt(Ke)?De(Ke,8):255}else qe.Bb=0;if(Ke.Ka)return Ka(o,3,"cannot parse segment header");if((qe=o.ed).zd=Rt(Ke),qe.Tb=De(Ke,6),qe.wb=De(Ke,3),qe.Pc=Rt(Ke),qe.Pc&&Rt(Ke)){for(gt=0;4>gt;++gt)Rt(Ke)&&(qe.vd[gt]=Je(Ke,6));for(gt=0;4>gt;++gt)Rt(Ke)&&(qe.od[gt]=Je(Ke,6))}if(o.L=qe.Tb==0?0:qe.zd?1:2,Ke.Ka)return Ka(o,3,"cannot parse filter header");var Mt=Oe;if(Oe=it=oe,oe=it+Mt,qe=Mt,o.Xb=(1<<De(o.m,2))-1,Mt<3*(gt=o.Xb))P=7;else{for(it+=3*gt,qe-=3*gt,Mt=0;Mt<gt;++Mt){var dr=P[Oe+0]|P[Oe+1]<<8|P[Oe+2]<<16;dr>qe&&(dr=qe),Ee(o.Jc[+Mt],P,it,dr),it+=dr,qe-=dr,Oe+=3}Ee(o.Jc[+gt],P,it,qe),P=it<oe?0:5}if(P!=0)return Ka(o,P,"cannot parse partitions");for(P=De(it=o.m,7),Oe=Rt(it)?Je(it,4):0,oe=Rt(it)?Je(it,4):0,qe=Rt(it)?Je(it,4):0,gt=Rt(it)?Je(it,4):0,it=Rt(it)?Je(it,4):0,Mt=o.Qa,dr=0;4>dr;++dr){if(Mt.Cb){var lr=Mt.Zb[dr];Mt.Fb||(lr+=P)}else{if(0<dr){o.pb[dr]=o.pb[0];continue}lr=P}var Vt=o.pb[dr];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+qe,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(Rt(Ke),ze=o.Pa,P=0;4>P;++P){for(Oe=0;8>Oe;++Oe)for(oe=0;3>oe;++oe)for(qe=0;11>qe;++qe)gt=Tt(Ke,fd[P][Oe][oe][qe])?De(Ke,8):dA[P][Oe][oe][qe],ze.Wc[P][Oe].Yb[oe][qe]=gt;for(Oe=0;17>Oe;++Oe)ze.Xc[P][Oe]=ze.Wc[P][ju[Oe]]}return o.kc=Rt(Ke),o.kc&&(o.Bd=De(Ke,8)),o.cb=1}function Ps(o,b,P,oe,Oe,Ke,ze){var qe=b[Oe].Yb[P];for(P=0;16>Oe;++Oe){if(!Tt(o,qe[P+0]))return Oe;for(;!Tt(o,qe[P+1]);)if(qe=b[++Oe].Yb[0],P=0,Oe==16)return 16;var it=b[Oe+1].Yb;if(Tt(o,qe[P+2])){var gt=o,Mt=0;if(Tt(gt,(lr=qe)[(dr=P)+3]))if(Tt(gt,lr[dr+6])){for(qe=0,dr=2*(Mt=Tt(gt,lr[dr+8]))+(lr=Tt(gt,lr[dr+9+Mt])),Mt=0,lr=Is[dr];lr[qe];++qe)Mt+=Mt+Tt(gt,lr[qe]);Mt+=3+(8<<dr)}else Tt(gt,lr[dr+7])?(Mt=7+2*Tt(gt,165),Mt+=Tt(gt,145)):Mt=5+Tt(gt,159);else Mt=Tt(gt,lr[dr+4])?3+Tt(gt,lr[dr+5]):2;qe=it[2]}else Mt=1,qe=it[1];it=ze+Hu[Oe],0>(gt=o).b&&It(gt);var dr,lr=gt.b,Vt=(dr=gt.Ca>>1)-(gt.I>>lr)>>31;--gt.b,gt.Ca+=Vt,gt.Ca|=1,gt.I-=(dr+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 P=xt[o.L];if(o.L==2?(o.yb=0,o.zb=0):(o.yb=b.v-P>>4,o.zb=b.j-P>>4,0>o.yb&&(o.yb=0),0>o.zb&&(o.zb=0)),o.Va=b.o+15+P>>4,o.Hb=b.va+15+P>>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(P=0;4>P;++P){var Oe;if(o.Qa.Cb){var Ke=o.Qa.Lb[P];o.Qa.Fb||(Ke+=oe.Tb)}else Ke=oe.Tb;for(Oe=0;1>=Oe;++Oe){var ze=o.gd[P][Oe],qe=Ke;if(oe.Pc&&(qe+=oe.vd[0],Oe&&(qe+=oe.od[0])),0<(qe=0>qe?0:63<qe?63:qe)){var it=qe;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*qe+it,ze.ld=40<=qe?2:15<=qe?1:0}else ze.tc=0;ze.La=Oe}}}P=0}else Ka(o,6,"Frame setup failed"),P=o.a;if(P=P==0){if(P){o.$c=0,0<o.Aa||(o.Ic=mr);e:{P=o.Ic,oe=4*(it=o.za);var gt=32*it,Mt=it+1,dr=0<o.L?it*(0<o.Aa?2:1):0,lr=(o.Aa==2?2:1)*it;if((ze=oe+832+(Oe=3*(16*P+xt[o.L])/2*gt)+(Ke=o.Fa!=null&&0<o.Fa.length?o.Kc.c*o.Kc.i:0))!=ze)P=0;else{if(ze>o.Vb){if(o.Vb=0,o.Ec=C(ze),o.Fc=0,o.Ec==null){P=Ka(o,1,"no memory during frame initialization.");break e}o.Vb=ze}ze=o.Ec,qe=o.Fc,o.Ac=ze,o.Bc=qe,qe+=oe,o.Gd=T(gt,nA),o.Hd=0,o.rb=T(Mt+1,Hs),o.sb=1,o.wa=dr?T(dr,yo):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=qe,qe+=832,o.ya=T(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=qe+it,o.qa=o.sa,o.ra=o.ta+16*P*o.R+gt,o.Ha=o.qa,o.Ia=o.ra+8*P*o.B+gt,o.$c=0,qe+=Oe,o.mb=Ke?ze:null,o.nb=Ke?qe:null,a(qe+Ke<=o.Fc+o.Vb),gs(o),F(o.Ac,o.Bc,0,oe),P=1}}if(P){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(P=-255;255>=P;++P)sa[255+P]=0>P?-P:P;for(P=-1020;1020>=P;++P)ci[1020+P]=-128>P?-128:127<P?127:P;for(P=-112;112>=P;++P)uc[112+P]=-16>P?-16:15<P?15:P;for(P=-255;510>=P;++P)uA[255+P]=0>P?0:255<P?255:P;Fs=1}pu=Jl,qc=Tl,Ou=Xl,jl=js,wc=xA,Bs=Bo,mu=mc,ld=gc,eu=Ed,xc=WA,Cc=$r,rc=cu,zl=SA,_A=Lc,FA=dl,AA=ql,Tu=ec,Bc=lu,Sc[0]=So,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]=xo,fA[3]=Xs,fA[4]=ya,fA[5]=_a,fA[6]=Js,P=1}else P=0}P&&(P=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,nn=Yr,Ai=nn.Ac,Jn=nn.Bc+4*Or,Xi=nn.zc,oi=nn.ya[nn.aa+Or];if(nn.Qa.Bb?oi.$b=Tt(bn,nn.Pa.jb[0])?2+Tt(bn,nn.Pa.jb[2]):Tt(bn,nn.Pa.jb[1]):oi.$b=0,nn.kc&&(oi.Ad=Tt(bn,nn.Bd)),oi.Za=!Tt(bn,145)+0,oi.Za){var Ha=oi.Ob,Ua=0;for(nn=0;4>nn;++nn){var Ra,Na=Xi[0+nn];for(Ra=0;4>Ra;++Ra){Na=vl[Ai[Jn+Ra]][Na];for(var to=dd[Tt(bn,Na[0])];0<to;)to=dd[2*to+Tt(bn,Na[to])];Na=-to,Ai[Jn+Ra]=Na}v(Ha,Ua,Ai,Jn,4),Ua+=4,Xi[0+nn]=Na}}else Na=Tt(bn,156)?Tt(bn,128)?1:3:Tt(bn,163)?2:0,oi.Ob[0]=Na,F(Ai,Jn,Na,4),F(Xi,0,Na,4);oi.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],Ai=$t.rb[$t.sb+$t.ja],Or=$t.ya[$t.aa+$t.ja],Jn=$t.kc?Or.Ad:0)bn.la=Ai.la=0,Or.Za||(bn.Na=Ai.Na=0),Or.Hc=0,Or.Gc=0,Or.ia=0;else{var fo,ta;if(bn=Ai,Ai=Yr,Jn=$t.Pa.Xc,Xi=$t.ya[$t.aa+$t.ja],oi=$t.pb[Xi.$b],nn=Xi.ad,Ha=0,Ua=$t.rb[$t.sb-1],Na=Ra=0,F(nn,Ha,0,384),Xi.Za)var ol=0,bl=Jn[3];else{to=C(16);var qs=bn.Na+Ua.Na;if(qs=Nc(Ai,Jn[1],qs,oi.Eb,0,to,0),bn.Na=Ua.Na=(0<qs)+0,1<qs)pu(to,0,nn,Ha);else{var _c=to[0]+3>>3;for(to=0;256>to;to+=16)nn[Ha+to]=_c}ol=1,bl=Jn[0]}var es=15&bn.la,Fc=15&Ua.la;for(to=0;4>to;++to){var Oc=1&Fc;for(_c=ta=0;4>_c;++_c)es=es>>1|(Oc=(qs=Nc(Ai,bl,qs=Oc+(1&es),oi.Sc,ol,nn,Ha))>ol)<<7,ta=ta<<2|(3<qs?3:1<qs?2:nn[Ha+0]!=0),Ha+=16;es>>=4,Fc=Fc>>1|Oc<<7,Ra=(Ra<<8|ta)>>>0}for(bl=es,ol=Fc>>4,fo=0;4>fo;fo+=2){for(ta=0,es=bn.la>>4+fo,Fc=Ua.la>>4+fo,to=0;2>to;++to){for(Oc=1&Fc,_c=0;2>_c;++_c)qs=Oc+(1&es),es=es>>1|(Oc=0<(qs=Nc(Ai,Jn[2],qs,oi.Qc,0,nn,Ha)))<<3,ta=ta<<2|(3<qs?3:1<qs?2:nn[Ha+0]!=0),Ha+=16;es>>=2,Fc=Fc>>1|Oc<<5}Na|=ta<<4*fo,bl|=es<<4<<fo,ol|=(240&Fc)<<fo}bn.la=bl,Ua.la=ol,Xi.Hc=Ra,Xi.Gc=Na,Xi.ia=43690&Na?0:oi.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=(ta=Yt.D).Nb,bn=(Na=xt[Yt.L])*Yt.R,Ai=Na/2*Yt.B,to=16*Or*Yt.R,_c=8*Or*Yt.B,Jn=Yt.sa,Xi=Yt.ta-bn+to,oi=Yt.qa,nn=Yt.ra-Ai+_c,Ha=Yt.Ha,Ua=Yt.Ia-Ai+_c,Fc=(es=ta.M)==0,Ra=es>=Yt.Va-1,Yt.Aa==2&&fu(Yt,ta),ta.uc)for(Oc=(qs=Yt).D.M,a(qs.D.uc),ta=qs.yb;ta<qs.Hb;++ta){ol=ta,bl=Oc;var Fl=(wl=(As=qs).D).Nb;fo=As.R;var wl=wl.wa[wl.Y+ol],dc=As.sa,eA=As.ta+16*Fl*fo+16*ol,DA=wl.dd,zs=wl.tc;if(zs!=0)if(a(3<=zs),As.L==1)0<ol&&AA(dc,eA,fo,zs+4),wl.La&&Bc(dc,eA,fo,zs),0<bl&&FA(dc,eA,fo,zs+4),wl.La&&Tu(dc,eA,fo,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,fo,zs+4,DA,Fl),xc(NA,OA,ru,As,PA,zs+4,DA,Fl)),wl.La&&(rc(dc,eA,fo,zs,DA,Fl),_A(NA,OA,ru,As,PA,zs,DA,Fl)),0<bl&&(mu(dc,eA,fo,zs+4,DA,Fl),eu(NA,OA,ru,As,PA,zs+4,DA,Fl)),wl.La&&(Cc(dc,eA,fo,zs,DA,Fl),zl(NA,OA,ru,As,PA,zs,DA,Fl))}}if(Yt.ia&&alert("todo:DitherRow"),$t.put!=null){if(ta=16*es,es=16*(es+1),Fc?($t.y=Yt.sa,$t.O=Yt.ta+to,$t.f=Yt.qa,$t.N=Yt.ra+_c,$t.ea=Yt.Ha,$t.W=Yt.Ia+_c):(ta-=Na,$t.y=Jn,$t.O=Xi,$t.f=oi,$t.N=nn,$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&&ta<es&&($t.J=JA(Yt,$t,ta,es-ta),$t.F=Yt.mb,$t.F==null&&$t.F.length==0)){Yr=Ka(Yt,3,"Could not decode alpha data.");break e}ta<$t.j&&(Na=$t.j-ta,ta=$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)),ta<es&&($t.O+=$t.v,$t.N+=$t.v>>1,$t.W+=$t.v>>1,$t.F!=null&&($t.J+=$t.v),$t.ka=ta-$t.j,$t.U=$t.va-$t.v,$t.T=es-ta,Yr=$t.put($t))}Or+1!=Yt.Ic||Ra||(v(Yt.sa,Yt.ta-bn,Jn,Xi+16*Yt.R,bn),v(Yt.qa,Yt.ra-Ai,oi,nn+8*Yt.B,Ai),v(Yt.Ha,Yt.Ia-Ai,Ha,Ua+8*Yt.B,Ai))}if(!Yr)return Ka(Vt,6,"Output aborted.")}return 1}(o,b)),b.bc!=null&&b.bc(b),P&=1}return P?(o.cb=0,P):0}function El(o,b,P,oe,Oe){Oe=o[b+P+32*oe]+(Oe>>3),o[b+P+32*oe]=-256&Oe?0>Oe?0:255:Oe}function zc(o,b,P,oe,Oe,Ke){El(o,b,0,P,oe+Oe),El(o,b,1,P,oe+Ke),El(o,b,2,P,oe-Ke),El(o,b,3,P,oe-Oe)}function Ns(o){return(20091*o>>16)+o}function wa(o,b,P,oe){var Oe,Ke=0,ze=C(16);for(Oe=0;4>Oe;++Oe){var qe=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]=qe+Mt,ze[Ke+1]=it+gt,ze[Ke+2]=it-gt,ze[Ke+3]=qe-Mt,Ke+=4,b++}for(Oe=Ke=0;4>Oe;++Oe)qe=(o=ze[Ke+0]+4)+ze[Ke+8],it=o-ze[Ke+8],gt=(35468*ze[Ke+4]>>16)-Ns(ze[Ke+12]),El(P,oe,0,0,qe+(Mt=Ns(ze[Ke+4])+(35468*ze[Ke+12]>>16))),El(P,oe,1,0,it+gt),El(P,oe,2,0,it-gt),El(P,oe,3,0,qe-Mt),Ke++,oe+=32}function Bo(o,b,P,oe){var Oe=o[b+0]+4,Ke=35468*o[b+4]>>16,ze=Ns(o[b+4]),qe=35468*o[b+1]>>16;zc(P,oe,0,Oe+ze,o=Ns(o[b+1]),qe),zc(P,oe,1,Oe+Ke,o,qe),zc(P,oe,2,Oe-Ke,o,qe),zc(P,oe,3,Oe-ze,o,qe)}function Tl(o,b,P,oe,Oe){wa(o,b,P,oe),Oe&&wa(o,b+16,P,oe+4)}function Xl(o,b,P,oe){qc(o,b+0,P,oe,1),qc(o,b+32,P,oe+128,1)}function js(o,b,P,oe){var Oe;for(o=o[b+0]+4,Oe=0;4>Oe;++Oe)for(b=0;4>b;++b)El(P,oe,b,Oe,o)}function xA(o,b,P,oe){o[b+0]&&jl(o,b+0,P,oe),o[b+16]&&jl(o,b+16,P,oe+4),o[b+32]&&jl(o,b+32,P,oe+128),o[b+48]&&jl(o,b+48,P,oe+128+4)}function Jl(o,b,P,oe){var Oe,Ke=C(16);for(Oe=0;4>Oe;++Oe){var ze=o[b+0+Oe]+o[b+12+Oe],qe=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+qe,Ke[8+Oe]=ze-qe,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],qe=Ke[1+4*Oe]+Ke[2+4*Oe],it=Ke[1+4*Oe]-Ke[2+4*Oe],gt=o-Ke[3+4*Oe],P[oe+0]=ze+qe>>3,P[oe+16]=gt+it>>3,P[oe+32]=ze-qe>>3,P[oe+48]=gt-it>>3,oe+=64}function iA(o,b,P){var oe,Oe=b-32,Ke=ao,ze=255-o[Oe-1];for(oe=0;oe<P;++oe){var qe,it=Ke,gt=ze+o[b-1];for(qe=0;qe<P;++qe)o[b+qe]=it[gt+o[Oe+qe]];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 P;for(P=0;16>P;++P)v(o,b+32*P,o,b-32,16)}function sc(o,b){var P;for(P=16;0<P;--P)F(o,b,o[b-1],16),b+=32}function dn(o,b,P){var oe;for(oe=0;16>oe;++oe)F(b,P+32*oe,o,16)}function Zc(o,b){var P,oe=16;for(P=0;16>P;++P)oe+=o[b-1+32*P]+o[b+P-32];dn(oe>>5,o,b)}function Os(o,b){var P,oe=8;for(P=0;16>P;++P)oe+=o[b-1+32*P];dn(oe>>4,o,b)}function BA(o,b){var P,oe=8;for(P=0;16>P;++P)oe+=o[b+P-32];dn(oe>>4,o,b)}function Vc(o,b){dn(128,o,b)}function la(o,b,P){return o+2*b+P+2>>2}function zA(o,b){var P,oe=b-32;for(oe=new Uint8Array([la(o[oe-1],o[oe+0],o[oe+1]),la(o[oe+0],o[oe+1],o[oe+2]),la(o[oe+1],o[oe+2],o[oe+3]),la(o[oe+2],o[oe+3],o[oe+4])]),P=0;4>P;++P)v(o,b+32*P,oe,0,oe.length)}function $A(o,b){var P=o[b-1],oe=o[b-1+32],Oe=o[b-1+64],Ke=o[b-1+96];pr(o,b+0,16843009*la(o[b-1-32],P,oe)),pr(o,b+32,16843009*la(P,oe,Oe)),pr(o,b+64,16843009*la(oe,Oe,Ke)),pr(o,b+96,16843009*la(Oe,Ke,Ke))}function So(o,b){var P,oe=4;for(P=0;4>P;++P)oe+=o[b+P-32]+o[b-1+32*P];for(oe>>=3,P=0;4>P;++P)F(o,b+32*P,oe,4)}function ZA(o,b){var P=o[b-1+0],oe=o[b-1+32],Oe=o[b-1+64],Ke=o[b-1-32],ze=o[b+0-32],qe=o[b+1-32],it=o[b+2-32],gt=o[b+3-32];o[b+0+96]=la(oe,Oe,o[b-1+96]),o[b+1+96]=o[b+0+64]=la(P,oe,Oe),o[b+2+96]=o[b+1+64]=o[b+0+32]=la(Ke,P,oe),o[b+3+96]=o[b+2+64]=o[b+1+32]=o[b+0+0]=la(ze,Ke,P),o[b+3+64]=o[b+2+32]=o[b+1+0]=la(qe,ze,Ke),o[b+3+32]=o[b+2+0]=la(it,qe,ze),o[b+3+0]=la(gt,it,qe)}function aA(o,b){var P=o[b+1-32],oe=o[b+2-32],Oe=o[b+3-32],Ke=o[b+4-32],ze=o[b+5-32],qe=o[b+6-32],it=o[b+7-32];o[b+0+0]=la(o[b+0-32],P,oe),o[b+1+0]=o[b+0+32]=la(P,oe,Oe),o[b+2+0]=o[b+1+32]=o[b+0+64]=la(oe,Oe,Ke),o[b+3+0]=o[b+2+32]=o[b+1+64]=o[b+0+96]=la(Oe,Ke,ze),o[b+3+32]=o[b+2+64]=o[b+1+96]=la(Ke,ze,qe),o[b+3+64]=o[b+2+96]=la(ze,qe,it),o[b+3+96]=la(qe,it,it)}function lc(o,b){var P=o[b-1+0],oe=o[b-1+32],Oe=o[b-1+64],Ke=o[b-1-32],ze=o[b+0-32],qe=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+qe+1>>1,o[b+2+0]=o[b+3+64]=qe+it+1>>1,o[b+3+0]=it+gt+1>>1,o[b+0+96]=la(Oe,oe,P),o[b+0+64]=la(oe,P,Ke),o[b+0+32]=o[b+1+96]=la(P,Ke,ze),o[b+1+32]=o[b+2+96]=la(Ke,ze,qe),o[b+2+32]=o[b+3+96]=la(ze,qe,it),o[b+3+32]=la(qe,it,gt)}function Wc(o,b){var P=o[b+0-32],oe=o[b+1-32],Oe=o[b+2-32],Ke=o[b+3-32],ze=o[b+4-32],qe=o[b+5-32],it=o[b+6-32],gt=o[b+7-32];o[b+0+0]=P+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]=la(P,oe,Oe),o[b+1+32]=o[b+0+96]=la(oe,Oe,Ke),o[b+2+32]=o[b+1+96]=la(Oe,Ke,ze),o[b+3+32]=o[b+2+96]=la(Ke,ze,qe),o[b+3+64]=la(ze,qe,it),o[b+3+96]=la(qe,it,gt)}function Yl(o,b){var P=o[b-1+0],oe=o[b-1+32],Oe=o[b-1+64],Ke=o[b-1+96];o[b+0+0]=P+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]=la(P,oe,Oe),o[b+3+0]=o[b+1+32]=la(oe,Oe,Ke),o[b+3+32]=o[b+1+64]=la(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 P=o[b-1+0],oe=o[b-1+32],Oe=o[b-1+64],Ke=o[b-1+96],ze=o[b-1-32],qe=o[b+0-32],it=o[b+1-32],gt=o[b+2-32];o[b+0+0]=o[b+2+32]=P+ze+1>>1,o[b+0+32]=o[b+2+64]=oe+P+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]=la(qe,it,gt),o[b+2+0]=la(ze,qe,it),o[b+1+0]=o[b+3+32]=la(P,ze,qe),o[b+1+32]=o[b+3+64]=la(oe,P,ze),o[b+1+64]=o[b+3+96]=la(Oe,oe,P),o[b+1+96]=la(Ke,Oe,oe)}function xo(o,b){var P;for(P=0;8>P;++P)v(o,b+32*P,o,b-32,8)}function Xs(o,b){var P;for(P=0;8>P;++P)F(o,b,o[b-1],8),b+=32}function ls(o,b,P){var oe;for(oe=0;8>oe;++oe)F(b,P+32*oe,o,8)}function ul(o,b){var P,oe=8;for(P=0;8>P;++P)oe+=o[b+P-32]+o[b-1+32*P];ls(oe>>4,o,b)}function _a(o,b){var P,oe=4;for(P=0;8>P;++P)oe+=o[b+P-32];ls(oe>>3,o,b)}function ya(o,b){var P,oe=4;for(P=0;8>P;++P)oe+=o[b-1+32*P];ls(oe>>3,o,b)}function Js(o,b){ls(128,o,b)}function _l(o,b,P){var oe=o[b-P],Oe=o[b+0],Ke=3*(Oe-oe)+cd[1020+o[b-2*P]-o[b+P]],ze=Wa[112+(Ke+4>>3)];o[b-P]=ao[255+oe+Wa[112+(Ke+3>>3)]],o[b+0]=ao[255+Oe-ze]}function Rl(o,b,P,oe){var Oe=o[b+0],Ke=o[b+P];return Ga[255+o[b-2*P]-o[b-P]]>oe||Ga[255+Ke-Oe]>oe}function VA(o,b,P,oe){return 4*Ga[255+o[b-P]-o[b+0]]+Ga[255+o[b-2*P]-o[b+P]]<=oe}function cs(o,b,P,oe,Oe){var Ke=o[b-3*P],ze=o[b-2*P],qe=o[b-P],it=o[b+0],gt=o[b+P],Mt=o[b+2*P],dr=o[b+3*P];return 4*Ga[255+qe-it]+Ga[255+ze-gt]>oe?0:Ga[255+o[b-4*P]-Ke]<=Oe&&Ga[255+Ke-ze]<=Oe&&Ga[255+ze-qe]<=Oe&&Ga[255+dr-Mt]<=Oe&&Ga[255+Mt-gt]<=Oe&&Ga[255+gt-it]<=Oe}function dl(o,b,P,oe){var Oe=2*oe+1;for(oe=0;16>oe;++oe)VA(o,b+oe,P,Oe)&&_l(o,b+oe,P)}function ql(o,b,P,oe){var Oe=2*oe+1;for(oe=0;16>oe;++oe)VA(o,b+oe*P,1,Oe)&&_l(o,b+oe*P,1)}function ec(o,b,P,oe){var Oe;for(Oe=3;0<Oe;--Oe)dl(o,b+=4*P,P,oe)}function lu(o,b,P,oe){var Oe;for(Oe=3;0<Oe;--Oe)ql(o,b+=4,P,oe)}function ba(o,b,P,oe,Oe,Ke,ze,qe){for(Ke=2*Ke+1;0<Oe--;){if(cs(o,b,P,Ke,ze))if(Rl(o,b,P,qe))_l(o,b,P);else{var it=o,gt=b,Mt=P,dr=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+dr-Gr]])+63>>7,$t=18*Yr+63>>7,Yr=9*Yr+63>>7;it[gt-3*Mt]=ao[255+it[gt-3*Mt]+Yr],it[gt-2*Mt]=ao[255+dr+$t],it[gt-Mt]=ao[255+lr+Yt],it[gt+0]=ao[255+Vt-Yt],it[gt+Mt]=ao[255+Gr-$t],it[gt+2*Mt]=ao[255+Or-Yr]}b+=oe}}function fl(o,b,P,oe,Oe,Ke,ze,qe){for(Ke=2*Ke+1;0<Oe--;){if(cs(o,b,P,Ke,ze))if(Rl(o,b,P,qe))_l(o,b,P);else{var it=o,gt=b,Mt=P,dr=it[gt-Mt],lr=it[gt+0],Vt=it[gt+Mt],Gr=Wa[112+((Or=3*(lr-dr))+4>>3)],Or=Wa[112+(Or+3>>3)],Yt=Gr+1>>1;it[gt-2*Mt]=ao[255+it[gt-2*Mt]+Yt],it[gt-Mt]=ao[255+dr+Or],it[gt+0]=ao[255+lr-Gr],it[gt+Mt]=ao[255+Vt-Yt]}b+=oe}}function mc(o,b,P,oe,Oe,Ke){ba(o,b,P,1,16,oe,Oe,Ke)}function gc(o,b,P,oe,Oe,Ke){ba(o,b,1,P,16,oe,Oe,Ke)}function $r(o,b,P,oe,Oe,Ke){var ze;for(ze=3;0<ze;--ze)fl(o,b+=4*P,P,1,16,oe,Oe,Ke)}function cu(o,b,P,oe,Oe,Ke){var ze;for(ze=3;0<ze;--ze)fl(o,b+=4,1,P,16,oe,Oe,Ke)}function Ed(o,b,P,oe,Oe,Ke,ze,qe){ba(o,b,Oe,1,8,Ke,ze,qe),ba(P,oe,Oe,1,8,Ke,ze,qe)}function WA(o,b,P,oe,Oe,Ke,ze,qe){ba(o,b,1,Oe,8,Ke,ze,qe),ba(P,oe,1,Oe,8,Ke,ze,qe)}function SA(o,b,P,oe,Oe,Ke,ze,qe){fl(o,b+4*Oe,Oe,1,8,Ke,ze,qe),fl(P,oe+4*Oe,Oe,1,8,Ke,ze,qe)}function Lc(o,b,P,oe,Oe,Ke,ze,qe){fl(o,b+4,1,Oe,8,Ke,ze,qe),fl(P,oe+4,1,Oe,8,Ke,ze,qe)}function Au(){this.ba=new mi,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Vi,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 j,this.yc=new Bt}function GA(){this.xb=this.a=0,this.l=new ma,this.ca=new mi,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=T(4,ws),this.Oc=0}function Gc(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new ma,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function XA(o,b,P,oe,Oe,Ke,ze){for(o=o==null?0:o[b+0],b=0;b<ze;++b)Oe[Ke+b]=o+P[oe+b]&255,o=Oe[Ke+b]}function EA(o,b,P,oe,Oe,Ke,ze){var qe;if(o==null)XA(null,null,P,oe,Oe,Ke,ze);else for(qe=0;qe<ze;++qe)Oe[Ke+qe]=o[b+qe]+P[oe+qe]&255}function kc(o,b,P,oe,Oe,Ke,ze){if(o==null)XA(null,null,P,oe,Oe,Ke,ze);else{var qe,it=o[b+0],gt=it,Mt=it;for(qe=0;qe<ze;++qe)gt=Mt+(it=o[b+qe])-gt,Mt=P[oe+qe]+(-256&gt?0>gt?0:255:gt)&255,gt=it,Oe[Ke+qe]=Mt}}function JA(o,b,P,oe){var Oe=b.width,Ke=b.o;if(a(o!=null&&b!=null),0>P||0>=oe||P+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 qe=o.Fa,it=o.P,gt=o.qc,Mt=o.mb,dr=o.nb,lr=it+1,Vt=gt-1,Gr=ze.l;if(a(qe!=null&&Mt!=null&&b!=null),hA[0]=null,hA[1]=XA,hA[2]=EA,hA[3]=kc,ze.ca=Mt,ze.tb=dr,ze.c=b.width,ze.i=b.height,a(0<ze.c&&0<ze.i),1>=gt)b=0;else if(ze.$a=qe[it+0]>>0&3,ze.Z=qe[it+0]>>2&3,ze.Lc=qe[it+0]>>4&3,it=qe[it+0]>>6&3,0>ze.$a||1<ze.$a||4<=ze.Z||1<ze.Lc||it)b=0;else if(Gr.put=Lo,Gr.ac=ji,Gr.bc=ko,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=Po();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,qe,lr,Vt),!os(ze.c,ze.i,1,b,null)||(b.ab==1&&b.gc[0].hc==3&&va(b.s)?(ze.ic=1,qe=b.c*b.i,b.Ta=null,b.Ua=0,b.V=C(qe),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-P}a(o.ga!=null),a(P+oe<=Ke);e:{if(b=(qe=o.ga).c,Ke=qe.l.o,qe.$a==0){if(lr=o.rc,Vt=o.Vc,Gr=o.Fa,it=o.P+1+P*b,gt=o.mb,Mt=o.nb+P*b,a(it<=o.P+o.qc),qe.Z!=0)for(a(hA[qe.Z]!=null),ze=0;ze<oe;++ze)hA[qe.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(qe.mc!=null),b=P+oe,a((ze=qe.mc)!=null),a(b<=ze.i),ze.C>=b)b=1;else if(qe.ic||vr(),qe.ic){qe=ze.V,lr=ze.Ba,Vt=ze.c;var Or=ze.i,Yt=(Gr=1,it=ze.$/Vt,gt=ze.$%Vt,Mt=ze.m,dr=ze.s,ze.$),$t=Vt*Or,Yr=Vt*b,bn=dr.wc,nn=Yt<Yr?Ho(dr,gt,it):null;a(Yt<=$t),a(b<=Or),a(va(dr));t:for(;;){for(;!Mt.h&&Yt<Yr;){if(gt&bn||(nn=Ho(dr,gt,it)),a(nn!=null),yt(Mt),256>(Or=Cn(nn.G[0],nn.H[0],Mt)))qe[lr+Yt]=Or,++Yt,++gt>=Vt&&(gt=0,++it<=b&&!(it%16)&&Va(ze,it));else{if(!(280>Or)){Gr=0;break t}Or=eo(Or-256,Mt);var Ai,Jn=Cn(nn.G[4],nn.H[4],Mt);if(yt(Mt),!(Yt>=(Jn=as(Vt,Jn=eo(Jn,Mt)))&&$t-Yt>=Or)){Gr=0;break t}for(Ai=0;Ai<Or;++Ai)qe[lr+Yt+Ai]=qe[lr+Yt+Ai-Jn];for(Yt+=Or,gt+=Or;gt>=Vt;)gt-=Vt,++it<=b&&!(it%16)&&Va(ze,it);Yt<Yr&&gt&bn&&(nn=Ho(dr,gt,it))}a(Mt.h==Xe(Mt))}Va(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=Mi(ze,ze.V,ze.Ba,ze.c,ze.i,b,ss);if(!b){oe=0;break e}}P+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+P*Oe}function N(o,b,P,oe,Oe,Ke){for(;0<Oe--;){var ze,qe=o,it=b+(P?1:0),gt=o,Mt=b+(P?0:3);for(ze=0;ze<oe;++ze){var dr=gt[Mt+4*ze];dr!=255&&(dr*=32897,qe[it+4*ze+0]=qe[it+4*ze+0]*dr>>23,qe[it+4*ze+1]=qe[it+4*ze+1]*dr>>23,qe[it+4*ze+2]=qe[it+4*ze+2]*dr>>23)}b+=Ke}}function $e(o,b,P,oe,Oe){for(;0<oe--;){var Ke;for(Ke=0;Ke<P;++Ke){var ze=o[b+2*Ke+0],qe=15&(gt=o[b+2*Ke+1]),it=4369*qe,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|qe}b+=Oe}}function Dt(o,b,P,oe,Oe,Ke,ze,qe){var it,gt,Mt=255;for(gt=0;gt<Oe;++gt){for(it=0;it<oe;++it){var dr=o[b+it];Ke[ze+4*it]=dr,Mt&=dr}b+=P,ze+=qe}return Mt!=255}function Jt(o,b,P,oe,Oe){var Ke;for(Ke=0;Ke<Oe;++Ke)P[oe+Ke]=o[b+Ke]>>8}function vr(){Ac=N,$o=$e,is=Dt,Ss=Jt}function Xr(o,b,P){Gt[o]=function(oe,Oe,Ke,ze,qe,it,gt,Mt,dr,lr,Vt,Gr,Or,Yt,$t,Yr,bn){var nn,Ai=bn-1>>1,Jn=qe[it+0]|gt[Mt+0]<<16,Xi=dr[lr+0]|Vt[Gr+0]<<16;a(oe!=null);var oi=3*Jn+Xi+131074>>2;for(b(oe[Oe+0],255&oi,oi>>16,Or,Yt),Ke!=null&&(oi=3*Xi+Jn+131074>>2,b(Ke[ze+0],255&oi,oi>>16,$t,Yr)),nn=1;nn<=Ai;++nn){var Ha=qe[it+nn]|gt[Mt+nn]<<16,Ua=dr[lr+nn]|Vt[Gr+nn]<<16,Ra=Jn+Ha+Xi+Ua+524296,Na=Ra+2*(Ha+Xi)>>3;oi=Na+Jn>>1,Jn=(Ra=Ra+2*(Jn+Ua)>>3)+Ha>>1,b(oe[Oe+2*nn-1],255&oi,oi>>16,Or,Yt+(2*nn-1)*P),b(oe[Oe+2*nn-0],255&Jn,Jn>>16,Or,Yt+(2*nn-0)*P),Ke!=null&&(oi=Ra+Xi>>1,Jn=Na+Ua>>1,b(Ke[ze+2*nn-1],255&oi,oi>>16,$t,Yr+(2*nn-1)*P),b(Ke[ze+2*nn+0],255&Jn,Jn>>16,$t,Yr+(2*nn+0)*P)),Jn=Ha,Xi=Ua}1&bn||(oi=3*Jn+Xi+131074>>2,b(oe[Oe+bn-1],255&oi,oi>>16,Or,Yt+(bn-1)*P),Ke!=null&&(oi=3*Xi+Jn+131074>>2,b(Ke[ze+bn-1],255&oi,oi>>16,$t,Yr+(bn-1)*P)))}}function kn(){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 Pi(o){return o&~yf?0>o?0:255:o>>Yd}function ea(o,b){return Pi((19077*o>>8)+(26149*b>>8)-14234)}function ka(o,b,P){return Pi((19077*o>>8)-(6419*b>>8)-(13320*P>>8)+8708)}function xa(o,b){return Pi((19077*o>>8)+(33050*b>>8)-17685)}function zi(o,b,P,oe,Oe){oe[Oe+0]=ea(o,P),oe[Oe+1]=ka(o,b,P),oe[Oe+2]=xa(o,b)}function vs(o,b,P,oe,Oe){oe[Oe+0]=xa(o,b),oe[Oe+1]=ka(o,b,P),oe[Oe+2]=ea(o,P)}function xs(o,b,P,oe,Oe){var Ke=ka(o,b,P);b=Ke<<3&224|xa(o,b)>>3,oe[Oe+0]=248&ea(o,P)|Ke>>5,oe[Oe+1]=b}function zo(o,b,P,oe,Oe){var Ke=240&xa(o,b)|15;oe[Oe+0]=240&ea(o,P)|ka(o,b,P)>>4,oe[Oe+1]=Ke}function hl(o,b,P,oe,Oe){oe[Oe+0]=255,zi(o,b,P,oe,Oe+1)}function Cs(o,b,P,oe,Oe){vs(o,b,P,oe,Oe),oe[Oe+3]=255}function Dc(o,b,P,oe,Oe){zi(o,b,P,oe,Oe),oe[Oe+3]=255}function pl(o,b){return 0>o?0:o>b?b:o}function tc(o,b,P){Gt[o]=function(oe,Oe,Ke,ze,qe,it,gt,Mt,dr){for(var lr=Mt+(-2&dr)*P;Mt!=lr;)b(oe[Oe+0],Ke[ze+0],qe[it+0],gt,Mt),b(oe[Oe+1],Ke[ze+0],qe[it+0],gt,Mt+P),Oe+=2,++ze,++it,Mt+=2*P;1&dr&&b(oe[Oe+0],Ke[ze+0],qe[it+0],gt,Mt)}}function oA(o,b,P){return P==0?o==0?b==0?6:5:b==0?4:0:P}function du(o,b,P,oe,Oe){switch(o>>>30){case 3:qc(b,P,oe,Oe,0);break;case 2:Bs(b,P,oe,Oe);break;case 1:jl(b,P,oe,Oe)}}function fu(o,b){var P,oe,Oe=b.M,Ke=b.Nb,ze=o.oc,qe=o.pc+40,it=o.oc,gt=o.pc+584,Mt=o.oc,dr=o.pc+600;for(P=0;16>P;++P)ze[qe+32*P-1]=129;for(P=0;8>P;++P)it[gt+32*P-1]=129,Mt[dr+32*P-1]=129;for(0<Oe?ze[qe-1-32]=it[gt-1-32]=Mt[dr-1-32]=129:(F(ze,qe-32-1,127,21),F(it,gt-32-1,127,9),F(Mt,dr-32-1,127,9)),oe=0;oe<o.za;++oe){var lr=b.ya[b.aa+oe];if(0<oe){for(P=-1;16>P;++P)v(ze,qe+32*P-4,ze,qe+32*P+12,4);for(P=-1;8>P;++P)v(it,gt+32*P-4,it,gt+32*P+4,4),v(Mt,dr+32*P-4,Mt,dr+32*P+4,4)}var Vt=o.Gd,Gr=o.Hd+oe,Or=lr.ad,Yt=lr.Hc;if(0<Oe&&(v(ze,qe-32,Vt[Gr].y,0,16),v(it,gt-32,Vt[Gr].f,0,8),v(Mt,dr-32,Vt[Gr].ea,0,8)),lr.Za){var $t=ze,Yr=qe-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)),P=0;4>P;P++)$t[Yr+128+P]=$t[Yr+256+P]=$t[Yr+384+P]=$t[Yr+0+P];for(P=0;16>P;++P,Yt<<=2)$t=ze,Yr=qe+Ct[P],Sc[lr.Ob[P]]($t,Yr),du(Yt,Or,16*+P,$t,Yr)}else if($t=oA(oe,Oe,lr.Ob[0]),yl[$t](ze,qe),Yt!=0)for(P=0;16>P;++P,Yt<<=2)du(Yt,Or,16*+P,ze,qe+Ct[P]);for(P=lr.Gc,$t=oA(oe,Oe,lr.Dd),fA[$t](it,gt),fA[$t](Mt,dr),Yt=Or,$t=it,Yr=gt,255&(lr=P>>0)&&(170&lr?Ou(Yt,256,$t,Yr):wc(Yt,256,$t,Yr)),lr=Mt,Yt=dr,255&(P>>=8)&&(170&P?Ou(Or,320,lr,Yt):wc(Or,320,lr,Yt)),Oe<o.Ub-1&&(v(Vt[Gr].y,0,ze,qe+480,16),v(Vt[Gr].f,0,it,gt+224,8),v(Vt[Gr].ea,0,Mt,dr+224,8)),P=8*Ke*o.B,Vt=o.sa,Gr=o.ta+16*oe+16*Ke*o.R,Or=o.qa,lr=o.ra+8*oe+P,Yt=o.Ha,$t=o.Ia+8*oe+P,P=0;16>P;++P)v(Vt,Gr+P*o.R,ze,qe+32*P,16);for(P=0;8>P;++P)v(Or,lr+P*o.B,it,gt+32*P,8),v(Yt,$t+P*o.B,Mt,dr+32*P,8)}}function sA(o,b,P,oe,Oe,Ke,ze,qe,it){var gt=[0],Mt=[0],dr=0,lr=it!=null?it.kd:0,Vt=it!=null?it:new uu;if(o==null||12>P)return 7;Vt.data=o,Vt.w=b,Vt.ha=P,b=[b],P=[P],Vt.gb=[Vt.gb];e:{var Gr=b,Or=P,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=Qr(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],P=P[0];;){e:{var Yr=o;Or=b,Yt=P;var bn=gt,nn=Mt,Ai=Gr=[0];if((oi=dr=[dr])[0]=0,8>Yt[0])Yt=7;else{if(!l(Yr,Or[0],"VP8X")){if(Qr(Yr,Or[0]+4)!=10){Yt=3;break e}if(18>Yt[0]){Yt=7;break e}var Jn=Qr(Yr,Or[0]+8),Xi=1+_r(Yr,Or[0]+12);if(2147483648<=Xi*(Yr=1+_r(Yr,Or[0]+15))){Yt=3;break e}Ai!=null&&(Ai[0]=Jn),bn!=null&&(bn[0]=Xi),nn!=null&&(nn[0]=Yr),Or[0]+=18,Yt[0]-=18,oi[0]=1}Yt=0}}if(dr=dr[0],Gr=Gr[0],Yt!=0)return Yt;if(Or=!!(2&Gr),!$t&&dr)return 3;if(Ke!=null&&(Ke[0]=!!(16&Gr)),ze!=null&&(ze[0]=Or),qe!=null&&(qe[0]=0),ze=gt[0],Gr=Mt[0],dr&&Or&&it==null){Yt=0;break}if(4>P){Yt=7;break}if($t&&dr||!$t&&!dr&&!l(o,b[0],"ALPH")){P=[P],Vt.na=[Vt.na],Vt.P=[Vt.P],Vt.Sa=[Vt.Sa];e:{Jn=o,Yt=b,$t=P;var oi=Vt.gb;bn=Vt.na,nn=Vt.P,Ai=Vt.Sa,Xi=22,a(Jn!=null),a($t!=null),Yr=Yt[0];var Ha=$t[0];for(a(bn!=null),a(Ai!=null),bn[0]=null,nn[0]=null,Ai[0]=0;;){if(Yt[0]=Yr,$t[0]=Ha,8>Ha){Yt=7;break e}var Ua=Qr(Jn,Yr+4);if(4294967286<Ua){Yt=3;break e}var Ra=8+Ua+1&-2;if(Xi+=Ra,0<oi&&Xi>oi){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,nn[0]=Yr+8,Ai[0]=Ua),Yr+=Ra,Ha-=Ra}}if(P=P[0],Vt.na=Vt.na[0],Vt.P=Vt.P[0],Vt.Sa=Vt.Sa[0],Yt!=0)break}P=[P],Vt.Ja=[Vt.Ja],Vt.xa=[Vt.xa];e:if(oi=o,Yt=b,$t=P,bn=Vt.gb[0],nn=Vt.Ja,Ai=Vt.xa,Jn=Yt[0],Yr=!l(oi,Jn,"VP8 "),Xi=!l(oi,Jn,"VP8L"),a(oi!=null),a($t!=null),a(nn!=null),a(Ai!=null),8>$t[0])Yt=7;else{if(Yr||Xi){if(oi=Qr(oi,Jn+4),12<=bn&&oi>bn-12){Yt=3;break e}if(lr&&oi>$t[0]-8){Yt=7;break e}nn[0]=oi,Yt[0]+=8,$t[0]-=8,Ai[0]=Xi}else Ai[0]=5<=$t[0]&&oi[Jn+0]==47&&!(oi[Jn+4]>>5),nn[0]=$t[0];Yt=0}if(P=P[0],Vt.Ja=Vt.Ja[0],Vt.xa=Vt.xa[0],b=b[0],Yt!=0)break;if(4294967286<Vt.Ja)return 3;if(qe==null||Or||(qe[0]=Vt.xa?2:1),ze=[ze],Gr=[Gr],Vt.xa){if(5>P){Yt=7;break}qe=ze,lr=Gr,Or=Ke,o==null||5>P?o=0:5<=P&&o[b+0]==47&&!(o[b+4]>>5)?($t=[0],oi=[0],bn=[0],He(nn=new de,o,b,P),Hi(nn,$t,oi,bn)?(qe!=null&&(qe[0]=$t[0]),lr!=null&&(lr[0]=oi[0]),Or!=null&&(Or[0]=bn[0]),o=1):o=0):o=0}else{if(10>P){Yt=7;break}qe=Gr,o==null||10>P||!bo(o,b+3,P-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),qe&&(qe[0]=o),o=1))}if(!o||(ze=ze[0],Gr=Gr[0],dr&&(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-P));break}return Yt==0||Yt==7&&dr&&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,P){var oe=b.width,Oe=b.height,Ke=0,ze=0,qe=oe,it=Oe;if(b.Da=o!=null&&0<o.Da,b.Da&&(qe=o.cd,it=o.bd,Ke=o.v,ze=o.j,11>P||(Ke&=-2,ze&=-2),0>Ke||0>ze||0>=qe||0>=it||Ke+qe>oe||ze+it>Oe))return 0;if(b.v=Ke,b.j=ze,b.va=Ke+qe,b.o=ze+it,b.U=qe,b.T=it,b.da=o!=null&&0<o.da,b.da){if(!Un(qe,it,P=[o.ib],Ke=[o.hb]))return 0;b.ib=P[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,P,oe){if(oe==null||0>=o||0>=b)return 2;if(P!=null){if(P.Da){var Oe=P.cd,Ke=P.bd,ze=-2&P.v,qe=-2&P.j;if(0>ze||0>qe||0>=Oe||0>=Ke||ze+Oe>o||qe+Ke>b)return 2;o=Oe,b=Ke}if(P.da){if(!Un(o,b,Oe=[P.ib],Ke=[P.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=(qe=it*Cr[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=qe,it.size=Mt):((it=oe.f.kb).y=gt,it.O=0,it.fa=qe,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&=(qe=Math.abs(o.A))*(ze-1)+Ke<=o.size,b&=qe>=Ke*Cr[Oe],b&=o.eb!=null;else{o=oe.f.kb,qe=(Ke+1)/2,Mt=(ze+1)/2,it=Math.abs(o.fa),gt=Math.abs(o.Ab);var dr=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)+qe<=o.Cd,b=(b&=dr*(Mt-1)+qe<=o.Ed)&it>=Ke&gt>=qe&dr>=qe,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||P!=null&&P.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];Fr("Predictor0","PredictorAdd0"),Gt.Predictor0=function(){return 4278190080},Gt.Predictor1=function(o){return o},Gt.Predictor2=function(o,b,P){return b[P+0]},Gt.Predictor3=function(o,b,P){return b[P+1]},Gt.Predictor4=function(o,b,P){return b[P-1]},Gt.Predictor5=function(o,b,P){return kr(kr(o,b[P+1]),b[P+0])},Gt.Predictor6=function(o,b,P){return kr(o,b[P-1])},Gt.Predictor7=function(o,b,P){return kr(o,b[P+0])},Gt.Predictor8=function(o,b,P){return kr(b[P-1],b[P+0])},Gt.Predictor9=function(o,b,P){return kr(b[P+0],b[P+1])},Gt.Predictor10=function(o,b,P){return kr(kr(o,b[P-1]),kr(b[P+0],b[P+1]))},Gt.Predictor11=function(o,b,P){var oe=b[P+0];return 0>=Kn(oe>>24&255,o>>24&255,(b=b[P-1])>>24&255)+Kn(oe>>16&255,o>>16&255,b>>16&255)+Kn(oe>>8&255,o>>8&255,b>>8&255)+Kn(255&oe,255&o,255&b)?oe:o},Gt.Predictor12=function(o,b,P){var oe=b[P+0];return(fn((o>>24&255)+(oe>>24&255)-((b=b[P-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,P){var oe=b[P-1];return($n((o=kr(o,b[P+0]))>>24&255,oe>>24&255)<<24|$n(o>>16&255,oe>>16&255)<<16|$n(o>>8&255,oe>>8&255)<<8|$n(o>>0&255,oe>>0&255))>>>0};var ml=Gt.PredictorAdd0;Gt.PredictorAdd1=Bn,Fr("Predictor2","PredictorAdd2"),Fr("Predictor3","PredictorAdd3"),Fr("Predictor4","PredictorAdd4"),Fr("Predictor5","PredictorAdd5"),Fr("Predictor6","PredictorAdd6"),Fr("Predictor7","PredictorAdd7"),Fr("Predictor8","PredictorAdd8"),Fr("Predictor9","PredictorAdd9"),Fr("Predictor10","PredictorAdd10"),Fr("Predictor11","PredictorAdd11"),Fr("Predictor12","PredictorAdd12"),Fr("Predictor13","PredictorAdd13");var Ql=Gt.PredictorAdd2;gi("ColorIndexInverseTransform","MapARGB","32b",function(o){return o>>8&255},function(o){return o}),gi("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,sa=C(511),ci=C(2041),uc=C(225),uA=C(767),Fs=0,cd=ci,Wa=uc,ao=uA,Ga=sa,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,u=C(256),y=C(256),g=C(256),re=C(256),Fe=C(Fd-Wu),et=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],nr=[8,7,6,4,4,2,2,2,1,1,1,1],mr=1;this.WebPDecodeRGBA=function(o,b,P,oe,Oe){var Ke=IA,ze=new Au,qe=new mi;ze.ba=qe,qe.S=Ke,qe.width=[qe.width],qe.height=[qe.height];var it=qe.width,gt=qe.height,Mt=new hi;if(Mt==null||o==null)var dr=2;else a(Mt!=null),dr=sA(o,b,P,Mt.width,Mt.height,Mt.Pd,Mt.Qd,Mt.format,null);if(dr!=0?it=0:(it!=null&&(it[0]=Mt.width[0]),gt!=null&&(gt[0]=Mt.height[0]),it=1),it){qe.width=qe.width[0],qe.height=qe.height[0],oe!=null&&(oe[0]=qe.width),Oe!=null&&(Oe[0]=qe.height);e:{if(oe=new ma,(Oe=new uu).data=o,Oe.w=b,Oe.ha=P,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=Lo,oe.ac=ji,oe.bc=ko,oe.ma=ze,Oe.xa){if((o=Po())==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),!Hi(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((P=oe.l)!=null),a((Oe=P.ma)!=null),oe.xb!=0){if(oe.ca=Oe.ba,oe.tb=Oe.tb,a(oe.ca!=null),!YA(Oe.Oa,P,MA)){oe.a=2;break r}if(!fs(oe,P.width)||P.da)break r;if((P.da||ga(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(!Mi(oe,oe.V,oe.Ba,oe.c,oe.i,P.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 io)==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,P=ze.Oa,a((Oe=o)!=null),P!=null){if(0<(it=0>(it=P.Md)?0:100<it?255:255*it/100)){for(gt=Mt=0;4>gt;++gt)12>(dr=Oe.pb[gt]).lc&&(dr.ia=it*nr[0>dr.lc?0:dr.lc]>>3),Mt|=dr.ia;Mt&&(alert("todo:VP8InitRandom"),Oe.ia=1)}Oe.Ga=P.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?qe.f.RGBA.eb:qe.f.kb.y}else Ke=null;return Ke};var Cr=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function _e(Gt,Dr){for(var Zr="",bt=0;bt<4;bt++)Zr+=String.fromCharCode(Gt[Dr++]);return Zr}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 ae;var lt=[0],be=[0],Lt=[],wt=new ae,kt=c,ht=function(Gt,Dr){var Zr={},bt=0,Bt=!1,U=0,j=0;if(Zr.frames=[],!function(Ze,Xe,mt,yt){for(var It=0;It<yt;It++)if(Ze[Xe+It]!=mt.charCodeAt(It))return!0;return!1}(Gt,Dr,"RIFF",4)){var Ee,De;for(Ve(Gt,Dr+=4),Dr+=8;Dr<Gt.length;){var Je=_e(Gt,Dr),He=Ve(Gt,Dr+=4);Dr+=4;var dt=He+(1&He);switch(Je){case"VP8 ":case"VP8L":Zr.frames[bt]===void 0&&(Zr.frames[bt]={}),(de=Zr.frames[bt]).src_off=Bt?j:Dr-8,de.src_size=U+He+8,bt++,Bt&&(Bt=!1,U=0,j=0);break;case"VP8X":(de=Zr.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,j=Dr-8;break;case"ANIM":(de=Zr.header).bgcolor=Ve(Gt,Dr),pt=Dr+4,de.loop_count=(Ee=Gt)[(De=pt)+0]<<0|Ee[De+1]<<8,pt+=2;break;case"ANMF":var Et,de;(de=Zr.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}Je!="ANMF"&&(Dr+=dt)}return Zr}}(kt,0);ht.response=kt,ht.rgbaoutput=!0,ht.dataurl=!1;var Pt=ht.header?ht.header:null,ir=ht.frames?ht.frames:null;if(Pt){Pt.loop_counter=Pt.loop_count,lt=[Pt.canvas_height],be=[Pt.canvas_width];for(var gr=0;gr<ir.length&&ir[gr].blend!=0;gr++);}var Rr=ir[0],yn=wt.WebPDecodeRGBA(kt,Rr.src_off,Rr.src_size,be,lt);Rr.rgba=yn,Rr.imgwidth=be[0],Rr.imgheight=lt[0];for(var Er=0;Er<be[0]*lt[0]*4;Er++)Lt[Er]=yn[Er];return this.width=be,this.height=lt,this.data=Lt,this}(function(c){var a=function(){return typeof Si=="function"},l=function(lt,be,Lt,wt){var kt=4,ht=T;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=ae}lt=v(lt,be,Lt,ht);var Pt=Si(lt,{level:kt});return c.__addimage__.arrayBufferToBinaryString(Pt)},v=function(lt,be,Lt,wt){for(var kt,ht,Pt,ir=lt.length/be,gr=new Uint8Array(lt.length+ir),Rr=We(),yn=0;yn<ir;yn+=1){if(Pt=yn*be,kt=lt.subarray(Pt,Pt+be),wt)gr.set(wt(kt,Lt,ht),Pt+yn);else{for(var Er,Gt=Rr.length,Dr=[];Er<Gt;Er+=1)Dr[Er]=Rr[Er](kt,Lt,ht);var Zr=Ve(Dr.concat());gr.set(Dr[Zr],Pt+yn)}ht=kt}return gr},F=function(lt){var be=Array.apply([],lt);return be.unshift(0),be},C=function(lt,be){var Lt,wt=[],kt=lt.length;wt[0]=1;for(var ht=0;ht<kt;ht+=1)Lt=lt[ht-be]||0,wt[ht+1]=lt[ht]-Lt+256&255;return wt},T=function(lt,be,Lt){var wt,kt=[],ht=lt.length;kt[0]=2;for(var Pt=0;Pt<ht;Pt+=1)wt=Lt&&Lt[Pt]||0,kt[Pt+1]=lt[Pt]-wt+256&255;return kt},V=function(lt,be,Lt){var wt,kt,ht=[],Pt=lt.length;ht[0]=3;for(var ir=0;ir<Pt;ir+=1)wt=lt[ir-be]||0,kt=Lt&&Lt[ir]||0,ht[ir+1]=lt[ir]+256-(wt+kt>>>1)&255;return ht},ae=function(lt,be,Lt){var wt,kt,ht,Pt,ir=[],gr=lt.length;ir[0]=4;for(var Rr=0;Rr<gr;Rr+=1)wt=lt[Rr-be]||0,kt=Lt&&Lt[Rr]||0,ht=Lt&&Lt[Rr-be]||0,Pt=_e(wt,kt,ht),ir[Rr+1]=lt[Rr]-Pt+256&255;return ir},_e=function(lt,be,Lt){if(lt===be&&be===Lt)return lt;var wt=Math.abs(be-Lt),kt=Math.abs(lt-Lt),ht=Math.abs(lt+be-Lt-Lt);return wt<=kt&&wt<=ht?lt:kt<=ht?be:Lt},We=function(){return[F,C,T,V,ae]},Ve=function(lt){var be=lt.map(function(Lt){return Lt.reduce(function(wt,kt){return wt+Math.abs(kt)},0)});return be.indexOf(Math.min.apply(null,be))};c.processPNG=function(lt,be,Lt,wt){var kt,ht,Pt,ir,gr,Rr,yn,Er,Gt,Dr,Zr,bt,Bt,U,j,Ee=this.decode.FLATE_DECODE,De="";if(this.__addimage__.isArrayBuffer(lt)&&(lt=new Uint8Array(lt)),this.__addimage__.isArrayBufferView(lt)){if(lt=(Pt=new rA(lt)).imgData,ht=Pt.bits,kt=Pt.colorSpace,gr=Pt.colors,[4,6].indexOf(Pt.colorType)!==-1){if(Pt.bits===8){Gt=(Er=Pt.pixelBitlength==32?new Uint32Array(Pt.decodePixels().buffer):Pt.pixelBitlength==16?new Uint16Array(Pt.decodePixels().buffer):new Uint8Array(Pt.decodePixels().buffer)).length,Zr=new Uint8Array(Gt*Pt.colors),Dr=new Uint8Array(Gt);var Je,He=Pt.pixelBitlength-Pt.bits;for(U=0,j=0;U<Gt;U++){for(Bt=Er[U],Je=0;Je<He;)Zr[j++]=Bt>>>Je&255,Je+=Pt.bits;Dr[U]=Bt>>>Je&255}}if(Pt.bits===16){Gt=(Er=new Uint32Array(Pt.decodePixels().buffer)).length,Zr=new Uint8Array(Gt*(32/Pt.pixelBitlength)*Pt.colors),Dr=new Uint8Array(Gt*(32/Pt.pixelBitlength)),bt=Pt.colors>1,U=0,j=0;for(var dt=0;U<Gt;)Bt=Er[U++],Zr[j++]=Bt>>>0&255,bt&&(Zr[j++]=Bt>>>16&255,Bt=Er[U++],Zr[j++]=Bt>>>0&255),Dr[dt++]=Bt>>>16&255;ht=8}wt!==c.image_compression.NONE&&a()?(lt=l(Zr,Pt.width*Pt.colors,Pt.colors,wt),yn=l(Dr,Pt.width,1,wt)):(lt=Zr,yn=Dr,Ee=void 0)}if(Pt.colorType===3&&(kt=this.color_spaces.INDEXED,Rr=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)ir=[pt.indexOf(0)];else if(Et!==Gt){for(Er=Pt.decodePixels(),Dr=new Uint8Array(Er.length),U=0,Gt=Er.length;U<Gt;U++)Dr[U]=pt[Er[U]];yn=l(Dr,Pt.width,1)}}var de=function(Ze){var Xe;switch(Ze){case c.image_compression.FAST:Xe=11;break;case c.image_compression.MEDIUM:Xe=13;break;case c.image_compression.SLOW:Xe=14;break;default:Xe=12}return Xe}(wt);return Ee===this.decode.FLATE_DECODE&&(De="/Predictor "+de+" "),De+="/Colors "+gr+" /BitsPerComponent "+ht+" /Columns "+Pt.width,(this.__addimage__.isArrayBuffer(lt)||this.__addimage__.isArrayBufferView(lt))&&(lt=this.__addimage__.arrayBufferToBinaryString(lt)),(yn&&this.__addimage__.isArrayBuffer(yn)||this.__addimage__.isArrayBufferView(yn))&&(yn=this.__addimage__.arrayBufferToBinaryString(yn)),{alias:Lt,data:lt,index:be,filter:Ee,decodeParameters:De,transparency:ir,palette:Rr,sMask:yn,predictor:de,width:Pt.width,height:Pt.height,bitsPerComponent:ht,colorSpace:kt}}}})(di.API),function(c){c.processGIF89A=function(a,l,v,F){var C=new fc(a),T=C.width,V=C.height,ae=[];C.decodeAndBlitFrameRGBA(0,ae);var _e={data:ae,width:T,height:V},We=new Nl(100).encode(_e,100);return c.processJPEG.call(this,We,l,v,F)},c.processGIF87A=c.processGIF89A}(di.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){In.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),T=v*this.width*4+8*F*4,V=0;V<8&&8*F+V<this.width;V++){var ae=this.palette[C>>7-V&1];this.data[T+4*V]=ae.blue,this.data[T+4*V+1]=ae.green,this.data[T+4*V+2]=ae.red,this.data[T+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),T=v*this.width*4+2*F*4,V=C>>4,ae=15&C,_e=this.palette[V];if(this.data[T]=_e.blue,this.data[T+1]=_e.green,this.data[T+2]=_e.red,this.data[T+3]=255,2*F+1>=this.width)break;_e=this.palette[ae],this.data[T+4]=_e.blue,this.data[T+4+1]=_e.green,this.data[T+4+2]=_e.red,this.data[T+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 T=this.palette[F];this.data[C]=T.red,this.data[C+1]=T.green,this.data[C+2]=T.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 T=(C&a)/a*255|0,V=(C>>5&a)/a*255|0,ae=(C>>10&a)/a*255|0,_e=C>>15?255:0,We=v*this.width*4+4*F;this.data[We]=ae,this.data[We+1]=V,this.data[We+2]=T,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 T=this.datav.getUint16(this.pos,!0);this.pos+=2;var V=(T&a)/a*255|0,ae=(T>>5&l)/l*255|0,_e=(T>>11)/a*255|0,We=F*this.width*4+4*C;this.data[We]=_e,this.data[We+1]=ae,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),T=a*this.width*4+4*l;this.data[T]=C,this.data[T+1]=F,this.data[T+2]=v,this.data[T+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),T=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]=T}},Gs.prototype.getData=function(){return this.data},function(c){c.processBMP=function(a,l,v,F){var C=new Gs(a,!1),T=C.width,V=C.height,ae={data:C.getData(),width:T,height:V},_e=new Nl(100).encode(ae,100);return c.processJPEG.call(this,_e,l,v,F)}}(di.API),rl.prototype.getData=function(){return this.data},function(c){c.processWEBP=function(a,l,v,F){var C=new rl(a,!1),T=C.width,V=C.height,ae={data:C.getData(),width:T,height:V},_e=new Nl(100).encode(ae,100);return c.processJPEG.call(this,_e,l,v,F)}}(di.API),di.API.processRGBA=function(c,a,l){for(var v=c.data,F=v.length,C=new Uint8Array(F/4*3),T=new Uint8Array(F/4),V=0,ae=0,_e=0;_e<F;_e+=4){var We=v[_e],Ve=v[_e+1],lt=v[_e+2],be=v[_e+3];C[V++]=We,C[V++]=Ve,C[V++]=lt,T[ae++]=be}var Lt=this.__addimage__.arrayBufferToBinaryString(C);return{alpha:this.__addimage__.arrayBufferToBinaryString(T),data:Lt,index:a,alias:l,colorSpace:"DeviceRGB",bitsPerComponent:8,width:c.width,height:c.height}},di.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=di.API,Hc=tl.getCharWidthsArray=function(c,a){var l,v,F=(a=a||{}).font||this.internal.getFont(),C=a.fontSize||this.internal.getFontSize(),T=a.charSpace||this.internal.getCharSpace(),V=a.widths?a.widths:F.metadata.Unicode.widths,ae=V.fof?V.fof:1,_e=a.kerning?a.kerning:F.metadata.Unicode.kerning,We=_e.fof?_e.fof:1,Ve=a.doKerning!==!1,lt=0,be=c.length,Lt=0,wt=V[0]||ae,kt=[];for(l=0;l<be;l++)v=c.charCodeAt(l),typeof F.metadata.widthOfString=="function"?kt.push((F.metadata.widthOfGlyph(F.metadata.characterToGlyph(v))+T*(1e3/C)||0)/1e3):(lt=Ve&&(0,ge.Z)(_e[v])==="object"&&!isNaN(parseInt(_e[v][Lt],10))?_e[v][Lt]/We:0,kt.push((V[v]||wt)/ae+lt)),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,T){return C+T},0)},Ws=function(c,a,l,v){for(var F=[],C=0,T=c.length,V=0;C!==T&&V+a[C]<l;)V+=a[C],C++;F.push(c.slice(0,C));var ae=C;for(V=0;C!==T;)V+a[C]>v&&(F.push(c.slice(ae,C)),V=0,ae=C),V+=a[C],C++;return ae!==C&&F.push(c.slice(ae,C)),F},tA=function(c,a,l){l||(l={});var v,F,C,T,V,ae,_e,We=[],Ve=[We],lt=l.textIndent||0,be=0,Lt=0,wt=c.split(" "),kt=Hc.apply(this,[" ",l])[0];if(ae=l.lineIndent===-1?wt[0].length+2:l.lineIndent||0){var ht=Array(ae).join(" "),Pt=[];wt.map(function(gr){(gr=gr.split(/\s*\n/)).length>1?Pt=Pt.concat(gr.map(function(Rr,yn){return(yn&&Rr.length?`
`:"")+Rr})):Pt.push(gr[0])}),wt=Pt,ae=Pl.apply(this,[ht,l])}for(C=0,T=wt.length;C<T;C++){var ir=0;if(v=wt[C],ae&&v[0]==`
`&&(v=v.substr(1),ir=1),lt+be+(Lt=(F=Hc.apply(this,[v,l])).reduce(function(gr,Rr){return gr+Rr},0))>a||ir){if(Lt>a){for(V=Ws.apply(this,[v,F,a-(lt+be),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,Rr){return gr+Rr},0)}else We=[v];Ve.push(We),lt=Lt+ae,be=kt}else We.push(v),lt+=be+Lt,be=kt}return _e=ae?function(gr,Rr){return(Rr?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 T=1*this.internal.scaleFactor*a/F;C.textIndent=l.textIndent?1*l.textIndent*this.internal.scaleFactor/F:0,C.lineIndent=l.lineIndent;var V,ae,_e=[];for(V=0,ae=v.length;V<ae;V++)_e=_e.concat(tA.apply(this,[v[V],T,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)},T=c.__fontmetrics__.compress=function(Ve){var lt,be,Lt,wt,kt=["{"];for(var ht in Ve){if(lt=Ve[ht],isNaN(parseInt(ht,10))?be="'"+ht+"'":(ht=parseInt(ht,10),be=(be=C(ht).slice(2)).slice(0,-1)+v[be.slice(-1)]),typeof lt=="number")lt<0?(Lt=C(lt).slice(3),wt="-"):(Lt=C(lt).slice(2),wt=""),Lt=wt+Lt.slice(0,-1)+v[Lt.slice(-1)];else{if((0,ge.Z)(lt)!=="object")throw new Error("Don't know what to do with value type "+(0,ge.Z)(lt)+".");Lt=T(lt)}kt.push(be+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 lt,be,Lt,wt,kt={},ht=1,Pt=kt,ir=[],gr="",Rr="",yn=Ve.length-1,Er=1;Er<yn;Er+=1)(wt=Ve[Er])=="'"?lt?(Lt=lt.join(""),lt=void 0):lt=[]:lt?lt.push(wt):wt=="{"?(ir.push([Pt,Lt]),Pt={},Lt=void 0):wt=="}"?((be=ir.pop())[0][be[1]]=Pt,Lt=void 0,Pt=be[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)?(Rr+=l[wt],Pt[Lt]=parseInt(Rr,16)*ht,ht=1,Lt=void 0,Rr=""):Rr+=wt;return kt},ae={codePages:["WinAnsiEncoding"],WinAnsiEncoding:V("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},_e={Unicode:{Courier:ae,"Courier-Bold":ae,"Courier-BoldOblique":ae,"Courier-Oblique":ae,Helvetica:ae,"Helvetica-Bold":ae,"Helvetica-BoldOblique":ae,"Helvetica-Oblique":ae,"Times-Roman":ae,"Times-Bold":ae,"Times-BoldItalic":ae,"Times-Italic":ae}},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 lt=Ve.font,be=We.Unicode[lt.postScriptName];be&&(lt.metadata.Unicode={},lt.metadata.Unicode.widths=be.widths,lt.metadata.Unicode.kerning=be.kerning);var Lt=_e.Unicode[lt.postScriptName];Lt&&(lt.metadata.Unicode.encoding=Lt,lt.encoding=Lt.codePages[0])}])}(di.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(T,V){V=/^\x00\x01\x00\x00/.test(V)?a(V):a(Gn(V)),T.metadata=c.API.TTFFont.open(V),T.metadata.Unicode=T.metadata.Unicode||{encoding:{},kerning:{},widths:[]},T.metadata.glyIdsUsed=[0]})(F,v)}}])}(di),function(c){function a(){return(sn.canvg?Promise.resolve(sn.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})}di.API.addSvgAsImage=function(l,v,F,C,T,V,ae,_e){if(isNaN(v)||isNaN(F))throw In.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(C)||isNaN(T))throw In.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=T;var Ve=We.getContext("2d");Ve.fillStyle="#fff",Ve.fillRect(0,0,We.width,We.height);var lt={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},be=this;return a().then(function(Lt){return Lt.fromString(Ve,l,lt)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(Lt){return Lt.render(lt)}).then(function(){be.addImage(We.toDataURL("image/jpeg",1),v,F,C,T,ae,_e)})}}(),di.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},di.API.viewerPreferences=function(c,a){var l;c=c||{},a=a||!1;var v,F,C,T={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(T),ae=[],_e=0,We=0,Ve=0;function lt(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(T)),this.internal.viewerpreferences.isSubscribed=!1),l=this.internal.viewerpreferences.configuration,c==="reset"||a===!0){var be=V.length;for(Ve=0;Ve<be;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],lt(V,F)&&C!==void 0){if(l[F].type==="boolean"&&typeof C=="boolean")l[F].value=C;else if(l[F].type==="name"&&lt(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")ae.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&&ae.push([C[_e][0]-1,C[_e][1]-1].join(" "))}l[F].value="["+ae.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)),T=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),V=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),ae=unescape(encodeURIComponent("</x:xmpmeta>")),_e=C.length+T.length+V.length+F.length+ae.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+T+V+ae),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}}(di.API),function(c){var a=c.API,l=a.pdfEscape16=function(C,T){for(var V,ae=T.metadata.Unicode.widths,_e=["","0","00","000","0000"],We=[""],Ve=0,lt=C.length;Ve<lt;++Ve){if(V=T.metadata.characterToGlyph(C.charCodeAt(Ve)),T.metadata.glyIdsUsed.push(V),T.metadata.toUnicode[V]=C.charCodeAt(Ve),ae.indexOf(V)==-1&&(ae.push(V),ae.push([parseInt(T.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 T,V,ae,_e,We,Ve,lt;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`,ae=[],Ve=0,lt=(V=Object.keys(C).sort(function(be,Lt){return be-Lt})).length;Ve<lt;Ve++)T=V[Ve],ae.length>=100&&(We+=`
`+ae.length+` beginbfchar
`+ae.join(`
`)+`
endbfchar`,ae=[]),C[T]!==void 0&&C[T]!==null&&typeof C[T].toString=="function"&&(_e=("0000"+C[T].toString(16)).slice(-4),T=("0000"+(+T).toString(16)).slice(-4),ae.push("<"+T+"><"+_e+">"));return ae.length&&(We+=`
`+ae.length+` beginbfchar
`+ae.join(`
`)+`
endbfchar
`),We+=`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};a.events.push(["putFont",function(C){(function(T){var V=T.font,ae=T.out,_e=T.newObject,We=T.putStream;if(V.metadata instanceof c.API.TTFFont&&V.encoding==="Identity-H"){for(var Ve=V.metadata.Unicode.widths,lt=V.metadata.subset.encode(V.metadata.glyIdsUsed,1),be="",Lt=0;Lt<lt.length;Lt++)be+=String.fromCharCode(lt[Lt]);var wt=_e();We({data:be,addLength1:!0,objectId:wt}),ae("endobj");var kt=_e();We({data:v(V.metadata.toUnicode),addLength1:!0,objectId:kt}),ae("endobj");var ht=_e();ae("<<"),ae("/Type /FontDescriptor"),ae("/FontName /"+Ji(V.fontName)),ae("/FontFile2 "+wt+" 0 R"),ae("/FontBBox "+c.API.PDFObject.convert(V.metadata.bbox)),ae("/Flags "+V.metadata.flags),ae("/StemV "+V.metadata.stemV),ae("/ItalicAngle "+V.metadata.italicAngle),ae("/Ascent "+V.metadata.ascender),ae("/Descent "+V.metadata.decender),ae("/CapHeight "+V.metadata.capHeight),ae(">>"),ae("endobj");var Pt=_e();ae("<<"),ae("/Type /Font"),ae("/BaseFont /"+Ji(V.fontName)),ae("/FontDescriptor "+ht+" 0 R"),ae("/W "+c.API.PDFObject.convert(Ve)),ae("/CIDToGIDMap /Identity"),ae("/DW 1000"),ae("/Subtype /CIDFontType2"),ae("/CIDSystemInfo"),ae("<<"),ae("/Supplement 0"),ae("/Registry (Adobe)"),ae("/Ordering ("+V.encoding+")"),ae(">>"),ae(">>"),ae("endobj"),V.objectNumber=_e(),ae("<<"),ae("/Type /Font"),ae("/Subtype /Type0"),ae("/ToUnicode "+kt+" 0 R"),ae("/BaseFont /"+Ji(V.fontName)),ae("/Encoding /"+V.encoding),ae("/DescendantFonts ["+Pt+" 0 R]"),ae(">>"),ae("endobj"),V.isAlreadyPutted=!0}})(C)}]),a.events.push(["putFont",function(C){(function(T){var V=T.font,ae=T.out,_e=T.newObject,We=T.putStream;if(V.metadata instanceof c.API.TTFFont&&V.encoding==="WinAnsiEncoding"){for(var Ve=V.metadata.rawData,lt="",be=0;be<Ve.length;be++)lt+=String.fromCharCode(Ve[be]);var Lt=_e();We({data:lt,addLength1:!0,objectId:Lt}),ae("endobj");var wt=_e();We({data:v(V.metadata.toUnicode),addLength1:!0,objectId:wt}),ae("endobj");var kt=_e();ae("<<"),ae("/Descent "+V.metadata.decender),ae("/CapHeight "+V.metadata.capHeight),ae("/StemV "+V.metadata.stemV),ae("/Type /FontDescriptor"),ae("/FontFile2 "+Lt+" 0 R"),ae("/Flags 96"),ae("/FontBBox "+c.API.PDFObject.convert(V.metadata.bbox)),ae("/FontName /"+Ji(V.fontName)),ae("/ItalicAngle "+V.metadata.italicAngle),ae("/Ascent "+V.metadata.ascender),ae(">>"),ae("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));ae("<</Subtype/TrueType/Type/Font/ToUnicode "+wt+" 0 R/BaseFont/"+Ji(V.fontName)+"/FontDescriptor "+kt+" 0 R/Encoding/"+V.encoding+" /FirstChar 29 /LastChar 255 /Widths "+c.API.PDFObject.convert(V.metadata.hmtx.widths)+">>"),ae("endobj"),V.isAlreadyPutted=!0}})(C)}]);var F=function(C){var T,V=C.text||"",ae=C.x,_e=C.y,We=C.options||{},Ve=C.mutex||{},lt=Ve.pdfEscape,be=Ve.activeFontKey,Lt=Ve.fonts,wt=be,kt="",ht=0,Pt="",ir=Lt[wt].encoding;if(Lt[wt].encoding!=="Identity-H")return{text:V,x:ae,y:_e,options:We,mutex:Ve};for(Pt=V,wt=be,Array.isArray(V)&&(Pt=V[0]),ht=0;ht<Pt.length;ht+=1)Lt[wt].metadata.hasOwnProperty("cmap")&&(T=Lt[wt].metadata.cmap.unicode.codeMap[Pt[ht].charCodeAt(0)]),T||Pt[ht].charCodeAt(0)<256&&Lt[wt].metadata.hasOwnProperty("Unicode")?kt+=Pt[ht]:kt+="";var gr="";return parseInt(wt.slice(1))<14||ir==="WinAnsiEncoding"?gr=lt(kt,wt).split("").map(function(Rr){return Rr.charCodeAt(0).toString(16)}).join(""):ir==="Identity-H"&&(gr=l(kt,Lt[wt])),Ve.isHex=!0,{text:gr,x:ae,y:_e,options:We,mutex:Ve}};a.events.push(["postProcessText",function(C){var T=C.text||"",V=[],ae={text:T,x:C.x,y:C.y,options:C.options,mutex:C.mutex};if(Array.isArray(T)){var _e=0;for(_e=0;_e<T.length;_e+=1)Array.isArray(T[_e])&&T[_e].length===3?V.push([F(Object.assign({},ae,{text:T[_e][0]})).text,T[_e][1],T[_e][2]]):V.push(F(Object.assign({},ae,{text:T[_e]})).text);C.text=V}else C.text=F(Object.assign({},ae,{text:T})).text}])}(di),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}}(di.API),function(c){c.__bidiEngine__=c.prototype.__bidiEngine__=function(v){var F,C,T,V,ae,_e,We,Ve=a,lt=[[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]],be=[[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,ir=0;this.__bidiEngine__={};var gr=function(bt){var Bt=bt.charCodeAt(),U=Bt>>8,j=wt[U];return j!==void 0?Ve[256*j+(255&Bt)]:U===252||U===253?"AL":ht.test(U)?"L":U===8?"R":"N"},Rr=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,j){var Ee,De,Je,He,dt=Bt[j];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":j<1||j+1>=Bt.length||(Ee=U[j-1])!=="EN"&&Ee!=="AN"||(De=Bt[j+1])!=="EN"&&De!=="AN"?dt="N":Pt&&(De="AN"),dt=De===Ee?De:"N";break;case"ES":dt=(Ee=j>0?U[j-1]:"B")==="EN"&&j+1<Bt.length&&Bt[j+1]==="EN"?"EN":"N";break;case"ET":if(j>0&&U[j-1]==="EN"){dt="EN";break}if(Pt){dt="N";break}for(Je=j+1,He=Bt.length;Je<He&&Bt[Je]==="ET";)Je++;dt=Je<He&&Bt[Je]==="EN"?"EN":"N";break;case"NSM":if(T&&!V){for(He=Bt.length,Je=j+1;Je<He&&Bt[Je]==="NSM";)Je++;if(Je<He){var pt=bt[j],Et=pt>=1425&&pt<=2303||pt===64286;if(Ee=Bt[Je],Et&&(Ee==="R"||Ee==="AL")){dt="R";break}}}dt=j<1||(Ee=Bt[j-1])==="B"?"N":U[j-1];break;case"B":Pt=!1,F=!0,dt=ir;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},Er=function(bt,Bt,U){var j=bt.split("");return U&&Gt(j,U,{hiLevel:ir}),j.reverse(),Bt&&Bt.reverse(),j.join("")},Gt=function(bt,Bt,U){var j,Ee,De,Je,He,dt=-1,pt=bt.length,Et=0,de=[],Ze=ir?be:lt,Xe=[];for(Pt=!1,F=!1,C=!1,Ee=0;Ee<pt;Ee++)Xe[Ee]=gr(bt[Ee]);for(De=0;De<pt;De++){if(He=Et,de[De]=yn(bt,Xe,de,De),j=240&(Et=Ze[He][Lt[de[De]]]),Et&=15,Bt[De]=Je=Ze[Et][5],j>0)if(j===16){for(Ee=dt;Ee<De;Ee++)Bt[Ee]=1;dt=-1}else dt=-1;if(Ze[Et][6])dt===-1&&(dt=De);else if(dt>-1){for(Ee=dt;Ee<De;Ee++)Bt[Ee]=Je;dt=-1}Xe[De]==="B"&&(Bt[De]=0),U.hiLevel|=Je}C&&function(mt,yt,It){for(var Rt=0;Rt<It;Rt++)if(mt[Rt]==="S"){yt[Rt]=ir;for(var Tt=Rt-1;Tt>=0&&mt[Tt]==="WS";Tt--)yt[Tt]=ir}}(Xe,Bt,pt)},Dr=function(bt,Bt,U,j,Ee){if(!(Ee.hiLevel<bt)){if(bt===1&&ir===1&&!F)return Bt.reverse(),void(U&&U.reverse());for(var De,Je,He,dt,pt=Bt.length,Et=0;Et<pt;){if(j[Et]>=bt){for(He=Et+1;He<pt&&j[He]>=bt;)He++;for(dt=Et,Je=He-1;dt<Je;dt++,Je--)De=Bt[dt],Bt[dt]=Bt[Je],Bt[Je]=De,U&&(De=U[dt],U[dt]=U[Je],U[Je]=De);Et=He}Et++}}},Zr=function(bt,Bt,U){var j=bt.split(""),Ee={hiLevel:ir};return U||(U=[]),Gt(j,U,Ee),function(De,Je,He){if(He.hiLevel!==0&&We)for(var dt,pt=0;pt<De.length;pt++)Je[pt]===1&&(dt=kt.indexOf(De[pt]))>=0&&(De[pt]=kt[dt+1])}(j,U,Ee),Dr(2,j,Bt,U,Ee),Dr(1,j,Bt,U,Ee),j.join("")};return this.__bidiEngine__.doBidiReorder=function(bt,Bt,U){if(function(Ee,De){if(De)for(var Je=0;Je<Ee.length;Je++)De[Je]=Je;V===void 0&&(V=Rr(Ee)),_e===void 0&&(_e=Rr(Ee))}(bt,Bt),T||!ae||_e)if(T&&ae&&V^_e)ir=V?1:0,bt=Er(bt,Bt,U);else if(!T&&ae&&_e)ir=V?1:0,bt=Zr(bt,Bt,U),bt=Er(bt,Bt);else if(!T||V||ae||_e){if(T&&!ae&&V^_e)bt=Er(bt,Bt),V?(ir=0,bt=Zr(bt,Bt,U)):(ir=1,bt=Zr(bt,Bt,U),bt=Er(bt,Bt));else if(T&&V&&!ae&&_e)ir=1,bt=Zr(bt,Bt,U),bt=Er(bt,Bt);else if(!T&&!ae&&V^_e){var j=We;V?(ir=1,bt=Zr(bt,Bt,U),ir=0,We=!1,bt=Zr(bt,Bt,U),We=j):(ir=0,bt=Zr(bt,Bt,U),bt=Er(bt,Bt),ir=1,We=!1,bt=Zr(bt,Bt,U),We=j,bt=Er(bt,Bt))}}else ir=0,bt=Zr(bt,Bt,U);else ir=V?1:0,bt=Zr(bt,Bt,U);return bt},this.__bidiEngine__.setOptions=function(bt){bt&&(T=bt.isInputVisual,ae=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||{}),T=(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(T=[],V=0;V<F.length;V+=1)Object.prototype.toString.call(F[V])==="[object Array]"?T.push([l.doBidiReorder(F[V][0]),F[V][1],F[V][2]]):T.push([l.doBidiReorder(F[V])]);v.text=T}else v.text=l.doBidiReorder(F);l.setOptions({isInputVisual:!0})}])}(di),di.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 go(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 T,V,ae,_e;for(_e=[],T=0,V=(ae=this.bbox).length;T<V;T++)a=ae[T],_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,T,V;for(T=0,C=0,V=(a=""+a).length;0<=V?C<V:C>V;C=0<=V?++C:--C)F=a.charCodeAt(C),T+=this.widthOfGlyph(this.characterToGlyph(F))+v*(1e3/l)||0;return T*(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,T,V,ae;return a=this.readByte(),l=this.readByte(),v=this.readByte(),F=this.readByte(),C=this.readByte(),T=this.readByte(),V=this.readByte(),ae=this.readByte(),128&a?-1*(72057594037927940*(255^a)+281474976710656*(255^l)+1099511627776*(255^v)+4294967296*(255^F)+16777216*(255^C)+65536*(255^T)+256*(255^V)+(255^ae)+1):72057594037927940*a+281474976710656*l+1099511627776*v+4294967296*F+16777216*C+65536*T+256*V+ae},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}(),go=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,T,V,ae,_e,We,Ve,lt,be,Lt,wt;for(wt in be=Object.keys(l).length,ae=Math.log(2),Ve=16*Math.floor(Math.log(be)/ae),T=Math.floor(Ve/ae),We=16*be-Ve,(F=new Pa).writeInt(this.scalarType),F.writeShort(be),F.writeShort(Ve),F.writeShort(T),F.writeShort(We),C=16*be,_e=F.pos+C,V=null,Lt=[],l)for(lt=l[wt],F.writeString(wt),F.writeInt(c(lt)),F.writeInt(_e),F.writeInt(lt.length),Lt=Lt.concat(lt),wt==="head"&&(V=_e),_e+=lt.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,T;for(l=ad.call(l);l.length%4;)l.push(0);for(C=new Pa(l),F=0,v=0,T=l.length;v<T;v=v+=4)F+=C.readUInt32();return 4294967295&F},a}(),vo={}.hasOwnProperty,Yo=function(c,a){for(var l in a)vo.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,T,V,ae,_e,We,Ve,lt,be,Lt,wt,kt,ht,Pt,ir;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(ae=0;ae<256;++ae)this.codeMap[ae]=a.readByte();break;case 4:for(be=a.readUInt16(),lt=be/2,a.pos+=6,C=function(){var gr,Rr;for(Rr=[],ae=gr=0;0<=lt?gr<lt:gr>lt;ae=0<=lt?++gr:--gr)Rr.push(a.readUInt16());return Rr}(),a.pos+=2,wt=function(){var gr,Rr;for(Rr=[],ae=gr=0;0<=lt?gr<lt:gr>lt;ae=0<=lt?++gr:--gr)Rr.push(a.readUInt16());return Rr}(),_e=function(){var gr,Rr;for(Rr=[],ae=gr=0;0<=lt?gr<lt:gr>lt;ae=0<=lt?++gr:--gr)Rr.push(a.readUInt16());return Rr}(),We=function(){var gr,Rr;for(Rr=[],ae=gr=0;0<=lt?gr<lt:gr>lt;ae=0<=lt?++gr:--gr)Rr.push(a.readUInt16());return Rr}(),F=(this.length-a.pos+this.offset)/2,V=function(){var gr,Rr;for(Rr=[],ae=gr=0;0<=F?gr<F:gr>F;ae=0<=F?++gr:--gr)Rr.push(a.readUInt16());return Rr}(),ae=ht=0,ir=C.length;ht<ir;ae=++ht)for(kt=C[ae],v=Pt=Lt=wt[ae];Lt<=kt?Pt<=kt:Pt>=kt;v=Lt<=kt?++Pt:--Pt)We[ae]===0?T=v+_e[ae]:(T=V[We[ae]/2+(v-Lt)-(lt-ae)]||0)!==0&&(T+=_e[ae]),this.codeMap[v]=65535&T}a.pos=Ve}return c.encode=function(a,l){var v,F,C,T,V,ae,_e,We,Ve,lt,be,Lt,wt,kt,ht,Pt,ir,gr,Rr,yn,Er,Gt,Dr,Zr,bt,Bt,U,j,Ee,De,Je,He,dt,pt,Et,de,Ze,Xe,mt,yt,It,Rt,Tt,pr,sr,_r;switch(j=new Pa,T=Object.keys(a).sort(function(Qr,hn){return Qr-hn}),l){case"macroman":for(wt=0,kt=function(){var Qr=[];for(Lt=0;Lt<256;++Lt)Qr.push(0);return Qr}(),Pt={0:0},C={},Ee=0,dt=T.length;Ee<dt;Ee++)Pt[Tt=a[F=T[Ee]]]==null&&(Pt[Tt]=++wt),C[F]={old:a[F],new:Pt[a[F]]},kt[F]=Pt[a[F]];return j.writeUInt16(1),j.writeUInt16(0),j.writeUInt32(12),j.writeUInt16(0),j.writeUInt16(262),j.writeUInt16(0),j.write(kt),{charMap:C,subtable:j.data,maxGlyphID:wt+1};case"unicode":for(Bt=[],Ve=[],ir=0,Pt={},v={},ht=_e=null,De=0,pt=T.length;De<pt;De++)Pt[Rr=a[F=T[De]]]==null&&(Pt[Rr]=++ir),v[F]={old:Rr,new:Pt[Rr]},V=Pt[Rr]-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),Zr=2*(Dr=Bt.length),Gt=2*Math.pow(Math.log(Dr)/Math.LN2,2),lt=Math.log(Gt/2)/Math.LN2,Er=2*Dr-Gt,ae=[],yn=[],be=[],Lt=Je=0,Et=Bt.length;Je<Et;Lt=++Je){if(bt=Bt[Lt],We=Ve[Lt],bt===65535){ae.push(0),yn.push(0);break}if(bt-(U=v[bt].new)>=32768)for(ae.push(0),yn.push(2*(be.length+Dr-Lt)),F=He=bt;bt<=We?He<=We:He>=We;F=bt<=We?++He:--He)be.push(v[F].new);else ae.push(U-bt),yn.push(0)}for(j.writeUInt16(3),j.writeUInt16(1),j.writeUInt32(12),j.writeUInt16(4),j.writeUInt16(16+8*Dr+2*be.length),j.writeUInt16(0),j.writeUInt16(Zr),j.writeUInt16(Gt),j.writeUInt16(lt),j.writeUInt16(Er),It=0,de=Ve.length;It<de;It++)F=Ve[It],j.writeUInt16(F);for(j.writeUInt16(0),Rt=0,Ze=Bt.length;Rt<Ze;Rt++)F=Bt[Rt],j.writeUInt16(F);for(pr=0,Xe=ae.length;pr<Xe;pr++)V=ae[pr],j.writeUInt16(V);for(sr=0,mt=yn.length;sr<mt;sr++)gr=yn[sr],j.writeUInt16(gr);for(_r=0,yt=be.length;_r<yt;_r++)wt=be[_r],j.writeUInt16(wt);return{charMap:v,subtable:j.data,maxGlyphID:ir+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 T;for(F=l.readUInt16(),this.glyphNameIndex=[],T=0;0<=F?T<F:T>F;T=0<=F?++T:--T)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,ae,_e;for(_e=[],T=V=0,ae=this.file.maxp.numGlyphs;0<=ae?V<ae:V>ae;T=0<=ae?++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,T,V,ae,_e,We,Ve,lt,be;for(l.pos=this.offset,l.readShort(),v=l.readShort(),ae=l.readShort(),F=[],T=0;0<=v?T<v:T>v;T=0<=v?++T:--T)F.push({platformID:l.readShort(),encodingID:l.readShort(),languageID:l.readShort(),nameID:l.readShort(),length:l.readShort(),offset:this.offset+ae+l.readShort()});for(_e={},T=Ve=0,lt=F.length;Ve<lt;T=++Ve)C=F[T],l.pos=C.offset,We=l.readString(C.length),V=new hc(We,C),_e[be=C.nameID]==null&&(_e[be]=[]),_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,T,V,ae,_e;for(l.pos=this.offset,this.metrics=[],v=0,ae=this.file.hhea.numberOfMetrics;0<=ae?v<ae:v>ae;v=0<=ae?++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,lt,be;for(be=[],We=0,Ve=(lt=this.metrics).length;We<Ve;We++)T=lt[We],be.push(T.advance);return be}.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,T,V,ae,_e,We,Ve,lt;return l in this.cache?this.cache[l]:(T=this.file.loca,v=this.file.contents,F=T.indexOf(l),(C=T.lengthOf(l))===0?this.cache[l]=null:(v.pos=this.offset+F,V=(ae=new Pa(v.read(C))).readShort(),We=ae.readShort(),lt=ae.readShort(),_e=ae.readShort(),Ve=ae.readShort(),this.cache[l]=V===-1?new Sd(ae,We,lt,_e,Ve):new ou(ae,V,We,lt,_e,Ve),this.cache[l]))},a.prototype.encode=function(l,v,F){var C,T,V,ae,_e;for(V=[],T=[],ae=0,_e=v.length;ae<_e;ae++)C=l[v[ae]],T.push(V.length),C&&(V=V.concat(C.encode(F)));return T.push(V.length),{table:V,offsets:T}},a}(),ou=function(){function c(a,l,v,F,C,T){this.raw=a,this.numberOfContours=l,this.xMin=v,this.yMin=F,this.xMax=C,this.yMax=T,this.compound=!1}return c.prototype.encode=function(){return this.raw.data},c}(),Sd=function(){function c(a,l,v,F,C){var T,V;for(this.raw=a,this.xMin=l,this.yMin=v,this.xMax=F,this.yMax=C,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],T=this.raw;V=T.readShort(),this.glyphOffsets.push(T.pos),this.glyphIDs.push(T.readUInt16()),32&V;)T.pos+=1&V?4:2,128&V?T.pos+=8:64&V?T.pos+=4:8&V&&(T.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,T;for(T=[],F=0,C=this.length;F<C;F+=2)T.push(2*l.readUInt16());return T}.call(this):function(){var C,T;for(T=[],F=0,C=this.length;F<C;F+=4)T.push(l.readUInt32());return T}.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,T=0,V=0;V<F.length;++V)if(F[V]=C,T<v.length&&v[T]==V){++T,F[V]=C;var ae=this.offsets[V],_e=this.offsets[V+1]-ae;_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,T,V,ae;for(F={},T=0,V=a.length;T<V;T++)F[C=a[T]]=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 ae=this.glyphsFor(l))v=ae[C],F[C]=v;return F},c.prototype.encode=function(a,l){var v,F,C,T,V,ae,_e,We,Ve,lt,be,Lt,wt,kt,ht;for(F in v=Cl.encode(this.generateCmap(),"unicode"),T=this.glyphsFor(a),be={0:0},ht=v.charMap)be[(ae=ht[F]).old]=ae.new;for(Lt in lt=v.maxGlyphID,T)Lt in be||(be[Lt]=lt++);return We=function(Pt){var ir,gr;for(ir in gr={},Pt)gr[Pt[ir]]=ir;return gr}(be),Ve=Object.keys(We).sort(function(Pt,ir){return Pt-ir}),wt=function(){var Pt,ir,gr;for(gr=[],Pt=0,ir=Ve.length;Pt<ir;Pt++)V=Ve[Pt],gr.push(We[V]);return gr}(),C=this.font.glyf.encode(T,wt,be),_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}();di.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,T;if(Array.isArray(l))return"["+function(){var V,ae,_e;for(_e=[],V=0,ae=l.length;V<ae;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)T=l[F],C.push("/"+F+" "+a.convert(T));return C.push(">>"),C.join(`
`)}return""+l},a}();var sd=di},86129:function(xn,qt,x){var ge=x(19208).lW,ue=x(97671);(function(Q){xn.exports=Q()})(function(){return function Q(Te,ie,G){function B(h,Z){if(!ie[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 O=ie[h]={exports:{}};Te[h][0].call(O.exports,function(R){var I=Te[h][1][R];return B(I||R)},O,O.exports,Q,Te,ie,G)}return ie[h].exports}for(var f=void 0,E=0;E<G.length;E++)B(G[E]);return B}({1:[function(Q,Te,ie){"use strict";var G=Q("./utils"),B=Q("./support"),f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";ie.encode=function(E){for(var h,Z,S,_,O,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,O=(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(O)+f.charAt(R)+f.charAt(I));return Y.join("")},ie.decode=function(E){var h,Z,S,_,O,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|(O=f.indexOf(E.charAt(I++)))>>2,S=(3&O)<<6|(R=f.indexOf(E.charAt(I++))),se[Y++]=h,O!==64&&(se[Y++]=Z),R!==64&&(se[Y++]=S);return se}},{"./support":30,"./utils":32}],2:[function(Q,Te,ie){"use strict";var G=Q("./external"),B=Q("./stream/DataWorker"),f=Q("./stream/Crc32Probe"),E=Q("./stream/DataLengthProbe");function h(Z,S,_,O,R){this.compressedSize=Z,this.uncompressedSize=S,this.crc32=_,this.compression=O,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,ie){"use strict";var G=Q("./stream/GenericWorker");ie.STORE={magic:"\0\0",compressWorker:function(){return new G("STORE compression")},uncompressWorker:function(){return new G("STORE decompression")}},ie.DEFLATE=Q("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(Q,Te,ie){"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 O=B,R=_+S;h^=-1;for(var I=_;I<R;I++)h=h>>>8^O[255&(h^Z[I])];return-1^h}(0|E,f,f.length,0):function(h,Z,S,_){var O=B,R=_+S;h^=-1;for(var I=_;I<R;I++)h=h>>>8^O[255&(h^Z.charCodeAt(I))];return-1^h}(0|E,f,f.length,0):0}},{"./utils":32}],5:[function(Q,Te,ie){"use strict";ie.base64=!1,ie.binary=!1,ie.dir=!1,ie.createFolders=!0,ie.date=null,ie.compression=null,ie.compressionOptions=null,ie.comment=null,ie.unixPermissions=null,ie.dosPermissions=null},{}],6:[function(Q,Te,ie){"use strict";var G=null;G=typeof Promise!="undefined"?Promise:Q("lie"),Te.exports={Promise:G}},{lie:37}],7:[function(Q,Te,ie){"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={}}ie.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})}},ie.compressWorker=function(S){return new Z("Deflate",S)},ie.uncompressWorker=function(){return new Z("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(Q,Te,ie){"use strict";function G(O,R){var I,Y="";for(I=0;I<R;I++)Y+=String.fromCharCode(255&O),O>>>=8;return Y}function B(O,R,I,Y,K,se){var te,X,W=O.file,z=O.compression,le=se!==h.utf8encode,he=f.transformTo("string",se(W.name)),Ne=f.transformTo("string",h.utf8encode(W.name)),Be=W.comment,je=f.transformTo("string",se(Be)),ee=f.transformTo("string",h.utf8encode(Be)),ce=Ne.length!==W.name.length,D=ee.length!==Be.length,ot="",Le="",Ce="",Re=W.dir,ve=W.date,Pe={crc32:0,compressedSize:0,uncompressedSize:0};R&&!I||(Pe.crc32=O.crc32,Pe.compressedSize=O.compressedSize,Pe.uncompressedSize=O.uncompressedSize);var fe=0;R&&(fe|=8),le||!ce&&!D||(fe|=2048);var ye=0,at=0;Re&&(ye|=16),K==="UNIX"?(at=798,ye|=function(rt,At){var Nt=rt;return rt||(Nt=At?16893:33204),(65535&Nt)<<16}(W.unixPermissions,Re)):(at=20,ye|=function(rt){return 63&(rt||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),D&&(Ce=G(1,1)+G(Z(je),4)+ee,ot+="uc"+G(Ce.length,2)+Ce);var tt="";return tt+=`
\0`,tt+=G(fe,2),tt+=z.magic,tt+=G(te,2),tt+=G(X,2),tt+=G(Pe.crc32,4),tt+=G(Pe.compressedSize,4),tt+=G(Pe.uncompressedSize,4),tt+=G(he.length,2),tt+=G(ot.length,2),{fileRecord:S.LOCAL_FILE_HEADER+tt+he+ot,dirRecord:S.CENTRAL_FILE_HEADER+G(at,2)+tt+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 _(O,R,I,Y){E.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=R,this.zipPlatform=I,this.encodeFileName=Y,this.streamFiles=O,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}f.inherits(_,E),_.prototype.push=function(O){var R=O.meta.percent||0,I=this.entriesCount,Y=this._sources.length;this.accumulate?this.contentBuffer.push(O):(this.bytesWritten+=O.data.length,E.prototype.push.call(this,{data:O.data,meta:{currentFile:this.currentFile,percent:I?(R+100*(I-Y-1))/I:100}}))},_.prototype.openedSource=function(O){this.currentSourceOffset=this.bytesWritten,this.currentFile=O.file.name;var R=this.streamFiles&&!O.file.dir;if(R){var I=B(O,R,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:I.fileRecord,meta:{percent:0}})}else this.accumulate=!0},_.prototype.closedSource=function(O){this.accumulate=!1;var R=this.streamFiles&&!O.file.dir,I=B(O,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)}(O),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 O=this.bytesWritten,R=0;R<this.dirRecords.length;R++)this.push({data:this.dirRecords[R],meta:{percent:100}});var I=this.bytesWritten-O,Y=function(K,se,te,X,W){var z=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(z.length,2)+z}(this.dirRecords.length,I,O,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(O){this._sources.push(O);var R=this;return O.on("data",function(I){R.processChunk(I)}),O.on("end",function(){R.closedSource(R.previous.streamInfo),R._sources.length?R.prepareNextSource():R.end()}),O.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(O){var R=this._sources;if(!E.prototype.error.call(this,O))return!1;for(var I=0;I<R.length;I++)try{R[I].error(O)}catch(Y){}return!0},_.prototype.lock=function(){E.prototype.lock.call(this);for(var O=this._sources,R=0;R<O.length;R++)O[R].lock()},Te.exports=_},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(Q,Te,ie){"use strict";var G=Q("../compressions"),B=Q("./ZipFileWorker");ie.generateWorker=function(f,E,h){var Z=new B(E.streamFiles,h,E.platform,E.encodeFileName),S=0;try{f.forEach(function(_,O){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}(O.options.compression,E.compression),I=O.options.compressionOptions||E.compressionOptions||{},Y=O.dir,K=O.date;O._compressWorker(R,I).withStreamInfo("file",{name:_,dir:Y,date:K,comment:O.comment||"",unixPermissions:O.unixPermissions,dosPermissions:O.dosPermissions}).pipe(Z)}),Z.entriesCount=S}catch(_){Z.error(_)}return Z}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(Q,Te,ie){"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,ie){"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(O,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")):O()}).resume()})}Te.exports=function(_,O){var R=this;return O=G.extend(O||{},{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,O.optimizedBinaryString,O.base64).then(function(I){var Y=new E(O);return Y.load(I),Y}).then(function(I){var Y=[B.Promise.resolve(I)],K=I.files;if(O.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:O.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,ie){"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,ie){"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,ie){"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,ie){"use strict";function G(W,z,le){var he,Ne=f.getTypeOf(z),Be=f.extend(le||{},Z);Be.date=Be.date||new Date,Be.compression!==null&&(Be.compression=Be.compression.toUpperCase()),typeof Be.unixPermissions=="string"&&(Be.unixPermissions=parseInt(Be.unixPermissions,8)),Be.unixPermissions&&16384&Be.unixPermissions&&(Be.dir=!0),Be.dosPermissions&&16&Be.dosPermissions&&(Be.dir=!0),Be.dir&&(W=K(W)),Be.createFolders&&(he=Y(W))&&se.call(this,he,!0);var je=Ne==="string"&&Be.binary===!1&&Be.base64===!1;le&&le.binary!==void 0||(Be.binary=!je),(z instanceof S&&z.uncompressedSize===0||Be.dir||!z||z.length===0)&&(Be.base64=!1,Be.binary=!0,z="",Be.compression="STORE",Ne="string");var ee=null;ee=z instanceof S||z instanceof E?z:R.isNode&&R.isStream(z)?new I(W,z):f.prepareContent(W,z,Be.binary,Be.optimizedBinaryString,Be.base64);var ce=new _(W,ee,Be);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"),O=Q("./generate"),R=Q("./nodejsUtils"),I=Q("./nodejs/NodejsStreamInputAdapter"),Y=function(W){W.slice(-1)==="/"&&(W=W.substring(0,W.length-1));var z=W.lastIndexOf("/");return 0<z?W.substring(0,z):""},K=function(W){return W.slice(-1)!=="/"&&(W+="/"),W},se=function(W,z){return z=z!==void 0?z:Z.createFolders,W=K(W),this.files[W]||G.call(this,W,null,{dir:!0,createFolders:z}),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 z,le,he;for(z in this.files)he=this.files[z],(le=z.slice(this.root.length,z.length))&&z.slice(0,this.root.length)===this.root&&W(le,he)},filter:function(W){var z=[];return this.forEach(function(le,he){W(le,he)&&z.push(he)}),z},file:function(W,z,le){if(arguments.length!==1)return W=this.root+W,G.call(this,W,z,le),this;if(te(W)){var he=W;return this.filter(function(Be,je){return!je.dir&&he.test(Be)})}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,Be){return Be.dir&&W.test(Ne)});var z=this.root+W,le=se.call(this,z),he=this.clone();return he.root=le.name,he},remove:function(W){W=this.root+W;var z=this.files[W];if(z||(W.slice(-1)!=="/"&&(W+="/"),z=this.files[W]),z&&!z.dir)delete this.files[W];else for(var le=this.filter(function(Ne,Be){return Be.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 z,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||"";z=O.generateWorker(this,le,he)}catch(Ne){(z=new E("error")).error(Ne)}return new h(z,le.type||"string",le.mimeType)},generateAsync:function(W,z){return this.generateInternalStream(W).accumulate(z)},generateNodeStream:function(W,z){return(W=W||{}).type||(W.type="nodebuffer"),this.generateInternalStream(W).toNodejsStream(z)}};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,ie){"use strict";Te.exports=Q("stream")},{stream:void 0}],17:[function(Q,Te,ie){"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,ie){"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,ie){"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,ie){"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,ie){"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,ie){"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,ie){"use strict";ie.LOCAL_FILE_HEADER="PK",ie.CENTRAL_FILE_HEADER="PK",ie.CENTRAL_DIRECTORY_END="PK",ie.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",ie.ZIP64_CENTRAL_DIRECTORY_END="PK",ie.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(Q,Te,ie){"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,ie){"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,ie){"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,ie){"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,ie){"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,ie){"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(z,le){se.push(z),I&&I(le)}).on("error",function(z){se=[],K(z)}).on("end",function(){try{var z=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,Be=0,je=null,ee=0;for(Ne=0;Ne<he.length;Ne++)ee+=he[Ne].length;switch(le){case"string":return he.join("");case"array":return Array.prototype.concat.apply([],he);case"uint8array":for(je=new Uint8Array(ee),Ne=0;Ne<he.length;Ne++)je.set(he[Ne],Be),Be+=he[Ne].length;return je;case"nodebuffer":return ge.concat(he);default:throw new Error("concat : unsupported type '"+le+"'")}}(te,se),W);Y(z)}catch(le){K(le)}se=[]}).resume()})}function O(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)}}O.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=O},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(Q,Te,ie){"use strict";if(ie.base64=!0,ie.array=!0,ie.string=!0,ie.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",ie.nodebuffer=typeof ge!="undefined",ie.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")ie.blob=!1;else{var G=new ArrayBuffer(0);try{ie.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),ie.blob=B.getBlob("application/zip").size===0}catch(E){ie.blob=!1}}}try{ie.nodestream=!!Q("readable-stream").Readable}catch(f){ie.nodestream=!1}},{"readable-stream":16}],31:[function(Q,Te,ie){"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")}ie.utf8encode=function(O){return B.nodebuffer?f.newBufferFrom(O,"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}(O)},ie.utf8decode=function(O){return B.nodebuffer?G.transformTo("nodebuffer",O).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)}(O=G.transformTo(B.uint8array?"uint8array":"array",O))},G.inherits(S,E),S.prototype.processChunk=function(O){var R=G.transformTo(B.uint8array?"uint8array":"array",O.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:ie.utf8decode(K),meta:O.meta})},S.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:ie.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},ie.Utf8DecodeWorker=S,G.inherits(_,E),_.prototype.processChunk=function(O){this.push({data:ie.utf8encode(O.data),meta:O.meta})},ie.Utf8EncodeWorker=_},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(Q,Te,ie){"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"),ie.newBlob=function(I,Y){ie.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=ie.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 O(I,Y){for(var K=0;K<I.length;K++)Y[K]=I[K];return Y}ie.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 O(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 O(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 O(I,new Array(I.length))},arraybuffer:function(I){return R.nodebuffer.uint8array(I).buffer},uint8array:function(I){return O(I,new Uint8Array(I.length))},nodebuffer:h},ie.transformTo=function(I,Y){if(Y=Y||"",!I)return Y;ie.checkSupport(I);var K=ie.getTypeOf(Y);return R[K][I](Y)},ie.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("/")},ie.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},ie.checkSupport=function(I){if(!G[I.toLowerCase()])throw new Error(I+" is not supported by this platform")},ie.MAX_VALUE_16BITS=65535,ie.MAX_VALUE_32BITS=-1,ie.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},ie.delay=function(I,Y,K){setImmediate(function(){I.apply(K||null,Y||[])})},ie.inherits=function(I,Y){function K(){}K.prototype=Y.prototype,I.prototype=new K},ie.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},ie.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,z){var le=new FileReader;le.onload=function(he){W(he.target.result)},le.onerror=function(he){z(he.target.error)},le.readAsArrayBuffer(X)}):X}).then(function(X){var W=ie.getTypeOf(X);return W?(W==="arraybuffer"?X=ie.transformTo("uint8array",X):W==="string"&&(te?X=B.decode(X):K&&se!==!0&&(X=function(z){return Z(z,G.uint8array?new Uint8Array(z.length):new Array(z.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,ie){"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 O=this.reader.index;this.reader.setIndex(S);var R=this.reader.readString(4)===_;return this.reader.setIndex(O),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",O=B.transformTo(_,S);this.zipComment=this.loadOptions.decodeFileName(O)},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,_,O,R=this.zip64EndOfCentralSize-44;0<R;)S=this.reader.readInt(2),_=this.reader.readInt(4),O=this.reader.readData(_),this.zip64ExtensibleData[S]={id:S,length:_,value:O}},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 O=this.centralDirOffset+this.centralDirSize;this.zip64&&(O+=20,O+=12+this.zip64EndOfCentralSize);var R=_-O;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,ie){"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 _(O,R){this.options=O,this.loadOptions=R}_.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(O){var R,I;if(O.skip(22),this.fileNameLength=O.readInt(2),I=O.readInt(2),this.fileName=O.readData(this.fileNameLength),O.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,O.readData(this.compressedSize))},readCentralPart:function(O){this.versionMadeBy=O.readInt(2),O.skip(2),this.bitFlag=O.readInt(2),this.compressionMethod=O.readString(2),this.date=O.readDate(),this.crc32=O.readInt(4),this.compressedSize=O.readInt(4),this.uncompressedSize=O.readInt(4);var R=O.readInt(2);if(this.extraFieldsLength=O.readInt(2),this.fileCommentLength=O.readInt(2),this.diskNumberStart=O.readInt(2),this.internalFileAttributes=O.readInt(2),this.externalFileAttributes=O.readInt(4),this.localHeaderOffset=O.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");O.skip(R),this.readExtraFields(O),this.parseZIP64ExtraField(O),this.fileComment=O.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var O=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),O==0&&(this.dosPermissions=63&this.externalFileAttributes),O==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var O=G(this.extraFields[1].value);this.uncompressedSize===B.MAX_VALUE_32BITS&&(this.uncompressedSize=O.readInt(8)),this.compressedSize===B.MAX_VALUE_32BITS&&(this.compressedSize=O.readInt(8)),this.localHeaderOffset===B.MAX_VALUE_32BITS&&(this.localHeaderOffset=O.readInt(8)),this.diskNumberStart===B.MAX_VALUE_32BITS&&(this.diskNumberStart=O.readInt(4))}},readExtraFields:function(O){var R,I,Y,K=O.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});O.index+4<K;)R=O.readInt(2),I=O.readInt(2),Y=O.readData(I),this.extraFields[R]={id:R,length:I,value:Y};O.setIndex(K)},handleUTF8:function(){var O=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(O,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(I)}var Y=this.findExtraFieldUnicodeComment();if(Y!==null)this.fileCommentStr=Y;else{var K=B.transformTo(O,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(K)}}},findExtraFieldUnicodePath:function(){var O=this.extraFields[28789];if(O){var R=G(O.value);return R.readInt(1)!==1||E(this.fileName)!==R.readInt(4)?null:h.utf8decode(R.readData(O.length-5))}return null},findExtraFieldUnicodeComment:function(){var O=this.extraFields[25461];if(O){var R=G(O.value);return R.readInt(1)!==1||E(this.fileComment)!==R.readInt(4)?null:h.utf8decode(R.readData(O.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,ie){"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.")},O=0;O<S.length;O++)G.prototype[S[O]]=_;Te.exports=G},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(Q,Te,ie){(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 O=[];function R(){var I,Y;f=!0;for(var K=O.length;K;){for(Y=O,O=[],I=-1;++I<K;)Y[I]();K=O.length}f=!1}Te.exports=function(I){O.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,ie){"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 O(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 z=Y(function(){se(W,X)});z.status==="error"&&X(z.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?O(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){O(this.promise,this.onFulfilled,K)},_.prototype.callRejected=function(K){f.reject(this.promise,K)},_.prototype.otherCallRejected=function(K){O(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,z=K.queue.length;++W<z;)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),z=0,le=-1,he=new this(B);++le<te;)Ne(K[le],le);return he;function Ne(Be,je){se.resolve(Be).then(function(ee){W[je]=ee,++z!==te||X||(X=!0,f.resolve(he,W))},function(ee){X||(X=!0,f.reject(he,ee))})}},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,z=new this(B);++W<te;)le=K[W],se.resolve(le).then(function(he){X||(X=!0,f.resolve(z,he))},function(he){X||(X=!0,f.reject(z,he))});var le;return z}},{immediate:36}],38:[function(Q,Te,ie){"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,ie){"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,O=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:O,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,z=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(z),W.next_out=0,W.avail_out=z),(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},ie.Deflate=I,ie.deflate=Y,ie.deflateRaw=function(K,se){return(se=se||{}).raw=!0,Y(K,se)},ie.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,ie){"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 O(I){if(!(this instanceof O))return new O(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 O(Y);if(K.push(I,!0),K.err)throw K.msg||h[K.err];return K.result}O.prototype.push=function(I,Y){var K,se,te,X,W,z,le=this.strm,he=this.options.chunkSize,Ne=this.options.dictionary,Be=!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&&(z=typeof Ne=="string"?f.string2buf(Ne):_.call(Ne)==="[object ArrayBuffer]"?new Uint8Array(Ne):Ne,K=G.inflateSetDictionary(this.strm,z)),K===E.Z_BUF_ERROR&&Be===!0&&(K=E.Z_OK,Be=!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&&(Be=!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))},O.prototype.onData=function(I){this.chunks.push(I)},O.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},ie.Inflate=O,ie.inflate=R,ie.inflateRaw=function(I,Y){return(Y=Y||{}).raw=!0,R(I,Y)},ie.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,ie){"use strict";var G=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";ie.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},ie.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 O=0;O<S;O++)E[_+O]=h[Z+O]},flattenChunks:function(E){var h,Z,S,_,O,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++)O=E[h],R.set(O,_),_+=O.length;return R}},f={arraySet:function(E,h,Z,S,_){for(var O=0;O<S;O++)E[_+O]=h[Z+O]},flattenChunks:function(E){return[].concat.apply([],E)}};ie.setTyped=function(E){E?(ie.Buf8=Uint8Array,ie.Buf16=Uint16Array,ie.Buf32=Int32Array,ie.assign(ie,B)):(ie.Buf8=Array,ie.Buf16=Array,ie.Buf32=Array,ie.assign(ie,f))},ie.setTyped(G)},{}],42:[function(Q,Te,ie){"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 O="",R=0;R<_;R++)O+=String.fromCharCode(S[R]);return O}E[254]=E[254]=1,ie.string2buf=function(S){var _,O,R,I,Y,K=S.length,se=0;for(I=0;I<K;I++)(64512&(O=S.charCodeAt(I)))==55296&&I+1<K&&(64512&(R=S.charCodeAt(I+1)))==56320&&(O=65536+(O-55296<<10)+(R-56320),I++),se+=O<128?1:O<2048?2:O<65536?3:4;for(_=new G.Buf8(se),I=Y=0;Y<se;I++)(64512&(O=S.charCodeAt(I)))==55296&&I+1<K&&(64512&(R=S.charCodeAt(I+1)))==56320&&(O=65536+(O-55296<<10)+(R-56320),I++),O<128?_[Y++]=O:(O<2048?_[Y++]=192|O>>>6:(O<65536?_[Y++]=224|O>>>12:(_[Y++]=240|O>>>18,_[Y++]=128|O>>>12&63),_[Y++]=128|O>>>6&63),_[Y++]=128|63&O);return _},ie.buf2binstring=function(S){return Z(S,S.length)},ie.binstring2buf=function(S){for(var _=new G.Buf8(S.length),O=0,R=_.length;O<R;O++)_[O]=S.charCodeAt(O);return _},ie.buf2string=function(S,_){var O,R,I,Y,K=_||S.length,se=new Array(2*K);for(O=R=0;O<K;)if((I=S[O++])<128)se[R++]=I;else if(4<(Y=E[I]))se[R++]=65533,O+=Y-1;else{for(I&=Y===2?31:Y===3?15:7;1<Y&&O<K;)I=I<<6|63&S[O++],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)},ie.utf8border=function(S,_){var O;for((_=_||S.length)>S.length&&(_=S.length),O=_-1;0<=O&&(192&S[O])==128;)O--;return O<0||O===0?_:O+E[S[O]]>_?O:_}},{"./common":41}],43:[function(Q,Te,ie){"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,ie){"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,ie){"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,ie){"use strict";var G,B=Q("../utils/common"),f=Q("./trees"),E=Q("./adler32"),h=Q("./crc32"),Z=Q("./messages"),S=0,_=4,O=0,R=-2,I=-1,Y=4,K=2,se=8,te=9,X=286,W=30,z=19,le=2*X+1,he=15,Ne=3,Be=258,je=Be+Ne+1,ee=42,ce=113,D=1,ot=2,Le=3,Ce=4;function Re(L,nt){return L.msg=Z[nt],nt}function ve(L){return(L<<1)-(4<L?9:0)}function Pe(L){for(var nt=L.length;0<=--nt;)L[nt]=0}function fe(L){var nt=L.state,k=nt.pending;k>L.avail_out&&(k=L.avail_out),k!==0&&(B.arraySet(L.output,nt.pending_buf,nt.pending_out,k,L.next_out),L.next_out+=k,nt.pending_out+=k,L.total_out+=k,L.avail_out-=k,nt.pending-=k,nt.pending===0&&(nt.pending_out=0))}function ye(L,nt){f._tr_flush_block(L,0<=L.block_start?L.block_start:-1,L.strstart-L.block_start,nt),L.block_start=L.strstart,fe(L.strm)}function at(L,nt){L.pending_buf[L.pending++]=nt}function tt(L,nt){L.pending_buf[L.pending++]=nt>>>8&255,L.pending_buf[L.pending++]=255&nt}function rt(L,nt){var k,p,d=L.max_chain_length,w=L.strstart,q=L.prev_length,Se=L.nice_match,H=L.strstart>L.w_size-je?L.strstart-(L.w_size-je):0,ne=L.window,Ge=L.w_mask,xe=L.prev,we=L.strstart+Be,Ye=ne[w+q-1],_t=ne[w+q];L.prev_length>=L.good_match&&(d>>=2),Se>L.lookahead&&(Se=L.lookahead);do if(ne[(k=nt)+q]===_t&&ne[k+q-1]===Ye&&ne[k]===ne[w]&&ne[++k]===ne[w+1]){w+=2,k++;do;while(ne[++w]===ne[++k]&&ne[++w]===ne[++k]&&ne[++w]===ne[++k]&&ne[++w]===ne[++k]&&ne[++w]===ne[++k]&&ne[++w]===ne[++k]&&ne[++w]===ne[++k]&&ne[++w]===ne[++k]&&w<we);if(p=Be-(we-w),w=we-Be,q<p){if(L.match_start=nt,Se<=(q=p))break;Ye=ne[w+q-1],_t=ne[w+q]}}while((nt=xe[nt&Ge])>H&&--d!=0);return q<=L.lookahead?q:L.lookahead}function At(L){var nt,k,p,d,w,q,Se,H,ne,Ge,xe=L.w_size;do{if(d=L.window_size-L.lookahead-L.strstart,L.strstart>=xe+(xe-je)){for(B.arraySet(L.window,L.window,xe,xe,0),L.match_start-=xe,L.strstart-=xe,L.block_start-=xe,nt=k=L.hash_size;p=L.head[--nt],L.head[nt]=xe<=p?p-xe:0,--k;);for(nt=k=xe;p=L.prev[--nt],L.prev[nt]=xe<=p?p-xe:0,--k;);d+=xe}if(L.strm.avail_in===0)break;if(q=L.strm,Se=L.window,H=L.strstart+L.lookahead,ne=d,Ge=void 0,Ge=q.avail_in,ne<Ge&&(Ge=ne),k=Ge===0?0:(q.avail_in-=Ge,B.arraySet(Se,q.input,q.next_in,Ge,H),q.state.wrap===1?q.adler=E(q.adler,Se,Ge,H):q.state.wrap===2&&(q.adler=h(q.adler,Se,Ge,H)),q.next_in+=Ge,q.total_in+=Ge,Ge),L.lookahead+=k,L.lookahead+L.insert>=Ne)for(w=L.strstart-L.insert,L.ins_h=L.window[w],L.ins_h=(L.ins_h<<L.hash_shift^L.window[w+1])&L.hash_mask;L.insert&&(L.ins_h=(L.ins_h<<L.hash_shift^L.window[w+Ne-1])&L.hash_mask,L.prev[w&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=w,w++,L.insert--,!(L.lookahead+L.insert<Ne)););}while(L.lookahead<je&&L.strm.avail_in!==0)}function Nt(L,nt){for(var k,p;;){if(L.lookahead<je){if(At(L),L.lookahead<je&&nt===S)return D;if(L.lookahead===0)break}if(k=0,L.lookahead>=Ne&&(L.ins_h=(L.ins_h<<L.hash_shift^L.window[L.strstart+Ne-1])&L.hash_mask,k=L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart),k!==0&&L.strstart-k<=L.w_size-je&&(L.match_length=rt(L,k)),L.match_length>=Ne)if(p=f._tr_tally(L,L.strstart-L.match_start,L.match_length-Ne),L.lookahead-=L.match_length,L.match_length<=L.max_lazy_match&&L.lookahead>=Ne){for(L.match_length--;L.strstart++,L.ins_h=(L.ins_h<<L.hash_shift^L.window[L.strstart+Ne-1])&L.hash_mask,k=L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart,--L.match_length!=0;);L.strstart++}else L.strstart+=L.match_length,L.match_length=0,L.ins_h=L.window[L.strstart],L.ins_h=(L.ins_h<<L.hash_shift^L.window[L.strstart+1])&L.hash_mask;else p=f._tr_tally(L,0,L.window[L.strstart]),L.lookahead--,L.strstart++;if(p&&(ye(L,!1),L.strm.avail_out===0))return D}return L.insert=L.strstart<Ne-1?L.strstart:Ne-1,nt===_?(ye(L,!0),L.strm.avail_out===0?Le:Ce):L.last_lit&&(ye(L,!1),L.strm.avail_out===0)?D:ot}function jt(L,nt){for(var k,p,d;;){if(L.lookahead<je){if(At(L),L.lookahead<je&&nt===S)return D;if(L.lookahead===0)break}if(k=0,L.lookahead>=Ne&&(L.ins_h=(L.ins_h<<L.hash_shift^L.window[L.strstart+Ne-1])&L.hash_mask,k=L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart),L.prev_length=L.match_length,L.prev_match=L.match_start,L.match_length=Ne-1,k!==0&&L.prev_length<L.max_lazy_match&&L.strstart-k<=L.w_size-je&&(L.match_length=rt(L,k),L.match_length<=5&&(L.strategy===1||L.match_length===Ne&&4096<L.strstart-L.match_start)&&(L.match_length=Ne-1)),L.prev_length>=Ne&&L.match_length<=L.prev_length){for(d=L.strstart+L.lookahead-Ne,p=f._tr_tally(L,L.strstart-1-L.prev_match,L.prev_length-Ne),L.lookahead-=L.prev_length-1,L.prev_length-=2;++L.strstart<=d&&(L.ins_h=(L.ins_h<<L.hash_shift^L.window[L.strstart+Ne-1])&L.hash_mask,k=L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart),--L.prev_length!=0;);if(L.match_available=0,L.match_length=Ne-1,L.strstart++,p&&(ye(L,!1),L.strm.avail_out===0))return D}else if(L.match_available){if((p=f._tr_tally(L,0,L.window[L.strstart-1]))&&ye(L,!1),L.strstart++,L.lookahead--,L.strm.avail_out===0)return D}else L.match_available=1,L.strstart++,L.lookahead--}return L.match_available&&(p=f._tr_tally(L,0,L.window[L.strstart-1]),L.match_available=0),L.insert=L.strstart<Ne-1?L.strstart:Ne-1,nt===_?(ye(L,!0),L.strm.avail_out===0?Le:Ce):L.last_lit&&(ye(L,!1),L.strm.avail_out===0)?D:ot}function Qt(L,nt,k,p,d){this.good_length=L,this.max_lazy=nt,this.nice_length=k,this.max_chain=p,this.func=d}function ur(){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*z+1)),Pe(this.dyn_ltree),Pe(this.dyn_dtree),Pe(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),Pe(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new B.Buf16(2*X+1),Pe(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(L){var nt;return L&&L.state?(L.total_in=L.total_out=0,L.data_type=K,(nt=L.state).pending=0,nt.pending_out=0,nt.wrap<0&&(nt.wrap=-nt.wrap),nt.status=nt.wrap?ee:ce,L.adler=nt.wrap===2?0:1,nt.last_flush=S,f._tr_init(nt),O):Re(L,R)}function xr(L){var nt=or(L);return nt===O&&function(k){k.window_size=2*k.w_size,Pe(k.head),k.max_lazy_match=G[k.level].max_lazy,k.good_match=G[k.level].good_length,k.nice_match=G[k.level].nice_length,k.max_chain_length=G[k.level].max_chain,k.strstart=0,k.block_start=0,k.lookahead=0,k.insert=0,k.match_length=k.prev_length=Ne-1,k.match_available=0,k.ins_h=0}(L.state),nt}function fr(L,nt,k,p,d,w){if(!L)return R;var q=1;if(nt===I&&(nt=6),p<0?(q=0,p=-p):15<p&&(q=2,p-=16),d<1||te<d||k!==se||p<8||15<p||nt<0||9<nt||w<0||Y<w)return Re(L,R);p===8&&(p=9);var Se=new ur;return(L.state=Se).strm=L,Se.wrap=q,Se.gzhead=null,Se.w_bits=p,Se.w_size=1<<Se.w_bits,Se.w_mask=Se.w_size-1,Se.hash_bits=d+7,Se.hash_size=1<<Se.hash_bits,Se.hash_mask=Se.hash_size-1,Se.hash_shift=~~((Se.hash_bits+Ne-1)/Ne),Se.window=new B.Buf8(2*Se.w_size),Se.head=new B.Buf16(Se.hash_size),Se.prev=new B.Buf16(Se.w_size),Se.lit_bufsize=1<<d+6,Se.pending_buf_size=4*Se.lit_bufsize,Se.pending_buf=new B.Buf8(Se.pending_buf_size),Se.d_buf=1*Se.lit_bufsize,Se.l_buf=3*Se.lit_bufsize,Se.level=nt,Se.strategy=w,Se.method=k,xr(L)}G=[new Qt(0,0,0,0,function(L,nt){var k=65535;for(k>L.pending_buf_size-5&&(k=L.pending_buf_size-5);;){if(L.lookahead<=1){if(At(L),L.lookahead===0&&nt===S)return D;if(L.lookahead===0)break}L.strstart+=L.lookahead,L.lookahead=0;var p=L.block_start+k;if((L.strstart===0||L.strstart>=p)&&(L.lookahead=L.strstart-p,L.strstart=p,ye(L,!1),L.strm.avail_out===0)||L.strstart-L.block_start>=L.w_size-je&&(ye(L,!1),L.strm.avail_out===0))return D}return L.insert=0,nt===_?(ye(L,!0),L.strm.avail_out===0?Le:Ce):(L.strstart>L.block_start&&(ye(L,!1),L.strm.avail_out),D)}),new Qt(4,4,8,4,Nt),new Qt(4,5,16,8,Nt),new Qt(4,6,32,32,Nt),new Qt(4,4,16,16,jt),new Qt(8,16,32,32,jt),new Qt(8,16,128,128,jt),new Qt(8,32,128,256,jt),new Qt(32,128,258,1024,jt),new Qt(32,258,258,4096,jt)],ie.deflateInit=function(L,nt){return fr(L,nt,se,15,8,0)},ie.deflateInit2=fr,ie.deflateReset=xr,ie.deflateResetKeep=or,ie.deflateSetHeader=function(L,nt){return L&&L.state?L.state.wrap!==2?R:(L.state.gzhead=nt,O):R},ie.deflate=function(L,nt){var k,p,d,w;if(!L||!L.state||5<nt||nt<0)return L?Re(L,R):R;if(p=L.state,!L.output||!L.input&&L.avail_in!==0||p.status===666&&nt!==_)return Re(L,L.avail_out===0?-5:R);if(p.strm=L,k=p.last_flush,p.last_flush=nt,p.status===ee)if(p.wrap===2)L.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&&(L.adler=h(L.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 q=se+(p.w_bits-8<<4)<<8;q|=(2<=p.strategy||p.level<2?0:p.level<6?1:p.level===6?2:3)<<6,p.strstart!==0&&(q|=32),q+=31-q%31,p.status=ce,tt(p,q),p.strstart!==0&&(tt(p,L.adler>>>16),tt(p,65535&L.adler)),L.adler=1}if(p.status===69)if(p.gzhead.extra){for(d=p.pending;p.gzindex<(65535&p.gzhead.extra.length)&&(p.pending!==p.pending_buf_size||(p.gzhead.hcrc&&p.pending>d&&(L.adler=h(L.adler,p.pending_buf,p.pending-d,d)),fe(L),d=p.pending,p.pending!==p.pending_buf_size));)at(p,255&p.gzhead.extra[p.gzindex]),p.gzindex++;p.gzhead.hcrc&&p.pending>d&&(L.adler=h(L.adler,p.pending_buf,p.pending-d,d)),p.gzindex===p.gzhead.extra.length&&(p.gzindex=0,p.status=73)}else p.status=73;if(p.status===73)if(p.gzhead.name){d=p.pending;do{if(p.pending===p.pending_buf_size&&(p.gzhead.hcrc&&p.pending>d&&(L.adler=h(L.adler,p.pending_buf,p.pending-d,d)),fe(L),d=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>d&&(L.adler=h(L.adler,p.pending_buf,p.pending-d,d)),w===0&&(p.gzindex=0,p.status=91)}else p.status=91;if(p.status===91)if(p.gzhead.comment){d=p.pending;do{if(p.pending===p.pending_buf_size&&(p.gzhead.hcrc&&p.pending>d&&(L.adler=h(L.adler,p.pending_buf,p.pending-d,d)),fe(L),d=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>d&&(L.adler=h(L.adler,p.pending_buf,p.pending-d,d)),w===0&&(p.status=103)}else p.status=103;if(p.status===103&&(p.gzhead.hcrc?(p.pending+2>p.pending_buf_size&&fe(L),p.pending+2<=p.pending_buf_size&&(at(p,255&L.adler),at(p,L.adler>>8&255),L.adler=0,p.status=ce)):p.status=ce),p.pending!==0){if(fe(L),L.avail_out===0)return p.last_flush=-1,O}else if(L.avail_in===0&&ve(nt)<=ve(k)&&nt!==_)return Re(L,-5);if(p.status===666&&L.avail_in!==0)return Re(L,-5);if(L.avail_in!==0||p.lookahead!==0||nt!==S&&p.status!==666){var Se=p.strategy===2?function(H,ne){for(var Ge;;){if(H.lookahead===0&&(At(H),H.lookahead===0)){if(ne===S)return D;break}if(H.match_length=0,Ge=f._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++,Ge&&(ye(H,!1),H.strm.avail_out===0))return D}return H.insert=0,ne===_?(ye(H,!0),H.strm.avail_out===0?Le:Ce):H.last_lit&&(ye(H,!1),H.strm.avail_out===0)?D:ot}(p,nt):p.strategy===3?function(H,ne){for(var Ge,xe,we,Ye,_t=H.window;;){if(H.lookahead<=Be){if(At(H),H.lookahead<=Be&&ne===S)return D;if(H.lookahead===0)break}if(H.match_length=0,H.lookahead>=Ne&&0<H.strstart&&(xe=_t[we=H.strstart-1])===_t[++we]&&xe===_t[++we]&&xe===_t[++we]){Ye=H.strstart+Be;do;while(xe===_t[++we]&&xe===_t[++we]&&xe===_t[++we]&&xe===_t[++we]&&xe===_t[++we]&&xe===_t[++we]&&xe===_t[++we]&&xe===_t[++we]&&we<Ye);H.match_length=Be-(Ye-we),H.match_length>H.lookahead&&(H.match_length=H.lookahead)}if(H.match_length>=Ne?(Ge=f._tr_tally(H,1,H.match_length-Ne),H.lookahead-=H.match_length,H.strstart+=H.match_length,H.match_length=0):(Ge=f._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++),Ge&&(ye(H,!1),H.strm.avail_out===0))return D}return H.insert=0,ne===_?(ye(H,!0),H.strm.avail_out===0?Le:Ce):H.last_lit&&(ye(H,!1),H.strm.avail_out===0)?D:ot}(p,nt):G[p.level].func(p,nt);if(Se!==Le&&Se!==Ce||(p.status=666),Se===D||Se===Le)return L.avail_out===0&&(p.last_flush=-1),O;if(Se===ot&&(nt===1?f._tr_align(p):nt!==5&&(f._tr_stored_block(p,0,0,!1),nt===3&&(Pe(p.head),p.lookahead===0&&(p.strstart=0,p.block_start=0,p.insert=0))),fe(L),L.avail_out===0))return p.last_flush=-1,O}return nt!==_?O:p.wrap<=0?1:(p.wrap===2?(at(p,255&L.adler),at(p,L.adler>>8&255),at(p,L.adler>>16&255),at(p,L.adler>>24&255),at(p,255&L.total_in),at(p,L.total_in>>8&255),at(p,L.total_in>>16&255),at(p,L.total_in>>24&255)):(tt(p,L.adler>>>16),tt(p,65535&L.adler)),fe(L),0<p.wrap&&(p.wrap=-p.wrap),p.pending!==0?O:1)},ie.deflateEnd=function(L){var nt;return L&&L.state?(nt=L.state.status)!==ee&&nt!==69&&nt!==73&&nt!==91&&nt!==103&&nt!==ce&&nt!==666?Re(L,R):(L.state=null,nt===ce?Re(L,-3):O):R},ie.deflateSetDictionary=function(L,nt){var k,p,d,w,q,Se,H,ne,Ge=nt.length;if(!L||!L.state||(w=(k=L.state).wrap)===2||w===1&&k.status!==ee||k.lookahead)return R;for(w===1&&(L.adler=E(L.adler,nt,Ge,0)),k.wrap=0,Ge>=k.w_size&&(w===0&&(Pe(k.head),k.strstart=0,k.block_start=0,k.insert=0),ne=new B.Buf8(k.w_size),B.arraySet(ne,nt,Ge-k.w_size,k.w_size,0),nt=ne,Ge=k.w_size),q=L.avail_in,Se=L.next_in,H=L.input,L.avail_in=Ge,L.next_in=0,L.input=nt,At(k);k.lookahead>=Ne;){for(p=k.strstart,d=k.lookahead-(Ne-1);k.ins_h=(k.ins_h<<k.hash_shift^k.window[p+Ne-1])&k.hash_mask,k.prev[p&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=p,p++,--d;);k.strstart=p,k.lookahead=Ne-1,At(k)}return k.strstart+=k.lookahead,k.block_start=k.strstart,k.insert=k.lookahead,k.lookahead=0,k.match_length=k.prev_length=Ne-1,k.match_available=0,L.next_in=Se,L.input=H,L.avail_in=q,k.wrap=w,O},ie.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(Q,Te,ie){"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,ie){"use strict";Te.exports=function(G,B){var f,E,h,Z,S,_,O,R,I,Y,K,se,te,X,W,z,le,he,Ne,Be,je,ee,ce,D,ot;f=G.state,E=G.next_in,D=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),O=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,z=(1<<f.lenbits)-1,le=(1<<f.distbits)-1;e:do{te<15&&(se+=D[E++]<<te,te+=8,se+=D[E++]<<te,te+=8),he=X[se&z];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}Be=65535&he,(Ne&=15)&&(te<Ne&&(se+=D[E++]<<te,te+=8),Be+=se&(1<<Ne)-1,se>>>=Ne,te-=Ne),te<15&&(se+=D[E++]<<te,te+=8,se+=D[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+=D[E++]<<te,(te+=8)<Ne&&(se+=D[E++]<<te,te+=8)),O<(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,(ee=0)===Y){if(ee+=R-Ne,Ne<Be){for(Be-=Ne;ot[Z++]=K[ee++],--Ne;);ee=Z-je,ce=ot}}else if(Y<Ne){if(ee+=R+Y-Ne,(Ne-=Y)<Be){for(Be-=Ne;ot[Z++]=K[ee++],--Ne;);if(ee=0,Y<Be){for(Be-=Ne=Y;ot[Z++]=K[ee++],--Ne;);ee=Z-je,ce=ot}}}else if(ee+=Y-Ne,Ne<Be){for(Be-=Ne;ot[Z++]=K[ee++],--Ne;);ee=Z-je,ce=ot}for(;2<Be;)ot[Z++]=ce[ee++],ot[Z++]=ce[ee++],ot[Z++]=ce[ee++],Be-=3;Be&&(ot[Z++]=ce[ee++],1<Be&&(ot[Z++]=ce[ee++]))}else{for(ee=Z-je;ot[Z++]=ot[ee++],ot[Z++]=ot[ee++],ot[Z++]=ot[ee++],2<(Be-=3););Be&&(ot[Z++]=ot[ee++],1<Be&&(ot[Z++]=ot[ee++]))}break}}break}}while(E<h&&Z<_);E-=Be=te>>3,se&=(1<<(te-=Be<<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,ie){"use strict";var G=Q("../utils/common"),B=Q("./adler32"),f=Q("./crc32"),E=Q("./inffast"),h=Q("./inftrees"),Z=1,S=2,_=0,O=-2,R=1,I=852,Y=592;function K(ee){return(ee>>>24&255)+(ee>>>8&65280)+((65280&ee)<<8)+((255&ee)<<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(ee){var ce;return ee&&ee.state?(ce=ee.state,ee.total_in=ee.total_out=ce.total=0,ee.msg="",ce.wrap&&(ee.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,_):O}function X(ee){var ce;return ee&&ee.state?((ce=ee.state).wsize=0,ce.whave=0,ce.wnext=0,te(ee)):O}function W(ee,ce){var D,ot;return ee&&ee.state?(ot=ee.state,ce<0?(D=0,ce=-ce):(D=1+(ce>>4),ce<48&&(ce&=15)),ce&&(ce<8||15<ce)?O:(ot.window!==null&&ot.wbits!==ce&&(ot.window=null),ot.wrap=D,ot.wbits=ce,X(ee))):O}function z(ee,ce){var D,ot;return ee?(ot=new se,(ee.state=ot).window=null,(D=W(ee,ce))!==_&&(ee.state=null),D):O}var le,he,Ne=!0;function Be(ee){if(Ne){var ce;for(le=new G.Buf32(512),he=new G.Buf32(32),ce=0;ce<144;)ee.lens[ce++]=8;for(;ce<256;)ee.lens[ce++]=9;for(;ce<280;)ee.lens[ce++]=7;for(;ce<288;)ee.lens[ce++]=8;for(h(Z,ee.lens,0,288,le,0,ee.work,{bits:9}),ce=0;ce<32;)ee.lens[ce++]=5;h(S,ee.lens,0,32,he,0,ee.work,{bits:5}),Ne=!1}ee.lencode=le,ee.lenbits=9,ee.distcode=he,ee.distbits=5}function je(ee,ce,D,ot){var Le,Ce=ee.state;return Ce.window===null&&(Ce.wsize=1<<Ce.wbits,Ce.wnext=0,Ce.whave=0,Ce.window=new G.Buf8(Ce.wsize)),ot>=Ce.wsize?(G.arraySet(Ce.window,ce,D-Ce.wsize,Ce.wsize,0),Ce.wnext=0,Ce.whave=Ce.wsize):(ot<(Le=Ce.wsize-Ce.wnext)&&(Le=ot),G.arraySet(Ce.window,ce,D-ot,Le,Ce.wnext),(ot-=Le)?(G.arraySet(Ce.window,ce,D-ot,ot,0),Ce.wnext=ot,Ce.whave=Ce.wsize):(Ce.wnext+=Le,Ce.wnext===Ce.wsize&&(Ce.wnext=0),Ce.whave<Ce.wsize&&(Ce.whave+=Le))),0}ie.inflateReset=X,ie.inflateReset2=W,ie.inflateResetKeep=te,ie.inflateInit=function(ee){return z(ee,15)},ie.inflateInit2=z,ie.inflate=function(ee,ce){var D,ot,Le,Ce,Re,ve,Pe,fe,ye,at,tt,rt,At,Nt,jt,Qt,ur,or,xr,fr,L,nt,k,p,d=0,w=new G.Buf8(4),q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!ee||!ee.state||!ee.output||!ee.input&&ee.avail_in!==0)return O;(D=ee.state).mode===12&&(D.mode=13),Re=ee.next_out,Le=ee.output,Pe=ee.avail_out,Ce=ee.next_in,ot=ee.input,ve=ee.avail_in,fe=D.hold,ye=D.bits,at=ve,tt=Pe,nt=_;e:for(;;)switch(D.mode){case R:if(D.wrap===0){D.mode=13;break}for(;ye<16;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}if(2&D.wrap&&fe===35615){w[D.check=0]=255&fe,w[1]=fe>>>8&255,D.check=f(D.check,w,2,0),ye=fe=0,D.mode=2;break}if(D.flags=0,D.head&&(D.head.done=!1),!(1&D.wrap)||(((255&fe)<<8)+(fe>>8))%31){ee.msg="incorrect header check",D.mode=30;break}if((15&fe)!=8){ee.msg="unknown compression method",D.mode=30;break}if(ye-=4,L=8+(15&(fe>>>=4)),D.wbits===0)D.wbits=L;else if(L>D.wbits){ee.msg="invalid window size",D.mode=30;break}D.dmax=1<<L,ee.adler=D.check=1,D.mode=512&fe?10:12,ye=fe=0;break;case 2:for(;ye<16;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}if(D.flags=fe,(255&D.flags)!=8){ee.msg="unknown compression method",D.mode=30;break}if(57344&D.flags){ee.msg="unknown header flags set",D.mode=30;break}D.head&&(D.head.text=fe>>8&1),512&D.flags&&(w[0]=255&fe,w[1]=fe>>>8&255,D.check=f(D.check,w,2,0)),ye=fe=0,D.mode=3;case 3:for(;ye<32;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}D.head&&(D.head.time=fe),512&D.flags&&(w[0]=255&fe,w[1]=fe>>>8&255,w[2]=fe>>>16&255,w[3]=fe>>>24&255,D.check=f(D.check,w,4,0)),ye=fe=0,D.mode=4;case 4:for(;ye<16;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}D.head&&(D.head.xflags=255&fe,D.head.os=fe>>8),512&D.flags&&(w[0]=255&fe,w[1]=fe>>>8&255,D.check=f(D.check,w,2,0)),ye=fe=0,D.mode=5;case 5:if(1024&D.flags){for(;ye<16;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}D.length=fe,D.head&&(D.head.extra_len=fe),512&D.flags&&(w[0]=255&fe,w[1]=fe>>>8&255,D.check=f(D.check,w,2,0)),ye=fe=0}else D.head&&(D.head.extra=null);D.mode=6;case 6:if(1024&D.flags&&(ve<(rt=D.length)&&(rt=ve),rt&&(D.head&&(L=D.head.extra_len-D.length,D.head.extra||(D.head.extra=new Array(D.head.extra_len)),G.arraySet(D.head.extra,ot,Ce,rt,L)),512&D.flags&&(D.check=f(D.check,ot,rt,Ce)),ve-=rt,Ce+=rt,D.length-=rt),D.length))break e;D.length=0,D.mode=7;case 7:if(2048&D.flags){if(ve===0)break e;for(rt=0;L=ot[Ce+rt++],D.head&&L&&D.length<65536&&(D.head.name+=String.fromCharCode(L)),L&&rt<ve;);if(512&D.flags&&(D.check=f(D.check,ot,rt,Ce)),ve-=rt,Ce+=rt,L)break e}else D.head&&(D.head.name=null);D.length=0,D.mode=8;case 8:if(4096&D.flags){if(ve===0)break e;for(rt=0;L=ot[Ce+rt++],D.head&&L&&D.length<65536&&(D.head.comment+=String.fromCharCode(L)),L&&rt<ve;);if(512&D.flags&&(D.check=f(D.check,ot,rt,Ce)),ve-=rt,Ce+=rt,L)break e}else D.head&&(D.head.comment=null);D.mode=9;case 9:if(512&D.flags){for(;ye<16;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}if(fe!==(65535&D.check)){ee.msg="header crc mismatch",D.mode=30;break}ye=fe=0}D.head&&(D.head.hcrc=D.flags>>9&1,D.head.done=!0),ee.adler=D.check=0,D.mode=12;break;case 10:for(;ye<32;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}ee.adler=D.check=K(fe),ye=fe=0,D.mode=11;case 11:if(D.havedict===0)return ee.next_out=Re,ee.avail_out=Pe,ee.next_in=Ce,ee.avail_in=ve,D.hold=fe,D.bits=ye,2;ee.adler=D.check=1,D.mode=12;case 12:if(ce===5||ce===6)break e;case 13:if(D.last){fe>>>=7&ye,ye-=7&ye,D.mode=27;break}for(;ye<3;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}switch(D.last=1&fe,ye-=1,3&(fe>>>=1)){case 0:D.mode=14;break;case 1:if(Be(D),D.mode=20,ce!==6)break;fe>>>=2,ye-=2;break e;case 2:D.mode=17;break;case 3:ee.msg="invalid block type",D.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[Ce++]<<ye,ye+=8}if((65535&fe)!=(fe>>>16^65535)){ee.msg="invalid stored block lengths",D.mode=30;break}if(D.length=65535&fe,ye=fe=0,D.mode=15,ce===6)break e;case 15:D.mode=16;case 16:if(rt=D.length){if(ve<rt&&(rt=ve),Pe<rt&&(rt=Pe),rt===0)break e;G.arraySet(Le,ot,Ce,rt,Re),ve-=rt,Ce+=rt,Pe-=rt,Re+=rt,D.length-=rt;break}D.mode=12;break;case 17:for(;ye<14;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}if(D.nlen=257+(31&fe),fe>>>=5,ye-=5,D.ndist=1+(31&fe),fe>>>=5,ye-=5,D.ncode=4+(15&fe),fe>>>=4,ye-=4,286<D.nlen||30<D.ndist){ee.msg="too many length or distance symbols",D.mode=30;break}D.have=0,D.mode=18;case 18:for(;D.have<D.ncode;){for(;ye<3;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}D.lens[q[D.have++]]=7&fe,fe>>>=3,ye-=3}for(;D.have<19;)D.lens[q[D.have++]]=0;if(D.lencode=D.lendyn,D.lenbits=7,k={bits:D.lenbits},nt=h(0,D.lens,0,19,D.lencode,0,D.work,k),D.lenbits=k.bits,nt){ee.msg="invalid code lengths set",D.mode=30;break}D.have=0,D.mode=19;case 19:for(;D.have<D.nlen+D.ndist;){for(;Qt=(d=D.lencode[fe&(1<<D.lenbits)-1])>>>16&255,ur=65535&d,!((jt=d>>>24)<=ye);){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}if(ur<16)fe>>>=jt,ye-=jt,D.lens[D.have++]=ur;else{if(ur===16){for(p=jt+2;ye<p;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}if(fe>>>=jt,ye-=jt,D.have===0){ee.msg="invalid bit length repeat",D.mode=30;break}L=D.lens[D.have-1],rt=3+(3&fe),fe>>>=2,ye-=2}else if(ur===17){for(p=jt+3;ye<p;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}ye-=jt,L=0,rt=3+(7&(fe>>>=jt)),fe>>>=3,ye-=3}else{for(p=jt+7;ye<p;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}ye-=jt,L=0,rt=11+(127&(fe>>>=jt)),fe>>>=7,ye-=7}if(D.have+rt>D.nlen+D.ndist){ee.msg="invalid bit length repeat",D.mode=30;break}for(;rt--;)D.lens[D.have++]=L}}if(D.mode===30)break;if(D.lens[256]===0){ee.msg="invalid code -- missing end-of-block",D.mode=30;break}if(D.lenbits=9,k={bits:D.lenbits},nt=h(Z,D.lens,0,D.nlen,D.lencode,0,D.work,k),D.lenbits=k.bits,nt){ee.msg="invalid literal/lengths set",D.mode=30;break}if(D.distbits=6,D.distcode=D.distdyn,k={bits:D.distbits},nt=h(S,D.lens,D.nlen,D.ndist,D.distcode,0,D.work,k),D.distbits=k.bits,nt){ee.msg="invalid distances set",D.mode=30;break}if(D.mode=20,ce===6)break e;case 20:D.mode=21;case 21:if(6<=ve&&258<=Pe){ee.next_out=Re,ee.avail_out=Pe,ee.next_in=Ce,ee.avail_in=ve,D.hold=fe,D.bits=ye,E(ee,tt),Re=ee.next_out,Le=ee.output,Pe=ee.avail_out,Ce=ee.next_in,ot=ee.input,ve=ee.avail_in,fe=D.hold,ye=D.bits,D.mode===12&&(D.back=-1);break}for(D.back=0;Qt=(d=D.lencode[fe&(1<<D.lenbits)-1])>>>16&255,ur=65535&d,!((jt=d>>>24)<=ye);){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}if(Qt&&!(240&Qt)){for(or=jt,xr=Qt,fr=ur;Qt=(d=D.lencode[fr+((fe&(1<<or+xr)-1)>>or)])>>>16&255,ur=65535&d,!(or+(jt=d>>>24)<=ye);){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}fe>>>=or,ye-=or,D.back+=or}if(fe>>>=jt,ye-=jt,D.back+=jt,D.length=ur,Qt===0){D.mode=26;break}if(32&Qt){D.back=-1,D.mode=12;break}if(64&Qt){ee.msg="invalid literal/length code",D.mode=30;break}D.extra=15&Qt,D.mode=22;case 22:if(D.extra){for(p=D.extra;ye<p;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}D.length+=fe&(1<<D.extra)-1,fe>>>=D.extra,ye-=D.extra,D.back+=D.extra}D.was=D.length,D.mode=23;case 23:for(;Qt=(d=D.distcode[fe&(1<<D.distbits)-1])>>>16&255,ur=65535&d,!((jt=d>>>24)<=ye);){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}if(!(240&Qt)){for(or=jt,xr=Qt,fr=ur;Qt=(d=D.distcode[fr+((fe&(1<<or+xr)-1)>>or)])>>>16&255,ur=65535&d,!(or+(jt=d>>>24)<=ye);){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}fe>>>=or,ye-=or,D.back+=or}if(fe>>>=jt,ye-=jt,D.back+=jt,64&Qt){ee.msg="invalid distance code",D.mode=30;break}D.offset=ur,D.extra=15&Qt,D.mode=24;case 24:if(D.extra){for(p=D.extra;ye<p;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}D.offset+=fe&(1<<D.extra)-1,fe>>>=D.extra,ye-=D.extra,D.back+=D.extra}if(D.offset>D.dmax){ee.msg="invalid distance too far back",D.mode=30;break}D.mode=25;case 25:if(Pe===0)break e;if(rt=tt-Pe,D.offset>rt){if((rt=D.offset-rt)>D.whave&&D.sane){ee.msg="invalid distance too far back",D.mode=30;break}At=rt>D.wnext?(rt-=D.wnext,D.wsize-rt):D.wnext-rt,rt>D.length&&(rt=D.length),Nt=D.window}else Nt=Le,At=Re-D.offset,rt=D.length;for(Pe<rt&&(rt=Pe),Pe-=rt,D.length-=rt;Le[Re++]=Nt[At++],--rt;);D.length===0&&(D.mode=21);break;case 26:if(Pe===0)break e;Le[Re++]=D.length,Pe--,D.mode=21;break;case 27:if(D.wrap){for(;ye<32;){if(ve===0)break e;ve--,fe|=ot[Ce++]<<ye,ye+=8}if(tt-=Pe,ee.total_out+=tt,D.total+=tt,tt&&(ee.adler=D.check=D.flags?f(D.check,Le,tt,Re-tt):B(D.check,Le,tt,Re-tt)),tt=Pe,(D.flags?fe:K(fe))!==D.check){ee.msg="incorrect data check",D.mode=30;break}ye=fe=0}D.mode=28;case 28:if(D.wrap&&D.flags){for(;ye<32;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}if(fe!==(4294967295&D.total)){ee.msg="incorrect length check",D.mode=30;break}ye=fe=0}D.mode=29;case 29:nt=1;break e;case 30:nt=-3;break e;case 31:return-4;case 32:default:return O}return ee.next_out=Re,ee.avail_out=Pe,ee.next_in=Ce,ee.avail_in=ve,D.hold=fe,D.bits=ye,(D.wsize||tt!==ee.avail_out&&D.mode<30&&(D.mode<27||ce!==4))&&je(ee,ee.output,ee.next_out,tt-ee.avail_out)?(D.mode=31,-4):(at-=ee.avail_in,tt-=ee.avail_out,ee.total_in+=at,ee.total_out+=tt,D.total+=tt,D.wrap&&tt&&(ee.adler=D.check=D.flags?f(D.check,Le,tt,ee.next_out-tt):B(D.check,Le,tt,ee.next_out-tt)),ee.data_type=D.bits+(D.last?64:0)+(D.mode===12?128:0)+(D.mode===20||D.mode===15?256:0),(at==0&&tt===0||ce===4)&&nt===_&&(nt=-5),nt)},ie.inflateEnd=function(ee){if(!ee||!ee.state)return O;var ce=ee.state;return ce.window&&(ce.window=null),ee.state=null,_},ie.inflateGetHeader=function(ee,ce){var D;return ee&&ee.state&&2&(D=ee.state).wrap?((D.head=ce).done=!1,_):O},ie.inflateSetDictionary=function(ee,ce){var D,ot=ce.length;return ee&&ee.state?(D=ee.state).wrap!==0&&D.mode!==11?O:D.mode===11&&B(1,ce,ot,0)!==D.check?-3:je(ee,ce,ot,ot)?(D.mode=31,-4):(D.havedict=1,_):O},ie.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(Q,Te,ie){"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,_,O,R,I,Y,K){var se,te,X,W,z,le,he,Ne,Be,je=K.bits,ee=0,ce=0,D=0,ot=0,Le=0,Ce=0,Re=0,ve=0,Pe=0,fe=0,ye=null,at=0,tt=new G.Buf16(16),rt=new G.Buf16(16),At=null,Nt=0;for(ee=0;ee<=15;ee++)tt[ee]=0;for(ce=0;ce<O;ce++)tt[S[_+ce]]++;for(Le=je,ot=15;1<=ot&&tt[ot]===0;ot--);if(ot<Le&&(Le=ot),ot===0)return R[I++]=20971520,R[I++]=20971520,K.bits=1,0;for(D=1;D<ot&&tt[D]===0;D++);for(Le<D&&(Le=D),ee=ve=1;ee<=15;ee++)if(ve<<=1,(ve-=tt[ee])<0)return-1;if(0<ve&&(Z===0||ot!==1))return-1;for(rt[1]=0,ee=1;ee<15;ee++)rt[ee+1]=rt[ee]+tt[ee];for(ce=0;ce<O;ce++)S[_+ce]!==0&&(Y[rt[S[_+ce]]++]=ce);if(le=Z===0?(ye=At=Y,19):Z===1?(ye=B,at-=257,At=f,Nt-=257,256):(ye=E,At=h,-1),ee=D,z=I,Re=ce=fe=0,X=-1,W=(Pe=1<<(Ce=Le))-1,Z===1&&852<Pe||Z===2&&592<Pe)return 1;for(;;){for(he=ee-Re,Be=Y[ce]<le?(Ne=0,Y[ce]):Y[ce]>le?(Ne=At[Nt+Y[ce]],ye[at+Y[ce]]):(Ne=96,0),se=1<<ee-Re,D=te=1<<Ce;R[z+(fe>>Re)+(te-=se)]=he<<24|Ne<<16|Be|0,te!==0;);for(se=1<<ee-1;fe&se;)se>>=1;if(se!==0?(fe&=se-1,fe+=se):fe=0,ce++,--tt[ee]==0){if(ee===ot)break;ee=S[_+Y[ce]]}if(Le<ee&&(fe&W)!==X){for(Re===0&&(Re=Le),z+=D,ve=1<<(Ce=ee-Re);Ce+Re<ot&&!((ve-=tt[Ce+Re])<=0);)Ce++,ve<<=1;if(Pe+=1<<Ce,Z===1&&852<Pe||Z===2&&592<Pe)return 1;R[X=fe&W]=Le<<24|Ce<<16|z-I|0}}return fe!==0&&(R[z+fe]=ee-Re<<24|64<<16|0),K.bits=Le,0}},{"../utils/common":41}],51:[function(Q,Te,ie){"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,ie){"use strict";var G=Q("../utils/common"),B=0,f=1;function E(d){for(var w=d.length;0<=--w;)d[w]=0}var h=0,Z=29,S=256,_=S+1+Z,O=30,R=19,I=2*_+1,Y=15,K=16,se=7,te=256,X=16,W=17,z=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],Be=[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 ee=new Array(2*O);E(ee);var ce=new Array(512);E(ce);var D=new Array(256);E(D);var ot=new Array(Z);E(ot);var Le,Ce,Re,ve=new Array(O);function Pe(d,w,q,Se,H){this.static_tree=d,this.extra_bits=w,this.extra_base=q,this.elems=Se,this.max_length=H,this.has_stree=d&&d.length}function fe(d,w){this.dyn_tree=d,this.max_code=0,this.stat_desc=w}function ye(d){return d<256?ce[d]:ce[256+(d>>>7)]}function at(d,w){d.pending_buf[d.pending++]=255&w,d.pending_buf[d.pending++]=w>>>8&255}function tt(d,w,q){d.bi_valid>K-q?(d.bi_buf|=w<<d.bi_valid&65535,at(d,d.bi_buf),d.bi_buf=w>>K-d.bi_valid,d.bi_valid+=q-K):(d.bi_buf|=w<<d.bi_valid&65535,d.bi_valid+=q)}function rt(d,w,q){tt(d,q[2*w],q[2*w+1])}function At(d,w){for(var q=0;q|=1&d,d>>>=1,q<<=1,0<--w;);return q>>>1}function Nt(d,w,q){var Se,H,ne=new Array(Y+1),Ge=0;for(Se=1;Se<=Y;Se++)ne[Se]=Ge=Ge+q[Se-1]<<1;for(H=0;H<=w;H++){var xe=d[2*H+1];xe!==0&&(d[2*H]=At(ne[xe]++,xe))}}function jt(d){var w;for(w=0;w<_;w++)d.dyn_ltree[2*w]=0;for(w=0;w<O;w++)d.dyn_dtree[2*w]=0;for(w=0;w<R;w++)d.bl_tree[2*w]=0;d.dyn_ltree[2*te]=1,d.opt_len=d.static_len=0,d.last_lit=d.matches=0}function Qt(d){8<d.bi_valid?at(d,d.bi_buf):0<d.bi_valid&&(d.pending_buf[d.pending++]=d.bi_buf),d.bi_buf=0,d.bi_valid=0}function ur(d,w,q,Se){var H=2*w,ne=2*q;return d[H]<d[ne]||d[H]===d[ne]&&Se[w]<=Se[q]}function or(d,w,q){for(var Se=d.heap[q],H=q<<1;H<=d.heap_len&&(H<d.heap_len&&ur(w,d.heap[H+1],d.heap[H],d.depth)&&H++,!ur(w,Se,d.heap[H],d.depth));)d.heap[q]=d.heap[H],q=H,H<<=1;d.heap[q]=Se}function xr(d,w,q){var Se,H,ne,Ge,xe=0;if(d.last_lit!==0)for(;Se=d.pending_buf[d.d_buf+2*xe]<<8|d.pending_buf[d.d_buf+2*xe+1],H=d.pending_buf[d.l_buf+xe],xe++,Se===0?rt(d,H,w):(rt(d,(ne=D[H])+S+1,w),(Ge=le[ne])!==0&&tt(d,H-=ot[ne],Ge),rt(d,ne=ye(--Se),q),(Ge=he[ne])!==0&&tt(d,Se-=ve[ne],Ge)),xe<d.last_lit;);rt(d,te,w)}function fr(d,w){var q,Se,H,ne=w.dyn_tree,Ge=w.stat_desc.static_tree,xe=w.stat_desc.has_stree,we=w.stat_desc.elems,Ye=-1;for(d.heap_len=0,d.heap_max=I,q=0;q<we;q++)ne[2*q]!==0?(d.heap[++d.heap_len]=Ye=q,d.depth[q]=0):ne[2*q+1]=0;for(;d.heap_len<2;)ne[2*(H=d.heap[++d.heap_len]=Ye<2?++Ye:0)]=1,d.depth[H]=0,d.opt_len--,xe&&(d.static_len-=Ge[2*H+1]);for(w.max_code=Ye,q=d.heap_len>>1;1<=q;q--)or(d,ne,q);for(H=we;q=d.heap[1],d.heap[1]=d.heap[d.heap_len--],or(d,ne,1),Se=d.heap[1],d.heap[--d.heap_max]=q,d.heap[--d.heap_max]=Se,ne[2*H]=ne[2*q]+ne[2*Se],d.depth[H]=(d.depth[q]>=d.depth[Se]?d.depth[q]:d.depth[Se])+1,ne[2*q+1]=ne[2*Se+1]=H,d.heap[1]=H++,or(d,ne,1),2<=d.heap_len;);d.heap[--d.heap_max]=d.heap[1],function(_t,pe){var ut,ct,Ie,ke,vt,zt,Ut=pe.dyn_tree,ar=pe.max_code,Ir=pe.stat_desc.static_tree,Pr=pe.stat_desc.has_stree,Kr=pe.stat_desc.extra_bits,Tr=pe.stat_desc.extra_base,cr=pe.stat_desc.max_length,Ar=0;for(ke=0;ke<=Y;ke++)_t.bl_count[ke]=0;for(Ut[2*_t.heap[_t.heap_max]+1]=0,ut=_t.heap_max+1;ut<I;ut++)cr<(ke=Ut[2*Ut[2*(ct=_t.heap[ut])+1]+1]+1)&&(ke=cr,Ar++),Ut[2*ct+1]=ke,ar<ct||(_t.bl_count[ke]++,vt=0,Tr<=ct&&(vt=Kr[ct-Tr]),zt=Ut[2*ct],_t.opt_len+=zt*(ke+vt),Pr&&(_t.static_len+=zt*(Ir[2*ct+1]+vt)));if(Ar!==0){do{for(ke=cr-1;_t.bl_count[ke]===0;)ke--;_t.bl_count[ke]--,_t.bl_count[ke+1]+=2,_t.bl_count[cr]--,Ar-=2}while(0<Ar);for(ke=cr;ke!==0;ke--)for(ct=_t.bl_count[ke];ct!==0;)ar<(Ie=_t.heap[--ut])||(Ut[2*Ie+1]!==ke&&(_t.opt_len+=(ke-Ut[2*Ie+1])*Ut[2*Ie],Ut[2*Ie+1]=ke),ct--)}}(d,w),Nt(ne,Ye,d.bl_count)}function L(d,w,q){var Se,H,ne=-1,Ge=w[1],xe=0,we=7,Ye=4;for(Ge===0&&(we=138,Ye=3),w[2*(q+1)+1]=65535,Se=0;Se<=q;Se++)H=Ge,Ge=w[2*(Se+1)+1],++xe<we&&H===Ge||(xe<Ye?d.bl_tree[2*H]+=xe:H!==0?(H!==ne&&d.bl_tree[2*H]++,d.bl_tree[2*X]++):xe<=10?d.bl_tree[2*W]++:d.bl_tree[2*z]++,ne=H,Ye=(xe=0)===Ge?(we=138,3):H===Ge?(we=6,3):(we=7,4))}function nt(d,w,q){var Se,H,ne=-1,Ge=w[1],xe=0,we=7,Ye=4;for(Ge===0&&(we=138,Ye=3),Se=0;Se<=q;Se++)if(H=Ge,Ge=w[2*(Se+1)+1],!(++xe<we&&H===Ge)){if(xe<Ye)for(;rt(d,H,d.bl_tree),--xe!=0;);else H!==0?(H!==ne&&(rt(d,H,d.bl_tree),xe--),rt(d,X,d.bl_tree),tt(d,xe-3,2)):xe<=10?(rt(d,W,d.bl_tree),tt(d,xe-3,3)):(rt(d,z,d.bl_tree),tt(d,xe-11,7));ne=H,Ye=(xe=0)===Ge?(we=138,3):H===Ge?(we=6,3):(we=7,4)}}E(ve);var k=!1;function p(d,w,q,Se){tt(d,(h<<1)+(Se?1:0),3),function(H,ne,Ge,xe){Qt(H),xe&&(at(H,Ge),at(H,~Ge)),G.arraySet(H.pending_buf,H.window,ne,Ge,H.pending),H.pending+=Ge}(d,w,q,!0)}ie._tr_init=function(d){k||(function(){var w,q,Se,H,ne,Ge=new Array(Y+1);for(H=Se=0;H<Z-1;H++)for(ot[H]=Se,w=0;w<1<<le[H];w++)D[Se++]=H;for(D[Se-1]=H,H=ne=0;H<16;H++)for(ve[H]=ne,w=0;w<1<<he[H];w++)ce[ne++]=H;for(ne>>=7;H<O;H++)for(ve[H]=ne<<7,w=0;w<1<<he[H]-7;w++)ce[256+ne++]=H;for(q=0;q<=Y;q++)Ge[q]=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<O;w++)ee[2*w+1]=5,ee[2*w]=At(w,5);Le=new Pe(je,le,S+1,_,Y),Ce=new Pe(ee,he,0,O,Y),Re=new Pe(new Array(0),Ne,0,R,se)}(),k=!0),d.l_desc=new fe(d.dyn_ltree,Le),d.d_desc=new fe(d.dyn_dtree,Ce),d.bl_desc=new fe(d.bl_tree,Re),d.bi_buf=0,d.bi_valid=0,jt(d)},ie._tr_stored_block=p,ie._tr_flush_block=function(d,w,q,Se){var H,ne,Ge=0;0<d.level?(d.strm.data_type===2&&(d.strm.data_type=function(xe){var we,Ye=4093624447;for(we=0;we<=31;we++,Ye>>>=1)if(1&Ye&&xe.dyn_ltree[2*we]!==0)return B;if(xe.dyn_ltree[18]!==0||xe.dyn_ltree[20]!==0||xe.dyn_ltree[26]!==0)return f;for(we=32;we<S;we++)if(xe.dyn_ltree[2*we]!==0)return f;return B}(d)),fr(d,d.l_desc),fr(d,d.d_desc),Ge=function(xe){var we;for(L(xe,xe.dyn_ltree,xe.l_desc.max_code),L(xe,xe.dyn_dtree,xe.d_desc.max_code),fr(xe,xe.bl_desc),we=R-1;3<=we&&xe.bl_tree[2*Be[we]+1]===0;we--);return xe.opt_len+=3*(we+1)+5+5+4,we}(d),H=d.opt_len+3+7>>>3,(ne=d.static_len+3+7>>>3)<=H&&(H=ne)):H=ne=q+5,q+4<=H&&w!==-1?p(d,w,q,Se):d.strategy===4||ne===H?(tt(d,2+(Se?1:0),3),xr(d,je,ee)):(tt(d,4+(Se?1:0),3),function(xe,we,Ye,_t){var pe;for(tt(xe,we-257,5),tt(xe,Ye-1,5),tt(xe,_t-4,4),pe=0;pe<_t;pe++)tt(xe,xe.bl_tree[2*Be[pe]+1],3);nt(xe,xe.dyn_ltree,we-1),nt(xe,xe.dyn_dtree,Ye-1)}(d,d.l_desc.max_code+1,d.d_desc.max_code+1,Ge+1),xr(d,d.dyn_ltree,d.dyn_dtree)),jt(d),Se&&Qt(d)},ie._tr_tally=function(d,w,q){return d.pending_buf[d.d_buf+2*d.last_lit]=w>>>8&255,d.pending_buf[d.d_buf+2*d.last_lit+1]=255&w,d.pending_buf[d.l_buf+d.last_lit]=255&q,d.last_lit++,w===0?d.dyn_ltree[2*q]++:(d.matches++,w--,d.dyn_ltree[2*(D[q]+S+1)]++,d.dyn_dtree[2*ye(w)]++),d.last_lit===d.lit_bufsize-1},ie._tr_align=function(d){tt(d,2,3),rt(d,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)}(d)}},{"../utils/common":41}],53:[function(Q,Te,ie){"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,ie){(function(G){(function(B,f){"use strict";if(!B.setImmediate){var E,h,Z,S,_=1,O={},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),z=0;z<W.length;z++)W[z]=arguments[z+1];var le={callback:X,args:W};return O[_]=le,E(_),_++},Y.clearImmediate=K}function K(X){delete O[X]}function se(X){if(R)setTimeout(se,0,X);else{var W=O[X];if(W){R=!0;try{(function(z){var le=z.callback,he=z.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,qt,x){"use strict";var ge=x(92413),ue=x(33708),Q=x(400),Te=x(33606),ie=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 O,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,z=S.type,le=z===void 0?"checkbox":z,he=S.title,Ne=S.onChange,Be=(0,ie.Z)(S,h),je=(0,E.useRef)(null),ee=(0,f.Z)(W,{value:se}),ce=(0,Te.Z)(ee,2),D=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,(O={},(0,Q.Z)(O,"".concat(I,"-checked"),D),(0,Q.Z)(O,"".concat(I,"-disabled"),te),O)),Ce=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)({},Be,{className:"".concat(I,"-input"),ref:je,onChange:Ce,disabled:te,checked:!!D,type:le})),E.createElement("span",{className:"".concat(I,"-inner")}))});qt.Z=Z},31561:function(xn,qt,x){"use strict";x.d(qt,{Z:function(){return le}});var ge=x(92413),ue=x(400),Q=x(33606),Te=x(37061),ie=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 O(he){var Ne=he.visible,Be=he.triggerRef,je=he.onVisibleChange,ee=he.autoFocus,ce=he.overlayRef,D=E.useRef(!1),ot=function(){if(Ne){var ve,Pe;(ve=Be.current)===null||ve===void 0||(Pe=ve.focus)===null||Pe===void 0||Pe.call(ve),je==null||je(!1)}},Le=function(){var ve;return(ve=ce.current)!==null&&ve!==void 0&&ve.focus?(ce.current.focus(),D.current=!0,!0):!1},Ce=function(ve){switch(ve.keyCode){case S:ot();break;case _:{var Pe=!1;D.current||(Pe=Le()),Pe?ve.preventDefault():ot();break}}};E.useEffect(function(){return Ne?(window.addEventListener("keydown",Ce),ee&&(0,Z.Z)(Le,3),function(){window.removeEventListener("keydown",Ce),D.current=!1}):function(){D.current=!1}},[Ne])}var R=(0,E.forwardRef)(function(he,Ne){var Be=he.overlay,je=he.arrow,ee=he.prefixCls,ce=(0,E.useMemo)(function(){var ot;return typeof Be=="function"?ot=Be():ot=Be,ot},[Be]),D=(0,f.sQ)(Ne,ce==null?void 0:ce.ref);return E.createElement(E.Fragment,null,je&&E.createElement("div",{className:"".concat(ee,"-arrow")}),E.cloneElement(ce,{ref:(0,f.Yr)(ce)?D: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 Be,je=he.arrow,ee=je===void 0?!1:je,ce=he.prefixCls,D=ce===void 0?"rc-dropdown":ce,ot=he.transitionName,Le=he.animation,Ce=he.align,Re=he.placement,ve=Re===void 0?"bottomLeft":Re,Pe=he.placements,fe=Pe===void 0?te:Pe,ye=he.getPopupContainer,at=he.showAction,tt=he.hideAction,rt=he.overlayClassName,At=he.overlayStyle,Nt=he.visible,jt=he.trigger,Qt=jt===void 0?["hover"]:jt,ur=he.autoFocus,or=he.overlay,xr=he.children,fr=he.onVisibleChange,L=(0,Te.Z)(he,X),nt=E.useState(),k=(0,Q.Z)(nt,2),p=k[0],d=k[1],w="visible"in he?Nt:p,q=E.useRef(null),Se=E.useRef(null),H=E.useRef(null);E.useImperativeHandle(Ne,function(){return q.current});var ne=function(Ie){d(Ie),fr==null||fr(Ie)};O({visible:w,triggerRef:H,onVisibleChange:ne,autoFocus:ur,overlayRef:Se});var Ge=function(Ie){var ke=he.onOverlayClick;d(!1),ke&&ke(Ie)},xe=function(){return E.createElement(I,{ref:Se,overlay:or,prefixCls:D,arrow:ee})},we=function(){return typeof or=="function"?xe:xe()},Ye=function(){var Ie=he.minOverlayWidthMatchTrigger,ke=he.alignPoint;return"minOverlayWidthMatchTrigger"in he?Ie:!ke},_t=function(){var Ie=he.openClassName;return Ie!==void 0?Ie:"".concat(D,"-open")},pe=E.cloneElement(xr,{className:B()((Be=xr.props)===null||Be===void 0?void 0:Be.className,w&&_t()),ref:(0,f.Yr)(xr)?(0,f.sQ)(H,xr.ref):void 0}),ut=tt;return!ut&&Qt.indexOf("contextMenu")!==-1&&(ut=["click"]),E.createElement(ie.Z,(0,ge.Z)({builtinPlacements:fe},L,{prefixCls:D,ref:q,popupClassName:B()(rt,(0,ue.Z)({},"".concat(D,"-show-arrow"),ee)),popupStyle:At,action:Qt,showAction:at,hideAction:ut,popupPlacement:ve,popupAlign:Ce,popupTransitionName:ot,popupAnimation:Le,popupVisible:w,stretch:Ye()?"minWidth":"",popup:we(),onPopupVisibleChange:ne,onPopupClick:Ge,getPopupContainer:ye}),pe)}var z=E.forwardRef(W),le=z},93681:function(xn,qt,x){"use strict";x.r(qt),x.d(qt,{BaseInput:function(){return h},default:function(){return se}});var ge=x(92413),ue=x(33708),Q=x(400),Te=x(39559),ie=x(92310),G=x.n(ie),B=x(59301),f=x(5643),E=function(X){var W,z,le=X.inputElement,he=X.prefixCls,Ne=X.prefix,Be=X.suffix,je=X.addonBefore,ee=X.addonAfter,ce=X.className,D=X.style,ot=X.disabled,Le=X.readOnly,Ce=X.focused,Re=X.triggerFocus,ve=X.allowClear,Pe=X.value,fe=X.handleReset,ye=X.hidden,at=X.classes,tt=X.classNames,rt=X.dataAttrs,At=X.styles,Nt=X.components,jt=(Nt==null?void 0:Nt.affixWrapper)||"span",Qt=(Nt==null?void 0:Nt.groupWrapper)||"span",ur=(Nt==null?void 0:Nt.wrapper)||"span",or=(Nt==null?void 0:Nt.groupAddon)||"span",xr=(0,B.useRef)(null),fr=function(xe){var we;(we=xr.current)!==null&&we!==void 0&&we.contains(xe.target)&&(Re==null||Re())},L=function(){var xe;if(!ve)return null;var we=!ot&&!Le&&Pe,Ye="".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(ut){return ut.preventDefault()},className:G()(Ye,(xe={},(0,Q.Z)(xe,"".concat(Ye,"-hidden"),!we),(0,Q.Z)(xe,"".concat(Ye,"-has-suffix"),!!Be),xe)),role:"button",tabIndex:-1},_t)},nt=(0,B.cloneElement)(le,{value:Pe,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)({},(z=le.props)===null||z===void 0?void 0:z.style),!(0,f.X3)(X)&&!(0,f.He)(X)?D:{})});if((0,f.X3)(X)){var k,p="".concat(he,"-affix-wrapper"),d=G()(p,(k={},(0,Q.Z)(k,"".concat(p,"-disabled"),ot),(0,Q.Z)(k,"".concat(p,"-focused"),Ce),(0,Q.Z)(k,"".concat(p,"-readonly"),Le),(0,Q.Z)(k,"".concat(p,"-input-with-clear-btn"),Be&&ve&&Pe),k),!(0,f.He)(X)&&ce,at==null?void 0:at.affixWrapper,tt==null?void 0:tt.affixWrapper),w=(Be||ve)&&B.createElement("span",{className:G()("".concat(he,"-suffix"),tt==null?void 0:tt.suffix),style:At==null?void 0:At.suffix},L(),Be);nt=B.createElement(jt,(0,ge.Z)({className:d,style:(0,ue.Z)((0,ue.Z)({},(0,f.He)(X)?void 0:D),At==null?void 0:At.affixWrapper),hidden:!(0,f.He)(X)&&ye,onClick:fr},rt==null?void 0:rt.affixWrapper,{ref:xr}),Ne&&B.createElement("span",{className:G()("".concat(he,"-prefix"),tt==null?void 0:tt.prefix),style:At==null?void 0:At.prefix},Ne),(0,B.cloneElement)(le,{value:Pe,hidden:null}),w)}if((0,f.He)(X)){var q="".concat(he,"-group"),Se="".concat(q,"-addon"),H=G()("".concat(he,"-wrapper"),q,at==null?void 0:at.wrapper),ne=G()("".concat(he,"-group-wrapper"),ce,at==null?void 0:at.group);return B.createElement(Qt,{className:ne,style:D,hidden:ye},B.createElement(ur,{className:H},je&&B.createElement(or,{className:Se},je),(0,B.cloneElement)(nt,{hidden:null}),ee&&B.createElement(or,{className:Se},ee)))}return nt},h=E,Z=x(26407),S=x(33606),_=x(37061),O=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,z=te.onChange,le=te.onFocus,he=te.onBlur,Ne=te.onPressEnter,Be=te.onKeyDown,je=te.prefixCls,ee=je===void 0?"rc-input":je,ce=te.disabled,D=te.htmlSize,ot=te.className,Le=te.maxLength,Ce=te.suffix,Re=te.showCount,ve=te.type,Pe=ve===void 0?"text":ve,fe=te.classes,ye=te.classNames,at=te.styles,tt=(0,_.Z)(te,I),rt=(0,O.Z)(te.defaultValue,{value:te.value}),At=(0,S.Z)(rt,2),Nt=At[0],jt=At[1],Qt=(0,B.useState)(!1),ur=(0,S.Z)(Qt,2),or=ur[0],xr=ur[1],fr=(0,B.useRef)(null),L=function(ne){fr.current&&(0,f.nH)(fr.current,ne)};(0,B.useImperativeHandle)(X,function(){return{focus:L,blur:function(){var ne;(ne=fr.current)===null||ne===void 0||ne.blur()},setSelectionRange:function(ne,Ge,xe){var we;(we=fr.current)===null||we===void 0||we.setSelectionRange(ne,Ge,xe)},select:function(){var ne;(ne=fr.current)===null||ne===void 0||ne.select()},input:fr.current}}),(0,B.useEffect)(function(){xr(function(H){return H&&ce?!1:H})},[ce]);var nt=function(ne){te.value===void 0&&jt(ne.target.value),fr.current&&(0,f.rJ)(fr.current,ne,z)},k=function(ne){Ne&&ne.key==="Enter"&&Ne(ne),Be==null||Be(ne)},p=function(ne){xr(!0),le==null||le(ne)},d=function(ne){xr(!1),he==null||he(ne)},w=function(ne){jt(""),L(),fr.current&&(0,f.rJ)(fr.current,ne,z)},q=function(){var ne=(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},ne,{onChange:nt,onFocus:p,onBlur:d,onKeyDown:k,className:G()(ee,(0,Q.Z)({},"".concat(ee,"-disabled"),ce),ye==null?void 0:ye.input),style:at==null?void 0:at.input,ref:fr,size:D,type:Pe}))},Se=function(){var ne=Number(Le)>0;if(Ce||Re){var Ge=(0,f.D7)(Nt),xe=(0,Z.Z)(Ge).length,we=(0,Te.Z)(Re)==="object"?Re.formatter({value:Ge,count:xe,maxLength:Le}):"".concat(xe).concat(ne?" / ".concat(Le):"");return B.createElement(B.Fragment,null,!!Re&&B.createElement("span",{className:G()("".concat(ee,"-show-count-suffix"),(0,Q.Z)({},"".concat(ee,"-show-count-has-suffix"),!!Ce),ye==null?void 0:ye.count),style:(0,ue.Z)({},at==null?void 0:at.count)},we),Ce)}return null};return B.createElement(h,(0,ge.Z)({},tt,{prefixCls:ee,className:ot,inputElement:q(),handleReset:w,value:(0,f.D7)(Nt),focused:or,triggerFocus:L,suffix:Se(),disabled:ce,classes:fe,classNames:ye,styles:at}))}),K=Y,se=K},5643:function(xn,qt,x){"use strict";x.d(qt,{D7:function(){return ie},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 ie(G){return typeof G=="undefined"||G===null?"":String(G)}},15285:function(xn,qt,x){"use strict";x.d(qt,{iz:function(){return Vr},ck:function(){return An},BW:function(){return en},sN:function(){return An},Wd:function(){return Kt},ZP:function(){return ln},Xl:function(){return Be}});var ge=x(92413),ue=x(400),Q=x(33708),Te=x(26407),ie=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),O=x(4676),R=_.createContext(null);function I(Ht,Wt){return Ht===void 0?null:"".concat(Ht,"-").concat(Wt)}function Y(Ht){var Wt=_.useContext(R);return I(Wt,Ht)}var K=x(80547),se=["children","locked"],te=_.createContext(null);function X(Ht,Wt){var er=(0,Q.Z)({},Ht);return Object.keys(Wt).forEach(function(tr){var Xt=Wt[tr];Xt!==void 0&&(er[tr]=Xt)}),er}function W(Ht){var Wt=Ht.children,er=Ht.locked,tr=(0,G.Z)(Ht,se),Xt=_.useContext(te),Nr=(0,K.Z)(function(){return X(Xt,tr)},[Xt,tr],function(Lr,Jr){return!er&&(Lr[0]!==Jr[0]||!(0,Z.Z)(Lr[1],Jr[1],!0))});return _.createElement(te.Provider,{value:Nr},Wt)}var z=[],le=_.createContext(null);function he(){return _.useContext(le)}var Ne=_.createContext(z);function Be(Ht){var Wt=_.useContext(Ne);return _.useMemo(function(){return Ht!==void 0?[].concat((0,Te.Z)(Wt),[Ht]):Wt},[Wt,Ht])}var je=_.createContext(null),ee=_.createContext({}),ce=ee,D=x(29194);function ot(Ht){var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,D.Z)(Ht)){var er=Ht.nodeName.toLowerCase(),tr=["input","select","textarea","button"].includes(er)||Ht.isContentEditable||er==="a"&&!!Ht.getAttribute("href"),Xt=Ht.getAttribute("tabindex"),Nr=Number(Xt),Lr=null;return Xt&&!Number.isNaN(Nr)?Lr=Nr:tr&&Lr===null&&(Lr=0),tr&&Ht.disabled&&(Lr=null),Lr!==null&&(Lr>=0||Wt&&Lr<0)}return!1}function Le(Ht){var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,er=(0,Te.Z)(Ht.querySelectorAll("*")).filter(function(tr){return ot(tr,Wt)});return ot(Ht,Wt)&&er.unshift(Ht),er}var Ce=null;function Re(){Ce=document.activeElement}function ve(){Ce=null}function Pe(){if(Ce)try{Ce.focus()}catch(Ht){}}function fe(Ht,Wt){if(Wt.keyCode===9){var er=Le(Ht),tr=er[Wt.shiftKey?0:er.length-1],Xt=tr===document.activeElement||Ht===document.activeElement;if(Xt){var Nr=er[Wt.shiftKey?er.length-1:0];Nr.focus(),Wt.preventDefault()}}}var ye=x(10228),at=x(16089),tt=ye.Z.LEFT,rt=ye.Z.RIGHT,At=ye.Z.UP,Nt=ye.Z.DOWN,jt=ye.Z.ENTER,Qt=ye.Z.ESC,ur=ye.Z.HOME,or=ye.Z.END,xr=[At,Nt,tt,rt];function fr(Ht,Wt,er,tr){var Xt,Nr,Lr,Jr,Fn="prev",Ln="next",li="children",ti="parent";if(Ht==="inline"&&tr===jt)return{inlineTrigger:!0};var Ei=(Xt={},(0,ue.Z)(Xt,At,Fn),(0,ue.Z)(Xt,Nt,Ln),Xt),Yn=(Nr={},(0,ue.Z)(Nr,tt,er?Ln:Fn),(0,ue.Z)(Nr,rt,er?Fn:Ln),(0,ue.Z)(Nr,Nt,li),(0,ue.Z)(Nr,jt,li),Nr),Hn=(Lr={},(0,ue.Z)(Lr,At,Fn),(0,ue.Z)(Lr,Nt,Ln),(0,ue.Z)(Lr,jt,li),(0,ue.Z)(Lr,Qt,ti),(0,ue.Z)(Lr,tt,er?li:ti),(0,ue.Z)(Lr,rt,er?ti:li),Lr),sn={inline:Ei,horizontal:Yn,vertical:Hn,inlineSub:Ei,horizontalSub:Hn,verticalSub:Hn},vi=(Jr=sn["".concat(Ht).concat(Wt?"":"Sub")])===null||Jr===void 0?void 0:Jr[tr];switch(vi){case Fn:return{offset:-1,sibling:!0};case Ln:return{offset:1,sibling:!0};case ti:return{offset:-1,sibling:!1};case li:return{offset:1,sibling:!1};default:return null}}function L(Ht){for(var Wt=Ht;Wt;){if(Wt.getAttribute("data-menu-list"))return Wt;Wt=Wt.parentElement}return null}function nt(Ht,Wt){for(var er=Ht||document.activeElement;er;){if(Wt.has(er))return er;er=er.parentElement}return null}function k(Ht,Wt){var er=Le(Ht,!0);return er.filter(function(tr){return Wt.has(tr)})}function p(Ht,Wt,er){var tr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Ht)return null;var Xt=k(Ht,Wt),Nr=Xt.length,Lr=Xt.findIndex(function(Jr){return er===Jr});return tr<0?Lr===-1?Lr=Nr-1:Lr-=1:tr>0&&(Lr+=1),Lr=(Lr+Nr)%Nr,Xt[Lr]}var d=function(Wt,er){var tr=new Set,Xt=new Map,Nr=new Map;return Wt.forEach(function(Lr){var Jr=document.querySelector("[data-menu-id='".concat(I(er,Lr),"']"));Jr&&(tr.add(Jr),Nr.set(Jr,Lr),Xt.set(Lr,Jr))}),{elements:tr,key2element:Xt,element2key:Nr}};function w(Ht,Wt,er,tr,Xt,Nr,Lr,Jr,Fn,Ln){var li=_.useRef(),ti=_.useRef();ti.current=Wt;var Ei=function(){at.Z.cancel(li.current)};return _.useEffect(function(){return function(){Ei()}},[]),function(Yn){var Hn=Yn.which;if([].concat(xr,[jt,Qt,ur,or]).includes(Hn)){var sn=Nr(),vi=d(sn,tr),In=vi,ii=In.elements,bi=In.key2element,Di=In.element2key,Gn=bi.get(Wt),Li=nt(Gn,ii),ra=Di.get(Li),si=fr(Ht,Lr(ra,!0).length===1,er,Hn);if(!si&&Hn!==ur&&Hn!==or)return;(xr.includes(Hn)||[ur,or].includes(Hn))&&Yn.preventDefault();var un=function(Yi){if(Yi){var so=Yi,ri=Yi.querySelector("a");ri!=null&&ri.getAttribute("href")&&(so=ri);var On=Di.get(Yi);Jr(On),Ei(),li.current=(0,at.Z)(function(){ti.current===On&&so.focus()})}};if([ur,or].includes(Hn)||si.sibling||!Li){var rn;!Li||Ht==="inline"?rn=Xt.current:rn=L(Li);var Nn,wn=k(rn,ii);Hn===ur?Nn=wn[0]:Hn===or?Nn=wn[wn.length-1]:Nn=p(rn,ii,Li,si.offset),un(Nn)}else if(si.inlineTrigger)Fn(ra);else if(si.offset>0)Fn(ra,!0),Ei(),li.current=(0,at.Z)(function(){vi=d(sn,tr);var ca=Li.getAttribute("aria-controls"),Yi=document.getElementById(ca),so=p(Yi,vi.elements);un(so)},5);else if(si.offset<0){var jn=Lr(ra,!0),ui=jn[jn.length-2],_i=bi.get(ui);Fn(ui,!1),un(_i)}}Ln==null||Ln(Yn)}}function q(Ht){Promise.resolve().then(Ht)}var Se="__RC_UTIL_PATH_SPLIT__",H=function(Wt){return Wt.join(Se)},ne=function(Wt){return Wt.split(Se)},Ge="rc-menu-more";function xe(){var Ht=_.useState({}),Wt=(0,ie.Z)(Ht,2),er=Wt[1],tr=(0,_.useRef)(new Map),Xt=(0,_.useRef)(new Map),Nr=_.useState([]),Lr=(0,ie.Z)(Nr,2),Jr=Lr[0],Fn=Lr[1],Ln=(0,_.useRef)(0),li=(0,_.useRef)(!1),ti=function(){li.current||er({})},Ei=(0,_.useCallback)(function(bi,Di){var Gn=H(Di);Xt.current.set(Gn,bi),tr.current.set(bi,Gn),Ln.current+=1;var Li=Ln.current;q(function(){Li===Ln.current&&ti()})},[]),Yn=(0,_.useCallback)(function(bi,Di){var Gn=H(Di);Xt.current.delete(Gn),tr.current.delete(bi)},[]),Hn=(0,_.useCallback)(function(bi){Fn(bi)},[]),sn=(0,_.useCallback)(function(bi,Di){var Gn=tr.current.get(bi)||"",Li=ne(Gn);return Di&&Jr.includes(Li[0])&&Li.unshift(Ge),Li},[Jr]),vi=(0,_.useCallback)(function(bi,Di){return bi.some(function(Gn){var Li=sn(Gn,!0);return Li.includes(Di)})},[sn]),In=function(){var Di=(0,Te.Z)(tr.current.keys());return Jr.length&&Di.push(Ge),Di},ii=(0,_.useCallback)(function(bi){var Di="".concat(tr.current.get(bi)).concat(Se),Gn=new Set;return(0,Te.Z)(Xt.current.keys()).forEach(function(Li){Li.startsWith(Di)&&Gn.add(Xt.current.get(Li))}),Gn},[]);return _.useEffect(function(){return function(){li.current=!0}},[]),{registerPath:Ei,unregisterPath:Yn,refreshOverflowKeys:Hn,isSubPathKey:vi,getKeyPath:sn,getKeys:In,getSubPathKeys:ii}}function we(Ht){var Wt=_.useRef(Ht);Wt.current=Ht;var er=_.useCallback(function(){for(var tr,Xt=arguments.length,Nr=new Array(Xt),Lr=0;Lr<Xt;Lr++)Nr[Lr]=arguments[Lr];return(tr=Wt.current)===null||tr===void 0?void 0:tr.call.apply(tr,[Wt].concat(Nr))},[]);return Ht?er:void 0}var Ye=Math.random().toFixed(5).toString().slice(2),_t=0;function pe(Ht){var Wt=(0,h.Z)(Ht,{value:Ht}),er=(0,ie.Z)(Wt,2),tr=er[0],Xt=er[1];return _.useEffect(function(){_t+=1;var Nr="".concat(Ye,"-").concat(_t);Xt("rc-menu-uuid-".concat(Nr))},[]),tr}var ut=x(6909),ct=x(4771),Ie=x(9427),ke=x(25440),vt=x(2738),zt=x(8654);function Ut(Ht,Wt,er,tr){var Xt=_.useContext(te),Nr=Xt.activeKey,Lr=Xt.onActive,Jr=Xt.onInactive,Fn={active:Nr===Ht};return Wt||(Fn.onMouseEnter=function(Ln){er==null||er({key:Ht,domEvent:Ln}),Lr(Ht)},Fn.onMouseLeave=function(Ln){tr==null||tr({key:Ht,domEvent:Ln}),Jr(Ht)}),Fn}function ar(Ht){var Wt=_.useContext(te),er=Wt.mode,tr=Wt.rtl,Xt=Wt.inlineIndent;if(er!=="inline")return null;var Nr=Ht;return tr?{paddingRight:Nr*Xt}:{paddingLeft:Nr*Xt}}function Ir(Ht){var Wt=Ht.icon,er=Ht.props,tr=Ht.children,Xt;return Wt===null||Wt===!1?null:(typeof Wt=="function"?Xt=_.createElement(Wt,(0,Q.Z)({},er)):typeof Wt!="boolean"&&(Xt=Wt),Xt||tr||null)}var Pr=["item"];function Kr(Ht){var Wt=Ht.item,er=(0,G.Z)(Ht,Pr);return Object.defineProperty(er,"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}}),er}var Tr=["title","attribute","elementRef"],cr=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Ar=["active"],zr=function(Ht){(0,Ie.Z)(er,Ht);var Wt=(0,ke.Z)(er);function er(){return(0,ut.Z)(this,er),Wt.apply(this,arguments)}return(0,ct.Z)(er,[{key:"render",value:function(){var Xt=this.props,Nr=Xt.title,Lr=Xt.attribute,Jr=Xt.elementRef,Fn=(0,G.Z)(Xt,Tr),Ln=(0,vt.Z)(Fn,["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},Ln,{ref:Jr}))}}]),er}(_.Component),cn=_.forwardRef(function(Ht,Wt){var er,tr=Ht.style,Xt=Ht.className,Nr=Ht.eventKey,Lr=Ht.warnKey,Jr=Ht.disabled,Fn=Ht.itemIcon,Ln=Ht.children,li=Ht.role,ti=Ht.onMouseEnter,Ei=Ht.onMouseLeave,Yn=Ht.onClick,Hn=Ht.onKeyDown,sn=Ht.onFocus,vi=(0,G.Z)(Ht,cr),In=Y(Nr),ii=_.useContext(te),bi=ii.prefixCls,Di=ii.onItemClick,Gn=ii.disabled,Li=ii.overflowDisabled,ra=ii.itemIcon,si=ii.selectedKeys,un=ii.onActive,rn=_.useContext(ce),Nn=rn._internalRenderMenuItem,wn="".concat(bi,"-item"),jn=_.useRef(),ui=_.useRef(),_i=Gn||Jr,ca=(0,zt.x1)(Wt,ui),Yi=Be(Nr),so=function(Ba){return{key:Nr,keyPath:(0,Te.Z)(Yi).reverse(),item:jn.current,domEvent:Ba}},ri=Fn||ra,On=Ut(Nr,_i,ti,Ei),ki=On.active,Ii=(0,G.Z)(On,Ar),da=si.includes(Nr),To=ar(Yi.length),ia=function(Ba){if(!_i){var di=so(Ba);Yn==null||Yn(Kr(di)),Di(di)}},Ji=function(Ba){if(Hn==null||Hn(Ba),Ba.which===ye.Z.ENTER){var di=so(Ba);Yn==null||Yn(Kr(di)),Di(di)}},ja=function(Ba){un(Nr),sn==null||sn(Ba)},Fa={};Ht.role==="option"&&(Fa["aria-selected"]=da);var ro=_.createElement(zr,(0,ge.Z)({ref:jn,elementRef:ca,role:li===null?"none":li||"menuitem",tabIndex:Jr?null:-1,"data-menu-id":Li&&In?null:In},vi,Ii,Fa,{component:"li","aria-disabled":Jr,style:(0,Q.Z)((0,Q.Z)({},To),tr),className:f()(wn,(er={},(0,ue.Z)(er,"".concat(wn,"-active"),ki),(0,ue.Z)(er,"".concat(wn,"-selected"),da),(0,ue.Z)(er,"".concat(wn,"-disabled"),_i),er),Xt),onClick:ia,onKeyDown:Ji,onFocus:ja}),Ln,_.createElement(Ir,{props:(0,Q.Z)((0,Q.Z)({},Ht),{},{isSelected:da}),icon:ri}));return Nn&&(ro=Nn(ro,Ht,{selected:da})),ro});function Sn(Ht,Wt){var er=Ht.eventKey,tr=he(),Xt=Be(er);return _.useEffect(function(){if(tr)return tr.registerPath(er,Xt),function(){tr.unregisterPath(er,Xt)}},[Xt]),tr?null:_.createElement(cn,(0,ge.Z)({},Ht,{ref:Wt}))}var An=_.forwardRef(Sn),_n=["className","children"],xi=function(Wt,er){var tr=Wt.className,Xt=Wt.children,Nr=(0,G.Z)(Wt,_n),Lr=_.useContext(te),Jr=Lr.prefixCls,Fn=Lr.mode,Ln=Lr.rtl;return _.createElement("ul",(0,ge.Z)({className:f()(Jr,Ln&&"".concat(Jr,"-rtl"),"".concat(Jr,"-sub"),"".concat(Jr,"-").concat(Fn==="inline"?"inline":"vertical"),tr),role:"menu"},Nr,{"data-menu-list":!0,ref:er}),Xt)},Mr=_.forwardRef(xi);Mr.displayName="SubMenuList";var ei=Mr,Bi=x(11592);function zn(Ht,Wt){return(0,Bi.Z)(Ht).map(function(er,tr){if(_.isValidElement(er)){var Xt,Nr,Lr=er.key,Jr=(Xt=(Nr=er.props)===null||Nr===void 0?void 0:Nr.eventKey)!==null&&Xt!==void 0?Xt:Lr,Fn=Jr==null;Fn&&(Jr="tmp_key-".concat([].concat((0,Te.Z)(Wt),[tr]).join("-")));var Ln={key:Jr,eventKey:Jr};return _.cloneElement(er,Ln)}return er})}var Oi=x(35593),yi={adjustX:1,adjustY:1},Ki={topLeft:{points:["bl","tl"],overflow:yi},topRight:{points:["br","tr"],overflow:yi},bottomLeft:{points:["tl","bl"],overflow:yi},bottomRight:{points:["tr","br"],overflow:yi},leftTop:{points:["tr","tl"],overflow:yi},leftBottom:{points:["br","bl"],overflow:yi},rightTop:{points:["tl","tr"],overflow:yi},rightBottom:{points:["bl","br"],overflow:yi}},Ca={topLeft:{points:["bl","tl"],overflow:yi},topRight:{points:["br","tr"],overflow:yi},bottomLeft:{points:["tl","bl"],overflow:yi},bottomRight:{points:["tr","br"],overflow:yi},rightTop:{points:["tr","tl"],overflow:yi},rightBottom:{points:["br","bl"],overflow:yi},leftTop:{points:["tl","tr"],overflow:yi},leftBottom:{points:["bl","br"],overflow:yi}},Zi=null;function ni(Ht,Wt,er){if(Wt)return Wt;if(er)return er[Ht]||er.other}var Si={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Ui(Ht){var Wt=Ht.prefixCls,er=Ht.visible,tr=Ht.children,Xt=Ht.popup,Nr=Ht.popupStyle,Lr=Ht.popupClassName,Jr=Ht.popupOffset,Fn=Ht.disabled,Ln=Ht.mode,li=Ht.onVisibleChange,ti=_.useContext(te),Ei=ti.getPopupContainer,Yn=ti.rtl,Hn=ti.subMenuOpenDelay,sn=ti.subMenuCloseDelay,vi=ti.builtinPlacements,In=ti.triggerSubMenuAction,ii=ti.forceSubMenuRender,bi=ti.rootClassName,Di=ti.motion,Gn=ti.defaultMotions,Li=_.useState(!1),ra=(0,ie.Z)(Li,2),si=ra[0],un=ra[1],rn=Yn?(0,Q.Z)((0,Q.Z)({},Ca),vi):(0,Q.Z)((0,Q.Z)({},Ki),vi),Nn=Si[Ln],wn=ni(Ln,Di,Gn),jn=_.useRef(wn);Ln!=="inline"&&(jn.current=wn);var ui=(0,Q.Z)((0,Q.Z)({},jn.current),{},{leavedClassName:"".concat(Wt,"-hidden"),removeOnLeave:!1,motionAppear:!0}),_i=_.useRef();return _.useEffect(function(){return _i.current=(0,at.Z)(function(){un(er)}),function(){at.Z.cancel(_i.current)}},[er]),_.createElement(Oi.Z,{prefixCls:Wt,popupClassName:f()("".concat(Wt,"-popup"),(0,ue.Z)({},"".concat(Wt,"-rtl"),Yn),Lr,bi),stretch:Ln==="horizontal"?"minWidth":null,getPopupContainer:Ei,builtinPlacements:rn,popupPlacement:Nn,popupVisible:si,popup:Xt,popupStyle:Nr,popupAlign:Jr&&{offset:Jr},action:Fn?[]:[In],mouseEnterDelay:Hn,mouseLeaveDelay:sn,onPopupVisibleChange:li,forceRender:ii,popupMotion:ui,fresh:!0},tr)}var me=x(77900);function Ue(Ht){var Wt=Ht.id,er=Ht.open,tr=Ht.keyPath,Xt=Ht.children,Nr="inline",Lr=_.useContext(te),Jr=Lr.prefixCls,Fn=Lr.forceSubMenuRender,Ln=Lr.motion,li=Lr.defaultMotions,ti=Lr.mode,Ei=_.useRef(!1);Ei.current=ti===Nr;var Yn=_.useState(!Ei.current),Hn=(0,ie.Z)(Yn,2),sn=Hn[0],vi=Hn[1],In=Ei.current?er:!1;_.useEffect(function(){Ei.current&&vi(!1)},[ti]);var ii=(0,Q.Z)({},ni(Nr,Ln,li));tr.length>1&&(ii.motionAppear=!1);var bi=ii.onVisibleChanged;return ii.onVisibleChanged=function(Di){return!Ei.current&&!Di&&vi(!0),bi==null?void 0:bi(Di)},sn?null:_.createElement(W,{mode:Nr,locked:!Ei.current},_.createElement(me.default,(0,ge.Z)({visible:In},ii,{forceRender:Fn,removeOnLeave:!1,leavedClassName:"".concat(Jr,"-hidden")}),function(Di){var Gn=Di.className,Li=Di.style;return _.createElement(ei,{id:Wt,className:Gn,style:Li},Xt)}))}var Me=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],st=["active"],Zt=function(Wt){var er,tr=Wt.style,Xt=Wt.className,Nr=Wt.title,Lr=Wt.eventKey,Jr=Wt.warnKey,Fn=Wt.disabled,Ln=Wt.internalPopupClose,li=Wt.children,ti=Wt.itemIcon,Ei=Wt.expandIcon,Yn=Wt.popupClassName,Hn=Wt.popupOffset,sn=Wt.popupStyle,vi=Wt.onClick,In=Wt.onMouseEnter,ii=Wt.onMouseLeave,bi=Wt.onTitleClick,Di=Wt.onTitleMouseEnter,Gn=Wt.onTitleMouseLeave,Li=(0,G.Z)(Wt,Me),ra=Y(Lr),si=_.useContext(te),un=si.prefixCls,rn=si.mode,Nn=si.openKeys,wn=si.disabled,jn=si.overflowDisabled,ui=si.activeKey,_i=si.selectedKeys,ca=si.itemIcon,Yi=si.expandIcon,so=si.onItemClick,ri=si.onOpenChange,On=si.onActive,ki=_.useContext(ce),Ii=ki._internalRenderSubMenuItem,da=_.useContext(je),To=da.isSubPathKey,ia=Be(),Ji="".concat(un,"-submenu"),ja=wn||Fn,Fa=_.useRef(),ro=_.useRef(),wo=ti!=null?ti:ca,Ba=Ei!=null?Ei:Yi,di=Nn.includes(Lr),Aa=!jn&&di,No=To(_i,Lr),ho=Ut(Lr,ja,Di,Gn),Ja=ho.active,Ni=(0,G.Z)(ho,st),Oo=_.useState(!1),po=(0,ie.Z)(Oo,2),el=po[0],Wo=po[1],Rs=function(Eo){ja||Wo(Eo)},Go=function(Eo){Rs(!0),In==null||In({key:Lr,domEvent:Eo})},xl=function(Eo){Rs(!1),ii==null||ii({key:Lr,domEvent:Eo})},za=_.useMemo(function(){return Ja||(rn!=="inline"?el||To([ui],Lr):!1)},[rn,Ja,ui,el,Lr,To]),Qa=ar(ia.length),Ea=function(Eo){ja||(bi==null||bi({key:Lr,domEvent:Eo}),rn==="inline"&&ri(Lr,!di))},Qs=we(function(Fo){vi==null||vi(Kr(Fo)),so(Fo)}),wi=function(Eo){rn!=="inline"&&ri(Lr,Eo)},Wi=function(){On(Lr)},Ti=ra&&"".concat(ra,"-popup"),Gi=_.createElement("div",(0,ge.Z)({role:"menuitem",style:Qa,className:"".concat(Ji,"-title"),tabIndex:ja?null:-1,ref:Fa,title:typeof Nr=="string"?Nr:null,"data-menu-id":jn&&ra?null:ra,"aria-expanded":Aa,"aria-haspopup":!0,"aria-controls":Ti,"aria-disabled":ja,onClick:Ea,onFocus:Wi},Ni),Nr,_.createElement(Ir,{icon:rn!=="horizontal"?Ba:void 0,props:(0,Q.Z)((0,Q.Z)({},Wt),{},{isOpen:Aa,isSubMenu:!0})},_.createElement("i",{className:"".concat(Ji,"-arrow")}))),ua=_.useRef(rn);if(rn!=="inline"&&ia.length>1?ua.current="vertical":ua.current=rn,!jn){var Ia=ua.current;Gi=_.createElement(Ui,{mode:Ia,prefixCls:Ji,visible:!Ln&&Aa&&rn!=="inline",popupClassName:Yn,popupOffset:Hn,popupStyle:sn,popup:_.createElement(W,{mode:Ia==="horizontal"?"vertical":Ia},_.createElement(ei,{id:Ti,ref:ro},li)),disabled:ja,onVisibleChange:wi},Gi)}var Xo=_.createElement(E.Z.Item,(0,ge.Z)({role:"none"},Li,{component:"li",style:tr,className:f()(Ji,"".concat(Ji,"-").concat(rn),Xt,(er={},(0,ue.Z)(er,"".concat(Ji,"-open"),Aa),(0,ue.Z)(er,"".concat(Ji,"-active"),za),(0,ue.Z)(er,"".concat(Ji,"-selected"),No),(0,ue.Z)(er,"".concat(Ji,"-disabled"),ja),er)),onMouseEnter:Go,onMouseLeave:xl}),Gi,!jn&&_.createElement(Ue,{id:Ti,open:Aa,keyPath:ia},li));return Ii&&(Xo=Ii(Xo,Wt,{selected:No,active:za,open:Aa,disabled:ja})),_.createElement(W,{onItemClick:Qs,mode:rn==="horizontal"?"vertical":rn,itemIcon:wo,expandIcon:Ba},Xo)};function Kt(Ht){var Wt=Ht.eventKey,er=Ht.children,tr=Be(Wt),Xt=zn(er,tr),Nr=he();_.useEffect(function(){if(Nr)return Nr.registerPath(Wt,tr),function(){Nr.unregisterPath(Wt,tr)}},[tr]);var Lr;return Nr?Lr=Xt:Lr=_.createElement(Zt,Ht,Xt),_.createElement(Ne.Provider,{value:tr},Lr)}var Br=x(39559),hr=["className","title","eventKey","children"],Ur=["children"],Wr=function(Wt){var er=Wt.className,tr=Wt.title,Xt=Wt.eventKey,Nr=Wt.children,Lr=(0,G.Z)(Wt,hr),Jr=_.useContext(te),Fn=Jr.prefixCls,Ln="".concat(Fn,"-item-group");return _.createElement("li",(0,ge.Z)({role:"presentation"},Lr,{onClick:function(ti){return ti.stopPropagation()},className:f()(Ln,er)}),_.createElement("div",{role:"presentation",className:"".concat(Ln,"-title"),title:typeof tr=="string"?tr:void 0},tr),_.createElement("ul",{role:"group",className:"".concat(Ln,"-list")},Nr))};function en(Ht){var Wt=Ht.children,er=(0,G.Z)(Ht,Ur),tr=Be(er.eventKey),Xt=zn(Wt,tr),Nr=he();return Nr?Xt:_.createElement(Wr,(0,vt.Z)(er,["warnKey"]),Xt)}function Vr(Ht){var Wt=Ht.className,er=Ht.style,tr=_.useContext(te),Xt=tr.prefixCls,Nr=he();return Nr?null:_.createElement("li",{role:"separator",className:f()("".concat(Xt,"-item-divider"),Wt),style:er})}var Hr=["label","children","key","type"];function qr(Ht){return(Ht||[]).map(function(Wt,er){if(Wt&&(0,Br.Z)(Wt)==="object"){var tr=Wt,Xt=tr.label,Nr=tr.children,Lr=tr.key,Jr=tr.type,Fn=(0,G.Z)(tr,Hr),Ln=Lr!=null?Lr:"tmp-".concat(er);return Nr||Jr==="group"?Jr==="group"?_.createElement(en,(0,ge.Z)({key:Ln},Fn,{title:Xt}),qr(Nr)):_.createElement(Kt,(0,ge.Z)({key:Ln},Fn,{title:Xt}),qr(Nr)):Jr==="divider"?_.createElement(Vr,(0,ge.Z)({key:Ln},Fn)):_.createElement(An,(0,ge.Z)({key:Ln},Fn),Xt)}return null}).filter(function(Wt){return Wt})}function gn(Ht,Wt,er){var tr=Ht;return Wt&&(tr=qr(Wt)),zn(tr,er)}var tn=["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"],Mn=[],Rn=_.forwardRef(function(Ht,Wt){var er,tr,Xt=Ht,Nr=Xt.prefixCls,Lr=Nr===void 0?"rc-menu":Nr,Jr=Xt.rootClassName,Fn=Xt.style,Ln=Xt.className,li=Xt.tabIndex,ti=li===void 0?0:li,Ei=Xt.items,Yn=Xt.children,Hn=Xt.direction,sn=Xt.id,vi=Xt.mode,In=vi===void 0?"vertical":vi,ii=Xt.inlineCollapsed,bi=Xt.disabled,Di=Xt.disabledOverflow,Gn=Xt.subMenuOpenDelay,Li=Gn===void 0?.1:Gn,ra=Xt.subMenuCloseDelay,si=ra===void 0?.1:ra,un=Xt.forceSubMenuRender,rn=Xt.defaultOpenKeys,Nn=Xt.openKeys,wn=Xt.activeKey,jn=Xt.defaultActiveFirst,ui=Xt.selectable,_i=ui===void 0?!0:ui,ca=Xt.multiple,Yi=ca===void 0?!1:ca,so=Xt.defaultSelectedKeys,ri=Xt.selectedKeys,On=Xt.onSelect,ki=Xt.onDeselect,Ii=Xt.inlineIndent,da=Ii===void 0?24:Ii,To=Xt.motion,ia=Xt.defaultMotions,Ji=Xt.triggerSubMenuAction,ja=Ji===void 0?"hover":Ji,Fa=Xt.builtinPlacements,ro=Xt.itemIcon,wo=Xt.expandIcon,Ba=Xt.overflowedIndicator,di=Ba===void 0?"...":Ba,Aa=Xt.overflowedIndicatorPopupClassName,No=Xt.getPopupContainer,ho=Xt.onClick,Ja=Xt.onOpenChange,Ni=Xt.onKeyDown,Oo=Xt.openAnimation,po=Xt.openTransitionName,el=Xt._internalRenderMenuItem,Wo=Xt._internalRenderSubMenuItem,Rs=(0,G.Z)(Xt,tn),Go=_.useMemo(function(){return gn(Yn,Ei,Mn)},[Yn,Ei]),xl=_.useState(!1),za=(0,ie.Z)(xl,2),Qa=za[0],Ea=za[1],Qs=_.useRef(),wi=pe(sn),Wi=Hn==="rtl",Ti=(0,h.Z)(rn,{value:Nn,postState:function(go){return go||Mn}}),Gi=(0,ie.Z)(Ti,2),ua=Gi[0],Ia=Gi[1],Xo=function(go){var vo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Yo(){Ia(go),Ja==null||Ja(go)}vo?(0,O.flushSync)(Yo):Yo()},Fo=_.useState(ua),Eo=(0,ie.Z)(Fo,2),$a=Eo[0],Sa=Eo[1],fa=_.useRef(!1),Da=_.useMemo(function(){return(In==="inline"||In==="vertical")&&ii?["vertical",ii]:[In,!1]},[In,ii]),Ya=(0,ie.Z)(Da,2),lo=Ya[0],Oa=Ya[1],Ma=lo==="inline",Io=_.useState(lo),kl=(0,ie.Z)(Io,2),ds=kl[0],ll=kl[1],Uo=_.useState(Oa),Ms=(0,ie.Z)(Uo,2),Mo=Ms[0],Qn=Ms[1];_.useEffect(function(){ll(lo),Qn(Oa),fa.current&&(Ma?Ia($a):Xo(Mn))},[lo,Oa]);var Dl=_.useState(0),Ro=(0,ie.Z)(Dl,2),Vl=Ro[0],Ks=Ro[1],bs=Vl>=Go.length-1||ds!=="horizontal"||Di;_.useEffect(function(){Ma&&Sa(ua)},[ua]),_.useEffect(function(){return fa.current=!0,function(){fa.current=!1}},[]);var La=xe(),Qo=La.registerPath,Wl=La.unregisterPath,ac=La.refreshOverflowKeys,cl=La.isSubPathKey,ha=La.getKeyPath,aa=La.getKeys,mo=La.getSubPathKeys,Za=_.useMemo(function(){return{registerPath:Qo,unregisterPath:Wl}},[Qo,Wl]),no=_.useMemo(function(){return{isSubPathKey:cl}},[cl]);_.useEffect(function(){ac(bs?Mn:Go.slice(Vl+1).map(function(Pa){return Pa.key}))},[Vl,bs]);var Ko=(0,h.Z)(wn||jn&&((er=Go[0])===null||er===void 0?void 0:er.key),{value:wn}),qa=(0,ie.Z)(Ko,2),Jo=qa[0],Ls=qa[1],Al=we(function(Pa){Ls(Pa)}),Vs=we(function(){Ls(void 0)});(0,_.useImperativeHandle)(Wt,function(){return{list:Qs.current,focus:function(go){var vo,Yo=aa(),ks=d(Yo,wi),Mc=ks.elements,Cl=ks.key2element,jc=ks.element2key,bA=k(Qs.current,Mc),wA=Jo!=null?Jo:bA[0]?jc.get(bA[0]):(vo=Go.find(function(Du){return!Du.props.disabled}))===null||vo===void 0?void 0:vo.key,hc=Cl.get(wA);if(wA&&hc){var pc;hc==null||(pc=hc.focus)===null||pc===void 0||pc.call(hc,go)}}}});var tl=(0,h.Z)(so||[],{value:ri,postState:function(go){return Array.isArray(go)?go:go==null?Mn:[go]}}),Hc=(0,ie.Z)(tl,2),Pl=Hc[0],Ws=Hc[1],tA=function(go){if(_i){var vo=go.key,Yo=Pl.includes(vo),ks;Yi?Yo?ks=Pl.filter(function(Cl){return Cl!==vo}):ks=[].concat((0,Te.Z)(Pl),[vo]):ks=[vo],Ws(ks);var Mc=(0,Q.Z)((0,Q.Z)({},go),{},{selectedKeys:ks});Yo?ki==null||ki(Mc):On==null||On(Mc)}!Yi&&ua.length&&ds!=="inline"&&Xo(Mn)},rA=we(function(Pa){ho==null||ho(Kr(Pa)),tA(Pa)}),fc=we(function(Pa,go){var vo=ua.filter(function(ks){return ks!==Pa});if(go)vo.push(Pa);else if(ds!=="inline"){var Yo=mo(Pa);vo=vo.filter(function(ks){return!Yo.has(ks)})}(0,Z.Z)(ua,vo,!0)||Xo(vo,!0)}),yA=function(go,vo){var Yo=vo!=null?vo:!ua.includes(go);fc(go,Yo)},Nl=w(ds,Jo,Wi,wi,Qs,aa,ha,Ls,yA,Ni);_.useEffect(function(){Ea(!0)},[]);var Gs=_.useMemo(function(){return{_internalRenderMenuItem:el,_internalRenderSubMenuItem:Wo}},[el,Wo]),rl=ds!=="horizontal"||Di?Go:Go.map(function(Pa,go){return _.createElement(W,{key:Pa.key,overflowDisabled:go>Vl},Pa)}),nl=_.createElement(E.Z,(0,ge.Z)({id:sn,ref:Qs,prefixCls:"".concat(Lr,"-overflow"),component:"ul",itemComponent:An,className:f()(Lr,"".concat(Lr,"-root"),"".concat(Lr,"-").concat(ds),Ln,(tr={},(0,ue.Z)(tr,"".concat(Lr,"-inline-collapsed"),Mo),(0,ue.Z)(tr,"".concat(Lr,"-rtl"),Wi),tr),Jr),dir:Hn,style:Fn,role:"menu",tabIndex:ti,data:rl,renderRawItem:function(go){return go},renderRawRest:function(go){var vo=go.length,Yo=vo?Go.slice(-vo):null;return _.createElement(Kt,{eventKey:Ge,title:di,disabled:bs,internalPopupClose:vo===0,popupClassName:Aa},Yo)},maxCount:ds!=="horizontal"||Di?E.Z.INVALIDATE:E.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(go){Ks(go)},onKeyDown:Nl},Rs));return _.createElement(ce.Provider,{value:Gs},_.createElement(R.Provider,{value:wi},_.createElement(W,{prefixCls:Lr,rootClassName:Jr,mode:ds,openKeys:ua,rtl:Wi,disabled:bi,motion:Qa?To:null,defaultMotions:Qa?ia:null,activeKey:Jo,onActive:Al,onInactive:Vs,selectedKeys:Pl,inlineIndent:da,subMenuOpenDelay:Li,subMenuCloseDelay:si,forceSubMenuRender:un,builtinPlacements:Fa,triggerSubMenuAction:ja,getPopupContainer:No,itemIcon:ro,expandIcon:wo,onItemClick:rA,onOpenChange:fc},_.createElement(je.Provider,{value:no},nl),_.createElement("div",{style:{display:"none"},"aria-hidden":!0},_.createElement(le.Provider,{value:Za},Go)))))}),pi=Rn,Pn=pi;Pn.Item=An,Pn.SubMenu=Kt,Pn.ItemGroup=en,Pn.Divider=Vr;var ln=Pn},11780:function(xn,qt,x){"use strict";x.d(qt,{Z:function(){return Re}});var ge=x(92413),ue=x(33708),Q=x(33606),Te=x(37061),ie=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,Pe){var fe=ve.prefixCls,ye=ve.invalidate,at=ve.item,tt=ve.renderItem,rt=ve.responsive,At=ve.responsiveDisabled,Nt=ve.registerSize,jt=ve.itemKey,Qt=ve.className,ur=ve.style,or=ve.children,xr=ve.display,fr=ve.order,L=ve.component,nt=L===void 0?"div":L,k=(0,Te.Z)(ve,h),p=rt&&!xr;function d(ne){Nt(jt,ne)}ie.useEffect(function(){return function(){d(null)}},[]);var w=tt&&at!==Z?tt(at,{index:fr}):or,q;ye||(q={opacity:p?0:1,height:p?0:Z,overflowY:p?"hidden":Z,order:rt?fr:Z,pointerEvents:p?"none":Z,position:p?"absolute":Z});var Se={};p&&(Se["aria-hidden"]=!0);var H=ie.createElement(nt,(0,ge.Z)({className:B()(!ye&&fe,Qt),style:(0,ue.Z)((0,ue.Z)({},q),ur)},Se,k,{ref:Pe}),w);return rt&&(H=ie.createElement(f.Z,{onResize:function(Ge){var xe=Ge.offsetWidth;d(xe)},disabled:At},H)),H}var _=ie.forwardRef(S);_.displayName="Item";var O=_,R=x(6089),I=x(4676),Y=x(16089);function K(ve){if(typeof MessageChannel=="undefined")(0,Y.Z)(ve);else{var Pe=new MessageChannel;Pe.port1.onmessage=function(){return ve()},Pe.port2.postMessage(void 0)}}function se(){var ve=ie.useRef(null),Pe=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 Pe}function te(ve,Pe){var fe=ie.useState(Pe),ye=(0,Q.Z)(fe,2),at=ye[0],tt=ye[1],rt=(0,R.Z)(function(At){ve(function(){tt(At)})});return[at,rt]}var X=ie.createContext(null),W=["component"],z=["className"],le=["className"],he=function(Pe,fe){var ye=ie.useContext(X);if(!ye){var at=Pe.component,tt=at===void 0?"div":at,rt=(0,Te.Z)(Pe,W);return ie.createElement(tt,(0,ge.Z)({},rt,{ref:fe}))}var At=ye.className,Nt=(0,Te.Z)(ye,z),jt=Pe.className,Qt=(0,Te.Z)(Pe,le);return ie.createElement(X.Provider,{value:null},ie.createElement(O,(0,ge.Z)({ref:fe,className:B()(At,jt)},Nt,Qt)))},Ne=ie.forwardRef(he);Ne.displayName="RawItem";var Be=Ne,je=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ee="responsive",ce="invalidate";function D(ve){return"+ ".concat(ve.length," ...")}function ot(ve,Pe){var fe=ve.prefixCls,ye=fe===void 0?"rc-overflow":fe,at=ve.data,tt=at===void 0?[]:at,rt=ve.renderItem,At=ve.renderRawItem,Nt=ve.itemKey,jt=ve.itemWidth,Qt=jt===void 0?10:jt,ur=ve.ssr,or=ve.style,xr=ve.className,fr=ve.maxCount,L=ve.renderRest,nt=ve.renderRawRest,k=ve.suffix,p=ve.component,d=p===void 0?"div":p,w=ve.itemComponent,q=ve.onVisibleChange,Se=(0,Te.Z)(ve,je),H=ur==="full",ne=se(),Ge=te(ne,null),xe=(0,Q.Z)(Ge,2),we=xe[0],Ye=xe[1],_t=we||0,pe=te(ne,new Map),ut=(0,Q.Z)(pe,2),ct=ut[0],Ie=ut[1],ke=te(ne,0),vt=(0,Q.Z)(ke,2),zt=vt[0],Ut=vt[1],ar=te(ne,0),Ir=(0,Q.Z)(ar,2),Pr=Ir[0],Kr=Ir[1],Tr=te(ne,0),cr=(0,Q.Z)(Tr,2),Ar=cr[0],zr=cr[1],cn=(0,ie.useState)(null),Sn=(0,Q.Z)(cn,2),An=Sn[0],_n=Sn[1],xi=(0,ie.useState)(null),Mr=(0,Q.Z)(xi,2),ei=Mr[0],Bi=Mr[1],zn=ie.useMemo(function(){return ei===null&&H?Number.MAX_SAFE_INTEGER:ei||0},[ei,we]),Oi=(0,ie.useState)(!1),yi=(0,Q.Z)(Oi,2),Ki=yi[0],Ca=yi[1],Zi="".concat(ye,"-item"),ni=Math.max(zt,Pr),Si=fr===ee,Ui=tt.length&&Si,me=fr===ce,Ue=Ui||typeof fr=="number"&&tt.length>fr,Me=(0,ie.useMemo)(function(){var ln=tt;return Ui?we===null&&H?ln=tt:ln=tt.slice(0,Math.min(tt.length,_t/Qt)):typeof fr=="number"&&(ln=tt.slice(0,fr)),ln},[tt,Qt,we,fr,Ui]),st=(0,ie.useMemo)(function(){return Ui?tt.slice(zn+1):tt.slice(Me.length)},[tt,Me,Ui,zn]),Zt=(0,ie.useCallback)(function(ln,Ht){var Wt;return typeof Nt=="function"?Nt(ln):(Wt=Nt&&(ln==null?void 0:ln[Nt]))!==null&&Wt!==void 0?Wt:Ht},[Nt]),Kt=(0,ie.useCallback)(rt||function(ln){return ln},[rt]);function Br(ln,Ht,Wt){ei===ln&&(Ht===void 0||Ht===An)||(Bi(ln),Wt||(Ca(ln<tt.length-1),q==null||q(ln)),Ht!==void 0&&_n(Ht))}function hr(ln,Ht){Ye(Ht.clientWidth)}function Ur(ln,Ht){Ie(function(Wt){var er=new Map(Wt);return Ht===null?er.delete(ln):er.set(ln,Ht),er})}function Wr(ln,Ht){Kr(Ht),Ut(Pr)}function en(ln,Ht){zr(Ht)}function Vr(ln){return ct.get(Zt(Me[ln],ln))}(0,E.Z)(function(){if(_t&&typeof ni=="number"&&Me){var ln=Ar,Ht=Me.length,Wt=Ht-1;if(!Ht){Br(0,null);return}for(var er=0;er<Ht;er+=1){var tr=Vr(er);if(H&&(tr=tr||0),tr===void 0){Br(er-1,void 0,!0);break}if(ln+=tr,Wt===0&&ln<=_t||er===Wt-1&&ln+Vr(Wt)<=_t){Br(Wt,null);break}else if(ln+ni>_t){Br(er-1,ln-tr-Ar+Pr);break}}k&&Vr(0)+Ar>_t&&_n(null)}},[_t,ct,Pr,Ar,Zt,Me]);var Hr=Ki&&!!st.length,qr={};An!==null&&Ui&&(qr={position:"absolute",left:An,top:0});var gn={prefixCls:Zi,responsive:Ui,component:w,invalidate:me},tn=At?function(ln,Ht){var Wt=Zt(ln,Ht);return ie.createElement(X.Provider,{key:Wt,value:(0,ue.Z)((0,ue.Z)({},gn),{},{order:Ht,item:ln,itemKey:Wt,registerSize:Ur,display:Ht<=zn})},At(ln,Ht))}:function(ln,Ht){var Wt=Zt(ln,Ht);return ie.createElement(O,(0,ge.Z)({},gn,{order:Ht,key:Wt,item:ln,renderItem:Kt,itemKey:Wt,registerSize:Ur,display:Ht<=zn}))},Mn={order:Hr?zn:Number.MAX_SAFE_INTEGER,className:"".concat(Zi,"-rest"),registerSize:Wr,display:Hr},Rn=L||D,pi=nt?ie.createElement(X.Provider,{value:(0,ue.Z)((0,ue.Z)({},gn),Mn)},nt(st)):ie.createElement(O,(0,ge.Z)({},gn,Mn),typeof Rn=="function"?Rn(st):Rn),Pn=ie.createElement(d,(0,ge.Z)({className:B()(!me&&ye,xr),style:or,ref:Pe},Se),Me.map(tn),Ue?pi:null,k&&ie.createElement(O,(0,ge.Z)({},gn,{responsive:Si,responsiveDisabled:!Ui,order:zn,className:"".concat(Zi,"-suffix"),registerSize:en,display:!0,style:qr}),k));return Si?ie.createElement(f.Z,{onResize:hr,disabled:!Ui},Pn):Pn}var Le=ie.forwardRef(ot);Le.displayName="Overflow",Le.Item=Be,Le.RESPONSIVE=ee,Le.INVALIDATE=ce;var Ce=Le,Re=Ce},17115:function(xn,qt,x){"use strict";x.d(qt,{ZP:function(){return B}});var ge=x(33606),ue=x(59301),Q=x(47273),Te=0,ie=(0,Q.Z)();function G(){var f;return ie?(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,qt,x){"use strict";x.d(qt,{Ac:function(){return Ye},Xo:function(){return Kr},Wx:function(){return cr},ZP:function(){return Ue},lk:function(){return X}});var ge=x(92413),ue=x(26407),Q=x(400),Te=x(33708),ie=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),O=x(49658),R=x(10228),I=x(8654),Y=function(st){var Zt=st.className,Kt=st.customizeIcon,Br=st.customizeIconProps,hr=st.onMouseDown,Ur=st.onClick,Wr=st.children,en;return typeof Kt=="function"?en=Kt(Br):en=Kt,h.createElement("span",{className:Zt,onMouseDown:function(Hr){Hr.preventDefault(),hr&&hr(Hr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Ur,"aria-hidden":!0},en!==void 0?en:h.createElement("span",{className:S()(Zt.split(/\s+/).map(function(Vr){return"".concat(Vr,"-icon")}))},Wr))},K=Y;function se(Me,st,Zt,Kt,Br){var hr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Ur=arguments.length>6?arguments[6]:void 0,Wr=arguments.length>7?arguments[7]:void 0,en=h.useMemo(function(){if((0,B.Z)(Kt)==="object")return Kt.clearIcon;if(Br)return Br},[Kt,Br]),Vr=h.useMemo(function(){return!!(!hr&&Kt&&(Zt.length||Ur)&&!(Wr==="combobox"&&Ur===""))},[Kt,hr,Zt.length,Ur,Wr]);return{allowClear:Vr,clearIcon:h.createElement(K,{className:"".concat(Me,"-clear"),onMouseDown:st,customizeIcon:en},"\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,st=h.useState(!1),Zt=(0,ie.Z)(st,2),Kt=Zt[0],Br=Zt[1],hr=h.useRef(null),Ur=function(){window.clearTimeout(hr.current)};h.useEffect(function(){return Ur},[]);var Wr=function(Vr,Hr){Ur(),hr.current=window.setTimeout(function(){Br(Vr),Hr&&Hr()},Me)};return[Kt,Wr,Ur]}function z(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,st=h.useRef(null),Zt=h.useRef(null);h.useEffect(function(){return function(){window.clearTimeout(Zt.current)}},[]);function Kt(Br){(Br||st.current===null)&&(st.current=Br),window.clearTimeout(Zt.current),Zt.current=window.setTimeout(function(){st.current=null},Me)}return[function(){return st.current},Kt]}function le(Me,st,Zt,Kt){var Br=h.useRef(null);Br.current={open:st,triggerOpen:Zt,customizedTrigger:Kt},h.useEffect(function(){function hr(Ur){var Wr;if(!((Wr=Br.current)!==null&&Wr!==void 0&&Wr.customizedTrigger)){var en=Ur.target;en.shadowRoot&&Ur.composed&&(en=Ur.composedPath()[0]||en),Br.current.open&&Me().filter(function(Vr){return Vr}).every(function(Vr){return!Vr.contains(en)&&Vr!==en})&&Br.current.triggerOpen(!1)}}return window.addEventListener("mousedown",hr),function(){return window.removeEventListener("mousedown",hr)}},[])}var he=x(26112),Ne=x(11780),Be=function(st,Zt){var Kt,Br,hr=st.prefixCls,Ur=st.id,Wr=st.inputElement,en=st.disabled,Vr=st.tabIndex,Hr=st.autoFocus,qr=st.autoComplete,gn=st.editable,tn=st.activeDescendantId,Mn=st.value,Rn=st.maxLength,pi=st.onKeyDown,Pn=st.onMouseDown,ln=st.onChange,Ht=st.onPaste,Wt=st.onCompositionStart,er=st.onCompositionEnd,tr=st.open,Xt=st.attrs,Nr=Wr||h.createElement("input",null),Lr=Nr,Jr=Lr.ref,Fn=Lr.props,Ln=Fn.onKeyDown,li=Fn.onChange,ti=Fn.onMouseDown,Ei=Fn.onCompositionStart,Yn=Fn.onCompositionEnd,Hn=Fn.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"},Fn),{},{id:Ur,ref:(0,I.sQ)(Zt,Jr),disabled:en,tabIndex:Vr,autoComplete:qr||"off",autoFocus:Hr,className:S()("".concat(hr,"-selection-search-input"),(Kt=Nr)===null||Kt===void 0||(Br=Kt.props)===null||Br===void 0?void 0:Br.className),role:"combobox","aria-label":"Search","aria-expanded":tr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Ur,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ur,"_list"),"aria-activedescendant":tr?tn:void 0},Xt),{},{value:gn?Mn:"",maxLength:Rn,readOnly:!gn,unselectable:gn?null:"on",style:(0,Te.Z)((0,Te.Z)({},Hn),{},{opacity:gn?null:0}),onKeyDown:function(vi){pi(vi),Ln&&Ln(vi)},onMouseDown:function(vi){Pn(vi),ti&&ti(vi)},onChange:function(vi){ln(vi),li&&li(vi)},onCompositionStart:function(vi){Wt(vi),Ei&&Ei(vi)},onCompositionEnd:function(vi){er(vi),Yn&&Yn(vi)},onPaste:Ht})),Nr},je=h.forwardRef(Be);je.displayName="Input";var ee=je;function ce(Me){return Array.isArray(Me)?Me:Me!==void 0?[Me]:[]}var D=typeof window!="undefined"&&window.document&&window.document.documentElement,ot=D;function Le(Me){return Me!=null}function Ce(Me){return!Me&&Me!==0}function Re(Me){return["string","number"].includes((0,B.Z)(Me))}function ve(Me){var st=void 0;return Me&&(Re(Me.title)?st=Me.title.toString():Re(Me.label)&&(st=Me.label.toString())),st}function Pe(Me,st){ot?h.useLayoutEffect(Me,st):h.useEffect(Me,st)}function fe(Me){var st;return(st=Me.key)!==null&&st!==void 0?st:Me.value}var ye=function(st){st.preventDefault(),st.stopPropagation()},at=function(st){var Zt=st.id,Kt=st.prefixCls,Br=st.values,hr=st.open,Ur=st.searchValue,Wr=st.autoClearSearchValue,en=st.inputRef,Vr=st.placeholder,Hr=st.disabled,qr=st.mode,gn=st.showSearch,tn=st.autoFocus,Mn=st.autoComplete,Rn=st.activeDescendantId,pi=st.tabIndex,Pn=st.removeIcon,ln=st.maxTagCount,Ht=st.maxTagTextLength,Wt=st.maxTagPlaceholder,er=Wt===void 0?function(ui){return"+ ".concat(ui.length," ...")}:Wt,tr=st.tagRender,Xt=st.onToggleOpen,Nr=st.onRemove,Lr=st.onInputChange,Jr=st.onInputPaste,Fn=st.onInputKeyDown,Ln=st.onInputMouseDown,li=st.onInputCompositionStart,ti=st.onInputCompositionEnd,Ei=h.useRef(null),Yn=(0,h.useState)(0),Hn=(0,ie.Z)(Yn,2),sn=Hn[0],vi=Hn[1],In=(0,h.useState)(!1),ii=(0,ie.Z)(In,2),bi=ii[0],Di=ii[1],Gn="".concat(Kt,"-selection"),Li=hr||qr==="multiple"&&Wr===!1||qr==="tags"?Ur:"",ra=qr==="tags"||qr==="multiple"&&Wr===!1||gn&&(hr||bi);Pe(function(){vi(Ei.current.scrollWidth)},[Li]);function si(ui,_i,ca,Yi,so){return h.createElement("span",{className:S()("".concat(Gn,"-item"),(0,Q.Z)({},"".concat(Gn,"-item-disabled"),ca)),title:ve(ui)},h.createElement("span",{className:"".concat(Gn,"-item-content")},_i),Yi&&h.createElement(K,{className:"".concat(Gn,"-item-remove"),onMouseDown:ye,onClick:so,customizeIcon:Pn},"\xD7"))}function un(ui,_i,ca,Yi,so){var ri=function(ki){ye(ki),Xt(!hr)};return h.createElement("span",{onMouseDown:ri},tr({label:_i,value:ui,disabled:ca,closable:Yi,onClose:so}))}function rn(ui){var _i=ui.disabled,ca=ui.label,Yi=ui.value,so=!Hr&&!_i,ri=ca;if(typeof Ht=="number"&&(typeof ca=="string"||typeof ca=="number")){var On=String(ri);On.length>Ht&&(ri="".concat(On.slice(0,Ht),"..."))}var ki=function(da){da&&da.stopPropagation(),Nr(ui)};return typeof tr=="function"?un(Yi,ri,_i,so,ki):si(ui,ri,_i,so,ki)}function Nn(ui){var _i=typeof er=="function"?er(ui):er;return si({title:_i},_i,!1)}var wn=h.createElement("div",{className:"".concat(Gn,"-search"),style:{width:sn},onFocus:function(){Di(!0)},onBlur:function(){Di(!1)}},h.createElement(ee,{ref:en,open:hr,prefixCls:Kt,id:Zt,inputElement:null,disabled:Hr,autoFocus:tn,autoComplete:Mn,editable:ra,activeDescendantId:Rn,value:Li,onKeyDown:Fn,onMouseDown:Ln,onChange:Lr,onPaste:Jr,onCompositionStart:li,onCompositionEnd:ti,tabIndex:pi,attrs:(0,he.Z)(st,!0)}),h.createElement("span",{ref:Ei,className:"".concat(Gn,"-search-mirror"),"aria-hidden":!0},Li,"\xA0")),jn=h.createElement(Ne.Z,{prefixCls:"".concat(Gn,"-overflow"),data:Br,renderItem:rn,renderRest:Nn,suffix:wn,itemKey:fe,maxCount:ln});return h.createElement(h.Fragment,null,jn,!Br.length&&!Li&&h.createElement("span",{className:"".concat(Gn,"-placeholder")},Vr))},tt=at,rt=function(st){var Zt=st.inputElement,Kt=st.prefixCls,Br=st.id,hr=st.inputRef,Ur=st.disabled,Wr=st.autoFocus,en=st.autoComplete,Vr=st.activeDescendantId,Hr=st.mode,qr=st.open,gn=st.values,tn=st.placeholder,Mn=st.tabIndex,Rn=st.showSearch,pi=st.searchValue,Pn=st.activeValue,ln=st.maxLength,Ht=st.onInputKeyDown,Wt=st.onInputMouseDown,er=st.onInputChange,tr=st.onInputPaste,Xt=st.onInputCompositionStart,Nr=st.onInputCompositionEnd,Lr=st.title,Jr=h.useState(!1),Fn=(0,ie.Z)(Jr,2),Ln=Fn[0],li=Fn[1],ti=Hr==="combobox",Ei=ti||Rn,Yn=gn[0],Hn=pi||"";ti&&Pn&&!Ln&&(Hn=Pn),h.useEffect(function(){ti&&li(!1)},[ti,Pn]);var sn=Hr!=="combobox"&&!qr&&!Rn?!1:!!Hn,vi=Lr===void 0?ve(Yn):Lr,In=function(){if(Yn)return null;var bi=sn?{visibility:"hidden"}:void 0;return h.createElement("span",{className:"".concat(Kt,"-selection-placeholder"),style:bi},tn)};return h.createElement(h.Fragment,null,h.createElement("span",{className:"".concat(Kt,"-selection-search")},h.createElement(ee,{ref:hr,prefixCls:Kt,id:Br,open:qr,inputElement:Zt,disabled:Ur,autoFocus:Wr,autoComplete:en,editable:Ei,activeDescendantId:Vr,value:Hn,onKeyDown:Ht,onMouseDown:Wt,onChange:function(bi){li(!0),er(bi)},onPaste:tr,onCompositionStart:Xt,onCompositionEnd:Nr,tabIndex:Mn,attrs:(0,he.Z)(st,!0),maxLength:ti?ln:void 0})),!ti&&Yn?h.createElement("span",{className:"".concat(Kt,"-selection-item"),title:vi,style:sn?{visibility:"hidden"}:void 0},Yn.label):null,In())},At=rt;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 jt=function(st,Zt){var Kt=(0,h.useRef)(null),Br=(0,h.useRef)(!1),hr=st.prefixCls,Ur=st.open,Wr=st.mode,en=st.showSearch,Vr=st.tokenWithEnter,Hr=st.autoClearSearchValue,qr=st.onSearch,gn=st.onSearchSubmit,tn=st.onToggleOpen,Mn=st.onInputKeyDown,Rn=st.domRef;h.useImperativeHandle(Zt,function(){return{focus:function(){Kt.current.focus()},blur:function(){Kt.current.blur()}}});var pi=z(0),Pn=(0,ie.Z)(pi,2),ln=Pn[0],Ht=Pn[1],Wt=function(Hn){var sn=Hn.which;(sn===R.Z.UP||sn===R.Z.DOWN)&&Hn.preventDefault(),Mn&&Mn(Hn),sn===R.Z.ENTER&&Wr==="tags"&&!Br.current&&!Ur&&(gn==null||gn(Hn.target.value)),Nt(sn)&&tn(!0)},er=function(){Ht(!0)},tr=(0,h.useRef)(null),Xt=function(Hn){qr(Hn,!0,Br.current)!==!1&&tn(!0)},Nr=function(){Br.current=!0},Lr=function(Hn){Br.current=!1,Wr!=="combobox"&&Xt(Hn.target.value)},Jr=function(Hn){var sn=Hn.target.value;if(Vr&&tr.current&&/[\r\n]/.test(tr.current)){var vi=tr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");sn=sn.replace(vi,tr.current)}tr.current=null,Xt(sn)},Fn=function(Hn){var sn=Hn.clipboardData,vi=sn.getData("text");tr.current=vi},Ln=function(Hn){var sn=Hn.target;if(sn!==Kt.current){var vi=document.body.style.msTouchAction!==void 0;vi?setTimeout(function(){Kt.current.focus()}):Kt.current.focus()}},li=function(Hn){var sn=ln();Hn.target!==Kt.current&&!sn&&Wr!=="combobox"&&Hn.preventDefault(),(Wr!=="combobox"&&(!en||!sn)||!Ur)&&(Ur&&Hr!==!1&&qr("",!0,!1),tn())},ti={inputRef:Kt,onInputKeyDown:Wt,onInputMouseDown:er,onInputChange:Jr,onInputPaste:Fn,onInputCompositionStart:Nr,onInputCompositionEnd:Lr},Ei=Wr==="multiple"||Wr==="tags"?h.createElement(tt,(0,ge.Z)({},st,ti)):h.createElement(At,(0,ge.Z)({},st,ti));return h.createElement("div",{ref:Rn,className:"".concat(hr,"-selector"),onClick:Ln,onMouseDown:li},Ei)},Qt=h.forwardRef(jt);Qt.displayName="Selector";var ur=Qt,or=x(35593),xr=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],fr=function(st){var Zt=st===!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"}}},L=function(st,Zt){var Kt=st.prefixCls,Br=st.disabled,hr=st.visible,Ur=st.children,Wr=st.popupElement,en=st.animation,Vr=st.transitionName,Hr=st.dropdownStyle,qr=st.dropdownClassName,gn=st.direction,tn=gn===void 0?"ltr":gn,Mn=st.placement,Rn=st.builtinPlacements,pi=st.dropdownMatchSelectWidth,Pn=st.dropdownRender,ln=st.dropdownAlign,Ht=st.getPopupContainer,Wt=st.empty,er=st.getTriggerDOMNode,tr=st.onPopupVisibleChange,Xt=st.onPopupMouseEnter,Nr=(0,G.Z)(st,xr),Lr="".concat(Kt,"-dropdown"),Jr=Wr;Pn&&(Jr=Pn(Wr));var Fn=h.useMemo(function(){return Rn||fr(pi)},[Rn,pi]),Ln=en?"".concat(Lr,"-").concat(en):Vr,li=typeof pi=="number",ti=h.useMemo(function(){return li?null:pi===!1?"minWidth":"width"},[pi,li]),Ei=Hr;li&&(Ei=(0,Te.Z)((0,Te.Z)({},Ei),{},{width:pi}));var Yn=h.useRef(null);return h.useImperativeHandle(Zt,function(){return{getPopupElement:function(){return Yn.current}}}),h.createElement(or.Z,(0,ge.Z)({},Nr,{showAction:tr?["click"]:[],hideAction:tr?["click"]:[],popupPlacement:Mn||(tn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Fn,prefixCls:Lr,popupTransitionName:Ln,popup:h.createElement("div",{ref:Yn,onMouseEnter:Xt},Jr),stretch:ti,popupAlign:ln,popupVisible:hr,getPopupContainer:Ht,popupClassName:S()(qr,(0,Q.Z)({},"".concat(Lr,"-empty"),Wt)),popupStyle:Ei,getTriggerDOMNode:er,onPopupVisibleChange:tr}),Ur)},nt=h.forwardRef(L);nt.displayName="SelectTrigger";var k=nt,p=x(34589);function d(Me,st){var Zt=Me.key,Kt;return"value"in Me&&(Kt=Me.value),Zt!=null?Zt:Kt!==void 0?Kt:"rc-index-key-".concat(st)}function w(Me,st){var Zt=Me||{},Kt=Zt.label,Br=Zt.value,hr=Zt.options,Ur=Zt.groupLabel,Wr=Kt||(st?"children":"label");return{label:Wr,value:Br||"value",options:hr||"options",groupLabel:Ur||Wr}}function q(Me){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Zt=st.fieldNames,Kt=st.childrenAsData,Br=[],hr=w(Zt,!1),Ur=hr.label,Wr=hr.value,en=hr.options,Vr=hr.groupLabel;function Hr(qr,gn){qr.forEach(function(tn){if(gn||!(en in tn)){var Mn=tn[Wr];Br.push({key:d(tn,Br.length),groupOption:gn,data:tn,label:tn[Ur],value:Mn})}else{var Rn=tn[Vr];Rn===void 0&&Kt&&(Rn=tn.label),Br.push({key:d(tn,Br.length),group:!0,data:tn,label:Rn}),Hr(tn[en],!0)}})}return Hr(Me,!1),Br}function Se(Me){var st=(0,Te.Z)({},Me);return"props"in st||Object.defineProperty(st,"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`."),st}}),st}function H(Me,st){if(!st||!st.length)return null;var Zt=!1;function Kt(hr,Ur){var Wr=(0,p.Z)(Ur),en=Wr[0],Vr=Wr.slice(1);if(!en)return[hr];var Hr=hr.split(en);return Zt=Zt||Hr.length>1,Hr.reduce(function(qr,gn){return[].concat((0,ue.Z)(qr),(0,ue.Z)(Kt(gn,Vr)))},[]).filter(function(qr){return qr})}var Br=Kt(Me,st);return Zt?Br:null}var ne=["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 xe(Me){return Me==="tags"||Me==="multiple"}var we=h.forwardRef(function(Me,st){var Zt,Kt,Br=Me.id,hr=Me.prefixCls,Ur=Me.className,Wr=Me.showSearch,en=Me.tagRender,Vr=Me.direction,Hr=Me.omitDomProps,qr=Me.displayValues,gn=Me.onDisplayValuesChange,tn=Me.emptyOptions,Mn=Me.notFoundContent,Rn=Mn===void 0?"Not Found":Mn,pi=Me.onClear,Pn=Me.mode,ln=Me.disabled,Ht=Me.loading,Wt=Me.getInputElement,er=Me.getRawInputElement,tr=Me.open,Xt=Me.defaultOpen,Nr=Me.onDropdownVisibleChange,Lr=Me.activeValue,Jr=Me.onActiveValueChange,Fn=Me.activeDescendantId,Ln=Me.searchValue,li=Me.autoClearSearchValue,ti=Me.onSearch,Ei=Me.onSearchSplit,Yn=Me.tokenSeparators,Hn=Me.allowClear,sn=Me.suffixIcon,vi=Me.clearIcon,In=Me.OptionList,ii=Me.animation,bi=Me.transitionName,Di=Me.dropdownStyle,Gn=Me.dropdownClassName,Li=Me.dropdownMatchSelectWidth,ra=Me.dropdownRender,si=Me.dropdownAlign,un=Me.placement,rn=Me.builtinPlacements,Nn=Me.getPopupContainer,wn=Me.showAction,jn=wn===void 0?[]:wn,ui=Me.onFocus,_i=Me.onBlur,ca=Me.onKeyUp,Yi=Me.onKeyDown,so=Me.onMouseDown,ri=(0,G.Z)(Me,ne),On=xe(Pn),ki=(Wr!==void 0?Wr:On)||Pn==="combobox",Ii=(0,Te.Z)({},ri);Ge.forEach(function(ha){delete Ii[ha]}),Hr==null||Hr.forEach(function(ha){delete Ii[ha]});var da=h.useState(!1),To=(0,ie.Z)(da,2),ia=To[0],Ji=To[1];h.useEffect(function(){Ji((0,O.Z)())},[]);var ja=h.useRef(null),Fa=h.useRef(null),ro=h.useRef(null),wo=h.useRef(null),Ba=h.useRef(null),di=W(),Aa=(0,ie.Z)(di,3),No=Aa[0],ho=Aa[1],Ja=Aa[2];h.useImperativeHandle(st,function(){var ha,aa;return{focus:(ha=wo.current)===null||ha===void 0?void 0:ha.focus,blur:(aa=wo.current)===null||aa===void 0?void 0:aa.blur,scrollTo:function(Za){var no;return(no=Ba.current)===null||no===void 0?void 0:no.scrollTo(Za)}}});var Ni=h.useMemo(function(){var ha;if(Pn!=="combobox")return Ln;var aa=(ha=qr[0])===null||ha===void 0?void 0:ha.value;return typeof aa=="string"||typeof aa=="number"?String(aa):""},[Ln,Pn,qr]),Oo=Pn==="combobox"&&typeof Wt=="function"&&Wt()||null,po=typeof er=="function"&&er(),el=(0,I.x1)(Fa,po==null||(Zt=po.props)===null||Zt===void 0?void 0:Zt.ref),Wo=h.useState(!1),Rs=(0,ie.Z)(Wo,2),Go=Rs[0],xl=Rs[1];(0,_.Z)(function(){xl(!0)},[]);var za=(0,f.Z)(!1,{defaultValue:Xt,value:tr}),Qa=(0,ie.Z)(za,2),Ea=Qa[0],Qs=Qa[1],wi=Go?Ea:!1,Wi=!Rn&&tn;(ln||Wi&&wi&&Pn==="combobox")&&(wi=!1);var Ti=Wi?!1:wi,Gi=h.useCallback(function(ha){var aa=ha!==void 0?ha:!wi;ln||(Qs(aa),wi!==aa&&(Nr==null||Nr(aa)))},[ln,wi,Qs,Nr]),ua=h.useMemo(function(){return(Yn||[]).some(function(ha){return[`
`,`\r
`].includes(ha)})},[Yn]),Ia=function(aa,mo,Za){var no=!0,Ko=aa;Jr==null||Jr(null);var qa=Za?null:H(aa,Yn);return Pn!=="combobox"&&qa&&(Ko="",Ei==null||Ei(qa),Gi(!1),no=!1),ti&&Ni!==Ko&&ti(Ko,{source:mo?"typing":"effect"}),no},Xo=function(aa){!aa||!aa.trim()||ti(aa,{source:"submit"})};h.useEffect(function(){!wi&&!On&&Pn!=="combobox"&&Ia("",!1,!1)},[wi]),h.useEffect(function(){Ea&&ln&&Qs(!1),ln&&ho(!1)},[ln]);var Fo=z(),Eo=(0,ie.Z)(Fo,2),$a=Eo[0],Sa=Eo[1],fa=function(aa){var mo=$a(),Za=aa.which;if(Za===R.Z.ENTER&&(Pn!=="combobox"&&aa.preventDefault(),wi||Gi(!0)),Sa(!!Ni),Za===R.Z.BACKSPACE&&!mo&&On&&!Ni&&qr.length){for(var no=(0,ue.Z)(qr),Ko=null,qa=no.length-1;qa>=0;qa-=1){var Jo=no[qa];if(!Jo.disabled){no.splice(qa,1),Ko=Jo;break}}Ko&&gn(no,{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(wi&&Ba.current){var tl;(tl=Ba.current).onKeyDown.apply(tl,[aa].concat(Al))}Yi==null||Yi.apply(void 0,[aa].concat(Al))},Da=function(aa){for(var mo=arguments.length,Za=new Array(mo>1?mo-1:0),no=1;no<mo;no++)Za[no-1]=arguments[no];if(wi&&Ba.current){var Ko;(Ko=Ba.current).onKeyUp.apply(Ko,[aa].concat(Za))}ca==null||ca.apply(void 0,[aa].concat(Za))},Ya=function(aa){var mo=qr.filter(function(Za){return Za!==aa});gn(mo,{type:"remove",values:[aa]})},lo=h.useRef(!1),Oa=function(){ho(!0),ln||(ui&&!lo.current&&ui.apply(void 0,arguments),jn.includes("focus")&&Gi(!0)),lo.current=!0},Ma=function(){ho(!1,function(){lo.current=!1,Gi(!1)}),!ln&&(Ni&&(Pn==="tags"?ti(Ni,{source:"submit"}):Pn==="multiple"&&ti("",{source:"blur"})),_i&&_i.apply(void 0,arguments))},Io=[];h.useEffect(function(){return function(){Io.forEach(function(ha){return clearTimeout(ha)}),Io.splice(0,Io.length)}},[]);var kl=function(aa){var mo,Za=aa.target,no=(mo=ro.current)===null||mo===void 0?void 0:mo.getPopupElement();if(no&&no.contains(Za)){var Ko=setTimeout(function(){var Al=Io.indexOf(Ko);if(Al!==-1&&Io.splice(Al,1),Ja(),!ia&&!no.contains(document.activeElement)){var Vs;(Vs=wo.current)===null||Vs===void 0||Vs.focus()}});Io.push(Ko)}for(var qa=arguments.length,Jo=new Array(qa>1?qa-1:0),Ls=1;Ls<qa;Ls++)Jo[Ls-1]=arguments[Ls];so==null||so.apply(void 0,[aa].concat(Jo))},ds=h.useState({}),ll=(0,ie.Z)(ds,2),Uo=ll[1];function Ms(){Uo({})}var Mo;po&&(Mo=function(aa){Gi(aa)}),le(function(){var ha;return[ja.current,(ha=ro.current)===null||ha===void 0?void 0:ha.getPopupElement()]},Ti,Gi,!!po);var Qn=h.useMemo(function(){return(0,Te.Z)((0,Te.Z)({},Me),{},{notFoundContent:Rn,open:wi,triggerOpen:Ti,id:Br,showSearch:ki,multiple:On,toggleOpen:Gi})},[Me,Rn,Ti,wi,Br,ki,On,Gi]),Dl=!!sn||Ht,Ro;Dl&&(Ro=h.createElement(K,{className:S()("".concat(hr,"-arrow"),(0,Q.Z)({},"".concat(hr,"-arrow-loading"),Ht)),customizeIcon:sn,customizeIconProps:{loading:Ht,searchValue:Ni,open:wi,focused:No,showSearch:ki}}));var Vl=function(){var aa;pi==null||pi(),(aa=wo.current)===null||aa===void 0||aa.focus(),gn([],{type:"clear",values:qr}),Ia("",!1,!1)},Ks=se(hr,Vl,qr,Hn,vi,ln,Ni,Pn),bs=Ks.allowClear,La=Ks.clearIcon,Qo=h.createElement(In,{ref:Ba}),Wl=S()(hr,Ur,(Kt={},(0,Q.Z)(Kt,"".concat(hr,"-focused"),No),(0,Q.Z)(Kt,"".concat(hr,"-multiple"),On),(0,Q.Z)(Kt,"".concat(hr,"-single"),!On),(0,Q.Z)(Kt,"".concat(hr,"-allow-clear"),Hn),(0,Q.Z)(Kt,"".concat(hr,"-show-arrow"),Dl),(0,Q.Z)(Kt,"".concat(hr,"-disabled"),ln),(0,Q.Z)(Kt,"".concat(hr,"-loading"),Ht),(0,Q.Z)(Kt,"".concat(hr,"-open"),wi),(0,Q.Z)(Kt,"".concat(hr,"-customize-input"),Oo),(0,Q.Z)(Kt,"".concat(hr,"-show-search"),ki),Kt)),ac=h.createElement(k,{ref:ro,disabled:ln,prefixCls:hr,visible:Ti,popupElement:Qo,animation:ii,transitionName:bi,dropdownStyle:Di,dropdownClassName:Gn,direction:Vr,dropdownMatchSelectWidth:Li,dropdownRender:ra,dropdownAlign:si,placement:un,builtinPlacements:rn,getPopupContainer:Nn,empty:tn,getTriggerDOMNode:function(){return Fa.current},onPopupVisibleChange:Mo,onPopupMouseEnter:Ms},po?h.cloneElement(po,{ref:el}):h.createElement(ur,(0,ge.Z)({},Me,{domRef:Fa,prefixCls:hr,inputElement:Oo,ref:wo,id:Br,showSearch:ki,autoClearSearchValue:li,mode:Pn,activeDescendantId:Fn,tagRender:en,values:qr,open:wi,onToggleOpen:Gi,activeValue:Lr,searchValue:Ni,onSearch:Ia,onSearchSubmit:Xo,onRemove:Ya,tokenWithEnter:ua}))),cl;return po?cl=ac:cl=h.createElement("div",(0,ge.Z)({className:Wl},Ii,{ref:ja,onMouseDown:kl,onKeyDown:fa,onKeyUp:Da,onFocus:Oa,onBlur:Ma}),No&&!wi&&h.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(qr.map(function(ha){var aa=ha.label,mo=ha.value;return["number","string"].includes((0,B.Z)(aa))?aa:mo}).join(", "))),ac,Ro,bs&&La),h.createElement(te.Provider,{value:Qn},cl)}),Ye=we,_t=function(Me,st){var Zt=h.useRef({values:new Map,options:new Map}),Kt=h.useMemo(function(){var hr=Zt.current,Ur=hr.values,Wr=hr.options,en=Me.map(function(qr){if(qr.label===void 0){var gn;return(0,Te.Z)((0,Te.Z)({},qr),{},{label:(gn=Ur.get(qr.value))===null||gn===void 0?void 0:gn.label})}return qr}),Vr=new Map,Hr=new Map;return en.forEach(function(qr){Vr.set(qr.value,qr),Hr.set(qr.value,st.get(qr.value)||Wr.get(qr.value))}),Zt.current.values=Vr,Zt.current.options=Hr,en},[Me,st]),Br=h.useCallback(function(hr){return st.get(hr)||Zt.current.options.get(hr)},[st]);return[Kt,Br]};function pe(Me,st){return ce(Me).join("").toUpperCase().includes(st)}var ut=function(Me,st,Zt,Kt,Br){return h.useMemo(function(){if(!Zt||Kt===!1)return Me;var hr=st.options,Ur=st.label,Wr=st.value,en=[],Vr=typeof Kt=="function",Hr=Zt.toUpperCase(),qr=Vr?Kt:function(tn,Mn){return Br?pe(Mn[Br],Hr):Mn[hr]?pe(Mn[Ur!=="children"?Ur:"label"],Hr):pe(Mn[Wr],Hr)},gn=Vr?function(tn){return Se(tn)}:function(tn){return tn};return Me.forEach(function(tn){if(tn[hr]){var Mn=qr(Zt,gn(tn));if(Mn)en.push(tn);else{var Rn=tn[hr].filter(function(pi){return qr(Zt,gn(pi))});Rn.length&&en.push((0,Te.Z)((0,Te.Z)({},tn),{},(0,Q.Z)({},hr,Rn)))}return}qr(Zt,gn(tn))&&en.push(tn)}),en},[Me,Kt,Br,Zt,st])},ct=x(17115),Ie=x(11592),ke=["children","value"],vt=["children"];function zt(Me){var st=Me,Zt=st.key,Kt=st.props,Br=Kt.children,hr=Kt.value,Ur=(0,G.Z)(Kt,ke);return(0,Te.Z)({key:Zt,value:hr!==void 0?hr:Zt,children:Br},Ur)}function Ut(Me){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Ie.Z)(Me).map(function(Zt,Kt){if(!h.isValidElement(Zt)||!Zt.type)return null;var Br=Zt,hr=Br.type.isSelectOptGroup,Ur=Br.key,Wr=Br.props,en=Wr.children,Vr=(0,G.Z)(Wr,vt);return st||!hr?zt(Zt):(0,Te.Z)((0,Te.Z)({key:"__RC_SELECT_GRP__".concat(Ur===null?Kt:Ur,"__"),label:Ur},Vr),{},{options:Ut(en)})}).filter(function(Zt){return Zt})}function ar(Me,st,Zt,Kt,Br){return h.useMemo(function(){var hr=Me,Ur=!Me;Ur&&(hr=Ut(st));var Wr=new Map,en=new Map,Vr=function(gn,tn,Mn){Mn&&typeof Mn=="string"&&gn.set(tn[Mn],tn)};function Hr(qr){for(var gn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,tn=0;tn<qr.length;tn+=1){var Mn=qr[tn];!Mn[Zt.options]||gn?(Wr.set(Mn[Zt.value],Mn),Vr(en,Mn,Zt.label),Vr(en,Mn,Kt),Vr(en,Mn,Br)):Hr(Mn[Zt.options],!0)}}return Hr(hr),{options:hr,valueOptions:Wr,labelOptions:en}},[Me,st,Zt,Kt,Br])}function Ir(Me){var st=h.useRef();st.current=Me;var Zt=h.useCallback(function(){return st.current.apply(st,arguments)},[]);return Zt}var Pr=function(){return null};Pr.isSelectOptGroup=!0;var Kr=Pr,Tr=function(){return null};Tr.isSelectOption=!0;var cr=Tr,Ar=x(80547),zr=x(2738),cn=x(24916),Sn=h.createContext(null),An=Sn;function _n(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var xi=["disabled","title","children","style","className"];function Mr(Me){return typeof Me=="string"||typeof Me=="number"}var ei=function(st,Zt){var Kt=X(),Br=Kt.prefixCls,hr=Kt.id,Ur=Kt.open,Wr=Kt.multiple,en=Kt.mode,Vr=Kt.searchValue,Hr=Kt.toggleOpen,qr=Kt.notFoundContent,gn=Kt.onPopupScroll,tn=h.useContext(An),Mn=tn.flattenOptions,Rn=tn.onActiveValue,pi=tn.defaultActiveFirstOption,Pn=tn.onSelect,ln=tn.menuItemSelectedIcon,Ht=tn.rawValues,Wt=tn.fieldNames,er=tn.virtual,tr=tn.direction,Xt=tn.listHeight,Nr=tn.listItemHeight,Lr="".concat(Br,"-item"),Jr=(0,Ar.Z)(function(){return Mn},[Ur,Mn],function(si,un){return un[0]&&si[1]!==un[1]}),Fn=h.useRef(null),Ln=function(un){un.preventDefault()},li=function(un){Fn.current&&Fn.current.scrollTo(typeof un=="number"?{index:un}:un)},ti=function(un){for(var rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Nn=Jr.length,wn=0;wn<Nn;wn+=1){var jn=(un+wn*rn+Nn)%Nn,ui=Jr[jn],_i=ui.group,ca=ui.data;if(!_i&&!ca.disabled)return jn}return-1},Ei=h.useState(function(){return ti(0)}),Yn=(0,ie.Z)(Ei,2),Hn=Yn[0],sn=Yn[1],vi=function(un){var rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;sn(un);var Nn={source:rn?"keyboard":"mouse"},wn=Jr[un];if(!wn){Rn(null,-1,Nn);return}Rn(wn.value,un,Nn)};(0,h.useEffect)(function(){vi(pi!==!1?ti(0):-1)},[Jr.length,Vr]);var In=h.useCallback(function(si){return Ht.has(si)&&en!=="combobox"},[en,(0,ue.Z)(Ht).toString(),Ht.size]);(0,h.useEffect)(function(){var si=setTimeout(function(){if(!Wr&&Ur&&Ht.size===1){var rn=Array.from(Ht)[0],Nn=Jr.findIndex(function(wn){var jn=wn.data;return jn.value===rn});Nn!==-1&&(vi(Nn),li(Nn))}});if(Ur){var un;(un=Fn.current)===null||un===void 0||un.scrollTo(void 0)}return function(){return clearTimeout(si)}},[Ur,Vr,Mn.length]);var ii=function(un){un!==void 0&&Pn(un,{selected:!Ht.has(un)}),Wr||Hr(!1)};if(h.useImperativeHandle(Zt,function(){return{onKeyDown:function(un){var rn=un.which,Nn=un.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:_n()&&Nn&&(rn===R.Z.N?wn=1:rn===R.Z.P&&(wn=-1)),wn!==0){var jn=ti(Hn+wn,wn);li(jn),vi(jn,!0)}break}case R.Z.ENTER:{var ui=Jr[Hn];ui&&!ui.data.disabled?ii(ui.value):ii(void 0),Ur&&un.preventDefault();break}case R.Z.ESC:Hr(!1),Ur&&un.stopPropagation()}},onKeyUp:function(){},scrollTo:function(un){li(un)}}}),Jr.length===0)return h.createElement("div",{role:"listbox",id:"".concat(hr,"_list"),className:"".concat(Lr,"-empty"),onMouseDown:Ln},qr);var bi=Object.keys(Wt).map(function(si){return Wt[si]}),Di=function(un){return un.label};function Gn(si,un){var rn=si.group;return{role:rn?"presentation":"option",id:"".concat(hr,"_list_").concat(un)}}var Li=function(un){var rn=Jr[un];if(!rn)return null;var Nn=rn.data||{},wn=Nn.value,jn=rn.group,ui=(0,he.Z)(Nn,!0),_i=Di(rn);return rn?h.createElement("div",(0,ge.Z)({"aria-label":typeof _i=="string"&&!jn?_i:null},ui,{key:un},Gn(rn,un),{"aria-selected":In(wn)}),wn):null},ra={role:"listbox",id:"".concat(hr,"_list")};return h.createElement(h.Fragment,null,er&&h.createElement("div",(0,ge.Z)({},ra,{style:{height:0,width:0,overflow:"hidden"}}),Li(Hn-1),Li(Hn),Li(Hn+1)),h.createElement(cn.Z,{itemKey:"key",ref:Fn,data:Jr,height:Xt,itemHeight:Nr,fullHeight:!1,onMouseDown:Ln,onScroll:gn,virtual:er,direction:tr,innerProps:er?null:ra},function(si,un){var rn,Nn=si.group,wn=si.groupOption,jn=si.data,ui=si.label,_i=si.value,ca=jn.key;if(Nn){var Yi,so=(Yi=jn.title)!==null&&Yi!==void 0?Yi:Mr(ui)?ui.toString():void 0;return h.createElement("div",{className:S()(Lr,"".concat(Lr,"-group")),title:so},ui!==void 0?ui:ca)}var ri=jn.disabled,On=jn.title,ki=jn.children,Ii=jn.style,da=jn.className,To=(0,G.Z)(jn,xi),ia=(0,zr.Z)(To,bi),Ji=In(_i),ja="".concat(Lr,"-option"),Fa=S()(Lr,ja,da,(rn={},(0,Q.Z)(rn,"".concat(ja,"-grouped"),wn),(0,Q.Z)(rn,"".concat(ja,"-active"),Hn===un&&!ri),(0,Q.Z)(rn,"".concat(ja,"-disabled"),ri),(0,Q.Z)(rn,"".concat(ja,"-selected"),Ji),rn)),ro=Di(si),wo=!ln||typeof ln=="function"||Ji,Ba=typeof ro=="number"?ro:ro||_i,di=Mr(Ba)?Ba.toString():void 0;return On!==void 0&&(di=On),h.createElement("div",(0,ge.Z)({},(0,he.Z)(ia),er?{}:Gn(si,un),{"aria-selected":Ji,className:Fa,title:di,onMouseMove:function(){Hn===un||ri||vi(un)},onClick:function(){ri||ii(_i)},style:Ii}),h.createElement("div",{className:"".concat(ja,"-content")},Ba),h.isValidElement(ln)||Ji,wo&&h.createElement(K,{className:"".concat(Lr,"-option-state"),customizeIcon:ln,customizeIconProps:{isSelected:Ji}},Ji?"\u2713":null))}))},Bi=h.forwardRef(ei);Bi.displayName="OptionList";var zn=Bi;function Oi(Me){var st=Me.mode,Zt=Me.options,Kt=Me.children,Br=Me.backfill,hr=Me.allowClear,Ur=Me.placeholder,Wr=Me.getInputElement,en=Me.showSearch,Vr=Me.onSearch,Hr=Me.defaultOpen,qr=Me.autoFocus,gn=Me.labelInValue,tn=Me.value,Mn=Me.inputValue,Rn=Me.optionLabelProp,pi=isMultiple(st),Pn=en!==void 0?en:pi||st==="combobox",ln=Zt||convertChildrenToData(Kt);if(warning(st!=="tags"||ln.every(function(tr){return!tr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),st==="tags"||st==="combobox"){var Ht=ln.some(function(tr){return tr.options?tr.options.some(function(Xt){return typeof("value"in Xt?Xt.value:Xt.key)=="number"}):typeof("value"in tr?tr.value:tr.key)=="number"});warning(!Ht,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(st!=="combobox"||!Rn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(st==="combobox"||!Br,"`backfill` only works with `combobox` mode."),warning(st==="combobox"||!Wr,"`getInputElement` only work with `combobox` mode."),noteOnce(st!=="combobox"||!Wr||!hr||!Ur,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Vr&&!Pn&&st!=="combobox"&&st!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Hr||qr,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),tn!=null){var Wt=toArray(tn);warning(!gn||Wt.every(function(tr){return _typeof(tr)==="object"&&("key"in tr||"value"in tr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!pi||Array.isArray(tn),"`value` should be array when `mode` is `multiple` or `tags`")}if(Kt){var er=null;toNodeArray(Kt).some(function(tr){if(!React.isValidElement(tr)||!tr.type)return!1;var Xt=tr,Nr=Xt.type;if(Nr.isSelectOption)return!1;if(Nr.isSelectOptGroup){var Lr=toNodeArray(tr.props.children).every(function(Jr){return!React.isValidElement(Jr)||!tr.type||Jr.type.isSelectOption?!0:(er=Jr.type,!1)});return!Lr}return er=Nr,!0}),er&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(er.displayName||er.name||er,"`.")),warning(Mn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function yi(Me,st){if(Me){var Zt=function Kt(Br){for(var hr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ur=0;Ur<Br.length;Ur++){var Wr=Br[Ur];if(Wr[st==null?void 0:st.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!hr&&Array.isArray(Wr[st==null?void 0:st.options])&&Kt(Wr[st==null?void 0:st.options],!0))break}};Zt(Me)}}var Ki=null,Ca=["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"],Zi=["inputValue"];function ni(Me){return!Me||(0,B.Z)(Me)!=="object"}var Si=h.forwardRef(function(Me,st){var Zt=Me.id,Kt=Me.mode,Br=Me.prefixCls,hr=Br===void 0?"rc-select":Br,Ur=Me.backfill,Wr=Me.fieldNames,en=Me.inputValue,Vr=Me.searchValue,Hr=Me.onSearch,qr=Me.autoClearSearchValue,gn=qr===void 0?!0:qr,tn=Me.onSelect,Mn=Me.onDeselect,Rn=Me.dropdownMatchSelectWidth,pi=Rn===void 0?!0:Rn,Pn=Me.filterOption,ln=Me.filterSort,Ht=Me.optionFilterProp,Wt=Me.optionLabelProp,er=Me.options,tr=Me.children,Xt=Me.defaultActiveFirstOption,Nr=Me.menuItemSelectedIcon,Lr=Me.virtual,Jr=Me.direction,Fn=Me.listHeight,Ln=Fn===void 0?200:Fn,li=Me.listItemHeight,ti=li===void 0?20:li,Ei=Me.value,Yn=Me.defaultValue,Hn=Me.labelInValue,sn=Me.onChange,vi=(0,G.Z)(Me,Ca),In=(0,ct.ZP)(Zt),ii=xe(Kt),bi=!!(!er&&tr),Di=h.useMemo(function(){return Pn===void 0&&Kt==="combobox"?!1:Pn},[Pn,Kt]),Gn=h.useMemo(function(){return w(Wr,bi)},[JSON.stringify(Wr),bi]),Li=(0,f.Z)("",{value:Vr!==void 0?Vr:en,postState:function(Wi){return Wi||""}}),ra=(0,ie.Z)(Li,2),si=ra[0],un=ra[1],rn=ar(er,tr,Gn,Ht,Wt),Nn=rn.valueOptions,wn=rn.labelOptions,jn=rn.options,ui=h.useCallback(function(wi){var Wi=ce(wi);return Wi.map(function(Ti){var Gi,ua,Ia,Xo,Fo;if(ni(Ti))Gi=Ti;else{var Eo;Ia=Ti.key,ua=Ti.label,Gi=(Eo=Ti.value)!==null&&Eo!==void 0?Eo:Ia}var $a=Nn.get(Gi);if($a){var Sa;if(ua===void 0&&(ua=$a==null?void 0:$a[Wt||Gn.label]),Ia===void 0&&(Ia=(Sa=$a==null?void 0:$a.key)!==null&&Sa!==void 0?Sa:Gi),Xo=$a==null?void 0:$a.disabled,Fo=$a==null?void 0:$a.title,0)var fa}return{label:ua,value:Gi,key:Ia,disabled:Xo,title:Fo}})},[Gn,Wt,Nn]),_i=(0,f.Z)(Yn,{value:Ei}),ca=(0,ie.Z)(_i,2),Yi=ca[0],so=ca[1],ri=h.useMemo(function(){var wi,Wi=ui(Yi);return Kt==="combobox"&&Ce((wi=Wi[0])===null||wi===void 0?void 0:wi.value)?[]:Wi},[Yi,ui,Kt]),On=_t(ri,Nn),ki=(0,ie.Z)(On,2),Ii=ki[0],da=ki[1],To=h.useMemo(function(){if(!Kt&&Ii.length===1){var wi=Ii[0];if(wi.value===null&&(wi.label===null||wi.label===void 0))return[]}return Ii.map(function(Wi){var Ti;return(0,Te.Z)((0,Te.Z)({},Wi),{},{label:(Ti=Wi.label)!==null&&Ti!==void 0?Ti:Wi.value})})},[Kt,Ii]),ia=h.useMemo(function(){return new Set(Ii.map(function(wi){return wi.value}))},[Ii]);h.useEffect(function(){if(Kt==="combobox"){var wi,Wi=(wi=Ii[0])===null||wi===void 0?void 0:wi.value;un(Le(Wi)?String(Wi):"")}},[Ii]);var Ji=Ir(function(wi,Wi){var Ti,Gi=Wi!=null?Wi:wi;return Ti={},(0,Q.Z)(Ti,Gn.value,wi),(0,Q.Z)(Ti,Gn.label,Gi),Ti}),ja=h.useMemo(function(){if(Kt!=="tags")return jn;var wi=(0,ue.Z)(jn),Wi=function(Gi){return Nn.has(Gi)};return(0,ue.Z)(Ii).sort(function(Ti,Gi){return Ti.value<Gi.value?-1:1}).forEach(function(Ti){var Gi=Ti.value;Wi(Gi)||wi.push(Ji(Gi,Ti.label))}),wi},[Ji,jn,Nn,Ii,Kt]),Fa=ut(ja,Gn,si,Di,Ht),ro=h.useMemo(function(){return Kt!=="tags"||!si||Fa.some(function(wi){return wi[Ht||"value"]===si})||Fa.some(function(wi){return wi[Gn.value]===si})?Fa:[Ji(si)].concat((0,ue.Z)(Fa))},[Ji,Ht,Kt,Fa,si,Gn]),wo=h.useMemo(function(){return ln?(0,ue.Z)(ro).sort(function(wi,Wi){return ln(wi,Wi)}):ro},[ro,ln]),Ba=h.useMemo(function(){return q(wo,{fieldNames:Gn,childrenAsData:bi})},[wo,Gn,bi]),di=function(Wi){var Ti=ui(Wi);if(so(Ti),sn&&(Ti.length!==Ii.length||Ti.some(function(Ia,Xo){var Fo;return((Fo=Ii[Xo])===null||Fo===void 0?void 0:Fo.value)!==(Ia==null?void 0:Ia.value)}))){var Gi=Hn?Ti:Ti.map(function(Ia){return Ia.value}),ua=Ti.map(function(Ia){return Se(da(Ia.value))});sn(ii?Gi:Gi[0],ii?ua:ua[0])}},Aa=h.useState(null),No=(0,ie.Z)(Aa,2),ho=No[0],Ja=No[1],Ni=h.useState(0),Oo=(0,ie.Z)(Ni,2),po=Oo[0],el=Oo[1],Wo=Xt!==void 0?Xt:Kt!=="combobox",Rs=h.useCallback(function(wi,Wi){var Ti=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Gi=Ti.source,ua=Gi===void 0?"keyboard":Gi;el(Wi),Ur&&Kt==="combobox"&&wi!==null&&ua==="keyboard"&&Ja(String(wi))},[Ur,Kt]),Go=function(Wi,Ti,Gi){var ua=function(){var lo,Oa=da(Wi);return[Hn?{label:Oa==null?void 0:Oa[Gn.label],value:Wi,key:(lo=Oa==null?void 0:Oa.key)!==null&&lo!==void 0?lo:Wi}:Wi,Se(Oa)]};if(Ti&&tn){var Ia=ua(),Xo=(0,ie.Z)(Ia,2),Fo=Xo[0],Eo=Xo[1];tn(Fo,Eo)}else if(!Ti&&Mn&&Gi!=="clear"){var $a=ua(),Sa=(0,ie.Z)($a,2),fa=Sa[0],Da=Sa[1];Mn(fa,Da)}},xl=Ir(function(wi,Wi){var Ti,Gi=ii?Wi.selected:!0;Gi?Ti=ii?[].concat((0,ue.Z)(Ii),[wi]):[wi]:Ti=Ii.filter(function(ua){return ua.value!==wi}),di(Ti),Go(wi,Gi),Kt==="combobox"?Ja(""):(!xe||gn)&&(un(""),Ja(""))}),za=function(Wi,Ti){di(Wi);var Gi=Ti.type,ua=Ti.values;(Gi==="remove"||Gi==="clear")&&ua.forEach(function(Ia){Go(Ia.value,!1,Gi)})},Qa=function(Wi,Ti){if(un(Wi),Ja(null),Ti.source==="submit"){var Gi=(Wi||"").trim();if(Gi){var ua=Array.from(new Set([].concat((0,ue.Z)(ia),[Gi])));di(ua),Go(Gi,!0),un("")}return}Ti.source!=="blur"&&(Kt==="combobox"&&di(Wi),Hr==null||Hr(Wi))},Ea=function(Wi){var Ti=Wi;Kt!=="tags"&&(Ti=Wi.map(function(ua){var Ia=wn.get(ua);return Ia==null?void 0:Ia.value}).filter(function(ua){return ua!==void 0}));var Gi=Array.from(new Set([].concat((0,ue.Z)(ia),(0,ue.Z)(Ti))));di(Gi),Gi.forEach(function(ua){Go(ua,!0)})},Qs=h.useMemo(function(){var wi=Lr!==!1&&pi!==!1;return(0,Te.Z)((0,Te.Z)({},rn),{},{flattenOptions:Ba,onActiveValue:Rs,defaultActiveFirstOption:Wo,onSelect:xl,menuItemSelectedIcon:Nr,rawValues:ia,fieldNames:Gn,virtual:wi,direction:Jr,listHeight:Ln,listItemHeight:ti,childrenAsData:bi})},[rn,Ba,Rs,Wo,xl,Nr,ia,Gn,Lr,pi,Ln,ti,bi]);return h.createElement(An.Provider,{value:Qs},h.createElement(Ye,(0,ge.Z)({},vi,{id:In,prefixCls:hr,ref:st,omitDomProps:Zi,mode:Kt,displayValues:To,onDisplayValuesChange:za,direction:Jr,searchValue:si,onSearch:Qa,autoClearSearchValue:gn,onSearchSplit:Ea,dropdownMatchSelectWidth:pi,OptionList:zn,emptyOptions:!Ba.length,activeValue:ho,activeDescendantId:"".concat(In,"_list_").concat(po)})))}),Ui=Si;Ui.Option=cr,Ui.OptGroup=Kr;var me=Ui,Ue=me},9296:function(xn,qt,x){"use strict";x.r(qt),x.d(qt,{ResizableTextArea:function(){return je},default:function(){return Ce}});var ge=x(92413),ue=x(33708),Q=x(400),Te=x(39559),ie=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),O=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,Pe=Re.getAttribute("id")||Re.getAttribute("data-reactid")||Re.getAttribute("name");if(ve&&se[Pe])return se[Pe];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")),tt=parseFloat(fe.getPropertyValue("border-bottom-width"))+parseFloat(fe.getPropertyValue("border-top-width")),rt=K.map(function(Nt){return"".concat(Nt,":").concat(fe.getPropertyValue(Nt))}).join(";"),At={sizingStyle:rt,paddingSize:at,borderSize:tt,boxSizing:ye};return ve&&Pe&&(se[Pe]=At),At}function W(Re){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pe=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,tt=ye.borderSize,rt=ye.boxSizing,At=ye.sizingStyle;te.setAttribute("style","".concat(At,";").concat(Y)),te.value=Re.value||Re.placeholder||"";var Nt=void 0,jt=void 0,Qt,ur=te.scrollHeight;if(rt==="border-box"?ur+=tt:rt==="content-box"&&(ur-=at),Pe!==null||fe!==null){te.value=" ";var or=te.scrollHeight-at;Pe!==null&&(Nt=or*Pe,rt==="border-box"&&(Nt=Nt+at+tt),ur=Math.max(Nt,ur)),fe!==null&&(jt=or*fe,rt==="border-box"&&(jt=jt+at+tt),Qt=ur>jt?"":"hidden",ur=Math.min(jt,ur))}var xr={height:ur,overflowY:Qt,resize:"none"};return Nt&&(xr.minHeight=Nt),jt&&(xr.maxHeight=jt),xr}var z=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],le=0,he=1,Ne=2,Be=_.forwardRef(function(Re,ve){var Pe=Re,fe=Pe.prefixCls,ye=Pe.onPressEnter,at=Pe.defaultValue,tt=Pe.value,rt=Pe.autoSize,At=Pe.onResize,Nt=Pe.className,jt=Pe.style,Qt=Pe.disabled,ur=Pe.onChange,or=Pe.onInternalAutoSize,xr=(0,G.Z)(Pe,z),fr=(0,S.Z)(at,{value:tt,postState:function(Kr){return Kr!=null?Kr:""}}),L=(0,ie.Z)(fr,2),nt=L[0],k=L[1],p=function(Kr){k(Kr.target.value),ur==null||ur(Kr)},d=_.useRef();_.useImperativeHandle(ve,function(){return{textArea:d.current}});var w=_.useMemo(function(){return rt&&(0,Te.Z)(rt)==="object"?[rt.minRows,rt.maxRows]:[]},[rt]),q=(0,ie.Z)(w,2),Se=q[0],H=q[1],ne=!!rt,Ge=function(){try{if(document.activeElement===d.current){var Kr=d.current,Tr=Kr.selectionStart,cr=Kr.selectionEnd,Ar=Kr.scrollTop;d.current.setSelectionRange(Tr,cr),d.current.scrollTop=Ar}}catch(zr){}},xe=_.useState(Ne),we=(0,ie.Z)(xe,2),Ye=we[0],_t=we[1],pe=_.useState(),ut=(0,ie.Z)(pe,2),ct=ut[0],Ie=ut[1],ke=function(){_t(le)};(0,R.Z)(function(){ne&&ke()},[tt,Se,H,ne]),(0,R.Z)(function(){if(Ye===le)_t(he);else if(Ye===he){var Pr=W(d.current,!1,Se,H);_t(Ne),Ie(Pr)}else Ge()},[Ye]);var vt=_.useRef(),zt=function(){I.Z.cancel(vt.current)},Ut=function(Kr){Ye===Ne&&(At==null||At(Kr),rt&&(zt(),vt.current=(0,I.Z)(function(){ke()})))};_.useEffect(function(){return zt},[]);var ar=ne?ct:null,Ir=(0,ue.Z)((0,ue.Z)({},jt),ar);return(Ye===le||Ye===he)&&(Ir.overflowY="hidden",Ir.overflowX="hidden"),_.createElement(O.Z,{onResize:Ut,disabled:!(rt||At)},_.createElement("textarea",(0,ge.Z)({},xr,{ref:d,style:Ir,className:E()(fe,Nt,(0,Q.Z)({},"".concat(fe,"-disabled"),Qt)),disabled:Qt,value:nt,onChange:p})))}),je=Be,ee=["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 D(Re,ve,Pe,fe){var ye=Pe;return Re?ye=ce(Pe,fe):(0,B.Z)(ve||"").length<Pe.length&&(0,B.Z)(Pe||"").length>fe&&(ye=ve),ye}var ot=_.forwardRef(function(Re,ve){var Pe,fe=Re.defaultValue,ye=Re.value,at=Re.onFocus,tt=Re.onBlur,rt=Re.onChange,At=Re.allowClear,Nt=Re.maxLength,jt=Re.onCompositionStart,Qt=Re.onCompositionEnd,ur=Re.suffix,or=Re.prefixCls,xr=or===void 0?"rc-textarea":or,fr=Re.classes,L=Re.showCount,nt=Re.className,k=Re.style,p=Re.disabled,d=Re.hidden,w=Re.classNames,q=Re.styles,Se=Re.onResize,H=(0,G.Z)(Re,ee),ne=(0,S.Z)(fe,{value:ye,defaultValue:fe}),Ge=(0,ie.Z)(ne,2),xe=Ge[0],we=Ge[1],Ye=(0,_.useRef)(null),_t=_.useState(!1),pe=(0,ie.Z)(_t,2),ut=pe[0],ct=pe[1],Ie=_.useState(!1),ke=(0,ie.Z)(Ie,2),vt=ke[0],zt=ke[1],Ut=_.useRef(),ar=_.useRef(0),Ir=_.useState(null),Pr=(0,ie.Z)(Ir,2),Kr=Pr[0],Tr=Pr[1],cr=function(){var ni;(ni=Ye.current)===null||ni===void 0||ni.textArea.focus()};(0,_.useImperativeHandle)(ve,function(){return{resizableTextArea:Ye.current,focus:cr,blur:function(){var ni;(ni=Ye.current)===null||ni===void 0||ni.textArea.blur()}}}),(0,_.useEffect)(function(){ct(function(Zi){return!p&&Zi})},[p]);var Ar=Number(Nt)>0,zr=function(ni){zt(!0),Ut.current=xe,ar.current=ni.currentTarget.selectionStart,jt==null||jt(ni)},cn=function(ni){zt(!1);var Si=ni.currentTarget.value;if(Ar){var Ui,me=ar.current>=Nt+1||ar.current===((Ui=Ut.current)===null||Ui===void 0?void 0:Ui.length);Si=D(me,Ut.current,Si,Nt)}Si!==xe&&(we(Si),(0,Z.rJ)(ni.currentTarget,ni,rt,Si)),Qt==null||Qt(ni)},Sn=function(ni){var Si=ni.target.value;if(!vt&&Ar){var Ui=ni.target.selectionStart>=Nt+1||ni.target.selectionStart===Si.length||!ni.target.selectionStart;Si=D(Ui,xe,Si,Nt)}we(Si),(0,Z.rJ)(ni.currentTarget,ni,rt,Si)},An=function(ni){var Si=H.onPressEnter,Ui=H.onKeyDown;ni.key==="Enter"&&Si&&Si(ni),Ui==null||Ui(ni)},_n=function(ni){ct(!0),at==null||at(ni)},xi=function(ni){ct(!1),tt==null||tt(ni)},Mr=function(ni){var Si;we(""),cr(),(0,Z.rJ)((Si=Ye.current)===null||Si===void 0?void 0:Si.textArea,ni,rt)},ei=(0,Z.D7)(xe);!vt&&Ar&&ye==null&&(ei=ce(ei,Nt));var Bi=ur,zn;if(L){var Oi=(0,B.Z)(ei).length;(0,Te.Z)(L)==="object"?zn=L.formatter({value:ei,count:Oi,maxLength:Nt}):zn="".concat(Oi).concat(Ar?" / ".concat(Nt):""),Bi=_.createElement(_.Fragment,null,Bi,_.createElement("span",{className:E()("".concat(xr,"-data-count"),w==null?void 0:w.count),style:q==null?void 0:q.count},zn))}var yi=function(ni){var Si;Se==null||Se(ni),(Si=Ye.current)!==null&&Si!==void 0&&Si.textArea.style.height&&Tr(!0)},Ki=!H.autoSize&&!L&&!At,Ca=_.createElement(h.BaseInput,{value:ei,allowClear:At,handleReset:Mr,suffix:Bi,prefixCls:xr,classes:{affixWrapper:E()(fr==null?void 0:fr.affixWrapper,(Pe={},(0,Q.Z)(Pe,"".concat(xr,"-show-count"),L),(0,Q.Z)(Pe,"".concat(xr,"-textarea-allow-clear"),At),Pe))},disabled:p,focused:ut,className:nt,style:(0,ue.Z)((0,ue.Z)({},k),Kr&&!Ki?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof zn=="string"?zn:void 0}},hidden:d,inputElement:_.createElement(je,(0,ge.Z)({},H,{onKeyDown:An,onChange:Sn,onFocus:_n,onBlur:xi,onCompositionStart:zr,onCompositionEnd:cn,className:w==null?void 0:w.textarea,style:(0,ue.Z)((0,ue.Z)({},q==null?void 0:q.textarea),{},{resize:k==null?void 0:k.resize}),disabled:p,prefixCls:xr,onResize:yi,ref:Ye}))});return Ca}),Le=ot,Ce=Le},39417:function(xn,qt,x){"use strict";x.d(qt,{Z:function(){return he}});var ge=x(92413),ue=x(400),Q=x(37061),Te=x(33708),ie=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),O=x(39378),R=function(Be){for(var je=Be.prefixCls,ee=Be.level,ce=Be.isStart,D=Be.isEnd,ot="".concat(je,"-indent-unit"),Le=[],Ce=0;Ce<ee;Ce+=1){var Re;Le.push(_.createElement("span",{key:Ce,className:Z()(ot,(Re={},(0,ue.Z)(Re,"".concat(ot,"-start"),ce[Ce]),(0,ue.Z)(Re,"".concat(ot,"-end"),D[Ce]),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="---",z=function(Ne){(0,f.Z)(je,Ne);var Be=(0,E.Z)(je);function je(){var ee;(0,ie.Z)(this,je);for(var ce=arguments.length,D=new Array(ce),ot=0;ot<ce;ot++)D[ot]=arguments[ot];return ee=Be.call.apply(Be,[this].concat(D)),ee.state={dragNodeHighlight:!1},ee.selectHandle=void 0,ee.cacheIndent=void 0,ee.onSelectorClick=function(Le){var Ce=ee.props.context.onNodeClick;Ce(Le,(0,K.F)(ee.props)),ee.isSelectable()?ee.onSelect(Le):ee.onCheck(Le)},ee.onSelectorDoubleClick=function(Le){var Ce=ee.props.context.onNodeDoubleClick;Ce(Le,(0,K.F)(ee.props))},ee.onSelect=function(Le){if(!ee.isDisabled()){var Ce=ee.props.context.onNodeSelect;Ce(Le,(0,K.F)(ee.props))}},ee.onCheck=function(Le){if(!ee.isDisabled()){var Ce=ee.props,Re=Ce.disableCheckbox,ve=Ce.checked,Pe=ee.props.context.onNodeCheck;if(!(!ee.isCheckable()||Re)){var fe=!ve;Pe(Le,(0,K.F)(ee.props),fe)}}},ee.onMouseEnter=function(Le){var Ce=ee.props.context.onNodeMouseEnter;Ce(Le,(0,K.F)(ee.props))},ee.onMouseLeave=function(Le){var Ce=ee.props.context.onNodeMouseLeave;Ce(Le,(0,K.F)(ee.props))},ee.onContextMenu=function(Le){var Ce=ee.props.context.onNodeContextMenu;Ce(Le,(0,K.F)(ee.props))},ee.onDragStart=function(Le){var Ce=ee.props.context.onNodeDragStart;Le.stopPropagation(),ee.setState({dragNodeHighlight:!0}),Ce(Le,(0,B.Z)(ee));try{Le.dataTransfer.setData("text/plain","")}catch(Re){}},ee.onDragEnter=function(Le){var Ce=ee.props.context.onNodeDragEnter;Le.preventDefault(),Le.stopPropagation(),Ce(Le,(0,B.Z)(ee))},ee.onDragOver=function(Le){var Ce=ee.props.context.onNodeDragOver;Le.preventDefault(),Le.stopPropagation(),Ce(Le,(0,B.Z)(ee))},ee.onDragLeave=function(Le){var Ce=ee.props.context.onNodeDragLeave;Le.stopPropagation(),Ce(Le,(0,B.Z)(ee))},ee.onDragEnd=function(Le){var Ce=ee.props.context.onNodeDragEnd;Le.stopPropagation(),ee.setState({dragNodeHighlight:!1}),Ce(Le,(0,B.Z)(ee))},ee.onDrop=function(Le){var Ce=ee.props.context.onNodeDrop;Le.preventDefault(),Le.stopPropagation(),ee.setState({dragNodeHighlight:!1}),Ce(Le,(0,B.Z)(ee))},ee.onExpand=function(Le){var Ce=ee.props,Re=Ce.loading,ve=Ce.context.onNodeExpand;Re||ve(Le,(0,K.F)(ee.props))},ee.setSelectHandle=function(Le){ee.selectHandle=Le},ee.getNodeState=function(){var Le=ee.props.expanded;return ee.isLeaf()?null:Le?te:X},ee.hasChildren=function(){var Le=ee.props.eventKey,Ce=ee.props.context.keyEntities,Re=(0,Y.Z)(Ce,Le)||{},ve=Re.children;return!!(ve||[]).length},ee.isLeaf=function(){var Le=ee.props,Ce=Le.isLeaf,Re=Le.loaded,ve=ee.props.context.loadData,Pe=ee.hasChildren();return Ce===!1?!1:Ce||!ve&&!Pe||ve&&Re&&!Pe},ee.isDisabled=function(){var Le=ee.props.disabled,Ce=ee.props.context.disabled;return!!(Ce||Le)},ee.isCheckable=function(){var Le=ee.props.checkable,Ce=ee.props.context.checkable;return!Ce||Le===!1?!1:Ce},ee.syncLoadData=function(Le){var Ce=Le.expanded,Re=Le.loading,ve=Le.loaded,Pe=ee.props.context,fe=Pe.loadData,ye=Pe.onNodeLoad;Re||fe&&Ce&&!ee.isLeaf()&&!ee.hasChildren()&&!ve&&ye((0,K.F)(ee.props))},ee.isDraggable=function(){var Le=ee.props,Ce=Le.data,Re=Le.context.draggable;return!!(Re&&(!Re.nodeDraggable||Re.nodeDraggable(Ce)))},ee.renderDragHandler=function(){var Le=ee.props.context,Ce=Le.draggable,Re=Le.prefixCls;return Ce!=null&&Ce.icon?_.createElement("span",{className:"".concat(Re,"-draggable-icon")},Ce.icon):null},ee.renderSwitcherIconDom=function(Le){var Ce=ee.props.switcherIcon,Re=ee.props.context.switcherIcon,ve=Ce||Re;return typeof ve=="function"?ve((0,Te.Z)((0,Te.Z)({},ee.props),{},{isLeaf:Le})):ve},ee.renderSwitcher=function(){var Le=ee.props.expanded,Ce=ee.props.context.prefixCls;if(ee.isLeaf()){var Re=ee.renderSwitcherIconDom(!0);return Re!==!1?_.createElement("span",{className:Z()("".concat(Ce,"-switcher"),"".concat(Ce,"-switcher-noop"))},Re):null}var ve=Z()("".concat(Ce,"-switcher"),"".concat(Ce,"-switcher_").concat(Le?te:X)),Pe=ee.renderSwitcherIconDom(!1);return Pe!==!1?_.createElement("span",{onClick:ee.onExpand,className:ve},Pe):null},ee.renderCheckbox=function(){var Le=ee.props,Ce=Le.checked,Re=Le.halfChecked,ve=Le.disableCheckbox,Pe=ee.props.context.prefixCls,fe=ee.isDisabled(),ye=ee.isCheckable();if(!ye)return null;var at=typeof ye!="boolean"?ye:null;return _.createElement("span",{className:Z()("".concat(Pe,"-checkbox"),Ce&&"".concat(Pe,"-checkbox-checked"),!Ce&&Re&&"".concat(Pe,"-checkbox-indeterminate"),(fe||ve)&&"".concat(Pe,"-checkbox-disabled")),onClick:ee.onCheck},at)},ee.renderIcon=function(){var Le=ee.props.loading,Ce=ee.props.context.prefixCls;return _.createElement("span",{className:Z()("".concat(Ce,"-iconEle"),"".concat(Ce,"-icon__").concat(ee.getNodeState()||"docu"),Le&&"".concat(Ce,"-icon_loading"))})},ee.renderSelector=function(){var Le=ee.state.dragNodeHighlight,Ce=ee.props,Re=Ce.title,ve=Re===void 0?W:Re,Pe=Ce.selected,fe=Ce.icon,ye=Ce.loading,at=Ce.data,tt=ee.props.context,rt=tt.prefixCls,At=tt.showIcon,Nt=tt.icon,jt=tt.loadData,Qt=tt.titleRender,ur=ee.isDisabled(),or="".concat(rt,"-node-content-wrapper"),xr;if(At){var fr=fe||Nt;xr=fr?_.createElement("span",{className:Z()("".concat(rt,"-iconEle"),"".concat(rt,"-icon__customize"))},typeof fr=="function"?fr(ee.props):fr):ee.renderIcon()}else jt&&ye&&(xr=ee.renderIcon());var L;typeof ve=="function"?L=ve(at):Qt?L=Qt(at):L=ve;var nt=_.createElement("span",{className:"".concat(rt,"-title")},L);return _.createElement("span",{ref:ee.setSelectHandle,title:typeof ve=="string"?ve:"",className:Z()("".concat(or),"".concat(or,"-").concat(ee.getNodeState()||"normal"),!ur&&(Pe||Le)&&"".concat(rt,"-node-selected")),onMouseEnter:ee.onMouseEnter,onMouseLeave:ee.onMouseLeave,onContextMenu:ee.onContextMenu,onClick:ee.onSelectorClick,onDoubleClick:ee.onSelectorDoubleClick},xr,nt,ee.renderDropIndicator())},ee.renderDropIndicator=function(){var Le=ee.props,Ce=Le.disabled,Re=Le.eventKey,ve=ee.props.context,Pe=ve.draggable,fe=ve.dropLevelOffset,ye=ve.dropPosition,at=ve.prefixCls,tt=ve.indent,rt=ve.dropIndicatorRender,At=ve.dragOverNodeKey,Nt=ve.direction,jt=!!Pe,Qt=!Ce&&jt&&At===Re,ur=tt!=null?tt:ee.cacheIndent;return ee.cacheIndent=tt,Qt?rt({dropPosition:ye,dropLevelOffset:fe,indent:ur,prefixCls:at,direction:Nt}):null},ee}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,D=this.props.context.selectable;return typeof ce=="boolean"?ce:D}},{key:"render",value:function(){var ce,D=this.props,ot=D.eventKey,Le=D.className,Ce=D.style,Re=D.dragOver,ve=D.dragOverGapTop,Pe=D.dragOverGapBottom,fe=D.isLeaf,ye=D.isStart,at=D.isEnd,tt=D.expanded,rt=D.selected,At=D.checked,Nt=D.halfChecked,jt=D.loading,Qt=D.domRef,ur=D.active,or=D.data,xr=D.onMouseMove,fr=D.selectable,L=(0,Q.Z)(D,se),nt=this.props.context,k=nt.prefixCls,p=nt.filterTreeNode,d=nt.keyEntities,w=nt.dropContainerKey,q=nt.dropTargetKey,Se=nt.draggingNodeKey,H=this.isDisabled(),ne=(0,S.Z)(L,{aria:!0,data:!0}),Ge=(0,Y.Z)(d,ot)||{},xe=Ge.level,we=at[at.length-1],Ye=this.isDraggable(),_t=!H&&Ye,pe=Se===ot,ut=fr!==void 0?{"aria-selected":!!fr}:void 0;return _.createElement("div",(0,ge.Z)({ref:Qt,className:Z()(Le,"".concat(k,"-treenode"),(ce={},(0,ue.Z)(ce,"".concat(k,"-treenode-disabled"),H),(0,ue.Z)(ce,"".concat(k,"-treenode-switcher-").concat(tt?"open":"close"),!fe),(0,ue.Z)(ce,"".concat(k,"-treenode-checkbox-checked"),At),(0,ue.Z)(ce,"".concat(k,"-treenode-checkbox-indeterminate"),Nt),(0,ue.Z)(ce,"".concat(k,"-treenode-selected"),rt),(0,ue.Z)(ce,"".concat(k,"-treenode-loading"),jt),(0,ue.Z)(ce,"".concat(k,"-treenode-active"),ur),(0,ue.Z)(ce,"".concat(k,"-treenode-leaf-last"),we),(0,ue.Z)(ce,"".concat(k,"-treenode-draggable"),Ye),(0,ue.Z)(ce,"dragging",pe),(0,ue.Z)(ce,"drop-target",q===ot),(0,ue.Z)(ce,"drop-container",w===ot),(0,ue.Z)(ce,"drag-over",!H&&Re),(0,ue.Z)(ce,"drag-over-gap-top",!H&&ve),(0,ue.Z)(ce,"drag-over-gap-bottom",!H&&Pe),(0,ue.Z)(ce,"filter-node",p&&p((0,K.F)(this.props))),ce)),style:Ce,draggable:_t,"aria-grabbed":pe,onDragStart:_t?this.onDragStart:void 0,onDragEnter:Ye?this.onDragEnter:void 0,onDragOver:Ye?this.onDragOver:void 0,onDragLeave:Ye?this.onDragLeave:void 0,onDrop:Ye?this.onDrop:void 0,onDragEnd:Ye?this.onDragEnd:void 0,onMouseMove:xr},ut,ne),_.createElement(I,{prefixCls:k,level:xe,isStart:ye,isEnd:at}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),je}(_.Component),le=function(Be){return _.createElement(O.k.Consumer,null,function(je){return _.createElement(z,(0,ge.Z)({},Be,{context:je}))})};le.displayName="TreeNode",le.isTreeNode=1;var he=le},39378:function(xn,qt,x){"use strict";x.d(qt,{k:function(){return ue}});var ge=x(59301),ue=ge.createContext(null)},23130:function(xn,qt,x){"use strict";x.d(qt,{O:function(){return he.Z},Z:function(){return nt}});var ge=x(92413),ue=x(400),Q=x(39559),Te=x(33708),ie=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),O=x(26112),R=x(48736),I=x(59301),Y=x(39378);function K(k){var p=k.dropPosition,d=k.dropLevelOffset,w=k.indent,q={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(p){case-1:q.top=0,q.left=-d*w;break;case 1:q.bottom=0,q.left=-d*w;break;case 0:q.bottom=0,q.left=w;break}return I.createElement("div",{style:q})}function se(k){if(k==null)throw new TypeError("Cannot destructure "+k)}var te=x(33606),X=x(37061),W=x(34280),z=x(24916),le=x(77900),he=x(39417);function Ne(k,p){var d=I.useState(!1),w=(0,te.Z)(d,2),q=w[0],Se=w[1];I.useLayoutEffect(function(){if(q)return k(),function(){p()}},[q]),I.useLayoutEffect(function(){return Se(!0),function(){Se(!1)}},[])}var Be=x(71430),je=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ee=function(p,d){var w=p.className,q=p.style,Se=p.motion,H=p.motionNodes,ne=p.motionType,Ge=p.onMotionStart,xe=p.onMotionEnd,we=p.active,Ye=p.treeNodeRequiredProps,_t=(0,X.Z)(p,je),pe=I.useState(!0),ut=(0,te.Z)(pe,2),ct=ut[0],Ie=ut[1],ke=I.useContext(Y.k),vt=ke.prefixCls,zt=H&&ne!=="hide";(0,W.Z)(function(){H&&zt!==ct&&Ie(zt)},[H]);var Ut=function(){H&&Ge()},ar=I.useRef(!1),Ir=function(){H&&!ar.current&&(ar.current=!0,xe())};Ne(Ut,Ir);var Pr=function(Tr){zt===Tr&&Ir()};return H?I.createElement(le.default,(0,ge.Z)({ref:d,visible:ct},Se,{motionAppear:ne==="show",onVisibleChanged:Pr}),function(Kr,Tr){var cr=Kr.className,Ar=Kr.style;return I.createElement("div",{ref:Tr,className:S()("".concat(vt,"-treenode-motion"),cr),style:Ar},H.map(function(zr){var cn=(0,ge.Z)({},(se(zr.data),zr.data)),Sn=zr.title,An=zr.key,_n=zr.isStart,xi=zr.isEnd;delete cn.children;var Mr=(0,Be.H8)(An,Ye);return I.createElement(he.Z,(0,ge.Z)({},cn,Mr,{title:Sn,active:we,data:zr.data,key:An,isStart:_n,isEnd:xi}))}))}):I.createElement(he.Z,(0,ge.Z)({domRef:d,className:w,style:q},_t,{active:we}))};ee.displayName="MotionTreeNode";var ce=I.forwardRef(ee),D=ce;function ot(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],d=k.length,w=p.length;if(Math.abs(d-w)!==1)return{add:!1,key:null};function q(Se,H){var ne=new Map;Se.forEach(function(xe){ne.set(xe,!0)});var Ge=H.filter(function(xe){return!ne.has(xe)});return Ge.length===1?Ge[0]:null}return d<w?{add:!0,key:q(k,p)}:{add:!1,key:q(p,k)}}function Le(k,p,d){var w=k.findIndex(function(ne){return ne.key===d}),q=k[w+1],Se=p.findIndex(function(ne){return ne.key===d});if(q){var H=p.findIndex(function(ne){return ne.key===q.key});return p.slice(Se+1,H)}return p.slice(Se+1)}var Ce=["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(){},Pe="RC_TREE_MOTION_".concat(Math.random()),fe={key:Pe},ye={key:Pe,level:0,index:0,pos:"0",node:fe,nodes:[fe]},at={parent:null,children:[],pos:ye.pos,data:fe,title:null,key:Pe,isStart:[],isEnd:[]};function tt(k,p,d,w){return p===!1||!d?k:k.slice(0,Math.ceil(d/w)+1)}function rt(k){var p=k.key,d=k.pos;return(0,Be.km)(p,d)}function At(k){for(var p=String(k.data.key),d=k;d.parent;)d=d.parent,p="".concat(d.data.key," > ").concat(p);return p}var Nt=I.forwardRef(function(k,p){var d=k.prefixCls,w=k.data,q=k.selectable,Se=k.checkable,H=k.expandedKeys,ne=k.selectedKeys,Ge=k.checkedKeys,xe=k.loadedKeys,we=k.loadingKeys,Ye=k.halfCheckedKeys,_t=k.keyEntities,pe=k.disabled,ut=k.dragging,ct=k.dragOverNodeKey,Ie=k.dropPosition,ke=k.motion,vt=k.height,zt=k.itemHeight,Ut=k.virtual,ar=k.focusable,Ir=k.activeItem,Pr=k.focused,Kr=k.tabIndex,Tr=k.onKeyDown,cr=k.onFocus,Ar=k.onBlur,zr=k.onActiveChange,cn=k.onListChangeStart,Sn=k.onListChangeEnd,An=(0,X.Z)(k,Ce),_n=I.useRef(null),xi=I.useRef(null);I.useImperativeHandle(p,function(){return{scrollTo:function(qr){_n.current.scrollTo(qr)},getIndentWidth:function(){return xi.current.offsetWidth}}});var Mr=I.useState(H),ei=(0,te.Z)(Mr,2),Bi=ei[0],zn=ei[1],Oi=I.useState(w),yi=(0,te.Z)(Oi,2),Ki=yi[0],Ca=yi[1],Zi=I.useState(w),ni=(0,te.Z)(Zi,2),Si=ni[0],Ui=ni[1],me=I.useState([]),Ue=(0,te.Z)(me,2),Me=Ue[0],st=Ue[1],Zt=I.useState(null),Kt=(0,te.Z)(Zt,2),Br=Kt[0],hr=Kt[1],Ur=I.useRef(w);Ur.current=w;function Wr(){var Hr=Ur.current;Ca(Hr),Ui(Hr),st([]),hr(null),Sn()}(0,W.Z)(function(){zn(H);var Hr=ot(Bi,H);if(Hr.key!==null)if(Hr.add){var qr=Ki.findIndex(function(Pn){var ln=Pn.key;return ln===Hr.key}),gn=tt(Le(Ki,w,Hr.key),Ut,vt,zt),tn=Ki.slice();tn.splice(qr+1,0,at),Ui(tn),st(gn),hr("show")}else{var Mn=w.findIndex(function(Pn){var ln=Pn.key;return ln===Hr.key}),Rn=tt(Le(w,Ki,Hr.key),Ut,vt,zt),pi=w.slice();pi.splice(Mn+1,0,at),Ui(pi),st(Rn),hr("hide")}else Ki!==w&&(Ca(w),Ui(w))},[H,w]),I.useEffect(function(){ut||Wr()},[ut]);var en=ke?Si:w,Vr={expandedKeys:H,selectedKeys:ne,loadedKeys:xe,loadingKeys:we,checkedKeys:Ge,halfCheckedKeys:Ye,dragOverNodeKey:ct,dropPosition:Ie,keyEntities:_t};return I.createElement(I.Fragment,null,Pr&&Ir&&I.createElement("span",{style:Re,"aria-live":"assertive"},At(Ir)),I.createElement("div",null,I.createElement("input",{style:Re,disabled:ar===!1||pe,tabIndex:ar!==!1?Kr:null,onKeyDown:Tr,onFocus:cr,onBlur:Ar,value:"",onChange:ve,"aria-label":"for screen reader"})),I.createElement("div",{className:"".concat(d,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},I.createElement("div",{className:"".concat(d,"-indent")},I.createElement("div",{ref:xi,className:"".concat(d,"-indent-unit")}))),I.createElement(z.Z,(0,ge.Z)({},An,{data:en,itemKey:rt,height:vt,fullHeight:!1,virtual:Ut,itemHeight:zt,prefixCls:"".concat(d,"-list"),ref:_n,onVisibleChange:function(qr,gn){var tn=new Set(qr),Mn=gn.filter(function(Rn){return!tn.has(Rn)});Mn.some(function(Rn){return rt(Rn)===Pe})&&Wr()}}),function(Hr){var qr=Hr.pos,gn=(0,ge.Z)({},(se(Hr.data),Hr.data)),tn=Hr.title,Mn=Hr.key,Rn=Hr.isStart,pi=Hr.isEnd,Pn=(0,Be.km)(Mn,qr);delete gn.key,delete gn.children;var ln=(0,Be.H8)(Pn,Vr);return I.createElement(D,(0,ge.Z)({},gn,ln,{title:tn,active:!!Ir&&Mn===Ir.key,pos:qr,data:Hr.data,isStart:Rn,isEnd:pi,motion:ke,motionNodes:Mn===Pe?Me:null,motionType:Br,onMotionStart:cn,onMotionEnd:Wr,treeNodeRequiredProps:Vr,onMouseMove:function(){zr(null)}}))}))});Nt.displayName="NodeList";var jt=Nt,Qt=x(35654),ur=x(90782),or=x(67841),xr=10,fr=function(k){(0,E.Z)(d,k);var p=(0,h.Z)(d);function d(){var w;(0,G.Z)(this,d);for(var q=arguments.length,Se=new Array(q),H=0;H<q;H++)Se[H]=arguments[H];return w=p.call.apply(p,[this].concat(Se)),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,Be.w$)()},w.dragStartMousePosition=null,w.dragNode=void 0,w.currentMouseOverDroppableNodeKey=null,w.listRef=I.createRef(),w.onNodeDragStart=function(ne,Ge){var xe=w.state,we=xe.expandedKeys,Ye=xe.keyEntities,_t=w.props.onDragStart,pe=Ge.props.eventKey;w.dragNode=Ge,w.dragStartMousePosition={x:ne.clientX,y:ne.clientY};var ut=(0,Qt._5)(we,pe);w.setState({draggingNodeKey:pe,dragChildrenKeys:(0,Qt.wA)(pe,Ye),indent:w.listRef.current.getIndentWidth()}),w.setExpandedKeys(ut),window.addEventListener("dragend",w.onWindowDragEnd),_t==null||_t({event:ne,node:(0,Be.F)(Ge.props)})},w.onNodeDragEnter=function(ne,Ge){var xe=w.state,we=xe.expandedKeys,Ye=xe.keyEntities,_t=xe.dragChildrenKeys,pe=xe.flattenNodes,ut=xe.indent,ct=w.props,Ie=ct.onDragEnter,ke=ct.onExpand,vt=ct.allowDrop,zt=ct.direction,Ut=Ge.props,ar=Ut.pos,Ir=Ut.eventKey,Pr=(0,f.Z)(w),Kr=Pr.dragNode;if(w.currentMouseOverDroppableNodeKey!==Ir&&(w.currentMouseOverDroppableNodeKey=Ir),!Kr){w.resetDragState();return}var Tr=(0,Qt.OM)(ne,Kr,Ge,ut,w.dragStartMousePosition,vt,pe,Ye,we,zt),cr=Tr.dropPosition,Ar=Tr.dropLevelOffset,zr=Tr.dropTargetKey,cn=Tr.dropContainerKey,Sn=Tr.dropTargetPos,An=Tr.dropAllowed,_n=Tr.dragOverNodeKey;if(_t.indexOf(zr)!==-1||!An){w.resetDragState();return}if(w.delayedDragEnterLogic||(w.delayedDragEnterLogic={}),Object.keys(w.delayedDragEnterLogic).forEach(function(xi){clearTimeout(w.delayedDragEnterLogic[xi])}),Kr.props.eventKey!==Ge.props.eventKey&&(ne.persist(),w.delayedDragEnterLogic[ar]=window.setTimeout(function(){if(w.state.draggingNodeKey!==null){var xi=(0,ie.Z)(we),Mr=(0,or.Z)(Ye,Ge.props.eventKey);Mr&&(Mr.children||[]).length&&(xi=(0,Qt.L0)(we,Ge.props.eventKey)),"expandedKeys"in w.props||w.setExpandedKeys(xi),ke==null||ke(xi,{node:(0,Be.F)(Ge.props),expanded:!0,nativeEvent:ne.nativeEvent})}},800)),Kr.props.eventKey===zr&&Ar===0){w.resetDragState();return}w.setState({dragOverNodeKey:_n,dropPosition:cr,dropLevelOffset:Ar,dropTargetKey:zr,dropContainerKey:cn,dropTargetPos:Sn,dropAllowed:An}),Ie==null||Ie({event:ne,node:(0,Be.F)(Ge.props),expandedKeys:we})},w.onNodeDragOver=function(ne,Ge){var xe=w.state,we=xe.dragChildrenKeys,Ye=xe.flattenNodes,_t=xe.keyEntities,pe=xe.expandedKeys,ut=xe.indent,ct=w.props,Ie=ct.onDragOver,ke=ct.allowDrop,vt=ct.direction,zt=(0,f.Z)(w),Ut=zt.dragNode;if(Ut){var ar=(0,Qt.OM)(ne,Ut,Ge,ut,w.dragStartMousePosition,ke,Ye,_t,pe,vt),Ir=ar.dropPosition,Pr=ar.dropLevelOffset,Kr=ar.dropTargetKey,Tr=ar.dropContainerKey,cr=ar.dropAllowed,Ar=ar.dropTargetPos,zr=ar.dragOverNodeKey;we.indexOf(Kr)!==-1||!cr||(Ut.props.eventKey===Kr&&Pr===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():Ir===w.state.dropPosition&&Pr===w.state.dropLevelOffset&&Kr===w.state.dropTargetKey&&Tr===w.state.dropContainerKey&&Ar===w.state.dropTargetPos&&cr===w.state.dropAllowed&&zr===w.state.dragOverNodeKey||w.setState({dropPosition:Ir,dropLevelOffset:Pr,dropTargetKey:Kr,dropContainerKey:Tr,dropTargetPos:Ar,dropAllowed:cr,dragOverNodeKey:zr}),Ie==null||Ie({event:ne,node:(0,Be.F)(Ge.props)}))}},w.onNodeDragLeave=function(ne,Ge){w.currentMouseOverDroppableNodeKey===Ge.props.eventKey&&!ne.currentTarget.contains(ne.relatedTarget)&&(w.resetDragState(),w.currentMouseOverDroppableNodeKey=null);var xe=w.props.onDragLeave;xe==null||xe({event:ne,node:(0,Be.F)(Ge.props)})},w.onWindowDragEnd=function(ne){w.onNodeDragEnd(ne,null,!0),window.removeEventListener("dragend",w.onWindowDragEnd)},w.onNodeDragEnd=function(ne,Ge){var xe=w.props.onDragEnd;w.setState({dragOverNodeKey:null}),w.cleanDragState(),xe==null||xe({event:ne,node:(0,Be.F)(Ge.props)}),w.dragNode=null,window.removeEventListener("dragend",w.onWindowDragEnd)},w.onNodeDrop=function(ne,Ge){var xe,we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ye=w.state,_t=Ye.dragChildrenKeys,pe=Ye.dropPosition,ut=Ye.dropTargetKey,ct=Ye.dropTargetPos,Ie=Ye.dropAllowed;if(Ie){var ke=w.props.onDrop;if(w.setState({dragOverNodeKey:null}),w.cleanDragState(),ut!==null){var vt=(0,Te.Z)((0,Te.Z)({},(0,Be.H8)(ut,w.getTreeNodeRequiredProps())),{},{active:((xe=w.getActiveItem())===null||xe===void 0?void 0:xe.key)===ut,data:(0,or.Z)(w.state.keyEntities,ut).node}),zt=_t.indexOf(ut)!==-1;(0,R.ZP)(!zt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ut=(0,Qt.yx)(ct),ar={event:ne,node:(0,Be.F)(vt),dragNode:w.dragNode?(0,Be.F)(w.dragNode.props):null,dragNodesKeys:[w.dragNode.props.eventKey].concat(_t),dropToGap:pe!==0,dropPosition:pe+Number(Ut[Ut.length-1])};we||ke==null||ke(ar),w.dragNode=null}}},w.cleanDragState=function(){var ne=w.state.draggingNodeKey;ne!==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(ne,Ge){var xe=w.state,we=xe.expandedKeys,Ye=xe.flattenNodes,_t=Ge.expanded,pe=Ge.key,ut=Ge.isLeaf;if(!(ut||ne.shiftKey||ne.metaKey||ne.ctrlKey)){var ct=Ye.filter(function(ke){return ke.key===pe})[0],Ie=(0,Be.F)((0,Te.Z)((0,Te.Z)({},(0,Be.H8)(pe,w.getTreeNodeRequiredProps())),{},{data:ct.data}));w.setExpandedKeys(_t?(0,Qt._5)(we,pe):(0,Qt.L0)(we,pe)),w.onNodeExpand(ne,Ie)}},w.onNodeClick=function(ne,Ge){var xe=w.props,we=xe.onClick,Ye=xe.expandAction;Ye==="click"&&w.triggerExpandActionExpand(ne,Ge),we==null||we(ne,Ge)},w.onNodeDoubleClick=function(ne,Ge){var xe=w.props,we=xe.onDoubleClick,Ye=xe.expandAction;Ye==="doubleClick"&&w.triggerExpandActionExpand(ne,Ge),we==null||we(ne,Ge)},w.onNodeSelect=function(ne,Ge){var xe=w.state.selectedKeys,we=w.state,Ye=we.keyEntities,_t=we.fieldNames,pe=w.props,ut=pe.onSelect,ct=pe.multiple,Ie=Ge.selected,ke=Ge[_t.key],vt=!Ie;vt?ct?xe=(0,Qt.L0)(xe,ke):xe=[ke]:xe=(0,Qt._5)(xe,ke);var zt=xe.map(function(Ut){var ar=(0,or.Z)(Ye,Ut);return ar?ar.node:null}).filter(function(Ut){return Ut});w.setUncontrolledState({selectedKeys:xe}),ut==null||ut(xe,{event:"select",selected:vt,node:Ge,selectedNodes:zt,nativeEvent:ne.nativeEvent})},w.onNodeCheck=function(ne,Ge,xe){var we=w.state,Ye=we.keyEntities,_t=we.checkedKeys,pe=we.halfCheckedKeys,ut=w.props,ct=ut.checkStrictly,Ie=ut.onCheck,ke=Ge.key,vt,zt={event:"check",node:Ge,checked:xe,nativeEvent:ne.nativeEvent};if(ct){var Ut=xe?(0,Qt.L0)(_t,ke):(0,Qt._5)(_t,ke),ar=(0,Qt._5)(pe,ke);vt={checked:Ut,halfChecked:ar},zt.checkedNodes=Ut.map(function(Ar){return(0,or.Z)(Ye,Ar)}).filter(function(Ar){return Ar}).map(function(Ar){return Ar.node}),w.setUncontrolledState({checkedKeys:Ut})}else{var Ir=(0,ur.S)([].concat((0,ie.Z)(_t),[ke]),!0,Ye),Pr=Ir.checkedKeys,Kr=Ir.halfCheckedKeys;if(!xe){var Tr=new Set(Pr);Tr.delete(ke);var cr=(0,ur.S)(Array.from(Tr),{checked:!1,halfCheckedKeys:Kr},Ye);Pr=cr.checkedKeys,Kr=cr.halfCheckedKeys}vt=Pr,zt.checkedNodes=[],zt.checkedNodesPositions=[],zt.halfCheckedKeys=Kr,Pr.forEach(function(Ar){var zr=(0,or.Z)(Ye,Ar);if(zr){var cn=zr.node,Sn=zr.pos;zt.checkedNodes.push(cn),zt.checkedNodesPositions.push({node:cn,pos:Sn})}}),w.setUncontrolledState({checkedKeys:Pr},!1,{halfCheckedKeys:Kr})}Ie==null||Ie(vt,zt)},w.onNodeLoad=function(ne){var Ge=ne.key,xe=new Promise(function(we,Ye){w.setState(function(_t){var pe=_t.loadedKeys,ut=pe===void 0?[]:pe,ct=_t.loadingKeys,Ie=ct===void 0?[]:ct,ke=w.props,vt=ke.loadData,zt=ke.onLoad;if(!vt||ut.indexOf(Ge)!==-1||Ie.indexOf(Ge)!==-1)return null;var Ut=vt(ne);return Ut.then(function(){var ar=w.state.loadedKeys,Ir=(0,Qt.L0)(ar,Ge);zt==null||zt(Ir,{event:"load",node:ne}),w.setUncontrolledState({loadedKeys:Ir}),w.setState(function(Pr){return{loadingKeys:(0,Qt._5)(Pr.loadingKeys,Ge)}}),we()}).catch(function(ar){if(w.setState(function(Pr){return{loadingKeys:(0,Qt._5)(Pr.loadingKeys,Ge)}}),w.loadingRetryTimes[Ge]=(w.loadingRetryTimes[Ge]||0)+1,w.loadingRetryTimes[Ge]>=xr){var Ir=w.state.loadedKeys;(0,R.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),w.setUncontrolledState({loadedKeys:(0,Qt.L0)(Ir,Ge)}),we()}Ye(ar)}),{loadingKeys:(0,Qt.L0)(Ie,Ge)}})});return xe.catch(function(){}),xe},w.onNodeMouseEnter=function(ne,Ge){var xe=w.props.onMouseEnter;xe==null||xe({event:ne,node:Ge})},w.onNodeMouseLeave=function(ne,Ge){var xe=w.props.onMouseLeave;xe==null||xe({event:ne,node:Ge})},w.onNodeContextMenu=function(ne,Ge){var xe=w.props.onRightClick;xe&&(ne.preventDefault(),xe({event:ne,node:Ge}))},w.onFocus=function(){var ne=w.props.onFocus;w.setState({focused:!0});for(var Ge=arguments.length,xe=new Array(Ge),we=0;we<Ge;we++)xe[we]=arguments[we];ne==null||ne.apply(void 0,xe)},w.onBlur=function(){var ne=w.props.onBlur;w.setState({focused:!1}),w.onActiveChange(null);for(var Ge=arguments.length,xe=new Array(Ge),we=0;we<Ge;we++)xe[we]=arguments[we];ne==null||ne.apply(void 0,xe)},w.getTreeNodeRequiredProps=function(){var ne=w.state,Ge=ne.expandedKeys,xe=ne.selectedKeys,we=ne.loadedKeys,Ye=ne.loadingKeys,_t=ne.checkedKeys,pe=ne.halfCheckedKeys,ut=ne.dragOverNodeKey,ct=ne.dropPosition,Ie=ne.keyEntities;return{expandedKeys:Ge||[],selectedKeys:xe||[],loadedKeys:we||[],loadingKeys:Ye||[],checkedKeys:_t||[],halfCheckedKeys:pe||[],dragOverNodeKey:ut,dropPosition:ct,keyEntities:Ie}},w.setExpandedKeys=function(ne){var Ge=w.state,xe=Ge.treeData,we=Ge.fieldNames,Ye=(0,Be.oH)(xe,ne,we);w.setUncontrolledState({expandedKeys:ne,flattenNodes:Ye},!0)},w.onNodeExpand=function(ne,Ge){var xe=w.state.expandedKeys,we=w.state,Ye=we.listChanging,_t=we.fieldNames,pe=w.props,ut=pe.onExpand,ct=pe.loadData,Ie=Ge.expanded,ke=Ge[_t.key];if(!Ye){var vt=xe.indexOf(ke),zt=!Ie;if((0,R.ZP)(Ie&&vt!==-1||!Ie&&vt===-1,"Expand state not sync with index check"),zt?xe=(0,Qt.L0)(xe,ke):xe=(0,Qt._5)(xe,ke),w.setExpandedKeys(xe),ut==null||ut(xe,{node:Ge,expanded:zt,nativeEvent:ne.nativeEvent}),zt&&ct){var Ut=w.onNodeLoad(Ge);Ut&&Ut.then(function(){var ar=(0,Be.oH)(w.state.treeData,xe,_t);w.setUncontrolledState({flattenNodes:ar})}).catch(function(){var ar=w.state.expandedKeys,Ir=(0,Qt._5)(ar,ke);w.setExpandedKeys(Ir)})}}},w.onListChangeStart=function(){w.setUncontrolledState({listChanging:!0})},w.onListChangeEnd=function(){setTimeout(function(){w.setUncontrolledState({listChanging:!1})})},w.onActiveChange=function(ne){var Ge=w.state.activeKey,xe=w.props.onActiveChange;Ge!==ne&&(w.setState({activeKey:ne}),ne!==null&&w.scrollTo({key:ne}),xe==null||xe(ne))},w.getActiveItem=function(){var ne=w.state,Ge=ne.activeKey,xe=ne.flattenNodes;return Ge===null?null:xe.find(function(we){var Ye=we.key;return Ye===Ge})||null},w.offsetActiveKey=function(ne){var Ge=w.state,xe=Ge.flattenNodes,we=Ge.activeKey,Ye=xe.findIndex(function(ut){var ct=ut.key;return ct===we});Ye===-1&&ne<0&&(Ye=xe.length),Ye=(Ye+ne+xe.length)%xe.length;var _t=xe[Ye];if(_t){var pe=_t.key;w.onActiveChange(pe)}else w.onActiveChange(null)},w.onKeyDown=function(ne){var Ge=w.state,xe=Ge.activeKey,we=Ge.expandedKeys,Ye=Ge.checkedKeys,_t=Ge.fieldNames,pe=w.props,ut=pe.onKeyDown,ct=pe.checkable,Ie=pe.selectable;switch(ne.which){case _.Z.UP:{w.offsetActiveKey(-1),ne.preventDefault();break}case _.Z.DOWN:{w.offsetActiveKey(1),ne.preventDefault();break}}var ke=w.getActiveItem();if(ke&&ke.data){var vt=w.getTreeNodeRequiredProps(),zt=ke.data.isLeaf===!1||!!(ke.data[_t.children]||[]).length,Ut=(0,Be.F)((0,Te.Z)((0,Te.Z)({},(0,Be.H8)(xe,vt)),{},{data:ke.data,active:!0}));switch(ne.which){case _.Z.LEFT:{zt&&we.includes(xe)?w.onNodeExpand({},Ut):ke.parent&&w.onActiveChange(ke.parent.key),ne.preventDefault();break}case _.Z.RIGHT:{zt&&!we.includes(xe)?w.onNodeExpand({},Ut):ke.children&&ke.children.length&&w.onActiveChange(ke.children[0].key),ne.preventDefault();break}case _.Z.ENTER:case _.Z.SPACE:{ct&&!Ut.disabled&&Ut.checkable!==!1&&!Ut.disableCheckbox?w.onNodeCheck({},Ut,!Ye.includes(xe)):!ct&&Ie&&!Ut.disabled&&Ut.selectable!==!1&&w.onNodeSelect({},Ut);break}}}ut==null||ut(ne)},w.setUncontrolledState=function(ne){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!w.destroyed){var we=!1,Ye=!0,_t={};Object.keys(ne).forEach(function(pe){if(pe in w.props){Ye=!1;return}we=!0,_t[pe]=ne[pe]}),we&&(!Ge||Ye)&&w.setState((0,Te.Z)((0,Te.Z)({},_t),xe))}},w.scrollTo=function(ne){w.listRef.current.scrollTo(ne)},w}return(0,B.Z)(d,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var q=this.props.activeKey;q!==void 0&&q!==this.state.activeKey&&(this.setState({activeKey:q}),q!==null&&this.scrollTo({key:q}))}},{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 q,Se=this.state,H=Se.focused,ne=Se.flattenNodes,Ge=Se.keyEntities,xe=Se.draggingNodeKey,we=Se.activeKey,Ye=Se.dropLevelOffset,_t=Se.dropContainerKey,pe=Se.dropTargetKey,ut=Se.dropPosition,ct=Se.dragOverNodeKey,Ie=Se.indent,ke=this.props,vt=ke.prefixCls,zt=ke.className,Ut=ke.style,ar=ke.showLine,Ir=ke.focusable,Pr=ke.tabIndex,Kr=Pr===void 0?0:Pr,Tr=ke.selectable,cr=ke.showIcon,Ar=ke.icon,zr=ke.switcherIcon,cn=ke.draggable,Sn=ke.checkable,An=ke.checkStrictly,_n=ke.disabled,xi=ke.motion,Mr=ke.loadData,ei=ke.filterTreeNode,Bi=ke.height,zn=ke.itemHeight,Oi=ke.virtual,yi=ke.titleRender,Ki=ke.dropIndicatorRender,Ca=ke.onContextMenu,Zi=ke.onScroll,ni=ke.direction,Si=ke.rootClassName,Ui=ke.rootStyle,me=(0,O.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:Tr,showIcon:cr,icon:Ar,switcherIcon:zr,draggable:Ue,draggingNodeKey:xe,checkable:Sn,checkStrictly:An,disabled:_n,keyEntities:Ge,dropLevelOffset:Ye,dropContainerKey:_t,dropTargetKey:pe,dropPosition:ut,dragOverNodeKey:ct,indent:Ie,direction:ni,dropIndicatorRender:Ki,loadData:Mr,filterTreeNode:ei,titleRender:yi,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,zt,Si,(q={},(0,ue.Z)(q,"".concat(vt,"-show-line"),ar),(0,ue.Z)(q,"".concat(vt,"-focused"),H),(0,ue.Z)(q,"".concat(vt,"-active-focused"),we!==null),q)),style:Ui},I.createElement(jt,(0,ge.Z)({ref:this.listRef,prefixCls:vt,style:Ut,data:ne,disabled:_n,selectable:Tr,checkable:!!Sn,motion:xi,dragging:xe!==null,height:Bi,itemHeight:zn,virtual:Oi,focusable:Ir,focused:H,tabIndex:Kr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ca,onScroll:Zi},this.getTreeNodeRequiredProps(),me))))}}],[{key:"getDerivedStateFromProps",value:function(q,Se){var H=Se.prevProps,ne={prevProps:q};function Ge(Ir){return!H&&Ir in q||H&&H[Ir]!==q[Ir]}var xe,we=Se.fieldNames;if(Ge("fieldNames")&&(we=(0,Be.w$)(q.fieldNames),ne.fieldNames=we),Ge("treeData")?xe=q.treeData:Ge("children")&&((0,R.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),xe=(0,Be.zn)(q.children)),xe){ne.treeData=xe;var Ye=(0,Be.I8)(xe,{fieldNames:we});ne.keyEntities=(0,Te.Z)((0,ue.Z)({},Pe,ye),Ye.keyEntities)}var _t=ne.keyEntities||Se.keyEntities;if(Ge("expandedKeys")||H&&Ge("autoExpandParent"))ne.expandedKeys=q.autoExpandParent||!H&&q.defaultExpandParent?(0,Qt.r7)(q.expandedKeys,_t):q.expandedKeys;else if(!H&&q.defaultExpandAll){var pe=(0,Te.Z)({},_t);delete pe[Pe],ne.expandedKeys=Object.keys(pe).map(function(Ir){return pe[Ir].key})}else!H&&q.defaultExpandedKeys&&(ne.expandedKeys=q.autoExpandParent||q.defaultExpandParent?(0,Qt.r7)(q.defaultExpandedKeys,_t):q.defaultExpandedKeys);if(ne.expandedKeys||delete ne.expandedKeys,xe||ne.expandedKeys){var ut=(0,Be.oH)(xe||Se.treeData,ne.expandedKeys||Se.expandedKeys,we);ne.flattenNodes=ut}if(q.selectable&&(Ge("selectedKeys")?ne.selectedKeys=(0,Qt.BT)(q.selectedKeys,q):!H&&q.defaultSelectedKeys&&(ne.selectedKeys=(0,Qt.BT)(q.defaultSelectedKeys,q))),q.checkable){var ct;if(Ge("checkedKeys")?ct=(0,Qt.E6)(q.checkedKeys)||{}:!H&&q.defaultCheckedKeys?ct=(0,Qt.E6)(q.defaultCheckedKeys)||{}:xe&&(ct=(0,Qt.E6)(q.checkedKeys)||{checkedKeys:Se.checkedKeys,halfCheckedKeys:Se.halfCheckedKeys}),ct){var Ie=ct,ke=Ie.checkedKeys,vt=ke===void 0?[]:ke,zt=Ie.halfCheckedKeys,Ut=zt===void 0?[]:zt;if(!q.checkStrictly){var ar=(0,ur.S)(vt,!0,_t);vt=ar.checkedKeys,Ut=ar.halfCheckedKeys}ne.checkedKeys=vt,ne.halfCheckedKeys=Ut}}return Ge("loadedKeys")&&(ne.loadedKeys=q.loadedKeys),ne}}]),d}(I.Component);fr.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},fr.TreeNode=he.Z;var L=fr,nt=L},35654:function(xn,qt,x){"use strict";x.d(qt,{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),ie=x(39417),G=x(67841),B=x(71430),f=null;function E(X,W){if(!X)return[];var z=X.slice(),le=z.indexOf(W);return le>=0&&z.splice(le,1),z}function h(X,W){var z=(X||[]).slice();return z.indexOf(W)===-1&&z.push(W),z}function Z(X){return X.split("-")}function S(X,W){var z=[],le=(0,G.Z)(W,X);function he(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ne.forEach(function(Be){var je=Be.key,ee=Be.children;z.push(je),he(ee)})}return he(le.children),z}function _(X){if(X.parent){var W=Z(X.pos);return Number(W[W.length-1])===X.parent.children.length-1}return!1}function O(X){var W=Z(X.pos);return Number(W[W.length-1])===0}function R(X,W,z,le,he,Ne,Be,je,ee,ce){var D,ot=X.clientX,Le=X.clientY,Ce=X.target.getBoundingClientRect(),Re=Ce.top,ve=Ce.height,Pe=(ce==="rtl"?-1:1)*(((he==null?void 0:he.x)||0)-ot),fe=(Pe-12)/le,ye=(0,G.Z)(je,z.props.eventKey);if(Le<Re+ve/2){var at=Be.findIndex(function(nt){return nt.key===ye.key}),tt=at<=0?0:at-1,rt=Be[tt].key;ye=(0,G.Z)(je,rt)}var At=ye.key,Nt=ye,jt=ye.key,Qt=0,ur=0;if(!ee.includes(At))for(var or=0;or<fe&&_(ye);or+=1)ye=ye.parent,ur+=1;var xr=W.props.data,fr=ye.node,L=!0;return O(ye)&&ye.level===0&&Le<Re+ve/2&&Ne({dragNode:xr,dropNode:fr,dropPosition:-1})&&ye.key===z.props.eventKey?Qt=-1:(Nt.children||[]).length&&ee.includes(jt)?Ne({dragNode:xr,dropNode:fr,dropPosition:0})?Qt=0:L=!1:ur===0?fe>-1.5?Ne({dragNode:xr,dropNode:fr,dropPosition:1})?Qt=1:L=!1:Ne({dragNode:xr,dropNode:fr,dropPosition:0})?Qt=0:Ne({dragNode:xr,dropNode:fr,dropPosition:1})?Qt=1:L=!1:Ne({dragNode:xr,dropNode:fr,dropPosition:1})?Qt=1:L=!1,{dropPosition:Qt,dropLevelOffset:ur,dropTargetKey:ye.key,dropTargetPos:ye.pos,dragOverNodeKey:jt,dropContainerKey:Qt===0?null:((D=ye.parent)===null||D===void 0?void 0:D.key)||null,dropAllowed:L}}function I(X,W){if(X){var z=W.multiple;return z?X.slice():X.length?[X[0]]:X}}var Y=function(W){return W};function K(X,W){if(!X)return[];var z=W||{},le=z.processProps,he=le===void 0?Y:le,Ne=Array.isArray(X)?X:[X];return Ne.map(function(Be){var je=Be.children,ee=_objectWithoutProperties(Be,f),ce=K(je,W);return React.createElement(TreeNode,_extends({key:ee.key},he(ee)),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 z=new Set;function le(he){if(!z.has(he)){var Ne=(0,G.Z)(W,he);if(Ne){z.add(he);var Be=Ne.parent,je=Ne.node;je.disabled||Be&&le(Be.key)}}}return(X||[]).forEach(function(he){le(he)}),(0,ge.Z)(z)}},90782:function(xn,qt,x){"use strict";x.d(qt,{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 ie(f,E,h,Z){for(var S=new Set(f),_=new Set,O=0;O<=h;O+=1){var R=E.get(O)||new Set;R.forEach(function(se){var te=se.key,X=se.node,W=se.children,z=W===void 0?[]:W;S.has(te)&&!Z(X)&&z.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,z=!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),!z&&(Ne||_.has(he))&&(z=!0)}),W&&S.add(te.key),z&&_.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),O=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,z=te.children,le=z===void 0?[]:z;!_.has(X)&&!O.has(X)&&!S(W)&&le.filter(function(he){return!S(he.node)}).forEach(function(he){_.delete(he.key)})})}O=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 z=!0,le=!1;(X.children||[]).filter(function(he){return!S(he.node)}).forEach(function(he){var Ne=he.key,Be=_.has(Ne);z&&!Be&&(z=!1),!le&&(Be||O.has(Ne))&&(le=!0)}),z||_.delete(X.key),le&&O.add(X.key),Y.add(X.key)}})}return{checkedKeys:Array.from(_),halfCheckedKeys:Array.from(Q(O,_))}}function B(f,E,h,Z){var S=[],_;Z?_=Z:_=Te;var O=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=ie(O,R,I,_):Y=G(O,E.halfCheckedKeys,R,I,_),Y}},67841:function(xn,qt,x){"use strict";x.d(qt,{Z:function(){return ge}});function ge(ue,Q){return ue[Q]}},71430:function(xn,qt,x){"use strict";x.d(qt,{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),ie=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||{},z=W.title,le=W._title,he=W.key,Ne=W.children,Be=z||"title";return{title:Be,_title:le||[Be],key:he||"key",children:Ne||"children"}}function O(X,W){var z=new Map;function le(he){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(he||[]).forEach(function(Be){var je=Be[W.key],ee=Be[W.children];warning(je!=null,"Tree node must have a certain key: [".concat(Ne).concat(je,"]"));var ce=String(je);warning(!z.has(ce)||je===null||je===void 0,"Same 'key' exist in the Tree: ".concat(ce)),z.set(ce,!0),le(ee,"".concat(Ne).concat(ce," > "))})}le(X)}function R(X){function W(z){var le=(0,ie.Z)(z);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,Be=he.props,je=Be.children,ee=(0,Te.Z)(Be,E),ce=(0,Q.Z)({key:Ne},ee),D=W(je);return D.length&&(ce.children=D),ce}).filter(function(he){return he})}return W(X)}function I(X,W,z){var le=_(z),he=le._title,Ne=le.key,Be=le.children,je=new Set(W===!0?[]:W),ee=[];function ce(D){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return D.map(function(Le,Ce){for(var Re=h(ot?ot.pos:"0",Ce),ve=S(Le[Ne],Re),Pe,fe=0;fe<he.length;fe+=1){var ye=he[fe];if(Le[ye]!==void 0){Pe=Le[ye];break}}var at=(0,Q.Z)((0,Q.Z)({},(0,G.Z)(Le,[].concat((0,ue.Z)(he),[Ne,Be]))),{},{title:Pe,key:ve,parent:ot,pos:Re,children:null,data:Le,isStart:[].concat((0,ue.Z)(ot?ot.isStart:[]),[Ce===0]),isEnd:[].concat((0,ue.Z)(ot?ot.isEnd:[]),[Ce===D.length-1])});return ee.push(at),W===!0||je.has(ve)?at.children=ce(Le[Be]||[],at):at.children=[],at})}return ce(X),ee}function Y(X,W,z){var le={};(0,ge.Z)(z)==="object"?le=z:le={externalGetKey:z},le=le||{};var he=le,Ne=he.childrenPropName,Be=he.externalGetKey,je=he.fieldNames,ee=_(je),ce=ee.key,D=ee.children,ot=Ne||D,Le;Be?typeof Be=="string"?Le=function(ve){return ve[Be]}:typeof Be=="function"&&(Le=function(ve){return Be(ve)}):Le=function(ve,Pe){return S(ve[ce],Pe)};function Ce(Re,ve,Pe,fe){var ye=Re?Re[ot]:X,at=Re?h(Pe.pos,ve):"0",tt=Re?[].concat((0,ue.Z)(fe),[Re]):[];if(Re){var rt=Le(Re,at),At={node:Re,index:ve,pos:at,key:rt,parentPos:Pe.node?Pe.pos:null,level:Pe.level+1,nodes:tt};W(At)}ye&&ye.forEach(function(Nt,jt){Ce(Nt,jt,{node:Re,pos:at,level:Pe?Pe.level+1:-1},tt)})}Ce(null)}function K(X){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=W.initWrapper,le=W.processEntity,he=W.onProcessFinished,Ne=W.externalGetKey,Be=W.childrenPropName,je=W.fieldNames,ee=arguments.length>2?arguments[2]:void 0,ce=Ne||ee,D={},ot={},Le={posEntities:D,keyEntities:ot};return z&&(Le=z(Le)||Le),Y(X,function(Ce){var Re=Ce.node,ve=Ce.index,Pe=Ce.pos,fe=Ce.key,ye=Ce.parentPos,at=Ce.level,tt=Ce.nodes,rt={node:Re,nodes:tt,index:ve,key:fe,pos:Pe,level:at},At=S(fe,Pe);D[Pe]=rt,ot[At]=rt,rt.parent=D[ye],rt.parent&&(rt.parent.children=rt.parent.children||[],rt.parent.children.push(rt)),le&&le(rt,Le)},{externalGetKey:ce,childrenPropName:Be,fieldNames:je}),he&&he(Le),Le}function se(X,W){var z=W.expandedKeys,le=W.selectedKeys,he=W.loadedKeys,Ne=W.loadingKeys,Be=W.checkedKeys,je=W.halfCheckedKeys,ee=W.dragOverNodeKey,ce=W.dropPosition,D=W.keyEntities,ot=(0,f.Z)(D,X),Le={eventKey:X,expanded:z.indexOf(X)!==-1,selected:le.indexOf(X)!==-1,loaded:he.indexOf(X)!==-1,loading:Ne.indexOf(X)!==-1,checked:Be.indexOf(X)!==-1,halfChecked:je.indexOf(X)!==-1,pos:String(ot?ot.pos:""),dragOver:ee===X&&ce===0,dragOverGapTop:ee===X&&ce===-1,dragOverGapBottom:ee===X&&ce===1};return Le}function te(X){var W=X.data,z=X.expanded,le=X.selected,he=X.checked,Ne=X.loaded,Be=X.loading,je=X.halfChecked,ee=X.dragOver,ce=X.dragOverGapTop,D=X.dragOverGapBottom,ot=X.pos,Le=X.active,Ce=X.eventKey,Re=(0,Q.Z)((0,Q.Z)({},W),{},{expanded:z,selected:le,checked:he,loaded:Ne,loading:Be,halfChecked:je,dragOver:ee,dragOverGapTop:ce,dragOverGapBottom:D,pos:ot,active:Le,key:Ce});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,qt,x){"use strict";x.d(qt,{Z:function(){return ue}});var ge=x(4676);function ue(Q,Te,ie,G){var B=ge.unstable_batchedUpdates?function(E){ge.unstable_batchedUpdates(ie,E)}:ie;return Q!=null&&Q.addEventListener&&Q.addEventListener(Te,B,G),{remove:function(){Q!=null&&Q.removeEventListener&&Q.removeEventListener(Te,B,G)}}}},55468:function(xn,qt,x){"use strict";x.d(qt,{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(O){return O.nodeType===1?O.ownerDocument.defaultView.getComputedStyle(O,null):{}}function ie(O,R,I){if(R=R.toLowerCase(),I==="auto"){if(R==="height")return O.offsetHeight;if(R==="width")return O.offsetWidth}return R in ue||(ue[R]=ge.test(R)),ue[R]?parseFloat(I)||0:I}function G(O,R){var I=arguments.length,Y=Te(O);return R=Q[R]?"cssFloat"in O.style?"cssFloat":"styleFloat":R,I===1?Y:ie(O,R,Y[R]||O.style[R])}function B(O,R,I){var Y=arguments.length;if(R=Q[R]?"cssFloat"in O.style?"cssFloat":"styleFloat":R,Y===3)return typeof I=="number"&&ge.test(R)&&(I="".concat(I,"px")),O.style[R]=I,I;for(var K in R)R.hasOwnProperty(K)&&B(O,K,R[K]);return Te(O)}function f(O){return O===document.body?document.documentElement.clientWidth:O.offsetWidth}function E(O){return O===document.body?window.innerHeight||document.documentElement.clientHeight:O.offsetHeight}function h(){var O=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),R=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:O,height:R}}function Z(){var O=document.documentElement.clientWidth,R=window.innerHeight||document.documentElement.clientHeight;return{width:O,height:R}}function S(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function _(O){var R=O.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,qt,x){"use strict";x.d(qt,{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(ie,G){return!Array.isArray(ie)&&G!==void 0?Q(ie,G):ue(ie)}},24916:function(xn,qt,x){"use strict";x.d(qt,{Z:function(){return fr}});var ge=x(92413),ue=x(39559),Q=x(33708),Te=x(400),ie=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),O=S.forwardRef(function(L,nt){var k=L.height,p=L.offsetY,d=L.offsetX,w=L.children,q=L.prefixCls,Se=L.onInnerResize,H=L.innerProps,ne=L.rtl,Ge=L.extra,xe={},we={display:"flex",flexDirection:"column"};return p!==void 0&&(xe={height:k,position:"relative",overflow:"hidden"},we=(0,Q.Z)((0,Q.Z)({},we),{},(0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)({transform:"translateY(".concat(p,"px)")},ne?"marginRight":"marginLeft",-d),"position","absolute"),"left",0),"right",0),"top",0))),S.createElement("div",{style:xe},S.createElement(E.Z,{onResize:function(_t){var pe=_t.offsetHeight;pe&&Se&&Se()}},S.createElement("div",(0,ge.Z)({style:we,className:f()((0,Te.Z)({},"".concat(q,"-holder-inner"),q)),ref:nt},H),w,Ge)))});O.displayName="Filler";var R=O;function I(L){var nt=L.children,k=L.setRef,p=S.useCallback(function(d){k(d)},[]);return S.cloneElement(nt,{ref:p})}function Y(L,nt,k,p,d,w,q,Se){var H=Se.getKey;return L.slice(nt,k+1).map(function(ne,Ge){var xe=nt+Ge,we=q(ne,xe,{style:{width:p},offsetX:d}),Ye=H(ne);return S.createElement(I,{key:Ye,setRef:function(pe){return w(ne,pe)}},we)})}function K(L,nt,k,p){var d=k-L,w=nt-k,q=Math.min(d,w)*2;if(p<=q){var Se=Math.floor(p/2);return p%2?k+Se+1:k-Se}return d>w?k-(p-w):k+(p-d)}function se(L,nt,k){var p=L.length,d=nt.length,w,q;if(p===0&&d===0)return null;p<d?(w=L,q=nt):(w=nt,q=L);var Se={__EMPTY_ITEM__:!0};function H(_t){return _t!==void 0?k(_t):Se}for(var ne=null,Ge=Math.abs(p-d)!==1,xe=0;xe<q.length;xe+=1){var we=H(w[xe]),Ye=H(q[xe]);if(we!==Ye){ne=xe,Ge=Ge||we!==H(q[xe+1]);break}}return ne===null?null:{index:ne,multiple:Ge}}function te(L,nt,k){var p=S.useState(L),d=(0,ie.Z)(p,2),w=d[0],q=d[1],Se=S.useState(null),H=(0,ie.Z)(Se,2),ne=H[0],Ge=H[1];return S.useEffect(function(){var xe=se(w||[],L||[],nt);(xe==null?void 0:xe.index)!==void 0&&(k==null||k(xe.index),Ge(L[xe.index])),q(L)},[L]),[ne]}var X=x(16089),W=(typeof navigator=="undefined"?"undefined":(0,ue.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),z=W,le=function(L,nt,k,p){var d=(0,S.useRef)(!1),w=(0,S.useRef)(null);function q(){clearTimeout(w.current),d.current=!0,w.current=setTimeout(function(){d.current=!1},50)}var Se=(0,S.useRef)({top:L,bottom:nt,left:k,right:p});return Se.current.top=L,Se.current.bottom=nt,Se.current.left=k,Se.current.right=p,function(H,ne){var Ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,xe=H?ne<0&&Se.current.left||ne>0&&Se.current.right:ne<0&&Se.current.top||ne>0&&Se.current.bottom;return Ge&&xe?(clearTimeout(w.current),d.current=!1):(!xe||d.current)&&q(),!d.current&&xe}};function he(L,nt,k,p,d,w,q){var Se=(0,S.useRef)(0),H=(0,S.useRef)(null),ne=(0,S.useRef)(null),Ge=(0,S.useRef)(!1),xe=le(nt,k,p,d);function we(Ie,ke){if(X.Z.cancel(H.current),!xe(!1,ke)){var vt=Ie;if(!vt._virtualHandled)vt._virtualHandled=!0;else return;Se.current+=ke,ne.current=ke,z||vt.preventDefault(),H.current=(0,X.Z)(function(){var zt=Ge.current?10:1;q(Se.current*zt,!1),Se.current=0})}}function Ye(Ie,ke){q(ke,!0),z||Ie.preventDefault()}var _t=(0,S.useRef)(null),pe=(0,S.useRef)(null);function ut(Ie){if(L){X.Z.cancel(pe.current),pe.current=(0,X.Z)(function(){_t.current=null},2);var ke=Ie.deltaX,vt=Ie.deltaY,zt=Ie.shiftKey,Ut=ke,ar=vt;(_t.current==="sx"||!_t.current&&zt&&vt&&!ke)&&(Ut=vt,ar=0,_t.current="sx");var Ir=Math.abs(Ut),Pr=Math.abs(ar);_t.current===null&&(_t.current=w&&Ir>Pr?"x":"y"),_t.current==="y"?we(Ie,ar):Ye(Ie,Ut)}}function ct(Ie){L&&(Ge.current=Ie.detail===ne.current)}return[ut,ct]}function Ne(L,nt,k,p){var d=S.useMemo(function(){return[new Map,[]]},[L,k.id,p]),w=(0,ie.Z)(d,2),q=w[0],Se=w[1],H=function(Ge){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ge,we=q.get(Ge),Ye=q.get(xe);if(we===void 0||Ye===void 0)for(var _t=L.length,pe=Se.length;pe<_t;pe+=1){var ut,ct=L[pe],Ie=nt(ct);q.set(Ie,pe);var ke=(ut=k.get(Ie))!==null&&ut!==void 0?ut:p;if(Se[pe]=(Se[pe-1]||0)+ke,Ie===Ge&&(we=pe),Ie===xe&&(Ye=pe),we!==void 0&&Ye!==void 0)break}return{top:Se[we-1]||0,bottom:Se[Ye]}};return H}var Be=x(6909),je=x(4771),ee=function(){function L(){(0,Be.Z)(this,L),(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,je.Z)(L,[{key:"set",value:function(k,p){this.maps[k]=p,this.id+=1,this.diffKeys.add(k)}},{key:"get",value:function(k){return this.maps[k]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),L}(),ce=ee;function D(L){var nt=parseFloat(L);return isNaN(nt)?0:nt}function ot(L,nt,k){var p=S.useState(0),d=(0,ie.Z)(p,2),w=d[0],q=d[1],Se=(0,S.useRef)(new Map),H=(0,S.useRef)(new ce),ne=(0,S.useRef)(0);function Ge(){ne.current+=1}function xe(){var Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ge();var _t=function(){var ct=!1;Se.current.forEach(function(Ie,ke){if(Ie&&Ie.offsetParent){var vt=Ie.offsetHeight,zt=getComputedStyle(Ie),Ut=zt.marginTop,ar=zt.marginBottom,Ir=D(Ut),Pr=D(ar),Kr=vt+Ir+Pr;H.current.get(ke)!==Kr&&(H.current.set(ke,Kr),ct=!0)}}),ct&&q(function(Ie){return Ie+1})};if(Ye)_t();else{ne.current+=1;var pe=ne.current;Promise.resolve().then(function(){pe===ne.current&&_t()})}}function we(Ye,_t){var pe=L(Ye),ut=Se.current.get(pe);_t?(Se.current.set(pe,_t),xe()):Se.current.delete(pe),!ut!=!_t&&(_t?nt==null||nt(Ye):k==null||k(Ye))}return(0,S.useEffect)(function(){return Ge},[]),[we,xe,H.current,w]}var Le=14/15;function Ce(L,nt,k){var p=(0,S.useRef)(!1),d=(0,S.useRef)(0),w=(0,S.useRef)(0),q=(0,S.useRef)(null),Se=(0,S.useRef)(null),H,ne=function(Ye){if(p.current){var _t=Math.ceil(Ye.touches[0].pageX),pe=Math.ceil(Ye.touches[0].pageY),ut=d.current-_t,ct=w.current-pe,Ie=Math.abs(ut)>Math.abs(ct);Ie?d.current=_t:w.current=pe;var ke=k(Ie,Ie?ut:ct,!1,Ye);ke&&Ye.preventDefault(),clearInterval(Se.current),ke&&(Se.current=setInterval(function(){Ie?ut*=Le:ct*=Le;var vt=Math.floor(Ie?ut:ct);(!k(Ie,vt,!0)||Math.abs(vt)<=.1)&&clearInterval(Se.current)},16))}},Ge=function(){p.current=!1,H()},xe=function(Ye){H(),Ye.touches.length===1&&!p.current&&(p.current=!0,d.current=Math.ceil(Ye.touches[0].pageX),w.current=Math.ceil(Ye.touches[0].pageY),q.current=Ye.target,q.current.addEventListener("touchmove",ne,{passive:!1}),q.current.addEventListener("touchend",Ge,{passive:!0}))};H=function(){q.current&&(q.current.removeEventListener("touchmove",ne),q.current.removeEventListener("touchend",Ge))},(0,Z.Z)(function(){return L&&nt.current.addEventListener("touchstart",xe,{passive:!0}),function(){var we;(we=nt.current)===null||we===void 0||we.removeEventListener("touchstart",xe),H(),clearInterval(Se.current)}},[L])}function Re(L){return Math.floor(Math.pow(L,.5))}function ve(L,nt){var k="touches"in L?L.touches[0]:L;return k[nt?"pageX":"pageY"]-window[nt?"scrollX":"scrollY"]}function Pe(L,nt,k){S.useEffect(function(){var p=nt.current;if(L&&p){var d=!1,w,q,Se=function(){X.Z.cancel(w)},H=function we(){Se(),w=(0,X.Z)(function(){k(q),we()})},ne=function(Ye){if(!Ye.target.draggable){var _t=Ye;_t._virtualHandled||(_t._virtualHandled=!0,d=!0)}},Ge=function(){d=!1,Se()},xe=function(Ye){if(d){var _t=ve(Ye,!1),pe=p.getBoundingClientRect(),ut=pe.top,ct=pe.bottom;if(_t<=ut){var Ie=ut-_t;q=-Re(Ie),H()}else if(_t>=ct){var ke=_t-ct;q=Re(ke),H()}else Se()}};return p.addEventListener("mousedown",ne),p.ownerDocument.addEventListener("mouseup",Ge),p.ownerDocument.addEventListener("mousemove",xe),function(){p.removeEventListener("mousedown",ne),p.ownerDocument.removeEventListener("mouseup",Ge),p.ownerDocument.removeEventListener("mousemove",xe),Se()}}},[L])}var fe=10;function ye(L,nt,k,p,d,w,q,Se){var H=S.useRef(),ne=S.useState(null),Ge=(0,ie.Z)(ne,2),xe=Ge[0],we=Ge[1];return(0,Z.Z)(function(){if(xe&&xe.times<fe){if(!L.current){we(function(xi){return(0,Q.Z)({},xi)});return}w();var Ye=xe.targetAlign,_t=xe.originAlign,pe=xe.index,ut=xe.offset,ct=L.current.clientHeight,Ie=!1,ke=Ye,vt=null;if(ct){for(var zt=Ye||_t,Ut=0,ar=0,Ir=0,Pr=Math.min(nt.length-1,pe),Kr=0;Kr<=Pr;Kr+=1){var Tr=d(nt[Kr]);ar=Ut;var cr=k.get(Tr);Ir=ar+(cr===void 0?p:cr),Ut=Ir}for(var Ar=zt==="top"?ut:ct-ut,zr=Pr;zr>=0;zr-=1){var cn=d(nt[zr]),Sn=k.get(cn);if(Sn===void 0){Ie=!0;break}if(Ar-=Sn,Ar<=0)break}switch(zt){case"top":vt=ar-ut;break;case"bottom":vt=Ir-ct+ut;break;default:{var An=L.current.scrollTop,_n=An+ct;ar<An?ke="top":Ir>_n&&(ke="bottom")}}vt!==null&&q(vt),vt!==xe.lastTop&&(Ie=!0)}Ie&&we((0,Q.Z)((0,Q.Z)({},xe),{},{times:xe.times+1,targetAlign:ke,lastTop:vt}))}},[xe,L.current]),function(Ye){if(Ye==null){Se();return}if(X.Z.cancel(H.current),typeof Ye=="number")q(Ye);else if(Ye&&(0,ue.Z)(Ye)==="object"){var _t,pe=Ye.align;"index"in Ye?_t=Ye.index:_t=nt.findIndex(function(Ie){return d(Ie)===Ye.key});var ut=Ye.offset,ct=ut===void 0?0:ut;we({times:0,index:_t,offset:ct,originAlign:pe})}}}var at=S.forwardRef(function(L,nt){var k=L.prefixCls,p=L.rtl,d=L.scrollOffset,w=L.scrollRange,q=L.onStartMove,Se=L.onStopMove,H=L.onScroll,ne=L.horizontal,Ge=L.spinSize,xe=L.containerSize,we=L.style,Ye=L.thumbStyle,_t=L.showScrollBar,pe=S.useState(!1),ut=(0,ie.Z)(pe,2),ct=ut[0],Ie=ut[1],ke=S.useState(null),vt=(0,ie.Z)(ke,2),zt=vt[0],Ut=vt[1],ar=S.useState(null),Ir=(0,ie.Z)(ar,2),Pr=Ir[0],Kr=Ir[1],Tr=!p,cr=S.useRef(),Ar=S.useRef(),zr=S.useState(_t),cn=(0,ie.Z)(zr,2),Sn=cn[0],An=cn[1],_n=S.useRef(),xi=function(){_t===!0||_t===!1||(clearTimeout(_n.current),An(!0),_n.current=setTimeout(function(){An(!1)},3e3))},Mr=w-xe||0,ei=xe-Ge||0,Bi=S.useMemo(function(){if(d===0||Mr===0)return 0;var Ui=d/Mr;return Ui*ei},[d,Mr,ei]),zn=function(me){me.stopPropagation(),me.preventDefault()},Oi=S.useRef({top:Bi,dragging:ct,pageY:zt,startTop:Pr});Oi.current={top:Bi,dragging:ct,pageY:zt,startTop:Pr};var yi=function(me){Ie(!0),Ut(ve(me,ne)),Kr(Oi.current.top),q(),me.stopPropagation(),me.preventDefault()};S.useEffect(function(){var Ui=function(st){st.preventDefault()},me=cr.current,Ue=Ar.current;return me.addEventListener("touchstart",Ui,{passive:!1}),Ue.addEventListener("touchstart",yi,{passive:!1}),function(){me.removeEventListener("touchstart",Ui),Ue.removeEventListener("touchstart",yi)}},[]);var Ki=S.useRef();Ki.current=Mr;var Ca=S.useRef();Ca.current=ei,S.useEffect(function(){if(ct){var Ui,me=function(st){var Zt=Oi.current,Kt=Zt.dragging,Br=Zt.pageY,hr=Zt.startTop;X.Z.cancel(Ui);var Ur=cr.current.getBoundingClientRect(),Wr=xe/(ne?Ur.width:Ur.height);if(Kt){var en=(ve(st,ne)-Br)*Wr,Vr=hr;!Tr&&ne?Vr-=en:Vr+=en;var Hr=Ki.current,qr=Ca.current,gn=qr?Vr/qr:0,tn=Math.ceil(gn*Hr);tn=Math.max(tn,0),tn=Math.min(tn,Hr),Ui=(0,X.Z)(function(){H(tn,ne)})}},Ue=function(){Ie(!1),Se()};return window.addEventListener("mousemove",me,{passive:!0}),window.addEventListener("touchmove",me,{passive:!0}),window.addEventListener("mouseup",Ue,{passive:!0}),window.addEventListener("touchend",Ue,{passive:!0}),function(){window.removeEventListener("mousemove",me),window.removeEventListener("touchmove",me),window.removeEventListener("mouseup",Ue),window.removeEventListener("touchend",Ue),X.Z.cancel(Ui)}}},[ct]),S.useEffect(function(){return xi(),function(){clearTimeout(_n.current)}},[d]),S.useImperativeHandle(nt,function(){return{delayHidden:xi}});var Zi="".concat(k,"-scrollbar"),ni={position:"absolute",visibility:Sn?null:"hidden"},Si={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return ne?(ni.height=8,ni.left=0,ni.right=0,ni.bottom=0,Si.height="100%",Si.width=Ge,Tr?Si.left=Bi:Si.right=Bi):(ni.width=8,ni.top=0,ni.bottom=0,Tr?ni.right=0:ni.left=0,Si.width="100%",Si.height=Ge,Si.top=Bi),S.createElement("div",{ref:cr,className:f()(Zi,(0,Te.Z)((0,Te.Z)((0,Te.Z)({},"".concat(Zi,"-horizontal"),ne),"".concat(Zi,"-vertical"),!ne),"".concat(Zi,"-visible"),Sn)),style:(0,Q.Z)((0,Q.Z)({},ni),we),onMouseDown:zn,onMouseMove:xi},S.createElement("div",{ref:Ar,className:f()("".concat(Zi,"-thumb"),(0,Te.Z)({},"".concat(Zi,"-thumb-moving"),ct)),style:(0,Q.Z)((0,Q.Z)({},Si),Ye),onMouseDown:yi}))}),tt=at,rt=20;function At(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,k=L/nt*L;return isNaN(k)&&(k=0),k=Math.max(k,rt),Math.floor(k)}var Nt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],jt=[],Qt={overflowY:"auto",overflowAnchor:"none"};function ur(L,nt){var k=L.prefixCls,p=k===void 0?"rc-virtual-list":k,d=L.className,w=L.height,q=L.itemHeight,Se=L.fullHeight,H=Se===void 0?!0:Se,ne=L.style,Ge=L.data,xe=L.children,we=L.itemKey,Ye=L.virtual,_t=L.direction,pe=L.scrollWidth,ut=L.component,ct=ut===void 0?"div":ut,Ie=L.onScroll,ke=L.onVirtualScroll,vt=L.onVisibleChange,zt=L.innerProps,Ut=L.extraRender,ar=L.styles,Ir=L.showScrollBar,Pr=Ir===void 0?"optional":Ir,Kr=(0,G.Z)(L,Nt),Tr=S.useCallback(function(ri){return typeof we=="function"?we(ri):ri==null?void 0:ri[we]},[we]),cr=ot(Tr,null,null),Ar=(0,ie.Z)(cr,4),zr=Ar[0],cn=Ar[1],Sn=Ar[2],An=Ar[3],_n=!!(Ye!==!1&&w&&q),xi=S.useMemo(function(){return Object.values(Sn.maps).reduce(function(ri,On){return ri+On},0)},[Sn.id,Sn.maps]),Mr=_n&&Ge&&(Math.max(q*Ge.length,xi)>w||!!pe),ei=_t==="rtl",Bi=f()(p,(0,Te.Z)({},"".concat(p,"-rtl"),ei),d),zn=Ge||jt,Oi=(0,S.useRef)(),yi=(0,S.useRef)(),Ki=(0,S.useRef)(),Ca=(0,S.useState)(0),Zi=(0,ie.Z)(Ca,2),ni=Zi[0],Si=Zi[1],Ui=(0,S.useState)(0),me=(0,ie.Z)(Ui,2),Ue=me[0],Me=me[1],st=(0,S.useState)(!1),Zt=(0,ie.Z)(st,2),Kt=Zt[0],Br=Zt[1],hr=function(){Br(!0)},Ur=function(){Br(!1)},Wr={getKey:Tr};function en(ri){Si(function(On){var ki;typeof ri=="function"?ki=ri(On):ki=ri;var Ii=ti(ki);return Oi.current.scrollTop=Ii,Ii})}var Vr=(0,S.useRef)({start:0,end:zn.length}),Hr=(0,S.useRef)(),qr=te(zn,Tr),gn=(0,ie.Z)(qr,1),tn=gn[0];Hr.current=tn;var Mn=S.useMemo(function(){if(!_n)return{scrollHeight:void 0,start:0,end:zn.length-1,offset:void 0};if(!Mr){var ri;return{scrollHeight:((ri=yi.current)===null||ri===void 0?void 0:ri.offsetHeight)||0,start:0,end:zn.length-1,offset:void 0}}for(var On=0,ki,Ii,da,To=zn.length,ia=0;ia<To;ia+=1){var Ji=zn[ia],ja=Tr(Ji),Fa=Sn.get(ja),ro=On+(Fa===void 0?q:Fa);ro>=ni&&ki===void 0&&(ki=ia,Ii=On),ro>ni+w&&da===void 0&&(da=ia),On=ro}return ki===void 0&&(ki=0,Ii=0,da=Math.ceil(w/q)),da===void 0&&(da=zn.length-1),da=Math.min(da+1,zn.length-1),{scrollHeight:On,start:ki,end:da,offset:Ii}},[Mr,_n,ni,zn,An,w]),Rn=Mn.scrollHeight,pi=Mn.start,Pn=Mn.end,ln=Mn.offset;Vr.current.start=pi,Vr.current.end=Pn,S.useLayoutEffect(function(){var ri=Sn.getRecord();if(ri.size===1){var On=Array.from(ri)[0],ki=zn[pi];if(ki){var Ii=Tr(ki);if(Ii===On){var da=Sn.get(On),To=da-q;en(function(ia){return ia+To})}}}Sn.resetRecord()},[Rn]);var Ht=S.useState({width:0,height:w}),Wt=(0,ie.Z)(Ht,2),er=Wt[0],tr=Wt[1],Xt=function(On){tr({width:On.offsetWidth,height:On.offsetHeight})},Nr=(0,S.useRef)(),Lr=(0,S.useRef)(),Jr=S.useMemo(function(){return At(er.width,pe)},[er.width,pe]),Fn=S.useMemo(function(){return At(er.height,Rn)},[er.height,Rn]),Ln=Rn-w,li=(0,S.useRef)(Ln);li.current=Ln;function ti(ri){var On=ri;return Number.isNaN(li.current)||(On=Math.min(On,li.current)),On=Math.max(On,0),On}var Ei=ni<=0,Yn=ni>=Ln,Hn=Ue<=0,sn=Ue>=pe,vi=le(Ei,Yn,Hn,sn),In=function(){return{x:ei?-Ue:Ue,y:ni}},ii=(0,S.useRef)(In()),bi=(0,h.useEvent)(function(ri){if(ke){var On=(0,Q.Z)((0,Q.Z)({},In()),ri);(ii.current.x!==On.x||ii.current.y!==On.y)&&(ke(On),ii.current=On)}});function Di(ri,On){var ki=ri;On?((0,_.flushSync)(function(){Me(ki)}),bi()):en(ki)}function Gn(ri){var On=ri.currentTarget.scrollTop;On!==ni&&en(On),Ie==null||Ie(ri),bi()}var Li=function(On){var ki=On,Ii=pe?pe-er.width:0;return ki=Math.max(ki,0),ki=Math.min(ki,Ii),ki},ra=(0,h.useEvent)(function(ri,On){On?((0,_.flushSync)(function(){Me(function(ki){var Ii=ki+(ei?-ri:ri);return Li(Ii)})}),bi()):en(function(ki){var Ii=ki+ri;return Ii})}),si=he(_n,Ei,Yn,Hn,sn,!!pe,ra),un=(0,ie.Z)(si,2),rn=un[0],Nn=un[1];Ce(_n,Oi,function(ri,On,ki,Ii){var da=Ii;return vi(ri,On,ki)?!1:!da||!da._virtualHandled?(da&&(da._virtualHandled=!0),rn({preventDefault:function(){},deltaX:ri?On:0,deltaY:ri?0:On}),!0):!1}),Pe(Mr,Oi,function(ri){en(function(On){return On+ri})}),(0,Z.Z)(function(){function ri(ki){var Ii=Ei&&ki.detail<0,da=Yn&&ki.detail>0;_n&&!Ii&&!da&&ki.preventDefault()}var On=Oi.current;return On.addEventListener("wheel",rn,{passive:!1}),On.addEventListener("DOMMouseScroll",Nn,{passive:!0}),On.addEventListener("MozMousePixelScroll",ri,{passive:!1}),function(){On.removeEventListener("wheel",rn),On.removeEventListener("DOMMouseScroll",Nn),On.removeEventListener("MozMousePixelScroll",ri)}},[_n,Ei,Yn]),(0,Z.Z)(function(){if(pe){var ri=Li(Ue);Me(ri),bi({x:ri})}},[er.width,pe]);var wn=function(){var On,ki;(On=Nr.current)===null||On===void 0||On.delayHidden(),(ki=Lr.current)===null||ki===void 0||ki.delayHidden()},jn=ye(Oi,zn,Sn,q,Tr,function(){return cn(!0)},en,wn);S.useImperativeHandle(nt,function(){return{nativeElement:Ki.current,getScrollInfo:In,scrollTo:function(On){function ki(Ii){return Ii&&(0,ue.Z)(Ii)==="object"&&("left"in Ii||"top"in Ii)}ki(On)?(On.left!==void 0&&Me(Li(On.left)),jn(On.top)):jn(On)}}}),(0,Z.Z)(function(){if(vt){var ri=zn.slice(pi,Pn+1);vt(ri,zn)}},[pi,Pn,zn]);var ui=Ne(zn,Tr,Sn,q),_i=Ut==null?void 0:Ut({start:pi,end:Pn,virtual:Mr,offsetX:Ue,offsetY:ln,rtl:ei,getSize:ui}),ca=Y(zn,pi,Pn,pe,Ue,zr,xe,Wr),Yi=null;w&&(Yi=(0,Q.Z)((0,Te.Z)({},H?"height":"maxHeight",w),Qt),_n&&(Yi.overflowY="hidden",pe&&(Yi.overflowX="hidden"),Kt&&(Yi.pointerEvents="none")));var so={};return ei&&(so.dir="rtl"),S.createElement("div",(0,ge.Z)({ref:Ki,style:(0,Q.Z)((0,Q.Z)({},ne),{},{position:"relative"}),className:Bi},so,Kr),S.createElement(E.Z,{onResize:Xt},S.createElement(ct,{className:"".concat(p,"-holder"),style:Yi,ref:Oi,onScroll:Gn,onMouseEnter:wn},S.createElement(R,{prefixCls:p,height:Rn,offsetX:Ue,offsetY:ln,scrollWidth:pe,onInnerResize:cn,ref:yi,innerProps:zt,rtl:ei,extra:_i},ca))),Mr&&Rn>w&&S.createElement(tt,{ref:Nr,prefixCls:p,scrollOffset:ni,scrollRange:Rn,rtl:ei,onScroll:Di,onStartMove:hr,onStopMove:Ur,spinSize:Fn,containerSize:er.height,style:ar==null?void 0:ar.verticalScrollBar,thumbStyle:ar==null?void 0:ar.verticalScrollBarThumb,showScrollBar:Pr}),Mr&&pe>er.width&&S.createElement(tt,{ref:Lr,prefixCls:p,scrollOffset:Ue,scrollRange:pe,rtl:ei,onScroll:Di,onStartMove:hr,onStopMove:Ur,spinSize:Jr,containerSize:er.width,horizontal:!0,style:ar==null?void 0:ar.horizontalScrollBar,thumbStyle:ar==null?void 0:ar.horizontalScrollBarThumb,showScrollBar:Pr}))}var or=S.forwardRef(ur);or.displayName="List";var xr=or,fr=xr},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,qt,x){"use strict";var ge=Object.defineProperty,ue=Object.defineProperties,Q=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,ie=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={}))ie.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)ie.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 O(){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(!O())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(!O())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=O()?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"},z={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"},Be={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 $,J,Ae,Qe=255,ft=255,Ft=255,Ot=-1;const Sr=M.length>0&&M[0].startsWith("-");Sr&&(M[0]=M[0].slice(1));for(let En=0;En<M.length;En++){$=Qe,J=ft,Ae=Ft;const wr=(t=M[En].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:t[1],an=wr==null?void 0:wr.toLowerCase(),Tn=wr&&(A=(s=(i=(n=(r=he[an])!=null?r:he[Ne[wr]])!=null?n:z[wr])!=null?i:Be[wr])!=null?s:W[wr])!=null?A:M[En].trim();let pn=Tn.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=Tn.match(/^#([\da-f]{3})$/i),pn!=null&&pn[1]){const Fi=Number.parseInt(pn[1][0],16),$i=Number.parseInt(pn[1][1],16),Qi=Number.parseInt(pn[1][2],16);Qe=Math.max(0,Math.min(255,Fi*16+Fi)),ft=Math.max(0,Math.min(255,$i*16+$i)),Ft=Math.max(0,Math.min(255,Qi*16+Qi))}else if(pn=Tn.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*$,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)*$,ft=Ot*ft+(1-Ot)*J,Ft=Ot*Ft+(1-Ot)*Ae),Sr&&(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 ee(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 D(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*D(s,i,t+2)),g:Math.round(255*D(s,i,t)),b:Math.round(255*D(s,i,t-2))}}function Le(e){return e<0?0:e>255?255:Math.round(e)}function Ce(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,$;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?$=0:J<=.5?$=A/(s+i):$=A/(2-s-i),{h:M,s:$,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,Ce(ot({h:r,s:n,l:i}))}var Pe={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 tt(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 rt(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=Pe[i];if(s)s.startsWith("\\")?r+=s+" ":r+=s;else{const{char:A,variant:M,style:$}=tt(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($){case"bold":s=`\\mathbf{${s}}`;break;case"italic":s=`\\mathit{${s}}`;break;case"bolditalic":s=`\\mathbfit{${s}}`;break}r+=s}}return r}function At(e){return e?Array.isArray(e)?e:typeof e=="object"&&"group"in e?e.group:[]:[]}var Nt={},jt=f({},Pe),Qt={},ur={},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}"},xr={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}},fr={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}},L={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:fr},"amsmath.sty":{package:xr,primitive:!0},"texvc.sty":{package:or,primitive:!1}},nt={" ":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},k=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,p,d;K()?(p=new RegExp("\\p{Letter}","u"),d=new RegExp("[0-9\\p{Letter}]","u")):(p=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,d=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function w(e,t,r="mord",n){t!==void 0&&(Nt[e]={definitionType:"symbol",type:r,variant:n,codepoint:t},jt[t]||(jt[t]=e))}function q(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 Se(e,t){for(let r=e;r<=t;r++)w(String.fromCodePoint(r),r)}function H(e){var t;return(t=ur[e])!=null?t:null}function ne(e,t){var r,n;if(t.length===0||t==="\\"||!t.startsWith("\\"))return[];const i=[];for(const A in Qt)A.startsWith(t)&&!Qt[A].infix&&i.push({match:A,frequency:(r=Qt[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 $,J;return A.frequency===M.frequency?A.match.length===M.match.length?A.match<M.match?-1:1:A.match.length-M.match.length:(($=M.frequency)!=null?$: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 xe(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(...xe(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(...xe(r[n]))}return t}function we(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 Ye(e,t){typeof e=="string"&&(e=[e]);const r={tabular:!1,params:[],createAtom:t};for(const n of e)ur[n]=r}function _t(e,t,r){typeof e=="string"&&(e=[e]);const i={tabular:!0,params:xe(t),createAtom:r};for(const s of e)ur[s]=i}function pe(e,t,r){var n,i;r||(r={});const s={definitionType:"function",params:xe(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")Qt["\\"+e]=s;else for(const A of e)Qt["\\"+A]=s}var ut;function ct(e){return ut||(ut=ke(L)),e?ke(f(f({},ut),e)):ut}function Ie(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 ke(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]=Ie(n.package[i],{expand:!n.primitive,captureSelection:n.captureSelection});else t[r]=Ie(n)}return t}function vt(e,t="math"){if(!e||e.length===0)return null;let r=null;if(e.startsWith("\\")){if(r=Qt[e],r)return!r.ifMode||r.ifMode===t?r:null;t==="math"?r=Nt[e]:nt[e]&&(r={definitionType:"symbol",type:"mord",codepoint:nt[e]})}else if(t==="math"){if(r=Nt[e],!r&&e.length===1){const n=Ut("math",e.codePointAt(0));return n.startsWith("\\")?E(f({},vt(n,"math")),{command:n}):null}}else nt[e]?r={definitionType:"symbol",type:"mord",codepoint:nt[e]}:t==="text"&&(r={definitionType:"symbol",type:"mord",codepoint:e.codePointAt(0)});return r!=null?r:null}function zt(e,t){if(!e.startsWith("\\"))return null;const r=e.slice(1);return t[r]}function Ut(e,t){if(t===void 0)return"";if(e==="math"&&jt[t])return jt[t];if(e==="text"){const r=Object.keys(nt).find(n=>nt[n]===t);return r||String.fromCodePoint(t)}return String.fromCodePoint(t)}var ar=[0,.68889,0,0,.72222],Ir=[0,.68889,0,0,.66667],Pr=[0,.68889,0,0,.77778],Kr=[0,.68889,0,0,.61111],Tr=[.16667,.68889,0,0,.77778],cr=[0,.68889,0,0,.55556],Ar=[0,0,0,0,.25],zr=[0,.825,0,0,2.33334],cn=[0,.9,0,0,2.33334],Sn=[0,.68889,0,0,.54028],An=[-.03598,.46402,0,0,.5],_n=[-.13313,.36687,0,0,1],xi=[.01354,.52239,0,0,1],Mr=[.01354,.52239,0,0,1.11111],ei=[0,.54986,0,0,1],Bi=[0,.69224,0,0,.5],zn=[0,.43056,0,0,1],Oi=[.08198,.58198,0,0,.77778],yi=[.19444,.69224,0,0,.41667],Ki=[.1808,.675,0,0,1],Ca=[.19444,.69224,0,0,.83334],Zi=[.13667,.63667,0,0,1],ni=[-.064,.437,0,0,1.334],Si=[.08167,.58167,0,0,.77778],Ui=[0,.69224,0,0,.72222],me=[0,.69224,0,0,.66667],Ue=[-.13313,.36687,0,0,.77778],Me=[.06062,.54986,0,0,.77778],st=[0,.69224,0,0,.77778],Zt=[.25583,.75583,0,0,.77778],Kt=[.25142,.75726,0,0,.77778],Br=[.20576,.70576,0,0,.77778],hr=[.30274,.79383,0,0,.77778],Ur=[.22958,.72958,0,0,.77778],Wr=[.1808,.675,0,0,.77778],en=[.13667,.63667,0,0,.77778],Vr=[.13597,.63597,0,0,.77778],Hr=[.03517,.54986,0,0,.77778],qr=[0,.675,0,0,.77778],gn=[.19444,.69224,0,0,.61111],tn=[0,.54986,0,0,.76042],Mn=[0,.54986,0,0,.66667],Rn=[.0391,.5391,0,0,.77778],pi=[.03517,.54986,0,0,1.33334],Pn=[.38569,.88569,0,0,.77778],ln=[.23222,.74111,0,0,.77778],Ht=[.19444,.69224,0,0,.77778],Wt=[0,.37788,0,0,.5],er=[0,.54986,0,0,.72222],tr=[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],Fn=[.08167,.58167,0,0,.22222],Ln=[.08167,.58167,0,0,.38889],li=[0,.43056,.04028,0,.66667],ti=[.41951,.91951,0,0,.77778],Ei=[.24982,.74947,0,0,.38865],Yn=[.08319,.58283,0,0,.75623],Hn=[0,.10803,0,0,.27764],sn=[0,.47534,0,0,.50181],vi=[.18906,.47534,0,0,.50181],In=[0,.69141,0,0,.50181],ii=[.24982,.74947,0,0,.27764],bi=[0,.69141,0,0,.21471],Di=[.25,.75,0,0,.44722],Gn=[0,.64444,0,0,.575],Li=[.08556,.58556,0,0,.89444],ra=[0,.69444,0,0,.89444],si=[0,.68611,0,0,.9],un=[0,.68611,0,0,.86944],rn=[.25,.75,0,0,.575],Nn=[.25,.75,0,0,.31944],wn=[0,.69444,0,0,.63889],jn=[0,.69444,0,0,.31944],ui=[0,.44444,0,0,.63889],_i=[0,.44444,0,0,.51111],ca=[0,.69444,0,0,.575],Yi=[.13333,.63333,0,0,.89444],so=[0,.44444,0,0,.31944],ri=[0,.69444,0,0,.86944],On=[0,.68611,0,0,.69166],ki=[0,.68611,0,0,.83055],Ii=[0,.68611,0,0,.89444],da=[0,.69444,0,0,.60278],To=[.19444,.69444,0,0,.51111],ia=[0,.69444,0,0,.83055],Ji=[-.10889,.39111,0,0,1.14999],ja=[.19444,.69444,0,0,.575],Fa=[.19444,.69444,0,0,1.14999],ro=[.19444,.69444,0,0,.70277],wo=[.05556,.75,0,0,.575],Ba=[0,.68611,0,0,.95833],di=[.08556,.58556,0,0,.76666],Aa=[-.02639,.47361,0,0,.575],No=[0,.44444,0,0,.89444],ho=[0,.55556,0,0,.76666],Ja=[-.10889,.39111,0,0,.89444],Ni=[.00222,.50222,0,0,.89444],Oo=[.19667,.69667,0,0,.89444],po=[.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],za=[.12963,.69444,0,0,.89444],Qa=[.19444,.69444,0,0,.44722],Ea=[0,.64444,.13167,0,.59111],Qs=[.19444,.64444,.13167,0,.59111],wi=[0,.68611,.17208,0,.8961],Wi=[.19444,.44444,.105,0,.53222],Ti=[0,.44444,.085,0,.82666],Gi=[0,.69444,.06709,0,.59111],ua=[0,.69444,.12945,0,.35555],Ia=[0,.69444,0,0,.94888],Xo=[0,.69444,.11472,0,.59111],Fo=[0,.68611,.10778,0,.88555],Eo=[0,.69444,.07939,0,.62055],$a=[0,.69444,.12417,0,.30667],Sa=[0,.64444,.13556,0,.51111],fa=[.19444,.64444,.13556,0,.51111],Da=[0,.68333,.16389,0,.74333],Ya=[.19444,.43056,.08847,0,.46],lo=[0,.43056,.07514,0,.71555],Oa=[0,.69444,.06646,0,.51111],Ma=[0,.69444,0,0,.83129],Io=[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],Mo=[0,.64444,0,0,.5],Qn=[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],La=[.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],ha=[.19444,.43056,0,0,.55556],aa=[0,.43056,0,0,.55556],mo=[.08333,.58333,0,0,.77778],Za=[0,.43056,0,0,.27778],no=[0,.66786,0,0,.27778],Ko=[0,.69444,0,0,.75],qa=[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],go=[-.03472,.46528,0,0,.5],vo=[.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],T=[0,.69444,0,0,.79445],V=[0,.69444,0,0,.51945],ae=[0,.69444,0,0,.70278],_e=[0,.69444,0,0,.76389],We=[.25,.75,0,0,.34306],Ve=[0,.69444,0,0,.56111],lt=[0,.69444,0,0,.25556],be=[.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],ir=[0,.69444,0,0,.55834],gr=[0,.65556,.11156,0,.5],Rr=[0,.69444,.08094,0,.70834],yn=[.17014,0,0,0,.44445],Er=[0,.69444,.0799,0,.5],Gt=[0,.69444,0,0,.73752],Dr=[0,.69444,.09205,0,.5],Zr=[0,.69444,.09031,0,.77778],bt=[0,.69444,.07816,0,.27778],Bt=[0,.69444,.00316,0,.5],U=[.19444,.69444,0,0,.83334],j=[.05556,.75,0,0,.83334],Ee=[0,.75,0,0,.5],De=[.125,.08333,0,0,.27778],Je=[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],Xe=[.25,.75,0,0,.28889],mt=[0,.69444,0,0,.51667],yt=[0,.44444,0,0,.44445],It=[.19444,.44444,0,0,.51667],Rt=[0,.44444,0,0,.38333],Tt=[0,.44444,0,0,.51667],pr=[0,.69444,0,0,.83334],sr=[.35001,.85,0,0,.45834],_r=[.35001,.85,0,0,.57778],Qr=[.35001,.85,0,0,.41667],hn=[.35001,.85,0,0,.58334],rr=[0,.72222,0,0,.55556],St=[1e-5,.6,0,0,.66667],Un=[1e-5,.6,0,0,.77778],jr=[.25001,.75,0,0,.94445],yr=[.306,.805,.19445,0,.47222],Fr=[.30612,.805,.19445,0,.47222],br=[.25001,.75,0,0,.83334],kr=[.35001,.85,0,0,.47222],fn=[.25001,.75,0,0,1.11111],$n=[.65002,1.15,0,0,.59722],Kn=[.65002,1.15,0,0,.81111],Bn=[.65002,1.15,0,0,.47222],ai=[.65002,1.15,0,0,.66667],Ci=[0,.75,0,0,1],fi=[.55001,1.05,0,0,1.27778],gi=[.862,1.36,.44445,0,.55556],Dn=[.86225,1.36,.44445,0,.55556],pa=[.55001,1.05,0,0,1.11111],qn=[.65002,1.15,0,0,.52778],co=[.65002,1.15,0,0,.61111],Ri=[.55001,1.05,0,0,1.51112],na=[.95003,1.45,0,0,.73611],Ta=[.95003,1.45,0,0,1.04445],ga=[.95003,1.45,0,0,.52778],Vn=[.95003,1.45,0,0,.75],Wn=[0,.75,0,0,1.44445],mi=[.95003,1.45,0,0,.58334],hi=[1.25003,1.75,0,0,.79167],Vi=[1.25003,1.75,0,0,1.27778],mn=[1.25003,1.75,0,0,.58334],Xn=[1.25003,1.75,0,0,.80556],oa=[0,.825,0,0,1.8889],ji=[1.25003,1.75,0,0,.63889],Lo=[.64502,1.155,0,0,.875],ko=[1e-5,.6,0,0,.875],Hi=[-99e-5,.601,0,0,.66667],eo=[.64502,1.155,0,0,.66667],as=[1e-5,.9,0,0,.88889],Cn=[.65002,1.15,0,0,.88889],Ao=[.90001,0,0,0,.88889],Ho=[-.00499,.605,0,0,1.05556],qi=[0,.12,0,0,.45],on=[0,.61111,0,0,.525],va=[.08333,.69444,0,0,.525],uo=[-.08056,.53055,0,0,.525],Va=[-.05556,.55556,0,0,.525],Mi=[0,.43056,0,0,.525],Do=[.22222,.43056,0,0,.525],Po=[0,0,0,0,.525],os={"AMS-Regular":{32:Ar,65:ar,66:Ir,67:ar,68:ar,69:Ir,70:Kr,71:Pr,72:Pr,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:Pr,76:Ir,77:[0,.68889,0,0,.94445],78:ar,79:Tr,80:Kr,81:Tr,82:ar,83:cr,84:Ir,85:ar,86:ar,87:[0,.68889,0,0,1],88:ar,89:ar,90:Ir,107:cr,160:Ar,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:cr,295:Sn,710:zr,732:cn,770:zr,771:cn,989:Si,1008:li,8245:[0,.54986,0,0,.275],8463:Sn,8487:ar,8498:cr,8502:Ir,8503:[0,.68889,0,0,.44445],8504:Ir,8513:[0,.68889,0,0,.63889],8592:An,8594:An,8602:_n,8603:_n,8606:xi,8608:xi,8610:Mr,8611:Mr,8619:ei,8620:ei,8621:[-.13313,.37788,0,0,1.38889],8622:_n,8624:Bi,8625:Bi,8630:zn,8631:zn,8634:Oi,8635:Oi,8638:yi,8639:yi,8642:yi,8643:yi,8644:Ki,8646:Ki,8647:Ki,8648:Ca,8649:Ki,8650:Ca,8651:xi,8652:xi,8653:_n,8654:_n,8655:_n,8666:Zi,8667:Zi,8669:[-.13313,.37788,0,0,1],8672:ni,8674:ni,8705:[0,.825,0,0,.5],8708:cr,8709:Si,8717:[0,.43056,0,0,.42917],8722:An,8724:[.08198,.69224,0,0,.77778],8726:Si,8733:st,8736:Ui,8737:Ui,8738:[.03517,.52239,0,0,.72222],8739:Fn,8740:[.25142,.74111,0,0,.27778],8741:Ln,8742:[.25142,.74111,0,0,.5],8756:me,8757:me,8764:Ue,8765:[-.13313,.37788,0,0,.77778],8769:Ue,8770:Gs,8774:hr,8776:rl,8778:Si,8782:Me,8783:Me,8785:Oi,8786:Oi,8787:Oi,8790:st,8791:Ur,8796:[.08198,.91667,0,0,.77778],8806:Zt,8807:Zt,8808:Kt,8809:Kt,8812:[.25583,.75583,0,0,.5],8814:Br,8815:Br,8816:hr,8817:hr,8818:Ur,8819:Ur,8822:Wr,8823:Wr,8828:en,8829:en,8830:Ur,8831:Ur,8832:Br,8833:Br,8840:hr,8841:hr,8842:Vr,8843:Vr,8847:Hr,8848:Hr,8858:Oi,8859:Oi,8861:Oi,8862:qr,8863:qr,8864:qr,8865:qr,8872:[0,.69224,0,0,.61111],8873:Ui,8874:[0,.69224,0,0,.88889],8876:Kr,8877:Kr,8878:ar,8879:ar,8882:Hr,8883:Hr,8884:en,8885:en,8888:[0,.54986,0,0,1.11111],8890:ha,8891:gn,8892:gn,8901:[0,.54986,0,0,.27778],8903:Si,8905:Si,8906:Si,8907:st,8908:st,8909:[-.03598,.46402,0,0,.77778],8910:tn,8911:tn,8912:Hr,8913:Hr,8914:Mn,8915:Mn,8916:me,8918:Rn,8919:Rn,8920:pi,8921:pi,8922:Pn,8923:Pn,8926:en,8927:en,8928:hr,8929:hr,8934:ln,8935:ln,8936:ln,8937:ln,8938:Br,8939:Br,8940:hr,8941:hr,8994:Ht,8995:Ht,9416:[.15559,.69224,0,0,.90222],9484:Bi,9488:Bi,9492:Wt,9496:Wt,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:qr,9633:qr,9650:er,9651:er,9654:Hr,9660:er,9661:er,9664:Hr,9674:Xt,9733:[.19444,.69224,0,0,.94445],10003:tr,10016:tr,10731:Xt,10846:[.19444,.75583,0,0,.61111],10877:en,10878:en,10885:Zt,10886:Zt,10887:Vr,10888:Vr,10889:Nr,10890:Nr,10891:Lr,10892:Lr,10901:en,10902:en,10933:Kt,10934:Kt,10935:Nr,10936:Nr,10937:Nr,10938:Nr,10949:Zt,10950:Zt,10955:Jr,10956:Jr,57350:Fn,57351:Ln,57352:Si,57353:li,57356:Kt,57357:Kt,57358:ti,57359:hr,57360:hr,57361:ti,57366:Kt,57367:Kt,57368:Kt,57369:Kt,57370:Vr,57371:Vr},"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:bi,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:Ei,41:Ei,42:[0,.62119,0,0,.27764],43:Yn,44:Hn,45:Yn,46:Hn,47:[.24982,.74947,0,0,.50181],48:sn,49:sn,50:sn,51:vi,52:vi,53:vi,54:In,55:vi,56:In,57:vi,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:ii,93:ii,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:bi,8217:bi,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:da,35:[.19444,.69444,0,0,.95833],36:wo,37:[.05556,.75,0,0,.95833],38:ra,39:jn,40:Di,41:Di,42:[0,.75,0,0,.575],43:Yi,44:[.19444,.15556,0,0,.31944],45:Rt,46:[0,.15556,0,0,.31944],47:rn,48:Gn,49:Gn,50:Gn,51:Gn,52:Gn,53:Gn,54:Gn,55:Gn,56:Gn,57:Gn,58:so,59:[.19444,.44444,0,0,.31944],60:Li,61:Ja,62:Li,63:[0,.69444,0,0,.54305],64:ra,65:un,66:[0,.68611,0,0,.81805],67:ki,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:On,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:un,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:Nn,92:rn,93:Nn,94:ca,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:wn,99:_i,100:wn,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:wn,105:jn,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:jn,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:_i,123:rn,124:Nn,125:rn,126:[.35,.34444,0,0,.575],160:Ar,163:[0,.69444,0,0,.86853],168:ca,172:[0,.44444,0,0,.76666],176:ri,177:Yi,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:Yi,216:[.04861,.73472,0,0,.89444],223:Et,230:[0,.44444,0,0,.83055],247:Yi,248:[.09722,.54167,0,0,.575],305:so,338:[0,.68611,0,0,1.16944],339:No,567:[.19444,.44444,0,0,.35139],710:ca,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:ca,715:ca,728:ca,729:jn,730:ri,732:ca,733:ca,915:On,916:Ba,920:Ii,923:ad,926:ou,928:si,931:ki,933:Ii,934:ki,936:Ii,937:ki,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:jn,8217:jn,8220:da,8221:da,8224:To,8225:To,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:KA,8465:ia,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:ia,8501:el,8592:Ji,8593:ja,8594:Ji,8595:ja,8596:Ji,8597:rn,8598:Fa,8599:Fa,8600:Fa,8601:Fa,8636:Ji,8637:Ji,8640:Ji,8641:Ji,8656:Ji,8657:ro,8658:Ji,8659:ro,8660:Ji,8661:[.25,.75,0,0,.70277],8704:wn,8706:[0,.69444,.06389,0,.62847],8707:wn,8709:wo,8711:Ba,8712:di,8715:di,8722:Yi,8723:Yi,8725:rn,8726:rn,8727:Wo,8728:Aa,8729:Aa,8730:[.18,.82,0,0,.95833],8733:No,8734:[0,.44444,0,0,1.14999],8736:Ui,8739:Nn,8741:rn,8743:ho,8744:ho,8745:ho,8746:ho,8747:[.19444,.69444,.12778,0,.56875],8764:Ja,8768:[.19444,.69444,0,0,.31944],8771:Ni,8776:[.02444,.52444,0,0,.89444],8781:Ni,8801:Ni,8804:Oo,8805:Oo,8810:po,8811:po,8826:Li,8827:Li,8834:Li,8835:Li,8838:Oo,8839:Oo,8846:ho,8849:Oo,8850:Oo,8851:ho,8852:ho,8853:Yi,8854:Yi,8855:Yi,8856:Yi,8857:Yi,8866:el,8867:el,8868:ra,8869:ra,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:Fa,9824:za,9825:za,9826:za,9827:za,9837:[0,.75,0,0,.44722],9838:Qa,9839:Qa,10216:Di,10217:Di,10815:si,10927:Oo,10928:Oo,57376:wA},"Main-BoldItalic":{32:Ar,33:[0,.69444,.11417,0,.38611],34:Eo,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:Ea,49:Ea,50:Ea,51:Ea,52:Qs,53:Ea,54:Ea,55:Qs,56:Ea,57:Ea,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:wi,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:wi,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:Gi,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:Wi,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:Wi,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:Ia,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:Ti,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:Ti,567:[.19444,.44444,.04611,0,.385],710:Gi,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:Ia,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:wi,931:[0,.68611,.11431,0,.82666],933:Fo,934:[0,.68611,.05632,0,.82666],936:Fo,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:Eo},"Main-Italic":{32:Ar,33:$a,34:ll,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:$a,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:Sa,49:Sa,50:Sa,51:Sa,52:fa,53:Sa,54:Sa,55:fa,56:Sa,57:Sa,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:Io,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:Ya,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:Ya,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:Ma,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:lo,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:lo,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:Ma,732:[0,.66786,.11585,0,.51111],733:Io,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:$a,8217:$a,8220:[0,.69444,.1685,0,.51444],8221:ll,8463:Sn},"Main-Regular":{32:Ar,33:Uo,34:Qo,35:U,36:Ws,37:j,38:Qn,39:Uo,40:Ms,41:Ms,42:Ee,43:mo,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:bs,48:Mo,49:Mo,50:Mo,51:Mo,52:Mo,53:Mo,54:Mo,55:Mo,56:Mo,57:Mo,58:Za,59:[.19444,.43056,0,0,.27778],60:Rn,61:Ue,62:Rn,63:dt,64:Qn,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:La,92:bs,93:La,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:no,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:Uo,109:[0,.43056,0,0,.83334],110:aa,111:cl,112:ha,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:aa,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:La,125:bs,126:[.35,.31786,0,0,.5],160:Ar,163:[0,.69444,0,0,.76909],167:Ls,168:qa,172:[0,.43056,0,0,.66667],176:Ko,177:mo,182:Pl,184:yn,198:[0,.68333,0,0,.90278],215:mo,216:[.04861,.73194,0,0,.77778],223:Qo,230:[0,.43056,0,0,.72222],247:mo,248:[.09722,.52778,0,0,.5],305:Za,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:no,730:Ko,732:qa,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:Sn,8465:Al,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:Al,8501:Pa,8592:_n,8593:Vs,8594:_n,8595:Vs,8596:_n,8597:bs,8598:tl,8599:tl,8600:tl,8601:tl,8614:[.011,.511,0,0,1],8617:Hc,8618:Hc,8636:_n,8637:_n,8640:_n,8641:_n,8652:[.011,.671,0,0,1],8656:_n,8657:Pl,8658:_n,8659:Pl,8660:_n,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:mo,8723:mo,8725:bs,8726:bs,8727:go,8728:fc,8729:fc,8730:[.2,.8,0,0,.83334],8733:yA,8734:zn,8736:Ui,8739:La,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:Vr,8805:Vr,8810:nl,8811:nl,8826:Rn,8827:Rn,8834:Rn,8835:Rn,8838:Vr,8839:Vr,8846:Nl,8849:Vr,8850:Vr,8851:Nl,8852:Nl,8853:mo,8854:mo,8855:mo,8856:mo,8857:mo,8866:Pa,8867:Pa,8868:Qn,8869:Qn,8872:[.249,.75,0,0,.867],8900:fc,8901:[-.05555,.44445,0,0,.27778],8902:go,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:vo,8969:vo,8970:vo,8971:vo,8994:Yo,8995:Yo,9136:ks,9137:ks,9651:Mc,9657:go,9661:Mc,9667:go,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:Vr,10928:Vr,57376:wA},"Math-BoldItalic":{32:Ar,48:hc,49:hc,50:hc,51:pc,52:pc,53:pc,54:Gn,55:pc,56:Gn,57:pc,65:un,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:Ba,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:Mo,55:su,56:Mo,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:ir,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:ae,68:T,69:[0,.69444,0,0,.64167],70:Pa,71:C,72:T,73:[0,.69444,0,0,.33056],74:V,75:_e,76:kt,77:[0,.69444,0,0,.97778],78:T,79:T,80:ae,81:[.10556,.69444,0,0,.79445],82:ae,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:lt,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:lt,109:[0,.45833,0,0,.86667],110:Lt,111:[0,.45833,0,0,.55],112:be,113:be,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:T,931:T,933:Pt,934:T,936:Pt,937:T,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:wt,8217:wt,8220:ir,8221:ir},"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:Je,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:Rr,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:Rr,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:Er,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:Er,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:Rr,931:[0,.69444,.11983,0,.72222],933:Zr,934:[0,.69444,.04603,0,.72222],936:Zr,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:j,38:[0,.69444,0,0,.75834],39:Uo,40:Ms,41:Ms,42:Ee,43:mo,44:De,45:[0,.44444,0,0,.33333],46:Je,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:Xe,93:Xe,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:Rt,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:Qn,923:Pa,926:pt,928:Ze,931:Al,933:Qn,934:Al,936:Qn,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:_r,91:Qr,92:_r,93:Qr,123:hn,125:hn,160:Ar,710:rr,732:rr,770:rr,771:rr,8214:[-99e-5,.601,0,0,.77778],8593:St,8595:St,8657:Un,8659:Un,8719:jr,8720:jr,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:Fr,8748:yr,8749:yr,8750:Fr,8896:br,8897:br,8898:br,8899:br,8968:kr,8969:kr,8970:kr,8971:kr,9168:Hi,10216:kr,10217:kr,10752:fn,10753:fn,10754:fn,10756:br,10758:br},"Size2-Regular":{32:Ar,40:$n,41:$n,47:Kn,91:Bn,92:Kn,93:Bn,123:ai,125:ai,160:Ar,710:Ci,732:Ci,770:Ci,771:Ci,8719:fi,8720:fi,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:Dn,8748:gi,8749:gi,8750:Dn,8896:pa,8897:pa,8898:pa,8899:pa,8968:qn,8969:qn,8970:qn,8971:qn,10216:co,10217:co,10752:Ri,10753:Ri,10754:Ri,10756:pa,10758:pa},"Size3-Regular":{32:Ar,40:na,41:na,47:Ta,91:ga,92:Ta,93:ga,123:Vn,125:Vn,160:Ar,710:Wn,732:Wn,770:Wn,771:Wn,8730:[.95003,1.45,0,0,1],8968:mi,8969:mi,8970:mi,8971:mi,10216:Vn,10217:Vn},"Size4-Regular":{32:Ar,40:hi,41:hi,47:Vi,91:mn,92:Vi,93:mn,123:Xn,125:Xn,160:Ar,710:oa,732:oa,770:oa,771:oa,8730:[1.25003,1.75,0,0,1],8968:ji,8969:ji,8970:ji,8971:ji,9115:Lo,9116:ko,9117:Lo,9118:Lo,9119:ko,9120:Lo,9121:eo,9122:Hi,9123:eo,9124:eo,9125:Hi,9126:eo,9127:as,9128:Cn,9129:Ao,9130:[0,.3,0,0,.88889],9131:as,9132:Cn,9133:Ao,9143:[.88502,.915,0,0,1.05556],10216:Xn,10217:Xn,57344:Ho,57345:Ho,57680:qi,57681:qi,57682:qi,57683:qi},"Typewriter-Regular":{32:Po,33:on,34:on,35:on,36:va,37:va,38:on,39:on,40:va,41:va,42:[0,.52083,0,0,.525],43:uo,44:[.13889,.125,0,0,.525],45:uo,46:[0,.125,0,0,.525],47:va,48:on,49:on,50:on,51:on,52:on,53:on,54:on,55:on,56:on,57:on,58:Mi,59:[.13889,.43056,0,0,.525],60:Va,61:[-.19549,.41562,0,0,.525],62:Va,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:va,92:va,93:va,94:on,95:[.09514,0,0,0,.525],96:on,97:Mi,98:on,99:Mi,100:on,101:Mi,102:on,103:Do,104:on,105:on,106:[.22222,.61111,0,0,.525],107:on,108:on,109:Mi,110:Mi,111:Mi,112:Do,113:Do,114:Mi,115:Mi,116:[0,.55358,0,0,.525],117:Mi,118:Mi,119:Mi,120:Mi,121:Do,122:Mi,123:va,124:va,125:va,126:on,127:on,160:Po,176:on,184:[.19445,0,0,0,.525],305:Mi,567:Do,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,yo={"\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 yo)e=yo[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 $=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;">${$}</span>`}function HA(e){return oc[e]?oc[e][2]/1e3:Sl[e][2]}function ma(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 io=8205,Ka=[[io,1],[65038,2],[127995,5],[129456,4],[917536,96]],bo,ms=[127462,127487];function Ps(e){var t;if(bo===void 0){bo={};for(const r of Ka)for(let n=r[0];n<=r[0]+r[1]-1;n++)bo[n]=!0}return(t=bo[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=ma(e);let n=0;for(;n<r.length;){const i=r[n++],s=r[n];if(s===io){const A=n-1;for(n+=2;r[n]===io;)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]===io?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 $ of M)A.push($==="\\"?"\\backslash":$);else M==="<{>"?A.push("\\{"):M==="<space>"?A.push("~"):M==="<}>"&&A.push("\\}")}else if(M==="\\csname"){for(;e.peek()==="<space>";)e.next();let $="",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||($+=Ae.shift())}while(!J);$&&A.push("\\"+$),A.push(...Ae)}else if(M!=="\\endcsname")if(M.length>1&&M.startsWith("#")){const $=M.slice(1);A.push(...Ns((s=(i=t==null?void 0:t($))!=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(rt(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 Bo(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 $ of Jl(A,"color")){const J=$[0].computedStyle,Ae=js._registry[$[0].mode].serialize($,E(f({},t),{defaultMode:M==="text"?"text":"math"}));!t.skipStyles&&J.color&&J.color!=="none"&&(!n||i!==J.color)?s.push(Bo("\\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 Bo("\\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 dn=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 $=r==null?void 0:r.fontFamily;r!=null&&r.style&&this.value&&($=(M=js.getFont((A=r.mode)!=null?A:"math",this,E(f({variant:"normal"},r.style),{letterShapeStyle:r.letterShapeStyle})))!=null?M:void 0),$||($="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),la(this,$)}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 $=this.classes.split(" ");$.push((n={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?n:""),this.caret==="latex"&&$.push("ML__latex-caret"),this.isSelected&&$.push("ML__selected");const J=$.length===1?$[0]:$.filter((Ft,Ot,Sr)=>Ft.length>0&&Sr.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 Sr=Ot.match(/([^=]+)=(.+$)/);if(Sr){const En=Sr[1].trim().replace(/ /g,"-");En&&(M+=` data-${En}="${Sr[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 Sr of Ft){const En=Sr.match(/([^=]+):(.+$)/);if(En){const wr=En[1].trim().replace(/ /g,"-");wr&&(Ot+=`${wr}:${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 $ of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(t.cssProperties&&$ in t.cssProperties||this.cssProperties&&$ 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 $ of Object.keys(this.cssProperties))if(this.cssProperties[$]!==t.cssProperties[$])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[$,J]of A.entries())if(J==="vertical-separator"||J!==M[$])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 dn(null,t);const r=new dn(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 dn(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 dn(n,E(f({},t),{type:"lift"}))}function Vc(e){const t=HA(e)/2,r=new dn(null,{maxFontSize:0});return r.height=t+.166,r.depth=t-.166,r.svgBody=e,r}function la(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],$=-M.shift-s-M.box.depth,J=$-(r.box.height+r.box.depth);s=s+$,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 dn(null,{classes:"pstrut"});let s=0;for(const Ot of r)if(typeof Ot!="number"){const Sr=Ot.box;s=Math.max(s,Sr.maxFontSize,Sr.height)}s+=2,i.height=s,i.setStyle("height",s,"em");const A=[];let M=n,$=n,J=n,Ae=0;for(const Ot of r){if(typeof Ot=="number")J+=Ot;else{const Sr=Ot.box,En=(t=Ot.classes)!=null?t:[],wr=new dn([i,Sr],{classes:En.join(" "),style:Ot.style});Sr.setStyle("height",Sr.height+Sr.depth,"em"),Sr.setStyle("display","inline-block"),wr.setStyle("top",-s-J-Sr.depth,"em"),Ot.marginLeft&&wr.setStyle("margin-left",Ot.marginLeft,"em"),Ot.marginRight&&wr.setStyle("margin-right",Ot.marginRight,"em"),A.push(wr),J+=Sr.height+Sr.depth,Ae=Math.max(Ae,wr.width)}M=Math.min(M,J),$=Math.max($,J)}A.forEach(Ot=>{Ot.softWidth=Ae});const Qe=new dn(A,{classes:"vlist"});if(Qe.softWidth=Ae,Qe.height=$,Qe.setStyle("height",$,"em"),M>=0)return[[new dn(Qe,{classes:"vlist-r"})],$,-M];const ft=new dn(new dn(null),{classes:"vlist"});ft.height=-M,ft.setStyle("height",-M,"em");const Ft=new dn(8203,{classes:"vlist-s",maxFontSize:0});return Ft.softWidth=0,Ft.height=0,Ft.depth=0,[[new dn([Qe,Ft],{classes:"vlist-r"}),new dn(ft,{classes:"vlist-r"})],$,-M]}var So=class extends dn{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,$=new dn(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+$.depth+J;Ft=new So({bottom:Ot,children:[M.bigOpSpacing5,{box:t.below,marginLeft:-Ae,classes:["ML__center"]},ft,{box:$,classes:["ML__center"]},Qe,{box:t.above,marginLeft:Ae,classes:["ML__center"]},M.bigOpSpacing5]}).wrap(e)}else if(t.below&&!t.above)Ft=new So({top:$.height-J,children:[M.bigOpSpacing5,{box:t.below,marginLeft:-Ae,classes:["ML__center"]},ft,{box:$,classes:["ML__center"]}]}).wrap(e);else if(!t.below&&t.above){const Ot=$.depth+J;Ft=new So({bottom:Ot,children:[{box:$,classes:["ML__center"]},Qe,{box:t.above,marginLeft:Ae,classes:["ML__center"]},M.bigOpSpacing5]}).wrap(e)}else{const Ot=$.depth+J;Ft=new So({bottom:Ot,children:[{box:$},M.bigOpSpacing5]}).wrap(e)}return new dn(Ft,{type:(A=t.type)!=null?A:"op"})}var aA=7,lc=6,Wc=5,Yl=4,cc=3,xo=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 ya[[ls,Xs,ls,Xs,xo,cc,xo,cc][this.id]]}get sub(){return ya[[ls,ls,ls,ls,xo,xo,xo,xo][this.id]]}get fracNum(){return ya[[ls,Xs,ls,Xs,xo,cc,Yl,Wc][this.id]]}get fracDen(){return ya[[ls,ls,ls,ls,xo,xo,Yl,Yl][this.id]]}get cramp(){return ya[[ls,ls,xo,xo,Yl,Yl,lc,lc][this.id]]}get isTight(){return this.sizeDelta<0}},_a={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(xo,-3,!0),1:new ul(Xs,-4,!1),0:new ul(ls,-4,!0)},ya=E(f({},_a),{displaystyle:_a[aA],textstyle:_a[Wc],scriptstyle:_a[cc],scriptscriptstyle:_a[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:ee,getMacro:e=>zt(e,ct())}}var ba=class Jh{constructor(t,r){var n,i,s,A,M,$,J,Ae,Qe,ft,Ft,Ot,Sr,En,wr;let an;t!=null&&t.parent?(this.parent=t.parent,an=t.parent,this.registers={}):(an=f(f({},lu()),(n=t==null?void 0:t.from)!=null?n:{}),this.registers=an.registers),an.atomIdsSettings&&(this.atomIdsSettings=f({},an.atomIdsSettings)),this.renderPlaceholder=an.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=an.letterShapeStyle,this.minFontScale=an.minFontScale,r!=null&&r.color&&r.color!=="none"?this.color=r.color:this.color=($=(M=this.parent)==null?void 0:M.color)!=null?$:"",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 Tn=(Sr=(Ot=this.parent)==null?void 0:Ot.mathstyle)!=null?Sr:ya.displaystyle;if(typeof(t==null?void 0:t.mathstyle)=="string"){if(an instanceof Jh)switch(t.mathstyle){case"cramp":Tn=Tn.cramp;break;case"superscript":Tn=Tn.sup;break;case"subscript":Tn=Tn.sub;break;case"numerator":Tn=Tn.fracNum;break;case"denominator":Tn=Tn.fracDen;break}switch(t.mathstyle){case"textstyle":Tn=ya.textstyle;break;case"displaystyle":Tn=ya.displaystyle;break;case"scriptstyle":Tn=ya.scriptstyle;break;case"scriptscriptstyle":Tn=ya.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=Tn,this.smartFence=an.smartFence,this.placeholderSymbol=an.placeholderSymbol,this.colorMap=(En=an.colorMap)!=null?En:pn=>pn,this.backgroundColorMap=(wr=an.backgroundColorMap)!=null?wr:pn=>pn,this.getMacro=an.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 $r=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 $ of s){const J=$[0].style,Ae=Ed(t,$,{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 dn(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([Bo(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 ba({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,$=null;const J=(n=r.isCharacterBox)!=null?n:this.isCharacterBox();let Ae=0;if(s){const Sr=new ba({parent:t,mathstyle:"superscript"});M=nd.createBox(Sr,s),J||(Ae=i.height-t.metrics.supDrop*Sr.scalingFactor)}let Qe=0;if(A){const Sr=new ba({parent:t,mathstyle:"subscript"});$=nd.createBox(Sr,A),J||(Qe=i.depth+t.metrics.subDrop*Sr.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($&&M){Ae=Math.max(Ae,ft,M.depth+.25*t.metrics.xHeight),Qe=Math.max(Qe,t.metrics.sub2);const Sr=t.metrics.defaultRuleThickness;if(Ae-M.depth-($.height-Qe)<4*Sr){Qe=4*Sr-(Ae-M.depth)+$.height;const wr=.8*t.metrics.xHeight-(Ae-M.depth);wr>0&&(Ae+=wr,Qe-=wr)}const En=this.isExtensibleSymbol&&i.italic?-i.italic:0;Ot=new So({individualShift:[{box:$,shift:Qe,marginLeft:En},{box:M,shift:-Ae}]}).wrap(t)}else $&&!M?(Qe=Math.max(Qe,t.metrics.sub1,$.height-.8*qo),Ot=new So({shift:Qe,children:[{box:$,marginRight:Ft,marginLeft:this.isCharacterBox()?-i.italic:0}]})):!$&&M&&(Ae=Math.max(Ae,ft,M.depth+.25*qo),Ot=new So({shift:-Ae,children:[{box:M,marginRight:Ft}]}));return new dn([i,new dn(Ot,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:r.type})}attachLimits(t,r){const n=this.superscript?nd.createBox(new ba({parent:t,mathstyle:"superscript"},this.style),this.superscript):null,i=this.subscript?nd.createBox(new ba({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,$=(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 dn(M!=null?M:null,{type:$,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:$,classes:J}))!=null?A:new dn(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 $=new ba({parent:e},r.style),J=!((n=$.atomIdsSettings)!=null&&n.groupNumbers);let Ae=[];if(t.length===1){const ft=t[0],Ft=ft.render($);Ft&&(J&&ft.isSelected&&Ft.selected(!0),Ae=[Ft])}else{let ft="",Ft=!0;for(const Ot of t){(i=$.atomIdsSettings)!=null&&i.groupNumbers&&ft&&(Ft&&Ot.isDigit()||!Ft&&WA(Ot))&&($.atomIdsSettings.overrideID=ft);const Sr=Ot.render($);$.atomIdsSettings&&($.atomIdsSettings.overrideID=void 0),Sr&&((s=$.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&&Sr.selected(!0),Ae.push(Sr))}}if(Ae.length===0)return null;const Qe=new dn(Ae,E(f({isTight:$.isTight},r),{type:(M=r.type)!=null?M:"lift"}));return Qe.isSelected=Ae.every(ft=>ft.isSelected),Qe.wrap($)}function WA(e){return e.mode==="text"}function SA(e){return e.map(t=>t===null?"<null>":Array.isArray(t)&&t[0]instanceof $r?{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 $r{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:Ut("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,$=!1,J=!1,Ae=!1,Qe=!1,ft=!1,Ft=!1,Ot=!1,Sr=!1,En=!1,wr=e[0],an=0;for(;wr!=null&&wr.type&&/^(subsup|placeholder)$/.test(wr.type);)an+=1,wr=e[an];return r=!wr||wr.type==="first",wr&&(Sr=wr.mode==="text",n=!Sr&&wr.type==="mord"&&p.test(wr.value),i=!Sr&&wr.type==="mord"&&/\d+$/.test(wr.value),s=!Sr&&wr.isFunction,A=wr.type==="genfrac",M=wr.type==="surd",$=wr.type==="mbin",J=wr.type==="mrel",Ae=wr.type==="mop"||wr.type==="operator"||wr.type==="extensible-symbol",Qe=wr.type==="mpunct"||wr.type==="minner",ft=wr.type==="array",Ft=wr.type==="mopen",Ot=wr.type==="mclose"||wr.type==="leftright",En=wr.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")&&$||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")&&Sr||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 N(e,t){var r;let n=(r=t==null?void 0:t.format)!=null?r:"auto";return n==="auto"&&([n,e]=kn(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 $=Dt(A.rest.slice(1),{inlineShortcuts:M,noWrap:!0});$.match&&(e="\\frac{"+A.match+"}{"+$.match+"}"+$e($.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 kn(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 Pi="$$",ea="$$",ka=(e,t,r)=>(vr.some(n=>t.startsWith(n[0])&&t.endsWith(n[1]))||(t=`${Pi} ${t} ${ea}`),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 $;return($=M.value)!=null?$:""}).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($){}if(A.length===1){const $=A[0];($.type==="root"||$.type==="group")&&(A=$.body.filter(J=>J.type!=="first"))}try{r.clipboardData.setData("application/json+mathlive",JSON.stringify(A.map($=>$.toJson())))}catch($){}if((n=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&n.ComputeEngine){const $=window.MathfieldElement.computeEngine;if($)try{const J=$.jsonSerializationOptions;$.jsonSerializationOptions={metadata:["latex"]};const Ae=$.parse(i.getValue(s,"latex-unstyled"));$.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 $=Math.floor(s.getBoundingClientRect().width)/A;$=isNaN($)?1:$;const J=pl(e,oA(e,i),$);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 $r{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 ba({parent:t,mathstyle:"cramp"},this.style),i=(r=$r.createBox(n,this.body))!=null?r:new dn("\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 dn(this.accent,{fontFamily:"Main-Regular"});J.italic=0;const Ae=this.accent===8407?" ML__accent-vec":"";M=new dn(new dn(J),{classes:"ML__accent-body"+Ae})}M=new So({shift:0,children:[{box:new dn(i)},-A,{box:M,marginLeft:i.left+2*s,classes:["ML__center"]}]});const $=new dn(M,{type:"lift"});return this.caret&&($.caret=this.caret),this.bind(n,$.wrap(n)),this.attachSupsub(n,{base:$})}},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 dn(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 ba({parent:n,mathstyle:"textstyle"},i==null?void 0:i.style),$=new dn(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&&$.setTop((1-M.scalingFactor)*hs),$}function Jc(e,t,r,n,i){var s;let A,M,$,J;A=$=J=il(e),M=null;let Ae="Size1-Regular";e==="\\vert"||e==="\\lvert"||e==="\\rvert"||e==="\\mvert"||e==="\\mid"?$=A=J=8739:e==="\\Vert"||e==="\\lVert"||e==="\\rVert"||e==="\\mVert"||e==="\\|"?$=A=J=8741:e==="\\uparrow"?$=J=9168:e==="\\Uparrow"?$=J=8214:e==="\\downarrow"?A=$=9168:e==="\\Downarrow"?A=$=8214:e==="\\updownarrow"?(A=8593,$=9168,J=8595):e==="\\Updownarrow"?(A=8657,$=8214,J=8659):e==="["||e==="\\lbrack"?(A=9121,$=9122,J=9123,Ae="Size4-Regular"):e==="]"||e==="\\rbrack"?(A=9124,$=9125,J=9126,Ae="Size4-Regular"):e==="\\lfloor"||e==="\u230A"?($=A=9122,J=9123,Ae="Size4-Regular"):e==="\\lceil"||e==="\u2308"?(A=9121,$=J=9122,Ae="Size4-Regular"):e==="\\rfloor"||e==="\u230B"?($=A=9125,J=9126,Ae="Size4-Regular"):e==="\\rceil"||e==="\u2309"?(A=9124,$=J=9125,Ae="Size4-Regular"):e==="("||e==="\\lparen"?(A=9115,$=9116,J=9117,Ae="Size4-Regular"):e===")"||e==="\\rparen"?(A=9118,$=9119,J=9120,Ae="Size4-Regular"):e==="\\{"||e==="\\lbrace"?(A=9127,M=9128,J=9129,$=9130,Ae="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(A=9131,M=9132,J=9133,$=9130,Ae="Size4-Regular"):e==="\\lgroup"||e==="\u27EE"?(A=9127,J=9129,$=9130,Ae="Size4-Regular"):e==="\\rgroup"||e==="\u27EF"?(A=9131,J=9133,$=9130,Ae="Size4-Regular"):e==="\\lmoustache"||e==="\u23B0"?(A=9127,J=9133,$=9130,Ae="Size4-Regular"):e==="\\rmoustache"||e==="\u23B1"?(A=9131,J=9129,$=9130,Ae="Size4-Regular"):e==="\\surd"?(A=57345,J=9143,$=57344,Ae="Size4-Regular"):e==="\\ulcorner"?(A=9484,$=J=32):e==="\\urcorner"?(A=9488,$=J=32):e==="\\llcorner"?(J=9492,$=A=32):e==="\\lrcorner"&&(A=9496,$=A=32);const Qe=Hs(A,Ae),ft=Qe.height+Qe.depth,Ft=Hs($,Ae),Ot=Ft.height+Ft.depth,Sr=Hs(J,Ae),En=Sr.height+Sr.depth;let wr=0,an=1;if(M!==null){const Ml=Hs(M,Ae);wr=Ml.height+Ml.depth,an=2}const Tn=ft+En+wr,pn=Math.max(0,Math.ceil((t-Tn)/(an*Ot))),Fi=Tn+pn*an*Ot;let $i=hs;r&&($i=$i*n.scalingFactor);const Qi=Fi/2-$i,oo=.008,Vo=[];Vo.push({box:new dn(J,{fontFamily:Ae})}),Vo.push(-oo);const Zn=new dn($,{fontFamily:Ae});if(M===null)for(let Ml=0;Ml<pn;Ml++)Vo.push({box:Zn});else{for(let Ml=0;Ml<pn;Ml++)Vo.push({box:Zn});Vo.push(-oo),Vo.push({box:new dn(M,{fontFamily:Ae})}),Vo.push(-oo);for(let Ml=0;Ml<pn;Ml++)Vo.push({box:Zn})}Vo.push(-oo),Vo.push({box:new dn(A,{fontFamily:Ae})});let gA="";Ae==="Size1-Regular"?gA=" delim-size1":Ae==="Size4-Regular"&&(gA=" delim-size4");const _u=new So({bottom:Qi,children:Vo},{classes:gA});return new dn(_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),$=new ba({parent:i,mathstyle:M.mathstyle},s==null?void 0:s.style);return M.type==="small"?Ys(t,$,n,E(f({},s),{type:e})):M.type==="large"?cA(t,M.size,n,$,E(f({},s),{type:e})):(console.assert(M.type==="stack"),Jc(t,r,n,$,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,$=5/ss,J=Math.max(r-A,n+A),Ae=Math.max(J/500*M,2*J-$);return xc(e,t,Ae,!0,i,s)}function rc(e,t){const r=new dn(null,{classes:" nulldelimiter "+(t!=null?t:""),type:"ignore"});return r.width=e.getRegisterAsEm("nulldelimiterspace"),r.wrap(new ba({parent:e,mathstyle:"textstyle"}))}var zl=class ep extends $r{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 $r({type:"first",mode:e.mode})]):Ft[0].type!=="first"?Qe.push([new $r({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 $r({type:"first",mode:e.mode}),new zl]);A.push(J)}let M=0,$=0;for(const J of A){$=0;for(const Ae of J){for(const Qe of Ae)Qe.parent=e,Qe.parentBranch=[M,$];$+=1}M+=1}return e.isDirty=!0,A}var sa=class tp extends $r{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 $=new ba({parent:t,mathstyle:this.mathstyleName},this.style),J=$.getRegisterAsEm("arrayrulewidth"),Ae=$.getRegisterAsEm("arraycolsep"),Qe=$.getRegisterAsEm("doublerulesep"),ft=(n=(r=this.arraystretch)!=null?r:$.getRegisterAsNumber("arraystretch"))!=null?n:1;let Ft=typeof this.arraycolsep=="number"?this.arraycolsep:Ae;this.colSeparationType==="small"&&(Ft=.2778*(new ba({parent:t,mathstyle:"scriptstyle"}).scalingFactor/t.scalingFactor));const Ot=ft*Bl,Sr=.7*Ot,En=.3*Ot;let wr=0;const an=[];let Tn=0;const pn=this.array.length;for(let rs=0;rs<pn;++rs){const Zs=this.array[rs];Tn=Math.max(Tn,Zs.length);const Ll=new ba({parent:$,mathstyle:this.mathstyleName},this.style);let Fu=Sr/Ll.scalingFactor,Iu=En/Ll.scalingFactor;const Mu={cells:[],height:0,depth:0,pos:0};for(const au of Zs){const Y0=(i=$r.createBox(Ll,au,{type:"ignore"}))!=null?i:new dn(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+=$.getRegisterAsEm("jot")),Mu.height=Fu,Mu.depth=Iu,wr+=Fu,Mu.pos=wr,wr+=Iu+Lu,an.push(Mu)}const Fi=wr/2+hs,$i=[];for(let rs=0;rs<Tn;rs++){const Zs=[];for(const Ll of an){const Fu=Ll.cells[rs];Fu.depth=Ll.depth,Fu.height=Ll.height,Zs.push({box:Fu,shift:Ll.pos-Fi})}Zs.length>0&&$i.push(new So({individualShift:Zs}))}const Qi=[];let oo=!1,Vo=!1,Zn=0,gA=!this.leftDelim;const{colFormat:_u}=this;for(const rs of _u){if("align"in rs&&Zn>=$i.length)break;if("align"in rs)oo?Qi.push(uc(2*Ft)):(Vo||gA)&&Qi.push(uc(Ft)),Qi.push(new dn($i[Zn],{classes:"col-align-"+rs.align})),Zn++,oo=!0,Vo=!1,gA=!1;else if("gap"in rs){if(typeof rs.gap=="number")Qi.push(uc(rs.gap));else{const Zs=uA(t,an,Fi,rs.gap);Zs&&Qi.push(Zs)}oo=!1,Vo=!1,gA=!1}else if("separator"in rs){const Zs=new dn(null,{classes:"vertical-separator"});Zs.height=wr,Zs.setStyle("height",wr,"em"),Zs.setStyle("border-right",`${J}em ${rs.separator} currentColor`),Zs.setStyle("vertical-align",-(wr-Fi),"em");let Ll=0;Vo?Ll=Qe-J:oo&&(Ll=Ft-J),Zs.left=Ll,Qi.push(Zs),oo=!1,Vo=!0,gA=!1}}oo&&!this.rightDelim&&Qi.push(uc(Ft));const RA=new dn(Qi,{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 dn([this.bind(t,Cc("open",(A=this.leftDelim)!=null?A:".",Ml,vA,$,{isSelected:this.isSelected})),RA,this.bind(t,Cc("close",(M=this.rightDelim)!=null?M:".",Ml,vA,$,{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($r.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 $r({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(ci(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(ci(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,ci(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,ci(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 ci(e){const t=new $r({type:"first",mode:e.mode});t.parent=e;const r=new zl;return r.parent=e,[t,r]}function uc(e){const t=new dn(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=$r.createBox(e,n,{type:"ignore"});A&&(A.depth=s.depth,A.height=s.height,i.push({box:A,shift:s.pos-r}))}return new So({individualShift:i}).wrap(e)}var Fs=class rp extends $r{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=$r.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 $=new ba({parent:t},this.style),J=$.toEm((n=this.padding)!=null?n:{register:"fboxsep"}),Ae=new dn(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=$.toColor(this.backgroundcolor))!=null?i:"transparent"),this.framecolor&&Ae.setStyle("border",`${$.getRegisterAsEm("fboxrule",2)}em solid ${(s=$.toColor(this.framecolor))!=null?s:"black"}`),this.border&&Ae.setStyle("border",this.border);const Qe=new dn([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 $r{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 dn(this.value,{classes:"ML__composition",type:"composition"});return this.bind(t,r),this.caret&&(r.caret=this.caret),r}_serialize(t){return""}},Wa=class ip extends $r{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}},ao=class ap extends $r{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=$r.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)}}`}},Ga=class op extends $r{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 ba({parent:t},this.style);console.assert(this.body!==void 0);const s=new ba({parent:t,mathstyle:"textstyle"},this.style),A=(r=$r.createBox(i,this.body,{type:"inner"}))!=null?r:new dn(null,{type:"inner"}),M=A.height/s.scalingFactor,$=A.depth/s.scalingFactor,J=[];if(this.leftDelim&&J.push(this.bind(s,Cc("open",this.leftDelim,M,$,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,$),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,$,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 dn(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 $r{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=$r.createBox(t,this.body);return r?(this.caret&&(r.caret=this.caret),this.bind(t,r)):null}},$d=class lp extends $r{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 $r{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 ba({parent:t}),n=r.getRegisterAsEm("fboxsep"),i=n,s=n,A=$r.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 dn(A,{type:"ord"});M.setStyle("display","inline-block"),M.setStyle("height",A.height+A.depth,"em"),M.setStyle("vertical-align",-s,"em");let $="ML__prompt ";this.locked?$+=" ML__lockedPromptBox ":$+=" ML__editablePromptBox ",this.correctness==="correct"?$+=" ML__correctPromptBox ":this.correctness==="incorrect"&&($+=" ML__incorrectPromptBox "),this.containsCaret&&($+=" ML__focusedPromptBox ");const J=new dn(null,{classes:$,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 dn([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]"),Bo(i,n)}},tu=class Ap extends $r{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 ba({parent:t,isPhantom:!0}),i=this.leftSibling,s=(r=i.render(n))!=null?r:new dn(null),A=new dn(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 ba&&!(r!=null&&r.parseMode)&&!r.mathstyle?t:new ba({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 $=e?Number.parseInt(M,s):Number.parseFloat(M);return Number.isNaN($)?null:{number:n?-$:$,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=H(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 $=this.scanArgument(M.type);$||this.onError({code:"missing-argument",arg:e}),r.push($)}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 ao(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 Ga("",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 Wa("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new Wa("\\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 Wa(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 Ga(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 $r({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):t.addChild(new $r({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&t.addChildren(At(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 Wa(e)];if(r.definitionType==="symbol"){const n=f({},this.style);r.variant&&(n.variant=r.variant),t=new $r({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 Wa(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"),$=this.scanOptionalArgument("math"),J=$r.serialize($,{defaultMode:"math"});let Ae=[],Qe;!Qe&&J==="correct"?Qe="correct":!Qe&&J==="incorrect"?Qe="incorrect":J!==""&&(Ae=$);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,$=this.scanLiteralGroup()||this.next();if(!$)return null;if(this.context.registers[$.substring(1)]){const J=this.scanArgument("string");J!==null&&(this.context.registers[$.substring(1)]=J);const Ae=wa([e,Tl(this.tokens.slice(M,this.index))]);return[new $r({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 $r({type:"text",value:M,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:e}),[new Wa(e)]);const A=this.index;if(s.definitionType==="symbol"){const M=f({},this.style);s.variant&&(M.variant=s.variant),i=new $r({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 $,J=[];if(s.parse?J=s.parse(this):[$,J]=this.scanArguments(s),this.parseMode=M,s.applyMode&&!s.applyStyle&&!s.createAtom)return At(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}),$&&(i.body=At(this.scanArgument($)));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),$){const ft=this.style;this.style=Ae;const Ft=this.scanArgument($);return this.style=ft,this.parseMode=Qe,At(Ft)}this.style=Ae}else i=new $r({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 $r&&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 $=this.index;this.scanExpression(),M=Tl(this.tokens.slice($,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:{}}),$=[];for(;!M.end();)$.push(...M.scan(()=>!1));return $}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 $r{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=$r.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],$=M.transitions[r]||M.transitions["*"];e:for(var J=0;J<$.length;J++){var Ae=vn.patterns.match_($[J].pattern,e);if(Ae){for(var Qe=$[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,$,J){var Ae=function(wr,an){if(typeof an=="string")return wr.indexOf(an)!==0?null:an;var Tn=wr.match(an);return Tn?Tn[0]:null},Qe=function(wr,an,Tn){for(var pn=0;an<wr.length;){var Fi=wr.charAt(an),$i=Ae(wr.substr(an),Tn);if($i!==null&&pn===0)return{endMatchBegin:an,endMatchEnd:an+$i.length};if(Fi==="{")pn++;else if(Fi==="}"){if(pn===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];pn--}an++}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 Sr=this.findObserveGroups(e.substr(Ft.endMatchEnd),s,A,M,$);if(Sr===null)return null;var En=[Ot,Sr.match_];return{match_:J?En.join(""):En,remainder:Sr.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 $=t.split("|"),J=0;J<$.length;J++)if(n[i]==="*")for(var Ae in s)s[Ae].push({pattern:$[J],task:A});else s[n[i]].push({pattern:$[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 $=[];return M?(vn.concatArray($,this.output(e)),$.push({type_:"hyphen"})):(n=vn.patterns.match_("digits",e.d||""),r&&n&&n.remainder===""?(vn.concatArray($,vn.actions["d="](e,t)),vn.concatArray($,this.output(e))):(vn.concatArray($,this.output(e)),vn.concatArray($,vn.actions.bond(e,t,"-")))),$},"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 $r{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 dn(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):Bo(this.command,this.value)}},_d=class fp extends $r{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):Bo(this.command,this.value)}},Ku=class hp extends $r{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 Bo(i,this.bodyToLatex(t))}render(t){const r=new ba({parent:t},this.style),n=$r.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 dn(null,{classes:"ML__notation"});let M=n.height+n.depth+2*s;const $=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($*$+M*M)*1,Sr=n.width*Ot,En=(n.depth+n.height)*Ot,wr=s+n.width;let an=s;an+En-.4*Sr<0&&(an=.4*Sr-En),J+='<polygon points="',J+=`${wr},${an} ${wr-Sr-.4*En},${an+En-.4*Sr} `,J+=`${wr-.7*Sr},${an+.7*En} ${wr-Sr+.4*En},${an+En+.4*Sr} `,J+=`${wr},${an}`,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 dn([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 $r{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 ba({parent:t,mathstyle:this.mathstyleName},this.style),s=i.metrics,A=new ba({parent:i,mathstyle:this.continuousFraction?"":"numerator"},this.style),M=this.numerPrefix?new dn([new dn(this.numerPrefix),$r.createBox(A,this.above)],{isTight:A.isTight,type:"ignore"}):(r=$r.createBox(A,this.above,{type:"ignore"}))!=null?r:new dn(null,{type:"ignore"}),$=new ba({parent:i,mathstyle:this.continuousFraction?"":"denominator"},this.style),J=this.denomPrefix?new dn([new dn(this.denomPrefix),$r.createBox($,this.below,{type:"ignore"})]):(n=$r.createBox($,this.below,{type:"ignore"}))!=null?n:new dn(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=$.metrics.denom1):(Ae>0?(Qe=A.metrics.num2,ft=Ae):(Qe=A.metrics.num3,ft=3*s.defaultRuleThickness),Ft=$.metrics.denom2);const Ot=[];this.isSelected&&Ot.push("ML__selected");const Sr=M.depth,En=J.height;let wr;if(Ae<=0){const Qi=Qe-Sr-(En-Ft);Qi<ft&&(Qe+=(ft-Qi)/2,Ft+=(ft-Qi)/2),wr=new So({individualShift:[{box:M,shift:-Qe,classes:[...Ot,"ML__center"]},{box:J,shift:Ft,classes:[...Ot,"ML__center"]}]}).wrap(i)}else{const Qi=new dn(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});Qi.softWidth=Math.max(M.width,J.width),Qi.height=Ae/2,Qi.depth=Ae/2;const oo=hs+Ae/2;Qe<ft+Sr+oo&&(Qe=ft+Sr+oo);const Vo=hs-Ae/2;Ft<ft+En-Vo&&(Ft=ft+En-Vo),wr=new So({individualShift:[{box:J,shift:Ft,classes:[...Ot,"ML__center"]},{box:Qi,shift:-Vo,classes:Ot},{box:M,shift:-Qe,classes:[...Ot,"ML__center"]}]}).wrap(i)}const an=i.isDisplayStyle?s.delim1:s.delim2,Tn=this.leftDelim?this.bind(t,xc("open",this.leftDelim,an,!0,t,{style:this.style,mode:this.mode,isSelected:this.isSelected})):rc(i,"open");let pn=null;this.continuousFraction?pn=new dn(null,{type:"close"}):this.rightDelim?pn=this.bind(t,xc("close",this.rightDelim,an,!0,t,{style:this.style,mode:this.mode,isSelected:this.isSelected})):pn=rc(i,"close");const Fi=new dn([Tn,wr,pn],{isTight:i.isTight,type:"inner",classes:"mfrac"}),$i=this.bind(t,Fi);return this.caret&&($i.caret=this.caret),this.attachSupsub(t,{base:$i})}},Is=class mp extends $r{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 dn(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 $r{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=$r.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 $r{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 dn(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 $=(r=this.subsupPlacement)!=null?r:"auto";M=$==="over-under"||$==="auto"&&t.isDisplayStyle?this.attachLimits(t,{base:i,baseShift:s,slant:A}):this.attachSupsub(t,{base:i})}return new dn(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 $r{constructor(t){const r=t.body;super(E(f({},t),{type:"overlap",body:typeof r=="string"?[new $r({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=$r.createBox(t,this.body,{classes:"inner"});return r?(this.caret&&(r.caret=this.caret),this.bind(t,new dn([r,new dn(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},vl=class bp extends $r{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):$r.createBox(t,this.body,{type:"ignore"});const n=new ba({parent:t,mathstyle:"scriptstyle"},this.style);let i=null;this.svgAbove?i=Vc(this.svgAbove):this.above&&(i=$r.createBox(n,this.above,{type:"ignore"}));let s=null;this.svgBelow?s=Vc(this.svgBelow):this.below&&(s=$r.createBox(n,this.below,{type:"ignore"})),this.paddedBody&&(r=new dn([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 dn(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 So({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 So({top:i.height-s,children:[e.metrics.bigOpSpacing5,{box:t.below,classes:A},{box:i,classes:["ML__center"]}]}):t.above&&(n=new So({bottom:i.depth+s,children:[{box:i,classes:["ML__center"]},r,{box:t.above,classes:A},e.metrics.bigOpSpacing5]}));return new dn(n,{type:t.type})}var ju=class wp extends $r{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 ba({parent:t,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),$r.createBox(r,this.body,{classes:"inner"});const n=$r.createBox(this.isInvisible?r:t,this.body);if(!n)return null;if(this.smashWidth){const i=new dn(null,{classes:"fix"});return new dn([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 So({firstBaseline:[{box:n}]},{type:n.type}).wrap(t)}},yl=class xp extends $r{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 dn(this.mode==="math"?null:" ");let n;if(this.width!==void 0)n=new dn(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 dn(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 $r{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")?Bo(`${n}[${this.aboveToLatex(t)}]`,i):/^[0-9]$/.test(i)?`${n}${i}`:Bo(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 ba({parent:t,mathstyle:"cramp"},this.style),i=(r=$r.createBox(n,this.body,{type:"inner"}))!=null?r:new dn(null),s=n.scalingFactor,A=n.metrics.defaultRuleThickness/s,M=t.isDisplayStyle?qo:A,$=new dn(null,{classes:"ML__sqrt-line",style:this.style});$.height=A,$.softWidth=i.width;let J=s*(A+M/4);const Qe=Math.max(s*2*M,i.height+i.depth)+J+A,ft=new ba({parent:t},this.style),Ft=this.bind(ft,new dn(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 Sr=this.bind(t,new So({firstBaseline:[{box:new dn(i)},J-2*A,{box:$},A]})),En=$r.createBox(new ba({parent:t,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!En){const Tn=new dn([Ft,Sr],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return Tn.setStyle("display","inline-block"),Tn.setStyle("height",Tn.height+Tn.depth,"em"),this.caret&&(Tn.caret=this.caret),this.bind(t,Tn)}const wr=new So({shift:-.6*(Math.max(Ft.height,Sr.height)-Math.max(Ft.depth,Sr.depth)),children:[{box:En}]}),an=new dn([new dn(wr,{classes:"ML__sqrt-index",type:"ignore"}),Ft,Sr],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return an.height=Ft.height,an.depth=Ft.depth,this.caret&&(an.caret=this.caret),this.bind(t,an)}},fA=class extends dn{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 $,J,Ae;if(!A)return;const Qe=A.type,ft=M.isTight?($=hA[Qe])!=null?$: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 $r{constructor(t){super({type:"tooltip",command:t.command,mode:t.mode,style:t.style,body:t.body,displayContainsHighlight:!0}),this.tooltip=new $r({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=$r.createBox(new ba,this.body);if(!r)return null;const n=new ba({parent:t,mathstyle:"displaystyle"},{fontSize:jo}),i=Os($u(new dn(this.tooltip.render(n),{classes:"ML__tooltip-content"}),n)),s=new dn([i,r],{classes:"ML__tooltip-container"});return this.caret&&(s.caret=this.caret),this.bind(t,s)}},kA=class Sp extends $r{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 dn(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 dn(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 $r.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=sa.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=Wa.fromJson(e)),t==="extensible-symbol"&&(r=dd.fromJson(e)),t==="genfrac"&&(r=Nc.fromJson(e)),t==="group"&&(r=ao.fromJson(e)),t==="latex"&&(r=Is.fromJson(e)),t==="latexgroup"&&(r=Hu.fromJson(e)),t==="leftright"&&(r=Ga.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=$r.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 $r({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 $r({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 $=new $r({type:"mord",mode:"math",command:(A=t.command)!=null?A:e,value:e,style:r});return M&&($.isFunction=!0),e.startsWith("\\")&&($.verbatimLatex=e),$}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,$)=>{var J;M.test(e.value)&&Yd[(J=t.letterShapeStyle)!=null?J:"tex"][$]==="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=u(r);return Jl(e,"variant").map(i=>{const s=u(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($=>$._serialize(t)));return A?Bo(A,M):M})}function u(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?`{${Bo("\\fontshape",i)}${wa(n)}}`:s?Bo(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?`{${Bo("\\fontseries",i)}${wa(n)}}`:s?Bo(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 et(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 et(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 $=t.fontSeries.match(/(.?[lbm])?(.?[cx])?/);$&&(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=$[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=$[2])!=null?s:""])!=null?A:"")}return"Main-Regular"}};new xt;var nr=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 nr;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:["","=","","="]}},Cr={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:[")",")",")",")"]}},P={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:["<",">","|",""]}},qe={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 dr(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 nn(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 Ai(e){Or=Gr.find(t=>e.startsWith(t.locale))}function Jn(){return Or!=null?Or:Gr[0]}function Xi(){switch(Yt()){case"apple":return Cr;case"windows":return o;case"linux":return b}return Cr}switch(Yt()){case"apple":$t(Cr),$t(P),$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(qe);break}$t(mr);function oi(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 to(e){return e.ctrlKey||e.metaKey||["Dead","Process"].includes(e.key)?!1:e.code===""?!0:Na.has(e.code)}function fo(){var e;let t=document.activeElement;for(;(e=t==null?void 0:t.shadowRoot)!=null&&e.activeElement;)t=t.shadowRoot.activeElement;return t}var ta=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=fo();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:"",fo()!==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 $=new AbortController,J=$.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=ta.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:()=>$.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:()=>fo()===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||!to(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(O()){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(dr(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(oi)}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=dr(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 $ of t)k.test($)&&s.push(new Is($));let A=e.at(e.position);if(A instanceof Hu&&(A=A.lastChild),!(A.parent instanceof Hu)){const $=new Hu("");A.parent.addChildAfter($,A),A=$.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 $=e.at(n);i=$ instanceof Is&&$.isSuggestion,i||n++}if(!i)return[void 0,void 0];let A=n,M=!1;for(;A<=s&&!M;){const $=e.at(A);M=!($ instanceof Is&&$.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=ne(e,A);if(M.length===0){if(/^\\[a-zA-Z\*]+$/.test(A))for(const Ae of i)Ae.isError=!0;nc(e);return}const $=(r=t==null?void 0:t.atIndex)!=null?r:0;e.suggestionIndex=$<0?M.length-1:$%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(""),$=s.leftSibling;return s.parent.removeChild(s),e.model.position=e.model.offsetOf($),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 ba({from:e.context}),n=new $r({mode:"math",type:"root",body:al(t,{context:r})}),i=Os($u(new dn(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,$=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">${$}</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,$=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-$-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($){}}))).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 ba({from:E(f({},e.context),{atomIdsSettings:{seed:t.forHighlighting?yu($r.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 $=e.options.contentPlaceholder;$&&(A+=`<span part=placeholder class="ML__content-placeholder">${Il($)}</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 $=pl(e,oA(e,M),A);if($){$.left/=A,$.right/=A,$.top/=A,$.bottom/=A;const J=document.createElement("div");J.classList.add("ML__contains-highlight"),J.style.position="absolute",J.style.left=`${$.left+1}px`,J.style.top=`${Math.ceil($.top)}px`,J.style.width=`${Math.ceil($.right-$.left)}px`,J.style.height=`${Math.ceil($.bottom-$.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 $=document.createElement("div");$.classList.add("ML__selection"),$.style.position="absolute",$.style.left=`${M.left}px`,$.style.top=`${M.top}px`,$.style.width=`${Math.ceil(M.right-M.left)}px`,$.style.height=`${Math.ceil(M.bottom-M.top-1)}px`,r.insertBefore($,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],$=M==null?void 0:M.target;if($==="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($==="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 $!=="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 $={};let J="";for(const Sr of b0(M)){const En=q0(Sr),wr=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);$[wr]=En;const[an,Tn]=Wf(En);J+=`<div id=${wr} class="item ${Tn}">${an}</div>`}const Ae=document.createElement("div");Ae.setAttribute("aria-hidden","true"),Ae.className="MLK__variant-panel",Ae.style.height="auto";const Qe=Object.keys($).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),ta.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 Sr=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(${Sr}px, ${En}px)`,Ae.classList.add("is-visible"),requestAnimationFrame(()=>{Ae.addEventListener("pointerup",wr=>{const an=af(wr.target);!(an!=null&&an.id)||!$[an.id]||(x0($[an.id]),yd(),t==null||t(),wr.preventDefault())},{capture:!0,passive:!1,signal:Ft}),Ae.addEventListener("pointerenter",wr=>{const an=af(wr.target);!(an!=null&&an.id)||!$[an.id]||an.classList.add("is-active")},{capture:!0,signal:Ft}),Ae.addEventListener("pointerleave",wr=>{const an=af(wr.target);!(an!=null&&an.id)||!$[an.id]||an.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,ta.state==="open"&&ta.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 ba,r=new $r({mode:"math",type:"root",body:al(e,{context:t,args:i=>i==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),n=Os($u(new dn(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 $=[];for(const J of M)/[a-z]/.test(J)?$.push({label:J,class:"hide-shift",shift:{label:J.toUpperCase()},variants:Cf(J)?J:void 0}):J==="~"?n!=="dvorak"?$.push("[backspace]"):$.push({label:"[backspace]",width:1}):J==="^"?$.push("[shift]"):J===" "&&$.push("[separator-5]");A.push($)}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,$=[s===t?"selected":"layer-switch"];M.tooltip&&$.push("MLK__tooltip"),M.labelClass&&$.push(...M.labelClass.split(" ")),i+=`<div class="${$.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 $,J;let Ae=M.target,Qe="";for(;Ae&&!Qe;)Qe=($=Ae==null?void 0:Ae.getAttribute("data-command"))!=null?$:"",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,$;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+=($={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[e.width])!=null?$:""),[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=fo(),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(O()&&!("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=ke(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:ee,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:ka,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 $ of s)if($.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)}Ye(["math","displaymath"],UA),Ye("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 sa("lines",e.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),_t("array","{columns:colspec}",(e,t,r,n)=>new sa(e,B0(t),r,{columns:n[0],mathstyleName:"textstyle"})),_t(["equation","equation*","subequations"],"",(e,t,r)=>new sa(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 $r({type:"first"}),new zl]]):e.map(r=>r.length===0?[[new $r({type:"first"})]]:r.map(n=>n.length===0?[new $r({type:"first"})]:(n[0].type!=="first"&&n.unshift(new $r({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 sa(e,t,r,{mathstyleName:"textstyle"});case"displaymath":return new sa(e,t,r,{mathstyleName:"textstyle"});case"center":return new sa(e,t,r,{columns:[{align:"c"}]});case"multline":case"multline*":return new sa(e,t,r,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new sa(e,t,r,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new sa(e,t,r,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new sa(e,t,r,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:Td(n[0])});case"bmatrix":case"bmatrix*":return new sa(e,t,r,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:Td(n[0])});case"Bmatrix":case"Bmatrix*":return new sa(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:Td(n[0])});case"vmatrix":case"vmatrix*":return new sa(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:Td(n[0])});case"Vmatrix":case"Vmatrix*":return new sa(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:Td(n[0])});case"matrix":case"matrix*":return new sa(e,t,r,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:Td(n==null?void 0:n[0])});case"smallmatrix":case"smallmatrix*":return new sa(e,t,r,{mathstyleName:"scriptstyle",columns:Td(n==null?void 0:n[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new sa(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 sa(e,t,r,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new sa(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 sa(e,t,r,{arraycolsep:0,columns:s,minColumns:2})}}return new sa(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 sa);)r=r.parent;if(r&&r.type==="array"&&r.environmentName,!r||!(r.parent instanceof sa)){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 Ga){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 $=i.leftDelim,J=i.rightDelim;$==="("&&(J===")"||J==="?")?M="pmatrix":($==="["||$==="\\lbrack")&&(J==="]"||J==="\\rbrack"||J==="?")?M="bmatrix":$==="\\vert"&&J==="\\vert"?M="vmatrix":$==="\\Vert"&&J==="\\Vert"?M="Vmatrix":($==="{"||$==="\\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 sa?[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 sa);)r=r.parent;if(Array.isArray(r==null?void 0:r.parentBranch)&&(r==null?void 0:r.parent)instanceof sa){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(d.test(e.at(t).value)){let s=t,A;do A=e.at(s).mode==="text"&&d.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,$,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:Sr}=e;for(;ft<=Sr&&(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=($=e.at(ft))==null?void 0:$.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,$]=PA(e);M!==void 0&&$!==void 0&&e.deleteAtoms([M,$])}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 $=e.setSelection(e.anchor,M);return e.mathfield.stopCoalescingUndo(),$}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,$=e.offsetOf(Zp(e.mathfield,A,M))-(s?1:0);if(n){const[J,Ae]=e.selection.ranges[0];let Qe;$<(i==="up"?J:Ae)?Qe={ranges:[[$,Ae]],direction:"backward"}:Qe={ranges:[[J,$]],direction:"forward"},e.setSelection(Qe)}else e.setPositionHandlingPlaceholder($);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 $,J;let Ae=!0;return e.silenceNotifications||(Ae=(J=($=e.mathfield.host)==null?void 0:$.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 sa);)M=M.parent;if(Array.isArray(M==null?void 0:M.parentBranch)&&M.parent instanceof sa){const $=M.parent;if(M.parentBranch[0]<1)return s();const J=M.parentBranch[0]-1,Ae=$.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 $=(n=M.parent.branch("above"))!=null?n:M.parent.createBranch("above");if(!$.some(Ae=>Ae.type==="prompt"&&Ae.placeholderId)&&e.mathfield.hasEditablePrompts)return s();r0(e,A,$,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 $,J;let Ae=!0;return e.silenceNotifications||(Ae=(J=($=e.mathfield.host)==null?void 0:$.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 sa);)M=M.parent;if(Array.isArray(M==null?void 0:M.parentBranch)&&M.parent instanceof sa){const $=M.parent;if(M.parentBranch[0]+1>$.array.length-1)return s();const J=M.parentBranch[0]+1,Ae=$.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 $=(n=M.parent.branch("below"))!=null?n:M.parent.createBranch("below");if(!$.some(Ae=>Ae.type==="prompt")&&e.mathfield.hasEditablePrompts)return s();r0(e,A,$,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($){const J=[],Ae=[];return[...$.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($){return!(!r($)||i($)||n($)<0)}function r($){return!($.disabled||$.type==="hidden"&&$.tagName.toUpperCase()==="INPUT"||M($))}function n($){var J;const Ae=Number.parseInt((J=$.getAttribute("tabindex"))!=null?J:"NaN",10);return Number.isNaN(Ae)?$.contentEditable==="true"||($.nodeName==="AUDIO"||$.nodeName==="VIDEO")&&$.getAttribute("tabindex")===null?0:$.tabIndex:Ae}function i($){return $.tagName.toUpperCase()==="INPUT"&&$.type==="radio"&&!A($)}function s($,J){for(const Ae of $)if(Ae.checked&&Ae.form===J)return Ae;return null}function A($){var J;if(!$.name)return!0;const Qe=((J=$.form)!=null?J:$.ownerDocument).querySelectorAll('input[type="radio"][name="'+$.name+'"]'),ft=s(Qe,$.form);return!ft||ft===$}function M($){if(!O()||$===document.activeElement||$.contains(document.activeElement))return!1;if(getComputedStyle($).visibility==="hidden")return!0;const J=$.getBoundingClientRect();if(J.width===0||J.height===0)return!0;for(;$;){if(getComputedStyle($).display==="none")return!0;$=$.parentElement}return!1}return O()?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 $=E0(e,A,t);if(!$||t==="forward"&&e.offsetOf($)<A||t==="backward"&&e.offsetOf($)>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,$),!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,$=M?e.offsetOf(M)+1:Math.max(e.position+1,0),J=E0(e,$,"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 $=r;for(;((t=$.rightSibling)==null?void 0:t.mode)==="text";)$=$.rightSibling;if(M&&$)return Ic(e,[M,$])}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 $=r.parent;if($){if($.type==="leftright"||$.type==="surd")return Ic(e,$);if(r.parentBranch==="subscript"&&$.superscript)return Ic(e,$.superscript);if(r.parentBranch==="below"&&$.above)return Ic(e,$.above);if(r.parentBranch==="superscript"||r.parentBranch==="subscript")return iu(e,$);if(r.parentBranch==="above"||r.parentBranch==="below")return Ic(e,$)}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($r.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||!to(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 Ga&&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 $=n.at(n.position);return $.value="\u22C5",$.style.variant="normal",$.command="\\cdot",$.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>"+(oi(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){nn(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,$="",J;const Ae=e.inlineShortcutBuffer;if(e.isSelectionEditable){if(s.mode==="math")if(A==="[Backspace]")Ae.pop();else if(!to(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 Sr=0,En="";for(;!M&&Sr<Ot.length;)J=Ae.length-(Ot.length-Sr),En=Ot.slice(Sr).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)),Sr+=1;e.flushInlineShortcutBuffer({defer:!0})}e.options.smartMode&&(M?e.switchMode("math"):qp(e,A,t)&&(e.switchMode({math:"text",text:"math"}[s.mode]),$=""))}if(!M){if($||($=es(e.keybindings,s.mode,t)),!$&&(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((!$||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"),$="",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)===","&&($="insertDecimalSeparator")}}if(!M&&!$){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 Ga&&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 Sr={"(":"(","{":"\\lbrace","[":"\\lbrack"}[Ot],En={"(":")","{":"\\rbrace","[":"\\rbrack"}[Ot],[wr,an]=ws(s.selection);return e.snapshot(),s.position=an,zi.insert(s,En,{format:"latex"}),s.position=wr,zi.insert(s,Sr,{format:"latex"}),s.setSelection(wr+1,an+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($==="moveAfterParent"&&(ft==null?void 0:ft.type)==="leftright"&&Qe.isLastSibling&&e.options.smartFence&&I0(s,".",e.defaultStyle)&&($="",Es(e)),e.keyboardDelegate.cancelComposition(),$)e.executeCommand($);else if(M){const Ft=e.effectiveStyle;s.setState(Ae[J].state);const Ot=Ae[Ae.length-1].keystrokes;for(const Sr of Ot)zi.insert(s,Sr,{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($=>$.toUpperCase())),r.simulateKeystroke){let $=!0;for(const J of i)fh(e,new KeyboardEvent("keypress",{key:J}))&&($=!1);if($)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 $ of i)zi.insert(n,$);e.snapshot("insert-latex"),OA(e)});else if(n.mode==="text"){for(const $ of i)zi.insert(n,$,{style:M});e.snapshot("insert-text")}else if(n.mode==="math")for(const $ of i)im(e,$,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[$,J]=ws(e.selection),Ae=e.extractAtoms([$,J]),Qe=i.addChildrenAfter([new Ga("left...right",Ae,{leftDelim:s,rightDelim:M})],e.at($));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 $=i instanceof Ga?i.leftDelim+i.rightDelim:"";if($==="\\lbrace\\rbrace"||$==="\\{\\}"||$==="\\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 Ga&&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 Ga)){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 Ga("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 $=e.offsetOf(n.lastSibling);let J;for(J=e.position;J<=$;J++){const Qe=e.at(J);if(Qe instanceof Ga&&(Qe.leftDelim==="?"||Qe.leftDelim===".")&&hh(s,Qe.rightDelim))break}const Ae=e.at(J);if(J<=$&&Ae instanceof Ga){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 Ga&&(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 Ga&&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 $=n;for(;$;){if($.type==="mopen"&&$.value===A){e.mathfield.snapshot();const Ft=$.leftSibling,Ot=e.extractAtoms([e.offsetOf($.leftSibling),e.offsetOf(n)]);Ot.shift();const Sr=new Ga("left...right",Ot,{leftDelim:A,rightDelim:s});return i.addChildrenAfter([Sr],Ft),e.position=e.offsetOf(Sr),e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}$=$.leftSibling}if(i instanceof Ga&&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 Ga&&(Ft.rightDelim==="?"||Ft.rightDelim===".")&&M0(Ft.leftDelim,s))break}const Qe=e.at(Ae);if(Ae>=J&&Qe instanceof Ga)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 Ga&&(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 Ga&&(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,$,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=($={bold:"b",medium:"m",normal:"m"}[ft.fontSeries])!=null?$: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"||!d.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 $=(i=e.at(t))==null?void 0:i.style;for(;$&&$.variant===A.style.variant&&$.variantStyle===A.style.variantStyle;)$=(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",$=!1,J=!1;const Ae=t.clientX,Qe=t.clientY,ft=Date.now(),Ft=n.field,Ot=setInterval(()=>{$?Ft.scroll({top:0,left:Ft.scrollLeft-16}):J&&Ft.scroll({top:0,left:Ft.scrollLeft+16})},32);function Sr(){a0.stop(),s=!1,clearInterval(Ot),e.element.classList.remove("tracking"),t&&t.preventDefault()}function En(an){if(!n.hasFocus()){Sr();return}const Tn=an.clientX,pn=an.clientY,Fi=D0(an)&&an.pointerType==="touch"?20:5;if(Date.now()<ft+500&&Math.abs(Ae-Tn)<Fi&&Math.abs(Qe-pn)<Fi){an.preventDefault(),an.stopPropagation();return}const $i=Ft.getBoundingClientRect();J=Tn>$i.right,$=Tn<$i.left;let Qi=i;D0(an)&&(an.isPrimary||(Qi=Mf(n,an.clientX,an.clientY,{bias:0})));const oo=Mf(n,Tn,pn,{bias:Tn<=Ae?Tn===Ae?0:-1:1});Qi>=0&&oo>=0&&(n.model.extendSelectionTo(Qi,oo),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 wr=Ft.getBoundingClientRect();if(Ae>=wr.left&&Ae<=wr.right&&Qe>=wr.top&&Qe<=wr.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 an=e.model.selectionIsCollapsed;e.model.extendSelectionTo(e.model.anchor,i),ru(e.model)||an?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?(Sr(),(t.detail===3||If===3)&&(e.model.selection={ranges:[[0,e.model.lastOffset]]},M="all")):s||(s=!0,a0.start(Ft,t,En,Sr),(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 $=gh(e,t,M,n,i);$[0]<=A[0]&&(A=$)}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 $=A;for(;$;)M.unshift($),$=$.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 $=M.at(M.position);if($.parent instanceof sa){console.assert($.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($.parentBranch[0]),ft=Number($.parentBranch[1]);const Ft=$.parent.maxColumns;for(;$.parent.colCount-ft<J.length&&$.parent.colCount<Ft;)$.parent.addColumn();$.parent.addChildrenAfter(J[0],$);for(let Ot=1;Ot<J.length;Ot++)ft++,ft>=Ft&&(ft=0,$.parent.addRowAfter(Qe),Qe++),$.parent.setCell(Qe,ft,J[Ot])}else $.parent.addChildrenAfter(A.filter(J=>J.type!=="first"),$);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 $={"?":"\\placeholder{}","@":"\\placeholder{}"};$[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;$[0]?$["@"]=$[0]:typeof t=="string"&&/(^|[^\\])#@/.test(t)&&(J=um(e),J>=0&&($["@"]=e.getValue(J,e.position,"latex"))),$[0]||($[0]=$["?"]);let Ae=!1;const Qe=Tn=>(Ae=!0,$[Tn]);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)?($["@"]=$["?"],Ae=!1,[ft,Ft]=vh(e,t,Qe,r)):J>=0&&e.deleteAtoms([J,e.position]);const{parent:Sr}=e.at(e.position),En=Sr.hasEmptyBranch("body");if(Ot&&ft!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&Sr instanceof Ga&&Sr.leftDelim==="("&&En){const Tn=Sr.parent,pn=Sr.parentBranch;Tn.removeChild(Sr),Tn.setChildren(Ft,pn)}const wr=e.at(e.position);wr.parent.addChildrenAfter(Ft,wr),ft==="latex"&&typeof t=="string"&&(Sr==null?void 0:Sr.type)==="root"&&En&&!Ae&&(Sr.verbatimLatex=t),e.silenceNotifications=M;const an=Ft[Ft.length-1];if(r.selectionMode==="placeholder"){const Tn=Ft.flatMap(pn=>[pn,...pn.children]).find(pn=>pn.type==="placeholder");if(Tn){const pn=e.offsetOf(Tn);e.setSelection(pn-1,pn),e.announce("move")}else an&&(e.position=e.offsetOf(an))}else r.selectionMode==="before"||(r.selectionMode==="after"?an&&(e.position=e.offsetOf(an)):r.selectionMode==="item"&&e.setSelection(e.anchor,e.offsetOf(an)));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]=N(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]=N(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 Ga&&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 Ga&&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 sa)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 $=[],J="";const Ae=e.model.parentEnvironment.environmentName;if(Ac(Ae)){const Ot=Bm(Ae);J=P0[Ot]("active");const Sr=P0,{[Ot]:En}=Sr,wr=Z(Sr,[h(Ot)]);$=Object.values(wr).map(an=>an("inactive"))}else if($o(Ae)){const Ot=Sm(Ae);J=N0[Ot]("active");const Sr=N0,{[Ot]:En}=Sr,wr=Z(Sr,[h(Ot)]);$=Object.values(wr).map(an=>an("inactive"))}else is(Ae)&&(J=P0.matrix("active"),$=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}
${$.join("")}
</div>`,J&&A.appendChild(Qe),A.querySelectorAll("[data-command]").forEach(Ot=>{const Sr=Ot.dataset.command;let En=Sr;try{En=JSON.parse(Sr)}catch(wr){}Ot.addEventListener("mousedown",wr=>wr.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 $=Math.min(M,(n=t.height)!=null?n:A.height),J=T0(t.location.y,$,t.verticalPos,s);J+$>window.innerHeight-8&&(t.alternateLocation?(J=T0(t.alternateLocation.y,$,t.verticalPos,s),J+$>window.innerHeight-8&&(J=void 0)):J=void 0),Number.isFinite(J)||(J=Math.max(8,window.innerHeight-8-$),8+$>window.innerHeight-8&&(e.style.bottom="8px")),$=Math.min(J+$,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`,$!==A.height&&(e.style.height=`${Math.ceil($).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=oi(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 $=!0;for(const J of this._menuItems)J.type==="divider"?(J.visible=!$,$=!0):J.visible&&($=!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 $=(r=A.getMenuItemColumn(M))!=null?r:-1;if($>=0&&$<((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 $=A.findMenuItem(this.typingBuffer);$&&(A.activeMenuItem=$),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(to(t)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=t.key;const $=A.findMenuItem(this.typingBuffer);$&&(A.activeMenuItem=$),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 ta.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),ta.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),ta.state==="open"&&ta.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,ta.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 $ of["pointermove","pointerup","pointercancel"])window.addEventListener($,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:At(e.args[0]),accentChar:Lh[e.command.slice(1)]}))}),pe(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:e=>{const t=we(At(e.args[0]));return new lA(E(f({},e),{body:At(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:At(e.args[0]),svgAccent:"overarc"}))}),pe(["underarc","underparen"],"{body:auto}",{createAtom:e=>new vl(E(f({},e),{body:At(e.args[0]),svgBelow:"underarc"}))}),pe("utilde","{body:auto}",{createAtom:e=>{const t=At(e.args[0]),r=we(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 $r(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 $r(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 $r(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 $r(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 $r(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 $r(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 $r(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 $r(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 $=M.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if($)i.strokeWidth=$[1],i.strokeStyle=$[2],i.strokeColor=$[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,At(n[2]),s,i)}}),pe("cancel","{body:auto}",{createAtom:e=>{var t;return new Ku(e.command,At(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,At(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,At(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:At((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:At(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:At(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:At(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=At((t=e.args)==null?void 0:t[1]))==null?void 0:r.length)===0?void 0:At((n=e.args)==null?void 0:n[1]),below:(s=At((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 $r(E(f({},e),{body:At(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 dn("\xB0",{style:E(f({},e.style),{variant:"normal",variantStyle:"up"})});return new dn([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:At(e.args[1]),index:e.args[0]?At(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]?At(n[0]):[new zl],n[1]?At(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}`:Bo(e.command,r,n)}}),pe(["brace","brack"],"",{infix:!0,createAtom:e=>new Nc(At(e.args[0]),At(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(At(n[0]),At(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(At(n[0]),At(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(At(e.args[0]),At(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 $r(E(f({},e),{captureSelection:!0,verbatimLatex:null})),render:(e,t)=>{var r;const n=new ba({parent:t},e.style);let i="";e.isSelected&&(i+=" ML__selected");const s=n.evaluate(e.args[0]);return new dn(((r=cs(s))!=null?r:"").split("").map(A=>new dn(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:At(e.args[0]),tooltip:At(e.args[1]),content:"math"})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\texttip{${e.bodyToLatex(t)}}{${$r.serialize([e.tooltip],E(f({},t),{defaultMode:"math"}))}}`}),pe("texttip","{:auto}{:text}",{createAtom:e=>new hd(E(f({},e),{body:At(e.args[0]),tooltip:At(e.args[1]),content:"text"})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\texttip{${e.bodyToLatex(t)}}{${$r.serialize([e.tooltip],E(f({},t),{defaultMode:"text"}))}}`}),pe("error","{:math}",{createAtom:e=>new $r(E(f({},e),{body:At(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 $r(E(f({},e),{body:At(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:At(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:At(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"})):Bo(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=At(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 Bo(i,e.bodyToLatex(t))}}),pe(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:e=>new $r(E(f({},e),{body:At(e.args[0])})),render:(e,t)=>{const r=new ba({parent:t,mathstyle:e.command.slice(1)},e.style),n=$r.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 $r(E(f({},e),{body:At(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 $r(E(f({},e),{type:"mord",body:At(e.args[0]),mode:"math"})),serialize:(e,t)=>Bo("\\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 $r(E(f({},e),{body:At(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 $r(E(f({},e),{body:At(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 $r(E(f({},e),{body:At(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 $r(E(f({},e),{body:At(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 $r(E(f({},e),{body:At(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 $r(E(f({},e),{body:At(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 $r(e),render:(e,t)=>{let r=0;const n=t.mathstyle.id;(n===Wc||n===Yl)&&(r=1),(n===cc||n===xo)&&(r=2),(n===Xs||n===ls)&&(r=3);const i=At(e.args[r]);return $r.createBox(t,i)},serialize:(e,t)=>`\\mathchoice{${$r.serialize(e.args[0],t)}}{${$r.serialize(e.args[1],t)}}{${$r.serialize(e.args[2],t)}}{${$r.serialize(e.args[3],t)}}`}),pe("mathop","{:auto}",{createAtom:e=>new $r(E(f({},e),{type:"mop",body:At(e.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(e,t)=>{var r;let n=$r.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 dn(e.bind(t,n),{type:"op",isSelected:e.isSelected,classes:"op-group"})},serialize:(e,t)=>{const r=[Bo(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 $r(E(f({},e),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[e.command],body:At(e.args[0])}))}),pe(["operatorname","operatorname*"],"{operator:math}",{createAtom:e=>{const t=At(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 $r(E(f({},e),{type:"mop",body:t,isFunction:!0,limits:e.command==="\\operatorname"?"adjacent":"over-under"}))},render:(e,t)=>{var r;let n=$r.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 dn(e.bind(t,n),{type:"op",isSelected:e.isSelected,classes:"op-group"})},serialize:(e,t)=>{const r=[Bo(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 $r(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 $r(e),render:(e,t)=>{var r,n,i;const s=new ba({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}),$=s.toEm((i=e.args[2])!=null?i:{dimension:10}),J=new dn(null,{classes:"rule",type:"ord"});return J.width=M,J.height=$+A,J.depth=-A,J.setStyle("border-right-width",M,"em"),J.setStyle("border-top-width",$,"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 $r(E(f({},e),{body:At(e.args[0])})),render:(e,t)=>{const r=e.command.substring(1),n=new ba({parent:t,mathstyle:"cramp"},e.style),i=$r.createBox(n,e.body);if(!i)return null;const s=n.metrics.defaultRuleThickness/n.scalingFactor,A=new dn(null,{classes:r+"-line"});A.height=s,A.maxFontSize=s*1.125*n.scalingFactor;let M;return r==="overline"?M=new So({shift:0,children:[{box:i},3*s,{box:A},s]}):M=new So({top:i.height,children:[s,{box:A},3*s,{box:i}]}),e.caret&&(M.caret=e.caret),new dn(M,{classes:r,type:"ignore"})}}),pe("overset","{:auto}{base:auto}",{createAtom:e=>{const t=At(e.args[1]);return new vl(E(f({},e),{above:At(e.args[0]),body:t,skipBoundary:!1,boxType:Ul(t)}))},serialize:(e,t)=>Bo(e.command,e.aboveToLatex(t),e.bodyToLatex(t))}),pe("underset","{:auto}{base:auto}",{createAtom:e=>{const t=At(e.args[1]);return new vl(E(f({},e),{below:At(e.args[0]),body:t,skipBoundary:!1,boxType:Ul(t)}))},serialize:(e,t)=>Bo(e.command,e.belowToLatex(t),e.bodyToLatex(t))}),pe("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:e=>{const t=At(e.args[2]);return new vl(E(f({},e),{above:At(e.args[0]),below:At(e.args[1]),body:t,skipBoundary:!1,boxType:Ul(t)}))},serialize:(e,t)=>Bo(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:At(e.args[2]),above:At(e.args[1]),below:At(e.args[0]),skipBoundary:!1,boxType:e.command==="\\stackrel"?"rel":"bin"})),serialize:(e,t)=>Bo(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:At(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:At(e.args[0]),isInvisible:!0,smashWidth:!0}))}),pe(["hphantom"],"{:auto}",{createAtom:e=>new ju(E(f({},e),{body:At(e.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),pe(["phantom"],"{:auto}",{createAtom:e=>new ju(E(f({},e),{body:At(e.args[0]),isInvisible:!0}))}),pe("not","{:math}",{createAtom:e=>{const t=At(e.args[0]);return t.length===0?new $r(E(f({},e),{type:"mrel",value:"\uE020"})):new $r(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{${$r.serialize(r.group,t)}}`:`\\not${$r.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(At(e.args[0])),i=$r.createBox(t,e.body,{type:n});return e.caret&&(i.caret=e.caret),e.bind(t,i)}}),pe(["ne","neq"],"",{createAtom:e=>new $r(E(f({},e),{type:"mrel",body:[new dA(E(f({},e),{body:"\uE020",align:"right",boxType:"rel"})),new $r(E(f({},e),{value:"="}))],captureSelection:!0})),serialize:e=>e.command}),pe("rlap","{:auto}",{createAtom:e=>new dA(E(f({},e),{body:At(e.args[0]),align:"right"}))}),pe("llap","{:auto}",{createAtom:e=>new dA(E(f({},e),{body:At(e.args[0]),align:"left"}))}),pe("mathrlap","{:math}",{createAtom:e=>new dA(E(f({},e),{body:At(e.args[0]),align:"left"}))}),pe("mathllap","{:math}",{createAtom:e=>new dA(E(f({},e),{body:At(e.args[0]),align:"left"}))}),pe("raisebox","{:value}{:text}",{createAtom:e=>{var t;return new Fs(E(f({},e),{body:At(e.args[1]),padding:{dimension:0},offset:(t=e.args[0])!=null?t:{dimension:0}}))},serialize:(e,t)=>{var r;return Bo("\\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:At(e.args[1]),padding:{dimension:0},offset:(t=e.args[0])!=null?t:{dimension:0}}))},serialize:(e,t)=>{var r;return Bo("\\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:At(e.args[1]),padding:{dimension:0},offset:(t=dl(e.args[0],-1))!=null?t:{dimension:0}}))},serialize:(e,t)=>{var r,n;return Bo("\\lower",(n=cs(dl((r=e.offset)!=null?r:{dimension:0},-1)))!=null?n:"0pt",e.bodyToLatex(t))}}),q("0123456789/@.?!"),Se(65,90),Se(97,122),q([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),q([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),q([["\\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]]),q([["\\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"),q([["\\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"]]),q([["\\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"]]),q([["\\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"),q([["+",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"),q([["\\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"),q([["\\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]]),q([["=",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"),q([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),q([["\\wp",8472],["\\aleph",8501]]),q([["\\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"),q([["\\ ",160],["~",160]],"space"),pe(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:e=>new yl(e)}),pe("space","",{createAtom:e=>new yl(e)}),q([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),q([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),q([["\\/",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,$,J,Ae,Qe,ft,Ft;let Ot=!1;t=t!=null?t:e.atoms.length;let Sr="",En="",wr=e.atoms[e.index];const an=(i=(n=wr.style)==null?void 0:n.variant)!=null?i:"",Tn=(A=(s=wr.style)==null?void 0:s.variantStyle)!=null?A:"";let pn="";if(an||Tn){const $i=at(wr.value,(M=wr.style)==null?void 0:M.variant,($=wr.style)==null?void 0:$.variantStyle);if($i!==wr.value)return e.index+=1,Sr=`<mi${ts(wr.id,r)}>${$i}</mi>`,td(Sr,e,r)||(e.mathML+=Sr,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"}[Tn+an])!=null?J:"",pn=` mathvariant="${pn}"`}const Fi={"\\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(wr.command==="!")return e.index+=1,Sr="<mo>!</mo>",td(Sr,e,r)||(e.mathML+=Sr,e.lastType="mo"),!0;if(Fi[wr.command]){e.index+=1;let $i=`<mi${ts(wr.id,r)}${pn}>${Fi[wr.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(wr.command==="\\operatorname")En=Af(wr.body),e.index+=1;else if(an||Tn)for(;e.index<t&&(wr.type==="mord"||wr.type==="macro")&&!wr.isDigit()&&an===((Qe=(Ae=wr.style)==null?void 0:Ae.variant)!=null?Qe:"")&&Tn===((Ft=(ft=wr.style)==null?void 0:ft.variantStyle)!=null?Ft:"");)En+=Af([wr]),e.index+=1,wr=e.atoms[e.index];else(wr.type==="mord"||wr.type==="macro")&&!wr.isDigit()&&(En+=Af([wr]),e.index+=1);if(En.length>0){Ot=!0,Sr=`<mi${pn}>${En}</mi>`;const $i=e.lastType;Sr.endsWith(">f</mi>")||Sr.endsWith(">g</mi>")?(Sr+=Ph,e.lastType="applyfunction"):e.lastType=/^<mo>(.*)<\/mo>$/.test(Sr)?"mo":"mi",td(Sr,e,r)||(($i==="mi"||$i==="mn"||$i==="mtext"||$i==="fence")&&(Sr=u0+Sr),e.mathML+=Sr)}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=_o(i.superscript,r);t.lastType="";const M=_o(i.subscript,r);if(t.lastType=s,!A&&!M)return!1;let $="";return A&&M?$=`<msubsup>${e}${M}${A}</msubsup>`:A?$=`<msup>${e}${A}</msup>`:M&&($=`<msub>${e}${M}</msub>`),t.mathML+=$,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 $=e.index;let J=-1,Ae=$+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[$],r),i+=_o(e.atoms,r,$+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 $=`<mo${ts(A.id,r)}>${M[A.command]}</mo>`;return td($,e,r)||(e.mathML+=$,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 $=Hd(A,r);return A.superscript&&A.subscript?(i+="<munderover>"+$,i+=_o(A.subscript,r),i+=_o(A.superscript,r),i+="</munderover>"):A.superscript?(i+="<mover>"+$,i+=_o(A.superscript,r),i+="</mover>"):A.subscript&&(i+="<munder>"+$,i+=_o(A.subscript,r),i+="</munder>"),e.mathML+=i,e.lastType="mo",e.index+=1,!0}{const $=e.atoms[e.index],J=$.value==="\\operatorname",Ae=J?'<mi class="MathML-Unit"'+ts($.id,r)+">"+Af($.value)+"</mi>":Hd($,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 _o(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 $r)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,$,J,Ae,Qe,ft,Ft,Ot,Sr,En,wr,an,Tn,pn,Fi,$i,Qi;if(e.mode==="text")return`<mi${ts(e.id,t)}>${e.value}</mi>`;const oo={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 Zn="",gA="",_u,RA,Ml,vA,Kc,rs;const{command:Zs}=e;if(e.command==="\\error")return`<merror${ts(e.id,t)}>${_o(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":Zn=_o(e.body,t);break;case"array":if((e.leftDelim&&e.leftDelim!=="."||e.rightDelim&&e.rightDelim!==".")&&(Zn+="<mrow>",e.leftDelim&&e.leftDelim!=="."&&(Zn+="<mo>"+(Ll[e.leftDelim]||e.leftDelim)+"</mo>")),Zn+="<mtable",e.colFormat){for(Zn+=' columnalign="',Ml=0;Ml<e.colFormat.length;Ml++)e.colFormat[Ml].align&&(Zn+={l:"left",c:"center",r:"right"}[e.colFormat[Ml].align]+" ");Zn+='"'}for(Zn+=">",RA=0;RA<e.array.length;RA++){for(Zn+="<mtr>",_u=0;_u<e.array[RA].length;_u++)Zn+="<mtd>"+_o(e.array[RA][_u],t)+"</mtd>";Zn+="</mtr>"}Zn+="</mtable>",(e.leftDelim&&e.leftDelim!=="."||e.rightDelim&&e.rightDelim!==".")&&(e.rightDelim&&e.rightDelim!=="."&&(Zn+="<mo>"+(Ll[e.leftDelim]||e.rightDelim)+"</mo>"),Zn+="</mrow>");break;case"genfrac":(e.leftDelim||e.rightDelim)&&(Zn+="<mrow>"),e.leftDelim&&e.leftDelim!=="."&&(Zn+="<mo"+ts(e.id,t)+">"+(Ll[e.leftDelim]||e.leftDelim)+"</mo>"),e.hasBarLine?(Zn+="<mfrac>",Zn+=_o(e.above,t)||"<mi>&nbsp;</mi>",Zn+=_o(e.below,t)||"<mi>&nbsp;</mi>",Zn+="</mfrac>"):(Zn+="<mtable"+ts(e.id,t)+">",Zn+="<mtr>"+_o(e.above,t)+"</mtr>",Zn+="<mtr>"+_o(e.below,t)+"</mtr>",Zn+="</mtable>"),e.rightDelim&&e.rightDelim!=="."&&(Zn+="<mo"+ts(e.id,t)+">"+(Ll[e.rightDelim]||e.rightDelim)+"</mo>"),(e.leftDelim||e.rightDelim)&&(Zn+="</mrow>");break;case"surd":e.hasEmptyBranch("above")?(Zn+="<msqrt"+ts(e.id,t)+">",Zn+=_o(e.body,t),Zn+="</msqrt>"):(Zn+="<mroot"+ts(e.id,t)+">",Zn+=_o(e.body,t),Zn+=_o(e.above,t),Zn+="</mroot>");break;case"leftright":const Iu=e,Mu=Iu.leftDelim;Zn="<mrow>",Mu&&Mu!=="."&&(Zn+=`<mo${ts(e.id,t)}>${(r=Ll[Mu])!=null?r:Mu}</mo>`),e.body&&(Zn+=_o(e.body,t));const Lu=Iu.matchingRightDelim();Lu&&Lu!=="."&&(Zn+=`<mo${ts(e.id,t)}>${(n=Ll[Lu])!=null?n:Lu}</mo>`),Zn+="</mrow>";break;case"sizeddelim":case"delim":Zn+=`<mo${ts(e.id,t)}>${Ll[e.value]||e.value}</mo>`;break;case"accent":Zn+='<mover accent="true"'+ts(e.id,t)+">",Zn+=_o(e.body,t),Zn+="<mo>"+(Fu[Zs]||e.accent)+"</mo>",Zn+="</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=($=e.body)==null?void 0:$[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"&&((Sr=(Ot=e.body)==null?void 0:Ot[1])!=null&&Sr.above)&&(Kc=e.body[1].overscript,rs=e.body[1].body)),(e.svgAbove||Kc)&&(e.svgBelow||vA)?(Zn+=`<munderover ${ts(e.id,t)}>`,Zn+=(En=oo[e.svgBody])!=null?En:_o(rs,t),Zn+=(wr=oo[e.svgBelow])!=null?wr:_o(vA,t),Zn+=(an=oo[e.svgAbove])!=null?an:_o(Kc,t),Zn+="</munderover>"):e.svgAbove||Kc?(Zn+=`<mover ${ts(e.id,t)}>`+((Tn=oo[e.svgBody])!=null?Tn:_o(rs,t)),Zn+=(pn=oo[e.svgAbove])!=null?pn:_o(Kc,t),Zn+="</mover>"):(e.svgBelow||vA)&&(Zn+=`<munder ${ts(e.id,t)}>`+((Fi=oo[e.svgBody])!=null?Fi:_o(rs,t)),Zn+=($i=oo[e.svgBelow])!=null?$i:_o(vA,t),Zn+="</munder>");break;case"placeholder":Zn+="?";break;case"mord":{Zn=typeof e.value=="string"?e.value:Zs,Zs==="\\char"?Zn="&#x"+("000000"+e.args[0].number.toString(16)).slice(-4)+";":Zn.length>0&&Zn.startsWith("\\")&&(typeof e.value=="string"&&e.value.charCodeAt(0)>255?Zn="&#x"+("000000"+e.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof e.value=="string"?Zn=e.value.charAt(0):(console.error("Did not expect this"),Zn=""));const au=/\d/.test(Zn)?"mn":"mi";Zn=`<${au}${ts(e.id,t)}>${d0(Zn)}</${au}>`;break}case"mbin":case"mrel":case"minner":Zn=Hd(e,t);break;case"mpunct":Zn='<mo separator="true"'+ts(e.id,t)+">"+Zs+"</mo>";break;case"mop":case"operator":case"extensible-symbol":e.body!=="\u200B"&&(Zn="<mo"+ts(e.id,t)+">",Zn+=Zs==="\\operatorname"?e.body:Zs||e.body,Zn+="</mo>");break;case"box":Zn='<menclose notation="box"',e.backgroundcolor&&(Zn+=' mathbackground="'+e.backgroundcolor+'"'),Zn+=ts(e.id,t)+">"+_o(e.body,t)+"</menclose>";break;case"spacing":Zn+='<mspace width="'+((Qi=Vo[Zs])!=null?Qi:0)+'em"/>';break;case"enclose":Zn='<menclose notation="';for(const au in e.notation)Object.prototype.hasOwnProperty.call(e.notation,au)&&e.notation[au]&&(Zn+=gA+au,gA=" ");Zn+=ts(e.id,t)+'">'+_o(e.body,t)+"</menclose>";break;case"prompt":Zn='<menclose notation="roundexbox""">'+_o(e.body,t)+"</menclose>";break;case"space":Zn+="&nbsp;";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":Zn+=Hd(e,t);break;case"mclose":Zn+=Hd(e,t);break;case"macro":{const au=e.command+Af(e.macroArgs);au&&(Zn+=`<mo ${ts(e.id,t)}>${au}</mo>`)}break;case"latexgroup":Zn+=_o(e.body,t);break;case"latex":Zn+="<mtext"+ts(e.id,t)+">"+e.value+"</mtext>";break;case"tooltip":Zn+=_o(e.body,t);break;case"text":Zn+=`<mtext ${ts(e.id,t)}x>${e.value}</mtext>`;break;default:if(e.command==="\\displaystyle")return`<mrow ${ts(e.id,t)} displaystyle="true">${_o(e.body,t)}</mrow>`;if(e.command==="\\textstyle")return`<mrow ${ts(e.id,t)} displaystyle="false">${_o(e.body,t)}</mrow>`;console.info("Unexpected element in conversion to MathML:",e)}return Zn}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 Xa(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 $(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+=$(Xa(e,t[ft+1])),ft+=2):t[ft].mode==="text"?Qe?J+=(r=t[ft].value)!=null?r:" ":(Qe=!0,J+=Xa("text",t[ft])):t[ft].isDigit()?Ae?J+=t[ft].asDigit():(Ae=!0,J+=Xa(e,t[ft])):(Ae=!1,J+=Xa(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 "+Xa(e,t.body);case"\\acute":return Xa(e,t.body)+" acute";case"\\grave":return Xa(e,t.body)+" grave";case"\\dot":return"dot over"+Xa(e,t.body);case"\\ddot":return"double dot over"+Xa(e,t.body);case"\\mathring":return"ring over"+Xa(e,t.body);case"\\tilde":case"\\widetilde":return"tilde over"+Xa(e,t.body);case"\\bar":return Xa(e,t.body)+" bar";case"\\breve":return Xa(e,t.body)+" breve";case"\\check":case"\\widecheck":return"check over "+Xa(e,t.body);case"\\hat":case"\\widehat":return"hat over"+Xa(e,t.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+Xa(e,t.body);case"\\underarc":case"\\underparen":return"arc under "+Xa(e,t.body)}switch(t.type){case"prompt":const Sr=t.body.length>1?'start input . <break time="500ms"/> '+Xa(e,t.body)+'. <break time="500ms"/> end input':"blank";J+=' <break time="300ms"/> '+Sr+'. <break time="700ms"/>'+((n=t.correctness)!=null?n:"")+' . <break time="700ms"/> ';break;case"array":const En=t.array,wr=t.environmentName;if(Object.keys(H0).includes(wr)){J+=` begin ${H0[wr]} `;for(let pn=0;pn<En.length;pn++){pn>0&&(J+=","),J+=` row ${pn+1} `;for(let Fi=0;Fi<En[pn].length;Fi++)Fi>0&&(J+=","),J+=` column ${Fi+1}: `,J+=Xa("math",En[pn][Fi])}J+=` end ${H0[wr]} `}break;case"group":Ot==="\\ne"?J+=" not equal ":(Ot==="\\not"&&(J+=" not "),J+=Xa("math",t.body));break;case"root":J+=Xa("math",t.body);break;case"genfrac":if(Ae=Xa("math",t.above),Qe=Xa("math",t.below),Lf(t.above)&&Lf(t.below)){const Fi={"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)];Fi?J=Fi: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=Xa("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=Xa("math",t.above);pn=pn.trim();const Fi=pn.replace(/<mark([^/]*)\/>/g,"");Fi==="3"?J+=' the cube root of <break time="200ms"/>'+ft+'. <break time="200ms"/> End cube root':Fi==="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+=Xa("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 an=Ot.replace(/^\\/g,""),Tn=ct()[an];Tn&&(Tn!=null&&Tn.expand?J+=Xa("math",t.body):J+=`${an} `);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=Xa(e,t.body);break}let pn=t.isDigit()?t.asDigit():t.value,Fi=t.command;if((t.type==="delim"||t.type==="sizeddelim")&&(Fi=t.value,pn=Fi),e==="text")J+=pn;else{if(t.type==="mbin"&&(J+='<break time="150ms"/>'),pn){const $i=uf[pn]||(Fi?uf[Fi.trim()]:"");if($i)J+=" "+$i;else{const Qi=Fi?Rm(Fi.trim()):"";J+=Qi||M(pn)}}else J+=Xa("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 Fi=Xa("math",t.superscript);Fi=Fi.trim();let $i=Xa("math",t.subscript);$i=$i.trim(),J+=' the summation from <break time="200ms"/>'+$i+'<break time="200ms"/> to <break time="200ms"/>'+Fi+'<break time="200ms"/> of <break time="150ms"/>',Ft=!0}else if(t.hasEmptyBranch("subscript"))J+=" the summation of";else{let Fi=Xa("math",t.subscript);Fi=Fi.trim(),J+=' the summation from <break time="200ms"/>'+Fi+'<break time="200ms"/> of <break time="150ms"/>',Ft=!0}else if(pn==="\\prod")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Fi=Xa("math",t.superscript);Fi=Fi.trim();let $i=Xa("math",t.subscript);$i=$i.trim(),J+=' the product from <break time="200ms"/>'+$i+'<break time="200ms"/> to <break time="200ms"/>'+Fi+'<break time="200ms"/> of <break time="150ms"/>',Ft=!0}else if(t.hasEmptyBranch("subscript"))J+=" the product of ";else{let Fi=Xa("math",t.subscript);Fi=Fi.trim(),J+=' the product from <break time="200ms"/>'+Fi+'<break time="200ms"/> of <break time="150ms"/>',Ft=!0}else if(pn==="\\int")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Fi=Xa("math",t.superscript);Fi=Fi.trim();let $i=Xa("math",t.subscript);$i=$i.trim(),J+=' the integral from <break time="200ms"/>'+$($i)+'<break time="200ms"/> to <break time="200ms"/>'+$(Fi)+' <break time="200ms"/> of ',Ft=!0}else J+=' the integral of <break time="200ms"/> ';else if(typeof t.value=="string"){const Fi=(A=uf[t.value])!=null?A:t.command?uf[t.command]:void 0;J+=Fi||" "+t.value}else t.command&&(t.command==="\\mathop"?J+=Xa("math",t.body):t.command==="\\operatorname"?J+=Km(t.body):J+=t.command.startsWith("\\")?" "+t.command.slice(1):" "+t.command)}break;case"enclose":ft=Xa("math",t.body),J+=" crossed out "+ft+". End crossed out.";break;case"space":case"spacing":break}if(!Ft&&!t.hasEmptyBranch("superscript")){let Sr=Xa(e,t.superscript);Sr=Sr.trim();const En=Sr.replace(/<[^>]*>/g,"");if(Lf(t.superscript)){if(e==="math"){const wr=Qm(t.superscript);wr&&(J+='<mark name="'+wr+'"/>')}En==="\u2032"?J+=" prime ":En==="2"?J+=" squared ":En==="3"?J+=" cubed ":Number.isNaN(Number.parseInt(En))?J+=" to the "+Sr+"; ":J+=' to the <say-as interpret-as="ordinal">'+En+"</say-as> power; "}else Number.isNaN(Number.parseInt(En))?J+=" raised to the "+Sr+"; ":J+=' raised to the <say-as interpret-as="ordinal">'+En+"</say-as> power; "}if(!Ft&&!t.hasEmptyBranch("subscript")){let Sr=Xa("math",t.subscript);Sr=Sr.trim(),J+=Lf(t.subscript)?" sub "+Sr:" subscript "+Sr+". End subscript. "}}return J}function df(e){var t,r;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const i=_o(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=Xa("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,$,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 Tn=0,pn="";for(;((t=e[Tn])==null?void 0:t.mode)==="text";)pn+=e[Tn].body?$s(e[Tn].body):e[Tn].value,Tn++;return`"${pn}" ${$s(e.slice(Tn))}`}let wr=0;const an=[];for(;e[wr]&&e[wr].mode==="math";){let Tn="";for(;e[wr]&&e[wr].type==="mord"&&/\d/.test(e[wr].value);)Tn+=e[wr++].value;Tn?an.push(Tn):an.push($s(e[wr++]))}return an.push($s(e.slice(wr))),Hm(an)}if(e.mode==="text")return`"${e.value}"`;let Ot="";const{command:Sr}=e;let En;if(Sr==="\\placeholder")return`(${$s(e.body)})`;switch(e.type){case"accent":const wr={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[Sr];Ot=`${wr!=null?wr:""} ${$s(e.body)} `;break;case"first":return"";case"latexgroup":return e.body.map(Qi=>Qi.value).join("");case"group":case"root":Ot=(r=kf[Sr])!=null?r:$s(e.body);break;case"genfrac":{const Qi=e;(Qi.leftDelim||Qi.rightDelim)&&(Ot=Qi.leftDelim==="."||!Qi.leftDelim?"{:":Qi.leftDelim),Qi.hasBarLine?(Ot+="(",Ot+=$s(Qi.above),Ot+=")/(",Ot+=$s(Qi.below),Ot+=")"):(Ot+="("+$s(Qi.above)+"),",Ot+="("+$s(Qi.below)+")"),(Qi.leftDelim||Qi.rightDelim)&&(Ot+=Qi.rightDelim==="."||!Qi.rightDelim?"{:":Qi.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 Qi=e,oo=Qi.leftDelim;Ot+=oo==="."||!oo?"{:":oo,Ot+=$s(Qi.body);const Vo=Qi.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[Sr])!=null?n:Sr)!=null?i:typeof e.value=="string"?e.value:"",Ot.startsWith("\\")&&(Ot+=" "),En=Sr?Sr.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[Sr])!=null?s:Df[Sr])!=null?A:e.value;break;case"mopen":case"mclose":Ot=e.value;break;case"mpunct":Ot=(M=Df[Sr])!=null?M:Sr;break;case"mop":case"operator":case"extensible-symbol":e.value!=="\u200B"&&(Df[Sr]?Ot=Df[Sr]:Ot=Sr==="\\operatorname"?$s(e.body):($=e.value)!=null?$:Sr,Ot+=" ");break;case"array":const an=e.array,Tn=e.environmentName,pn=(J={bmatrix:["[","]"],"bmatrix*":["[","]"]}[Tn])!=null?J:["(",")"],Fi=[];for(const Qi of an){const oo=[];for(const Vo of Qi)oo.push(pn[0]+$s(Vo)+pn[1]);Fi.push(oo.join(","))}const $i=(Ae={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[Tn])!=null?Ae:["(",")"];Ot=$i[0]+Fi.join(",")+$i[1];break;case"box":break;case"spacing":Ot=(Qe=kf[Sr])!=null?Qe:" ";break;case"enclose":Ot="("+$s(e.body)+")";break;case"space":Ot=" ";break;case"subsup":Ot="";break;case"macro":Ot=(Ft=(ft=kf[Sr])!=null?ft:Df[Sr])!=null?Ft:$s(e.body);break}if(!e.hasEmptyBranch("subscript")){Ot+="_";const wr=$s(e.subscript);Ot+=wr.length!==1?`(${wr})`:wr}if(!e.hasEmptyBranch("superscript")){Ot+="^";const wr=$s(e.superscript);Ot+=wr.length!==1?`(${wr})`:wr}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 ba({from:E(f({},lu()),{renderPlaceholder:()=>new dn(160,{maxFontSize:1}),letterShapeStyle:(n=t==null?void 0:t.letterShapeStyle)!=null?n:"tex"}),mathstyle:t.mathstyle}),A=new $r({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 _o(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 $r({type:"root",body:al(e,{parseMode:t})}))}function Ng(e){return N(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,$=-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($),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 $=.36/Math.pow(2,12);for(;A-s>$;)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,$=.022,J=1.414,Ae=.1,Qe=5e-4,ft=1.14,Ft=.027,Ot=1.14,Sr=.027;function En(Qi){return Qi>=$?Qi:Qi+ku($-Qi,J)}function wr(Qi){return(Qi<0?-1:1)*Math.pow(Math.abs(Qi),2.4)}const an=En(wr(n.r/255)*.2126729+wr(n.g/255)*.7151522+wr(n.b/255)*.072175),Tn=En(wr(r.r/255)*.2126729+wr(r.g/255)*.7151522+wr(r.b/255)*.072175);let pn,Fi,$i;return Math.abs(Tn-an)<Qe?Fi=0:Tn>an?(pn=ku(Tn,i)-ku(an,s),Fi=pn*ft):(pn=ku(Tn,M)-ku(an,A),Fi=pn*Ot),Math.abs(Fi)<Ae?$i=0:Fi>0?$i=Fi-Sr:$i=Fi+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 $=A(t);if($===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($);return O()&&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(!O()){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),$=new Blob([M.buffer],{type:"audio/mpeg"}),J=URL.createObjectURL($);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),$=this.at(A[1]),J=$r.commonAncestor(M,$);(J==null?void 0:J.type)==="array"&&M.parent===J&&$.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 $=[];for(let J=A;J<=M;J++){const Ae=this.atoms[J];Kh(this,Ae,A,M)&&$.push(Ae)}return n.includeChildren||($=$.filter(J=>{let Ae=!1,{parent:Qe}=J;for(;Qe&&!Ae;)Ae=Kh(this,Qe,A,M),Qe=Qe.parent;return!Ae})),$}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 $r({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 $r.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 _o(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=>$r.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,$=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&&$&&this.selectionDidChange(),M||$}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,$,J;const Ae=r.parent;if(Ae&&r instanceof Ga){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:($=r.superscript)==null?void 0:$[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 $=n[0].parent;$.parent&&$.type!=="prompt"&&(t=[e.offsetOf($.leftSibling),e.offsetOf($)])}if(n.length===1&&n[0].type==="placeholder"&&n[0].parent.type==="genfrac"){const $=n[0].parent,J=n[0].parentBranch==="below"?"above":"below",Ae=e.offsetOf($.leftSibling);return e.deferNotifications({content:!0,selection:!0,type:r},()=>{var Qe,ft;const Ft=$.removeBranch(J);if(Ft.length===1&&Ft[0].type==="placeholder")(ft=$.parent)==null||ft.removeChild($),e.position=Math.max(0,Ae);else{const Ot=$.parent.addChildrenAfter(Ft,$);(Qe=$.parent)==null||Qe.removeChild($),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:ct(),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),$=new $r({type:"root",mode:M,body:al(A,{context:this.context})});this.model=new pg(this,M,$),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)&&Ai(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:ee(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=$r.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 $ of Object.keys(t)){const J=this.queryStyle({[$]:t[$]});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 $ of s){if($.type==="first"){A-=1;continue}$.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:Xi());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=$r.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 $=al(t,{context:this.context,parseMode:e});A.collapseSelection("forward");const J=A.at(A.position);A.position=A.offsetOf(J.parent.addChildrenAfter($,J)),M=!0}if(this.model.mode=e,e==="latex"){let $=A.selectionIsCollapsed;As(this,"accept");let J,Ae=A.at(A.position);if($)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,$=!0),Ae=A.at(ft[0])}const Qe=new Hu(J);Ae.parent.addChildAfter(Qe,Ae),$?A.position=A.offsetOf(Qe.lastChild):A.setSelection(A.offsetOf(Qe.firstChild),A.offsetOf(Qe.lastChild))}else zs(A).forEach($=>{$.isError=!1});if(r){const $=al(r,{context:this.context,parseMode:s});A.collapseSelection("forward");const J=A.at(A.position);A.position=A.offsetOf(J.parent.addChildrenAfter($,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 $ of Object.keys(s))M[$]===s[$]?($==="color"&&delete M.verbatimColor,$==="backgroundColor"&&delete M.verbatimBackgroundColor,delete M[$]):M[$]=s[$];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=>zt(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(!O())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($=>$?JSON.parse($):{}),Cd().readAloudTokens=[];for(const $ of Cd().readAloudMarks)$.value&&Cd().readAloudTokens.push($.value);Cd().readAloudCurrentMark="",i.OutputFormat="mp3",i.SpeechMarkTypes=[],n.synthesizeSpeech(i,($,J)=>{if($){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${t}") error:${$}`);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 Sr=Ft.readAloudAudio.currentTime*1e3+100;for(const En of Ft.readAloudMarks)En.time<Sr&&(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()})})}O()||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 Co=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):Co.has(this)?f({},Od(f(f({},Jf()),Xf(Co.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):Co.has(this)?Od(f(f({},Jf()),Xf(Co.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(Co.has(this)){const r=f(f({},Co.get(this).options),t);Co.set(this,E(f({},Co.get(this)),{selection:{ranges:r.readOnly?[[0,0]]:[[0,-1]]},options:r}))}else Co.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(Co.has(this)){let A,M,$;if(Gc(t)?([A,M]=t.ranges[0],$=r):GA(t)?([A,M]=t,$=r):vc(t)&&vc(r)?(A=t,M=r,$=n):(A=0,M=-1,$=t),($===void 0||$==="latex")&&A===0&&M===-1)return(s=(i=Co.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(Co.has(this)){const i=Co.get(this).options;Co.set(this,{value:t,selection:{ranges:[[-1,-1]],direction:"forward"},options:i,menuItems:void 0});return}const n=Tf(this);Co.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;ta.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 $=A.querySelector("slot:not([name])");if($)try{this._style=$.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=$==null?void 0:$.assignedNodes().map(Ae=>Ae.nodeType===3?Ae.textContent:"").join("").trim())!=null?t:"",this._mathfield=new bg(A.querySelector(":host > span"),E(f({},(n=(r=Co.get(this))==null?void 0:r.options)!=null?n:Tf(this)),{eventSink:this,value:J})),!Co.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(Co.has(this)){const Ae=this._mathfield,Qe=Co.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,Co.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)));Co.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=Co.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}Co.has(this)?Co.set(this,E(f({},Co.get(this)),{menuItems:t})):Co.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:Co.has(this)?Co.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(Co.has(this)){Co.set(this,E(f({},Co.get(this)),{selection:t}));return}Co.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:Co.has(this)?Co.get(this).selection.ranges[0][0]:0}set position(t){if(this._mathfield&&(this._mathfield.model.position=t,Es(this._mathfield)),Co.has(this)){Co.set(this,E(f({},Co.get(this)),{selection:{ranges:[[t,t]]}}));return}Co.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(O()&&!((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 $=!0,J=0,Ae;Ae=M.indexOf(t),Ae!==-1&&(J=Ae,J>0&&s.push({type:"text",data:M.slice(0,J)}),$=!1);let Qe=!1;for(;!Qe;){if($){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]=N(ft,{format:"ascii-math"})),s.push({type:"math",data:ft,rawData:M.slice(J,Ae+r.length),mathstyle:n}),J=Ae+r.length}$=!$}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 $=document.createElement("span");$.setAttribute("translate","no");const J=r.renderToSpeakableText(e);$.innerHTML=window.MathfieldElement.createHTML(J),$.className="ML__sr-only",M.append($)}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 $=mf(M.data,M.mathstyle==="textstyle"?"textstyle":"displaystyle",t,!0);$&&s.appendChild($)}}return s}function Gh(e,t){var r,n,i,s,A,M,$,J,Ae,Qe,ft,Ft,Ot,Sr,En,wr;if(e.childNodes.length===1&&e.childNodes[0].nodeType===3){const an=(r=e.childNodes[0].textContent)!=null?r:"";if((n=t.TeX)!=null&&n.processEnvironments&&/^\s*\\begin/.test(an)){e.textContent="";const pn=mf(an,"",t,!0);pn&&e.append(pn);return}const Tn=Wh(an,(i=t.TeX)==null?void 0:i.delimiters,(s=t.asciiMath)==null?void 0:s.delimiters);if(Tn.length===1&&Tn[0].type==="math"){e.textContent="";const pn=mf(Tn[0].data,Tn[0].mathstyle==="textstyle"?"textstyle":"displaystyle",t,!0);pn&&e.append(pn);return}if(Tn.length===1&&Tn[0].type==="text")return}for(let an=e.childNodes.length-1;an>=0;an--){const Tn=e.childNodes[an];if(Tn.nodeType===3){const pn=Eg((A=Tn.textContent)!=null?A:"",t);pn&&(an+=pn.childNodes.length-1,Tn.replaceWith(pn))}else if(Tn.nodeType===1){const pn=Tn,Fi=Tn.nodeName.toLowerCase();if(Fi==="script"){const $i=Tn;let Qi;if((M=t.processScriptTypePattern)!=null&&M.test($i.type))Qi=($=$i.textContent)!=null?$:"";else if((J=t.processMathJSONScriptTypePattern)!=null&&J.test($i.type))try{Qi=(Qe=t.serializeToLatex)==null?void 0:Qe.call(t,JSON.parse((Ae=$i.textContent)!=null?Ae:""))}catch(oo){console.error(oo)}if(Qi){let oo="textstyle";for(const Zn of $i.type.split(";")){const[gA,_u]=Zn.toLowerCase().split("=");gA.trim()==="mode"&&(oo=_u.trim()==="display"?"displaystyle":"textstyle")}const Vo=mf(Qi,oo,t,!0);Vo&&$i.parentNode.replaceChild(Vo,$i)}}else if(((Ft=(ft=t.processClassPattern)==null?void 0:ft.test(pn.className))!=null?Ft:!1)||!((Sr=(Ot=t.skipTags)==null?void 0:Ot.includes(Fi))!=null&&Sr||(wr=(En=t.ignoreClassPattern)==null?void 0:En.test(pn.className))!=null&&wr))if(e.childNodes.length===1&&e.childNodes[0].nodeType===3){const Qi=e.textContent;e.textContent="";const oo=mf(Qi!=null?Qi:"","displaystyle",t,!0);oo&&e.append(oo)}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"}}}]);
}());