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__Classrooms__Lists__Shixu...

1353 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 T1=Object.defineProperty,k1=Object.defineProperties;var M1=Object.getOwnPropertyDescriptors;var jm=Object.getOwnPropertySymbols;var Lv=Object.prototype.hasOwnProperty,Dv=Object.prototype.propertyIsEnumerable;var S0=(Vn,Mt,ae)=>Mt in Vn?T1(Vn,Mt,{enumerable:!0,configurable:!0,writable:!0,value:ae}):Vn[Mt]=ae,wf=(Vn,Mt)=>{for(var ae in Mt||(Mt={}))Lv.call(Mt,ae)&&S0(Vn,ae,Mt[ae]);if(jm)for(var ae of jm(Mt))Dv.call(Mt,ae)&&S0(Vn,ae,Mt[ae]);return Vn},F0=(Vn,Mt)=>k1(Vn,M1(Mt));var Nv=(Vn,Mt)=>{var ae={};for(var x in Vn)Lv.call(Vn,x)&&Mt.indexOf(x)<0&&(ae[x]=Vn[x]);if(Vn!=null&&jm)for(var x of jm(Vn))Mt.indexOf(x)<0&&Dv.call(Vn,x)&&(ae[x]=Vn[x]);return ae};var Pl=(Vn,Mt,ae)=>S0(Vn,typeof Mt!="symbol"?Mt+"":Mt,ae);(self.webpackChunk=self.webpackChunk||[]).push([[342],{27812:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return fe}});var x=ae(54476),ct=ae(59301),Le={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},Je=Le,ze=ae(7657),Se=function(oe,Oe){return ct.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=ct.forwardRef(Se),fe=Ue},89489:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return fe}});var x=ae(54476),ct=ae(59301),Le={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"},Je=Le,ze=ae(7657),Se=function(oe,Oe){return ct.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=ct.forwardRef(Se),fe=Ue},59477:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return fe}});var x=ae(54476),ct=ae(59301),Le={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"},Je=Le,ze=ae(7657),Se=function(oe,Oe){return ct.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=ct.forwardRef(Se),fe=Ue},40001:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return fe}});var x=ae(54476),ct=ae(59301),Le={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"},Je=Le,ze=ae(7657),Se=function(oe,Oe){return ct.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=ct.forwardRef(Se),fe=Ue},26227:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return fe}});var x=ae(54476),ct=ae(59301),Le={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Je=Le,ze=ae(7657),Se=function(oe,Oe){return ct.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=ct.forwardRef(Se),fe=Ue},49198:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return fe}});var x=ae(54476),ct=ae(59301),Le={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"},Je=Le,ze=ae(7657),Se=function(oe,Oe){return ct.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=ct.forwardRef(Se),fe=Ue},87169:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return fe}});var x=ae(54476),ct=ae(59301),Le={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Je=Le,ze=ae(7657),Se=function(oe,Oe){return ct.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=ct.forwardRef(Se),fe=Ue},73331:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return fe}});var x=ae(54476),ct=ae(59301),Le={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"},Je=Le,ze=ae(7657),Se=function(oe,Oe){return ct.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=ct.forwardRef(Se),fe=Ue},15277:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return fe}});var x=ae(54476),ct=ae(59301),Le={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"},Je=Le,ze=ae(7657),Se=function(oe,Oe){return ct.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=ct.forwardRef(Se),fe=Ue},52671:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return fe}});var x=ae(54476),ct=ae(59301),Le={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"},Je=Le,ze=ae(7657),Se=function(oe,Oe){return ct.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=ct.forwardRef(Se),fe=Ue},8657:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return fe}});var x=ae(54476),ct=ae(59301),Le={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"},Je=Le,ze=ae(7657),Se=function(oe,Oe){return ct.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=ct.forwardRef(Se),fe=Ue},56082:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return fe}});var x=ae(54476),ct=ae(59301),Le={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"},Je=Le,ze=ae(7657),Se=function(oe,Oe){return ct.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=ct.forwardRef(Se),fe=Ue},33853:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return fe}});var x=ae(54476),ct=ae(59301),Le={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"},Je=Le,ze=ae(7657),Se=function(oe,Oe){return ct.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=ct.forwardRef(Se),fe=Ue},15075:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return fe}});var x=ae(54476),ct=ae(59301),Le={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"},Je=Le,ze=ae(7657),Se=function(oe,Oe){return ct.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=ct.forwardRef(Se),fe=Ue},43531:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return fe}});var x=ae(54476),ct=ae(59301),Le={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},Je=Le,ze=ae(7657),Se=function(oe,Oe){return ct.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=ct.forwardRef(Se),fe=Ue},61485:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return fe}});var x=ae(54476),ct=ae(59301),Le={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},Je=Le,ze=ae(7657),Se=function(oe,Oe){return ct.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=ct.forwardRef(Se),fe=Ue},47472:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return fe}});var x=ae(54476),ct=ae(59301),Le={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"},Je=Le,ze=ae(7657),Se=function(oe,Oe){return ct.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=ct.forwardRef(Se),fe=Ue},95869:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return fe}});var x=ae(54476),ct=ae(59301),Le={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 264c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48zm-8 136H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM480 544H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 308H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm356.8-74.4c29-26.3 47.2-64.3 47.2-106.6 0-79.5-64.5-144-144-144s-144 64.5-144 144c0 42.3 18.2 80.3 47.2 106.6-57 32.5-96.2 92.7-99.2 162.1-.2 4.5 3.5 8.3 8 8.3h48.1c4.2 0 7.7-3.3 8-7.6C564 871.2 621.7 816 692 816s128 55.2 131.9 124.4c.2 4.2 3.7 7.6 8 7.6H880c4.6 0 8.2-3.8 8-8.3-2.9-69.5-42.2-129.6-99.2-162.1zM692 591c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z"}}]},name:"solution",theme:"outlined"},Je=Le,ze=ae(7657),Se=function(oe,Oe){return ct.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=ct.forwardRef(Se),fe=Ue},87395:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return fe}});var x=ae(54476),ct=ae(59301),Le={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"},Je=Le,ze=ae(7657),Se=function(oe,Oe){return ct.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=ct.forwardRef(Se),fe=Ue},45559:function(){"use strict"},42313:function(){"use strict"},96408:function(Vn,Mt){"use strict";Mt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},93510:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Vn={},Mt="5.0",ae={},x=null,ct=!1,Le=!1,Je=null,ze=!1,Se=null,Ue=null,fe=0;fe<arguments.length;fe++){var Ce=arguments[fe];if(Ce!==null)switch(typeof Ce){case"number":Mt=Ce.toFixed(1);break;case"string":Ce.match(new RegExp("^[0-9]\\.[0-9]+$"))?Mt=Ce:Je=Ce;break;case"object":typeof Ce.is3D!="undefined"?x=Ce:ae=Ce;break;case"boolean":ct=Ce,Le=!0;break}}x===null&&(x={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ae.material_id!==void 0&&!Le&&(ct=!0)),Je!==null&&ae.id===void 0&&(ae.id=Je);var oe="",Oe="",ve=!1,Me=null,Fe=null,Te=null,ye=!1,xe=null,Ee=null,ke=null,Ke=null,Qe=null;ae.height!==void 0&&(ae.height=Math.round(ae.height)),ae.width!==void 0&&(ae.width=Math.round(ae.width));var Re=function(tt){return parseFloat(tt)>4?parseFloat(tt):5};Vn.setHTML5Codebase=function(tt,Nt){Ue=tt,ot(tt,Nt)},Vn.setJavaCodebase=Vn.setJavaCodebaseVersion=Vn.isCompiledInstalled=Vn.setPreCompiledScriptPath=Vn.setPreCompiledResourcePath=function(){},Vn.setHTML5CodebaseVersion=function(tt,Nt){var Ut=parseFloat(tt);if(Ut!==NaN&&Ut<5){console.log("The GeoGebra HTML5 codebase version "+Ut+" is deprecated. Using version latest instead.");return}Se=tt,_e(tt,Nt)},Vn.getHTML5CodebaseVersion=function(){return Fe},Vn.getParameters=function(){return ae},Vn.setFontsCSSURL=function(tt){Ke=tt},Vn.setGiacJSURL=function(tt){},Vn.setJNLPFile=function(tt){oe=tt},Vn.setJNLPBaseDir=function(tt){},Vn.inject=function(){function tt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Nt="auto",Ut=ae.id,pn,kt=!1,mn=0;mn<arguments.length;mn++){var _t=arguments[mn];typeof _t=="string"?(_t=_t.toLowerCase(),_t.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Nt=_t:Ut=arguments[mn]):typeof _t=="boolean"?kt=_t:_t instanceof HTMLElement&&(pn=_t)}Cn();function Cn(){if(!ze){setTimeout(Cn,200);return}Nt=Bt(Nt);var an=pn||document.getElementById(Ut);if(!an){console.log("possibly bug on ajax loading? ");return}if(Vn.removeExistingApplet(an,!1),ae.width===void 0&&an.clientWidth&&(ae.width=an.clientWidth),ae.height===void 0&&an.clientHeight&&(ae.height=an.clientHeight),!(ae.width&&ae.height)&&Nt==="html5"&&(delete ae.width,delete ae.height),Me=Nt,Nt==="screenshot")Ne(an,ae);else{var de=!1;ae.hasOwnProperty("playButton")&&ae.playButton||ae.hasOwnProperty("clickToLoad")&&ae.clickToLoad?de=!0:ae.hasOwnProperty("playButtonAutoDecide")&&ae.playButtonAutoDecide&&(de=(!et()||tt())&&Ge()),de?(Me="screenshot",Ot(an,ae,kt,Nt)):pt(an,ae,kt)}}};function et(){try{return window.self!==window.top}catch(tt){return!0}}function Ge(){return ae.hasOwnProperty("screenshotGenerator")&&ae.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Vn.getViews=function(){return x},Vn.isJavaInstalled=function(){return!1};var ut=function(tt){var Nt=function(mn){var _t=JSON.parse(mn),Cn=function(pe){return pe.type=="G"||pe.type=="E"},an=_t.elements?_t.elements.filter(Cn)[0]:_t;if(!an||!an.url){Ut();return}ae.fileName=an.url,at(an.settings||{}),x.is3D=!0;var de="https://www.geogebra.org/images/";Vn.setPreviewImage(xe||an.previewUrl,de+"GeoGebra_loading.png",de+"applet_play.png"),tt()},Ut=function(){ae.onError&&ae.onError(),Zt("Error: Fetching material (id "+ae.material_id+") failed.",ae)},pn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",kt="/materials/"+ae.material_id+"?scope=basic";ft("https://"+pn+"/api/proxy.php?path="+encodeURIComponent(kt),Nt,Ut)};function at(tt){var Nt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ut){tt[Ut]=!!tt[Ut]}),Nt.forEach(function(Ut){ae[Ut]===void 0&&tt[Ut]!==void 0&&(ae[Ut]=tt[Ut])}),ae.showToolBarHelp===void 0&&(ae.showToolBarHelp=ae.showToolBar)}function ft(tt,Nt,Ut){var pn=new XMLHttpRequest;pn.open("GET",tt),pn.onload=function(){Nt(pn.responseText)},pn.onerror=Ut,pn.send()}Vn.isHTML5Installed=function(){return!0},Vn.getLoadedAppletType=function(){return Me},Vn.setPreviewImage=function(tt,Nt,Ut){xe=tt,Ee=Nt,ke=Ut},Vn.removeExistingApplet=function(tt,Nt){var Ut;typeof tt=="string"&&(tt=document.getElementById(tt)),Me=null;var pn=null;for(Ut=0;Ut<tt.childNodes.length;Ut++){var kt=tt.childNodes[Ut],mn=kt.className;mn==="applet_screenshot"?Nt?(kt.style.display="block",Me="screenshot"):kt.style.display="none":mn!=="applet_scaler prerender"&&(tt.removeChild(kt),pn=mn&&mn.indexOf("appletParameters")!=-1?kt.id:null,Ut--)}var _t=ae.id!==void 0?ae.id:pn,Cn=window[_t];Cn&&typeof Cn.getBase64=="function"&&(Cn.remove(),window[_t]=null)},Vn.refreshHitPoints=function(){if(Re(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var tt=Vn.getAppletObject();return tt&&typeof tt.recalculateEnvironments=="function"?(tt.recalculateEnvironments(),!0):!1},Vn.startAnimation=function(){var tt=Vn.getAppletObject();return tt&&typeof tt.startAnimation=="function"?(tt.startAnimation(),!0):!1},Vn.stopAnimation=function(){var tt=Vn.getAppletObject();return tt&&typeof tt.stopAnimation=="function"?(tt.stopAnimation(),!0):!1},Vn.getAppletObject=function(){var tt=ae.id!==void 0?ae.id:"ggbApplet";return window[tt]},Vn.resize=function(){};var bt=function(tt,Nt,Ut){var pn=document.createElement("param");pn.setAttribute("name",Nt),pn.setAttribute("value",Ut),tt.appendChild(pn)},He=function(tt){return tt&&tt!=="false"},pt=function(tt,Nt,Ut){Re(Fe)<=4.2&&(Ut=!0);var pn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Fe||ggbHTML5LoadedCodebaseIsWebSimple&&!ye)&&(pn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var kt=document.createElement("div");kt.classList.add("appletParameters","notranslate");var mn=Nt.width,_t=Nt.height;if(Nt.disableAutoScale=Nt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Nt.disableAutoScale,Nt.width!==void 0)if(Re(Fe)<=4.4)He(Nt.showToolBar)&&(Nt.height-=7),He(Nt.showAlgebraInput)&&(Nt.height-=37),Nt.width<605&&He(Nt.showToolBar)&&(Nt.width=605,mn=605);else{var Cn=100;(He(Nt.showToolBar)||He(Nt.showMenuBar))&&(Nt.hasOwnProperty("customToolBar")&&(Nt.customToolbar=Nt.customToolBar),Cn=He(Nt.showMenuBar)?245:155),mn<Cn&&(Nt.width=Cn,mn=Cn)}kt.style.border="none",kt.style.display="inline-block";for(var an in Nt)Nt.hasOwnProperty(an)&&an!=="appletOnLoad"&&kt.setAttribute("data-param-"+an,Nt[an]);Ke&&kt.setAttribute("data-param-fontscssurl",Ke),Vn.resize=function(){GGBAppletUtils.responsiveResize(tt,Nt)},window.addEventListener("resize",function(Lt){Vn.resize()});var de=typeof Nt.appletOnLoad=="function"?Nt.appletOnLoad:function(){};if(!Ut&&Nt.width!==void 0){Nt.hasOwnProperty("showSplash")||kt.setAttribute("data-param-showSplash","false");var pe=tt.querySelector(".applet_scaler.prerender"),ie=pe!==null;if(ie)var ee=pe.querySelector(".ggb_preview");else{var ee=ht(mn,_t,Nt.borderColor,!1);pe=document.createElement("div"),pe.className="applet_scaler",pe.style.position="relative",pe.style.display="block",pe.style.width=mn+"px",pe.style.height=_t+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(pe,"66%"),Re(Fe)>=5?(Nt.appletOnLoad=function(Lt){var jt=tt.querySelector(".ggb_preview");jt&&jt.parentNode.removeChild(jt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(pe),window.GGBT_wsf_view&&$(window).trigger("resize"),de(Lt)},ie||pe.appendChild(ee)):kt.appendChild(ee),pe.appendChild(kt),ie||tt.appendChild(pe),setTimeout(function(){Vn.resize()},1)}else{var se=document.createElement("div");se.className="applet_scaler",se.style.position="relative",se.style.display="block",se.appendChild(kt),tt.appendChild(se),Nt.appletOnLoad=function(Lt){Vn.resize(),de(Lt)}}function le(Lt,jt){jt&&typeof jt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Lt,jt.appletOnLoad):renderGGBElement(Lt),Zt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",jt)}function Be(Lt,jt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Lt,params:jt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Ct){le(Ct.article,Ct.params)}),html5AppletsToProcess=null)},Re(Fe)<5&&(Lt.className+=" geogebraweb")):le(Lt,jt)}if(pn){scriptLoadStarted=!0;for(var $e=0;$e<kt.childNodes.length;$e++){var st=kt.childNodes[$e].tagName;st==="TABLE"&&(kt.removeChild(kt.childNodes[$e]),$e--)}if(ggbHTML5LoadedScript!==null){var gt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');gt!=null&&gt.parentNode.removeChild(gt)}var mt=document.createElement("script"),Et=function(){Be(kt,Nt)};mt.src=Oe+Te,ggbHTML5LoadedCodebaseIsWebSimple=ye,ggbHTML5LoadedCodebaseVersion=Fe,ggbHTML5LoadedScript=mt.src,Zt("GeoGebra HTML5 codebase loaded: '"+Oe+"'.",Nt),!Ue&&(!Se||Se=="5.0")?(ye?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Et()):Oe.requirejs?__webpack_require__.e(3861).then(function(){var Lt=[__webpack_require__(40341)];Et.apply(null,Lt)}.bind(this)).catch(__webpack_require__.oe):(mt.onload=Et,tt.appendChild(mt))}else Be(kt,Nt);Nt.height=_t,Nt.width=mn},Ne=function(tt,Nt,Ut){var pn=ht(Nt.width,Nt.height,Nt.borderColor,Ut),kt=document.createElement("div");kt.style.position="relative",kt.style.display="block",kt.style.width=Nt.width+"px",kt.style.height=Nt.height+"px",kt.className="applet_screenshot applet_scaler"+(Ut?" applet_screenshot_play":""),kt.appendChild(pn);var mn=GGBAppletUtils.getScale(Nt,tt,Ut);Ut?(tt.appendChild(it()),window.GGBT_wsf_view||(tt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(kt,"66%"),tt.appendChild(kt),mn!==1&&!isNaN(mn)&&(GGBAppletUtils.scaleElement(kt,mn),kt.style.width=Nt.width+"px",kt.style.height=Nt.height+"px",kt.parentNode.style.width=Nt.width*mn+"px",kt.parentNode.style.height=Nt.height*mn+"px"),Vn.resize=function(){je(tt,pn,kt,Ut)},window.addEventListener("resize",function(_t){Vn.resize()}),Vn.resize()};function je(tt,Nt,Ut,pn){if(tt.contains(Nt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(tt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(tt)}var kt=GGBAppletUtils.getScale(ae,tt,pn);Ut.parentNode!==null&&(!isNaN(kt)&&kt!==1?(GGBAppletUtils.scaleElement(Ut,kt),Ut.parentNode.style.width=ae.width*kt+"px",Ut.parentNode.style.height=ae.height*kt+"px"):(GGBAppletUtils.scaleElement(Ut,1),Ut.parentNode.style.width=ae.width+"px",Ut.parentNode.style.height=ae.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(tt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Vn.onExitFullscreen=function(tt,Nt){Nt.appendChild(tt)};var Ot=function(tt,Nt,Ut,pn){Ne(tt,Nt,!0);for(var kt=function(){var Cn=[];for(_t=0;_t<tt.childNodes.length;_t++)Cn.push(tt.childNodes[_t]);if(window.GGBT_wsf_view){var an=window.GGBT_wsf_view.renderFullScreen(tt,Nt.id),de=document.getElementById("fullscreencontainer"),pe=jQuery(tt).find(".fullscreencontent");pe.length>0?(an.remove(),pe.attr("id","fullscreencontent").show(),jQuery(de).append(pe),window.dispatchEvent(new Event("resize"))):pt(an,Nt,!1),window.GGBT_wsf_view.launchFullScreen(de)}else Me=pn,pt(tt,Nt,!1);if(!window.GGBT_wsf_view)for(_t=0;_t<Cn.length;_t++)tt.removeChild(Cn[_t])},mn=tt.getElementsByClassName("ggb_preview_play"),_t=0;_t<mn.length;_t++)mn[_t].addEventListener("click",kt,!1),mn[_t].addEventListener("ontouchstart",kt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(tt),Ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},it=function(){var tt=document.createElement("div");if(tt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Nt='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Ut=document.createElement("style");Ut.styleSheet?Ut.styleSheet.cssText=Nt:Ut.appendChild(document.createTextNode(Nt)),document.getElementsByTagName("head")[0].appendChild(Ut)}return tt},ht=function(tt,Nt,Ut,pn){var kt=document.createElement("div");kt.className="ggb_preview",kt.style.position="absolute",kt.style.zIndex="90",kt.style.width=tt-2+"px",kt.style.height=Nt-2+"px",kt.style.top="0px",kt.style.left="0px",kt.style.overflow="hidden",kt.style.backgroundColor="white";var mn="lightgrey";Ut!==void 0&&(Ut==="none"?mn="transparent":mn=Ut),kt.style.border="1px solid "+mn;var _t=document.createElement("img");if(_t.style.position="relative",_t.style.zIndex="1000",_t.style.top="-1px",_t.style.left="-1px",xe!==null&&_t.setAttribute("src",xe),_t.style.opacity=.7,Ee!==null){var Cn,an,de;if(!pn){Cn=document.createElement("img"),Cn.style.position="absolute",Cn.style.zIndex="1001",Cn.style.opacity=1,_t.style.opacity=.3,an=360,an>tt/4*3&&(an=tt/4*3),de=an/5.8,Cn.setAttribute("src",Ee),Cn.setAttribute("width",an),Cn.setAttribute("height",de);var pe=(tt-an)/2,ie=(Nt-de)/2;Cn.style.left=pe+"px",Cn.style.top=ie+"px",kt.appendChild(Cn)}}return kt.appendChild(_t),kt},Bt=function(tt){return tt=tt.toLowerCase(),tt==="html5"||tt==="screenshot"?tt:"html5"},We=["web","webSimple","web3d","tablet","tablet3d","phone"],_e=function(tt,Nt){if(Fe=tt,Nt){ot(Fe,!0);return}var Ut=!ct;if(Ut){var pn=Re(Fe);!isNaN(pn)&&pn<4.4&&(Ut=!1)}var kt,mn;window.location.protocol.substr(0,4)==="http"?kt=window.location.protocol:kt="http:";var _t=Fe.indexOf("//");_t>0?mn=Fe:_t===0?mn=kt+Fe:mn="https://www.geogebra.org/apps/5.2.814.0/";for(var Cn in We)if(Fe.slice(We[Cn].length*-1)===We[Cn]||Fe.slice((We[Cn].length+1)*-1)===We[Cn]+"/"){ot(mn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ut&&!x.is3D&&!x.AV&&!x.SV&&!x.CV&&!x.EV2&&!x.CP&&!x.PC&&!x.DA&&!x.FI&&!x.PV&&!He(ae.showToolBar)&&!He(ae.showMenuBar)&&!He(ae.showAlgebraInput)&&!He(ae.enableRightClick)&&(!ae.appName||ae.appName=="classic")?mn+="webSimple/":mn+="web3d/",ot(mn,!1)},ot=function(tt,Nt){if(tt.requirejs){Oe=tt;return}tt.slice(-1)!=="/"&&(tt+="/"),Oe=tt,Nt===null&&(Nt=tt.indexOf("http")===-1),ve=Nt,Te="web.nocache.js",ye=!1;var Ut=Oe.split("/");Ut.length>1&&(!Nt&&Ut[Ut.length-2]==="webSimple"?(Te="webSimple.nocache.js",ye=!0):We.indexOf(Ut[Ut.length-2])>=0&&(Te=Ut[Ut.length-2]+".nocache.js")),Ut=tt.split("/"),Fe=Ut[Ut.length-3],Fe.substr(0,4)==="test"?Fe=Fe.substr(4,1)+"."+Fe.substr(5,1):(Fe.substr(0,3)==="war"||Fe.substr(0,4)==="beta")&&(Fe="5.0");var pn=parseFloat(Fe);pn!==NaN&&pn<5&&tt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+pn+" is deprecated. Using version latest instead."),_e("5.0",Nt))},Zt=function(tt,Nt){window.console&&window.console.log&&(!Nt||typeof Nt.showLogging=="undefined"||Nt.showLogging&&Nt.showLogging!=="false")&&console.log(tt)};ae.material_id!==void 0?ut(zt):zt();function zt(){var tt=Mt;Se!==null?tt=Se:parseFloat(tt)<5&&(tt="5.0"),_e(tt,!1),Ue!==null&&ot(Ue,ve),ze=!0}return Vn},GGBAppletUtils=function(){"use strict";function Vn(){return window.GGBT_wsf_edit!==void 0}function Mt(ze,Se){Se!=1?(ze.style.transformOrigin="0% 0% 0px",ze.style.webkitTransformOrigin="0% 0% 0px",ze.style.transform="scale("+Se+","+Se+")",ze.style.webkitTransform="scale("+Se+","+Se+")",ze.style.maxWidth="initial",ze.querySelector(".ggb_preview")!==null&&(ze.querySelector(".ggb_preview").style.maxWidth="initial"),ze.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ze.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ze.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ze.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ze.style.transform="none",ze.style.webkitTransform="none")}function ae(ze,Se,Ue,fe,Ce,oe){var Oe=null;if(oe!=null&&oe!="")for(var ve=ze.parentNode;ve!=null;)if((" "+ve.className+" ").indexOf(" "+oe+" ")>-1){Oe=ve;break}else ve=ve.parentNode;var Me=0,Fe=0,Te=0,ye=0,xe=0,Ee=0,ke=0;if(Oe)Me=Oe.offsetWidth,Fe=Math.max(fe?Oe.offsetWidth:0,Oe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Me=Math.min(window.innerWidth,document.documentElement.clientWidth),Fe=Math.min(window.innerHeight,document.documentElement.clientHeight),Te=Me):(Me=window.innerWidth,Fe=window.innerHeight,Te=window.innerWidth),ze){var Ke=ze.getBoundingClientRect();Ke.left>0&&Ke.left<=Me&&(Ce===void 0||!Ce)&&(document.dir==="rtl"?(xe=Me-Ke.width-Ke.left,Ee=Te<=480?10:30):(Ee=Ke.left,xe=Te<=480?10:30),ye=Ee+xe)}if(ze&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Qe=ze.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ye=40,ke=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ye=0,ke=40)}}return ze&&((Ue===void 0||!Ue)&&Se>0&&Se+ye<Me?Me=Se:Me-=ye,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ue===void 0||!Ue)&&(Fe-=ke)),{width:Me,height:Fe}}function x(ze,Se,Ue,fe,Ce){if(ze.isScreenshoGenerator)return 1;var oe=fe!==void 0&&fe,Oe=ze.noScaleMargin!=null&&ze.noScaleMargin,ve=function(Qe){return Qe&&Qe!=="false"},Me=ve(ze.autoHeight),Fe=ae(Se,ze.width,Ue,Me,oe&&window.GGBT_wsf_view||Oe,Ce),Te=parseInt(Fe.width),ye=ze.width,xe=ze.height;if(ye===void 0){var Ee=Se.querySelector(".appletParameters");Ee&&(ye=Ee.offsetWidth,xe=Ee.offsetHeight)}var ke=Te/ye,Ke=oe?1:Fe.height/xe;return Ue!==void 0&&!Ue&&(ke=Math.min(1,ke),Ke=Math.min(1,Ke)),Math.min(ke,Ke)}function ct(ze,Se,Ue){var fe=1,Ce,oe=!1;if(ze.hasOwnProperty("allowUpscale")&&(oe=ze.allowUpscale),ze.hasOwnProperty("scale")&&(fe=parseFloat(ze.scale),(isNaN(fe)||fe===null||fe===0)&&(fe=1),fe>1&&(oe=!0)),Se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(oe=!0),!(ze.hasOwnProperty("disableAutoScale")&&ze.disableAutoScale))Ce=x(ze,Se,oe,Ue,ze.scaleContainerClass);else return fe;return oe&&(!ze.hasOwnProperty("scale")||fe===1)?Ce:Math.min(fe,Ce)}function Le(ze){var Se=Math.min(window.innerWidth,document.documentElement.clientWidth),Ue=Math.min(window.innerHeight,document.documentElement.clientHeight),fe=ze.getBoundingClientRect(),Ce=(Se-fe.width)/2,oe=(Ue-fe.height)/2;oe<0&&(oe=0),ze.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ce<40?ze.style.left="40px":ze.style.left=Ce+"px",ze.style.top=oe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(oe<40?ze.style.top="40px":ze.style.top=oe+"px",ze.style.left=Ce+"px")}function Je(ze,Se){var Ue=ze.querySelector(".appletParameters");if(Ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Se.id!==Ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ze)}if(Ue.parentElement&&/fullscreen/.test(Ue.parentElement.className))return;var fe=ct(Se,ze);Vn()&&Ue.setAttribute("data-param-scale",fe);for(var Ce=null,oe=0;oe<ze.childNodes.length;oe++)if(ze.childNodes[oe].className!==void 0&&ze.childNodes[oe].className.match(/^applet_scaler/)){Ce=ze.childNodes[oe];break}if(Ce!==null&&Ce.querySelector(".noscale")!==null)return;var Oe=Se.id!==void 0?Se.id:"ggbApplet",ve=window[Oe];(ve==null||!ve.recalculateEnvironments)&&Ce!==null&&!Ce.className.match(/fullscreen/)&&(Ce.parentNode.style.transform="",!isNaN(fe)&&fe!==1?(Ce.parentNode.style.width=Se.width*fe+"px",Ce.parentNode.style.height=Se.height*fe+"px",Mt(Ce,fe)):(Mt(Ce,1),Ce.parentNode.style.width=Se.width+"px",Ce.parentNode.style.height=Se.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Le(ze),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ue).parents(".content-added-content"))}}return{responsiveResize:Je,isFlexibleWorksheetEditor:Vn,positionCenter:Le,getScale:ct,scaleElement:Mt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Vn=n.location.search;return Vn.indexOf(J)!=-1||Vn.indexOf(K)!=-1}function q(Vn,Mt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Vn){var Mt=s[L].bindings;s[L].bindings=function(){for(var ae=Mt?Mt():{},x=Vn[webModule.__softPermutationId],ct=O;ct<x.length;ct++){var Le=x[ct];ae[Le[O]]=Le[P]}return ae}};var t;function u(){return v(),t}function v(){if(!t){var Vn=o.createElement(Q);if(Vn.id=L,Vn.style.cssText=R+S,Vn.tabIndex=-1,o.body.appendChild(Vn),t=Vn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Mt=document.compatMode==U?V:W;t.write(Mt+X),t.close()}}}function w(Vn){function Mt(x){function ct(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Le=ct();if(Le){x();return}function Je(){if(!Le){if(!ct())return;Le=!0,x(),o.removeEventListener&&o.removeEventListener(Z,Je,!1),ze&&clearInterval(ze)}}o.addEventListener&&o.addEventListener(Z,Je,!1);var ze=setInterval(function(){Je()},$)}function ae(x){var ct=u(),Le=ct.body,Je=ct.createElement(_);Je.language=ab,Je.crossOrigin=W,Je.src=x,webModule.__errFn&&(Je.onerror=function(){webModule.__errFn(L,new Error(bb+x))}),Le.appendChild(Je)}Mt(function(){ae(Vn)})}webModule.__startLoadingFragment=function(Vn){return C(Vn)},webModule.__installRunAsyncCode=function(Vn){var Mt=u(),ae=Mt.body,x=Mt.createElement(_);x.language=ab,x.text=Vn,ae.appendChild(x),ae.removeChild(x)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Vn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Vn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Vn){var Mt=c[Vn];return Mt==null?null:Mt},r=d,webModule.__errFn=e}function B(){function Vn(ze){var Se=ze.lastIndexOf(rb);Se==-1&&(Se=ze.length);var Ue=ze.indexOf(sb);Ue==-1&&(Ue=ze.length);var fe=ze.lastIndexOf(tb,Math.min(Ue,Se));return fe>=O?ze.substring(O,fe+P):W}function Mt(ze){if(!ze.match(/^\w+:\/\//)){var Se=o.createElement(ub);Se.src=ze+vb,ze=Vn(Se.src)}return ze}function ae(){var ze=__gwt_getMetaProperty(wb);return ze!=null?ze:W}function x(){for(var ze=o.getElementsByTagName(_),Se=O;Se<ze.length;++Se)if(ze[Se].src.indexOf(xb)!=-1)return Vn(ze[Se].src);return W}function ct(){var ze=o.getElementsByTagName(yb);return ze.length>O?ze[ze.length-P].href:W}function Le(){var ze=o.location;return ze.href==ze.protocol+zb+ze.host+ze.pathname+ze.search+ze.hash}var Je=ae();return Je==W&&(Je=x()),Je==W&&(Je=ct()),Je==W&&Le()&&(Je=Vn(o.location.href)),Je=Mt(Je),Je}function C(Vn){return Vn.match(/^\//)||Vn.match(/^[a-zA-Z]+:\/\//)?Vn:webModule.__moduleBase+Vn}function D(){var Vn=[],Mt=O,ae=[],x=[];function ct(ze){var Se=x[ze](),Ue=ae[ze];if(Se in Ue)return Se;var fe=[];for(var Ce in Ue)fe[Ue[Ce]]=Ce;throw r&&r(ze,fe,Se),null}if(__gwt_isKnownPropertyValue=function(ze,Se){return Se in ae[ze]},webModule.__getPropMap=function(){var ze={};for(var Se in ae)ae.hasOwnProperty(Se)&&(ze[Se]=ct(Se));return ze},webModule.__computePropValue=ct,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Le;try{Le=Cb;var Je=Le.indexOf(Db);Je!=-1&&(Mt=parseInt(Le.substring(Je+P),$),Le=Le.substring(O,Je))}catch(ze){}return webModule.__softPermutationId=Mt,C(Le+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},28735:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Ax:function(){return Je},Ds:function(){return ze},KI:function(){return Ue},SI:function(){return Le},f1:function(){return ct}});var x=ae(74128);function ct(fe){let Ce=!0;if(fe.length>0){for(let oe=0;oe<fe.length;oe++)if(fe[oe].compile_success==0||!fe[oe].compile_success){Ce=!1;break}}else Ce=!1;return Ce}function Le(fe,Ce=""){let oe=[];for(let Oe=0;Oe<fe.length;Oe++){let ve=fe[Oe],Me=Ce?`${Ce}/${ve.name}`:`${ve.name}`;oe.push({title:ve.name,type:ve.type,isLeaf:ve.type!=="tree",key:Me})}return oe}function Je(fe,Ce,oe){for(let Oe=0;Oe<fe.length;Oe++){let ve=fe[Oe];if(ve.key===Ce){ve.children=oe;break}ve.children&&Je(ve.children,Ce,oe)}return fe}function ze(fe,Ce,oe){let Oe;return function(){let ve=this,Me=arguments,Fe=function(){Oe=null,oe||fe.apply(ve,Me)},Te=oe&&!Oe;clearTimeout(Oe),Oe=setTimeout(Fe,Ce),Te&&fe.apply(ve,Me)}}const Se=!0,Ue=x.Z.API_SERVER},65078:function(Vn,Mt,ae){"use strict";ae.d(Mt,{ij:function(){return ke},_s:function(){return Ee},Uf:function(){return xe},ZP:function(){return Qe}});var x=ae(59301),ct={flex_box_center:"flex_box_center___swvFl",flex_space_between:"flex_space_between___AqPFV",flex_box_vertical_center:"flex_box_vertical_center___XWInJ",flex_box_center_end:"flex_box_center_end___GB61t",flex_box_column:"flex_box_column___dJnz1",analysis:"analysis___xyV_c",title:"title___DQ3VK",itemWrap:"itemWrap___vFE5r",item:"item___NjeOt",list:"list___BbMrm",wrap:"wrap___UQTTb",img:"img___tNvUo",tips:"tips___Eu4wH",footer:"footer___ZbR9W",noData:"noData___mLlw0"},Le=ae(92310),Je=ae.n(Le),ze=ae(42441),Se=ae(25399),Ue=ae(458),fe=ae(29787),Ce=ae(2524),oe=ae(74128),Oe=Object.defineProperty,ve=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,Te=(Re,et,Ge)=>et in Re?Oe(Re,et,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Re[et]=Ge,ye=(Re,et)=>{for(var Ge in et||(et={}))Me.call(et,Ge)&&Te(Re,Ge,et[Ge]);if(ve)for(var Ge of ve(et))Fe.call(et,Ge)&&Te(Re,Ge,et[Ge]);return Re};const xe=(Re={})=>{var et,Ge,ut,at;let ft=(et=Re==null?void 0:Re.emotion)==null?void 0:et.map(Ne=>ye({value:Ne==null?void 0:Ne.rate},Ne)),bt=(Ge=Re==null?void 0:Re.focus)==null?void 0:Ge.map(Ne=>ye({value:Ne==null?void 0:Ne.rate},Ne)),He=(ut=Re==null?void 0:Re.action)==null?void 0:ut.map(Ne=>ye({value:Ne==null?void 0:Ne.rate},Ne)),pt=(at=Re==null?void 0:Re.intention)==null?void 0:at.map(Ne=>ye({value:Ne==null?void 0:Ne.rate},Ne));return[{title:"\u8868\u60C5\u5360\u6BD4",color:["#f7ca2e","#4ccf71","#3791ee","#f9ac95","#4f74ee","#f0e999"],data:ft||[]},{title:"\u4E13\u6CE8\u5EA6\u5360\u6BD4",color:["#4f74ee","#f9ac95","#9cb5fe","#eaa170","#3791ee","#a39bed"],data:bt||[]},{title:"\u884C\u4E3A\u5360\u6BD4\u60C5\u51B5",color:["#5eca9c","#a39bed","#f68238","#f0e999","#eaa170","#f9ac95"],data:He||[]},{title:"\u610F\u56FE\u5360\u6BD4\u60C5\u51B5",color:["#eaa170","#739fcb","#f0e999","#f9ac95","#4f74ee","#5eca9c"],data:pt||[]}]},Ee=({className:Re,dataSource:et=[],col:Ge=4,right:ut,bottom:at=23,precision:ft=0,wrapWidth:bt=1200})=>{const He=(Ne="",je,Ot="--")=>Ne?(Ne==null?void 0:Ne.length)>je?(Ne==null?void 0:Ne.slice(0,je-1))+"...":Ne:Ot,pt=Math.floor((bt-(Ge-1)*ut)/Ge);return x.createElement("div",{className:Je()(ct.list,Re)},!!(et!=null&&et.length)&&(et==null?void 0:et.map((Ne,je)=>{const{cover_pic:Ot,created_at:it,emotion:ht,action:Bt,intention:We,focus:_e}=Ne;return x.createElement("div",{key:je,className:ct.wrap,style:{width:pt,marginRight:(1+je)%Ge===0?0:ut+ft,marginBottom:at}},x.createElement("div",{className:ct.img},x.createElement("img",{src:`${oe.Z.API_SERVER}${Ot}`}),x.createElement("div",{className:ct.tips},x.createElement("div",null,x.createElement("i",{className:"iconfont icon-paisheshijian mr5 font14"})," \u62CD\u6444\u65F6\u95F4"),x.createElement("span",null,it))),x.createElement("div",{className:ct.footer},x.createElement("ul",null,x.createElement("li",null,x.createElement("i",{className:"iconfont icon-biaoqing"}),x.createElement("span",null,"\u8868\u60C5\uFF1A",x.createElement(Se.Z,{title:ht},x.createElement("span",{className:"c-grey-333"},He(ht,4))))),x.createElement("li",null,x.createElement("i",{className:"iconfont icon-hangwei"}),x.createElement("span",null,"\u884C\u4E3A\uFF1A",x.createElement(Se.Z,{title:Bt},x.createElement("span",{className:"c-grey-333"},He(Bt,4)))))),x.createElement("ul",null,x.createElement("li",null,x.createElement("i",{className:"iconfont icon-yitu"}),x.createElement("span",null,"\u610F\u56FE\uFF1A",x.createElement(Se.Z,{title:We},x.createElement("span",{className:"c-grey-333"},He(We,4))))),x.createElement("li",null,x.createElement("i",{className:"iconfont icon-zhuangtai"}),x.createElement("span",null,"\u4E13\u6CE8\u5EA6\uFF1A",x.createElement(Se.Z,{title:_e},x.createElement("span",{className:"c-grey-333"},He(_e,3))))))))})))},ke=({className:Re,style:et,title:Ge,hideBar:ut=!1,children:at,customText:ft="",noDataText:bt="",emptyData:He=[],loading:pt,actionAnalysis:Ne})=>{var je,Ot;const it=((je=He==null?void 0:He[0])==null?void 0:je.every(Bt=>{var We;return!((We=Bt==null?void 0:Bt.data)!=null&&We.length)}))&&!((Ot=He==null?void 0:He[1])!=null&&Ot.length)||!Ne,ht=Ne?bt:ft;return x.createElement(Ue.Z,{loading:pt,active:!0},it&&x.createElement("div",{className:Je()(ct.noData,Re),style:et},!!Ge&&x.createElement("div",{className:ct.title},!ut&&x.createElement("b",null),x.createElement("span",null,Ge)),x.createElement("div",{className:ct.itemWrap},x.createElement(Ce.Z,{customText:ht}))),!it&&at)};var Qe=({className:Re,style:et,data:Ge=[],title:ut,hideBar:at=!1,loading:ft=!1})=>x.createElement("div",{className:Je()(ct.analysis,Re),style:et},!!ut&&x.createElement("div",{className:ct.title},!at&&x.createElement("b",null),x.createElement("span",null,ut)),x.createElement(fe.Z,{spinning:ft},x.createElement("div",{className:ct.itemWrap},Ge==null?void 0:Ge.map((bt,He)=>x.createElement("div",{className:ct.item,key:He},x.createElement(ze.Z,{option:{tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c}%"},title:{left:"center",bottom:15,text:bt==null?void 0:bt.title},legend:{top:10,right:10,orient:"vertical",show:!0,align:"left",icon:"circle",itemWidth:10,itemHeight:10,formatter:function(pt){for(let Ne in bt==null?void 0:bt.data)if(pt==(bt==null?void 0:bt.data[Ne].name))return pt+" "+(bt==null?void 0:bt.data[Ne].value)+"%"},textStyle:{color:"#767676",fontSize:12}},color:bt==null?void 0:bt.color,series:[{type:"pie",radius:["20%","35%"],center:["20%","40%"],avoidLabelOverlap:!1,label:{show:!1},labelLine:{show:!1},data:bt==null?void 0:bt.data}]},style:{height:145}}))))))},48530:function(Vn,Mt,ae){"use strict";var x=ae(86204),ct=ae.n(x),Le=Object.defineProperty,Je=(fe,Ce,oe)=>Ce in fe?Le(fe,Ce,{enumerable:!0,configurable:!0,writable:!0,value:oe}):fe[Ce]=oe,ze=(fe,Ce,oe)=>Je(fe,typeof Ce!="symbol"?Ce+"":Ce,oe),Se=(fe,Ce,oe)=>new Promise((Oe,ve)=>{var Me=ye=>{try{Te(oe.next(ye))}catch(xe){ve(xe)}},Fe=ye=>{try{Te(oe.throw(ye))}catch(xe){ve(xe)}},Te=ye=>ye.done?Oe(ye.value):Promise.resolve(ye.value).then(Me,Fe);Te((oe=oe.apply(fe,Ce)).next())});class Ue extends x.EventEmitter{constructor(Ce,oe){super(),ze(this,"url"),ze(this,"body"),ze(this,"fullContent",""),ze(this,"controller",null),ze(this,"buffer",""),this.url=Ce,this.body=oe}startStream(){return Se(this,null,function*(){this.controller=new AbortController;const{signal:Ce}=this.controller;try{const oe=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:Ce});if(!oe.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${oe.status}`);const Oe=oe.headers.get("content-type");if(!Oe)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(Oe.includes("application/json")){const Fe=yield oe.json();this.emit("error",Fe);return}if(!Oe.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const ve=oe.body.getReader(),Me=new TextDecoder("utf-8");for(;;){const{done:Fe,value:Te}=yield ve.read();if(Fe)break;const ye=Me.decode(Te,{stream:!0});this.buffer+=ye;const xe=this.buffer.split(`
`);this.buffer=xe.pop()||"";for(const Ee of xe)if(Ee.startsWith("data:")){const ke=Ee.slice(5).trim();if(ke==="[DONE]")break;try{const Ke=JSON.parse(ke);Ke.data&&this.handleData(Ke.data)}catch(Ke){this.buffer=Ee+`
`+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",Ke)}}}this.emit("done",this.fullContent)}catch(oe){oe.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",oe.message)}})}handleData(Ce){Ce.content&&(this.fullContent+=Ce.content,this.emit("data",{chunk:Ce,full:this.fullContent}))}cancelRequest(){var Ce;(Ce=this.controller)==null||Ce.abort()}}Mt.Z=Ue},27183:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Te}});var x=ae(59301),ct={flex_box_center:"flex_box_center___A3pzf",flex_space_between:"flex_space_between___JBoa5",flex_box_vertical_center:"flex_box_vertical_center___MJuIO",flex_box_center_end:"flex_box_center_end___OcjUA",flex_box_column:"flex_box_column___zSH4A",list:"list___KhJas",middle:"middle___IjlYi",row:"row___GGtIx",title:"title___o_xqf",size:"size___OVRoL",download:"download___ZLcIH",preview:"preview___gi0kI",annotation:"annotation___KVSwj"},Le=ae(92310),Je=ae.n(Le),ze=ae(52918),Se=ae(16750),Ue=ae(65862),fe=ae(74128),Ce=ae(38147),oe=ae(41867),Oe=ae(65582),ve=ae(6767),Me=(ye,xe,Ee)=>new Promise((ke,Ke)=>{var Qe=Ge=>{try{et(Ee.next(Ge))}catch(ut){Ke(ut)}},Re=Ge=>{try{et(Ee.throw(Ge))}catch(ut){Ke(ut)}},et=Ge=>Ge.done?ke(Ge.value):Promise.resolve(Ge.value).then(Qe,Re);et((Ee=Ee.apply(ye,xe)).next())});const Fe=({className:ye,style:xe,dataSource:Ee=[],authority:ke=!1,callback:Ke,showDimensions:Qe=!0,classroomList:Re})=>{var et;const[Ge,ut]=(0,x.useState)({content:"",type:""}),[at,ft]=(0,x.useState)({}),[bt,He]=(0,x.useState)(!1),[pt,Ne]=(0,x.useState)({title:"",visible:!1,src:"",snapshotData:{}}),je=(0,x.useRef)(),Ot=We=>Me(void 0,null,function*(){if(ft(We),We.file_type==="txt"){const _e=yield(0,Ce.ZP)(We.url,{method:"get",headers:{"Content-Type":"application/xml"}});je.current=_e}ut({type:We.file_type,content:fe.Z.API_SERVER+We.url})}),it=We=>{var _e;Ne({visible:!0,src:fe.Z.API_SERVER+We.url,id:We.id,title:We.title,snapshotData:(_e=We==null?void 0:We.subitem)==null?void 0:_e.settings})},ht=We=>Me(void 0,null,function*(){var _e;ut({type:We.file_type,content:fe.Z.API_SERVER+((_e=We==null?void 0:We.subitem)==null?void 0:_e.url)})}),Bt=()=>{Ke(),Ne({visible:!1})};return Ee!=null&&Ee.length?x.createElement(x.Fragment,null,x.createElement("div",{className:Je()(ct.list,ye),style:xe},Ee.map((We,_e)=>{var ot,Zt,zt;return x.createElement("div",{key:_e,className:ct.row},x.createElement("div",{className:ct.title,onClick:()=>Ot(We)},x.createElement("i",{className:"iconfont icon-fujian1"}),x.createElement("span",{title:We.title},We.title)),x.createElement("div",{className:ct.size},We.filesize),x.createElement("div",{className:ct.download,onClick:()=>{var tt,Nt;if((0,oe.Rm)()&&!((tt=Re.AssistantObject.normal)!=null&&tt.can_download)){ve.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}(0,Ue.Nd)("",`${fe.Z.API_SERVER}${(Nt=We.url)==null?void 0:Nt.replace("disposition=inline","")}`)}},x.createElement("i",{className:"iconfont icon-xiazai4"}),"\u4E0B\u8F7D"),!["other","download"].includes(We==null?void 0:We.file_type)&&x.createElement("div",{className:ct.preview,onClick:()=>Ot(We)},x.createElement("i",{className:"iconfont icon-yulan"}),"\u9884\u89C8"),["image"].includes(We==null?void 0:We.file_type)&&Qe&&(ke?x.createElement("div",{className:ct.annotation,onClick:()=>it(We)},x.createElement("i",{className:"iconfont icon-pizhu"}),(ot=We.subitem)!=null&&ot.id?"\u4FEE\u6539\u6279\u6CE8":"\u6279\u6CE8"):((Zt=We.subitem)==null?void 0:Zt.id)&&x.createElement("div",{className:ct.annotation,onClick:()=>ht(We)},x.createElement("i",{className:"iconfont icon-chakanlaoshipizhu1"}),"\u67E5\u770B\u8001\u5E08\u6279\u6CE8")),["image"].includes(We==null?void 0:We.file_type)&&((zt=We.subitem)==null?void 0:zt.id)&&x.createElement("div",{className:ct.download,style:{marginLeft:20},onClick:()=>{var tt,Nt;(0,Ue.Nd)("",`${fe.Z.API_SERVER}${(Nt=(tt=We==null?void 0:We.subitem)==null?void 0:tt.url)==null?void 0:Nt.replace("disposition=inline","")}`)}},x.createElement("i",{className:"iconfont icon-xiazai4"}),"\u4E0B\u8F7D\u6279\u6CE8\u6587\u4EF6"),["office"].includes(We==null?void 0:We.file_type)&&(0,oe.eB)()&&["xlsx","docx","pptx"].includes(We==null?void 0:We.file_sub)&&Qe&&x.createElement("div",{className:ct.annotation,onClick:()=>{He(!0),Ot(We)}},x.createElement("i",{className:"iconfont icon-pizhu"}),We.is_edit?"\u4FEE\u6539\u6279\u6CE8":"\u6279\u6CE8"),We.is_edit&&(0,oe.dE)()&&Qe&&x.createElement("div",{className:ct.annotation,onClick:()=>{Ot(We)}},x.createElement("i",{className:"iconfont icon-sousuo7"}),"\u67E5\u770B\u8001\u5E08\u6279\u6CE8"))})),x.createElement(ze.Z,{close:!0,data:Ge==null?void 0:Ge.content,type:Ge==null?void 0:Ge.type,hasMask:!0,disabledDownload:(0,oe.Rm)()&&!((et=Re.AssistantObject.normal)!=null&&et.can_download),editOffice:bt?"edit":"view",monacoEditor:{value:je.current,language:"txt",onChange:()=>{},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onImgDimensions:ke&&Qe&&Ge.type==="image"?()=>it(at):null,onClose:()=>{Ke(),He(!1),ut({content:"",type:""})}}),x.createElement(Se.Z,{onOk:Bt,onClose:()=>Ne({visible:!1}),data:pt,showFullTools:!0})):null};var Te=(0,Oe.connect)(({classroomList:ye})=>({classroomList:ye}))(Fe)},16750:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Oe}});var x=ae(59301),ct={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Le=ae(92310),Je=ae.n(Le),ze=ae(29787),Se=ae(2859),Ue=ae(38147),fe=ae(65862),Ce=(ve,Me,Fe)=>new Promise((Te,ye)=>{var xe=Ke=>{try{ke(Fe.next(Ke))}catch(Qe){ye(Qe)}},Ee=Ke=>{try{ke(Fe.throw(Ke))}catch(Qe){ye(Qe)}},ke=Ke=>Ke.done?Te(Ke.value):Promise.resolve(Ke.value).then(xe,Ee);ke((Fe=Fe.apply(ve,Me)).next())}),Oe=({data:ve,className:Me,fullWidth:Fe,style:Te={},onClose:ye,onOk:xe,showFullTools:Ee,noAssociationId:ke})=>{const Ke=(0,x.useRef)(null),Qe=(0,x.useRef)(null),Re=(0,x.useRef)(null),et=(0,x.useRef)(null),[Ge,ut]=(0,x.useState)(!1),[at,ft]=(0,x.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,x.useEffect)(()=>(Re.current||(Re.current=document.createElement("style"),document.head.appendChild(Re.current)),ve!=null&&ve.visible?(document.body.setAttribute("data-custom","y-hidden"),Re.current.innerHTML=" html { overflow-y: hidden; }",ve!=null&&ve.src&&bt()):(document.body.removeAttribute("data-custom"),Re.current&&(document.head.removeChild(Re.current),Re.current=null)),()=>{document.body.removeAttribute("data-custom"),Re.current&&(document.head.removeChild(Re.current),Re.current=null)}),[ve==null?void 0:ve.visible]);const bt=()=>Ce(void 0,null,function*(){ut(!0),ft("\u6B63\u5728\u52A0\u8F7D\u4E2D");const je=yield(0,fe.ZJ)(ve==null?void 0:ve.src);Ke.current.src="",Ke.current.src=je,Ke.current.onload=function(){Ne()},ut(!1),ft("")}),He=je=>Ce(void 0,null,function*(){ut(!0),ft("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ot=yield(0,Ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ve.title,file:je.dataUrl}});Ot!=null&&Ot.id&&!ke?(yield(0,Ue.ZP)(`/api/attachments/${ve.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ot==null?void 0:Ot.id,settings:JSON.stringify(je.state)}})).status===0&&xe():Ot!=null&&Ot.id&&xe(Ot),ut(!1),ft("")}),pt=()=>{const je=document.querySelector('a[href="https://markerjs.com/"]');je&&je.parentNode&&(je.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(it=>{const ht=document.querySelector(it.name);ht&&ht.setAttribute("title",it.title)})},Ne=()=>{Qe.current=new Se.hP(Ke.current),Qe.current.targetRoot=et.current,Qe.current.addEventListener("render",He),Qe.current.addEventListener("beforeclose",ye),Ee&&(Qe.current.availableMarkerTypes=Qe.current.ALL_MARKER_TYPES,Qe.current.uiStyleSettings.redoButtonVisible=!0,Qe.current.uiStyleSettings.notesButtonVisible=!0,Qe.current.uiStyleSettings.zoomButtonVisible=!0,Qe.current.uiStyleSettings.zoomOutButtonVisible=!0,Qe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Qe.current.uiStyleSettings,Qe.current.show(),ve!=null&&ve.snapshotData&&Qe.current.restoreState(ve.snapshotData),setTimeout(()=>{window.scrollTo(0,0),pt()},300)};return x.createElement(x.Fragment,null,(ve==null?void 0:ve.visible)&&x.createElement(ze.Z,{spinning:Ge,tip:at,style:{position:"absolute",width:"100vw"}},x.createElement("div",{ref:et,className:Je()(ct.imageDimensions,Me,Fe?ct.fullWidth:""),style:Te},x.createElement("img",{className:ct.img,ref:Ke}))))}},99298:function(Vn,Mt,ae){"use strict";var x=ae(59301),ct=ae(77019),Le=ae(5269),Je=ae(31691),ze=ae(7939),Se=ae(95097),Ue=ae(96408),fe=ae(48136),Ce=ae(59301);const oe=(0,x.forwardRef)(({callback:Oe,showSaveButton:ve,value:Me=""},Fe)=>{const Te=(0,x.useRef)(),ye=[{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 "}]}]}],xe=[{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}`}]}]}],Ee=Qe=>{Te.current.setValue(Te.current.getValue()+" "+Qe.value+" ")},ke=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ce.createElement(ct.Z,{className:Ue.Z.lists,gutter:[10,10]},ye.map((Qe,Re)=>Ce.createElement(Le.Z,{flex:"110px",className:Ue.Z.item},Ce.createElement("div",null,Ce.createElement(Se.Z,{value:`$$${Qe.value}$$`}),Qe.name),Ce.createElement("div",{className:Ue.Z.children},Qe.children.map((et,Ge)=>Ce.createElement("div",{key:Ge},Ce.createElement("h1",null,et.name),Ce.createElement(ct.Z,{gutter:[10,10]},et.data.map((ut,at)=>Ce.createElement(Le.Z,{key:at,onClick:()=>Ee(ut),className:Ue.Z.diamond},Ce.createElement(Se.Z,{value:"`$$"+ut.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ce.createElement(ct.Z,{className:Ue.Z.lists,gutter:[10,10]},xe.map((Qe,Re)=>Ce.createElement(Le.Z,{flex:"110px",className:Ue.Z.item},Ce.createElement("div",null,Ce.createElement(Se.Z,{value:"`$$"+Qe.value+"$$`"}),Qe.name),Ce.createElement("div",{className:Ue.Z.children},Qe.children.map((et,Ge)=>Ce.createElement("div",{key:Ge},et.name&&Ce.createElement("h1",null,et.name),Ce.createElement(ct.Z,{gutter:[10,10]},et.data.map((ut,at)=>Ce.createElement(Le.Z,{key:at,onClick:()=>Ee(ut),className:Ue.Z.diamond},Ce.createElement(Se.Z,{value:"`$$"+ut.value+"$$`"}))))))))))}],Ke=()=>{var Qe=document.createElement("div");Qe.innerHTML=Te.current.getValue();var Re=Qe.innerText;return Oe&&Oe(Re),Re};return(0,x.useImperativeHandle)(Fe,()=>({getData:Ke})),Ce.createElement("div",{className:Ue.Z.mathWrap},Ce.createElement(Je.default,{defaultActiveKey:"1",items:ke}),Ce.createElement("math-field",{locale:"zh_cn",className:Ue.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Te,style:{width:800,marginTop:30,fontSize:18}},Me||""),ve&&Ce.createElement("div",{className:Ue.Z.button},Ce.createElement(ze.ZP,{size:"large",onClick:Ke,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Mt.Z=oe},2524:function(Vn,Mt,ae){"use strict";var x=ae(59301),ct=ae(93314),Le=ae(7939),Je=Object.defineProperty,ze=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,oe=(Fe,Te,ye)=>Te in Fe?Je(Fe,Te,{enumerable:!0,configurable:!0,writable:!0,value:ye}):Fe[Te]=ye,Oe=(Fe,Te)=>{for(var ye in Te||(Te={}))fe.call(Te,ye)&&oe(Fe,ye,Te[ye]);if(Ue)for(var ye of Ue(Te))Ce.call(Te,ye)&&oe(Fe,ye,Te[ye]);return Fe},ve=(Fe,Te)=>ze(Fe,Se(Te));const Me=({img:Fe,buttonProps:Te={},styles:ye={},customText:xe,ButtonText:Ee,ButtonClick:ke,Buttonclass:Ke,ButtonTwo:Qe,imgStyles:Re,loading:et=!1,className:Ge=""})=>x.createElement("section",{className:`tc animated fadeIn ${Ge}`,style:Oe({color:"#999",margin:"100px auto",visibility:et?"hidden":"visible"},ye)},x.createElement("img",{src:Fe||ct,style:ve(Oe({},Re),{pointerEvents:"none",userSelect:"none"})}),x.createElement("p",{className:"mt20 font14"},xe||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),Ee&&x.createElement(Le.ZP,Oe({className:Ke,onClick:ke},Te),Ee),Qe&&Qe);Mt.Z=Me},52918:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Ke}});var x=ae(59301),ct={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Le=ae(7939),Je=ae(70557),ze=ae(50258),Se=ae(25399),Ue=ae(65862),fe=ae(87513),Ce=ae(2524),oe=ae(74128),Oe=ae(7310),ve=ae(59301),Me=Object.defineProperty,Fe=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,xe=(Qe,Re,et)=>Re in Qe?Me(Qe,Re,{enumerable:!0,configurable:!0,writable:!0,value:et}):Qe[Re]=et,Ee=(Qe,Re)=>{for(var et in Re||(Re={}))Te.call(Re,et)&&xe(Qe,et,Re[et]);if(Fe)for(var et of Fe(Re))ye.call(Re,et)&&xe(Qe,et,Re[et]);return Qe},ke=(Qe,Re,et)=>new Promise((Ge,ut)=>{var at=He=>{try{bt(et.next(He))}catch(pt){ut(pt)}},ft=He=>{try{bt(et.throw(He))}catch(pt){ut(pt)}},bt=He=>He.done?Ge(He.value):Promise.resolve(He.value).then(at,ft);bt((et=et.apply(Qe,Re)).next())}),Ke=({editOffice:Qe="view",data:Re,issaver:et,onSaver:Ge,theme:ut,type:at,filename:ft,monacoEditor:bt,className:He,style:pt,close:Ne,onClose:je,hasMask:Ot,disabledDownload:it,onImgDimensions:ht,showNodata:Bt,recordInfo:We})=>{const[_e,ot]=(0,x.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Zt,zt]=(0,x.useState)(""),[tt,Nt]=(0,x.useState)(),Ut=window.ENV==="build"?"/react/build":"",pn=location.host.startsWith("localhost")?oe.Z.PROXY_SERVER:oe.Z.API_SERVER,mn=10*(1024*1024),_t=(0,x.useRef)();Re!=null&&Re.startsWith("/api")&&at!=="txt"&&(Re=oe.Z.API_SERVER+Re);const Cn=ee=>ee.substring(ee.lastIndexOf("/")+1).split(".").pop();ft&&bt&&(bt.filename=ft),(0,x.useEffect)(()=>{var ee,se;const le=(se=(ee=document.cookie)==null?void 0:ee.replace(/\s/g,""))==null?void 0:se.split(";");le==null||le.map(Be=>{let $e=Be.split("=");$e[0]==="_educoder_session"&&zt($e[1])})},[]),(0,x.useEffect)(()=>{at==="office"&&(Re.indexOf("bigfilescdn.")>-1||Re.indexOf("bigfiles1")>-1?Nt({url:Re,fileType:Cn(Re),model:Re.indexOf("model=edit")?"edit":"view"}):de())},[at,Re]);function an(ee){return ke(this,null,function*(){ee.data.type==="pdfdata"&&(Ge(ee.data.data),window.removeEventListener("message",an,!1)),console.log("mess---:",ee.data)})}const de=()=>ke(void 0,null,function*(){console.log("data:",Re);let ee=Re;Re.startsWith("http")||(ee=location.origin+ee);let se=new URL(ee).pathname.split("/").pop();const le=yield(0,fe.gJ)({attachment_id:se});le.url=pn+le.url,Nt(le)}),pe=()=>{if(Re.startsWith("http")||Re.startsWith("blob:")){ie();return}(0,Ue.Sv)(ft||"educoder",Re,ft)},ie=()=>{We&&(0,Oe.fc)({id:We==null?void 0:We.id,watch_type:1,course_id:We==null?void 0:We.course_id}),(0,Ue.Nd)(ft||"educoder",decodeURIComponent(Re))};return ve.createElement("div",{style:Ee({},pt||{}),className:`${Ot&&ct.bgBlack} ${at?ct.wrp:"hide"}`},Ne&&ve.createElement("div",{className:ct.close,ref:_t},!!ht&&ve.createElement(Se.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>_t.current},ve.createElement("span",{onClick:()=>{je(),ht()}},ve.createElement("i",{className:"icon-yulanpizhu"}))),!it&&ve.createElement(Se.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>_t.current},ve.createElement("span",{onClick:ie},ve.createElement("i",{className:"icon-quxiaozhiding"}))),et&&ve.createElement(Se.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>_t.current},ve.createElement("span",{className:"",onClick:()=>{const ee=document.getElementById("pdfiframe");window.addEventListener("message",an,!1),setTimeout(()=>{ee.contentWindow.postMessage("getData","*")},300)}},ve.createElement("i",{className:"icon-baocun"}))),ve.createElement(Se.Z,{title:"\u5173\u95ED",getPopupContainer:()=>_t.current},ve.createElement("span",{className:"",onClick:()=>{je()}},ve.createElement("i",{className:"icon-guanbi1"})))),ve.createElement("div",{className:`${ct[He]} ${He} ${ct.monaco} ${at==="txt"?"show":"hide"}`},at==="txt"&&ve.createElement(ve.Fragment,null,ve.createElement(ze.ZP,Ee({},bt)))),at==="audio"&&ve.createElement("audio",{src:`${(Re==null?void 0:Re.indexOf("http://"))>-1||(Re==null?void 0:Re.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Re}`,autoPlay:!0}),at==="video"&&ve.createElement(ve.Fragment,null,(Re==null?void 0:Re.indexOf("http"))>-1?ve.createElement("video",{controls:!0,src:`${Re}`,autoPlay:!0}):ve.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Re}`,autoPlay:!0})),at==="office"&&tt&&ve.createElement("iframe",{src:`${Ut}/office.html?key=${tt.key}&url=${btoa(tt.url)}&callbackUrl=${pn+(tt.callbackUrl||"")}&fileType=${tt.fileType}&title=${tt.title||""}&model=${Qe}&officeServer=${oe.Z.ONLYOFFICE}&disabledDownload=${!!it}`}),at==="html"&&ve.createElement("iframe",{src:Re+"&disposition=inline"}),at==="pdf"&&ve.createElement("iframe",{id:"pdfiframe",src:`${Ut}/js/pdf/index.html?filename=${ft||"educoder.pdf"}&url=${encodeURIComponent(Re)}&disabledDownload=${!!it}&model=${Qe}`}),at==="image"&&ve.createElement("img",{src:`${(Re==null?void 0:Re.indexOf("http://"))>-1||(Re==null?void 0:Re.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Re}`}),(at==="other"||at==="download")&&ve.createElement(ve.Fragment,null,Bt?ve.createElement(Ce.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ve.createElement(Le.ZP,{icon:ve.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:pe,disabled:it},"\u4E0B\u8F7D")}):ve.createElement(Le.ZP,{type:"primary",size:"middle",onClick:pe,disabled:it},ve.createElement(Je.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),at==="flowChart"&&ve.createElement("div",{className:"embed"},ve.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Re||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},95097:function(Vn,Mt,ae){"use strict";ae.d(Mt,{z:function(){return bt},Z:function(){return He}});var x=ae(59301),ct=ae(48850),Le=ae(49142),Je=ae(64018),ze=ae(16471),Se=ae(74128),Ue=ae(65862),fe=ae(15342),Ce=ae(44104),oe=ae(7939),Oe=ae(1012),ve=ae(52918),Me=ae(59301),Te=({html:pt})=>{const Ne=(0,x.useRef)(null),je=(0,x.useRef)(null),Ot=`.markdown-body p {
margin: 0 0 16px 0 !important;
line-height: 28px;
white-space: pre-wrap;
}
ol,
ul,
li {
list-style-type: none
}
ol,
ul,
dl {
margin-bottom: 0px;
}
.markdown-body {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
color: #333;
overflow: hidden;
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
word-break: break-word;
font-size: 16px;
line-height: 1.6;
white-space: normal;
word-wrap: break-word;
position: relative;
}
.markdown-body ul>li {
list-style-type: disc;
}
.markdown-body ol>li {
list-style-type: decimal;
}
.markdown-body a {
background: transparent;
}
.markdown-body a:active,
.markdown-body a:hover {
outline: 0;
}
.markdown-body strong {
font-weight: bold;
}
.markdown-body h1 {
font-size: 2em;
margin: 0.67em 0;
}
.markdown-body img {
border: 0;
}
.markdown-body hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
.markdown-body pre {
overflow: auto;
}
.markdown-body code,
.markdown-body kbd,
.markdown-body pre {
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
font-size: 1em;
}
.markdown-body input {
color: inherit;
font: inherit;
margin: 0;
}
.markdown-body html input[disabled] {
cursor: default;
}
.markdown-body input {
line-height: normal;
}
.markdown-body input[type="checkbox"] {
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
.markdown-body table {
border-collapse: collapse;
border-spacing: 0;
}
.markdown-body td,
.markdown-body th {
padding: 0;
}
.markdown-body * {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body input {
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}
.markdown-body a {
color: #4183c4;
text-decoration: none;
}
.markdown-body a:hover,
.markdown-body a:active {
text-decoration: underline;
}
.markdown-body hr {
height: 0;
margin: 15px 0;
overflow: hidden;
background: transparent;
border: 0;
border-bottom: 1px solid #ddd;
}
.markdown-body hr:before {
display: table;
content: "";
}
.markdown-body hr:after {
display: table;
clear: both;
content: "";
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
margin-top: 15px;
margin-bottom: 15px;
line-height: 1.1;
}
.markdown-body h1 {
font-size: 30px;
}
.markdown-body h2 {
font-size: 21px;
}
.markdown-body h3 {
font-size: 16px;
}
.markdown-body h4 {
font-size: 14px;
}
.markdown-body h5 {
font-size: 12px;
}
.markdown-body h6 {
font-size: 11px;
}
.markdown-body blockquote {
margin: 0;
}
.markdown-body ul,
.markdown-body ol {
padding: 0;
margin-top: 0;
margin-bottom: 0;
}
ul.linenums,
ol.linenums {
padding: 16px 0 0 56px !important;
}
.markdown-body ul,
.markdown-body ol {
padding-left: 2em;
}
.markdown-body ol ol,
.markdown-body ul ol {
list-style-type: lower-roman;
}
.markdown-body ul ul ol,
.markdown-body ul ol ol,
.markdown-body ol ul ol,
.markdown-body ol ol ol {
list-style-type: lower-alpha;
}
.markdown-body dd {
margin-left: 0;
}
.markdown-body code {
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 12px;
}
.markdown-body pre {
margin-top: 0;
margin-bottom: 0;
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.markdown-body .octicon {
font: normal normal 16px octicons-anchor;
line-height: 1;
display: inline-block;
text-decoration: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.markdown-body .octicon-link:before {
content: '\f05c';
}
.markdown-body>*:first-child {
margin-top: 0 !important;
}
.markdown-body>*:last-child {
margin-bottom: 0 !important;
}
.markdown-body .anchor {
position: absolute;
top: 0;
left: 0;
display: block;
padding-right: 6px;
padding-left: 30px;
margin-left: -30px;
}
.markdown-body .anchor:focus {
outline: none;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
position: relative;
margin-top: 1em;
margin-bottom: 16px;
font-weight: bold;
line-height: 1.4;
}
.markdown-body h1 .octicon-link,
.markdown-body h2 .octicon-link,
.markdown-body h3 .octicon-link,
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
display: none;
color: #000;
vertical-align: middle;
}
.markdown-body h1:hover .anchor,
.markdown-body h2:hover .anchor,
.markdown-body h3:hover .anchor,
.markdown-body h4:hover .anchor,
.markdown-body h5:hover .anchor,
.markdown-body h6:hover .anchor {
padding-left: 8px;
margin-left: -30px;
text-decoration: none;
}
.markdown-body h1:hover .anchor .octicon-link,
.markdown-body h2:hover .anchor .octicon-link,
.markdown-body h3:hover .anchor .octicon-link,
.markdown-body h4:hover .anchor .octicon-link,
.markdown-body h5:hover .anchor .octicon-link,
.markdown-body h6:hover .anchor .octicon-link {
display: inline-block;
}
.markdown-body h1 {
padding-bottom: 0.3em;
font-size: 2.25em;
line-height: 1.2;
border-bottom: 1px solid #eee;
}
.markdown-body h1 .anchor {
line-height: 1;
}
.markdown-body h2 {
padding-bottom: 0.3em;
font-size: 1.75em;
line-height: 1.225;
border-bottom: 1px solid #eee;
}
.markdown-body h2 .anchor {
line-height: 1;
}
.markdown-body h3 {
font-size: 1.5em;
line-height: 1.43;
}
.markdown-body h3 .anchor {
line-height: 1.2;
}
.markdown-body h4 {
font-size: 1.25em;
}
.markdown-body h4 .anchor {
line-height: 1.2;
}
.markdown-body h5 {
font-size: 1em;
}
.markdown-body h5 .anchor {
line-height: 1.1;
}
.markdown-body h6 {
font-size: 1em;
color: #777;
}
.markdown-body h6 .anchor {
line-height: 1.1;
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}
.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ol,
.markdown-body ol ul {
margin-top: 0;
margin-bottom: 0;
}
.markdown-body li>p {
margin-top: 16px;
}
.markdown-body dl {
padding: 0;
}
.markdown-body dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: bold;
}
.markdown-body dl dd {
padding: 0 16px;
margin-bottom: 16px;
}
.markdown-body blockquote {
padding: 0 15px;
color: #777;
border-left: 4px solid #ddd;
}
.markdown-body blockquote> :first-child {
margin-top: 0;
}
.markdown-body blockquote> :last-child {
margin-bottom: 0;
}
.markdown-body table {
display: block;
width: 100%;
overflow: auto;
word-break: normal;
word-break: keep-all;
}
.markdown-body table th {
font-weight: bold;
text-align: revert;
}
.markdown-body table th,
.markdown-body table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
.markdown-body table tr {
background-color: #fff;
border-top: 1px solid #ccc;
}
.markdown-body table tr:nth-child(2n) {
background-color: #f8f8f8;
}
.markdown-body img {
max-width: 100%;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body code {
padding: 0;
padding-top: 0.2em;
padding-bottom: 0.2em;
margin: 0;
font-size: 85%;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 3px;
}
.markdown-body code:has(.katex) {
background-color: transparent;
}
.markdown-body code:before,
.markdown-body code:after {
letter-spacing: -0.2em;
content: "\\00a0";
}
.markdown-body pre>code {
padding: 0;
margin: 0;
font-size: 100%;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
}
.markdown-body .highlight {
margin-bottom: 16px;
}
.markdown-body .highlight pre,
.markdown-body pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
border-radius: 3px;
}
.markdown-body .highlight pre {
margin-bottom: 0;
word-break: normal;
}
.markdown-body pre {
word-wrap: normal;
}
.markdown-body pre code {
display: inline;
max-width: initial;
padding: 0;
margin: 0;
overflow: initial;
line-height: inherit;
word-wrap: normal;
background-color: transparent;
border: 0;
}
.markdown-body pre code:before,
.markdown-body pre code:after {
content: normal;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font-size: 11px;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .pl-c {
color: #969896;
}
.markdown-body .pl-c1,
.markdown-body .pl-mdh,
.markdown-body .pl-mm,
.markdown-body .pl-mp,
.markdown-body .pl-mr,
.markdown-body .pl-s1 .pl-v,
.markdown-body .pl-s3,
.markdown-body .pl-sc,
.markdown-body .pl-sv {
color: #0086b3;
}
.markdown-body .pl-e,
.markdown-body .pl-en {
color: #795da3;
}
.markdown-body .pl-s1 .pl-s2,
.markdown-body .pl-smi,
.markdown-body .pl-smp,
.markdown-body .pl-stj,
.markdown-body .pl-vo,
.markdown-body .pl-vpf {
color: #333;
}
.markdown-body .pl-ent {
color: #63a35c;
}
.markdown-body .pl-k,
.markdown-body .pl-s,
.markdown-body .pl-st {
color: #a71d5d;
}
.markdown-body .pl-pds,
.markdown-body .pl-s1,
.markdown-body .pl-s1 .pl-pse .pl-s2,
.markdown-body .pl-sr,
.markdown-body .pl-sr .pl-cce,
.markdown-body .pl-sr .pl-sra,
.markdown-body .pl-sr .pl-sre,
.markdown-body .pl-src {
color: #df5000;
}
.markdown-body .pl-mo,
.markdown-body .pl-v {
color: #1d3e81;
}
.markdown-body .pl-id {
color: #b52a1d;
}
.markdown-body .pl-ii {
background-color: #b52a1d;
color: #f8f8f8;
}
.markdown-body .pl-sr .pl-cce {
color: #63a35c;
font-weight: bold;
}
.markdown-body .pl-ml {
color: #693a17;
}
.markdown-body .pl-mh,
.markdown-body .pl-mh .pl-en,
.markdown-body .pl-ms {
color: #1d3e81;
font-weight: bold;
}
.markdown-body .pl-mq {
color: #008080;
}
.markdown-body .pl-mi {
color: #333;
font-style: italic;
}
.markdown-body .pl-mb {
color: #333;
font-weight: bold;
}
.markdown-body .pl-md,
.markdown-body .pl-mdhf {
background-color: #ffecec;
color: #bd2c00;
}
.markdown-body .pl-mdht,
.markdown-body .pl-mi1 {
background-color: #eaffea;
color: #55a532;
}
.markdown-body .pl-mdr {
color: #795da3;
font-weight: bold;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .task-list-item {
list-style-type: none;
}
.markdown-body .task-list-item+.task-list-item {
margin-top: 3px;
}
.markdown-body .task-list-item input {
float: left;
margin: 0.3em 0 0.25em -1.6em;
vertical-align: middle;
}
.markdown-body :checked+.radio-label {
z-index: 1;
position: relative;
border-color: #4183c4;
}
/*! Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
.pln {
color: #000
}
/* plain text */
@media screen {
.str {
color: #080
}
/* string content */
.kwd {
color: #008
}
/* a keyword */
.com {
color: #800
}
/* a comment */
.typ {
color: #606
}
/* a type name */
.lit {
color: #066
}
/* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
.pun,
.opn,
.clo {
color: #660
}
.tag {
color: #008
}
/* a markup tag name */
.atn {
color: #606
}
/* a markup attribute name */
.atv {
color: #080
}
/* a markup attribute value */
.dec,
.var {
color: #606
}
/* a declaration; a variable name */
.fun {
color: red
}
/* a function name */
}
/* Use higher contrast and text-weight for printable form. */
@media print,
projection {
.str {
color: #060
}
.kwd {
color: #006;
font-weight: bold
}
.com {
color: #600;
font-style: italic
}
.typ {
color: #404;
font-weight: bold
}
.lit {
color: #044
}
.pun,
.opn,
.clo {
color: #440
}
.tag {
color: #006;
font-weight: bold
}
.atn {
color: #404
}
.atv {
color: #060
}
}
/* Put a border around prettyprinted code snippets. */
pre.prettyprint {
padding: 2px;
/* border: 1px solid #888 */
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin-top: 0;
margin-bottom: 0
}
/* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 {
list-style-type: none
}
/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 {
background: #eee
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}`;return(0,x.useEffect)(()=>{const it=Ne.current.attachShadow({mode:"open"});je.current=document.createElement("div"),je.current.className="markdown-body",je.current.innerHTML=pt,it.appendChild(je.current);const ht=document.createElement("style");return ht.textContent=Ot,it.appendChild(ht),()=>{it.innerHTML=""}},[]),(0,x.useEffect)(()=>{je.current&&(je.current.innerHTML=pt)},[pt]),Me.createElement("div",{ref:Ne})};function ye(pt){const Ne=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],je=new RegExp(`\\b(${Ne.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return pt.replace(je,"").trim()}var xe={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},Ee=Object.defineProperty,ke=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,Re=(pt,Ne,je)=>Ne in pt?Ee(pt,Ne,{enumerable:!0,configurable:!0,writable:!0,value:je}):pt[Ne]=je,et=(pt,Ne)=>{for(var je in Ne||(Ne={}))Ke.call(Ne,je)&&Re(pt,je,Ne[je]);if(ke)for(var je of ke(Ne))Qe.call(Ne,je)&&Re(pt,je,Ne[je]);return pt};const Ge="@\u2581\u2581@",ut="@\u2581@",at=/<pre[^>]*>/g;function ft(pt){let Ne=document.createElement("div");return Ne.innerHTML=pt,Ne.childNodes.length===0?"":Ne.childNodes[0].nodeValue}const bt=(pt,Ne)=>{pt=pt||"";const je=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ot=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,it=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ht=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ne?pt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(je,(Bt,We,_e,ot,Zt,zt,tt)=>{const Nt=We||ot||zt,Ut=_e||Zt||tt||"?";return Se.Z.API_SERVER+"/api/attachments/"+Nt+Ut+"&t="+(0,Ue.Jn)(Nt,Date.now())+(Bt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(pt=pt.replace(ht,(Bt,We,_e,ot,Zt,zt,tt)=>{const Nt=We||ot||zt,Ut=_e||Zt||tt||"?";return Se.Z.API_SERVER+"/attachments/download/"+Nt+Ut+"&t="+(0,Ue.Jn)(Nt,Date.now())+(Bt.indexOf(")")>-1?")":"&")}).replace(je,(Bt,We,_e,ot,Zt,zt,tt)=>{const Nt=We||ot||zt,Ut=_e||Zt||tt||"?";return Se.Z.API_SERVER+"/api/attachments/"+Nt+Ut+"&t="+(0,Ue.Jn)(Nt,Date.now())+(Bt.indexOf(")")>-1?")":"&")}).replace(Ot,(Bt,We,_e,ot,Zt)=>{const zt=We||ot,tt=_e||Zt||"";return'"'+Se.Z.API_SERVER+"/api/attachments/"+zt+tt+zt+tt+"&t="+(0,Ue.Jn)(zt,Date.now())}).replace(it,(Bt,We,_e,ot,Zt)=>{const zt=We||ot,tt=_e||Zt||"";return"("+Se.Z.API_SERVER+"/files/uploads/"+zt+tt+zt+tt+"&t="+(0,Ue.Jn)(zt,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),pt)};var He=({value:pt="",edit:Ne=!1,className:je,showTextOnly:Ot,showLines:it,style:ht={},stylesPrev:Bt={},highlightKeywords:We,showProgramFill:_e,isProgramFill:ot,disabledFill:Zt=!1,programFillValue:zt,openEditor:tt=()=>{},onFillChange:Nt=kt=>{},onFillBlur:Ut=()=>{},onFillFocus:pn=()=>{}})=>{let kt=ye(String(pt||""));const mn=(0,x.useRef)(),_t=(0,x.useRef)(),[Cn,an]=(0,x.useState)(""),[de,pe]=(0,x.useState)("office"),[ie,ee]=(0,x.useState)([]),se=(0,x.useRef)("a"+(0,Oe.Z)()),le={},Be=tn=>/<style[\s\S]*?>/i.test(tn||""),$e=(tn,Qn,En)=>{const Rt=document.createElement(tn===ut?"input":"textarea");Rt.style.width="100%",Rt.style.height=tn===ut?"40px":"151px",Rt.rows=5,Rt.spellcheck=!1,Rt.name="edu-program-fill",Rt.placeholder="\u8BF7\u8F93\u5165",Rt.dataset.id=Qn;const un=Object.keys(le).length;return le[un]=Rt,`<span class="edu-program-fill-wrap ${tn===ut?"":"show"}" style="width:${tn===ut?"600px":"100%"}" title=${En||""}><span>${Rt.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function st(tn){return tn=tn.replace(/!\[.*?\]\(.*?\)/g,""),tn=tn.replace(/\[.*?\]\(.*?\)/g,""),tn=tn.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),tn=tn.replace(/<embed.*?>/g,""),tn=tn.replace(/<img.*?>/g,""),tn=tn.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),tn=tn.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),tn=tn.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),tn=tn.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),tn}const gt=tn=>!Ot&&Be(kt)?tn:tn.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Qn,En){let Rt=En.replace(/(\n|\r)/g,"").split("}"),un=[];return Rt.map(Dn=>{Dn!=""&&un.push(`.${se.current} ${Dn}`)}),`<style>${un.join("}")}</style>`}),mt=(0,x.useMemo)(()=>{try{const Rt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,un=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Dn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Wn=/\(\/attachments\/download\//g;kt=kt.replace(Wn,"("+Se.Z.API_SERVER+"/attachments/download/").replace(Rt,"("+Se.Z.API_SERVER+"/api/attachments/").replace(un,'"'+Se.Z.API_SERVER+"/api/attachments/").replace(Dn,'"'+Se.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),mn.current.style.display="none"}catch(Rt){}if(_e){let Rt=-1;return kt=kt.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(un,Dn,Wn){var It;return++Rt,$e(un,Rt,(It=zt==null?void 0:zt[Rt])==null?void 0:It.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${gt(kt||"")}</pre>`}let tn=gt(kt);tn=(0,Le.ZP)(tn);const Qn=(0,Le.ez)();kt.match(/\[TOC\]/)&&(tn=tn.replace("<p>[TOC]</p>",(0,Le.Qv)()),(0,Le.Iy)()),tn=tn.replace(/(__special_katext_id_\d+__)/g,(Rt,un)=>{const{type:Dn,expression:Wn}=Qn[un];return(0,fe.renderToString)(ft(Wn)||"",{displayMode:Dn==="block",throwOnError:!1,output:"html"})}),tn=tn.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Le.AL)();const En=document.createElement("div");if(En.innerHTML=tn,Ot)return En.innerText;if(We){const Rt=We.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Ct(En,Rt),En.innerHTML}return setTimeout(()=>Wt(),500),En.innerHTML},[kt,We]);(0,x.useEffect)(()=>{lt.current&&lt.current.querySelectorAll(["input","textarea"]).forEach(Qn=>{Qn.oninput=Et,Qn.onblur=Lt,Qn.onfocus=jt})},[ie]),(0,x.useEffect)(()=>{var tn,Qn,En,Rt,un;if(zt!=null&&zt.length)try{const Dn=lt.current.querySelectorAll(".edu-program-fill-score"),Wn=lt.current.querySelectorAll('[name="edu-program-fill"]');for(const[It,Gt]of Wn.entries())Gt.value=((tn=zt==null?void 0:zt[It])==null?void 0:tn.value)||"",((Qn=zt==null?void 0:zt[It])==null?void 0:Qn.type)==="warning"?Gt.className="program-fill-warning":((En=zt==null?void 0:zt[It])==null?void 0:En.type)==="success"?Gt.className="program-fill-success":Gt.className="";for(const[It,Gt]of Dn.entries())Gt.innerHTML=(Rt=zt==null?void 0:zt[It])!=null&&Rt.score?`${(un=zt==null?void 0:zt[It])==null?void 0:un.score}\u5206`:"";ee(zt)}catch(Dn){console.log(Dn,"error")}},[zt]);const Et=tn=>{ie[tn.target.dataset.id]=ie[tn.target.dataset.id]||{},ie[tn.target.dataset.id].value=tn.target.value,ee([...ie]),Nt(ie,tn.target.dataset.id)},Lt=tn=>{ie[tn.target.dataset.id]=ie[tn.target.dataset.id]||{},ie[tn.target.dataset.id].value=tn.target.value,ee([...ie]),Ut(ie,tn.target.dataset.id)},jt=tn=>{ie[tn.target.dataset.id]=ie[tn.target.dataset.id]||{},ie[tn.target.dataset.id].value=tn.target.value,ee([...ie]),pn(ie,tn.target.dataset.id)};function Ct(tn,Qn){return tn.childNodes.forEach(En=>{var Rt;if(En.childNodes.length>0)Ct(En,Qn);else if(En.nodeName!=="IMG")if(En.innerHTML)En.innerHTML=(Rt=En.innerHTML)==null?void 0:Rt.replace(new RegExp(Qn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const un=document.createElement("span");un.innerHTML=En.textContent.replace(new RegExp(Qn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),En.replaceWith(un)}})}const lt=(0,x.useRef)();Le.jb.WebkitLineClamp=it,it&&(ht=et(et({},ht),Le.jb));function $t(tn){let Qn=tn.target;if(Qn.tagName.toUpperCase()==="A"){let En=Qn.getAttribute("href");if(En.indexOf("office")>-1)tn.preventDefault(),an(En),pe("office");else if(En.indexOf("application/pdf")>-1)tn.preventDefault(),an(En),pe("pdf");else if(En.indexOf("text/html")>-1)tn.preventDefault(),an(En),pe("html");else if(En.startsWith("#")){tn.preventDefault();let Rt=document.getElementById(En.replace("#",""));Rt&&Rt.scrollIntoView(!0)}}}const Wt=()=>{var tn;const Qn=(tn=lt.current)==null?void 0:tn.querySelectorAll("video");Qn==null||Qn.forEach(En=>{if(En.oncontextmenu=()=>!1,En.src.indexOf(".m3u8")>-1&&!En.canPlayType("application/vnd.apple.mpegurl")){if(ze.ZP.isSupported()){var Rt=new ze.ZP;Rt.loadSource(En.src),Rt.attachMedia(En)}}})};(0,x.useEffect)(()=>{if(lt.current&&mt&&mt.match(at)&&window.PR.prettyPrint(),lt.current)return lt.current.addEventListener("click",$t),()=>{var tn;(tn=lt.current)==null||tn.removeEventListener("click",$t),(0,Le.AL)(),(0,Le.Iy)()}},[mt,lt.current,$t]);const wn=tn=>{tn.target.nodeName==="IMG"&&tn.target.className.indexOf("draw-flowchart")>-1?(mn.current.style.zIndex=1,mn.current.style.display="flex",mn.current.style.width=tn.target.clientWidth+"px",mn.current.style.height=tn.target.clientHeight+"px",mn.current.style.top=tn.target.offsetTop+"px",mn.current.style.left=tn.target.offsetLeft+"px",tn.target.id&&(_t.current=tn.target.id)):mn.current.style.display="none"},ln=()=>{mn.current.style.display="none"};return(0,x.useEffect)(()=>{var tn;const Qn=En=>{En.preventDefault(),En.clipboardData.setData("text",window.getSelection().toString())};return(tn=lt.current)==null||tn.addEventListener("copy",Qn),()=>{var En;(En=lt.current)==null||En.removeEventListener("copy",Qn)}},[lt.current]),x.createElement("div",{style:{position:"relative"},onMouseLeave:ln},Ot&&x.createElement("div",{ref:lt,className:`${xe.mdBody} `},mt),!Ot&&!Be(mt)&&x.createElement("div",{ref:lt,style:et({},ht),onMouseOver:wn,className:`${je||""} ${Zt?"disabled-fill":""} markdown-body ${xe.mdBody} ${se.current}`,dangerouslySetInnerHTML:{__html:mt}}),!Ot&&Be(mt)&&x.createElement(Te,{html:mt}),x.createElement("div",{ref:mn,className:`${xe.button} ${Ne?"":xe.previewFlowChart}`},x.createElement(Ce.Z,null,x.createElement(oe.ZP,{onClick:()=>{Ne?tt(_t.current):(an(_t.current),pe("flowChart"))}},Ne?"\u7F16\u8F91":"\u9884\u89C8"))),x.createElement(ve.Z,{close:!0,data:Cn,type:Cn!=null&&Cn.length?de:"",style:et({},Bt),onClose:()=>an("")}))}},27185:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return pt}});var x=ae(59301),ct=ae(65582),Le=ae(62957),Je=ae(28284),ze=ae(6767),Se=ae(29787),Ue=ae(18287),fe=ae(77019),Ce=ae(5269),oe=ae(25399),Oe=ae(37568),ve={currentPrimary:"currentPrimary___NPWiR",currentDelete:"currentDelete___UEfhf",DirectoryTree:"DirectoryTree___xPxCY",EditDom:"EditDom___seNxC"},Me=ae(61527),Fe=ae(89540),Te=ae(2524),ye=ae(82636),xe=Object.defineProperty,Ee=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,et=(Ne,je,Ot)=>je in Ne?xe(Ne,je,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):Ne[je]=Ot,Ge=(Ne,je)=>{for(var Ot in je||(je={}))Qe.call(je,Ot)&&et(Ne,Ot,je[Ot]);if(Ke)for(var Ot of Ke(je))Re.call(je,Ot)&&et(Ne,Ot,je[Ot]);return Ne},ut=(Ne,je)=>Ee(Ne,ke(je)),at=(Ne,je)=>{var Ot={};for(var it in Ne)Qe.call(Ne,it)&&je.indexOf(it)<0&&(Ot[it]=Ne[it]);if(Ne!=null&&Ke)for(var it of Ke(Ne))je.indexOf(it)<0&&Re.call(Ne,it)&&(Ot[it]=Ne[it]);return Ot},ft=(Ne,je,Ot)=>new Promise((it,ht)=>{var Bt=ot=>{try{_e(Ot.next(ot))}catch(Zt){ht(Zt)}},We=ot=>{try{_e(Ot.throw(ot))}catch(Zt){ht(Zt)}},_e=ot=>ot.done?it(ot.value):Promise.resolve(ot.value).then(Bt,We);_e((Ot=Ot.apply(Ne,je)).next())});const bt=(Ne=[])=>Ne==null?void 0:Ne.map(je=>ut(Ge({},je),{title:(je==null?void 0:je.value)||"",key:je==null?void 0:je.id,isLeaf:!0})),He=Ne=>{var je=Ne,{user:Ot,children:it,isShowComponent:ht=!0,ModalProps:Bt={},onDataSelect:We}=je,_e=at(je,["user","children","isShowComponent","ModalProps","onDataSelect"]);const[ot,Zt]=Le.default.useModal(),[zt]=Je.default.useForm(),[tt,Nt]=(0,x.useState)([]),[Ut,pn]=(0,x.useState)(!1),[kt,mn]=(0,x.useState)(!1),[,_t,Cn,an]=(0,Me.U)(Fe.qE,{page:1,limit:9999}),[,,de]=(0,Me.U)(Fe.V8,{}),[,,pe]=(0,Me.U)(Fe.B$,{}),[,,ie]=(0,Me.U)(Fe.DH,{}),[,,ee]=(0,Me.U)(Fe.bJ,{}),se=()=>{pn(!1),zt.resetFields(),mn(!1)},le=$e=>ft(void 0,null,function*(){const{node:st,dragNode:gt,event:mt}=$e,Et=$e.node.pos.split("-"),Lt=$e.dropPosition-Number(Et[Et.length-1]);if(Lt==0){ze.ZP.warning("\u65E0\u6CD5\u79FB\u52A8\u5230\u5185\u90E8\u4F4D\u7F6E");return}if(Lt==1&&(gt==null?void 0:gt.item_index)==(st==null?void 0:st.item_index)+1){ze.ZP.warning("\u672A\u79FB\u52A8\u4F4D\u7F6E");return}const jt=yield ee({id:gt==null?void 0:gt.key,position:Lt==-1?1:(gt==null?void 0:gt.item_index)>(st==null?void 0:st.item_index)?(st==null?void 0:st.item_index)+1:st==null?void 0:st.item_index});(jt==null?void 0:jt.status)===0&&(ze.ZP.success("\u79FB\u52A8\u6210\u529F"),Cn({},!0))}),Be=$e=>ft(void 0,null,function*(){let st={};kt?st=yield pe(Ge({},$e)):st=yield ie(Ge({},$e)),(st==null?void 0:st.status)==0&&(ze.ZP.success((st==null?void 0:st.message)||(kt?"\u6DFB\u52A0\u6210\u529F":"\u66F4\u65B0\u6210\u529F")),Cn({},!0),se())});return(0,x.useEffect)(()=>{Bt!=null&&Bt.open&&Cn({},!0)},[Bt==null?void 0:Bt.open]),(0,x.useEffect)(()=>{var $e;Nt(bt(($e=an==null?void 0:an.data)==null?void 0:$e.list))},[an]),ht?x.createElement(x.Fragment,null,Zt,it,x.createElement(Le.default,Ge({},Ge({title:"\u5E38\u7528\u8BC4\u8BED",width:640,centered:!0,footer:null,bodyStyle:{padding:"10px 5px 25px"}},Bt)),x.createElement(Se.Z,{spinning:_t},(tt==null?void 0:tt.length)>0?x.createElement(x.Fragment,null,x.createElement(Ue.default.DirectoryTree,{height:500,className:ve.DirectoryTree,multiple:!0,draggable:{icon:!1},defaultExpandAll:!0,switcherIcon:!1,showIcon:!1,onSelect:We,treeData:tt,onDrop:le,titleRender:$e=>x.createElement(x.Fragment,null,x.createElement("span",{className:"multi_ellipsis1",style:{flex:1,marginRight:"32px"}},$e==null?void 0:$e.title),x.createElement("div",{className:`${ve.EditDom}`},x.createElement(fe.Z,{wrap:!1,align:"middle",gutter:16},x.createElement(Ce.Z,null,x.createElement(oe.Z,{title:"\u957F\u6309\u53EF\u8FDB\u884C\u62D6\u62FD\u6392\u5E8F"},x.createElement("i",{className:`iconfont icon-tuodong1 font12 ${ve.currentPrimary}`}))),x.createElement(Ce.Z,null,x.createElement(oe.Z,{title:"\u7F16\u8F91"},x.createElement("i",{className:`iconfont icon-bianji11 font12 ${ve.currentPrimary}`,onClick:st=>{st.stopPropagation(),zt.setFieldsValue(Ge({},$e)),pn(!0)}}))),x.createElement(Ce.Z,null,x.createElement(oe.Z,{title:"\u5220\u9664"},x.createElement("i",{className:`iconfont icon-shanchu14 font12 ${ve.currentDelete}`,onClick:st=>{st.stopPropagation(),ot.confirm({icon:null,title:"\u5220\u9664\u5E38\u7528\u8BC4\u8BED",centered:!0,content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u5E38\u7528\u8BC4\u8BED\u5417\uFF1F",onOk:()=>ft(void 0,null,function*(){const gt=yield de({id:$e==null?void 0:$e.key});(gt==null?void 0:gt.status)==0&&(ze.ZP.success((gt==null?void 0:gt.message)||"\u5220\u9664\u6210\u529F"),Cn({},!0))})})}}))))))}),x.createElement(ye.op,{className:"ml20 mt20",icon:x.createElement("i",{className:"iconfont icon-xiaojiahao"}),style:{borderRadius:"4px"},onClick:()=>{mn(!0),pn(!0)}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED")):x.createElement(Te.Z,{styles:{margin:"30px auto"},customText:x.createElement("span",null,"\u6682\u65E0\u5E38\u7528\u8BC4\u8BED\uFF0C\u4F60\u53EF\u4EE5",x.createElement("a",{onClick:()=>{mn(!0),pn(!0)}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED"))}))),x.createElement(Le.default,{title:kt?"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED":"\u7F16\u8F91\u5E38\u7528\u8BC4\u8BED",open:Ut,okText:kt?"\u6DFB\u52A0":"\u786E\u5B9A",onCancel:()=>{se()},onOk:()=>{zt.submit()}},x.createElement(Je.default,{form:zt,onFinish:Be},kt&&x.createElement("span",{className:"font14",style:{color:"#191919"}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED\uFF0C\u53EF\u4EE5\u5E2E\u52A9\u4F60\u63D0\u9AD8\u8BC4\u9605\u4F5C\u4E1A\u7684\u6548\u7387"),x.createElement(Je.default.Item,{hidden:!0,name:"id"}),x.createElement(Je.default.Item,{className:"mt10",name:"value"},x.createElement(Oe.default.TextArea,{placeholder:"\u8F93\u5165\u5E38\u7528\u8BC4\u8BED\u3002\u4F8B\u5982\uFF1A\u4F60\u7684\u7F16\u7A0B\u4F5C\u4E1A\u6574\u4F53\u8868\u73B0\u826F\u597D\uFF0C\u4F46\u4ECD\u6709\u4E00\u4E9B\u5C0F\u7684\u6539\u8FDB\u7A7A\u95F4\u3002",autoSize:{minRows:8,maxRows:9},maxLength:100,showCount:!0}))))):null};var pt=(0,ct.connect)(({loading:Ne,user:je})=>({user:je,loading:Ne.effects}))(He)},30214:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Je}});var x=ae(59301),ct=ae(77254),Le=ae(75786),Je=()=>{const[ze,Se]=(0,x.useState)(""),[Ue,fe]=(0,x.useState)(0);let[Ce,oe]=(0,x.useState)(),[Oe,ve]=(0,x.useState)();const[Me,Fe]=(0,x.useState)(!1),Te=(0,x.useRef)("");(0,x.useEffect)(()=>ct.Z.subscribe("preview-image",at=>{Se(at),console.log(et.current)}),[]),(0,x.useEffect)(()=>(document.addEventListener("keydown",ye),()=>{document.removeEventListener("keydown",ye)}),[]),(0,x.useEffect)(()=>{Te.current=ze},[ze]);function ye(ut){console.log("e====",ut),ut.keyCode==27&&Te.current&&xe()}function xe(){document.body.style.overflow="auto",oe(void 0),ve(void 0),fe(0),Se("")}function Ee(){fe(Ue+90)}function ke(){Ce=et.current.width*1.1,Oe=et.current.height*1.1,ve(Oe),oe(Ce)}function Ke(){Ce=et.current.width/1.1,Oe=et.current.height/1.1,ve(Oe),oe(Ce)}const Qe=(0,x.useRef)(),Re=(0,x.useRef)(),et=(0,x.useRef)(),Ge=ut=>{(ut.nativeEvent.target===Qe.current||ut.nativeEvent.target===Re.current)&&xe()};return x.createElement(x.Fragment,null,ze?x.createElement("div",null,x.createElement("div",{className:"preview-wrp-group",ref:Re},x.createElement(Le.Z,{className:"image-preview",src:ze,style:{display:"none"},preview:{visible:!0,src:ze,onVisibleChange:ut=>{Se("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},85533:function(Vn,Mt,ae){"use strict";ae.d(Mt,{h:function(){return Qe}});var x=ae(59301),ct=ae(82326),Le=ae(28284),Je=ae(7939),ze=ae(89780),Se=ae.n(ze),Ue=ae(45559),fe=ae(42313),Ce=Object.defineProperty,oe=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,Te=(Re,et,Ge)=>et in Re?Ce(Re,et,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Re[et]=Ge,ye=(Re,et)=>{for(var Ge in et||(et={}))Me.call(et,Ge)&&Te(Re,Ge,et[Ge]);if(ve)for(var Ge of ve(et))Fe.call(et,Ge)&&Te(Re,Ge,et[Ge]);return Re},xe=(Re,et)=>oe(Re,Oe(et));const Ee=ct.default.Option,ke={labelCol:{span:4},wrapperCol:{span:20}},Ke={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Mt.Z=({callback:Re,onCancel:et})=>{const[Ge,ut]=(0,x.useState)("python");function at(bt){ut(Ke[bt][1])}function ft(bt){Re(bt)}return x.createElement(Le.default,xe(ye({},ke),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ft,style:{width:500}}),x.createElement(Le.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},x.createElement(ct.default,{getPopupContainer:bt=>bt.parentNode,onChange:at},Object.keys(Ke).map(bt=>x.createElement(Ee,{key:bt,value:bt},Ke[bt][0])))),x.createElement(Le.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},x.createElement(Qe,{mode:Ge})),x.createElement("div",{className:"flex-container flex-end"},x.createElement(Je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),x.createElement(Je.ZP,{type:"ghost",onClick:et},"\u53D6\u6D88")))};function Qe({value:Re,onChange:et,mode:Ge,options:ut={}}){const at=(0,x.useRef)(),[ft,bt]=(0,x.useState)();return(0,x.useEffect)(()=>{if(ft){let He=function(pt){const Ne=pt.getValue();et&&et(Ne)};return ft.on("change",He),()=>{ft.off("change",He)}}},[ft,et]),(0,x.useEffect)(()=>{ft&&ft.setOption("mode",Ge)},[ft,Ge]),(0,x.useEffect)(()=>{ft&&(Re!==ft.getValue()||Re==="")&&setTimeout(()=>{ft.setValue(Re||"")},300)},[ft,Re]),(0,x.useEffect)(()=>{if(at.current&&!ft){const He=Se().fromTextArea(at.current,ye({mode:Ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ut));bt(He)}},[at.current,ft]),x.createElement("div",{className:"my-codemirror-container"},x.createElement("textarea",{ref:at}))}},25374:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return pi}});var x=ae(59301),ct=ae(65582),Le=ae(89780),Je=ae.n(Le),ze=ae(76374),Se=ae(45559),Ue=ae(6313),fe=ae(25717),Ce=ae(99498),oe=ae(25419),Oe=ae(67549),ve=ae(95097),Me=({value:Lr="",className:tr,showTextOnly:Xn,showLines:mr,style:Qr={}})=>{const ii=(0,x.useMemo)(()=>"",[Lr]);return x.createElement(x.Fragment,null,x.createElement("div",{dangerouslySetInnerHTML:{__html:ii}}))},Fe=Object.defineProperty,Te=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,Ke=(Lr,tr,Xn)=>tr in Lr?Fe(Lr,tr,{enumerable:!0,configurable:!0,writable:!0,value:Xn}):Lr[tr]=Xn,Qe=(Lr,tr)=>{for(var Xn in tr||(tr={}))Ee.call(tr,Xn)&&Ke(Lr,Xn,tr[Xn]);if(xe)for(var Xn of xe(tr))ke.call(tr,Xn)&&Ke(Lr,Xn,tr[Xn]);return Lr},Re=(Lr,tr)=>Te(Lr,ye(tr));let et=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Ge({onActionCallback:Lr,title:tr,icon:Xn,actionName:mr,className:Qr="",children:ii}){function ai(){Lr(mr)}return x.createElement("a",{title:tr,className:Qr,onClick:ai},x.createElement("i",{className:`${Xn}`}),ii)}var ut=({watch:Lr,showNullButton:tr,showNullProgramButton:Xn,onActionCallback:mr,fullScreen:Qr,insertTemp:ii,hidetoolBar:ai,extraUse:oi})=>{const li=[...et,{title:`${Lr?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Lr?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return x.createElement("ul",{className:"markdown-toolbar-container"},!ai&&li.map((ji,ki)=>x.createElement("li",{key:ki},ji.actionName?x.createElement(Ge,Re(Qe({},ji),{onActionCallback:mr})):x.createElement("span",{className:"v-line"}))),tr?x.createElement("li",null,x.createElement(Ge,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:mr},x.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,Xn?x.createElement(x.Fragment,null,x.createElement("li",null,x.createElement(Ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:mr},x.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),x.createElement("li",null,x.createElement(Ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:mr},x.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,ii&&x.createElement("li",null,x.createElement(Ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ii}`,onActionCallback:mr},x.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),oi&&x.createElement("li",null,oi),x.createElement("li",{className:"btn-full-screen"},x.createElement(Ge,{icon:`${Qr?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Qr?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:mr})))},at=ae(57261),ft=ae(28284),bt=ae(37568),He=ae(7939),pt=Object.defineProperty,Ne=Object.defineProperties,je=Object.getOwnPropertyDescriptors,Ot=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,Bt=(Lr,tr,Xn)=>tr in Lr?pt(Lr,tr,{enumerable:!0,configurable:!0,writable:!0,value:Xn}):Lr[tr]=Xn,We=(Lr,tr)=>{for(var Xn in tr||(tr={}))it.call(tr,Xn)&&Bt(Lr,Xn,tr[Xn]);if(Ot)for(var Xn of Ot(tr))ht.call(tr,Xn)&&Bt(Lr,Xn,tr[Xn]);return Lr},_e=(Lr,tr)=>Ne(Lr,je(tr));const ot={labelCol:{span:4},wrapperCol:{span:20}};var Zt=({callback:Lr,onCancel:tr})=>{function Xn(mr){Lr(mr)}return x.createElement(ft.default,_e(We({},ot),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Xn,style:{width:500}}),x.createElement(ft.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},x.createElement(bt.default,null)),x.createElement(ft.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},x.createElement(bt.default,null)),x.createElement("div",{className:"flex-container flex-end"},x.createElement(He.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),x.createElement(He.ZP,{type:"ghost",onClick:tr},"\u53D6\u6D88")))},zt=ae(85533),tt=ae(45053),Nt=ae(62957),Ut=ae(77019),pn=ae(16750),kt=ae(59301),mn=({callback:Lr,onCancel:tr})=>{const Xn=document.createElement("canvas"),mr=Xn.getContext("2d");Xn.width=1e3,Xn.height=800,mr.fillStyle="#ffffff",mr.fillRect(0,0,Xn.width,Xn.height);const Qr=Xn.toDataURL("image/png");return kt.createElement(Nt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},kt.createElement(Ut.Z,{style:{height:"100vh"}},kt.createElement(pn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Qr,visible:!0,title:String(Date.now())},onOk:ii=>{Lr({src:ii.url})},onClose:tr})))},_t=ae(36207),Cn=ae(5269),an=ae(6767),de={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},pe=ae(59301),ee=(0,x.forwardRef)(({onCancel:Lr,editImgId:tr,callback:Xn},mr)=>{let Qr=(0,x.useRef)(),ii=(0,x.useRef)(),ai=(0,x.useRef)(),oi=(0,x.useRef)(!1);const li=(0,x.useRef)(!1);console.log("ref:",mr);const[ji,ki]=(0,x.useState)(0),[or,Hr]=(0,x.useState)("100vh");return(0,x.useEffect)(()=>{ki(1)},[]),(0,x.useImperativeHandle)(mr,()=>({setHeight:Hr})),pe.createElement("div",{ref:li,className:"body-overflow-initial"},pe.createElement(_t.Z,{width:"100vw",height:or,footer:null,closable:!0,placement:"bottom",open:!!ji,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${de.drawerWrap}`,onClose:()=>{window.saveDrawData(Bi=>{Xn({src:`/api/attachments/${Bi}`,id:Bi})})},title:pe.createElement(Ut.Z,{align:"middle"},pe.createElement(Cn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),pe.createElement(Cn.Z,{onClick:()=>{Hr(or==="60px"?"100vh":"60px")}},pe.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),pe.createElement(Cn.Z,{onClick:()=>{window.saveDrawData(Bi=>{if(Bi===null){an.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}an.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),Xn({src:`/api/attachments/${Bi}`,id:Bi,disabledClose:!0})})}},pe.createElement(He.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},pe.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${tr||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:ii})))}),se=ae(74128),le=ae(47889),Be=ae(4875);const $e=le.ZP.Group,st={margin:"0 8px"};var gt=({callback:Lr,onCancel:tr})=>{function Xn(mr){Lr(mr)}return x.createElement(ft.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Xn},x.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},x.createElement("span",{style:st},"\u5355\u5143\u683C\u6570\uFF1A"),x.createElement("span",{style:st},"\u884C\u6570"),x.createElement(ft.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},x.createElement(Be.Z,null)),x.createElement("span",{style:st},"\u5217\u6570"),x.createElement(ft.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},x.createElement(Be.Z,null))),x.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},x.createElement("span",{style:st},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),x.createElement(ft.default.Item,{name:"align"},x.createElement($e,null,x.createElement(le.ZP,{value:"default"},x.createElement("i",{className:"fa fa-align-justify"})),x.createElement(le.ZP,{value:"left"},x.createElement("i",{className:"fa fa-align-left"})),x.createElement(le.ZP,{value:"center"},x.createElement("i",{className:"fa fa-align-center"})),x.createElement(le.ZP,{value:"right"},x.createElement("i",{className:"fa fa-align-right"}))))),x.createElement("div",{className:"flex-container flex-end"},x.createElement(He.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),x.createElement(He.ZP,{type:"ghost",onClick:tr},"\u53D6\u6D88")))},mt=ae(58755),Et=ae(93510),Lt=ae.n(Et),Ct=(0,x.forwardRef)(({use3d:Lr,width:tr,height:Xn,callback:mr,showSaveButton:Qr},ii)=>{const ai=(0,x.useRef)(),oi=(0,x.useRef)(),[li,ji]=(0,x.useState)(!1),ki=(0,x.useRef)({id:ai,appName:"graphing",width:tr||1e3,height:Xn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,x.useEffect)(()=>{oi.current=new(Lt())(ki.current,!0),window.onload=function(){oi.current.inject("applet_container")}},[]);const or=()=>{var Hr=window.ggbApplet.getPNGBase64(1,!0,72);return mr&&mr(Hr),Hr};return(0,x.useEffect)(()=>{ki.current.appName=li?"3D":"graphing",oi.current.inject("applet_container")},[li]),(0,x.useEffect)(()=>{ji(Lr)},[Lr]),(0,x.useImperativeHandle)(ii,()=>({getImgData:or})),x.createElement(x.Fragment,null,x.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:ai}),x.createElement(Ut.Z,{align:"middle"},x.createElement(Cn.Z,{flex:1},x.createElement(mt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:li,onChange:Hr=>ji(Hr)})),x.createElement(Cn.Z,null,x.createElement(He.ZP,{size:"large",onClick:or,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),lt=ae(99298);const $t="link",Wt="upload-image",wn="add-flowchart",ln="draw-image",tn="add-flowchart",Qn="code-block",En="add-table",Rt="------------",un={default:Rt,left:`:${Rt}`,center:`:${Rt}:`,right:`${Rt}:`};var Dn=ae(31103),Wn=ae(65862);function It(){}let Gt=0;const sn=1e4,yn="\u2581",Yn="@\u2581\u2581@",Br="@\u2581@",ti=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,Ur=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function Sr(Lr){return/^\d+$/.test(Lr)?`${Lr}px`:Lr}const gr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",kr={[gr+"-B"]:"bold",[gr+"-I"]:"italic"},Vr={[$t]:"\u6DFB\u52A0\u94FE\u63A5",[Qn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Wt]:"\u6DFB\u52A0\u56FE\u7247",[ln]:"\u6DFB\u52A0\u753B\u56FE",[wn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[En]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var pi=({defaultValue:Lr="",onChange:tr,width:Xn="100%",height:mr=400,miniToolbar:Qr=!1,isFocus:ii=!1,watch:ai,insertTemp:oi,mode:li="markdown",id:ji="markdown-editor-id",showResizeBar:ki=!1,noStorage:or=!1,showNullButton:Hr=!1,showNullProgramButton:Bi=!1,hidetoolBar:Yt=!1,fullScreen:rn=!1,onBlur:fn,onCMBeforeChange:Pt,onFullScreen:en,className:Kt="",disablePaste:gn=!1,disabled:On=!1,disabledFill:Nr=!1,placeholder:Yr="",values:hi="",extraUse:rr,onAddBlank:ur})=>{const[sr,ni]=(0,x.useState)(null),[er,Rn]=(0,x.useState)(Lr),[Ar,Ei]=(0,x.useState)(ai),[Kn,vn]=(0,x.useState)(rn),[$n,nr]=(0,x.useState)(""),[fr,zr]=(0,x.useState)(0),[Ni,gi]=(0,x.useState)(mr),[Di,mi]=(0,x.useState)(!1),[Si,wi]=(0,x.useState)(0),[Ci,yi]=(0,x.useState)(0),Mi=(0,x.useRef)(),eo=(0,x.useRef)(),mo=(0,x.useRef)(),Yi=(0,x.useRef)(),Io=(0,x.useRef)(),Ri=(0,x.useRef)(),ko=(0,ct.useDispatch)();(0,x.useEffect)(()=>{const Kr=window.scrollY||window.pageYOffset;Rn(hi),sr==null||sr.setValue(hi),window.scrollTo(0,Kr)},[hi]),(0,x.useEffect)(()=>{en==null||en(Kn)},[Kn]),(0,x.useEffect)(()=>{if(Mi.current){let Kr=function(vr,qr){var Ao;if(gn){qr.preventDefault();return}const Yo=qr.clipboardData;if(Yo){const Do=Yo.types.toString(),ga=Yo.items;if(Do==="Files"||Yo.types.indexOf("Files")>-1){if(qr.preventDefault(),li=="stex")return;try{let No=ga[1];((Ao=ga[0])==null?void 0:Ao.kind)==="file"&&(No=ga[0]);const Jo=No.getAsFile(),Ro=Jo.name.split(".").pop();(0,tt.I)(Jo,oa=>{var fa,Wa,Ds;oa.id?((fa=Jo==null?void 0:Jo.type)==null?void 0:fa.indexOf("image"))>-1?ui.replaceSelection(`<img width="100%" src="/api/attachments/${oa.id}?type=${oa.content_type})" alt="" />`):((Wa=Jo==null?void 0:Jo.type)==null?void 0:Wa.indexOf("video"))>-1?ui.replaceSelection(`<video width="100%" controls src="/api/attachments/${oa.id}"></video>`):((Ds=Jo==null?void 0:Jo.type)==null?void 0:Ds.indexOf("pdf"))>-1?ui.replaceSelection(`<a href="/api/attachments/${oa.id}?type=${Jo.type}&disposition=inline" target="_blank">${Jo.name}</a>`):Ur.includes(Ro)?ui.replaceSelection(`<a href="/api/attachments/${oa.id}?type=office&disposition=inline" target="_blank">${Jo.name}</a>`):ui.replaceSelection(`[${Jo.name}](/api/attachments/${oa.id}?type=${oa.content_type})`):(oa==null?void 0:oa.status)===401&&(document.location.href="/user/login")})}catch(No){an.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const ui=Je().fromTextArea(Mi.current,{mode:li,lineNumbers:!Qr,lineWrapping:!0,value:Lr,autoCloseTags:!0,autoCloseBrackets:!0});return ui.on("keyup",function(vr,qr){qr.keyCode===8&&(vr.getValue()==""?ui.setOption("placeholder",Yr):ui.setOption("placeholder",null))}),ui.on("keydown",function(vr,qr){if(qr.keyCode===8){var Ao=Vo(vr);Ao&&qr.preventDefault()}}),ii&&ui.focus(),ui.on("paste",Kr),On&&ui.on("beforeChange",function(vr,qr){(qr.origin==="paste"||qr.origin==="+input")&&qr.cancel()}),ni(ui),()=>{ui.off("paste",Kr)}}},[]);const uo=(0,x.useCallback)(()=>{if(eo.current)try{}catch(Kr){console.log(Kr,"---- to set md editor body height")}},[Ni,eo,Kn]);(0,x.useEffect)(()=>{function Kr(){let ui=new ze.Z(vr=>{for(let qr of vr)(qr.target.offsetHeight>0||qr.target.offsetWidth>0)&&(uo(),sr.setSize("100%","100%"),sr.refresh())});return ui.observe(Mi.current.parentElement),ui}if(sr){const ui=Kr();return()=>{var vr,qr;(vr=Mi.current)!=null&&vr.parentElement&&ui.unobserve((qr=Mi.current)==null?void 0:qr.parentElement)}}},[sr,uo]),(0,x.useEffect)(()=>{if(sr){let Kr=[];for(const[ui,vr]of Object.entries(kr)){let qr={[ui]:()=>{wo(vr)}};Kr.push(qr),sr.addKeyMap(qr)}return()=>{for(let ui of Kr)sr.removeKeyMap(ui)}}},[sr]),(0,x.useEffect)(()=>{rn!==Kn&&vn(rn)},[rn]),(0,Dn.Z)(()=>{if(!or&&fr>0){let Kr=new Date().getTime(),ui=window.sessionStorage.getItem(ji);Kr>=fr+sn&&(!ui||ui!==er)&&(window.sessionStorage.setItem(ji,er),mi(!0))}},sn),(0,x.useEffect)(()=>{Ei(ai)},[sr,ai]),(0,x.useEffect)(()=>{sr&&ii&&sr.focus()},[sr,ii]),(0,x.useEffect)(()=>{if(Ar&&sr){let Kr=function(vr){let qr=vr.target;if(Yi.current){let Ao=qr.scrollTop/qr.scrollHeight;Yi.current.scrollTop=Yi.current.scrollHeight*Ao}};const ui=sr.getScrollerElement();return ui.addEventListener("scroll",Kr),()=>{ui.removeEventListener("scroll",Kr)}}},[sr,Ar]),(0,x.useEffect)(()=>{if(sr&&Pt){let Kr=function(ui,vr){Pt(ui,vr)};return sr.on("beforeChange",Kr),()=>{sr.off("beforeChange",Kr)}}},[sr,Pt]),(0,x.useEffect)(()=>{if(sr&&fn){let Kr=function(){fn(sr.getValue())};return sr.on("blur",Kr),()=>{sr.off("blur",Kr)}}},[sr,fn]);function Vo(Kr,ui){var vr=Kr.getDoc(),qr=vr.getCursor(),Ao=vr.getLine(qr.line),Yo=Ao.charAt(qr.ch-1),Do=Ao.lastIndexOf("@\u2581@",qr.ch),ga=Ao.lastIndexOf("@\u2581\u2581@",qr.ch),No=Do>ga?Do:ga,Jo=Do>ga?3:4;if(Yn.indexOf(Yo)===-1)return null;if(console.log("change1:",ui,Kr,Ao,qr,No,Do,ga,Yo),No>=0&&qr.ch-No<5){var Ro=No+Jo;return vr.replaceRange("",{line:qr.line,ch:No},{line:qr.line,ch:Ro}),{line:qr.line,ch:Ro}}return null}(0,x.useEffect)(()=>{if(sr){let Kr=function(ui,vr){const qr=ui.getValue();Rn(qr),zr(new Date().getTime()),ui.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),tr&&(Bi?tr(qr,Jr(qr)):tr(qr))};return sr.on("change",Kr),()=>{sr.off("change",Kr)}}},[sr,tr]),(0,x.useEffect)(()=>{if(sr)if(Lr==null)sr.setValue(""),Rn("");else{const Kr=window.scrollY||window.pageYOffset;Lr!==sr.getValue()&&(sr.setValue(Lr),Rn(Lr),sr.setCursor(On?1:sr.lineCount(),0),window.scrollTo(0,Kr))}},[sr,Lr]);const wo=(0,x.useCallback)(Kr=>{const ui=sr.getCursor(),vr=sr.getSelection();let qr=vr.split(`
`);switch(Kr){case"bold":return sr.replaceSelection("**"+vr+"**"),vr===""&&sr.setCursor(ui.line,ui.ch+2),sr.focus();case"italic":return sr.replaceSelection("*"+vr+"*"),vr===""&&sr.setCursor(ui.line,ui.ch+1),sr.focus();case"code":return sr.replaceSelection("`"+vr+"`"),vr===""&&sr.setCursor(ui.line,ui.ch+1),sr.focus();case"inline-latex":return(0,Wn.Ye)(ko)?void 0:(nr("inline-latex"),sr.focus());case"latex":return sr.replaceSelection("```latex\n"+vr+"\n```"),sr.setCursor(ui.line+1,vr.length+1),sr.focus();case"line-break":return sr.replaceSelection(`<br/>
`),sr.focus();case"list-ul":return vr===""?sr.replaceSelection("- "+vr):sr.replaceSelection(qr.map(Ao=>Ao===""?"":`- ${Ao}`).join(`
`)),sr.focus();case"list-ol":return vr===""?sr.replaceSelection("1. "+vr):sr.replaceSelection(qr.map((Ao,Yo)=>Ao===""?"":`${Yo+1}. ${Ao}`).join(`
`)),sr.focus();case"add-null-ch":ur==null||ur();return;case"add-signal":return vr===""&&sr.setCursor(ui.line,ui.ch),sr.replaceSelection(Br),sr.focus();case"add-multiple":return vr===""&&sr.setCursor(ui.line,ui.ch),sr.replaceSelection(Yn),sr.focus();case"inster-template-1":return vr===""&&sr.setCursor(ui.line,ui.ch),sr.replaceSelection(ti),sr.focus();case"eraser":return sr.setValue(""),sr.focus();case"trigger-watch":return Ei(!Ar),sr.focus();case"trigger-full-screen":return vn(!Kn),sr.focus();case $t:nr($t);return;case Qn:nr(Qn);return;case Wt:nr(Wt);return;case ln:nr(ln);return;case"maths-latex":if((0,Wn.Ye)(ko))return;nr("maths-latex");return;case wn:Io.current="",sessionStorage.removeItem("file_id"),nr(wn);return;case En:nr(En);return;default:throw new Error}},[sr,Ar,Kn]),to=(0,x.useCallback)((Kr,ui)=>{var vr,qr,Ao,Yo,Do,ga;Kr!=null&&Kr.disabledClose||nr("");const{src:No,alt:Jo,id:Ro}=Kr||{};switch($n){case $t:const{title:js,link:as}=Kr;return sr.replaceSelection(`[${js}](${as})`),sr.focus();case Qn:const{language:ds,content:Mo}=Kr;return sr.replaceSelection(["```"+ds,Mo,"```"].join(`
`)),sr.focus();case"maths-latex":for(var oa=atob(Kr),fa=new Uint8Array(oa.length),Wa=0;Wa<oa.length;Wa++)fa[Wa]=oa.charCodeAt(Wa);var Ds=new Blob([fa],{type:"image/png"});(0,tt.I)(Ds,gl=>{gl.id?sr.replaceSelection(`![,](/api/attachments/${gl.id}?type=${gl.content_type})`):(gl==null?void 0:gl.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,Wn.Ye)(ko))return;sr.replaceSelection("`$$"+Kr+"$$`");break;case tn:if(!Ro)return;sr.getValue().indexOf(No)===-1?sr.replaceSelection(`<center><img id="${Ro}" width="80%" src="${No}" class="draw-flowchart" alt="${Jo||""}" /></center>`):document.getElementById(Ro).src=se.Z.API_SERVER+No+"?t="+Date.now();break;case Wt:case ln:const go=ui,Fa=(Ao=(qr=(vr=go==null?void 0:go.name)==null?void 0:vr.split("."))==null?void 0:qr.pop)==null?void 0:Ao.call(qr);return((Yo=go==null?void 0:go.type)==null?void 0:Yo.indexOf("image"))>-1||!(go!=null&&go.type)?go!=null&&go.align||go!=null&&go.width?sr.replaceSelection(`<p style="text-align:${go.align||"initial"}"><img width="${go.width?go.width+"%":"initial"}" src="${No}" alt="${Jo||""}" /></p>`):sr.replaceSelection(`<img width="100%" src="${No}" alt="${Jo||""}" />`):((Do=go==null?void 0:go.type)==null?void 0:Do.indexOf("video"))>-1?sr.replaceSelection(`<video width="100%" controls src="${No}"></video>`):((ga=go==null?void 0:go.type)==null?void 0:ga.indexOf("pdf"))>-1?sr.replaceSelection(`<a href="${No}?type=${go.type}&disposition=inline" target="_blank">${go.name}</a>`):Ur.includes(Fa)?sr.replaceSelection(`<a href="${No}?type=office&disposition=inline" target="_blank">${go.name}</a>`):sr.replaceSelection(`[${go.name}](${No})`),sr.focus();case En:const{row:gs,col:el,align:tl}=Kr;let nl=`
`;for(let gl=0;gl<gs;gl++){let Au=[],Xs=[];for(let Zl=0;Zl<el;Zl++)gl===1&&Xs.push(un[tl]),Au.push(" ");gl===1&&(nl+=`| ${Xs.join(" | ")} |
`),nl+=`| ${Au.join(el===1?"":" | ")} |
`}return sr.replaceSelection(nl+`
`),sr.focus();default:throw new Error}},[sr,$n]),bo=(0,x.useMemo)(()=>{switch($n){case $t:return x.createElement(Zt,{callback:to,onCancel:Go});case Qn:return x.createElement(zt.Z,{callback:to,onCancel:Go});case Wt:return x.createElement(tt.Z,{callback:to,onCancel:Go});case wn:return x.createElement(ee,{editImgId:Io.current,callback:to,onCancel:Go});case En:return x.createElement(gt,{callback:to,onCancel:Go});case"maths-latex":return x.createElement(Ct,{showSaveButton:!0,callback:to});case"inline-latex":return x.createElement(lt.Z,{showSaveButton:!0,callback:to});default:return null}},[$n]);function Go(){nr("")}(0,x.useEffect)(()=>{if(mo.current){let Kr=function(Do){Ao=!0,Yo=Do.pageY},ui=function(){Ao=!1},vr=function(Do){if(Ao){let ga=Do.pageY-Yo;ga<0&&(ga=0),ga>300&&(ga=300);let No=mr+ga+"px";gi(No)}},qr=mo.current,Ao=!1,Yo=0;return qr.addEventListener("mousedown",Kr),document.addEventListener("mousemove",vr),document.addEventListener("mouseup",ui),()=>{qr.removeEventListener("mousedown",Kr),document.removeEventListener("mousemove",vr),document.removeEventListener("mouseup",ui)}}},[sr,mo]),(0,x.useEffect)(()=>{gi(mr)},[mr]);const Tn=Sr(Xn),Lo=Sr(Ni),Vi={width:Tn,height:Lo},Mr=(0,x.useMemo)(()=>{if(fr){let Kr=new Date(fr),ui=Kr.getHours(),vr=Kr.getMinutes(),qr=Kr.getSeconds();return ui=ui<10?"0"+ui:ui,vr=vr<10?"0"+vr:vr,qr=qr<10?"0"+qr:qr,`${ui}:${vr}:${qr}`}return 0},[fr]),Jr=Kr=>{const ui=[];if(Bi){let vr=-1;Kr=Kr.replace(/(@▁▁@|@▁@)/g,function(qr,Ao,Yo){ui.push({multiLine:qr!==Br})})}return ui};function ri(){window.sessionStorage.removeItem(ji),mi(!1),zr(0)}function Wr(){mi(!1),zr(0),sr.setValue(window.sessionStorage.getItem(ji))}(0,x.useEffect)(()=>{Vr[$n]&&$n!==ln&&$n!==wn&&setTimeout(()=>{const Kr=document.getElementsByClassName("markdown-popup-form")[0],ui=window.innerWidth/2-Kr.offsetWidth/2,vr=window.innerHeight/2-Kr.offsetHeight/2;wi(ui),yi(vr)},0)},[$n]);const Qi=Kr=>{Kr.preventDefault();const ui=Kr.clientX-Si,vr=Kr.clientY-Ci;document.body.onmousemove=qr=>{let Ao=qr.clientX-ui,Yo=qr.clientY-vr;const Do=document.getElementsByClassName("markdown-popup-form")[0],ga=window.innerWidth-Do.offsetWidth,No=window.innerHeight-Do.offsetHeight;Ao=Math.max(0,Math.min(Ao,ga)),Yo=Math.max(0,Math.min(Yo,No)),no(qr.clientX,qr.clientY,ui,vr)&&(wi(Ao),yi(Yo))},document.body.onmouseup=function(){document.body.onmousemove=null}},no=(Kr,ui,vr,qr)=>{const Ao=document.body.clientHeight,Yo=document.body.clientWidth;return Kr<20&&vr>Kr||Kr>Yo-20&&vr<Kr||ui<20&&qr>ui||ui>Ao-20&&qr<ui?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return x.createElement(x.Fragment,null,x.createElement("div",{className:"markdown-editor-wrapper",ref:eo},x.createElement("div",{className:`markdown-editor-container ${Kt} ${Ar?"on-preview":""} ${Qr?"mini":""} ${Kn?"full-screen":""}`,style:Vi},x.createElement(ut,{insertTemp:oi,watch:Ar,fullScreen:Kn,showNullButton:Hr,showNullProgramButton:Bi,onActionCallback:wo,hidetoolBar:Yt,extraUse:rr}),x.createElement("div",{className:"markdown-editor-body"},x.createElement("div",{className:"codemirror-container"},x.createElement("textarea",{ref:Mi,placeholder:Yr})),Ar?x.createElement("div",{ref:Yi,className:"preview-container"},li==="stex"&&x.createElement(Me,{value:er}),li!=="stex"&&x.createElement(ve.Z,{edit:!0,disabledFill:Nr,showProgramFill:Bi,value:er,openEditor:Kr=>{var ui;Io.current=Kr,(ui=Ri.current)==null||ui.setHeight("100vh"),setTimeout(()=>{nr("add-flowchart")},150)}})):null))),ki?x.createElement("a",{ref:mo,className:"editor-resize"}):null,$n===ln&&x.createElement(mn,{callback:to,onCancel:Go}),$n===wn&&x.createElement(ee,{ref:Ri,editImgId:Io.current,callback:to,onCancel:Go}),x.createElement(at.Z,null,Vr[$n]&&$n!==ln&&$n!==wn?x.createElement(Nt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Si,top:Ci},title:x.createElement("div",{style:{cursor:"move"},onMouseDown:Qi},Vr[$n]),open:!0,onCancel:Go,footer:null,destroyOnClose:!0,width:$n===wn?"1200px":null,height:$n===wn?"80vh":null,className:"markdown-popup-form"},bo):null))}},45053:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return et},I:function(){return ut}});var x=ae(28284),ct=ae(6767),Le=ae(37568),Je=ae(44104),ze=ae(4875),Se=ae(47889),Ue=ae(7939),fe=ae(28735),Ce=ae(59301),oe=ae(59301),Oe=Object.defineProperty,ve=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,xe=(at,ft,bt)=>ft in at?Oe(at,ft,{enumerable:!0,configurable:!0,writable:!0,value:bt}):at[ft]=bt,Ee=(at,ft)=>{for(var bt in ft||(ft={}))Te.call(ft,bt)&&xe(at,bt,ft[bt]);if(Fe)for(var bt of Fe(ft))ye.call(ft,bt)&&xe(at,bt,ft[bt]);return at},ke=(at,ft)=>ve(at,Me(ft));const{useForm:Ke}=x.default,Qe={width:280,marginRight:10},Re={labelCol:{span:5},wrapperCol:{span:19}};var et=({callback:at,onCancel:ft})=>{const[bt]=Ke();let He=(0,Ce.useRef)();function pt(Ot){He.current.width=bt.getFieldValue("width"),He.current.align=bt.getFieldValue("align"),at(Ot,He.current)}function Ne(Ot,it){if(Ot.status===-1){ct.ZP.error(Ot.message);return}bt.setFieldsValue({src:`/api/attachments/${Ot.id}`,type:it.type})}function je(Ot){let it=Ot.target.files[0];He.current=it,ut(it,Ne)}return oe.createElement(x.default,ke(Ee({form:bt},Re),{className:"upload-image-panel",onFinish:pt,style:{width:470,overflow:"hidden"}}),oe.createElement(x.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},oe.createElement("div",{className:"flex-container"},oe.createElement(x.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},oe.createElement(Le.default,{style:Qe})),oe.createElement(Ge,{onFileChange:je}))),oe.createElement(x.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},oe.createElement(Le.default,{style:{width:264}})),oe.createElement(x.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},oe.createElement(Je.Z,null,oe.createElement(x.default.Item,{name:"width",style:{margin:0}},oe.createElement(ze.Z,{style:{width:264}})),oe.createElement("span",{className:"ml8"},"%"))),oe.createElement(x.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},oe.createElement(Se.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),oe.createElement("aside",null,oe.createElement(x.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},oe.createElement(Ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(Ue.ZP,{type:"default",onClick:ft},"\u53D6\u6D88"))))};function Ge({onFileChange:at}){return oe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",oe.createElement("input",{type:"file",onChange:at}))}function ut(at,ft){if(!at)throw new String("\u6CA1\u6709\u6587\u4EF6");let bt=new FormData;bt.append("editormd-image-file",at),bt.append("file_param_name","editormd-image-file"),bt.append("byxhr","true");var He=new window.XMLHttpRequest;He.withCredentials=!0,He.addEventListener("load",function(pt){ft(JSON.parse(pt.target.responseText),at)},!1),He.addEventListener("error",function(pt){console.error(pt)},!1),He.open("POST",`${fe.KI}/api/attachments.json`),He.send(bt)}},57261:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Le}});var x=ae(59301),ct=ae(4676);class Le extends x.Component{constructor(ze){super(ze);const Se=window.document;this.node=Se.createElement("div"),Se.body.appendChild(this.node)}render(){const{children:ze}=this.props;return(0,ct.createPortal)(ze,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},50258:function(Vn,Mt,ae){"use strict";ae.d(Mt,{SV:function(){return mn},ZP:function(){return kt}});var x=ae(59301),ct=ae(76374);const Le={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Je={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},ze={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"if",content:["if () {"," $0","}"].join(`
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std",content:["using namespace std"].join(`
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"include <vector>",content:["#include <vector>"].join(`
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
`)},{label:"include <map>",content:["#include <map>"].join(`
`)},{label:"include <string>",content:["#include <string>"].join(`
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
`)}]},Se={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
`)}]},Ue={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
`)}]};var fe=ae(53184),Ce=ae.n(fe),oe=(_t,Cn,an)=>new Promise((de,pe)=>{var ie=le=>{try{se(an.next(le))}catch(Be){pe(Be)}},ee=le=>{try{se(an.throw(le))}catch(Be){pe(Be)}},se=le=>le.done?de(le.value):Promise.resolve(le.value).then(ie,ee);se((an=an.apply(_t,Cn)).next())});const Oe={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},ve=(_t,Cn,an,de)=>{const pe=Cn.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:an.lineNumber,endColumn:an.column});return Array.from(new Set(pe.match(/\b\w{2,}\b/g)||[])).map(ee=>({label:ee,kind:_t.languages.CompletionItemKind.Text,insertText:ee,range:de}))},Me=(_t,Cn,an,de)=>{_t.languages.registerCompletionItemProvider(Cn,{provideCompletionItems(pe,ie){const ee=pe.getWordUntilPosition(ie),se={startLineNumber:ie.lineNumber,endLineNumber:ie.lineNumber,startColumn:ee.startColumn,endColumn:ee.endColumn},le=pe.getLineContent(ie.lineNumber).substring(ee.startColumn-2,ee.endColumn);return{suggestions:[...ve(_t,pe,ie,se),...an.map($e=>({label:$e,kind:_t.languages.CompletionItemKind.Keyword,documentation:$e,insertText:$e,insertTextRules:_t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se})),...de.map($e=>({label:$e.label,kind:_t.languages.CompletionItemKind.Snippet,documentation:$e.content,insertText:le.startsWith("#")?$e.content.replace(/#/,""):$e.content,insertTextRules:_t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se}))]}}})};var Fe=_t=>{Oe.languages.forEach(Cn=>{_t.languages.registerDocumentFormattingEditProvider(Cn,{provideDocumentFormattingEdits(an){return oe(this,null,function*(){const de=Ce()(an.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:an.getFullModelRange(),text:de}]})}})}),Me(_t,"java",Je.keywords,Je.quickKey),Me(_t,"cpp",ze.keywords,ze.quickKey),Me(_t,"c",Le.keywords,[]),Me(_t,"python",Se.keywords,Se.quickKey),Me(_t,"scala",Ue.keywords,Ue.quickKey)};const Te="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ye=Object.defineProperty,xe=(_t,Cn,an)=>Cn in _t?ye(_t,Cn,{enumerable:!0,configurable:!0,writable:!0,value:an}):_t[Cn]=an,Ee=(_t,Cn,an)=>xe(_t,typeof Cn!="symbol"?Cn+"":Cn,an);const ke=class Ov{constructor(Cn,an,de){this.placeholder=Cn,this.editor=an,this.monaco=de,an.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Ov.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};Ee(ke,"ID","editor.widget.placeholderHint");var Qe=ke,Re=ae(96236),et=ae(6767),Ge=ae(25399),ut=ae(89392),at=ae(77254),ft=ae(56102),bt=Object.defineProperty,He=Object.defineProperties,pt=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,it=(_t,Cn,an)=>Cn in _t?bt(_t,Cn,{enumerable:!0,configurable:!0,writable:!0,value:an}):_t[Cn]=an,ht=(_t,Cn)=>{for(var an in Cn||(Cn={}))je.call(Cn,an)&&it(_t,an,Cn[an]);if(Ne)for(var an of Ne(Cn))Ot.call(Cn,an)&&it(_t,an,Cn[an]);return _t},Bt=(_t,Cn)=>He(_t,pt(Cn)),We=(_t,Cn)=>{var an={};for(var de in _t)je.call(_t,de)&&Cn.indexOf(de)<0&&(an[de]=_t[de]);if(_t!=null&&Ne)for(var de of Ne(_t))Cn.indexOf(de)<0&&Ot.call(_t,de)&&(an[de]=_t[de]);return an},_e=(_t,Cn,an)=>new Promise((de,pe)=>{var ie=le=>{try{se(an.next(le))}catch(Be){pe(Be)}},ee=le=>{try{se(an.throw(le))}catch(Be){pe(Be)}},se=le=>le.done?de(le.value):Promise.resolve(le.value).then(ie,ee);se((an=an.apply(_t,Cn)).next())});function ot(_t){return/^\d+$/.test(_t)?`${_t}px`:_t}function Zt(){}let zt=!1;const tt={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function Nt(_t=[]){let Cn=_t;if(Array.isArray(_t)){for(let an=0;an<_t.length;an++){let de=tt[_t[an]];if(de)return de}return Cn[0]}return tt[Cn]||Cn}let Ut=null;const pn=()=>_e(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(_t){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",_t)}});var kt=_t=>{var Cn=_t,{width:an="100%",height:de="100%",value:pe,language:ie="javascript",style:ee={},options:se={},overrideServices:le={},theme:Be="vs-dark",onEditBlur:$e,isCopy:st=!1,onSave:gt,autoHeight:mt=!1,forbidCopy:Et=!1,forbidCopyTips:Lt,onChange:jt=Zt,editorDidMount:Ct=Zt,onFocus:lt=Zt,onBreakPoint:$t=Zt,breakPointValue:Wt=[],filename:wn="educoder.txt",errorLine:ln,errorContent:tn="",highlightLine:Qn,openBreakPoint:En=!1,placeholder:Rt="",showMiniMap:un=!0}=Cn,Dn=We(Cn,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","forbidCopyTips","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const Wn=(0,x.useRef)(),It=(0,x.useRef)({}),Gt=(0,x.useRef)(),sn=(0,x.useRef)(),yn=(0,x.useRef)([]),Yn=(0,x.useRef)(!1),Br=(0,x.useRef)(),ti=(0,x.useRef)(),Ur=(0,x.useRef)(!1),[Sr,Jn]=(0,x.useState)(!1);function gr(){let or;return Wn.current&&(or=new ct.Z(Hr=>{for(let Bi of Hr)(Bi.target.offsetHeight>0||Bi.target.offsetWidth>0)&&It.current.instance.layout()}),or.observe(Wn.current)),or}function kr(){et.ZP.warning({content:decodeURIComponent(Lt||Te),key:"monaco-editor-tip"})}const Vr=()=>{let or=It.current.instance;if(pe!=null&&or&&Sr){const Hr=or.getModel();Hr&&pe!==Hr.getValue()&&(zt=!0,Hr.setValue(pe),or.layout(),zt=!1)}};(0,x.useEffect)(()=>{const or=at.Z.subscribe("formatDocument",Hr=>{var Bi;let Yt=It.current.instance;(Bi=Yt==null?void 0:Yt.getAction)==null||Bi.call(Yt,"editor.action.formatDocument").run()});return window.updateMonacoValue=Hr=>{jt(Hr)},or},[]),(0,x.useEffect)(()=>{var or;let Hr=It.current.instance;sn.current&&clearTimeout(sn.current),sn.current=setTimeout(()=>{Vr()},500),pe&&(pe!=null&&pe.length)&&((or=Hr==null?void 0:Hr.updateOptions)==null||or.call(Hr,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(pe.split(/\r\n|\r|\n/g).length))+3,5)}))},[pe,Sr,It.current]),(0,x.useEffect)(()=>{if(ln&&It.current&&It.current.instance){let Hr=It.current.instance;Hr.changeViewZones(function(Bi){var Yt=document.createElement("div");Yt.style.padding="10px 20px",Yt.style.width="calc(100% - 20px)",Yt.className="my-error-line-wrp",Yt.innerHTML=tn,Bi.addZone({afterLineNumber:ln||11,heightInLines:3,domNode:Yt})});var or={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Hr.addOverlayWidget(or),Hr.revealPositionInCenter({lineNumber:20,column:1})}},[ln,It.current,Sr]);const pi=(or="",Hr)=>{if(!or||or.trim()==="")return!0;const Yt=It.current.instance.getModel().getLineTokens(Hr);let rn=!1;for(let fn=0;fn<2;fn++)Yt.getStandardTokenType(fn)===1&&(rn=!0);return rn};(0,x.useEffect)(()=>{var or;const Hr=(or=It.current)==null?void 0:or.instance;if(Hr&&Sr&&Et){const Bi=Hr.onDidBlurEditorWidget(()=>{Ur.current=!1}),Yt=Hr.onDidFocusEditorText(()=>{Ur.current=!0});return()=>{Bi.dispose(),Yt.dispose()}}},[It.current,Sr,Et]),(0,x.useEffect)(()=>{var or;if((or=It.current)!=null&&or.instance&&Sr&&En){let Hr=It.current.instance,Bi=Hr.getModel();if(!Bi)return;(()=>{var rr;let ur=[],sr=[];const ni=Bi.getAllDecorations();for(let Rn of ni)Rn.options.className==="highlighted-line"&&(ur.push((rr=Rn==null?void 0:Rn.range)==null?void 0:rr.startLineNumber),sr.push(Rn==null?void 0:Rn.id));if(Qn===ur[0])return;Bi.deltaDecorations(sr,[]);const er=Bi.getLineCount();Qn&&Qn<=er&&(Hr.deltaDecorations([],[{range:new Ut.Range(Qn,1,Qn,Bi.getLineMaxColumn(Qn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Hr.revealLineInCenter(Qn))})();const rn=(rr=!1)=>{var ur;let sr=[],ni=[];const er=Bi.getAllDecorations();for(let Rn of er)Rn.options.linesDecorationsClassName==="breakpoints-select"&&(sr.push((ur=Rn==null?void 0:Rn.range)==null?void 0:ur.startLineNumber),ni.push(Rn==null?void 0:Rn.id));if(rr)return{lines:sr,ids:ni};$t(sr)},fn=rr=>_e(void 0,null,function*(){let ur={range:new Ut.Range(rr,1,rr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Bi.deltaDecorations([],[ur]),rn()}),Pt=rr=>_e(void 0,null,function*(){let ur=[];const sr=Hr.getLineDecorations(rr);for(let ni of sr)ni.options.linesDecorationsClassName==="breakpoints-select"&&ur.push(ni.id);yield Bi.deltaDecorations(ur,[]),rn()}),en=rr=>{let ur=Hr.getLineDecorations(rr);for(let sr of ur)if(sr.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,ut.isEqual)(Wt,rn(!0).lines)){Bi.deltaDecorations(rn(!0).ids,[]);const rr=Wt.map(ur=>({range:new Ut.Range(ur,1,ur,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Bi.deltaDecorations([],rr)}const Kt=Hr.onDidChangeModelContent(rr=>{let ur=Hr.getPosition();if(ur){let sr=ur.lineNumber;clearTimeout(ti.current),ti.current=setTimeout(()=>{pi(Bi.getLineContent(sr),sr)?Pt(sr):en(sr)?(Pt(sr),fn(sr)):rn()},100)}}),gn=Hr.onMouseDown(rr=>{var ur,sr,ni;if(rr.target.detail&&((ni=(sr=(ur=rr.target)==null?void 0:ur.element)==null?void 0:sr.className)!=null&&ni.includes("line-numbers"))){let er=rr.target.position.lineNumber;if(pi(Bi.getLineContent(er),er))return;en(er)?Pt(er):fn(er)}}),On=rr=>{let ur={range:new Ut.Range(rr,1,rr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};yn.current=Hr.deltaDecorations(yn.current,[ur])},Nr=()=>{yn.current=Hr.deltaDecorations(yn.current,[])},Yr=Hr.onMouseMove(rr=>{var ur,sr,ni;if(Nr(),rr.target.detail&&((ni=(sr=(ur=rr.target)==null?void 0:ur.element)==null?void 0:sr.className)!=null&&ni.includes("line-numbers"))){let er=rr.target.position.lineNumber;if(pi(Bi.getLineContent(er),er))return;On(er)}}),hi=Hr.onMouseLeave(()=>{Nr()});return()=>{Kt.dispose(),gn.dispose(),Yr.dispose(),hi.dispose()}}},[It.current,Sr,Wt,Qn,En,ie]),(0,x.useEffect)(()=>{var or;(or=It.current)!=null&&or.instance&&En&&It.current.instance.setPosition({lineNumber:0,column:0})},[Qn]);function Lr(){let or=It.current.instance;if(or){const Hr=or.getSelection(),Bi=It.current.pastePos||{},Yt=new Ut.Range(Bi.startLineNumber||Hr.endLineNumber,Bi.startColumn||Hr.endColumn,Bi.endLineNumber||Hr.endLineNumber,Bi.endColumn||Hr.endColumn);setTimeout(()=>{or.executeEdits("",[{range:Yt,text:""}])},300)}}function tr(or){(window.navigator.platform.match("Mac")?or.metaKey:or.ctrlKey)&&or.keyCode==83&&(or.preventDefault(),gt())}const Xn=()=>{if(mt&&It.current.instance){const or=It.current.instance.getContentHeight();ji(or<de?de:or)}else ji(de)};function mr(or){var Hr=document.createEvent("MouseEvents");Hr.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),or.dispatchEvent(Hr)}const Qr=or=>{if(!Ur.current)return;const{keyCode:Hr,ctrlKey:Bi,metaKey:Yt,target:rn,type:fn}=or;return(fn==="paste"||(Hr===67||Hr===86)&&(Yt||Bi))&&rn.nodeName==="TEXTAREA"&&(kr(),or.preventDefault()),!1};function ii(or,Hr){var Bi=window.URL||window.webkitURL||window,Yt=new Blob([Hr]),rn=document.createElementNS("http://www.w3.org/1999/xhtml","a");rn.href=Bi.createObjectURL(Yt),rn.download=or,mr(rn)}(0,x.useEffect)(()=>{Xn()},[Xn]),(0,x.useEffect)(()=>{Wn.current&&!Sr&&Promise.all([ae.e(8909),ae.e(2460)]).then(ae.bind(ae,71448)).then(or=>{try{Ut=or,It.current.instance=Ut.editor.create(Wn.current,{value:pe,language:Nt(ie),theme:Be,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:un||!1}},le);const Hr=It.current.instance;let rn=[...Re.BH._menuItems].find(Kt=>Kt[0]._debugName=="EditorContext")[1],fn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Pt=(Kt,gn)=>{var On,Nr;let Yr=Kt._first;do gn.includes((Nr=(On=Yr.element)==null?void 0:On.command)==null?void 0:Nr.id)&&Kt._remove(Yr);while(Yr=Yr.next)};if(Ct(Hr,Ut),setTimeout(()=>{Xn(),It.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{ii(wn||"educoder.txt",Hr.getValue())}})},500),It.current.subscription=Hr.onDidChangeModelContent(Kt=>{Yn.current?clearTimeout(Br.current):(Xn(),jt(Hr.getValue(),Kt)),Br.current=setTimeout(()=>{Yn.current=!1},500)}),window.Monaco||Fe(Ut,Nt(ie)),Et&&(Pt(rn,fn),Wn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Qr),window.removeEventListener("paste",Qr),window.addEventListener("keydown",Qr),window.addEventListener("paste",Qr)),window.Monaco=Ut,$e&&Hr.onDidBlurEditorWidget(()=>{$e(Hr.getValue())}),lt&&Hr.onDidFocusEditorText(()=>{Et&&pn(),lt(Hr.getValue())}),Et){pn();try{Hr.onDidPaste(Kt=>{const gn=Hr.getSelection(),On=It.current.pastePos||{},Nr=new Ut.Range(On.startLineNumber||gn.endLineNumber,On.startColumn||gn.endColumn,On.endLineNumber||gn.endLineNumber,On.endColumn||gn.endColumn);Hr.executeEdits("",[{range:Kt.range,text:""}])})}catch(Kt){}}let en=gr();return Rt&&typeof Rt=="string"&&new Qe(Rt,Hr,Ut),Jn(!0),()=>{const Kt=It.current.instance;Kt.dispose();const gn=Kt.getModel();gn&&gn.dispose(),It.current.subscription&&It.current.subscription.dispose(),en.unobserve(Wn.current)}}catch(Hr){}})},[]),(0,x.useEffect)(()=>{if(It.current.instance&&Sr)return document.addEventListener("keydown",tr,!1),()=>{document.removeEventListener("keydown",tr)}},[gt,Sr]),(0,x.useEffect)(()=>{let or=It.current.instance;if(or&&Sr){let Hr=Nt(ie);Ut.editor.setModelLanguage(or.getModel(),Hr)}},[ie,Sr]),(0,x.useEffect)(()=>{It.current.instance&&Sr&&Ut.editor.setTheme(Be)},[Be,Sr]),(0,x.useEffect)(()=>{let or=It.current.instance;Gt.current=se,or&&Sr&&(or.updateOptions(ht({},se)),setTimeout(()=>{or.getModel().updateOptions(ht({},se))},200))},[JSON.stringify(se),Sr]),(0,x.useEffect)(()=>{let or=It.current.instance;or&&Sr&&or.layout()},[an,de,Sr]);const[ai,oi]=(0,x.useState)(ot(an)),[li,ji]=(0,x.useState)(ot(de)),ki=Bt(ht({},ee),{width:ai,height:li,position:"relative"});return x.createElement("div",{className:"my-monaco-editor",ref:Wn,style:ki,onFocus:()=>{Et&&pn()}},st&&x.createElement(ft.CopyToClipboard,{text:pe,onCopy:()=>et.ZP.success("\u590D\u5236\u6210\u529F")},x.createElement(Ge.Z,{title:"\u590D\u5236\u4EE3\u7801"},x.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},x.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function mn({width:_t="100%",height:Cn="100%",original:an,modified:de,language:pe,options:ie={}}){const ee=(0,x.useRef)(),[se,le]=(0,x.useState)(null);function Be(mt){let Et;return ee.current&&(Et=new ct.Z(Lt=>{for(let jt of Lt)(jt.target.offsetHeight>0||jt.target.offsetWidth>0)&&mt.layout()}),Et.observe(ee.current)),Et}(0,x.useEffect)(()=>(ee.current&&Promise.all([ae.e(8909),ae.e(9404)]).then(ae.bind(ae,2550)).then(mt=>{Ut=mt;const Et=Ut.editor.createDiffEditor(ee.current,Bt(ht({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},ie),{wordWrap:!0}));le(Et);let Lt=Be(Et);return()=>{Et.dispose();const jt=Et.getModel();jt&&jt.dispose(),Lt.unobserve(ee.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,x.useEffect)(()=>{se&&se.setModel({original:Ut.editor.createModel(an,pe),modified:Ut.editor.createModel(de,pe)})},[an,de,pe,se]);const $e=ot(_t),st=ot(Cn),gt={width:$e,height:st};return x.createElement("div",{className:"my-diff-editor",ref:ee,style:gt})}},61584:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Oe}});var x={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},ct=ae(29787),Le=ae(25399),Je=ae(89787),ze=ae(92310),Se=ae.n(ze),Ue=ae(65862),fe=ae(2524),Ce=ae(59301),Oe=({className:ve,dataSource:Me=[],col:Fe=4,right:Te,bottom:ye=23,precision:xe=0,wrapWidth:Ee=1200,trackEventItems:ke,loading:Ke,onRemove:Qe=()=>{},isCurrent:Re=!0,showProgress:et=!1,showAlias:Ge=!1,category:ut,hiddenClick:at})=>{const ft=Math.floor((Ee-(Fe-1)*Te)/Fe),bt=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return Ce.createElement(ct.Z,{spinning:Ke},Ce.createElement("div",{className:Se()(x.list,ve)},!!(Me!=null&&Me.length)&&(Me==null?void 0:Me.map((He,pt)=>{var Ne,je,Ot,it,ht,Bt,We,_e,ot,Zt,zt,tt,Nt;const{name:Ut,id:pn,identifier:kt,featured:mn,school_name:_t,image_url:Cn,excellent:an,is_plan:de}=He;return Ce.createElement("div",{key:pn,className:Re&&et?x.wrapisCurrent:x.wrap,style:{width:ft,marginRight:(1+pt)%Fe===0?0:Te+xe,marginBottom:ye}},Ce.createElement("a",{className:x.li,onClick:pe=>{pe.preventDefault(),pe.stopPropagation(),ke&&(0,Ue.L9)([ke]),(0,Ue.xg)(`/paths/${kt}`)}},Ce.createElement("div",{className:x.img},Ce.createElement("img",{className:x.cover,src:`${Cn}`}),(Ne=He==null?void 0:He.subject_tags)==null?void 0:Ne.map((pe,ie)=>{var ee,se;if(ie===0){const Be=(ee=bt.find($e=>$e.name==pe))==null?void 0:ee.swimg;return Ce.createElement("img",{className:x.sign,src:Be,style:{left:"-4px"}})}const le=(se=bt.find(Be=>Be.name==pe))==null?void 0:se.ptimg;return Ce.createElement("img",{className:x.sign,src:le,style:{left:`${48+52*(ie-1)+2*ie}px`}})}),Ce.createElement("div",{className:x.tagsDom},Ce.createElement("div",{className:"flex flex-wrap gap-10px item-center"},(He==null?void 0:He.excellent)&&Ce.createElement("div",{className:x.bq},"\u5F00\u653E\u8BFE\u7A0B"),((je=He==null?void 0:He.custom_tags)==null?void 0:je.length)>0&&Ce.createElement(Le.Z,{title:(ht=(it=He==null?void 0:He.custom_tags)==null?void 0:it[((Ot=He==null?void 0:He.custom_tags)==null?void 0:Ot.length)-1])==null?void 0:ht.tag_name},Ce.createElement("div",{className:"px-6px rounded-2px c-white h-16px flex item-center",style:{maxWidth:"62px",background:"#3061D0",border:"0.5px solid #8FAFF8"}},Ce.createElement("span",{className:"multi-llipsis1e text-10px"},(_e=(We=He==null?void 0:He.custom_tags)==null?void 0:We[((Bt=He==null?void 0:He.custom_tags)==null?void 0:Bt.length)-1])==null?void 0:_e.tag_name))))),ut=="hide"&&(He==null?void 0:He.studying)&&Re&&Ce.createElement("div",{className:`${x.movebq} user-path-items`,onClick:pe=>{pe.stopPropagation(),Qe(He)}},Ce.createElement("i",{className:"iconfont icon-yichu1 font12"}),Ce.createElement("span",null,"\u79FB\u9664")),!["collect","payed"].includes(ut)&&Re&&Ce.createElement("div",{className:`${x.hiddenbq} user-path-items`,onClick:pe=>{pe.stopPropagation(),at(He)}},Ce.createElement("i",{className:`iconfont ${ut=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Ce.createElement("span",null,ut=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),Ce.createElement("div",{className:x.name},Ce.createElement(Le.Z,{title:Ge&&(He!=null&&He.excellent_alias_name)?Ce.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Ut}`,Ce.createElement("br",null),Ce.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${He==null?void 0:He.excellent_alias_name}`)):Ut},Ce.createElement("span",{className:x.e},Ge&&(He==null?void 0:He.excellent_alias_name)||Ut))),Re&&et&&((ot=He==null?void 0:He.progress)==null?void 0:ot.all_score)!=0&&Ce.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Ce.createElement(Je.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Zt=He==null?void 0:He.progress)==null?void 0:Zt.my_score)/((zt=He==null?void 0:He.progress)==null?void 0:zt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(tt=He==null?void 0:He.progress)==null?void 0:tt.my_score,"/",(Nt=He==null?void 0:He.progress)==null?void 0:Nt.all_score),(!Re||!et)&&Ce.createElement(Le.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${_t}`},Ce.createElement("div",{className:x.unit},Ce.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),_t)),(!Re||!et)&&Ce.createElement("div",{className:x.tags},Ce.createElement("div",null,Ce.createElement(Le.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Ce.createElement("span",null,Ce.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Ce.createElement("span",null,He.stages_count))),Ce.createElement(Le.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ce.createElement("span",null,Ce.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Ce.createElement("span",null,He.members_count)))))))})),!Me.length&&Ce.createElement(fe.Z,null)))}},82636:function(Vn,Mt,ae){"use strict";ae.d(Mt,{jL:function(){return ze},w9:function(){return tt},QD:function(){return Qn},cQ:function(){return it.Z},op:function(){return lt},O5:function(){return Lr},_b:function(){return It},t7:function(){return Ee},Gi:function(){return _t},YG:function(){return kt},qp:function(){return Oe},vr:function(){return un},qE:function(){return wn},Je:function(){return Qe},wb:function(){return Ot},cq:function(){return ee},tp:function(){return Fe}});var x=ae(59301),ct={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},Le="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4XsaKMTTsiwDKVXZjm1qsgRBU84TXi5VXqo24/syP5ce2xEg0gBDeAZWFijo79JnpLQxXSo7iICiIyD8qUfdxuQRRx24x5MvB95uBzfW1G+XFn4GoMMojQNOYWUK45b+jG9mW+PvFNAKEkqVYgI583VZcOB7WRrCqGwiaQovU1lAlaXKM/BMQNIGbN0FLGh0lySCVv0OP3aPOnKf2a2XCm+3ghuc1AvzOdwmLSwIwkQlBoxMtgZYCkvwQLafBYo0l2v6gBcCxRxQyifwM9PckRCniXIGbjo8wiI4bgnRRFul0XAZMABbaggVoytvo12vff7Qt/Rc8LqBm5jQndrBr3MFHOwyemaJbGaaAKzMp00zV2O+6VVnSTCPcYCNdrItEGAOcKxpVUQKLjPZ6VHVgEuf3Kf/rLk0Y4ViTpiAEUYKJaEgVDg2OTq1+j3r5w68FHi7TXFDU/El1Yr8VLudDM4IjUpLVWW2Mg0GgubybATNfN/0C5+eqjQ9oO0ngAmR0ZF5X2bKjLRZBUFgNE03AKhcPqk62wJsm+qjvyM4Aa0idFN1zcmvHraq90uvObihqej4YsH6nzCEyHwRB0WFZeZJ05xupsZSp6sty+2mXX2a/5rP0fT8MAHRZpmWph48J38zi6xUF1Vqft9KAg2BES6PmyChGGFTBVJ1kb/dq7XeeuTBs0deLLxXrLhHn2nP6+4s3Gk7Yl6Q5mpZMMjAGWjT0o+dgkR6BVnUzJSW2PpzhpHVqIygdPiEET3rzwiHP2QCSlrjUm1epE0el+R1/E6SmjDa2nGEat5Bu9089bC9O7/1moDT0GJkMv5eR6f1oVY7MRfjp2SiNgOO5pkFBpnkadmD/qflRrAtiUrBhJFdPnauJhI6SU6noXSyb2BmUZUqzYKEqSSSZ6SUSU34WagYVUsg9N27R7DtkONWrmRcf8HHK1Lc4EjrqHJn6ZdxBIsXkXU2MqVZqU/ja5ZU/MyWR5/Bps1/wfD2p+G7TUy1QziWRHfZgVXsREd3H1YtnoW+vl709nSjv7f0V4MwPnRaRUGlxSm8rG7N0pAMlim/CE4Jk+tRbTxmAoYK4Qit/Mhb9/a9eze9ILW/YQwv5jvmM/fcs720YMnMDeWStabtJrmVUVaqtsy3sRqgAm+96yH85qbb4DZqWNjfi57uHlRKJViWjSCM0Wr5aDRaqDebqDeaqLkRLFugp7OIQudMrFn+JvT3z8Ee8+dgVldxp+tkpUB42ZZgqLrEnyUq89MkODkunjVVoREFMao5G367een6lZ2fejEQXrbiBgbbn+qZUbyETcWs2KZ/Ynsoi6aMgEPjLVz6Xz/B1OjT2P8tyzB7Zm/i6IMQYRghDGk2ielkLaKIPiiM4PshGk0XzWYDU40a6m6Ickmi3N2Lt+y1B5a+eQ+sXLIQM7rLxi1QiR47I2l3xPizFFyitsQnmqhq8juNks1go2BrDRG4WwMv3veItT1TLwTvZYH7w0NP9y7sn3NPqSgXMiCYRuNz1MbE9eEnRnDhpVdh1fxu7L1iCYIwghcECKMYUfaMY4Rh8jogxJgQNQjP+CECpUK4H8bwPR8tgmzW0Ao8lEsW+vrn4sA1S7Fs2VKsXDIP1UrO3BymMD7PEwvj6wJjnjTTJFAEsUJOJj4y8iMUWIfE8bp1Kzs2virgtg23PtHTV7os9JI0wASFNPWg4vI54LGBMZz/je/i71YvQv/sWXA9D2EYIooiAzCOYoRxDM/z4Xo+PC+Az2MR31NpkU4fpKGUQKRkoiSCjCSiSCAKVPLddgON9hQsK0TXjA7su3YVDjt0Hdbu82ZzbQYgVZb6OJOW0GQjZW54XtACInTkHXjt5kXr9+r4zG4Hd/bZZ8uTTz1rY7liHxiHiR9h+sFAQHNxJMulCGed/x2jtHlv6ofruogILaZpEl6MIAiML2u1XQRhaIDxeKZGqoEAObgoTkBGkUp7bvRRfC0QRpZRkYqk6SjHcYDQryNXVNj/oLX4yIc/iMULZyVVSFr0GxVmlQWDg0xSFG5j372rV1fXr1wpdhldX7Kpbn2mtbqrs7jRkqLIC6VDzgIBwZUKwGXfuwFjA49g331WoO26CSwDh/BieK6HyakaPM9LTZbv0WQJL0r2o9ioMkhN2gDka0JkDhYpExW1FtCQEMKGlg6gbWhTxjPFaKBvZgUfP/njOHz9WrRS5QXG9AkvzeXoHxXrVw0n9puxEm8+dGVlaFeqe8ngBifiT1Y65aUha7+0+M7Sj0IeeOixYXznO1fiHQfvY1REs4wiBoIAcRQZkBOTk/B9P1GSCRBBoraQn/dTmDxOiATGLV+nioxjA49wINjAY4YtIaQFwX1hQYtkn/AtW+Okfzsdf/+OA9H2Uj+XdoiZltBebaGh2a9DrONYvfdtK8q/2L3gaurXxaI4WqUJJH2ETTPltVsaX73wvzG7IjGrrwce4RhoieKCMMDY+LiBZ2AwGJjAQKg0Sx6jCrWBmQAlTJo3vx+ZvIvOXLBEEAJCMPFNQrkBBwnNfcuGMFAFlIqRyxdw+he/gv1WL0PDTftzSicd41jBYaURa/SUHLTrjc+vX9mxy47JS1LcpoGB4qKOuZvzebFMpyUPT0BoTD023P0wfvWL67DfPsvhut4O80z8Woip+hQma41UWVQRDMwEXIQ43Se4OApSYEAYeAijwADSmp1RghPGt3Kb5MMJxEx9VJ2QNu8mYNlQUYj+hUtx9nnnolIpw83KrrSSMOCURmfOQejWr37bis6P7DbFba/ptZal77SlyPFy6WC5ZedBKYWLLrkKs6oOCvl8AoR+zWwjeL6L4dFRuJ5CEGpTsEeBQBD4iFWMWEWIwjpU6Ca+kNswNll+zCgECSkcKM02CQtS/nK0oxPDFDzRIYFSfYRIcFRfzgDktRz7z5/E8Scci7ar0g4xc0aePen0VaSAiLxHutVTe6/cRfn1khQ3OBEdU6xYv4oZbzjJopJISrX96aFtuOaH12D5ogXw/QABVZQFhCDC5NQ4xienEIQCbijh+RKTvXPhVYrIPTGAXLOOOJ4AwhAxzTKomTTEdHy1l/guc5voWTmXSPWFSVAwf7FRH83YuD5jxgQooS3HqE9Bomf2fJx9wcXo7KjAp3swLSZApjPeJUvDioLBkttYvHZtf/v5VPeSwD09Fp9Z7pDnEhzvD1MEqo2d2ut+swEPbr4fM3p7jIqYbhjlBKHxdcMjQ0ZtXmjDbSsMLFqJx048AWDWv/kvWPjNy2DXB5hXAHEIpZqwZNVct1INSFkyoJRyE1g6hjaFnp2IDyrxezqFaMClHQdjsjljsrzuk8/4Cg46ZF9zPQYc05k0qpYswFH+uCW9VYcsm7F994CbiL5fKlkf4lyC1nSswnRlWcBfftVP0RgZRqGQR2jKKd/4JZrpxOQExicmEIQWvDCHhu9gyz99FN76VQCt0AZmnnUxSg/cAUuGEKoJaBdSZjVpBCk7EnDahxRlKHCfjbccNPMis29mWSGMH6TqNKQxWStJVayccQvrjv4ATj7lRLTcpL1k2kym0GUJJlASvuvo6JADV3RtfsngbtXa3gsoBA3k3Rakb8GtiuiaUtk+xveUqRjoU9gmKuYFLr/yGkwMjSBH5xrQ4dNPBaYiGBwehOu24QUCXuhgSnTjsTPOQDxvRjqjrNB31tdRfvwB5O0cEI9BaA9SVhCpGqA56+NAa/oIC5AER2XlmfdDhT60FLBoxlYAof0UnjLukAo1arPyxhev2vcAnHbWOSaJNmWe6elRCAm4TukrS0XvOGivrt+9aHDba8GaQt56r4A8XADztYIVKgimXH6M7iDUebackzJLIm8LlIsSP/jRz/HU1ieQcywDLnHwAWq1BsbGR5M6lYrzJEZmLsHw5z8LlOm0AWwfQ885X0Ol/oypHRFPwpZF2FYXwngEgoBEHpEaNwpTyJsqROsCgupMtFeshLt8Oap/ug8d998CKQgvgICfRFppm/QEBAdg1oIlOOMrF6BcLsAPlCnHIjPvClQcgW4nhFThPxy8ovPXLwjugaGh8uxyzwXlvPOxsoPC9PUaZpYoLZobHtAMtAEhoVDKSXSUHdy+YSN+d9MGFKm4NK0gwKHhUTSaNZPL+ZEFzwXGVrwNk6edlkDjHMLmrei78DzkLR8W18qoEUiRgxR5xKoJ2+ox4EJVh5B9UDqPel8vWgccAW/Naug5Myk84OkJzDn3FOTbIwacFASXJMSC/XOZhxISHTP6ceZ5F6GzuxNekEb5IKlIOvISvU7AhPiog5ZVbtgluE0DurigHPx4RnfunXQXbNJm8wEZQAYCphDs99c9YMqDKbALtjJNyNGRQVx++dWwtDA5GHMyz/ewfXAYntdE4AfwjFkINHsXY+JzXwPmdptGXunKH6D79uuRzxVhqwBKDSFnzTTRNIrHIQXz+RAxTVF1obFqPcY/ehLQVU2CLG+AApwNGzHjR99GTk0Bqg0pvCQ9sRxIY6o5aGmjWOnCmed/A70zZ8INmCpxbGwoAF0Fgd5cEBVkfNj+Szvu2CW4rUPumTN6C+faCijwxqTTeNmXssV+bM1w9oiqm2wToELgt1AtSHQULVxzzU/w5/u2mKUMcRCg3W7hmeFhBF4rKaPY6WDGJDrQnrcUrdX7wRkcQuXe22HHU7CFgDT+zE/AKR9au7CsPkSqAWWiaieG3nkCvPe9G+DSGQrqwUdRuHUjylvvQS4ahaObELoBAVqFSCsJzto4Jkg4OQdn/sd/ord/Plw/MtAIj5Y1oywxq+DXrThae8CKzq3PC+6ux4dndRZ67uut2nM68sn6jWxtx/QvZebKiWKCq7WAmtm2IZSPGR0FjI9uxxVXfB+tqTokYgNu++AQVOSZ1EErunSWRBXTyYASkLIAbdGnMBhI6Lhu5COlA61Ck39JUTHRVAtO73ej0TMbEyeeBj1vjlGauP8RVL7/A+SDQdiowVF1SN02UVaa2fAkl2NU5TNnC5z+5QswY/5iuG4EN1KmhtWxwNwuBws7w+G85S1ftaBr8nnB3f1Y8/hqtfzDzhzQU0qm0v4WOLam6ecIjl2GWhuYaFF5IcamJtFZtNDX4WDzvZvxv9dej9BzoaIIo+Oj0FEAzSxfhyYSa50W5iAU20RNafIuwmol/k0yGPAGJJ0OZSJqHkqWEcU22vPegua/nAR0dxvVWZv+iI6fXomcrsNRDWhNU9UmAWZoVVYOgsFBOCjlLXzqjC+ia+6eaHsRmp5GMScxu8NCf4eF7qKIRBQ8mnfkz4PQ/83SuX/d2BSbHmne3Fktv72vDHQUEsWxGnjuIwPH3hf93FQbGKnTXDUeGhiCFDFmVHPoKlu49dYN+O1vb4alYozXpqBjggvNBHDyYIHDhJVQ+IiSYolFuXHqBQhGT+VCWiUTGaOYQIuIhYWQ34tLcBeugH/ch4DuXmBkEJXvXoB8ewwWXGiT77GWSBoA9G9cKBcLB92dFZx02umI8r0m9Vszv4QVsx10FYUZu7GuNHeuN1XkB9FN7Xbwmb0XVh/KuIhNWwOvs2Tn+6rCZAecITezU9PWc5i0Ml0JZKbfwsTHDU0Bky6wYcs20w7qrThGeaW8xJ0bN+HW2+5Eo9k0lQT9jWkEMVHl2dnhoNp4VLBc4uI4JrKRAcgEO7HDXFLQE64oGNz0k0pUkvUhCxZDrz4A4tEHkXvwLtgihNSJa0gEQNfAXp0NZTnGVSxeuADHHHcCpJXD+9f0YcUc2zRgn6sXnr9O3yeBlqeGJyfDE1cvKlxvkuvfP6512QF6y8kCFwYHllHZsgSezAwh7ZhyPIRHH/fMJDDWAn72x8dQb7XRVbZNoKgWLBRyAvfe/wBuuf0u1CYnIWVaQ9K5pRMrdNw8v5khM2rjZ2iYVGJWfxJunJbwBGjm0kx6ohj/zQpryyS82lKQpopgI0AnLodmaop9C4rVAwTWH3wgluy9Fh/cbxbWLSqa6idbJfpcS3PNupNkQnuioVrDk976I1eV7xW3b2lvL5eKczoLQKWQrIqk6rIeWwYuWw1kymwFTLaAgQlgsK5xxa1bUGu66ChYqOSpXMss4Ms5EtsGnsatGzahMTaWhutsLWsaug2s7F5nix7S/CKZ/08L+7RlZMqpDJ4hk62JShWbLj805Ve2II9zlCbJQqW7C/sftA4HrZiPUw/vRweD7S7A0a/XXW1SsLYSeGpIbxiZeOpIccufG8dVOys/5r2o5JNVQaw9WUrxhDRbk46k62/5moobbySKu397gK/9ZgsKFlDNSZQJzhHI2xKOJVDISTRbbfzpwS0YePxxxL73rJzNwNJZ62yG2dzydNlOUqVnK4PTdpKRWLqfLe/JPpO9nuZnTFRNyFj5Apbtswr5rpn4wpELcPiyqhHKrhTHsTJ4TLnCWNdgA3Dr/lHiuo2j1XJf7x2VvNiHTbZyBs9OA8U02zcTMjKJrsNTwEgT+NE9ow9864Ytt/dVZVDNW6LsSBT5XUsgZ7P7L5BzbDPX+qeHH8HAlr+YZQeJjSWpwk4P2pdhk05mcHfHa3YyzXKa9GD6mez9hOiOhHjHwjzzOzZ65s3B/D2XolSt7nnh+5a9a0mfZcZLkTz3MrJronVxoQ+ziPEWsL3GXDZ60NjIr/6sjynk8EsHEPRxDBK8E1ztw+k+njhHFTqJCTMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",ze=({dataSource:tr=[],img:Xn,imgWidth:mr=346,title:Qr,sunTitle:ii,bannerExtraContent:ai})=>x.createElement("div",{className:ct.banner},x.createElement("div",{className:ct.content},x.createElement("aside",null,x.createElement("p",null,x.createElement("b",null,Qr),x.createElement("span",null,ii)),tr.length>0&&x.createElement("div",{className:ct.btns},tr.map((oi,li)=>x.createElement("div",{key:li,onClick:oi.click},oi.name,oi.sign?x.createElement("img",{src:Le,width:39}):null))),ai),Xn&&x.createElement("img",{style:{marginTop:33,marginRight:38},src:Xn,width:mr}))),Se={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},Ue=ae(92310),fe=ae.n(Ue),Ce=ae(89392),Oe=({dataSource:tr=[],value:Xn,onChange:mr,onTitleChange:Qr,className:ii,title:ai,titleWidth:oi=41,style:li={},fontColor:ji="#6A7283",showCount:ki})=>{const[or,Hr]=(0,x.useState)(1),[Bi,Yt]=(0,x.useState)(!1),rn=(0,x.useRef)(null),fn=(0,x.useRef)(null);return(0,x.useEffect)(()=>{var Pt;tr.length!==0&&(((Pt=rn==null?void 0:rn.current)==null?void 0:Pt.clientHeight)>97?Hr(1):Hr(0)),tr.length===0&&Hr(0),Yt(!1)},[tr]),x.createElement("div",{className:fe()(Se.row,ii,"fadeIn","animated"),style:li},x.createElement("div",{onClick:(0,Ce.throttle)(()=>Qr==null?void 0:Qr(),2e3),style:{width:oi,marginTop:Bi?12:4},className:`${Se.title} ${Qr?"current":""}`},ai),x.createElement("div",{className:Bi?`${Se.tagsWrap} ${Se.tagsBorderWrap}`:Se.tagsWrap},x.createElement("div",{className:Se.bar,ref:fn,style:or>0?{height:or===1?97:"auto",overflow:or===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},x.createElement("div",{className:Se.tag,ref:rn},tr==null?void 0:tr.map(Pt=>x.createElement("span",{onClick:()=>mr(Pt.id),key:Pt.id,style:{color:ji},className:Xn===Pt.id?Se.active:""},x.createElement("span",{title:Pt.name,className:Se.name},Pt.name),!!ki&&x.createElement("span",{className:Se.num},Pt.count))))),!!or&&x.createElement(x.Fragment,null,or===1?x.createElement("div",{onClick:()=>{var Pt;Hr(2),((Pt=rn==null?void 0:rn.current)==null?void 0:Pt.clientHeight)>245?Yt(!0):Yt(!1)},className:Se.action},"\u5C55\u5F00",x.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):x.createElement("div",{onClick:()=>{fn.current.scrollTop=0,Hr(1),Yt(!1)},className:Se.action},"\u6536\u8D77",x.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},ve={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Fe=({dataSource:tr=[],value:Xn,onChange:mr,className:Qr,style:ii={}})=>x.createElement("div",{style:ii,className:fe()(ve.tabs,Qr)},tr.map(ai=>x.createElement("span",{onClick:()=>mr(ai.id),className:Xn===ai.id?ve.active:"",key:ai.id},ai.name))),Te={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},ye=ae(37568),Ee=({dataSource:tr=[],value:Xn="",onChange:mr,onInputChange:Qr=()=>{},className:ii,style:ai={},placeholder:oi,allowClear:li=!1})=>{var ji;const[ki,or]=(0,x.useState)(""),[Hr,Bi]=(0,x.useState)("");(0,x.useEffect)(()=>{var fn;let Pt=Xn;(fn=JSON.stringify(Xn))!=null&&fn.includes("{")&&(or(Xn.id),Pt=Xn.value||"");try{Bi(decodeURIComponent(Pt||""))}catch(en){Bi(decodeURIComponent(Pt||""))}},[Xn]);const Yt=()=>{mr(encodeURIComponent(Hr),ki||null)},rn=fn=>{fn!==ki&&(or(fn),mr(encodeURIComponent(Hr),fn))};return x.createElement("div",{className:fe()(Te.input,ii),style:ai},!!tr.length&&x.createElement("div",{className:Te.dropdown},x.createElement("div",{className:Te.text},(ji=tr.find(fn=>fn.id===ki))==null?void 0:ji.name,x.createElement("i",{className:"iconfont icon-zhankai4"}),x.createElement("b",{className:Te.b1}),x.createElement("b",{className:Te.b2})),x.createElement("div",{className:Te.menu},tr.map((fn,Pt)=>x.createElement("div",{key:Pt,onClick:()=>rn(fn.id)},fn.name)))),x.createElement(ye.default,{onPressEnter:Yt,value:Hr,onChange:fn=>{Bi(fn.target.value),Qr(encodeURIComponent(fn.target.value),ki||null)},placeholder:oi,variant:"borderless",allowClear:li,onClear:()=>mr("",ki||null)}),x.createElement("i",{onClick:Yt,className:"iconfont icon-sousuo9 font14 current"}))},ke={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},Qe=({value:tr,onChange:Xn,className:mr,total:Qr,pageSize:ii,style:ai={}})=>{const oi=tr<2,li=tr>=Math.ceil(Qr/ii);return Qr<=ii?x.createElement(x.Fragment,null):x.createElement("div",{className:fe()(ke.quickPager,mr),style:ai},x.createElement("div",{onClick:()=>{oi||Xn(tr-1,"prev")},className:oi?ke.disabled:""},"\u4E0A\u4E00\u9875"),x.createElement("div",{onClick:()=>{li||Xn(tr+1,"next")},className:li?ke.disabled:""},"\u4E0B\u4E00\u9875"))},Re={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},et=ae(29787),Ge=ae(25399),ut=ae(63139),at=ae(74128),ft=ae(65862),bt=ae(96908),He=ae(57177),pt=ae(81378),Ne=ae(2524),Ot=({className:tr,dataSource:Xn=[],col:mr=4,right:Qr,bottom:ii=23,precision:ai=0,wrapWidth:oi=1200,trackEventItems:li,loading:ji})=>{const ki=Math.floor((oi-(mr-1)*Qr)/mr);return x.createElement(et.Z,{spinning:ji},x.createElement("div",{className:fe()(Re.list,tr)},!!Xn.length&&Xn.map((or,Hr)=>{const{name:Bi,id:Yt,identifier:rn,power:fn,cover_image_id:Pt,pic:en}=or;return x.createElement("div",{className:Re.wrap,key:Yt,style:{width:ki,marginRight:(1+Hr)%mr===0?0:Qr+ai,marginBottom:ii}},x.createElement("a",{target:"_blank",href:`/shixuns/${rn}/challenges`,className:Re.li,onClick:Kt=>{Kt.preventDefault(),li&&(0,ft.L9)([li]),fn&&(0,ft.xg)(`/shixuns/${rn}/challenges`)}},x.createElement("div",{className:Re.img},x.createElement("img",{className:Re.cover,src:`${en}`}),or.is_jupyter&&x.createElement("img",{className:Re.sign,src:bt}),or.is_jupyter_lab&&x.createElement("img",{className:Re.sign,src:He}),or.is_unity_3d&&x.createElement("img",{className:Re.sign,src:pt})),x.createElement("div",{className:Re.name},x.createElement(Ge.Z,{title:Bi||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},x.createElement("span",{className:Re.e},Bi||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),x.createElement("div",{className:Re.tags},x.createElement(Ge.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},x.createElement("span",null,x.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),x.createElement("span",null,or.challenges_count))),!!or.myshixuns_count&&x.createElement(Ge.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},x.createElement("span",null,x.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),x.createElement("span",null,or.myshixuns_count))),x.createElement(Ge.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},x.createElement("span",null,x.createElement("span",null,or.level))),x.createElement("div",{className:Re.rate},x.createElement(ut.Z,{allowHalf:!0,disabled:!0,defaultValue:or.score_info}),x.createElement("span",null,"\xA0",or.score_info?`${or.score_info}\u5206`:"5\u5206")))),!fn&&x.createElement("div",{className:Re.lockWrap},x.createElement("img",{src:`${at.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),x.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Xn.length&&x.createElement(Ne.Z,null)))},it=ae(61584),ht={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",hidden:"hidden___NniIi",wrap:"wrap___pKgcW",btnsTop:"btnsTop___Lrm6T",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Bt=ae(62957),We=ae(96599),_e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",ot=ae(59301),Zt=(tr,Xn,mr)=>new Promise((Qr,ii)=>{var ai=ji=>{try{li(mr.next(ji))}catch(ki){ii(ki)}},oi=ji=>{try{li(mr.throw(ji))}catch(ki){ii(ki)}},li=ji=>ji.done?Qr(ji.value):Promise.resolve(ji.value).then(ai,oi);li((mr=mr.apply(tr,Xn)).next())}),tt=({className:tr,dataSource:Xn=[],col:mr=4,right:Qr,bottom:ii=23,precision:ai=0,wrapWidth:oi=1200,trackEventItems:li,loading:ji,category:ki,hiddenClick:or,handleVery:Hr=()=>!0,isCurrent:Bi})=>{const[Yt,rn]=Bt.default.useModal(),fn=Math.floor((oi-(mr-1)*Qr)/mr),Pt=en=>Zt(void 0,null,function*(){Yt.confirm({title:"\u7F6E\u9876",width:500,content:ot.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",ot.createElement("span",{className:"c-blue"},"\u201C",en.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return ot.createElement(et.Z,{spinning:ji},rn,ot.createElement("div",{className:fe()(ht.list,tr)},!!Xn.length&&Xn.map((en,Kt)=>{const{subject_identifier:gn,id:On,identifier:Nr,power:Yr}=en,hi=en.is_public!=0&&en.is_public;return ot.createElement("div",{className:ht.wrap,key:On,style:{width:fn,marginRight:(1+Kt)%mr===0?0:Qr+ai,marginBottom:ii}},en.homepage_show&&ot.createElement("div",{className:ht.btnsTop},ot.createElement(We.default,{color:"red"},"\u7F6E\u9876")),ot.createElement("a",{className:ht.li,onClick:rr=>{rr.preventDefault(),Hr(en==null?void 0:en.first_category_url)&&(li&&(0,ft.L9)([li]),(0,ft.xg)(en.first_category_url))}},ot.createElement("div",{className:ht.top},ot.createElement(Ge.Z,{title:en.name},ot.createElement("div",{className:ht.name},en.name)),ot.createElement("img",{className:ht.img,src:at.Z.IMG_SERVER+"/images/"+en.avatar_url}),ot.createElement("div",{className:ht.text,title:en.creator},en.creator),gn&&ot.createElement("div",{className:ht.btns},ot.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ot.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),hi&&ot.createElement("div",{className:ht.sign},"\u516C\u5F00"),Bi&&ot.createElement("div",{className:ht.hidden,onClick:rr=>{rr.stopPropagation(),or(en)}},ot.createElement("i",{className:`iconfont ${ki=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),ki=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),ot.createElement("div",{className:ht.bottom},en.visits>0&&ot.createElement(Ge.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},ot.createElement("span",null,ot.createElement("i",{className:"iconfont icon-liulanyan"}),ot.createElement("span",null,en.visits))),en.course_members_count>0&&ot.createElement(Ge.Z,{title:"\u6210\u5458",placement:"bottom"},ot.createElement("span",null,ot.createElement("i",{className:"iconfont icon-chengyuan"}),en.course_members_count)),en.tasks_count>0&&ot.createElement(Ge.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},ot.createElement("span",null,ot.createElement("i",{className:"iconfont icon-zuoye"}),en.tasks_count)),en.is_end?ot.createElement("div",{style:{color:"#6B758B"}}):ot.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!en.is_accessible&&ot.createElement("div",{className:ht.lockWrap},ot.createElement("img",{src:`${at.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ot.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Xn.length&&ot.createElement(Ne.Z,null)))},Nt={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},Ut=ae(65582),kt=({dataSource:tr=[],value:Xn,onChange:mr,className:Qr,style:ii={},tabBarExtraContent:ai})=>x.createElement("div",{className:fe()(Nt.tabs,Qr),style:ii},x.createElement("div",{className:Nt.tabsWrap},tr.map((oi,li)=>!(oi!=null&&oi.hide)&&x.createElement("aside",{className:Nt.tab,onClick:()=>{mr(oi.id),oi.link&&Ut.history.push(oi.link)},key:li},x.createElement("div",{className:Xn===oi.id?Nt.active:""},oi.name),(oi==null?void 0:oi.resetCount)==null&&(oi==null?void 0:oi.total)!==void 0&&x.createElement("span",null,"\uFF08",oi==null?void 0:oi.total,"\uFF09"),(oi==null?void 0:oi.resetCount)!==void 0&&(oi==null?void 0:oi.total)!==void 0&&x.createElement(Ge.Z,{title:(oi==null?void 0:oi.tip)!=null?oi==null?void 0:oi.tip:""},x.createElement("span",{style:{color:"#9096A3"}},"\uFF08",x.createElement("span",{style:{color:"#000"}},oi==null?void 0:oi.resetCount),"/",x.createElement("span",null,oi==null?void 0:oi.total),"\uFF09"))))),x.createElement("div",{className:Nt.tabBar},ai)),_t=({className:tr,style:Xn={},children:mr})=>x.createElement("div",{className:fe()(tr),style:Xn},mr),Cn={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},an=ae(75727),de=ae(93041);const pe=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var ee=({sortValue:tr,dropValue:Xn,className:mr,onSort:Qr,onDrop:ii,dataSource:ai=pe})=>{var oi;return x.createElement("div",{className:fe()(Cn.orderWrap,mr)},x.createElement(an.Z,{dropdownRender:()=>x.createElement(de.default,null,ai.map((li,ji)=>x.createElement(de.default.Item,{key:ji,onClick:()=>ii(li.id)},li.name)))},x.createElement("span",{className:Cn.orderTextWrap},(oi=ai.find(li=>Xn===li.id))==null?void 0:oi.name)),x.createElement("span",{className:Cn.orderIconWrap},x.createElement("span",{className:Cn.orderAsc},x.createElement("i",{className:tr==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Cn.cursorPointer} ${Cn.active}`:`iconfont icon-sanjiaoxing-up font12 ${Cn.cursorPointer}`,onClick:()=>Qr(tr==="asc"?"desc":"asc")})),x.createElement("span",{className:Cn.orderDesc},x.createElement("i",{className:tr==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Cn.cursorPointer} ${Cn.active}`:`iconfont icon-sanjiaoxing-down font12 ${Cn.cursorPointer}`,onClick:()=>Qr(tr==="asc"?"desc":"asc")}))))},se={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},le=ae(7939),Be=Object.defineProperty,$e=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,mt=(tr,Xn,mr)=>Xn in tr?Be(tr,Xn,{enumerable:!0,configurable:!0,writable:!0,value:mr}):tr[Xn]=mr,Et=(tr,Xn)=>{for(var mr in Xn||(Xn={}))st.call(Xn,mr)&&mt(tr,mr,Xn[mr]);if($e)for(var mr of $e(Xn))gt.call(Xn,mr)&&mt(tr,mr,Xn[mr]);return tr},Lt=(tr,Xn)=>{var mr={};for(var Qr in tr)st.call(tr,Qr)&&Xn.indexOf(Qr)<0&&(mr[Qr]=tr[Qr]);if(tr!=null&&$e)for(var Qr of $e(tr))Xn.indexOf(Qr)<0&&gt.call(tr,Qr)&&(mr[Qr]=tr[Qr]);return mr},jt=(tr,Xn,mr)=>new Promise((Qr,ii)=>{var ai=ji=>{try{li(mr.next(ji))}catch(ki){ii(ki)}},oi=ji=>{try{li(mr.throw(ji))}catch(ki){ii(ki)}},li=ji=>ji.done?Qr(ji.value):Promise.resolve(ji.value).then(ai,oi);li((mr=mr.apply(tr,Xn)).next())}),lt=tr=>{var Xn=tr,{className:mr,style:Qr,children:ii,loading:ai=!1,openLoading:oi,onClick:li=()=>{},size:ji="middle",shape:ki="round"}=Xn,or=Lt(Xn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Hr,Bi]=(0,x.useState)(!1);return x.createElement(le.ZP,Et({onClick:(0,Ce.throttle)(Yt=>jt(void 0,null,function*(){oi&&Bi(!0);try{yield li(Yt)}catch(rn){console.log("error",rn)}oi&&Bi(!1)}),2e3,{leading:!0,trailing:!1}),className:fe()(se.btn,se[`${ji}-${ki}`],mr),style:Qr,size:ji,shape:ki,loading:Hr||ai},or),ii)},$t={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},wn=({className:tr,style:Xn,children:mr=null,onClick:Qr,title:ii})=>x.createElement("div",{className:fe()($t.head,tr),style:Xn},x.createElement("span",{className:"primary-hover",onClick:Qr},x.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),x.createElement("b",{title:ii},ii),x.createElement("div",{className:$t.node},mr)),ln={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},Qn=({confirmShow:tr=!0,confirmTitle:Xn,confirmClick:mr,cancelShow:Qr=!0,cancelTitle:ii,cancelClick:ai,className:oi,style:li,confirmLoading:ji=!1})=>x.createElement("div",{className:fe()(ln.btns,oi),style:li},tr&&x.createElement(le.ZP,{loading:ji,onClick:mr,type:"primary",className:ln.confirm},Xn),Qr&&x.createElement(le.ZP,{onClick:ai,className:ln.cancel},ii)),En={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},un=({className:tr,style:Xn={},LeftContent:mr,children:Qr,RightContent:ii})=>x.createElement("div",{className:fe()(En.fixedBottom,tr),style:Xn},x.createElement("div",{className:En.wrap},x.createElement("div",{className:En.left},mr),x.createElement("div",{className:En.center},Qr),x.createElement("div",{className:En.right},ii))),Dn={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},It=({className:tr,style:Xn={},dataSource:mr=[]})=>x.createElement("div",{className:fe()(Dn.crumbs,tr),style:Xn},mr.map((Qr,ii)=>ii<mr.length-1?x.createElement(x.Fragment,{key:ii},Qr.path||Qr.onClick?x.createElement("span",{className:Dn.hover,onClick:Qr!=null&&Qr.onClick?Qr.onClick:()=>Ut.history.push(Qr.path)},Qr.name):x.createElement("span",null,Qr.name),x.createElement("span",null,"\xA0",">","\xA0")):x.createElement("span",{key:ii,style:{color:"#5F6368"}},Qr.name))),Gt=ae(11938),sn=Object.defineProperty,yn=Object.defineProperties,Yn=Object.getOwnPropertyDescriptors,Br=Object.getOwnPropertySymbols,ti=Object.prototype.hasOwnProperty,Ur=Object.prototype.propertyIsEnumerable,Sr=(tr,Xn,mr)=>Xn in tr?sn(tr,Xn,{enumerable:!0,configurable:!0,writable:!0,value:mr}):tr[Xn]=mr,Jn=(tr,Xn)=>{for(var mr in Xn||(Xn={}))ti.call(Xn,mr)&&Sr(tr,mr,Xn[mr]);if(Br)for(var mr of Br(Xn))Ur.call(Xn,mr)&&Sr(tr,mr,Xn[mr]);return tr},gr=(tr,Xn)=>yn(tr,Yn(Xn)),kr=(tr,Xn)=>{var mr={};for(var Qr in tr)ti.call(tr,Qr)&&Xn.indexOf(Qr)<0&&(mr[Qr]=tr[Qr]);if(tr!=null&&Br)for(var Qr of Br(tr))Xn.indexOf(Qr)<0&&Ur.call(tr,Qr)&&(mr[Qr]=tr[Qr]);return mr};const{Countdown:Vr}=Gt.default;var Lr=tr=>{var Xn=tr,{onChange:mr}=Xn,Qr=kr(Xn,["onChange"]);const[ii,ai]=(0,x.useState)(null);(0,x.useEffect)(()=>{typeof ii=="number"&&ii>=0&&mr(ii)},[ii]);const oi=li=>{const ji=Math.floor(li/1e3);ai(ji)};return x.createElement(Vr,gr(Jn({},Qr),{onChange:oi}))}},31103:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return ct}});var x=ae(59301);function ct(Le,Je){const ze=(0,x.useRef)();(0,x.useEffect)(()=>{ze.current=Le}),(0,x.useEffect)(()=>{function Se(){ze.current()}if(Je!==null){let Ue=setInterval(Se,Je);return()=>clearInterval(Ue)}},[Je])}},27127:function(Vn,Mt,ae){"use strict";ae.r(Mt),ae.d(Mt,{default:function(){return ni}});var x=ae(59301),ct=ae(66649),Le=ae.n(ct),Je=ae(86129),ze=ae.n(Je),Se=ae(38147),Ue=ae(65582),fe=ae(62957),Ce=ae(6767),oe=ae(458),Oe=ae(91882),ve=ae(77019),Me=ae(5269),Fe=ae(7939),Te=ae(25399),ye=ae(37285),xe=ae(37568),Ee=ae(70858),ke=ae(82326),Ke=ae(31709),Qe=ae(27812),Re=ae(95869),et=ae(87169),Ge=ae(26227),ut=ae(74128),at=ae(41867),ft=ae(65862),bt=ae(42441),He={flex_box_center:"flex_box_center___KJUhi",flex_space_between:"flex_space_between____N4uH",flex_box_vertical_center:"flex_box_vertical_center___yOdsz",flex_box_center_end:"flex_box_center_end___seJB9",flex_box_column:"flex_box_column___ihHC5",title:"title___JSmnB",score:"score___ERcuI",export:"export___pgR1H",title1_right:"title1_right___MdWJo",userPic:"userPic___UeG3e",userInfo:"userInfo___TNu6l",listItem:"listItem___wdbM_",rightInfo:"rightInfo___Swqk5",shixunTitle:"shixunTitle___L2Tc4",shixunWrp:"shixunWrp___ZoaTc",footerBar:"footerBar___QW5rq",footerBarStatic:"footerBarStatic___CRq8b",exitComment:"exitComment___u4Rqt",nextComment:"nextComment___lvaID",modal:"modal___g3B3L",footer:"footer___eJCnt",pingjia:"pingjia___X_ooM",pj_close:"pj_close___PHP4h",pj_save:"pj_save___COfQy",fa:"fa____jywp"},pt={normal:{opacity:.8,shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",color:"#2e65ad"}};const Ne=({shixunHomeworks:er,data:Rn,globalSetting:Ar,loading:Ei,dispatch:Kn})=>{var vn;const{shixunWorkReport:$n}=er;let nr=((vn=Rn==null?void 0:Rn.efficiency_list)==null?void 0:vn.length)-parseInt(Rn==null?void 0:Rn.myself_eff[0]);const fr=()=>({title:{text:"\u5B66\u4E60\u6548\u7387",subtext:"\u5B66\u4E60\u6548\u7387=log(\u5B9E\u8BAD\u603B\u5F97\u5206/\u5B9E\u8BAD\u603B\u8017\u65F6)"},backgroundColor:"#fff",color:["#dd4444","#fec42c","#80F1BE"],grid:{left:"3%",right:"9%",bottom:"3%",containLabel:!0},tooltip:{showDelay:0,formatter:function(Ni){return Ni.name===$n.username?"\u59D3\u540D\uFF1A"+$n.username+"<br/>\u5B66\u53F7\uFF1A "+$n.user_id+"<br/>\u6548\u7387\uFF1A"+(Rn==null?void 0:Rn.myself_eff[1]):Ni.name+":"+Ni.value+" "},axisPointer:{show:!0,type:"cross",lineStyle:{type:"dashed",width:1}}},xAxis:[{type:"value",name:"\u5B66\u751F\u4F4D\u7F6E",nameTextStyle:{color:"#000",fontSize:12},scale:!0,axisLabel:{formatter:""},axisTick:{show:!1},splitLine:{show:!1}}],yAxis:[{type:"value",name:" ",nameGap:20,nameTextStyle:{color:"#000",fontSize:12},scale:!0,axisLabel:{formatter:"{value}"},splitLine:{show:!1}}],series:[{name:"",type:"scatter",data:Rn==null?void 0:Rn.efficiency_list,itemStyle:{normal:{color:"#2e65ad"}},markArea:{silent:!0,itemStyle:{normal:{color:"transparent",borderWidth:1,borderType:"dashed"}},data:[[{name:"\u5B66\u4E60\u6548\u7387\u5206\u5E03\u533A\u95F4",xAxis:"min",yAxis:"min"},{xAxis:"max",yAxis:"max"}]]},markPoint:{data:[{name:$n.username,xAxis:nr,yAxis:Rn==null?void 0:Rn.myself_eff[1],value:Rn==null?void 0:Rn.myself_eff[1]}],itemStyle:{normal:{color:"#c23531"}}},markLine:{lineStyle:{normal:{type:"solid",color:"#ff6800"}},data:[{type:"average",name:"\u4E2D\u4F4D\u503C"}]}}]}),zr=()=>({title:{text:"\u80FD\u529B\u503C",subtext:"\u80FD\u529B\u503C\uFF08\u5B9E\u8BAD\u83B7\u5F97\u7ECF\u9A8C\u503C/\u5B9E\u8BAD\u8BC4\u6D4B\u6B21\u6570\uFF09"},backgroundColor:"#fff",color:["#dd4444","#fec42c","#80F1BE"],grid:{x:"10%",x2:150,y:"18%",y2:"10%"},tooltip:{padding:10,backgroundColor:"#222",borderColor:"#777",borderWidth:1,formatter:function(Ni){var gi=Ni.value;if(Ni.name===$n.username)return"\u59D3\u540D\uFF1A"+$n.username+"<br/>\u5B66\u53F7\uFF1A "+$n.user_id+"<br/>\u5F97\u5206\uFF1A"+(Rn==null?void 0:Rn.myself_object[1])}},xAxis:{type:"value",name:"log(\u5B9E\u8BAD\u7684\u603B\u65F6\u95F4)",nameGap:16,nameTextStyle:{color:"#000",fontSize:14},splitLine:{show:!1},axisLine:{lineStyle:{color:"#000"}}},yAxis:{type:"value",name:" ",nameLocation:"end",nameGap:20,nameTextStyle:{color:"#000",fontSize:12},axisLine:{lineStyle:{color:"#000"}},splitLine:{show:!1}},series:[{name:"\u80FD\u529B",type:"scatter",itemStyle:pt,data:Rn==null?void 0:Rn.consume_list,symbolSize:function(Ni){return Math.round(Ni[2])},markPoint:{data:[{name:$n.username,xAxis:Rn==null?void 0:Rn.myself_object[0],yAxis:Rn==null?void 0:Rn.myself_object[1],value:Rn==null?void 0:Rn.myself_object[1]}],itemStyle:{normal:{color:"#c23531"}}}}]});return x.createElement(x.Fragment,null,x.createElement("aside",{className:"ml60 pr30"},x.createElement(ve.Z,null,x.createElement(Me.Z,{flex:"800px"},x.createElement(bt.Z,{style:{width:750,height:580},option:fr()})),x.createElement(Me.Z,{flex:"1"},x.createElement("aside",{className:He.rightInfo},x.createElement("ul",null,x.createElement("li",null,x.createElement("span",null,"\u59D3\u540D")," ",x.createElement("span",{className:"ml30"},$n.username)),x.createElement("li",null,x.createElement("span",null,"\u5B66\u53F7")," ",x.createElement("span",{className:"ml30"},$n.student_id||"--")),x.createElement("li",null,x.createElement("span",null,"\u5B66\u4E60\u6548\u7387")," ",x.createElement("span",{className:"ml30 c-orange"},Rn==null?void 0:Rn.myself_eff[1])),x.createElement("li",null,x.createElement("span",null,"\u5F53\u524D\u6392\u540D")," ",x.createElement("span",{className:"ml30 c-orange"},Rn==null?void 0:Rn.myself_eff[0]))),x.createElement("p",null,"1\u4E2A\u5C0F\u5706\u70B9\u4EE3\u88681\u4E2A\u5B66\u751F\u7684\u5B66\u4E60\u6548\u7387",x.createElement("br",null),"\u7EA2\u8272\u6C34\u6EF4\u8868\u793A\u5F53\u524D\u5B66\u751F\u7684\u5B66\u4E60\u6548\u7387\u503C",x.createElement("br",null),"\u5C0F\u5706\u70B9\u8D8A\u9AD8\uFF0C\u5B66\u4E60\u6548\u7387\u8D8A\u9AD8",x.createElement("br",null),"\u6A59\u8272\u6A2A\u5411\u7BAD\u5934\uFF1A\u4E2D\u4F4D\u503C\uFF0C\u8868\u793A\u6574\u4E2A\u8BFE\u5802\u5B66\u751F\u8868\u73B0\u7684\u5E73\u5747\u503C"))))),x.createElement("aside",{className:"ml60 pr30"},x.createElement(ve.Z,null,x.createElement(Me.Z,{flex:"800px"},x.createElement(bt.Z,{style:{width:750,height:580},option:zr()})),x.createElement(Me.Z,{flex:"1"},x.createElement("aside",{className:He.rightInfo},x.createElement("ul",null,x.createElement("li",null,x.createElement("span",null,"\u59D3\u540D")," ",x.createElement("span",{className:"ml30"},$n.username)),x.createElement("li",null,x.createElement("span",null,"\u5B66\u53F7")," ",x.createElement("span",{className:"ml30"},$n.student_id||"--")),x.createElement("li",null,x.createElement("span",null,"\u80FD\u529B")," ",x.createElement("span",{className:"ml30 c-orange"},Rn==null?void 0:Rn.myself_object[1]))),x.createElement("p",null,"1\u4E2A\u5C0F\u5706\u70B9\u4EE3\u88681\u4E2A\u5B66\u751F\u7684\u80FD\u529B\u503C",x.createElement("br",null),"\u7EA2\u8272\u6C34\u6EF4\u8868\u793A\u5F53\u524D\u5B66\u751F\u7684\u80FD\u529B\u503C",x.createElement("br",null),"\u5C0F\u5706\u5708\u8D8A\u5927\uFF0C\u8BC4\u6D4B\u6B21\u6570\u8D8A\u5C11",x.createElement("br",null)))))))};var je=(0,Ue.connect)(({shixunHomeworks:er,loading:Rn,globalSetting:Ar})=>({shixunHomeworks:er,globalSetting:Ar,loading:Rn.effects}))(Ne),Ot=ae(50258),it=ae(4875),ht=({defaultValue:er,onBlur:Rn,max:Ar,className:Ei="game-score",disabled:Kn=!1})=>{const[vn,$n]=(0,x.useState)(er);(0,x.useEffect)(()=>{$n(er)},[er]);function nr(zr){$n(zr)}function fr(){vn!==er&&Rn(vn>Ar?Ar:vn)}return x.createElement(it.Z,{max:Ar,min:0,className:Ei,value:vn,disabled:Kn,onChange:nr,onBlur:fr})},Bt=ae(25374),We={md:"md___TEmcT"},_e=ae(59301),ot=Object.defineProperty,Zt=Object.defineProperties,zt=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,Nt=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable,pn=(er,Rn,Ar)=>Rn in er?ot(er,Rn,{enumerable:!0,configurable:!0,writable:!0,value:Ar}):er[Rn]=Ar,kt=(er,Rn)=>{for(var Ar in Rn||(Rn={}))Nt.call(Rn,Ar)&&pn(er,Ar,Rn[Ar]);if(tt)for(var Ar of tt(Rn))Ut.call(Rn,Ar)&&pn(er,Ar,Rn[Ar]);return er},mn=(er,Rn)=>Zt(er,zt(Rn));const _t=ke.default.Option,Cn={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,enableSplitViewResizing:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1};var an=(er=>(er[er.SET_PATH=0]="SET_PATH",er[er.GET_PASSED_CONTENT=1]="GET_PASSED_CONTENT",er))(an||{});function de(er,Rn){switch(Rn.type){case 0:return mn(kt({},er),{selectedPath:Rn.payload});case 1:return mn(kt({},er),{passedContent:Rn.payload});default:throw new Error}}var pe=({path:er,game_id:Rn,onPathChange:Ar,autoHeight:Ei,diff_code_count:Kn,data:vn,game_codes_cn:$n})=>{var nr,fr,zr,Ni;const gi=er.split("\uFF1B").filter(Mi=>!!Mi),[Di,mi]=(0,x.useReducer)(de,{selectedPath:gi[0],passedContent:{language:"python",content:""}}),{selectedPath:Si,passedContent:wi}=Di;function Ci(Mi){mi({type:0,payload:Mi})}const yi={\u6700\u540E\u901A\u5173\u4EE3\u7801:"\u901A\u8FC7\u4E86\u672C\u9898\uFF0C\u5728\u4F5C\u4E1A\u65F6\u95F4\u5185\u6700\u540E\u4E00\u6B21\u63D0\u4EA4\u7684\u901A\u5173\u4EE3\u7801",\u6700\u65B0\u4EE3\u7801:"\u672A\u901A\u8FC7\u672C\u9898\uFF0C\u5C55\u793A\u6700\u65B0\u7F16\u5199\u7684\u4EE3\u7801\u8BE6\u60C5",\u622A\u6B62\u540E\u901A\u5173\u4EE3\u7801:"\u5728\u4F5C\u4E1A\u65F6\u95F4\u7ED3\u675F\u540E\u901A\u5173\u8BE5\u9898\u7684\u4EE3\u7801\u8BE6\u60C5"};return _e.createElement(_e.Fragment,null,_e.createElement("h2",null," ",_e.createElement("span",null,$n,_e.createElement(Te.Z,{title:_e.createElement("div",null,_e.createElement("div",null,"\u4EE3\u7801\u5C55\u793A\u89C4\u5219\uFF1A"),_e.createElement("div",null,"1.\u5C55\u793A\u5B66\u5458\u5728\u4F5C\u4E1A\u622A\u6B62\u524D\u5F97\u5206\u6700\u9AD8\u7684\u4EE3\u7801\u7248\u672C\u3002"),_e.createElement("div",null," 2.\u82E5\u6709\u591A\u4E2A\u6700\u9AD8\u5206\u7248\u672C\uFF0C\u5C55\u793A\u63D0\u4EA4\u65F6\u95F4\u6700\u665A\u7684\u7248\u672C\u3002"),_e.createElement("div",null," 3.\u4F5C\u4E1A\u622A\u6B62\u540E\u63D0\u4EA4\u7684\u4EE3\u7801\u5C06\u4E0D\u4E88\u5C55\u793A\u3002"))},_e.createElement("i",{style:{marginLeft:10,color:"#3061D0",fontSize:16},className:"iconfont icon-tishixiaowenhao"}))),Kn&&_e.createElement("span",{style:{marginLeft:"50px"}},"\u4EE3\u7801\u4FEE\u6539\u884C\u6570 ",Kn),_e.createElement("span",null,_e.createElement(ke.default,{style:{width:200},value:Si,onChange:Ci}," ",gi.map(Mi=>_e.createElement(_t,{key:Mi,value:Mi},Mi))," "))," "),(Si==null?void 0:Si.split(".")[1])==="md"&&_e.createElement(Bt.Z,{height:300,autoHeight:Ei,defaultValue:((fr=(nr=vn==null?void 0:vn.filter(Mi=>Mi.path===Si))==null?void 0:nr[0])==null?void 0:fr.content)||"",className:We.md}),(Si==null?void 0:Si.split(".")[1])!=="md"&&_e.createElement(Ot.ZP,{height:300,language:wi.language,value:((Ni=(zr=vn==null?void 0:vn.filter(Mi=>Mi.path===Si))==null?void 0:zr[0])==null?void 0:Ni.content)||"",autoHeight:Ei,theme:"default",isCopy:!0,options:Cn}))},ie=ae(33270),ee=ae(96249),se=ae.n(ee),le=Object.defineProperty,Be=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,gt=(er,Rn,Ar)=>Rn in er?le(er,Rn,{enumerable:!0,configurable:!0,writable:!0,value:Ar}):er[Rn]=Ar,mt=(er,Rn)=>{for(var Ar in Rn||(Rn={}))$e.call(Rn,Ar)&&gt(er,Ar,Rn[Ar]);if(Be)for(var Ar of Be(Rn))st.call(Rn,Ar)&&gt(er,Ar,Rn[Ar]);return er};const Et=er=>React.createElement("svg",mt({className:"scai_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},er),React.createElement("path",{d:"M512 327.68c245.76 0 445.44 153.6 445.44 348.16C957.44 870.4 757.76 1024 512 1024c-245.76-5.12-445.44-153.6-445.44-348.16 0-194.56 199.68-348.16 445.44-348.16z",fill:"#DBDCFF"}),React.createElement("path",{d:"M645.12 947.2c117.76-10.24 158.72-143.36 163.84-266.24 0-128-128-174.08-291.84-174.08-163.84 0-291.84 46.08-291.84 174.08 0 112.64 35.84 240.64 143.36 261.12 30.72 5.12 261.12 10.24 276.48 5.12z",fill:"#111ACC"}),React.createElement("path",{d:"M404.48 686.08c15.36 0 25.6 10.24 25.6 25.6v61.44c0 15.36-10.24 25.6-25.6 25.6-15.36 0-25.6-10.24-25.6-25.6v-61.44c-5.12-10.24 10.24-25.6 25.6-25.6zm220.16 0c15.36 0 25.6 10.24 25.6 25.6v61.44c0 15.36-10.24 25.6-25.6 25.6-15.36 0-25.6-10.24-25.6-25.6v-61.44c0-10.24 10.24-25.6 25.6-25.6z",fill:"#FFF"}),React.createElement("path",{d:"M916.48 527.36c56.32 0 107.52 71.68 107.52 153.6 0 87.04-61.44 153.6-117.76 153.6 0 0 51.2-76.8 51.2-158.72s-40.96-148.48-40.96-148.48zm-808.96 5.12-5.12 5.12c-10.24 20.48-35.84 76.8-35.84 138.24 0 76.8 35.84 138.24 51.2 158.72C61.44 834.56 0 768 0 680.96c0-81.92 51.2-148.48 107.52-148.48z",fill:"#8187FF"}),React.createElement("path",{d:"M512 0c20.48 0 30.72 15.36 30.72 30.72v220.16c0 20.48-15.36 30.72-30.72 30.72s-30.72-10.24-30.72-30.72V30.72C481.28 15.36 496.64 0 512 0z",fill:"#701CDC"}),React.createElement("path",{d:"M384 46.08c20.48 0 30.72 15.36 30.72 30.72v133.12c0 20.48-15.36 30.72-30.72 30.72s-35.84-15.36-35.84-30.72V76.8c0-20.48 15.36-30.72 35.84-30.72z",fill:"#371CDC"}),React.createElement("path",{d:"M645.12 46.08c20.48 0 30.72 15.36 30.72 30.72v133.12c0 20.48-15.36 30.72-30.72 30.72s-30.72-15.36-30.72-30.72V76.8c0-20.48 15.36-30.72 30.72-30.72z",fill:"#AB2FF0"}),React.createElement("path",{d:"M250.88 87.04c20.48 0 30.72 15.36 30.72 30.72v46.08c0 20.48-15.36 30.72-30.72 30.72s-35.84-10.24-35.84-30.72v-40.96c0-20.48 15.36-35.84 35.84-35.84z",fill:"#6D57F2"}),React.createElement("path",{d:"M778.24 87.04c20.48 0 30.72 15.36 30.72 30.72v46.08c0 20.48-15.36 30.72-30.72 30.72s-30.72-15.36-30.72-30.72v-40.96c0-20.48 15.36-35.84 30.72-35.84z",fill:"#C86FFA"}));var Lt="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik01MTIgMzI3LjY4YzI0NS43NiAwIDQ0NS40NCAxNTMuNiA0NDUuNDQgMzQ4LjE2Qzk1Ny40NCA4NzAuNCA3NTcuNzYgMTAyNCA1MTIgMTAyNGMtMjQ1Ljc2LTUuMTItNDQ1LjQ0LTE1My42LTQ0NS40NC0zNDguMTYgMC0xOTQuNTYgMTk5LjY4LTM0OC4xNiA0NDUuNDQtMzQ4LjE2eiIgZmlsbD0iI0RCRENGRiIvPjxwYXRoIGQ9Ik02NDUuMTIgOTQ3LjJjMTE3Ljc2LTEwLjI0IDE1OC43Mi0xNDMuMzYgMTYzLjg0LTI2Ni4yNCAwLTEyOC0xMjgtMTc0LjA4LTI5MS44NC0xNzQuMDgtMTYzLjg0IDAtMjkxLjg0IDQ2LjA4LTI5MS44NCAxNzQuMDggMCAxMTIuNjQgMzUuODQgMjQwLjY0IDE0My4zNiAyNjEuMTIgMzAuNzIgNS4xMiAyNjEuMTIgMTAuMjQgMjc2LjQ4IDUuMTJ6IiBmaWxsPSIjMTExQUNDIi8+PHBhdGggZD0iTTQwNC40OCA2ODYuMDhjMTUuMzYgMCAyNS42IDEwLjI0IDI1LjYgMjUuNnY2MS40NGMwIDE1LjM2LTEwLjI0IDI1LjYtMjUuNiAyNS42LTE1LjM2IDAtMjUuNi0xMC4yNC0yNS42LTI1LjZ2LTYxLjQ0Yy01LjEyLTEwLjI0IDEwLjI0LTI1LjYgMjUuNi0yNS42em0yMjAuMTYgMGMxNS4zNiAwIDI1LjYgMTAuMjQgMjUuNiAyNS42djYxLjQ0YzAgMTUuMzYtMTAuMjQgMjUuNi0yNS42IDI1LjYtMTUuMzYgMC0yNS42LTEwLjI0LTI1LjYtMjUuNnYtNjEuNDRjMC0xMC4yNCAxMC4yNC0yNS42IDI1LjYtMjUuNnoiIGZpbGw9IiNGRkYiLz48cGF0aCBkPSJNOTE2LjQ4IDUyNy4zNmM1Ni4zMiAwIDEwNy41MiA3MS42OCAxMDcuNTIgMTUzLjYgMCA4Ny4wNC02MS40NCAxNTMuNi0xMTcuNzYgMTUzLjYgMCAwIDUxLjItNzYuOCA1MS4yLTE1OC43MnMtNDAuOTYtMTQ4LjQ4LTQwLjk2LTE0OC40OHptLTgwOC45NiA1LjEyLTUuMTIgNS4xMmMtMTAuMjQgMjAuNDgtMzUuODQgNzYuOC0zNS44NCAxMzguMjQgMCA3Ni44IDM1Ljg0IDEzOC4yNCA1MS4yIDE1OC43MkM2MS40NCA4MzQuNTYgMCA3NjggMCA2ODAuOTZjMC04MS45MiA1MS4yLTE0OC40OCAxMDcuNTItMTQ4LjQ4eiIgZmlsbD0iIzgxODdGRiIvPjxwYXRoIGQ9Ik01MTIgMGMyMC40OCAwIDMwLjcyIDE1LjM2IDMwLjcyIDMwLjcydjIyMC4xNmMwIDIwLjQ4LTE1LjM2IDMwLjcyLTMwLjcyIDMwLjcycy0zMC43Mi0xMC4yNC0zMC43Mi0zMC43MlYzMC43MkM0ODEuMjggMTUuMzYgNDk2LjY0IDAgNTEyIDB6IiBmaWxsPSIjNzAxQ0RDIi8+PHBhdGggZD0iTTM4NCA0Ni4wOGMyMC40OCAwIDMwLjcyIDE1LjM2IDMwLjcyIDMwLjcydjEzMy4xMmMwIDIwLjQ4LTE1LjM2IDMwLjcyLTMwLjcyIDMwLjcycy0zNS44NC0xNS4zNi0zNS44NC0zMC43MlY3Ni44YzAtMjAuNDggMTUuMzYtMzAuNzIgMzUuODQtMzAuNzJ6IiBmaWxsPSIjMzcxQ0RDIi8+PHBhdGggZD0iTTY0NS4xMiA0Ni4wOGMyMC40OCAwIDMwLjcyIDE1LjM2IDMwLjcyIDMwLjcydjEzMy4xMmMwIDIwLjQ4LTE1LjM2IDMwLjcyLTMwLjcyIDMwLjcycy0zMC43Mi0xNS4zNi0zMC43Mi0zMC43MlY3Ni44YzAtMjAuNDggMTUuMzYtMzAuNzIgMzAuNzItMzAuNzJ6IiBmaWxsPSIjQUIyRkYwIi8+PHBhdGggZD0iTTI1MC44OCA4Ny4wNGMyMC40OCAwIDMwLjcyIDE1LjM2IDMwLjcyIDMwLjcydjQ2LjA4YzAgMjAuNDgtMTUuMzYgMzAuNzItMzAuNzIgMzAuNzJzLTM1Ljg0LTEwLjI0LTM1Ljg0LTMwLjcydi00MC45NmMwLTIwLjQ4IDE1LjM2LTM1Ljg0IDM1Ljg0LTM1Ljg0eiIgZmlsbD0iIzZENTdGMiIvPjxwYXRoIGQ9Ik03NzguMjQgODcuMDRjMjAuNDggMCAzMC43MiAxNS4zNiAzMC43MiAzMC43MnY0Ni4wOGMwIDIwLjQ4LTE1LjM2IDMwLjcyLTMwLjcyIDMwLjcycy0zMC43Mi0xNS4zNi0zMC43Mi0zMC43MnYtNDAuOTZjMC0yMC40OCAxNS4zNi0zNS44NCAzMC43Mi0zNS44NHoiIGZpbGw9IiNDODZGRkEiLz48L3N2Zz4=",jt=ae(48530),Ct=ae(95097),lt=ae(30214),$t=ae(77254),Wt=ae(27183),wn=ae(2524);const ln=({shixunHomeworks:er,classroomList:Rn,items:Ar,dispatch:Ei})=>{var Kn;const{shixunWorkReport:vn}=er,$n=(0,x.useRef)(null),[nr,fr]=(0,x.useState)(!1),[zr,Ni]=(0,x.useState)(!1);(0,x.useEffect)(()=>{if($n.current)return $n.current.addEventListener("mousedown",gi),()=>{var Di;(Di=$n.current)==null||Di.removeEventListener("mousedown",gi)}},[$n.current]),(0,x.useEffect)(()=>{setTimeout(()=>{$n.current&&$n.current.clientHeight>=500&&fr(!0)},500)},[(Kn=vn==null?void 0:vn.student_work_test_result_info)==null?void 0:Kn.content,$n.current]);function gi(Di){const mi=(Ci,yi)=>{if(Ci.localName===yi)return Ci;for(let Mi=0,eo=Ci;eo=eo.parentNode;Mi++){if(eo.localName===yi)return eo;if(eo==document.documentElement)return!1}},Si=Di.target,wi=mi(Si,"a");if(console.log([wi],wi==null?void 0:wi.href,44),!(wi!=null&&wi.href)&&Si.tagName.toUpperCase()==="IMG"){let Ci=Si.src||Si.getAttribute("src");Ci&&Ci.indexOf("/images/avatars/User")===-1&&(Di.stopPropagation(),Di.preventDefault(),$t.Z.publish("preview-image",Ci))}}return x.createElement("div",null,(vn==null?void 0:vn.is_open_submit_test_result)&&x.createElement(x.Fragment,null,x.createElement(lt.Z,null),x.createElement("strong",{className:"c-black font14"},"\u63D0\u4EA4\u5B9E\u9A8C\u7ED3\u679C"),Ar?x.createElement("div",{style:{marginTop:10},className:""},x.createElement("div",{className:"py-20px px-36px",style:{background:"#F6F7F9"}},x.createElement("div",{ref:$n,style:{maxHeight:!zr&&"500px",overflow:"hidden"}},x.createElement(Ct.Z,{value:Ar==null?void 0:Ar.content})),nr&&x.createElement("div",{className:"w-full current",onClick:()=>{Ni(!zr)}},x.createElement(ye.Z,{variant:"dashed",style:{borderColor:"#3061D0",marginBottom:"0px"},dashed:!0},x.createElement("span",{style:{color:"#3061D0"}},zr?"\u6536\u8D77":"\u5C55\u5F00")))),x.createElement(Wt.Z,{className:"px-36px",showDimensions:!1,dataSource:Ar==null?void 0:Ar.test_result_files,callback:()=>{}})):x.createElement(wn.Z,{customText:"\u5B66\u751F\u672A\u63D0\u4EA4\u5B9E\u9A8C\u7ED3\u679C"})))};var tn=(0,Ue.connect)(({shixunHomeworks:er,loading:Rn,globalSetting:Ar,classroomList:Ei})=>({shixunHomeworks:er,globalSetting:Ar,loading:Rn.effects,classroomList:Ei}))(ln),Qn=Object.defineProperty,En=Object.defineProperties,Rt=Object.getOwnPropertyDescriptors,un=Object.getOwnPropertySymbols,Dn=Object.prototype.hasOwnProperty,Wn=Object.prototype.propertyIsEnumerable,It=(er,Rn,Ar)=>Rn in er?Qn(er,Rn,{enumerable:!0,configurable:!0,writable:!0,value:Ar}):er[Rn]=Ar,Gt=(er,Rn)=>{for(var Ar in Rn||(Rn={}))Dn.call(Rn,Ar)&&It(er,Ar,Rn[Ar]);if(un)for(var Ar of un(Rn))Wn.call(Rn,Ar)&&It(er,Ar,Rn[Ar]);return er},sn=(er,Rn)=>En(er,Rt(Rn)),yn=(er,Rn,Ar)=>new Promise((Ei,Kn)=>{var vn=fr=>{try{nr(Ar.next(fr))}catch(zr){Kn(zr)}},$n=fr=>{try{nr(Ar.throw(fr))}catch(zr){Kn(zr)}},nr=fr=>fr.done?Ei(fr.value):Promise.resolve(fr.value).then(vn,$n);nr((Ar=Ar.apply(er,Rn)).next())});const Yn=({shixunHomeworks:er,autoHeight:Rn,classroomList:Ar,dispatch:Ei})=>{var Kn,vn,$n,nr,fr,zr,Ni,gi;const{shixunWorkReport:Di}=er,{stage_list:mi,work_id:Si,ai_code_evaluation_promote:wi}=Di,[Ci,yi]=(0,x.useState)(!1),[Mi,eo]=(0,x.useState)(!0),[mo,Yi]=(0,x.useState)({left:0,top:0,bottom:0,right:0}),Io=(0,x.useRef)(null),[Ri,ko]=(0,x.useState)(!1),[uo,Vo]=(0,x.useState)(""),wo=(0,x.useRef)(null),to=(vr,qr)=>{var Ao;const{clientWidth:Yo,clientHeight:Do}=window.document.documentElement,ga=(Ao=Io.current)==null?void 0:Ao.getBoundingClientRect();ga&&Yi({left:-ga.left+qr.x,right:Yo-(ga.right-qr.x),top:-ga.top+qr.y,bottom:Do-(ga.bottom-qr.y)})},bo=(0,Ue.useParams)(),Go=(0,at.GJ)(),Tn={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};(0,x.useEffect)(()=>{console.log(bo)},[]);const Lo=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"position",width:"100px"},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"output_detail",render:(vr,qr,Ao)=>x.createElement("div",null,vr,qr.is_work_end_evaluate&&x.createElement(ft.vA,{status:5}))},{title:"\u8BC4\u6D4B\u8017\u65F6(S)",dataIndex:"ts_time",width:"130px"},{title:"\u5185\u5B58\u6D88\u8017(MB)",width:"150px",dataIndex:"ts_mem"},{title:"\u8BC4\u6D4B\u65F6\u95F4",width:"170px",dataIndex:"created_at",render:vr=>Le()(vr).format("YYYY-MM-DD HH:mm")},{title:"\u64CD\u4F5C",width:"80px",dataIndex:"query_index",render:(vr,qr)=>x.createElement("span",{className:"c-blue current",onClick:()=>yn(void 0,null,function*(){var Ao,Yo;const Do=yield(0,ie.Lk)(qr.game_identifier,{path:(Yo=(Ao=qr.path)==null?void 0:Ao.replace(/\/g,";"))==null?void 0:Yo.split(";")[0],query_index:qr.query_index,homework_common_id:bo.categoryId});(Do==null?void 0:Do.status)===0&&(ko(Do),yi(!0))})},qr.query_index?"\u67E5\u770B\u4EE3\u7801":"")}],Vi=[{title:"\u8C03\u5206\u7528\u6237",dataIndex:["user","name"],width:350,render:(vr,qr)=>{var Ao;return x.createElement("span",null,x.createElement("img",{width:30,height:30,style:{borderRadius:"50%",marginRight:"10px"},src:ut.Z.IMG_SERVER+"/images/"+((Ao=qr==null?void 0:qr.user)==null?void 0:Ao.image_url)}),vr)}},{title:"\u8C03\u5206\u524D",dataIndex:"old_score",width:270,render:vr=>x.createElement("span",null,"\u4FEE\u6B63\u524D\u5206\u6570\uFF1A",vr,"\u5206")},{title:"\u8C03\u5206\u540E",dataIndex:"score",width:270,render:vr=>x.createElement("span",null,"\u4FEE\u6B63\u540E\u5206\u6570\uFF1A",vr,"\u5206")},{title:"\u8C03\u5206\u65F6\u95F4",dataIndex:"created_at",align:"right",render:vr=>x.createElement("span",null,"\u4FEE\u6B63\u65F6\u95F4\uFF1A",vr?Le()(vr).format("YYYY-MM-DD HH:mm"):"--")}];function Mr(vr,qr){return yn(this,null,function*(){const{challenge_id:Ao}=mi[vr],Yo=yield Ei({type:"shixunHomeworks/changeScore",payload:{categoryId:bo.homeworkId,type:"report",score:qr,challenge_id:Ao}});yield Ei({type:"shixunHomeworks/getShixunWorkReport",payload:Gt({},bo)}),Yo.status===0&&Ce.ZP.success("\u64CD\u4F5C\u6210\u529F")})}function Jr(vr,qr){return(0,Se.U2)(`student_works/${Si}/rep_passed_content.json`,{path:qr,game_id:vr})}const[ri,Wr]=(0,x.useState)((Kn=Di==null?void 0:Di.shixun_detail)==null?void 0:Kn.map(vr=>sn(Gt({},vr),{commentEdit:!1}))),Qi=vr=>vr.replace(/\\\(([\s\S]*?)\\\)/g,"<mathx data-text='$1'>$$$$$1$$$$</mathx>").replace(/\\\[([\s\S]*?)\\\]/g,"<mathx data-text='$1'>$$$$$1$$$$</mathx>").replace(/`(\$\$.*?\$\$)`/g,"<mathx data-text='$1'>$$$$$1$$$$</mathx>").replace(/_{2,}/g,"`$&`"),[no,Kr]=(0,x.useState)(!1),ui=(vr,qr)=>yn(void 0,null,function*(){var Ao,Yo;Kr(!0),wo.current=new jt.Z(ut.Z.API_SERVER+"/api/stream/intelligent_imports/chat_messages.json",{response_mode:"streaming",model:"qwen-plus-latest",scene_awareness:!1,thinking_enabled:!1,image_generator:!1,file_ids:[],history:[],prompt:wi,shixun_id:Di==null?void 0:Di.myshixun_identifier,game_id:vr==null?void 0:vr.id,source:"shixun",is_chat:!1,type:9,description:vr==null?void 0:vr.challenge_description,query:(Yo=(Ao=vr==null?void 0:vr.game_codes)==null?void 0:Ao[0])==null?void 0:Yo.content,homework_common_id:bo.categoryId}),yield new Promise((Do,ga)=>{wo.current.on("data",No=>{const Jo=[...ri];Jo[qr].comment=Qi(No==null?void 0:No.full),Wr(Jo)}),wo.current.on("done",()=>yn(void 0,null,function*(){var No;Kr(!1);const Jo=[...ri],Ro=yield(0,Se.ZP)(`/api/student_works/${bo==null?void 0:bo.homeworkId}/challenge_comment`,{method:"put",body:{challenge_id:vr==null?void 0:vr.challenge_id,comment:Jo[qr].comment}});if((Ro==null?void 0:Ro.status)==0){Ce.ZP.success("\u8BC4\u4EF7\u6210\u529F");const oa=[...ri];oa[qr].comment_updated_at=(No=Ro==null?void 0:Ro.data)==null?void 0:No.comment_updated_at,Wr(oa)}})),wo.current.startStream()})});return x.createElement(x.Fragment,null,ri==null?void 0:ri.map(function(vr,qr){var Ao,Yo,Do,ga;return x.createElement("div",{key:qr},x.createElement("aside",{className:"pl30 pr30",key:qr},x.createElement("div",{className:`${He.shixunTitle} mt10`},x.createElement("div",null,x.createElement("span",{className:"fa fa-code "}),x.createElement("strong",{className:"c-black"},"\u7B2C",qr+1,"\u5173 ",x.createElement(Ue.Link,{className:"c-black",target:"_blank",to:`/tasks/${bo.coursesId}/${bo.categoryId}/${vr.game_identifier}`},vr.subject))),Go?x.createElement("span",null,"\u8C03\u5206\uFF1A",x.createElement(ht,{className:"game-score",max:mi[qr].game_score_full,defaultValue:mi[qr].game_score,disabled:!((Ao=mi==null?void 0:mi[qr])!=null&&Ao.checked)&&((Yo=mi==null?void 0:mi[qr])==null?void 0:Yo.is_show),onBlur:No=>{var Jo;if((0,at.Rm)()&&!((Jo=Ar.AssistantObject.practice)!=null&&Jo.can_appraise)){Ce.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Mr(qr,No)}})):null),x.createElement("div",{className:"font16 mt10"},vr.st===0&&(vr.path?typeof(vr==null?void 0:vr.game_codes_cn)=="string"?x.createElement("aside",{className:He.shixunWrp},x.createElement(pe,{game_codes_cn:vr==null?void 0:vr.game_codes_cn,autoHeight:Rn,path:vr.path,game_id:vr.id,data:vr.game_codes,diff_code_count:vr.diff_code_count,onPathChange:Jr})):x.createElement("div",{className:"font14",style:{border:"1px solid #d9d9d9",padding:"6px 10px"}}," \u63D0\u793A\uFF1A\u7EAF\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u7684\u5B9E\u8BAD\u4E0D\u5C55\u793A\u901A\u5173\u4EE3\u7801\uFF0C\u5982\u9700\u67E5\u770B\u5B66\u751F\u4EE3\u7801\u8BF7\u524D\u5F80\u4F5C\u4E1A\u5217\u8868\u5BFC\u51FA\u5B9E\u9A8C\u6587\u4EF6\u3002"):"\u76EE\u524D\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u3001Vscode\u7F16\u8F91\u5668\u3001\u7406\u8BBA\u9898\u6A21\u5F0F\u7684\u5B9E\u9A8C\uFF0C\u6682\u65F6\u65E0\u6CD5\u4F7F\u7528\u6B64\u529F\u80FD"),vr.st===1&&(vr.complete_status===0?"\u672C\u5173\u6682\u672A\u901A\u8FC7\uFF0C\u65E0\u901A\u5173\u4EE3\u7801":"\u76EE\u524D\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u3001Vscode\u7F16\u8F91\u5668\u3001\u7406\u8BBA\u9898\u6A21\u5F0F\u7684\u5B9E\u9A8C\uFF0C\u6682\u65F6\u65E0\u6CD5\u4F7F\u7528\u6B64\u529F\u80FD")),x.createElement("aside",{className:"mt10 font16"},(Do=vr.outputs)!=null&&Do.length?x.createElement(Ee.default,{columns:Lo,pagination:{hideOnSinglePage:!0},dataSource:vr.outputs.map(No=>Gt(Gt({},vr),No))}):"\u672C\u5173\u65E0\u8BC4\u6D4B\u8BB0\u5F55"),x.createElement(tn,{items:vr==null?void 0:vr.student_work_test_result_info}),x.createElement("aside",{className:"mt10"},x.createElement("div",null,x.createElement("div",{style:{display:"flex",alignItems:"center"}},x.createElement("strong",{className:"c-black font14"},"\u4EE3\u7801\u8BC4\u4EF7"),!(vr!=null&&vr.commentEdit)&&!(0,at.dE)()&&(vr!=null&&vr.comment?x.createElement(x.Fragment,null,x.createElement("div",{style:{color:"#666666",fontSize:"12px",marginLeft:"auto"}},"\u6700\u65B0\u8BC4\u4EF7\u65F6\u95F4\uFF1A",vr!=null&&vr.comment_updated_at?Le()(vr==null?void 0:vr.comment_updated_at).format("YYYY-MM-DD HH:mm:ss"):"--"),x.createElement("div",{style:{color:"#3061D0",fontSize:"14px",marginLeft:"40px",cursor:"pointer"},onClick:()=>yn(this,null,function*(){no?Ce.ZP.warning("\u6B63\u5728\u751F\u6210\u8BC4\u8BBA\u4E2D\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002"):fe.default.confirm({title:"\u63D0\u793A",content:"\u786E\u8BA4\u662F\u5426\u91CD\u65B0\u751F\u6210\u8BC4\u8BBA\uFF1F",okText:"\u786E\u8BA4",icon:null,cancelText:"\u53D6\u6D88",onOk:()=>yn(this,null,function*(){ui(vr,qr)})})})},x.createElement("i",{className:"iconfont icon-zhongxinshengcheng1 mr8 font14"}),"\u91CD\u65B0\u751F\u6210")):x.createElement("div",{style:{color:"#3061D0",fontSize:"14px",marginLeft:"auto",cursor:"pointer"},onClick:()=>yn(this,null,function*(){no?Ce.ZP.warning("\u6B63\u5728\u751F\u6210\u8BC4\u8BBA\u4E2D\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002"):ui(vr,qr)})},x.createElement("img",{src:Lt,className:"mr8"}),"\u4E00\u952EAI\u751F\u6210")),!(vr!=null&&vr.commentEdit)&&!(0,at.dE)()&&x.createElement("div",{style:{color:"#3061D0",fontSize:"14px",marginLeft:"20px",cursor:"pointer"},onClick:()=>{const No=[...ri];No[qr].commentEdit=!0,Wr(No),Vo(vr==null?void 0:vr.comment)}},x.createElement("i",{className:"iconfont icon-bianji-moren mr8 font14"}),"\u7F16\u8F91"),(vr==null?void 0:vr.commentEdit)&&x.createElement(x.Fragment,null,x.createElement("div",{className:He.pj_close,onClick:()=>{const No=[...ri];No[qr].commentEdit=!1,Wr(No)}},"\u53D6\u6D88"),x.createElement("div",{className:He.pj_save,onClick:()=>yn(this,null,function*(){var No;const Jo=yield(0,Se.ZP)(`/api/student_works/${bo==null?void 0:bo.homeworkId}/challenge_comment`,{method:"put",body:{challenge_id:vr==null?void 0:vr.challenge_id,comment:uo}});if((Jo==null?void 0:Jo.status)==0){Ce.ZP.success("\u8BC4\u4EF7\u6210\u529F");const Ro=[...ri];Ro[qr].commentEdit=!1,Ro[qr].comment=uo,Ro[qr].comment_updated_at=(No=Jo==null?void 0:Jo.data)==null?void 0:No.comment_updated_at,Wr(Ro)}})},"\u4FDD\u5B58"))),!(vr!=null&&vr.commentEdit)&&x.createElement("div",{className:He.pingjia},vr!=null&&vr.comment?x.createElement(Ct.Z,{value:vr==null?void 0:vr.comment,style:{fontSize:"14px"}}):"\u6682\u65E0\u8BC4\u4EF7~"),(vr==null?void 0:vr.commentEdit)&&x.createElement(xe.default.TextArea,{defaultValue:uo,style:{borderRadius:"5px",marginTop:"10px"},rows:5,onChange:No=>Vo(No.target.value)}))),x.createElement("aside",{className:"mt10 font16"},((ga=vr==null?void 0:vr.adjust_review_score_list)==null?void 0:ga.length)>0&&(0,at.GJ)()&&x.createElement("div",null,x.createElement("strong",{className:"c-black font14"},"\u8C03\u5206\u8BB0\u5F55"),x.createElement(Ee.default,{columns:Vi,pagination:{hideOnSinglePage:!0},dataSource:vr.adjust_review_score_list,showHeader:!1})))))}),x.createElement(fe.default,{open:Ci,width:900,okText:"\u5173\u95ED",cancelButtonProps:{style:{display:"none"}},onOk:()=>{ko({}),yi(!1)},onCancel:()=>{ko({}),yi(!1)},title:x.createElement("div",{style:{width:"100%",cursor:"move"},onMouseOver:()=>{Mi&&eo(!1)},onMouseOut:()=>{eo(!0)},onFocus:()=>{},onBlur:()=>{}},"\u4EE3\u7801\u5185\u5BB9"),modalRender:vr=>x.createElement(se(),{disabled:Mi,bounds:mo,nodeRef:Io,onStart:(qr,Ao)=>to(qr,Ao)},x.createElement("div",{ref:Io},vr))},x.createElement("div",{style:{background:"#F6F7F9",padding:"30px 20px",marginBottom:20}},x.createElement("div",{style:{display:"flex",alignItems:"center"}},((vn=Ri==null?void 0:Ri.data)==null?void 0:vn.output_detail)==="\u8BC4\u6D4B\u901A\u8FC7"?x.createElement("i",{style:{color:"#0B9953",fontSize:18,marginRight:10},className:"iconfont icon-duigou1"}):x.createElement("i",{style:{color:"#E21010",fontSize:18,marginRight:10},className:"iconfont icon-jinggao1"}),x.createElement("div",{style:{color:(($n=Ri==null?void 0:Ri.data)==null?void 0:$n.output_detail)==="\u8BC4\u6D4B\u901A\u8FC7"?"#0B9953":"#E21010",fontSize:16,fontWeight:600}},(nr=Ri==null?void 0:Ri.data)==null?void 0:nr.output_detail)),x.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginTop:20}},x.createElement("div",null,x.createElement("span",{style:{color:"#6A7283"}},"\u8BC4\u6D4B\u65F6\u95F4"),x.createElement("span",{style:{marginLeft:8,color:"#232B40"}},Le()((fr=Ri==null?void 0:Ri.data)==null?void 0:fr.created_at).format("YYYY-MM-DD HH:mm:ss"))),x.createElement("div",null,x.createElement("span",{style:{color:"#6A7283"}},"\u7528\u65F6"),x.createElement("span",{style:{marginLeft:8,color:"#232B40"}},(zr=Ri==null?void 0:Ri.data)==null?void 0:zr.ts_time,"s")),x.createElement("div",null,x.createElement("span",{style:{color:"#6A7283"}},"\u5185\u5B58"),x.createElement("span",{style:{marginLeft:8,color:"#232B40"}},(Ni=Ri==null?void 0:Ri.data)==null?void 0:Ni.ts_mem,"mb")),x.createElement("div",null,x.createElement("span",{style:{color:"#6A7283"}},"\u7528\u4F8B\u901A\u8FC7\u7387"),x.createElement("span",{style:{marginLeft:8,color:"#232B40"}},((gi=Ri==null?void 0:Ri.data)==null?void 0:gi.test_set_passed_rate)*100,"%")))),x.createElement(Ot.ZP,{height:500,autoHeight:Rn,language:"python",theme:"default",isCopy:!0,value:decodeURIComponent(escape(window.atob((Ri==null?void 0:Ri.content)||""))),options:Tn})))};var Br=(0,Ue.connect)(({shixunHomeworks:er,loading:Rn,globalSetting:Ar,classroomList:Ei})=>({shixunHomeworks:er,globalSetting:Ar,loading:Rn.effects,classroomList:Ei}))(Yn),ti=ae(28284),Ur={greyText:"greyText___nOpNq",info:"info___nBB3c",label:"label___P6my8",blackContent:"blackContent___O4HnS",orangeContent:"orangeContent___JBF44",inputLabel:"inputLabel___B2GAs",tableTitle:"tableTitle___IqAxM",scoreTable:"scoreTable___RJvpU"},Sr=ae(27185),Jn=ae(59301),gr=Object.defineProperty,kr=Object.getOwnPropertySymbols,Vr=Object.prototype.hasOwnProperty,pi=Object.prototype.propertyIsEnumerable,Lr=(er,Rn,Ar)=>Rn in er?gr(er,Rn,{enumerable:!0,configurable:!0,writable:!0,value:Ar}):er[Rn]=Ar,tr=(er,Rn)=>{for(var Ar in Rn||(Rn={}))Vr.call(Rn,Ar)&&Lr(er,Ar,Rn[Ar]);if(kr)for(var Ar of kr(Rn))pi.call(Rn,Ar)&&Lr(er,Ar,Rn[Ar]);return er},Xn=(er,Rn,Ar)=>new Promise((Ei,Kn)=>{var vn=fr=>{try{nr(Ar.next(fr))}catch(zr){Kn(zr)}},$n=fr=>{try{nr(Ar.throw(fr))}catch(zr){Kn(zr)}},nr=fr=>fr.done?Ei(fr.value):Promise.resolve(fr.value).then(vn,$n);nr((Ar=Ar.apply(er,Rn)).next())});const mr=({shixunHomeworks:er,dispatch:Rn,classroomList:Ar})=>{const{shixunWorkReport:Ei}=er,Kn=(0,Ue.useParams)(),[vn,$n]=(0,x.useState)(!1),[nr]=ti.default.useForm(),[fr,zr]=fe.default.useModal(),[Ni,gi]=(0,x.useState)(!1),[Di,mi]=(0,x.useState)(!1);(0,x.useEffect)(()=>{var Ci,yi,Mi,eo;er.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4"&&nr.setFieldsValue({comment:(yi=(Ci=er.actionTabs.selectArrs)==null?void 0:Ci.data)==null?void 0:yi.work_comment,hidden_comment:(eo=(Mi=er.actionTabs.selectArrs)==null?void 0:Mi.data)==null?void 0:eo.work_comment_hidden})},[er.actionTabs.key]);const Si=()=>Xn(void 0,null,function*(){const Ci=nr.getFieldsValue();(yield(0,Se.ZP)(`/api/student_works/${Kn.homeworkId}/shixun_work_comment.json`,{method:"post",body:{hidden_comment:Ci.hidden_comment,comment:Ci.comment}})).status===0&&(Ce.ZP.success("\u8BC4\u9605\u6210\u529F"),nr.resetFields(),Rn({type:"shixunHomeworks/setActionTabs",payload:{}}),Rn({type:"shixunHomeworks/getShixunWorkReport",payload:tr({},Kn)}))}),wi=[{title:"\u5173\u5361",dataIndex:"name",render:(Ci,yi,Mi)=>Mi+1},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",render:(Ci,yi,Mi)=>Jn.createElement("div",null,Ci,yi.complete_status===4&&Jn.createElement(ft.vA,{status:yi.complete_status}))},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"open_time"},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"finished_time"},{title:"\u5173\u5361\u7C7B\u522B",dataIndex:"checked",render:Ci=>Jn.createElement("span",{style:{color:Ci?"green":"#13B5D1"}},Ci?"\u5FC5\u505A":"\u9009\u505A")},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",align:"center"},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"time_consuming"},{title:"\u662F\u5426\u67E5\u770B\u7B54\u6848",dataIndex:"view_answer",align:"center",render:Ci=>Ci?"\u662F":"\u5426"},{title:"\u5173\u5361\u5F97\u5206",dataIndex:"game_score",align:"center",render:(Ci,yi)=>Jn.createElement("div",null,Jn.createElement("span",{style:{color:parseFloat(yi.game_score_full)!==parseFloat(Ci)?"#E30000":"#53C41B"}},Ci),"/",yi.game_score_full)},{title:"\u8C03\u5206",dataIndex:"game_score",align:"center",fixed:"right",render:(Ci,yi)=>(0,at.GJ)()?Jn.createElement(ht,{max:yi.game_score_full,defaultValue:parseFloat(Ci),disabled:!(yi!=null&&yi.checked)&&(yi==null?void 0:yi.is_show),onBlur:Mi=>Xn(void 0,null,function*(){var eo,mo;if((0,at.Rm)()&&!((eo=Ar.AssistantObject.practice)!=null&&eo.can_appraise)){Ce.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const Yi=yield Rn({type:"shixunHomeworks/changeScore",payload:{categoryId:Kn.homeworkId,type:"report",score:Mi,challenge_id:yi.challenge_id}});(mo=er==null?void 0:er.actionTabs)==null||mo.fn(),yield Rn({type:"shixunHomeworks/getShixunWorkReport",payload:tr({},Kn)}),Yi.status===0&&Ce.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):Ci}];return Jn.createElement(Jn.Fragment,null,zr,Jn.createElement(fe.default,{centered:!0,width:1080,title:"\u70B9\u8BC4\u4F5C\u4E1A",open:er.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Xn(void 0,null,function*(){var Ci;if((0,at.Rm)()&&!((Ci=Ar.AssistantObject.practice)!=null&&Ci.can_appraise)){Ce.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const yi=nr.getFieldsValue();JSON.stringify(yi)==="{}"||yi.hidden_comment===""&&yi.comment===""?$n(!0):Si()}),onCancel:()=>{Rn({type:"shixunHomeworks/setActionTabs",payload:{}})}},Jn.createElement(ve.Z,{justify:"space-between",className:Ur.info},Jn.createElement(Me.Z,null,Jn.createElement("span",{className:`${Ur.label} ${Ur.greyText}`},"\u59D3\u540D"),Jn.createElement("span",{className:Ur.blackContent},Ei==null?void 0:Ei.username)),Jn.createElement(Me.Z,null,Jn.createElement("span",{className:`${Ur.label} ${Ur.greyText}`},"\u5B66\u53F7"),Jn.createElement("span",{className:Ur.blackContent},(Ei==null?void 0:Ei.student_id)||"--")),Jn.createElement(Me.Z,null,Jn.createElement("span",{className:`${Ur.label} ${Ur.greyText}`},"\u73ED\u7EA7"),Jn.createElement("span",{className:Ur.blackContent},(Ei==null?void 0:Ei.group_name)||"--")),Jn.createElement(Me.Z,null,Jn.createElement("span",{className:`${Ur.label} ${Ur.greyText}`},"\u5173\u5361\u5F97\u5206"),Jn.createElement("span",{className:Ur.orangeContent},(Ei==null?void 0:Ei.challenge_score)||"--")),Jn.createElement(Me.Z,null,Jn.createElement("span",{className:`${Ur.label} ${Ur.greyText}`},"\u6548\u7387\u5206"),Jn.createElement("span",{className:Ur.orangeContent},(Ei==null?void 0:Ei.eff_score)||"--")),Jn.createElement(Me.Z,null,Jn.createElement("span",{className:`${Ur.label} ${Ur.greyText}`},"\u8865\u4EA4\u6263\u5206"),Jn.createElement("span",{className:Ur.orangeContent},(Ei==null?void 0:Ei.late_penalty)||"--")),Jn.createElement(Me.Z,null,Jn.createElement("span",{className:`${Ur.label} ${Ur.greyText}`},"\u6700\u7EC8\u6210\u7EE9"),Jn.createElement("span",{className:Ur.orangeContent},(Ei==null?void 0:Ei.work_score)||"--"))),Jn.createElement(ti.default,{form:nr,onChange:()=>{vn&&$n(!1)}},Jn.createElement(ve.Z,{wrap:!1,align:"middle",justify:"space-between"},Jn.createElement(Me.Z,null,Jn.createElement("div",{className:`${Ur.inputLabel} ${Ur.greyText}`},"\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1")),Jn.createElement(Me.Z,null,Jn.createElement(Sr.Z,{isShowComponent:(0,at.G5)(),ModalProps:{open:Ni,onCancel:()=>{gi(!1)}},onDataSelect:(Ci,yi)=>Xn(void 0,[Ci,yi],function*(Mi,{node:eo}){const mo=()=>{nr.setFieldsValue({comment:eo==null?void 0:eo.value}),gi(!1)};if(nr.getFieldValue("comment")){fr.confirm({icon:null,title:"\u63D0\u793A",centered:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8BC4\u8BED\u8F93\u5165\u6846\u4E2D\u5DF2\u6709\u5185\u5BB9\uFF0C\u4F7F\u7528\u5E38\u7528\u8BC4\u8BED\u5C06\u4F1A\u8986\u76D6\u539F\u6709\u5185\u5BB9\u3002\u662F\u5426\u4F7F\u7528\uFF1F",okText:"\u4F7F\u7528",onOk:mo});return}mo()})},Jn.createElement(Fe.ZP,{style:{padding:0,height:"auto"},icon:Jn.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:Ci=>{gi(!0)}},"\u5E38\u7528\u8BC4\u8BED")))),Jn.createElement(ti.default.Item,{name:"comment"},Jn.createElement(xe.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3})),Jn.createElement(ve.Z,{wrap:!1,align:"middle",justify:"space-between"},Jn.createElement(Me.Z,null,Jn.createElement("div",{className:`${Ur.inputLabel} ${Ur.greyText}`},"\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1")),Jn.createElement(Me.Z,null,Jn.createElement(Sr.Z,{isShowComponent:(0,at.G5)(),ModalProps:{open:Di,onCancel:()=>{mi(!1)}},onDataSelect:(Ci,yi)=>Xn(void 0,[Ci,yi],function*(Mi,{node:eo}){const mo=()=>{nr.setFieldsValue({hidden_comment:eo==null?void 0:eo.value}),mi(!1)};if(nr.getFieldValue("hidden_comment")){fr.confirm({icon:null,title:"\u63D0\u793A",centered:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8BC4\u8BED\u8F93\u5165\u6846\u4E2D\u5DF2\u6709\u5185\u5BB9\uFF0C\u4F7F\u7528\u5E38\u7528\u8BC4\u8BED\u5C06\u4F1A\u8986\u76D6\u539F\u6709\u5185\u5BB9\u3002\u662F\u5426\u4F7F\u7528\uFF1F",okText:"\u4F7F\u7528",onOk:mo});return}mo()})},Jn.createElement(Fe.ZP,{style:{padding:0,height:"auto"},icon:Jn.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:Ci=>{mi(!0)}},"\u5E38\u7528\u8BC4\u8BED")))),Jn.createElement(ti.default.Item,{name:"hidden_comment"},Jn.createElement(xe.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3}))),vn&&Jn.createElement("p",{className:"c-red"},"\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A"),Jn.createElement("div",{className:Ur.tableTitle},"\u5173\u5361\u6210\u7EE9"),Jn.createElement(Ee.default,{className:Ur.scoreTable,dataSource:Ei.stage_list,rowKey:"challenge_id",pagination:!1,columns:wi,scroll:{x:"max-content"}})))};var Qr=(0,Ue.connect)(({shixunHomeworks:er,classroomList:Rn})=>({shixunHomeworks:er,classroomList:Rn}))(mr),ii=ae(52217),ai=ae(88761),oi=ae(44164),li=ae.n(oi),ji={wrap:"wrap___LZOi9",line:"line___oju0L"},ki=ae(65078),Hr=({detailData:er})=>{var Rn;return x.createElement("div",{className:ji.wrap},x.createElement(ki.ij,{hideBar:!0,actionAnalysis:!0,loading:!1,emptyData:[(0,ki.Uf)(er),(er==null?void 0:er.photos)||[]],title:"\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790",noDataText:"\u8BE5\u5B66\u751F\u65E0\u5B66\u4E60\u884C\u4E3A\u5206\u6790\u6570\u636E"},x.createElement(ki.ZP,{hideBar:!0,title:"\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790",data:(0,ki.Uf)(er)}),!!((Rn=er==null?void 0:er.photos)!=null&&Rn.length)&&x.createElement(x.Fragment,null,x.createElement("div",{className:ji.line}),x.createElement(ki._s,{dataSource:er==null?void 0:er.photos,right:21,col:4,wrapWidth:1140}))))},Bi=ae(84454),Yt=ae(59301),rn=Object.defineProperty,fn=Object.defineProperties,Pt=Object.getOwnPropertyDescriptors,en=Object.getOwnPropertySymbols,Kt=Object.prototype.hasOwnProperty,gn=Object.prototype.propertyIsEnumerable,On=(er,Rn,Ar)=>Rn in er?rn(er,Rn,{enumerable:!0,configurable:!0,writable:!0,value:Ar}):er[Rn]=Ar,Nr=(er,Rn)=>{for(var Ar in Rn||(Rn={}))Kt.call(Rn,Ar)&&On(er,Ar,Rn[Ar]);if(en)for(var Ar of en(Rn))gn.call(Rn,Ar)&&On(er,Ar,Rn[Ar]);return er},Yr=(er,Rn)=>fn(er,Pt(Rn)),hi=(er,Rn)=>{var Ar={};for(var Ei in er)Kt.call(er,Ei)&&Rn.indexOf(Ei)<0&&(Ar[Ei]=er[Ei]);if(er!=null&&en)for(var Ei of en(er))Rn.indexOf(Ei)<0&&gn.call(er,Ei)&&(Ar[Ei]=er[Ei]);return Ar},rr=(er,Rn,Ar)=>new Promise((Ei,Kn)=>{var vn=fr=>{try{nr(Ar.next(fr))}catch(zr){Kn(zr)}},$n=fr=>{try{nr(Ar.throw(fr))}catch(zr){Kn(zr)}},nr=fr=>fr.done?Ei(fr.value):Promise.resolve(fr.value).then(vn,$n);nr((Ar=Ar.apply(er,Rn)).next())});function ur(er){const Rn=(Kn,vn)=>{if(Kn.localName===vn)return Kn;for(let $n=0,nr=Kn;nr=nr.parentNode;$n++){if(nr.localName===vn)return nr;if(nr==document.documentElement)return!1}},Ar=er.target,Ei=Rn(Ar,"a");if(console.log([Ei],Ei==null?void 0:Ei.href,44),!(Ei!=null&&Ei.href)&&Ar.tagName.toUpperCase()==="IMG"){let Kn=Ar.src||Ar.getAttribute("src");Kn&&Kn.indexOf("/images/avatars/User")===-1&&(er.stopPropagation(),er.preventDefault(),$t.Z.publish("preview-image",Kn))}}const sr=er=>{var Rn=er,{shixunHomeworks:Ar,classroomList:Ei,globalSetting:Kn,loading:vn,user:$n,dispatch:nr}=Rn,fr=hi(Rn,["shixunHomeworks","classroomList","globalSetting","loading","user","dispatch"]),zr,Ni,gi,Di;const[mi,Si]=(0,x.useState)(Nr({},(0,Ue.useParams)())),wi=(0,Ue.useParams)(),[Ci,yi]=(0,x.useState)({page:1,page_size:10}),Mi=(0,Ue.useLocation)(),[]=(0,x.useState)([]),[eo,mo]=(0,x.useState)(),Yi=(0,x.useRef)(),Io=(0,x.useRef)(),[Ri,ko]=(0,x.useState)(!1),[uo,Vo]=(0,x.useState)(!0),[wo,to]=(0,x.useState)(!1),[bo,Go]=(0,x.useState)(!1),{shixunWorkReport:Tn}=Ar,[Lo,Vi]=(0,x.useState)(),[Mr,Jr]=(0,x.useState)([]),[ri,Wr]=(0,x.useState)(),[Qi,no]=(0,x.useState)("all"),Kr=(0,at.GJ)(),[ui,vr]=(0,x.useState)(new(ze())),[qr,Ao]=(0,x.useState)(0),[Yo,Do]=(0,x.useState)(!1),[ga,No]=(0,x.useState)(!1),[Jo,Ro]=(0,x.useState)(!1),[oa,fa]=(0,x.useState)(""),[Wa,Ds]=(0,x.useState)(!1),[js,as]=(0,x.useState)(!0),[ds,Mo]=(0,x.useState)(0),go=(0,x.useRef)(JSON.parse(sessionStorage.all_student_works_params||"{}")),Fa=(0,x.useRef)(),[gs,el]=(0,x.useState)(!1),[tl,nl]=(0,x.useState)(!1),gl=(0,x.useRef)(null),Au=()=>rr(void 0,null,function*(){($n.userInfo.is_teacher||$n.userInfo.admin)&&(Ds(!0),as(!1))});(0,x.useEffect)(()=>{var Ui;(0,at.Rm)()&&Ei.AssistantObject.practice&&!((Ui=Ei.AssistantObject.practice)!=null&&Ui.can_view)&&Ue.history.replace("/403")},[(zr=Ei.AssistantObject.practice)==null?void 0:zr.can_view]),(0,x.useEffect)(()=>{Au(),console.log("\u6253\u5370\u7684------",Tn),Fa.current=Tn==null?void 0:Tn.next_student_work_id,fa(Tn.repeat_minus_score)},[Tn,$n]),(0,x.useEffect)(()=>{console.log("\u89E6\u53D1\u8FD9",Tn.work_score),Mo(Tn.work_score)},[Tn.work_score,oa]),(0,x.useEffect)(()=>(nr({type:"globalSetting/footerToggle",payload:!1}),()=>{nr({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,x.useEffect)(()=>{if(gl.current)return gl.current.addEventListener("mousedown",ur),()=>{var Ui;(Ui=gl.current)==null||Ui.removeEventListener("mousedown",ur)}},[gl.current]),(0,x.useEffect)(()=>{setTimeout(()=>{gl.current&&gl.current.clientHeight>=500&&nl(!0)},500)},[(Ni=Tn==null?void 0:Tn.student_work_test_result_info)==null?void 0:Ni.content,gl.current]),(0,x.useEffect)(()=>{var Ui;if(Tn){let ta=[];(Ui=Tn==null?void 0:Tn.target_test_sets)==null||Ui.map((Ta,au)=>{var Ml;(Ml=Ta==null?void 0:Ta.targets)==null||Ml.map((ms,bu)=>{var ml;ms.name=Ta==null?void 0:Ta.name,ms.total_target_score=Ta==null?void 0:Ta.total_target_score,ms.actual_target_score=Ta==null?void 0:Ta.actual_target_score,ms.rowSpan=bu===0?(ml=Ta==null?void 0:Ta.targets)==null?void 0:ml.length:0,ms.order=au+1,ta.push(ms)})}),Vi(ta),(0,at.Rm)()&&nr({type:"classroomList/getAssistantPermissions",payload:{course_id:mi.coursesId}})}},[Tn]),(0,x.useEffect)(()=>{Ar.actionTabs.key==="\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"&&(Tn==null?void 0:Tn.students_count)>0&&!uo&&setTimeout(()=>{pa("all")},800)},[Tn==null?void 0:Tn.homework_common_id,uo]),(0,x.useEffect)(()=>{Si(Nr({},wi))},[Mi.pathname]);const Xs=()=>{document.body.scrollIntoView()},Zl=Ui=>{Ci.page=Ui,yi(Nr({},Ci)),Wl(Ci,Qi)},Wl=(Ui,ta)=>rr(void 0,null,function*(){to(!0);const Ta=yield(0,Se.ZP)(`/api/student_works/${mi==null?void 0:mi.homeworkId}/adjust_review_score_histories.json`,{method:"get",params:Yr(Nr({},Ui),{challenge_id:ta=="all"?null:ta})});(Ta==null?void 0:Ta.status)===0&&(Jr(Ta==null?void 0:Ta.list),Wr(Ta==null?void 0:Ta.count)),to(!1)});function Iu(){return rr(this,null,function*(){go.current=JSON.parse(sessionStorage.all_student_works_params||"{}")})}const fl=()=>{document.querySelectorAll("canvas").forEach(Ui=>{(!Ui.clientWidth||!Ui.clientHeight)&&Ui.remove()})},SA=()=>{Yi.current.offsetHeight>62e3?Go(!1):Go(!0)},hA=Ui=>rr(void 0,null,function*(){const ta=yield(0,ai.t1)({homeworkId:Ui||mi.homeworkId});mo(ta==null?void 0:ta.data)}),pa=Ui=>rr(void 0,null,function*(){var ta,Ta,au,Ml;el(!0);let ms=0,bu;bu=fe.default.info({width:460,title:Yt.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A,",Yt.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:Yt.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",Yt.createElement("span",{className:"c-blue"},ms+1),"/",Ui!=="all"?1:Tn==null?void 0:Tn.students_count,Yt.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3"),maskClosable:!1,className:He.modal,onOk:()=>{}});const ml={margin:[0,0],filename:`${Tn!=null&&Tn.student_id&&(Tn==null?void 0:Tn.student_id)!="--"?Tn==null?void 0:Tn.student_id:""}${Tn.username}.pdf`,html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}},Kc=ui.folder(Tn==null?void 0:Tn.shixun_name);function FA(Cu){return rr(this,null,function*(){yield hA(Cu||Fa.current);const aa=yield nr({type:"shixunHomeworks/getShixunWorkReport",payload:Nr({homeworkId:Cu||Fa.current},go.current||{})});Fa.current=aa==null?void 0:aa.next_student_work_id,Xs(),ms++,setTimeout(()=>rr(this,null,function*(){var $u,dc,ku,Ns;fl();const pA=Kc.folder(`${aa==null?void 0:aa.group_name}`).folder(`${aa!=null&&aa.student_id&&(aa==null?void 0:aa.student_id)!="--"?aa.student_id+"+":""}${aa==null?void 0:aa.username}`),PA=document.querySelector("#export-all").children;let xl=li()();for(let Bl=0;Bl<PA.length;Bl++)yield xl.set(ml).from(PA[Bl]).toContainer().toCanvas().toPdf().get("pdf").then(rl=>rr(this,null,function*(){Bl<PA.length-1&&(yield rl.addPage())}));if(pA.file(`${aa!=null&&aa.student_id&&(aa==null?void 0:aa.student_id)!="--"?aa.student_id+"+":""}${aa==null?void 0:aa.username}.pdf`,xl.output("blob")),(($u=aa==null?void 0:aa.shixun_detail)==null?void 0:$u.length)>0&&((ku=(dc=aa==null?void 0:aa.shixun_detail)==null?void 0:dc.filter(Bl=>{var rl;return((rl=Bl==null?void 0:Bl.game_codes)==null?void 0:rl.length)>0}))==null?void 0:ku.length)>0){const Bl=pA.folder("\u4EE3\u7801\u6587\u4EF6");(Ns=aa==null?void 0:aa.shixun_detail)==null||Ns.map((rl,Gl)=>{var Vl,Nc;if(((Vl=rl==null?void 0:rl.game_codes)==null?void 0:Vl.length)>0){const td=Bl.folder(`\u7B2C${Gl+1}\u5173-${rl.subject}-${rl.id}`);(Nc=rl==null?void 0:rl.game_codes)==null||Nc.map(Ul=>{td.file(`${Ul.filename}.txt`,Ul==null?void 0:Ul.content)})}})}bu.update({content:Yt.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",Yt.createElement("span",{className:"c-blue"},ms),"/",aa==null?void 0:aa.students_count,Yt.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3")}),ms==(aa==null?void 0:aa.students_count)?(bu.destroy(),Ia()):FA()}),2200)})}if(Ui!=="all"||(Tn==null?void 0:Tn.students_count)<2){fl(),Xs();const Cu=Io.current.children;let aa=li()();const dc=Kc.folder(`${Tn==null?void 0:Tn.group_name}`).folder(`${Tn!=null&&Tn.student_id&&(Tn==null?void 0:Tn.student_id)!="--"?(Tn==null?void 0:Tn.student_id)+"+":""}${Tn==null?void 0:Tn.username}`);for(let ku=0;ku<Cu.length;ku++)yield aa.set(ml).from(Cu[ku]).toContainer().toCanvas().toPdf().get("pdf").then(Ns=>rr(void 0,null,function*(){ku<Cu.length-1&&(yield Ns.addPage())}));if(ko(!1),dc.file(`${Tn!=null&&Tn.student_id&&(Tn==null?void 0:Tn.student_id)!="--"?(Tn==null?void 0:Tn.student_id)+"+":""}${Tn.username}.pdf`,aa.output("blob"),{base64:!1}),((ta=Tn==null?void 0:Tn.shixun_detail)==null?void 0:ta.length)>0&&((au=(Ta=Tn==null?void 0:Tn.shixun_detail)==null?void 0:Ta.filter(ku=>{var Ns;return((Ns=ku==null?void 0:ku.game_codes)==null?void 0:Ns.length)>0}))==null?void 0:au.length)>0){const ku=dc.folder("\u4EE3\u7801\u6587\u4EF6");(Ml=Tn==null?void 0:Tn.shixun_detail)==null||Ml.map((Ns,tA)=>{var pA,PA;if(((pA=Ns==null?void 0:Ns.game_codes)==null?void 0:pA.length)>0){const xl=ku.folder(`\u7B2C${tA+1}\u5173-${Ns.subject}-${Ns.id}`);(PA=Ns==null?void 0:Ns.game_codes)==null||PA.map(Bl=>{xl.file(`${Bl.filename}.txt`,Bl==null?void 0:Bl.content)})}})}bu.destroy(),Ia();return}else FA(Tn==null?void 0:Tn.first_student_work_id)}),Ia=()=>{ui.generateAsync({type:"blob"}).then(function(Ui){console.log(Tn,"shixunWorkReport");const ta=document.createElement("a");ta.href=window.URL.createObjectURL(Ui),ta.download=(Tn==null?void 0:Tn.shixun_name)+".zip",document.body.appendChild(ta);const Ta=document.createEvent("MouseEvents");Ta.initEvent("click",!1,!1),ta.dispatchEvent(Ta),document.body.removeChild(ta),vr(new(ze()))}),Go(!1)};(0,x.useEffect)(()=>{ma()},[mi.homeworkId]);const ma=()=>rr(void 0,null,function*(){Vo(!0),yield nr({type:"shixunHomeworks/getShixunWorkReport",payload:Nr(Nr({},mi),go.current||{})}),hA(),(0,at.GJ)()&&Iu(),Vo(!1)}),ba=[{title:"\u5173\u5361",dataIndex:"name",render:(Ui,ta,Ta)=>Ta+1},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",render:(Ui,ta,Ta)=>Yt.createElement("div",null,Ui,ta.complete_status===4&&Yt.createElement(ft.vA,{status:ta.complete_status}))},{title:"\u5F00\u542F\u65F6\u95F4",dataIndex:"open_time"},{title:"\u4EE3\u7801\u4FEE\u6539\u884C\u6570",dataIndex:"diff_code_count",render:(Ui,ta,Ta)=>Ui||"- -"},{title:"\u5173\u5361\u7C7B\u522B",dataIndex:"checked",render:Ui=>Yt.createElement("span",{style:{color:Ui?"green":"#13B5D1"}},Ui?"\u5FC5\u505A":"\u9009\u505A")},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count"},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"finished_time"},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"time_consuming"},{title:"\u662F\u5426\u67E5\u770B\u7B54\u6848",dataIndex:"view_answer",render:Ui=>Ui?"\u662F":"\u5426"},{title:"\u7ECF\u9A8C\u503C",dataIndex:"experience",render:(Ui,ta)=>Yt.createElement("div",null,Yt.createElement("span",{style:{color:parseFloat(ta.myself_experience)!==parseFloat(Ui)?"red":"green"}},ta.myself_experience),"/",Ui)},{title:"\u5173\u5361\u5F97\u5206",dataIndex:"game_score",render:(Ui,ta)=>Yt.createElement("div",null,Yt.createElement("span",{style:{color:parseFloat(ta.game_score_full)!==parseFloat(Ui)?"red":"green"}},Ui),"/",ta.game_score_full)},{title:"\u8C03\u5206",dataIndex:"game_score",render:(Ui,ta)=>Kr?Yt.createElement(ht,{max:ta.game_score_full,defaultValue:parseFloat(Ui),disabled:!(ta!=null&&ta.checked)&&(ta==null?void 0:ta.is_show),onBlur:Ta=>rr(void 0,null,function*(){var au;if((0,at.Rm)()&&!((au=Ei.AssistantObject.practice)!=null&&au.can_appraise)){Ce.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const Ml=yield nr({type:"shixunHomeworks/changeScore",payload:{categoryId:mi.homeworkId,type:"report",score:Ta,challenge_id:ta.challenge_id}});Wl({page:1,page_size:10},"all"),yield nr({type:"shixunHomeworks/getShixunWorkReport",payload:Nr(Nr({},mi),go.current||{})}),Ml.status===0&&Ce.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):Ui}];let qa=[{title:"\u5173\u5361",dataIndex:"order",key:"order",render:(Ui,ta,Ta)=>({children:Ui,props:{rowSpan:ta.rowSpan}})},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",key:"name",render:(Ui,ta,Ta)=>({children:Ui,props:{rowSpan:ta.rowSpan}})},{title:"\u6307\u6807\u540D\u79F0",dataIndex:"target_name",key:"target_name"},{title:"\u6307\u6807\u9884\u671F\u7ED3\u679C",dataIndex:"output",key:"output"},{title:"\u6307\u6807\u5B9E\u9645\u7ED3\u679C",dataIndex:"actual_output",key:"actual_output"},{title:"\u6307\u6807\u5F97\u5206",dataIndex:"test_score",key:"test_score",render:(Ui,ta,Ta)=>Yt.createElement("div",null,Yt.createElement("span",{style:{color:parseFloat(ta.actual_test_score)!==parseFloat(Ui)?"red":"green"}},ta.actual_test_score),"/",Ui)},{title:"\u6307\u6807\u603B\u5206",render:(Ui,ta,Ta)=>({children:Yt.createElement("div",null,Yt.createElement("span",{style:{color:parseFloat(ta.actual_target_score)!==parseFloat(Ui)?"red":"green"}},ta.actual_target_score),"/",Ui),props:{rowSpan:ta.rowSpan}}),dataIndex:"total_target_score",key:"total_target_score"}];const Va=[{title:"\u5173\u5361",dataIndex:"challenge_num",width:220},{title:"\u8C03\u5206\u7528\u6237",dataIndex:["user","name"]},{title:"\u8C03\u5206\u524D",dataIndex:"old_score"},{title:"\u8C03\u5206\u540E",dataIndex:"score"},{title:"\u8C03\u5206\u65F6\u95F4",dataIndex:"created_at",render:Ui=>Yt.createElement("span",null,Ui?Le()(Ui).format("YYYY-MM-DD HH:mm"):"--")}],za=Ui=>{nr({type:"shixunHomeworks/setActionTabs",payload:{key:"",type:2}}),setTimeout(()=>{Ui==="next"?Ue.history.push(`/classrooms/${mi.coursesId}/shixun_homework/${mi.categoryId}/${Tn==null?void 0:Tn.next_student_work_id}/comment`):Ue.history.push(`/classrooms/${mi.coursesId}/shixun_homework/${mi.categoryId}/${Tn==null?void 0:Tn.pre_student_work_id}/comment`)},200)},$l=Ui=>{fa(""),Ui.target.value&&(console.log("\u8FDB\u6765",Tn),Ui.target.value=Ui.target.value>Tn.repeat_setting_score?Tn.repeat_setting_score:Ui.target.value,fa(Ui.target.value))},cu=()=>rr(void 0,null,function*(){const Ui=yield(0,Se.ZP)(`/api/student_works/${Tn==null?void 0:Tn.work_id}/update_repeat_score`,{method:"put",body:{score:oa}});yield nr({type:"shixunHomeworks/getShixunWorkReport",payload:Nr(Nr({},mi),go.current||{})}),Ui.status===0&&Ce.ZP.info("\u64CD\u4F5C\u6210\u529F")});return Yt.createElement("section",{className:"bg-fafafa",style:{position:"sticky",top:0}},Yt.createElement("div",{className:"edu-container mt10",style:{paddingBottom:100}},Yt.createElement(oe.Z,{loading:vn["shixunHomeworks/getShixunWorkReport"],active:!0,avatar:{size:40},paragraph:{rows:5}},Yt.createElement("div",{className:"edu-container"},Tn.course_id&&Yt.createElement("section",{className:"animated fadeIn"},Yt.createElement("aside",{className:""},Tn.category&&Yt.createElement(Oe.Z,{separator:">"},Yt.createElement(Oe.Z.Item,null,Yt.createElement(Ue.Link,{to:`/classrooms/${Tn.course_id}/shixun_homework`},Tn.course_name)),Yt.createElement(Oe.Z.Item,null,Yt.createElement(Ue.Link,{to:`/classrooms/${Tn.course_id}/shixun_homework/${Tn.category.main?"":Tn.category.category_id}`},Tn.category.category_name)),Yt.createElement(Oe.Z.Item,null,Yt.createElement(Ue.Link,{to:`/classrooms/${Tn.course_id}/shixun_homework/${Tn.homework_common_id}/detail${(0,at.dE)()?"?tabs=1":""}`},"\u4F5C\u4E1A\u8BE6\u60C5")),Yt.createElement(Oe.Z.Item,null,Tn.username))),Yt.createElement("aside",{className:[He.title1,"mt20"].join(" ")},Yt.createElement(ve.Z,{align:"middle"},Yt.createElement(Me.Z,{flex:1},Yt.createElement(Ue.Link,{to:`/classrooms/${Tn.course_id}/shixun_homework/${Tn.homework_common_id}/detail`},Yt.createElement(Qe.Z,{className:"font16 c-black"})),Yt.createElement("strong",{className:"font20 ml5"},Tn==null?void 0:Tn.homework_name),Yt.createElement(ft.VV,{temporary:!0,status:Tn.homework_status})),Yt.createElement(Me.Z,{className:He.title1_right},Tn.view_tpi&&Yt.createElement(Fe.ZP,{onClick:()=>{var Ui,ta;(0,ft.xg)(`/tasks/${Tn==null?void 0:Tn.course_id}/${Tn==null?void 0:Tn.homework_common_id}/${(ta=(Ui=Tn==null?void 0:Tn.shixun_detail)==null?void 0:Ui[0])==null?void 0:ta.game_identifier}`)}},Yt.createElement("span",{className:"iconfont icon-yijiandianping mr5"}),"\u67E5\u770B\u5B66\u5458\u5B9E\u8BAD"),(0,at.GJ)()&&Tn.homework_end===!1&&!!Tn.myshixun_id&&Yt.createElement(Fe.ZP,{className:"ml10",onClick:()=>rr(void 0,null,function*(){yield nr({type:"shixunHomeworks/setActionTabs",payload:{key:"\u6253\u56DE\u91CD\u505A",selectArrs:{myshixun_identifier:Tn.myshixun_identifier},homework_common_id:wi.categoryId}})})},Yt.createElement("span",{className:"iconfont icon-dahuizhongzuo3x mr5"}),"\u6253\u56DE\u91CD\u505A"),Yt.createElement(Fe.ZP,{className:"ml10",onClick:()=>{var Ui;if(!(!(Tn!=null&&Tn.is_old_data_for_time)&&(0,ft.Ye)(nr))){if((0,at.Rm)()&&!((Ui=Ei.AssistantObject.practice)!=null&&Ui.can_download)){Ce.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}pa("")}},loading:Ri},Yt.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"),(0,at.GJ)()&&(Tn==null?void 0:Tn.students_count)>1&&Yt.createElement(Fe.ZP,{className:"ml10",onClick:()=>{var Ui;if(!(!(Tn!=null&&Tn.is_old_data_for_time)&&(0,ft.Ye)(nr))){if((0,at.Rm)()&&!((Ui=Ei.AssistantObject.practice)!=null&&Ui.can_download)){Ce.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}fe.default.confirm({title:"\u9009\u62E9\u5BFC\u51FA\u65B9\u5F0F",closable:!0,icon:null,centered:!0,okText:Yt.createElement(Te.Z,{title:"\u5BFC\u51FA\u65F6\u4E0D\u80FD\u9000\u51FA\u6216\u5173\u95ED\u5BFC\u51FA\u9875\u9762\uFF0C\u53EF\u80FD\u4F1A\u5F71\u54CD\u5176\u4ED6\u64CD\u4F5C"},"\u524D\u7AEF\u5BFC\u51FA"),cancelText:Yt.createElement(Te.Z,{title:"\u751F\u6210\u5BFC\u51FA\u4EFB\u52A1\u540E\u53EF\u5173\u95ED\u9875\u9762\uFF0C\u540E\u53F0\u5BFC\u51FA\u6210\u529F\u540E\u5728\u5386\u53F2\u5BFC\u51FA\u9875\u9762\u81EA\u884C\u4E0B\u8F7D\uFF0C\u4E0D\u5F71\u54CD\u5176\u4ED6\u64CD\u4F5C"},"\u540E\u53F0\u5BFC\u51FA"),onOk:()=>{pa("all")},onCancel:()=>{},cancelButtonProps:{onClick:()=>{(0,Bi.jj)({categoryId:mi.categoryId,coursesId:mi.coursesId},"shixun_report")}}})}}},Yt.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5168\u90E8\u5B66\u751F\u5B9E\u8BAD\u62A5\u544A"))))),Yt.createElement("aside",{className:"mt30 relative"})),Yt.createElement("aside",{className:"edu-container bg-white",ref:Yi},Yt.createElement("div",{id:"export-all",ref:Io},Yt.createElement("div",{id:"export-all-1"},Yt.createElement("div",{className:He.title},Yt.createElement("h1",null,"\u603B\u4F53\u8BC4\u4EF7"),Yt.createElement("div",null,(0,at.GJ)()&&Yt.createElement(Fe.ZP,{className:"mr20",type:"primary",onClick:()=>{nr({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:Tn.user_id,data:Nr({},Tn)},fn:()=>Wl({page:1,page_size:10},"all")}})}},Yt.createElement(Re.Z,null),Tn.has_shixun_work_comment?"\u66F4\u6539\u70B9\u8BC4":"\u70B9\u8BC4\u4F5C\u4E1A"))),Yt.createElement(ye.Z,{style:{marginTop:0}}),Yt.createElement(ve.Z,{className:"pl30 pr30"},Yt.createElement(Me.Z,null,Yt.createElement("img",{className:He.userPic,src:`${ut.Z.IMG_SERVER}/images/${Tn.image_url}`,alt:Tn.username})),Yt.createElement(Me.Z,null,Yt.createElement("span",{className:"font16 ml40"},Tn.username),Yt.createElement(ft.vA,{status:Tn.compelete_status}),Yt.createElement("ul",{className:He.userInfo},Yt.createElement("li",null,"\u5B66\u53F7\uFF1A",Tn.student_id||"--"),Yt.createElement("li",null,"\u5206\u73ED\uFF1A",Tn.group_name||"--"),Yt.createElement("br",null),Yt.createElement("li",null,"\u622A\u6B62\u524D\u5B8C\u6210\u5173\u5361\uFF1A",Yt.createElement("span",{className:"c-red"},Tn.complete_count),"/",Yt.createElement("span",{className:"c-red"},Tn.checked_challenge_count)),Yt.createElement("li",null,"\u6700\u65B0\u5B8C\u6210\u5173\u5361\uFF1A",Yt.createElement("span",{className:"c-red"},Tn.current_complete_count||"-"),"/",Yt.createElement("span",{className:"c-red"},Tn.checked_challenge_count)),Yt.createElement("li",null,"\u5B8C\u6210\u6548\u7387\uFF1A",Tn&&Tn.efficiency===null?"--":Tn&&Tn.efficiency),Yt.createElement("li",null,"\u8BFE\u5802\u6700\u9AD8\u5B8C\u6210\u6548\u7387\uFF1A",Tn&&Tn.max_efficiency===null?"--":Tn&&Tn.max_efficiency))),Yt.createElement("ul",{className:[He.listItem,"mt10"].join(" ")},Yt.createElement("li",null,Yt.createElement("strong",null,"\u901A\u5173\u65F6\u95F4"),Yt.createElement("div",{className:"c-light-black mt20"},Tn&&Tn.passed_time===null||Tn&&Tn.passed_time==="--"?"--":Le()(Tn&&Tn.passed_time).format("YYYY-MM-DD HH:mm"))),Yt.createElement("li",null,Yt.createElement("strong",null,"\u8BA1\u65F6\u89C4\u5219",Yt.createElement("i",{onClick:Ui=>{Ui.stopPropagation(),Ui.preventDefault(),Do(!0)},style:{marginLeft:4,color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"})),Yt.createElement("div",{className:"c-light-black mt20"},Tn==null?void 0:Tn.human_training_time_rules)),Yt.createElement("li",null,Yt.createElement("strong",null,"\u5B9E\u8BAD\u603B\u8017\u65F6",Yt.createElement("i",{onClick:Ui=>{Ui.stopPropagation(),Ui.preventDefault(),No(!0)},style:{marginLeft:4,color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"})),Yt.createElement("div",{className:"c-light-black mt20"},Tn.time_consuming)),Yt.createElement("li",null,Yt.createElement("strong",null,"\u8BC4\u6D4B\u6B21\u6570"),Yt.createElement("div",{className:"mt20"},Tn.evaluate_count)),(Tn==null?void 0:Tn.eff_score_full)&&Yt.createElement(Yt.Fragment,null,Yt.createElement("li",null,Yt.createElement("strong",null,"\u5173\u5361\u5F97\u5206"),Yt.createElement("div",{className:"mt20"},Yt.createElement("span",{className:"c-orange"},Tn.challenge_score),"/",Yt.createElement("span",{className:"c-light-black"},Tn.challenge_score_full))),Yt.createElement("li",null,Yt.createElement("strong",null,"\u6548\u7387\u5206"),Yt.createElement("div",{className:"mt20"},Yt.createElement("span",{className:"c-orange"},Tn.eff_score),"/",Yt.createElement("span",{className:"c-light-black"},Tn.eff_score_full)))),(Tn==null?void 0:Tn.have_repeat)&&(Tn==null?void 0:Tn.repeat_minus_score)!==0&&Yt.createElement("li",{style:{position:"relative"}},Yt.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},Yt.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),Yt.createElement("div",{style:{position:"absolute",fontSize:"10px",color:"white",left:"57px",width:"46px",bottom:"72px"}},Tn!=null&&Tn.review_rate?Yt.createElement("span",{style:{background:"#0152d9",borderRadius:"6px 6px 6px 0",cursor:"pointer"},onClick:()=>{if(Tn!=null&&Tn.review_id&&Wa)localStorage.setItem("studentDetial",window.location.pathname),Ue.history.push({pathname:`/classrooms/:coursesId/shixun_homework/${mi.categoryId}/review_detail/${Tn==null?void 0:Tn.review_id}`});else return}},Tn.review_rate.toFixed(1),"%"):Yt.createElement("span",{style:{background:"#0152d9",borderRadius:"6px 6px 6px 0"}},"- -"))),Wa?Yt.createElement("div",{className:"mt20"},Yt.createElement(xe.default,{style:{width:"45px",height:"22px"},value:oa,onChange:Ui=>{$l(Ui)},onBlur:cu,disabled:js})," / ",Tn==null?void 0:Tn.repeat_setting_score):Yt.createElement("div",{className:"mt20"},Tn==null?void 0:Tn.repeat_minus_score," / ",Tn==null?void 0:Tn.repeat_setting_score)),console.log("sssssssssssssssssssssss",Tn==null?void 0:Tn.have_repeat,Tn==null?void 0:Tn.repeat_minus_score),(Tn==null?void 0:Tn.have_repeat)&&(Tn==null?void 0:Tn.repeat_minus_score)===0&&Yt.createElement("li",null,Yt.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),Yt.createElement("div",{className:"mt20"}," - -")),!(Tn!=null&&Tn.have_repeat)&&Yt.createElement("li",null,Yt.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),Yt.createElement("div",{className:"mt20"}," - -")),Yt.createElement("li",null,Yt.createElement("strong",null,"\u8865\u4EA4\u6263\u5206"),Yt.createElement("div",{className:"mt20"},Yt.createElement("span",null,Tn.late_penalty||"- -"))),Yt.createElement("li",null,Yt.createElement("strong",null,"\u6700\u7EC8\u6210\u7EE9"),Yt.createElement("div",{className:"mt20"},Yt.createElement("span",{className:"c-orange"},ds),"/",Yt.createElement("span",{className:"c-light-black"},Tn.all_work_score))),Yt.createElement("li",null,Yt.createElement("strong",null,"\u603B\u8BC4"),Yt.createElement("div",{className:"mt20"},Yt.createElement("span",{className:"c-orange"},Tn.overall_appraisal))))),Yt.createElement(ye.Z,{style:{margin:0}}),(Tn.work_comment_hidden||Tn.work_comment)&&Yt.createElement("div",null,Yt.createElement(ve.Z,{align:"middle"},Yt.createElement(Me.Z,{flex:1},Yt.createElement("h1",{className:He.title},"\u70B9\u8BC4\u5185\u5BB9")),Yt.createElement(Me.Z,{className:"pr30"},(0,at.GJ)()&&Yt.createElement(Fe.ZP,{onClick:()=>rr(void 0,null,function*(){fe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:Yt.createElement(et.Z,null),content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F",onOk(){return rr(this,null,function*(){(yield(0,ai.gZ)({comment_id:Tn.comment_id,homeworkId:mi.homeworkId})).status===0&&(Ce.ZP.success("\u5220\u9664\u6210\u529F"),nr({type:"shixunHomeworks/getShixunWorkReport",payload:Nr(Nr({},mi),go.current||{})}))})}})})},Yt.createElement(Ge.Z,null),"\u5220\u9664"))),Yt.createElement(ye.Z,{style:{margin:0}}),Tn.work_comment&&Yt.createElement("aside",{className:"pl30 pr30 mt20"},Yt.createElement("span",{className:"c-light-black font12"},"# \u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),Yt.createElement("br",null),Yt.createElement(Ct.Z,{value:Tn.work_comment})),Tn.work_comment_hidden&&Yt.createElement("aside",{className:"pl30 pr30 mt20"},Yt.createElement("span",{className:"c-light-black font12"},"# \u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),Yt.createElement("br",null),Yt.createElement(Ct.Z,{value:Tn.work_comment_hidden}))),(Tn==null?void 0:Tn.action_analysis)&&Yt.createElement(Hr,{detailData:Tn}),Yt.createElement("div",{className:He.score},Yt.createElement("h1",{className:He.title},"\u9636\u6BB5\u6210\u7EE9"),(Tn==null?void 0:Tn.adjust_review_score_count)>0&&(0,at.GJ)()&&Yt.createElement("div",{style:{color:"#0152d9",cursor:"pointer"},onClick:()=>{Ro(!0),Wl({page:1,page_size:10},"all")}},"\u6210\u7EE9\u8C03\u5206\u8BB0\u5F55\uFF08",Tn==null?void 0:Tn.adjust_review_score_count,"\u6B21\uFF09")),Yt.createElement("aside",{className:"pl30 pr30"},Yt.createElement(Ee.default,{dataSource:Tn.stage_list,rowKey:Ui=>Ui==null?void 0:Ui.challenge_id,pagination:!1,columns:ba})),((gi=Tn==null?void 0:Tn.target_test_sets)==null?void 0:gi.length)>0&&Yt.createElement("div",null,Yt.createElement("h1",{className:He.title},"\u6307\u6807\u6210\u7EE9"),Yt.createElement("aside",{className:"pl30 pr30"},Yt.createElement(Ee.default,{dataSource:Lo,rowKey:Ui=>Ui==null?void 0:Ui.challenge_id,pagination:!1,bordered:!0,columns:qa}))),(Tn==null?void 0:Tn.work_description)&&Yt.createElement(Yt.Fragment,null,Yt.createElement("h1",{className:He.title},"\u4E2A\u4EBA\u603B\u7ED3"),Yt.createElement("aside",{className:"pl30 pr30"},Yt.createElement(Ct.Z,{value:Tn==null?void 0:Tn.work_description}))),Yt.createElement("h1",{className:He.title},"\u56FE\u5F62\u7EDF\u8BA1"),Yt.createElement(je,{data:eo}),(Tn==null?void 0:Tn.is_open_submit_test_result)&&Yt.createElement(Yt.Fragment,null),Yt.createElement("h1",{className:He.title},"\u5B9E\u8BAD\u8BE6\u60C5")),Yt.createElement(Br,{autoHeight:bo}))),(0,at.GJ)()&&Yt.createElement("aside",{className:`${He.footerBar} ${Ri?He.footerBarStatic:""}`},Yt.createElement("aside",{className:"edu-container"},Yt.createElement(ve.Z,{align:"middle"},Yt.createElement(Me.Z,{flex:"1"},Yt.createElement(Ue.Link,{className:He.exitComment,to:`/classrooms/${mi.coursesId}/shixun_homework/${mi.categoryId}/detail`},"\u8FD4\u56DE\u5217\u8868")),Yt.createElement(Me.Z,{flex:"1",className:"tr"},Yt.createElement(Fe.ZP,{type:"default",disabled:!(Tn!=null&&Tn.pre_student_work_id),onClick:()=>za()},"\u4E0A\u4E00\u4E2A"),Yt.createElement(Fe.ZP,{type:"default",style:{marginLeft:"20px",marginRight:"20px"},disabled:!(Tn!=null&&Tn.next_student_work_id),onClick:()=>za("next")},"\u4E0B\u4E00\u4E2A"),(0,at.GJ)()&&Yt.createElement(Fe.ZP,{type:"primary",onClick:()=>rr(void 0,null,function*(){nr({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:Tn.user_id,data:Nr({},Tn)},fn:()=>Wl({page:1,page_size:10},"all")}})})},"\u70B9\u8BC4\u4F5C\u4E1A"))))))),Yt.createElement(Qr,null),Yt.createElement(ii.Z,null),Yt.createElement(fe.default,{open:Yo,width:860,centered:!0,onCancel:()=>{Do(!1)},title:"\u8BA1\u65F6\u89C4\u5219\u8BF4\u660E",footer:null},Yt.createElement("div",{style:{color:"#333333",fontWeight:400}},Yt.createElement("span",{style:{fontWeight:500}},"1\u3001\u9875\u9762\u505C\u7559\u65F6\u957F"),Yt.createElement("br",null),Yt.createElement("span",null,"\u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),Yt.createElement("br",null),Yt.createElement("span",null," \u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u82E5\u5B66\u751F\u5173\u95ED/\u9000\u51FA\u7B54\u9898\u9875\u9762\uFF0C\u5219\u8BA1\u65F6\u6682\u505C\uFF0C\u518D\u6B21\u8FDB\u5165\u7B54\u9898\u9875\u9762\u65F6\u5F00\u59CB\u7D2F\u8BA1\u8BA1\u65F6\u76F4\u81F3\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),Yt.createElement("span",{style:{color:"#FA6400",display:"flex",height:34,alignItems:"center"}}," \u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5 "),Yt.createElement("span",null,"a\u3001\u5B66\u751F\u8FDB\u5165\u5173\u5361\u770B\u5B8C\u9898\u540E\uFF0C\u9000\u51FA\u7B54\u9898\u9875\u9762\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u590D\u5236\u8FDB\u5E73\u53F0\u7B54\u9898\u9875\u9762\u8FDB\u884C\u8BC4\u6D4B\uFF0C\u65E0\u6CD5\u8BC4\u4F30\u5B66\u751F\u7684\u5B66\u4E60\u548C\u601D\u8003\u65F6\u95F4\u3002")),Yt.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},Yt.createElement("span",{style:{fontWeight:500}},"2\u3001\u5173\u5361\u603B\u8017\u65F6"),Yt.createElement("br",null),Yt.createElement("span",{style:{}},"\u5B66\u751F\u7B2C\u4E00\u6B21\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\u3002 "),Yt.createElement("br",null),Yt.createElement("span",null," \u53E6\uFF0C\u5373\u4F7F\u5173\u5361\u95EF\u5173\u8FC7\u7A0B\u4E2D\uFF0C\u5B66\u751F\u9000\u51FA/\u5173\u95ED\u7B54\u9898\u9875\u9762\uFF0C\u4E5F\u5C06\u6301\u7EED\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u901A\u8FC7\u3002"),Yt.createElement("span",{style:{color:"#FA6400",display:"flex",height:44,paddingTop:10}}," \u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5 "),Yt.createElement("span",null,"a\u3001\u5B66\u751F\u4ECE\u5176\u4ED6\u540C\u5B66\u5904\u770B\u5230\u9898\u76EE\u540E\uFF0C\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\uFF0C\u5C06\u5DF2\u5B8C\u6210\u7684\u4EE3\u7801\u590D\u5236\u81F3\u5E73\u53F0\u8FDB\u884C\u8BC4\u6D4B\uFF1B"),Yt.createElement("br",null),Yt.createElement("span",null,"b\u3001\u5B66\u751F\u7B2C\u4E00\u6B21\u6253\u5F00\u5173\u5361\u540E\uFF0C\u56E0\u4E3A\u67D0\u79CD\u539F\u56E0\u79BB\u5F00\u9875\u9762\uFF0C\u65F6\u9694\u591A\u65E5\u624D\u518D\u6B21\u8FDB\u5165\u5E73\u53F0\u95EF\u5173\uFF0C\u5C31\u4F1A\u5BFC\u81F4\u5B66\u751F\u5173\u5361\u603B\u8017\u65F6\u8FC7\u957F\uFF1B")),Yt.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},Yt.createElement("span",{style:{fontWeight:500}},"3\u3001\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),Yt.createElement("br",null),Yt.createElement("span",{style:{}},"\u4ECE\u8001\u5E08\u53D1\u5E03\u7684\u5B9E\u8BAD\u4F5C\u4E1A\u5F00\u59CB\u65F6\u95F4\uFF0C\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5B9E\u8BAD\u901A\u5173\uFF08\u5305\u62EC\u8FDF\u4EA4\u901A\u5173\uFF09\uFF0C\u7ED3\u675F\u8BA1\u65F6\u3002\u5982\u679C\u5B66\u751F\u672A\u901A\u5173\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u8001\u5E08\u8BBE\u7F6E\u7684\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u622A\u6B62\u65F6\u95F4\uFF0C\u5982\u679C\u8001\u5E08\u5F00\u542F\u4E86\u8865\u4EA4\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u3002")),Yt.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},Yt.createElement("span",{style:{fontWeight:500}},"\u89C4\u5219\u76EE\u7684"),Yt.createElement("br",null),Yt.createElement("span",{style:{}},"\u9F13\u52B1\u5B66\u751F\u5728\u5B9E\u8BAD\u4F5C\u4E1A\u53D1\u5E03\u7684\u7B2C\u4E00\u65F6\u95F4\uFF0C\u7ACB\u5373\u767B\u5F55\u5E73\u53F0\u5B8C\u6210\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u901A\u5173\u3002"))),Yt.createElement(fe.default,{open:ga,title:"\u5B9E\u8BAD\u603B\u8017\u65F6\u8BF4\u660E",centered:!0,footer:null,onCancel:()=>{No(!1)},width:600},Yt.createElement("div",{style:{fontWeight:400,color:"#333333"}},Yt.createElement("div",null,"1\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",Yt.createElement("span",{style:{color:"#145DFF"}},"\u9875\u9762\u505C\u7559\u65F6\u957F"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u6240\u6709\u5173\u5361\u8017\u65F6\u76F8\u52A0\u4E4B\u548C\uFF1B"),Yt.createElement("div",{style:{margin:"20px 0px"}},"2\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",Yt.createElement("span",{style:{color:"#145DFF"}},"\u5173\u5361\u603B\u8017\u65F6"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u6240\u6709\u5173\u5361\u8017\u65F6\u76F8\u52A0\u4E4B\u548C\uFF1B"),Yt.createElement("div",null,"3\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",Yt.createElement("span",{style:{color:"#145DFF"}},"\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u5B9E\u8BAD\u53D1\u5E03\u65F6\u95F4\u81F3\u5B9E\u8BAD\u901A\u5173\u65F6\u95F4\uFF0C\u5F53\u5B66\u751F\u672A\u901A\u5173\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u5B9E\u8BAD\u53D1\u5E03\u65F6\u95F4\u81F3\u5B9E\u8BAD\u622A\u6B62\u65F6\u95F4\u3002"))),Yt.createElement(fe.default,{open:Jo,title:"\u6210\u7EE9\u8C03\u5206\u8BB0\u5F55",centered:!0,footer:null,onCancel:()=>{no("all"),Ro(!1)},destroyOnClose:!0,width:900},Yt.createElement("div",{style:{fontWeight:400,color:"#333333"}},Yt.createElement("div",null,Yt.createElement("span",null,"\u5173\u5361\uFF1A"),Yt.createElement(ke.default,{style:{width:300},value:Qi,placeholder:"\u8BF7\u9009\u62E9\u5173\u5361",defaultValue:"all",onChange:Ui=>rr(void 0,null,function*(){no(Ui),Wl({page:1,page_size:10},Ui)})},Yt.createElement(ke.default.Option,{value:"all"}," \u5168\u90E8 "),(Di=Tn==null?void 0:Tn.stage_list)==null?void 0:Di.map((Ui,ta)=>Yt.createElement(ke.default.Option,{key:ta,value:Ui==null?void 0:Ui.challenge_id},"\u7B2C",(0,ft.EM)(ta+1),"\u5173")))),Yt.createElement("div",{className:"mt20"},Yt.createElement(Ee.default,{dataSource:Mr,rowKey:Ui=>Ui==null?void 0:Ui.id,pagination:!1,columns:Va,loading:wo})),Yt.createElement("div",{className:He.footer},Yt.createElement("div",null,Yt.createElement("span",{style:{color:"#656F87"}},"\u5171",Yt.createElement("span",{className:"c-light-primary"},ri),"\u6761\u6570\u636E")),Yt.createElement(Ke.Z,{defaultCurrent:1,defaultPageSize:10,current:(Ci==null?void 0:Ci.page)||1,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,total:ri,onChange:Zl})))))};var ni=(0,Ue.connect)(({shixunHomeworks:er,classroomList:Rn,loading:Ar,globalSetting:Ei,user:Kn})=>({shixunHomeworks:er,classroomList:Rn,globalSetting:Ei,loading:Ar.effects,user:Kn}))(sr)},52217:function(Vn,Mt,ae){"use strict";var x=ae(62957),ct=ae(6767),Le=ae(38147),Je=ae(65582),ze=ae(41867),Se=ae(59301),Ue=(Ce,oe,Oe)=>new Promise((ve,Me)=>{var Fe=xe=>{try{ye(Oe.next(xe))}catch(Ee){Me(Ee)}},Te=xe=>{try{ye(Oe.throw(xe))}catch(Ee){Me(Ee)}},ye=xe=>xe.done?ve(xe.value):Promise.resolve(xe.value).then(Fe,Te);ye((Oe=Oe.apply(Ce,oe)).next())});const fe=({shixunHomeworks:Ce,classroomList:oe,dispatch:Oe})=>{const ve=(0,Je.useParams)();return Se.createElement(x.default,{centered:!0,title:"\u63D0\u793A",open:Ce.actionTabs.key==="\u6253\u56DE\u91CD\u505A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Ue(void 0,null,function*(){var Me,Fe,Te,ye;if((0,ze.Rm)()&&!((Me=oe.AssistantObject.practice)!=null&&Me.can_redo)){ct.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const xe=yield(0,Le.ZP)(`/api/myshixuns/${Ce.actionTabs.selectArrs.myshixun_identifier}/reset_my_game.json`,{method:"GET",params:{course_id:ve.coursesId,homework_common_id:Ce.actionTabs.homework_common_id}});if(xe.shixun_identifier){ct.ZP.success("\u64CD\u4F5C\u6210\u529F"),Oe({type:"shixunHomeworks/setActionTabs",payload:{}});const Ee=(Te=(Fe=xe==null?void 0:xe.new_works)==null?void 0:Fe.find(ke=>`${ke.homework_common_id}`===ve.categoryId))==null?void 0:Te.id;if((0,ze.Rm)()&&!((ye=oe.AssistantObject.practice)!=null&&ye.can_view))return;Je.history.replace(`/classrooms/${ve.coursesId}/shixun_homework/${ve.categoryId}/${Ee}/comment`)}}),onCancel:()=>{Oe({type:"shixunHomeworks/setActionTabs",payload:{}})}},Se.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C\u5B66\u751F\u5B9E\u8BAD\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),Se.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"))};Mt.Z=(0,Je.connect)(({shixunHomeworks:Ce,classroomList:oe})=>({shixunHomeworks:Ce,classroomList:oe}))(fe)},84454:function(Vn,Mt,ae){"use strict";ae.d(Mt,{AD:function(){return je},BA:function(){return ie},D9:function(){return ot},Hp:function(){return et},IM:function(){return zt},Iy:function(){return ut},KM:function(){return pe},KU:function(){return pn},MJ:function(){return Ge},Ne:function(){return Zt},ON:function(){return mn},Uj:function(){return an},VY:function(){return Ut},YO:function(){return Cn},YX:function(){return _t},Zn:function(){return Te},_g:function(){return Ke},_k:function(){return We},c6:function(){return pt},cr:function(){return ye},eV:function(){return Ne},fi:function(){return xe},gh:function(){return bt},hS:function(){return tt},iA:function(){return Ee},j6:function(){return Qe},je:function(){return ht},jj:function(){return Re},kS:function(){return kt},lS:function(){return Bt},o6:function(){return He},pO:function(){return de},rQ:function(){return Ot},sA:function(){return ft},xm:function(){return _e},xo:function(){return Nt},y8:function(){return it},yd:function(){return ke}});var x=ae(33270),ct=ae(65582),Le=ae(65862),Je=ae(6767),ze=ae(74128),Se=Object.defineProperty,Ue=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,oe=(ee,se,le)=>se in ee?Se(ee,se,{enumerable:!0,configurable:!0,writable:!0,value:le}):ee[se]=le,Oe=(ee,se)=>{for(var le in se||(se={}))fe.call(se,le)&&oe(ee,le,se[le]);if(Ue)for(var le of Ue(se))Ce.call(se,le)&&oe(ee,le,se[le]);return ee},ve=(ee,se,le)=>new Promise((Be,$e)=>{var st=Et=>{try{mt(le.next(Et))}catch(Lt){$e(Lt)}},gt=Et=>{try{mt(le.throw(Et))}catch(Lt){$e(Lt)}},mt=Et=>Et.done?Be(Et.value):Promise.resolve(Et.value).then(st,gt);mt((le=le.apply(ee,se)).next())});const Me=()=>{(0,ct.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},Fe=()=>{(0,ct.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},Te=ee=>ve(void 0,null,function*(){Me(),(yield(0,x.YR)(Oe({},ee))).status===0&&(yield(0,Le.QH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/courses/${ee.coursesId}/export_couser_info.json`,query:ee}))),Fe()}),ye=ee=>ve(void 0,null,function*(){const se=yield(0,x.yS)(Oe({},ee));if(se.status===0)Je.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ct.history.push(`/classrooms/${ee.coursesId}/exportlist/course_member_act_score`);else{if(se.status===-2)return se;se.status===-3&&((0,ct.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ct.history.push(`/classrooms/${ee.coursesId}/exportlist/course_member_act_score`))}}),xe=ee=>ve(void 0,null,function*(){const se=yield(0,x.W0)(Oe({},ee));if(se.status===0)Je.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ct.history.push(`/classrooms/${ee.coursesId}/exportlist/course_total_score`);else{if(se.status===-4)return se;se.status===-3&&((0,ct.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ct.history.push(`/classrooms/${ee.coursesId}/exportlist/course_total_score`))}}),Ee=ee=>ve(void 0,null,function*(){const se=yield(0,x.Nl)(Oe({},ee));if(se.status===0)Je.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ct.history.push(`/classrooms/${ee.coursesId}/exportlist/course_total_exercise_and_other`);else{if(se.status===-4)return se;se.status===-3&&((0,ct.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ct.history.push(`/classrooms/${ee.coursesId}/exportlist/course_total_exercise_and_other`))}}),ke=ee=>ve(void 0,null,function*(){const se=yield(0,x.IU)(Oe({},ee));if(se.status===0)Je.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ct.history.push(`/classrooms/${ee.coursesId}/exportlist/export_star_user`);else{if(se.status===-4)return se;se.status===-3&&((0,ct.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ct.history.push(`/classrooms/${ee.coursesId}/exportlist/export_star_user`))}}),Ke=ee=>ve(void 0,null,function*(){const se=yield(0,x.td)(Oe({},ee));if(se.status===0)Je.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ct.history.push(`/classrooms/${ee.coursesId}/exportlist/course_total_exercise_and_other`);else{if(se.status===-2)return se;if(se.status===-3)(0,ct.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ct.history.push(`/classrooms/${ee.coursesId}/exportlist/course_total_exercise_and_other`);else if(se.status===-4)return se}}),Qe=ee=>ve(void 0,null,function*(){const se=yield(0,x.QX)(Oe({},ee));if(se.status===0)Je.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ct.history.push(`/classrooms/${ee.coursesId}/exportlist/course_total_homework`);else{if(se.status===-4)return se;se.status===-3&&((0,ct.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ct.history.push(`/classrooms/${ee.coursesId}/exportlist/course_total_homework`))}}),Re=(ee,se)=>ve(void 0,null,function*(){const le=yield(0,x.o_)(Oe({},ee));le.status===0?(Je.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"),ct.history.push(`/classrooms/${ee.coursesId}/exportlist/${se}`)):le.status===-3&&((0,ct.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ct.history.push(`/classrooms/${ee.coursesId}/exportlist/${se}`))}),et=(ee,se)=>ve(void 0,null,function*(){const le=yield(0,x.ZL)(Oe({},ee));le.status===0?(Je.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"),ct.history.push(`/classrooms/${ee.coursesId}/exportlist/${se}`)):le.status===-3&&((0,ct.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ct.history.push(`/classrooms/${ee.coursesId}/exportlist/${se}`))}),Ge=(ee,se)=>ve(void 0,null,function*(){const le=yield(0,x.vV)(Oe({},ee));le.status===0?(Je.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"),ct.history.push(`/classrooms/${ee.coursesId}/exportlist/${se}`)):le.status===-3&&((0,ct.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ct.history.push(`/classrooms/${ee.coursesId}/exportlist/${se}`))}),ut=(ee,se)=>ve(void 0,null,function*(){const le=yield(0,x.aP)(Oe({},ee));le.status===0?(Je.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ct.history.push(`/classrooms/${ee.coursesId}/exportlist/${se}`)):le.status===-3&&((0,ct.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ct.history.push(`/classrooms/${ee.coursesId}/exportlist/${se}`))}),at=ee=>ve(void 0,null,function*(){Me(),(yield exportCourseWorkListAppendix(Oe({},ee))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${ee.categoryId}/works_list.zip`,query:ee}))),Fe()}),ft=ee=>ve(void 0,null,function*(){Me(),yield(0,Le.FH)("",ze.Z.API_SERVER+`/api/polls/${ee.categoryId}/commit_result.xlsx`),Fe()}),bt=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/courses/${ee.coursesId}/attendances/export_xlsx_data.xlsx`,query:ee}))}),He=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/courses/${ee.coursesId}/video_study_statics.xlsx`,query:ee}))}),pt=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/courses/${ee.coursesId}/export_video_study.xlsx`,query:ee}))}),Ne=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/courses/${ee.coursesId}/export_course_students_info.xlsx`,query:ee}))}),je=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+"/api/school_manages/students.xlsx",query:ee}))}),Ot=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+"/api/item_banks/export.xlsx",query:ee}))}),it=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:ee}))}),ht=ee=>ve(void 0,null,function*(){const se=yield(0,x.Uy)(Oe({},ee));se.status===0?(Je.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ct.history.push(`/classrooms/${ee.coursesId}/exportlist/exercise_score,export_exercise_users`)):se.status===-3&&((0,ct.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ct.history.push(`/classrooms/${ee.coursesId}/exportlist/exercise_score,export_exercise_users`))}),Bt=ee=>ve(void 0,null,function*(){const se=yield(0,x.tg)(Oe({},ee));se.status===0?(Je.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ct.history.push(`/classrooms/${ee.coursesId}/exportlist/exercise_score,export_exercise_report`)):se.status===-3&&((0,ct.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ct.history.push(`/classrooms/${ee.coursesId}/exportlist/exercise_score,export_exercise_report`))}),We=ee=>ve(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/export_records/${ee.id}.xlsx`,query:ee}))}),_e=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:ee}))}),ot=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/courses/${ee==null?void 0:ee.coursesId}/${ee.menuKey}_statistic.xlsx?${ee.checkedList.map(se=>`course_group_id[]=${se}`).join("&")}`,query:ee}))}),Zt=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/ec_years/${ee==null?void 0:ee.ec_year_id}/ec_training_objectives.xlsx`,query:ee}))}),zt=ee=>ve(void 0,null,function*(){yield(0,Le.FH)(ee==null?void 0:ee.name,(0,Le.NY)({url:ze.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:ee}))}),tt=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/ec_years/${ee==null?void 0:ee.ec_year_id}/ec_courses.xlsx`,query:ee}))}),Nt=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/ec_years/${ee==null?void 0:ee.ec_year_id}/ec_graduation_requirements.xlsx`,query:ee}))}),Ut=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:ee}))}),pn=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/exercises/${ee.categoryId}/rank_list.xlsx`,query:ee}))}),kt=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:ee}))}),mn=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/examination_banks/${ee.id}.json`,query:ee}))}),_t=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/exercises/${ee.categoryId}.json`,query:ee}))}),Cn=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/polls/${ee==null?void 0:ee.id}/commit_result.json`,query:ee}))}),an=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+"/api/paths/get_task_pass.json",query:ee}))}),de=(ee,se)=>ve(void 0,null,function*(){yield(0,Le.FH)(se||"",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/exercises/${ee==null?void 0:ee.exercise_id}/consult_exercise.json`,query:ee}))}),pe=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/competitions/${ee==null?void 0:ee.identifier}/competition_commit_records/member_works.xlsx`,query:ee}))}),ie=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/courses/${ee==null?void 0:ee.coursesId}/group_homeworks/import_group_template.xlsx`,query:ee}))})},61527:function(Vn,Mt,ae){"use strict";ae.d(Mt,{U:function(){return Ce}});var x=ae(59301),ct=Object.defineProperty,Le=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,Se=(oe,Oe,ve)=>Oe in oe?ct(oe,Oe,{enumerable:!0,configurable:!0,writable:!0,value:ve}):oe[Oe]=ve,Ue=(oe,Oe)=>{for(var ve in Oe||(Oe={}))Je.call(Oe,ve)&&Se(oe,ve,Oe[ve]);if(Le)for(var ve of Le(Oe))ze.call(Oe,ve)&&Se(oe,ve,Oe[ve]);return oe},fe=(oe,Oe,ve)=>new Promise((Me,Fe)=>{var Te=Ee=>{try{xe(ve.next(Ee))}catch(ke){Fe(ke)}},ye=Ee=>{try{xe(ve.throw(Ee))}catch(ke){Fe(ke)}},xe=Ee=>Ee.done?Me(Ee.value):Promise.resolve(Ee.value).then(Te,ye);xe((ve=ve.apply(oe,Oe)).next())});function Ce(oe,Oe){const[ve,Me]=(0,x.useState)(Oe),[Fe,Te]=(0,x.useState)(!1),[ye,xe]=(0,x.useState)();return[ve,Fe,(ke,Ke=!1)=>fe(this,null,function*(){const Qe=Ke?Oe:Ue(Ue({},ve),ke);Te(!0),Me(Qe);const Re=yield oe(Qe);return Te(!1),xe(Re),Re}),ye,xe]}},49142:function(Vn,Mt,ae){"use strict";ae.d(Mt,{AL:function(){return Qe},Iy:function(){return Oe},Qv:function(){return Fe},ez:function(){return Ke},jb:function(){return ve}});var x=ae(32834),ct=ae.n(x),Le=ae(11690),Je=ae.n(Le);let ze=1;function Se(at,ft){const bt=at.match(/^(\s+)(?:```)/);if(bt===null)return ft;const He=bt[1];return ft.split(`
`).map(pt=>{const Ne=pt.match(/^\s+/);if(Ne===null)return pt;const[je]=Ne;return je.length>=He.length?pt.slice(He.length):pt}).join(`
`)}let Ue=[],fe=["<ul>"];const Ce=new(ct()).Renderer,oe=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Oe(){Ue.length=0,fe=["<ul>"]}const ve={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Me(at,ft,bt,He){if(ft>=at.length||at[ft].level<=bt)return ft;var pt=at[ft];He.push("<li><a href='#"+ze+pt.anchor+"'>"+pt.text+"</a>"),ft++;var Ne=[];return ft=Me(at,ft,pt.level,Ne),Ne.length>0&&(He.push("<ul>"),Ne.forEach(function(je){He.push(je)}),He.push("</ul>")),He.push("</li>"),ft=Me(at,ft,bt,He),ft}function Fe(){return Me(Ue,0,0,fe),fe.push("</ul>"),fe.join("")}const Te={heading(at){const ft=oe.exec(at);if(ze+=1,ft)return{type:"heading",raw:ft[0],depth:ft[1].length,text:ft[2]}},fences(at){const ft=this.rules.block.fences.exec(at);if(ft){const bt=ft[0];let He=Se(bt,ft[3]||"");const pt=ft[2]?ft[2].trim():ft[2];if(["latex","katex","math"].indexOf(pt)>=0){const Ne=Ee(),je=He;He=Ne,ke[Ne]={type:"block",expression:je}}return{type:"code",raw:bt,lang:pt,text:He}}}},ye=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let xe=0;const Ee=()=>`__special_katext_id_${xe++}__`;let ke={};function Ke(){return ke}function Qe(){xe=0,ke={}}function Re(at){return at=at.replace(ye,(ft,bt)=>{const He=Ee();return ke[He]={type:"inline",expression:bt},He}),at}const et=Ce.listitem;Ce.listitem=function(at){return et(Re(at))};const Ge=Ce.paragraph;Ce.paragraph=function(at){return Ge(Re(at))};const ut=Ce.tablecell;Ce.tablecell=function(at,ft){return ut(Re(at),ft)},Ce.code=function(at,ft,bt){const He=(ft||"").match(/\S*/)[0];return He?["latex","katex","math"].indexOf(He)>=0?`<p class='editormd-tex'>${at}</p>`:`<pre class="prettyprint linenums"><code class="language-${ft}">${bt?at:(0,Le.escape)(at,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(bt?at:(0,Le.escape)(at,!0))+"</code></pre>"},Ce.heading=function(at,ft,bt){let He=this.options.headerPrefix+bt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ue.push({anchor:He,level:ft,text:at}),"<h"+ft+' id="'+ze+He+'">'+at+"</h"+ft+">"},ct().setOptions({silent:!0,gfm:!0,pedantic:!1}),ct().use({tokenizer:Te,renderer:Ce}),Mt.ZP=ct()},9981:function(Vn,Mt){"use strict";const ae=function(){const x=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ct=1;ct<arguments.length;ct++){const Le=ct<0||arguments.length<=ct?void 0:arguments[ct];Le&&Object.keys(Le).forEach(Je=>{const ze=Le[Je];ze!==void 0&&(x[Je]=ze)})}return x};Mt.Z=ae},86013:function(Vn,Mt,ae){"use strict";var x=ae(59301),ct=ae(19248);const Le=Je=>{let ze;return typeof Je=="object"&&(Je!=null&&Je.clearIcon)?ze=Je:Je&&(ze={clearIcon:x.createElement(ct.Z,null)}),ze};Mt.Z=Le},97224:function(Vn,Mt,ae){"use strict";ae.d(Mt,{F:function(){return x}});function x(Le){return Le!=null&&Le===Le.window}const ct=Le=>{var Je,ze;if(typeof window=="undefined")return 0;let Se=0;return x(Le)?Se=Le.pageYOffset:Le instanceof Document?Se=Le.documentElement.scrollTop:(Le instanceof HTMLElement||Le)&&(Se=Le.scrollTop),Le&&!x(Le)&&typeof Se!="number"&&(Se=(ze=((Je=Le.ownerDocument)!==null&&Je!==void 0?Je:Le).documentElement)===null||ze===void 0?void 0:ze.scrollTop),Se};Mt.Z=ct},83010:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Je}});var x=ae(16089);function ct(ze,Se,Ue,fe){const Ce=Ue-Se;return ze/=fe/2,ze<1?Ce/2*ze*ze*ze+Se:Ce/2*((ze-=2)*ze*ze+2)+Se}var Le=ae(97224);function Je(ze){let Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Ue=()=>window,callback:fe,duration:Ce=450}=Se,oe=Ue(),Oe=(0,Le.Z)(oe),ve=Date.now(),Me=()=>{const Te=Date.now()-ve,ye=ct(Te>Ce?Ce:Te,Oe,ze,Ce);(0,Le.F)(oe)?oe.scrollTo(window.pageXOffset,ye):oe instanceof Document||oe.constructor.name==="HTMLDocument"?oe.documentElement.scrollTop=ye:oe.scrollTop=ye,Te<Ce?(0,x.Z)(Me):typeof fe=="function"&&fe()};(0,x.Z)(Me)}},91882:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return it}});var x=ae(59301),ct=ae(92310),Le=ae.n(ct),Je=ae(11592),ze=ae(26112),Se=ae(22703),Ue=ae(48755),fe=ae(84105),Ce=ae(19563);const oe=ht=>{let{children:Bt}=ht;const{getPrefixCls:We}=x.useContext(Ue.E_),_e=We("breadcrumb");return x.createElement("li",{className:`${_e}-separator`,"aria-hidden":"true"},Bt===""?Bt:Bt||"/")};oe.__ANT_BREADCRUMB_SEPARATOR=!0;var Oe=oe,ve=function(ht,Bt){var We={};for(var _e in ht)Object.prototype.hasOwnProperty.call(ht,_e)&&Bt.indexOf(_e)<0&&(We[_e]=ht[_e]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,_e=Object.getOwnPropertySymbols(ht);ot<_e.length;ot++)Bt.indexOf(_e[ot])<0&&Object.prototype.propertyIsEnumerable.call(ht,_e[ot])&&(We[_e[ot]]=ht[_e[ot]]);return We};function Me(ht,Bt){if(ht.title===void 0||ht.title===null)return null;const We=Object.keys(Bt).join("|");return typeof ht.title=="object"?ht.title:String(ht.title).replace(new RegExp(`:(${We})`,"g"),(_e,ot)=>Bt[ot]||_e)}function Fe(ht,Bt,We,_e){if(We==null)return null;const{className:ot,onClick:Zt}=Bt,zt=ve(Bt,["className","onClick"]),tt=Object.assign(Object.assign({},(0,ze.Z)(zt,{data:!0,aria:!0})),{onClick:Zt});return _e!==void 0?x.createElement("a",Object.assign({},tt,{className:Le()(`${ht}-link`,ot),href:_e}),We):x.createElement("span",Object.assign({},tt,{className:Le()(`${ht}-link`,ot)}),We)}function Te(ht,Bt){return(_e,ot,Zt,zt,tt)=>{if(Bt)return Bt(_e,ot,Zt,zt);const Nt=Me(_e,ot);return Fe(ht,_e,Nt,tt)}}var ye=function(ht,Bt){var We={};for(var _e in ht)Object.prototype.hasOwnProperty.call(ht,_e)&&Bt.indexOf(_e)<0&&(We[_e]=ht[_e]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,_e=Object.getOwnPropertySymbols(ht);ot<_e.length;ot++)Bt.indexOf(_e[ot])<0&&Object.prototype.propertyIsEnumerable.call(ht,_e[ot])&&(We[_e[ot]]=ht[_e[ot]]);return We};const xe=ht=>{const{prefixCls:Bt,separator:We="/",children:_e,menu:ot,overlay:Zt,dropdownProps:zt,href:tt}=ht,Ut=(pn=>{if(ot||Zt){const kt=Object.assign({},zt);if(ot){const mn=ot||{},{items:_t}=mn,Cn=ye(mn,["items"]);kt.menu=Object.assign(Object.assign({},Cn),{items:_t==null?void 0:_t.map((an,de)=>{var{key:pe,title:ie,label:ee,path:se}=an,le=ye(an,["key","title","label","path"]);let Be=ee!=null?ee:ie;return se&&(Be=x.createElement("a",{href:`${tt}${se}`},Be)),Object.assign(Object.assign({},le),{key:pe!=null?pe:de,label:Be})})})}else Zt&&(kt.overlay=Zt);return x.createElement(Ce.Z,Object.assign({placement:"bottom"},kt),x.createElement("span",{className:`${Bt}-overlay-link`},pn,x.createElement(fe.Z,null)))}return pn})(_e);return Ut!=null?x.createElement(x.Fragment,null,x.createElement("li",null,Ut),We&&x.createElement(Oe,null,We)):null},Ee=ht=>{const{prefixCls:Bt,children:We,href:_e}=ht,ot=ye(ht,["prefixCls","children","href"]),{getPrefixCls:Zt}=x.useContext(Ue.E_),zt=Zt("breadcrumb",Bt);return x.createElement(xe,Object.assign({},ot,{prefixCls:zt}),Fe(zt,ot,We,_e))};Ee.__ANT_BREADCRUMB_ITEM=!0;var ke=Ee,Ke=ae(36237),Qe=ae(63356),Re=ae(16931),et=ae(51636);const Ge=ht=>{const{componentCls:Bt,iconCls:We,calc:_e}=ht;return{[Bt]:Object.assign(Object.assign({},(0,Qe.Wf)(ht)),{color:ht.itemColor,fontSize:ht.fontSize,[We]:{fontSize:ht.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:ht.linkColor,transition:`color ${ht.motionDurationMid}`,padding:`0 ${(0,Ke.unit)(ht.paddingXXS)}`,borderRadius:ht.borderRadiusSM,height:ht.fontHeight,display:"inline-block",marginInline:_e(ht.marginXXS).mul(-1).equal(),"&:hover":{color:ht.linkHoverColor,backgroundColor:ht.colorBgTextHover}},(0,Qe.Qy)(ht)),"li:last-child":{color:ht.lastItemColor},[`${Bt}-separator`]:{marginInline:ht.separatorMargin,color:ht.separatorColor},[`${Bt}-link`]:{[`
> ${We} + span,
> ${We} + a
`]:{marginInlineStart:ht.marginXXS}},[`${Bt}-overlay-link`]:{borderRadius:ht.borderRadiusSM,height:ht.fontHeight,display:"inline-block",padding:`0 ${(0,Ke.unit)(ht.paddingXXS)}`,marginInline:_e(ht.marginXXS).mul(-1).equal(),[`> ${We}`]:{marginInlineStart:ht.marginXXS,fontSize:ht.fontSizeIcon},"&:hover":{color:ht.linkHoverColor,backgroundColor:ht.colorBgTextHover,a:{color:ht.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${ht.componentCls}-rtl`]:{direction:"rtl"}})}},ut=ht=>({itemColor:ht.colorTextDescription,lastItemColor:ht.colorText,iconFontSize:ht.fontSize,linkColor:ht.colorTextDescription,linkHoverColor:ht.colorText,separatorColor:ht.colorTextDescription,separatorMargin:ht.marginXS});var at=(0,Re.I$)("Breadcrumb",ht=>{const Bt=(0,et.mergeToken)(ht,{});return Ge(Bt)},ut),ft=function(ht,Bt){var We={};for(var _e in ht)Object.prototype.hasOwnProperty.call(ht,_e)&&Bt.indexOf(_e)<0&&(We[_e]=ht[_e]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,_e=Object.getOwnPropertySymbols(ht);ot<_e.length;ot++)Bt.indexOf(_e[ot])<0&&Object.prototype.propertyIsEnumerable.call(ht,_e[ot])&&(We[_e[ot]]=ht[_e[ot]]);return We};function bt(ht){const{breadcrumbName:Bt,children:We}=ht,_e=ft(ht,["breadcrumbName","children"]),ot=Object.assign({title:Bt},_e);return We&&(ot.menu={items:We.map(Zt=>{var{breadcrumbName:zt}=Zt,tt=ft(Zt,["breadcrumbName"]);return Object.assign(Object.assign({},tt),{title:zt})})}),ot}function He(ht,Bt){return(0,x.useMemo)(()=>ht||(Bt?Bt.map(bt):null),[ht,Bt])}var pt=function(ht,Bt){var We={};for(var _e in ht)Object.prototype.hasOwnProperty.call(ht,_e)&&Bt.indexOf(_e)<0&&(We[_e]=ht[_e]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,_e=Object.getOwnPropertySymbols(ht);ot<_e.length;ot++)Bt.indexOf(_e[ot])<0&&Object.prototype.propertyIsEnumerable.call(ht,_e[ot])&&(We[_e[ot]]=ht[_e[ot]]);return We};const Ne=(ht,Bt)=>{if(Bt===void 0)return Bt;let We=(Bt||"").replace(/^\//,"");return Object.keys(ht).forEach(_e=>{We=We.replace(`:${_e}`,ht[_e])}),We},je=ht=>{const{prefixCls:Bt,separator:We="/",style:_e,className:ot,rootClassName:Zt,routes:zt,items:tt,children:Nt,itemRender:Ut,params:pn={}}=ht,kt=pt(ht,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:mn,direction:_t,breadcrumb:Cn}=x.useContext(Ue.E_);let an;const de=mn("breadcrumb",Bt),[pe,ie,ee]=at(de),se=He(tt,zt),le=Te(de,Ut);if(se&&se.length>0){const st=[],gt=tt||zt;an=se.map((mt,Et)=>{const{path:Lt,key:jt,type:Ct,menu:lt,overlay:$t,onClick:Wt,className:wn,separator:ln,dropdownProps:tn}=mt,Qn=Ne(pn,Lt);Qn!==void 0&&st.push(Qn);const En=jt!=null?jt:Et;if(Ct==="separator")return x.createElement(Oe,{key:En},ln);const Rt={},un=Et===se.length-1;lt?Rt.menu=lt:$t&&(Rt.overlay=$t);let{href:Dn}=mt;return st.length&&Qn!==void 0&&(Dn=`#/${st.join("/")}`),x.createElement(xe,Object.assign({key:En},Rt,(0,ze.Z)(mt,{data:!0,aria:!0}),{className:wn,dropdownProps:tn,href:Dn,separator:un?"":We,onClick:Wt,prefixCls:de}),le(mt,pn,gt,st,Dn))})}else if(Nt){const st=(0,Je.Z)(Nt).length;an=(0,Je.Z)(Nt).map((gt,mt)=>{if(!gt)return gt;const Et=mt===st-1;return(0,Se.Tm)(gt,{separator:Et?"":We,key:mt})})}const Be=Le()(de,Cn==null?void 0:Cn.className,{[`${de}-rtl`]:_t==="rtl"},ot,Zt,ie,ee),$e=Object.assign(Object.assign({},Cn==null?void 0:Cn.style),_e);return pe(x.createElement("nav",Object.assign({className:Be,style:$e},kt),x.createElement("ol",null,an)))};je.Item=ke,je.Separator=Oe;var Ot=je,it=Ot},62673:function(Vn,Mt,ae){"use strict";ae.d(Mt,{default:function(){return at}});var x=ae(59301),ct=ae(92310),Le=ae.n(ct),Je=ae(16632),ze=ae(8654),Se=ae(12919),Ue=ae(63872),fe=ae(48755),Ce=ae(2171),oe=ae(83397),Oe=ae(56553),Me=x.createContext(null),Fe=ae(36170),Te=ae(74632),ye=function(ft,bt){var He={};for(var pt in ft)Object.prototype.hasOwnProperty.call(ft,pt)&&bt.indexOf(pt)<0&&(He[pt]=ft[pt]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,pt=Object.getOwnPropertySymbols(ft);Ne<pt.length;Ne++)bt.indexOf(pt[Ne])<0&&Object.prototype.propertyIsEnumerable.call(ft,pt[Ne])&&(He[pt[Ne]]=ft[pt[Ne]]);return He};const xe=(ft,bt)=>{var He;const{prefixCls:pt,className:Ne,rootClassName:je,children:Ot,indeterminate:it=!1,style:ht,onMouseEnter:Bt,onMouseLeave:We,skipGroup:_e=!1,disabled:ot}=ft,Zt=ye(ft,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:zt,direction:tt,checkbox:Nt}=x.useContext(fe.E_),Ut=x.useContext(Me),{isFormItemInput:pn}=x.useContext(Oe.aM),kt=x.useContext(Ce.Z),mn=(He=(Ut==null?void 0:Ut.disabled)||ot)!==null&&He!==void 0?He:kt,_t=x.useRef(Zt.value),Cn=x.useRef(null),an=(0,ze.sQ)(bt,Cn);x.useEffect(()=>{Ut==null||Ut.registerValue(Zt.value)},[]),x.useEffect(()=>{if(!_e)return Zt.value!==_t.current&&(Ut==null||Ut.cancelValue(_t.current),Ut==null||Ut.registerValue(Zt.value),_t.current=Zt.value),()=>Ut==null?void 0:Ut.cancelValue(Zt.value)},[Zt.value]),x.useEffect(()=>{var mt;!((mt=Cn.current)===null||mt===void 0)&&mt.input&&(Cn.current.input.indeterminate=it)},[it]);const de=zt("checkbox",pt),pe=(0,oe.Z)(de),[ie,ee,se]=(0,Fe.ZP)(de,pe),le=Object.assign({},Zt);Ut&&!_e&&(le.onChange=function(){Zt.onChange&&Zt.onChange.apply(Zt,arguments),Ut.toggleOption&&Ut.toggleOption({label:Ot,value:Zt.value})},le.name=Ut.name,le.checked=Ut.value.includes(Zt.value));const Be=Le()(`${de}-wrapper`,{[`${de}-rtl`]:tt==="rtl",[`${de}-wrapper-checked`]:le.checked,[`${de}-wrapper-disabled`]:mn,[`${de}-wrapper-in-form-item`]:pn},Nt==null?void 0:Nt.className,Ne,je,se,pe,ee),$e=Le()({[`${de}-indeterminate`]:it},Ue.A,ee),[st,gt]=(0,Te.Z)(le.onClick);return ie(x.createElement(Se.Z,{component:"Checkbox",disabled:mn},x.createElement("label",{className:Be,style:Object.assign(Object.assign({},Nt==null?void 0:Nt.style),ht),onMouseEnter:Bt,onMouseLeave:We,onClick:st},x.createElement(Je.Z,Object.assign({},le,{onClick:gt,prefixCls:de,className:$e,disabled:mn,ref:an})),Ot!==void 0&&x.createElement("span",{className:`${de}-label`},Ot))))};var ke=x.forwardRef(xe),Ke=ae(94480),Qe=ae(2738),Re=function(ft,bt){var He={};for(var pt in ft)Object.prototype.hasOwnProperty.call(ft,pt)&&bt.indexOf(pt)<0&&(He[pt]=ft[pt]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,pt=Object.getOwnPropertySymbols(ft);Ne<pt.length;Ne++)bt.indexOf(pt[Ne])<0&&Object.prototype.propertyIsEnumerable.call(ft,pt[Ne])&&(He[pt[Ne]]=ft[pt[Ne]]);return He},Ge=x.forwardRef((ft,bt)=>{const{defaultValue:He,children:pt,options:Ne=[],prefixCls:je,className:Ot,rootClassName:it,style:ht,onChange:Bt}=ft,We=Re(ft,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:_e,direction:ot}=x.useContext(fe.E_),[Zt,zt]=x.useState(We.value||He||[]),[tt,Nt]=x.useState([]);x.useEffect(()=>{"value"in We&&zt(We.value||[])},[We.value]);const Ut=x.useMemo(()=>Ne.map($e=>typeof $e=="string"||typeof $e=="number"?{label:$e,value:$e}:$e),[Ne]),pn=$e=>{Nt(st=>st.filter(gt=>gt!==$e))},kt=$e=>{Nt(st=>[].concat((0,Ke.Z)(st),[$e]))},mn=$e=>{const st=Zt.indexOf($e.value),gt=(0,Ke.Z)(Zt);st===-1?gt.push($e.value):gt.splice(st,1),"value"in We||zt(gt),Bt==null||Bt(gt.filter(mt=>tt.includes(mt)).sort((mt,Et)=>{const Lt=Ut.findIndex(Ct=>Ct.value===mt),jt=Ut.findIndex(Ct=>Ct.value===Et);return Lt-jt}))},_t=_e("checkbox",je),Cn=`${_t}-group`,an=(0,oe.Z)(_t),[de,pe,ie]=(0,Fe.ZP)(_t,an),ee=(0,Qe.Z)(We,["value","disabled"]),se=Ne.length?Ut.map($e=>x.createElement(ke,{prefixCls:_t,key:$e.value.toString(),disabled:"disabled"in $e?$e.disabled:We.disabled,value:$e.value,checked:Zt.includes($e.value),onChange:$e.onChange,className:`${Cn}-item`,style:$e.style,title:$e.title,id:$e.id,required:$e.required},$e.label)):pt,le={toggleOption:mn,value:Zt,disabled:We.disabled,name:We.name,registerValue:kt,cancelValue:pn},Be=Le()(Cn,{[`${Cn}-rtl`]:ot==="rtl"},Ot,it,ie,an,pe);return de(x.createElement("div",Object.assign({className:Be,style:ht},ee,{ref:bt}),x.createElement(Me.Provider,{value:le},se)))});const ut=ke;ut.Group=Ge,ut.__ANT_CHECKBOX=!0;var at=ut},36170:function(Vn,Mt,ae){"use strict";ae.d(Mt,{C2:function(){return Se}});var x=ae(36237),ct=ae(63356),Le=ae(51636),Je=ae(16931);const ze=Ue=>{const{checkboxCls:fe}=Ue,Ce=`${fe}-wrapper`;return[{[`${fe}-group`]:Object.assign(Object.assign({},(0,ct.Wf)(Ue)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ue.marginXS,[`> ${Ue.antCls}-row`]:{flex:1}}),[Ce]:Object.assign(Object.assign({},(0,ct.Wf)(Ue)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ce}`]:{marginInlineStart:0},[`&${Ce}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[fe]:Object.assign(Object.assign({},(0,ct.Wf)(Ue)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ue.borderRadiusSM,alignSelf:"center",[`${fe}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${fe}-inner`]:Object.assign({},(0,ct.oN)(Ue))},[`${fe}-inner`]:{boxSizing:"border-box",display:"block",width:Ue.checkboxSize,height:Ue.checkboxSize,direction:"ltr",backgroundColor:Ue.colorBgContainer,border:`${(0,x.unit)(Ue.lineWidth)} ${Ue.lineType} ${Ue.colorBorder}`,borderRadius:Ue.borderRadiusSM,borderCollapse:"separate",transition:`all ${Ue.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:Ue.calc(Ue.checkboxSize).div(14).mul(5).equal(),height:Ue.calc(Ue.checkboxSize).div(14).mul(8).equal(),border:`${(0,x.unit)(Ue.lineWidthBold)} solid ${Ue.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ue.motionDurationFast} ${Ue.motionEaseInBack}, opacity ${Ue.motionDurationFast}`}},"& + span":{paddingInlineStart:Ue.paddingXS,paddingInlineEnd:Ue.paddingXS}})},{[`
${Ce}:not(${Ce}-disabled),
${fe}:not(${fe}-disabled)
`]:{[`&:hover ${fe}-inner`]:{borderColor:Ue.colorPrimary}},[`${Ce}:not(${Ce}-disabled)`]:{[`&:hover ${fe}-checked:not(${fe}-disabled) ${fe}-inner`]:{backgroundColor:Ue.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${fe}-checked:not(${fe}-disabled):after`]:{borderColor:Ue.colorPrimaryHover}}},{[`${fe}-checked`]:{[`${fe}-inner`]:{backgroundColor:Ue.colorPrimary,borderColor:Ue.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Ue.motionDurationMid} ${Ue.motionEaseOutBack} ${Ue.motionDurationFast}`}}},[`
${Ce}-checked:not(${Ce}-disabled),
${fe}-checked:not(${fe}-disabled)
`]:{[`&:hover ${fe}-inner`]:{backgroundColor:Ue.colorPrimaryHover,borderColor:"transparent"}}},{[fe]:{"&-indeterminate":{[`${fe}-inner`]:{backgroundColor:`${Ue.colorBgContainer} !important`,borderColor:`${Ue.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:Ue.calc(Ue.fontSizeLG).div(2).equal(),height:Ue.calc(Ue.fontSizeLG).div(2).equal(),backgroundColor:Ue.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${fe}-inner`]:{backgroundColor:`${Ue.colorBgContainer} !important`,borderColor:`${Ue.colorPrimary} !important`}}}},{[`${Ce}-disabled`]:{cursor:"not-allowed"},[`${fe}-disabled`]:{[`&, ${fe}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${fe}-inner`]:{background:Ue.colorBgContainerDisabled,borderColor:Ue.colorBorder,"&:after":{borderColor:Ue.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ue.colorTextDisabled},[`&${fe}-indeterminate ${fe}-inner::after`]:{background:Ue.colorTextDisabled}}}]};function Se(Ue,fe){const Ce=(0,Le.mergeToken)(fe,{checkboxCls:`.${Ue}`,checkboxSize:fe.controlInteractiveSize});return[ze(Ce)]}Mt.ZP=(0,Je.I$)("Checkbox",(Ue,fe)=>{let{prefixCls:Ce}=fe;return[Se(Ce,Ue)]})},38406:function(Vn,Mt,ae){"use strict";var x=ae(59301),ct=ae(48755),Le=ae(584);const Je=ze=>{const{componentName:Se}=ze,{getPrefixCls:Ue}=(0,x.useContext)(ct.E_),fe=Ue("empty");switch(Se){case"Table":case"List":return x.createElement(Le.Z,{image:Le.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return x.createElement(Le.Z,{image:Le.Z.PRESENTED_IMAGE_SIMPLE,className:`${fe}-small`});case"Table.filter":return null;default:return x.createElement(Le.Z,null)}};Mt.Z=Je},37285:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Fe}});var x=ae(59301),ct=ae(92310),Le=ae.n(ct),Je=ae(48755),ze=ae(36237),Se=ae(63356),Ue=ae(16931),fe=ae(51636);const Ce=Te=>{const{componentCls:ye,sizePaddingEdgeHorizontal:xe,colorSplit:Ee,lineWidth:ke,textPaddingInline:Ke,orientationMargin:Qe,verticalMarginInline:Re}=Te;return{[ye]:Object.assign(Object.assign({},(0,Se.Wf)(Te)),{borderBlockStart:`${(0,ze.unit)(ke)} solid ${Ee}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:Re,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,ze.unit)(ke)} solid ${Ee}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,ze.unit)(Te.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${ye}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,ze.unit)(Te.dividerHorizontalWithTextGutterMargin)} 0`,color:Te.colorTextHeading,fontWeight:500,fontSize:Te.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${Ee}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,ze.unit)(ke)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${ye}-with-text-start`]:{"&::before":{width:`calc(${Qe} * 100%)`},"&::after":{width:`calc(100% - ${Qe} * 100%)`}},[`&-horizontal${ye}-with-text-end`]:{"&::before":{width:`calc(100% - ${Qe} * 100%)`},"&::after":{width:`calc(${Qe} * 100%)`}},[`${ye}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:Ke},"&-dashed":{background:"none",borderColor:Ee,borderStyle:"dashed",borderWidth:`${(0,ze.unit)(ke)} 0 0`},[`&-horizontal${ye}-with-text${ye}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${ye}-dashed`]:{borderInlineStartWidth:ke,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:Ee,borderStyle:"dotted",borderWidth:`${(0,ze.unit)(ke)} 0 0`},[`&-horizontal${ye}-with-text${ye}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${ye}-dotted`]:{borderInlineStartWidth:ke,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${ye}-with-text`]:{color:Te.colorText,fontWeight:"normal",fontSize:Te.fontSize},[`&-horizontal${ye}-with-text-start${ye}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${ye}-inner-text`]:{paddingInlineStart:xe}},[`&-horizontal${ye}-with-text-end${ye}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${ye}-inner-text`]:{paddingInlineEnd:xe}}})}},oe=Te=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Te.marginXS});var Oe=(0,Ue.I$)("Divider",Te=>{const ye=(0,fe.mergeToken)(Te,{dividerHorizontalWithTextGutterMargin:Te.margin,dividerHorizontalGutterMargin:Te.marginLG,sizePaddingEdgeHorizontal:0});return[Ce(ye)]},oe,{unitless:{orientationMargin:!0}}),ve=function(Te,ye){var xe={};for(var Ee in Te)Object.prototype.hasOwnProperty.call(Te,Ee)&&ye.indexOf(Ee)<0&&(xe[Ee]=Te[Ee]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Ee=Object.getOwnPropertySymbols(Te);ke<Ee.length;ke++)ye.indexOf(Ee[ke])<0&&Object.prototype.propertyIsEnumerable.call(Te,Ee[ke])&&(xe[Ee[ke]]=Te[Ee[ke]]);return xe},Fe=Te=>{const{getPrefixCls:ye,direction:xe,className:Ee,style:ke}=(0,Je.dj)("divider"),{prefixCls:Ke,type:Qe="horizontal",orientation:Re="center",orientationMargin:et,className:Ge,rootClassName:ut,children:at,dashed:ft,variant:bt="solid",plain:He,style:pt}=Te,Ne=ve(Te,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),je=ye("divider",Ke),[Ot,it,ht]=Oe(je),Bt=!!at,We=x.useMemo(()=>Re==="left"?xe==="rtl"?"end":"start":Re==="right"?xe==="rtl"?"start":"end":Re,[xe,Re]),_e=We==="start"&&et!=null,ot=We==="end"&&et!=null,Zt=Le()(je,Ee,it,ht,`${je}-${Qe}`,{[`${je}-with-text`]:Bt,[`${je}-with-text-${We}`]:Bt,[`${je}-dashed`]:!!ft,[`${je}-${bt}`]:bt!=="solid",[`${je}-plain`]:!!He,[`${je}-rtl`]:xe==="rtl",[`${je}-no-default-orientation-margin-start`]:_e,[`${je}-no-default-orientation-margin-end`]:ot},Ge,ut),zt=x.useMemo(()=>typeof et=="number"?et:/^\d+$/.test(et)?Number(et):et,[et]),tt={marginInlineStart:_e?zt:void 0,marginInlineEnd:ot?zt:void 0};return Ot(x.createElement("div",Object.assign({className:Zt,style:Object.assign(Object.assign({},ke),pt)},Ne,{role:"separator"}),at&&Qe!=="vertical"&&x.createElement("span",{className:`${je}-inner-text`,style:tt},at)))}},36207:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return st}});var x=ae(59301),ct=ae(92310),Le=ae.n(ct),Je=ae(33885),ze=ae(42978),Se=ae(43403),Ue=ae(34280),fe=x.createContext(null),Ce=x.createContext({}),oe=fe,Oe=ae(20068),ve=ae(54476),Me=ae(77900),Fe=ae(10228),Te=ae(26112),ye=ae(75931),xe=ae(8654),Ee=["prefixCls","className","containerRef"],ke=function(mt){var Et=mt.prefixCls,Lt=mt.className,jt=mt.containerRef,Ct=(0,ye.Z)(mt,Ee),lt=x.useContext(Ce),$t=lt.panel,Wt=(0,xe.x1)($t,jt);return x.createElement("div",(0,ve.Z)({className:Le()("".concat(Et,"-content"),Lt),role:"dialog",ref:Wt},(0,Te.Z)(mt,{aria:!0}),{"aria-modal":"true"},Ct))},Ke=ke,Qe=ae(48736);function Re(gt){return typeof gt=="string"&&String(Number(gt))===gt?((0,Qe.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(gt)):gt}function et(gt){warning(!("wrapperClassName"in gt),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!gt.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ge={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ut(gt,mt){var Et,Lt,jt,Ct=gt.prefixCls,lt=gt.open,$t=gt.placement,Wt=gt.inline,wn=gt.push,ln=gt.forceRender,tn=gt.autoFocus,Qn=gt.keyboard,En=gt.classNames,Rt=gt.rootClassName,un=gt.rootStyle,Dn=gt.zIndex,Wn=gt.className,It=gt.id,Gt=gt.style,sn=gt.motion,yn=gt.width,Yn=gt.height,Br=gt.children,ti=gt.mask,Ur=gt.maskClosable,Sr=gt.maskMotion,Jn=gt.maskClassName,gr=gt.maskStyle,kr=gt.afterOpenChange,Vr=gt.onClose,pi=gt.onMouseEnter,Lr=gt.onMouseOver,tr=gt.onMouseLeave,Xn=gt.onClick,mr=gt.onKeyDown,Qr=gt.onKeyUp,ii=gt.styles,ai=gt.drawerRender,oi=x.useRef(),li=x.useRef(),ji=x.useRef();x.useImperativeHandle(mt,function(){return oi.current});var ki=function(ur){var sr=ur.keyCode,ni=ur.shiftKey;switch(sr){case Fe.Z.TAB:{if(sr===Fe.Z.TAB){if(!ni&&document.activeElement===ji.current){var er;(er=li.current)===null||er===void 0||er.focus({preventScroll:!0})}else if(ni&&document.activeElement===li.current){var Rn;(Rn=ji.current)===null||Rn===void 0||Rn.focus({preventScroll:!0})}}break}case Fe.Z.ESC:{Vr&&Qn&&(ur.stopPropagation(),Vr(ur));break}}};x.useEffect(function(){if(lt&&tn){var rr;(rr=oi.current)===null||rr===void 0||rr.focus({preventScroll:!0})}},[lt]);var or=x.useState(!1),Hr=(0,ze.Z)(or,2),Bi=Hr[0],Yt=Hr[1],rn=x.useContext(oe),fn;typeof wn=="boolean"?fn=wn?{}:{distance:0}:fn=wn||{};var Pt=(Et=(Lt=(jt=fn)===null||jt===void 0?void 0:jt.distance)!==null&&Lt!==void 0?Lt:rn==null?void 0:rn.pushDistance)!==null&&Et!==void 0?Et:180,en=x.useMemo(function(){return{pushDistance:Pt,push:function(){Yt(!0)},pull:function(){Yt(!1)}}},[Pt]);x.useEffect(function(){if(lt){var rr;rn==null||(rr=rn.push)===null||rr===void 0||rr.call(rn)}else{var ur;rn==null||(ur=rn.pull)===null||ur===void 0||ur.call(rn)}},[lt]),x.useEffect(function(){return function(){var rr;rn==null||(rr=rn.pull)===null||rr===void 0||rr.call(rn)}},[]);var Kt=ti&&x.createElement(Me.default,(0,ve.Z)({key:"mask"},Sr,{visible:lt}),function(rr,ur){var sr=rr.className,ni=rr.style;return x.createElement("div",{className:Le()("".concat(Ct,"-mask"),sr,En==null?void 0:En.mask,Jn),style:(0,Je.Z)((0,Je.Z)((0,Je.Z)({},ni),gr),ii==null?void 0:ii.mask),onClick:Ur&&lt?Vr:void 0,ref:ur})}),gn=typeof sn=="function"?sn($t):sn,On={};if(Bi&&Pt)switch($t){case"top":On.transform="translateY(".concat(Pt,"px)");break;case"bottom":On.transform="translateY(".concat(-Pt,"px)");break;case"left":On.transform="translateX(".concat(Pt,"px)");break;default:On.transform="translateX(".concat(-Pt,"px)");break}$t==="left"||$t==="right"?On.width=Re(yn):On.height=Re(Yn);var Nr={onMouseEnter:pi,onMouseOver:Lr,onMouseLeave:tr,onClick:Xn,onKeyDown:mr,onKeyUp:Qr},Yr=x.createElement(Me.default,(0,ve.Z)({key:"panel"},gn,{visible:lt,forceRender:ln,onVisibleChanged:function(ur){kr==null||kr(ur)},removeOnLeave:!1,leavedClassName:"".concat(Ct,"-content-wrapper-hidden")}),function(rr,ur){var sr=rr.className,ni=rr.style,er=x.createElement(Ke,(0,ve.Z)({id:It,containerRef:ur,prefixCls:Ct,className:Le()(Wn,En==null?void 0:En.content),style:(0,Je.Z)((0,Je.Z)({},Gt),ii==null?void 0:ii.content)},(0,Te.Z)(gt,{aria:!0}),Nr),Br);return x.createElement("div",(0,ve.Z)({className:Le()("".concat(Ct,"-content-wrapper"),En==null?void 0:En.wrapper,sr),style:(0,Je.Z)((0,Je.Z)((0,Je.Z)({},On),ni),ii==null?void 0:ii.wrapper)},(0,Te.Z)(gt,{data:!0})),ai?ai(er):er)}),hi=(0,Je.Z)({},un);return Dn&&(hi.zIndex=Dn),x.createElement(oe.Provider,{value:en},x.createElement("div",{className:Le()(Ct,"".concat(Ct,"-").concat($t),Rt,(0,Oe.Z)((0,Oe.Z)({},"".concat(Ct,"-open"),lt),"".concat(Ct,"-inline"),Wt)),style:hi,tabIndex:-1,ref:oi,onKeyDown:ki},Kt,x.createElement("div",{tabIndex:0,ref:li,style:Ge,"aria-hidden":"true","data-sentinel":"start"}),Yr,x.createElement("div",{tabIndex:0,ref:ji,style:Ge,"aria-hidden":"true","data-sentinel":"end"})))}var at=x.forwardRef(ut),ft=at,bt=function(mt){var Et=mt.open,Lt=Et===void 0?!1:Et,jt=mt.prefixCls,Ct=jt===void 0?"rc-drawer":jt,lt=mt.placement,$t=lt===void 0?"right":lt,Wt=mt.autoFocus,wn=Wt===void 0?!0:Wt,ln=mt.keyboard,tn=ln===void 0?!0:ln,Qn=mt.width,En=Qn===void 0?378:Qn,Rt=mt.mask,un=Rt===void 0?!0:Rt,Dn=mt.maskClosable,Wn=Dn===void 0?!0:Dn,It=mt.getContainer,Gt=mt.forceRender,sn=mt.afterOpenChange,yn=mt.destroyOnClose,Yn=mt.onMouseEnter,Br=mt.onMouseOver,ti=mt.onMouseLeave,Ur=mt.onClick,Sr=mt.onKeyDown,Jn=mt.onKeyUp,gr=mt.panelRef,kr=x.useState(!1),Vr=(0,ze.Z)(kr,2),pi=Vr[0],Lr=Vr[1],tr=x.useState(!1),Xn=(0,ze.Z)(tr,2),mr=Xn[0],Qr=Xn[1];(0,Ue.Z)(function(){Qr(!0)},[]);var ii=mr?Lt:!1,ai=x.useRef(),oi=x.useRef();(0,Ue.Z)(function(){ii&&(oi.current=document.activeElement)},[ii]);var li=function(Bi){var Yt;if(Lr(Bi),sn==null||sn(Bi),!Bi&&oi.current&&!((Yt=ai.current)!==null&&Yt!==void 0&&Yt.contains(oi.current))){var rn;(rn=oi.current)===null||rn===void 0||rn.focus({preventScroll:!0})}},ji=x.useMemo(function(){return{panel:gr}},[gr]);if(!Gt&&!pi&&!ii&&yn)return null;var ki={onMouseEnter:Yn,onMouseOver:Br,onMouseLeave:ti,onClick:Ur,onKeyDown:Sr,onKeyUp:Jn},or=(0,Je.Z)((0,Je.Z)({},mt),{},{open:ii,prefixCls:Ct,placement:$t,autoFocus:wn,keyboard:tn,width:En,mask:un,maskClosable:Wn,inline:It===!1,afterOpenChange:li,ref:ai},ki);return x.createElement(Ce.Provider,{value:ji},x.createElement(Se.Z,{open:ii||Gt||pi,autoDestroy:!1,getContainer:It,autoLock:un&&(ii||pi)},x.createElement(ft,or)))},He=bt,pt=He,Ne=ae(62487),je=ae(75030),Ot=ae(86641),it=ae(55743),ht=ae(48755),Bt=ae(91190),We=ae(78776),_e=ae(458),Zt=gt=>{var mt,Et;const{prefixCls:Lt,title:jt,footer:Ct,extra:lt,loading:$t,onClose:Wt,headerStyle:wn,bodyStyle:ln,footerStyle:tn,children:Qn,classNames:En,styles:Rt}=gt,un=(0,ht.dj)("drawer"),Dn=x.useCallback(yn=>x.createElement("button",{type:"button",onClick:Wt,"aria-label":"Close",className:`${Lt}-close`},yn),[Wt]),[Wn,It]=(0,We.Z)((0,We.w)(gt),(0,We.w)(un),{closable:!0,closeIconRender:Dn}),Gt=x.useMemo(()=>{var yn,Yn;return!jt&&!Wn?null:x.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(yn=un.styles)===null||yn===void 0?void 0:yn.header),wn),Rt==null?void 0:Rt.header),className:Le()(`${Lt}-header`,{[`${Lt}-header-close-only`]:Wn&&!jt&&!lt},(Yn=un.classNames)===null||Yn===void 0?void 0:Yn.header,En==null?void 0:En.header)},x.createElement("div",{className:`${Lt}-header-title`},It,jt&&x.createElement("div",{className:`${Lt}-title`},jt)),lt&&x.createElement("div",{className:`${Lt}-extra`},lt))},[Wn,It,lt,wn,Lt,jt]),sn=x.useMemo(()=>{var yn,Yn;if(!Ct)return null;const Br=`${Lt}-footer`;return x.createElement("div",{className:Le()(Br,(yn=un.classNames)===null||yn===void 0?void 0:yn.footer,En==null?void 0:En.footer),style:Object.assign(Object.assign(Object.assign({},(Yn=un.styles)===null||Yn===void 0?void 0:Yn.footer),tn),Rt==null?void 0:Rt.footer)},Ct)},[Ct,tn,Lt]);return x.createElement(x.Fragment,null,Gt,x.createElement("div",{className:Le()(`${Lt}-body`,En==null?void 0:En.body,(mt=un.classNames)===null||mt===void 0?void 0:mt.body),style:Object.assign(Object.assign(Object.assign({},(Et=un.styles)===null||Et===void 0?void 0:Et.body),ln),Rt==null?void 0:Rt.body)},$t?x.createElement(_e.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${Lt}-body-skeleton`}):Qn),sn)},zt=ae(36237),tt=ae(63356),Nt=ae(16931),Ut=ae(51636);const pn=gt=>{const mt="100%";return{left:`translateX(-${mt})`,right:`translateX(${mt})`,top:`translateY(-${mt})`,bottom:`translateY(${mt})`}[gt]},kt=(gt,mt)=>({"&-enter, &-appear":Object.assign(Object.assign({},gt),{"&-active":mt}),"&-leave":Object.assign(Object.assign({},mt),{"&-active":gt})}),mn=(gt,mt)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${mt}`}}},kt({opacity:gt},{opacity:1})),_t=(gt,mt)=>[mn(.7,mt),kt({transform:pn(gt)},{transform:"none"})];var an=gt=>{const{componentCls:mt,motionDurationSlow:Et}=gt;return{[mt]:{[`${mt}-mask-motion`]:mn(0,Et),[`${mt}-panel-motion`]:["left","right","top","bottom"].reduce((Lt,jt)=>Object.assign(Object.assign({},Lt),{[`&-${jt}`]:_t(jt,Et)}),{})}}};const de=gt=>{const{borderRadiusSM:mt,componentCls:Et,zIndexPopup:Lt,colorBgMask:jt,colorBgElevated:Ct,motionDurationSlow:lt,motionDurationMid:$t,paddingXS:Wt,padding:wn,paddingLG:ln,fontSizeLG:tn,lineHeightLG:Qn,lineWidth:En,lineType:Rt,colorSplit:un,marginXS:Dn,colorIcon:Wn,colorIconHover:It,colorBgTextHover:Gt,colorBgTextActive:sn,colorText:yn,fontWeightStrong:Yn,footerPaddingBlock:Br,footerPaddingInline:ti,calc:Ur}=gt,Sr=`${Et}-content-wrapper`;return{[Et]:{position:"fixed",inset:0,zIndex:Lt,pointerEvents:"none",color:yn,"&-pure":{position:"relative",background:Ct,display:"flex",flexDirection:"column",[`&${Et}-left`]:{boxShadow:gt.boxShadowDrawerLeft},[`&${Et}-right`]:{boxShadow:gt.boxShadowDrawerRight},[`&${Et}-top`]:{boxShadow:gt.boxShadowDrawerUp},[`&${Et}-bottom`]:{boxShadow:gt.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Et}-mask`]:{position:"absolute",inset:0,zIndex:Lt,background:jt,pointerEvents:"auto"},[Sr]:{position:"absolute",zIndex:Lt,maxWidth:"100vw",transition:`all ${lt}`,"&-hidden":{display:"none"}},[`&-left > ${Sr}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:gt.boxShadowDrawerLeft},[`&-right > ${Sr}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:gt.boxShadowDrawerRight},[`&-top > ${Sr}`]:{top:0,insetInline:0,boxShadow:gt.boxShadowDrawerUp},[`&-bottom > ${Sr}`]:{bottom:0,insetInline:0,boxShadow:gt.boxShadowDrawerDown},[`${Et}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Ct,pointerEvents:"auto"},[`${Et}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,zt.unit)(wn)} ${(0,zt.unit)(ln)}`,fontSize:tn,lineHeight:Qn,borderBottom:`${(0,zt.unit)(En)} ${Rt} ${un}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Et}-extra`]:{flex:"none"},[`${Et}-close`]:Object.assign({display:"inline-flex",width:Ur(tn).add(Wt).equal(),height:Ur(tn).add(Wt).equal(),borderRadius:mt,justifyContent:"center",alignItems:"center",marginInlineEnd:Dn,color:Wn,fontWeight:Yn,fontSize:tn,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${$t}`,textRendering:"auto","&:hover":{color:It,backgroundColor:Gt,textDecoration:"none"},"&:active":{backgroundColor:sn}},(0,tt.Qy)(gt)),[`${Et}-title`]:{flex:1,margin:0,fontWeight:gt.fontWeightStrong,fontSize:tn,lineHeight:Qn},[`${Et}-body`]:{flex:1,minWidth:0,minHeight:0,padding:ln,overflow:"auto",[`${Et}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${Et}-footer`]:{flexShrink:0,padding:`${(0,zt.unit)(Br)} ${(0,zt.unit)(ti)}`,borderTop:`${(0,zt.unit)(En)} ${Rt} ${un}`},"&-rtl":{direction:"rtl"}}}},pe=gt=>({zIndexPopup:gt.zIndexPopupBase,footerPaddingBlock:gt.paddingXS,footerPaddingInline:gt.padding});var ie=(0,Nt.I$)("Drawer",gt=>{const mt=(0,Ut.mergeToken)(gt,{});return[de(mt),an(mt)]},pe),ee=function(gt,mt){var Et={};for(var Lt in gt)Object.prototype.hasOwnProperty.call(gt,Lt)&&mt.indexOf(Lt)<0&&(Et[Lt]=gt[Lt]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var jt=0,Lt=Object.getOwnPropertySymbols(gt);jt<Lt.length;jt++)mt.indexOf(Lt[jt])<0&&Object.prototype.propertyIsEnumerable.call(gt,Lt[jt])&&(Et[Lt[jt]]=gt[Lt[jt]]);return Et};const se=null,le={distance:180},Be=gt=>{var mt;const{rootClassName:Et,width:Lt,height:jt,size:Ct="default",mask:lt=!0,push:$t=le,open:Wt,afterOpenChange:wn,onClose:ln,prefixCls:tn,getContainer:Qn,style:En,className:Rt,visible:un,afterVisibleChange:Dn,maskStyle:Wn,drawerStyle:It,contentWrapperStyle:Gt}=gt,sn=ee(gt,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:yn,getPrefixCls:Yn,direction:Br,className:ti,style:Ur,classNames:Sr,styles:Jn}=(0,ht.dj)("drawer"),gr=Yn("drawer",tn),[kr,Vr,pi]=ie(gr),Lr=Qn===void 0&&yn?()=>yn(document.body):Qn,tr=Le()({"no-mask":!lt,[`${gr}-rtl`]:Br==="rtl"},Et,Vr,pi),Xn=x.useMemo(()=>Lt!=null?Lt:Ct==="large"?736:378,[Lt,Ct]),mr=x.useMemo(()=>jt!=null?jt:Ct==="large"?736:378,[jt,Ct]),Qr={motionName:(0,Ot.m)(gr,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},ii=or=>({motionName:(0,Ot.m)(gr,`panel-motion-${or}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),ai=(0,Bt.H)(),[oi,li]=(0,je.Cn)("Drawer",sn.zIndex),{classNames:ji={},styles:ki={}}=sn;return kr(x.createElement(Ne.Z,{form:!0,space:!0},x.createElement(it.Z.Provider,{value:li},x.createElement(pt,Object.assign({prefixCls:gr,onClose:ln,maskMotion:Qr,motion:ii},sn,{classNames:{mask:Le()(ji.mask,Sr.mask),content:Le()(ji.content,Sr.content),wrapper:Le()(ji.wrapper,Sr.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},ki.mask),Wn),Jn.mask),content:Object.assign(Object.assign(Object.assign({},ki.content),It),Jn.content),wrapper:Object.assign(Object.assign(Object.assign({},ki.wrapper),Gt),Jn.wrapper)},open:Wt!=null?Wt:un,mask:lt,push:$t,width:Xn,height:mr,style:Object.assign(Object.assign({},Ur),En),className:Le()(ti,Rt),rootClassName:tr,getContainer:Lr,afterOpenChange:wn!=null?wn:Dn,panelRef:ai,zIndex:oi}),x.createElement(Zt,Object.assign({prefixCls:gr},sn,{onClose:ln}))))))},$e=gt=>{const{prefixCls:mt,style:Et,className:Lt,placement:jt="right"}=gt,Ct=ee(gt,["prefixCls","style","className","placement"]),{getPrefixCls:lt}=x.useContext(ht.E_),$t=lt("drawer",mt),[Wt,wn,ln]=ie($t),tn=Le()($t,`${$t}-pure`,`${$t}-${jt}`,wn,ln,Lt);return Wt(x.createElement("div",{className:tn,style:Et},x.createElement(Zt,Object.assign({prefixCls:$t},Ct))))};Be._InternalPanelDoNotUseOrYouWillBeFired=$e;var st=Be},19563:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return zt}});var x=ae(59301),ct=ae(33853),Le=ae(38819),Je=ae(92310),ze=ae.n(Je),Se=ae(96478),Ue=ae(6089),fe=ae(18929),Ce=ae(2738),oe=ae(75030),ve=tt=>typeof tt!="object"&&typeof tt!="function"||tt===null,Me=ae(52838),Fe=ae(45915),Te=ae(22703),ye=ae(32383),xe=ae(55743),Ee=ae(48755),ke=ae(83397),Ke=ae(93041),Qe=ae(78857),Re=ae(57700),et=ae(36237),Ge=ae(63356),ut=ae(46e3),at=ae(93873),ft=ae(34925),bt=ae(37645),He=ae(36305),pt=ae(16931),Ne=ae(51636),Ot=tt=>{const{componentCls:Nt,menuCls:Ut,colorError:pn,colorTextLightSolid:kt}=tt,mn=`${Ut}-item`;return{[`${Nt}, ${Nt}-menu-submenu`]:{[`${Ut} ${mn}`]:{[`&${mn}-danger:not(${mn}-disabled)`]:{color:pn,"&:hover":{color:kt,backgroundColor:pn}}}}}};const it=tt=>{const{componentCls:Nt,menuCls:Ut,zIndexPopup:pn,dropdownArrowDistance:kt,sizePopupArrow:mn,antCls:_t,iconCls:Cn,motionDurationMid:an,paddingBlock:de,fontSize:pe,dropdownEdgeChildPadding:ie,colorTextDisabled:ee,fontSizeIcon:se,controlPaddingHorizontal:le,colorBgElevated:Be}=tt;return[{[Nt]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:pn,display:"block","&::before":{position:"absolute",insetBlock:tt.calc(mn).div(2).sub(kt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${_t}-btn`]:{[`& > ${Cn}-down, & > ${_t}-btn-icon > ${Cn}-down`]:{fontSize:se}},[`${Nt}-wrap`]:{position:"relative",[`${_t}-btn > ${Cn}-down`]:{fontSize:se},[`${Cn}-down::before`]:{transition:`transform ${an}`}},[`${Nt}-wrap-open`]:{[`${Cn}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${_t}-slide-down-enter${_t}-slide-down-enter-active${Nt}-placement-bottomLeft,
&${_t}-slide-down-appear${_t}-slide-down-appear-active${Nt}-placement-bottomLeft,
&${_t}-slide-down-enter${_t}-slide-down-enter-active${Nt}-placement-bottom,
&${_t}-slide-down-appear${_t}-slide-down-appear-active${Nt}-placement-bottom,
&${_t}-slide-down-enter${_t}-slide-down-enter-active${Nt}-placement-bottomRight,
&${_t}-slide-down-appear${_t}-slide-down-appear-active${Nt}-placement-bottomRight`]:{animationName:ut.fJ},[`&${_t}-slide-up-enter${_t}-slide-up-enter-active${Nt}-placement-topLeft,
&${_t}-slide-up-appear${_t}-slide-up-appear-active${Nt}-placement-topLeft,
&${_t}-slide-up-enter${_t}-slide-up-enter-active${Nt}-placement-top,
&${_t}-slide-up-appear${_t}-slide-up-appear-active${Nt}-placement-top,
&${_t}-slide-up-enter${_t}-slide-up-enter-active${Nt}-placement-topRight,
&${_t}-slide-up-appear${_t}-slide-up-appear-active${Nt}-placement-topRight`]:{animationName:ut.Qt},[`&${_t}-slide-down-leave${_t}-slide-down-leave-active${Nt}-placement-bottomLeft,
&${_t}-slide-down-leave${_t}-slide-down-leave-active${Nt}-placement-bottom,
&${_t}-slide-down-leave${_t}-slide-down-leave-active${Nt}-placement-bottomRight`]:{animationName:ut.Uw},[`&${_t}-slide-up-leave${_t}-slide-up-leave-active${Nt}-placement-topLeft,
&${_t}-slide-up-leave${_t}-slide-up-leave-active${Nt}-placement-top,
&${_t}-slide-up-leave${_t}-slide-up-leave-active${Nt}-placement-topRight`]:{animationName:ut.ly}}},(0,bt.ZP)(tt,Be,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Nt} ${Ut}`]:{position:"relative",margin:0},[`${Ut}-submenu-popup`]:{position:"absolute",zIndex:pn,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Nt}, ${Nt}-menu-submenu`]:Object.assign(Object.assign({},(0,Ge.Wf)(tt)),{[Ut]:Object.assign(Object.assign({padding:ie,listStyleType:"none",backgroundColor:Be,backgroundClip:"padding-box",borderRadius:tt.borderRadiusLG,outline:"none",boxShadow:tt.boxShadowSecondary},(0,Ge.Qy)(tt)),{"&:empty":{padding:0,boxShadow:"none"},[`${Ut}-item-group-title`]:{padding:`${(0,et.unit)(de)} ${(0,et.unit)(le)}`,color:tt.colorTextDescription,transition:`all ${an}`},[`${Ut}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Ut}-item-icon`]:{minWidth:pe,marginInlineEnd:tt.marginXS,fontSize:tt.fontSizeSM},[`${Ut}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${an}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${Ut}-item-extra`]:{paddingInlineStart:tt.padding,marginInlineStart:"auto",fontSize:tt.fontSizeSM,color:tt.colorTextDescription}},[`${Ut}-item, ${Ut}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,et.unit)(de)} ${(0,et.unit)(le)}`,color:tt.colorText,fontWeight:"normal",fontSize:pe,lineHeight:tt.lineHeight,cursor:"pointer",transition:`all ${an}`,borderRadius:tt.borderRadiusSM,"&:hover, &-active":{backgroundColor:tt.controlItemBgHover}},(0,Ge.Qy)(tt)),{"&-selected":{color:tt.colorPrimary,backgroundColor:tt.controlItemBgActive,"&:hover, &-active":{backgroundColor:tt.controlItemBgActiveHover}},"&-disabled":{color:ee,cursor:"not-allowed","&:hover":{color:ee,backgroundColor:Be,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,et.unit)(tt.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:tt.colorSplit},[`${Nt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:tt.paddingXS,[`${Nt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:tt.colorTextDescription,fontSize:se,fontStyle:"normal"}}}),[`${Ut}-item-group-list`]:{margin:`0 ${(0,et.unit)(tt.marginXS)}`,padding:0,listStyle:"none"},[`${Ut}-submenu-title`]:{paddingInlineEnd:tt.calc(le).add(tt.fontSizeSM).equal()},[`${Ut}-submenu-vertical`]:{position:"relative"},[`${Ut}-submenu${Ut}-submenu-disabled ${Nt}-menu-submenu-title`]:{[`&, ${Nt}-menu-submenu-arrow-icon`]:{color:ee,backgroundColor:Be,cursor:"not-allowed"}},[`${Ut}-submenu-selected ${Nt}-menu-submenu-title`]:{color:tt.colorPrimary}})})},[(0,ut.oN)(tt,"slide-up"),(0,ut.oN)(tt,"slide-down"),(0,at.Fm)(tt,"move-up"),(0,at.Fm)(tt,"move-down"),(0,ft._y)(tt,"zoom-big")]]},ht=tt=>Object.assign(Object.assign({zIndexPopup:tt.zIndexPopupBase+50,paddingBlock:(tt.controlHeight-tt.fontSize*tt.lineHeight)/2},(0,bt.wZ)({contentRadius:tt.borderRadiusLG,limitVerticalRadius:!0})),(0,He.w)(tt));var Bt=(0,pt.I$)("Dropdown",tt=>{const{marginXXS:Nt,sizePopupArrow:Ut,paddingXXS:pn,componentCls:kt}=tt,mn=(0,Ne.mergeToken)(tt,{menuCls:`${kt}-menu`,dropdownArrowDistance:tt.calc(Ut).div(2).add(Nt).equal(),dropdownEdgeChildPadding:pn});return[it(mn),Ot(mn)]},ht,{resetStyle:!1});const We=null,_e=tt=>{var Nt;const{menu:Ut,arrow:pn,prefixCls:kt,children:mn,trigger:_t,disabled:Cn,dropdownRender:an,getPopupContainer:de,overlayClassName:pe,rootClassName:ie,overlayStyle:ee,open:se,onOpenChange:le,visible:Be,onVisibleChange:$e,mouseEnterDelay:st=.15,mouseLeaveDelay:gt=.1,autoAdjustOverflow:mt=!0,placement:Et="",overlay:Lt,transitionName:jt}=tt,{getPopupContainer:Ct,getPrefixCls:lt,direction:$t,dropdown:Wt}=x.useContext(Ee.E_),wn=(0,ye.ln)("Dropdown"),ln=x.useMemo(()=>{const Lr=lt();return jt!==void 0?jt:Et.includes("top")?`${Lr}-slide-down`:`${Lr}-slide-up`},[lt,Et,jt]),tn=x.useMemo(()=>Et?Et.includes("Center")?Et.slice(0,Et.indexOf("Center")):Et:$t==="rtl"?"bottomRight":"bottomLeft",[Et,$t]),Qn=lt("dropdown",kt),En=(0,ke.Z)(Qn),[Rt,un,Dn]=Bt(Qn,En),[,Wn]=(0,Re.ZP)(),It=x.Children.only(ve(mn)?x.createElement("span",null,mn):mn),Gt=(0,Te.Tm)(It,{className:ze()(`${Qn}-trigger`,{[`${Qn}-rtl`]:$t==="rtl"},It.props.className),disabled:(Nt=It.props.disabled)!==null&&Nt!==void 0?Nt:Cn}),sn=Cn?[]:_t,yn=!!(sn!=null&&sn.includes("contextMenu")),[Yn,Br]=(0,fe.Z)(!1,{value:se!=null?se:Be}),ti=(0,Ue.Z)(Lr=>{le==null||le(Lr,{source:"trigger"}),$e==null||$e(Lr),Br(Lr)}),Ur=ze()(pe,ie,un,Dn,En,Wt==null?void 0:Wt.className,{[`${Qn}-rtl`]:$t==="rtl"}),Sr=(0,Me.Z)({arrowPointAtCenter:typeof pn=="object"&&pn.pointAtCenter,autoAdjustOverflow:mt,offset:Wn.marginXXS,arrowWidth:pn?Wn.sizePopupArrow:0,borderRadius:Wn.borderRadius}),Jn=x.useCallback(()=>{Ut!=null&&Ut.selectable&&(Ut!=null&&Ut.multiple)||(le==null||le(!1,{source:"menu"}),Br(!1))},[Ut==null?void 0:Ut.selectable,Ut==null?void 0:Ut.multiple]),gr=()=>{let Lr;return Ut!=null&&Ut.items?Lr=x.createElement(Ke.default,Object.assign({},Ut)):typeof Lt=="function"?Lr=Lt():Lr=Lt,an&&(Lr=an(Lr)),Lr=x.Children.only(typeof Lr=="string"?x.createElement("span",null,Lr):Lr),x.createElement(Qe.J,{prefixCls:`${Qn}-menu`,rootClassName:ze()(Dn,En),expandIcon:x.createElement("span",{className:`${Qn}-menu-submenu-arrow`},$t==="rtl"?x.createElement(ct.Z,{className:`${Qn}-menu-submenu-arrow-icon`}):x.createElement(Le.Z,{className:`${Qn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Jn,validator:tr=>{let{mode:Xn}=tr}},Lr)},[kr,Vr]=(0,oe.Cn)("Dropdown",ee==null?void 0:ee.zIndex);let pi=x.createElement(Se.Z,Object.assign({alignPoint:yn},(0,Ce.Z)(tt,["rootClassName"]),{mouseEnterDelay:st,mouseLeaveDelay:gt,visible:Yn,builtinPlacements:Sr,arrow:!!pn,overlayClassName:Ur,prefixCls:Qn,getPopupContainer:de||Ct,transitionName:ln,trigger:sn,overlay:gr,placement:tn,onVisibleChange:ti,overlayStyle:Object.assign(Object.assign(Object.assign({},Wt==null?void 0:Wt.style),ee),{zIndex:kr})}),Gt);return kr&&(pi=x.createElement(xe.Z.Provider,{value:Vr},pi)),Rt(pi)},ot=(0,Fe.Z)(_e,"align",void 0,"dropdown",tt=>tt),Zt=tt=>x.createElement(ot,Object.assign({},tt),x.createElement("span",null));_e._InternalPanelDoNotUseOrYouWillBeFired=Zt;var zt=_e},75727:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Fe}});var x=ae(19563),ct=ae(59301),Le=ae(18785),Je=ae(92310),ze=ae.n(Je),Se=ae(7939),Ue=ae(48755),fe=ae(44104),Ce=ae(70045),oe=function(Te,ye){var xe={};for(var Ee in Te)Object.prototype.hasOwnProperty.call(Te,Ee)&&ye.indexOf(Ee)<0&&(xe[Ee]=Te[Ee]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Ee=Object.getOwnPropertySymbols(Te);ke<Ee.length;ke++)ye.indexOf(Ee[ke])<0&&Object.prototype.propertyIsEnumerable.call(Te,Ee[ke])&&(xe[Ee[ke]]=Te[Ee[ke]]);return xe};const Oe=Te=>{const{getPopupContainer:ye,getPrefixCls:xe,direction:Ee}=ct.useContext(Ue.E_),{prefixCls:ke,type:Ke="default",danger:Qe,disabled:Re,loading:et,onClick:Ge,htmlType:ut,children:at,className:ft,menu:bt,arrow:He,autoFocus:pt,overlay:Ne,trigger:je,align:Ot,open:it,onOpenChange:ht,placement:Bt,getPopupContainer:We,href:_e,icon:ot=ct.createElement(Le.Z,null),title:Zt,buttonsRender:zt=st=>st,mouseEnterDelay:tt,mouseLeaveDelay:Nt,overlayClassName:Ut,overlayStyle:pn,destroyPopupOnHide:kt,dropdownRender:mn}=Te,_t=oe(Te,["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"]),Cn=xe("dropdown",ke),an=`${Cn}-button`,de={menu:bt,arrow:He,autoFocus:pt,align:Ot,disabled:Re,trigger:Re?[]:je,onOpenChange:ht,getPopupContainer:We||ye,mouseEnterDelay:tt,mouseLeaveDelay:Nt,overlayClassName:Ut,overlayStyle:pn,destroyPopupOnHide:kt,dropdownRender:mn},{compactSize:pe,compactItemClassnames:ie}=(0,Ce.ri)(Cn,Ee),ee=ze()(an,ie,ft);"overlay"in Te&&(de.overlay=Ne),"open"in Te&&(de.open=it),"placement"in Te?de.placement=Bt:de.placement=Ee==="rtl"?"bottomLeft":"bottomRight";const se=ct.createElement(Se.ZP,{type:Ke,danger:Qe,disabled:Re,loading:et,onClick:Ge,htmlType:ut,href:_e,title:Zt},at),le=ct.createElement(Se.ZP,{type:Ke,danger:Qe,icon:ot}),[Be,$e]=zt([se,le]);return ct.createElement(fe.Z.Compact,Object.assign({className:ee,size:pe,block:!0},_t),Be,ct.createElement(x.Z,Object.assign({},de),$e))};Oe.__ANT_BUTTON=!0;var ve=Oe;const Me=x.Z;Me.Button=ve;var Fe=Me},584:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Ke}});var x=ae(59301),ct=ae(92310),Le=ae.n(ct),Je=ae(9017),ze=ae(17835),Se=ae(57700),fe=()=>{const[,Qe]=(0,Se.ZP)(),[Re]=(0,Je.Z)("Empty"),Ge=new ze.FastColor(Qe.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return x.createElement("svg",{style:Ge,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},x.createElement("title",null,(Re==null?void 0:Re.description)||"Empty"),x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(24 31.67)"},x.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),x.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),x.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),x.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),x.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),x.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),x.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},x.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),x.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},oe=()=>{const[,Qe]=(0,Se.ZP)(),[Re]=(0,Je.Z)("Empty"),{colorFill:et,colorFillTertiary:Ge,colorFillQuaternary:ut,colorBgContainer:at}=Qe,{borderColor:ft,shadowColor:bt,contentColor:He}=(0,x.useMemo)(()=>({borderColor:new ze.FastColor(et).onBackground(at).toHexString(),shadowColor:new ze.FastColor(Ge).onBackground(at).toHexString(),contentColor:new ze.FastColor(ut).onBackground(at).toHexString()}),[et,Ge,ut,at]);return x.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},x.createElement("title",null,(Re==null?void 0:Re.description)||"Empty"),x.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},x.createElement("ellipse",{fill:bt,cx:"32",cy:"33",rx:"32",ry:"7"}),x.createElement("g",{fillRule:"nonzero",stroke:ft},x.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),x.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:He}))))},Oe=ae(16931),ve=ae(51636);const Me=Qe=>{const{componentCls:Re,margin:et,marginXS:Ge,marginXL:ut,fontSize:at,lineHeight:ft}=Qe;return{[Re]:{marginInline:Ge,fontSize:at,lineHeight:ft,textAlign:"center",[`${Re}-image`]:{height:Qe.emptyImgHeight,marginBottom:Ge,opacity:Qe.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Re}-description`]:{color:Qe.colorTextDescription},[`${Re}-footer`]:{marginTop:et},"&-normal":{marginBlock:ut,color:Qe.colorTextDescription,[`${Re}-description`]:{color:Qe.colorTextDescription},[`${Re}-image`]:{height:Qe.emptyImgHeightMD}},"&-small":{marginBlock:Ge,color:Qe.colorTextDescription,[`${Re}-image`]:{height:Qe.emptyImgHeightSM}}}}};var Fe=(0,Oe.I$)("Empty",Qe=>{const{componentCls:Re,controlHeightLG:et,calc:Ge}=Qe,ut=(0,ve.mergeToken)(Qe,{emptyImgCls:`${Re}-img`,emptyImgHeight:Ge(et).mul(2.5).equal(),emptyImgHeightMD:et,emptyImgHeightSM:Ge(et).mul(.875).equal()});return[Me(ut)]}),Te=ae(48755),ye=function(Qe,Re){var et={};for(var Ge in Qe)Object.prototype.hasOwnProperty.call(Qe,Ge)&&Re.indexOf(Ge)<0&&(et[Ge]=Qe[Ge]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,Ge=Object.getOwnPropertySymbols(Qe);ut<Ge.length;ut++)Re.indexOf(Ge[ut])<0&&Object.prototype.propertyIsEnumerable.call(Qe,Ge[ut])&&(et[Ge[ut]]=Qe[Ge[ut]]);return et};const xe=x.createElement(fe,null),Ee=x.createElement(oe,null),ke=Qe=>{const{className:Re,rootClassName:et,prefixCls:Ge,image:ut=xe,description:at,children:ft,imageStyle:bt,style:He,classNames:pt,styles:Ne}=Qe,je=ye(Qe,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Ot,direction:it,className:ht,style:Bt,classNames:We,styles:_e}=(0,Te.dj)("empty"),ot=Ot("empty",Ge),[Zt,zt,tt]=Fe(ot),[Nt]=(0,Je.Z)("Empty"),Ut=typeof at!="undefined"?at:Nt==null?void 0:Nt.description,pn=typeof Ut=="string"?Ut:"empty";let kt=null;return typeof ut=="string"?kt=x.createElement("img",{alt:pn,src:ut}):kt=ut,Zt(x.createElement("div",Object.assign({className:Le()(zt,tt,ot,ht,{[`${ot}-normal`]:ut===Ee,[`${ot}-rtl`]:it==="rtl"},Re,et,We.root,pt==null?void 0:pt.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},_e.root),Bt),Ne==null?void 0:Ne.root),He)},je),x.createElement("div",{className:Le()(`${ot}-image`,We.image,pt==null?void 0:pt.image),style:Object.assign(Object.assign(Object.assign({},bt),_e.image),Ne==null?void 0:Ne.image)},kt),Ut&&x.createElement("div",{className:Le()(`${ot}-description`,We.description,pt==null?void 0:pt.description),style:Object.assign(Object.assign({},_e.description),Ne==null?void 0:Ne.description)},Ut),ft&&x.createElement("div",{className:Le()(`${ot}-footer`,We.footer,pt==null?void 0:pt.footer),style:Object.assign(Object.assign({},_e.footer),Ne==null?void 0:Ne.footer)},ft)))};ke.PRESENTED_IMAGE_DEFAULT=xe,ke.PRESENTED_IMAGE_SIMPLE=Ee;var Ke=ke},28284:function(Vn,Mt,ae){"use strict";ae.d(Mt,{default:function(){return fn}});var x=ae(56553),ct=ae(94480),Le=ae(59301),Je=ae(92310),ze=ae.n(Je),Se=ae(77900),Ue=ae(86641),fe=ae(83397);function Ce(Pt){const[en,Kt]=Le.useState(Pt);return Le.useEffect(()=>{const gn=setTimeout(()=>{Kt(Pt)},Pt.length?0:10);return()=>{clearTimeout(gn)}},[Pt]),en}var oe=ae(36237),Oe=ae(63356),ve=ae(34925),Me=ae(34961),Fe=ae(51636),Te=ae(16931),xe=Pt=>{const{componentCls:en}=Pt,Kt=`${en}-show-help`,gn=`${en}-show-help-item`;return{[Kt]:{transition:`opacity ${Pt.motionDurationFast} ${Pt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[gn]:{overflow:"hidden",transition:`height ${Pt.motionDurationFast} ${Pt.motionEaseInOut},
opacity ${Pt.motionDurationFast} ${Pt.motionEaseInOut},
transform ${Pt.motionDurationFast} ${Pt.motionEaseInOut} !important`,[`&${gn}-appear, &${gn}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${gn}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Ee=Pt=>({legend:{display:"block",width:"100%",marginBottom:Pt.marginLG,padding:0,color:Pt.colorTextDescription,fontSize:Pt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,oe.unit)(Pt.lineWidth)} ${Pt.lineType} ${Pt.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,oe.unit)(Pt.controlOutlineWidth)} ${Pt.controlOutline}`},output:{display:"block",paddingTop:15,color:Pt.colorText,fontSize:Pt.fontSize,lineHeight:Pt.lineHeight}}),ke=(Pt,en)=>{const{formItemCls:Kt}=Pt;return{[Kt]:{[`${Kt}-label > label`]:{height:en},[`${Kt}-control-input`]:{minHeight:en}}}},Ke=Pt=>{const{componentCls:en}=Pt;return{[Pt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Oe.Wf)(Pt)),Ee(Pt)),{[`${en}-text`]:{display:"inline-block",paddingInlineEnd:Pt.paddingSM},"&-small":Object.assign({},ke(Pt,Pt.controlHeightSM)),"&-large":Object.assign({},ke(Pt,Pt.controlHeightLG))})}},Qe=Pt=>{const{formItemCls:en,iconCls:Kt,rootPrefixCls:gn,antCls:On,labelRequiredMarkColor:Nr,labelColor:Yr,labelFontSize:hi,labelHeight:rr,labelColonMarginInlineStart:ur,labelColonMarginInlineEnd:sr,itemMarginBottom:ni}=Pt;return{[en]:Object.assign(Object.assign({},(0,Oe.Wf)(Pt)),{marginBottom:ni,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${On}-row`]:{display:"none"},"&-has-warning":{[`${en}-split`]:{color:Pt.colorError}},"&-has-error":{[`${en}-split`]:{color:Pt.colorWarning}},[`${en}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:Pt.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:rr,color:Yr,fontSize:hi,[`> ${Kt}`]:{fontSize:Pt.fontSize,verticalAlign:"top"},[`&${en}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:Pt.marginXXS,color:Nr,fontSize:Pt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${en}-required-mark-hidden, &${en}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${en}-optional`]:{display:"inline-block",marginInlineStart:Pt.marginXXS,color:Pt.colorTextDescription,[`&${en}-required-mark-hidden`]:{display:"none"}},[`${en}-tooltip`]:{color:Pt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Pt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:ur,marginInlineEnd:sr},[`&${en}-no-colon::after`]:{content:'"\\a0"'}}},[`${en}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${gn}-col-'"]):not([class*="' ${gn}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Pt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[en]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:Pt.colorTextDescription,fontSize:Pt.fontSize,lineHeight:Pt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Pt.controlHeightSM,transition:`color ${Pt.motionDurationMid} ${Pt.motionEaseOut}`},"&-explain":{"&-error":{color:Pt.colorError},"&-warning":{color:Pt.colorWarning}}},[`&-with-help ${en}-explain`]:{height:"auto",opacity:1},[`${en}-feedback-icon`]:{fontSize:Pt.fontSize,textAlign:"center",visibility:"visible",animationName:ve.kr,animationDuration:Pt.motionDurationMid,animationTimingFunction:Pt.motionEaseOutBack,pointerEvents:"none","&-success":{color:Pt.colorSuccess},"&-error":{color:Pt.colorError},"&-warning":{color:Pt.colorWarning},"&-validating":{color:Pt.colorPrimary}}})}},Re=(Pt,en)=>{const{formItemCls:Kt}=Pt;return{[`${en}-horizontal`]:{[`${Kt}-label`]:{flexGrow:0},[`${Kt}-control`]:{flex:"1 1 0",minWidth:0},[`${Kt}-label[class$='-24'], ${Kt}-label[class*='-24 ']`]:{[`& + ${Kt}-control`]:{minWidth:"unset"}}}}},et=Pt=>{const{componentCls:en,formItemCls:Kt,inlineItemMarginBottom:gn}=Pt;return{[`${en}-inline`]:{display:"flex",flexWrap:"wrap",[Kt]:{flex:"none",marginInlineEnd:Pt.margin,marginBottom:gn,"&-row":{flexWrap:"nowrap"},[`> ${Kt}-label,
> ${Kt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Kt}-label`]:{flex:"none"},[`${en}-text`]:{display:"inline-block"},[`${Kt}-has-feedback`]:{display:"inline-block"}}}}},Ge=Pt=>({padding:Pt.verticalLabelPadding,margin:Pt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),ut=Pt=>{const{componentCls:en,formItemCls:Kt,rootPrefixCls:gn}=Pt;return{[`${Kt} ${Kt}-label`]:Ge(Pt),[`${en}:not(${en}-inline)`]:{[Kt]:{flexWrap:"wrap",[`${Kt}-label, ${Kt}-control`]:{[`&:not([class*=" ${gn}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},at=Pt=>{const{componentCls:en,formItemCls:Kt,antCls:gn}=Pt;return{[`${en}-vertical`]:{[`${Kt}:not(${Kt}-horizontal)`]:{[`${Kt}-row`]:{flexDirection:"column"},[`${Kt}-label > label`]:{height:"auto"},[`${Kt}-control`]:{width:"100%"},[`${Kt}-label,
${gn}-col-24${Kt}-label,
${gn}-col-xl-24${Kt}-label`]:Ge(Pt)}},[`@media (max-width: ${(0,oe.unit)(Pt.screenXSMax)})`]:[ut(Pt),{[en]:{[`${Kt}:not(${Kt}-horizontal)`]:{[`${gn}-col-xs-24${Kt}-label`]:Ge(Pt)}}}],[`@media (max-width: ${(0,oe.unit)(Pt.screenSMMax)})`]:{[en]:{[`${Kt}:not(${Kt}-horizontal)`]:{[`${gn}-col-sm-24${Kt}-label`]:Ge(Pt)}}},[`@media (max-width: ${(0,oe.unit)(Pt.screenMDMax)})`]:{[en]:{[`${Kt}:not(${Kt}-horizontal)`]:{[`${gn}-col-md-24${Kt}-label`]:Ge(Pt)}}},[`@media (max-width: ${(0,oe.unit)(Pt.screenLGMax)})`]:{[en]:{[`${Kt}:not(${Kt}-horizontal)`]:{[`${gn}-col-lg-24${Kt}-label`]:Ge(Pt)}}}}},ft=Pt=>{const{formItemCls:en,antCls:Kt}=Pt;return{[`${en}-vertical`]:{[`${en}-row`]:{flexDirection:"column"},[`${en}-label > label`]:{height:"auto"},[`${en}-control`]:{width:"100%"}},[`${en}-vertical ${en}-label,
${Kt}-col-24${en}-label,
${Kt}-col-xl-24${en}-label`]:Ge(Pt),[`@media (max-width: ${(0,oe.unit)(Pt.screenXSMax)})`]:[ut(Pt),{[en]:{[`${Kt}-col-xs-24${en}-label`]:Ge(Pt)}}],[`@media (max-width: ${(0,oe.unit)(Pt.screenSMMax)})`]:{[en]:{[`${Kt}-col-sm-24${en}-label`]:Ge(Pt)}},[`@media (max-width: ${(0,oe.unit)(Pt.screenMDMax)})`]:{[en]:{[`${Kt}-col-md-24${en}-label`]:Ge(Pt)}},[`@media (max-width: ${(0,oe.unit)(Pt.screenLGMax)})`]:{[en]:{[`${Kt}-col-lg-24${en}-label`]:Ge(Pt)}}}},bt=Pt=>({labelRequiredMarkColor:Pt.colorError,labelColor:Pt.colorTextHeading,labelFontSize:Pt.fontSize,labelHeight:Pt.controlHeight,labelColonMarginInlineStart:Pt.marginXXS/2,labelColonMarginInlineEnd:Pt.marginXS,itemMarginBottom:Pt.marginLG,verticalLabelPadding:`0 0 ${Pt.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),He=(Pt,en)=>(0,Fe.mergeToken)(Pt,{formItemCls:`${Pt.componentCls}-item`,rootPrefixCls:en});var pt=(0,Te.I$)("Form",(Pt,en)=>{let{rootPrefixCls:Kt}=en;const gn=He(Pt,Kt);return[Ke(gn),Qe(gn),xe(gn),Re(gn,gn.componentCls),Re(gn,gn.formItemCls),et(gn),at(gn),ft(gn),(0,Me.Z)(gn),ve.kr]},bt,{order:-1e3});const Ne=[];function je(Pt,en,Kt){let gn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Pt=="string"?Pt:`${en}-${gn}`,error:Pt,errorStatus:Kt}}var it=Pt=>{let{help:en,helpStatus:Kt,errors:gn=Ne,warnings:On=Ne,className:Nr,fieldId:Yr,onVisibleChanged:hi}=Pt;const{prefixCls:rr}=Le.useContext(x.Rk),ur=`${rr}-item-explain`,sr=(0,fe.Z)(rr),[ni,er,Rn]=pt(rr,sr),Ar=Le.useMemo(()=>(0,Ue.Z)(rr),[rr]),Ei=Ce(gn),Kn=Ce(On),vn=Le.useMemo(()=>en!=null?[je(en,"help",Kt)]:[].concat((0,ct.Z)(Ei.map((fr,zr)=>je(fr,"error","error",zr))),(0,ct.Z)(Kn.map((fr,zr)=>je(fr,"warning","warning",zr)))),[en,Kt,Ei,Kn]),$n=Le.useMemo(()=>{const fr={};return vn.forEach(zr=>{let{key:Ni}=zr;fr[Ni]=(fr[Ni]||0)+1}),vn.map((zr,Ni)=>Object.assign(Object.assign({},zr),{key:fr[zr.key]>1?`${zr.key}-fallback-${Ni}`:zr.key}))},[vn]),nr={};return Yr&&(nr.id=`${Yr}_help`),ni(Le.createElement(Se.default,{motionDeadline:Ar.motionDeadline,motionName:`${rr}-show-help`,visible:!!$n.length,onVisibleChanged:hi},fr=>{const{className:zr,style:Ni}=fr;return Le.createElement("div",Object.assign({},nr,{className:ze()(ur,zr,Rn,sr,Nr,er),style:Ni}),Le.createElement(Se.CSSMotionList,Object.assign({keys:$n},(0,Ue.Z)(rr),{motionName:`${rr}-show-help-item`,component:!1}),gi=>{const{key:Di,error:mi,errorStatus:Si,className:wi,style:Ci}=gi;return Le.createElement("div",{key:Di,className:ze()(wi,{[`${ur}-${Si}`]:Si}),style:Ci},mi)}))}))},ht=ae(22001),Bt=ae(48755),We=ae(2171),_e=ae(31756),ot=ae(23069),Zt=ae(76846),zt=ae(16722);const tt=["parentNode"],Nt="form_item";function Ut(Pt){return Pt===void 0||Pt===!1?[]:Array.isArray(Pt)?Pt:[Pt]}function pn(Pt,en){if(!Pt.length)return;const Kt=Pt.join("_");return en?`${en}_${Kt}`:tt.includes(Kt)?`${Nt}_${Kt}`:Kt}function kt(Pt,en,Kt,gn,On,Nr){let Yr=gn;return Nr!==void 0?Yr=Nr:Kt.validating?Yr="validating":Pt.length?Yr="error":en.length?Yr="warning":(Kt.touched||On&&Kt.validated)&&(Yr="success"),Yr}var mn=function(Pt,en){var Kt={};for(var gn in Pt)Object.prototype.hasOwnProperty.call(Pt,gn)&&en.indexOf(gn)<0&&(Kt[gn]=Pt[gn]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var On=0,gn=Object.getOwnPropertySymbols(Pt);On<gn.length;On++)en.indexOf(gn[On])<0&&Object.prototype.propertyIsEnumerable.call(Pt,gn[On])&&(Kt[gn[On]]=Pt[gn[On]]);return Kt};function _t(Pt){return Ut(Pt).join("_")}function Cn(Pt,en){const Kt=en.getFieldInstance(Pt),gn=(0,Zt.bn)(Kt);if(gn)return gn;const On=pn(Ut(Pt),en.__INTERNAL__.name);if(On)return document.getElementById(On)}function an(Pt){const[en]=(0,ht.useForm)(),Kt=Le.useRef({}),gn=Le.useMemo(()=>Pt!=null?Pt:Object.assign(Object.assign({},en),{__INTERNAL__:{itemRef:On=>Nr=>{const Yr=_t(On);Nr?Kt.current[Yr]=Nr:delete Kt.current[Yr]}},scrollToField:function(On){let Nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:Yr}=Nr,hi=mn(Nr,["focus"]),rr=Cn(On,gn);rr&&((0,zt.Z)(rr,Object.assign({scrollMode:"if-needed",block:"nearest"},hi)),Yr&&gn.focusField(On))},focusField:On=>{var Nr,Yr;const hi=gn.getFieldInstance(On);typeof(hi==null?void 0:hi.focus)=="function"?hi.focus():(Yr=(Nr=Cn(On,gn))===null||Nr===void 0?void 0:Nr.focus)===null||Yr===void 0||Yr.call(Nr)},getFieldInstance:On=>{const Nr=_t(On);return Kt.current[Nr]}}),[Pt,en]);return[gn]}var de=ae(98350),pe=function(Pt,en){var Kt={};for(var gn in Pt)Object.prototype.hasOwnProperty.call(Pt,gn)&&en.indexOf(gn)<0&&(Kt[gn]=Pt[gn]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var On=0,gn=Object.getOwnPropertySymbols(Pt);On<gn.length;On++)en.indexOf(gn[On])<0&&Object.prototype.propertyIsEnumerable.call(Pt,gn[On])&&(Kt[gn[On]]=Pt[gn[On]]);return Kt};const ie=(Pt,en)=>{const Kt=Le.useContext(We.Z),{getPrefixCls:gn,direction:On,requiredMark:Nr,colon:Yr,scrollToFirstError:hi,className:rr,style:ur}=(0,Bt.dj)("form"),{prefixCls:sr,className:ni,rootClassName:er,size:Rn,disabled:Ar=Kt,form:Ei,colon:Kn,labelAlign:vn,labelWrap:$n,labelCol:nr,wrapperCol:fr,hideRequiredMark:zr,layout:Ni="horizontal",scrollToFirstError:gi,requiredMark:Di,onFinishFailed:mi,name:Si,style:wi,feedbackIcons:Ci,variant:yi}=Pt,Mi=pe(Pt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),eo=(0,_e.Z)(Rn),mo=Le.useContext(de.Z),Yi=Le.useMemo(()=>Di!==void 0?Di:zr?!1:Nr!==void 0?Nr:!0,[zr,Di,Nr]),Io=Kn!=null?Kn:Yr,Ri=gn("form",sr),ko=(0,fe.Z)(Ri),[uo,Vo,wo]=pt(Ri,ko),to=ze()(Ri,`${Ri}-${Ni}`,{[`${Ri}-hide-required-mark`]:Yi===!1,[`${Ri}-rtl`]:On==="rtl",[`${Ri}-${eo}`]:eo},wo,ko,Vo,rr,ni,er),[bo]=an(Ei),{__INTERNAL__:Go}=bo;Go.name=Si;const Tn=Le.useMemo(()=>({name:Si,labelAlign:vn,labelCol:nr,labelWrap:$n,wrapperCol:fr,vertical:Ni==="vertical",colon:Io,requiredMark:Yi,itemRef:Go.itemRef,form:bo,feedbackIcons:Ci}),[Si,vn,nr,fr,Ni,Io,Yi,bo,Ci]),Lo=Le.useRef(null);Le.useImperativeHandle(en,()=>{var Jr;return Object.assign(Object.assign({},bo),{nativeElement:(Jr=Lo.current)===null||Jr===void 0?void 0:Jr.nativeElement})});const Vi=(Jr,ri)=>{if(Jr){let Wr={block:"nearest"};typeof Jr=="object"&&(Wr=Object.assign(Object.assign({},Wr),Jr)),bo.scrollToField(ri,Wr)}},Mr=Jr=>{if(mi==null||mi(Jr),Jr.errorFields.length){const ri=Jr.errorFields[0].name;if(gi!==void 0){Vi(gi,ri);return}hi!==void 0&&Vi(hi,ri)}};return uo(Le.createElement(x.pg.Provider,{value:yi},Le.createElement(We.n,{disabled:Ar},Le.createElement(ot.Z.Provider,{value:eo},Le.createElement(x.RV,{validateMessages:mo},Le.createElement(x.q3.Provider,{value:Tn},Le.createElement(ht.default,Object.assign({id:Si},Mi,{name:Si,onFinishFailed:Mr,form:bo,ref:Lo,style:Object.assign(Object.assign({},ur),wi),className:to}))))))))};var se=Le.forwardRef(ie),le=ae(41799),Be=ae(8654),$e=ae(22703),st=ae(32383),gt=ae(11592);function mt(Pt){if(typeof Pt=="function")return Pt;const en=(0,gt.Z)(Pt);return en.length<=1?en[0]:en}const Et=()=>{const{status:Pt,errors:en=[],warnings:Kt=[]}=Le.useContext(x.aM);return{status:Pt,errors:en,warnings:Kt}};Et.Context=x.aM;var Lt=Et,jt=ae(16089);function Ct(Pt){const[en,Kt]=Le.useState(Pt),gn=Le.useRef(null),On=Le.useRef([]),Nr=Le.useRef(!1);Le.useEffect(()=>(Nr.current=!1,()=>{Nr.current=!0,jt.Z.cancel(gn.current),gn.current=null}),[]);function Yr(hi){Nr.current||(gn.current===null&&(On.current=[],gn.current=(0,jt.Z)(()=>{gn.current=null,Kt(rr=>{let ur=rr;return On.current.forEach(sr=>{ur=sr(ur)}),ur})})),On.current.push(hi))}return[en,Yr]}function lt(){const{itemRef:Pt}=Le.useContext(x.q3),en=Le.useRef({});function Kt(gn,On){const Nr=On&&typeof On=="object"&&(0,Be.C4)(On),Yr=gn.join("_");return(en.current.name!==Yr||en.current.originRef!==Nr)&&(en.current.name=Yr,en.current.originRef=Nr,en.current.ref=(0,Be.sQ)(Pt(gn),Nr)),en.current.ref}return Kt}var $t=ae(29194),Wt=ae(34280),wn=ae(2738),ln=ae(65970),tn=ae(70425),Qn=ae(5472);const En=Pt=>{const{formItemCls:en}=Pt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${en}-control`]:{display:"flex"}}}};var Rt=(0,Te.bk)(["Form","item-item"],(Pt,en)=>{let{rootPrefixCls:Kt}=en;const gn=He(Pt,Kt);return[En(gn)]}),un=function(Pt,en){var Kt={};for(var gn in Pt)Object.prototype.hasOwnProperty.call(Pt,gn)&&en.indexOf(gn)<0&&(Kt[gn]=Pt[gn]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var On=0,gn=Object.getOwnPropertySymbols(Pt);On<gn.length;On++)en.indexOf(gn[On])<0&&Object.prototype.propertyIsEnumerable.call(Pt,gn[On])&&(Kt[gn[On]]=Pt[gn[On]]);return Kt};const Dn=24;var It=Pt=>{const{prefixCls:en,status:Kt,labelCol:gn,wrapperCol:On,children:Nr,errors:Yr,warnings:hi,_internalItemRender:rr,extra:ur,help:sr,fieldId:ni,marginBottom:er,onErrorVisibleChanged:Rn,label:Ar}=Pt,Ei=`${en}-item`,Kn=Le.useContext(x.q3),vn=Le.useMemo(()=>{let Mi=Object.assign({},On||Kn.wrapperCol||{});return Ar===null&&!gn&&!On&&Kn.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(mo=>{const Yi=mo?[mo]:[],Io=(0,tn.U2)(Kn.labelCol,Yi),Ri=typeof Io=="object"?Io:{},ko=(0,tn.U2)(Mi,Yi),uo=typeof ko=="object"?ko:{};"span"in Ri&&!("offset"in uo)&&Ri.span<Dn&&(Mi=(0,tn.t8)(Mi,[].concat(Yi,["offset"]),Ri.span))}),Mi},[On,Kn]),$n=ze()(`${Ei}-control`,vn.className),nr=Le.useMemo(()=>{const{labelCol:Mi,wrapperCol:eo}=Kn;return un(Kn,["labelCol","wrapperCol"])},[Kn]),fr=Le.useRef(null),[zr,Ni]=Le.useState(0);(0,Wt.Z)(()=>{ur&&fr.current?Ni(fr.current.clientHeight):Ni(0)},[ur]);const gi=Le.createElement("div",{className:`${Ei}-control-input`},Le.createElement("div",{className:`${Ei}-control-input-content`},Nr)),Di=Le.useMemo(()=>({prefixCls:en,status:Kt}),[en,Kt]),mi=er!==null||Yr.length||hi.length?Le.createElement(x.Rk.Provider,{value:Di},Le.createElement(it,{fieldId:ni,errors:Yr,warnings:hi,help:sr,helpStatus:Kt,className:`${Ei}-explain-connected`,onVisibleChanged:Rn})):null,Si={};ni&&(Si.id=`${ni}_extra`);const wi=ur?Le.createElement("div",Object.assign({},Si,{className:`${Ei}-extra`,ref:fr}),ur):null,Ci=mi||wi?Le.createElement("div",{className:`${Ei}-additional`,style:er?{minHeight:er+zr}:{}},mi,wi):null,yi=rr&&rr.mark==="pro_table_render"&&rr.render?rr.render(Pt,{input:gi,errorList:mi,extra:wi}):Le.createElement(Le.Fragment,null,gi,Ci);return Le.createElement(x.q3.Provider,{value:nr},Le.createElement(Qn.Z,Object.assign({},vn,{className:$n}),yi),Le.createElement(Rt,{prefixCls:en}))},Gt=ae(61485),sn=ae(9017),yn=ae(85981),Yn=ae(25399),Br=function(Pt,en){var Kt={};for(var gn in Pt)Object.prototype.hasOwnProperty.call(Pt,gn)&&en.indexOf(gn)<0&&(Kt[gn]=Pt[gn]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var On=0,gn=Object.getOwnPropertySymbols(Pt);On<gn.length;On++)en.indexOf(gn[On])<0&&Object.prototype.propertyIsEnumerable.call(Pt,gn[On])&&(Kt[gn[On]]=Pt[gn[On]]);return Kt};function ti(Pt){return Pt?typeof Pt=="object"&&!Le.isValidElement(Pt)?Pt:{title:Pt}:null}var Sr=Pt=>{let{prefixCls:en,label:Kt,htmlFor:gn,labelCol:On,labelAlign:Nr,colon:Yr,required:hi,requiredMark:rr,tooltip:ur,vertical:sr}=Pt;var ni;const[er]=(0,sn.Z)("Form"),{labelAlign:Rn,labelCol:Ar,labelWrap:Ei,colon:Kn}=Le.useContext(x.q3);if(!Kt)return null;const vn=On||Ar||{},$n=Nr||Rn,nr=`${en}-item-label`,fr=ze()(nr,$n==="left"&&`${nr}-left`,vn.className,{[`${nr}-wrap`]:!!Ei});let zr=Kt;const Ni=Yr===!0||Kn!==!1&&Yr!==!1;Ni&&!sr&&typeof Kt=="string"&&Kt.trim()&&(zr=Kt.replace(/[:|]\s*$/,""));const Di=ti(ur);if(Di){const{icon:Mi=Le.createElement(Gt.Z,null)}=Di,eo=Br(Di,["icon"]),mo=Le.createElement(Yn.Z,Object.assign({},eo),Le.cloneElement(Mi,{className:`${en}-item-tooltip`,title:"",onClick:Yi=>{Yi.preventDefault()},tabIndex:null}));zr=Le.createElement(Le.Fragment,null,zr,mo)}const mi=rr==="optional",Si=typeof rr=="function",wi=rr===!1;Si?zr=rr(zr,{required:!!hi}):mi&&!hi&&(zr=Le.createElement(Le.Fragment,null,zr,Le.createElement("span",{className:`${en}-item-optional`,title:""},(er==null?void 0:er.optional)||((ni=yn.Z.Form)===null||ni===void 0?void 0:ni.optional))));let Ci;wi?Ci="hidden":(mi||Si)&&(Ci="optional");const yi=ze()({[`${en}-item-required`]:hi,[`${en}-item-required-mark-${Ci}`]:Ci,[`${en}-item-no-colon`]:!Ni});return Le.createElement(Qn.Z,Object.assign({},vn,{className:fr}),Le.createElement("label",{htmlFor:gn,className:yi,title:typeof Kt=="string"?Kt:""},zr))},Jn=ae(29679),gr=ae(19248),kr=ae(96512),Vr=ae(58617);const pi={success:Jn.Z,warning:kr.Z,error:gr.Z,validating:Vr.Z};function Lr(Pt){let{children:en,errors:Kt,warnings:gn,hasFeedback:On,validateStatus:Nr,prefixCls:Yr,meta:hi,noStyle:rr}=Pt;const ur=`${Yr}-item`,{feedbackIcons:sr}=Le.useContext(x.q3),ni=kt(Kt,gn,hi,null,!!On,Nr),{isFormItemInput:er,status:Rn,hasFeedback:Ar,feedbackIcon:Ei}=Le.useContext(x.aM),Kn=Le.useMemo(()=>{var vn;let $n;if(On){const fr=On!==!0&&On.icons||sr,zr=ni&&((vn=fr==null?void 0:fr({status:ni,errors:Kt,warnings:gn}))===null||vn===void 0?void 0:vn[ni]),Ni=ni&&pi[ni];$n=zr!==!1&&Ni?Le.createElement("span",{className:ze()(`${ur}-feedback-icon`,`${ur}-feedback-icon-${ni}`)},zr||Le.createElement(Ni,null)):null}const nr={status:ni||"",errors:Kt,warnings:gn,hasFeedback:!!On,feedbackIcon:$n,isFormItemInput:!0};return rr&&(nr.status=(ni!=null?ni:Rn)||"",nr.isFormItemInput=er,nr.hasFeedback=!!(On!=null?On:Ar),nr.feedbackIcon=On!==void 0?nr.feedbackIcon:Ei),nr},[ni,On,rr,er,Rn]);return Le.createElement(x.aM.Provider,{value:Kn},en)}var tr=function(Pt,en){var Kt={};for(var gn in Pt)Object.prototype.hasOwnProperty.call(Pt,gn)&&en.indexOf(gn)<0&&(Kt[gn]=Pt[gn]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var On=0,gn=Object.getOwnPropertySymbols(Pt);On<gn.length;On++)en.indexOf(gn[On])<0&&Object.prototype.propertyIsEnumerable.call(Pt,gn[On])&&(Kt[gn[On]]=Pt[gn[On]]);return Kt};function Xn(Pt){const{prefixCls:en,className:Kt,rootClassName:gn,style:On,help:Nr,errors:Yr,warnings:hi,validateStatus:rr,meta:ur,hasFeedback:sr,hidden:ni,children:er,fieldId:Rn,required:Ar,isRequired:Ei,onSubItemMetaChange:Kn,layout:vn}=Pt,$n=tr(Pt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),nr=`${en}-item`,{requiredMark:fr,vertical:zr}=Le.useContext(x.q3),Ni=zr||vn==="vertical",gi=Le.useRef(null),Di=Ce(Yr),mi=Ce(hi),Si=Nr!=null,wi=!!(Si||Yr.length||hi.length),Ci=!!gi.current&&(0,$t.Z)(gi.current),[yi,Mi]=Le.useState(null);(0,Wt.Z)(()=>{if(wi&&gi.current){const Ri=getComputedStyle(gi.current);Mi(parseInt(Ri.marginBottom,10))}},[wi,Ci]);const eo=Ri=>{Ri||Mi(null)},Yi=function(){let Ri=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const ko=Ri?Di:ur.errors,uo=Ri?mi:ur.warnings;return kt(ko,uo,ur,"",!!sr,rr)}(),Io=ze()(nr,Kt,gn,{[`${nr}-with-help`]:Si||Di.length||mi.length,[`${nr}-has-feedback`]:Yi&&sr,[`${nr}-has-success`]:Yi==="success",[`${nr}-has-warning`]:Yi==="warning",[`${nr}-has-error`]:Yi==="error",[`${nr}-is-validating`]:Yi==="validating",[`${nr}-hidden`]:ni,[`${nr}-${vn}`]:vn});return Le.createElement("div",{className:Io,style:On,ref:gi},Le.createElement(ln.Z,Object.assign({className:`${nr}-row`},(0,wn.Z)($n,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),Le.createElement(Sr,Object.assign({htmlFor:Rn},Pt,{requiredMark:fr,required:Ar!=null?Ar:Ei,prefixCls:en,vertical:Ni})),Le.createElement(It,Object.assign({},Pt,ur,{errors:Di,warnings:mi,prefixCls:en,status:Yi,help:Nr,marginBottom:yi,onErrorVisibleChanged:eo}),Le.createElement(x.qI.Provider,{value:Kn},Le.createElement(Lr,{prefixCls:en,meta:ur,errors:ur.errors,warnings:ur.warnings,hasFeedback:sr,validateStatus:Yi},er)))),!!yi&&Le.createElement("div",{className:`${nr}-margin-offset`,style:{marginBottom:-yi}}))}const mr="__SPLIT__",Qr=null;function ii(Pt,en){const Kt=Object.keys(Pt),gn=Object.keys(en);return Kt.length===gn.length&&Kt.every(On=>{const Nr=Pt[On],Yr=en[On];return Nr===Yr||typeof Nr=="function"||typeof Yr=="function"})}const ai=Le.memo(Pt=>{let{children:en}=Pt;return en},(Pt,en)=>ii(Pt.control,en.control)&&Pt.update===en.update&&Pt.childProps.length===en.childProps.length&&Pt.childProps.every((Kt,gn)=>Kt===en.childProps[gn]));function oi(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function li(Pt){const{name:en,noStyle:Kt,className:gn,dependencies:On,prefixCls:Nr,shouldUpdate:Yr,rules:hi,children:rr,required:ur,label:sr,messageVariables:ni,trigger:er="onChange",validateTrigger:Rn,hidden:Ar,help:Ei,layout:Kn}=Pt,{getPrefixCls:vn}=Le.useContext(Bt.E_),{name:$n}=Le.useContext(x.q3),nr=mt(rr),fr=typeof nr=="function",zr=Le.useContext(x.qI),{validateTrigger:Ni}=Le.useContext(ht.FieldContext),gi=Rn!==void 0?Rn:Ni,Di=en!=null,mi=vn("form",Nr),Si=(0,fe.Z)(mi),[wi,Ci,yi]=pt(mi,Si),Mi=(0,st.ln)("Form.Item"),eo=Le.useContext(ht.ListContext),mo=Le.useRef(null),[Yi,Io]=Ct({}),[Ri,ko]=(0,le.Z)(()=>oi()),uo=Lo=>{const Vi=eo==null?void 0:eo.getKey(Lo.name);if(ko(Lo.destroy?oi():Lo,!0),Kt&&Ei!==!1&&zr){let Mr=Lo.name;if(Lo.destroy)Mr=mo.current||Mr;else if(Vi!==void 0){const[Jr,ri]=Vi;Mr=[Jr].concat((0,ct.Z)(ri)),mo.current=Mr}zr(Lo,Mr)}},Vo=(Lo,Vi)=>{Io(Mr=>{const Jr=Object.assign({},Mr),Wr=[].concat((0,ct.Z)(Lo.name.slice(0,-1)),(0,ct.Z)(Vi)).join(mr);return Lo.destroy?delete Jr[Wr]:Jr[Wr]=Lo,Jr})},[wo,to]=Le.useMemo(()=>{const Lo=(0,ct.Z)(Ri.errors),Vi=(0,ct.Z)(Ri.warnings);return Object.values(Yi).forEach(Mr=>{Lo.push.apply(Lo,(0,ct.Z)(Mr.errors||[])),Vi.push.apply(Vi,(0,ct.Z)(Mr.warnings||[]))}),[Lo,Vi]},[Yi,Ri.errors,Ri.warnings]),bo=lt();function Go(Lo,Vi,Mr){return Kt&&!Ar?Le.createElement(Lr,{prefixCls:mi,hasFeedback:Pt.hasFeedback,validateStatus:Pt.validateStatus,meta:Ri,errors:wo,warnings:to,noStyle:!0},Lo):Le.createElement(Xn,Object.assign({key:"row"},Pt,{className:ze()(gn,yi,Si,Ci),prefixCls:mi,fieldId:Vi,isRequired:Mr,errors:wo,warnings:to,meta:Ri,onSubItemMetaChange:Vo,layout:Kn}),Lo)}if(!Di&&!fr&&!On)return wi(Go(nr));let Tn={};return typeof sr=="string"?Tn.label=sr:en&&(Tn.label=String(en)),ni&&(Tn=Object.assign(Object.assign({},Tn),ni)),wi(Le.createElement(ht.Field,Object.assign({},Pt,{messageVariables:Tn,trigger:er,validateTrigger:gi,onMetaChange:uo}),(Lo,Vi,Mr)=>{const Jr=Ut(en).length&&Vi?Vi.name:[],ri=pn(Jr,$n),Wr=ur!==void 0?ur:!!(hi!=null&&hi.some(Kr=>{if(Kr&&typeof Kr=="object"&&Kr.required&&!Kr.warningOnly)return!0;if(typeof Kr=="function"){const ui=Kr(Mr);return(ui==null?void 0:ui.required)&&!(ui!=null&&ui.warningOnly)}return!1})),Qi=Object.assign({},Lo);let no=null;if(Array.isArray(nr)&&Di)no=nr;else if(!(fr&&(!(Yr||On)||Di))){if(!(On&&!fr&&!Di))if(Le.isValidElement(nr)){const Kr=Object.assign(Object.assign({},nr.props),Qi);if(Kr.id||(Kr.id=ri),Ei||wo.length>0||to.length>0||Pt.extra){const qr=[];(Ei||wo.length>0)&&qr.push(`${ri}_help`),Pt.extra&&qr.push(`${ri}_extra`),Kr["aria-describedby"]=qr.join(" ")}wo.length>0&&(Kr["aria-invalid"]="true"),Wr&&(Kr["aria-required"]="true"),(0,Be.Yr)(nr)&&(Kr.ref=bo(Jr,nr)),new Set([].concat((0,ct.Z)(Ut(er)),(0,ct.Z)(Ut(gi)))).forEach(qr=>{Kr[qr]=function(){for(var Ao,Yo,Do,ga,No,Jo=arguments.length,Ro=new Array(Jo),oa=0;oa<Jo;oa++)Ro[oa]=arguments[oa];(Do=Qi[qr])===null||Do===void 0||(Ao=Do).call.apply(Ao,[Qi].concat(Ro)),(No=(ga=nr.props)[qr])===null||No===void 0||(Yo=No).call.apply(Yo,[ga].concat(Ro))}});const vr=[Kr["aria-required"],Kr["aria-invalid"],Kr["aria-describedby"]];no=Le.createElement(ai,{control:Qi,update:nr,childProps:vr},(0,$e.Tm)(nr,Kr))}else fr&&(Yr||On)&&!Di?no=nr(Mr):no=nr}return Go(no,ri,Wr)}))}const ji=li;ji.useStatus=Lt;var ki=ji,or=function(Pt,en){var Kt={};for(var gn in Pt)Object.prototype.hasOwnProperty.call(Pt,gn)&&en.indexOf(gn)<0&&(Kt[gn]=Pt[gn]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var On=0,gn=Object.getOwnPropertySymbols(Pt);On<gn.length;On++)en.indexOf(gn[On])<0&&Object.prototype.propertyIsEnumerable.call(Pt,gn[On])&&(Kt[gn[On]]=Pt[gn[On]]);return Kt},Bi=Pt=>{var{prefixCls:en,children:Kt}=Pt,gn=or(Pt,["prefixCls","children"]);const{getPrefixCls:On}=Le.useContext(Bt.E_),Nr=On("form",en),Yr=Le.useMemo(()=>({prefixCls:Nr,status:"error"}),[Nr]);return Le.createElement(ht.List,Object.assign({},gn),(hi,rr,ur)=>Le.createElement(x.Rk.Provider,{value:Yr},Kt(hi.map(sr=>Object.assign(Object.assign({},sr),{fieldKey:sr.key})),rr,{errors:ur.errors,warnings:ur.warnings})))};function Yt(){const{form:Pt}=Le.useContext(x.q3);return Pt}const rn=se;rn.Item=ki,rn.List=Bi,rn.ErrorList=it,rn.useForm=an,rn.useFormInstance=Yt,rn.useWatch=ht.useWatch,rn.Provider=x.RV,rn.create=()=>{};var fn=rn},75786:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Ei}});var x=ae(59301),ct=ae(15277),Le=ae(92310),Je=ae.n(Le),ze=ae(54476),Se=ae(33885),Ue=ae(20068),fe=ae(42978),Ce=ae(76190),oe=ae(75931),Oe=/margin|padding|width|height|max|min|offset/,ve={left:!0,top:!0},Me={cssFloat:1,styleFloat:1,float:1};function Fe(Kn){return Kn.nodeType===1?Kn.ownerDocument.defaultView.getComputedStyle(Kn,null):{}}function Te(Kn,vn,$n){if(vn=vn.toLowerCase(),$n==="auto"){if(vn==="height")return Kn.offsetHeight;if(vn==="width")return Kn.offsetWidth}return vn in ve||(ve[vn]=Oe.test(vn)),ve[vn]?parseFloat($n)||0:$n}function ye(Kn,vn){var $n=arguments.length,nr=Fe(Kn);return vn=Me[vn]?"cssFloat"in Kn.style?"cssFloat":"styleFloat":vn,$n===1?nr:Te(Kn,vn,nr[vn]||Kn.style[vn])}function xe(Kn,vn,$n){var nr=arguments.length;if(vn=Me[vn]?"cssFloat"in Kn.style?"cssFloat":"styleFloat":vn,nr===3)return typeof $n=="number"&&Oe.test(vn)&&($n="".concat($n,"px")),Kn.style[vn]=$n,$n;for(var fr in vn)vn.hasOwnProperty(fr)&&xe(Kn,fr,vn[fr]);return Fe(Kn)}function Ee(Kn){return Kn===document.body?document.documentElement.clientWidth:Kn.offsetWidth}function ke(Kn){return Kn===document.body?window.innerHeight||document.documentElement.clientHeight:Kn.offsetHeight}function Ke(){var Kn=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),vn=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Kn,height:vn}}function Qe(){var Kn=document.documentElement.clientWidth,vn=window.innerHeight||document.documentElement.clientHeight;return{width:Kn,height:vn}}function Re(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function et(Kn){var vn=Kn.getBoundingClientRect(),$n=document.documentElement;return{left:vn.left+(window.pageXOffset||$n.scrollLeft)-($n.clientLeft||document.body.clientLeft||0),top:vn.top+(window.pageYOffset||$n.scrollTop)-($n.clientTop||document.body.clientTop||0)}}var Ge=ae(18929),ut=ae(55311),at=ae(8224),ft=ae(10228),bt=ae(43403),He=ae(77900),pt=x.createContext(null),Ne=function(vn){var $n=vn.visible,nr=vn.maskTransitionName,fr=vn.getContainer,zr=vn.prefixCls,Ni=vn.rootClassName,gi=vn.icons,Di=vn.countRender,mi=vn.showSwitch,Si=vn.showProgress,wi=vn.current,Ci=vn.transform,yi=vn.count,Mi=vn.scale,eo=vn.minScale,mo=vn.maxScale,Yi=vn.closeIcon,Io=vn.onActive,Ri=vn.onClose,ko=vn.onZoomIn,uo=vn.onZoomOut,Vo=vn.onRotateRight,wo=vn.onRotateLeft,to=vn.onFlipX,bo=vn.onFlipY,Go=vn.onReset,Tn=vn.toolbarRender,Lo=vn.zIndex,Vi=vn.image,Mr=(0,x.useContext)(pt),Jr=gi.rotateLeft,ri=gi.rotateRight,Wr=gi.zoomIn,Qi=gi.zoomOut,no=gi.close,Kr=gi.left,ui=gi.right,vr=gi.flipX,qr=gi.flipY,Ao="".concat(zr,"-operations-operation");x.useEffect(function(){var as=function(Mo){Mo.keyCode===ft.Z.ESC&&Ri()};return $n&&window.addEventListener("keydown",as),function(){window.removeEventListener("keydown",as)}},[$n]);var Yo=function(ds,Mo){ds.preventDefault(),ds.stopPropagation(),Io(Mo)},Do=x.useCallback(function(as){var ds=as.type,Mo=as.disabled,go=as.onClick,Fa=as.icon;return x.createElement("div",{key:ds,className:Je()(Ao,"".concat(zr,"-operations-operation-").concat(ds),(0,Ue.Z)({},"".concat(zr,"-operations-operation-disabled"),!!Mo)),onClick:go},Fa)},[Ao,zr]),ga=mi?Do({icon:Kr,onClick:function(ds){return Yo(ds,-1)},type:"prev",disabled:wi===0}):void 0,No=mi?Do({icon:ui,onClick:function(ds){return Yo(ds,1)},type:"next",disabled:wi===yi-1}):void 0,Jo=Do({icon:qr,onClick:bo,type:"flipY"}),Ro=Do({icon:vr,onClick:to,type:"flipX"}),oa=Do({icon:Jr,onClick:wo,type:"rotateLeft"}),fa=Do({icon:ri,onClick:Vo,type:"rotateRight"}),Wa=Do({icon:Qi,onClick:uo,type:"zoomOut",disabled:Mi<=eo}),Ds=Do({icon:Wr,onClick:ko,type:"zoomIn",disabled:Mi===mo}),js=x.createElement("div",{className:"".concat(zr,"-operations")},Jo,Ro,oa,fa,Wa,Ds);return x.createElement(He.default,{visible:$n,motionName:nr},function(as){var ds=as.className,Mo=as.style;return x.createElement(bt.Z,{open:!0,getContainer:fr!=null?fr:document.body},x.createElement("div",{className:Je()("".concat(zr,"-operations-wrapper"),ds,Ni),style:(0,Se.Z)((0,Se.Z)({},Mo),{},{zIndex:Lo})},Yi===null?null:x.createElement("button",{className:"".concat(zr,"-close"),onClick:Ri},Yi||no),mi&&x.createElement(x.Fragment,null,x.createElement("div",{className:Je()("".concat(zr,"-switch-left"),(0,Ue.Z)({},"".concat(zr,"-switch-left-disabled"),wi===0)),onClick:function(Fa){return Yo(Fa,-1)}},Kr),x.createElement("div",{className:Je()("".concat(zr,"-switch-right"),(0,Ue.Z)({},"".concat(zr,"-switch-right-disabled"),wi===yi-1)),onClick:function(Fa){return Yo(Fa,1)}},ui)),x.createElement("div",{className:"".concat(zr,"-footer")},Si&&x.createElement("div",{className:"".concat(zr,"-progress")},Di?Di(wi+1,yi):"".concat(wi+1," / ").concat(yi)),Tn?Tn(js,(0,Se.Z)((0,Se.Z)({icons:{prevIcon:ga,nextIcon:No,flipYIcon:Jo,flipXIcon:Ro,rotateLeftIcon:oa,rotateRightIcon:fa,zoomOutIcon:Wa,zoomInIcon:Ds},actions:{onActive:Io,onFlipY:bo,onFlipX:to,onRotateLeft:wo,onRotateRight:Vo,onZoomOut:uo,onZoomIn:ko,onReset:Go,onClose:Ri},transform:Ci},Mr?{current:wi,total:yi}:{}),{},{image:Vi})):js)))})},je=Ne,Ot=ae(13697),it=ae(16089),ht={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Bt(Kn,vn,$n,nr){var fr=(0,x.useRef)(null),zr=(0,x.useRef)([]),Ni=(0,x.useState)(ht),gi=(0,fe.Z)(Ni,2),Di=gi[0],mi=gi[1],Si=function(Mi){mi(ht),(0,Ot.Z)(ht,Di)||nr==null||nr({transform:ht,action:Mi})},wi=function(Mi,eo){fr.current===null&&(zr.current=[],fr.current=(0,it.Z)(function(){mi(function(mo){var Yi=mo;return zr.current.forEach(function(Io){Yi=(0,Se.Z)((0,Se.Z)({},Yi),Io)}),fr.current=null,nr==null||nr({transform:Yi,action:eo}),Yi})})),zr.current.push((0,Se.Z)((0,Se.Z)({},Di),Mi))},Ci=function(Mi,eo,mo,Yi,Io){var Ri=Kn.current,ko=Ri.width,uo=Ri.height,Vo=Ri.offsetWidth,wo=Ri.offsetHeight,to=Ri.offsetLeft,bo=Ri.offsetTop,Go=Mi,Tn=Di.scale*Mi;Tn>$n?(Tn=$n,Go=$n/Di.scale):Tn<vn&&(Tn=Io?Tn:vn,Go=Tn/Di.scale);var Lo=mo!=null?mo:innerWidth/2,Vi=Yi!=null?Yi:innerHeight/2,Mr=Go-1,Jr=Mr*ko*.5,ri=Mr*uo*.5,Wr=Mr*(Lo-Di.x-to),Qi=Mr*(Vi-Di.y-bo),no=Di.x-(Wr-Jr),Kr=Di.y-(Qi-ri);if(Mi<1&&Tn===1){var ui=Vo*Tn,vr=wo*Tn,qr=Qe(),Ao=qr.width,Yo=qr.height;ui<=Ao&&vr<=Yo&&(no=0,Kr=0)}wi({x:no,y:Kr,scale:Tn},eo)};return{transform:Di,resetTransform:Si,updateTransform:wi,dispatchZoomChange:Ci}}var We=ae(48736);function _e(Kn,vn,$n,nr){var fr=vn+$n,zr=($n-nr)/2;if($n>nr){if(vn>0)return(0,Ue.Z)({},Kn,zr);if(vn<0&&fr<nr)return(0,Ue.Z)({},Kn,-zr)}else if(vn<0||fr>nr)return(0,Ue.Z)({},Kn,vn<0?zr:-zr);return{}}function ot(Kn,vn,$n,nr){var fr=Qe(),zr=fr.width,Ni=fr.height,gi=null;return Kn<=zr&&vn<=Ni?gi={x:0,y:0}:(Kn>zr||vn>Ni)&&(gi=(0,Se.Z)((0,Se.Z)({},_e("x",$n,Kn,zr)),_e("y",nr,vn,Ni))),gi}var Zt=1,zt=1;function tt(Kn,vn,$n,nr,fr,zr,Ni){var gi=fr.rotate,Di=fr.scale,mi=fr.x,Si=fr.y,wi=(0,x.useState)(!1),Ci=(0,fe.Z)(wi,2),yi=Ci[0],Mi=Ci[1],eo=(0,x.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),mo=function(uo){!vn||uo.button!==0||(uo.preventDefault(),uo.stopPropagation(),eo.current={diffX:uo.pageX-mi,diffY:uo.pageY-Si,transformX:mi,transformY:Si},Mi(!0))},Yi=function(uo){$n&&yi&&zr({x:uo.pageX-eo.current.diffX,y:uo.pageY-eo.current.diffY},"move")},Io=function(){if($n&&yi){Mi(!1);var uo=eo.current,Vo=uo.transformX,wo=uo.transformY,to=mi!==Vo&&Si!==wo;if(!to)return;var bo=Kn.current.offsetWidth*Di,Go=Kn.current.offsetHeight*Di,Tn=Kn.current.getBoundingClientRect(),Lo=Tn.left,Vi=Tn.top,Mr=gi%180!==0,Jr=ot(Mr?Go:bo,Mr?bo:Go,Lo,Vi);Jr&&zr((0,Se.Z)({},Jr),"dragRebound")}},Ri=function(uo){if(!(!$n||uo.deltaY==0)){var Vo=Math.abs(uo.deltaY/100),wo=Math.min(Vo,zt),to=Zt+wo*nr;uo.deltaY>0&&(to=Zt/to),Ni(to,"wheel",uo.clientX,uo.clientY)}};return(0,x.useEffect)(function(){var ko,uo,Vo,wo;if(vn){Vo=(0,at.Z)(window,"mouseup",Io,!1),wo=(0,at.Z)(window,"mousemove",Yi,!1);try{window.top!==window.self&&(ko=(0,at.Z)(window.top,"mouseup",Io,!1),uo=(0,at.Z)(window.top,"mousemove",Yi,!1))}catch(to){(0,We.Kp)(!1,"[rc-image] ".concat(to))}}return function(){var to,bo,Go,Tn;(to=Vo)===null||to===void 0||to.remove(),(bo=wo)===null||bo===void 0||bo.remove(),(Go=ko)===null||Go===void 0||Go.remove(),(Tn=uo)===null||Tn===void 0||Tn.remove()}},[$n,yi,mi,Si,gi,vn]),{isMoving:yi,onMouseDown:mo,onMouseMove:Yi,onMouseUp:Io,onWheel:Ri}}function Nt(Kn){return new Promise(function(vn){if(!Kn){vn(!1);return}var $n=document.createElement("img");$n.onerror=function(){return vn(!1)},$n.onload=function(){return vn(!0)},$n.src=Kn})}function Ut(Kn){var vn=Kn.src,$n=Kn.isCustomPlaceholder,nr=Kn.fallback,fr=(0,x.useState)($n?"loading":"normal"),zr=(0,fe.Z)(fr,2),Ni=zr[0],gi=zr[1],Di=(0,x.useRef)(!1),mi=Ni==="error";(0,x.useEffect)(function(){var yi=!0;return Nt(vn).then(function(Mi){!Mi&&yi&&gi("error")}),function(){yi=!1}},[vn]),(0,x.useEffect)(function(){$n&&!Di.current?gi("loading"):mi&&gi("normal")},[vn]);var Si=function(){gi("normal")},wi=function(Mi){Di.current=!1,Ni==="loading"&&Mi!==null&&Mi!==void 0&&Mi.complete&&(Mi.naturalWidth||Mi.naturalHeight)&&(Di.current=!0,Si())},Ci=mi&&nr?{src:nr}:{onLoad:Si,src:vn};return[wi,Ci,Ni]}function pn(Kn,vn){var $n=Kn.x-vn.x,nr=Kn.y-vn.y;return Math.hypot($n,nr)}function kt(Kn,vn,$n,nr){var fr=pn(Kn,$n),zr=pn(vn,nr);if(fr===0&&zr===0)return[Kn.x,Kn.y];var Ni=fr/(fr+zr),gi=Kn.x+Ni*(vn.x-Kn.x),Di=Kn.y+Ni*(vn.y-Kn.y);return[gi,Di]}function mn(Kn,vn,$n,nr,fr,zr,Ni){var gi=fr.rotate,Di=fr.scale,mi=fr.x,Si=fr.y,wi=(0,x.useState)(!1),Ci=(0,fe.Z)(wi,2),yi=Ci[0],Mi=Ci[1],eo=(0,x.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),mo=function(uo){eo.current=(0,Se.Z)((0,Se.Z)({},eo.current),uo)},Yi=function(uo){if(vn){uo.stopPropagation(),Mi(!0);var Vo=uo.touches,wo=Vo===void 0?[]:Vo;wo.length>1?mo({point1:{x:wo[0].clientX,y:wo[0].clientY},point2:{x:wo[1].clientX,y:wo[1].clientY},eventType:"touchZoom"}):mo({point1:{x:wo[0].clientX-mi,y:wo[0].clientY-Si},eventType:"move"})}},Io=function(uo){var Vo=uo.touches,wo=Vo===void 0?[]:Vo,to=eo.current,bo=to.point1,Go=to.point2,Tn=to.eventType;if(wo.length>1&&Tn==="touchZoom"){var Lo={x:wo[0].clientX,y:wo[0].clientY},Vi={x:wo[1].clientX,y:wo[1].clientY},Mr=kt(bo,Go,Lo,Vi),Jr=(0,fe.Z)(Mr,2),ri=Jr[0],Wr=Jr[1],Qi=pn(Lo,Vi)/pn(bo,Go);Ni(Qi,"touchZoom",ri,Wr,!0),mo({point1:Lo,point2:Vi,eventType:"touchZoom"})}else Tn==="move"&&(zr({x:wo[0].clientX-bo.x,y:wo[0].clientY-bo.y},"move"),mo({eventType:"move"}))},Ri=function(){if($n){if(yi&&Mi(!1),mo({eventType:"none"}),nr>Di)return zr({x:0,y:0,scale:nr},"touchZoom");var uo=Kn.current.offsetWidth*Di,Vo=Kn.current.offsetHeight*Di,wo=Kn.current.getBoundingClientRect(),to=wo.left,bo=wo.top,Go=gi%180!==0,Tn=ot(Go?Vo:uo,Go?uo:Vo,to,bo);Tn&&zr((0,Se.Z)({},Tn),"dragRebound")}};return(0,x.useEffect)(function(){var ko;return $n&&vn&&(ko=(0,at.Z)(window,"touchmove",function(uo){return uo.preventDefault()},{passive:!1})),function(){var uo;(uo=ko)===null||uo===void 0||uo.remove()}},[$n,vn]),{isTouching:yi,onTouchStart:Yi,onTouchMove:Io,onTouchEnd:Ri}}var _t=["fallback","src","imgRef"],Cn=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],an=function(vn){var $n=vn.fallback,nr=vn.src,fr=vn.imgRef,zr=(0,oe.Z)(vn,_t),Ni=Ut({src:nr,fallback:$n}),gi=(0,fe.Z)(Ni,2),Di=gi[0],mi=gi[1];return x.createElement("img",(0,ze.Z)({ref:function(wi){fr.current=wi,Di(wi)}},zr,mi))},de=function(vn){var $n=vn.prefixCls,nr=vn.src,fr=vn.alt,zr=vn.imageInfo,Ni=vn.fallback,gi=vn.movable,Di=gi===void 0?!0:gi,mi=vn.onClose,Si=vn.visible,wi=vn.icons,Ci=wi===void 0?{}:wi,yi=vn.rootClassName,Mi=vn.closeIcon,eo=vn.getContainer,mo=vn.current,Yi=mo===void 0?0:mo,Io=vn.count,Ri=Io===void 0?1:Io,ko=vn.countRender,uo=vn.scaleStep,Vo=uo===void 0?.5:uo,wo=vn.minScale,to=wo===void 0?1:wo,bo=vn.maxScale,Go=bo===void 0?50:bo,Tn=vn.transitionName,Lo=Tn===void 0?"zoom":Tn,Vi=vn.maskTransitionName,Mr=Vi===void 0?"fade":Vi,Jr=vn.imageRender,ri=vn.imgCommonProps,Wr=vn.toolbarRender,Qi=vn.onTransform,no=vn.onChange,Kr=(0,oe.Z)(vn,Cn),ui=(0,x.useRef)(),vr=(0,x.useContext)(pt),qr=vr&&Ri>1,Ao=vr&&Ri>=1,Yo=(0,x.useState)(!0),Do=(0,fe.Z)(Yo,2),ga=Do[0],No=Do[1],Jo=Bt(ui,to,Go,Qi),Ro=Jo.transform,oa=Jo.resetTransform,fa=Jo.updateTransform,Wa=Jo.dispatchZoomChange,Ds=tt(ui,Di,Si,Vo,Ro,fa,Wa),js=Ds.isMoving,as=Ds.onMouseDown,ds=Ds.onWheel,Mo=mn(ui,Di,Si,to,Ro,fa,Wa),go=Mo.isTouching,Fa=Mo.onTouchStart,gs=Mo.onTouchMove,el=Mo.onTouchEnd,tl=Ro.rotate,nl=Ro.scale,gl=Je()((0,Ue.Z)({},"".concat($n,"-moving"),js));(0,x.useEffect)(function(){ga||No(!0)},[ga]);var Au=function(){oa("close")},Xs=function(){Wa(Zt+Vo,"zoomIn")},Zl=function(){Wa(Zt/(Zt+Vo),"zoomOut")},Wl=function(){fa({rotate:tl+90},"rotateRight")},Iu=function(){fa({rotate:tl-90},"rotateLeft")},fl=function(){fa({flipX:!Ro.flipX},"flipX")},SA=function(){fa({flipY:!Ro.flipY},"flipY")},hA=function(){oa("reset")},pa=function(za){var $l=Yi+za;!Number.isInteger($l)||$l<0||$l>Ri-1||(No(!1),oa(za<0?"prev":"next"),no==null||no($l,Yi))},Ia=function(za){!Si||!qr||(za.keyCode===ft.Z.LEFT?pa(-1):za.keyCode===ft.Z.RIGHT&&pa(1))},ma=function(za){Si&&(nl!==1?fa({x:0,y:0,scale:1},"doubleClick"):Wa(Zt+Vo,"doubleClick",za.clientX,za.clientY))};(0,x.useEffect)(function(){var Va=(0,at.Z)(window,"keydown",Ia,!1);return function(){Va.remove()}},[Si,qr,Yi]);var ba=x.createElement(an,(0,ze.Z)({},ri,{width:vn.width,height:vn.height,imgRef:ui,className:"".concat($n,"-img"),alt:fr,style:{transform:"translate3d(".concat(Ro.x,"px, ").concat(Ro.y,"px, 0) scale3d(").concat(Ro.flipX?"-":"").concat(nl,", ").concat(Ro.flipY?"-":"").concat(nl,", 1) rotate(").concat(tl,"deg)"),transitionDuration:(!ga||go)&&"0s"},fallback:Ni,src:nr,onWheel:ds,onMouseDown:as,onDoubleClick:ma,onTouchStart:Fa,onTouchMove:gs,onTouchEnd:el,onTouchCancel:el})),qa=(0,Se.Z)({url:nr,alt:fr},zr);return x.createElement(x.Fragment,null,x.createElement(ut.Z,(0,ze.Z)({transitionName:Lo,maskTransitionName:Mr,closable:!1,keyboard:!0,prefixCls:$n,onClose:mi,visible:Si,classNames:{wrapper:gl},rootClassName:yi,getContainer:eo},Kr,{afterClose:Au}),x.createElement("div",{className:"".concat($n,"-img-wrapper")},Jr?Jr(ba,(0,Se.Z)({transform:Ro,image:qa},vr?{current:Yi}:{})):ba)),x.createElement(je,{visible:Si,transform:Ro,maskTransitionName:Mr,closeIcon:Mi,getContainer:eo,prefixCls:$n,rootClassName:yi,icons:Ci,countRender:ko,showSwitch:qr,showProgress:Ao,current:Yi,count:Ri,scale:nl,minScale:to,maxScale:Go,toolbarRender:Wr,onActive:pa,onZoomIn:Xs,onZoomOut:Zl,onRotateRight:Wl,onRotateLeft:Iu,onFlipX:fl,onFlipY:SA,onClose:mi,onReset:hA,zIndex:Kr.zIndex!==void 0?Kr.zIndex+1:void 0,image:qa}))},pe=de,ie=ae(94480),ee=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function se(Kn){var vn=x.useState({}),$n=(0,fe.Z)(vn,2),nr=$n[0],fr=$n[1],zr=x.useCallback(function(gi,Di){return fr(function(mi){return(0,Se.Z)((0,Se.Z)({},mi),{},(0,Ue.Z)({},gi,Di))}),function(){fr(function(mi){var Si=(0,Se.Z)({},mi);return delete Si[gi],Si})}},[]),Ni=x.useMemo(function(){return Kn?Kn.map(function(gi){if(typeof gi=="string")return{data:{src:gi}};var Di={};return Object.keys(gi).forEach(function(mi){["src"].concat((0,ie.Z)(ee)).includes(mi)&&(Di[mi]=gi[mi])}),{data:Di}}):Object.keys(nr).reduce(function(gi,Di){var mi=nr[Di],Si=mi.canPreview,wi=mi.data;return Si&&gi.push({data:wi,id:Di}),gi},[])},[Kn,nr]);return[Ni,zr,!!Kn]}var le=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Be=["src"],$e=function(vn){var $n,nr=vn.previewPrefixCls,fr=nr===void 0?"rc-image-preview":nr,zr=vn.children,Ni=vn.icons,gi=Ni===void 0?{}:Ni,Di=vn.items,mi=vn.preview,Si=vn.fallback,wi=(0,Ce.Z)(mi)==="object"?mi:{},Ci=wi.visible,yi=wi.onVisibleChange,Mi=wi.getContainer,eo=wi.current,mo=wi.movable,Yi=wi.minScale,Io=wi.maxScale,Ri=wi.countRender,ko=wi.closeIcon,uo=wi.onChange,Vo=wi.onTransform,wo=wi.toolbarRender,to=wi.imageRender,bo=(0,oe.Z)(wi,le),Go=se(Di),Tn=(0,fe.Z)(Go,3),Lo=Tn[0],Vi=Tn[1],Mr=Tn[2],Jr=(0,Ge.Z)(0,{value:eo}),ri=(0,fe.Z)(Jr,2),Wr=ri[0],Qi=ri[1],no=(0,x.useState)(!1),Kr=(0,fe.Z)(no,2),ui=Kr[0],vr=Kr[1],qr=(($n=Lo[Wr])===null||$n===void 0?void 0:$n.data)||{},Ao=qr.src,Yo=(0,oe.Z)(qr,Be),Do=(0,Ge.Z)(!!Ci,{value:Ci,onChange:function(go,Fa){yi==null||yi(go,Fa,Wr)}}),ga=(0,fe.Z)(Do,2),No=ga[0],Jo=ga[1],Ro=(0,x.useState)(null),oa=(0,fe.Z)(Ro,2),fa=oa[0],Wa=oa[1],Ds=x.useCallback(function(Mo,go,Fa,gs){var el=Mr?Lo.findIndex(function(tl){return tl.data.src===go}):Lo.findIndex(function(tl){return tl.id===Mo});Qi(el<0?0:el),Jo(!0),Wa({x:Fa,y:gs}),vr(!0)},[Lo,Mr]);x.useEffect(function(){No?ui||Qi(0):vr(!1)},[No]);var js=function(go,Fa){Qi(go),uo==null||uo(go,Fa)},as=function(){Jo(!1),Wa(null)},ds=x.useMemo(function(){return{register:Vi,onPreview:Ds}},[Vi,Ds]);return x.createElement(pt.Provider,{value:ds},zr,x.createElement(pe,(0,ze.Z)({"aria-hidden":!No,movable:mo,visible:No,prefixCls:fr,closeIcon:ko,onClose:as,mousePosition:fa,imgCommonProps:Yo,src:Ao,fallback:Si,icons:gi,minScale:Yi,maxScale:Io,getContainer:Mi,current:Wr,count:Lo.length,countRender:Ri,onTransform:Vo,toolbarRender:wo,imageRender:to,onChange:js},bo)))},st=$e,gt=0;function mt(Kn,vn){var $n=x.useState(function(){return gt+=1,String(gt)}),nr=(0,fe.Z)($n,1),fr=nr[0],zr=x.useContext(pt),Ni={data:vn,canPreview:Kn};return x.useEffect(function(){if(zr)return zr.register(fr,Ni)},[]),x.useEffect(function(){zr&&zr.register(fr,Ni)},[Kn,vn]),fr}var Et=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Lt=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],jt=function(vn){var $n=vn.src,nr=vn.alt,fr=vn.onPreviewClose,zr=vn.prefixCls,Ni=zr===void 0?"rc-image":zr,gi=vn.previewPrefixCls,Di=gi===void 0?"".concat(Ni,"-preview"):gi,mi=vn.placeholder,Si=vn.fallback,wi=vn.width,Ci=vn.height,yi=vn.style,Mi=vn.preview,eo=Mi===void 0?!0:Mi,mo=vn.className,Yi=vn.onClick,Io=vn.onError,Ri=vn.wrapperClassName,ko=vn.wrapperStyle,uo=vn.rootClassName,Vo=(0,oe.Z)(vn,Et),wo=mi&&mi!==!0,to=(0,Ce.Z)(eo)==="object"?eo:{},bo=to.src,Go=to.visible,Tn=Go===void 0?void 0:Go,Lo=to.onVisibleChange,Vi=Lo===void 0?fr:Lo,Mr=to.getContainer,Jr=Mr===void 0?void 0:Mr,ri=to.mask,Wr=to.maskClassName,Qi=to.movable,no=to.icons,Kr=to.scaleStep,ui=to.minScale,vr=to.maxScale,qr=to.imageRender,Ao=to.toolbarRender,Yo=(0,oe.Z)(to,Lt),Do=bo!=null?bo:$n,ga=(0,Ge.Z)(!!Tn,{value:Tn,onChange:Vi}),No=(0,fe.Z)(ga,2),Jo=No[0],Ro=No[1],oa=Ut({src:$n,isCustomPlaceholder:wo,fallback:Si}),fa=(0,fe.Z)(oa,3),Wa=fa[0],Ds=fa[1],js=fa[2],as=(0,x.useState)(null),ds=(0,fe.Z)(as,2),Mo=ds[0],go=ds[1],Fa=(0,x.useContext)(pt),gs=!!eo,el=function(){Ro(!1),go(null)},tl=Je()(Ni,Ri,uo,(0,Ue.Z)({},"".concat(Ni,"-error"),js==="error")),nl=(0,x.useMemo)(function(){var Zl={};return ee.forEach(function(Wl){vn[Wl]!==void 0&&(Zl[Wl]=vn[Wl])}),Zl},ee.map(function(Zl){return vn[Zl]})),gl=(0,x.useMemo)(function(){return(0,Se.Z)((0,Se.Z)({},nl),{},{src:Do})},[Do,nl]),Au=mt(gs,gl),Xs=function(Wl){var Iu=et(Wl.target),fl=Iu.left,SA=Iu.top;Fa?Fa.onPreview(Au,Do,fl,SA):(go({x:fl,y:SA}),Ro(!0)),Yi==null||Yi(Wl)};return x.createElement(x.Fragment,null,x.createElement("div",(0,ze.Z)({},Vo,{className:tl,onClick:gs?Xs:Yi,style:(0,Se.Z)({width:wi,height:Ci},ko)}),x.createElement("img",(0,ze.Z)({},nl,{className:Je()("".concat(Ni,"-img"),(0,Ue.Z)({},"".concat(Ni,"-img-placeholder"),mi===!0),mo),style:(0,Se.Z)({height:Ci},yi),ref:Wa},Ds,{width:wi,height:Ci,onError:Io})),js==="loading"&&x.createElement("div",{"aria-hidden":"true",className:"".concat(Ni,"-placeholder")},mi),ri&&gs&&x.createElement("div",{className:Je()("".concat(Ni,"-mask"),Wr),style:{display:(yi==null?void 0:yi.display)==="none"?"none":void 0}},ri)),!Fa&&gs&&x.createElement(pe,(0,ze.Z)({"aria-hidden":!Jo,visible:Jo,prefixCls:Di,onClose:el,mousePosition:Mo,src:Do,alt:nr,imageInfo:{width:wi,height:Ci},fallback:Si,getContainer:Jr,icons:no,movable:Qi,scaleStep:Kr,minScale:ui,maxScale:vr,rootClassName:uo,imageRender:qr,imgCommonProps:nl,toolbarRender:Ao},Yo)))};jt.PreviewGroup=st;var Ct=jt,lt=Ct,$t=ae(75030),Wt=ae(86641),wn=ae(48755),ln=ae(83397),tn=ae(9017),Qn=ae(99267),En=ae(33853),Rt=ae(38819),un={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},Dn=un,Wn=ae(7657),It=function(vn,$n){return x.createElement(Wn.Z,(0,ze.Z)({},vn,{ref:$n,icon:Dn}))},Gt=x.forwardRef(It),sn=Gt,yn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},Yn=yn,Br=function(vn,$n){return x.createElement(Wn.Z,(0,ze.Z)({},vn,{ref:$n,icon:Yn}))},ti=x.forwardRef(Br),Ur=ti,Sr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},Jn=Sr,gr=function(vn,$n){return x.createElement(Wn.Z,(0,ze.Z)({},vn,{ref:$n,icon:Jn}))},kr=x.forwardRef(gr),Vr=kr,pi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},Lr=pi,tr=function(vn,$n){return x.createElement(Wn.Z,(0,ze.Z)({},vn,{ref:$n,icon:Lr}))},Xn=x.forwardRef(tr),mr=Xn,Qr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},ii=Qr,ai=function(vn,$n){return x.createElement(Wn.Z,(0,ze.Z)({},vn,{ref:$n,icon:ii}))},oi=x.forwardRef(ai),li=oi,ji=ae(36237),ki=ae(17835),or=ae(64427),Hr=ae(63356),Bi=ae(34925),Yt=ae(99495),rn=ae(16931),fn=ae(51636);const Pt=Kn=>({position:Kn||"absolute",inset:0}),en=Kn=>{const{iconCls:vn,motionDurationSlow:$n,paddingXXS:nr,marginXXS:fr,prefixCls:zr,colorTextLightSolid:Ni}=Kn;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:Ni,background:new ki.FastColor("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${$n}`,[`.${zr}-mask-info`]:Object.assign(Object.assign({},Hr.vS),{padding:`0 ${(0,ji.unit)(nr)}`,[vn]:{marginInlineEnd:fr,svg:{verticalAlign:"baseline"}}})}},Kt=Kn=>{const{previewCls:vn,modalMaskBg:$n,paddingSM:nr,marginXL:fr,margin:zr,paddingLG:Ni,previewOperationColorDisabled:gi,previewOperationHoverColor:Di,motionDurationSlow:mi,iconCls:Si,colorTextLightSolid:wi}=Kn,Ci=new ki.FastColor($n).setA(.1),yi=Ci.clone().setA(.2);return{[`${vn}-footer`]:{position:"fixed",bottom:fr,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:Kn.previewOperationColor,transform:"translateX(-50%)"},[`${vn}-progress`]:{marginBottom:zr},[`${vn}-close`]:{position:"fixed",top:fr,right:{_skip_check_:!0,value:fr},display:"flex",color:wi,backgroundColor:Ci.toRgbString(),borderRadius:"50%",padding:nr,outline:0,border:0,cursor:"pointer",transition:`all ${mi}`,"&:hover":{backgroundColor:yi.toRgbString()},[`& > ${Si}`]:{fontSize:Kn.previewOperationSize}},[`${vn}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${(0,ji.unit)(Ni)}`,backgroundColor:Ci.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:nr,padding:nr,cursor:"pointer",transition:`all ${mi}`,userSelect:"none",[`&:not(${vn}-operations-operation-disabled):hover > ${Si}`]:{color:Di},"&-disabled":{color:gi,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${Si}`]:{fontSize:Kn.previewOperationSize}}}}},gn=Kn=>{const{modalMaskBg:vn,iconCls:$n,previewOperationColorDisabled:nr,previewCls:fr,zIndexPopup:zr,motionDurationSlow:Ni}=Kn,gi=new ki.FastColor(vn).setA(.1),Di=gi.clone().setA(.2);return{[`${fr}-switch-left, ${fr}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:Kn.calc(zr).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:Kn.imagePreviewSwitchSize,height:Kn.imagePreviewSwitchSize,marginTop:Kn.calc(Kn.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:Kn.previewOperationColor,background:gi.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${Ni}`,userSelect:"none","&:hover":{background:Di.toRgbString()},"&-disabled":{"&, &:hover":{color:nr,background:"transparent",cursor:"not-allowed",[`> ${$n}`]:{cursor:"not-allowed"}}},[`> ${$n}`]:{fontSize:Kn.previewOperationSize}},[`${fr}-switch-left`]:{insetInlineStart:Kn.marginSM},[`${fr}-switch-right`]:{insetInlineEnd:Kn.marginSM}}},On=Kn=>{const{motionEaseOut:vn,previewCls:$n,motionDurationSlow:nr,componentCls:fr}=Kn;return[{[`${fr}-preview-root`]:{[$n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${$n}-body`]:Object.assign(Object.assign({},Pt()),{overflow:"hidden"}),[`${$n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${nr} ${vn} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Pt()),{transition:`transform ${nr} ${vn} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${$n}-moving`]:{[`${$n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${fr}-preview-root`]:{[`${$n}-wrap`]:{zIndex:Kn.zIndexPopup}}},{[`${fr}-preview-operations-wrapper`]:{position:"fixed",zIndex:Kn.calc(Kn.zIndexPopup).add(1).equal()},"&":[Kt(Kn),gn(Kn)]}]},Nr=Kn=>{const{componentCls:vn}=Kn;return{[vn]:{position:"relative",display:"inline-block",[`${vn}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${vn}-img-placeholder`]:{backgroundColor:Kn.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${vn}-mask`]:Object.assign({},en(Kn)),[`${vn}-mask:hover`]:{opacity:1},[`${vn}-placeholder`]:Object.assign({},Pt())}}},Yr=Kn=>{const{previewCls:vn}=Kn;return{[`${vn}-root`]:(0,Bi._y)(Kn,"zoom"),"&":(0,Yt.J$)(Kn,!0)}},hi=Kn=>({zIndexPopup:Kn.zIndexPopupBase+80,previewOperationColor:new ki.FastColor(Kn.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new ki.FastColor(Kn.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new ki.FastColor(Kn.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:Kn.fontSizeIcon*1.5});var rr=(0,rn.I$)("Image",Kn=>{const vn=`${Kn.componentCls}-preview`,$n=(0,fn.mergeToken)(Kn,{previewCls:vn,modalMaskBg:new ki.FastColor("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:Kn.controlHeightLG});return[Nr($n),On($n),(0,or.QA)((0,fn.mergeToken)($n,{componentCls:vn})),Yr($n)]},hi),ur=function(Kn,vn){var $n={};for(var nr in Kn)Object.prototype.hasOwnProperty.call(Kn,nr)&&vn.indexOf(nr)<0&&($n[nr]=Kn[nr]);if(Kn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fr=0,nr=Object.getOwnPropertySymbols(Kn);fr<nr.length;fr++)vn.indexOf(nr[fr])<0&&Object.prototype.propertyIsEnumerable.call(Kn,nr[fr])&&($n[nr[fr]]=Kn[nr[fr]]);return $n};const sr={rotateLeft:x.createElement(sn,null),rotateRight:x.createElement(Ur,null),zoomIn:x.createElement(mr,null),zoomOut:x.createElement(li,null),close:x.createElement(Qn.Z,null),left:x.createElement(En.Z,null),right:x.createElement(Rt.Z,null),flipX:x.createElement(Vr,null),flipY:x.createElement(Vr,{rotate:90})};var er=Kn=>{var{previewPrefixCls:vn,preview:$n}=Kn,nr=ur(Kn,["previewPrefixCls","preview"]);const{getPrefixCls:fr}=x.useContext(wn.E_),zr=fr("image",vn),Ni=`${zr}-preview`,gi=fr(),Di=(0,ln.Z)(zr),[mi,Si,wi]=rr(zr,Di),[Ci]=(0,$t.Cn)("ImagePreview",typeof $n=="object"?$n.zIndex:void 0),yi=x.useMemo(()=>{var Mi;if($n===!1)return $n;const eo=typeof $n=="object"?$n:{},mo=Je()(Si,wi,Di,(Mi=eo.rootClassName)!==null&&Mi!==void 0?Mi:"");return Object.assign(Object.assign({},eo),{transitionName:(0,Wt.m)(gi,"zoom",eo.transitionName),maskTransitionName:(0,Wt.m)(gi,"fade",eo.maskTransitionName),rootClassName:mo,zIndex:Ci})},[$n]);return mi(x.createElement(lt.PreviewGroup,Object.assign({preview:yi,previewPrefixCls:Ni,icons:sr},nr)))},Rn=function(Kn,vn){var $n={};for(var nr in Kn)Object.prototype.hasOwnProperty.call(Kn,nr)&&vn.indexOf(nr)<0&&($n[nr]=Kn[nr]);if(Kn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fr=0,nr=Object.getOwnPropertySymbols(Kn);fr<nr.length;fr++)vn.indexOf(nr[fr])<0&&Object.prototype.propertyIsEnumerable.call(Kn,nr[fr])&&($n[nr[fr]]=Kn[nr[fr]]);return $n};const Ar=Kn=>{const{prefixCls:vn,preview:$n,className:nr,rootClassName:fr,style:zr}=Kn,Ni=Rn(Kn,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:gi,getPopupContainer:Di,className:mi,style:Si,preview:wi}=(0,wn.dj)("image"),[Ci]=(0,tn.Z)("Image"),yi=gi("image",vn),Mi=gi(),eo=(0,ln.Z)(yi),[mo,Yi,Io]=rr(yi,eo),Ri=Je()(fr,Yi,Io,eo),ko=Je()(nr,Yi,mi),[uo]=(0,$t.Cn)("ImagePreview",typeof $n=="object"?$n.zIndex:void 0),Vo=x.useMemo(()=>{if($n===!1)return $n;const to=typeof $n=="object"?$n:{},{getContainer:bo,closeIcon:Go,rootClassName:Tn}=to,Lo=Rn(to,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:x.createElement("div",{className:`${yi}-mask-info`},x.createElement(ct.Z,null),Ci==null?void 0:Ci.preview),icons:sr},Lo),{rootClassName:Je()(Ri,Tn),getContainer:bo!=null?bo:Di,transitionName:(0,Wt.m)(Mi,"zoom",to.transitionName),maskTransitionName:(0,Wt.m)(Mi,"fade",to.maskTransitionName),zIndex:uo,closeIcon:Go!=null?Go:wi==null?void 0:wi.closeIcon})},[$n,Ci,wi==null?void 0:wi.closeIcon]),wo=Object.assign(Object.assign({},Si),zr);return mo(x.createElement(lt,Object.assign({prefixCls:yi,preview:Vo,rootClassName:Ri,className:ko,style:wo},Ni)))};Ar.PreviewGroup=er;var Ei=Ar},4875:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Wn}});var x=ae(59301),ct=ae(84105),Le=ae(87395),Je=ae(92310),ze=ae.n(Je),Se=ae(54476),Ue=ae(20068),fe=ae(76190),Ce=ae(42978),oe=ae(75931),Oe=ae(67732),ve=ae(83652);function Me(){return typeof BigInt=="function"}function Fe(It){return!It&&It!==0&&!Number.isNaN(It)||!String(It).trim()}function Te(It){var Gt=It.trim(),sn=Gt.startsWith("-");sn&&(Gt=Gt.slice(1)),Gt=Gt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Gt.startsWith(".")&&(Gt="0".concat(Gt));var yn=Gt||"0",Yn=yn.split("."),Br=Yn[0]||"0",ti=Yn[1]||"0";Br==="0"&&ti==="0"&&(sn=!1);var Ur=sn?"-":"";return{negative:sn,negativeStr:Ur,trimStr:yn,integerStr:Br,decimalStr:ti,fullStr:"".concat(Ur).concat(yn)}}function ye(It){var Gt=String(It);return!Number.isNaN(Number(Gt))&&Gt.includes("e")}function xe(It){var Gt=String(It);if(ye(It)){var sn=Number(Gt.slice(Gt.indexOf("e-")+2)),yn=Gt.match(/\.(\d+)/);return yn!=null&&yn[1]&&(sn+=yn[1].length),sn}return Gt.includes(".")&&ke(Gt)?Gt.length-Gt.indexOf(".")-1:0}function Ee(It){var Gt=String(It);if(ye(It)){if(It>Number.MAX_SAFE_INTEGER)return String(Me()?BigInt(It).toString():Number.MAX_SAFE_INTEGER);if(It<Number.MIN_SAFE_INTEGER)return String(Me()?BigInt(It).toString():Number.MIN_SAFE_INTEGER);Gt=It.toFixed(xe(Gt))}return Te(Gt).fullStr}function ke(It){return typeof It=="number"?!Number.isNaN(It):It?/^\s*-?\d+(\.\d+)?\s*$/.test(It)||/^\s*-?\d+\.\s*$/.test(It)||/^\s*-?\.\d+\s*$/.test(It):!1}var Ke=function(){function It(Gt){if((0,Oe.Z)(this,It),(0,Ue.Z)(this,"origin",""),(0,Ue.Z)(this,"negative",void 0),(0,Ue.Z)(this,"integer",void 0),(0,Ue.Z)(this,"decimal",void 0),(0,Ue.Z)(this,"decimalLen",void 0),(0,Ue.Z)(this,"empty",void 0),(0,Ue.Z)(this,"nan",void 0),Fe(Gt)){this.empty=!0;return}if(this.origin=String(Gt),Gt==="-"||Number.isNaN(Gt)){this.nan=!0;return}var sn=Gt;if(ye(sn)&&(sn=Number(sn)),sn=typeof sn=="string"?sn:Ee(sn),ke(sn)){var yn=Te(sn);this.negative=yn.negative;var Yn=yn.trimStr.split(".");this.integer=BigInt(Yn[0]);var Br=Yn[1]||"0";this.decimal=BigInt(Br),this.decimalLen=Br.length}else this.nan=!0}return(0,ve.Z)(It,[{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(sn){var yn="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(sn,"0"));return BigInt(yn)}},{key:"negate",value:function(){var sn=new It(this.toString());return sn.negative=!sn.negative,sn}},{key:"cal",value:function(sn,yn,Yn){var Br=Math.max(this.getDecimalStr().length,sn.getDecimalStr().length),ti=this.alignDecimal(Br),Ur=sn.alignDecimal(Br),Sr=yn(ti,Ur).toString(),Jn=Yn(Br),gr=Te(Sr),kr=gr.negativeStr,Vr=gr.trimStr,pi="".concat(kr).concat(Vr.padStart(Jn+1,"0"));return new It("".concat(pi.slice(0,-Jn),".").concat(pi.slice(-Jn)))}},{key:"add",value:function(sn){if(this.isInvalidate())return new It(sn);var yn=new It(sn);return yn.isInvalidate()?this:this.cal(yn,function(Yn,Br){return Yn+Br},function(Yn){return Yn})}},{key:"multi",value:function(sn){var yn=new It(sn);return this.isInvalidate()||yn.isInvalidate()?new It(NaN):this.cal(yn,function(Yn,Br){return Yn*Br},function(Yn){return Yn*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(sn){return this.toString()===(sn==null?void 0:sn.toString())}},{key:"lessEquals",value:function(sn){return this.add(sn.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var sn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return sn?this.isInvalidate()?"":Te("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),It}(),Qe=function(){function It(Gt){if((0,Oe.Z)(this,It),(0,Ue.Z)(this,"origin",""),(0,Ue.Z)(this,"number",void 0),(0,Ue.Z)(this,"empty",void 0),Fe(Gt)){this.empty=!0;return}this.origin=String(Gt),this.number=Number(Gt)}return(0,ve.Z)(It,[{key:"negate",value:function(){return new It(-this.toNumber())}},{key:"add",value:function(sn){if(this.isInvalidate())return new It(sn);var yn=Number(sn);if(Number.isNaN(yn))return this;var Yn=this.number+yn;if(Yn>Number.MAX_SAFE_INTEGER)return new It(Number.MAX_SAFE_INTEGER);if(Yn<Number.MIN_SAFE_INTEGER)return new It(Number.MIN_SAFE_INTEGER);var Br=Math.max(xe(this.number),xe(yn));return new It(Yn.toFixed(Br))}},{key:"multi",value:function(sn){var yn=Number(sn);if(this.isInvalidate()||Number.isNaN(yn))return new It(NaN);var Yn=this.number*yn;if(Yn>Number.MAX_SAFE_INTEGER)return new It(Number.MAX_SAFE_INTEGER);if(Yn<Number.MIN_SAFE_INTEGER)return new It(Number.MIN_SAFE_INTEGER);var Br=Math.max(xe(this.number),xe(yn));return new It(Yn.toFixed(Br))}},{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(sn){return this.toNumber()===(sn==null?void 0:sn.toNumber())}},{key:"lessEquals",value:function(sn){return this.add(sn.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var sn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return sn?this.isInvalidate()?"":Ee(this.number):this.origin}}]),It}();function Re(It){return Me()?new Ke(It):new Qe(It)}function et(It,Gt,sn){var yn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(It==="")return"";var Yn=Te(It),Br=Yn.negativeStr,ti=Yn.integerStr,Ur=Yn.decimalStr,Sr="".concat(Gt).concat(Ur),Jn="".concat(Br).concat(ti);if(sn>=0){var gr=Number(Ur[sn]);if(gr>=5&&!yn){var kr=Re(It).add("".concat(Br,"0.").concat("0".repeat(sn)).concat(10-gr));return et(kr.toString(),Gt,sn,yn)}return sn===0?Jn:"".concat(Jn).concat(Gt).concat(Ur.padEnd(sn,"0").slice(0,sn))}return Sr===".0"?Jn:"".concat(Jn).concat(Sr)}var Ge=Re,ut=ae(36901),at=ae(34280);function ft(It,Gt){return typeof Proxy!="undefined"&&It?new Proxy(It,{get:function(yn,Yn){if(Gt[Yn])return Gt[Yn];var Br=yn[Yn];return typeof Br=="function"?Br.bind(yn):Br}}):It}var bt=ae(8654),He=ae(48736);function pt(It,Gt){var sn=(0,x.useRef)(null);function yn(){try{var Br=It.selectionStart,ti=It.selectionEnd,Ur=It.value,Sr=Ur.substring(0,Br),Jn=Ur.substring(ti);sn.current={start:Br,end:ti,value:Ur,beforeTxt:Sr,afterTxt:Jn}}catch(gr){}}function Yn(){if(It&&sn.current&&Gt)try{var Br=It.value,ti=sn.current,Ur=ti.beforeTxt,Sr=ti.afterTxt,Jn=ti.start,gr=Br.length;if(Br.startsWith(Ur))gr=Ur.length;else if(Br.endsWith(Sr))gr=Br.length-sn.current.afterTxt.length;else{var kr=Ur[Jn-1],Vr=Br.indexOf(kr,Jn-1);Vr!==-1&&(gr=Vr+1)}It.setSelectionRange(gr,gr)}catch(pi){(0,He.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(pi.message))}}return[yn,Yn]}var Ne=ae(49658),je=function(){var Gt=(0,x.useState)(!1),sn=(0,Ce.Z)(Gt,2),yn=sn[0],Yn=sn[1];return(0,at.Z)(function(){Yn((0,Ne.Z)())},[]),yn},Ot=je,it=ae(16089),ht=200,Bt=600;function We(It){var Gt=It.prefixCls,sn=It.upNode,yn=It.downNode,Yn=It.upDisabled,Br=It.downDisabled,ti=It.onStep,Ur=x.useRef(),Sr=x.useRef([]),Jn=x.useRef();Jn.current=ti;var gr=function(){clearTimeout(Ur.current)},kr=function(ii,ai){ii.preventDefault(),gr(),Jn.current(ai);function oi(){Jn.current(ai),Ur.current=setTimeout(oi,ht)}Ur.current=setTimeout(oi,Bt)};x.useEffect(function(){return function(){gr(),Sr.current.forEach(function(Qr){return it.Z.cancel(Qr)})}},[]);var Vr=Ot();if(Vr)return null;var pi="".concat(Gt,"-handler"),Lr=ze()(pi,"".concat(pi,"-up"),(0,Ue.Z)({},"".concat(pi,"-up-disabled"),Yn)),tr=ze()(pi,"".concat(pi,"-down"),(0,Ue.Z)({},"".concat(pi,"-down-disabled"),Br)),Xn=function(){return Sr.current.push((0,it.Z)(gr))},mr={unselectable:"on",role:"button",onMouseUp:Xn,onMouseLeave:Xn};return x.createElement("div",{className:"".concat(pi,"-wrap")},x.createElement("span",(0,Se.Z)({},mr,{onMouseDown:function(ii){kr(ii,!0)},"aria-label":"Increase Value","aria-disabled":Yn,className:Lr}),sn||x.createElement("span",{unselectable:"on",className:"".concat(Gt,"-handler-up-inner")})),x.createElement("span",(0,Se.Z)({},mr,{onMouseDown:function(ii){kr(ii,!1)},"aria-label":"Decrease Value","aria-disabled":Br,className:tr}),yn||x.createElement("span",{unselectable:"on",className:"".concat(Gt,"-handler-down-inner")})))}function _e(It){var Gt=typeof It=="number"?Ee(It):Te(It).fullStr,sn=Gt.includes(".");return sn?Te(Gt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:It+"0"}var ot=ae(30292),Zt=function(){var It=(0,x.useRef)(0),Gt=function(){it.Z.cancel(It.current)};return(0,x.useEffect)(function(){return Gt},[]),function(sn){Gt(),It.current=(0,it.Z)(function(){sn()})}},zt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],tt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Nt=function(Gt,sn){return Gt||sn.isEmpty()?sn.toString():sn.toNumber()},Ut=function(Gt){var sn=Ge(Gt);return sn.isInvalidate()?null:sn},pn=x.forwardRef(function(It,Gt){var sn=It.prefixCls,yn=It.className,Yn=It.style,Br=It.min,ti=It.max,Ur=It.step,Sr=Ur===void 0?1:Ur,Jn=It.defaultValue,gr=It.value,kr=It.disabled,Vr=It.readOnly,pi=It.upHandler,Lr=It.downHandler,tr=It.keyboard,Xn=It.changeOnWheel,mr=Xn===void 0?!1:Xn,Qr=It.controls,ii=Qr===void 0?!0:Qr,ai=It.classNames,oi=It.stringMode,li=It.parser,ji=It.formatter,ki=It.precision,or=It.decimalSeparator,Hr=It.onChange,Bi=It.onInput,Yt=It.onPressEnter,rn=It.onStep,fn=It.changeOnBlur,Pt=fn===void 0?!0:fn,en=It.domRef,Kt=(0,oe.Z)(It,zt),gn="".concat(sn,"-input"),On=x.useRef(null),Nr=x.useState(!1),Yr=(0,Ce.Z)(Nr,2),hi=Yr[0],rr=Yr[1],ur=x.useRef(!1),sr=x.useRef(!1),ni=x.useRef(!1),er=x.useState(function(){return Ge(gr!=null?gr:Jn)}),Rn=(0,Ce.Z)(er,2),Ar=Rn[0],Ei=Rn[1];function Kn(ri){gr===void 0&&Ei(ri)}var vn=x.useCallback(function(ri,Wr){if(!Wr)return ki>=0?ki:Math.max(xe(ri),xe(Sr))},[ki,Sr]),$n=x.useCallback(function(ri){var Wr=String(ri);if(li)return li(Wr);var Qi=Wr;return or&&(Qi=Qi.replace(or,".")),Qi.replace(/[^\w.-]+/g,"")},[li,or]),nr=x.useRef(""),fr=x.useCallback(function(ri,Wr){if(ji)return ji(ri,{userTyping:Wr,input:String(nr.current)});var Qi=typeof ri=="number"?Ee(ri):ri;if(!Wr){var no=vn(Qi,Wr);if(ke(Qi)&&(or||no>=0)){var Kr=or||".";Qi=et(Qi,Kr,no)}}return Qi},[ji,vn,or]),zr=x.useState(function(){var ri=Jn!=null?Jn:gr;return Ar.isInvalidate()&&["string","number"].includes((0,fe.Z)(ri))?Number.isNaN(ri)?"":ri:fr(Ar.toString(),!1)}),Ni=(0,Ce.Z)(zr,2),gi=Ni[0],Di=Ni[1];nr.current=gi;function mi(ri,Wr){Di(fr(ri.isInvalidate()?ri.toString(!1):ri.toString(!Wr),Wr))}var Si=x.useMemo(function(){return Ut(ti)},[ti,ki]),wi=x.useMemo(function(){return Ut(Br)},[Br,ki]),Ci=x.useMemo(function(){return!Si||!Ar||Ar.isInvalidate()?!1:Si.lessEquals(Ar)},[Si,Ar]),yi=x.useMemo(function(){return!wi||!Ar||Ar.isInvalidate()?!1:Ar.lessEquals(wi)},[wi,Ar]),Mi=pt(On.current,hi),eo=(0,Ce.Z)(Mi,2),mo=eo[0],Yi=eo[1],Io=function(Wr){return Si&&!Wr.lessEquals(Si)?Si:wi&&!wi.lessEquals(Wr)?wi:null},Ri=function(Wr){return!Io(Wr)},ko=function(Wr,Qi){var no=Wr,Kr=Ri(no)||no.isEmpty();if(!no.isEmpty()&&!Qi&&(no=Io(no)||no,Kr=!0),!Vr&&!kr&&Kr){var ui=no.toString(),vr=vn(ui,Qi);return vr>=0&&(no=Ge(et(ui,".",vr)),Ri(no)||(no=Ge(et(ui,".",vr,!0)))),no.equals(Ar)||(Kn(no),Hr==null||Hr(no.isEmpty()?null:Nt(oi,no)),gr===void 0&&mi(no,Qi)),no}return Ar},uo=Zt(),Vo=function ri(Wr){if(mo(),nr.current=Wr,Di(Wr),!sr.current){var Qi=$n(Wr),no=Ge(Qi);no.isNaN()||ko(no,!0)}Bi==null||Bi(Wr),uo(function(){var Kr=Wr;li||(Kr=Wr.replace(/。/g,".")),Kr!==Wr&&ri(Kr)})},wo=function(){sr.current=!0},to=function(){sr.current=!1,Vo(On.current.value)},bo=function(Wr){Vo(Wr.target.value)},Go=function(Wr){var Qi;if(!(Wr&&Ci||!Wr&&yi)){ur.current=!1;var no=Ge(ni.current?_e(Sr):Sr);Wr||(no=no.negate());var Kr=(Ar||Ge(0)).add(no.toString()),ui=ko(Kr,!1);rn==null||rn(Nt(oi,ui),{offset:ni.current?_e(Sr):Sr,type:Wr?"up":"down"}),(Qi=On.current)===null||Qi===void 0||Qi.focus()}},Tn=function(Wr){var Qi=Ge($n(gi)),no;Qi.isNaN()?no=ko(Ar,Wr):no=ko(Qi,Wr),gr!==void 0?mi(Ar,!1):no.isNaN()||mi(no,!1)},Lo=function(){ur.current=!0},Vi=function(Wr){var Qi=Wr.key,no=Wr.shiftKey;ur.current=!0,ni.current=no,Qi==="Enter"&&(sr.current||(ur.current=!1),Tn(!1),Yt==null||Yt(Wr)),tr!==!1&&!sr.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Qi)&&(Go(Qi==="Up"||Qi==="ArrowUp"),Wr.preventDefault())},Mr=function(){ur.current=!1,ni.current=!1};x.useEffect(function(){if(mr&&hi){var ri=function(no){Go(no.deltaY<0),no.preventDefault()},Wr=On.current;if(Wr)return Wr.addEventListener("wheel",ri,{passive:!1}),function(){return Wr.removeEventListener("wheel",ri)}}});var Jr=function(){Pt&&Tn(!1),rr(!1),ur.current=!1};return(0,at.o)(function(){Ar.isInvalidate()||mi(Ar,!1)},[ki,ji]),(0,at.o)(function(){var ri=Ge(gr);Ei(ri);var Wr=Ge($n(gi));(!ri.equals(Wr)||!ur.current||ji)&&mi(ri,ur.current)},[gr]),(0,at.o)(function(){ji&&Yi()},[gi]),x.createElement("div",{ref:en,className:ze()(sn,yn,(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},"".concat(sn,"-focused"),hi),"".concat(sn,"-disabled"),kr),"".concat(sn,"-readonly"),Vr),"".concat(sn,"-not-a-number"),Ar.isNaN()),"".concat(sn,"-out-of-range"),!Ar.isInvalidate()&&!Ri(Ar))),style:Yn,onFocus:function(){rr(!0)},onBlur:Jr,onKeyDown:Vi,onKeyUp:Mr,onCompositionStart:wo,onCompositionEnd:to,onBeforeInput:Lo},ii&&x.createElement(We,{prefixCls:sn,upNode:pi,downNode:Lr,upDisabled:Ci,downDisabled:yi,onStep:Go}),x.createElement("div",{className:"".concat(gn,"-wrap")},x.createElement("input",(0,Se.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Br,"aria-valuemax":ti,"aria-valuenow":Ar.isInvalidate()?null:Ar.toString(),step:Sr},Kt,{ref:(0,bt.sQ)(On,Gt),className:gn,value:gi,onChange:bo,disabled:kr,readOnly:Vr}))))}),kt=x.forwardRef(function(It,Gt){var sn=It.disabled,yn=It.style,Yn=It.prefixCls,Br=Yn===void 0?"rc-input-number":Yn,ti=It.value,Ur=It.prefix,Sr=It.suffix,Jn=It.addonBefore,gr=It.addonAfter,kr=It.className,Vr=It.classNames,pi=(0,oe.Z)(It,tt),Lr=x.useRef(null),tr=x.useRef(null),Xn=x.useRef(null),mr=function(ii){Xn.current&&(0,ot.nH)(Xn.current,ii)};return x.useImperativeHandle(Gt,function(){return ft(Xn.current,{focus:mr,nativeElement:Lr.current.nativeElement||tr.current})}),x.createElement(ut.BaseInput,{className:kr,triggerFocus:mr,prefixCls:Br,value:ti,disabled:sn,style:yn,prefix:Ur,suffix:Sr,addonAfter:gr,addonBefore:Jn,classNames:Vr,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Lr},x.createElement(pn,(0,Se.Z)({prefixCls:Br,disabled:sn,ref:Xn,domRef:tr,className:Vr==null?void 0:Vr.input},pi)))}),mn=kt,_t=mn,Cn=ae(62487),an=ae(82855),de=ae(48755),pe=ae(60840),ie=ae(2171),ee=ae(83397),se=ae(31756),le=ae(56553),Be=ae(24971),$e=ae(70045),st=ae(36237),gt=ae(53075),mt=ae(64910),Et=ae(39082),Lt=ae(63356),jt=ae(56119),Ct=ae(16931),lt=ae(51636),$t=ae(17835);const Wt=It=>{var Gt;const sn=(Gt=It.handleVisible)!==null&&Gt!==void 0?Gt:"auto",yn=It.controlHeightSM-It.lineWidth*2;return Object.assign(Object.assign({},(0,mt.T)(It)),{controlWidth:90,handleWidth:yn,handleFontSize:It.fontSize/2,handleVisible:sn,handleActiveBg:It.colorFillAlter,handleBg:It.colorBgContainer,filledHandleBg:new $t.FastColor(It.colorFillSecondary).onBackground(It.colorBgContainer).toHexString(),handleHoverColor:It.colorPrimary,handleBorderColor:It.colorBorder,handleOpacity:sn===!0?1:0,handleVisibleWidth:sn===!0?yn:0})},wn=(It,Gt)=>{let{componentCls:sn,borderRadiusSM:yn,borderRadiusLG:Yn}=It;const Br=Gt==="lg"?Yn:yn;return{[`&-${Gt}`]:{[`${sn}-handler-wrap`]:{borderStartEndRadius:Br,borderEndEndRadius:Br},[`${sn}-handler-up`]:{borderStartEndRadius:Br},[`${sn}-handler-down`]:{borderEndEndRadius:Br}}}},ln=It=>{const{componentCls:Gt,lineWidth:sn,lineType:yn,borderRadius:Yn,inputFontSizeSM:Br,inputFontSizeLG:ti,controlHeightLG:Ur,controlHeightSM:Sr,colorError:Jn,paddingInlineSM:gr,paddingBlockSM:kr,paddingBlockLG:Vr,paddingInlineLG:pi,colorTextDescription:Lr,motionDurationMid:tr,handleHoverColor:Xn,handleOpacity:mr,paddingInline:Qr,paddingBlock:ii,handleBg:ai,handleActiveBg:oi,colorTextDisabled:li,borderRadiusSM:ji,borderRadiusLG:ki,controlWidth:or,handleBorderColor:Hr,filledHandleBg:Bi,lineHeightLG:Yt,calc:rn}=It;return[{[Gt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Lt.Wf)(It)),(0,gt.ik)(It)),{display:"inline-block",width:or,margin:0,padding:0,borderRadius:Yn}),(0,Et.qG)(It,{[`${Gt}-handler-wrap`]:{background:ai,[`${Gt}-handler-down`]:{borderBlockStart:`${(0,st.unit)(sn)} ${yn} ${Hr}`}}})),(0,Et.H8)(It,{[`${Gt}-handler-wrap`]:{background:Bi,[`${Gt}-handler-down`]:{borderBlockStart:`${(0,st.unit)(sn)} ${yn} ${Hr}`}},"&:focus-within":{[`${Gt}-handler-wrap`]:{background:ai}}})),(0,Et.vc)(It,{[`${Gt}-handler-wrap`]:{background:ai,[`${Gt}-handler-down`]:{borderBlockStart:`${(0,st.unit)(sn)} ${yn} ${Hr}`}}})),(0,Et.Mu)(It)),{"&-rtl":{direction:"rtl",[`${Gt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:ti,lineHeight:Yt,borderRadius:ki,[`input${Gt}-input`]:{height:rn(Ur).sub(rn(sn).mul(2)).equal(),padding:`${(0,st.unit)(Vr)} ${(0,st.unit)(pi)}`}},"&-sm":{padding:0,fontSize:Br,borderRadius:ji,[`input${Gt}-input`]:{height:rn(Sr).sub(rn(sn).mul(2)).equal(),padding:`${(0,st.unit)(kr)} ${(0,st.unit)(gr)}`}},"&-out-of-range":{[`${Gt}-input-wrap`]:{input:{color:Jn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Lt.Wf)(It)),(0,gt.s7)(It)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Gt}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Gt}-group-addon`]:{borderRadius:ki,fontSize:It.fontSizeLG}},"&-sm":{[`${Gt}-group-addon`]:{borderRadius:ji}}},(0,Et.ir)(It)),(0,Et.S5)(It)),{[`&:not(${Gt}-compact-first-item):not(${Gt}-compact-last-item)${Gt}-compact-item`]:{[`${Gt}, ${Gt}-group-addon`]:{borderRadius:0}},[`&:not(${Gt}-compact-last-item)${Gt}-compact-first-item`]:{[`${Gt}, ${Gt}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Gt}-compact-first-item)${Gt}-compact-last-item`]:{[`${Gt}, ${Gt}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${Gt}-input`]:{cursor:"not-allowed"},[Gt]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Lt.Wf)(It)),{width:"100%",padding:`${(0,st.unit)(ii)} ${(0,st.unit)(Qr)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Yn,outline:0,transition:`all ${tr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,gt.nz)(It.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${Gt}-handler-wrap, &-focused ${Gt}-handler-wrap`]:{width:It.handleWidth,opacity:1}})},{[Gt]:Object.assign(Object.assign(Object.assign({[`${Gt}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:It.handleVisibleWidth,opacity:mr,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Yn,borderEndEndRadius:Yn,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${tr}`,overflow:"hidden",[`${Gt}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${Gt}-handler-up-inner,
${Gt}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:It.handleFontSize}}},[`${Gt}-handler`]:{height:"50%",overflow:"hidden",color:Lr,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,st.unit)(sn)} ${yn} ${Hr}`,transition:`all ${tr} linear`,"&:active":{background:oi},"&:hover":{height:"60%",[`
${Gt}-handler-up-inner,
${Gt}-handler-down-inner
`]:{color:Xn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Lt.Ro)()),{color:Lr,transition:`all ${tr} linear`,userSelect:"none"})},[`${Gt}-handler-up`]:{borderStartEndRadius:Yn},[`${Gt}-handler-down`]:{borderEndEndRadius:Yn}},wn(It,"lg")),wn(It,"sm")),{"&-disabled, &-readonly":{[`${Gt}-handler-wrap`]:{display:"none"},[`${Gt}-input`]:{color:"inherit"}},[`
${Gt}-handler-up-disabled,
${Gt}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${Gt}-handler-up-disabled:hover &-handler-up-inner,
${Gt}-handler-down-disabled:hover &-handler-down-inner
`]:{color:li}})}]},tn=It=>{const{componentCls:Gt,paddingBlock:sn,paddingInline:yn,inputAffixPadding:Yn,controlWidth:Br,borderRadiusLG:ti,borderRadiusSM:Ur,paddingInlineLG:Sr,paddingInlineSM:Jn,paddingBlockLG:gr,paddingBlockSM:kr,motionDurationMid:Vr}=It;return{[`${Gt}-affix-wrapper`]:Object.assign(Object.assign({[`input${Gt}-input`]:{padding:`${(0,st.unit)(sn)} 0`}},(0,gt.ik)(It)),{position:"relative",display:"inline-flex",alignItems:"center",width:Br,padding:0,paddingInlineStart:yn,"&-lg":{borderRadius:ti,paddingInlineStart:Sr,[`input${Gt}-input`]:{padding:`${(0,st.unit)(gr)} 0`}},"&-sm":{borderRadius:Ur,paddingInlineStart:Jn,[`input${Gt}-input`]:{padding:`${(0,st.unit)(kr)} 0`}},[`&:not(${Gt}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Gt}-disabled`]:{background:"transparent"},[`> div${Gt}`]:{width:"100%",border:"none",outline:"none",[`&${Gt}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Gt}-handler-wrap`]:{zIndex:2},[Gt]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Yn},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:yn,marginInlineStart:Yn,transition:`margin ${Vr}`}},[`&:hover ${Gt}-handler-wrap, &-focused ${Gt}-handler-wrap`]:{width:It.handleWidth,opacity:1},[`&:not(${Gt}-affix-wrapper-without-controls):hover ${Gt}-suffix`]:{marginInlineEnd:It.calc(It.handleWidth).add(yn).equal()}})}};var Qn=(0,Ct.I$)("InputNumber",It=>{const Gt=(0,lt.mergeToken)(It,(0,mt.e)(It));return[ln(Gt),tn(Gt),(0,jt.c)(Gt)]},Wt,{unitless:{handleOpacity:!0}}),En=function(It,Gt){var sn={};for(var yn in It)Object.prototype.hasOwnProperty.call(It,yn)&&Gt.indexOf(yn)<0&&(sn[yn]=It[yn]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yn=0,yn=Object.getOwnPropertySymbols(It);Yn<yn.length;Yn++)Gt.indexOf(yn[Yn])<0&&Object.prototype.propertyIsEnumerable.call(It,yn[Yn])&&(sn[yn[Yn]]=It[yn[Yn]]);return sn};const Rt=x.forwardRef((It,Gt)=>{const{getPrefixCls:sn,direction:yn}=x.useContext(de.E_),Yn=x.useRef(null);x.useImperativeHandle(Gt,()=>Yn.current);const{className:Br,rootClassName:ti,size:Ur,disabled:Sr,prefixCls:Jn,addonBefore:gr,addonAfter:kr,prefix:Vr,suffix:pi,bordered:Lr,readOnly:tr,status:Xn,controls:mr,variant:Qr}=It,ii=En(It,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),ai=sn("input-number",Jn),oi=(0,ee.Z)(ai),[li,ji,ki]=Qn(ai,oi),{compactSize:or,compactItemClassnames:Hr}=(0,$e.ri)(ai,yn);let Bi=x.createElement(Le.Z,{className:`${ai}-handler-up-inner`}),Yt=x.createElement(ct.Z,{className:`${ai}-handler-down-inner`});const rn=typeof mr=="boolean"?mr:void 0;typeof mr=="object"&&(Bi=typeof mr.upIcon=="undefined"?Bi:x.createElement("span",{className:`${ai}-handler-up-inner`},mr.upIcon),Yt=typeof mr.downIcon=="undefined"?Yt:x.createElement("span",{className:`${ai}-handler-down-inner`},mr.downIcon));const{hasFeedback:fn,status:Pt,isFormItemInput:en,feedbackIcon:Kt}=x.useContext(le.aM),gn=(0,an.F)(Pt,Xn),On=(0,se.Z)(Rn=>{var Ar;return(Ar=Ur!=null?Ur:or)!==null&&Ar!==void 0?Ar:Rn}),Nr=x.useContext(ie.Z),Yr=Sr!=null?Sr:Nr,[hi,rr]=(0,Be.Z)("inputNumber",Qr,Lr),ur=fn&&x.createElement(x.Fragment,null,Kt),sr=ze()({[`${ai}-lg`]:On==="large",[`${ai}-sm`]:On==="small",[`${ai}-rtl`]:yn==="rtl",[`${ai}-in-form-item`]:en},ji),ni=`${ai}-group`,er=x.createElement(_t,Object.assign({ref:Yn,disabled:Yr,className:ze()(ki,oi,Br,ti,Hr),upHandler:Bi,downHandler:Yt,prefixCls:ai,readOnly:tr,controls:rn,prefix:Vr,suffix:ur||pi,addonBefore:gr&&x.createElement(Cn.Z,{form:!0,space:!0},gr),addonAfter:kr&&x.createElement(Cn.Z,{form:!0,space:!0},kr),classNames:{input:sr,variant:ze()({[`${ai}-${hi}`]:rr},(0,an.Z)(ai,gn,fn)),affixWrapper:ze()({[`${ai}-affix-wrapper-sm`]:On==="small",[`${ai}-affix-wrapper-lg`]:On==="large",[`${ai}-affix-wrapper-rtl`]:yn==="rtl",[`${ai}-affix-wrapper-without-controls`]:mr===!1||Yr},ji),wrapper:ze()({[`${ni}-rtl`]:yn==="rtl"},ji),groupWrapper:ze()({[`${ai}-group-wrapper-sm`]:On==="small",[`${ai}-group-wrapper-lg`]:On==="large",[`${ai}-group-wrapper-rtl`]:yn==="rtl",[`${ai}-group-wrapper-${hi}`]:rr},(0,an.Z)(`${ai}-group-wrapper`,gn,fn),ji)}},ii));return li(er)}),un=Rt,Dn=It=>x.createElement(pe.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},x.createElement(Rt,Object.assign({},It)));un._InternalPanelDoNotUseOrYouWillBeFired=Dn;var Wn=un},49397:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Qe}});var x=ae(59301),ct=ae(92310),Le=ae.n(ct),Je=ae(36901),ze=ae(8654),Se=ae(62487),Ue=ae(86013),fe=ae(82855),Ce=ae(48755),oe=ae(2171),Oe=ae(83397),ve=ae(31756),Me=ae(56553),Fe=ae(24971),Te=ae(70045),ye=ae(23826),xe=ae(53075);function Ee(Re){return!!(Re.prefix||Re.suffix||Re.allowClear||Re.showCount)}var ke=function(Re,et){var Ge={};for(var ut in Re)Object.prototype.hasOwnProperty.call(Re,ut)&&et.indexOf(ut)<0&&(Ge[ut]=Re[ut]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,ut=Object.getOwnPropertySymbols(Re);at<ut.length;at++)et.indexOf(ut[at])<0&&Object.prototype.propertyIsEnumerable.call(Re,ut[at])&&(Ge[ut[at]]=Re[ut[at]]);return Ge},Qe=(0,x.forwardRef)((Re,et)=>{const{prefixCls:Ge,bordered:ut=!0,status:at,size:ft,disabled:bt,onBlur:He,onFocus:pt,suffix:Ne,allowClear:je,addonAfter:Ot,addonBefore:it,className:ht,style:Bt,styles:We,rootClassName:_e,onChange:ot,classNames:Zt,variant:zt}=Re,tt=ke(Re,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Nt,direction:Ut,allowClear:pn,autoComplete:kt,className:mn,style:_t,classNames:Cn,styles:an}=(0,Ce.dj)("input"),de=Nt("input",Ge),pe=(0,x.useRef)(null),ie=(0,Oe.Z)(de),[ee,se,le]=(0,xe.TI)(de,_e),[Be]=(0,xe.ZP)(de,ie),{compactSize:$e,compactItemClassnames:st}=(0,Te.ri)(de,Ut),gt=(0,ve.Z)(Wn=>{var It;return(It=ft!=null?ft:$e)!==null&&It!==void 0?It:Wn}),mt=x.useContext(oe.Z),Et=bt!=null?bt:mt,{status:Lt,hasFeedback:jt,feedbackIcon:Ct}=(0,x.useContext)(Me.aM),lt=(0,fe.F)(Lt,at),$t=Ee(Re)||!!jt,Wt=(0,x.useRef)($t),wn=(0,ye.Z)(pe,!0),ln=Wn=>{wn(),He==null||He(Wn)},tn=Wn=>{wn(),pt==null||pt(Wn)},Qn=Wn=>{wn(),ot==null||ot(Wn)},En=(jt||Ne)&&x.createElement(x.Fragment,null,Ne,jt&&Ct),Rt=(0,Ue.Z)(je!=null?je:pn),[un,Dn]=(0,Fe.Z)("input",zt,ut);return ee(Be(x.createElement(Je.default,Object.assign({ref:(0,ze.sQ)(et,pe),prefixCls:de,autoComplete:kt},tt,{disabled:Et,onBlur:ln,onFocus:tn,style:Object.assign(Object.assign({},_t),Bt),styles:Object.assign(Object.assign({},an),We),suffix:En,allowClear:Rt,className:Le()(ht,_e,le,ie,st,mn),onChange:Qn,addonBefore:it&&x.createElement(Se.Z,{form:!0,space:!0},it),addonAfter:Ot&&x.createElement(Se.Z,{form:!0,space:!0},Ot),classNames:Object.assign(Object.assign(Object.assign({},Zt),Cn),{input:Le()({[`${de}-sm`]:gt==="small",[`${de}-lg`]:gt==="large",[`${de}-rtl`]:Ut==="rtl"},Zt==null?void 0:Zt.input,Cn.input,se),variant:Le()({[`${de}-${un}`]:Dn},(0,fe.Z)(de,lt)),affixWrapper:Le()({[`${de}-affix-wrapper-sm`]:gt==="small",[`${de}-affix-wrapper-lg`]:gt==="large",[`${de}-affix-wrapper-rtl`]:Ut==="rtl"},se),wrapper:Le()({[`${de}-group-rtl`]:Ut==="rtl"},se),groupWrapper:Le()({[`${de}-group-wrapper-sm`]:gt==="small",[`${de}-group-wrapper-lg`]:gt==="large",[`${de}-group-wrapper-rtl`]:Ut==="rtl",[`${de}-group-wrapper-${un}`]:Dn},(0,fe.Z)(`${de}-group-wrapper`,lt,jt),se)})}))))})},79809:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return et}});var x=ae(59301),ct=ae(92310),Le=ae.n(ct),Je=ae(22711),ze=ae(86013),Se=ae(82855),Ue=ae(48755),fe=ae(2171),Ce=ae(83397),oe=ae(31756),Oe=ae(56553),ve=ae(24971),Me=ae(70045),Fe=ae(30292),Te=ae(53075),ye=ae(16931),xe=ae(51636),Ee=ae(64910);const ke=Ge=>{const{componentCls:ut,paddingLG:at}=Ge,ft=`${ut}-textarea`;return{[`textarea${ut}`]:{maxWidth:"100%",height:"auto",minHeight:Ge.controlHeight,lineHeight:Ge.lineHeight,verticalAlign:"bottom",transition:`all ${Ge.motionDurationSlow}`,resize:"vertical",[`&${ut}-mouse-active`]:{transition:`all ${Ge.motionDurationSlow}, height 0s, width 0s`}},[`${ut}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[ft]:{position:"relative","&-show-count":{[`> ${ut}`]:{height:"100%"},[`${ut}-data-count`]:{position:"absolute",bottom:Ge.calc(Ge.fontSize).mul(Ge.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Ge.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
&-allow-clear > ${ut},
&-affix-wrapper${ft}-has-feedback ${ut}
`]:{paddingInlineEnd:at},[`&-affix-wrapper${ut}-affix-wrapper`]:{padding:0,[`> textarea${ut}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Ge.calc(Ge.controlHeight).sub(Ge.calc(Ge.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${ut}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${ut}-clear-icon`]:{position:"absolute",insetInlineEnd:Ge.paddingInline,insetBlockStart:Ge.paddingXS},[`${ft}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Ge.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${ut}-affix-wrapper-sm`]:{[`${ut}-suffix`]:{[`${ut}-clear-icon`]:{insetInlineEnd:Ge.paddingInlineSM}}}}}};var Ke=(0,ye.I$)(["Input","TextArea"],Ge=>{const ut=(0,xe.mergeToken)(Ge,(0,Ee.e)(Ge));return[ke(ut)]},Ee.T,{resetFont:!1}),Qe=function(Ge,ut){var at={};for(var ft in Ge)Object.prototype.hasOwnProperty.call(Ge,ft)&&ut.indexOf(ft)<0&&(at[ft]=Ge[ft]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,ft=Object.getOwnPropertySymbols(Ge);bt<ft.length;bt++)ut.indexOf(ft[bt])<0&&Object.prototype.propertyIsEnumerable.call(Ge,ft[bt])&&(at[ft[bt]]=Ge[ft[bt]]);return at},et=(0,x.forwardRef)((Ge,ut)=>{var at;const{prefixCls:ft,bordered:bt=!0,size:He,disabled:pt,status:Ne,allowClear:je,classNames:Ot,rootClassName:it,className:ht,style:Bt,styles:We,variant:_e,showCount:ot,onMouseDown:Zt,onResize:zt}=Ge,tt=Qe(Ge,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Nt,direction:Ut,allowClear:pn,autoComplete:kt,className:mn,style:_t,classNames:Cn,styles:an}=(0,Ue.dj)("textArea"),de=x.useContext(fe.Z),pe=pt!=null?pt:de,{status:ie,hasFeedback:ee,feedbackIcon:se}=x.useContext(Oe.aM),le=(0,Se.F)(ie,Ne),Be=x.useRef(null);x.useImperativeHandle(ut,()=>{var Dn;return{resizableTextArea:(Dn=Be.current)===null||Dn===void 0?void 0:Dn.resizableTextArea,focus:Wn=>{var It,Gt;(0,Fe.nH)((Gt=(It=Be.current)===null||It===void 0?void 0:It.resizableTextArea)===null||Gt===void 0?void 0:Gt.textArea,Wn)},blur:()=>{var Wn;return(Wn=Be.current)===null||Wn===void 0?void 0:Wn.blur()}}});const $e=Nt("input",ft),st=(0,Ce.Z)($e),[gt,mt,Et]=(0,Te.TI)($e,it),[Lt]=Ke($e,st),{compactSize:jt,compactItemClassnames:Ct}=(0,Me.ri)($e,Ut),lt=(0,oe.Z)(Dn=>{var Wn;return(Wn=He!=null?He:jt)!==null&&Wn!==void 0?Wn:Dn}),[$t,Wt]=(0,ve.Z)("textArea",_e,bt),wn=(0,ze.Z)(je!=null?je:pn),[ln,tn]=x.useState(!1),[Qn,En]=x.useState(!1),Rt=Dn=>{tn(!0),Zt==null||Zt(Dn);const Wn=()=>{tn(!1),document.removeEventListener("mouseup",Wn)};document.addEventListener("mouseup",Wn)},un=Dn=>{var Wn,It;if(zt==null||zt(Dn),ln&&typeof getComputedStyle=="function"){const Gt=(It=(Wn=Be.current)===null||Wn===void 0?void 0:Wn.nativeElement)===null||It===void 0?void 0:It.querySelector("textarea");Gt&&getComputedStyle(Gt).resize==="both"&&En(!0)}};return gt(Lt(x.createElement(Je.default,Object.assign({autoComplete:kt},tt,{style:Object.assign(Object.assign({},_t),Bt),styles:Object.assign(Object.assign({},an),We),disabled:pe,allowClear:wn,className:Le()(Et,st,ht,it,Ct,mn,Qn&&`${$e}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Ot),Cn),{textarea:Le()({[`${$e}-sm`]:lt==="small",[`${$e}-lg`]:lt==="large"},mt,Ot==null?void 0:Ot.textarea,Cn.textarea,ln&&`${$e}-mouse-active`),variant:Le()({[`${$e}-${$t}`]:Wt},(0,Se.Z)($e,le)),affixWrapper:Le()(`${$e}-textarea-affix-wrapper`,{[`${$e}-affix-wrapper-rtl`]:Ut==="rtl",[`${$e}-affix-wrapper-sm`]:lt==="small",[`${$e}-affix-wrapper-lg`]:lt==="large",[`${$e}-textarea-show-count`]:ot||((at=Ge.count)===null||at===void 0?void 0:at.show)},mt)}),prefixCls:$e,suffix:ee&&x.createElement("span",{className:`${$e}-textarea-suffix`},se),showCount:ot,ref:Be,onResize:un,onMouseDown:Rt}))))})},23826:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return ct}});var x=ae(59301);function ct(Le,Je){const ze=(0,x.useRef)([]),Se=()=>{ze.current.push(setTimeout(()=>{var Ue,fe,Ce,oe;!((Ue=Le.current)===null||Ue===void 0)&&Ue.input&&((fe=Le.current)===null||fe===void 0?void 0:fe.input.getAttribute("type"))==="password"&&(!((Ce=Le.current)===null||Ce===void 0)&&Ce.input.hasAttribute("value"))&&((oe=Le.current)===null||oe===void 0||oe.input.removeAttribute("value"))}))};return(0,x.useEffect)(()=>(Je&&Se(),()=>ze.current.forEach(Ue=>{Ue&&clearTimeout(Ue)})),[]),Se}},37568:function(Vn,Mt,ae){"use strict";ae.d(Mt,{default:function(){return Cn}});var x=ae(59301),ct=ae(92310),Le=ae.n(ct),Je=ae(48755),ze=ae(56553),Se=ae(53075),fe=an=>{const{getPrefixCls:de,direction:pe}=(0,x.useContext)(Je.E_),{prefixCls:ie,className:ee}=an,se=de("input-group",ie),le=de("input"),[Be,$e,st]=(0,Se.ZP)(le),gt=Le()(se,st,{[`${se}-lg`]:an.size==="large",[`${se}-sm`]:an.size==="small",[`${se}-compact`]:an.compact,[`${se}-rtl`]:pe==="rtl"},$e,ee),mt=(0,x.useContext)(ze.aM),Et=(0,x.useMemo)(()=>Object.assign(Object.assign({},mt),{isFormItemInput:!1}),[mt]);return Be(x.createElement("span",{className:gt,style:an.style,onMouseEnter:an.onMouseEnter,onMouseLeave:an.onMouseLeave,onFocus:an.onFocus,onBlur:an.onBlur},x.createElement(ze.aM.Provider,{value:Et},an.children)))},Ce=ae(49397),oe=ae(94480),Oe=ae(6089),ve=ae(26112),Me=ae(82855),Fe=ae(31756),Te=ae(16931),ye=ae(51636),xe=ae(64910);const Ee=an=>{const{componentCls:de,paddingXS:pe}=an;return{[de]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:pe,"&-rtl":{direction:"rtl"},[`${de}-input`]:{textAlign:"center",paddingInline:an.paddingXXS},[`&${de}-sm ${de}-input`]:{paddingInline:an.calc(an.paddingXXS).div(2).equal()},[`&${de}-lg ${de}-input`]:{paddingInline:an.paddingXS}}}};var ke=(0,Te.I$)(["Input","OTP"],an=>{const de=(0,ye.mergeToken)(an,(0,xe.e)(an));return[Ee(de)]},xe.T),Ke=ae(16089),Qe=function(an,de){var pe={};for(var ie in an)Object.prototype.hasOwnProperty.call(an,ie)&&de.indexOf(ie)<0&&(pe[ie]=an[ie]);if(an!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,ie=Object.getOwnPropertySymbols(an);ee<ie.length;ee++)de.indexOf(ie[ee])<0&&Object.prototype.propertyIsEnumerable.call(an,ie[ee])&&(pe[ie[ee]]=an[ie[ee]]);return pe},et=x.forwardRef((an,de)=>{const{value:pe,onChange:ie,onActiveChange:ee,index:se,mask:le}=an,Be=Qe(an,["value","onChange","onActiveChange","index","mask"]),$e=pe&&typeof le=="string"?le:pe,st=jt=>{ie(se,jt.target.value)},gt=x.useRef(null);x.useImperativeHandle(de,()=>gt.current);const mt=()=>{(0,Ke.Z)(()=>{var jt;const Ct=(jt=gt.current)===null||jt===void 0?void 0:jt.input;document.activeElement===Ct&&Ct&&Ct.select()})},Et=jt=>{const{key:Ct,ctrlKey:lt,metaKey:$t}=jt;Ct==="ArrowLeft"?ee(se-1):Ct==="ArrowRight"?ee(se+1):Ct==="z"&&(lt||$t)&&jt.preventDefault(),mt()},Lt=jt=>{jt.key==="Backspace"&&!pe&&ee(se-1),mt()};return x.createElement(Ce.Z,Object.assign({type:le===!0?"password":"text"},Be,{ref:gt,value:$e,onInput:st,onFocus:mt,onKeyDown:Et,onKeyUp:Lt,onMouseDown:mt,onMouseUp:mt}))}),Ge=function(an,de){var pe={};for(var ie in an)Object.prototype.hasOwnProperty.call(an,ie)&&de.indexOf(ie)<0&&(pe[ie]=an[ie]);if(an!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,ie=Object.getOwnPropertySymbols(an);ee<ie.length;ee++)de.indexOf(ie[ee])<0&&Object.prototype.propertyIsEnumerable.call(an,ie[ee])&&(pe[ie[ee]]=an[ie[ee]]);return pe};function ut(an){return(an||"").split("")}const at=an=>{const{index:de,prefixCls:pe,separator:ie}=an,ee=typeof ie=="function"?ie(de):ie;return ee?x.createElement("span",{className:`${pe}-separator`},ee):null};var bt=x.forwardRef((an,de)=>{const{prefixCls:pe,length:ie=6,size:ee,defaultValue:se,value:le,onChange:Be,formatter:$e,separator:st,variant:gt,disabled:mt,status:Et,autoFocus:Lt,mask:jt,type:Ct,onInput:lt,inputMode:$t}=an,Wt=Ge(an,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:wn,direction:ln}=x.useContext(Je.E_),tn=wn("otp",pe),Qn=(0,ve.Z)(Wt,{aria:!0,data:!0,attr:!0}),[En,Rt,un]=ke(tn),Dn=(0,Fe.Z)(Vr=>ee!=null?ee:Vr),Wn=x.useContext(ze.aM),It=(0,Me.F)(Wn.status,Et),Gt=x.useMemo(()=>Object.assign(Object.assign({},Wn),{status:It,hasFeedback:!1,feedbackIcon:null}),[Wn,It]),sn=x.useRef(null),yn=x.useRef({});x.useImperativeHandle(de,()=>({focus:()=>{var Vr;(Vr=yn.current[0])===null||Vr===void 0||Vr.focus()},blur:()=>{var Vr;for(let pi=0;pi<ie;pi+=1)(Vr=yn.current[pi])===null||Vr===void 0||Vr.blur()},nativeElement:sn.current}));const Yn=Vr=>$e?$e(Vr):Vr,[Br,ti]=x.useState(()=>ut(Yn(se||"")));x.useEffect(()=>{le!==void 0&&ti(ut(le))},[le]);const Ur=(0,Oe.Z)(Vr=>{ti(Vr),lt&&lt(Vr),Be&&Vr.length===ie&&Vr.every(pi=>pi)&&Vr.some((pi,Lr)=>Br[Lr]!==pi)&&Be(Vr.join(""))}),Sr=(0,Oe.Z)((Vr,pi)=>{let Lr=(0,oe.Z)(Br);for(let Xn=0;Xn<Vr;Xn+=1)Lr[Xn]||(Lr[Xn]="");pi.length<=1?Lr[Vr]=pi:Lr=Lr.slice(0,Vr).concat(ut(pi)),Lr=Lr.slice(0,ie);for(let Xn=Lr.length-1;Xn>=0&&!Lr[Xn];Xn-=1)Lr.pop();const tr=Yn(Lr.map(Xn=>Xn||" ").join(""));return Lr=ut(tr).map((Xn,mr)=>Xn===" "&&!Lr[mr]?Lr[mr]:Xn),Lr}),Jn=(Vr,pi)=>{var Lr;const tr=Sr(Vr,pi),Xn=Math.min(Vr+pi.length,ie-1);Xn!==Vr&&tr[Vr]!==void 0&&((Lr=yn.current[Xn])===null||Lr===void 0||Lr.focus()),Ur(tr)},gr=Vr=>{var pi;(pi=yn.current[Vr])===null||pi===void 0||pi.focus()},kr={variant:gt,disabled:mt,status:It,mask:jt,type:Ct,inputMode:$t};return En(x.createElement("div",Object.assign({},Qn,{ref:sn,className:Le()(tn,{[`${tn}-sm`]:Dn==="small",[`${tn}-lg`]:Dn==="large",[`${tn}-rtl`]:ln==="rtl"},un,Rt)}),x.createElement(ze.aM.Provider,{value:Gt},Array.from({length:ie}).map((Vr,pi)=>{const Lr=`otp-${pi}`,tr=Br[pi]||"";return x.createElement(x.Fragment,{key:Lr},x.createElement(et,Object.assign({ref:Xn=>{yn.current[pi]=Xn},index:pi,size:Dn,htmlSize:1,className:`${tn}-input`,onChange:Jn,value:tr,onActiveChange:gr,autoFocus:pi===0&&Lt},kr)),pi<ie-1&&x.createElement(at,{separator:st,index:pi,prefixCls:tn}))}))))}),He=ae(73331),pt=ae(15277),Ne=ae(2738),je=ae(8654),Ot=ae(2171),it=ae(23826),ht=function(an,de){var pe={};for(var ie in an)Object.prototype.hasOwnProperty.call(an,ie)&&de.indexOf(ie)<0&&(pe[ie]=an[ie]);if(an!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,ie=Object.getOwnPropertySymbols(an);ee<ie.length;ee++)de.indexOf(ie[ee])<0&&Object.prototype.propertyIsEnumerable.call(an,ie[ee])&&(pe[ie[ee]]=an[ie[ee]]);return pe};const Bt=an=>an?x.createElement(pt.Z,null):x.createElement(He.Z,null),We={click:"onClick",hover:"onMouseOver"};var ot=x.forwardRef((an,de)=>{const{disabled:pe,action:ie="click",visibilityToggle:ee=!0,iconRender:se=Bt}=an,le=x.useContext(Ot.Z),Be=pe!=null?pe:le,$e=typeof ee=="object"&&ee.visible!==void 0,[st,gt]=(0,x.useState)(()=>$e?ee.visible:!1),mt=(0,x.useRef)(null);x.useEffect(()=>{$e&&gt(ee.visible)},[$e,ee]);const Et=(0,it.Z)(mt),Lt=()=>{var Dn;if(Be)return;st&&Et();const Wn=!st;gt(Wn),typeof ee=="object"&&((Dn=ee.onVisibleChange)===null||Dn===void 0||Dn.call(ee,Wn))},jt=Dn=>{const Wn=We[ie]||"",It=se(st),Gt={[Wn]:Lt,className:`${Dn}-icon`,key:"passwordIcon",onMouseDown:sn=>{sn.preventDefault()},onMouseUp:sn=>{sn.preventDefault()}};return x.cloneElement(x.isValidElement(It)?It:x.createElement("span",null,It),Gt)},{className:Ct,prefixCls:lt,inputPrefixCls:$t,size:Wt}=an,wn=ht(an,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:ln}=x.useContext(Je.E_),tn=ln("input",$t),Qn=ln("input-password",lt),En=ee&&jt(Qn),Rt=Le()(Qn,Ct,{[`${Qn}-${Wt}`]:!!Wt}),un=Object.assign(Object.assign({},(0,Ne.Z)(wn,["suffix","iconRender","visibilityToggle"])),{type:st?"text":"password",className:Rt,prefixCls:tn,suffix:En});return Wt&&(un.size=Wt),x.createElement(Ce.Z,Object.assign({ref:(0,je.sQ)(de,mt)},un))}),Zt=ae(47472),zt=ae(22703),tt=ae(7939),Nt=ae(70045),Ut=function(an,de){var pe={};for(var ie in an)Object.prototype.hasOwnProperty.call(an,ie)&&de.indexOf(ie)<0&&(pe[ie]=an[ie]);if(an!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,ie=Object.getOwnPropertySymbols(an);ee<ie.length;ee++)de.indexOf(ie[ee])<0&&Object.prototype.propertyIsEnumerable.call(an,ie[ee])&&(pe[ie[ee]]=an[ie[ee]]);return pe},kt=x.forwardRef((an,de)=>{const{prefixCls:pe,inputPrefixCls:ie,className:ee,size:se,suffix:le,enterButton:Be=!1,addonAfter:$e,loading:st,disabled:gt,onSearch:mt,onChange:Et,onCompositionStart:Lt,onCompositionEnd:jt}=an,Ct=Ut(an,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:lt,direction:$t}=x.useContext(Je.E_),Wt=x.useRef(!1),wn=lt("input-search",pe),ln=lt("input",ie),{compactSize:tn}=(0,Nt.ri)(wn,$t),Qn=(0,Fe.Z)(Jn=>{var gr;return(gr=se!=null?se:tn)!==null&&gr!==void 0?gr:Jn}),En=x.useRef(null),Rt=Jn=>{Jn!=null&&Jn.target&&Jn.type==="click"&&mt&&mt(Jn.target.value,Jn,{source:"clear"}),Et==null||Et(Jn)},un=Jn=>{var gr;document.activeElement===((gr=En.current)===null||gr===void 0?void 0:gr.input)&&Jn.preventDefault()},Dn=Jn=>{var gr,kr;mt&&mt((kr=(gr=En.current)===null||gr===void 0?void 0:gr.input)===null||kr===void 0?void 0:kr.value,Jn,{source:"input"})},Wn=Jn=>{Wt.current||st||Dn(Jn)},It=typeof Be=="boolean"?x.createElement(Zt.Z,null):null,Gt=`${wn}-button`;let sn;const yn=Be||{},Yn=yn.type&&yn.type.__ANT_BUTTON===!0;Yn||yn.type==="button"?sn=(0,zt.Tm)(yn,Object.assign({onMouseDown:un,onClick:Jn=>{var gr,kr;(kr=(gr=yn==null?void 0:yn.props)===null||gr===void 0?void 0:gr.onClick)===null||kr===void 0||kr.call(gr,Jn),Dn(Jn)},key:"enterButton"},Yn?{className:Gt,size:Qn}:{})):sn=x.createElement(tt.ZP,{className:Gt,type:Be?"primary":void 0,size:Qn,disabled:gt,key:"enterButton",onMouseDown:un,onClick:Dn,loading:st,icon:It},Be),$e&&(sn=[sn,(0,zt.Tm)($e,{key:"addonAfter"})]);const Br=Le()(wn,{[`${wn}-rtl`]:$t==="rtl",[`${wn}-${Qn}`]:!!Qn,[`${wn}-with-button`]:!!Be},ee),ti=Object.assign(Object.assign({},Ct),{className:Br,prefixCls:ln,type:"search"}),Ur=Jn=>{Wt.current=!0,Lt==null||Lt(Jn)},Sr=Jn=>{Wt.current=!1,jt==null||jt(Jn)};return x.createElement(Ce.Z,Object.assign({ref:(0,je.sQ)(En,de),onPressEnter:Wn},ti,{size:Qn,onCompositionStart:Ur,onCompositionEnd:Sr,addonAfter:sn,suffix:le,onChange:Rt,disabled:gt}))}),mn=ae(79809);const _t=Ce.Z;_t.Group=fe,_t.Search=kt,_t.TextArea=mn.Z,_t.Password=ot,_t.OTP=bt;var Cn=_t},24303:function(Vn,Mt,ae){"use strict";ae.d(Mt,{D:function(){return Ge},Z:function(){return ft}});var x=ae(59301),ct=ae(54476),Le={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"},Je=Le,ze=ae(7657),Se=function(He,pt){return x.createElement(ze.Z,(0,ct.Z)({},He,{ref:pt,icon:Je}))},Ue=x.forwardRef(Se),fe=Ue,Ce=ae(33853),oe=ae(38819),Oe=ae(92310),ve=ae.n(Oe),Me=ae(2738),Fe=ae(48755),Te=ae(6989),ye=ae(36237),xe=ae(48923),Ee=ae(16931);const ke=bt=>{const{componentCls:He,siderBg:pt,motionDurationMid:Ne,motionDurationSlow:je,antCls:Ot,triggerHeight:it,triggerColor:ht,triggerBg:Bt,headerHeight:We,zeroTriggerWidth:_e,zeroTriggerHeight:ot,borderRadiusLG:Zt,lightSiderBg:zt,lightTriggerColor:tt,lightTriggerBg:Nt,bodyBg:Ut}=bt;return{[He]:{position:"relative",minWidth:0,background:pt,transition:`all ${Ne}, background 0s`,"&-has-trigger":{paddingBottom:it},"&-right":{order:1},[`${He}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${Ot}-menu${Ot}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${He}-children`]:{overflow:"hidden"},[`${He}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:it,color:ht,lineHeight:(0,ye.unit)(it),textAlign:"center",background:Bt,cursor:"pointer",transition:`all ${Ne}`},[`${He}-zero-width-trigger`]:{position:"absolute",top:We,insetInlineEnd:bt.calc(_e).mul(-1).equal(),zIndex:1,width:_e,height:ot,color:ht,fontSize:bt.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:pt,borderRadius:`0 ${(0,ye.unit)(Zt)} ${(0,ye.unit)(Zt)} 0`,cursor:"pointer",transition:`background ${je} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${je}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:bt.calc(_e).mul(-1).equal(),borderRadius:`${(0,ye.unit)(Zt)} 0 0 ${(0,ye.unit)(Zt)}`}},"&-light":{background:zt,[`${He}-trigger`]:{color:tt,background:Nt},[`${He}-zero-width-trigger`]:{color:tt,background:Nt,border:`1px solid ${Ut}`,borderInlineStart:0}}}}};var Ke=(0,Ee.I$)(["Layout","Sider"],bt=>[ke(bt)],xe.eh,{deprecatedTokens:xe.jn}),Qe=function(bt,He){var pt={};for(var Ne in bt)Object.prototype.hasOwnProperty.call(bt,Ne)&&He.indexOf(Ne)<0&&(pt[Ne]=bt[Ne]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ne=Object.getOwnPropertySymbols(bt);je<Ne.length;je++)He.indexOf(Ne[je])<0&&Object.prototype.propertyIsEnumerable.call(bt,Ne[je])&&(pt[Ne[je]]=bt[Ne[je]]);return pt};const Re={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},et=bt=>!Number.isNaN(Number.parseFloat(bt))&&isFinite(bt),Ge=x.createContext({}),ut=(()=>{let bt=0;return function(){let He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return bt+=1,`${He}${bt}`}})();var ft=x.forwardRef((bt,He)=>{const{prefixCls:pt,className:Ne,trigger:je,children:Ot,defaultCollapsed:it=!1,theme:ht="dark",style:Bt={},collapsible:We=!1,reverseArrow:_e=!1,width:ot=200,collapsedWidth:Zt=80,zeroWidthTriggerStyle:zt,breakpoint:tt,onCollapse:Nt,onBreakpoint:Ut}=bt,pn=Qe(bt,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:kt}=(0,x.useContext)(Te.V),[mn,_t]=(0,x.useState)("collapsed"in bt?bt.collapsed:it),[Cn,an]=(0,x.useState)(!1);(0,x.useEffect)(()=>{"collapsed"in bt&&_t(bt.collapsed)},[bt.collapsed]);const de=(Qn,En)=>{"collapsed"in bt||_t(Qn),Nt==null||Nt(Qn,En)},{getPrefixCls:pe,direction:ie}=(0,x.useContext)(Fe.E_),ee=pe("layout-sider",pt),[se,le,Be]=Ke(ee),$e=(0,x.useRef)(null);$e.current=Qn=>{an(Qn.matches),Ut==null||Ut(Qn.matches),mn!==Qn.matches&&de(Qn.matches,"responsive")},(0,x.useEffect)(()=>{function Qn(Rt){return $e.current(Rt)}let En;if(typeof window!="undefined"){const{matchMedia:Rt}=window;if(Rt&&tt&&tt in Re){En=Rt(`screen and (max-width: ${Re[tt]})`);try{En.addEventListener("change",Qn)}catch(un){En.addListener(Qn)}Qn(En)}}return()=>{try{En==null||En.removeEventListener("change",Qn)}catch(Rt){En==null||En.removeListener(Qn)}}},[tt]),(0,x.useEffect)(()=>{const Qn=ut("ant-sider-");return kt.addSider(Qn),()=>kt.removeSider(Qn)},[]);const st=()=>{de(!mn,"clickTrigger")},gt=(0,Me.Z)(pn,["collapsed"]),mt=mn?Zt:ot,Et=et(mt)?`${mt}px`:String(mt),Lt=parseFloat(String(Zt||0))===0?x.createElement("span",{onClick:st,className:ve()(`${ee}-zero-width-trigger`,`${ee}-zero-width-trigger-${_e?"right":"left"}`),style:zt},je||x.createElement(fe,null)):null,jt=ie==="rtl"==!_e,$t={expanded:jt?x.createElement(oe.Z,null):x.createElement(Ce.Z,null),collapsed:jt?x.createElement(Ce.Z,null):x.createElement(oe.Z,null)}[mn?"collapsed":"expanded"],Wt=je!==null?Lt||x.createElement("div",{className:`${ee}-trigger`,onClick:st,style:{width:Et}},je||$t):null,wn=Object.assign(Object.assign({},Bt),{flex:`0 0 ${Et}`,maxWidth:Et,minWidth:Et,width:Et}),ln=ve()(ee,`${ee}-${ht}`,{[`${ee}-collapsed`]:!!mn,[`${ee}-has-trigger`]:We&&je!==null&&!Lt,[`${ee}-below`]:!!Cn,[`${ee}-zero-width`]:parseFloat(Et)===0},Ne,le,Be),tn=x.useMemo(()=>({siderCollapsed:mn}),[mn]);return se(x.createElement(Ge.Provider,{value:tn},x.createElement("aside",Object.assign({className:ln},gt,{style:wn,ref:He}),x.createElement("div",{className:`${ee}-children`},Ot),We||Cn&&Lt?Wt:null)))})},6989:function(Vn,Mt,ae){"use strict";ae.d(Mt,{V:function(){return ct}});var x=ae(59301);const ct=x.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(Vn,Mt,ae){"use strict";ae.d(Mt,{eh:function(){return Je},jn:function(){return ze}});var x=ae(36237),ct=ae(16931);const Le=Se=>{const{antCls:Ue,componentCls:fe,colorText:Ce,footerBg:oe,headerHeight:Oe,headerPadding:ve,headerColor:Me,footerPadding:Fe,fontSize:Te,bodyBg:ye,headerBg:xe}=Se;return{[fe]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:ye,"&, *":{boxSizing:"border-box"},[`&${fe}-has-sider`]:{flexDirection:"row",[`> ${fe}, > ${fe}-content`]:{width:0}},[`${fe}-header, &${fe}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${fe}-header`]:{height:Oe,padding:ve,color:Me,lineHeight:(0,x.unit)(Oe),background:xe,[`${Ue}-menu`]:{lineHeight:"inherit"}},[`${fe}-footer`]:{padding:Fe,color:Ce,fontSize:Te,background:oe},[`${fe}-content`]:{flex:"auto",color:Ce,minHeight:0}}},Je=Se=>{const{colorBgLayout:Ue,controlHeight:fe,controlHeightLG:Ce,colorText:oe,controlHeightSM:Oe,marginXXS:ve,colorTextLightSolid:Me,colorBgContainer:Fe}=Se,Te=Ce*1.25;return{colorBgHeader:"#001529",colorBgBody:Ue,colorBgTrigger:"#002140",bodyBg:Ue,headerBg:"#001529",headerHeight:fe*2,headerPadding:`0 ${Te}px`,headerColor:oe,footerPadding:`${Oe}px ${Te}px`,footerBg:Ue,siderBg:"#001529",triggerHeight:Ce+ve*2,triggerBg:"#002140",triggerColor:Me,zeroTriggerWidth:Ce,zeroTriggerHeight:Ce,lightSiderBg:Fe,lightTriggerBg:Fe,lightTriggerColor:oe}},ze=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Mt.ZP=(0,ct.I$)("Layout",Se=>[Le(Se)],Je,{deprecatedTokens:ze})},78857:function(Vn,Mt,ae){"use strict";ae.d(Mt,{J:function(){return Se}});var x=ae(59301),ct=ae(8654),Le=ae(62487),Je=function(Ue,fe){var Ce={};for(var oe in Ue)Object.prototype.hasOwnProperty.call(Ue,oe)&&fe.indexOf(oe)<0&&(Ce[oe]=Ue[oe]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,oe=Object.getOwnPropertySymbols(Ue);Oe<oe.length;Oe++)fe.indexOf(oe[Oe])<0&&Object.prototype.propertyIsEnumerable.call(Ue,oe[Oe])&&(Ce[oe[Oe]]=Ue[oe[Oe]]);return Ce};const ze=x.createContext(null),Se=x.forwardRef((Ue,fe)=>{const{children:Ce}=Ue,oe=Je(Ue,["children"]),Oe=x.useContext(ze),ve=x.useMemo(()=>Object.assign(Object.assign({},Oe),oe),[Oe,oe.prefixCls,oe.mode,oe.selectable,oe.rootClassName]),Me=(0,ct.t4)(Ce),Fe=(0,ct.x1)(fe,Me?(0,ct.C4)(Ce):null);return x.createElement(ze.Provider,{value:ve},x.createElement(Le.Z,{space:!0},Me?x.cloneElement(Ce,{ref:Fe}):Ce))});Mt.Z=ze},93041:function(Vn,Mt,ae){"use strict";ae.d(Mt,{default:function(){return se}});var x=ae(59301),ct=ae(28321),Le=ae(24303),Je=ae(18785),ze=ae(92310),Se=ae.n(ze),Ue=ae(6089),fe=ae(2738),Ce=ae(86641),oe=ae(22703),Oe=ae(48755),ve=ae(83397),Fe=(0,x.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Te=function(le,Be){var $e={};for(var st in le)Object.prototype.hasOwnProperty.call(le,st)&&Be.indexOf(st)<0&&($e[st]=le[st]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,st=Object.getOwnPropertySymbols(le);gt<st.length;gt++)Be.indexOf(st[gt])<0&&Object.prototype.propertyIsEnumerable.call(le,st[gt])&&($e[st[gt]]=le[st[gt]]);return $e},xe=le=>{const{prefixCls:Be,className:$e,dashed:st}=le,gt=Te(le,["prefixCls","className","dashed"]),{getPrefixCls:mt}=x.useContext(Oe.E_),Et=mt("menu",Be),Lt=Se()({[`${Et}-item-divider-dashed`]:!!st},$e);return x.createElement(ct.iz,Object.assign({className:Lt},gt))},Ee=ae(11592),ke=ae(25399),Qe=le=>{var Be;const{className:$e,children:st,icon:gt,title:mt,danger:Et,extra:Lt}=le,{prefixCls:jt,firstLevel:Ct,direction:lt,disableMenuItemTitleTooltip:$t,inlineCollapsed:Wt}=x.useContext(Fe),wn=un=>{const Dn=st==null?void 0:st[0],Wn=x.createElement("span",{className:Se()(`${jt}-title-content`,{[`${jt}-title-content-with-extra`]:!!Lt||Lt===0})},st);return(!gt||x.isValidElement(st)&&st.type==="span")&&st&&un&&Ct&&typeof Dn=="string"?x.createElement("div",{className:`${jt}-inline-collapsed-noicon`},Dn.charAt(0)):Wn},{siderCollapsed:ln}=x.useContext(Le.D);let tn=mt;typeof mt=="undefined"?tn=Ct?st:"":mt===!1&&(tn="");const Qn={title:tn};!ln&&!Wt&&(Qn.title=null,Qn.open=!1);const En=(0,Ee.Z)(st).length;let Rt=x.createElement(ct.ck,Object.assign({},(0,fe.Z)(le,["title","icon","danger"]),{className:Se()({[`${jt}-item-danger`]:Et,[`${jt}-item-only-child`]:(gt?En+1:En)===1},$e),title:typeof mt=="string"?mt:void 0}),(0,oe.Tm)(gt,{className:Se()(x.isValidElement(gt)?(Be=gt.props)===null||Be===void 0?void 0:Be.className:"",`${jt}-item-icon`)}),wn(Wt));return $t||(Rt=x.createElement(ke.Z,Object.assign({},Qn,{placement:lt==="rtl"?"left":"right",classNames:{root:`${jt}-inline-collapsed-tooltip`}}),Rt)),Rt},Re=ae(78857),et=ae(36237),Ge=ae(17835),ut=ae(63356),at=ae(34961),ft=ae(46e3),bt=ae(34925),He=ae(16931),pt=ae(51636),je=le=>{const{componentCls:Be,motionDurationSlow:$e,horizontalLineHeight:st,colorSplit:gt,lineWidth:mt,lineType:Et,itemPaddingInline:Lt}=le;return{[`${Be}-horizontal`]:{lineHeight:st,border:0,borderBottom:`${(0,et.unit)(mt)} ${Et} ${gt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Be}-item, ${Be}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Lt},[`> ${Be}-item:hover,
> ${Be}-item-active,
> ${Be}-submenu ${Be}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Be}-item, ${Be}-submenu-title`]:{transition:[`border-color ${$e}`,`background ${$e}`].join(",")},[`${Be}-submenu-arrow`]:{display:"none"}}}},it=le=>{let{componentCls:Be,menuArrowOffset:$e,calc:st}=le;return{[`${Be}-rtl`]:{direction:"rtl"},[`${Be}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Be}-rtl${Be}-vertical,
${Be}-submenu-rtl ${Be}-vertical`]:{[`${Be}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,et.unit)(st($e).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,et.unit)($e)})`}}}}};const ht=le=>Object.assign({},(0,ut.oN)(le));var We=(le,Be)=>{const{componentCls:$e,itemColor:st,itemSelectedColor:gt,subMenuItemSelectedColor:mt,groupTitleColor:Et,itemBg:Lt,subMenuItemBg:jt,itemSelectedBg:Ct,activeBarHeight:lt,activeBarWidth:$t,activeBarBorderWidth:Wt,motionDurationSlow:wn,motionEaseInOut:ln,motionEaseOut:tn,itemPaddingInline:Qn,motionDurationMid:En,itemHoverColor:Rt,lineType:un,colorSplit:Dn,itemDisabledColor:Wn,dangerItemColor:It,dangerItemHoverColor:Gt,dangerItemSelectedColor:sn,dangerItemActiveBg:yn,dangerItemSelectedBg:Yn,popupBg:Br,itemHoverBg:ti,itemActiveBg:Ur,menuSubMenuBg:Sr,horizontalItemSelectedColor:Jn,horizontalItemSelectedBg:gr,horizontalItemBorderRadius:kr,horizontalItemHoverBg:Vr}=le;return{[`${$e}-${Be}, ${$e}-${Be} > ${$e}`]:{color:st,background:Lt,[`&${$e}-root:focus-visible`]:Object.assign({},ht(le)),[`${$e}-item`]:{"&-group-title, &-extra":{color:Et}},[`${$e}-submenu-selected > ${$e}-submenu-title`]:{color:mt},[`${$e}-item, ${$e}-submenu-title`]:{color:st,[`&:not(${$e}-item-disabled):focus-visible`]:Object.assign({},ht(le))},[`${$e}-item-disabled, ${$e}-submenu-disabled`]:{color:`${Wn} !important`},[`${$e}-item:not(${$e}-item-selected):not(${$e}-submenu-selected)`]:{[`&:hover, > ${$e}-submenu-title:hover`]:{color:Rt}},[`&:not(${$e}-horizontal)`]:{[`${$e}-item:not(${$e}-item-selected)`]:{"&:hover":{backgroundColor:ti},"&:active":{backgroundColor:Ur}},[`${$e}-submenu-title`]:{"&:hover":{backgroundColor:ti},"&:active":{backgroundColor:Ur}}},[`${$e}-item-danger`]:{color:It,[`&${$e}-item:hover`]:{[`&:not(${$e}-item-selected):not(${$e}-submenu-selected)`]:{color:Gt}},[`&${$e}-item:active`]:{background:yn}},[`${$e}-item a`]:{"&, &:hover":{color:"inherit"}},[`${$e}-item-selected`]:{color:gt,[`&${$e}-item-danger`]:{color:sn},"a, a:hover":{color:"inherit"}},[`& ${$e}-item-selected`]:{backgroundColor:Ct,[`&${$e}-item-danger`]:{backgroundColor:Yn}},[`&${$e}-submenu > ${$e}`]:{backgroundColor:Sr},[`&${$e}-popup > ${$e}`]:{backgroundColor:Br},[`&${$e}-submenu-popup > ${$e}`]:{backgroundColor:Br},[`&${$e}-horizontal`]:Object.assign(Object.assign({},Be==="dark"?{borderBottom:0}:{}),{[`> ${$e}-item, > ${$e}-submenu`]:{top:Wt,marginTop:le.calc(Wt).mul(-1).equal(),marginBottom:0,borderRadius:kr,"&::after":{position:"absolute",insetInline:Qn,bottom:0,borderBottom:`${(0,et.unit)(lt)} solid transparent`,transition:`border-color ${wn} ${ln}`,content:'""'},"&:hover, &-active, &-open":{background:Vr,"&::after":{borderBottomWidth:lt,borderBottomColor:Jn}},"&-selected":{color:Jn,backgroundColor:gr,"&:hover":{backgroundColor:gr},"&::after":{borderBottomWidth:lt,borderBottomColor:Jn}}}}),[`&${$e}-root`]:{[`&${$e}-inline, &${$e}-vertical`]:{borderInlineEnd:`${(0,et.unit)(Wt)} ${un} ${Dn}`}},[`&${$e}-inline`]:{[`${$e}-sub${$e}-inline`]:{background:jt},[`${$e}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,et.unit)($t)} solid ${gt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${En} ${tn}`,`opacity ${En} ${tn}`].join(","),content:'""'},[`&${$e}-item-danger`]:{"&::after":{borderInlineEndColor:sn}}},[`${$e}-selected, ${$e}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${En} ${ln}`,`opacity ${En} ${ln}`].join(",")}}}}}};const _e=le=>{const{componentCls:Be,itemHeight:$e,itemMarginInline:st,padding:gt,menuArrowSize:mt,marginXS:Et,itemMarginBlock:Lt,itemWidth:jt,itemPaddingInline:Ct}=le,lt=le.calc(mt).add(gt).add(Et).equal();return{[`${Be}-item`]:{position:"relative",overflow:"hidden"},[`${Be}-item, ${Be}-submenu-title`]:{height:$e,lineHeight:(0,et.unit)($e),paddingInline:Ct,overflow:"hidden",textOverflow:"ellipsis",marginInline:st,marginBlock:Lt,width:jt},[`> ${Be}-item,
> ${Be}-submenu > ${Be}-submenu-title`]:{height:$e,lineHeight:(0,et.unit)($e)},[`${Be}-item-group-list ${Be}-submenu-title,
${Be}-submenu-title`]:{paddingInlineEnd:lt}}};var Zt=le=>{const{componentCls:Be,iconCls:$e,itemHeight:st,colorTextLightSolid:gt,dropdownWidth:mt,controlHeightLG:Et,motionEaseOut:Lt,paddingXL:jt,itemMarginInline:Ct,fontSizeLG:lt,motionDurationFast:$t,motionDurationSlow:Wt,paddingXS:wn,boxShadowSecondary:ln,collapsedWidth:tn,collapsedIconSize:Qn}=le,En={height:st,lineHeight:(0,et.unit)(st),listStylePosition:"inside",listStyleType:"disc"};return[{[Be]:{"&-inline, &-vertical":Object.assign({[`&${Be}-root`]:{boxShadow:"none"}},_e(le))},[`${Be}-submenu-popup`]:{[`${Be}-vertical`]:Object.assign(Object.assign({},_e(le)),{boxShadow:ln})}},{[`${Be}-submenu-popup ${Be}-vertical${Be}-sub`]:{minWidth:mt,maxHeight:`calc(100vh - ${(0,et.unit)(le.calc(Et).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Be}-inline`]:{width:"100%",[`&${Be}-root`]:{[`${Be}-item, ${Be}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Wt}`,`background ${Wt}`,`padding ${$t} ${Lt}`].join(","),[`> ${Be}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Be}-sub${Be}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Be}-submenu > ${Be}-submenu-title`]:En,[`& ${Be}-item-group-title`]:{paddingInlineStart:jt}},[`${Be}-item`]:En}},{[`${Be}-inline-collapsed`]:{width:tn,[`&${Be}-root`]:{[`${Be}-item, ${Be}-submenu ${Be}-submenu-title`]:{[`> ${Be}-inline-collapsed-noicon`]:{fontSize:lt,textAlign:"center"}}},[`> ${Be}-item,
> ${Be}-item-group > ${Be}-item-group-list > ${Be}-item,
> ${Be}-item-group > ${Be}-item-group-list > ${Be}-submenu > ${Be}-submenu-title,
> ${Be}-submenu > ${Be}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,et.unit)(le.calc(Qn).div(2).equal())} - ${(0,et.unit)(Ct)})`,textOverflow:"clip",[`
${Be}-submenu-arrow,
${Be}-submenu-expand-icon
`]:{opacity:0},[`${Be}-item-icon, ${$e}`]:{margin:0,fontSize:Qn,lineHeight:(0,et.unit)(st),"+ span":{display:"inline-block",opacity:0}}},[`${Be}-item-icon, ${$e}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Be}-item-icon, ${$e}`]:{display:"none"},"a, a:hover":{color:gt}},[`${Be}-item-group-title`]:Object.assign(Object.assign({},ut.vS),{paddingInline:wn})}}]};const zt=le=>{const{componentCls:Be,motionDurationSlow:$e,motionDurationMid:st,motionEaseInOut:gt,motionEaseOut:mt,iconCls:Et,iconSize:Lt,iconMarginInlineEnd:jt}=le;return{[`${Be}-item, ${Be}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${$e}`,`background ${$e}`,`padding calc(${$e} + 0.1s) ${gt}`].join(","),[`${Be}-item-icon, ${Et}`]:{minWidth:Lt,fontSize:Lt,transition:[`font-size ${st} ${mt}`,`margin ${$e} ${gt}`,`color ${$e}`].join(","),"+ span":{marginInlineStart:jt,opacity:1,transition:[`opacity ${$e} ${gt}`,`margin ${$e}`,`color ${$e}`].join(",")}},[`${Be}-item-icon`]:Object.assign({},(0,ut.Ro)()),[`&${Be}-item-only-child`]:{[`> ${Et}, > ${Be}-item-icon`]:{marginInlineEnd:0}}},[`${Be}-item-disabled, ${Be}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${Be}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},tt=le=>{const{componentCls:Be,motionDurationSlow:$e,motionEaseInOut:st,borderRadius:gt,menuArrowSize:mt,menuArrowOffset:Et}=le;return{[`${Be}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:le.margin,width:mt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${$e} ${st}, opacity ${$e}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:le.calc(mt).mul(.6).equal(),height:le.calc(mt).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:gt,transition:[`background ${$e} ${st}`,`transform ${$e} ${st}`,`top ${$e} ${st}`,`color ${$e} ${st}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,et.unit)(le.calc(Et).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,et.unit)(Et)})`}}}}},Nt=le=>{const{antCls:Be,componentCls:$e,fontSize:st,motionDurationSlow:gt,motionDurationMid:mt,motionEaseInOut:Et,paddingXS:Lt,padding:jt,colorSplit:Ct,lineWidth:lt,zIndexPopup:$t,borderRadiusLG:Wt,subMenuItemBorderRadius:wn,menuArrowSize:ln,menuArrowOffset:tn,lineType:Qn,groupTitleLineHeight:En,groupTitleFontSize:Rt}=le;return[{"":{[$e]:Object.assign(Object.assign({},(0,ut.dF)()),{"&-hidden":{display:"none"}})},[`${$e}-submenu-hidden`]:{display:"none"}},{[$e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ut.Wf)(le)),(0,ut.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:st,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${gt} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${$e}-item`]:{flex:"none"}},[`${$e}-item, ${$e}-submenu, ${$e}-submenu-title`]:{borderRadius:le.itemBorderRadius},[`${$e}-item-group-title`]:{padding:`${(0,et.unit)(Lt)} ${(0,et.unit)(jt)}`,fontSize:Rt,lineHeight:En,transition:`all ${gt}`},[`&-horizontal ${$e}-submenu`]:{transition:[`border-color ${gt} ${Et}`,`background ${gt} ${Et}`].join(",")},[`${$e}-submenu, ${$e}-submenu-inline`]:{transition:[`border-color ${gt} ${Et}`,`background ${gt} ${Et}`,`padding ${mt} ${Et}`].join(",")},[`${$e}-submenu ${$e}-sub`]:{cursor:"initial",transition:[`background ${gt} ${Et}`,`padding ${gt} ${Et}`].join(",")},[`${$e}-title-content`]:{transition:`color ${gt}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${Be}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${$e}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:le.padding}},[`${$e}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${$e}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Ct,borderStyle:Qn,borderWidth:0,borderTopWidth:lt,marginBlock:lt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),zt(le)),{[`${$e}-item-group`]:{[`${$e}-item-group-list`]:{margin:0,padding:0,[`${$e}-item, ${$e}-submenu-title`]:{paddingInline:`${(0,et.unit)(le.calc(st).mul(2).equal())} ${(0,et.unit)(jt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:$t,borderRadius:Wt,boxShadow:"none",transformOrigin:"0 0",[`&${$e}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${$e}`]:Object.assign(Object.assign(Object.assign({borderRadius:Wt},zt(le)),tt(le)),{[`${$e}-item, ${$e}-submenu > ${$e}-submenu-title`]:{borderRadius:wn},[`${$e}-submenu-title::after`]:{transition:`transform ${gt} ${Et}`}})},"\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:le.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:le.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:le.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:le.paddingXS}}}),tt(le)),{[`&-inline-collapsed ${$e}-submenu-arrow,
&-inline ${$e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,et.unit)(tn)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,et.unit)(le.calc(tn).mul(-1).equal())})`}},[`${$e}-submenu-open${$e}-submenu-inline > ${$e}-submenu-title > ${$e}-submenu-arrow`]:{transform:`translateY(${(0,et.unit)(le.calc(ln).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,et.unit)(le.calc(tn).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,et.unit)(tn)})`}}})},{[`${Be}-layout-header`]:{[$e]:{lineHeight:"inherit"}}}]},Ut=le=>{var Be,$e,st;const{colorPrimary:gt,colorError:mt,colorTextDisabled:Et,colorErrorBg:Lt,colorText:jt,colorTextDescription:Ct,colorBgContainer:lt,colorFillAlter:$t,colorFillContent:Wt,lineWidth:wn,lineWidthBold:ln,controlItemBgActive:tn,colorBgTextHover:Qn,controlHeightLG:En,lineHeight:Rt,colorBgElevated:un,marginXXS:Dn,padding:Wn,fontSize:It,controlHeightSM:Gt,fontSizeLG:sn,colorTextLightSolid:yn,colorErrorHover:Yn}=le,Br=(Be=le.activeBarWidth)!==null&&Be!==void 0?Be:0,ti=($e=le.activeBarBorderWidth)!==null&&$e!==void 0?$e:wn,Ur=(st=le.itemMarginInline)!==null&&st!==void 0?st:le.marginXXS,Sr=new Ge.FastColor(yn).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:le.zIndexPopupBase+50,radiusItem:le.borderRadiusLG,itemBorderRadius:le.borderRadiusLG,radiusSubMenuItem:le.borderRadiusSM,subMenuItemBorderRadius:le.borderRadiusSM,colorItemText:jt,itemColor:jt,colorItemTextHover:jt,itemHoverColor:jt,colorItemTextHoverHorizontal:gt,horizontalItemHoverColor:gt,colorGroupTitle:Ct,groupTitleColor:Ct,colorItemTextSelected:gt,itemSelectedColor:gt,subMenuItemSelectedColor:gt,colorItemTextSelectedHorizontal:gt,horizontalItemSelectedColor:gt,colorItemBg:lt,itemBg:lt,colorItemBgHover:Qn,itemHoverBg:Qn,colorItemBgActive:Wt,itemActiveBg:tn,colorSubItemBg:$t,subMenuItemBg:$t,colorItemBgSelected:tn,itemSelectedBg:tn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:Br,colorActiveBarHeight:ln,activeBarHeight:ln,colorActiveBarBorderSize:wn,activeBarBorderWidth:ti,colorItemTextDisabled:Et,itemDisabledColor:Et,colorDangerItemText:mt,dangerItemColor:mt,colorDangerItemTextHover:mt,dangerItemHoverColor:mt,colorDangerItemTextSelected:mt,dangerItemSelectedColor:mt,colorDangerItemBgActive:Lt,dangerItemActiveBg:Lt,colorDangerItemBgSelected:Lt,dangerItemSelectedBg:Lt,itemMarginInline:Ur,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:En,groupTitleLineHeight:Rt,collapsedWidth:En*2,popupBg:un,itemMarginBlock:Dn,itemPaddingInline:Wn,horizontalLineHeight:`${En*1.15}px`,iconSize:It,iconMarginInlineEnd:Gt-It,collapsedIconSize:sn,groupTitleFontSize:It,darkItemDisabledColor:new Ge.FastColor(yn).setA(.25).toRgbString(),darkItemColor:Sr,darkDangerItemColor:mt,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:yn,darkItemSelectedBg:gt,darkDangerItemSelectedBg:mt,darkItemHoverBg:"transparent",darkGroupTitleColor:Sr,darkItemHoverColor:yn,darkDangerItemHoverColor:Yn,darkDangerItemSelectedColor:yn,darkDangerItemActiveBg:mt,itemWidth:Br?`calc(100% + ${ti}px)`:`calc(100% - ${Ur*2}px)`}};var pn=function(le){let Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le,$e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,He.I$)("Menu",gt=>{const{colorBgElevated:mt,controlHeightLG:Et,fontSize:Lt,darkItemColor:jt,darkDangerItemColor:Ct,darkItemBg:lt,darkSubMenuItemBg:$t,darkItemSelectedColor:Wt,darkItemSelectedBg:wn,darkDangerItemSelectedBg:ln,darkItemHoverBg:tn,darkGroupTitleColor:Qn,darkItemHoverColor:En,darkItemDisabledColor:Rt,darkDangerItemHoverColor:un,darkDangerItemSelectedColor:Dn,darkDangerItemActiveBg:Wn,popupBg:It,darkPopupBg:Gt}=gt,sn=gt.calc(Lt).div(7).mul(5).equal(),yn=(0,pt.mergeToken)(gt,{menuArrowSize:sn,menuHorizontalHeight:gt.calc(Et).mul(1.15).equal(),menuArrowOffset:gt.calc(sn).mul(.25).equal(),menuSubMenuBg:mt,calc:gt.calc,popupBg:It}),Yn=(0,pt.mergeToken)(yn,{itemColor:jt,itemHoverColor:En,groupTitleColor:Qn,itemSelectedColor:Wt,subMenuItemSelectedColor:Wt,itemBg:lt,popupBg:Gt,subMenuItemBg:$t,itemActiveBg:"transparent",itemSelectedBg:wn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:tn,itemDisabledColor:Rt,dangerItemColor:Ct,dangerItemHoverColor:un,dangerItemSelectedColor:Dn,dangerItemActiveBg:Wn,dangerItemSelectedBg:ln,menuSubMenuBg:$t,horizontalItemSelectedColor:Wt,horizontalItemSelectedBg:wn});return[Nt(yn),je(yn),Zt(yn),We(yn,"light"),We(Yn,"dark"),it(yn),(0,at.Z)(yn),(0,ft.oN)(yn,"slide-up"),(0,ft.oN)(yn,"slide-down"),(0,bt._y)(yn,"zoom-big")]},Ut,{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"]],injectStyle:$e,unitless:{groupTitleLineHeight:!0}})(le,Be)},kt=ae(75030),_t=le=>{var Be;const{popupClassName:$e,icon:st,title:gt,theme:mt}=le,Et=x.useContext(Fe),{prefixCls:Lt,inlineCollapsed:jt,theme:Ct}=Et,lt=(0,ct.Xl)();let $t;if(!st)$t=jt&&!lt.length&&gt&&typeof gt=="string"?x.createElement("div",{className:`${Lt}-inline-collapsed-noicon`},gt.charAt(0)):x.createElement("span",{className:`${Lt}-title-content`},gt);else{const ln=x.isValidElement(gt)&&gt.type==="span";$t=x.createElement(x.Fragment,null,(0,oe.Tm)(st,{className:Se()(x.isValidElement(st)?(Be=st.props)===null||Be===void 0?void 0:Be.className:"",`${Lt}-item-icon`)}),ln?gt:x.createElement("span",{className:`${Lt}-title-content`},gt))}const Wt=x.useMemo(()=>Object.assign(Object.assign({},Et),{firstLevel:!1}),[Et]),[wn]=(0,kt.Cn)("Menu");return x.createElement(Fe.Provider,{value:Wt},x.createElement(ct.Wd,Object.assign({},(0,fe.Z)(le,["icon"]),{title:$t,popupClassName:Se()(Lt,$e,`${Lt}-${mt||Ct}`),popupStyle:Object.assign({zIndex:wn},le.popupStyle)})))},Cn=function(le,Be){var $e={};for(var st in le)Object.prototype.hasOwnProperty.call(le,st)&&Be.indexOf(st)<0&&($e[st]=le[st]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,st=Object.getOwnPropertySymbols(le);gt<st.length;gt++)Be.indexOf(st[gt])<0&&Object.prototype.propertyIsEnumerable.call(le,st[gt])&&($e[st[gt]]=le[st[gt]]);return $e};function an(le){return le===null||le===!1}const de={item:Qe,submenu:_t,divider:xe};var ie=(0,x.forwardRef)((le,Be)=>{var $e;const st=x.useContext(Re.Z),gt=st||{},{getPrefixCls:mt,getPopupContainer:Et,direction:Lt,menu:jt}=x.useContext(Oe.E_),Ct=mt(),{prefixCls:lt,className:$t,style:Wt,theme:wn="light",expandIcon:ln,_internalDisableMenuItemTitleTooltip:tn,inlineCollapsed:Qn,siderCollapsed:En,rootClassName:Rt,mode:un,selectable:Dn,onClick:Wn,overflowedIndicatorPopupClassName:It}=le,Gt=Cn(le,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),sn=(0,fe.Z)(Gt,["collapsedWidth"]);($e=gt.validator)===null||$e===void 0||$e.call(gt,{mode:un});const yn=(0,Ue.Z)(function(){var Xn;Wn==null||Wn.apply(void 0,arguments),(Xn=gt.onClick)===null||Xn===void 0||Xn.call(gt)}),Yn=gt.mode||un,Br=Dn!=null?Dn:gt.selectable,ti=Qn!=null?Qn:En,Ur={horizontal:{motionName:`${Ct}-slide-up`},inline:(0,Ce.Z)(Ct),other:{motionName:`${Ct}-zoom-big`}},Sr=mt("menu",lt||gt.prefixCls),Jn=(0,ve.Z)(Sr),[gr,kr,Vr]=pn(Sr,Jn,!st),pi=Se()(`${Sr}-${wn}`,jt==null?void 0:jt.className,$t),Lr=x.useMemo(()=>{var Xn,mr;if(typeof ln=="function"||an(ln))return ln||null;if(typeof gt.expandIcon=="function"||an(gt.expandIcon))return gt.expandIcon||null;if(typeof(jt==null?void 0:jt.expandIcon)=="function"||an(jt==null?void 0:jt.expandIcon))return(jt==null?void 0:jt.expandIcon)||null;const Qr=(Xn=ln!=null?ln:gt==null?void 0:gt.expandIcon)!==null&&Xn!==void 0?Xn:jt==null?void 0:jt.expandIcon;return(0,oe.Tm)(Qr,{className:Se()(`${Sr}-submenu-expand-icon`,x.isValidElement(Qr)?(mr=Qr.props)===null||mr===void 0?void 0:mr.className:void 0)})},[ln,gt==null?void 0:gt.expandIcon,jt==null?void 0:jt.expandIcon,Sr]),tr=x.useMemo(()=>({prefixCls:Sr,inlineCollapsed:ti||!1,direction:Lt,firstLevel:!0,theme:wn,mode:Yn,disableMenuItemTitleTooltip:tn}),[Sr,ti,Lt,tn,wn]);return gr(x.createElement(Re.Z.Provider,{value:null},x.createElement(Fe.Provider,{value:tr},x.createElement(ct.ZP,Object.assign({getPopupContainer:Et,overflowedIndicator:x.createElement(Je.Z,null),overflowedIndicatorPopupClassName:Se()(Sr,`${Sr}-${wn}`,It),mode:Yn,selectable:Br,onClick:yn},sn,{inlineCollapsed:ti,style:Object.assign(Object.assign({},jt==null?void 0:jt.style),Wt),className:pi,prefixCls:Sr,direction:Lt,defaultMotions:Ur,expandIcon:Lr,ref:Be,rootClassName:Se()(Rt,kr,gt.rootClassName,Vr,Jn),_internalComponents:de})))))});const ee=(0,x.forwardRef)((le,Be)=>{const $e=(0,x.useRef)(null),st=x.useContext(Le.D);return(0,x.useImperativeHandle)(Be,()=>({menu:$e.current,focus:gt=>{var mt;(mt=$e.current)===null||mt===void 0||mt.focus(gt)}})),x.createElement(ie,Object.assign({ref:$e},le,st))});ee.Item=Qe,ee.SubMenu=_t,ee.Divider=xe,ee.ItemGroup=ct.BW;var se=ee},31709:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return jt}});var x=ae(59301),ct=ae(54476),Le={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"},Je=Le,ze=ae(7657),Se=function(lt,$t){return x.createElement(ze.Z,(0,ct.Z)({},lt,{ref:$t,icon:Je}))},Ue=x.forwardRef(Se),fe=Ue,Ce=ae(49198),oe=ae(33853),Oe=ae(38819),ve=ae(92310),Me=ae.n(ve),Fe=ae(20068),Te=ae(76190),ye=ae(33885),xe=ae(42978),Ee=ae(18929),ke=ae(10228),Ke=ae(26112),Qe=ae(48736),Re=ae(17119),et=[10,20,50,100],Ge=function(lt){var $t=lt.pageSizeOptions,Wt=$t===void 0?et:$t,wn=lt.locale,ln=lt.changeSize,tn=lt.pageSize,Qn=lt.goButton,En=lt.quickGo,Rt=lt.rootPrefixCls,un=lt.disabled,Dn=lt.buildOptionText,Wn=lt.showSizeChanger,It=lt.sizeChangerRender,Gt=x.useState(""),sn=(0,xe.Z)(Gt,2),yn=sn[0],Yn=sn[1],Br=function(){return!yn||Number.isNaN(yn)?void 0:Number(yn)},ti=typeof Dn=="function"?Dn:function(tr){return"".concat(tr," ").concat(wn.items_per_page)},Ur=function(Xn){Yn(Xn.target.value)},Sr=function(Xn){Qn||yn===""||(Yn(""),!(Xn.relatedTarget&&(Xn.relatedTarget.className.indexOf("".concat(Rt,"-item-link"))>=0||Xn.relatedTarget.className.indexOf("".concat(Rt,"-item"))>=0))&&(En==null||En(Br())))},Jn=function(Xn){yn!==""&&(Xn.keyCode===ke.Z.ENTER||Xn.type==="click")&&(Yn(""),En==null||En(Br()))},gr=function(){return Wt.some(function(Xn){return Xn.toString()===tn.toString()})?Wt:Wt.concat([tn]).sort(function(Xn,mr){var Qr=Number.isNaN(Number(Xn))?0:Number(Xn),ii=Number.isNaN(Number(mr))?0:Number(mr);return Qr-ii})},kr="".concat(Rt,"-options");if(!Wn&&!En)return null;var Vr=null,pi=null,Lr=null;return Wn&&It&&(Vr=It({disabled:un,size:tn,onSizeChange:function(Xn){ln==null||ln(Number(Xn))},"aria-label":wn.page_size,className:"".concat(kr,"-size-changer"),options:gr().map(function(tr){return{label:ti(tr),value:tr}})})),En&&(Qn&&(Lr=typeof Qn=="boolean"?x.createElement("button",{type:"button",onClick:Jn,onKeyUp:Jn,disabled:un,className:"".concat(kr,"-quick-jumper-button")},wn.jump_to_confirm):x.createElement("span",{onClick:Jn,onKeyUp:Jn},Qn)),pi=x.createElement("div",{className:"".concat(kr,"-quick-jumper")},wn.jump_to,x.createElement("input",{disabled:un,type:"text",value:yn,onChange:Ur,onKeyUp:Jn,onBlur:Sr,"aria-label":wn.page}),wn.page,Lr)),x.createElement("li",{className:kr},Vr,pi)},ut=Ge,at=function(lt){var $t=lt.rootPrefixCls,Wt=lt.page,wn=lt.active,ln=lt.className,tn=lt.showTitle,Qn=lt.onClick,En=lt.onKeyPress,Rt=lt.itemRender,un="".concat($t,"-item"),Dn=Me()(un,"".concat(un,"-").concat(Wt),(0,Fe.Z)((0,Fe.Z)({},"".concat(un,"-active"),wn),"".concat(un,"-disabled"),!Wt),ln),Wn=function(){Qn(Wt)},It=function(yn){En(yn,Qn,Wt)},Gt=Rt(Wt,"page",x.createElement("a",{rel:"nofollow"},Wt));return Gt?x.createElement("li",{title:tn?String(Wt):null,className:Dn,onClick:Wn,onKeyDown:It,tabIndex:0},Gt):null},ft=at,bt=function(lt,$t,Wt){return Wt};function He(){}function pt(Ct){var lt=Number(Ct);return typeof lt=="number"&&!Number.isNaN(lt)&&isFinite(lt)&&Math.floor(lt)===lt}function Ne(Ct,lt,$t){var Wt=typeof Ct=="undefined"?lt:Ct;return Math.floor(($t-1)/Wt)+1}var je=function(lt){var $t=lt.prefixCls,Wt=$t===void 0?"rc-pagination":$t,wn=lt.selectPrefixCls,ln=wn===void 0?"rc-select":wn,tn=lt.className,Qn=lt.current,En=lt.defaultCurrent,Rt=En===void 0?1:En,un=lt.total,Dn=un===void 0?0:un,Wn=lt.pageSize,It=lt.defaultPageSize,Gt=It===void 0?10:It,sn=lt.onChange,yn=sn===void 0?He:sn,Yn=lt.hideOnSinglePage,Br=lt.align,ti=lt.showPrevNextJumpers,Ur=ti===void 0?!0:ti,Sr=lt.showQuickJumper,Jn=lt.showLessItems,gr=lt.showTitle,kr=gr===void 0?!0:gr,Vr=lt.onShowSizeChange,pi=Vr===void 0?He:Vr,Lr=lt.locale,tr=Lr===void 0?Re.Z:Lr,Xn=lt.style,mr=lt.totalBoundaryShowSizeChanger,Qr=mr===void 0?50:mr,ii=lt.disabled,ai=lt.simple,oi=lt.showTotal,li=lt.showSizeChanger,ji=li===void 0?Dn>Qr:li,ki=lt.sizeChangerRender,or=lt.pageSizeOptions,Hr=lt.itemRender,Bi=Hr===void 0?bt:Hr,Yt=lt.jumpPrevIcon,rn=lt.jumpNextIcon,fn=lt.prevIcon,Pt=lt.nextIcon,en=x.useRef(null),Kt=(0,Ee.Z)(10,{value:Wn,defaultValue:Gt}),gn=(0,xe.Z)(Kt,2),On=gn[0],Nr=gn[1],Yr=(0,Ee.Z)(1,{value:Qn,defaultValue:Rt,postState:function(go){return Math.max(1,Math.min(go,Ne(void 0,On,Dn)))}}),hi=(0,xe.Z)(Yr,2),rr=hi[0],ur=hi[1],sr=x.useState(rr),ni=(0,xe.Z)(sr,2),er=ni[0],Rn=ni[1];(0,x.useEffect)(function(){Rn(rr)},[rr]);var Ar=yn!==He,Ei="current"in lt,Kn=Math.max(1,rr-(Jn?3:5)),vn=Math.min(Ne(void 0,On,Dn),rr+(Jn?3:5));function $n(Mo,go){var Fa=Mo||x.createElement("button",{type:"button","aria-label":go,className:"".concat(Wt,"-item-link")});return typeof Mo=="function"&&(Fa=x.createElement(Mo,(0,ye.Z)({},lt))),Fa}function nr(Mo){var go=Mo.target.value,Fa=Ne(void 0,On,Dn),gs;return go===""?gs=go:Number.isNaN(Number(go))?gs=er:go>=Fa?gs=Fa:gs=Number(go),gs}function fr(Mo){return pt(Mo)&&Mo!==rr&&pt(Dn)&&Dn>0}var zr=Dn>On?Sr:!1;function Ni(Mo){(Mo.keyCode===ke.Z.UP||Mo.keyCode===ke.Z.DOWN)&&Mo.preventDefault()}function gi(Mo){var go=nr(Mo);switch(go!==er&&Rn(go),Mo.keyCode){case ke.Z.ENTER:Si(go);break;case ke.Z.UP:Si(go-1);break;case ke.Z.DOWN:Si(go+1);break;default:break}}function Di(Mo){Si(nr(Mo))}function mi(Mo){var go=Ne(Mo,On,Dn),Fa=rr>go&&go!==0?go:rr;Nr(Mo),Rn(Fa),pi==null||pi(rr,Mo),ur(Fa),yn==null||yn(Fa,Mo)}function Si(Mo){if(fr(Mo)&&!ii){var go=Ne(void 0,On,Dn),Fa=Mo;return Mo>go?Fa=go:Mo<1&&(Fa=1),Fa!==er&&Rn(Fa),ur(Fa),yn==null||yn(Fa,On),Fa}return rr}var wi=rr>1,Ci=rr<Ne(void 0,On,Dn);function yi(){wi&&Si(rr-1)}function Mi(){Ci&&Si(rr+1)}function eo(){Si(Kn)}function mo(){Si(vn)}function Yi(Mo,go){if(Mo.key==="Enter"||Mo.charCode===ke.Z.ENTER||Mo.keyCode===ke.Z.ENTER){for(var Fa=arguments.length,gs=new Array(Fa>2?Fa-2:0),el=2;el<Fa;el++)gs[el-2]=arguments[el];go.apply(void 0,gs)}}function Io(Mo){Yi(Mo,yi)}function Ri(Mo){Yi(Mo,Mi)}function ko(Mo){Yi(Mo,eo)}function uo(Mo){Yi(Mo,mo)}function Vo(Mo){var go=Bi(Mo,"prev",$n(fn,"prev page"));return x.isValidElement(go)?x.cloneElement(go,{disabled:!wi}):go}function wo(Mo){var go=Bi(Mo,"next",$n(Pt,"next page"));return x.isValidElement(go)?x.cloneElement(go,{disabled:!Ci}):go}function to(Mo){(Mo.type==="click"||Mo.keyCode===ke.Z.ENTER)&&Si(er)}var bo=null,Go=(0,Ke.Z)(lt,{aria:!0,data:!0}),Tn=oi&&x.createElement("li",{className:"".concat(Wt,"-total-text")},oi(Dn,[Dn===0?0:(rr-1)*On+1,rr*On>Dn?Dn:rr*On])),Lo=null,Vi=Ne(void 0,On,Dn);if(Yn&&Dn<=On)return null;var Mr=[],Jr={rootPrefixCls:Wt,onClick:Si,onKeyPress:Yi,showTitle:kr,itemRender:Bi,page:-1},ri=rr-1>0?rr-1:0,Wr=rr+1<Vi?rr+1:Vi,Qi=Sr&&Sr.goButton,no=(0,Te.Z)(ai)==="object"?ai.readOnly:!ai,Kr=Qi,ui=null;ai&&(Qi&&(typeof Qi=="boolean"?Kr=x.createElement("button",{type:"button",onClick:to,onKeyUp:to},tr.jump_to_confirm):Kr=x.createElement("span",{onClick:to,onKeyUp:to},Qi),Kr=x.createElement("li",{title:kr?"".concat(tr.jump_to).concat(rr,"/").concat(Vi):null,className:"".concat(Wt,"-simple-pager")},Kr)),ui=x.createElement("li",{title:kr?"".concat(rr,"/").concat(Vi):null,className:"".concat(Wt,"-simple-pager")},no?er:x.createElement("input",{type:"text","aria-label":tr.jump_to,value:er,disabled:ii,onKeyDown:Ni,onKeyUp:gi,onChange:gi,onBlur:Di,size:3}),x.createElement("span",{className:"".concat(Wt,"-slash")},"/"),Vi));var vr=Jn?1:2;if(Vi<=3+vr*2){Vi||Mr.push(x.createElement(ft,(0,ct.Z)({},Jr,{key:"noPager",page:1,className:"".concat(Wt,"-item-disabled")})));for(var qr=1;qr<=Vi;qr+=1)Mr.push(x.createElement(ft,(0,ct.Z)({},Jr,{key:qr,page:qr,active:rr===qr})))}else{var Ao=Jn?tr.prev_3:tr.prev_5,Yo=Jn?tr.next_3:tr.next_5,Do=Bi(Kn,"jump-prev",$n(Yt,"prev page")),ga=Bi(vn,"jump-next",$n(rn,"next page"));Ur&&(bo=Do?x.createElement("li",{title:kr?Ao:null,key:"prev",onClick:eo,tabIndex:0,onKeyDown:ko,className:Me()("".concat(Wt,"-jump-prev"),(0,Fe.Z)({},"".concat(Wt,"-jump-prev-custom-icon"),!!Yt))},Do):null,Lo=ga?x.createElement("li",{title:kr?Yo:null,key:"next",onClick:mo,tabIndex:0,onKeyDown:uo,className:Me()("".concat(Wt,"-jump-next"),(0,Fe.Z)({},"".concat(Wt,"-jump-next-custom-icon"),!!rn))},ga):null);var No=Math.max(1,rr-vr),Jo=Math.min(rr+vr,Vi);rr-1<=vr&&(Jo=1+vr*2),Vi-rr<=vr&&(No=Vi-vr*2);for(var Ro=No;Ro<=Jo;Ro+=1)Mr.push(x.createElement(ft,(0,ct.Z)({},Jr,{key:Ro,page:Ro,active:rr===Ro})));if(rr-1>=vr*2&&rr!==3&&(Mr[0]=x.cloneElement(Mr[0],{className:Me()("".concat(Wt,"-item-after-jump-prev"),Mr[0].props.className)}),Mr.unshift(bo)),Vi-rr>=vr*2&&rr!==Vi-2){var oa=Mr[Mr.length-1];Mr[Mr.length-1]=x.cloneElement(oa,{className:Me()("".concat(Wt,"-item-before-jump-next"),oa.props.className)}),Mr.push(Lo)}No!==1&&Mr.unshift(x.createElement(ft,(0,ct.Z)({},Jr,{key:1,page:1}))),Jo!==Vi&&Mr.push(x.createElement(ft,(0,ct.Z)({},Jr,{key:Vi,page:Vi})))}var fa=Vo(ri);if(fa){var Wa=!wi||!Vi;fa=x.createElement("li",{title:kr?tr.prev_page:null,onClick:yi,tabIndex:Wa?null:0,onKeyDown:Io,className:Me()("".concat(Wt,"-prev"),(0,Fe.Z)({},"".concat(Wt,"-disabled"),Wa)),"aria-disabled":Wa},fa)}var Ds=wo(Wr);if(Ds){var js,as;ai?(js=!Ci,as=wi?0:null):(js=!Ci||!Vi,as=js?null:0),Ds=x.createElement("li",{title:kr?tr.next_page:null,onClick:Mi,tabIndex:as,onKeyDown:Ri,className:Me()("".concat(Wt,"-next"),(0,Fe.Z)({},"".concat(Wt,"-disabled"),js)),"aria-disabled":js},Ds)}var ds=Me()(Wt,tn,(0,Fe.Z)((0,Fe.Z)((0,Fe.Z)((0,Fe.Z)((0,Fe.Z)({},"".concat(Wt,"-start"),Br==="start"),"".concat(Wt,"-center"),Br==="center"),"".concat(Wt,"-end"),Br==="end"),"".concat(Wt,"-simple"),ai),"".concat(Wt,"-disabled"),ii));return x.createElement("ul",(0,ct.Z)({className:ds,style:Xn,ref:en},Go),Tn,fa,ai?ui:Mr,Ds,x.createElement(ut,{locale:tr,rootPrefixCls:Wt,disabled:ii,selectPrefixCls:ln,changeSize:mi,pageSize:On,pageSizeOptions:or,quickGo:zr?Si:null,goButton:Kr,showSizeChanger:ji,sizeChangerRender:ki}))},Ot=je,it=ae(61852),ht=ae(48755),Bt=ae(31756),We=ae(13783),_e=ae(9017),ot=ae(82326),Zt=ae(57700),zt=ae(36237),tt=ae(53075),Nt=ae(64910),Ut=ae(39082),pn=ae(63356),kt=ae(51636),mn=ae(16931);const _t=Ct=>{const{componentCls:lt}=Ct;return{[`${lt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${lt}-item-link`]:{color:Ct.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${lt}-item-link`]:{color:Ct.colorTextDisabled,cursor:"not-allowed"}}},[`&${lt}-disabled`]:{cursor:"not-allowed",[`${lt}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Ct.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Ct.colorBorder,backgroundColor:Ct.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Ct.itemActiveBgDisabled},a:{color:Ct.itemActiveColorDisabled}}},[`${lt}-item-link`]:{color:Ct.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${lt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${lt}-simple-pager`]:{color:Ct.colorTextDisabled},[`${lt}-jump-prev, ${lt}-jump-next`]:{[`${lt}-item-link-icon`]:{opacity:0},[`${lt}-item-ellipsis`]:{opacity:1}}},[`&${lt}-simple`]:{[`${lt}-prev, ${lt}-next`]:{[`&${lt}-disabled ${lt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Cn=Ct=>{const{componentCls:lt}=Ct;return{[`&${lt}-mini ${lt}-total-text, &${lt}-mini ${lt}-simple-pager`]:{height:Ct.itemSizeSM,lineHeight:(0,zt.unit)(Ct.itemSizeSM)},[`&${lt}-mini ${lt}-item`]:{minWidth:Ct.itemSizeSM,height:Ct.itemSizeSM,margin:0,lineHeight:(0,zt.unit)(Ct.calc(Ct.itemSizeSM).sub(2).equal())},[`&${lt}-mini ${lt}-prev, &${lt}-mini ${lt}-next`]:{minWidth:Ct.itemSizeSM,height:Ct.itemSizeSM,margin:0,lineHeight:(0,zt.unit)(Ct.itemSizeSM)},[`&${lt}-mini:not(${lt}-disabled)`]:{[`${lt}-prev, ${lt}-next`]:{[`&:hover ${lt}-item-link`]:{backgroundColor:Ct.colorBgTextHover},[`&:active ${lt}-item-link`]:{backgroundColor:Ct.colorBgTextActive},[`&${lt}-disabled:hover ${lt}-item-link`]:{backgroundColor:"transparent"}}},[`
&${lt}-mini ${lt}-prev ${lt}-item-link,
&${lt}-mini ${lt}-next ${lt}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Ct.itemSizeSM,lineHeight:(0,zt.unit)(Ct.itemSizeSM)}},[`&${lt}-mini ${lt}-jump-prev, &${lt}-mini ${lt}-jump-next`]:{height:Ct.itemSizeSM,marginInlineEnd:0,lineHeight:(0,zt.unit)(Ct.itemSizeSM)},[`&${lt}-mini ${lt}-options`]:{marginInlineStart:Ct.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Ct.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Ct.itemSizeSM,lineHeight:(0,zt.unit)(Ct.itemSizeSM),input:Object.assign(Object.assign({},(0,tt.x0)(Ct)),{width:Ct.paginationMiniQuickJumperInputWidth,height:Ct.controlHeightSM})}}}},an=Ct=>{const{componentCls:lt}=Ct;return{[`
&${lt}-simple ${lt}-prev,
&${lt}-simple ${lt}-next
`]:{height:Ct.itemSizeSM,lineHeight:(0,zt.unit)(Ct.itemSizeSM),verticalAlign:"top",[`${lt}-item-link`]:{height:Ct.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Ct.colorBgTextHover},"&:active":{backgroundColor:Ct.colorBgTextActive},"&::after":{height:Ct.itemSizeSM,lineHeight:(0,zt.unit)(Ct.itemSizeSM)}}},[`&${lt}-simple ${lt}-simple-pager`]:{display:"inline-block",height:Ct.itemSizeSM,marginInlineEnd:Ct.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,zt.unit)(Ct.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:Ct.itemInputBg,border:`${(0,zt.unit)(Ct.lineWidth)} ${Ct.lineType} ${Ct.colorBorder}`,borderRadius:Ct.borderRadius,outline:"none",transition:`border-color ${Ct.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Ct.colorPrimary},"&:focus":{borderColor:Ct.colorPrimaryHover,boxShadow:`${(0,zt.unit)(Ct.inputOutlineOffset)} 0 ${(0,zt.unit)(Ct.controlOutlineWidth)} ${Ct.controlOutline}`},"&[disabled]":{color:Ct.colorTextDisabled,backgroundColor:Ct.colorBgContainerDisabled,borderColor:Ct.colorBorder,cursor:"not-allowed"}}}}},de=Ct=>{const{componentCls:lt}=Ct;return{[`${lt}-jump-prev, ${lt}-jump-next`]:{outline:0,[`${lt}-item-container`]:{position:"relative",[`${lt}-item-link-icon`]:{color:Ct.colorPrimary,fontSize:Ct.fontSizeSM,opacity:0,transition:`all ${Ct.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${lt}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Ct.colorTextDisabled,letterSpacing:Ct.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Ct.paginationEllipsisTextIndent,opacity:1,transition:`all ${Ct.motionDurationMid}`}},"&:hover":{[`${lt}-item-link-icon`]:{opacity:1},[`${lt}-item-ellipsis`]:{opacity:0}}},[`
${lt}-prev,
${lt}-jump-prev,
${lt}-jump-next
`]:{marginInlineEnd:Ct.marginXS},[`
${lt}-prev,
${lt}-next,
${lt}-jump-prev,
${lt}-jump-next
`]:{display:"inline-block",minWidth:Ct.itemSize,height:Ct.itemSize,color:Ct.colorText,fontFamily:Ct.fontFamily,lineHeight:(0,zt.unit)(Ct.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Ct.borderRadius,cursor:"pointer",transition:`all ${Ct.motionDurationMid}`},[`${lt}-prev, ${lt}-next`]:{outline:0,button:{color:Ct.colorText,cursor:"pointer",userSelect:"none"},[`${lt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Ct.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,zt.unit)(Ct.lineWidth)} ${Ct.lineType} transparent`,borderRadius:Ct.borderRadius,outline:"none",transition:`all ${Ct.motionDurationMid}`},[`&:hover ${lt}-item-link`]:{backgroundColor:Ct.colorBgTextHover},[`&:active ${lt}-item-link`]:{backgroundColor:Ct.colorBgTextActive},[`&${lt}-disabled:hover`]:{[`${lt}-item-link`]:{backgroundColor:"transparent"}}},[`${lt}-slash`]:{marginInlineEnd:Ct.paginationSlashMarginInlineEnd,marginInlineStart:Ct.paginationSlashMarginInlineStart},[`${lt}-options`]:{display:"inline-block",marginInlineStart:Ct.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Ct.controlHeight,marginInlineStart:Ct.marginXS,lineHeight:(0,zt.unit)(Ct.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,tt.ik)(Ct)),(0,Ut.$U)(Ct,{borderColor:Ct.colorBorder,hoverBorderColor:Ct.colorPrimaryHover,activeBorderColor:Ct.colorPrimary,activeShadow:Ct.activeShadow})),{"&[disabled]":Object.assign({},(0,Ut.Xy)(Ct)),width:Ct.calc(Ct.controlHeightLG).mul(1.25).equal(),height:Ct.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Ct.marginXS,marginInlineEnd:Ct.marginXS})}}}},pe=Ct=>{const{componentCls:lt}=Ct;return{[`${lt}-item`]:{display:"inline-block",minWidth:Ct.itemSize,height:Ct.itemSize,marginInlineEnd:Ct.marginXS,fontFamily:Ct.fontFamily,lineHeight:(0,zt.unit)(Ct.calc(Ct.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:Ct.itemBg,border:`${(0,zt.unit)(Ct.lineWidth)} ${Ct.lineType} transparent`,borderRadius:Ct.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,zt.unit)(Ct.paginationItemPaddingInline)}`,color:Ct.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${lt}-item-active)`]:{"&:hover":{transition:`all ${Ct.motionDurationMid}`,backgroundColor:Ct.colorBgTextHover},"&:active":{backgroundColor:Ct.colorBgTextActive}},"&-active":{fontWeight:Ct.fontWeightStrong,backgroundColor:Ct.itemActiveBg,borderColor:Ct.colorPrimary,a:{color:Ct.colorPrimary},"&:hover":{borderColor:Ct.colorPrimaryHover},"&:hover a":{color:Ct.colorPrimaryHover}}}}},ie=Ct=>{const{componentCls:lt}=Ct;return{[lt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,pn.Wf)(Ct)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${lt}-total-text`]:{display:"inline-block",height:Ct.itemSize,marginInlineEnd:Ct.marginXS,lineHeight:(0,zt.unit)(Ct.calc(Ct.itemSize).sub(2).equal()),verticalAlign:"middle"}}),pe(Ct)),de(Ct)),an(Ct)),Cn(Ct)),_t(Ct)),{[`@media only screen and (max-width: ${Ct.screenLG}px)`]:{[`${lt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ct.screenSM}px)`]:{[`${lt}-options`]:{display:"none"}}}),[`&${Ct.componentCls}-rtl`]:{direction:"rtl"}}},ee=Ct=>{const{componentCls:lt}=Ct;return{[`${lt}:not(${lt}-disabled)`]:{[`${lt}-item`]:Object.assign({},(0,pn.Qy)(Ct)),[`${lt}-jump-prev, ${lt}-jump-next`]:{"&:focus-visible":Object.assign({[`${lt}-item-link-icon`]:{opacity:1},[`${lt}-item-ellipsis`]:{opacity:0}},(0,pn.oN)(Ct))},[`${lt}-prev, ${lt}-next`]:{[`&:focus-visible ${lt}-item-link`]:Object.assign({},(0,pn.oN)(Ct))}}}},se=Ct=>Object.assign({itemBg:Ct.colorBgContainer,itemSize:Ct.controlHeight,itemSizeSM:Ct.controlHeightSM,itemActiveBg:Ct.colorBgContainer,itemLinkBg:Ct.colorBgContainer,itemActiveColorDisabled:Ct.colorTextDisabled,itemActiveBgDisabled:Ct.controlItemBgActiveDisabled,itemInputBg:Ct.colorBgContainer,miniOptionsSizeChangerTop:0},(0,Nt.T)(Ct)),le=Ct=>(0,kt.mergeToken)(Ct,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Ct.calc(Ct.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:Ct.calc(Ct.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:Ct.calc(Ct.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:Ct.calc(Ct.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:Ct.marginSM,paginationSlashMarginInlineEnd:Ct.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Nt.e)(Ct));var Be=(0,mn.I$)("Pagination",Ct=>{const lt=le(Ct);return[ie(lt),ee(lt)]},se);const $e=Ct=>{const{componentCls:lt}=Ct;return{[`${lt}${lt}-bordered${lt}-disabled:not(${lt}-mini)`]:{"&, &:hover":{[`${lt}-item-link`]:{borderColor:Ct.colorBorder}},"&:focus-visible":{[`${lt}-item-link`]:{borderColor:Ct.colorBorder}},[`${lt}-item, ${lt}-item-link`]:{backgroundColor:Ct.colorBgContainerDisabled,borderColor:Ct.colorBorder,[`&:hover:not(${lt}-item-active)`]:{backgroundColor:Ct.colorBgContainerDisabled,borderColor:Ct.colorBorder,a:{color:Ct.colorTextDisabled}},[`&${lt}-item-active`]:{backgroundColor:Ct.itemActiveBgDisabled}},[`${lt}-prev, ${lt}-next`]:{"&:hover button":{backgroundColor:Ct.colorBgContainerDisabled,borderColor:Ct.colorBorder,color:Ct.colorTextDisabled},[`${lt}-item-link`]:{backgroundColor:Ct.colorBgContainerDisabled,borderColor:Ct.colorBorder}}},[`${lt}${lt}-bordered:not(${lt}-mini)`]:{[`${lt}-prev, ${lt}-next`]:{"&:hover button":{borderColor:Ct.colorPrimaryHover,backgroundColor:Ct.itemBg},[`${lt}-item-link`]:{backgroundColor:Ct.itemLinkBg,borderColor:Ct.colorBorder},[`&:hover ${lt}-item-link`]:{borderColor:Ct.colorPrimary,backgroundColor:Ct.itemBg,color:Ct.colorPrimary},[`&${lt}-disabled`]:{[`${lt}-item-link`]:{borderColor:Ct.colorBorder,color:Ct.colorTextDisabled}}},[`${lt}-item`]:{backgroundColor:Ct.itemBg,border:`${(0,zt.unit)(Ct.lineWidth)} ${Ct.lineType} ${Ct.colorBorder}`,[`&:hover:not(${lt}-item-active)`]:{borderColor:Ct.colorPrimary,backgroundColor:Ct.itemBg,a:{color:Ct.colorPrimary}},"&-active":{borderColor:Ct.colorPrimary}}}}};var st=(0,mn.bk)(["Pagination","bordered"],Ct=>{const lt=le(Ct);return[$e(lt)]},se);function gt(Ct){return(0,x.useMemo)(()=>typeof Ct=="boolean"?[Ct,{}]:Ct&&typeof Ct=="object"?[!0,Ct]:[void 0,void 0],[Ct])}var mt=function(Ct,lt){var $t={};for(var Wt in Ct)Object.prototype.hasOwnProperty.call(Ct,Wt)&&lt.indexOf(Wt)<0&&($t[Wt]=Ct[Wt]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wn=0,Wt=Object.getOwnPropertySymbols(Ct);wn<Wt.length;wn++)lt.indexOf(Wt[wn])<0&&Object.prototype.propertyIsEnumerable.call(Ct,Wt[wn])&&($t[Wt[wn]]=Ct[Wt[wn]]);return $t},Lt=Ct=>{const{align:lt,prefixCls:$t,selectPrefixCls:Wt,className:wn,rootClassName:ln,style:tn,size:Qn,locale:En,responsive:Rt,showSizeChanger:un,selectComponentClass:Dn,pageSizeOptions:Wn}=Ct,It=mt(Ct,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:Gt}=(0,We.Z)(Rt),[,sn]=(0,Zt.ZP)(),{getPrefixCls:yn,direction:Yn,showSizeChanger:Br,className:ti,style:Ur}=(0,ht.dj)("pagination"),Sr=yn("pagination",$t),[Jn,gr,kr]=Be(Sr),Vr=(0,Bt.Z)(Qn),pi=Vr==="small"||!!(Gt&&!Vr&&Rt),[Lr]=(0,_e.Z)("Pagination",it.Z),tr=Object.assign(Object.assign({},Lr),En),[Xn,mr]=gt(un),[Qr,ii]=gt(Br),ai=Xn!=null?Xn:Qr,oi=mr!=null?mr:ii,li=Dn||ot.default,ji=x.useMemo(()=>Wn?Wn.map(rn=>Number(rn)):void 0,[Wn]),ki=rn=>{var fn;const{disabled:Pt,size:en,onSizeChange:Kt,"aria-label":gn,className:On,options:Nr}=rn,{className:Yr,onChange:hi}=oi||{},rr=(fn=Nr.find(ur=>String(ur.value)===String(en)))===null||fn===void 0?void 0:fn.value;return x.createElement(li,Object.assign({disabled:Pt,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:ur=>ur.parentNode,"aria-label":gn,options:Nr},oi,{value:rr,onChange:(ur,sr)=>{Kt==null||Kt(ur),hi==null||hi(ur,sr)},size:pi?"small":"middle",className:Me()(On,Yr)}))},or=x.useMemo(()=>{const rn=x.createElement("span",{className:`${Sr}-item-ellipsis`},"\u2022\u2022\u2022"),fn=x.createElement("button",{className:`${Sr}-item-link`,type:"button",tabIndex:-1},Yn==="rtl"?x.createElement(Oe.Z,null):x.createElement(oe.Z,null)),Pt=x.createElement("button",{className:`${Sr}-item-link`,type:"button",tabIndex:-1},Yn==="rtl"?x.createElement(oe.Z,null):x.createElement(Oe.Z,null)),en=x.createElement("a",{className:`${Sr}-item-link`},x.createElement("div",{className:`${Sr}-item-container`},Yn==="rtl"?x.createElement(Ce.Z,{className:`${Sr}-item-link-icon`}):x.createElement(fe,{className:`${Sr}-item-link-icon`}),rn)),Kt=x.createElement("a",{className:`${Sr}-item-link`},x.createElement("div",{className:`${Sr}-item-container`},Yn==="rtl"?x.createElement(fe,{className:`${Sr}-item-link-icon`}):x.createElement(Ce.Z,{className:`${Sr}-item-link-icon`}),rn));return{prevIcon:fn,nextIcon:Pt,jumpPrevIcon:en,jumpNextIcon:Kt}},[Yn,Sr]),Hr=yn("select",Wt),Bi=Me()({[`${Sr}-${lt}`]:!!lt,[`${Sr}-mini`]:pi,[`${Sr}-rtl`]:Yn==="rtl",[`${Sr}-bordered`]:sn.wireframe},ti,wn,ln,gr,kr),Yt=Object.assign(Object.assign({},Ur),tn);return Jn(x.createElement(x.Fragment,null,sn.wireframe&&x.createElement(st,{prefixCls:Sr}),x.createElement(Ot,Object.assign({},or,It,{style:Yt,prefixCls:Sr,selectPrefixCls:Hr,className:Bi,locale:tr,pageSizeOptions:ji,showSizeChanger:ai,sizeChangerRender:ki}))))},jt=Lt},89787:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return En}});var x=ae(59301),ct=ae(17835),Le=ae(29679),Je=ae(40001),ze=ae(19248),Se=ae(99267),Ue=ae(92310),fe=ae.n(Ue),Ce=ae(2738),oe=ae(48755),Oe=ae(54476),ve=ae(33885),Me=ae(75931),Fe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Te=function(){var un=(0,x.useRef)([]),Dn=(0,x.useRef)(null);return(0,x.useEffect)(function(){var Wn=Date.now(),It=!1;un.current.forEach(function(Gt){if(Gt){It=!0;var sn=Gt.style;sn.transitionDuration=".3s, .3s, .3s, .06s",Dn.current&&Wn-Dn.current<100&&(sn.transitionDuration="0s, 0s")}}),It&&(Dn.current=Date.now())}),un.current},ye=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],xe=function(un){var Dn=(0,ve.Z)((0,ve.Z)({},Fe),un),Wn=Dn.className,It=Dn.percent,Gt=Dn.prefixCls,sn=Dn.strokeColor,yn=Dn.strokeLinecap,Yn=Dn.strokeWidth,Br=Dn.style,ti=Dn.trailColor,Ur=Dn.trailWidth,Sr=Dn.transition,Jn=(0,Me.Z)(Dn,ye);delete Jn.gapPosition;var gr=Array.isArray(It)?It:[It],kr=Array.isArray(sn)?sn:[sn],Vr=Te(),pi=Yn/2,Lr=100-Yn/2,tr="M ".concat(yn==="round"?pi:0,",").concat(pi,`
L `).concat(yn==="round"?Lr:100,",").concat(pi),Xn="0 0 100 ".concat(Yn),mr=0;return x.createElement("svg",(0,Oe.Z)({className:fe()("".concat(Gt,"-line"),Wn),viewBox:Xn,preserveAspectRatio:"none",style:Br},Jn),x.createElement("path",{className:"".concat(Gt,"-line-trail"),d:tr,strokeLinecap:yn,stroke:ti,strokeWidth:Ur||Yn,fillOpacity:"0"}),gr.map(function(Qr,ii){var ai=1;switch(yn){case"round":ai=1-Yn/100;break;case"square":ai=1-Yn/2/100;break;default:ai=1;break}var oi={strokeDasharray:"".concat(Qr*ai,"px, 100px"),strokeDashoffset:"-".concat(mr,"px"),transition:Sr||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},li=kr[ii]||kr[kr.length-1];return mr+=Qr,x.createElement("path",{key:ii,className:"".concat(Gt,"-line-path"),d:tr,strokeLinecap:yn,stroke:li,strokeWidth:Yn,fillOpacity:"0",ref:function(ki){Vr[ii]=ki},style:oi})}))},Ee=xe,ke=ae(76190),Ke=ae(42978),Qe=ae(47273),Re=0,et=(0,Qe.Z)();function Ge(){var Rt;return et?(Rt=Re,Re+=1):Rt="TEST_OR_SSR",Rt}var ut=function(Rt){var un=x.useState(),Dn=(0,Ke.Z)(un,2),Wn=Dn[0],It=Dn[1];return x.useEffect(function(){It("rc_progress_".concat(Ge()))},[]),Rt||Wn},at=function(un){var Dn=un.bg,Wn=un.children;return x.createElement("div",{style:{width:"100%",height:"100%",background:Dn}},Wn)};function ft(Rt,un){return Object.keys(Rt).map(function(Dn){var Wn=parseFloat(Dn),It="".concat(Math.floor(Wn*un),"%");return"".concat(Rt[Dn]," ").concat(It)})}var bt=x.forwardRef(function(Rt,un){var Dn=Rt.prefixCls,Wn=Rt.color,It=Rt.gradientId,Gt=Rt.radius,sn=Rt.style,yn=Rt.ptg,Yn=Rt.strokeLinecap,Br=Rt.strokeWidth,ti=Rt.size,Ur=Rt.gapDegree,Sr=Wn&&(0,ke.Z)(Wn)==="object",Jn=Sr?"#FFF":void 0,gr=ti/2,kr=x.createElement("circle",{className:"".concat(Dn,"-circle-path"),r:Gt,cx:gr,cy:gr,stroke:Jn,strokeLinecap:Yn,strokeWidth:Br,opacity:yn===0?0:1,style:sn,ref:un});if(!Sr)return kr;var Vr="".concat(It,"-conic"),pi=Ur?"".concat(180+Ur/2,"deg"):"0deg",Lr=ft(Wn,(360-Ur)/360),tr=ft(Wn,1),Xn="conic-gradient(from ".concat(pi,", ").concat(Lr.join(", "),")"),mr="linear-gradient(to ".concat(Ur?"bottom":"top",", ").concat(tr.join(", "),")");return x.createElement(x.Fragment,null,x.createElement("mask",{id:Vr},kr),x.createElement("foreignObject",{x:0,y:0,width:ti,height:ti,mask:"url(#".concat(Vr,")")},x.createElement(at,{bg:mr},x.createElement(at,{bg:Xn}))))}),He=bt,pt=100,Ne=function(un,Dn,Wn,It,Gt,sn,yn,Yn,Br,ti){var Ur=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Sr=Wn/100*360*((360-sn)/360),Jn=sn===0?0:{bottom:0,top:180,left:90,right:-90}[yn],gr=(100-It)/100*Dn;Br==="round"&&It!==100&&(gr+=ti/2,gr>=Dn&&(gr=Dn-.01));var kr=pt/2;return{stroke:typeof Yn=="string"?Yn:void 0,strokeDasharray:"".concat(Dn,"px ").concat(un),strokeDashoffset:gr+Ur,transform:"rotate(".concat(Gt+Sr+Jn,"deg)"),transformOrigin:"".concat(kr,"px ").concat(kr,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},je=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ot(Rt){var un=Rt!=null?Rt:[];return Array.isArray(un)?un:[un]}var it=function(un){var Dn=(0,ve.Z)((0,ve.Z)({},Fe),un),Wn=Dn.id,It=Dn.prefixCls,Gt=Dn.steps,sn=Dn.strokeWidth,yn=Dn.trailWidth,Yn=Dn.gapDegree,Br=Yn===void 0?0:Yn,ti=Dn.gapPosition,Ur=Dn.trailColor,Sr=Dn.strokeLinecap,Jn=Dn.style,gr=Dn.className,kr=Dn.strokeColor,Vr=Dn.percent,pi=(0,Me.Z)(Dn,je),Lr=pt/2,tr=ut(Wn),Xn="".concat(tr,"-gradient"),mr=Lr-sn/2,Qr=Math.PI*2*mr,ii=Br>0?90+Br/2:-90,ai=Qr*((360-Br)/360),oi=(0,ke.Z)(Gt)==="object"?Gt:{count:Gt,gap:2},li=oi.count,ji=oi.gap,ki=Ot(Vr),or=Ot(kr),Hr=or.find(function(Kt){return Kt&&(0,ke.Z)(Kt)==="object"}),Bi=Hr&&(0,ke.Z)(Hr)==="object",Yt=Bi?"butt":Sr,rn=Ne(Qr,ai,0,100,ii,Br,ti,Ur,Yt,sn),fn=Te(),Pt=function(){var gn=0;return ki.map(function(On,Nr){var Yr=or[Nr]||or[or.length-1],hi=Ne(Qr,ai,gn,On,ii,Br,ti,Yr,Yt,sn);return gn+=On,x.createElement(He,{key:Nr,color:Yr,ptg:On,radius:mr,prefixCls:It,gradientId:Xn,style:hi,strokeLinecap:Yt,strokeWidth:sn,gapDegree:Br,ref:function(ur){fn[Nr]=ur},size:pt})}).reverse()},en=function(){var gn=Math.round(li*(ki[0]/100)),On=100/li,Nr=0;return new Array(li).fill(null).map(function(Yr,hi){var rr=hi<=gn-1?or[0]:Ur,ur=rr&&(0,ke.Z)(rr)==="object"?"url(#".concat(Xn,")"):void 0,sr=Ne(Qr,ai,Nr,On,ii,Br,ti,rr,"butt",sn,ji);return Nr+=(ai-sr.strokeDashoffset+ji)*100/ai,x.createElement("circle",{key:hi,className:"".concat(It,"-circle-path"),r:mr,cx:Lr,cy:Lr,stroke:ur,strokeWidth:sn,opacity:1,style:sr,ref:function(er){fn[hi]=er}})})};return x.createElement("svg",(0,Oe.Z)({className:fe()("".concat(It,"-circle"),gr),viewBox:"0 0 ".concat(pt," ").concat(pt),style:Jn,id:Wn,role:"presentation"},pi),!li&&x.createElement("circle",{className:"".concat(It,"-circle-trail"),r:mr,cx:Lr,cy:Lr,stroke:Ur,strokeLinecap:Yt,strokeWidth:yn||sn,style:rn}),li?en():Pt())},ht=it,Bt={Line:Ee,Circle:ht},We=ae(25399),_e=ae(68361);function ot(Rt){return!Rt||Rt<0?0:Rt>100?100:Rt}function Zt(Rt){let{success:un,successPercent:Dn}=Rt,Wn=Dn;return un&&"progress"in un&&(Wn=un.progress),un&&"percent"in un&&(Wn=un.percent),Wn}const zt=Rt=>{let{percent:un,success:Dn,successPercent:Wn}=Rt;const It=ot(Zt({success:Dn,successPercent:Wn}));return[It,ot(ot(un)-It)]},tt=Rt=>{let{success:un={},strokeColor:Dn}=Rt;const{strokeColor:Wn}=un;return[Wn||_e.presetPrimaryColors.green,Dn||null]},Nt=(Rt,un,Dn)=>{var Wn,It,Gt,sn;let yn=-1,Yn=-1;if(un==="step"){const Br=Dn.steps,ti=Dn.strokeWidth;typeof Rt=="string"||typeof Rt=="undefined"?(yn=Rt==="small"?2:14,Yn=ti!=null?ti:8):typeof Rt=="number"?[yn,Yn]=[Rt,Rt]:[yn=14,Yn=8]=Array.isArray(Rt)?Rt:[Rt.width,Rt.height],yn*=Br}else if(un==="line"){const Br=Dn==null?void 0:Dn.strokeWidth;typeof Rt=="string"||typeof Rt=="undefined"?Yn=Br||(Rt==="small"?6:8):typeof Rt=="number"?[yn,Yn]=[Rt,Rt]:[yn=-1,Yn=8]=Array.isArray(Rt)?Rt:[Rt.width,Rt.height]}else(un==="circle"||un==="dashboard")&&(typeof Rt=="string"||typeof Rt=="undefined"?[yn,Yn]=Rt==="small"?[60,60]:[120,120]:typeof Rt=="number"?[yn,Yn]=[Rt,Rt]:Array.isArray(Rt)&&(yn=(It=(Wn=Rt[0])!==null&&Wn!==void 0?Wn:Rt[1])!==null&&It!==void 0?It:120,Yn=(sn=(Gt=Rt[0])!==null&&Gt!==void 0?Gt:Rt[1])!==null&&sn!==void 0?sn:120));return[yn,Yn]},Ut=3,pn=Rt=>Ut/Rt*100;var mn=Rt=>{const{prefixCls:un,trailColor:Dn=null,strokeLinecap:Wn="round",gapPosition:It,gapDegree:Gt,width:sn=120,type:yn,children:Yn,success:Br,size:ti=sn,steps:Ur}=Rt,[Sr,Jn]=Nt(ti,"circle");let{strokeWidth:gr}=Rt;gr===void 0&&(gr=Math.max(pn(Sr),6));const kr={width:Sr,height:Jn,fontSize:Sr*.15+6},Vr=x.useMemo(()=>{if(Gt||Gt===0)return Gt;if(yn==="dashboard")return 75},[Gt,yn]),pi=zt(Rt),Lr=It||yn==="dashboard"&&"bottom"||void 0,tr=Object.prototype.toString.call(Rt.strokeColor)==="[object Object]",Xn=tt({success:Br,strokeColor:Rt.strokeColor}),mr=fe()(`${un}-inner`,{[`${un}-circle-gradient`]:tr}),Qr=x.createElement(ht,{steps:Ur,percent:Ur?pi[1]:pi,strokeWidth:gr,trailWidth:gr,strokeColor:Ur?Xn[1]:Xn,strokeLinecap:Wn,trailColor:Dn,prefixCls:un,gapDegree:Vr,gapPosition:Lr}),ii=Sr<=20,ai=x.createElement("div",{className:mr,style:kr},Qr,!ii&&Yn);return ii?x.createElement(We.Z,{title:Yn},ai):ai},_t=ae(36237),Cn=ae(63356),an=ae(16931),de=ae(51636);const pe="--progress-line-stroke-color",ie="--progress-percent",ee=Rt=>{const un=Rt?"100%":"-100%";return new _t.Keyframes(`antProgress${Rt?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${un}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${un}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},se=Rt=>{const{componentCls:un,iconCls:Dn}=Rt;return{[un]:Object.assign(Object.assign({},(0,Cn.Wf)(Rt)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Rt.fontSize},[`${un}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${un}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:Rt.remainingColor,borderRadius:Rt.lineBorderRadius},[`${un}-inner:not(${un}-circle-gradient)`]:{[`${un}-circle-path`]:{stroke:Rt.defaultColor}},[`${un}-success-bg, ${un}-bg`]:{position:"relative",background:Rt.defaultColor,borderRadius:Rt.lineBorderRadius,transition:`all ${Rt.motionDurationSlow} ${Rt.motionEaseInOutCirc}`},[`${un}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${un}-text`]:{width:"max-content",marginInlineStart:0,marginTop:Rt.marginXXS}},[`${un}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${pe})`]},height:"100%",width:`calc(1 / var(${ie}) * 100%)`,display:"block"},[`&${un}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${un}-text-inner`]:{color:Rt.colorWhite,[`&${un}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${un}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Rt.colorSuccess},[`${un}-text`]:{display:"inline-block",marginInlineStart:Rt.marginXS,color:Rt.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Dn]:{fontSize:Rt.fontSize},[`&${un}-text-outer`]:{width:"max-content"},[`&${un}-text-outer${un}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:Rt.marginXS}},[`${un}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,_t.unit)(Rt.paddingXXS)}`,[`&${un}-text-start`]:{justifyContent:"start"},[`&${un}-text-end`]:{justifyContent:"end"}},[`&${un}-status-active`]:{[`${un}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Rt.colorBgContainer,borderRadius:Rt.lineBorderRadius,opacity:0,animationName:ee(),animationDuration:Rt.progressActiveMotionDuration,animationTimingFunction:Rt.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${un}-rtl${un}-status-active`]:{[`${un}-bg::before`]:{animationName:ee(!0)}},[`&${un}-status-exception`]:{[`${un}-bg`]:{backgroundColor:Rt.colorError},[`${un}-text`]:{color:Rt.colorError}},[`&${un}-status-exception ${un}-inner:not(${un}-circle-gradient)`]:{[`${un}-circle-path`]:{stroke:Rt.colorError}},[`&${un}-status-success`]:{[`${un}-bg`]:{backgroundColor:Rt.colorSuccess},[`${un}-text`]:{color:Rt.colorSuccess}},[`&${un}-status-success ${un}-inner:not(${un}-circle-gradient)`]:{[`${un}-circle-path`]:{stroke:Rt.colorSuccess}}})}},le=Rt=>{const{componentCls:un,iconCls:Dn}=Rt;return{[un]:{[`${un}-circle-trail`]:{stroke:Rt.remainingColor},[`&${un}-circle ${un}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${un}-circle ${un}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Rt.circleTextColor,fontSize:Rt.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Dn]:{fontSize:Rt.circleIconFontSize}},[`${un}-circle&-status-exception`]:{[`${un}-text`]:{color:Rt.colorError}},[`${un}-circle&-status-success`]:{[`${un}-text`]:{color:Rt.colorSuccess}}},[`${un}-inline-circle`]:{lineHeight:1,[`${un}-inner`]:{verticalAlign:"bottom"}}}},Be=Rt=>{const{componentCls:un}=Rt;return{[un]:{[`${un}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Rt.progressStepMinWidth,marginInlineEnd:Rt.progressStepMarginInlineEnd,backgroundColor:Rt.remainingColor,transition:`all ${Rt.motionDurationSlow}`,"&-active":{backgroundColor:Rt.defaultColor}}}}}},$e=Rt=>{const{componentCls:un,iconCls:Dn}=Rt;return{[un]:{[`${un}-small&-line, ${un}-small&-line ${un}-text ${Dn}`]:{fontSize:Rt.fontSizeSM}}}},st=Rt=>({circleTextColor:Rt.colorText,defaultColor:Rt.colorInfo,remainingColor:Rt.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Rt.fontSize/Rt.fontSizeSM}em`});var gt=(0,an.I$)("Progress",Rt=>{const un=Rt.calc(Rt.marginXXS).div(2).equal(),Dn=(0,de.mergeToken)(Rt,{progressStepMarginInlineEnd:un,progressStepMinWidth:un,progressActiveMotionDuration:"2.4s"});return[se(Dn),le(Dn),Be(Dn),$e(Dn)]},st),mt=function(Rt,un){var Dn={};for(var Wn in Rt)Object.prototype.hasOwnProperty.call(Rt,Wn)&&un.indexOf(Wn)<0&&(Dn[Wn]=Rt[Wn]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,Wn=Object.getOwnPropertySymbols(Rt);It<Wn.length;It++)un.indexOf(Wn[It])<0&&Object.prototype.propertyIsEnumerable.call(Rt,Wn[It])&&(Dn[Wn[It]]=Rt[Wn[It]]);return Dn};const Et=Rt=>{let un=[];return Object.keys(Rt).forEach(Dn=>{const Wn=parseFloat(Dn.replace(/%/g,""));Number.isNaN(Wn)||un.push({key:Wn,value:Rt[Dn]})}),un=un.sort((Dn,Wn)=>Dn.key-Wn.key),un.map(Dn=>{let{key:Wn,value:It}=Dn;return`${It} ${Wn}%`}).join(", ")},Lt=(Rt,un)=>{const{from:Dn=_e.presetPrimaryColors.blue,to:Wn=_e.presetPrimaryColors.blue,direction:It=un==="rtl"?"to left":"to right"}=Rt,Gt=mt(Rt,["from","to","direction"]);if(Object.keys(Gt).length!==0){const yn=Et(Gt),Yn=`linear-gradient(${It}, ${yn})`;return{background:Yn,[pe]:Yn}}const sn=`linear-gradient(${It}, ${Dn}, ${Wn})`;return{background:sn,[pe]:sn}};var Ct=Rt=>{const{prefixCls:un,direction:Dn,percent:Wn,size:It,strokeWidth:Gt,strokeColor:sn,strokeLinecap:yn="round",children:Yn,trailColor:Br=null,percentPosition:ti,success:Ur}=Rt,{align:Sr,type:Jn}=ti,gr=sn&&typeof sn!="string"?Lt(sn,Dn):{[pe]:sn,background:sn},kr=yn==="square"||yn==="butt"?0:void 0,Vr=It!=null?It:[-1,Gt||(It==="small"?6:8)],[pi,Lr]=Nt(Vr,"line",{strokeWidth:Gt}),tr={backgroundColor:Br||void 0,borderRadius:kr},Xn=Object.assign(Object.assign({width:`${ot(Wn)}%`,height:Lr,borderRadius:kr},gr),{[ie]:ot(Wn)/100}),mr=Zt(Rt),Qr={width:`${ot(mr)}%`,height:Lr,borderRadius:kr,backgroundColor:Ur==null?void 0:Ur.strokeColor},ii={width:pi<0?"100%":pi},ai=x.createElement("div",{className:`${un}-inner`,style:tr},x.createElement("div",{className:fe()(`${un}-bg`,`${un}-bg-${Jn}`),style:Xn},Jn==="inner"&&Yn),mr!==void 0&&x.createElement("div",{className:`${un}-success-bg`,style:Qr})),oi=Jn==="outer"&&Sr==="start",li=Jn==="outer"&&Sr==="end";return Jn==="outer"&&Sr==="center"?x.createElement("div",{className:`${un}-layout-bottom`},ai,Yn):x.createElement("div",{className:`${un}-outer`,style:ii},oi&&Yn,ai,li&&Yn)},$t=Rt=>{const{size:un,steps:Dn,rounding:Wn=Math.round,percent:It=0,strokeWidth:Gt=8,strokeColor:sn,trailColor:yn=null,prefixCls:Yn,children:Br}=Rt,ti=Wn(Dn*(It/100)),Ur=un==="small"?2:14,Sr=un!=null?un:[Ur,Gt],[Jn,gr]=Nt(Sr,"step",{steps:Dn,strokeWidth:Gt}),kr=Jn/Dn,Vr=Array.from({length:Dn});for(let pi=0;pi<Dn;pi++){const Lr=Array.isArray(sn)?sn[pi]:sn;Vr[pi]=x.createElement("div",{key:pi,className:fe()(`${Yn}-steps-item`,{[`${Yn}-steps-item-active`]:pi<=ti-1}),style:{backgroundColor:pi<=ti-1?Lr:yn,width:kr,height:gr}})}return x.createElement("div",{className:`${Yn}-steps-outer`},Vr,Br)},Wt=function(Rt,un){var Dn={};for(var Wn in Rt)Object.prototype.hasOwnProperty.call(Rt,Wn)&&un.indexOf(Wn)<0&&(Dn[Wn]=Rt[Wn]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,Wn=Object.getOwnPropertySymbols(Rt);It<Wn.length;It++)un.indexOf(Wn[It])<0&&Object.prototype.propertyIsEnumerable.call(Rt,Wn[It])&&(Dn[Wn[It]]=Rt[Wn[It]]);return Dn};const wn=null,ln=["normal","exception","active","success"];var Qn=x.forwardRef((Rt,un)=>{const{prefixCls:Dn,className:Wn,rootClassName:It,steps:Gt,strokeColor:sn,percent:yn=0,size:Yn="default",showInfo:Br=!0,type:ti="line",status:Ur,format:Sr,style:Jn,percentPosition:gr={}}=Rt,kr=Wt(Rt,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:Vr="end",type:pi="outer"}=gr,Lr=Array.isArray(sn)?sn[0]:sn,tr=typeof sn=="string"||Array.isArray(sn)?sn:void 0,Xn=x.useMemo(()=>{if(Lr){const Pt=typeof Lr=="string"?Lr:Object.values(Lr)[0];return new ct.FastColor(Pt).isLight()}return!1},[sn]),mr=x.useMemo(()=>{var Pt,en;const Kt=Zt(Rt);return parseInt(Kt!==void 0?(Pt=Kt!=null?Kt:0)===null||Pt===void 0?void 0:Pt.toString():(en=yn!=null?yn:0)===null||en===void 0?void 0:en.toString(),10)},[yn,Rt.success,Rt.successPercent]),Qr=x.useMemo(()=>!ln.includes(Ur)&&mr>=100?"success":Ur||"normal",[Ur,mr]),{getPrefixCls:ii,direction:ai,progress:oi}=x.useContext(oe.E_),li=ii("progress",Dn),[ji,ki,or]=gt(li),Hr=ti==="line",Bi=Hr&&!Gt,Yt=x.useMemo(()=>{if(!Br)return null;const Pt=Zt(Rt);let en;const Kt=Sr||(On=>`${On}%`),gn=Hr&&Xn&&pi==="inner";return pi==="inner"||Sr||Qr!=="exception"&&Qr!=="success"?en=Kt(ot(yn),ot(Pt)):Qr==="exception"?en=Hr?x.createElement(ze.Z,null):x.createElement(Se.Z,null):Qr==="success"&&(en=Hr?x.createElement(Le.Z,null):x.createElement(Je.Z,null)),x.createElement("span",{className:fe()(`${li}-text`,{[`${li}-text-bright`]:gn,[`${li}-text-${Vr}`]:Bi,[`${li}-text-${pi}`]:Bi}),title:typeof en=="string"?en:void 0},en)},[Br,yn,mr,Qr,ti,li,Sr]);let rn;ti==="line"?rn=Gt?x.createElement($t,Object.assign({},Rt,{strokeColor:tr,prefixCls:li,steps:typeof Gt=="object"?Gt.count:Gt}),Yt):x.createElement(Ct,Object.assign({},Rt,{strokeColor:Lr,prefixCls:li,direction:ai,percentPosition:{align:Vr,type:pi}}),Yt):(ti==="circle"||ti==="dashboard")&&(rn=x.createElement(mn,Object.assign({},Rt,{strokeColor:Lr,prefixCls:li,progressStatus:Qr}),Yt));const fn=fe()(li,`${li}-status-${Qr}`,{[`${li}-${ti==="dashboard"&&"circle"||ti}`]:ti!=="line",[`${li}-inline-circle`]:ti==="circle"&&Nt(Yn,"circle")[0]<=20,[`${li}-line`]:Bi,[`${li}-line-align-${Vr}`]:Bi,[`${li}-line-position-${pi}`]:Bi,[`${li}-steps`]:Gt,[`${li}-show-info`]:Br,[`${li}-${Yn}`]:typeof Yn=="string",[`${li}-rtl`]:ai==="rtl"},oi==null?void 0:oi.className,Wn,It,ki,or);return ji(x.createElement("div",Object.assign({ref:un,style:Object.assign(Object.assign({},oi==null?void 0:oi.style),Jn),className:fn,role:"progressbar","aria-valuenow":mr,"aria-valuemin":0,"aria-valuemax":100},(0,Ce.Z)(kr,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),rn))}),En=Qn},63139:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return zt}});var x=ae(59301),ct=ae(54476),Le={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Je=Le,ze=ae(7657),Se=function(Nt,Ut){return x.createElement(ze.Z,(0,ct.Z)({},Nt,{ref:Ut,icon:Je}))},Ue=x.forwardRef(Se),fe=Ue,Ce=ae(92310),oe=ae.n(Ce),Oe=ae(20068),ve=ae(42978),Me=ae(75931),Fe=ae(18929),Te=ae(10228),ye=ae(26112);function xe(tt,Nt){var Ut=tt.disabled,pn=tt.prefixCls,kt=tt.character,mn=tt.characterRender,_t=tt.index,Cn=tt.count,an=tt.value,de=tt.allowHalf,pe=tt.focused,ie=tt.onHover,ee=tt.onClick,se=function(Lt){ie(Lt,_t)},le=function(Lt){ee(Lt,_t)},Be=function(Lt){Lt.keyCode===Te.Z.ENTER&&ee(Lt,_t)},$e=_t+1,st=new Set([pn]);an===0&&_t===0&&pe?st.add("".concat(pn,"-focused")):de&&an+.5>=$e&&an<$e?(st.add("".concat(pn,"-half")),st.add("".concat(pn,"-active")),pe&&st.add("".concat(pn,"-focused"))):($e<=an?st.add("".concat(pn,"-full")):st.add("".concat(pn,"-zero")),$e===an&&pe&&st.add("".concat(pn,"-focused")));var gt=typeof kt=="function"?kt(tt):kt,mt=x.createElement("li",{className:oe()(Array.from(st)),ref:Nt},x.createElement("div",{onClick:Ut?null:le,onKeyDown:Ut?null:Be,onMouseMove:Ut?null:se,role:"radio","aria-checked":an>_t?"true":"false","aria-posinset":_t+1,"aria-setsize":Cn,tabIndex:Ut?-1:0},x.createElement("div",{className:"".concat(pn,"-first")},gt),x.createElement("div",{className:"".concat(pn,"-second")},gt)));return mn&&(mt=mn(mt,tt)),mt}var Ee=x.forwardRef(xe);function ke(){var tt=x.useRef({});function Nt(pn){return tt.current[pn]}function Ut(pn){return function(kt){tt.current[pn]=kt}}return[Nt,Ut]}function Ke(tt){var Nt=tt.pageXOffset,Ut="scrollLeft";if(typeof Nt!="number"){var pn=tt.document;Nt=pn.documentElement[Ut],typeof Nt!="number"&&(Nt=pn.body[Ut])}return Nt}function Qe(tt){var Nt,Ut,pn=tt.ownerDocument,kt=pn.body,mn=pn&&pn.documentElement,_t=tt.getBoundingClientRect();return Nt=_t.left,Ut=_t.top,Nt-=mn.clientLeft||kt.clientLeft||0,Ut-=mn.clientTop||kt.clientTop||0,{left:Nt,top:Ut}}function Re(tt){var Nt=Qe(tt),Ut=tt.ownerDocument,pn=Ut.defaultView||Ut.parentWindow;return Nt.left+=Ke(pn),Nt.left}var et=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ge(tt,Nt){var Ut=tt.prefixCls,pn=Ut===void 0?"rc-rate":Ut,kt=tt.className,mn=tt.defaultValue,_t=tt.value,Cn=tt.count,an=Cn===void 0?5:Cn,de=tt.allowHalf,pe=de===void 0?!1:de,ie=tt.allowClear,ee=ie===void 0?!0:ie,se=tt.keyboard,le=se===void 0?!0:se,Be=tt.character,$e=Be===void 0?"\u2605":Be,st=tt.characterRender,gt=tt.disabled,mt=tt.direction,Et=mt===void 0?"ltr":mt,Lt=tt.tabIndex,jt=Lt===void 0?0:Lt,Ct=tt.autoFocus,lt=tt.onHoverChange,$t=tt.onChange,Wt=tt.onFocus,wn=tt.onBlur,ln=tt.onKeyDown,tn=tt.onMouseLeave,Qn=(0,Me.Z)(tt,et),En=ke(),Rt=(0,ve.Z)(En,2),un=Rt[0],Dn=Rt[1],Wn=x.useRef(null),It=function(){if(!gt){var Yt;(Yt=Wn.current)===null||Yt===void 0||Yt.focus()}};x.useImperativeHandle(Nt,function(){return{focus:It,blur:function(){if(!gt){var Yt;(Yt=Wn.current)===null||Yt===void 0||Yt.blur()}}}});var Gt=(0,Fe.Z)(mn||0,{value:_t}),sn=(0,ve.Z)(Gt,2),yn=sn[0],Yn=sn[1],Br=(0,Fe.Z)(null),ti=(0,ve.Z)(Br,2),Ur=ti[0],Sr=ti[1],Jn=function(Yt,rn){var fn=Et==="rtl",Pt=Yt+1;if(pe){var en=un(Yt),Kt=Re(en),gn=en.clientWidth;(fn&&rn-Kt>gn/2||!fn&&rn-Kt<gn/2)&&(Pt-=.5)}return Pt},gr=function(Yt){Yn(Yt),$t==null||$t(Yt)},kr=x.useState(!1),Vr=(0,ve.Z)(kr,2),pi=Vr[0],Lr=Vr[1],tr=function(){Lr(!0),Wt==null||Wt()},Xn=function(){Lr(!1),wn==null||wn()},mr=x.useState(null),Qr=(0,ve.Z)(mr,2),ii=Qr[0],ai=Qr[1],oi=function(Yt,rn){var fn=Jn(rn,Yt.pageX);fn!==Ur&&(ai(fn),Sr(null)),lt==null||lt(fn)},li=function(Yt){gt||(ai(null),Sr(null),lt==null||lt(void 0)),Yt&&(tn==null||tn(Yt))},ji=function(Yt,rn){var fn=Jn(rn,Yt.pageX),Pt=!1;ee&&(Pt=fn===yn),li(),gr(Pt?0:fn),Sr(Pt?fn:null)},ki=function(Yt){var rn=Yt.keyCode,fn=Et==="rtl",Pt=pe?.5:1;le&&(rn===Te.Z.RIGHT&&yn<an&&!fn?(gr(yn+Pt),Yt.preventDefault()):rn===Te.Z.LEFT&&yn>0&&!fn||rn===Te.Z.RIGHT&&yn>0&&fn?(gr(yn-Pt),Yt.preventDefault()):rn===Te.Z.LEFT&&yn<an&&fn&&(gr(yn+Pt),Yt.preventDefault())),ln==null||ln(Yt)};x.useEffect(function(){Ct&&!gt&&It()},[]);var or=new Array(an).fill(0).map(function(Bi,Yt){return x.createElement(Ee,{ref:Dn(Yt),index:Yt,count:an,disabled:gt,prefixCls:"".concat(pn,"-star"),allowHalf:pe,value:ii===null?yn:ii,onClick:ji,onHover:oi,key:Bi||Yt,character:$e,characterRender:st,focused:pi})}),Hr=oe()(pn,kt,(0,Oe.Z)((0,Oe.Z)({},"".concat(pn,"-disabled"),gt),"".concat(pn,"-rtl"),Et==="rtl"));return x.createElement("ul",(0,ct.Z)({className:Hr,onMouseLeave:li,tabIndex:gt?-1:jt,onFocus:gt?null:tr,onBlur:gt?null:Xn,onKeyDown:gt?null:ki,ref:Wn},(0,ye.Z)(Qn,{aria:!0,data:!0,attr:!0})),or)}var ut=x.forwardRef(Ge),at=ut,ft=ae(48755),bt=ae(25399),He=ae(36237),pt=ae(63356),Ne=ae(16931),je=ae(51636);const Ot=tt=>{const{componentCls:Nt}=tt;return{[`${Nt}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:tt.marginXS},"> div":{transition:`all ${tt.motionDurationMid}, outline 0s`,"&:hover":{transform:tt.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,He.unit)(tt.lineWidth)} dashed ${tt.starColor}`,transform:tt.starHoverScale}},"&-first, &-second":{color:tt.starBg,transition:`all ${tt.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Nt}-star-first, &-half ${Nt}-star-second`]:{opacity:1},[`&-half ${Nt}-star-first, &-full ${Nt}-star-second`]:{color:"inherit"}}}},it=tt=>({[`&-rtl${tt.componentCls}`]:{direction:"rtl"}}),ht=tt=>{const{componentCls:Nt}=tt;return{[Nt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,pt.Wf)(tt)),{display:"inline-block",margin:0,padding:0,color:tt.starColor,fontSize:tt.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${Nt} ${Nt}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Ot(tt)),it(tt))}},Bt=tt=>({starColor:tt.yellow6,starSize:tt.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:tt.colorFillContent});var We=(0,Ne.I$)("Rate",tt=>{const Nt=(0,je.mergeToken)(tt,{});return[ht(Nt)]},Bt),_e=ae(2171),ot=function(tt,Nt){var Ut={};for(var pn in tt)Object.prototype.hasOwnProperty.call(tt,pn)&&Nt.indexOf(pn)<0&&(Ut[pn]=tt[pn]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,pn=Object.getOwnPropertySymbols(tt);kt<pn.length;kt++)Nt.indexOf(pn[kt])<0&&Object.prototype.propertyIsEnumerable.call(tt,pn[kt])&&(Ut[pn[kt]]=tt[pn[kt]]);return Ut},zt=x.forwardRef((tt,Nt)=>{const{prefixCls:Ut,className:pn,rootClassName:kt,style:mn,tooltips:_t,character:Cn=x.createElement(fe,null),disabled:an}=tt,de=ot(tt,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),pe=(Lt,jt)=>{let{index:Ct}=jt;return _t?x.createElement(bt.Z,{title:_t[Ct]},Lt):Lt},{getPrefixCls:ie,direction:ee,rate:se}=x.useContext(ft.E_),le=ie("rate",Ut),[Be,$e,st]=We(le),gt=Object.assign(Object.assign({},se==null?void 0:se.style),mn),mt=x.useContext(_e.Z),Et=an!=null?an:mt;return Be(x.createElement(at,Object.assign({ref:Nt,character:Cn,characterRender:pe,disabled:Et},de,{className:oe()(pn,kt,$e,st,se==null?void 0:se.className),style:gt,prefixCls:le,direction:ee})))})},82326:function(Vn,Mt,ae){"use strict";var x=ae(59301),ct=ae(92310),Le=ae.n(ct),Je=ae(37463),ze=ae(2738),Se=ae(75030),Ue=ae(86641),fe=ae(45915),Ce=ae(82855),oe=ae(48755),Oe=ae(38406),ve=ae(2171),Me=ae(83397),Fe=ae(31756),Te=ae(56553),ye=ae(24971),xe=ae(70045),Ee=ae(57700),ke=ae(1722),Ke=ae(90376),Qe=ae(68525),Re=ae(90005),et=function(bt,He){var pt={};for(var Ne in bt)Object.prototype.hasOwnProperty.call(bt,Ne)&&He.indexOf(Ne)<0&&(pt[Ne]=bt[Ne]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ne=Object.getOwnPropertySymbols(bt);je<Ne.length;je++)He.indexOf(Ne[je])<0&&Object.prototype.propertyIsEnumerable.call(bt,Ne[je])&&(pt[Ne[je]]=bt[Ne[je]]);return pt};const Ge="SECRET_COMBOBOX_MODE_DO_NOT_USE",ut=(bt,He)=>{var pt;const{prefixCls:Ne,bordered:je,className:Ot,rootClassName:it,getPopupContainer:ht,popupClassName:Bt,dropdownClassName:We,listHeight:_e=256,placement:ot,listItemHeight:Zt,size:zt,disabled:tt,notFoundContent:Nt,status:Ut,builtinPlacements:pn,dropdownMatchSelectWidth:kt,popupMatchSelectWidth:mn,direction:_t,style:Cn,allowClear:an,variant:de,dropdownStyle:pe,transitionName:ie,tagRender:ee,maxCount:se,prefix:le}=bt,Be=et(bt,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:$e,getPrefixCls:st,renderEmpty:gt,direction:mt,virtual:Et,popupMatchSelectWidth:Lt,popupOverflow:jt}=x.useContext(oe.E_),Ct=(0,oe.dj)("select"),[,lt]=(0,Ee.ZP)(),$t=Zt!=null?Zt:lt==null?void 0:lt.controlHeight,Wt=st("select",Ne),wn=st(),ln=_t!=null?_t:mt,{compactSize:tn,compactItemClassnames:Qn}=(0,xe.ri)(Wt,ln),[En,Rt]=(0,ye.Z)("select",de,je),un=(0,Me.Z)(Wt),[Dn,Wn,It]=(0,Ke.Z)(Wt,un),Gt=x.useMemo(()=>{const{mode:ki}=bt;if(ki!=="combobox")return ki===Ge?"combobox":ki},[bt.mode]),sn=Gt==="multiple"||Gt==="tags",yn=(0,Re.Z)(bt.suffixIcon,bt.showArrow),Yn=(pt=mn!=null?mn:kt)!==null&&pt!==void 0?pt:Lt,{status:Br,hasFeedback:ti,isFormItemInput:Ur,feedbackIcon:Sr}=x.useContext(Te.aM),Jn=(0,Ce.F)(Br,Ut);let gr;Nt!==void 0?gr=Nt:Gt==="combobox"?gr=null:gr=(gt==null?void 0:gt("Select"))||x.createElement(Oe.Z,{componentName:"Select"});const{suffixIcon:kr,itemIcon:Vr,removeIcon:pi,clearIcon:Lr}=(0,Qe.Z)(Object.assign(Object.assign({},Be),{multiple:sn,hasFeedback:ti,feedbackIcon:Sr,showSuffixIcon:yn,prefixCls:Wt,componentName:"Select"})),tr=an===!0?{clearIcon:Lr}:an,Xn=(0,ze.Z)(Be,["suffixIcon","itemIcon"]),mr=Le()(Bt||We,{[`${Wt}-dropdown-${ln}`]:ln==="rtl"},it,It,un,Wn),Qr=(0,Fe.Z)(ki=>{var or;return(or=zt!=null?zt:tn)!==null&&or!==void 0?or:ki}),ii=x.useContext(ve.Z),ai=tt!=null?tt:ii,oi=Le()({[`${Wt}-lg`]:Qr==="large",[`${Wt}-sm`]:Qr==="small",[`${Wt}-rtl`]:ln==="rtl",[`${Wt}-${En}`]:Rt,[`${Wt}-in-form-item`]:Ur},(0,Ce.Z)(Wt,Jn,ti),Qn,Ct.className,Ot,it,It,un,Wn),li=x.useMemo(()=>ot!==void 0?ot:ln==="rtl"?"bottomRight":"bottomLeft",[ot,ln]),[ji]=(0,Se.Cn)("SelectLike",pe==null?void 0:pe.zIndex);return Dn(x.createElement(Je.ZP,Object.assign({ref:He,virtual:Et,showSearch:Ct.showSearch},Xn,{style:Object.assign(Object.assign({},Ct.style),Cn),dropdownMatchSelectWidth:Yn,transitionName:(0,Ue.m)(wn,"slide-up",ie),builtinPlacements:(0,ke.Z)(pn,jt),listHeight:_e,listItemHeight:$t,mode:Gt,prefixCls:Wt,placement:li,direction:ln,prefix:le,suffixIcon:kr,menuItemSelectedIcon:Vr,removeIcon:pi,allowClear:tr,notFoundContent:gr,className:oi,getPopupContainer:ht||$e,dropdownClassName:mr,disabled:ai,dropdownStyle:Object.assign(Object.assign({},pe),{zIndex:ji}),maxCount:sn?se:void 0,tagRender:sn?ee:void 0})))},at=x.forwardRef(ut),ft=(0,fe.Z)(at,"dropdownAlign");at.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ge,at.Option=Je.Wx,at.OptGroup=Je.Xo,at._InternalPanelDoNotUseOrYouWillBeFired=ft,Mt.default=at},1722:function(Vn,Mt){"use strict";const ae=ct=>{const Je={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:ct==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},Je),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Je),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Je),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Je),{points:["br","tr"],offset:[0,-4]})}};function x(ct,Le){return ct||ae(Le)}Mt.Z=x},90376:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Ne}});var x=ae(63356),ct=ae(56119),Le=ae(16931),Je=ae(51636),ze=ae(46e3),Se=ae(93873);const Ue=je=>{const{optionHeight:Ot,optionFontSize:it,optionLineHeight:ht,optionPadding:Bt}=je;return{position:"relative",display:"block",minHeight:Ot,padding:Bt,color:je.colorText,fontWeight:"normal",fontSize:it,lineHeight:ht,boxSizing:"border-box"}};var Ce=je=>{const{antCls:Ot,componentCls:it}=je,ht=`${it}-item`,Bt=`&${Ot}-slide-up-enter${Ot}-slide-up-enter-active`,We=`&${Ot}-slide-up-appear${Ot}-slide-up-appear-active`,_e=`&${Ot}-slide-up-leave${Ot}-slide-up-leave-active`,ot=`${it}-dropdown-placement-`,Zt=`${ht}-option-selected`;return[{[`${it}-dropdown`]:Object.assign(Object.assign({},(0,x.Wf)(je)),{position:"absolute",top:-9999,zIndex:je.zIndexPopup,boxSizing:"border-box",padding:je.paddingXXS,overflow:"hidden",fontSize:je.fontSize,fontVariant:"initial",backgroundColor:je.colorBgElevated,borderRadius:je.borderRadiusLG,outline:"none",boxShadow:je.boxShadowSecondary,[`
${Bt}${ot}bottomLeft,
${We}${ot}bottomLeft
`]:{animationName:ze.fJ},[`
${Bt}${ot}topLeft,
${We}${ot}topLeft,
${Bt}${ot}topRight,
${We}${ot}topRight
`]:{animationName:ze.Qt},[`${_e}${ot}bottomLeft`]:{animationName:ze.Uw},[`
${_e}${ot}topLeft,
${_e}${ot}topRight
`]:{animationName:ze.ly},"&-hidden":{display:"none"},[ht]:Object.assign(Object.assign({},Ue(je)),{cursor:"pointer",transition:`background ${je.motionDurationSlow} ease`,borderRadius:je.borderRadiusSM,"&-group":{color:je.colorTextDescription,fontSize:je.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},x.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${ht}-option-disabled)`]:{backgroundColor:je.optionActiveBg},[`&-selected:not(${ht}-option-disabled)`]:{color:je.optionSelectedColor,fontWeight:je.optionSelectedFontWeight,backgroundColor:je.optionSelectedBg,[`${ht}-option-state`]:{color:je.colorPrimary}},"&-disabled":{[`&${ht}-option-selected`]:{backgroundColor:je.colorBgContainerDisabled},color:je.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:je.calc(je.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Ue(je)),{color:je.colorTextDisabled})}),[`${Zt}:has(+ ${Zt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Zt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,ze.oN)(je,"slide-up"),(0,ze.oN)(je,"slide-down"),(0,Se.Fm)(je,"move-up"),(0,Se.Fm)(je,"move-down")]},oe=ae(26743),Oe=ae(36237);function ve(je,Ot){const{componentCls:it,inputPaddingHorizontalBase:ht,borderRadius:Bt}=je,We=je.calc(je.controlHeight).sub(je.calc(je.lineWidth).mul(2)).equal(),_e=Ot?`${it}-${Ot}`:"";return{[`${it}-single${_e}`]:{fontSize:je.fontSize,height:je.controlHeight,[`${it}-selector`]:Object.assign(Object.assign({},(0,x.Wf)(je,!0)),{display:"flex",borderRadius:Bt,flex:"1 1 auto",[`${it}-selection-wrap:after`]:{lineHeight:(0,Oe.unit)(We)},[`${it}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${it}-selection-item,
${it}-selection-placeholder
`]:{display:"block",padding:0,lineHeight:(0,Oe.unit)(We),transition:`all ${je.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${it}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${it}-selection-item:empty:after`,`${it}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${it}-show-arrow ${it}-selection-item,
&${it}-show-arrow ${it}-selection-search,
&${it}-show-arrow ${it}-selection-placeholder
`]:{paddingInlineEnd:je.showArrowPaddingInlineEnd},[`&${it}-open ${it}-selection-item`]:{color:je.colorTextPlaceholder},[`&:not(${it}-customize-input)`]:{[`${it}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,Oe.unit)(ht)}`,[`${it}-selection-search-input`]:{height:We,fontSize:je.fontSize},"&:after":{lineHeight:(0,Oe.unit)(We)}}},[`&${it}-customize-input`]:{[`${it}-selector`]:{"&:after":{display:"none"},[`${it}-selection-search`]:{position:"static",width:"100%"},[`${it}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,Oe.unit)(ht)}`,"&:after":{display:"none"}}}}}}}function Me(je){const{componentCls:Ot}=je,it=je.calc(je.controlPaddingHorizontalSM).sub(je.lineWidth).equal();return[ve(je),ve((0,Je.mergeToken)(je,{controlHeight:je.controlHeightSM,borderRadius:je.borderRadiusSM}),"sm"),{[`${Ot}-single${Ot}-sm`]:{[`&:not(${Ot}-customize-input)`]:{[`${Ot}-selector`]:{padding:`0 ${(0,Oe.unit)(it)}`},[`&${Ot}-show-arrow ${Ot}-selection-search`]:{insetInlineEnd:je.calc(it).add(je.calc(je.fontSize).mul(1.5)).equal()},[`
&${Ot}-show-arrow ${Ot}-selection-item,
&${Ot}-show-arrow ${Ot}-selection-placeholder
`]:{paddingInlineEnd:je.calc(je.fontSize).mul(1.5).equal()}}}},ve((0,Je.mergeToken)(je,{controlHeight:je.singleItemHeightLG,fontSize:je.fontSizeLG,borderRadius:je.borderRadiusLG}),"lg")]}const Fe=je=>{const{fontSize:Ot,lineHeight:it,lineWidth:ht,controlHeight:Bt,controlHeightSM:We,controlHeightLG:_e,paddingXXS:ot,controlPaddingHorizontal:Zt,zIndexPopupBase:zt,colorText:tt,fontWeightStrong:Nt,controlItemBgActive:Ut,controlItemBgHover:pn,colorBgContainer:kt,colorFillSecondary:mn,colorBgContainerDisabled:_t,colorTextDisabled:Cn,colorPrimaryHover:an,colorPrimary:de,controlOutline:pe}=je,ie=ot*2,ee=ht*2,se=Math.min(Bt-ie,Bt-ee),le=Math.min(We-ie,We-ee),Be=Math.min(_e-ie,_e-ee);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(ot/2),zIndexPopup:zt+50,optionSelectedColor:tt,optionSelectedFontWeight:Nt,optionSelectedBg:Ut,optionActiveBg:pn,optionPadding:`${(Bt-Ot*it)/2}px ${Zt}px`,optionFontSize:Ot,optionLineHeight:it,optionHeight:Bt,selectorBg:kt,clearBg:kt,singleItemHeightLG:_e,multipleItemBg:mn,multipleItemBorderColor:"transparent",multipleItemHeight:se,multipleItemHeightSM:le,multipleItemHeightLG:Be,multipleSelectorBgDisabled:_t,multipleItemColorDisabled:Cn,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(je.fontSize*1.25),hoverBorderColor:an,activeBorderColor:de,activeOutlineColor:pe,selectAffixPadding:ot}},Te=(je,Ot)=>{const{componentCls:it,antCls:ht,controlOutlineWidth:Bt}=je;return{[`&:not(${it}-customize-input) ${it}-selector`]:{border:`${(0,Oe.unit)(je.lineWidth)} ${je.lineType} ${Ot.borderColor}`,background:je.selectorBg},[`&:not(${it}-disabled):not(${it}-customize-input):not(${ht}-pagination-size-changer)`]:{[`&:hover ${it}-selector`]:{borderColor:Ot.hoverBorderHover},[`${it}-focused& ${it}-selector`]:{borderColor:Ot.activeBorderColor,boxShadow:`0 0 0 ${(0,Oe.unit)(Bt)} ${Ot.activeOutlineColor}`,outline:0},[`${it}-prefix`]:{color:Ot.color}}}},ye=(je,Ot)=>({[`&${je.componentCls}-status-${Ot.status}`]:Object.assign({},Te(je,Ot))}),xe=je=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Te(je,{borderColor:je.colorBorder,hoverBorderHover:je.hoverBorderColor,activeBorderColor:je.activeBorderColor,activeOutlineColor:je.activeOutlineColor,color:je.colorText})),ye(je,{status:"error",borderColor:je.colorError,hoverBorderHover:je.colorErrorHover,activeBorderColor:je.colorError,activeOutlineColor:je.colorErrorOutline,color:je.colorError})),ye(je,{status:"warning",borderColor:je.colorWarning,hoverBorderHover:je.colorWarningHover,activeBorderColor:je.colorWarning,activeOutlineColor:je.colorWarningOutline,color:je.colorWarning})),{[`&${je.componentCls}-disabled`]:{[`&:not(${je.componentCls}-customize-input) ${je.componentCls}-selector`]:{background:je.colorBgContainerDisabled,color:je.colorTextDisabled}},[`&${je.componentCls}-multiple ${je.componentCls}-selection-item`]:{background:je.multipleItemBg,border:`${(0,Oe.unit)(je.lineWidth)} ${je.lineType} ${je.multipleItemBorderColor}`}})}),Ee=(je,Ot)=>{const{componentCls:it,antCls:ht}=je;return{[`&:not(${it}-customize-input) ${it}-selector`]:{background:Ot.bg,border:`${(0,Oe.unit)(je.lineWidth)} ${je.lineType} transparent`,color:Ot.color},[`&:not(${it}-disabled):not(${it}-customize-input):not(${ht}-pagination-size-changer)`]:{[`&:hover ${it}-selector`]:{background:Ot.hoverBg},[`${it}-focused& ${it}-selector`]:{background:je.selectorBg,borderColor:Ot.activeBorderColor,outline:0}}}},ke=(je,Ot)=>({[`&${je.componentCls}-status-${Ot.status}`]:Object.assign({},Ee(je,Ot))}),Ke=je=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Ee(je,{bg:je.colorFillTertiary,hoverBg:je.colorFillSecondary,activeBorderColor:je.activeBorderColor,color:je.colorText})),ke(je,{status:"error",bg:je.colorErrorBg,hoverBg:je.colorErrorBgHover,activeBorderColor:je.colorError,color:je.colorError})),ke(je,{status:"warning",bg:je.colorWarningBg,hoverBg:je.colorWarningBgHover,activeBorderColor:je.colorWarning,color:je.colorWarning})),{[`&${je.componentCls}-disabled`]:{[`&:not(${je.componentCls}-customize-input) ${je.componentCls}-selector`]:{borderColor:je.colorBorder,background:je.colorBgContainerDisabled,color:je.colorTextDisabled}},[`&${je.componentCls}-multiple ${je.componentCls}-selection-item`]:{background:je.colorBgContainer,border:`${(0,Oe.unit)(je.lineWidth)} ${je.lineType} ${je.colorSplit}`}})}),Qe=je=>({"&-borderless":{[`${je.componentCls}-selector`]:{background:"transparent",border:`${(0,Oe.unit)(je.lineWidth)} ${je.lineType} transparent`},[`&${je.componentCls}-disabled`]:{[`&:not(${je.componentCls}-customize-input) ${je.componentCls}-selector`]:{color:je.colorTextDisabled}},[`&${je.componentCls}-multiple ${je.componentCls}-selection-item`]:{background:je.multipleItemBg,border:`${(0,Oe.unit)(je.lineWidth)} ${je.lineType} ${je.multipleItemBorderColor}`},[`&${je.componentCls}-status-error`]:{[`${je.componentCls}-prefix, ${je.componentCls}-selection-item`]:{color:je.colorError}},[`&${je.componentCls}-status-warning`]:{[`${je.componentCls}-prefix, ${je.componentCls}-selection-item`]:{color:je.colorWarning}}}}),Re=(je,Ot)=>{const{componentCls:it,antCls:ht}=je;return{[`&:not(${it}-customize-input) ${it}-selector`]:{borderWidth:`0 0 ${(0,Oe.unit)(je.lineWidth)} 0`,borderStyle:`none none ${je.lineType} none`,borderColor:Ot.borderColor,background:je.selectorBg,borderRadius:0},[`&:not(${it}-disabled):not(${it}-customize-input):not(${ht}-pagination-size-changer)`]:{[`&:hover ${it}-selector`]:{borderColor:Ot.hoverBorderHover},[`${it}-focused& ${it}-selector`]:{borderColor:Ot.activeBorderColor,outline:0},[`${it}-prefix`]:{color:Ot.color}}}},et=(je,Ot)=>({[`&${je.componentCls}-status-${Ot.status}`]:Object.assign({},Re(je,Ot))}),Ge=je=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Re(je,{borderColor:je.colorBorder,hoverBorderHover:je.hoverBorderColor,activeBorderColor:je.activeBorderColor,activeOutlineColor:je.activeOutlineColor,color:je.colorText})),et(je,{status:"error",borderColor:je.colorError,hoverBorderHover:je.colorErrorHover,activeBorderColor:je.colorError,activeOutlineColor:je.colorErrorOutline,color:je.colorError})),et(je,{status:"warning",borderColor:je.colorWarning,hoverBorderHover:je.colorWarningHover,activeBorderColor:je.colorWarning,activeOutlineColor:je.colorWarningOutline,color:je.colorWarning})),{[`&${je.componentCls}-disabled`]:{[`&:not(${je.componentCls}-customize-input) ${je.componentCls}-selector`]:{color:je.colorTextDisabled}},[`&${je.componentCls}-multiple ${je.componentCls}-selection-item`]:{background:je.multipleItemBg,border:`${(0,Oe.unit)(je.lineWidth)} ${je.lineType} ${je.multipleItemBorderColor}`}})});var at=je=>({[je.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},xe(je)),Ke(je)),Qe(je)),Ge(je))});const ft=je=>{const{componentCls:Ot}=je;return{position:"relative",transition:`all ${je.motionDurationMid} ${je.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ot}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Ot}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},bt=je=>{const{componentCls:Ot}=je;return{[`${Ot}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},He=je=>{const{antCls:Ot,componentCls:it,inputPaddingHorizontalBase:ht,iconCls:Bt}=je;return{[it]:Object.assign(Object.assign({},(0,x.Wf)(je)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${it}-customize-input) ${it}-selector`]:Object.assign(Object.assign({},ft(je)),bt(je)),[`${it}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},x.vS),{[`> ${Ot}-typography`]:{display:"inline"}}),[`${it}-selection-placeholder`]:Object.assign(Object.assign({},x.vS),{flex:1,color:je.colorTextPlaceholder,pointerEvents:"none"}),[`${it}-arrow`]:Object.assign(Object.assign({},(0,x.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:ht,height:je.fontSizeIcon,marginTop:je.calc(je.fontSizeIcon).mul(-1).div(2).equal(),color:je.colorTextQuaternary,fontSize:je.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${je.motionDurationSlow} ease`,[Bt]:{verticalAlign:"top",transition:`transform ${je.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${it}-suffix)`]:{pointerEvents:"auto"}},[`${it}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${it}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${it}-prefix`]:{flex:"none",marginInlineEnd:je.selectAffixPadding},[`${it}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:ht,zIndex:1,display:"inline-block",width:je.fontSizeIcon,height:je.fontSizeIcon,marginTop:je.calc(je.fontSizeIcon).mul(-1).div(2).equal(),color:je.colorTextQuaternary,fontSize:je.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${je.motionDurationMid} ease, opacity ${je.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:je.colorTextTertiary}},[`&:hover ${it}-clear`]:{opacity:1,background:je.colorBgBase,borderRadius:"50%"}}),[`${it}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${it}-has-feedback`]:{[`${it}-clear`]:{insetInlineEnd:je.calc(ht).add(je.fontSize).add(je.paddingXS).equal()}}}}}},pt=je=>{const{componentCls:Ot}=je;return[{[Ot]:{[`&${Ot}-in-form-item`]:{width:"100%"}}},He(je),Me(je),(0,oe.ZP)(je),Ce(je),{[`${Ot}-rtl`]:{direction:"rtl"}},(0,ct.c)(je,{borderElCls:`${Ot}-selector`,focusElCls:`${Ot}-focused`})]};var Ne=(0,Le.I$)("Select",(je,Ot)=>{let{rootPrefixCls:it}=Ot;const ht=(0,Je.mergeToken)(je,{rootPrefixCls:it,inputPaddingHorizontalBase:je.calc(je.paddingSM).sub(1).equal(),multipleSelectItemHeight:je.multipleItemHeight,selectHeight:je.controlHeight});return[pt(ht),at(ht)]},Fe,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(Vn,Mt,ae){"use strict";ae.d(Mt,{_z:function(){return Se},gp:function(){return Je}});var x=ae(36237),ct=ae(63356),Le=ae(51636);const Je=oe=>{const{multipleSelectItemHeight:Oe,paddingXXS:ve,lineWidth:Me,INTERNAL_FIXED_ITEM_MARGIN:Fe}=oe,Te=oe.max(oe.calc(ve).sub(Me).equal(),0),ye=oe.max(oe.calc(Te).sub(Fe).equal(),0);return{basePadding:Te,containerPadding:ye,itemHeight:(0,x.unit)(Oe),itemLineHeight:(0,x.unit)(oe.calc(Oe).sub(oe.calc(oe.lineWidth).mul(2)).equal())}},ze=oe=>{const{multipleSelectItemHeight:Oe,selectHeight:ve,lineWidth:Me}=oe;return oe.calc(ve).sub(Oe).div(2).sub(Me).equal()},Se=oe=>{const{componentCls:Oe,iconCls:ve,borderRadiusSM:Me,motionDurationSlow:Fe,paddingXS:Te,multipleItemColorDisabled:ye,multipleItemBorderColorDisabled:xe,colorIcon:Ee,colorIconHover:ke,INTERNAL_FIXED_ITEM_MARGIN:Ke}=oe;return{[`${Oe}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${Oe}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:Ke,borderRadius:Me,cursor:"default",transition:`font-size ${Fe}, line-height ${Fe}, height ${Fe}`,marginInlineEnd:oe.calc(Ke).mul(2).equal(),paddingInlineStart:Te,paddingInlineEnd:oe.calc(Te).div(2).equal(),[`${Oe}-disabled&`]:{color:ye,borderColor:xe,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:oe.calc(Te).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,ct.Ro)()),{display:"inline-flex",alignItems:"center",color:Ee,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${ve}`]:{verticalAlign:"-0.2em"},"&:hover":{color:ke}})}}}},Ue=(oe,Oe)=>{const{componentCls:ve,INTERNAL_FIXED_ITEM_MARGIN:Me}=oe,Fe=`${ve}-selection-overflow`,Te=oe.multipleSelectItemHeight,ye=ze(oe),xe=Oe?`${ve}-${Oe}`:"",Ee=Je(oe);return{[`${ve}-multiple${xe}`]:Object.assign(Object.assign({},Se(oe)),{[`${ve}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:Ee.basePadding,paddingBlock:Ee.containerPadding,borderRadius:oe.borderRadius,[`${ve}-disabled&`]:{background:oe.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,x.unit)(Me)} 0`,lineHeight:(0,x.unit)(Te),visibility:"hidden",content:'"\\a0"'}},[`${ve}-selection-item`]:{height:Ee.itemHeight,lineHeight:(0,x.unit)(Ee.itemLineHeight)},[`${ve}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,x.unit)(Te),marginBlock:Me}},[`${ve}-prefix`]:{marginInlineStart:oe.calc(oe.inputPaddingHorizontalBase).sub(Ee.basePadding).equal()},[`${Fe}-item + ${Fe}-item,
${ve}-prefix + ${ve}-selection-wrap
`]:{[`${ve}-selection-search`]:{marginInlineStart:0},[`${ve}-selection-placeholder`]:{insetInlineStart:0}},[`${Fe}-item-suffix`]:{minHeight:Ee.itemHeight,marginBlock:Me},[`${ve}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:oe.calc(oe.inputPaddingHorizontalBase).sub(ye).equal(),"\n &-input,\n &-mirror\n ":{height:Te,fontFamily:oe.fontFamily,lineHeight:(0,x.unit)(Te),transition:`all ${oe.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${ve}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:oe.calc(oe.inputPaddingHorizontalBase).sub(Ee.basePadding).equal(),insetInlineEnd:oe.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${oe.motionDurationSlow}`}})}};function fe(oe,Oe){const{componentCls:ve}=oe,Me=Oe?`${ve}-${Oe}`:"",Fe={[`${ve}-multiple${Me}`]:{fontSize:oe.fontSize,[`${ve}-selector`]:{[`${ve}-show-search&`]:{cursor:"text"}},[`
&${ve}-show-arrow ${ve}-selector,
&${ve}-allow-clear ${ve}-selector
`]:{paddingInlineEnd:oe.calc(oe.fontSizeIcon).add(oe.controlPaddingHorizontal).equal()}}};return[Ue(oe,Oe),Fe]}const Ce=oe=>{const{componentCls:Oe}=oe,ve=(0,Le.mergeToken)(oe,{selectHeight:oe.controlHeightSM,multipleSelectItemHeight:oe.multipleItemHeightSM,borderRadius:oe.borderRadiusSM,borderRadiusSM:oe.borderRadiusXS}),Me=(0,Le.mergeToken)(oe,{fontSize:oe.fontSizeLG,selectHeight:oe.controlHeightLG,multipleSelectItemHeight:oe.multipleItemHeightLG,borderRadius:oe.borderRadiusLG,borderRadiusSM:oe.borderRadius});return[fe(oe),fe(ve,"sm"),{[`${Oe}-multiple${Oe}-sm`]:{[`${Oe}-selection-placeholder`]:{insetInline:oe.calc(oe.controlPaddingHorizontalSM).sub(oe.lineWidth).equal()},[`${Oe}-selection-search`]:{marginInlineStart:2}}},fe(Me,"lg")]};Mt.ZP=Ce},68525:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return fe}});var x=ae(59301),ct=ae(40001),Le=ae(19248),Je=ae(99267),ze=ae(84105),Se=ae(58617),Ue=ae(47472);function fe(Ce){let{suffixIcon:oe,clearIcon:Oe,menuItemSelectedIcon:ve,removeIcon:Me,loading:Fe,multiple:Te,hasFeedback:ye,prefixCls:xe,showSuffixIcon:Ee,feedbackIcon:ke,showArrow:Ke,componentName:Qe}=Ce;const Re=Oe!=null?Oe:x.createElement(Le.Z,null),et=ft=>oe===null&&!ye&&!Ke?null:x.createElement(x.Fragment,null,Ee!==!1&&ft,ye&&ke);let Ge=null;if(oe!==void 0)Ge=et(oe);else if(Fe)Ge=et(x.createElement(Se.Z,{spin:!0}));else{const ft=`${xe}-suffix`;Ge=bt=>{let{open:He,showSearch:pt}=bt;return et(He&&pt?x.createElement(Ue.Z,{className:ft}):x.createElement(ze.Z,{className:ft}))}}let ut=null;ve!==void 0?ut=ve:Te?ut=x.createElement(ct.Z,null):ut=null;let at=null;return Me!==void 0?at=Me:at=x.createElement(Je.Z,null),{clearIcon:Re,suffixIcon:Ge,itemIcon:ut,removeIcon:at}}},90005:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return x}});function x(ct,Le){return Le!==void 0?Le:ct!==null}},11938:function(Vn,Mt,ae){"use strict";ae.d(Mt,{default:function(){return bt}});var x=ae(59301),ct=ae(40192),Le=ae(22703),Je=ae(92310),ze=ae.n(Je),Se=ae(26112),Ue=ae(48755),fe=ae(458),oe=He=>{const{value:pt,formatter:Ne,precision:je,decimalSeparator:Ot,groupSeparator:it="",prefixCls:ht}=He;let Bt;if(typeof Ne=="function")Bt=Ne(pt);else{const We=String(pt),_e=We.match(/^(-?)(\d*)(\.(\d+))?$/);if(!_e||We==="-")Bt=We;else{const ot=_e[1];let Zt=_e[2]||"0",zt=_e[4]||"";Zt=Zt.replace(/\B(?=(\d{3})+(?!\d))/g,it),typeof je=="number"&&(zt=zt.padEnd(je,"0").slice(0,je>0?je:0)),zt&&(zt=`${Ot}${zt}`),Bt=[x.createElement("span",{key:"int",className:`${ht}-content-value-int`},ot,Zt),zt&&x.createElement("span",{key:"decimal",className:`${ht}-content-value-decimal`},zt)]}}return x.createElement("span",{className:`${ht}-content-value`},Bt)},Oe=ae(63356),ve=ae(16931),Me=ae(51636);const Fe=He=>{const{componentCls:pt,marginXXS:Ne,padding:je,colorTextDescription:Ot,titleFontSize:it,colorTextHeading:ht,contentFontSize:Bt,fontFamily:We}=He;return{[pt]:Object.assign(Object.assign({},(0,Oe.Wf)(He)),{[`${pt}-title`]:{marginBottom:Ne,color:Ot,fontSize:it},[`${pt}-skeleton`]:{paddingTop:je},[`${pt}-content`]:{color:ht,fontSize:Bt,fontFamily:We,[`${pt}-content-value`]:{display:"inline-block",direction:"ltr"},[`${pt}-content-prefix, ${pt}-content-suffix`]:{display:"inline-block"},[`${pt}-content-prefix`]:{marginInlineEnd:Ne},[`${pt}-content-suffix`]:{marginInlineStart:Ne}}})}},Te=He=>{const{fontSizeHeading3:pt,fontSize:Ne}=He;return{titleFontSize:Ne,contentFontSize:pt}};var ye=(0,ve.I$)("Statistic",He=>{const pt=(0,Me.mergeToken)(He,{});return[Fe(pt)]},Te),xe=function(He,pt){var Ne={};for(var je in He)Object.prototype.hasOwnProperty.call(He,je)&&pt.indexOf(je)<0&&(Ne[je]=He[je]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,je=Object.getOwnPropertySymbols(He);Ot<je.length;Ot++)pt.indexOf(je[Ot])<0&&Object.prototype.propertyIsEnumerable.call(He,je[Ot])&&(Ne[je[Ot]]=He[je[Ot]]);return Ne},ke=He=>{const{prefixCls:pt,className:Ne,rootClassName:je,style:Ot,valueStyle:it,value:ht=0,title:Bt,valueRender:We,prefix:_e,suffix:ot,loading:Zt=!1,formatter:zt,precision:tt,decimalSeparator:Nt=".",groupSeparator:Ut=",",onMouseEnter:pn,onMouseLeave:kt}=He,mn=xe(He,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:_t,direction:Cn,className:an,style:de}=(0,Ue.dj)("statistic"),pe=_t("statistic",pt),[ie,ee,se]=ye(pe),le=x.createElement(oe,{decimalSeparator:Nt,groupSeparator:Ut,prefixCls:pe,formatter:zt,precision:tt,value:ht}),Be=ze()(pe,{[`${pe}-rtl`]:Cn==="rtl"},an,Ne,je,ee,se),$e=(0,Se.Z)(mn,{aria:!0,data:!0});return ie(x.createElement("div",Object.assign({},$e,{className:Be,style:Object.assign(Object.assign({},de),Ot),onMouseEnter:pn,onMouseLeave:kt}),Bt&&x.createElement("div",{className:`${pe}-title`},Bt),x.createElement(fe.Z,{paragraph:!1,loading:Zt,className:`${pe}-skeleton`},x.createElement("div",{style:it,className:`${pe}-content`},_e&&x.createElement("span",{className:`${pe}-content-prefix`},_e),We?We(le):le,ot&&x.createElement("span",{className:`${pe}-content-suffix`},ot)))))};const Ke=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function Qe(He,pt){let Ne=He;const je=/\[[^\]]*]/g,Ot=(pt.match(je)||[]).map(We=>We.slice(1,-1)),it=pt.replace(je,"[]"),ht=Ke.reduce((We,_e)=>{let[ot,Zt]=_e;if(We.includes(ot)){const zt=Math.floor(Ne/Zt);return Ne-=zt*Zt,We.replace(new RegExp(`${ot}+`,"g"),tt=>{const Nt=tt.length;return zt.toString().padStart(Nt,"0")})}return We},it);let Bt=0;return ht.replace(je,()=>{const We=Ot[Bt];return Bt+=1,We})}function Re(He,pt){const{format:Ne=""}=pt,je=new Date(He).getTime(),Ot=Date.now(),it=Math.max(je-Ot,0);return Qe(it,Ne)}var et=function(He,pt){var Ne={};for(var je in He)Object.prototype.hasOwnProperty.call(He,je)&&pt.indexOf(je)<0&&(Ne[je]=He[je]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,je=Object.getOwnPropertySymbols(He);Ot<je.length;Ot++)pt.indexOf(je[Ot])<0&&Object.prototype.propertyIsEnumerable.call(He,je[Ot])&&(Ne[je[Ot]]=He[je[Ot]]);return Ne};const Ge=1e3/30;function ut(He){return new Date(He).getTime()}const at=He=>{const{value:pt,format:Ne="HH:mm:ss",onChange:je,onFinish:Ot}=He,it=et(He,["value","format","onChange","onFinish"]),ht=(0,ct.Z)(),Bt=x.useRef(null),We=()=>{Ot==null||Ot(),Bt.current&&(clearInterval(Bt.current),Bt.current=null)},_e=()=>{const zt=ut(pt);zt>=Date.now()&&(Bt.current=setInterval(()=>{ht(),je==null||je(zt-Date.now()),zt<Date.now()&&We()},Ge))};x.useEffect(()=>(_e(),()=>{Bt.current&&(clearInterval(Bt.current),Bt.current=null)}),[pt]);const ot=(zt,tt)=>Re(zt,Object.assign(Object.assign({},tt),{format:Ne})),Zt=zt=>(0,Le.Tm)(zt,{title:void 0});return x.createElement(ke,Object.assign({},it,{value:pt,valueRender:Zt,formatter:ot}))};var ft=x.memo(at);ke.Countdown=ft;var bt=ke},58755:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Ot}});var x=ae(59301),ct=ae(58617),Le=ae(92310),Je=ae.n(Le),ze=ae(54476),Se=ae(20068),Ue=ae(42978),fe=ae(75931),Ce=ae(18929),oe=ae(10228),Oe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ve=x.forwardRef(function(it,ht){var Bt,We=it.prefixCls,_e=We===void 0?"rc-switch":We,ot=it.className,Zt=it.checked,zt=it.defaultChecked,tt=it.disabled,Nt=it.loadingIcon,Ut=it.checkedChildren,pn=it.unCheckedChildren,kt=it.onClick,mn=it.onChange,_t=it.onKeyDown,Cn=(0,fe.Z)(it,Oe),an=(0,Ce.Z)(!1,{value:Zt,defaultValue:zt}),de=(0,Ue.Z)(an,2),pe=de[0],ie=de[1];function ee($e,st){var gt=pe;return tt||(gt=$e,ie(gt),mn==null||mn(gt,st)),gt}function se($e){$e.which===oe.Z.LEFT?ee(!1,$e):$e.which===oe.Z.RIGHT&&ee(!0,$e),_t==null||_t($e)}function le($e){var st=ee(!pe,$e);kt==null||kt(st,$e)}var Be=Je()(_e,ot,(Bt={},(0,Se.Z)(Bt,"".concat(_e,"-checked"),pe),(0,Se.Z)(Bt,"".concat(_e,"-disabled"),tt),Bt));return x.createElement("button",(0,ze.Z)({},Cn,{type:"button",role:"switch","aria-checked":pe,disabled:tt,className:Be,ref:ht,onKeyDown:se,onClick:le}),Nt,x.createElement("span",{className:"".concat(_e,"-inner")},x.createElement("span",{className:"".concat(_e,"-inner-checked")},Ut),x.createElement("span",{className:"".concat(_e,"-inner-unchecked")},pn)))});ve.displayName="Switch";var Me=ve,Fe=ae(12919),Te=ae(48755),ye=ae(2171),xe=ae(31756),Ee=ae(36237),ke=ae(17835),Ke=ae(63356),Qe=ae(16931),Re=ae(51636);const et=it=>{const{componentCls:ht,trackHeightSM:Bt,trackPadding:We,trackMinWidthSM:_e,innerMinMarginSM:ot,innerMaxMarginSM:Zt,handleSizeSM:zt,calc:tt}=it,Nt=`${ht}-inner`,Ut=(0,Ee.unit)(tt(zt).add(tt(We).mul(2)).equal()),pn=(0,Ee.unit)(tt(Zt).mul(2).equal());return{[ht]:{[`&${ht}-small`]:{minWidth:_e,height:Bt,lineHeight:(0,Ee.unit)(Bt),[`${ht}-inner`]:{paddingInlineStart:Zt,paddingInlineEnd:ot,[`${Nt}-checked, ${Nt}-unchecked`]:{minHeight:Bt},[`${Nt}-checked`]:{marginInlineStart:`calc(-100% + ${Ut} - ${pn})`,marginInlineEnd:`calc(100% - ${Ut} + ${pn})`},[`${Nt}-unchecked`]:{marginTop:tt(Bt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${ht}-handle`]:{width:zt,height:zt},[`${ht}-loading-icon`]:{top:tt(tt(zt).sub(it.switchLoadingIconSize)).div(2).equal(),fontSize:it.switchLoadingIconSize},[`&${ht}-checked`]:{[`${ht}-inner`]:{paddingInlineStart:ot,paddingInlineEnd:Zt,[`${Nt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Nt}-unchecked`]:{marginInlineStart:`calc(100% - ${Ut} + ${pn})`,marginInlineEnd:`calc(-100% + ${Ut} - ${pn})`}},[`${ht}-handle`]:{insetInlineStart:`calc(100% - ${(0,Ee.unit)(tt(zt).add(We).equal())})`}},[`&:not(${ht}-disabled):active`]:{[`&:not(${ht}-checked) ${Nt}`]:{[`${Nt}-unchecked`]:{marginInlineStart:tt(it.marginXXS).div(2).equal(),marginInlineEnd:tt(it.marginXXS).mul(-1).div(2).equal()}},[`&${ht}-checked ${Nt}`]:{[`${Nt}-checked`]:{marginInlineStart:tt(it.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:tt(it.marginXXS).div(2).equal()}}}}}}},Ge=it=>{const{componentCls:ht,handleSize:Bt,calc:We}=it;return{[ht]:{[`${ht}-loading-icon${it.iconCls}`]:{position:"relative",top:We(We(Bt).sub(it.fontSize)).div(2).equal(),color:it.switchLoadingIconColor,verticalAlign:"top"},[`&${ht}-checked ${ht}-loading-icon`]:{color:it.switchColor}}}},ut=it=>{const{componentCls:ht,trackPadding:Bt,handleBg:We,handleShadow:_e,handleSize:ot,calc:Zt}=it,zt=`${ht}-handle`;return{[ht]:{[zt]:{position:"absolute",top:Bt,insetInlineStart:Bt,width:ot,height:ot,transition:`all ${it.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:We,borderRadius:Zt(ot).div(2).equal(),boxShadow:_e,transition:`all ${it.switchDuration} ease-in-out`,content:'""'}},[`&${ht}-checked ${zt}`]:{insetInlineStart:`calc(100% - ${(0,Ee.unit)(Zt(ot).add(Bt).equal())})`},[`&:not(${ht}-disabled):active`]:{[`${zt}::before`]:{insetInlineEnd:it.switchHandleActiveInset,insetInlineStart:0},[`&${ht}-checked ${zt}::before`]:{insetInlineEnd:0,insetInlineStart:it.switchHandleActiveInset}}}}},at=it=>{const{componentCls:ht,trackHeight:Bt,trackPadding:We,innerMinMargin:_e,innerMaxMargin:ot,handleSize:Zt,calc:zt}=it,tt=`${ht}-inner`,Nt=(0,Ee.unit)(zt(Zt).add(zt(We).mul(2)).equal()),Ut=(0,Ee.unit)(zt(ot).mul(2).equal());return{[ht]:{[tt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:ot,paddingInlineEnd:_e,transition:`padding-inline-start ${it.switchDuration} ease-in-out, padding-inline-end ${it.switchDuration} ease-in-out`,[`${tt}-checked, ${tt}-unchecked`]:{display:"block",color:it.colorTextLightSolid,fontSize:it.fontSizeSM,transition:`margin-inline-start ${it.switchDuration} ease-in-out, margin-inline-end ${it.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:Bt},[`${tt}-checked`]:{marginInlineStart:`calc(-100% + ${Nt} - ${Ut})`,marginInlineEnd:`calc(100% - ${Nt} + ${Ut})`},[`${tt}-unchecked`]:{marginTop:zt(Bt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${ht}-checked ${tt}`]:{paddingInlineStart:_e,paddingInlineEnd:ot,[`${tt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${tt}-unchecked`]:{marginInlineStart:`calc(100% - ${Nt} + ${Ut})`,marginInlineEnd:`calc(-100% + ${Nt} - ${Ut})`}},[`&:not(${ht}-disabled):active`]:{[`&:not(${ht}-checked) ${tt}`]:{[`${tt}-unchecked`]:{marginInlineStart:zt(We).mul(2).equal(),marginInlineEnd:zt(We).mul(-1).mul(2).equal()}},[`&${ht}-checked ${tt}`]:{[`${tt}-checked`]:{marginInlineStart:zt(We).mul(-1).mul(2).equal(),marginInlineEnd:zt(We).mul(2).equal()}}}}}},ft=it=>{const{componentCls:ht,trackHeight:Bt,trackMinWidth:We}=it;return{[ht]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ke.Wf)(it)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:We,height:Bt,lineHeight:(0,Ee.unit)(Bt),verticalAlign:"middle",background:it.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${it.motionDurationMid}`,userSelect:"none",[`&:hover:not(${ht}-disabled)`]:{background:it.colorTextTertiary}}),(0,Ke.Qy)(it)),{[`&${ht}-checked`]:{background:it.switchColor,[`&:hover:not(${ht}-disabled)`]:{background:it.colorPrimaryHover}},[`&${ht}-loading, &${ht}-disabled`]:{cursor:"not-allowed",opacity:it.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${ht}-rtl`]:{direction:"rtl"}})}},bt=it=>{const{fontSize:ht,lineHeight:Bt,controlHeight:We,colorWhite:_e}=it,ot=ht*Bt,Zt=We/2,zt=2,tt=ot-zt*2,Nt=Zt-zt*2;return{trackHeight:ot,trackHeightSM:Zt,trackMinWidth:tt*2+zt*4,trackMinWidthSM:Nt*2+zt*2,trackPadding:zt,handleBg:_e,handleSize:tt,handleSizeSM:Nt,handleShadow:`0 2px 4px 0 ${new ke.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:tt/2,innerMaxMargin:tt+zt+zt*2,innerMinMarginSM:Nt/2,innerMaxMarginSM:Nt+zt+zt*2}};var He=(0,Qe.I$)("Switch",it=>{const ht=(0,Re.mergeToken)(it,{switchDuration:it.motionDurationMid,switchColor:it.colorPrimary,switchDisabledOpacity:it.opacityLoading,switchLoadingIconSize:it.calc(it.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${it.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ft(ht),at(ht),ut(ht),Ge(ht),et(ht)]},bt),pt=function(it,ht){var Bt={};for(var We in it)Object.prototype.hasOwnProperty.call(it,We)&&ht.indexOf(We)<0&&(Bt[We]=it[We]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,We=Object.getOwnPropertySymbols(it);_e<We.length;_e++)ht.indexOf(We[_e])<0&&Object.prototype.propertyIsEnumerable.call(it,We[_e])&&(Bt[We[_e]]=it[We[_e]]);return Bt};const je=x.forwardRef((it,ht)=>{const{prefixCls:Bt,size:We,disabled:_e,loading:ot,className:Zt,rootClassName:zt,style:tt,checked:Nt,value:Ut,defaultChecked:pn,defaultValue:kt,onChange:mn}=it,_t=pt(it,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Cn,an]=(0,Ce.Z)(!1,{value:Nt!=null?Nt:Ut,defaultValue:pn!=null?pn:kt}),{getPrefixCls:de,direction:pe,switch:ie}=x.useContext(Te.E_),ee=x.useContext(ye.Z),se=(_e!=null?_e:ee)||ot,le=de("switch",Bt),Be=x.createElement("div",{className:`${le}-handle`},ot&&x.createElement(ct.Z,{className:`${le}-loading-icon`})),[$e,st,gt]=He(le),mt=(0,xe.Z)(We),Et=Je()(ie==null?void 0:ie.className,{[`${le}-small`]:mt==="small",[`${le}-loading`]:ot,[`${le}-rtl`]:pe==="rtl"},Zt,zt,st,gt),Lt=Object.assign(Object.assign({},ie==null?void 0:ie.style),tt),jt=function(){an(arguments.length<=0?void 0:arguments[0]),mn==null||mn.apply(void 0,arguments)};return $e(x.createElement(Fe.Z,{component:"Switch"},x.createElement(Me,Object.assign({},_t,{checked:Cn,onChange:jt,prefixCls:le,className:Et,style:Lt,disabled:se,ref:ht,loadingIcon:Be}))))});je.__ANT_SWITCH=!0;var Ot=je},70858:function(Vn,Mt,ae){"use strict";ae.d(Mt,{default:function(){return hp}});var x=ae(59301),ct={},Le="rc-table-internal-hook",Je=ae(42978),ze=ae(6089),Se=ae(34280),Ue=ae(13697),fe=ae(4676);function Ce(wt){var yt=x.createContext(void 0),Vt=function(Fn){var kn=Fn.value,ar=Fn.children,qn=x.useRef(kn);qn.current=kn;var wr=x.useState(function(){return{getValue:function(){return qn.current},listeners:new Set}}),dr=(0,Je.Z)(wr,1),di=dr[0];return(0,Se.Z)(function(){(0,fe.unstable_batchedUpdates)(function(){di.listeners.forEach(function(Rr){Rr(kn)})})},[kn]),x.createElement(yt.Provider,{value:di},ar)};return{Context:yt,Provider:Vt,defaultValue:wt}}function oe(wt,yt){var Vt=(0,ze.Z)(typeof yt=="function"?yt:function(Rr){if(yt===void 0)return Rr;if(!Array.isArray(yt))return Rr[yt];var jr={};return yt.forEach(function(Dr){jr[Dr]=Rr[Dr]}),jr}),cn=x.useContext(wt==null?void 0:wt.Context),Fn=cn||{},kn=Fn.listeners,ar=Fn.getValue,qn=x.useRef();qn.current=Vt(cn?ar():wt==null?void 0:wt.defaultValue);var wr=x.useState({}),dr=(0,Je.Z)(wr,2),di=dr[1];return(0,Se.Z)(function(){if(!cn)return;function Rr(jr){var Dr=Vt(jr);(0,Ue.Z)(qn.current,Dr,!0)||di({})}return kn.add(Rr),function(){kn.delete(Rr)}},[cn]),qn.current}var Oe=ae(54476),ve=ae(8654);function Me(){var wt=x.createContext(null);function yt(){return x.useContext(wt)}function Vt(Fn,kn){var ar=(0,ve.Yr)(Fn),qn=function(dr,di){var Rr=ar?{ref:di}:{},jr=x.useRef(0),Dr=x.useRef(dr),Fr=yt();return Fr!==null?x.createElement(Fn,(0,Oe.Z)({},dr,Rr)):((!kn||kn(Dr.current,dr))&&(jr.current+=1),Dr.current=dr,x.createElement(wt.Provider,{value:jr.current},x.createElement(Fn,(0,Oe.Z)({},dr,Rr))))};return ar?x.forwardRef(qn):qn}function cn(Fn,kn){var ar=(0,ve.Yr)(Fn),qn=function(dr,di){var Rr=ar?{ref:di}:{};return yt(),x.createElement(Fn,(0,Oe.Z)({},dr,Rr))};return ar?x.memo(x.forwardRef(qn),kn):x.memo(qn,kn)}return{makeImmutable:Vt,responseImmutable:cn,useImmutableMark:yt}}var Fe=Me(),Te=Fe.makeImmutable,ye=Fe.responseImmutable,xe=Fe.useImmutableMark,Ee=Me(),ke=Ee.makeImmutable,Ke=Ee.responseImmutable,Qe=Ee.useImmutableMark,Re=Ce(),et=Re;function Ge(wt,yt){var Vt=React.useRef(0);Vt.current+=1;var cn=React.useRef(wt),Fn=[];Object.keys(wt||{}).map(function(ar){var qn;(wt==null?void 0:wt[ar])!==((qn=cn.current)===null||qn===void 0?void 0:qn[ar])&&Fn.push(ar)}),cn.current=wt;var kn=React.useRef([]);return Fn.length&&(kn.current=Fn),React.useDebugValue(Vt.current),React.useDebugValue(kn.current.join(", ")),yt&&console.log("".concat(yt,":"),Vt.current,kn.current),Vt.current}var ut=null,at=null,ft=ae(76190),bt=ae(33885),He=ae(20068),pt=ae(92310),Ne=ae.n(pt),je=ae(80547),Ot=ae(97938),it=ae(48736),ht=x.createContext({renderWithProps:!1}),Bt=ht,We="RC_TABLE_KEY";function _e(wt){return wt==null?[]:Array.isArray(wt)?wt:[wt]}function ot(wt){var yt=[],Vt={};return wt.forEach(function(cn){for(var Fn=cn||{},kn=Fn.key,ar=Fn.dataIndex,qn=kn||_e(ar).join("-")||We;Vt[qn];)qn="".concat(qn,"_next");Vt[qn]=!0,yt.push(qn)}),yt}function Zt(wt){return wt!=null}function zt(wt){return typeof wt=="number"&&!Number.isNaN(wt)}function tt(wt){return wt&&(0,ft.Z)(wt)==="object"&&!Array.isArray(wt)&&!x.isValidElement(wt)}function Nt(wt,yt,Vt,cn,Fn,kn){var ar=x.useContext(Bt),qn=Qe(),wr=(0,je.Z)(function(){if(Zt(cn))return[cn];var dr=yt==null||yt===""?[]:Array.isArray(yt)?yt:[yt],di=(0,Ot.Z)(wt,dr),Rr=di,jr=void 0;if(Fn){var Dr=Fn(di,wt,Vt);tt(Dr)?(Rr=Dr.children,jr=Dr.props,ar.renderWithProps=!0):Rr=Dr}return[Rr,jr]},[qn,wt,cn,yt,Fn,Vt],function(dr,di){if(kn){var Rr=(0,Je.Z)(dr,2),jr=Rr[1],Dr=(0,Je.Z)(di,2),Fr=Dr[1];return kn(Fr,jr)}return ar.renderWithProps?!0:!(0,Ue.Z)(dr,di,!0)});return wr}function Ut(wt,yt,Vt,cn){var Fn=wt+yt-1;return wt<=cn&&Fn>=Vt}function pn(wt,yt){return oe(et,function(Vt){var cn=Ut(wt,yt||1,Vt.hoverStartRow,Vt.hoverEndRow);return[cn,Vt.onHover]})}var kt=ae(70425),mn=function(yt){var Vt=yt.ellipsis,cn=yt.rowType,Fn=yt.children,kn,ar=Vt===!0?{showTitle:!0}:Vt;return ar&&(ar.showTitle||cn==="header")&&(typeof Fn=="string"||typeof Fn=="number"?kn=Fn.toString():x.isValidElement(Fn)&&typeof Fn.props.children=="string"&&(kn=Fn.props.children)),kn};function _t(wt){var yt,Vt,cn,Fn,kn,ar,qn,wr,dr=wt.component,di=wt.children,Rr=wt.ellipsis,jr=wt.scope,Dr=wt.prefixCls,Fr=wt.className,$i=wt.align,bi=wt.record,qi=wt.render,ao=wt.dataIndex,Ji=wt.renderIndex,fo=wt.shouldCellUpdate,Bo=wt.index,jo=wt.rowType,_o=wt.colSpan,La=wt.rowSpan,sa=wt.fixLeft,ea=wt.fixRight,zo=wt.firstFixLeft,Ho=wt.lastFixLeft,Qo=wt.firstFixRight,vo=wt.lastFixRight,co=wt.appendNode,To=wt.additionalProps,Wo=To===void 0?{}:To,na=wt.isSticky,Co="".concat(Dr,"-cell"),Ya=oe(et,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Ka=Ya.supportSticky,_l=Ya.allColumnsFixedLeft,El=Ya.rowHoverable,al=Nt(bi,ao,Ji,di,qi,fo),so=(0,Je.Z)(al,2),Jl=so[0],ss=so[1],rs={},il=typeof sa=="number"&&Ka,fu=typeof ea=="number"&&Ka;il&&(rs.position="sticky",rs.left=sa),fu&&(rs.position="sticky",rs.right=ea);var ra=(yt=(Vt=(cn=ss==null?void 0:ss.colSpan)!==null&&cn!==void 0?cn:Wo.colSpan)!==null&&Vt!==void 0?Vt:_o)!==null&&yt!==void 0?yt:1,Ca=(Fn=(kn=(ar=ss==null?void 0:ss.rowSpan)!==null&&ar!==void 0?ar:Wo.rowSpan)!==null&&kn!==void 0?kn:La)!==null&&Fn!==void 0?Fn:1,$o=pn(Bo,Ca),Oo=(0,Je.Z)($o,2),fs=Oo[0],Ss=Oo[1],Ws=(0,kt.zX)(function(Ys){var $s;bi&&Ss(Bo,Bo+Ca-1),Wo==null||($s=Wo.onMouseEnter)===null||$s===void 0||$s.call(Wo,Ys)}),Qs=(0,kt.zX)(function(Ys){var $s;bi&&Ss(-1,-1),Wo==null||($s=Wo.onMouseLeave)===null||$s===void 0||$s.call(Wo,Ys)});if(ra===0||Ca===0)return null;var sl=(qn=Wo.title)!==null&&qn!==void 0?qn:mn({rowType:jo,ellipsis:Rr,children:Jl}),pu=Ne()(Co,Fr,(wr={},(0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)(wr,"".concat(Co,"-fix-left"),il&&Ka),"".concat(Co,"-fix-left-first"),zo&&Ka),"".concat(Co,"-fix-left-last"),Ho&&Ka),"".concat(Co,"-fix-left-all"),Ho&&_l&&Ka),"".concat(Co,"-fix-right"),fu&&Ka),"".concat(Co,"-fix-right-first"),Qo&&Ka),"".concat(Co,"-fix-right-last"),vo&&Ka),"".concat(Co,"-ellipsis"),Rr),"".concat(Co,"-with-append"),co),"".concat(Co,"-fix-sticky"),(il||fu)&&na&&Ka),(0,He.Z)(wr,"".concat(Co,"-row-hover"),!ss&&fs)),Wo.className,ss==null?void 0:ss.className),la={};$i&&(la.textAlign=$i);var qo=(0,bt.Z)((0,bt.Z)((0,bt.Z)((0,bt.Z)({},ss==null?void 0:ss.style),rs),la),Wo.style),xs=Jl;return(0,ft.Z)(xs)==="object"&&!Array.isArray(xs)&&!x.isValidElement(xs)&&(xs=null),Rr&&(Ho||Qo)&&(xs=x.createElement("span",{className:"".concat(Co,"-content")},xs)),x.createElement(dr,(0,Oe.Z)({},ss,Wo,{className:pu,style:qo,title:sl,scope:jr,onMouseEnter:El?Ws:void 0,onMouseLeave:El?Qs:void 0,colSpan:ra!==1?ra:null,rowSpan:Ca!==1?Ca:null}),co,xs)}var Cn=x.memo(_t);function an(wt,yt,Vt,cn,Fn){var kn=Vt[wt]||{},ar=Vt[yt]||{},qn,wr;kn.fixed==="left"?qn=cn.left[Fn==="rtl"?yt:wt]:ar.fixed==="right"&&(wr=cn.right[Fn==="rtl"?wt:yt]);var dr=!1,di=!1,Rr=!1,jr=!1,Dr=Vt[yt+1],Fr=Vt[wt-1],$i=Dr&&!Dr.fixed||Fr&&!Fr.fixed||Vt.every(function(fo){return fo.fixed==="left"});if(Fn==="rtl"){if(qn!==void 0){var bi=Fr&&Fr.fixed==="left";jr=!bi&&$i}else if(wr!==void 0){var qi=Dr&&Dr.fixed==="right";Rr=!qi&&$i}}else if(qn!==void 0){var ao=Dr&&Dr.fixed==="left";dr=!ao&&$i}else if(wr!==void 0){var Ji=Fr&&Fr.fixed==="right";di=!Ji&&$i}return{fixLeft:qn,fixRight:wr,lastFixLeft:dr,firstFixRight:di,lastFixRight:Rr,firstFixLeft:jr,isSticky:cn.isSticky}}var de=x.createContext({}),pe=de;function ie(wt){var yt=wt.className,Vt=wt.index,cn=wt.children,Fn=wt.colSpan,kn=Fn===void 0?1:Fn,ar=wt.rowSpan,qn=wt.align,wr=oe(et,["prefixCls","direction"]),dr=wr.prefixCls,di=wr.direction,Rr=x.useContext(pe),jr=Rr.scrollColumnIndex,Dr=Rr.stickyOffsets,Fr=Rr.flattenColumns,$i=Vt+kn-1,bi=$i+1===jr?kn+1:kn,qi=an(Vt,Vt+bi-1,Fr,Dr,di);return x.createElement(Cn,(0,Oe.Z)({className:yt,index:Vt,component:"td",prefixCls:dr,record:null,dataIndex:null,align:qn,colSpan:bi,rowSpan:ar,render:function(){return cn}},qi))}var ee=ae(75931),se=["children"];function le(wt){var yt=wt.children,Vt=(0,ee.Z)(wt,se);return x.createElement("tr",Vt,yt)}function Be(wt){var yt=wt.children;return yt}Be.Row=le,Be.Cell=ie;var $e=Be;function st(wt){var yt=wt.children,Vt=wt.stickyOffsets,cn=wt.flattenColumns,Fn=oe(et,"prefixCls"),kn=cn.length-1,ar=cn[kn],qn=x.useMemo(function(){return{stickyOffsets:Vt,flattenColumns:cn,scrollColumnIndex:ar!=null&&ar.scrollbar?kn:null}},[ar,cn,kn,Vt]);return x.createElement(pe.Provider,{value:qn},x.createElement("tfoot",{className:"".concat(Fn,"-summary")},yt))}var gt=Ke(st),mt=$e,Et=ae(29301),Lt=ae(3465),jt=ae(75152),Ct=ae(26112);function lt(wt,yt,Vt,cn,Fn,kn,ar){wt.push({record:yt,indent:Vt,index:ar});var qn=kn(yt),wr=Fn==null?void 0:Fn.has(qn);if(yt&&Array.isArray(yt[cn])&&wr)for(var dr=0;dr<yt[cn].length;dr+=1)lt(wt,yt[cn][dr],Vt+1,cn,Fn,kn,dr)}function $t(wt,yt,Vt,cn){var Fn=x.useMemo(function(){if(Vt!=null&&Vt.size){for(var kn=[],ar=0;ar<(wt==null?void 0:wt.length);ar+=1){var qn=wt[ar];lt(kn,qn,0,yt,Vt,cn,ar)}return kn}return wt==null?void 0:wt.map(function(wr,dr){return{record:wr,indent:0,index:dr}})},[wt,yt,Vt,cn]);return Fn}function Wt(wt,yt,Vt,cn){var Fn=oe(et,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),kn=Fn.flattenColumns,ar=Fn.expandableType,qn=Fn.expandedKeys,wr=Fn.childrenColumnName,dr=Fn.onTriggerExpand,di=Fn.rowExpandable,Rr=Fn.onRow,jr=Fn.expandRowByClick,Dr=Fn.rowClassName,Fr=ar==="nest",$i=ar==="row"&&(!di||di(wt)),bi=$i||Fr,qi=qn&&qn.has(yt),ao=wr&&wt&&wt[wr],Ji=(0,kt.zX)(dr),fo=Rr==null?void 0:Rr(wt,Vt),Bo=fo==null?void 0:fo.onClick,jo=function(ea){jr&&bi&&dr(wt,ea);for(var zo=arguments.length,Ho=new Array(zo>1?zo-1:0),Qo=1;Qo<zo;Qo++)Ho[Qo-1]=arguments[Qo];Bo==null||Bo.apply(void 0,[ea].concat(Ho))},_o;typeof Dr=="string"?_o=Dr:typeof Dr=="function"&&(_o=Dr(wt,Vt,cn));var La=ot(kn);return(0,bt.Z)((0,bt.Z)({},Fn),{},{columnsKey:La,nestExpandable:Fr,expanded:qi,hasNestChildren:ao,record:wt,onTriggerExpand:Ji,rowSupportExpand:$i,expandable:bi,rowProps:(0,bt.Z)((0,bt.Z)({},fo),{},{className:Ne()(_o,fo==null?void 0:fo.className),onClick:jo})})}function wn(wt){var yt=wt.prefixCls,Vt=wt.children,cn=wt.component,Fn=wt.cellComponent,kn=wt.className,ar=wt.expanded,qn=wt.colSpan,wr=wt.isEmpty,dr=oe(et,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),di=dr.scrollbarSize,Rr=dr.fixHeader,jr=dr.fixColumn,Dr=dr.componentWidth,Fr=dr.horizonScroll,$i=Vt;return(wr?Fr&&Dr:jr)&&($i=x.createElement("div",{style:{width:Dr-(Rr&&!wr?di:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(yt,"-expanded-row-fixed")},$i)),x.createElement(cn,{className:kn,style:{display:ar?null:"none"}},x.createElement(Cn,{component:Fn,prefixCls:yt,colSpan:qn},$i))}var ln=wn;function tn(wt){var yt=wt.prefixCls,Vt=wt.record,cn=wt.onExpand,Fn=wt.expanded,kn=wt.expandable,ar="".concat(yt,"-row-expand-icon");if(!kn)return x.createElement("span",{className:Ne()(ar,"".concat(yt,"-row-spaced"))});var qn=function(dr){cn(Vt,dr),dr.stopPropagation()};return x.createElement("span",{className:Ne()(ar,(0,He.Z)((0,He.Z)({},"".concat(yt,"-row-expanded"),Fn),"".concat(yt,"-row-collapsed"),!Fn)),onClick:qn})}function Qn(wt,yt,Vt){var cn=[];function Fn(kn){(kn||[]).forEach(function(ar,qn){cn.push(yt(ar,qn)),Fn(ar[Vt])})}return Fn(wt),cn}function En(wt,yt,Vt,cn){return typeof wt=="string"?wt:typeof wt=="function"?wt(yt,Vt,cn):""}function Rt(wt,yt,Vt,cn,Fn){var kn=wt.record,ar=wt.prefixCls,qn=wt.columnsKey,wr=wt.fixedInfoList,dr=wt.expandIconColumnIndex,di=wt.nestExpandable,Rr=wt.indentSize,jr=wt.expandIcon,Dr=wt.expanded,Fr=wt.hasNestChildren,$i=wt.onTriggerExpand,bi=qn[Vt],qi=wr[Vt],ao;Vt===(dr||0)&&di&&(ao=x.createElement(x.Fragment,null,x.createElement("span",{style:{paddingLeft:"".concat(Rr*cn,"px")},className:"".concat(ar,"-row-indent indent-level-").concat(cn)}),jr({prefixCls:ar,expanded:Dr,expandable:Fr,record:kn,onExpand:$i})));var Ji;return yt.onCell&&(Ji=yt.onCell(kn,Fn)),{key:bi,fixedInfo:qi,appendCellNode:ao,additionalCellProps:Ji||{}}}function un(wt){var yt=wt.className,Vt=wt.style,cn=wt.record,Fn=wt.index,kn=wt.renderIndex,ar=wt.rowKey,qn=wt.indent,wr=qn===void 0?0:qn,dr=wt.rowComponent,di=wt.cellComponent,Rr=wt.scopeCellComponent,jr=Wt(cn,ar,Fn,wr),Dr=jr.prefixCls,Fr=jr.flattenColumns,$i=jr.expandedRowClassName,bi=jr.expandedRowRender,qi=jr.rowProps,ao=jr.expanded,Ji=jr.rowSupportExpand,fo=x.useRef(!1);fo.current||(fo.current=ao);var Bo=En($i,cn,Fn,wr),jo=x.createElement(dr,(0,Oe.Z)({},qi,{"data-row-key":ar,className:Ne()(yt,"".concat(Dr,"-row"),"".concat(Dr,"-row-level-").concat(wr),qi==null?void 0:qi.className,(0,He.Z)({},Bo,wr>=1)),style:(0,bt.Z)((0,bt.Z)({},Vt),qi==null?void 0:qi.style)}),Fr.map(function(sa,ea){var zo=sa.render,Ho=sa.dataIndex,Qo=sa.className,vo=Rt(jr,sa,ea,wr,Fn),co=vo.key,To=vo.fixedInfo,Wo=vo.appendCellNode,na=vo.additionalCellProps;return x.createElement(Cn,(0,Oe.Z)({className:Qo,ellipsis:sa.ellipsis,align:sa.align,scope:sa.rowScope,component:sa.rowScope?Rr:di,prefixCls:Dr,key:co,record:cn,index:Fn,renderIndex:kn,dataIndex:Ho,render:zo,shouldCellUpdate:sa.shouldCellUpdate},To,{appendNode:Wo,additionalProps:na}))})),_o;if(Ji&&(fo.current||ao)){var La=bi(cn,Fn,wr+1,ao);_o=x.createElement(ln,{expanded:ao,className:Ne()("".concat(Dr,"-expanded-row"),"".concat(Dr,"-expanded-row-level-").concat(wr+1),Bo),prefixCls:Dr,component:dr,cellComponent:di,colSpan:Fr.length,isEmpty:!1},La)}return x.createElement(x.Fragment,null,jo,_o)}var Dn=Ke(un);function Wn(wt){var yt=wt.columnKey,Vt=wt.onColumnResize,cn=x.useRef();return(0,Se.Z)(function(){cn.current&&Vt(yt,cn.current.offsetWidth)},[]),x.createElement(Et.Z,{data:yt},x.createElement("td",{ref:cn,style:{padding:0,border:0,height:0}},x.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var It=ae(29194);function Gt(wt){var yt=wt.prefixCls,Vt=wt.columnsKey,cn=wt.onColumnResize,Fn=x.useRef(null);return x.createElement("tr",{"aria-hidden":"true",className:"".concat(yt,"-measure-row"),style:{height:0,fontSize:0},ref:Fn},x.createElement(Et.Z.Collection,{onBatchResize:function(ar){(0,It.Z)(Fn.current)&&ar.forEach(function(qn){var wr=qn.data,dr=qn.size;cn(wr,dr.offsetWidth)})}},Vt.map(function(kn){return x.createElement(Wn,{key:kn,columnKey:kn,onColumnResize:cn})})))}function sn(wt){var yt=wt.data,Vt=wt.measureColumnWidth,cn=oe(et,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Fn=cn.prefixCls,kn=cn.getComponent,ar=cn.onColumnResize,qn=cn.flattenColumns,wr=cn.getRowKey,dr=cn.expandedKeys,di=cn.childrenColumnName,Rr=cn.emptyNode,jr=$t(yt,di,dr,wr),Dr=x.useRef({renderWithProps:!1}),Fr=kn(["body","wrapper"],"tbody"),$i=kn(["body","row"],"tr"),bi=kn(["body","cell"],"td"),qi=kn(["body","cell"],"th"),ao;yt.length?ao=jr.map(function(fo,Bo){var jo=fo.record,_o=fo.indent,La=fo.index,sa=wr(jo,Bo);return x.createElement(Dn,{key:sa,rowKey:sa,record:jo,index:Bo,renderIndex:La,rowComponent:$i,cellComponent:bi,scopeCellComponent:qi,indent:_o})}):ao=x.createElement(ln,{expanded:!0,className:"".concat(Fn,"-placeholder"),prefixCls:Fn,component:$i,cellComponent:bi,colSpan:qn.length,isEmpty:!0},Rr);var Ji=ot(qn);return x.createElement(Bt.Provider,{value:Dr.current},x.createElement(Fr,{className:"".concat(Fn,"-tbody")},Vt&&x.createElement(Gt,{prefixCls:Fn,columnsKey:Ji,onColumnResize:ar}),ao))}var yn=Ke(sn),Yn=["expandable"],Br="RC_TABLE_INTERNAL_COL_DEFINE";function ti(wt){var yt=wt.expandable,Vt=(0,ee.Z)(wt,Yn),cn;return"expandable"in wt?cn=(0,bt.Z)((0,bt.Z)({},Vt),yt):cn=Vt,cn.showExpandColumn===!1&&(cn.expandIconColumnIndex=-1),cn}var Ur=["columnType"];function Sr(wt){for(var yt=wt.colWidths,Vt=wt.columns,cn=wt.columCount,Fn=oe(et,["tableLayout"]),kn=Fn.tableLayout,ar=[],qn=cn||Vt.length,wr=!1,dr=qn-1;dr>=0;dr-=1){var di=yt[dr],Rr=Vt&&Vt[dr],jr=void 0,Dr=void 0;if(Rr&&(jr=Rr[Br],kn==="auto"&&(Dr=Rr.minWidth)),di||Dr||jr||wr){var Fr=jr||{},$i=Fr.columnType,bi=(0,ee.Z)(Fr,Ur);ar.unshift(x.createElement("col",(0,Oe.Z)({key:dr,style:{width:di,minWidth:Dr}},bi))),wr=!0}}return x.createElement("colgroup",null,ar)}var Jn=Sr,gr=ae(94480),kr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Vr(wt,yt){return(0,x.useMemo)(function(){for(var Vt=[],cn=0;cn<yt;cn+=1){var Fn=wt[cn];if(Fn!==void 0)Vt[cn]=Fn;else return null}return Vt},[wt.join("_"),yt])}var pi=x.forwardRef(function(wt,yt){var Vt=wt.className,cn=wt.noData,Fn=wt.columns,kn=wt.flattenColumns,ar=wt.colWidths,qn=wt.columCount,wr=wt.stickyOffsets,dr=wt.direction,di=wt.fixHeader,Rr=wt.stickyTopOffset,jr=wt.stickyBottomOffset,Dr=wt.stickyClassName,Fr=wt.onScroll,$i=wt.maxContentScroll,bi=wt.children,qi=(0,ee.Z)(wt,kr),ao=oe(et,["prefixCls","scrollbarSize","isSticky","getComponent"]),Ji=ao.prefixCls,fo=ao.scrollbarSize,Bo=ao.isSticky,jo=ao.getComponent,_o=jo(["header","table"],"table"),La=Bo&&!di?0:fo,sa=x.useRef(null),ea=x.useCallback(function(na){(0,ve.mH)(yt,na),(0,ve.mH)(sa,na)},[]);x.useEffect(function(){var na;function Co(Ya){var Ka=Ya,_l=Ka.currentTarget,El=Ka.deltaX;El&&(Fr({currentTarget:_l,scrollLeft:_l.scrollLeft+El}),Ya.preventDefault())}return(na=sa.current)===null||na===void 0||na.addEventListener("wheel",Co,{passive:!1}),function(){var Ya;(Ya=sa.current)===null||Ya===void 0||Ya.removeEventListener("wheel",Co)}},[]);var zo=x.useMemo(function(){return kn.every(function(na){return na.width})},[kn]),Ho=kn[kn.length-1],Qo={fixed:Ho?Ho.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Ji,"-cell-scrollbar")}}},vo=(0,x.useMemo)(function(){return La?[].concat((0,gr.Z)(Fn),[Qo]):Fn},[La,Fn]),co=(0,x.useMemo)(function(){return La?[].concat((0,gr.Z)(kn),[Qo]):kn},[La,kn]),To=(0,x.useMemo)(function(){var na=wr.right,Co=wr.left;return(0,bt.Z)((0,bt.Z)({},wr),{},{left:dr==="rtl"?[].concat((0,gr.Z)(Co.map(function(Ya){return Ya+La})),[0]):Co,right:dr==="rtl"?na:[].concat((0,gr.Z)(na.map(function(Ya){return Ya+La})),[0]),isSticky:Bo})},[La,wr,Bo]),Wo=Vr(ar,qn);return x.createElement("div",{style:(0,bt.Z)({overflow:"hidden"},Bo?{top:Rr,bottom:jr}:{}),ref:ea,className:Ne()(Vt,(0,He.Z)({},Dr,!!Dr))},x.createElement(_o,{style:{tableLayout:"fixed",visibility:cn||Wo?null:"hidden"}},(!cn||!$i||zo)&&x.createElement(Jn,{colWidths:Wo?[].concat((0,gr.Z)(Wo),[La]):[],columCount:qn+1,columns:co}),bi((0,bt.Z)((0,bt.Z)({},qi),{},{stickyOffsets:To,columns:vo,flattenColumns:co}))))}),Lr=x.memo(pi),tr=function(yt){var Vt=yt.cells,cn=yt.stickyOffsets,Fn=yt.flattenColumns,kn=yt.rowComponent,ar=yt.cellComponent,qn=yt.onHeaderRow,wr=yt.index,dr=oe(et,["prefixCls","direction"]),di=dr.prefixCls,Rr=dr.direction,jr;qn&&(jr=qn(Vt.map(function(Fr){return Fr.column}),wr));var Dr=ot(Vt.map(function(Fr){return Fr.column}));return x.createElement(kn,jr,Vt.map(function(Fr,$i){var bi=Fr.column,qi=an(Fr.colStart,Fr.colEnd,Fn,cn,Rr),ao;return bi&&bi.onHeaderCell&&(ao=Fr.column.onHeaderCell(bi)),x.createElement(Cn,(0,Oe.Z)({},Fr,{scope:bi.title?Fr.colSpan>1?"colgroup":"col":null,ellipsis:bi.ellipsis,align:bi.align,component:ar,prefixCls:di,key:Dr[$i]},qi,{additionalProps:ao,rowType:"header"}))}))},Xn=tr;function mr(wt){var yt=[];function Vt(ar,qn){var wr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;yt[wr]=yt[wr]||[];var dr=qn,di=ar.filter(Boolean).map(function(Rr){var jr={key:Rr.key,className:Rr.className||"",children:Rr.title,column:Rr,colStart:dr},Dr=1,Fr=Rr.children;return Fr&&Fr.length>0&&(Dr=Vt(Fr,dr,wr+1).reduce(function($i,bi){return $i+bi},0),jr.hasSubColumns=!0),"colSpan"in Rr&&(Dr=Rr.colSpan),"rowSpan"in Rr&&(jr.rowSpan=Rr.rowSpan),jr.colSpan=Dr,jr.colEnd=jr.colStart+Dr-1,yt[wr].push(jr),dr+=Dr,Dr});return di}Vt(wt,0);for(var cn=yt.length,Fn=function(qn){yt[qn].forEach(function(wr){!("rowSpan"in wr)&&!wr.hasSubColumns&&(wr.rowSpan=cn-qn)})},kn=0;kn<cn;kn+=1)Fn(kn);return yt}var Qr=function(yt){var Vt=yt.stickyOffsets,cn=yt.columns,Fn=yt.flattenColumns,kn=yt.onHeaderRow,ar=oe(et,["prefixCls","getComponent"]),qn=ar.prefixCls,wr=ar.getComponent,dr=x.useMemo(function(){return mr(cn)},[cn]),di=wr(["header","wrapper"],"thead"),Rr=wr(["header","row"],"tr"),jr=wr(["header","cell"],"th");return x.createElement(di,{className:"".concat(qn,"-thead")},dr.map(function(Dr,Fr){var $i=x.createElement(Xn,{key:Fr,flattenColumns:Fn,cells:Dr,stickyOffsets:Vt,rowComponent:Rr,cellComponent:jr,onHeaderRow:kn,index:Fr});return $i}))},ii=Ke(Qr),ai=ae(11592);function oi(wt){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof yt=="number"?yt:yt.endsWith("%")?wt*parseFloat(yt)/100:null}function li(wt,yt,Vt){return x.useMemo(function(){if(yt&&yt>0){var cn=0,Fn=0;wt.forEach(function(jr){var Dr=oi(yt,jr.width);Dr?cn+=Dr:Fn+=1});var kn=Math.max(yt,Vt),ar=Math.max(kn-cn,Fn),qn=Fn,wr=ar/Fn,dr=0,di=wt.map(function(jr){var Dr=(0,bt.Z)({},jr),Fr=oi(yt,Dr.width);if(Fr)Dr.width=Fr;else{var $i=Math.floor(wr);Dr.width=qn===1?ar:$i,ar-=$i,qn-=1}return dr+=Dr.width,Dr});if(dr<kn){var Rr=kn/dr;ar=kn,di.forEach(function(jr,Dr){var Fr=Math.floor(jr.width*Rr);jr.width=Dr===di.length-1?ar:Fr,ar-=Fr})}return[di,Math.max(dr,kn)]}return[wt,yt]},[wt,yt,Vt])}var ji=["children"],ki=["fixed"];function or(wt){return(0,ai.Z)(wt).filter(function(yt){return x.isValidElement(yt)}).map(function(yt){var Vt=yt.key,cn=yt.props,Fn=cn.children,kn=(0,ee.Z)(cn,ji),ar=(0,bt.Z)({key:Vt},kn);return Fn&&(ar.children=or(Fn)),ar})}function Hr(wt){return wt.filter(function(yt){return yt&&(0,ft.Z)(yt)==="object"&&!yt.hidden}).map(function(yt){var Vt=yt.children;return Vt&&Vt.length>0?(0,bt.Z)((0,bt.Z)({},yt),{},{children:Hr(Vt)}):yt})}function Bi(wt){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return wt.filter(function(Vt){return Vt&&(0,ft.Z)(Vt)==="object"}).reduce(function(Vt,cn,Fn){var kn=cn.fixed,ar=kn===!0?"left":kn,qn="".concat(yt,"-").concat(Fn),wr=cn.children;return wr&&wr.length>0?[].concat((0,gr.Z)(Vt),(0,gr.Z)(Bi(wr,qn).map(function(dr){return(0,bt.Z)({fixed:ar},dr)}))):[].concat((0,gr.Z)(Vt),[(0,bt.Z)((0,bt.Z)({key:qn},cn),{},{fixed:ar})])},[])}function Yt(wt){return wt.map(function(yt){var Vt=yt.fixed,cn=(0,ee.Z)(yt,ki),Fn=Vt;return Vt==="left"?Fn="right":Vt==="right"&&(Fn="left"),(0,bt.Z)({fixed:Fn},cn)})}function rn(wt,yt){var Vt=wt.prefixCls,cn=wt.columns,Fn=wt.children,kn=wt.expandable,ar=wt.expandedKeys,qn=wt.columnTitle,wr=wt.getRowKey,dr=wt.onTriggerExpand,di=wt.expandIcon,Rr=wt.rowExpandable,jr=wt.expandIconColumnIndex,Dr=wt.direction,Fr=wt.expandRowByClick,$i=wt.columnWidth,bi=wt.fixed,qi=wt.scrollWidth,ao=wt.clientWidth,Ji=x.useMemo(function(){var Ho=cn||or(Fn)||[];return Hr(Ho.slice())},[cn,Fn]),fo=x.useMemo(function(){if(kn){var Ho=Ji.slice();if(!Ho.includes(ct)){var Qo=jr||0;Qo>=0&&(Qo||bi==="left"||!bi)&&Ho.splice(Qo,0,ct),bi==="right"&&Ho.splice(Ji.length,0,ct)}var vo=Ho.indexOf(ct);Ho=Ho.filter(function(na,Co){return na!==ct||Co===vo});var co=Ji[vo],To;bi?To=bi:To=co?co.fixed:null;var Wo=(0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)({},Br,{className:"".concat(Vt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",qn),"fixed",To),"className","".concat(Vt,"-row-expand-icon-cell")),"width",$i),"render",function(Co,Ya,Ka){var _l=wr(Ya,Ka),El=ar.has(_l),al=Rr?Rr(Ya):!0,so=di({prefixCls:Vt,expanded:El,expandable:al,record:Ya,onExpand:dr});return Fr?x.createElement("span",{onClick:function(ss){return ss.stopPropagation()}},so):so});return Ho.map(function(na){return na===ct?Wo:na})}return Ji.filter(function(na){return na!==ct})},[kn,Ji,wr,ar,di,Dr]),Bo=x.useMemo(function(){var Ho=fo;return yt&&(Ho=yt(Ho)),Ho.length||(Ho=[{render:function(){return null}}]),Ho},[yt,fo,Dr]),jo=x.useMemo(function(){return Dr==="rtl"?Yt(Bi(Bo)):Bi(Bo)},[Bo,Dr,qi]),_o=x.useMemo(function(){for(var Ho=-1,Qo=jo.length-1;Qo>=0;Qo-=1){var vo=jo[Qo].fixed;if(vo==="left"||vo===!0){Ho=Qo;break}}if(Ho>=0)for(var co=0;co<=Ho;co+=1){var To=jo[co].fixed;if(To!=="left"&&To!==!0)return!0}var Wo=jo.findIndex(function(Ya){var Ka=Ya.fixed;return Ka==="right"});if(Wo>=0)for(var na=Wo;na<jo.length;na+=1){var Co=jo[na].fixed;if(Co!=="right")return!0}return!1},[jo]),La=li(jo,qi,ao),sa=(0,Je.Z)(La,2),ea=sa[0],zo=sa[1];return[Bo,ea,zo,_o]}var fn=rn;function Pt(wt,yt,Vt){var cn=ti(wt),Fn=cn.expandIcon,kn=cn.expandedRowKeys,ar=cn.defaultExpandedRowKeys,qn=cn.defaultExpandAllRows,wr=cn.expandedRowRender,dr=cn.onExpand,di=cn.onExpandedRowsChange,Rr=cn.childrenColumnName,jr=Fn||tn,Dr=Rr||"children",Fr=x.useMemo(function(){return wr?"row":wt.expandable&&wt.internalHooks===Le&&wt.expandable.__PARENT_RENDER_ICON__||yt.some(function(Bo){return Bo&&(0,ft.Z)(Bo)==="object"&&Bo[Dr]})?"nest":!1},[!!wr,yt]),$i=x.useState(function(){return ar||(qn?Qn(yt,Vt,Dr):[])}),bi=(0,Je.Z)($i,2),qi=bi[0],ao=bi[1],Ji=x.useMemo(function(){return new Set(kn||qi||[])},[kn,qi]),fo=x.useCallback(function(Bo){var jo=Vt(Bo,yt.indexOf(Bo)),_o,La=Ji.has(jo);La?(Ji.delete(jo),_o=(0,gr.Z)(Ji)):_o=[].concat((0,gr.Z)(Ji),[jo]),ao(_o),dr&&dr(!La,Bo),di&&di(_o)},[Vt,Ji,yt,dr,di]);return[cn,Fr,Ji,jr,Dr,fo]}function en(wt,yt,Vt){var cn=wt.map(function(Fn,kn){return an(kn,kn,wt,yt,Vt)});return(0,je.Z)(function(){return cn},[cn],function(Fn,kn){return!(0,Ue.Z)(Fn,kn)})}function Kt(wt){var yt=(0,x.useRef)(wt),Vt=(0,x.useState)({}),cn=(0,Je.Z)(Vt,2),Fn=cn[1],kn=(0,x.useRef)(null),ar=(0,x.useRef)([]);function qn(wr){ar.current.push(wr);var dr=Promise.resolve();kn.current=dr,dr.then(function(){if(kn.current===dr){var di=ar.current,Rr=yt.current;ar.current=[],di.forEach(function(jr){yt.current=jr(yt.current)}),kn.current=null,Rr!==yt.current&&Fn({})}})}return(0,x.useEffect)(function(){return function(){kn.current=null}},[]),[yt.current,qn]}function gn(wt){var yt=(0,x.useRef)(wt||null),Vt=(0,x.useRef)();function cn(){window.clearTimeout(Vt.current)}function Fn(ar){yt.current=ar,cn(),Vt.current=window.setTimeout(function(){yt.current=null,Vt.current=void 0},100)}function kn(){return yt.current}return(0,x.useEffect)(function(){return cn},[]),[Fn,kn]}function On(){var wt=x.useState(-1),yt=(0,Je.Z)(wt,2),Vt=yt[0],cn=yt[1],Fn=x.useState(-1),kn=(0,Je.Z)(Fn,2),ar=kn[0],qn=kn[1],wr=x.useCallback(function(dr,di){cn(dr),qn(di)},[]);return[Vt,ar,wr]}var Nr=ae(47273),Yr=(0,Nr.Z)()?window:null;function hi(wt,yt){var Vt=(0,ft.Z)(wt)==="object"?wt:{},cn=Vt.offsetHeader,Fn=cn===void 0?0:cn,kn=Vt.offsetSummary,ar=kn===void 0?0:kn,qn=Vt.offsetScroll,wr=qn===void 0?0:qn,dr=Vt.getContainer,di=dr===void 0?function(){return Yr}:dr,Rr=di()||Yr,jr=!!wt;return x.useMemo(function(){return{isSticky:jr,stickyClassName:jr?"".concat(yt,"-sticky-holder"):"",offsetHeader:Fn,offsetSummary:ar,offsetScroll:wr,container:Rr}},[jr,wr,Fn,ar,yt,Rr])}function rr(wt,yt,Vt){var cn=(0,x.useMemo)(function(){var Fn=yt.length,kn=function(dr,di,Rr){for(var jr=[],Dr=0,Fr=dr;Fr!==di;Fr+=Rr)jr.push(Dr),yt[Fr].fixed&&(Dr+=wt[Fr]||0);return jr},ar=kn(0,Fn,1),qn=kn(Fn-1,-1,-1).reverse();return Vt==="rtl"?{left:qn,right:ar}:{left:ar,right:qn}},[wt,yt,Vt]);return cn}var ur=rr;function sr(wt){var yt=wt.className,Vt=wt.children;return x.createElement("div",{className:yt},Vt)}var ni=sr,er=ae(8224),Rn=ae(16089),Ar=ae(76846);function Ei(wt){var yt=(0,Ar.bn)(wt),Vt=yt.getBoundingClientRect(),cn=document.documentElement;return{left:Vt.left+(window.pageXOffset||cn.scrollLeft)-(cn.clientLeft||document.body.clientLeft||0),top:Vt.top+(window.pageYOffset||cn.scrollTop)-(cn.clientTop||document.body.clientTop||0)}}var Kn=function(yt,Vt){var cn,Fn,kn=yt.scrollBodyRef,ar=yt.onScroll,qn=yt.offsetScroll,wr=yt.container,dr=yt.direction,di=oe(et,"prefixCls"),Rr=((cn=kn.current)===null||cn===void 0?void 0:cn.scrollWidth)||0,jr=((Fn=kn.current)===null||Fn===void 0?void 0:Fn.clientWidth)||0,Dr=Rr&&jr*(jr/Rr),Fr=x.useRef(),$i=Kt({scrollLeft:0,isHiddenScrollBar:!0}),bi=(0,Je.Z)($i,2),qi=bi[0],ao=bi[1],Ji=x.useRef({delta:0,x:0}),fo=x.useState(!1),Bo=(0,Je.Z)(fo,2),jo=Bo[0],_o=Bo[1],La=x.useRef(null);x.useEffect(function(){return function(){Rn.Z.cancel(La.current)}},[]);var sa=function(){_o(!1)},ea=function(co){co.persist(),Ji.current.delta=co.pageX-qi.scrollLeft,Ji.current.x=0,_o(!0),co.preventDefault()},zo=function(co){var To,Wo=co||((To=window)===null||To===void 0?void 0:To.event),na=Wo.buttons;if(!jo||na===0){jo&&_o(!1);return}var Co=Ji.current.x+co.pageX-Ji.current.x-Ji.current.delta,Ya=dr==="rtl";Co=Math.max(Ya?Dr-jr:0,Math.min(Ya?0:jr-Dr,Co));var Ka=!Ya||Math.abs(Co)+Math.abs(Dr)<jr;Ka&&(ar({scrollLeft:Co/jr*(Rr+2)}),Ji.current.x=co.pageX)},Ho=function(){Rn.Z.cancel(La.current),La.current=(0,Rn.Z)(function(){if(kn.current){var co=Ei(kn.current).top,To=co+kn.current.offsetHeight,Wo=wr===window?document.documentElement.scrollTop+window.innerHeight:Ei(wr).top+wr.clientHeight;To-(0,jt.Z)()<=Wo||co>=Wo-qn?ao(function(na){return(0,bt.Z)((0,bt.Z)({},na),{},{isHiddenScrollBar:!0})}):ao(function(na){return(0,bt.Z)((0,bt.Z)({},na),{},{isHiddenScrollBar:!1})})}})},Qo=function(co){ao(function(To){return(0,bt.Z)((0,bt.Z)({},To),{},{scrollLeft:co/Rr*jr||0})})};return x.useImperativeHandle(Vt,function(){return{setScrollLeft:Qo,checkScrollBarVisible:Ho}}),x.useEffect(function(){var vo=(0,er.Z)(document.body,"mouseup",sa,!1),co=(0,er.Z)(document.body,"mousemove",zo,!1);return Ho(),function(){vo.remove(),co.remove()}},[Dr,jo]),x.useEffect(function(){if(kn.current){for(var vo=[],co=(0,Ar.bn)(kn.current);co;)vo.push(co),co=co.parentElement;return vo.forEach(function(To){return To.addEventListener("scroll",Ho,!1)}),window.addEventListener("resize",Ho,!1),window.addEventListener("scroll",Ho,!1),wr.addEventListener("scroll",Ho,!1),function(){vo.forEach(function(To){return To.removeEventListener("scroll",Ho)}),window.removeEventListener("resize",Ho),window.removeEventListener("scroll",Ho),wr.removeEventListener("scroll",Ho)}}},[wr]),x.useEffect(function(){qi.isHiddenScrollBar||ao(function(vo){var co=kn.current;return co?(0,bt.Z)((0,bt.Z)({},vo),{},{scrollLeft:co.scrollLeft/co.scrollWidth*co.clientWidth}):vo})},[qi.isHiddenScrollBar]),Rr<=jr||!Dr||qi.isHiddenScrollBar?null:x.createElement("div",{style:{height:(0,jt.Z)(),width:jr,bottom:qn},className:"".concat(di,"-sticky-scroll")},x.createElement("div",{onMouseDown:ea,ref:Fr,className:Ne()("".concat(di,"-sticky-scroll-bar"),(0,He.Z)({},"".concat(di,"-sticky-scroll-bar-active"),jo)),style:{width:"".concat(Dr,"px"),transform:"translate3d(".concat(qi.scrollLeft,"px, 0, 0)")}}))},vn=x.forwardRef(Kn);function $n(wt){return null}var nr=$n;function fr(wt){return null}var zr=fr,Ni="rc-table",gi=[],Di={};function mi(){return"No Data"}function Si(wt,yt){var Vt=(0,bt.Z)({rowKey:"key",prefixCls:Ni,emptyText:mi},wt),cn=Vt.prefixCls,Fn=Vt.className,kn=Vt.rowClassName,ar=Vt.style,qn=Vt.data,wr=Vt.rowKey,dr=Vt.scroll,di=Vt.tableLayout,Rr=Vt.direction,jr=Vt.title,Dr=Vt.footer,Fr=Vt.summary,$i=Vt.caption,bi=Vt.id,qi=Vt.showHeader,ao=Vt.components,Ji=Vt.emptyText,fo=Vt.onRow,Bo=Vt.onHeaderRow,jo=Vt.onScroll,_o=Vt.internalHooks,La=Vt.transformColumns,sa=Vt.internalRefs,ea=Vt.tailor,zo=Vt.getContainerWidth,Ho=Vt.sticky,Qo=Vt.rowHoverable,vo=Qo===void 0?!0:Qo,co=qn||gi,To=!!co.length,Wo=_o===Le,na=x.useCallback(function(ps,Ls){return(0,Ot.Z)(ao,ps)||Ls},[ao]),Co=x.useMemo(function(){return typeof wr=="function"?wr:function(ps){var Ls=ps&&ps[wr];return Ls}},[wr]),Ya=na(["body"]),Ka=On(),_l=(0,Je.Z)(Ka,3),El=_l[0],al=_l[1],so=_l[2],Jl=Pt(Vt,co,Co),ss=(0,Je.Z)(Jl,6),rs=ss[0],il=ss[1],fu=ss[2],ra=ss[3],Ca=ss[4],$o=ss[5],Oo=dr==null?void 0:dr.x,fs=x.useState(0),Ss=(0,Je.Z)(fs,2),Ws=Ss[0],Qs=Ss[1],sl=fn((0,bt.Z)((0,bt.Z)((0,bt.Z)({},Vt),rs),{},{expandable:!!rs.expandedRowRender,columnTitle:rs.columnTitle,expandedKeys:fu,getRowKey:Co,onTriggerExpand:$o,expandIcon:ra,expandIconColumnIndex:rs.expandIconColumnIndex,direction:Rr,scrollWidth:Wo&&ea&&typeof Oo=="number"?Oo:null,clientWidth:Ws}),Wo?La:null),pu=(0,Je.Z)(sl,4),la=pu[0],qo=pu[1],xs=pu[2],Ys=pu[3],$s=xs!=null?xs:Oo,gu=x.useMemo(function(){return{columns:la,flattenColumns:qo}},[la,qo]),Tl=x.useRef(),sA=x.useRef(),Sl=x.useRef(),vs=x.useRef();x.useImperativeHandle(yt,function(){return{nativeElement:Tl.current,scrollTo:function(Ls){var vu;if(Sl.current instanceof HTMLElement){var Hu=Ls.index,Qu=Ls.top,cd=Ls.key;if(zt(Qu)){var Vc;(Vc=Sl.current)===null||Vc===void 0||Vc.scrollTo({top:Qu})}else{var Mc,dd=cd!=null?cd:Co(co[Hu]);(Mc=Sl.current.querySelector('[data-row-key="'.concat(dd,'"]')))===null||Mc===void 0||Mc.scrollIntoView()}}else(vu=Sl.current)!==null&&vu!==void 0&&vu.scrollTo&&Sl.current.scrollTo(Ls)}}});var ll=x.useRef(),ul=x.useState(!1),hu=(0,Je.Z)(ul,2),kl=hu[0],ys=hu[1],vl=x.useState(!1),Fs=(0,Je.Z)(vl,2),yl=Fs[0],ql=Fs[1],Ou=x.useState(new Map),Pu=(0,Je.Z)(Ou,2),GA=Pu[0],Al=Pu[1],Dd=ot(qo),Uu=Dd.map(function(ps){return GA.get(ps)}),Vu=x.useMemo(function(){return Uu},[Uu.join("_")]),Ru=ur(Vu,qo,Rr),Xu=dr&&Zt(dr.y),cl=dr&&Zt($s)||!!rs.fixed,vA=cl&&qo.some(function(ps){var Ls=ps.fixed;return Ls}),bc=x.useRef(),kA=hi(Ho,cn),VA=kA.isSticky,Jd=kA.offsetHeader,qd=kA.offsetSummary,Is=kA.offsetScroll,ld=kA.stickyClassName,Ef=kA.container,Za=x.useMemo(function(){return Fr==null?void 0:Fr(co)},[Fr,co]),hs=(Xu||VA)&&x.isValidElement(Za)&&Za.type===$e&&Za.props.fixed,jl,su,xu;Xu&&(su={overflowY:To?"scroll":"auto",maxHeight:dr.y}),cl&&(jl={overflowX:"auto"},Xu||(su={overflowY:"hidden"}),xu={width:$s===!0?"auto":$s,minWidth:"100%"});var Bu=x.useCallback(function(ps,Ls){Al(function(vu){if(vu.get(ps)!==Ls){var Hu=new Map(vu);return Hu.set(ps,Ls),Hu}return vu})},[]),Yu=gn(null),ju=(0,Je.Z)(Yu,2),Zc=ju[0],Sf=ju[1];function Wc(ps,Ls){Ls&&(typeof Ls=="function"?Ls(ps):Ls.scrollLeft!==ps&&(Ls.scrollLeft=ps,Ls.scrollLeft!==ps&&setTimeout(function(){Ls.scrollLeft=ps},0)))}var $c=(0,ze.Z)(function(ps){var Ls=ps.currentTarget,vu=ps.scrollLeft,Hu=Rr==="rtl",Qu=typeof vu=="number"?vu:Ls.scrollLeft,cd=Ls||Di;if(!Sf()||Sf()===cd){var Vc;Zc(cd),Wc(Qu,sA.current),Wc(Qu,Sl.current),Wc(Qu,ll.current),Wc(Qu,(Vc=bc.current)===null||Vc===void 0?void 0:Vc.setScrollLeft)}var Mc=Ls||sA.current;if(Mc){var dd=Wo&&ea&&typeof $s=="number"?$s:Mc.scrollWidth,Xc=Mc.clientWidth;if(dd===Xc){ys(!1),ql(!1);return}Hu?(ys(-Qu<dd-Xc),ql(-Qu>0)):(ys(Qu>0),ql(Qu<dd-Xc))}}),mu=(0,ze.Z)(function(ps){$c(ps),jo==null||jo(ps)}),MA=function(){if(cl&&Sl.current){var Ls;$c({currentTarget:(0,Ar.bn)(Sl.current),scrollLeft:(Ls=Sl.current)===null||Ls===void 0?void 0:Ls.scrollLeft})}else ys(!1),ql(!1)},ef=function(Ls){var vu,Hu=Ls.width;(vu=bc.current)===null||vu===void 0||vu.checkScrollBarVisible();var Qu=Tl.current?Tl.current.offsetWidth:Hu;Wo&&zo&&Tl.current&&(Qu=zo(Tl.current,Qu)||Qu),Qu!==Ws&&(MA(),Qs(Qu))},Ff=x.useRef(!1);x.useEffect(function(){Ff.current&&MA()},[cl,qn,la.length]),x.useEffect(function(){Ff.current=!0},[]);var tf=x.useState(0),If=(0,Je.Z)(tf,2),Gc=If[0],rh=If[1],pp=x.useState(!0),ih=(0,Je.Z)(pp,2),nf=ih[0],gp=ih[1];(0,Se.Z)(function(){(!ea||!Wo)&&(Sl.current instanceof Element?rh((0,jt.o)(Sl.current).width):rh((0,jt.o)(vs.current).width)),gp((0,Lt.G)("position","sticky"))},[]),x.useEffect(function(){Wo&&sa&&(sa.body.current=Sl.current)});var mp=x.useCallback(function(ps){return x.createElement(x.Fragment,null,x.createElement(ii,ps),hs==="top"&&x.createElement(gt,ps,Za))},[hs,Za]),rf=x.useCallback(function(ps){return x.createElement(gt,ps,Za)},[Za]),Lf=na(["table"],"table"),Nd=x.useMemo(function(){return di||(vA?$s==="max-content"?"auto":"fixed":Xu||VA||qo.some(function(ps){var Ls=ps.ellipsis;return Ls})?"fixed":"auto")},[Xu,vA,qo,di,VA]),Df,Od={colWidths:Vu,columCount:qo.length,stickyOffsets:Ru,onHeaderRow:Bo,fixHeader:Xu,scroll:dr},of=x.useMemo(function(){return To?null:typeof Ji=="function"?Ji():Ji},[To,Ji]),Cc=x.createElement(yn,{data:co,measureColumnWidth:Xu||cl||VA}),oh=x.createElement(Jn,{colWidths:qo.map(function(ps){var Ls=ps.width;return Ls}),columns:qo}),ah=$i!=null?x.createElement("caption",{className:"".concat(cn,"-caption")},$i):void 0,Mh=(0,Ct.Z)(Vt,{data:!0}),ud=(0,Ct.Z)(Vt,{aria:!0});if(Xu||VA){var xc;typeof Ya=="function"?(xc=Ya(co,{scrollbarSize:Gc,ref:Sl,onScroll:$c}),Od.colWidths=qo.map(function(ps,Ls){var vu=ps.width,Hu=Ls===qo.length-1?vu-Gc:vu;return typeof Hu=="number"&&!Number.isNaN(Hu)?Hu:0})):xc=x.createElement("div",{style:(0,bt.Z)((0,bt.Z)({},jl),su),onScroll:mu,ref:Sl,className:Ne()("".concat(cn,"-body"))},x.createElement(Lf,(0,Oe.Z)({style:(0,bt.Z)((0,bt.Z)({},xu),{},{tableLayout:Nd})},ud),ah,oh,Cc,!hs&&Za&&x.createElement(gt,{stickyOffsets:Ru,flattenColumns:qo},Za)));var Bc=(0,bt.Z)((0,bt.Z)((0,bt.Z)({noData:!co.length,maxContentScroll:cl&&$s==="max-content"},Od),gu),{},{direction:Rr,stickyClassName:ld,onScroll:$c});Df=x.createElement(x.Fragment,null,qi!==!1&&x.createElement(Lr,(0,Oe.Z)({},Bc,{stickyTopOffset:Jd,className:"".concat(cn,"-header"),ref:sA}),mp),xc,hs&&hs!=="top"&&x.createElement(Lr,(0,Oe.Z)({},Bc,{stickyBottomOffset:qd,className:"".concat(cn,"-summary"),ref:ll}),rf),VA&&Sl.current&&Sl.current instanceof Element&&x.createElement(vn,{ref:bc,offsetScroll:Is,scrollBodyRef:Sl,onScroll:$c,container:Ef,direction:Rr}))}else Df=x.createElement("div",{style:(0,bt.Z)((0,bt.Z)({},jl),su),className:Ne()("".concat(cn,"-content")),onScroll:$c,ref:Sl},x.createElement(Lf,(0,Oe.Z)({style:(0,bt.Z)((0,bt.Z)({},xu),{},{tableLayout:Nd})},ud),ah,oh,qi!==!1&&x.createElement(ii,(0,Oe.Z)({},Od,gu)),Cc,Za&&x.createElement(gt,{stickyOffsets:Ru,flattenColumns:qo},Za)));var Pd=x.createElement("div",(0,Oe.Z)({className:Ne()(cn,Fn,(0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)({},"".concat(cn,"-rtl"),Rr==="rtl"),"".concat(cn,"-ping-left"),kl),"".concat(cn,"-ping-right"),yl),"".concat(cn,"-layout-fixed"),di==="fixed"),"".concat(cn,"-fixed-header"),Xu),"".concat(cn,"-fixed-column"),vA),"".concat(cn,"-fixed-column-gapped"),vA&&Ys),"".concat(cn,"-scroll-horizontal"),cl),"".concat(cn,"-has-fix-left"),qo[0]&&qo[0].fixed),"".concat(cn,"-has-fix-right"),qo[qo.length-1]&&qo[qo.length-1].fixed==="right")),style:ar,id:bi,ref:Tl},Mh),jr&&x.createElement(ni,{className:"".concat(cn,"-title")},jr(co)),x.createElement("div",{ref:vs,className:"".concat(cn,"-container")},Df),Dr&&x.createElement(ni,{className:"".concat(cn,"-footer")},Dr(co)));cl&&(Pd=x.createElement(Et.Z,{onResize:ef},Pd));var Ad=en(qo,Ru,Rr),Uh=x.useMemo(function(){return{scrollX:$s,prefixCls:cn,getComponent:na,scrollbarSize:Gc,direction:Rr,fixedInfoList:Ad,isSticky:VA,supportSticky:nf,componentWidth:Ws,fixHeader:Xu,fixColumn:vA,horizonScroll:cl,tableLayout:Nd,rowClassName:kn,expandedRowClassName:rs.expandedRowClassName,expandIcon:ra,expandableType:il,expandRowByClick:rs.expandRowByClick,expandedRowRender:rs.expandedRowRender,onTriggerExpand:$o,expandIconColumnIndex:rs.expandIconColumnIndex,indentSize:rs.indentSize,allColumnsFixedLeft:qo.every(function(ps){return ps.fixed==="left"}),emptyNode:of,columns:la,flattenColumns:qo,onColumnResize:Bu,hoverStartRow:El,hoverEndRow:al,onHover:so,rowExpandable:rs.rowExpandable,onRow:fo,getRowKey:Co,expandedKeys:fu,childrenColumnName:Ca,rowHoverable:vo}},[$s,cn,na,Gc,Rr,Ad,VA,nf,Ws,Xu,vA,cl,Nd,kn,rs.expandedRowClassName,ra,il,rs.expandRowByClick,rs.expandedRowRender,$o,rs.expandIconColumnIndex,rs.indentSize,of,la,qo,Bu,El,al,so,rs.rowExpandable,fo,Co,fu,Ca,vo]);return x.createElement(et.Provider,{value:Uh},Pd)}var wi=x.forwardRef(Si);function Ci(wt){return ke(wi,wt)}var yi=Ci();yi.EXPAND_COLUMN=ct,yi.INTERNAL_HOOKS=Le,yi.Column=nr,yi.ColumnGroup=zr,yi.Summary=mt;var Mi=yi,eo=ae(48911),mo=Ce(null),Yi=Ce(null);function Io(wt,yt,Vt){var cn=yt||1;return Vt[wt+cn]-(Vt[wt]||0)}function Ri(wt){var yt=wt.rowInfo,Vt=wt.column,cn=wt.colIndex,Fn=wt.indent,kn=wt.index,ar=wt.component,qn=wt.renderIndex,wr=wt.record,dr=wt.style,di=wt.className,Rr=wt.inverse,jr=wt.getHeight,Dr=Vt.render,Fr=Vt.dataIndex,$i=Vt.className,bi=Vt.width,qi=oe(Yi,["columnsOffset"]),ao=qi.columnsOffset,Ji=Rt(yt,Vt,cn,Fn,kn),fo=Ji.key,Bo=Ji.fixedInfo,jo=Ji.appendCellNode,_o=Ji.additionalCellProps,La=_o.style,sa=_o.colSpan,ea=sa===void 0?1:sa,zo=_o.rowSpan,Ho=zo===void 0?1:zo,Qo=cn-1,vo=Io(Qo,ea,ao),co=ea>1?bi-vo:0,To=(0,bt.Z)((0,bt.Z)((0,bt.Z)({},La),dr),{},{flex:"0 0 ".concat(vo,"px"),width:"".concat(vo,"px"),marginRight:co,pointerEvents:"auto"}),Wo=x.useMemo(function(){return Rr?Ho<=1:ea===0||Ho===0||Ho>1},[Ho,ea,Rr]);Wo?To.visibility="hidden":Rr&&(To.height=jr==null?void 0:jr(Ho));var na=Wo?function(){return null}:Dr,Co={};return(Ho===0||ea===0)&&(Co.rowSpan=1,Co.colSpan=1),x.createElement(Cn,(0,Oe.Z)({className:Ne()($i,di),ellipsis:Vt.ellipsis,align:Vt.align,scope:Vt.rowScope,component:ar,prefixCls:yt.prefixCls,key:fo,record:wr,index:kn,renderIndex:qn,dataIndex:Fr,render:na,shouldCellUpdate:Vt.shouldCellUpdate},Bo,{appendNode:jo,additionalProps:(0,bt.Z)((0,bt.Z)({},_o),{},{style:To},Co)}))}var ko=Ri,uo=["data","index","className","rowKey","style","extra","getHeight"],Vo=x.forwardRef(function(wt,yt){var Vt=wt.data,cn=wt.index,Fn=wt.className,kn=wt.rowKey,ar=wt.style,qn=wt.extra,wr=wt.getHeight,dr=(0,ee.Z)(wt,uo),di=Vt.record,Rr=Vt.indent,jr=Vt.index,Dr=oe(et,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Fr=Dr.scrollX,$i=Dr.flattenColumns,bi=Dr.prefixCls,qi=Dr.fixColumn,ao=Dr.componentWidth,Ji=oe(mo,["getComponent"]),fo=Ji.getComponent,Bo=Wt(di,kn,cn,Rr),jo=fo(["body","row"],"div"),_o=fo(["body","cell"],"div"),La=Bo.rowSupportExpand,sa=Bo.expanded,ea=Bo.rowProps,zo=Bo.expandedRowRender,Ho=Bo.expandedRowClassName,Qo;if(La&&sa){var vo=zo(di,cn,Rr+1,sa),co=En(Ho,di,cn,Rr),To={};qi&&(To={style:(0,He.Z)({},"--virtual-width","".concat(ao,"px"))});var Wo="".concat(bi,"-expanded-row-cell");Qo=x.createElement(jo,{className:Ne()("".concat(bi,"-expanded-row"),"".concat(bi,"-expanded-row-level-").concat(Rr+1),co)},x.createElement(Cn,{component:_o,prefixCls:bi,className:Ne()(Wo,(0,He.Z)({},"".concat(Wo,"-fixed"),qi)),additionalProps:To},vo))}var na=(0,bt.Z)((0,bt.Z)({},ar),{},{width:Fr});qn&&(na.position="absolute",na.pointerEvents="none");var Co=x.createElement(jo,(0,Oe.Z)({},ea,dr,{"data-row-key":kn,ref:La?null:yt,className:Ne()(Fn,"".concat(bi,"-row"),ea==null?void 0:ea.className,(0,He.Z)({},"".concat(bi,"-row-extra"),qn)),style:(0,bt.Z)((0,bt.Z)({},na),ea==null?void 0:ea.style)}),$i.map(function(Ya,Ka){return x.createElement(ko,{key:Ka,component:_o,rowInfo:Bo,column:Ya,colIndex:Ka,indent:Rr,index:cn,renderIndex:jr,record:di,inverse:qn,getHeight:wr})}));return La?x.createElement("div",{ref:yt},Co,Qo):Co}),wo=Ke(Vo),to=wo,bo=x.forwardRef(function(wt,yt){var Vt=wt.data,cn=wt.onScroll,Fn=oe(et,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),kn=Fn.flattenColumns,ar=Fn.onColumnResize,qn=Fn.getRowKey,wr=Fn.expandedKeys,dr=Fn.prefixCls,di=Fn.childrenColumnName,Rr=Fn.scrollX,jr=Fn.direction,Dr=oe(mo),Fr=Dr.sticky,$i=Dr.scrollY,bi=Dr.listItemHeight,qi=Dr.getComponent,ao=Dr.onScroll,Ji=x.useRef(),fo=$t(Vt,di,wr,qn),Bo=x.useMemo(function(){var Qo=0;return kn.map(function(vo){var co=vo.width,To=vo.key;return Qo+=co,[To,co,Qo]})},[kn]),jo=x.useMemo(function(){return Bo.map(function(Qo){return Qo[2]})},[Bo]);x.useEffect(function(){Bo.forEach(function(Qo){var vo=(0,Je.Z)(Qo,2),co=vo[0],To=vo[1];ar(co,To)})},[Bo]),x.useImperativeHandle(yt,function(){var Qo,vo={scrollTo:function(To){var Wo;(Wo=Ji.current)===null||Wo===void 0||Wo.scrollTo(To)},nativeElement:(Qo=Ji.current)===null||Qo===void 0?void 0:Qo.nativeElement};return Object.defineProperty(vo,"scrollLeft",{get:function(){var To;return((To=Ji.current)===null||To===void 0?void 0:To.getScrollInfo().x)||0},set:function(To){var Wo;(Wo=Ji.current)===null||Wo===void 0||Wo.scrollTo({left:To})}}),vo});var _o=function(vo,co){var To,Wo=(To=fo[co])===null||To===void 0?void 0:To.record,na=vo.onCell;if(na){var Co,Ya=na(Wo,co);return(Co=Ya==null?void 0:Ya.rowSpan)!==null&&Co!==void 0?Co:1}return 1},La=function(vo){var co=vo.start,To=vo.end,Wo=vo.getSize,na=vo.offsetY;if(To<0)return null;for(var Co=kn.filter(function(ra){return _o(ra,co)===0}),Ya=co,Ka=function(Ca){if(Co=Co.filter(function($o){return _o($o,Ca)===0}),!Co.length)return Ya=Ca,1},_l=co;_l>=0&&!Ka(_l);_l-=1);for(var El=kn.filter(function(ra){return _o(ra,To)!==1}),al=To,so=function(Ca){if(El=El.filter(function($o){return _o($o,Ca)!==1}),!El.length)return al=Math.max(Ca-1,To),1},Jl=To;Jl<fo.length&&!so(Jl);Jl+=1);for(var ss=[],rs=function(Ca){var $o=fo[Ca];if(!$o)return 1;kn.some(function(Oo){return _o(Oo,Ca)>1})&&ss.push(Ca)},il=Ya;il<=al;il+=1)rs(il);var fu=ss.map(function(ra){var Ca=fo[ra],$o=qn(Ca.record,ra),Oo=function(Ws){var Qs=ra+Ws-1,sl=qn(fo[Qs].record,Qs),pu=Wo($o,sl);return pu.bottom-pu.top},fs=Wo($o);return x.createElement(to,{key:ra,data:Ca,rowKey:$o,index:ra,style:{top:-na+fs.top},extra:!0,getHeight:Oo})});return fu},sa=x.useMemo(function(){return{columnsOffset:jo}},[jo]),ea="".concat(dr,"-tbody"),zo=qi(["body","wrapper"]),Ho={};return Fr&&(Ho.position="sticky",Ho.bottom=0,(0,ft.Z)(Fr)==="object"&&Fr.offsetScroll&&(Ho.bottom=Fr.offsetScroll)),x.createElement(Yi.Provider,{value:sa},x.createElement(eo.Z,{fullHeight:!1,ref:Ji,prefixCls:"".concat(ea,"-virtual"),styles:{horizontalScrollBar:Ho},className:ea,height:$i,itemHeight:bi||24,data:fo,itemKey:function(vo){return qn(vo.record)},component:zo,scrollWidth:Rr,direction:jr,onVirtualScroll:function(vo){var co,To=vo.x;cn({currentTarget:(co=Ji.current)===null||co===void 0?void 0:co.nativeElement,scrollLeft:To})},onScroll:ao,extraRender:La},function(Qo,vo,co){var To=qn(Qo.record,vo);return x.createElement(to,{data:Qo,rowKey:To,index:vo,style:co.style})}))}),Go=Ke(bo),Tn=Go,Lo=function(yt,Vt){var cn=Vt.ref,Fn=Vt.onScroll;return x.createElement(Tn,{ref:cn,data:yt,onScroll:Fn})};function Vi(wt,yt){var Vt=wt.data,cn=wt.columns,Fn=wt.scroll,kn=wt.sticky,ar=wt.prefixCls,qn=ar===void 0?Ni:ar,wr=wt.className,dr=wt.listItemHeight,di=wt.components,Rr=wt.onScroll,jr=Fn||{},Dr=jr.x,Fr=jr.y;typeof Dr!="number"&&(Dr=1),typeof Fr!="number"&&(Fr=500);var $i=(0,kt.zX)(function(ao,Ji){return(0,Ot.Z)(di,ao)||Ji}),bi=(0,kt.zX)(Rr),qi=x.useMemo(function(){return{sticky:kn,scrollY:Fr,listItemHeight:dr,getComponent:$i,onScroll:bi}},[kn,Fr,dr,$i,bi]);return x.createElement(mo.Provider,{value:qi},x.createElement(Mi,(0,Oe.Z)({},wt,{className:Ne()(wr,"".concat(qn,"-virtual")),scroll:(0,bt.Z)((0,bt.Z)({},Fn),{},{x:Dr}),components:(0,bt.Z)((0,bt.Z)({},di),{},{body:Vt!=null&&Vt.length?Lo:void 0}),columns:cn,internalHooks:Le,tailor:!0,ref:yt})))}var Mr=x.forwardRef(Vi);function Jr(wt){return ke(Mr,wt)}var ri=Jr(),Wr=null,no=wt=>null,ui=wt=>null,vr=ae(84105),qr=ae(82661),Ao=ae(34643),Yo=ae(34061),Do=ae(18929);function ga(wt){const[yt,Vt]=(0,x.useState)(null);return[(0,x.useCallback)((kn,ar,qn)=>{const wr=yt!=null?yt:kn,dr=Math.min(wr||0,kn),di=Math.max(wr||0,kn),Rr=ar.slice(dr,di+1).map(Fr=>wt(Fr)),jr=Rr.some(Fr=>!qn.has(Fr)),Dr=[];return Rr.forEach(Fr=>{jr?(qn.has(Fr)||Dr.push(Fr),qn.add(Fr)):(qn.delete(Fr),Dr.push(Fr))}),Vt(jr?di:null),Dr},[yt]),kn=>{Vt(kn)}]}var No=ae(32383),Jo=ae(62673),Ro=ae(75727),oa=ae(47889);const fa={},Wa="SELECT_ALL",Ds="SELECT_INVERT",js="SELECT_NONE",as=[],ds=(wt,yt)=>{let Vt=[];return(yt||[]).forEach(cn=>{Vt.push(cn),cn&&typeof cn=="object"&&wt in cn&&(Vt=[].concat((0,gr.Z)(Vt),(0,gr.Z)(ds(wt,cn[wt]))))}),Vt};var go=(wt,yt)=>{const{preserveSelectedRowKeys:Vt,selectedRowKeys:cn,defaultSelectedRowKeys:Fn,getCheckboxProps:kn,onChange:ar,onSelect:qn,onSelectAll:wr,onSelectInvert:dr,onSelectNone:di,onSelectMultiple:Rr,columnWidth:jr,type:Dr,selections:Fr,fixed:$i,renderCell:bi,hideSelectAll:qi,checkStrictly:ao=!0}=yt||{},{prefixCls:Ji,data:fo,pageData:Bo,getRecordByKey:jo,getRowKey:_o,expandType:La,childrenColumnName:sa,locale:ea,getPopupContainer:zo}=wt,Ho=(0,No.ln)("Table"),[Qo,vo]=ga(ra=>ra),[co,To]=(0,Do.Z)(cn||Fn||as,{value:cn}),Wo=x.useRef(new Map),na=(0,x.useCallback)(ra=>{if(Vt){const Ca=new Map;ra.forEach($o=>{let Oo=jo($o);!Oo&&Wo.current.has($o)&&(Oo=Wo.current.get($o)),Ca.set($o,Oo)}),Wo.current=Ca}},[jo,Vt]);x.useEffect(()=>{na(co)},[co]);const Co=(0,x.useMemo)(()=>ds(sa,Bo),[sa,Bo]),{keyEntities:Ya}=(0,x.useMemo)(()=>{if(ao)return{keyEntities:null};let ra=fo;if(Vt){const Ca=new Set(Co.map((Oo,fs)=>_o(Oo,fs))),$o=Array.from(Wo.current).reduce((Oo,fs)=>{let[Ss,Ws]=fs;return Ca.has(Ss)?Oo:Oo.concat(Ws)},[]);ra=[].concat((0,gr.Z)(ra),(0,gr.Z)($o))}return(0,Yo.I8)(ra,{externalGetKey:_o,childrenPropName:sa})},[fo,_o,ao,sa,Vt,Co]),Ka=(0,x.useMemo)(()=>{const ra=new Map;return Co.forEach((Ca,$o)=>{const Oo=_o(Ca,$o),fs=(kn?kn(Ca):null)||{};ra.set(Oo,fs)}),ra},[Co,_o,kn]),_l=(0,x.useCallback)(ra=>{const Ca=_o(ra);let $o;return Ka.has(Ca)?$o=Ka.get(_o(ra)):$o=kn?kn(ra):void 0,!!($o!=null&&$o.disabled)},[Ka,_o]),[El,al]=(0,x.useMemo)(()=>{if(ao)return[co||[],[]];const{checkedKeys:ra,halfCheckedKeys:Ca}=(0,Ao.S)(co,!0,Ya,_l);return[ra||[],Ca]},[co,ao,Ya,_l]),so=(0,x.useMemo)(()=>{const ra=Dr==="radio"?El.slice(0,1):El;return new Set(ra)},[El,Dr]),Jl=(0,x.useMemo)(()=>Dr==="radio"?new Set:new Set(al),[al,Dr]);x.useEffect(()=>{yt||To(as)},[!!yt]);const ss=(0,x.useCallback)((ra,Ca)=>{let $o,Oo;na(ra),Vt?($o=ra,Oo=ra.map(fs=>Wo.current.get(fs))):($o=[],Oo=[],ra.forEach(fs=>{const Ss=jo(fs);Ss!==void 0&&($o.push(fs),Oo.push(Ss))})),To($o),ar==null||ar($o,Oo,{type:Ca})},[To,jo,ar,Vt]),rs=(0,x.useCallback)((ra,Ca,$o,Oo)=>{if(qn){const fs=$o.map(Ss=>jo(Ss));qn(jo(ra),Ca,fs,Oo)}ss($o,"single")},[qn,jo,ss]),il=(0,x.useMemo)(()=>!Fr||qi?null:(Fr===!0?[Wa,Ds,js]:Fr).map(Ca=>Ca===Wa?{key:"all",text:ea.selectionAll,onSelect(){ss(fo.map(($o,Oo)=>_o($o,Oo)).filter($o=>{const Oo=Ka.get($o);return!(Oo!=null&&Oo.disabled)||so.has($o)}),"all")}}:Ca===Ds?{key:"invert",text:ea.selectInvert,onSelect(){const $o=new Set(so);Bo.forEach((fs,Ss)=>{const Ws=_o(fs,Ss),Qs=Ka.get(Ws);Qs!=null&&Qs.disabled||($o.has(Ws)?$o.delete(Ws):$o.add(Ws))});const Oo=Array.from($o);dr&&(Ho.deprecated(!1,"onSelectInvert","onChange"),dr(Oo)),ss(Oo,"invert")}}:Ca===js?{key:"none",text:ea.selectNone,onSelect(){di==null||di(),ss(Array.from(so).filter($o=>{const Oo=Ka.get($o);return Oo==null?void 0:Oo.disabled}),"none")}}:Ca).map(Ca=>Object.assign(Object.assign({},Ca),{onSelect:function(){for(var $o,Oo,fs=arguments.length,Ss=new Array(fs),Ws=0;Ws<fs;Ws++)Ss[Ws]=arguments[Ws];(Oo=Ca.onSelect)===null||Oo===void 0||($o=Oo).call.apply($o,[Ca].concat(Ss)),vo(null)}})),[Fr,so,Bo,_o,dr,ss]);return[(0,x.useCallback)(ra=>{var Ca;if(!yt)return ra.filter(vs=>vs!==fa);let $o=(0,gr.Z)(ra);const Oo=new Set(so),fs=Co.map(_o).filter(vs=>!Ka.get(vs).disabled),Ss=fs.every(vs=>Oo.has(vs)),Ws=fs.some(vs=>Oo.has(vs)),Qs=()=>{const vs=[];Ss?fs.forEach(ul=>{Oo.delete(ul),vs.push(ul)}):fs.forEach(ul=>{Oo.has(ul)||(Oo.add(ul),vs.push(ul))});const ll=Array.from(Oo);wr==null||wr(!Ss,ll.map(ul=>jo(ul)),vs.map(ul=>jo(ul))),ss(ll,"all"),vo(null)};let sl,pu;if(Dr!=="radio"){let vs;if(il){const ys={getPopupContainer:zo,items:il.map((vl,Fs)=>{const{key:yl,text:ql,onSelect:Ou}=vl;return{key:yl!=null?yl:Fs,onClick:()=>{Ou==null||Ou(fs)},label:ql}})};vs=x.createElement("div",{className:`${Ji}-selection-extra`},x.createElement(Ro.Z,{menu:ys,getPopupContainer:zo},x.createElement("span",null,x.createElement(vr.Z,null))))}const ll=Co.map((ys,vl)=>{const Fs=_o(ys,vl),yl=Ka.get(Fs)||{};return Object.assign({checked:Oo.has(Fs)},yl)}).filter(ys=>{let{disabled:vl}=ys;return vl}),ul=!!ll.length&&ll.length===Co.length,hu=ul&&ll.every(ys=>{let{checked:vl}=ys;return vl}),kl=ul&&ll.some(ys=>{let{checked:vl}=ys;return vl});pu=x.createElement(Jo.default,{checked:ul?hu:!!Co.length&&Ss,indeterminate:ul?!hu&&kl:!Ss&&Ws,onChange:Qs,disabled:Co.length===0||ul,"aria-label":vs?"Custom selection":"Select all",skipGroup:!0}),sl=!qi&&x.createElement("div",{className:`${Ji}-selection`},pu,vs)}let la;Dr==="radio"?la=(vs,ll,ul)=>{const hu=_o(ll,ul),kl=Oo.has(hu),ys=Ka.get(hu);return{node:x.createElement(oa.ZP,Object.assign({},ys,{checked:kl,onClick:vl=>{var Fs;vl.stopPropagation(),(Fs=ys==null?void 0:ys.onClick)===null||Fs===void 0||Fs.call(ys,vl)},onChange:vl=>{var Fs;Oo.has(hu)||rs(hu,!0,[hu],vl.nativeEvent),(Fs=ys==null?void 0:ys.onChange)===null||Fs===void 0||Fs.call(ys,vl)}})),checked:kl}}:la=(vs,ll,ul)=>{var hu;const kl=_o(ll,ul),ys=Oo.has(kl),vl=Jl.has(kl),Fs=Ka.get(kl);let yl;return La==="nest"?yl=vl:yl=(hu=Fs==null?void 0:Fs.indeterminate)!==null&&hu!==void 0?hu:vl,{node:x.createElement(Jo.default,Object.assign({},Fs,{indeterminate:yl,checked:ys,skipGroup:!0,onClick:ql=>{var Ou;ql.stopPropagation(),(Ou=Fs==null?void 0:Fs.onClick)===null||Ou===void 0||Ou.call(Fs,ql)},onChange:ql=>{var Ou;const{nativeEvent:Pu}=ql,{shiftKey:GA}=Pu,Al=fs.findIndex(Uu=>Uu===kl),Dd=El.some(Uu=>fs.includes(Uu));if(GA&&ao&&Dd){const Uu=Qo(Al,fs,Oo),Vu=Array.from(Oo);Rr==null||Rr(!ys,Vu.map(Ru=>jo(Ru)),Uu.map(Ru=>jo(Ru))),ss(Vu,"multiple")}else{const Uu=El;if(ao){const Vu=ys?(0,qr._5)(Uu,kl):(0,qr.L0)(Uu,kl);rs(kl,!ys,Vu,Pu)}else{const Vu=(0,Ao.S)([].concat((0,gr.Z)(Uu),[kl]),!0,Ya,_l),{checkedKeys:Ru,halfCheckedKeys:Xu}=Vu;let cl=Ru;if(ys){const vA=new Set(Ru);vA.delete(kl),cl=(0,Ao.S)(Array.from(vA),{checked:!1,halfCheckedKeys:Xu},Ya,_l).checkedKeys}rs(kl,!ys,cl,Pu)}}vo(ys?null:Al),(Ou=Fs==null?void 0:Fs.onChange)===null||Ou===void 0||Ou.call(Fs,ql)}})),checked:ys}};const qo=(vs,ll,ul)=>{const{node:hu,checked:kl}=la(vs,ll,ul);return bi?bi(kl,ll,ul,hu):hu};if(!$o.includes(fa))if($o.findIndex(vs=>{var ll;return((ll=vs[Br])===null||ll===void 0?void 0:ll.columnType)==="EXPAND_COLUMN"})===0){const[vs,...ll]=$o;$o=[vs,fa].concat((0,gr.Z)(ll))}else $o=[fa].concat((0,gr.Z)($o));const xs=$o.indexOf(fa);$o=$o.filter((vs,ll)=>vs!==fa||ll===xs);const Ys=$o[xs-1],$s=$o[xs+1];let gu=$i;gu===void 0&&(($s==null?void 0:$s.fixed)!==void 0?gu=$s.fixed:(Ys==null?void 0:Ys.fixed)!==void 0&&(gu=Ys.fixed)),gu&&Ys&&((Ca=Ys[Br])===null||Ca===void 0?void 0:Ca.columnType)==="EXPAND_COLUMN"&&Ys.fixed===void 0&&(Ys.fixed=gu);const Tl=Ne()(`${Ji}-selection-col`,{[`${Ji}-selection-col-with-dropdown`]:Fr&&Dr==="checkbox"}),sA=()=>yt!=null&&yt.columnTitle?typeof yt.columnTitle=="function"?yt.columnTitle(pu):yt.columnTitle:sl,Sl={fixed:gu,width:jr,className:`${Ji}-selection-column`,title:sA(),render:qo,onCell:yt.onCell,[Br]:{className:Tl}};return $o.map(vs=>vs===fa?Sl:vs)},[_o,Co,yt,El,so,Jl,jr,il,La,Ka,Rr,rs,_l]),so]},Fa=ae(2738);function gs(wt,yt){return wt._antProxy=wt._antProxy||{},Object.keys(yt).forEach(Vt=>{if(!(Vt in wt._antProxy)){const cn=wt[Vt];wt._antProxy[Vt]=cn,wt[Vt]=yt[Vt]}}),wt}function el(wt,yt){return(0,x.useImperativeHandle)(wt,()=>{const Vt=yt(),{nativeElement:cn}=Vt;return typeof Proxy!="undefined"?new Proxy(cn,{get(Fn,kn){return Vt[kn]?Vt[kn]:Reflect.get(Fn,kn)}}):gs(cn,Vt)})}var tl=ae(83010),nl=ae(48755),gl=ae(38406),Au=ae(83397),Xs=ae(31756),Zl=ae(13783),Wl=ae(85981),Iu=ae(31709),fl=ae(29787),SA=ae(57700);function hA(wt){return yt=>{const{prefixCls:Vt,onExpand:cn,record:Fn,expanded:kn,expandable:ar}=yt,qn=`${Vt}-row-expand-icon`;return x.createElement("button",{type:"button",onClick:wr=>{cn(Fn,wr),wr.stopPropagation()},className:Ne()(qn,{[`${qn}-spaced`]:!ar,[`${qn}-expanded`]:ar&&kn,[`${qn}-collapsed`]:ar&&!kn}),"aria-label":kn?wt.collapse:wt.expand,"aria-expanded":kn})}}var pa=hA;function Ia(wt){return(Vt,cn)=>{const Fn=Vt.querySelector(`.${wt}-container`);let kn=cn;if(Fn){const ar=getComputedStyle(Fn),qn=parseInt(ar.borderLeftWidth,10),wr=parseInt(ar.borderRightWidth,10);kn=cn-qn-wr}return kn}}const ma=(wt,yt)=>"key"in wt&&wt.key!==void 0&&wt.key!==null?wt.key:wt.dataIndex?Array.isArray(wt.dataIndex)?wt.dataIndex.join("."):wt.dataIndex:yt;function ba(wt,yt){return yt?`${yt}-${wt}`:`${wt}`}const qa=(wt,yt)=>typeof wt=="function"?wt(yt):wt,Va=(wt,yt)=>{const Vt=qa(wt,yt);return Object.prototype.toString.call(Vt)==="[object Object]"?"":Vt};var za={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"},$l=za,cu=ae(7657),Ui=function(yt,Vt){return x.createElement(cu.Z,(0,Oe.Z)({},yt,{ref:Vt,icon:$l}))},ta=x.forwardRef(Ui),Ta=ta,au=ae(9981),Ml=ae(40192);function ms(wt){const yt=x.useRef(wt),Vt=(0,Ml.Z)();return[()=>yt.current,cn=>{yt.current=cn,Vt()}]}var bu=ae(7939),ml=ae(584),Kc=ae(93041),FA=ae(78857),Cu=ae(18287),aa=ae(47472),$u=ae(49397),ku=wt=>{const{value:yt,filterSearch:Vt,tablePrefixCls:cn,locale:Fn,onChange:kn}=wt;return Vt?x.createElement("div",{className:`${cn}-filter-dropdown-search`},x.createElement($u.Z,{prefix:x.createElement(aa.Z,null),placeholder:Fn.filterSearchPlaceholder,onChange:kn,value:yt,htmlSize:1,className:`${cn}-filter-dropdown-search-input`})):null},Ns=ae(10228);const tA=wt=>{const{keyCode:yt}=wt;yt===Ns.Z.ENTER&&wt.stopPropagation()};var PA=x.forwardRef((wt,yt)=>x.createElement("div",{className:wt.className,onClick:Vt=>Vt.stopPropagation(),onKeyDown:tA,ref:yt},wt.children));function xl(wt){let yt=[];return(wt||[]).forEach(Vt=>{let{value:cn,children:Fn}=Vt;yt.push(cn),Fn&&(yt=[].concat((0,gr.Z)(yt),(0,gr.Z)(xl(Fn))))}),yt}function Bl(wt){return wt.some(yt=>{let{children:Vt}=yt;return Vt})}function rl(wt,yt){return typeof yt=="string"||typeof yt=="number"?yt==null?void 0:yt.toString().toLowerCase().includes(wt.trim().toLowerCase()):!1}function Gl(wt){let{filters:yt,prefixCls:Vt,filteredKeys:cn,filterMultiple:Fn,searchValue:kn,filterSearch:ar}=wt;return yt.map((qn,wr)=>{const dr=String(qn.value);if(qn.children)return{key:dr||wr,label:qn.text,popupClassName:`${Vt}-dropdown-submenu`,children:Gl({filters:qn.children,prefixCls:Vt,filteredKeys:cn,filterMultiple:Fn,searchValue:kn,filterSearch:ar})};const di=Fn?Jo.default:oa.ZP,Rr={key:qn.value!==void 0?dr:wr,label:x.createElement(x.Fragment,null,x.createElement(di,{checked:cn.includes(dr)}),x.createElement("span",null,qn.text))};return kn.trim()?typeof ar=="function"?ar(kn,qn)?Rr:null:rl(kn,qn.text)?Rr:null:Rr})}function Vl(wt){return wt||[]}var td=wt=>{var yt,Vt,cn,Fn;const{tablePrefixCls:kn,prefixCls:ar,column:qn,dropdownPrefixCls:wr,columnKey:dr,filterOnClose:di,filterMultiple:Rr,filterMode:jr="menu",filterSearch:Dr=!1,filterState:Fr,triggerFilter:$i,locale:bi,children:qi,getPopupContainer:ao,rootClassName:Ji}=wt,{filterResetToDefaultFilteredValue:fo,defaultFilteredValue:Bo,filterDropdownProps:jo={},filterDropdownOpen:_o,filterDropdownVisible:La,onFilterDropdownVisibleChange:sa,onFilterDropdownOpenChange:ea}=qn,[zo,Ho]=x.useState(!1),Qo=!!(Fr&&(!((yt=Fr.filteredKeys)===null||yt===void 0)&&yt.length||Fr.forceFiltered)),vo=la=>{var qo;Ho(la),(qo=jo.onOpenChange)===null||qo===void 0||qo.call(jo,la),ea==null||ea(la),sa==null||sa(la)},co=(Fn=(cn=(Vt=jo.open)!==null&&Vt!==void 0?Vt:_o)!==null&&cn!==void 0?cn:La)!==null&&Fn!==void 0?Fn:zo,To=Fr==null?void 0:Fr.filteredKeys,[Wo,na]=ms(Vl(To)),Co=la=>{let{selectedKeys:qo}=la;na(qo)},Ya=(la,qo)=>{let{node:xs,checked:Ys}=qo;Co(Rr?{selectedKeys:la}:{selectedKeys:Ys&&xs.key?[xs.key]:[]})};x.useEffect(()=>{zo&&Co({selectedKeys:Vl(To)})},[To]);const[Ka,_l]=x.useState([]),El=la=>{_l(la)},[al,so]=x.useState(""),Jl=la=>{const{value:qo}=la.target;so(qo)};x.useEffect(()=>{zo||so("")},[zo]);const ss=la=>{const qo=la!=null&&la.length?la:null;if(qo===null&&(!Fr||!Fr.filteredKeys)||(0,Ue.Z)(qo,Fr==null?void 0:Fr.filteredKeys,!0))return null;$i({column:qn,key:dr,filteredKeys:qo})},rs=()=>{vo(!1),ss(Wo())},il=function(){let{confirm:la,closeDropdown:qo}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};la&&ss([]),qo&&vo(!1),so(""),na(fo?(Bo||[]).map(xs=>String(xs)):[])},fu=function(){let{closeDropdown:la}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};la&&vo(!1),ss(Wo())},ra=(la,qo)=>{qo.source==="trigger"&&(la&&To!==void 0&&na(Vl(To)),vo(la),!la&&!qn.filterDropdown&&di&&rs())},Ca=Ne()({[`${wr}-menu-without-submenu`]:!Bl(qn.filters||[])}),$o=la=>{if(la.target.checked){const qo=xl(qn==null?void 0:qn.filters).map(xs=>String(xs));na(qo)}else na([])},Oo=la=>{let{filters:qo}=la;return(qo||[]).map((xs,Ys)=>{const $s=String(xs.value),gu={title:xs.text,key:xs.value!==void 0?$s:String(Ys)};return xs.children&&(gu.children=Oo({filters:xs.children})),gu})},fs=la=>{var qo;return Object.assign(Object.assign({},la),{text:la.title,value:la.key,children:((qo=la.children)===null||qo===void 0?void 0:qo.map(xs=>fs(xs)))||[]})};let Ss;const{direction:Ws,renderEmpty:Qs}=x.useContext(nl.E_);if(typeof qn.filterDropdown=="function")Ss=qn.filterDropdown({prefixCls:`${wr}-custom`,setSelectedKeys:la=>Co({selectedKeys:la}),selectedKeys:Wo(),confirm:fu,clearFilters:il,filters:qn.filters,visible:co,close:()=>{vo(!1)}});else if(qn.filterDropdown)Ss=qn.filterDropdown;else{const la=Wo()||[],qo=()=>{var Ys,$s;const gu=(Ys=Qs==null?void 0:Qs("Table.filter"))!==null&&Ys!==void 0?Ys:x.createElement(ml.Z,{image:ml.Z.PRESENTED_IMAGE_SIMPLE,description:bi.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((qn.filters||[]).length===0)return gu;if(jr==="tree")return x.createElement(x.Fragment,null,x.createElement(ku,{filterSearch:Dr,value:al,onChange:Jl,tablePrefixCls:kn,locale:bi}),x.createElement("div",{className:`${kn}-filter-dropdown-tree`},Rr?x.createElement(Jo.default,{checked:la.length===xl(qn.filters).length,indeterminate:la.length>0&&la.length<xl(qn.filters).length,className:`${kn}-filter-dropdown-checkall`,onChange:$o},($s=bi==null?void 0:bi.filterCheckall)!==null&&$s!==void 0?$s:bi==null?void 0:bi.filterCheckAll):null,x.createElement(Cu.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Rr,checkStrictly:!Rr,className:`${wr}-menu`,onCheck:Ya,checkedKeys:la,selectedKeys:la,showIcon:!1,treeData:Oo({filters:qn.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:al.trim()?Sl=>typeof Dr=="function"?Dr(al,fs(Sl)):rl(al,Sl.title):void 0})));const Tl=Gl({filters:qn.filters||[],filterSearch:Dr,prefixCls:ar,filteredKeys:Wo(),filterMultiple:Rr,searchValue:al}),sA=Tl.every(Sl=>Sl===null);return x.createElement(x.Fragment,null,x.createElement(ku,{filterSearch:Dr,value:al,onChange:Jl,tablePrefixCls:kn,locale:bi}),sA?gu:x.createElement(Kc.default,{selectable:!0,multiple:Rr,prefixCls:`${wr}-menu`,className:Ca,onSelect:Co,onDeselect:Co,selectedKeys:la,getPopupContainer:ao,openKeys:Ka,onOpenChange:El,items:Tl}))},xs=()=>fo?(0,Ue.Z)((Bo||[]).map(Ys=>String(Ys)),la,!0):la.length===0;Ss=x.createElement(x.Fragment,null,qo(),x.createElement("div",{className:`${ar}-dropdown-btns`},x.createElement(bu.ZP,{type:"link",size:"small",disabled:xs(),onClick:()=>il()},bi.filterReset),x.createElement(bu.ZP,{type:"primary",size:"small",onClick:rs},bi.filterConfirm)))}qn.filterDropdown&&(Ss=x.createElement(FA.J,{selectable:void 0},Ss)),Ss=x.createElement(PA,{className:`${ar}-dropdown`},Ss);const sl=()=>{let la;return typeof qn.filterIcon=="function"?la=qn.filterIcon(Qo):qn.filterIcon?la=qn.filterIcon:la=x.createElement(Ta,null),x.createElement("span",{role:"button",tabIndex:-1,className:Ne()(`${ar}-trigger`,{active:Qo}),onClick:qo=>{qo.stopPropagation()}},la)},pu=(0,au.Z)({trigger:["click"],placement:Ws==="rtl"?"bottomLeft":"bottomRight",children:sl(),getPopupContainer:ao},Object.assign(Object.assign({},jo),{rootClassName:Ne()(Ji,jo.rootClassName),open:co,onOpenChange:ra,dropdownRender:()=>typeof(jo==null?void 0:jo.dropdownRender)=="function"?jo.dropdownRender(Ss):Ss}));return x.createElement("div",{className:`${ar}-column`},x.createElement("span",{className:`${kn}-column-title`},qi),x.createElement(Ro.Z,Object.assign({},pu)))};const Ul=(wt,yt,Vt)=>{let cn=[];return(wt||[]).forEach((Fn,kn)=>{var ar;const qn=ba(kn,Vt);if(Fn.filters||"filterDropdown"in Fn||"onFilter"in Fn)if("filteredValue"in Fn){let wr=Fn.filteredValue;"filterDropdown"in Fn||(wr=(ar=wr==null?void 0:wr.map(String))!==null&&ar!==void 0?ar:wr),cn.push({column:Fn,key:ma(Fn,qn),filteredKeys:wr,forceFiltered:Fn.filtered})}else cn.push({column:Fn,key:ma(Fn,qn),filteredKeys:yt&&Fn.defaultFilteredValue?Fn.defaultFilteredValue:void 0,forceFiltered:Fn.filtered});"children"in Fn&&(cn=[].concat((0,gr.Z)(cn),(0,gr.Z)(Ul(Fn.children,yt,qn))))}),cn};function Mu(wt,yt,Vt,cn,Fn,kn,ar,qn,wr){return Vt.map((dr,di)=>{const Rr=ba(di,qn),{filterOnClose:jr=!0,filterMultiple:Dr=!0,filterMode:Fr,filterSearch:$i}=dr;let bi=dr;if(bi.filters||bi.filterDropdown){const qi=ma(bi,Rr),ao=cn.find(Ji=>{let{key:fo}=Ji;return qi===fo});bi=Object.assign(Object.assign({},bi),{title:Ji=>x.createElement(td,{tablePrefixCls:wt,prefixCls:`${wt}-filter`,dropdownPrefixCls:yt,column:bi,columnKey:qi,filterState:ao,filterOnClose:jr,filterMultiple:Dr,filterMode:Fr,filterSearch:$i,triggerFilter:kn,locale:Fn,getPopupContainer:ar,rootClassName:wr},qa(dr.title,Ji))})}return"children"in bi&&(bi=Object.assign(Object.assign({},bi),{children:Mu(wt,yt,bi.children,cn,Fn,kn,ar,Rr,wr)})),bi})}const Pa=wt=>{const yt={};return wt.forEach(Vt=>{let{key:cn,filteredKeys:Fn,column:kn}=Vt;const ar=cn,{filters:qn,filterDropdown:wr}=kn;if(wr)yt[ar]=Fn||null;else if(Array.isArray(Fn)){const dr=xl(qn);yt[ar]=dr.filter(di=>Fn.includes(String(di)))}else yt[ar]=null}),yt},Ra=(wt,yt,Vt)=>yt.reduce((Fn,kn)=>{const{column:{onFilter:ar,filters:qn},filteredKeys:wr}=kn;return ar&&wr&&wr.length?Fn.map(dr=>Object.assign({},dr)).filter(dr=>wr.some(di=>{const Rr=xl(qn),jr=Rr.findIndex(Fr=>String(Fr)===String(di)),Dr=jr!==-1?Rr[jr]:di;return dr[Vt]&&(dr[Vt]=Ra(dr[Vt],yt,Vt)),ar(Dr,dr)})):Fn},wt),Ms=wt=>wt.flatMap(yt=>"children"in yt?[yt].concat((0,gr.Z)(Ms(yt.children||[]))):[yt]);var Xl=wt=>{const{prefixCls:yt,dropdownPrefixCls:Vt,mergedColumns:cn,onFilterChange:Fn,getPopupContainer:kn,locale:ar,rootClassName:qn}=wt,wr=(0,No.ln)("Table"),dr=x.useMemo(()=>Ms(cn||[]),[cn]),[di,Rr]=x.useState(()=>Ul(dr,!0)),jr=x.useMemo(()=>{const bi=Ul(dr,!1);if(bi.length===0)return bi;let qi=!0,ao=!0;if(bi.forEach(Ji=>{let{filteredKeys:fo}=Ji;fo!==void 0?qi=!1:ao=!1}),qi){const Ji=(dr||[]).map((fo,Bo)=>ma(fo,ba(Bo)));return di.filter(fo=>{let{key:Bo}=fo;return Ji.includes(Bo)}).map(fo=>{const Bo=dr[Ji.findIndex(jo=>jo===fo.key)];return Object.assign(Object.assign({},fo),{column:Object.assign(Object.assign({},fo.column),Bo),forceFiltered:Bo.filtered})})}return bi},[dr,di]),Dr=x.useMemo(()=>Pa(jr),[jr]),Fr=bi=>{const qi=jr.filter(ao=>{let{key:Ji}=ao;return Ji!==bi.key});qi.push(bi),Rr(qi),Fn(Pa(qi),qi)};return[bi=>Mu(yt,Vt,bi,jr,ar,Fr,kn,void 0,qn),jr,Dr]},ZA=(wt,yt,Vt)=>{const cn=x.useRef({});function Fn(kn){var ar;if(!cn.current||cn.current.data!==wt||cn.current.childrenColumnName!==yt||cn.current.getRowKey!==Vt){let wr=function(dr){dr.forEach((di,Rr)=>{const jr=Vt(di,Rr);qn.set(jr,di),di&&typeof di=="object"&&yt in di&&wr(di[yt]||[])})};const qn=new Map;wr(wt),cn.current={data:wt,childrenColumnName:yt,kvMap:qn,getRowKey:Vt}}return(ar=cn.current.kvMap)===null||ar===void 0?void 0:ar.get(kn)}return[Fn]},gA=function(wt,yt){var Vt={};for(var cn in wt)Object.prototype.hasOwnProperty.call(wt,cn)&&yt.indexOf(cn)<0&&(Vt[cn]=wt[cn]);if(wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fn=0,cn=Object.getOwnPropertySymbols(wt);Fn<cn.length;Fn++)yt.indexOf(cn[Fn])<0&&Object.prototype.propertyIsEnumerable.call(wt,cn[Fn])&&(Vt[cn[Fn]]=wt[cn[Fn]]);return Vt};const fc=10;function Yl(wt,yt){const Vt={current:wt.current,pageSize:wt.pageSize};return Object.keys(yt&&typeof yt=="object"?yt:{}).forEach(Fn=>{const kn=wt[Fn];typeof kn!="function"&&(Vt[Fn]=kn)}),Vt}function mA(wt,yt,Vt){const cn=Vt&&typeof Vt=="object"?Vt:{},{total:Fn=0}=cn,kn=gA(cn,["total"]),[ar,qn]=(0,x.useState)(()=>({current:"defaultCurrent"in kn?kn.defaultCurrent:1,pageSize:"defaultPageSize"in kn?kn.defaultPageSize:fc})),wr=(0,au.Z)(ar,kn,{total:Fn>0?Fn:wt}),dr=Math.ceil((Fn||wt)/wr.pageSize);wr.current>dr&&(wr.current=dr||1);const di=(jr,Dr)=>{qn({current:jr!=null?jr:1,pageSize:Dr||wr.pageSize})},Rr=(jr,Dr)=>{var Fr;Vt&&((Fr=Vt.onChange)===null||Fr===void 0||Fr.call(Vt,jr,Dr)),di(jr,Dr),yt(jr,Dr||(wr==null?void 0:wr.pageSize))};return Vt===!1?[{},()=>{}]:[Object.assign(Object.assign({},wr),{onChange:Rr}),di]}var tc=mA,nc=ae(89489),Ed=ae(59477),Jf=ae(25399);const nd="ascend",Oc="descend",hc=wt=>typeof wt.sorter=="object"&&typeof wt.sorter.multiple=="number"?wt.sorter.multiple:!1,Lu=wt=>typeof wt=="function"?wt:wt&&typeof wt=="object"&&wt.compare?wt.compare:!1,Pc=(wt,yt)=>yt?wt[wt.indexOf(yt)+1]:wt[0],rc=(wt,yt,Vt)=>{let cn=[];const Fn=(kn,ar)=>{cn.push({column:kn,key:ma(kn,ar),multiplePriority:hc(kn),sortOrder:kn.sortOrder})};return(wt||[]).forEach((kn,ar)=>{const qn=ba(ar,Vt);kn.children?("sortOrder"in kn&&Fn(kn,qn),cn=[].concat((0,gr.Z)(cn),(0,gr.Z)(rc(kn.children,yt,qn)))):kn.sorter&&("sortOrder"in kn?Fn(kn,qn):yt&&kn.defaultSortOrder&&cn.push({column:kn,key:ma(kn,qn),multiplePriority:hc(kn),sortOrder:kn.defaultSortOrder}))}),cn},Sd=(wt,yt,Vt,cn,Fn,kn,ar,qn)=>(yt||[]).map((dr,di)=>{const Rr=ba(di,qn);let jr=dr;if(jr.sorter){const Dr=jr.sortDirections||Fn,Fr=jr.showSorterTooltip===void 0?ar:jr.showSorterTooltip,$i=ma(jr,Rr),bi=Vt.find(sa=>{let{key:ea}=sa;return ea===$i}),qi=bi?bi.sortOrder:null,ao=Pc(Dr,qi);let Ji;if(dr.sortIcon)Ji=dr.sortIcon({sortOrder:qi});else{const sa=Dr.includes(nd)&&x.createElement(Ed.Z,{className:Ne()(`${wt}-column-sorter-up`,{active:qi===nd})}),ea=Dr.includes(Oc)&&x.createElement(nc.Z,{className:Ne()(`${wt}-column-sorter-down`,{active:qi===Oc})});Ji=x.createElement("span",{className:Ne()(`${wt}-column-sorter`,{[`${wt}-column-sorter-full`]:!!(sa&&ea)})},x.createElement("span",{className:`${wt}-column-sorter-inner`,"aria-hidden":"true"},sa,ea))}const{cancelSort:fo,triggerAsc:Bo,triggerDesc:jo}=kn||{};let _o=fo;ao===Oc?_o=jo:ao===nd&&(_o=Bo);const La=typeof Fr=="object"?Object.assign({title:_o},Fr):{title:_o};jr=Object.assign(Object.assign({},jr),{className:Ne()(jr.className,{[`${wt}-column-sort`]:qi}),title:sa=>{const ea=`${wt}-column-sorters`,zo=x.createElement("span",{className:`${wt}-column-title`},qa(dr.title,sa)),Ho=x.createElement("div",{className:ea},zo,Ji);return Fr?typeof Fr!="boolean"&&(Fr==null?void 0:Fr.target)==="sorter-icon"?x.createElement("div",{className:`${ea} ${wt}-column-sorters-tooltip-target-sorter`},zo,x.createElement(Jf.Z,Object.assign({},La),Ji)):x.createElement(Jf.Z,Object.assign({},La),Ho):Ho},onHeaderCell:sa=>{var ea;const zo=((ea=dr.onHeaderCell)===null||ea===void 0?void 0:ea.call(dr,sa))||{},Ho=zo.onClick,Qo=zo.onKeyDown;zo.onClick=To=>{cn({column:dr,key:$i,sortOrder:ao,multiplePriority:hc(dr)}),Ho==null||Ho(To)},zo.onKeyDown=To=>{To.keyCode===Ns.Z.ENTER&&(cn({column:dr,key:$i,sortOrder:ao,multiplePriority:hc(dr)}),Qo==null||Qo(To))};const vo=Va(dr.title,{}),co=vo==null?void 0:vo.toString();return qi&&(zo["aria-sort"]=qi==="ascend"?"ascending":"descending"),zo["aria-label"]=co||"",zo.className=Ne()(zo.className,`${wt}-column-has-sorters`),zo.tabIndex=0,dr.ellipsis&&(zo.title=(vo!=null?vo:"").toString()),zo}})}return"children"in jr&&(jr=Object.assign(Object.assign({},jr),{children:Sd(wt,jr.children,Vt,cn,Fn,kn,ar,Rr)})),jr}),qf=wt=>{const{column:yt,sortOrder:Vt}=wt;return{column:yt,order:Vt,field:yt.dataIndex,columnKey:yt.key}},Os=wt=>{const yt=wt.filter(Vt=>{let{sortOrder:cn}=Vt;return cn}).map(qf);if(yt.length===0&&wt.length){const Vt=wt.length-1;return Object.assign(Object.assign({},qf(wt[Vt])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return yt.length<=1?yt[0]||{}:yt},Gu=(wt,yt,Vt)=>{const cn=yt.slice().sort((ar,qn)=>qn.multiplePriority-ar.multiplePriority),Fn=wt.slice(),kn=cn.filter(ar=>{let{column:{sorter:qn},sortOrder:wr}=ar;return Lu(qn)&&wr});return kn.length?Fn.sort((ar,qn)=>{for(let wr=0;wr<kn.length;wr+=1){const dr=kn[wr],{column:{sorter:di},sortOrder:Rr}=dr,jr=Lu(di);if(jr&&Rr){const Dr=jr(ar,qn,Rr);if(Dr!==0)return Rr===nd?Dr:-Dr}}return 0}).map(ar=>{const qn=ar[Vt];return qn?Object.assign(Object.assign({},ar),{[Vt]:Gu(qn,yt,Vt)}):ar}):Fn};var _h=wt=>{const{prefixCls:yt,mergedColumns:Vt,sortDirections:cn,tableLocale:Fn,showSorterTooltip:kn,onSorterChange:ar}=wt,[qn,wr]=x.useState(rc(Vt,!0)),dr=($i,bi)=>{const qi=[];return $i.forEach((ao,Ji)=>{const fo=ba(Ji,bi);if(qi.push(ma(ao,fo)),Array.isArray(ao.children)){const Bo=dr(ao.children,fo);qi.push.apply(qi,(0,gr.Z)(Bo))}}),qi},di=x.useMemo(()=>{let $i=!0;const bi=rc(Vt,!1);if(!bi.length){const fo=dr(Vt);return qn.filter(Bo=>{let{key:jo}=Bo;return fo.includes(jo)})}const qi=[];function ao(fo){$i?qi.push(fo):qi.push(Object.assign(Object.assign({},fo),{sortOrder:null}))}let Ji=null;return bi.forEach(fo=>{Ji===null?(ao(fo),fo.sortOrder&&(fo.multiplePriority===!1?$i=!1:Ji=!0)):(Ji&&fo.multiplePriority!==!1||($i=!1),ao(fo))}),qi},[Vt,qn]),Rr=x.useMemo(()=>{var $i,bi;const qi=di.map(ao=>{let{column:Ji,sortOrder:fo}=ao;return{column:Ji,order:fo}});return{sortColumns:qi,sortColumn:($i=qi[0])===null||$i===void 0?void 0:$i.column,sortOrder:(bi=qi[0])===null||bi===void 0?void 0:bi.order}},[di]),jr=$i=>{let bi;$i.multiplePriority===!1||!di.length||di[0].multiplePriority===!1?bi=[$i]:bi=[].concat((0,gr.Z)(di.filter(qi=>{let{key:ao}=qi;return ao!==$i.key})),[$i]),wr(bi),ar(Os(bi),bi)};return[$i=>Sd(yt,$i,di,jr,cn,Fn,kn),di,Rr,()=>Os(di)]};const WA=(wt,yt)=>wt.map(cn=>{const Fn=Object.assign({},cn);return Fn.title=qa(cn.title,yt),"children"in Fn&&(Fn.children=WA(Fn.children,yt)),Fn});var Fd=wt=>[x.useCallback(Vt=>WA(Vt,wt),[wt])],bf=Ci((wt,yt)=>{const{_renderTimes:Vt}=wt,{_renderTimes:cn}=yt;return Vt!==cn}),$A=Jr((wt,yt)=>{const{_renderTimes:Vt}=wt,{_renderTimes:cn}=yt;return Vt!==cn}),ya=ae(36237),Rl=ae(17835),_A=ae(63356),rd=ae(16931),_c=ae(51636),Tc=wt=>{const{componentCls:yt,lineWidth:Vt,lineType:cn,tableBorderColor:Fn,tableHeaderBg:kn,tablePaddingVertical:ar,tablePaddingHorizontal:qn,calc:wr}=wt,dr=`${(0,ya.unit)(Vt)} ${cn} ${Fn}`,di=(Rr,jr,Dr)=>({[`&${yt}-${Rr}`]:{[`> ${yt}-container`]:{[`> ${yt}-content, > ${yt}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${yt}-expanded-row-fixed`]:{margin:`${(0,ya.unit)(wr(jr).mul(-1).equal())}
${(0,ya.unit)(wr(wr(Dr).add(Vt)).mul(-1).equal())}`}}}}}});return{[`${yt}-wrapper`]:{[`${yt}${yt}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${yt}-title`]:{border:dr,borderBottom:0},[`> ${yt}-container`]:{borderInlineStart:dr,borderTop:dr,[`
> ${yt}-content,
> ${yt}-header,
> ${yt}-body,
> ${yt}-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:dr},"> thead":{"> tr:not(:last-child) > th":{borderBottom:dr},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${yt}-cell-fix-right-first::after`]:{borderInlineEnd:dr}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${yt}-expanded-row-fixed`]:{margin:`${(0,ya.unit)(wr(ar).mul(-1).equal())} ${(0,ya.unit)(wr(wr(qn).add(Vt)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:Vt,bottom:0,borderInlineEnd:dr,content:'""'}}}}}},[`&${yt}-scroll-horizontal`]:{[`> ${yt}-container > ${yt}-body`]:{"> table > tbody":{[`
> tr${yt}-expanded-row,
> tr${yt}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},di("middle",wt.tablePaddingVerticalMiddle,wt.tablePaddingHorizontalMiddle)),di("small",wt.tablePaddingVerticalSmall,wt.tablePaddingHorizontalSmall)),{[`> ${yt}-footer`]:{border:dr,borderTop:0}}),[`${yt}-cell`]:{[`${yt}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,ya.unit)(Vt)} 0 ${(0,ya.unit)(Vt)} ${kn}`}},[`${yt}-bordered ${yt}-cell-scrollbar`]:{borderInlineEnd:dr}}}},TA=wt=>{const{componentCls:yt}=wt;return{[`${yt}-wrapper`]:{[`${yt}-cell-ellipsis`]:Object.assign(Object.assign({},_A.vS),{wordBreak:"keep-all",[`
&${yt}-cell-fix-left-last,
&${yt}-cell-fix-right-first
`]:{overflow:"visible",[`${yt}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${yt}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Zp=wt=>{const{componentCls:yt}=wt;return{[`${yt}-wrapper`]:{[`${yt}-tbody > tr${yt}-placeholder`]:{textAlign:"center",color:wt.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:wt.colorBgContainer}}}}},IA=wt=>{const{componentCls:yt,antCls:Vt,motionDurationSlow:cn,lineWidth:Fn,paddingXS:kn,lineType:ar,tableBorderColor:qn,tableExpandIconBg:wr,tableExpandColumnWidth:dr,borderRadius:di,tablePaddingVertical:Rr,tablePaddingHorizontal:jr,tableExpandedRowBg:Dr,paddingXXS:Fr,expandIconMarginTop:$i,expandIconSize:bi,expandIconHalfInner:qi,expandIconScale:ao,calc:Ji}=wt,fo=`${(0,ya.unit)(Fn)} ${ar} ${qn}`,Bo=Ji(Fr).sub(Fn).equal();return{[`${yt}-wrapper`]:{[`${yt}-expand-icon-col`]:{width:dr},[`${yt}-row-expand-icon-cell`]:{textAlign:"center",[`${yt}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${yt}-row-indent`]:{height:1,float:"left"},[`${yt}-row-expand-icon`]:Object.assign(Object.assign({},(0,_A.Nd)(wt)),{position:"relative",float:"left",width:bi,height:bi,color:"inherit",lineHeight:(0,ya.unit)(bi),background:wr,border:fo,borderRadius:di,transform:`scale(${ao})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${cn} ease-out`,content:'""'},"&::before":{top:qi,insetInlineEnd:Bo,insetInlineStart:Bo,height:Fn},"&::after":{top:Bo,bottom:Bo,insetInlineStart:qi,width:Fn,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"}}),[`${yt}-row-indent + ${yt}-row-expand-icon`]:{marginTop:$i,marginInlineEnd:kn},[`tr${yt}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Dr}},[`${Vt}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${yt}-expanded-row-fixed`]:{position:"relative",margin:`${(0,ya.unit)(Ji(Rr).mul(-1).equal())} ${(0,ya.unit)(Ji(jr).mul(-1).equal())}`,padding:`${(0,ya.unit)(Rr)} ${(0,ya.unit)(jr)}`}}}},Hs=wt=>{const{componentCls:yt,antCls:Vt,iconCls:cn,tableFilterDropdownWidth:Fn,tableFilterDropdownSearchWidth:kn,paddingXXS:ar,paddingXS:qn,colorText:wr,lineWidth:dr,lineType:di,tableBorderColor:Rr,headerIconColor:jr,fontSizeSM:Dr,tablePaddingHorizontal:Fr,borderRadius:$i,motionDurationSlow:bi,colorTextDescription:qi,colorPrimary:ao,tableHeaderFilterActiveBg:Ji,colorTextDisabled:fo,tableFilterDropdownBg:Bo,tableFilterDropdownHeight:jo,controlItemBgHover:_o,controlItemBgActive:La,boxShadowSecondary:sa,filterDropdownMenuBg:ea,calc:zo}=wt,Ho=`${Vt}-dropdown`,Qo=`${yt}-filter-dropdown`,vo=`${Vt}-tree`,co=`${(0,ya.unit)(dr)} ${di} ${Rr}`;return[{[`${yt}-wrapper`]:{[`${yt}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${yt}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:zo(ar).mul(-1).equal(),marginInline:`${(0,ya.unit)(ar)} ${(0,ya.unit)(zo(Fr).div(2).mul(-1).equal())}`,padding:`0 ${(0,ya.unit)(ar)}`,color:jr,fontSize:Dr,borderRadius:$i,cursor:"pointer",transition:`all ${bi}`,"&:hover":{color:qi,background:Ji},"&.active":{color:ao}}}},{[`${Vt}-dropdown`]:{[Qo]:Object.assign(Object.assign({},(0,_A.Wf)(wt)),{minWidth:Fn,backgroundColor:Bo,borderRadius:$i,boxShadow:sa,overflow:"hidden",[`${Ho}-menu`]:{maxHeight:jo,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:ea,"&:empty::after":{display:"block",padding:`${(0,ya.unit)(qn)} 0`,color:fo,fontSize:Dr,textAlign:"center",content:'"Not Found"'}},[`${Qo}-tree`]:{paddingBlock:`${(0,ya.unit)(qn)} 0`,paddingInline:qn,[vo]:{padding:0},[`${vo}-treenode ${vo}-node-content-wrapper:hover`]:{backgroundColor:_o},[`${vo}-treenode-checkbox-checked ${vo}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:La}}},[`${Qo}-search`]:{padding:qn,borderBottom:co,"&-input":{input:{minWidth:kn},[cn]:{color:fo}}},[`${Qo}-checkall`]:{width:"100%",marginBottom:ar,marginInlineStart:ar},[`${Qo}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,ya.unit)(zo(qn).sub(dr).equal())} ${(0,ya.unit)(qn)}`,overflow:"hidden",borderTop:co}})}},{[`${Vt}-dropdown ${Qo}, ${Qo}-submenu`]:{[`${Vt}-checkbox-wrapper + span`]:{paddingInlineStart:qn,color:wr},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},od=wt=>{const{componentCls:yt,lineWidth:Vt,colorSplit:cn,motionDurationSlow:Fn,zIndexTableFixed:kn,tableBg:ar,zIndexTableSticky:qn,calc:wr}=wt,dr=cn;return{[`${yt}-wrapper`]:{[`
${yt}-cell-fix-left,
${yt}-cell-fix-right
`]:{position:"sticky !important",zIndex:kn,background:ar},[`
${yt}-cell-fix-left-first::after,
${yt}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:wr(Vt).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${Fn}`,content:'""',pointerEvents:"none"},[`${yt}-cell-fix-left-all::after`]:{display:"none"},[`
${yt}-cell-fix-right-first::after,
${yt}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:wr(Vt).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Fn}`,content:'""',pointerEvents:"none"},[`${yt}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:wr(qn).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${Fn}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${yt}-ping-left`]:{[`&:not(${yt}-has-fix-left) ${yt}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${dr}`},[`
${yt}-cell-fix-left-first::after,
${yt}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${dr}`},[`${yt}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${yt}-ping-right`]:{[`&:not(${yt}-has-fix-right) ${yt}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${dr}`},[`
${yt}-cell-fix-right-first::after,
${yt}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${dr}`}},[`${yt}-fixed-column-gapped`]:{[`
${yt}-cell-fix-left-first::after,
${yt}-cell-fix-left-last::after,
${yt}-cell-fix-right-first::after,
${yt}-cell-fix-right-last::after
`]:{boxShadow:"none"}}}}},vc=wt=>{const{componentCls:yt,antCls:Vt,margin:cn}=wt;return{[`${yt}-wrapper`]:{[`${yt}-pagination${Vt}-pagination`]:{margin:`${(0,ya.unit)(cn)} 0`},[`${yt}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:wt.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},xf=wt=>{const{componentCls:yt,tableRadius:Vt}=wt;return{[`${yt}-wrapper`]:{[yt]:{[`${yt}-title, ${yt}-header`]:{borderRadius:`${(0,ya.unit)(Vt)} ${(0,ya.unit)(Vt)} 0 0`},[`${yt}-title + ${yt}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${yt}-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:Vt,borderStartEndRadius:Vt,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Vt},"> *:last-child":{borderStartEndRadius:Vt}}},"&-footer":{borderRadius:`0 0 ${(0,ya.unit)(Vt)} ${(0,ya.unit)(Vt)}`}}}}},kh=wt=>{const{componentCls:yt}=wt;return{[`${yt}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${yt}-pagination-left`]:{justifyContent:"flex-end"},[`${yt}-pagination-right`]:{justifyContent:"flex-start"},[`${yt}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${yt}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${yt}-row-indent`]:{float:"right"}}}}},iA=wt=>{const{componentCls:yt,antCls:Vt,iconCls:cn,fontSizeIcon:Fn,padding:kn,paddingXS:ar,headerIconColor:qn,headerIconHoverColor:wr,tableSelectionColumnWidth:dr,tableSelectedRowBg:di,tableSelectedRowHoverBg:Rr,tableRowHoverBg:jr,tablePaddingHorizontal:Dr,calc:Fr}=wt;return{[`${yt}-wrapper`]:{[`${yt}-selection-col`]:{width:dr,[`&${yt}-selection-col-with-dropdown`]:{width:Fr(dr).add(Fn).add(Fr(kn).div(4)).equal()}},[`${yt}-bordered ${yt}-selection-col`]:{width:Fr(dr).add(Fr(ar).mul(2)).equal(),[`&${yt}-selection-col-with-dropdown`]:{width:Fr(dr).add(Fn).add(Fr(kn).div(4)).add(Fr(ar).mul(2)).equal()}},[`
table tr th${yt}-selection-column,
table tr td${yt}-selection-column,
${yt}-selection-column
`]:{paddingInlineEnd:wt.paddingXS,paddingInlineStart:wt.paddingXS,textAlign:"center",[`${Vt}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${yt}-selection-column${yt}-cell-fix-left`]:{zIndex:Fr(wt.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${yt}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${yt}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${yt}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${wt.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,ya.unit)(Fr(Dr).div(4).equal()),[cn]:{color:qn,fontSize:Fn,verticalAlign:"baseline","&:hover":{color:wr}}},[`${yt}-tbody`]:{[`${yt}-row`]:{[`&${yt}-row-selected`]:{[`> ${yt}-cell`]:{background:di,"&-row-hover":{background:Rr}}},[`> ${yt}-cell-row-hover`]:{background:jr}}}}}},up=wt=>{const{componentCls:yt,tableExpandColumnWidth:Vt,calc:cn}=wt,Fn=(kn,ar,qn,wr)=>({[`${yt}${yt}-${kn}`]:{fontSize:wr,[`
${yt}-title,
${yt}-footer,
${yt}-cell,
${yt}-thead > tr > th,
${yt}-tbody > tr > th,
${yt}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${(0,ya.unit)(ar)} ${(0,ya.unit)(qn)}`},[`${yt}-filter-trigger`]:{marginInlineEnd:(0,ya.unit)(cn(qn).div(2).mul(-1).equal())},[`${yt}-expanded-row-fixed`]:{margin:`${(0,ya.unit)(cn(ar).mul(-1).equal())} ${(0,ya.unit)(cn(qn).mul(-1).equal())}`},[`${yt}-tbody`]:{[`${yt}-wrapper:only-child ${yt}`]:{marginBlock:(0,ya.unit)(cn(ar).mul(-1).equal()),marginInline:`${(0,ya.unit)(cn(Vt).sub(qn).equal())} ${(0,ya.unit)(cn(qn).mul(-1).equal())}`}},[`${yt}-selection-extra`]:{paddingInlineStart:(0,ya.unit)(cn(qn).div(4).equal())}}});return{[`${yt}-wrapper`]:Object.assign(Object.assign({},Fn("middle",wt.tablePaddingVerticalMiddle,wt.tablePaddingHorizontalMiddle,wt.tableFontSizeMiddle)),Fn("small",wt.tablePaddingVerticalSmall,wt.tablePaddingHorizontalSmall,wt.tableFontSizeSmall))}},Vd=wt=>{const{componentCls:yt,marginXXS:Vt,fontSizeIcon:cn,headerIconColor:Fn,headerIconHoverColor:kn}=wt;return{[`${yt}-wrapper`]:{[`${yt}-thead th${yt}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${wt.motionDurationSlow}, left 0s`,"&:hover":{background:wt.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:wt.colorPrimary},[`
&${yt}-cell-fix-left:hover,
&${yt}-cell-fix-right:hover
`]:{background:wt.tableFixedHeaderSortActiveBg}},[`${yt}-thead th${yt}-column-sort`]:{background:wt.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${yt}-column-sort`]:{background:wt.tableBodySortBg},[`${yt}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${yt}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${yt}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${yt}-column-sorter`]:{marginInlineStart:Vt,color:Fn,fontSize:0,transition:`color ${wt.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:cn,"&.active":{color:wt.colorPrimary}},[`${yt}-column-sorter-up + ${yt}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${yt}-column-sorters:hover ${yt}-column-sorter`]:{color:kn}}}},Xd=wt=>{const{componentCls:yt,opacityLoading:Vt,tableScrollThumbBg:cn,tableScrollThumbBgHover:Fn,tableScrollThumbSize:kn,tableScrollBg:ar,zIndexTableSticky:qn,stickyScrollBarBorderRadius:wr,lineWidth:dr,lineType:di,tableBorderColor:Rr}=wt,jr=`${(0,ya.unit)(dr)} ${di} ${Rr}`;return{[`${yt}-wrapper`]:{[`${yt}-sticky`]:{"&-holder":{position:"sticky",zIndex:qn,background:wt.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,ya.unit)(kn)} !important`,zIndex:qn,display:"flex",alignItems:"center",background:ar,borderTop:jr,opacity:Vt,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:kn,backgroundColor:cn,borderRadius:wr,transition:`all ${wt.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Fn}}}}}}},oA=wt=>{const{componentCls:yt,lineWidth:Vt,tableBorderColor:cn,calc:Fn}=wt,kn=`${(0,ya.unit)(Vt)} ${wt.lineType} ${cn}`;return{[`${yt}-wrapper`]:{[`${yt}-summary`]:{position:"relative",zIndex:wt.zIndexTableFixed,background:wt.tableBg,"> tr":{"> th, > td":{borderBottom:kn}}},[`div${yt}-summary`]:{boxShadow:`0 ${(0,ya.unit)(Fn(Vt).mul(-1).equal())} 0 ${cn}`}}}},aA=wt=>{const{componentCls:yt,motionDurationMid:Vt,lineWidth:cn,lineType:Fn,tableBorderColor:kn,calc:ar}=wt,qn=`${(0,ya.unit)(cn)} ${Fn} ${kn}`,wr=`${yt}-expanded-row-cell`;return{[`${yt}-wrapper`]:{[`${yt}-tbody-virtual`]:{[`${yt}-tbody-virtual-holder-inner`]:{[`
& > ${yt}-row,
& > div:not(${yt}-row) > ${yt}-row
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${yt}-cell`]:{borderBottom:qn,transition:`background ${Vt}`},[`${yt}-expanded-row`]:{[`${wr}${wr}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,ya.unit)(cn)})`,borderInlineEnd:"none"}}},[`${yt}-bordered`]:{[`${yt}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:qn,position:"absolute"},[`${yt}-cell`]:{borderInlineEnd:qn,[`&${yt}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:ar(cn).mul(-1).equal(),borderInlineStart:qn}}},[`&${yt}-virtual`]:{[`${yt}-placeholder ${yt}-cell`]:{borderInlineEnd:qn,borderBottom:qn}}}}}};const Nu=wt=>{const{componentCls:yt,fontWeightStrong:Vt,tablePaddingVertical:cn,tablePaddingHorizontal:Fn,tableExpandColumnWidth:kn,lineWidth:ar,lineType:qn,tableBorderColor:wr,tableFontSize:dr,tableBg:di,tableRadius:Rr,tableHeaderTextColor:jr,motionDurationMid:Dr,tableHeaderBg:Fr,tableHeaderCellSplitColor:$i,tableFooterTextColor:bi,tableFooterBg:qi,calc:ao}=wt,Ji=`${(0,ya.unit)(ar)} ${qn} ${wr}`;return{[`${yt}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,_A.dF)()),{[yt]:Object.assign(Object.assign({},(0,_A.Wf)(wt)),{fontSize:dr,background:di,borderRadius:`${(0,ya.unit)(Rr)} ${(0,ya.unit)(Rr)} 0 0`,scrollbarColor:`${wt.tableScrollThumbBg} ${wt.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,ya.unit)(Rr)} ${(0,ya.unit)(Rr)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${yt}-cell,
${yt}-thead > tr > th,
${yt}-tbody > tr > th,
${yt}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${(0,ya.unit)(cn)} ${(0,ya.unit)(Fn)}`,overflowWrap:"break-word"},[`${yt}-title`]:{padding:`${(0,ya.unit)(cn)} ${(0,ya.unit)(Fn)}`},[`${yt}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:jr,fontWeight:Vt,textAlign:"start",background:Fr,borderBottom:Ji,transition:`background ${Dr} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${yt}-selection-column):not(${yt}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:$i,transform:"translateY(-50%)",transition:`background-color ${Dr}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${yt}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Dr}, border-color ${Dr}`,borderBottom:Ji,[`
> ${yt}-wrapper:only-child,
> ${yt}-expanded-row-fixed > ${yt}-wrapper:only-child
`]:{[yt]:{marginBlock:(0,ya.unit)(ao(cn).mul(-1).equal()),marginInline:`${(0,ya.unit)(ao(kn).sub(Fn).equal())}
${(0,ya.unit)(ao(Fn).mul(-1).equal())}`,[`${yt}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:jr,fontWeight:Vt,textAlign:"start",background:Fr,borderBottom:Ji,transition:`background ${Dr} ease`}}},[`${yt}-footer`]:{padding:`${(0,ya.unit)(cn)} ${(0,ya.unit)(Fn)}`,color:bi,background:qi}})}},sd=wt=>{const{colorFillAlter:yt,colorBgContainer:Vt,colorTextHeading:cn,colorFillSecondary:Fn,colorFillContent:kn,controlItemBgActive:ar,controlItemBgActiveHover:qn,padding:wr,paddingSM:dr,paddingXS:di,colorBorderSecondary:Rr,borderRadiusLG:jr,controlHeight:Dr,colorTextPlaceholder:Fr,fontSize:$i,fontSizeSM:bi,lineHeight:qi,lineWidth:ao,colorIcon:Ji,colorIconHover:fo,opacityLoading:Bo,controlInteractiveSize:jo}=wt,_o=new Rl.FastColor(Fn).onBackground(Vt).toHexString(),La=new Rl.FastColor(kn).onBackground(Vt).toHexString(),sa=new Rl.FastColor(yt).onBackground(Vt).toHexString(),ea=new Rl.FastColor(Ji),zo=new Rl.FastColor(fo),Ho=jo/2-ao,Qo=Ho*2+ao*3;return{headerBg:sa,headerColor:cn,headerSortActiveBg:_o,headerSortHoverBg:La,bodySortBg:sa,rowHoverBg:sa,rowSelectedBg:ar,rowSelectedHoverBg:qn,rowExpandedBg:yt,cellPaddingBlock:wr,cellPaddingInline:wr,cellPaddingBlockMD:dr,cellPaddingInlineMD:di,cellPaddingBlockSM:di,cellPaddingInlineSM:di,borderColor:Rr,headerBorderRadius:jr,footerBg:sa,footerColor:cn,cellFontSize:$i,cellFontSizeMD:$i,cellFontSizeSM:$i,headerSplitColor:Rr,fixedHeaderSortActiveBg:_o,headerFilterHoverBg:kn,filterDropdownMenuBg:Vt,filterDropdownBg:Vt,expandIconBg:Vt,selectionColumnWidth:Dr,stickyScrollBarBg:Fr,stickyScrollBarBorderRadius:100,expandIconMarginTop:($i*qi-ao*3)/2-Math.ceil((bi*1.4-ao*3)/2),headerIconColor:ea.clone().setA(ea.a*Bo).toRgbString(),headerIconHoverColor:zo.clone().setA(zo.a*Bo).toRgbString(),expandIconHalfInner:Ho,expandIconSize:Qo,expandIconScale:jo/Qo}},Yd=2;var Bf=(0,rd.I$)("Table",wt=>{const{colorTextHeading:yt,colorSplit:Vt,colorBgContainer:cn,controlInteractiveSize:Fn,headerBg:kn,headerColor:ar,headerSortActiveBg:qn,headerSortHoverBg:wr,bodySortBg:dr,rowHoverBg:di,rowSelectedBg:Rr,rowSelectedHoverBg:jr,rowExpandedBg:Dr,cellPaddingBlock:Fr,cellPaddingInline:$i,cellPaddingBlockMD:bi,cellPaddingInlineMD:qi,cellPaddingBlockSM:ao,cellPaddingInlineSM:Ji,borderColor:fo,footerBg:Bo,footerColor:jo,headerBorderRadius:_o,cellFontSize:La,cellFontSizeMD:sa,cellFontSizeSM:ea,headerSplitColor:zo,fixedHeaderSortActiveBg:Ho,headerFilterHoverBg:Qo,filterDropdownBg:vo,expandIconBg:co,selectionColumnWidth:To,stickyScrollBarBg:Wo,calc:na}=wt,Co=(0,_c.mergeToken)(wt,{tableFontSize:La,tableBg:cn,tableRadius:_o,tablePaddingVertical:Fr,tablePaddingHorizontal:$i,tablePaddingVerticalMiddle:bi,tablePaddingHorizontalMiddle:qi,tablePaddingVerticalSmall:ao,tablePaddingHorizontalSmall:Ji,tableBorderColor:fo,tableHeaderTextColor:ar,tableHeaderBg:kn,tableFooterTextColor:jo,tableFooterBg:Bo,tableHeaderCellSplitColor:zo,tableHeaderSortBg:qn,tableHeaderSortHoverBg:wr,tableBodySortBg:dr,tableFixedHeaderSortActiveBg:Ho,tableHeaderFilterActiveBg:Qo,tableFilterDropdownBg:vo,tableRowHoverBg:di,tableSelectedRowBg:Rr,tableSelectedRowHoverBg:jr,zIndexTableFixed:Yd,zIndexTableSticky:na(Yd).add(1).equal({unit:!1}),tableFontSizeMiddle:sa,tableFontSizeSmall:ea,tableSelectionColumnWidth:To,tableExpandIconBg:co,tableExpandColumnWidth:na(Fn).add(na(wt.padding).mul(2)).equal(),tableExpandedRowBg:Dr,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Wo,tableScrollThumbBgHover:yt,tableScrollBg:Vt});return[Nu(Co),vc(Co),oA(Co),Vd(Co),Hs(Co),Tc(Co),xf(Co),IA(Co),oA(Co),Zp(Co),iA(Co),od(Co),Xd(Co),TA(Co),up(Co),kh(Co),aA(Co)]},sd,{unitless:{expandIconScale:!0}});const cp=[],dp=(wt,yt)=>{var Vt,cn;const{prefixCls:Fn,className:kn,rootClassName:ar,style:qn,size:wr,bordered:dr,dropdownPrefixCls:di,dataSource:Rr,pagination:jr,rowSelection:Dr,rowKey:Fr="key",rowClassName:$i,columns:bi,children:qi,childrenColumnName:ao,onChange:Ji,getPopupContainer:fo,loading:Bo,expandIcon:jo,expandable:_o,expandedRowRender:La,expandIconColumnIndex:sa,indentSize:ea,scroll:zo,sortDirections:Ho,locale:Qo,showSorterTooltip:vo={target:"full-header"},virtual:co}=wt,To=(0,No.ln)("Table"),Wo=x.useMemo(()=>bi||or(qi),[bi,qi]),na=x.useMemo(()=>Wo.some(Za=>Za.responsive),[Wo]),Co=(0,Zl.Z)(na),Ya=x.useMemo(()=>{const Za=new Set(Object.keys(Co).filter(hs=>Co[hs]));return Wo.filter(hs=>!hs.responsive||hs.responsive.some(jl=>Za.has(jl)))},[Wo,Co]),Ka=(0,Fa.Z)(wt,["className","style","columns"]),{locale:_l=Wl.Z,direction:El,table:al,renderEmpty:so,getPrefixCls:Jl,getPopupContainer:ss}=x.useContext(nl.E_),rs=(0,Xs.Z)(wr),il=Object.assign(Object.assign({},_l.Table),Qo),fu=Rr||cp,ra=Jl("table",Fn),Ca=Jl("dropdown",di),[,$o]=(0,SA.ZP)(),Oo=(0,Au.Z)(ra),[fs,Ss,Ws]=Bf(ra,Oo),Qs=Object.assign(Object.assign({childrenColumnName:ao,expandIconColumnIndex:sa},_o),{expandIcon:(Vt=_o==null?void 0:_o.expandIcon)!==null&&Vt!==void 0?Vt:(cn=al==null?void 0:al.expandable)===null||cn===void 0?void 0:cn.expandIcon}),{childrenColumnName:sl="children"}=Qs,pu=x.useMemo(()=>fu.some(Za=>Za==null?void 0:Za[sl])?"nest":La||_o!=null&&_o.expandedRowRender?"row":null,[fu]),la={body:x.useRef(null)},qo=Ia(ra),xs=x.useRef(null),Ys=x.useRef(null);el(yt,()=>Object.assign(Object.assign({},Ys.current),{nativeElement:xs.current}));const $s=x.useMemo(()=>typeof Fr=="function"?Fr:Za=>Za==null?void 0:Za[Fr],[Fr]),[gu]=ZA(fu,sl,$s),Tl={},sA=function(Za,hs){let jl=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var su,xu,Bu,Yu;const ju=Object.assign(Object.assign({},Tl),Za);jl&&((su=Tl.resetPagination)===null||su===void 0||su.call(Tl),!((xu=ju.pagination)===null||xu===void 0)&&xu.current&&(ju.pagination.current=1),jr&&((Bu=jr.onChange)===null||Bu===void 0||Bu.call(jr,1,(Yu=ju.pagination)===null||Yu===void 0?void 0:Yu.pageSize))),zo&&zo.scrollToFirstRowOnChange!==!1&&la.body.current&&(0,tl.Z)(0,{getContainer:()=>la.body.current}),Ji==null||Ji(ju.pagination,ju.filters,ju.sorter,{currentDataSource:Ra(Gu(fu,ju.sorterStates,sl),ju.filterStates,sl),action:hs})},Sl=(Za,hs)=>{sA({sorter:Za,sorterStates:hs},"sort",!1)},[vs,ll,ul,hu]=_h({prefixCls:ra,mergedColumns:Ya,onSorterChange:Sl,sortDirections:Ho||["ascend","descend"],tableLocale:il,showSorterTooltip:vo}),kl=x.useMemo(()=>Gu(fu,ll,sl),[fu,ll]);Tl.sorter=hu(),Tl.sorterStates=ll;const ys=(Za,hs)=>{sA({filters:Za,filterStates:hs},"filter",!0)},[vl,Fs,yl]=Xl({prefixCls:ra,locale:il,dropdownPrefixCls:Ca,mergedColumns:Ya,onFilterChange:ys,getPopupContainer:fo||ss,rootClassName:Ne()(ar,Oo)}),ql=Ra(kl,Fs,sl);Tl.filters=yl,Tl.filterStates=Fs;const Ou=x.useMemo(()=>{const Za={};return Object.keys(yl).forEach(hs=>{yl[hs]!==null&&(Za[hs]=yl[hs])}),Object.assign(Object.assign({},ul),{filters:Za})},[ul,yl]),[Pu]=Fd(Ou),GA=(Za,hs)=>{sA({pagination:Object.assign(Object.assign({},Tl.pagination),{current:Za,pageSize:hs})},"paginate")},[Al,Dd]=tc(ql.length,GA,jr);Tl.pagination=jr===!1?{}:Yl(Al,jr),Tl.resetPagination=Dd;const Uu=x.useMemo(()=>{if(jr===!1||!Al.pageSize)return ql;const{current:Za=1,total:hs,pageSize:jl=fc}=Al;return ql.length<hs?ql.length>jl?ql.slice((Za-1)*jl,Za*jl):ql:ql.slice((Za-1)*jl,Za*jl)},[!!jr,ql,Al==null?void 0:Al.current,Al==null?void 0:Al.pageSize,Al==null?void 0:Al.total]),[Vu,Ru]=go({prefixCls:ra,data:ql,pageData:Uu,getRowKey:$s,getRecordByKey:gu,expandType:pu,childrenColumnName:sl,locale:il,getPopupContainer:fo||ss},Dr),Xu=(Za,hs,jl)=>{let su;return typeof $i=="function"?su=Ne()($i(Za,hs,jl)):su=Ne()($i),Ne()({[`${ra}-row-selected`]:Ru.has($s(Za,hs))},su)};Qs.__PARENT_RENDER_ICON__=Qs.expandIcon,Qs.expandIcon=Qs.expandIcon||jo||pa(il),pu==="nest"&&Qs.expandIconColumnIndex===void 0?Qs.expandIconColumnIndex=Dr?1:0:Qs.expandIconColumnIndex>0&&Dr&&(Qs.expandIconColumnIndex-=1),typeof Qs.indentSize!="number"&&(Qs.indentSize=typeof ea=="number"?ea:15);const cl=x.useCallback(Za=>Pu(Vu(vl(vs(Za)))),[vs,vl,Vu]);let vA,bc;if(jr!==!1&&(Al!=null&&Al.total)){let Za;Al.size?Za=Al.size:Za=rs==="small"||rs==="middle"?"small":void 0;const hs=xu=>x.createElement(Iu.Z,Object.assign({},Al,{className:Ne()(`${ra}-pagination ${ra}-pagination-${xu}`,Al.className),size:Za})),jl=El==="rtl"?"left":"right",{position:su}=Al;if(su!==null&&Array.isArray(su)){const xu=su.find(ju=>ju.includes("top")),Bu=su.find(ju=>ju.includes("bottom")),Yu=su.every(ju=>`${ju}`=="none");!xu&&!Bu&&!Yu&&(bc=hs(jl)),xu&&(vA=hs(xu.toLowerCase().replace("top",""))),Bu&&(bc=hs(Bu.toLowerCase().replace("bottom","")))}else bc=hs(jl)}let kA;typeof Bo=="boolean"?kA={spinning:Bo}:typeof Bo=="object"&&(kA=Object.assign({spinning:!0},Bo));const VA=Ne()(Ws,Oo,`${ra}-wrapper`,al==null?void 0:al.className,{[`${ra}-wrapper-rtl`]:El==="rtl"},kn,ar,Ss),Jd=Object.assign(Object.assign({},al==null?void 0:al.style),qn),qd=typeof(Qo==null?void 0:Qo.emptyText)!="undefined"?Qo.emptyText:(so==null?void 0:so("Table"))||x.createElement(gl.Z,{componentName:"Table"}),Is=co?$A:bf,ld={},Ef=x.useMemo(()=>{const{fontSize:Za,lineHeight:hs,lineWidth:jl,padding:su,paddingXS:xu,paddingSM:Bu}=$o,Yu=Math.floor(Za*hs);switch(rs){case"middle":return Bu*2+Yu+jl;case"small":return xu*2+Yu+jl;default:return su*2+Yu+jl}},[$o,rs]);return co&&(ld.listItemHeight=Ef),fs(x.createElement("div",{ref:xs,className:VA,style:Jd},x.createElement(fl.Z,Object.assign({spinning:!1},kA),vA,x.createElement(Is,Object.assign({},ld,Ka,{ref:Ys,columns:Ya,direction:El,expandable:Qs,prefixCls:ra,className:Ne()({[`${ra}-middle`]:rs==="middle",[`${ra}-small`]:rs==="small",[`${ra}-bordered`]:dr,[`${ra}-empty`]:fu.length===0},Ws,Oo,Ss),data:Uu,rowKey:$s,rowClassName:Xu,emptyText:qd,internalHooks:Le,internalRefs:la,transformColumns:cl,getContainerWidth:qo})),bc)))};var fp=x.forwardRef(dp);const nh=(wt,yt)=>{const Vt=x.useRef(0);return Vt.current+=1,x.createElement(fp,Object.assign({},wt,{ref:yt,_renderTimes:Vt.current}))},wc=x.forwardRef(nh);wc.SELECTION_COLUMN=fa,wc.EXPAND_COLUMN=ct,wc.SELECTION_ALL=Wa,wc.SELECTION_INVERT=Ds,wc.SELECTION_NONE=js,wc.Column=no,wc.ColumnGroup=ui,wc.Summary=mt;var Ld=wc,hp=Ld},96599:function(Vn,Mt,ae){"use strict";ae.d(Mt,{default:function(){return Ne}});var x=ae(59301),ct=ae(92310),Le=ae.n(ct),Je=ae(2738),ze=ae(29509),Se=ae(78776),Ue=ae(22703),fe=ae(12919),Ce=ae(48755),oe=ae(36237),Oe=ae(17835),ve=ae(63356),Me=ae(51636),Fe=ae(16931);const Te=je=>{const{paddingXXS:Ot,lineWidth:it,tagPaddingHorizontal:ht,componentCls:Bt,calc:We}=je,_e=We(ht).sub(it).equal(),ot=We(Ot).sub(it).equal();return{[Bt]:Object.assign(Object.assign({},(0,ve.Wf)(je)),{display:"inline-block",height:"auto",marginInlineEnd:je.marginXS,paddingInline:_e,fontSize:je.tagFontSize,lineHeight:je.tagLineHeight,whiteSpace:"nowrap",background:je.defaultBg,border:`${(0,oe.unit)(je.lineWidth)} ${je.lineType} ${je.colorBorder}`,borderRadius:je.borderRadiusSM,opacity:1,transition:`all ${je.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Bt}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:je.defaultColor},[`${Bt}-close-icon`]:{marginInlineStart:ot,fontSize:je.tagIconSize,color:je.colorTextDescription,cursor:"pointer",transition:`all ${je.motionDurationMid}`,"&:hover":{color:je.colorTextHeading}},[`&${Bt}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${je.iconCls}-close, ${je.iconCls}-close:hover`]:{color:je.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Bt}-checkable-checked):hover`]:{color:je.colorPrimary,backgroundColor:je.colorFillSecondary},"&:active, &-checked":{color:je.colorTextLightSolid},"&-checked":{backgroundColor:je.colorPrimary,"&:hover":{backgroundColor:je.colorPrimaryHover}},"&:active":{backgroundColor:je.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${je.iconCls} + span, > span + ${je.iconCls}`]:{marginInlineStart:_e}}),[`${Bt}-borderless`]:{borderColor:"transparent",background:je.tagBorderlessBg}}},ye=je=>{const{lineWidth:Ot,fontSizeIcon:it,calc:ht}=je,Bt=je.fontSizeSM;return(0,Me.mergeToken)(je,{tagFontSize:Bt,tagLineHeight:(0,oe.unit)(ht(je.lineHeightSM).mul(Bt).equal()),tagIconSize:ht(it).sub(ht(Ot).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:je.defaultBg})},xe=je=>({defaultBg:new Oe.FastColor(je.colorFillQuaternary).onBackground(je.colorBgContainer).toHexString(),defaultColor:je.colorText});var Ee=(0,Fe.I$)("Tag",je=>{const Ot=ye(je);return Te(Ot)},xe),ke=function(je,Ot){var it={};for(var ht in je)Object.prototype.hasOwnProperty.call(je,ht)&&Ot.indexOf(ht)<0&&(it[ht]=je[ht]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,ht=Object.getOwnPropertySymbols(je);Bt<ht.length;Bt++)Ot.indexOf(ht[Bt])<0&&Object.prototype.propertyIsEnumerable.call(je,ht[Bt])&&(it[ht[Bt]]=je[ht[Bt]]);return it},Qe=x.forwardRef((je,Ot)=>{const{prefixCls:it,style:ht,className:Bt,checked:We,onChange:_e,onClick:ot}=je,Zt=ke(je,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:zt,tag:tt}=x.useContext(Ce.E_),Nt=Cn=>{_e==null||_e(!We),ot==null||ot(Cn)},Ut=zt("tag",it),[pn,kt,mn]=Ee(Ut),_t=Le()(Ut,`${Ut}-checkable`,{[`${Ut}-checkable-checked`]:We},tt==null?void 0:tt.className,Bt,kt,mn);return pn(x.createElement("span",Object.assign({},Zt,{ref:Ot,style:Object.assign(Object.assign({},ht),tt==null?void 0:tt.style),className:_t,onClick:Nt})))}),Re=ae(93427);const et=je=>(0,Re.Z)(je,(Ot,it)=>{let{textColor:ht,lightBorderColor:Bt,lightColor:We,darkColor:_e}=it;return{[`${je.componentCls}${je.componentCls}-${Ot}`]:{color:ht,background:We,borderColor:Bt,"&-inverse":{color:je.colorTextLightSolid,background:_e,borderColor:_e},[`&${je.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Ge=(0,Fe.bk)(["Tag","preset"],je=>{const Ot=ye(je);return et(Ot)},xe);function ut(je){return typeof je!="string"?je:je.charAt(0).toUpperCase()+je.slice(1)}const at=(je,Ot,it)=>{const ht=ut(it);return{[`${je.componentCls}${je.componentCls}-${Ot}`]:{color:je[`color${it}`],background:je[`color${ht}Bg`],borderColor:je[`color${ht}Border`],[`&${je.componentCls}-borderless`]:{borderColor:"transparent"}}}};var ft=(0,Fe.bk)(["Tag","status"],je=>{const Ot=ye(je);return[at(Ot,"success","Success"),at(Ot,"processing","Info"),at(Ot,"error","Error"),at(Ot,"warning","Warning")]},xe),bt=function(je,Ot){var it={};for(var ht in je)Object.prototype.hasOwnProperty.call(je,ht)&&Ot.indexOf(ht)<0&&(it[ht]=je[ht]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,ht=Object.getOwnPropertySymbols(je);Bt<ht.length;Bt++)Ot.indexOf(ht[Bt])<0&&Object.prototype.propertyIsEnumerable.call(je,ht[Bt])&&(it[ht[Bt]]=je[ht[Bt]]);return it};const pt=x.forwardRef((je,Ot)=>{const{prefixCls:it,className:ht,rootClassName:Bt,style:We,children:_e,icon:ot,color:Zt,onClose:zt,bordered:tt=!0,visible:Nt}=je,Ut=bt(je,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:pn,direction:kt,tag:mn}=x.useContext(Ce.E_),[_t,Cn]=x.useState(!0),an=(0,Je.Z)(Ut,["closeIcon","closable"]);x.useEffect(()=>{Nt!==void 0&&Cn(Nt)},[Nt]);const de=(0,ze.o2)(Zt),pe=(0,ze.yT)(Zt),ie=de||pe,ee=Object.assign(Object.assign({backgroundColor:Zt&&!ie?Zt:void 0},mn==null?void 0:mn.style),We),se=pn("tag",it),[le,Be,$e]=Ee(se),st=Le()(se,mn==null?void 0:mn.className,{[`${se}-${Zt}`]:ie,[`${se}-has-color`]:Zt&&!ie,[`${se}-hidden`]:!_t,[`${se}-rtl`]:kt==="rtl",[`${se}-borderless`]:!tt},ht,Bt,Be,$e),gt=lt=>{lt.stopPropagation(),zt==null||zt(lt),!lt.defaultPrevented&&Cn(!1)},[,mt]=(0,Se.Z)((0,Se.w)(je),(0,Se.w)(mn),{closable:!1,closeIconRender:lt=>{const $t=x.createElement("span",{className:`${se}-close-icon`,onClick:gt},lt);return(0,Ue.wm)(lt,$t,Wt=>({onClick:wn=>{var ln;(ln=Wt==null?void 0:Wt.onClick)===null||ln===void 0||ln.call(Wt,wn),gt(wn)},className:Le()(Wt==null?void 0:Wt.className,`${se}-close-icon`)}))}}),Et=typeof Ut.onClick=="function"||_e&&_e.type==="a",Lt=ot||null,jt=Lt?x.createElement(x.Fragment,null,Lt,_e&&x.createElement("span",null,_e)):_e,Ct=x.createElement("span",Object.assign({},an,{ref:Ot,className:st,style:ee}),jt,mt,de&&x.createElement(Ge,{key:"preset",prefixCls:se}),pe&&x.createElement(ft,{key:"status",prefixCls:se}));return le(Et?x.createElement(fe.Z,{component:"Tag"},Ct):Ct)});pt.CheckableTag=Qe;var Ne=pt},18287:function(Vn,Mt,ae){"use strict";ae.d(Mt,{default:function(){return zt}});var x=ae(3741),ct=ae(94480),Le=ae(59301),Je=ae(52671),ze=ae(8657),Se=ae(54476),Ue={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"},fe=Ue,Ce=ae(7657),oe=function(Nt,Ut){return Le.createElement(Ce.Z,(0,Se.Z)({},Nt,{ref:Ut,icon:fe}))},Oe=Le.forwardRef(oe),ve=Oe,Me=ae(92310),Fe=ae.n(Me),Te=ae(82661),ye=ae(34061),xe=ae(48755),Ee=ae(56082),ke=ae(86641),Ke=ae(57700),Qe=ae(12425);const Re=4;function et(tt){const{dropPosition:Nt,dropLevelOffset:Ut,prefixCls:pn,indent:kt,direction:mn="ltr"}=tt,_t=mn==="ltr"?"left":"right",Cn=mn==="ltr"?"right":"left",an={[_t]:-Ut*kt+Re,[Cn]:0};switch(Nt){case-1:an.top=-3;break;case 1:an.bottom=-3;break;default:an.bottom=-3,an[_t]=kt+Re;break}return Le.createElement("div",{style:an,className:`${pn}-drop-indicator`})}var Ge=et,ut=ae(85278),ft=Le.forwardRef((tt,Nt)=>{var Ut;const{getPrefixCls:pn,direction:kt,virtual:mn,tree:_t}=Le.useContext(xe.E_),{prefixCls:Cn,className:an,showIcon:de=!1,showLine:pe,switcherIcon:ie,switcherLoadingIcon:ee,blockNode:se=!1,children:le,checkable:Be=!1,selectable:$e=!0,draggable:st,motion:gt,style:mt}=tt,Et=pn("tree",Cn),Lt=pn(),jt=gt!=null?gt:Object.assign(Object.assign({},(0,ke.Z)(Lt)),{motionAppear:!1}),Ct=Object.assign(Object.assign({},tt),{checkable:Be,selectable:$e,showIcon:de,motion:jt,blockNode:se,showLine:!!pe,dropIndicatorRender:Ge}),[lt,$t,Wt]=(0,Qe.ZP)(Et),[,wn]=(0,Ke.ZP)(),ln=wn.paddingXS/2+(((Ut=wn.Tree)===null||Ut===void 0?void 0:Ut.titleHeight)||wn.controlHeightSM),tn=Le.useMemo(()=>{if(!st)return!1;let En={};switch(typeof st){case"function":En.nodeDraggable=st;break;case"object":En=Object.assign({},st);break;default:break}return En.icon!==!1&&(En.icon=En.icon||Le.createElement(Ee.Z,null)),En},[st]),Qn=En=>Le.createElement(ut.Z,{prefixCls:Et,switcherIcon:ie,switcherLoadingIcon:ee,treeNodeProps:En,showLine:pe});return lt(Le.createElement(x.ZP,Object.assign({itemHeight:ln,ref:Nt,virtual:mn},Ct,{style:Object.assign(Object.assign({},_t==null?void 0:_t.style),mt),prefixCls:Et,className:Fe()({[`${Et}-icon-hide`]:!de,[`${Et}-block-node`]:se,[`${Et}-unselectable`]:!$e,[`${Et}-rtl`]:kt==="rtl"},_t==null?void 0:_t.className,an,$t,Wt),direction:kt,checkable:Be&&Le.createElement("span",{className:`${Et}-checkbox-inner`}),selectable:$e,switcherIcon:Qn,draggable:tn}),le))});const bt=0,He=1,pt=2;function Ne(tt,Nt,Ut){const{key:pn,children:kt}=Ut;function mn(_t){const Cn=_t[pn],an=_t[kt];Nt(Cn,_t)!==!1&&Ne(an||[],Nt,Ut)}tt.forEach(mn)}function je(tt){let{treeData:Nt,expandedKeys:Ut,startKey:pn,endKey:kt,fieldNames:mn}=tt;const _t=[];let Cn=bt;if(pn&&pn===kt)return[pn];if(!pn||!kt)return[];function an(de){return de===pn||de===kt}return Ne(Nt,de=>{if(Cn===pt)return!1;if(an(de)){if(_t.push(de),Cn===bt)Cn=He;else if(Cn===He)return Cn=pt,!1}else Cn===He&&_t.push(de);return Ut.includes(de)},(0,ye.w$)(mn)),_t}function Ot(tt,Nt,Ut){const pn=(0,ct.Z)(Nt),kt=[];return Ne(tt,(mn,_t)=>{const Cn=pn.indexOf(mn);return Cn!==-1&&(kt.push(_t),pn.splice(Cn,1)),!!pn.length},(0,ye.w$)(Ut)),kt}var it=function(tt,Nt){var Ut={};for(var pn in tt)Object.prototype.hasOwnProperty.call(tt,pn)&&Nt.indexOf(pn)<0&&(Ut[pn]=tt[pn]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,pn=Object.getOwnPropertySymbols(tt);kt<pn.length;kt++)Nt.indexOf(pn[kt])<0&&Object.prototype.propertyIsEnumerable.call(tt,pn[kt])&&(Ut[pn[kt]]=tt[pn[kt]]);return Ut};function ht(tt){const{isLeaf:Nt,expanded:Ut}=tt;return Nt?Le.createElement(Je.Z,null):Ut?Le.createElement(ze.Z,null):Le.createElement(ve,null)}function Bt(tt){let{treeData:Nt,children:Ut}=tt;return Nt||(0,ye.zn)(Ut)}const We=(tt,Nt)=>{var{defaultExpandAll:Ut,defaultExpandParent:pn,defaultExpandedKeys:kt}=tt,mn=it(tt,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const _t=Le.useRef(null),Cn=Le.useRef(null),an=()=>{const{keyEntities:lt}=(0,ye.I8)(Bt(mn));let $t;return Ut?$t=Object.keys(lt):pn?$t=(0,Te.r7)(mn.expandedKeys||kt||[],lt):$t=mn.expandedKeys||kt||[],$t},[de,pe]=Le.useState(mn.selectedKeys||mn.defaultSelectedKeys||[]),[ie,ee]=Le.useState(()=>an());Le.useEffect(()=>{"selectedKeys"in mn&&pe(mn.selectedKeys)},[mn.selectedKeys]),Le.useEffect(()=>{"expandedKeys"in mn&&ee(mn.expandedKeys)},[mn.expandedKeys]);const se=(lt,$t)=>{var Wt;return"expandedKeys"in mn||ee(lt),(Wt=mn.onExpand)===null||Wt===void 0?void 0:Wt.call(mn,lt,$t)},le=(lt,$t)=>{var Wt;const{multiple:wn,fieldNames:ln}=mn,{node:tn,nativeEvent:Qn}=$t,{key:En=""}=tn,Rt=Bt(mn),un=Object.assign(Object.assign({},$t),{selected:!0}),Dn=(Qn==null?void 0:Qn.ctrlKey)||(Qn==null?void 0:Qn.metaKey),Wn=Qn==null?void 0:Qn.shiftKey;let It;wn&&Dn?(It=lt,_t.current=En,Cn.current=It,un.selectedNodes=Ot(Rt,It,ln)):wn&&Wn?(It=Array.from(new Set([].concat((0,ct.Z)(Cn.current||[]),(0,ct.Z)(je({treeData:Rt,expandedKeys:ie,startKey:En,endKey:_t.current,fieldNames:ln}))))),un.selectedNodes=Ot(Rt,It,ln)):(It=[En],_t.current=En,Cn.current=It,un.selectedNodes=Ot(Rt,It,ln)),(Wt=mn.onSelect)===null||Wt===void 0||Wt.call(mn,It,un),"selectedKeys"in mn||pe(It)},{getPrefixCls:Be,direction:$e}=Le.useContext(xe.E_),{prefixCls:st,className:gt,showIcon:mt=!0,expandAction:Et="click"}=mn,Lt=it(mn,["prefixCls","className","showIcon","expandAction"]),jt=Be("tree",st),Ct=Fe()(`${jt}-directory`,{[`${jt}-directory-rtl`]:$e==="rtl"},gt);return Le.createElement(ft,Object.assign({icon:ht,ref:Nt,blockNode:!0},Lt,{showIcon:mt,expandAction:Et,prefixCls:jt,className:Ct,expandedKeys:ie,selectedKeys:de,onSelect:le,onExpand:se}))};var ot=Le.forwardRef(We);const Zt=ft;Zt.DirectoryTree=ot,Zt.TreeNode=x.OF;var zt=Zt},12425:function(Vn,Mt,ae){"use strict";ae.d(Mt,{ZP:function(){return Te},Yk:function(){return ve},TM:function(){return Me}});var x=ae(36237),ct=ae(36170),Le=ae(63356),Je=ae(34961),ze=ae(51636),Se=ae(16931);const Ue=ye=>{let{treeCls:xe,treeNodeCls:Ee,directoryNodeSelectedBg:ke,directoryNodeSelectedColor:Ke,motionDurationMid:Qe,borderRadius:Re,controlItemBgHover:et}=ye;return{[`${xe}${xe}-directory ${Ee}`]:{[`${xe}-node-content-wrapper`]:{position:"static",[`> *:not(${xe}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${Qe}`,content:'""',borderRadius:Re},"&:hover:before":{background:et}},[`${xe}-switcher, ${xe}-checkbox, ${xe}-draggable-icon`]:{zIndex:1},"&-selected":{[`${xe}-switcher, ${xe}-draggable-icon`]:{color:Ke},[`${xe}-node-content-wrapper`]:{color:Ke,background:"transparent","&:before, &:hover:before":{background:ke}}}}}},fe=new x.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Ce=(ye,xe)=>({[`.${ye}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${xe.motionDurationSlow}`}}}),oe=(ye,xe)=>({[`.${ye}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:xe.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,x.unit)(xe.lineWidthBold)} solid ${xe.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Oe=(ye,xe)=>{const{treeCls:Ee,treeNodeCls:ke,treeNodePadding:Ke,titleHeight:Qe,indentSize:Re,nodeSelectedBg:et,nodeHoverBg:Ge,colorTextQuaternary:ut,controlItemBgActiveDisabled:at}=xe;return{[Ee]:Object.assign(Object.assign({},(0,Le.Wf)(xe)),{background:xe.colorBgContainer,borderRadius:xe.borderRadius,transition:`background-color ${xe.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${Ee}-rtl ${Ee}-switcher_close ${Ee}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${Ee}-active-focused)`]:Object.assign({},(0,Le.oN)(xe)),[`${Ee}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Ee}-block-node`]:{[`${Ee}-list-holder-inner`]:{alignItems:"stretch",[`${Ee}-node-content-wrapper`]:{flex:"auto"},[`${ke}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${xe.colorPrimary}`,opacity:0,animationName:fe,animationDuration:xe.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:xe.borderRadius}}},[ke]:{display:"flex",alignItems:"flex-start",marginBottom:Ke,lineHeight:(0,x.unit)(Qe),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:Ke},[`&-disabled ${Ee}-node-content-wrapper`]:{color:xe.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${Ee}-checkbox-disabled + ${Ee}-node-selected,&${ke}-disabled${ke}-selected ${Ee}-node-content-wrapper`]:{backgroundColor:at},[`${Ee}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${ke}-disabled)`]:{[`${Ee}-node-content-wrapper`]:{"&:hover":{color:xe.nodeHoverColor}}},[`&-active ${Ee}-node-content-wrapper`]:{background:xe.controlItemBgHover},[`&:not(${ke}-disabled).filter-node ${Ee}-title`]:{color:xe.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${Ee}-draggable-icon`]:{flexShrink:0,width:Qe,textAlign:"center",visibility:"visible",color:ut},[`&${ke}-disabled ${Ee}-draggable-icon`]:{visibility:"hidden"}}},[`${Ee}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:Re}},[`${Ee}-draggable-icon`]:{visibility:"hidden"},[`${Ee}-switcher, ${Ee}-checkbox`]:{marginInlineEnd:xe.calc(xe.calc(Qe).sub(xe.controlInteractiveSize)).div(2).equal()},[`${Ee}-switcher`]:Object.assign(Object.assign({},Ce(ye,xe)),{position:"relative",flex:"none",alignSelf:"stretch",width:Qe,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${xe.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:Qe,height:Qe,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:xe.borderRadius,transition:`all ${xe.motionDurationSlow}`},[`&:not(${Ee}-switcher-noop):hover:before`]:{backgroundColor:xe.colorBgTextHover},[`&_close ${Ee}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:xe.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:xe.calc(Qe).div(2).equal(),bottom:xe.calc(Ke).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${xe.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:xe.calc(xe.calc(Qe).div(2).equal()).mul(.8).equal(),height:xe.calc(Qe).div(2).equal(),borderBottom:`1px solid ${xe.colorBorder}`,content:'""'}}}),[`${Ee}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:Qe,paddingBlock:0,paddingInline:xe.paddingXS,background:"transparent",borderRadius:xe.borderRadius,cursor:"pointer",transition:`all ${xe.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},oe(ye,xe)),{"&:hover":{backgroundColor:Ge},[`&${Ee}-node-selected`]:{color:xe.nodeSelectedColor,backgroundColor:et},[`${Ee}-iconEle`]:{display:"inline-block",width:Qe,height:Qe,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${Ee}-unselectable ${Ee}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${ke}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${xe.colorPrimary}`},"&-show-line":{[`${Ee}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:xe.calc(Qe).div(2).equal(),bottom:xe.calc(Ke).mul(-1).equal(),borderInlineEnd:`1px solid ${xe.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${Ee}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ke}-leaf-last ${Ee}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,x.unit)(xe.calc(Qe).div(2).equal())} !important`}})}},ve=function(ye,xe){let Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const ke=`.${ye}`,Ke=`${ke}-treenode`,Qe=xe.calc(xe.paddingXS).div(2).equal(),Re=(0,ze.mergeToken)(xe,{treeCls:ke,treeNodeCls:Ke,treeNodePadding:Qe});return[Oe(ye,Re),Ee&&Ue(Re)].filter(Boolean)},Me=ye=>{const{controlHeightSM:xe,controlItemBgHover:Ee,controlItemBgActive:ke}=ye,Ke=xe;return{titleHeight:Ke,indentSize:Ke,nodeHoverBg:Ee,nodeHoverColor:ye.colorText,nodeSelectedBg:ke,nodeSelectedColor:ye.colorText}},Fe=ye=>{const{colorTextLightSolid:xe,colorPrimary:Ee}=ye;return Object.assign(Object.assign({},Me(ye)),{directoryNodeSelectedColor:xe,directoryNodeSelectedBg:Ee})};var Te=(0,Se.I$)("Tree",(ye,xe)=>{let{prefixCls:Ee}=xe;return[{[ye.componentCls]:(0,ct.C2)(`${Ee}-checkbox`,ye)},ve(Ee,ye),(0,Je.Z)(ye)]},Fe)},85278:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return xe}});var x=ae(59301),ct=ae(54476),Le={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"},Je=Le,ze=ae(7657),Se=function(ke,Ke){return x.createElement(ze.Z,(0,ct.Z)({},ke,{ref:Ke,icon:Je}))},Ue=x.forwardRef(Se),fe=Ue,Ce=ae(52671),oe=ae(58617),Oe=ae(15075),ve=ae(43531),Me=ae(92310),Fe=ae.n(Me),Te=ae(22703),xe=Ee=>{const{prefixCls:ke,switcherIcon:Ke,treeNodeProps:Qe,showLine:Re,switcherLoadingIcon:et}=Ee,{isLeaf:Ge,expanded:ut,loading:at}=Qe;if(at)return x.isValidElement(et)?et:x.createElement(oe.Z,{className:`${ke}-switcher-loading-icon`});let ft;if(Re&&typeof Re=="object"&&(ft=Re.showLeafIcon),Ge){if(!Re)return null;if(typeof ft!="boolean"&&ft){const pt=typeof ft=="function"?ft(Qe):ft,Ne=`${ke}-switcher-line-custom-icon`;return x.isValidElement(pt)?(0,Te.Tm)(pt,{className:Fe()(pt.props.className||"",Ne)}):pt}return ft?x.createElement(Ce.Z,{className:`${ke}-switcher-line-icon`}):x.createElement("span",{className:`${ke}-switcher-leaf-line`})}const bt=`${ke}-switcher-icon`,He=typeof Ke=="function"?Ke(Qe):Ke;return x.isValidElement(He)?(0,Te.Tm)(He,{className:Fe()(He.props.className||"",bt)}):He!==void 0?He:Re?ut?x.createElement(Oe.Z,{className:`${ke}-switcher-line-icon`}):x.createElement(ve.Z,{className:`${ke}-switcher-line-icon`}):x.createElement(fe,{className:bt})}},86251:function(Vn,Mt){"use strict";Mt.byteLength=Ue,Mt.toByteArray=Ce,Mt.fromByteArray=ve;for(var ae=[],x=[],ct=typeof Uint8Array!="undefined"?Uint8Array:Array,Le="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Je=0,ze=Le.length;Je<ze;++Je)ae[Je]=Le[Je],x[Le.charCodeAt(Je)]=Je;x[45]=62,x[95]=63;function Se(Me){var Fe=Me.length;if(Fe%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Te=Me.indexOf("=");Te===-1&&(Te=Fe);var ye=Te===Fe?0:4-Te%4;return[Te,ye]}function Ue(Me){var Fe=Se(Me),Te=Fe[0],ye=Fe[1];return(Te+ye)*3/4-ye}function fe(Me,Fe,Te){return(Fe+Te)*3/4-Te}function Ce(Me){var Fe,Te=Se(Me),ye=Te[0],xe=Te[1],Ee=new ct(fe(Me,ye,xe)),ke=0,Ke=xe>0?ye-4:ye,Qe;for(Qe=0;Qe<Ke;Qe+=4)Fe=x[Me.charCodeAt(Qe)]<<18|x[Me.charCodeAt(Qe+1)]<<12|x[Me.charCodeAt(Qe+2)]<<6|x[Me.charCodeAt(Qe+3)],Ee[ke++]=Fe>>16&255,Ee[ke++]=Fe>>8&255,Ee[ke++]=Fe&255;return xe===2&&(Fe=x[Me.charCodeAt(Qe)]<<2|x[Me.charCodeAt(Qe+1)]>>4,Ee[ke++]=Fe&255),xe===1&&(Fe=x[Me.charCodeAt(Qe)]<<10|x[Me.charCodeAt(Qe+1)]<<4|x[Me.charCodeAt(Qe+2)]>>2,Ee[ke++]=Fe>>8&255,Ee[ke++]=Fe&255),Ee}function oe(Me){return ae[Me>>18&63]+ae[Me>>12&63]+ae[Me>>6&63]+ae[Me&63]}function Oe(Me,Fe,Te){for(var ye,xe=[],Ee=Fe;Ee<Te;Ee+=3)ye=(Me[Ee]<<16&16711680)+(Me[Ee+1]<<8&65280)+(Me[Ee+2]&255),xe.push(oe(ye));return xe.join("")}function ve(Me){for(var Fe,Te=Me.length,ye=Te%3,xe=[],Ee=16383,ke=0,Ke=Te-ye;ke<Ke;ke+=Ee)xe.push(Oe(Me,ke,ke+Ee>Ke?Ke:ke+Ee));return ye===1?(Fe=Me[Te-1],xe.push(ae[Fe>>2]+ae[Fe<<4&63]+"==")):ye===2&&(Fe=(Me[Te-2]<<8)+Me[Te-1],xe.push(ae[Fe>>10]+ae[Fe>>4&63]+ae[Fe<<2&63]+"=")),xe.join("")}},19208:function(Vn,Mt,ae){"use strict";var x;var ct=ae(86251),Le=ae(67467),Je=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Mt.lW=fe,x=ke,Mt.h2=50;var ze=2147483647;x=ze,fe.TYPED_ARRAY_SUPPORT=Se(),!fe.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 Se(){try{var ie=new Uint8Array(1),ee={foo:function(){return 42}};return Object.setPrototypeOf(ee,Uint8Array.prototype),Object.setPrototypeOf(ie,ee),ie.foo()===42}catch(se){return!1}}Object.defineProperty(fe.prototype,"parent",{enumerable:!0,get:function(){if(fe.isBuffer(this))return this.buffer}}),Object.defineProperty(fe.prototype,"offset",{enumerable:!0,get:function(){if(fe.isBuffer(this))return this.byteOffset}});function Ue(ie){if(ie>ze)throw new RangeError('The value "'+ie+'" is invalid for option "size"');var ee=new Uint8Array(ie);return Object.setPrototypeOf(ee,fe.prototype),ee}function fe(ie,ee,se){if(typeof ie=="number"){if(typeof ee=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ve(ie)}return Ce(ie,ee,se)}fe.poolSize=8192;function Ce(ie,ee,se){if(typeof ie=="string")return Me(ie,ee);if(ArrayBuffer.isView(ie))return Te(ie);if(ie==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ie);if(an(ie,ArrayBuffer)||ie&&an(ie.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(an(ie,SharedArrayBuffer)||ie&&an(ie.buffer,SharedArrayBuffer)))return ye(ie,ee,se);if(typeof ie=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var le=ie.valueOf&&ie.valueOf();if(le!=null&&le!==ie)return fe.from(le,ee,se);var Be=xe(ie);if(Be)return Be;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof ie[Symbol.toPrimitive]=="function")return fe.from(ie[Symbol.toPrimitive]("string"),ee,se);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ie)}fe.from=function(ie,ee,se){return Ce(ie,ee,se)},Object.setPrototypeOf(fe.prototype,Uint8Array.prototype),Object.setPrototypeOf(fe,Uint8Array);function oe(ie){if(typeof ie!="number")throw new TypeError('"size" argument must be of type number');if(ie<0)throw new RangeError('The value "'+ie+'" is invalid for option "size"')}function Oe(ie,ee,se){return oe(ie),ie<=0?Ue(ie):ee!==void 0?typeof se=="string"?Ue(ie).fill(ee,se):Ue(ie).fill(ee):Ue(ie)}fe.alloc=function(ie,ee,se){return Oe(ie,ee,se)};function ve(ie){return oe(ie),Ue(ie<0?0:Ee(ie)|0)}fe.allocUnsafe=function(ie){return ve(ie)},fe.allocUnsafeSlow=function(ie){return ve(ie)};function Me(ie,ee){if((typeof ee!="string"||ee==="")&&(ee="utf8"),!fe.isEncoding(ee))throw new TypeError("Unknown encoding: "+ee);var se=Ke(ie,ee)|0,le=Ue(se),Be=le.write(ie,ee);return Be!==se&&(le=le.slice(0,Be)),le}function Fe(ie){for(var ee=ie.length<0?0:Ee(ie.length)|0,se=Ue(ee),le=0;le<ee;le+=1)se[le]=ie[le]&255;return se}function Te(ie){if(an(ie,Uint8Array)){var ee=new Uint8Array(ie);return ye(ee.buffer,ee.byteOffset,ee.byteLength)}return Fe(ie)}function ye(ie,ee,se){if(ee<0||ie.byteLength<ee)throw new RangeError('"offset" is outside of buffer bounds');if(ie.byteLength<ee+(se||0))throw new RangeError('"length" is outside of buffer bounds');var le;return ee===void 0&&se===void 0?le=new Uint8Array(ie):se===void 0?le=new Uint8Array(ie,ee):le=new Uint8Array(ie,ee,se),Object.setPrototypeOf(le,fe.prototype),le}function xe(ie){if(fe.isBuffer(ie)){var ee=Ee(ie.length)|0,se=Ue(ee);return se.length===0||ie.copy(se,0,0,ee),se}if(ie.length!==void 0)return typeof ie.length!="number"||de(ie.length)?Ue(0):Fe(ie);if(ie.type==="Buffer"&&Array.isArray(ie.data))return Fe(ie.data)}function Ee(ie){if(ie>=ze)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ze.toString(16)+" bytes");return ie|0}function ke(ie){return+ie!=ie&&(ie=0),fe.alloc(+ie)}fe.isBuffer=function(ee){return ee!=null&&ee._isBuffer===!0&&ee!==fe.prototype},fe.compare=function(ee,se){if(an(ee,Uint8Array)&&(ee=fe.from(ee,ee.offset,ee.byteLength)),an(se,Uint8Array)&&(se=fe.from(se,se.offset,se.byteLength)),!fe.isBuffer(ee)||!fe.isBuffer(se))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ee===se)return 0;for(var le=ee.length,Be=se.length,$e=0,st=Math.min(le,Be);$e<st;++$e)if(ee[$e]!==se[$e]){le=ee[$e],Be=se[$e];break}return le<Be?-1:Be<le?1:0},fe.isEncoding=function(ee){switch(String(ee).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}},fe.concat=function(ee,se){if(!Array.isArray(ee))throw new TypeError('"list" argument must be an Array of Buffers');if(ee.length===0)return fe.alloc(0);var le;if(se===void 0)for(se=0,le=0;le<ee.length;++le)se+=ee[le].length;var Be=fe.allocUnsafe(se),$e=0;for(le=0;le<ee.length;++le){var st=ee[le];if(an(st,Uint8Array))$e+st.length>Be.length?fe.from(st).copy(Be,$e):Uint8Array.prototype.set.call(Be,st,$e);else if(fe.isBuffer(st))st.copy(Be,$e);else throw new TypeError('"list" argument must be an Array of Buffers');$e+=st.length}return Be};function Ke(ie,ee){if(fe.isBuffer(ie))return ie.length;if(ArrayBuffer.isView(ie)||an(ie,ArrayBuffer))return ie.byteLength;if(typeof ie!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ie);var se=ie.length,le=arguments.length>2&&arguments[2]===!0;if(!le&&se===0)return 0;for(var Be=!1;;)switch(ee){case"ascii":case"latin1":case"binary":return se;case"utf8":case"utf-8":return pn(ie).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se*2;case"hex":return se>>>1;case"base64":return _t(ie).length;default:if(Be)return le?-1:pn(ie).length;ee=(""+ee).toLowerCase(),Be=!0}}fe.byteLength=Ke;function Qe(ie,ee,se){var le=!1;if((ee===void 0||ee<0)&&(ee=0),ee>this.length||((se===void 0||se>this.length)&&(se=this.length),se<=0)||(se>>>=0,ee>>>=0,se<=ee))return"";for(ie||(ie="utf8");;)switch(ie){case"hex":return Bt(this,ee,se);case"utf8":case"utf-8":return Ne(this,ee,se);case"ascii":return it(this,ee,se);case"latin1":case"binary":return ht(this,ee,se);case"base64":return pt(this,ee,se);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return We(this,ee,se);default:if(le)throw new TypeError("Unknown encoding: "+ie);ie=(ie+"").toLowerCase(),le=!0}}fe.prototype._isBuffer=!0;function Re(ie,ee,se){var le=ie[ee];ie[ee]=ie[se],ie[se]=le}fe.prototype.swap16=function(){var ee=this.length;if(ee%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var se=0;se<ee;se+=2)Re(this,se,se+1);return this},fe.prototype.swap32=function(){var ee=this.length;if(ee%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var se=0;se<ee;se+=4)Re(this,se,se+3),Re(this,se+1,se+2);return this},fe.prototype.swap64=function(){var ee=this.length;if(ee%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var se=0;se<ee;se+=8)Re(this,se,se+7),Re(this,se+1,se+6),Re(this,se+2,se+5),Re(this,se+3,se+4);return this},fe.prototype.toString=function(){var ee=this.length;return ee===0?"":arguments.length===0?Ne(this,0,ee):Qe.apply(this,arguments)},fe.prototype.toLocaleString=fe.prototype.toString,fe.prototype.equals=function(ee){if(!fe.isBuffer(ee))throw new TypeError("Argument must be a Buffer");return this===ee?!0:fe.compare(this,ee)===0},fe.prototype.inspect=function(){var ee="",se=Mt.h2;return ee=this.toString("hex",0,se).replace(/(.{2})/g,"$1 ").trim(),this.length>se&&(ee+=" ... "),"<Buffer "+ee+">"},Je&&(fe.prototype[Je]=fe.prototype.inspect),fe.prototype.compare=function(ee,se,le,Be,$e){if(an(ee,Uint8Array)&&(ee=fe.from(ee,ee.offset,ee.byteLength)),!fe.isBuffer(ee))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ee);if(se===void 0&&(se=0),le===void 0&&(le=ee?ee.length:0),Be===void 0&&(Be=0),$e===void 0&&($e=this.length),se<0||le>ee.length||Be<0||$e>this.length)throw new RangeError("out of range index");if(Be>=$e&&se>=le)return 0;if(Be>=$e)return-1;if(se>=le)return 1;if(se>>>=0,le>>>=0,Be>>>=0,$e>>>=0,this===ee)return 0;for(var st=$e-Be,gt=le-se,mt=Math.min(st,gt),Et=this.slice(Be,$e),Lt=ee.slice(se,le),jt=0;jt<mt;++jt)if(Et[jt]!==Lt[jt]){st=Et[jt],gt=Lt[jt];break}return st<gt?-1:gt<st?1:0};function et(ie,ee,se,le,Be){if(ie.length===0)return-1;if(typeof se=="string"?(le=se,se=0):se>2147483647?se=2147483647:se<-2147483648&&(se=-2147483648),se=+se,de(se)&&(se=Be?0:ie.length-1),se<0&&(se=ie.length+se),se>=ie.length){if(Be)return-1;se=ie.length-1}else if(se<0)if(Be)se=0;else return-1;if(typeof ee=="string"&&(ee=fe.from(ee,le)),fe.isBuffer(ee))return ee.length===0?-1:Ge(ie,ee,se,le,Be);if(typeof ee=="number")return ee=ee&255,typeof Uint8Array.prototype.indexOf=="function"?Be?Uint8Array.prototype.indexOf.call(ie,ee,se):Uint8Array.prototype.lastIndexOf.call(ie,ee,se):Ge(ie,[ee],se,le,Be);throw new TypeError("val must be string, number or Buffer")}function Ge(ie,ee,se,le,Be){var $e=1,st=ie.length,gt=ee.length;if(le!==void 0&&(le=String(le).toLowerCase(),le==="ucs2"||le==="ucs-2"||le==="utf16le"||le==="utf-16le")){if(ie.length<2||ee.length<2)return-1;$e=2,st/=2,gt/=2,se/=2}function mt(lt,$t){return $e===1?lt[$t]:lt.readUInt16BE($t*$e)}var Et;if(Be){var Lt=-1;for(Et=se;Et<st;Et++)if(mt(ie,Et)===mt(ee,Lt===-1?0:Et-Lt)){if(Lt===-1&&(Lt=Et),Et-Lt+1===gt)return Lt*$e}else Lt!==-1&&(Et-=Et-Lt),Lt=-1}else for(se+gt>st&&(se=st-gt),Et=se;Et>=0;Et--){for(var jt=!0,Ct=0;Ct<gt;Ct++)if(mt(ie,Et+Ct)!==mt(ee,Ct)){jt=!1;break}if(jt)return Et}return-1}fe.prototype.includes=function(ee,se,le){return this.indexOf(ee,se,le)!==-1},fe.prototype.indexOf=function(ee,se,le){return et(this,ee,se,le,!0)},fe.prototype.lastIndexOf=function(ee,se,le){return et(this,ee,se,le,!1)};function ut(ie,ee,se,le){se=Number(se)||0;var Be=ie.length-se;le?(le=Number(le),le>Be&&(le=Be)):le=Be;var $e=ee.length;le>$e/2&&(le=$e/2);for(var st=0;st<le;++st){var gt=parseInt(ee.substr(st*2,2),16);if(de(gt))return st;ie[se+st]=gt}return st}function at(ie,ee,se,le){return Cn(pn(ee,ie.length-se),ie,se,le)}function ft(ie,ee,se,le){return Cn(kt(ee),ie,se,le)}function bt(ie,ee,se,le){return Cn(_t(ee),ie,se,le)}function He(ie,ee,se,le){return Cn(mn(ee,ie.length-se),ie,se,le)}fe.prototype.write=function(ee,se,le,Be){if(se===void 0)Be="utf8",le=this.length,se=0;else if(le===void 0&&typeof se=="string")Be=se,le=this.length,se=0;else if(isFinite(se))se=se>>>0,isFinite(le)?(le=le>>>0,Be===void 0&&(Be="utf8")):(Be=le,le=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var $e=this.length-se;if((le===void 0||le>$e)&&(le=$e),ee.length>0&&(le<0||se<0)||se>this.length)throw new RangeError("Attempt to write outside buffer bounds");Be||(Be="utf8");for(var st=!1;;)switch(Be){case"hex":return ut(this,ee,se,le);case"utf8":case"utf-8":return at(this,ee,se,le);case"ascii":case"latin1":case"binary":return ft(this,ee,se,le);case"base64":return bt(this,ee,se,le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return He(this,ee,se,le);default:if(st)throw new TypeError("Unknown encoding: "+Be);Be=(""+Be).toLowerCase(),st=!0}},fe.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function pt(ie,ee,se){return ee===0&&se===ie.length?ct.fromByteArray(ie):ct.fromByteArray(ie.slice(ee,se))}function Ne(ie,ee,se){se=Math.min(ie.length,se);for(var le=[],Be=ee;Be<se;){var $e=ie[Be],st=null,gt=$e>239?4:$e>223?3:$e>191?2:1;if(Be+gt<=se){var mt,Et,Lt,jt;switch(gt){case 1:$e<128&&(st=$e);break;case 2:mt=ie[Be+1],(mt&192)===128&&(jt=($e&31)<<6|mt&63,jt>127&&(st=jt));break;case 3:mt=ie[Be+1],Et=ie[Be+2],(mt&192)===128&&(Et&192)===128&&(jt=($e&15)<<12|(mt&63)<<6|Et&63,jt>2047&&(jt<55296||jt>57343)&&(st=jt));break;case 4:mt=ie[Be+1],Et=ie[Be+2],Lt=ie[Be+3],(mt&192)===128&&(Et&192)===128&&(Lt&192)===128&&(jt=($e&15)<<18|(mt&63)<<12|(Et&63)<<6|Lt&63,jt>65535&&jt<1114112&&(st=jt))}}st===null?(st=65533,gt=1):st>65535&&(st-=65536,le.push(st>>>10&1023|55296),st=56320|st&1023),le.push(st),Be+=gt}return Ot(le)}var je=4096;function Ot(ie){var ee=ie.length;if(ee<=je)return String.fromCharCode.apply(String,ie);for(var se="",le=0;le<ee;)se+=String.fromCharCode.apply(String,ie.slice(le,le+=je));return se}function it(ie,ee,se){var le="";se=Math.min(ie.length,se);for(var Be=ee;Be<se;++Be)le+=String.fromCharCode(ie[Be]&127);return le}function ht(ie,ee,se){var le="";se=Math.min(ie.length,se);for(var Be=ee;Be<se;++Be)le+=String.fromCharCode(ie[Be]);return le}function Bt(ie,ee,se){var le=ie.length;(!ee||ee<0)&&(ee=0),(!se||se<0||se>le)&&(se=le);for(var Be="",$e=ee;$e<se;++$e)Be+=pe[ie[$e]];return Be}function We(ie,ee,se){for(var le=ie.slice(ee,se),Be="",$e=0;$e<le.length-1;$e+=2)Be+=String.fromCharCode(le[$e]+le[$e+1]*256);return Be}fe.prototype.slice=function(ee,se){var le=this.length;ee=~~ee,se=se===void 0?le:~~se,ee<0?(ee+=le,ee<0&&(ee=0)):ee>le&&(ee=le),se<0?(se+=le,se<0&&(se=0)):se>le&&(se=le),se<ee&&(se=ee);var Be=this.subarray(ee,se);return Object.setPrototypeOf(Be,fe.prototype),Be};function _e(ie,ee,se){if(ie%1!==0||ie<0)throw new RangeError("offset is not uint");if(ie+ee>se)throw new RangeError("Trying to access beyond buffer length")}fe.prototype.readUintLE=fe.prototype.readUIntLE=function(ee,se,le){ee=ee>>>0,se=se>>>0,le||_e(ee,se,this.length);for(var Be=this[ee],$e=1,st=0;++st<se&&($e*=256);)Be+=this[ee+st]*$e;return Be},fe.prototype.readUintBE=fe.prototype.readUIntBE=function(ee,se,le){ee=ee>>>0,se=se>>>0,le||_e(ee,se,this.length);for(var Be=this[ee+--se],$e=1;se>0&&($e*=256);)Be+=this[ee+--se]*$e;return Be},fe.prototype.readUint8=fe.prototype.readUInt8=function(ee,se){return ee=ee>>>0,se||_e(ee,1,this.length),this[ee]},fe.prototype.readUint16LE=fe.prototype.readUInt16LE=function(ee,se){return ee=ee>>>0,se||_e(ee,2,this.length),this[ee]|this[ee+1]<<8},fe.prototype.readUint16BE=fe.prototype.readUInt16BE=function(ee,se){return ee=ee>>>0,se||_e(ee,2,this.length),this[ee]<<8|this[ee+1]},fe.prototype.readUint32LE=fe.prototype.readUInt32LE=function(ee,se){return ee=ee>>>0,se||_e(ee,4,this.length),(this[ee]|this[ee+1]<<8|this[ee+2]<<16)+this[ee+3]*16777216},fe.prototype.readUint32BE=fe.prototype.readUInt32BE=function(ee,se){return ee=ee>>>0,se||_e(ee,4,this.length),this[ee]*16777216+(this[ee+1]<<16|this[ee+2]<<8|this[ee+3])},fe.prototype.readIntLE=function(ee,se,le){ee=ee>>>0,se=se>>>0,le||_e(ee,se,this.length);for(var Be=this[ee],$e=1,st=0;++st<se&&($e*=256);)Be+=this[ee+st]*$e;return $e*=128,Be>=$e&&(Be-=Math.pow(2,8*se)),Be},fe.prototype.readIntBE=function(ee,se,le){ee=ee>>>0,se=se>>>0,le||_e(ee,se,this.length);for(var Be=se,$e=1,st=this[ee+--Be];Be>0&&($e*=256);)st+=this[ee+--Be]*$e;return $e*=128,st>=$e&&(st-=Math.pow(2,8*se)),st},fe.prototype.readInt8=function(ee,se){return ee=ee>>>0,se||_e(ee,1,this.length),this[ee]&128?(255-this[ee]+1)*-1:this[ee]},fe.prototype.readInt16LE=function(ee,se){ee=ee>>>0,se||_e(ee,2,this.length);var le=this[ee]|this[ee+1]<<8;return le&32768?le|4294901760:le},fe.prototype.readInt16BE=function(ee,se){ee=ee>>>0,se||_e(ee,2,this.length);var le=this[ee+1]|this[ee]<<8;return le&32768?le|4294901760:le},fe.prototype.readInt32LE=function(ee,se){return ee=ee>>>0,se||_e(ee,4,this.length),this[ee]|this[ee+1]<<8|this[ee+2]<<16|this[ee+3]<<24},fe.prototype.readInt32BE=function(ee,se){return ee=ee>>>0,se||_e(ee,4,this.length),this[ee]<<24|this[ee+1]<<16|this[ee+2]<<8|this[ee+3]},fe.prototype.readFloatLE=function(ee,se){return ee=ee>>>0,se||_e(ee,4,this.length),Le.read(this,ee,!0,23,4)},fe.prototype.readFloatBE=function(ee,se){return ee=ee>>>0,se||_e(ee,4,this.length),Le.read(this,ee,!1,23,4)},fe.prototype.readDoubleLE=function(ee,se){return ee=ee>>>0,se||_e(ee,8,this.length),Le.read(this,ee,!0,52,8)},fe.prototype.readDoubleBE=function(ee,se){return ee=ee>>>0,se||_e(ee,8,this.length),Le.read(this,ee,!1,52,8)};function ot(ie,ee,se,le,Be,$e){if(!fe.isBuffer(ie))throw new TypeError('"buffer" argument must be a Buffer instance');if(ee>Be||ee<$e)throw new RangeError('"value" argument is out of bounds');if(se+le>ie.length)throw new RangeError("Index out of range")}fe.prototype.writeUintLE=fe.prototype.writeUIntLE=function(ee,se,le,Be){if(ee=+ee,se=se>>>0,le=le>>>0,!Be){var $e=Math.pow(2,8*le)-1;ot(this,ee,se,le,$e,0)}var st=1,gt=0;for(this[se]=ee&255;++gt<le&&(st*=256);)this[se+gt]=ee/st&255;return se+le},fe.prototype.writeUintBE=fe.prototype.writeUIntBE=function(ee,se,le,Be){if(ee=+ee,se=se>>>0,le=le>>>0,!Be){var $e=Math.pow(2,8*le)-1;ot(this,ee,se,le,$e,0)}var st=le-1,gt=1;for(this[se+st]=ee&255;--st>=0&&(gt*=256);)this[se+st]=ee/gt&255;return se+le},fe.prototype.writeUint8=fe.prototype.writeUInt8=function(ee,se,le){return ee=+ee,se=se>>>0,le||ot(this,ee,se,1,255,0),this[se]=ee&255,se+1},fe.prototype.writeUint16LE=fe.prototype.writeUInt16LE=function(ee,se,le){return ee=+ee,se=se>>>0,le||ot(this,ee,se,2,65535,0),this[se]=ee&255,this[se+1]=ee>>>8,se+2},fe.prototype.writeUint16BE=fe.prototype.writeUInt16BE=function(ee,se,le){return ee=+ee,se=se>>>0,le||ot(this,ee,se,2,65535,0),this[se]=ee>>>8,this[se+1]=ee&255,se+2},fe.prototype.writeUint32LE=fe.prototype.writeUInt32LE=function(ee,se,le){return ee=+ee,se=se>>>0,le||ot(this,ee,se,4,4294967295,0),this[se+3]=ee>>>24,this[se+2]=ee>>>16,this[se+1]=ee>>>8,this[se]=ee&255,se+4},fe.prototype.writeUint32BE=fe.prototype.writeUInt32BE=function(ee,se,le){return ee=+ee,se=se>>>0,le||ot(this,ee,se,4,4294967295,0),this[se]=ee>>>24,this[se+1]=ee>>>16,this[se+2]=ee>>>8,this[se+3]=ee&255,se+4},fe.prototype.writeIntLE=function(ee,se,le,Be){if(ee=+ee,se=se>>>0,!Be){var $e=Math.pow(2,8*le-1);ot(this,ee,se,le,$e-1,-$e)}var st=0,gt=1,mt=0;for(this[se]=ee&255;++st<le&&(gt*=256);)ee<0&&mt===0&&this[se+st-1]!==0&&(mt=1),this[se+st]=(ee/gt>>0)-mt&255;return se+le},fe.prototype.writeIntBE=function(ee,se,le,Be){if(ee=+ee,se=se>>>0,!Be){var $e=Math.pow(2,8*le-1);ot(this,ee,se,le,$e-1,-$e)}var st=le-1,gt=1,mt=0;for(this[se+st]=ee&255;--st>=0&&(gt*=256);)ee<0&&mt===0&&this[se+st+1]!==0&&(mt=1),this[se+st]=(ee/gt>>0)-mt&255;return se+le},fe.prototype.writeInt8=function(ee,se,le){return ee=+ee,se=se>>>0,le||ot(this,ee,se,1,127,-128),ee<0&&(ee=255+ee+1),this[se]=ee&255,se+1},fe.prototype.writeInt16LE=function(ee,se,le){return ee=+ee,se=se>>>0,le||ot(this,ee,se,2,32767,-32768),this[se]=ee&255,this[se+1]=ee>>>8,se+2},fe.prototype.writeInt16BE=function(ee,se,le){return ee=+ee,se=se>>>0,le||ot(this,ee,se,2,32767,-32768),this[se]=ee>>>8,this[se+1]=ee&255,se+2},fe.prototype.writeInt32LE=function(ee,se,le){return ee=+ee,se=se>>>0,le||ot(this,ee,se,4,2147483647,-2147483648),this[se]=ee&255,this[se+1]=ee>>>8,this[se+2]=ee>>>16,this[se+3]=ee>>>24,se+4},fe.prototype.writeInt32BE=function(ee,se,le){return ee=+ee,se=se>>>0,le||ot(this,ee,se,4,2147483647,-2147483648),ee<0&&(ee=4294967295+ee+1),this[se]=ee>>>24,this[se+1]=ee>>>16,this[se+2]=ee>>>8,this[se+3]=ee&255,se+4};function Zt(ie,ee,se,le,Be,$e){if(se+le>ie.length)throw new RangeError("Index out of range");if(se<0)throw new RangeError("Index out of range")}function zt(ie,ee,se,le,Be){return ee=+ee,se=se>>>0,Be||Zt(ie,ee,se,4,34028234663852886e22,-34028234663852886e22),Le.write(ie,ee,se,le,23,4),se+4}fe.prototype.writeFloatLE=function(ee,se,le){return zt(this,ee,se,!0,le)},fe.prototype.writeFloatBE=function(ee,se,le){return zt(this,ee,se,!1,le)};function tt(ie,ee,se,le,Be){return ee=+ee,se=se>>>0,Be||Zt(ie,ee,se,8,17976931348623157e292,-17976931348623157e292),Le.write(ie,ee,se,le,52,8),se+8}fe.prototype.writeDoubleLE=function(ee,se,le){return tt(this,ee,se,!0,le)},fe.prototype.writeDoubleBE=function(ee,se,le){return tt(this,ee,se,!1,le)},fe.prototype.copy=function(ee,se,le,Be){if(!fe.isBuffer(ee))throw new TypeError("argument should be a Buffer");if(le||(le=0),!Be&&Be!==0&&(Be=this.length),se>=ee.length&&(se=ee.length),se||(se=0),Be>0&&Be<le&&(Be=le),Be===le||ee.length===0||this.length===0)return 0;if(se<0)throw new RangeError("targetStart out of bounds");if(le<0||le>=this.length)throw new RangeError("Index out of range");if(Be<0)throw new RangeError("sourceEnd out of bounds");Be>this.length&&(Be=this.length),ee.length-se<Be-le&&(Be=ee.length-se+le);var $e=Be-le;return this===ee&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(se,le,Be):Uint8Array.prototype.set.call(ee,this.subarray(le,Be),se),$e},fe.prototype.fill=function(ee,se,le,Be){if(typeof ee=="string"){if(typeof se=="string"?(Be=se,se=0,le=this.length):typeof le=="string"&&(Be=le,le=this.length),Be!==void 0&&typeof Be!="string")throw new TypeError("encoding must be a string");if(typeof Be=="string"&&!fe.isEncoding(Be))throw new TypeError("Unknown encoding: "+Be);if(ee.length===1){var $e=ee.charCodeAt(0);(Be==="utf8"&&$e<128||Be==="latin1")&&(ee=$e)}}else typeof ee=="number"?ee=ee&255:typeof ee=="boolean"&&(ee=Number(ee));if(se<0||this.length<se||this.length<le)throw new RangeError("Out of range index");if(le<=se)return this;se=se>>>0,le=le===void 0?this.length:le>>>0,ee||(ee=0);var st;if(typeof ee=="number")for(st=se;st<le;++st)this[st]=ee;else{var gt=fe.isBuffer(ee)?ee:fe.from(ee,Be),mt=gt.length;if(mt===0)throw new TypeError('The value "'+ee+'" is invalid for argument "value"');for(st=0;st<le-se;++st)this[st+se]=gt[st%mt]}return this};var Nt=/[^+/0-9A-Za-z-_]/g;function Ut(ie){if(ie=ie.split("=")[0],ie=ie.trim().replace(Nt,""),ie.length<2)return"";for(;ie.length%4!==0;)ie=ie+"=";return ie}function pn(ie,ee){ee=ee||1/0;for(var se,le=ie.length,Be=null,$e=[],st=0;st<le;++st){if(se=ie.charCodeAt(st),se>55295&&se<57344){if(!Be){if(se>56319){(ee-=3)>-1&&$e.push(239,191,189);continue}else if(st+1===le){(ee-=3)>-1&&$e.push(239,191,189);continue}Be=se;continue}if(se<56320){(ee-=3)>-1&&$e.push(239,191,189),Be=se;continue}se=(Be-55296<<10|se-56320)+65536}else Be&&(ee-=3)>-1&&$e.push(239,191,189);if(Be=null,se<128){if((ee-=1)<0)break;$e.push(se)}else if(se<2048){if((ee-=2)<0)break;$e.push(se>>6|192,se&63|128)}else if(se<65536){if((ee-=3)<0)break;$e.push(se>>12|224,se>>6&63|128,se&63|128)}else if(se<1114112){if((ee-=4)<0)break;$e.push(se>>18|240,se>>12&63|128,se>>6&63|128,se&63|128)}else throw new Error("Invalid code point")}return $e}function kt(ie){for(var ee=[],se=0;se<ie.length;++se)ee.push(ie.charCodeAt(se)&255);return ee}function mn(ie,ee){for(var se,le,Be,$e=[],st=0;st<ie.length&&!((ee-=2)<0);++st)se=ie.charCodeAt(st),le=se>>8,Be=se%256,$e.push(Be),$e.push(le);return $e}function _t(ie){return ct.toByteArray(Ut(ie))}function Cn(ie,ee,se,le){for(var Be=0;Be<le&&!(Be+se>=ee.length||Be>=ie.length);++Be)ee[Be+se]=ie[Be];return Be}function an(ie,ee){return ie instanceof ee||ie!=null&&ie.constructor!=null&&ie.constructor.name!=null&&ie.constructor.name===ee.name}function de(ie){return ie!==ie}var pe=function(){for(var ie="0123456789abcdef",ee=new Array(256),se=0;se<16;++se)for(var le=se*16,Be=0;Be<16;++Be)ee[le+Be]=ie[se]+ie[Be];return ee}()},14625:function(Vn){function Mt(x){var ct,Le,Je="";if(typeof x=="string"||typeof x=="number")Je+=x;else if(typeof x=="object")if(Array.isArray(x)){var ze=x.length;for(ct=0;ct<ze;ct++)x[ct]&&(Le=Mt(x[ct]))&&(Je&&(Je+=" "),Je+=Le)}else for(Le in x)x[Le]&&(Je&&(Je+=" "),Je+=Le);return Je}function ae(){for(var x,ct,Le=0,Je="",ze=arguments.length;Le<ze;Le++)(x=arguments[Le])&&(ct=Mt(x))&&(Je&&(Je+=" "),Je+=ct);return Je}Vn.exports=ae,Vn.exports.clsx=ae},99498:function(Vn,Mt,ae){(function(x){x(ae(89780))})(function(x){x.defineOption("placeholder","",function(fe,Ce,oe){var Oe=oe&&oe!=x.Init;if(Ce&&!Oe)fe.on("blur",ze),fe.on("change",Se),fe.on("swapDoc",Se),x.on(fe.getInputField(),"compositionupdate",fe.state.placeholderCompose=function(){Je(fe)}),Se(fe);else if(!Ce&&Oe){fe.off("blur",ze),fe.off("change",Se),fe.off("swapDoc",Se),x.off(fe.getInputField(),"compositionupdate",fe.state.placeholderCompose),ct(fe);var ve=fe.getWrapperElement();ve.className=ve.className.replace(" CodeMirror-empty","")}Ce&&!fe.hasFocus()&&ze(fe)});function ct(fe){fe.state.placeholder&&(fe.state.placeholder.parentNode.removeChild(fe.state.placeholder),fe.state.placeholder=null)}function Le(fe){ct(fe);var Ce=fe.state.placeholder=document.createElement("pre");Ce.style.cssText="height: 0; overflow: visible",Ce.style.direction=fe.getOption("direction"),Ce.className="CodeMirror-placeholder CodeMirror-line-like";var oe=fe.getOption("placeholder");typeof oe=="string"&&(oe=document.createTextNode(oe)),Ce.appendChild(oe),fe.display.lineSpace.insertBefore(Ce,fe.display.lineSpace.firstChild)}function Je(fe){setTimeout(function(){var Ce=!1,oe=fe.getInputField();oe.nodeName=="TEXTAREA"?Ce=!oe.value:fe.lineCount()==1&&(Ce=!/[^\u200b]/.test(oe.querySelector(".CodeMirror-line").textContent)),Ce?Le(fe):ct(fe)},20)}function ze(fe){Ue(fe)&&Le(fe)}function Se(fe){var Ce=fe.getWrapperElement(),oe=Ue(fe);Ce.className=Ce.className.replace(" CodeMirror-empty","")+(oe?" CodeMirror-empty":""),oe?Le(fe):ct(fe)}function Ue(fe){return fe.lineCount()===1&&fe.getLine(0)===""}})},25717:function(Vn,Mt,ae){(function(x){x(ae(89780))})(function(x){var ct={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Le=x.Pos;x.defineOption("autoCloseBrackets",!1,function(Te,ye,xe){xe&&xe!=x.Init&&(Te.removeKeyMap(ze),Te.state.closeBrackets=null),ye&&(Se(Je(ye,"pairs")),Te.state.closeBrackets=ye,Te.addKeyMap(ze))});function Je(Te,ye){return ye=="pairs"&&typeof Te=="string"?Te:typeof Te=="object"&&Te[ye]!=null?Te[ye]:ct[ye]}var ze={Backspace:Ce,Enter:oe};function Se(Te){for(var ye=0;ye<Te.length;ye++){var xe=Te.charAt(ye),Ee="'"+xe+"'";ze[Ee]||(ze[Ee]=Ue(xe))}}Se(ct.pairs+"`");function Ue(Te){return function(ye){return ve(ye,Te)}}function fe(Te){var ye=Te.state.closeBrackets;if(!ye||ye.override)return ye;var xe=Te.getModeAt(Te.getCursor());return xe.closeBrackets||ye}function Ce(Te){var ye=fe(Te);if(!ye||Te.getOption("disableInput"))return x.Pass;for(var xe=Je(ye,"pairs"),Ee=Te.listSelections(),ke=0;ke<Ee.length;ke++){if(!Ee[ke].empty())return x.Pass;var Ke=Me(Te,Ee[ke].head);if(!Ke||xe.indexOf(Ke)%2!=0)return x.Pass}for(var ke=Ee.length-1;ke>=0;ke--){var Qe=Ee[ke].head;Te.replaceRange("",Le(Qe.line,Qe.ch-1),Le(Qe.line,Qe.ch+1),"+delete")}}function oe(Te){var ye=fe(Te),xe=ye&&Je(ye,"explode");if(!xe||Te.getOption("disableInput"))return x.Pass;for(var Ee=Te.listSelections(),ke=0;ke<Ee.length;ke++){if(!Ee[ke].empty())return x.Pass;var Ke=Me(Te,Ee[ke].head);if(!Ke||xe.indexOf(Ke)%2!=0)return x.Pass}Te.operation(function(){var Qe=Te.lineSeparator()||`
`;Te.replaceSelection(Qe+Qe,null),Te.execCommand("goCharLeft"),Ee=Te.listSelections();for(var Re=0;Re<Ee.length;Re++){var et=Ee[Re].head.line;Te.indentLine(et,null,!0),Te.indentLine(et+1,null,!0)}})}function Oe(Te){var ye=x.cmpPos(Te.anchor,Te.head)>0;return{anchor:new Le(Te.anchor.line,Te.anchor.ch+(ye?-1:1)),head:new Le(Te.head.line,Te.head.ch+(ye?1:-1))}}function ve(Te,ye){var xe=fe(Te);if(!xe||Te.getOption("disableInput"))return x.Pass;var Ee=Je(xe,"pairs"),ke=Ee.indexOf(ye);if(ke==-1)return x.Pass;for(var Ke=Je(xe,"closeBefore"),Qe=Je(xe,"triples"),Re=Ee.charAt(ke+1)==ye,et=Te.listSelections(),Ge=ke%2==0,ut,at=0;at<et.length;at++){var ft=et[at],bt=ft.head,He,pt=Te.getRange(bt,Le(bt.line,bt.ch+1));if(Ge&&!ft.empty())He="surround";else if((Re||!Ge)&&pt==ye)Re&&Fe(Te,bt)?He="both":Qe.indexOf(ye)>=0&&Te.getRange(bt,Le(bt.line,bt.ch+3))==ye+ye+ye?He="skipThree":He="skip";else if(Re&&bt.ch>1&&Qe.indexOf(ye)>=0&&Te.getRange(Le(bt.line,bt.ch-2),bt)==ye+ye){if(bt.ch>2&&/\bstring/.test(Te.getTokenTypeAt(Le(bt.line,bt.ch-2))))return x.Pass;He="addFour"}else if(Re){var Ne=bt.ch==0?" ":Te.getRange(Le(bt.line,bt.ch-1),bt);if(!x.isWordChar(pt)&&Ne!=ye&&!x.isWordChar(Ne))He="both";else return x.Pass}else if(Ge&&(pt.length===0||/\s/.test(pt)||Ke.indexOf(pt)>-1))He="both";else return x.Pass;if(!ut)ut=He;else if(ut!=He)return x.Pass}var je=ke%2?Ee.charAt(ke-1):ye,Ot=ke%2?ye:Ee.charAt(ke+1);Te.operation(function(){if(ut=="skip")Te.execCommand("goCharRight");else if(ut=="skipThree")for(var it=0;it<3;it++)Te.execCommand("goCharRight");else if(ut=="surround"){for(var ht=Te.getSelections(),it=0;it<ht.length;it++)ht[it]=je+ht[it]+Ot;Te.replaceSelections(ht,"around"),ht=Te.listSelections().slice();for(var it=0;it<ht.length;it++)ht[it]=Oe(ht[it]);Te.setSelections(ht)}else ut=="both"?(Te.replaceSelection(je+Ot,null),Te.triggerElectric(je+Ot),Te.execCommand("goCharLeft")):ut=="addFour"&&(Te.replaceSelection(je+je+je+je,"before"),Te.execCommand("goCharRight"))})}function Me(Te,ye){var xe=Te.getRange(Le(ye.line,ye.ch-1),Le(ye.line,ye.ch+1));return xe.length==2?xe:null}function Fe(Te,ye){var xe=Te.getTokenAt(Le(ye.line,ye.ch+1));return/\bstring/.test(xe.type)&&xe.start==ye.ch&&(ye.ch==0||!/\bstring/.test(Te.getTokenTypeAt(ye)))}})},6313:function(Vn,Mt,ae){(function(x){x(ae(89780),ae(32855))})(function(x){x.defineOption("autoCloseTags",!1,function(Ce,oe,Oe){if(Oe!=x.Init&&Oe&&Ce.removeKeyMap("autoCloseTags"),!!oe){var ve={name:"autoCloseTags"};(typeof oe!="object"||oe.whenClosing!==!1)&&(ve["'/'"]=function(Me){return Se(Me)}),(typeof oe!="object"||oe.whenOpening!==!1)&&(ve["'>'"]=function(Me){return Je(Me)}),Ce.addKeyMap(ve)}});var ct=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Le=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function Je(Ce){if(Ce.getOption("disableInput"))return x.Pass;for(var oe=Ce.listSelections(),Oe=[],ve=Ce.getOption("autoCloseTags"),Me=0;Me<oe.length;Me++){if(!oe[Me].empty())return x.Pass;var Fe=oe[Me].head,Te=Ce.getTokenAt(Fe),ye=x.innerMode(Ce.getMode(),Te.state),xe=ye.state,Ee=ye.mode.xmlCurrentTag&&ye.mode.xmlCurrentTag(xe),ke=Ee&&Ee.name;if(!ke)return x.Pass;var Ke=ye.mode.configuration=="html",Qe=typeof ve=="object"&&ve.dontCloseTags||Ke&&ct,Re=typeof ve=="object"&&ve.indentTags||Ke&&Le;Te.end>Fe.ch&&(ke=ke.slice(0,ke.length-Te.end+Fe.ch));var et=ke.toLowerCase();if(!ke||Te.type=="string"&&(Te.end!=Fe.ch||!/[\"\']/.test(Te.string.charAt(Te.string.length-1))||Te.string.length==1)||Te.type=="tag"&&Ee.close||Te.string.indexOf("/")==Fe.ch-Te.start-1||Qe&&Ue(Qe,et)>-1||fe(Ce,ye.mode.xmlCurrentContext&&ye.mode.xmlCurrentContext(xe)||[],ke,Fe,!0))return x.Pass;var Ge=typeof ve=="object"&&ve.emptyTags;if(Ge&&Ue(Ge,ke)>-1){Oe[Me]={text:"/>",newPos:x.Pos(Fe.line,Fe.ch+2)};continue}var ut=Re&&Ue(Re,et)>-1;Oe[Me]={indent:ut,text:">"+(ut?`
`:"")+"</"+ke+">",newPos:ut?x.Pos(Fe.line+1,0):x.Pos(Fe.line,Fe.ch+1)}}for(var at=typeof ve=="object"&&ve.dontIndentOnAutoClose,Me=oe.length-1;Me>=0;Me--){var ft=Oe[Me];Ce.replaceRange(ft.text,oe[Me].head,oe[Me].anchor,"+insert");var bt=Ce.listSelections().slice(0);bt[Me]={head:ft.newPos,anchor:ft.newPos},Ce.setSelections(bt),!at&&ft.indent&&(Ce.indentLine(ft.newPos.line,null,!0),Ce.indentLine(ft.newPos.line+1,null,!0))}}function ze(Ce,oe){for(var Oe=Ce.listSelections(),ve=[],Me=oe?"/":"</",Fe=Ce.getOption("autoCloseTags"),Te=typeof Fe=="object"&&Fe.dontIndentOnSlash,ye=0;ye<Oe.length;ye++){if(!Oe[ye].empty())return x.Pass;var xe=Oe[ye].head,Ee=Ce.getTokenAt(xe),ke=x.innerMode(Ce.getMode(),Ee.state),Ke=ke.state;if(oe&&(Ee.type=="string"||Ee.string.charAt(0)!="<"||Ee.start!=xe.ch-1))return x.Pass;var Qe,Re=ke.mode.name!="xml"&&Ce.getMode().name=="htmlmixed";if(Re&&ke.mode.name=="javascript")Qe=Me+"script";else if(Re&&ke.mode.name=="css")Qe=Me+"style";else{var et=ke.mode.xmlCurrentContext&&ke.mode.xmlCurrentContext(Ke);if(!et||et.length&&fe(Ce,et,et[et.length-1],xe))return x.Pass;Qe=Me+et[et.length-1]}Ce.getLine(xe.line).charAt(Ee.end)!=">"&&(Qe+=">"),ve[ye]=Qe}if(Ce.replaceSelections(ve),Oe=Ce.listSelections(),!Te)for(var ye=0;ye<Oe.length;ye++)(ye==Oe.length-1||Oe[ye].head.line<Oe[ye+1].head.line)&&Ce.indentLine(Oe[ye].head.line)}function Se(Ce){return Ce.getOption("disableInput")?x.Pass:ze(Ce,!0)}x.commands.closeTag=function(Ce){return ze(Ce)};function Ue(Ce,oe){if(Ce.indexOf)return Ce.indexOf(oe);for(var Oe=0,ve=Ce.length;Oe<ve;++Oe)if(Ce[Oe]==oe)return Oe;return-1}function fe(Ce,oe,Oe,ve,Me){if(!x.scanForClosingTag)return!1;var Fe=Math.min(Ce.lastLine()+1,ve.line+500),Te=x.scanForClosingTag(Ce,ve,null,Fe);if(!Te||Te.tag!=Oe)return!1;for(var ye=Me?1:0,xe=oe.length-1;xe>=0&&oe[xe]==Oe;xe--)++ye;ve=Te.to;for(var xe=1;xe<ye;xe++){var Ee=x.scanForClosingTag(Ce,ve,null,Fe);if(!Ee||Ee.tag!=Oe)return!1;ve=Ee.to}return!0}})},32855:function(Vn,Mt,ae){(function(x){x(ae(89780))})(function(x){"use strict";var ct=x.Pos;function Le(xe,Ee){return xe.line-Ee.line||xe.ch-Ee.ch}var Je="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",ze=Je+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Se=new RegExp("<(/?)(["+Je+"]["+ze+"]*)","g");function Ue(xe,Ee,ke,Ke){this.line=Ee,this.ch=ke,this.cm=xe,this.text=xe.getLine(Ee),this.min=Ke?Math.max(Ke.from,xe.firstLine()):xe.firstLine(),this.max=Ke?Math.min(Ke.to-1,xe.lastLine()):xe.lastLine()}function fe(xe,Ee){var ke=xe.cm.getTokenTypeAt(ct(xe.line,Ee));return ke&&/\btag\b/.test(ke)}function Ce(xe){if(!(xe.line>=xe.max))return xe.ch=0,xe.text=xe.cm.getLine(++xe.line),!0}function oe(xe){if(!(xe.line<=xe.min))return xe.text=xe.cm.getLine(--xe.line),xe.ch=xe.text.length,!0}function Oe(xe){for(;;){var Ee=xe.text.indexOf(">",xe.ch);if(Ee==-1){if(Ce(xe))continue;return}if(!fe(xe,Ee+1)){xe.ch=Ee+1;continue}var ke=xe.text.lastIndexOf("/",Ee),Ke=ke>-1&&!/\S/.test(xe.text.slice(ke+1,Ee));return xe.ch=Ee+1,Ke?"selfClose":"regular"}}function ve(xe){for(;;){var Ee=xe.ch?xe.text.lastIndexOf("<",xe.ch-1):-1;if(Ee==-1){if(oe(xe))continue;return}if(!fe(xe,Ee+1)){xe.ch=Ee;continue}Se.lastIndex=Ee,xe.ch=Ee;var ke=Se.exec(xe.text);if(ke&&ke.index==Ee)return ke}}function Me(xe){for(;;){Se.lastIndex=xe.ch;var Ee=Se.exec(xe.text);if(!Ee){if(Ce(xe))continue;return}if(!fe(xe,Ee.index+1)){xe.ch=Ee.index+1;continue}return xe.ch=Ee.index+Ee[0].length,Ee}}function Fe(xe){for(;;){var Ee=xe.ch?xe.text.lastIndexOf(">",xe.ch-1):-1;if(Ee==-1){if(oe(xe))continue;return}if(!fe(xe,Ee+1)){xe.ch=Ee;continue}var ke=xe.text.lastIndexOf("/",Ee),Ke=ke>-1&&!/\S/.test(xe.text.slice(ke+1,Ee));return xe.ch=Ee+1,Ke?"selfClose":"regular"}}function Te(xe,Ee){for(var ke=[];;){var Ke=Me(xe),Qe,Re=xe.line,et=xe.ch-(Ke?Ke[0].length:0);if(!Ke||!(Qe=Oe(xe)))return;if(Qe!="selfClose")if(Ke[1]){for(var Ge=ke.length-1;Ge>=0;--Ge)if(ke[Ge]==Ke[2]){ke.length=Ge;break}if(Ge<0&&(!Ee||Ee==Ke[2]))return{tag:Ke[2],from:ct(Re,et),to:ct(xe.line,xe.ch)}}else ke.push(Ke[2])}}function ye(xe,Ee){for(var ke=[];;){var Ke=Fe(xe);if(!Ke)return;if(Ke=="selfClose"){ve(xe);continue}var Qe=xe.line,Re=xe.ch,et=ve(xe);if(!et)return;if(et[1])ke.push(et[2]);else{for(var Ge=ke.length-1;Ge>=0;--Ge)if(ke[Ge]==et[2]){ke.length=Ge;break}if(Ge<0&&(!Ee||Ee==et[2]))return{tag:et[2],from:ct(xe.line,xe.ch),to:ct(Qe,Re)}}}}x.registerHelper("fold","xml",function(xe,Ee){for(var ke=new Ue(xe,Ee.line,0);;){var Ke=Me(ke);if(!Ke||ke.line!=Ee.line)return;var Qe=Oe(ke);if(!Qe)return;if(!Ke[1]&&Qe!="selfClose"){var Re=ct(ke.line,ke.ch),et=Te(ke,Ke[2]);return et&&Le(et.from,Re)>0?{from:Re,to:et.from}:null}}}),x.findMatchingTag=function(xe,Ee,ke){var Ke=new Ue(xe,Ee.line,Ee.ch,ke);if(!(Ke.text.indexOf(">")==-1&&Ke.text.indexOf("<")==-1)){var Qe=Oe(Ke),Re=Qe&&ct(Ke.line,Ke.ch),et=Qe&&ve(Ke);if(!(!Qe||!et||Le(Ke,Ee)>0)){var Ge={from:ct(Ke.line,Ke.ch),to:Re,tag:et[2]};return Qe=="selfClose"?{open:Ge,close:null,at:"open"}:et[1]?{open:ye(Ke,et[2]),close:Ge,at:"close"}:(Ke=new Ue(xe,Re.line,Re.ch,ke),{open:Ge,close:Te(Ke,et[2]),at:"open"})}}},x.findEnclosingTag=function(xe,Ee,ke,Ke){for(var Qe=new Ue(xe,Ee.line,Ee.ch,ke);;){var Re=ye(Qe,Ke);if(!Re)break;var et=new Ue(xe,Ee.line,Ee.ch,ke),Ge=Te(et,Re.tag);if(Ge)return{open:Re,close:Ge}}},x.scanForClosingTag=function(xe,Ee,ke,Ke){var Qe=new Ue(xe,Ee.line,Ee.ch,Ke?{from:0,to:Ke}:null);return Te(Qe,ke)}})},89780:function(Vn){(function(Mt,ae){Vn.exports=ae()})(this,function(){"use strict";var Mt=navigator.userAgent,ae=navigator.platform,x=/gecko\/\d/i.test(Mt),ct=/MSIE \d/.test(Mt),Le=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Mt),Je=/Edge\/(\d+)/.exec(Mt),ze=ct||Le||Je,Se=ze&&(ct?document.documentMode||6:+(Je||Le)[1]),Ue=!Je&&/WebKit\//.test(Mt),fe=Ue&&/Qt\/\d+\.\d+/.test(Mt),Ce=!Je&&/Chrome\//.test(Mt),oe=/Opera\//.test(Mt),Oe=/Apple Computer/.test(navigator.vendor),ve=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Mt),Me=/PhantomJS/.test(Mt),Fe=!Je&&/AppleWebKit/.test(Mt)&&/Mobile\/\w+/.test(Mt),Te=/Android/.test(Mt),ye=Fe||Te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Mt),xe=Fe||/Mac/.test(ae),Ee=/\bCrOS\b/.test(Mt),ke=/win/i.test(ae),Ke=oe&&Mt.match(/Version\/(\d*\.\d*)/);Ke&&(Ke=Number(Ke[1])),Ke&&Ke>=15&&(oe=!1,Ue=!0);var Qe=xe&&(fe||oe&&(Ke==null||Ke<12.11)),Re=x||ze&&Se>=9;function et(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Ge=function(a,b){var ne=a.className,te=et(b).exec(ne);if(te){var ue=ne.slice(te.index+te[0].length);a.className=ne.slice(0,te.index)+(ue?te[1]+ue:"")}};function ut(a){for(var b=a.childNodes.length;b>0;--b)a.removeChild(a.firstChild);return a}function at(a,b){return ut(a).appendChild(b)}function ft(a,b,ne,te){var ue=document.createElement(a);if(ne&&(ue.className=ne),te&&(ue.style.cssText=te),typeof b=="string")ue.appendChild(document.createTextNode(b));else if(b)for(var De=0;De<b.length;++De)ue.appendChild(b[De]);return ue}function bt(a,b,ne,te){var ue=ft(a,b,ne,te);return ue.setAttribute("role","presentation"),ue}var He;document.createRange?He=function(a,b,ne,te){var ue=document.createRange();return ue.setEnd(te||a,ne),ue.setStart(a,b),ue}:He=function(a,b,ne){var te=document.body.createTextRange();try{te.moveToElementText(a.parentNode)}catch(ue){return te}return te.collapse(!0),te.moveEnd("character",ne),te.moveStart("character",b),te};function pt(a,b){if(b.nodeType==3&&(b=b.parentNode),a.contains)return a.contains(b);do if(b.nodeType==11&&(b=b.host),b==a)return!0;while(b=b.parentNode)}function Ne(){var a;try{a=document.activeElement}catch(b){a=document.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function je(a,b){var ne=a.className;et(b).test(ne)||(a.className+=(ne?" ":"")+b)}function Ot(a,b){for(var ne=a.split(" "),te=0;te<ne.length;te++)ne[te]&&!et(ne[te]).test(b)&&(b+=" "+ne[te]);return b}var it=function(a){a.select()};Fe?it=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:ze&&(it=function(a){try{a.select()}catch(b){}});function ht(a){var b=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,b)}}function Bt(a,b,ne){b||(b={});for(var te in a)a.hasOwnProperty(te)&&(ne!==!1||!b.hasOwnProperty(te))&&(b[te]=a[te]);return b}function We(a,b,ne,te,ue){b==null&&(b=a.search(/[^\s\u00a0]/),b==-1&&(b=a.length));for(var De=te||0,qe=ue||0;;){var vt=a.indexOf(" ",De);if(vt<0||vt>=b)return qe+(b-De);qe+=vt-De,qe+=ne-qe%ne,De=vt+1}}var _e=function(){this.id=null,this.f=null,this.time=0,this.handler=ht(this.onTimeout,this)};_e.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},_e.prototype.set=function(a,b){this.f=b;var ne=+new Date+a;(!this.id||ne<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=ne)};function ot(a,b){for(var ne=0;ne<a.length;++ne)if(a[ne]==b)return ne;return-1}var Zt=50,zt={toString:function(){return"CodeMirror.Pass"}},tt={scroll:!1},Nt={origin:"*mouse"},Ut={origin:"+move"};function pn(a,b,ne){for(var te=0,ue=0;;){var De=a.indexOf(" ",te);De==-1&&(De=a.length);var qe=De-te;if(De==a.length||ue+qe>=b)return te+Math.min(qe,b-ue);if(ue+=De-te,ue+=ne-ue%ne,te=De+1,ue>=b)return te}}var kt=[""];function mn(a){for(;kt.length<=a;)kt.push(_t(kt)+" ");return kt[a]}function _t(a){return a[a.length-1]}function Cn(a,b){for(var ne=[],te=0;te<a.length;te++)ne[te]=b(a[te],te);return ne}function an(a,b,ne){for(var te=0,ue=ne(b);te<a.length&&ne(a[te])<=ue;)te++;a.splice(te,0,b)}function de(){}function pe(a,b){var ne;return Object.create?ne=Object.create(a):(de.prototype=a,ne=new de),b&&Bt(b,ne),ne}var ie=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ee(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||ie.test(a))}function se(a,b){return b?b.source.indexOf("\\w")>-1&&ee(a)?!0:b.test(a):ee(a)}function le(a){for(var b in a)if(a.hasOwnProperty(b)&&a[b])return!1;return!0}var Be=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function $e(a){return a.charCodeAt(0)>=768&&Be.test(a)}function st(a,b,ne){for(;(ne<0?b>0:b<a.length)&&$e(a.charAt(b));)b+=ne;return b}function gt(a,b,ne){for(var te=b>ne?-1:1;;){if(b==ne)return b;var ue=(b+ne)/2,De=te<0?Math.ceil(ue):Math.floor(ue);if(De==b)return a(De)?b:ne;a(De)?ne=De:b=De+te}}function mt(a,b,ne,te){if(!a)return te(b,ne,"ltr",0);for(var ue=!1,De=0;De<a.length;++De){var qe=a[De];(qe.from<ne&&qe.to>b||b==ne&&qe.to==b)&&(te(Math.max(qe.from,b),Math.min(qe.to,ne),qe.level==1?"rtl":"ltr",De),ue=!0)}ue||te(b,ne,"ltr")}var Et=null;function Lt(a,b,ne){var te;Et=null;for(var ue=0;ue<a.length;++ue){var De=a[ue];if(De.from<b&&De.to>b)return ue;De.to==b&&(De.from!=De.to&&ne=="before"?te=ue:Et=ue),De.from==b&&(De.from!=De.to&&ne!="before"?te=ue:Et=ue)}return te!=null?te:Et}var jt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",b="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ne(Dt){return Dt<=247?a.charAt(Dt):1424<=Dt&&Dt<=1524?"R":1536<=Dt&&Dt<=1785?b.charAt(Dt-1536):1774<=Dt&&Dt<=2220?"r":8192<=Dt&&Dt<=8203?"w":Dt==8204?"b":"L"}var te=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ue=/[stwN]/,De=/[LRr]/,qe=/[Lb1n]/,vt=/[1n]/;function St(Dt,Ln,Hn){this.level=Dt,this.from=Ln,this.to=Hn}return function(Dt,Ln){var Hn=Ln=="ltr"?"L":"R";if(Dt.length==0||Ln=="ltr"&&!te.test(Dt))return!1;for(var Pr=Dt.length,xr=[],xi=0;xi<Pr;++xi)xr.push(ne(Dt.charCodeAt(xi)));for(var Zi=0,lo=Hn;Zi<Pr;++Zi){var So=xr[Zi];So=="m"?xr[Zi]=lo:lo=So}for(var Ko=0,Fo=Hn;Ko<Pr;++Ko){var Aa=xr[Ko];Aa=="1"&&Fo=="r"?xr[Ko]="n":De.test(Aa)&&(Fo=Aa,Aa=="r"&&(xr[Ko]="R"))}for(var _a=1,xa=xr[0];_a<Pr-1;++_a){var ja=xr[_a];ja=="+"&&xa=="1"&&xr[_a+1]=="1"?xr[_a]="1":ja==","&&xa==xr[_a+1]&&(xa=="1"||xa=="n")&&(xr[_a]=xa),xa=ja}for(var Il=0;Il<Pr;++Il){var zu=xr[Il];if(zu==",")xr[Il]="N";else if(zu=="%"){var eu=void 0;for(eu=Il+1;eu<Pr&&xr[eu]=="%";++eu);for(var yA=Il&&xr[Il-1]=="!"||eu<Pr&&xr[eu]=="1"?"1":"N",Ju=Il;Ju<eu;++Ju)xr[Ju]=yA;Il=eu-1}}for(var _u=0,wA=Hn;_u<Pr;++_u){var lA=xr[_u];wA=="L"&&lA=="1"?xr[_u]="L":De.test(lA)&&(wA=lA)}for(var Eo=0;Eo<Pr;++Eo)if(ue.test(xr[Eo])){var zl=void 0;for(zl=Eo+1;zl<Pr&&ue.test(xr[zl]);++zl);for(var tu=(Eo?xr[Eo-1]:Hn)=="L",nu=(zl<Pr?xr[zl]:Hn)=="L",Of=tu==nu?tu?"L":"R":Hn,zs=Eo;zs<zl;++zs)xr[zs]=Of;Eo=zl-1}for(var Bs=[],ic,uA=0;uA<Pr;)if(qe.test(xr[uA])){var dh=uA;for(++uA;uA<Pr&&qe.test(xr[uA]);++uA);Bs.push(new St(0,dh,uA))}else{var ka=uA,Sc=Bs.length,dl=Ln=="rtl"?1:0;for(++uA;uA<Pr&&xr[uA]!="L";++uA);for(var AA=ka;AA<uA;)if(vt.test(xr[AA])){ka<AA&&(Bs.splice(Sc,0,new St(1,ka,AA)),Sc+=dl);var kd=AA;for(++AA;AA<uA&&vt.test(xr[AA]);++AA);Bs.splice(Sc,0,new St(2,kd,AA)),Sc+=dl,ka=AA}else++AA;ka<uA&&Bs.splice(Sc,0,new St(1,ka,uA))}return Ln=="ltr"&&(Bs[0].level==1&&(ic=Dt.match(/^\s+/))&&(Bs[0].from=ic[0].length,Bs.unshift(new St(0,0,ic[0].length))),_t(Bs).level==1&&(ic=Dt.match(/\s+$/))&&(_t(Bs).to-=ic[0].length,Bs.push(new St(0,Pr-ic[0].length,Pr)))),Ln=="rtl"?Bs.reverse():Bs}}();function Ct(a,b){var ne=a.order;return ne==null&&(ne=a.order=jt(a.text,b)),ne}var lt=[],$t=function(a,b,ne){if(a.addEventListener)a.addEventListener(b,ne,!1);else if(a.attachEvent)a.attachEvent("on"+b,ne);else{var te=a._handlers||(a._handlers={});te[b]=(te[b]||lt).concat(ne)}};function Wt(a,b){return a._handlers&&a._handlers[b]||lt}function wn(a,b,ne){if(a.removeEventListener)a.removeEventListener(b,ne,!1);else if(a.detachEvent)a.detachEvent("on"+b,ne);else{var te=a._handlers,ue=te&&te[b];if(ue){var De=ot(ue,ne);De>-1&&(te[b]=ue.slice(0,De).concat(ue.slice(De+1)))}}}function ln(a,b){var ne=Wt(a,b);if(ne.length)for(var te=Array.prototype.slice.call(arguments,2),ue=0;ue<ne.length;++ue)ne[ue].apply(null,te)}function tn(a,b,ne){return typeof b=="string"&&(b={type:b,preventDefault:function(){this.defaultPrevented=!0}}),ln(a,ne||b.type,a,b),Wn(b)||b.codemirrorIgnore}function Qn(a){var b=a._handlers&&a._handlers.cursorActivity;if(b)for(var ne=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),te=0;te<b.length;++te)ot(ne,b[te])==-1&&ne.push(b[te])}function En(a,b){return Wt(a,b).length>0}function Rt(a){a.prototype.on=function(b,ne){$t(this,b,ne)},a.prototype.off=function(b,ne){wn(this,b,ne)}}function un(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Dn(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Wn(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function It(a){un(a),Dn(a)}function Gt(a){return a.target||a.srcElement}function sn(a){var b=a.which;return b==null&&(a.button&1?b=1:a.button&2?b=3:a.button&4&&(b=2)),xe&&a.ctrlKey&&b==1&&(b=3),b}var yn=function(){if(ze&&Se<9)return!1;var a=ft("div");return"draggable"in a||"dragDrop"in a}(),Yn;function Br(a){if(Yn==null){var b=ft("span","\u200B");at(a,ft("span",[b,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Yn=b.offsetWidth<=1&&b.offsetHeight>2&&!(ze&&Se<8))}var ne=Yn?ft("span","\u200B"):ft("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ne.setAttribute("cm-text",""),ne}var ti;function Ur(a){if(ti!=null)return ti;var b=at(a,document.createTextNode("A\u062EA")),ne=He(b,0,1).getBoundingClientRect(),te=He(b,1,2).getBoundingClientRect();return ut(a),!ne||ne.left==ne.right?!1:ti=te.right-ne.right<3}var Sr=`
b`.split(/\n/).length!=3?function(a){for(var b=0,ne=[],te=a.length;b<=te;){var ue=a.indexOf(`
`,b);ue==-1&&(ue=a.length);var De=a.slice(b,a.charAt(ue-1)=="\r"?ue-1:ue),qe=De.indexOf("\r");qe!=-1?(ne.push(De.slice(0,qe)),b+=qe+1):(ne.push(De),b=ue+1)}return ne}:function(a){return a.split(/\r\n?|\n/)},Jn=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(b){return!1}}:function(a){var b;try{b=a.ownerDocument.selection.createRange()}catch(ne){}return!b||b.parentElement()!=a?!1:b.compareEndPoints("StartToEnd",b)!=0},gr=function(){var a=ft("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),kr=null;function Vr(a){if(kr!=null)return kr;var b=at(a,ft("span","x")),ne=b.getBoundingClientRect(),te=He(b,0,1).getBoundingClientRect();return kr=Math.abs(ne.left-te.left)>1}var pi={},Lr={};function tr(a,b){arguments.length>2&&(b.dependencies=Array.prototype.slice.call(arguments,2)),pi[a]=b}function Xn(a,b){Lr[a]=b}function mr(a){if(typeof a=="string"&&Lr.hasOwnProperty(a))a=Lr[a];else if(a&&typeof a.name=="string"&&Lr.hasOwnProperty(a.name)){var b=Lr[a.name];typeof b=="string"&&(b={name:b}),a=pe(b,a),a.name=b.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return mr("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return mr("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Qr(a,b){b=mr(b);var ne=pi[b.name];if(!ne)return Qr(a,"text/plain");var te=ne(a,b);if(ii.hasOwnProperty(b.name)){var ue=ii[b.name];for(var De in ue)ue.hasOwnProperty(De)&&(te.hasOwnProperty(De)&&(te["_"+De]=te[De]),te[De]=ue[De])}if(te.name=b.name,b.helperType&&(te.helperType=b.helperType),b.modeProps)for(var qe in b.modeProps)te[qe]=b.modeProps[qe];return te}var ii={};function ai(a,b){var ne=ii.hasOwnProperty(a)?ii[a]:ii[a]={};Bt(b,ne)}function oi(a,b){if(b===!0)return b;if(a.copyState)return a.copyState(b);var ne={};for(var te in b){var ue=b[te];ue instanceof Array&&(ue=ue.concat([])),ne[te]=ue}return ne}function li(a,b){for(var ne;a.innerMode&&(ne=a.innerMode(b),!(!ne||ne.mode==a));)b=ne.state,a=ne.mode;return ne||{mode:a,state:b}}function ji(a,b,ne){return a.startState?a.startState(b,ne):!0}var ki=function(a,b,ne){this.pos=this.start=0,this.string=a,this.tabSize=b||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ne};ki.prototype.eol=function(){return this.pos>=this.string.length},ki.prototype.sol=function(){return this.pos==this.lineStart},ki.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ki.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ki.prototype.eat=function(a){var b=this.string.charAt(this.pos),ne;if(typeof a=="string"?ne=b==a:ne=b&&(a.test?a.test(b):a(b)),ne)return++this.pos,b},ki.prototype.eatWhile=function(a){for(var b=this.pos;this.eat(a););return this.pos>b},ki.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},ki.prototype.skipToEnd=function(){this.pos=this.string.length},ki.prototype.skipTo=function(a){var b=this.string.indexOf(a,this.pos);if(b>-1)return this.pos=b,!0},ki.prototype.backUp=function(a){this.pos-=a},ki.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=We(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?We(this.string,this.lineStart,this.tabSize):0)},ki.prototype.indentation=function(){return We(this.string,null,this.tabSize)-(this.lineStart?We(this.string,this.lineStart,this.tabSize):0)},ki.prototype.match=function(a,b,ne){if(typeof a=="string"){var te=function(qe){return ne?qe.toLowerCase():qe},ue=this.string.substr(this.pos,a.length);if(te(ue)==te(a))return b!==!1&&(this.pos+=a.length),!0}else{var De=this.string.slice(this.pos).match(a);return De&&De.index>0?null:(De&&b!==!1&&(this.pos+=De[0].length),De)}},ki.prototype.current=function(){return this.string.slice(this.start,this.pos)},ki.prototype.hideFirstChars=function(a,b){this.lineStart+=a;try{return b()}finally{this.lineStart-=a}},ki.prototype.lookAhead=function(a){var b=this.lineOracle;return b&&b.lookAhead(a)},ki.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function or(a,b){if(b-=a.first,b<0||b>=a.size)throw new Error("There is no line "+(b+a.first)+" in the document.");for(var ne=a;!ne.lines;)for(var te=0;;++te){var ue=ne.children[te],De=ue.chunkSize();if(b<De){ne=ue;break}b-=De}return ne.lines[b]}function Hr(a,b,ne){var te=[],ue=b.line;return a.iter(b.line,ne.line+1,function(De){var qe=De.text;ue==ne.line&&(qe=qe.slice(0,ne.ch)),ue==b.line&&(qe=qe.slice(b.ch)),te.push(qe),++ue}),te}function Bi(a,b,ne){var te=[];return a.iter(b,ne,function(ue){te.push(ue.text)}),te}function Yt(a,b){var ne=b-a.height;if(ne)for(var te=a;te;te=te.parent)te.height+=ne}function rn(a){if(a.parent==null)return null;for(var b=a.parent,ne=ot(b.lines,a),te=b.parent;te;b=te,te=te.parent)for(var ue=0;te.children[ue]!=b;++ue)ne+=te.children[ue].chunkSize();return ne+b.first}function fn(a,b){var ne=a.first;e:do{for(var te=0;te<a.children.length;++te){var ue=a.children[te],De=ue.height;if(b<De){a=ue;continue e}b-=De,ne+=ue.chunkSize()}return ne}while(!a.lines);for(var qe=0;qe<a.lines.length;++qe){var vt=a.lines[qe],St=vt.height;if(b<St)break;b-=St}return ne+qe}function Pt(a,b){return b>=a.first&&b<a.first+a.size}function en(a,b){return String(a.lineNumberFormatter(b+a.firstLineNumber))}function Kt(a,b,ne){if(ne===void 0&&(ne=null),!(this instanceof Kt))return new Kt(a,b,ne);this.line=a,this.ch=b,this.sticky=ne}function gn(a,b){return a.line-b.line||a.ch-b.ch}function On(a,b){return a.sticky==b.sticky&&gn(a,b)==0}function Nr(a){return Kt(a.line,a.ch)}function Yr(a,b){return gn(a,b)<0?b:a}function hi(a,b){return gn(a,b)<0?a:b}function rr(a,b){return Math.max(a.first,Math.min(b,a.first+a.size-1))}function ur(a,b){if(b.line<a.first)return Kt(a.first,0);var ne=a.first+a.size-1;return b.line>ne?Kt(ne,or(a,ne).text.length):sr(b,or(a,b.line).text.length)}function sr(a,b){var ne=a.ch;return ne==null||ne>b?Kt(a.line,b):ne<0?Kt(a.line,0):a}function ni(a,b){for(var ne=[],te=0;te<b.length;te++)ne[te]=ur(a,b[te]);return ne}var er=function(a,b){this.state=a,this.lookAhead=b},Rn=function(a,b,ne,te){this.state=b,this.doc=a,this.line=ne,this.maxLookAhead=te||0,this.baseTokens=null,this.baseTokenPos=1};Rn.prototype.lookAhead=function(a){var b=this.doc.getLine(this.line+a);return b!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),b},Rn.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var b=this.baseTokens[this.baseTokenPos+1];return{type:b&&b.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},Rn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Rn.fromSaved=function(a,b,ne){return b instanceof er?new Rn(a,oi(a.mode,b.state),ne,b.lookAhead):new Rn(a,oi(a.mode,b),ne)},Rn.prototype.save=function(a){var b=a!==!1?oi(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new er(b,this.maxLookAhead):b};function Ar(a,b,ne,te){var ue=[a.state.modeGen],De={};gi(a,b.text,a.doc.mode,ne,function(Dt,Ln){return ue.push(Dt,Ln)},De,te);for(var qe=ne.state,vt=function(Dt){ne.baseTokens=ue;var Ln=a.state.overlays[Dt],Hn=1,Pr=0;ne.state=!0,gi(a,b.text,Ln.mode,ne,function(xr,xi){for(var Zi=Hn;Pr<xr;){var lo=ue[Hn];lo>xr&&ue.splice(Hn,1,xr,ue[Hn+1],lo),Hn+=2,Pr=Math.min(xr,lo)}if(xi)if(Ln.opaque)ue.splice(Zi,Hn-Zi,xr,"overlay "+xi),Hn=Zi+2;else for(;Zi<Hn;Zi+=2){var So=ue[Zi+1];ue[Zi+1]=(So?So+" ":"")+"overlay "+xi}},De),ne.state=qe,ne.baseTokens=null,ne.baseTokenPos=1},St=0;St<a.state.overlays.length;++St)vt(St);return{styles:ue,classes:De.bgClass||De.textClass?De:null}}function Ei(a,b,ne){if(!b.styles||b.styles[0]!=a.state.modeGen){var te=Kn(a,rn(b)),ue=b.text.length>a.options.maxHighlightLength&&oi(a.doc.mode,te.state),De=Ar(a,b,te);ue&&(te.state=ue),b.stateAfter=te.save(!ue),b.styles=De.styles,De.classes?b.styleClasses=De.classes:b.styleClasses&&(b.styleClasses=null),ne===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return b.styles}function Kn(a,b,ne){var te=a.doc,ue=a.display;if(!te.mode.startState)return new Rn(te,!0,b);var De=Di(a,b,ne),qe=De>te.first&&or(te,De-1).stateAfter,vt=qe?Rn.fromSaved(te,qe,De):new Rn(te,ji(te.mode),De);return te.iter(De,b,function(St){vn(a,St.text,vt);var Dt=vt.line;St.stateAfter=Dt==b-1||Dt%5==0||Dt>=ue.viewFrom&&Dt<ue.viewTo?vt.save():null,vt.nextLine()}),ne&&(te.modeFrontier=vt.line),vt}function vn(a,b,ne,te){var ue=a.doc.mode,De=new ki(b,a.options.tabSize,ne);for(De.start=De.pos=te||0,b==""&&$n(ue,ne.state);!De.eol();)nr(ue,De,ne.state),De.start=De.pos}function $n(a,b){if(a.blankLine)return a.blankLine(b);if(a.innerMode){var ne=li(a,b);if(ne.mode.blankLine)return ne.mode.blankLine(ne.state)}}function nr(a,b,ne,te){for(var ue=0;ue<10;ue++){te&&(te[0]=li(a,ne).mode);var De=a.token(b,ne);if(b.pos>b.start)return De}throw new Error("Mode "+a.name+" failed to advance stream.")}var fr=function(a,b,ne){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=b||null,this.state=ne};function zr(a,b,ne,te){var ue=a.doc,De=ue.mode,qe;b=ur(ue,b);var vt=or(ue,b.line),St=Kn(a,b.line,ne),Dt=new ki(vt.text,a.options.tabSize,St),Ln;for(te&&(Ln=[]);(te||Dt.pos<b.ch)&&!Dt.eol();)Dt.start=Dt.pos,qe=nr(De,Dt,St.state),te&&Ln.push(new fr(Dt,qe,oi(ue.mode,St.state)));return te?Ln:new fr(Dt,qe,St.state)}function Ni(a,b){if(a)for(;;){var ne=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ne)break;a=a.slice(0,ne.index)+a.slice(ne.index+ne[0].length);var te=ne[1]?"bgClass":"textClass";b[te]==null?b[te]=ne[2]:new RegExp("(?:^|\\s)"+ne[2]+"(?:$|\\s)").test(b[te])||(b[te]+=" "+ne[2])}return a}function gi(a,b,ne,te,ue,De,qe){var vt=ne.flattenSpans;vt==null&&(vt=a.options.flattenSpans);var St=0,Dt=null,Ln=new ki(b,a.options.tabSize,te),Hn,Pr=a.options.addModeClass&&[null];for(b==""&&Ni($n(ne,te.state),De);!Ln.eol();){if(Ln.pos>a.options.maxHighlightLength?(vt=!1,qe&&vn(a,b,te,Ln.pos),Ln.pos=b.length,Hn=null):Hn=Ni(nr(ne,Ln,te.state,Pr),De),Pr){var xr=Pr[0].name;xr&&(Hn="m-"+(Hn?xr+" "+Hn:xr))}if(!vt||Dt!=Hn){for(;St<Ln.start;)St=Math.min(Ln.start,St+5e3),ue(St,Dt);Dt=Hn}Ln.start=Ln.pos}for(;St<Ln.pos;){var xi=Math.min(Ln.pos,St+5e3);ue(xi,Dt),St=xi}}function Di(a,b,ne){for(var te,ue,De=a.doc,qe=ne?-1:b-(a.doc.mode.innerMode?1e3:100),vt=b;vt>qe;--vt){if(vt<=De.first)return De.first;var St=or(De,vt-1),Dt=St.stateAfter;if(Dt&&(!ne||vt+(Dt instanceof er?Dt.lookAhead:0)<=De.modeFrontier))return vt;var Ln=We(St.text,null,a.options.tabSize);(ue==null||te>Ln)&&(ue=vt-1,te=Ln)}return ue}function mi(a,b){if(a.modeFrontier=Math.min(a.modeFrontier,b),!(a.highlightFrontier<b-10)){for(var ne=a.first,te=b-1;te>ne;te--){var ue=or(a,te).stateAfter;if(ue&&(!(ue instanceof er)||te+ue.lookAhead<b)){ne=te+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,ne)}}var Si=!1,wi=!1;function Ci(){Si=!0}function yi(){wi=!0}function Mi(a,b,ne){this.marker=a,this.from=b,this.to=ne}function eo(a,b){if(a)for(var ne=0;ne<a.length;++ne){var te=a[ne];if(te.marker==b)return te}}function mo(a,b){for(var ne,te=0;te<a.length;++te)a[te]!=b&&(ne||(ne=[])).push(a[te]);return ne}function Yi(a,b){a.markedSpans=a.markedSpans?a.markedSpans.concat([b]):[b],b.marker.attachLine(a)}function Io(a,b,ne){var te;if(a)for(var ue=0;ue<a.length;++ue){var De=a[ue],qe=De.marker,vt=De.from==null||(qe.inclusiveLeft?De.from<=b:De.from<b);if(vt||De.from==b&&qe.type=="bookmark"&&(!ne||!De.marker.insertLeft)){var St=De.to==null||(qe.inclusiveRight?De.to>=b:De.to>b);(te||(te=[])).push(new Mi(qe,De.from,St?null:De.to))}}return te}function Ri(a,b,ne){var te;if(a)for(var ue=0;ue<a.length;++ue){var De=a[ue],qe=De.marker,vt=De.to==null||(qe.inclusiveRight?De.to>=b:De.to>b);if(vt||De.from==b&&qe.type=="bookmark"&&(!ne||De.marker.insertLeft)){var St=De.from==null||(qe.inclusiveLeft?De.from<=b:De.from<b);(te||(te=[])).push(new Mi(qe,St?null:De.from-b,De.to==null?null:De.to-b))}}return te}function ko(a,b){if(b.full)return null;var ne=Pt(a,b.from.line)&&or(a,b.from.line).markedSpans,te=Pt(a,b.to.line)&&or(a,b.to.line).markedSpans;if(!ne&&!te)return null;var ue=b.from.ch,De=b.to.ch,qe=gn(b.from,b.to)==0,vt=Io(ne,ue,qe),St=Ri(te,De,qe),Dt=b.text.length==1,Ln=_t(b.text).length+(Dt?ue:0);if(vt)for(var Hn=0;Hn<vt.length;++Hn){var Pr=vt[Hn];if(Pr.to==null){var xr=eo(St,Pr.marker);xr?Dt&&(Pr.to=xr.to==null?null:xr.to+Ln):Pr.to=ue}}if(St)for(var xi=0;xi<St.length;++xi){var Zi=St[xi];if(Zi.to!=null&&(Zi.to+=Ln),Zi.from==null){var lo=eo(vt,Zi.marker);lo||(Zi.from=Ln,Dt&&(vt||(vt=[])).push(Zi))}else Zi.from+=Ln,Dt&&(vt||(vt=[])).push(Zi)}vt&&(vt=uo(vt)),St&&St!=vt&&(St=uo(St));var So=[vt];if(!Dt){var Ko=b.text.length-2,Fo;if(Ko>0&&vt)for(var Aa=0;Aa<vt.length;++Aa)vt[Aa].to==null&&(Fo||(Fo=[])).push(new Mi(vt[Aa].marker,null,null));for(var _a=0;_a<Ko;++_a)So.push(Fo);So.push(St)}return So}function uo(a){for(var b=0;b<a.length;++b){var ne=a[b];ne.from!=null&&ne.from==ne.to&&ne.marker.clearWhenEmpty!==!1&&a.splice(b--,1)}return a.length?a:null}function Vo(a,b,ne){var te=null;if(a.iter(b.line,ne.line+1,function(xr){if(xr.markedSpans)for(var xi=0;xi<xr.markedSpans.length;++xi){var Zi=xr.markedSpans[xi].marker;Zi.readOnly&&(!te||ot(te,Zi)==-1)&&(te||(te=[])).push(Zi)}}),!te)return null;for(var ue=[{from:b,to:ne}],De=0;De<te.length;++De)for(var qe=te[De],vt=qe.find(0),St=0;St<ue.length;++St){var Dt=ue[St];if(!(gn(Dt.to,vt.from)<0||gn(Dt.from,vt.to)>0)){var Ln=[St,1],Hn=gn(Dt.from,vt.from),Pr=gn(Dt.to,vt.to);(Hn<0||!qe.inclusiveLeft&&!Hn)&&Ln.push({from:Dt.from,to:vt.from}),(Pr>0||!qe.inclusiveRight&&!Pr)&&Ln.push({from:vt.to,to:Dt.to}),ue.splice.apply(ue,Ln),St+=Ln.length-3}}return ue}function wo(a){var b=a.markedSpans;if(b){for(var ne=0;ne<b.length;++ne)b[ne].marker.detachLine(a);a.markedSpans=null}}function to(a,b){if(b){for(var ne=0;ne<b.length;++ne)b[ne].marker.attachLine(a);a.markedSpans=b}}function bo(a){return a.inclusiveLeft?-1:0}function Go(a){return a.inclusiveRight?1:0}function Tn(a,b){var ne=a.lines.length-b.lines.length;if(ne!=0)return ne;var te=a.find(),ue=b.find(),De=gn(te.from,ue.from)||bo(a)-bo(b);if(De)return-De;var qe=gn(te.to,ue.to)||Go(a)-Go(b);return qe||b.id-a.id}function Lo(a,b){var ne=wi&&a.markedSpans,te;if(ne)for(var ue=void 0,De=0;De<ne.length;++De)ue=ne[De],ue.marker.collapsed&&(b?ue.from:ue.to)==null&&(!te||Tn(te,ue.marker)<0)&&(te=ue.marker);return te}function Vi(a){return Lo(a,!0)}function Mr(a){return Lo(a,!1)}function Jr(a,b){var ne=wi&&a.markedSpans,te;if(ne)for(var ue=0;ue<ne.length;++ue){var De=ne[ue];De.marker.collapsed&&(De.from==null||De.from<b)&&(De.to==null||De.to>b)&&(!te||Tn(te,De.marker)<0)&&(te=De.marker)}return te}function ri(a,b,ne,te,ue){var De=or(a,b),qe=wi&&De.markedSpans;if(qe)for(var vt=0;vt<qe.length;++vt){var St=qe[vt];if(St.marker.collapsed){var Dt=St.marker.find(0),Ln=gn(Dt.from,ne)||bo(St.marker)-bo(ue),Hn=gn(Dt.to,te)||Go(St.marker)-Go(ue);if(!(Ln>=0&&Hn<=0||Ln<=0&&Hn>=0)&&(Ln<=0&&(St.marker.inclusiveRight&&ue.inclusiveLeft?gn(Dt.to,ne)>=0:gn(Dt.to,ne)>0)||Ln>=0&&(St.marker.inclusiveRight&&ue.inclusiveLeft?gn(Dt.from,te)<=0:gn(Dt.from,te)<0)))return!0}}}function Wr(a){for(var b;b=Vi(a);)a=b.find(-1,!0).line;return a}function Qi(a){for(var b;b=Mr(a);)a=b.find(1,!0).line;return a}function no(a){for(var b,ne;b=Mr(a);)a=b.find(1,!0).line,(ne||(ne=[])).push(a);return ne}function Kr(a,b){var ne=or(a,b),te=Wr(ne);return ne==te?b:rn(te)}function ui(a,b){if(b>a.lastLine())return b;var ne=or(a,b),te;if(!vr(a,ne))return b;for(;te=Mr(ne);)ne=te.find(1,!0).line;return rn(ne)+1}function vr(a,b){var ne=wi&&b.markedSpans;if(ne){for(var te=void 0,ue=0;ue<ne.length;++ue)if(te=ne[ue],!!te.marker.collapsed){if(te.from==null)return!0;if(!te.marker.widgetNode&&te.from==0&&te.marker.inclusiveLeft&&qr(a,b,te))return!0}}}function qr(a,b,ne){if(ne.to==null){var te=ne.marker.find(1,!0);return qr(a,te.line,eo(te.line.markedSpans,ne.marker))}if(ne.marker.inclusiveRight&&ne.to==b.text.length)return!0;for(var ue=void 0,De=0;De<b.markedSpans.length;++De)if(ue=b.markedSpans[De],ue.marker.collapsed&&!ue.marker.widgetNode&&ue.from==ne.to&&(ue.to==null||ue.to!=ne.from)&&(ue.marker.inclusiveLeft||ne.marker.inclusiveRight)&&qr(a,b,ue))return!0}function Ao(a){a=Wr(a);for(var b=0,ne=a.parent,te=0;te<ne.lines.length;++te){var ue=ne.lines[te];if(ue==a)break;b+=ue.height}for(var De=ne.parent;De;ne=De,De=ne.parent)for(var qe=0;qe<De.children.length;++qe){var vt=De.children[qe];if(vt==ne)break;b+=vt.height}return b}function Yo(a){if(a.height==0)return 0;for(var b=a.text.length,ne,te=a;ne=Vi(te);){var ue=ne.find(0,!0);te=ue.from.line,b+=ue.from.ch-ue.to.ch}for(te=a;ne=Mr(te);){var De=ne.find(0,!0);b-=te.text.length-De.from.ch,te=De.to.line,b+=te.text.length-De.to.ch}return b}function Do(a){var b=a.display,ne=a.doc;b.maxLine=or(ne,ne.first),b.maxLineLength=Yo(b.maxLine),b.maxLineChanged=!0,ne.iter(function(te){var ue=Yo(te);ue>b.maxLineLength&&(b.maxLineLength=ue,b.maxLine=te)})}var ga=function(a,b,ne){this.text=a,to(this,b),this.height=ne?ne(this):1};ga.prototype.lineNo=function(){return rn(this)},Rt(ga);function No(a,b,ne,te){a.text=b,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),wo(a),to(a,ne);var ue=te?te(a):1;ue!=a.height&&Yt(a,ue)}function Jo(a){a.parent=null,wo(a)}var Ro={},oa={};function fa(a,b){if(!a||/^\s*$/.test(a))return null;var ne=b.addModeClass?oa:Ro;return ne[a]||(ne[a]=a.replace(/\S+/g,"cm-$&"))}function Wa(a,b){var ne=bt("span",null,null,Ue?"padding-right: .1px":null),te={pre:bt("pre",[ne],"CodeMirror-line"),content:ne,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};b.measure={};for(var ue=0;ue<=(b.rest?b.rest.length:0);ue++){var De=ue?b.rest[ue-1]:b.line,qe=void 0;te.pos=0,te.addToken=js,Ur(a.display.measure)&&(qe=Ct(De,a.doc.direction))&&(te.addToken=ds(te.addToken,qe)),te.map=[];var vt=b!=a.display.externalMeasured&&rn(De);go(De,te,Ei(a,De,vt)),De.styleClasses&&(De.styleClasses.bgClass&&(te.bgClass=Ot(De.styleClasses.bgClass,te.bgClass||"")),De.styleClasses.textClass&&(te.textClass=Ot(De.styleClasses.textClass,te.textClass||""))),te.map.length==0&&te.map.push(0,0,te.content.appendChild(Br(a.display.measure))),ue==0?(b.measure.map=te.map,b.measure.cache={}):((b.measure.maps||(b.measure.maps=[])).push(te.map),(b.measure.caches||(b.measure.caches=[])).push({}))}if(Ue){var St=te.content.lastChild;(/\bcm-tab\b/.test(St.className)||St.querySelector&&St.querySelector(".cm-tab"))&&(te.content.className="cm-tab-wrap-hack")}return ln(a,"renderLine",a,b.line,te.pre),te.pre.className&&(te.textClass=Ot(te.pre.className,te.textClass||"")),te}function Ds(a){var b=ft("span","\u2022","cm-invalidchar");return b.title="\\u"+a.charCodeAt(0).toString(16),b.setAttribute("aria-label",b.title),b}function js(a,b,ne,te,ue,De,qe){if(b){var vt=a.splitSpaces?as(b,a.trailingSpace):b,St=a.cm.state.specialChars,Dt=!1,Ln;if(!St.test(b))a.col+=b.length,Ln=document.createTextNode(vt),a.map.push(a.pos,a.pos+b.length,Ln),ze&&Se<9&&(Dt=!0),a.pos+=b.length;else{Ln=document.createDocumentFragment();for(var Hn=0;;){St.lastIndex=Hn;var Pr=St.exec(b),xr=Pr?Pr.index-Hn:b.length-Hn;if(xr){var xi=document.createTextNode(vt.slice(Hn,Hn+xr));ze&&Se<9?Ln.appendChild(ft("span",[xi])):Ln.appendChild(xi),a.map.push(a.pos,a.pos+xr,xi),a.col+=xr,a.pos+=xr}if(!Pr)break;Hn+=xr+1;var Zi=void 0;if(Pr[0]==" "){var lo=a.cm.options.tabSize,So=lo-a.col%lo;Zi=Ln.appendChild(ft("span",mn(So),"cm-tab")),Zi.setAttribute("role","presentation"),Zi.setAttribute("cm-text"," "),a.col+=So}else Pr[0]=="\r"||Pr[0]==`
`?(Zi=Ln.appendChild(ft("span",Pr[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Zi.setAttribute("cm-text",Pr[0]),a.col+=1):(Zi=a.cm.options.specialCharPlaceholder(Pr[0]),Zi.setAttribute("cm-text",Pr[0]),ze&&Se<9?Ln.appendChild(ft("span",[Zi])):Ln.appendChild(Zi),a.col+=1);a.map.push(a.pos,a.pos+1,Zi),a.pos++}}if(a.trailingSpace=vt.charCodeAt(b.length-1)==32,ne||te||ue||Dt||De||qe){var Ko=ne||"";te&&(Ko+=te),ue&&(Ko+=ue);var Fo=ft("span",[Ln],Ko,De);if(qe)for(var Aa in qe)qe.hasOwnProperty(Aa)&&Aa!="style"&&Aa!="class"&&Fo.setAttribute(Aa,qe[Aa]);return a.content.appendChild(Fo)}a.content.appendChild(Ln)}}function as(a,b){if(a.length>1&&!/ /.test(a))return a;for(var ne=b,te="",ue=0;ue<a.length;ue++){var De=a.charAt(ue);De==" "&&ne&&(ue==a.length-1||a.charCodeAt(ue+1)==32)&&(De="\xA0"),te+=De,ne=De==" "}return te}function ds(a,b){return function(ne,te,ue,De,qe,vt,St){ue=ue?ue+" cm-force-border":"cm-force-border";for(var Dt=ne.pos,Ln=Dt+te.length;;){for(var Hn=void 0,Pr=0;Pr<b.length&&(Hn=b[Pr],!(Hn.to>Dt&&Hn.from<=Dt));Pr++);if(Hn.to>=Ln)return a(ne,te,ue,De,qe,vt,St);a(ne,te.slice(0,Hn.to-Dt),ue,De,null,vt,St),De=null,te=te.slice(Hn.to-Dt),Dt=Hn.to}}}function Mo(a,b,ne,te){var ue=!te&&ne.widgetNode;ue&&a.map.push(a.pos,a.pos+b,ue),!te&&a.cm.display.input.needsContentAttribute&&(ue||(ue=a.content.appendChild(document.createElement("span"))),ue.setAttribute("cm-marker",ne.id)),ue&&(a.cm.display.input.setUneditable(ue),a.content.appendChild(ue)),a.pos+=b,a.trailingSpace=!1}function go(a,b,ne){var te=a.markedSpans,ue=a.text,De=0;if(!te){for(var qe=1;qe<ne.length;qe+=2)b.addToken(b,ue.slice(De,De=ne[qe]),fa(ne[qe+1],b.cm.options));return}for(var vt=ue.length,St=0,Dt=1,Ln="",Hn,Pr,xr=0,xi,Zi,lo,So,Ko;;){if(xr==St){xi=Zi=lo=Pr="",Ko=null,So=null,xr=1/0;for(var Fo=[],Aa=void 0,_a=0;_a<te.length;++_a){var xa=te[_a],ja=xa.marker;if(ja.type=="bookmark"&&xa.from==St&&ja.widgetNode)Fo.push(ja);else if(xa.from<=St&&(xa.to==null||xa.to>St||ja.collapsed&&xa.to==St&&xa.from==St)){if(xa.to!=null&&xa.to!=St&&xr>xa.to&&(xr=xa.to,Zi=""),ja.className&&(xi+=" "+ja.className),ja.css&&(Pr=(Pr?Pr+";":"")+ja.css),ja.startStyle&&xa.from==St&&(lo+=" "+ja.startStyle),ja.endStyle&&xa.to==xr&&(Aa||(Aa=[])).push(ja.endStyle,xa.to),ja.title&&((Ko||(Ko={})).title=ja.title),ja.attributes)for(var Il in ja.attributes)(Ko||(Ko={}))[Il]=ja.attributes[Il];ja.collapsed&&(!So||Tn(So.marker,ja)<0)&&(So=xa)}else xa.from>St&&xr>xa.from&&(xr=xa.from)}if(Aa)for(var zu=0;zu<Aa.length;zu+=2)Aa[zu+1]==xr&&(Zi+=" "+Aa[zu]);if(!So||So.from==St)for(var eu=0;eu<Fo.length;++eu)Mo(b,0,Fo[eu]);if(So&&(So.from||0)==St){if(Mo(b,(So.to==null?vt+1:So.to)-St,So.marker,So.from==null),So.to==null)return;So.to==St&&(So=!1)}}if(St>=vt)break;for(var yA=Math.min(vt,xr);;){if(Ln){var Ju=St+Ln.length;if(!So){var _u=Ju>yA?Ln.slice(0,yA-St):Ln;b.addToken(b,_u,Hn?Hn+xi:xi,lo,St+_u.length==xr?Zi:"",Pr,Ko)}if(Ju>=yA){Ln=Ln.slice(yA-St),St=yA;break}St=Ju,lo=""}Ln=ue.slice(De,De=ne[Dt++]),Hn=fa(ne[Dt++],b.cm.options)}}}function Fa(a,b,ne){this.line=b,this.rest=no(b),this.size=this.rest?rn(_t(this.rest))-ne+1:1,this.node=this.text=null,this.hidden=vr(a,b)}function gs(a,b,ne){for(var te=[],ue,De=b;De<ne;De=ue){var qe=new Fa(a.doc,or(a.doc,De),De);ue=De+qe.size,te.push(qe)}return te}var el=null;function tl(a){el?el.ops.push(a):a.ownsGroup=el={ops:[a],delayedCallbacks:[]}}function nl(a){var b=a.delayedCallbacks,ne=0;do{for(;ne<b.length;ne++)b[ne].call(null);for(var te=0;te<a.ops.length;te++){var ue=a.ops[te];if(ue.cursorActivityHandlers)for(;ue.cursorActivityCalled<ue.cursorActivityHandlers.length;)ue.cursorActivityHandlers[ue.cursorActivityCalled++].call(null,ue.cm)}}while(ne<b.length)}function gl(a,b){var ne=a.ownsGroup;if(ne)try{nl(ne)}finally{el=null,b(ne)}}var Au=null;function Xs(a,b){var ne=Wt(a,b);if(ne.length){var te=Array.prototype.slice.call(arguments,2),ue;el?ue=el.delayedCallbacks:Au?ue=Au:(ue=Au=[],setTimeout(Zl,0));for(var De=function(vt){ue.push(function(){return ne[vt].apply(null,te)})},qe=0;qe<ne.length;++qe)De(qe)}}function Zl(){var a=Au;Au=null;for(var b=0;b<a.length;++b)a[b]()}function Wl(a,b,ne,te){for(var ue=0;ue<b.changes.length;ue++){var De=b.changes[ue];De=="text"?hA(a,b):De=="gutter"?Ia(a,b,ne,te):De=="class"?pa(a,b):De=="widget"&&ma(a,b,te)}b.changes=null}function Iu(a){return a.node==a.text&&(a.node=ft("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),ze&&Se<8&&(a.node.style.zIndex=2)),a.node}function fl(a,b){var ne=b.bgClass?b.bgClass+" "+(b.line.bgClass||""):b.line.bgClass;if(ne&&(ne+=" CodeMirror-linebackground"),b.background)ne?b.background.className=ne:(b.background.parentNode.removeChild(b.background),b.background=null);else if(ne){var te=Iu(b);b.background=te.insertBefore(ft("div",null,ne),te.firstChild),a.display.input.setUneditable(b.background)}}function SA(a,b){var ne=a.display.externalMeasured;return ne&&ne.line==b.line?(a.display.externalMeasured=null,b.measure=ne.measure,ne.built):Wa(a,b)}function hA(a,b){var ne=b.text.className,te=SA(a,b);b.text==b.node&&(b.node=te.pre),b.text.parentNode.replaceChild(te.pre,b.text),b.text=te.pre,te.bgClass!=b.bgClass||te.textClass!=b.textClass?(b.bgClass=te.bgClass,b.textClass=te.textClass,pa(a,b)):ne&&(b.text.className=ne)}function pa(a,b){fl(a,b),b.line.wrapClass?Iu(b).className=b.line.wrapClass:b.node!=b.text&&(b.node.className="");var ne=b.textClass?b.textClass+" "+(b.line.textClass||""):b.line.textClass;b.text.className=ne||""}function Ia(a,b,ne,te){if(b.gutter&&(b.node.removeChild(b.gutter),b.gutter=null),b.gutterBackground&&(b.node.removeChild(b.gutterBackground),b.gutterBackground=null),b.line.gutterClass){var ue=Iu(b);b.gutterBackground=ft("div",null,"CodeMirror-gutter-background "+b.line.gutterClass,"left: "+(a.options.fixedGutter?te.fixedPos:-te.gutterTotalWidth)+"px; width: "+te.gutterTotalWidth+"px"),a.display.input.setUneditable(b.gutterBackground),ue.insertBefore(b.gutterBackground,b.text)}var De=b.line.gutterMarkers;if(a.options.lineNumbers||De){var qe=Iu(b),vt=b.gutter=ft("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?te.fixedPos:-te.gutterTotalWidth)+"px");if(a.display.input.setUneditable(vt),qe.insertBefore(vt,b.text),b.line.gutterClass&&(vt.className+=" "+b.line.gutterClass),a.options.lineNumbers&&(!De||!De["CodeMirror-linenumbers"])&&(b.lineNumber=vt.appendChild(ft("div",en(a.options,ne),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+te.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),De)for(var St=0;St<a.display.gutterSpecs.length;++St){var Dt=a.display.gutterSpecs[St].className,Ln=De.hasOwnProperty(Dt)&&De[Dt];Ln&&vt.appendChild(ft("div",[Ln],"CodeMirror-gutter-elt","left: "+te.gutterLeft[Dt]+"px; width: "+te.gutterWidth[Dt]+"px"))}}}function ma(a,b,ne){b.alignable&&(b.alignable=null);for(var te=et("CodeMirror-linewidget"),ue=b.node.firstChild,De=void 0;ue;ue=De)De=ue.nextSibling,te.test(ue.className)&&b.node.removeChild(ue);qa(a,b,ne)}function ba(a,b,ne,te){var ue=SA(a,b);return b.text=b.node=ue.pre,ue.bgClass&&(b.bgClass=ue.bgClass),ue.textClass&&(b.textClass=ue.textClass),pa(a,b),Ia(a,b,ne,te),qa(a,b,te),b.node}function qa(a,b,ne){if(Va(a,b.line,b,ne,!0),b.rest)for(var te=0;te<b.rest.length;te++)Va(a,b.rest[te],b,ne,!1)}function Va(a,b,ne,te,ue){if(b.widgets)for(var De=Iu(ne),qe=0,vt=b.widgets;qe<vt.length;++qe){var St=vt[qe],Dt=ft("div",[St.node],"CodeMirror-linewidget"+(St.className?" "+St.className:""));St.handleMouseEvents||Dt.setAttribute("cm-ignore-events","true"),za(St,Dt,ne,te),a.display.input.setUneditable(Dt),ue&&St.above?De.insertBefore(Dt,ne.gutter||ne.text):De.appendChild(Dt),Xs(St,"redraw")}}function za(a,b,ne,te){if(a.noHScroll){(ne.alignable||(ne.alignable=[])).push(b);var ue=te.wrapperWidth;b.style.left=te.fixedPos+"px",a.coverGutter||(ue-=te.gutterTotalWidth,b.style.paddingLeft=te.gutterTotalWidth+"px"),b.style.width=ue+"px"}a.coverGutter&&(b.style.zIndex=5,b.style.position="relative",a.noHScroll||(b.style.marginLeft=-te.gutterTotalWidth+"px"))}function $l(a){if(a.height!=null)return a.height;var b=a.doc.cm;if(!b)return 0;if(!pt(document.body,a.node)){var ne="position: relative;";a.coverGutter&&(ne+="margin-left: -"+b.display.gutters.offsetWidth+"px;"),a.noHScroll&&(ne+="width: "+b.display.wrapper.clientWidth+"px;"),at(b.display.measure,ft("div",[a.node],null,ne))}return a.height=a.node.parentNode.offsetHeight}function cu(a,b){for(var ne=Gt(b);ne!=a.wrapper;ne=ne.parentNode)if(!ne||ne.nodeType==1&&ne.getAttribute("cm-ignore-events")=="true"||ne.parentNode==a.sizer&&ne!=a.mover)return!0}function Ui(a){return a.lineSpace.offsetTop}function ta(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function Ta(a){if(a.cachedPaddingH)return a.cachedPaddingH;var b=at(a.measure,ft("pre","x","CodeMirror-line-like")),ne=window.getComputedStyle?window.getComputedStyle(b):b.currentStyle,te={left:parseInt(ne.paddingLeft),right:parseInt(ne.paddingRight)};return!isNaN(te.left)&&!isNaN(te.right)&&(a.cachedPaddingH=te),te}function au(a){return Zt-a.display.nativeBarWidth}function Ml(a){return a.display.scroller.clientWidth-au(a)-a.display.barWidth}function ms(a){return a.display.scroller.clientHeight-au(a)-a.display.barHeight}function bu(a,b,ne){var te=a.options.lineWrapping,ue=te&&Ml(a);if(!b.measure.heights||te&&b.measure.width!=ue){var De=b.measure.heights=[];if(te){b.measure.width=ue;for(var qe=b.text.firstChild.getClientRects(),vt=0;vt<qe.length-1;vt++){var St=qe[vt],Dt=qe[vt+1];Math.abs(St.bottom-Dt.bottom)>2&&De.push((St.bottom+Dt.top)/2-ne.top)}}De.push(ne.bottom-ne.top)}}function ml(a,b,ne){if(a.line==b)return{map:a.measure.map,cache:a.measure.cache};for(var te=0;te<a.rest.length;te++)if(a.rest[te]==b)return{map:a.measure.maps[te],cache:a.measure.caches[te]};for(var ue=0;ue<a.rest.length;ue++)if(rn(a.rest[ue])>ne)return{map:a.measure.maps[ue],cache:a.measure.caches[ue],before:!0}}function Kc(a,b){b=Wr(b);var ne=rn(b),te=a.display.externalMeasured=new Fa(a.doc,b,ne);te.lineN=ne;var ue=te.built=Wa(a,te);return te.text=ue.pre,at(a.display.lineMeasure,ue.pre),te}function FA(a,b,ne,te){return $u(a,aa(a,b),ne,te)}function Cu(a,b){if(b>=a.display.viewFrom&&b<a.display.viewTo)return a.display.view[hc(a,b)];var ne=a.display.externalMeasured;if(ne&&b>=ne.lineN&&b<ne.lineN+ne.size)return ne}function aa(a,b){var ne=rn(b),te=Cu(a,ne);te&&!te.text?te=null:te&&te.changes&&(Wl(a,te,ne,nc(a)),a.curOp.forceUpdate=!0),te||(te=Kc(a,b));var ue=ml(te,b,ne);return{line:b,view:te,rect:null,map:ue.map,cache:ue.cache,before:ue.before,hasHeights:!1}}function $u(a,b,ne,te,ue){b.before&&(ne=-1);var De=ne+(te||""),qe;return b.cache.hasOwnProperty(De)?qe=b.cache[De]:(b.rect||(b.rect=b.view.text.getBoundingClientRect()),b.hasHeights||(bu(a,b.view,b.rect),b.hasHeights=!0),qe=tA(a,b,ne,te),qe.bogus||(b.cache[De]=qe)),{left:qe.left,right:qe.right,top:ue?qe.rtop:qe.top,bottom:ue?qe.rbottom:qe.bottom}}var dc={left:0,right:0,top:0,bottom:0};function ku(a,b,ne){for(var te,ue,De,qe,vt,St,Dt=0;Dt<a.length;Dt+=3)if(vt=a[Dt],St=a[Dt+1],b<vt?(ue=0,De=1,qe="left"):b<St?(ue=b-vt,De=ue+1):(Dt==a.length-3||b==St&&a[Dt+3]>b)&&(De=St-vt,ue=De-1,b>=St&&(qe="right")),ue!=null){if(te=a[Dt+2],vt==St&&ne==(te.insertLeft?"left":"right")&&(qe=ne),ne=="left"&&ue==0)for(;Dt&&a[Dt-2]==a[Dt-3]&&a[Dt-1].insertLeft;)te=a[(Dt-=3)+2],qe="left";if(ne=="right"&&ue==St-vt)for(;Dt<a.length-3&&a[Dt+3]==a[Dt+4]&&!a[Dt+5].insertLeft;)te=a[(Dt+=3)+2],qe="right";break}return{node:te,start:ue,end:De,collapse:qe,coverStart:vt,coverEnd:St}}function Ns(a,b){var ne=dc;if(b=="left")for(var te=0;te<a.length&&(ne=a[te]).left==ne.right;te++);else for(var ue=a.length-1;ue>=0&&(ne=a[ue]).left==ne.right;ue--);return ne}function tA(a,b,ne,te){var ue=ku(b.map,ne,te),De=ue.node,qe=ue.start,vt=ue.end,St=ue.collapse,Dt;if(De.nodeType==3){for(var Ln=0;Ln<4;Ln++){for(;qe&&$e(b.line.text.charAt(ue.coverStart+qe));)--qe;for(;ue.coverStart+vt<ue.coverEnd&&$e(b.line.text.charAt(ue.coverStart+vt));)++vt;if(ze&&Se<9&&qe==0&&vt==ue.coverEnd-ue.coverStart?Dt=De.parentNode.getBoundingClientRect():Dt=Ns(He(De,qe,vt).getClientRects(),te),Dt.left||Dt.right||qe==0)break;vt=qe,qe=qe-1,St="right"}ze&&Se<11&&(Dt=pA(a.display.measure,Dt))}else{qe>0&&(St=te="right");var Hn;a.options.lineWrapping&&(Hn=De.getClientRects()).length>1?Dt=Hn[te=="right"?Hn.length-1:0]:Dt=De.getBoundingClientRect()}if(ze&&Se<9&&!qe&&(!Dt||!Dt.left&&!Dt.right)){var Pr=De.parentNode.getClientRects()[0];Pr?Dt={left:Pr.left,right:Pr.left+tc(a.display),top:Pr.top,bottom:Pr.bottom}:Dt=dc}for(var xr=Dt.top-b.rect.top,xi=Dt.bottom-b.rect.top,Zi=(xr+xi)/2,lo=b.view.measure.heights,So=0;So<lo.length-1&&!(Zi<lo[So]);So++);var Ko=So?lo[So-1]:0,Fo=lo[So],Aa={left:(St=="right"?Dt.right:Dt.left)-b.rect.left,right:(St=="left"?Dt.left:Dt.right)-b.rect.left,top:Ko,bottom:Fo};return!Dt.left&&!Dt.right&&(Aa.bogus=!0),a.options.singleCursorHeightPerLine||(Aa.rtop=xr,Aa.rbottom=xi),Aa}function pA(a,b){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Vr(a))return b;var ne=screen.logicalXDPI/screen.deviceXDPI,te=screen.logicalYDPI/screen.deviceYDPI;return{left:b.left*ne,right:b.right*ne,top:b.top*te,bottom:b.bottom*te}}function PA(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var b=0;b<a.rest.length;b++)a.measure.caches[b]={}}function xl(a){a.display.externalMeasure=null,ut(a.display.lineMeasure);for(var b=0;b<a.display.view.length;b++)PA(a.display.view[b])}function Bl(a){xl(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function rl(){return Ce&&Te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Gl(){return Ce&&Te?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Vl(a){var b=0;if(a.widgets)for(var ne=0;ne<a.widgets.length;++ne)a.widgets[ne].above&&(b+=$l(a.widgets[ne]));return b}function Nc(a,b,ne,te,ue){if(!ue){var De=Vl(b);ne.top+=De,ne.bottom+=De}if(te=="line")return ne;te||(te="local");var qe=Ao(b);if(te=="local"?qe+=Ui(a.display):qe-=a.display.viewOffset,te=="page"||te=="window"){var vt=a.display.lineSpace.getBoundingClientRect();qe+=vt.top+(te=="window"?0:Gl());var St=vt.left+(te=="window"?0:rl());ne.left+=St,ne.right+=St}return ne.top+=qe,ne.bottom+=qe,ne}function td(a,b,ne){if(ne=="div")return b;var te=b.left,ue=b.top;if(ne=="page")te-=rl(),ue-=Gl();else if(ne=="local"||!ne){var De=a.display.sizer.getBoundingClientRect();te+=De.left,ue+=De.top}var qe=a.display.lineSpace.getBoundingClientRect();return{left:te-qe.left,top:ue-qe.top}}function Ul(a,b,ne,te,ue){return te||(te=or(a.doc,b.line)),Nc(a,te,FA(a,te,b.ch,ue),ne)}function Mu(a,b,ne,te,ue,De){te=te||or(a.doc,b.line),ue||(ue=aa(a,te));function qe(xi,Zi){var lo=$u(a,ue,xi,Zi?"right":"left",De);return Zi?lo.left=lo.right:lo.right=lo.left,Nc(a,te,lo,ne)}var vt=Ct(te,a.doc.direction),St=b.ch,Dt=b.sticky;if(St>=te.text.length?(St=te.text.length,Dt="before"):St<=0&&(St=0,Dt="after"),!vt)return qe(Dt=="before"?St-1:St,Dt=="before");function Ln(xi,Zi,lo){var So=vt[Zi],Ko=So.level==1;return qe(lo?xi-1:xi,Ko!=lo)}var Hn=Lt(vt,St,Dt),Pr=Et,xr=Ln(St,Hn,Dt=="before");return Pr!=null&&(xr.other=Ln(St,Pr,Dt!="before")),xr}function Pa(a,b){var ne=0;b=ur(a.doc,b),a.options.lineWrapping||(ne=tc(a.display)*b.ch);var te=or(a.doc,b.line),ue=Ao(te)+Ui(a.display);return{left:ne,right:ne,top:ue,bottom:ue+te.height}}function Ra(a,b,ne,te,ue){var De=Kt(a,b,ne);return De.xRel=ue,te&&(De.outside=te),De}function Ms(a,b,ne){var te=a.doc;if(ne+=a.display.viewOffset,ne<0)return Ra(te.first,0,null,-1,-1);var ue=fn(te,ne),De=te.first+te.size-1;if(ue>De)return Ra(te.first+te.size-1,or(te,De).text.length,null,1,1);b<0&&(b=0);for(var qe=or(te,ue);;){var vt=ZA(a,qe,ue,b,ne),St=Jr(qe,vt.ch+(vt.xRel>0||vt.outside>0?1:0));if(!St)return vt;var Dt=St.find(1);if(Dt.line==ue)return Dt;qe=or(te,ue=Dt.line)}}function nA(a,b,ne,te){te-=Vl(b);var ue=b.text.length,De=gt(function(qe){return $u(a,ne,qe-1).bottom<=te},ue,0);return ue=gt(function(qe){return $u(a,ne,qe).top>te},De,ue),{begin:De,end:ue}}function Xl(a,b,ne,te){ne||(ne=aa(a,b));var ue=Nc(a,b,$u(a,ne,te),"line").top;return nA(a,b,ne,ue)}function du(a,b,ne,te){return a.bottom<=ne?!1:a.top>ne?!0:(te?a.left:a.right)>b}function ZA(a,b,ne,te,ue){ue-=Ao(b);var De=aa(a,b),qe=Vl(b),vt=0,St=b.text.length,Dt=!0,Ln=Ct(b,a.doc.direction);if(Ln){var Hn=(a.options.lineWrapping?fc:gA)(a,b,ne,De,Ln,te,ue);Dt=Hn.level!=1,vt=Dt?Hn.from:Hn.to-1,St=Dt?Hn.to:Hn.from-1}var Pr=null,xr=null,xi=gt(function(_a){var xa=$u(a,De,_a);return xa.top+=qe,xa.bottom+=qe,du(xa,te,ue,!1)?(xa.top<=ue&&xa.left<=te&&(Pr=_a,xr=xa),!0):!1},vt,St),Zi,lo,So=!1;if(xr){var Ko=te-xr.left<xr.right-te,Fo=Ko==Dt;xi=Pr+(Fo?0:1),lo=Fo?"after":"before",Zi=Ko?xr.left:xr.right}else{!Dt&&(xi==St||xi==vt)&&xi++,lo=xi==0?"after":xi==b.text.length?"before":$u(a,De,xi-(Dt?1:0)).bottom+qe<=ue==Dt?"after":"before";var Aa=Mu(a,Kt(ne,xi,lo),"line",b,De);Zi=Aa.left,So=ue<Aa.top?-1:ue>=Aa.bottom?1:0}return xi=st(b.text,xi,1),Ra(ne,xi,lo,So,te-Zi)}function gA(a,b,ne,te,ue,De,qe){var vt=gt(function(Hn){var Pr=ue[Hn],xr=Pr.level!=1;return du(Mu(a,Kt(ne,xr?Pr.to:Pr.from,xr?"before":"after"),"line",b,te),De,qe,!0)},0,ue.length-1),St=ue[vt];if(vt>0){var Dt=St.level!=1,Ln=Mu(a,Kt(ne,Dt?St.from:St.to,Dt?"after":"before"),"line",b,te);du(Ln,De,qe,!0)&&Ln.top>qe&&(St=ue[vt-1])}return St}function fc(a,b,ne,te,ue,De,qe){var vt=nA(a,b,te,qe),St=vt.begin,Dt=vt.end;/\s/.test(b.text.charAt(Dt-1))&&Dt--;for(var Ln=null,Hn=null,Pr=0;Pr<ue.length;Pr++){var xr=ue[Pr];if(!(xr.from>=Dt||xr.to<=St)){var xi=xr.level!=1,Zi=$u(a,te,xi?Math.min(Dt,xr.to)-1:Math.max(St,xr.from)).right,lo=Zi<De?De-Zi+1e9:Zi-De;(!Ln||Hn>lo)&&(Ln=xr,Hn=lo)}}return Ln||(Ln=ue[ue.length-1]),Ln.from<St&&(Ln={from:St,to:Ln.to,level:Ln.level}),Ln.to>Dt&&(Ln={from:Ln.from,to:Dt,level:Ln.level}),Ln}var Yl;function mA(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(Yl==null){Yl=ft("pre",null,"CodeMirror-line-like");for(var b=0;b<49;++b)Yl.appendChild(document.createTextNode("x")),Yl.appendChild(ft("br"));Yl.appendChild(document.createTextNode("x"))}at(a.measure,Yl);var ne=Yl.offsetHeight/50;return ne>3&&(a.cachedTextHeight=ne),ut(a.measure),ne||1}function tc(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var b=ft("span","xxxxxxxxxx"),ne=ft("pre",[b],"CodeMirror-line-like");at(a.measure,ne);var te=b.getBoundingClientRect(),ue=(te.right-te.left)/10;return ue>2&&(a.cachedCharWidth=ue),ue||10}function nc(a){for(var b=a.display,ne={},te={},ue=b.gutters.clientLeft,De=b.gutters.firstChild,qe=0;De;De=De.nextSibling,++qe){var vt=a.display.gutterSpecs[qe].className;ne[vt]=De.offsetLeft+De.clientLeft+ue,te[vt]=De.clientWidth}return{fixedPos:Ed(b),gutterTotalWidth:b.gutters.offsetWidth,gutterLeft:ne,gutterWidth:te,wrapperWidth:b.wrapper.clientWidth}}function Ed(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Jf(a){var b=mA(a.display),ne=a.options.lineWrapping,te=ne&&Math.max(5,a.display.scroller.clientWidth/tc(a.display)-3);return function(ue){if(vr(a.doc,ue))return 0;var De=0;if(ue.widgets)for(var qe=0;qe<ue.widgets.length;qe++)ue.widgets[qe].height&&(De+=ue.widgets[qe].height);return ne?De+(Math.ceil(ue.text.length/te)||1)*b:De+b}}function nd(a){var b=a.doc,ne=Jf(a);b.iter(function(te){var ue=ne(te);ue!=te.height&&Yt(te,ue)})}function Oc(a,b,ne,te){var ue=a.display;if(!ne&&Gt(b).getAttribute("cm-not-content")=="true")return null;var De,qe,vt=ue.lineSpace.getBoundingClientRect();try{De=b.clientX-vt.left,qe=b.clientY-vt.top}catch(Hn){return null}var St=Ms(a,De,qe),Dt;if(te&&St.xRel>0&&(Dt=or(a.doc,St.line).text).length==St.ch){var Ln=We(Dt,Dt.length,a.options.tabSize)-Dt.length;St=Kt(St.line,Math.max(0,Math.round((De-Ta(a.display).left)/tc(a.display))-Ln))}return St}function hc(a,b){if(b>=a.display.viewTo||(b-=a.display.viewFrom,b<0))return null;for(var ne=a.display.view,te=0;te<ne.length;te++)if(b-=ne[te].size,b<0)return te}function Lu(a,b,ne,te){b==null&&(b=a.doc.first),ne==null&&(ne=a.doc.first+a.doc.size),te||(te=0);var ue=a.display;if(te&&ne<ue.viewTo&&(ue.updateLineNumbers==null||ue.updateLineNumbers>b)&&(ue.updateLineNumbers=b),a.curOp.viewChanged=!0,b>=ue.viewTo)wi&&Kr(a.doc,b)<ue.viewTo&&rc(a);else if(ne<=ue.viewFrom)wi&&ui(a.doc,ne+te)>ue.viewFrom?rc(a):(ue.viewFrom+=te,ue.viewTo+=te);else if(b<=ue.viewFrom&&ne>=ue.viewTo)rc(a);else if(b<=ue.viewFrom){var De=Sd(a,ne,ne+te,1);De?(ue.view=ue.view.slice(De.index),ue.viewFrom=De.lineN,ue.viewTo+=te):rc(a)}else if(ne>=ue.viewTo){var qe=Sd(a,b,b,-1);qe?(ue.view=ue.view.slice(0,qe.index),ue.viewTo=qe.lineN):rc(a)}else{var vt=Sd(a,b,b,-1),St=Sd(a,ne,ne+te,1);vt&&St?(ue.view=ue.view.slice(0,vt.index).concat(gs(a,vt.lineN,St.lineN)).concat(ue.view.slice(St.index)),ue.viewTo+=te):rc(a)}var Dt=ue.externalMeasured;Dt&&(ne<Dt.lineN?Dt.lineN+=te:b<Dt.lineN+Dt.size&&(ue.externalMeasured=null))}function Pc(a,b,ne){a.curOp.viewChanged=!0;var te=a.display,ue=a.display.externalMeasured;if(ue&&b>=ue.lineN&&b<ue.lineN+ue.size&&(te.externalMeasured=null),!(b<te.viewFrom||b>=te.viewTo)){var De=te.view[hc(a,b)];if(De.node!=null){var qe=De.changes||(De.changes=[]);ot(qe,ne)==-1&&qe.push(ne)}}}function rc(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Sd(a,b,ne,te){var ue=hc(a,b),De,qe=a.display.view;if(!wi||ne==a.doc.first+a.doc.size)return{index:ue,lineN:ne};for(var vt=a.display.viewFrom,St=0;St<ue;St++)vt+=qe[St].size;if(vt!=b){if(te>0){if(ue==qe.length-1)return null;De=vt+qe[ue].size-b,ue++}else De=vt-b;b+=De,ne+=De}for(;Kr(a.doc,ne)!=ne;){if(ue==(te<0?0:qe.length-1))return null;ne+=te*qe[ue-(te<0?1:0)].size,ue+=te}return{index:ue,lineN:ne}}function qf(a,b,ne){var te=a.display,ue=te.view;ue.length==0||b>=te.viewTo||ne<=te.viewFrom?(te.view=gs(a,b,ne),te.viewFrom=b):(te.viewFrom>b?te.view=gs(a,b,te.viewFrom).concat(te.view):te.viewFrom<b&&(te.view=te.view.slice(hc(a,b))),te.viewFrom=b,te.viewTo<ne?te.view=te.view.concat(gs(a,te.viewTo,ne)):te.viewTo>ne&&(te.view=te.view.slice(0,hc(a,ne)))),te.viewTo=ne}function Os(a){for(var b=a.display.view,ne=0,te=0;te<b.length;te++){var ue=b[te];!ue.hidden&&(!ue.node||ue.changes)&&++ne}return ne}function Gu(a){a.display.input.showSelection(a.display.input.prepareSelection())}function pc(a,b){b===void 0&&(b=!0);for(var ne=a.doc,te={},ue=te.cursors=document.createDocumentFragment(),De=te.selection=document.createDocumentFragment(),qe=0;qe<ne.sel.ranges.length;qe++)if(!(!b&&qe==ne.sel.primIndex)){var vt=ne.sel.ranges[qe];if(!(vt.from().line>=a.display.viewTo||vt.to().line<a.display.viewFrom)){var St=vt.empty();(St||a.options.showCursorWhenSelecting)&&_h(a,vt.head,ue),St||Th(a,vt,De)}}return te}function _h(a,b,ne){var te=Mu(a,b,"div",null,null,!a.options.singleCursorHeightPerLine),ue=ne.appendChild(ft("div","\xA0","CodeMirror-cursor"));if(ue.style.left=te.left+"px",ue.style.top=te.top+"px",ue.style.height=Math.max(0,te.bottom-te.top)*a.options.cursorHeight+"px",te.other){var De=ne.appendChild(ft("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));De.style.display="",De.style.left=te.other.left+"px",De.style.top=te.other.top+"px",De.style.height=(te.other.bottom-te.other.top)*.85+"px"}}function WA(a,b){return a.top-b.top||a.left-b.left}function Th(a,b,ne){var te=a.display,ue=a.doc,De=document.createDocumentFragment(),qe=Ta(a.display),vt=qe.left,St=Math.max(te.sizerWidth,Ml(a)-te.sizer.offsetLeft)-qe.right,Dt=ue.direction=="ltr";function Ln(Fo,Aa,_a,xa){Aa<0&&(Aa=0),Aa=Math.round(Aa),xa=Math.round(xa),De.appendChild(ft("div",null,"CodeMirror-selected","position: absolute; left: "+Fo+`px;
top: `+Aa+"px; width: "+(_a==null?St-Fo:_a)+`px;
height: `+(xa-Aa)+"px"))}function Hn(Fo,Aa,_a){var xa=or(ue,Fo),ja=xa.text.length,Il,zu;function eu(_u,wA){return Ul(a,Kt(Fo,_u),"div",xa,wA)}function yA(_u,wA,lA){var Eo=Xl(a,xa,null,_u),zl=wA=="ltr"==(lA=="after")?"left":"right",tu=lA=="after"?Eo.begin:Eo.end-(/\s/.test(xa.text.charAt(Eo.end-1))?2:1);return eu(tu,zl)[zl]}var Ju=Ct(xa,ue.direction);return mt(Ju,Aa||0,_a==null?ja:_a,function(_u,wA,lA,Eo){var zl=lA=="ltr",tu=eu(_u,zl?"left":"right"),nu=eu(wA-1,zl?"right":"left"),Of=Aa==null&&_u==0,zs=_a==null&&wA==ja,Bs=Eo==0,ic=!Ju||Eo==Ju.length-1;if(nu.top-tu.top<=3){var uA=(Dt?Of:zs)&&Bs,dh=(Dt?zs:Of)&&ic,ka=uA?vt:(zl?tu:nu).left,Sc=dh?St:(zl?nu:tu).right;Ln(ka,tu.top,Sc-ka,tu.bottom)}else{var dl,AA,kd,Pf;zl?(dl=Dt&&Of&&Bs?vt:tu.left,AA=Dt?St:yA(_u,lA,"before"),kd=Dt?vt:yA(wA,lA,"after"),Pf=Dt&&zs&&ic?St:nu.right):(dl=Dt?yA(_u,lA,"before"):vt,AA=!Dt&&Of&&Bs?St:tu.right,kd=!Dt&&zs&&ic?vt:nu.left,Pf=Dt?yA(wA,lA,"after"):St),Ln(dl,tu.top,AA-dl,tu.bottom),tu.bottom<nu.top&&Ln(vt,tu.bottom,null,nu.top),Ln(kd,nu.top,Pf-kd,nu.bottom)}(!Il||WA(tu,Il)<0)&&(Il=tu),WA(nu,Il)<0&&(Il=nu),(!zu||WA(tu,zu)<0)&&(zu=tu),WA(nu,zu)<0&&(zu=nu)}),{start:Il,end:zu}}var Pr=b.from(),xr=b.to();if(Pr.line==xr.line)Hn(Pr.line,Pr.ch,xr.ch);else{var xi=or(ue,Pr.line),Zi=or(ue,xr.line),lo=Wr(xi)==Wr(Zi),So=Hn(Pr.line,Pr.ch,lo?xi.text.length+1:null).end,Ko=Hn(xr.line,lo?0:null,xr.ch).start;lo&&(So.top<Ko.top-2?(Ln(So.right,So.top,null,So.bottom),Ln(vt,Ko.top,Ko.left,Ko.bottom)):Ln(So.right,So.top,Ko.left-So.right,So.bottom)),So.bottom<Ko.top&&Ln(vt,So.bottom,null,Ko.top)}ne.appendChild(De)}function Fd(a){if(a.state.focused){var b=a.display;clearInterval(b.blinker);var ne=!0;b.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?b.blinker=setInterval(function(){a.hasFocus()||$A(a),b.cursorDiv.style.visibility=(ne=!ne)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(b.cursorDiv.style.visibility="hidden")}}function eh(a){a.state.focused||(a.display.input.focus(),Cf(a))}function bf(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,$A(a))},100)}function Cf(a,b){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(ln(a,"focus",a,b),a.state.focused=!0,je(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Ue&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Fd(a))}function $A(a,b){a.state.delayingBlurEvent||(a.state.focused&&(ln(a,"blur",a,b),a.state.focused=!1,Ge(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function ya(a){for(var b=a.display,ne=b.lineDiv.offsetTop,te=0;te<b.view.length;te++){var ue=b.view[te],De=a.options.lineWrapping,qe=void 0,vt=0;if(!ue.hidden){if(ze&&Se<8){var St=ue.node.offsetTop+ue.node.offsetHeight;qe=St-ne,ne=St}else{var Dt=ue.node.getBoundingClientRect();qe=Dt.bottom-Dt.top,!De&&ue.text.firstChild&&(vt=ue.text.firstChild.getBoundingClientRect().right-Dt.left-1)}var Ln=ue.line.height-qe;if((Ln>.005||Ln<-.005)&&(Yt(ue.line,qe),Rl(ue.line),ue.rest))for(var Hn=0;Hn<ue.rest.length;Hn++)Rl(ue.rest[Hn]);if(vt>a.display.sizerWidth){var Pr=Math.ceil(vt/tc(a.display));Pr>a.display.maxLineLength&&(a.display.maxLineLength=Pr,a.display.maxLine=ue.line,a.display.maxLineChanged=!0)}}}}function Rl(a){if(a.widgets)for(var b=0;b<a.widgets.length;++b){var ne=a.widgets[b],te=ne.node.parentNode;te&&(ne.height=te.offsetHeight)}}function _A(a,b,ne){var te=ne&&ne.top!=null?Math.max(0,ne.top):a.scroller.scrollTop;te=Math.floor(te-Ui(a));var ue=ne&&ne.bottom!=null?ne.bottom:te+a.wrapper.clientHeight,De=fn(b,te),qe=fn(b,ue);if(ne&&ne.ensure){var vt=ne.ensure.from.line,St=ne.ensure.to.line;vt<De?(De=vt,qe=fn(b,Ao(or(b,vt))+a.wrapper.clientHeight)):Math.min(St,b.lastLine())>=qe&&(De=fn(b,Ao(or(b,St))-a.wrapper.clientHeight),qe=St)}return{from:De,to:Math.max(qe,De+1)}}function rd(a,b){if(!tn(a,"scrollCursorIntoView")){var ne=a.display,te=ne.sizer.getBoundingClientRect(),ue=null;if(b.top+te.top<0?ue=!0:b.bottom+te.top>(window.innerHeight||document.documentElement.clientHeight)&&(ue=!1),ue!=null&&!Me){var De=ft("div","\u200B",null,`position: absolute;
top: `+(b.top-ne.viewOffset-Ui(a.display))+`px;
height: `+(b.bottom-b.top+au(a)+ne.barHeight)+`px;
left: `+b.left+"px; width: "+Math.max(2,b.right-b.left)+"px;");a.display.lineSpace.appendChild(De),De.scrollIntoView(ue),a.display.lineSpace.removeChild(De)}}}function _c(a,b,ne,te){te==null&&(te=0);var ue;!a.options.lineWrapping&&b==ne&&(b=b.ch?Kt(b.line,b.sticky=="before"?b.ch-1:b.ch,"after"):b,ne=b.sticky=="before"?Kt(b.line,b.ch+1,"before"):b);for(var De=0;De<5;De++){var qe=!1,vt=Mu(a,b),St=!ne||ne==b?vt:Mu(a,ne);ue={left:Math.min(vt.left,St.left),top:Math.min(vt.top,St.top)-te,right:Math.max(vt.left,St.left),bottom:Math.max(vt.bottom,St.bottom)+te};var Dt=Tc(a,ue),Ln=a.doc.scrollTop,Hn=a.doc.scrollLeft;if(Dt.scrollTop!=null&&(rA(a,Dt.scrollTop),Math.abs(a.doc.scrollTop-Ln)>1&&(qe=!0)),Dt.scrollLeft!=null&&(mc(a,Dt.scrollLeft),Math.abs(a.doc.scrollLeft-Hn)>1&&(qe=!0)),!qe)break}return ue}function Kp(a,b){var ne=Tc(a,b);ne.scrollTop!=null&&rA(a,ne.scrollTop),ne.scrollLeft!=null&&mc(a,ne.scrollLeft)}function Tc(a,b){var ne=a.display,te=mA(a.display);b.top<0&&(b.top=0);var ue=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:ne.scroller.scrollTop,De=ms(a),qe={};b.bottom-b.top>De&&(b.bottom=b.top+De);var vt=a.doc.height+ta(ne),St=b.top<te,Dt=b.bottom>vt-te;if(b.top<ue)qe.scrollTop=St?0:b.top;else if(b.bottom>ue+De){var Ln=Math.min(b.top,(Dt?vt:b.bottom)-De);Ln!=ue&&(qe.scrollTop=Ln)}var Hn=a.options.fixedGutter?0:ne.gutters.offsetWidth,Pr=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:ne.scroller.scrollLeft-Hn,xr=Ml(a)-ne.gutters.offsetWidth,xi=b.right-b.left>xr;return xi&&(b.right=b.left+xr),b.left<10?qe.scrollLeft=0:b.left<Pr?qe.scrollLeft=Math.max(0,b.left+Hn-(xi?0:10)):b.right>xr+Pr-3&&(qe.scrollLeft=b.right+(xi?0:10)-xr),qe}function th(a,b){b!=null&&(gc(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+b)}function TA(a){gc(a);var b=a.getCursor();a.curOp.scrollToPos={from:b,to:b,margin:a.options.cursorScrollMargin}}function id(a,b,ne){(b!=null||ne!=null)&&gc(a),b!=null&&(a.curOp.scrollLeft=b),ne!=null&&(a.curOp.scrollTop=ne)}function Zp(a,b){gc(a),a.curOp.scrollToPos=b}function gc(a){var b=a.curOp.scrollToPos;if(b){a.curOp.scrollToPos=null;var ne=Pa(a,b.from),te=Pa(a,b.to);IA(a,ne,te,b.margin)}}function IA(a,b,ne,te){var ue=Tc(a,{left:Math.min(b.left,ne.left),top:Math.min(b.top,ne.top)-te,right:Math.max(b.right,ne.right),bottom:Math.max(b.bottom,ne.bottom)+te});id(a,ue.scrollLeft,ue.scrollTop)}function rA(a,b){Math.abs(a.doc.scrollTop-b)<2||(x||Ld(a,{top:b}),Hs(a,b,!0),x&&Ld(a),sd(a,100))}function Hs(a,b,ne){b=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,b)),!(a.display.scroller.scrollTop==b&&!ne)&&(a.doc.scrollTop=b,a.display.scrollbars.setScrollTop(b),a.display.scroller.scrollTop!=b&&(a.display.scroller.scrollTop=b))}function mc(a,b,ne,te){b=Math.max(0,Math.min(b,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((ne?b==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-b)<2)&&!te)&&(a.doc.scrollLeft=b,Vt(a),a.display.scroller.scrollLeft!=b&&(a.display.scroller.scrollLeft=b),a.display.scrollbars.setScrollLeft(b))}function od(a){var b=a.display,ne=b.gutters.offsetWidth,te=Math.round(a.doc.height+ta(a.display));return{clientHeight:b.scroller.clientHeight,viewHeight:b.wrapper.clientHeight,scrollWidth:b.scroller.scrollWidth,clientWidth:b.scroller.clientWidth,viewWidth:b.wrapper.clientWidth,barLeft:a.options.fixedGutter?ne:0,docHeight:te,scrollHeight:te+au(a)+b.barHeight,nativeBarWidth:b.nativeBarWidth,gutterWidth:ne}}var ad=function(a,b,ne){this.cm=ne;var te=this.vert=ft("div",[ft("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ue=this.horiz=ft("div",[ft("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");te.tabIndex=ue.tabIndex=-1,a(te),a(ue),$t(te,"scroll",function(){te.clientHeight&&b(te.scrollTop,"vertical")}),$t(ue,"scroll",function(){ue.clientWidth&&b(ue.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ze&&Se<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ad.prototype.update=function(a){var b=a.scrollWidth>a.clientWidth+1,ne=a.scrollHeight>a.clientHeight+1,te=a.nativeBarWidth;if(ne){this.vert.style.display="block",this.vert.style.bottom=b?te+"px":"0";var ue=a.viewHeight-(b?te:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+ue)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(b){this.horiz.style.display="block",this.horiz.style.right=ne?te+"px":"0",this.horiz.style.left=a.barLeft+"px";var De=a.viewWidth-a.barLeft-(ne?te:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+De)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(te==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ne?te:0,bottom:b?te:0}},ad.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ad.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ad.prototype.zeroWidthHack=function(){var a=xe&&!ve?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new _e,this.disableVert=new _e},ad.prototype.enableZeroWidthBar=function(a,b,ne){a.style.pointerEvents="auto";function te(){var ue=a.getBoundingClientRect(),De=ne=="vert"?document.elementFromPoint(ue.right-1,(ue.top+ue.bottom)/2):document.elementFromPoint((ue.right+ue.left)/2,ue.bottom-1);De!=a?a.style.pointerEvents="none":b.set(1e3,te)}b.set(1e3,te)},ad.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var vc=function(){};vc.prototype.update=function(){return{bottom:0,right:0}},vc.prototype.setScrollLeft=function(){},vc.prototype.setScrollTop=function(){},vc.prototype.clear=function(){};function kc(a,b){b||(b=od(a));var ne=a.display.barWidth,te=a.display.barHeight;xf(a,b);for(var ue=0;ue<4&&ne!=a.display.barWidth||te!=a.display.barHeight;ue++)ne!=a.display.barWidth&&a.options.lineWrapping&&ya(a),xf(a,od(a)),ne=a.display.barWidth,te=a.display.barHeight}function xf(a,b){var ne=a.display,te=ne.scrollbars.update(b);ne.sizer.style.paddingRight=(ne.barWidth=te.right)+"px",ne.sizer.style.paddingBottom=(ne.barHeight=te.bottom)+"px",ne.heightForcer.style.borderBottom=te.bottom+"px solid transparent",te.right&&te.bottom?(ne.scrollbarFiller.style.display="block",ne.scrollbarFiller.style.height=te.bottom+"px",ne.scrollbarFiller.style.width=te.right+"px"):ne.scrollbarFiller.style.display="",te.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(ne.gutterFiller.style.display="block",ne.gutterFiller.style.height=te.bottom+"px",ne.gutterFiller.style.width=b.gutterWidth+"px"):ne.gutterFiller.style.display=""}var Id={native:ad,null:vc};function kh(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Ge(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Id[a.options.scrollbarStyle](function(b){a.display.wrapper.insertBefore(b,a.display.scrollbarFiller),$t(b,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),b.setAttribute("cm-not-content","true")},function(b,ne){ne=="horizontal"?mc(a,b):rA(a,b)},a),a.display.scrollbars.addClass&&je(a.display.wrapper,a.display.scrollbars.addClass)}var Wp=0;function iA(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Wp},tl(a.curOp)}function yc(a){var b=a.curOp;b&&gl(b,function(ne){for(var te=0;te<ne.ops.length;te++)ne.ops[te].cm.curOp=null;up(ne)})}function up(a){for(var b=a.ops,ne=0;ne<b.length;ne++)$p(b[ne]);for(var te=0;te<b.length;te++)Vd(b[te]);for(var ue=0;ue<b.length;ue++)Ap(b[ue]);for(var De=0;De<b.length;De++)Xd(b[De]);for(var qe=0;qe<b.length;qe++)Gp(b[qe])}function $p(a){var b=a.cm,ne=b.display;cp(b),a.updateMaxLine&&Do(b),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<ne.viewFrom||a.scrollToPos.to.line>=ne.viewTo)||ne.maxLineChanged&&b.options.lineWrapping,a.update=a.mustUpdate&&new Bf(b,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Vd(a){a.updatedDisplay=a.mustUpdate&&nh(a.cm,a.update)}function Ap(a){var b=a.cm,ne=b.display;a.updatedDisplay&&ya(b),a.barMeasure=od(b),ne.maxLineChanged&&!b.options.lineWrapping&&(a.adjustWidthTo=FA(b,ne.maxLine,ne.maxLine.text.length).left+3,b.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(ne.scroller.clientWidth,ne.sizer.offsetLeft+a.adjustWidthTo+au(b)+b.display.barWidth),a.maxScrollLeft=Math.max(0,ne.sizer.offsetLeft+a.adjustWidthTo-Ml(b))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=ne.input.prepareSelection())}function Xd(a){var b=a.cm;a.adjustWidthTo!=null&&(b.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<b.doc.scrollLeft&&mc(b,Math.min(b.display.scroller.scrollLeft,a.maxScrollLeft),!0),b.display.maxLineChanged=!1);var ne=a.focus&&a.focus==Ne();a.preparedSelection&&b.display.input.showSelection(a.preparedSelection,ne),(a.updatedDisplay||a.startHeight!=b.doc.height)&&kc(b,a.barMeasure),a.updatedDisplay&&yt(b,a.barMeasure),a.selectionChanged&&Fd(b),b.state.focused&&a.updateInput&&b.display.input.reset(a.typing),ne&&eh(a.cm)}function Gp(a){var b=a.cm,ne=b.display,te=b.doc;if(a.updatedDisplay&&wc(b,a.update),ne.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(ne.wheelStartX=ne.wheelStartY=null),a.scrollTop!=null&&Hs(b,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&mc(b,a.scrollLeft,!0,!0),a.scrollToPos){var ue=_c(b,ur(te,a.scrollToPos.from),ur(te,a.scrollToPos.to),a.scrollToPos.margin);rd(b,ue)}var De=a.maybeHiddenMarkers,qe=a.maybeUnhiddenMarkers;if(De)for(var vt=0;vt<De.length;++vt)De[vt].lines.length||ln(De[vt],"hide");if(qe)for(var St=0;St<qe.length;++St)qe[St].lines.length&&ln(qe[St],"unhide");ne.wrapper.offsetHeight&&(te.scrollTop=b.display.scroller.scrollTop),a.changeObjs&&ln(b,"changes",b,a.changeObjs),a.update&&a.update.finish()}function oA(a,b){if(a.curOp)return b();iA(a);try{return b()}finally{yc(a)}}function Du(a,b){return function(){if(a.curOp)return b.apply(a,arguments);iA(a);try{return b.apply(a,arguments)}finally{yc(a)}}}function aA(a){return function(){if(this.curOp)return a.apply(this,arguments);iA(this);try{return a.apply(this,arguments)}finally{yc(this)}}}function Nu(a){return function(){var b=this.cm;if(!b||b.curOp)return a.apply(this,arguments);iA(b);try{return a.apply(this,arguments)}finally{yc(b)}}}function sd(a,b){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(b,ht(Yd,a))}function Yd(a){var b=a.doc;if(!(b.highlightFrontier>=a.display.viewTo)){var ne=+new Date+a.options.workTime,te=Kn(a,b.highlightFrontier),ue=[];b.iter(te.line,Math.min(b.first+b.size,a.display.viewTo+500),function(De){if(te.line>=a.display.viewFrom){var qe=De.styles,vt=De.text.length>a.options.maxHighlightLength?oi(b.mode,te.state):null,St=Ar(a,De,te,!0);vt&&(te.state=vt),De.styles=St.styles;var Dt=De.styleClasses,Ln=St.classes;Ln?De.styleClasses=Ln:Dt&&(De.styleClasses=null);for(var Hn=!qe||qe.length!=De.styles.length||Dt!=Ln&&(!Dt||!Ln||Dt.bgClass!=Ln.bgClass||Dt.textClass!=Ln.textClass),Pr=0;!Hn&&Pr<qe.length;++Pr)Hn=qe[Pr]!=De.styles[Pr];Hn&&ue.push(te.line),De.stateAfter=te.save(),te.nextLine()}else De.text.length<=a.options.maxHighlightLength&&vn(a,De.text,te),De.stateAfter=te.line%5==0?te.save():null,te.nextLine();if(+new Date>ne)return sd(a,a.options.workDelay),!0}),b.highlightFrontier=te.line,b.modeFrontier=Math.max(b.modeFrontier,te.line),ue.length&&oA(a,function(){for(var De=0;De<ue.length;De++)Pc(a,ue[De],"text")})}}var Bf=function(a,b,ne){var te=a.display;this.viewport=b,this.visible=_A(te,a.doc,b),this.editorIsHidden=!te.wrapper.offsetWidth,this.wrapperHeight=te.wrapper.clientHeight,this.wrapperWidth=te.wrapper.clientWidth,this.oldDisplayWidth=Ml(a),this.force=ne,this.dims=nc(a),this.events=[]};Bf.prototype.signal=function(a,b){En(a,b)&&this.events.push(arguments)},Bf.prototype.finish=function(){for(var a=0;a<this.events.length;a++)ln.apply(null,this.events[a])};function cp(a){var b=a.display;!b.scrollbarsClipped&&b.scroller.offsetWidth&&(b.nativeBarWidth=b.scroller.offsetWidth-b.scroller.clientWidth,b.heightForcer.style.height=au(a)+"px",b.sizer.style.marginBottom=-b.nativeBarWidth+"px",b.sizer.style.borderRightWidth=au(a)+"px",b.scrollbarsClipped=!0)}function dp(a){if(a.hasFocus())return null;var b=Ne();if(!b||!pt(a.display.lineDiv,b))return null;var ne={activeElt:b};if(window.getSelection){var te=window.getSelection();te.anchorNode&&te.extend&&pt(a.display.lineDiv,te.anchorNode)&&(ne.anchorNode=te.anchorNode,ne.anchorOffset=te.anchorOffset,ne.focusNode=te.focusNode,ne.focusOffset=te.focusOffset)}return ne}function fp(a){if(!(!a||!a.activeElt||a.activeElt==Ne())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&pt(document.body,a.anchorNode)&&pt(document.body,a.focusNode))){var b=window.getSelection(),ne=document.createRange();ne.setEnd(a.anchorNode,a.anchorOffset),ne.collapse(!1),b.removeAllRanges(),b.addRange(ne),b.extend(a.focusNode,a.focusOffset)}}function nh(a,b){var ne=a.display,te=a.doc;if(b.editorIsHidden)return rc(a),!1;if(!b.force&&b.visible.from>=ne.viewFrom&&b.visible.to<=ne.viewTo&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo)&&ne.renderedView==ne.view&&Os(a)==0)return!1;cn(a)&&(rc(a),b.dims=nc(a));var ue=te.first+te.size,De=Math.max(b.visible.from-a.options.viewportMargin,te.first),qe=Math.min(ue,b.visible.to+a.options.viewportMargin);ne.viewFrom<De&&De-ne.viewFrom<20&&(De=Math.max(te.first,ne.viewFrom)),ne.viewTo>qe&&ne.viewTo-qe<20&&(qe=Math.min(ue,ne.viewTo)),wi&&(De=Kr(a.doc,De),qe=ui(a.doc,qe));var vt=De!=ne.viewFrom||qe!=ne.viewTo||ne.lastWrapHeight!=b.wrapperHeight||ne.lastWrapWidth!=b.wrapperWidth;qf(a,De,qe),ne.viewOffset=Ao(or(a.doc,ne.viewFrom)),a.display.mover.style.top=ne.viewOffset+"px";var St=Os(a);if(!vt&&St==0&&!b.force&&ne.renderedView==ne.view&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo))return!1;var Dt=dp(a);return St>4&&(ne.lineDiv.style.display="none"),hp(a,ne.updateLineNumbers,b.dims),St>4&&(ne.lineDiv.style.display=""),ne.renderedView=ne.view,fp(Dt),ut(ne.cursorDiv),ut(ne.selectionDiv),ne.gutters.style.height=ne.sizer.style.minHeight=0,vt&&(ne.lastWrapHeight=b.wrapperHeight,ne.lastWrapWidth=b.wrapperWidth,sd(a,400)),ne.updateLineNumbers=null,!0}function wc(a,b){for(var ne=b.viewport,te=!0;;te=!1){if(!te||!a.options.lineWrapping||b.oldDisplayWidth==Ml(a)){if(ne&&ne.top!=null&&(ne={top:Math.min(a.doc.height+ta(a.display)-ms(a),ne.top)}),b.visible=_A(a.display,a.doc,ne),b.visible.from>=a.display.viewFrom&&b.visible.to<=a.display.viewTo)break}else te&&(b.visible=_A(a.display,a.doc,ne));if(!nh(a,b))break;ya(a);var ue=od(a);Gu(a),kc(a,ue),yt(a,ue),b.force=!1}b.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(b.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function Ld(a,b){var ne=new Bf(a,b);if(nh(a,ne)){ya(a),wc(a,ne);var te=od(a);Gu(a),kc(a,te),yt(a,te),ne.finish()}}function hp(a,b,ne){var te=a.display,ue=a.options.lineNumbers,De=te.lineDiv,qe=De.firstChild;function vt(xi){var Zi=xi.nextSibling;return Ue&&xe&&a.display.currentWheelTarget==xi?xi.style.display="none":xi.parentNode.removeChild(xi),Zi}for(var St=te.view,Dt=te.viewFrom,Ln=0;Ln<St.length;Ln++){var Hn=St[Ln];if(!Hn.hidden)if(!Hn.node||Hn.node.parentNode!=De){var Pr=ba(a,Hn,Dt,ne);De.insertBefore(Pr,qe)}else{for(;qe!=Hn.node;)qe=vt(qe);var xr=ue&&b!=null&&b<=Dt&&Hn.lineNumber;Hn.changes&&(ot(Hn.changes,"gutter")>-1&&(xr=!1),Wl(a,Hn,Dt,ne)),xr&&(ut(Hn.lineNumber),Hn.lineNumber.appendChild(document.createTextNode(en(a.options,Dt)))),qe=Hn.node.nextSibling}Dt+=Hn.size}for(;qe;)qe=vt(qe)}function wt(a){var b=a.gutters.offsetWidth;a.sizer.style.marginLeft=b+"px"}function yt(a,b){a.display.sizer.style.minHeight=b.docHeight+"px",a.display.heightForcer.style.top=b.docHeight+"px",a.display.gutters.style.height=b.docHeight+a.display.barHeight+au(a)+"px"}function Vt(a){var b=a.display,ne=b.view;if(!(!b.alignWidgets&&(!b.gutters.firstChild||!a.options.fixedGutter))){for(var te=Ed(b)-b.scroller.scrollLeft+a.doc.scrollLeft,ue=b.gutters.offsetWidth,De=te+"px",qe=0;qe<ne.length;qe++)if(!ne[qe].hidden){a.options.fixedGutter&&(ne[qe].gutter&&(ne[qe].gutter.style.left=De),ne[qe].gutterBackground&&(ne[qe].gutterBackground.style.left=De));var vt=ne[qe].alignable;if(vt)for(var St=0;St<vt.length;St++)vt[St].style.left=De}a.options.fixedGutter&&(b.gutters.style.left=te+ue+"px")}}function cn(a){if(!a.options.lineNumbers)return!1;var b=a.doc,ne=en(a.options,b.first+b.size-1),te=a.display;if(ne.length!=te.lineNumChars){var ue=te.measure.appendChild(ft("div",[ft("div",ne)],"CodeMirror-linenumber CodeMirror-gutter-elt")),De=ue.firstChild.offsetWidth,qe=ue.offsetWidth-De;return te.lineGutter.style.width="",te.lineNumInnerWidth=Math.max(De,te.lineGutter.offsetWidth-qe)+1,te.lineNumWidth=te.lineNumInnerWidth+qe,te.lineNumChars=te.lineNumInnerWidth?ne.length:-1,te.lineGutter.style.width=te.lineNumWidth+"px",wt(a.display),!0}return!1}function Fn(a,b){for(var ne=[],te=!1,ue=0;ue<a.length;ue++){var De=a[ue],qe=null;if(typeof De!="string"&&(qe=De.style,De=De.className),De=="CodeMirror-linenumbers")if(b)te=!0;else continue;ne.push({className:De,style:qe})}return b&&!te&&ne.push({className:"CodeMirror-linenumbers",style:null}),ne}function kn(a){var b=a.gutters,ne=a.gutterSpecs;ut(b),a.lineGutter=null;for(var te=0;te<ne.length;++te){var ue=ne[te],De=ue.className,qe=ue.style,vt=b.appendChild(ft("div",null,"CodeMirror-gutter "+De));qe&&(vt.style.cssText=qe),De=="CodeMirror-linenumbers"&&(a.lineGutter=vt,vt.style.width=(a.lineNumWidth||1)+"px")}b.style.display=ne.length?"":"none",wt(a)}function ar(a){kn(a.display),Lu(a),Vt(a)}function qn(a,b,ne,te){var ue=this;this.input=ne,ue.scrollbarFiller=ft("div",null,"CodeMirror-scrollbar-filler"),ue.scrollbarFiller.setAttribute("cm-not-content","true"),ue.gutterFiller=ft("div",null,"CodeMirror-gutter-filler"),ue.gutterFiller.setAttribute("cm-not-content","true"),ue.lineDiv=bt("div",null,"CodeMirror-code"),ue.selectionDiv=ft("div",null,null,"position: relative; z-index: 1"),ue.cursorDiv=ft("div",null,"CodeMirror-cursors"),ue.measure=ft("div",null,"CodeMirror-measure"),ue.lineMeasure=ft("div",null,"CodeMirror-measure"),ue.lineSpace=bt("div",[ue.measure,ue.lineMeasure,ue.selectionDiv,ue.cursorDiv,ue.lineDiv],null,"position: relative; outline: none");var De=bt("div",[ue.lineSpace],"CodeMirror-lines");ue.mover=ft("div",[De],null,"position: relative"),ue.sizer=ft("div",[ue.mover],"CodeMirror-sizer"),ue.sizerWidth=null,ue.heightForcer=ft("div",null,null,"position: absolute; height: "+Zt+"px; width: 1px;"),ue.gutters=ft("div",null,"CodeMirror-gutters"),ue.lineGutter=null,ue.scroller=ft("div",[ue.sizer,ue.heightForcer,ue.gutters],"CodeMirror-scroll"),ue.scroller.setAttribute("tabIndex","-1"),ue.wrapper=ft("div",[ue.scrollbarFiller,ue.gutterFiller,ue.scroller],"CodeMirror"),ze&&Se<8&&(ue.gutters.style.zIndex=-1,ue.scroller.style.paddingRight=0),!Ue&&!(x&&ye)&&(ue.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(ue.wrapper):a(ue.wrapper)),ue.viewFrom=ue.viewTo=b.first,ue.reportedViewFrom=ue.reportedViewTo=b.first,ue.view=[],ue.renderedView=null,ue.externalMeasured=null,ue.viewOffset=0,ue.lastWrapHeight=ue.lastWrapWidth=0,ue.updateLineNumbers=null,ue.nativeBarWidth=ue.barHeight=ue.barWidth=0,ue.scrollbarsClipped=!1,ue.lineNumWidth=ue.lineNumInnerWidth=ue.lineNumChars=null,ue.alignWidgets=!1,ue.cachedCharWidth=ue.cachedTextHeight=ue.cachedPaddingH=null,ue.maxLine=null,ue.maxLineLength=0,ue.maxLineChanged=!1,ue.wheelDX=ue.wheelDY=ue.wheelStartX=ue.wheelStartY=null,ue.shift=!1,ue.selForContextMenu=null,ue.activeTouch=null,ue.gutterSpecs=Fn(te.gutters,te.lineNumbers),kn(ue),ne.init(ue)}var wr=0,dr=null;ze?dr=-.53:x?dr=15:Ce?dr=-.7:Oe&&(dr=-1/3);function di(a){var b=a.wheelDeltaX,ne=a.wheelDeltaY;return b==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(b=a.detail),ne==null&&a.detail&&a.axis==a.VERTICAL_AXIS?ne=a.detail:ne==null&&(ne=a.wheelDelta),{x:b,y:ne}}function Rr(a){var b=di(a);return b.x*=dr,b.y*=dr,b}function jr(a,b){var ne=di(b),te=ne.x,ue=ne.y,De=a.display,qe=De.scroller,vt=qe.scrollWidth>qe.clientWidth,St=qe.scrollHeight>qe.clientHeight;if(te&&vt||ue&&St){if(ue&&xe&&Ue){e:for(var Dt=b.target,Ln=De.view;Dt!=qe;Dt=Dt.parentNode)for(var Hn=0;Hn<Ln.length;Hn++)if(Ln[Hn].node==Dt){a.display.currentWheelTarget=Dt;break e}}if(te&&!x&&!oe&&dr!=null){ue&&St&&rA(a,Math.max(0,qe.scrollTop+ue*dr)),mc(a,Math.max(0,qe.scrollLeft+te*dr)),(!ue||ue&&St)&&un(b),De.wheelStartX=null;return}if(ue&&dr!=null){var Pr=ue*dr,xr=a.doc.scrollTop,xi=xr+De.wrapper.clientHeight;Pr<0?xr=Math.max(0,xr+Pr-50):xi=Math.min(a.doc.height,xi+Pr+50),Ld(a,{top:xr,bottom:xi})}wr<20&&(De.wheelStartX==null?(De.wheelStartX=qe.scrollLeft,De.wheelStartY=qe.scrollTop,De.wheelDX=te,De.wheelDY=ue,setTimeout(function(){if(De.wheelStartX!=null){var Zi=qe.scrollLeft-De.wheelStartX,lo=qe.scrollTop-De.wheelStartY,So=lo&&De.wheelDY&&lo/De.wheelDY||Zi&&De.wheelDX&&Zi/De.wheelDX;De.wheelStartX=De.wheelStartY=null,So&&(dr=(dr*wr+So)/(wr+1),++wr)}},200)):(De.wheelDX+=te,De.wheelDY+=ue))}}var Dr=function(a,b){this.ranges=a,this.primIndex=b};Dr.prototype.primary=function(){return this.ranges[this.primIndex]},Dr.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var b=0;b<this.ranges.length;b++){var ne=this.ranges[b],te=a.ranges[b];if(!On(ne.anchor,te.anchor)||!On(ne.head,te.head))return!1}return!0},Dr.prototype.deepCopy=function(){for(var a=[],b=0;b<this.ranges.length;b++)a[b]=new Fr(Nr(this.ranges[b].anchor),Nr(this.ranges[b].head));return new Dr(a,this.primIndex)},Dr.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},Dr.prototype.contains=function(a,b){b||(b=a);for(var ne=0;ne<this.ranges.length;ne++){var te=this.ranges[ne];if(gn(b,te.from())>=0&&gn(a,te.to())<=0)return ne}return-1};var Fr=function(a,b){this.anchor=a,this.head=b};Fr.prototype.from=function(){return hi(this.anchor,this.head)},Fr.prototype.to=function(){return Yr(this.anchor,this.head)},Fr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function $i(a,b,ne){var te=a&&a.options.selectionsMayTouch,ue=b[ne];b.sort(function(Pr,xr){return gn(Pr.from(),xr.from())}),ne=ot(b,ue);for(var De=1;De<b.length;De++){var qe=b[De],vt=b[De-1],St=gn(vt.to(),qe.from());if(te&&!qe.empty()?St>0:St>=0){var Dt=hi(vt.from(),qe.from()),Ln=Yr(vt.to(),qe.to()),Hn=vt.empty()?qe.from()==qe.head:vt.from()==vt.head;De<=ne&&--ne,b.splice(--De,2,new Fr(Hn?Ln:Dt,Hn?Dt:Ln))}}return new Dr(b,ne)}function bi(a,b){return new Dr([new Fr(a,b||a)],0)}function qi(a){return a.text?Kt(a.from.line+a.text.length-1,_t(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function ao(a,b){if(gn(a,b.from)<0)return a;if(gn(a,b.to)<=0)return qi(b);var ne=a.line+b.text.length-(b.to.line-b.from.line)-1,te=a.ch;return a.line==b.to.line&&(te+=qi(b).ch-b.to.ch),Kt(ne,te)}function Ji(a,b){for(var ne=[],te=0;te<a.sel.ranges.length;te++){var ue=a.sel.ranges[te];ne.push(new Fr(ao(ue.anchor,b),ao(ue.head,b)))}return $i(a.cm,ne,a.sel.primIndex)}function fo(a,b,ne){return a.line==b.line?Kt(ne.line,a.ch-b.ch+ne.ch):Kt(ne.line+(a.line-b.line),a.ch)}function Bo(a,b,ne){for(var te=[],ue=Kt(a.first,0),De=ue,qe=0;qe<b.length;qe++){var vt=b[qe],St=fo(vt.from,ue,De),Dt=fo(qi(vt),ue,De);if(ue=vt.to,De=Dt,ne=="around"){var Ln=a.sel.ranges[qe],Hn=gn(Ln.head,Ln.anchor)<0;te[qe]=new Fr(Hn?Dt:St,Hn?St:Dt)}else te[qe]=new Fr(St,St)}return new Dr(te,a.sel.primIndex)}function jo(a){a.doc.mode=Qr(a.options,a.doc.modeOption),_o(a)}function _o(a){a.doc.iter(function(b){b.stateAfter&&(b.stateAfter=null),b.styles&&(b.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,sd(a,100),a.state.modeGen++,a.curOp&&Lu(a)}function La(a,b){return b.from.ch==0&&b.to.ch==0&&_t(b.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function sa(a,b,ne,te){function ue(Ko){return ne?ne[Ko]:null}function De(Ko,Fo,Aa){No(Ko,Fo,Aa,te),Xs(Ko,"change",Ko,b)}function qe(Ko,Fo){for(var Aa=[],_a=Ko;_a<Fo;++_a)Aa.push(new ga(Dt[_a],ue(_a),te));return Aa}var vt=b.from,St=b.to,Dt=b.text,Ln=or(a,vt.line),Hn=or(a,St.line),Pr=_t(Dt),xr=ue(Dt.length-1),xi=St.line-vt.line;if(b.full)a.insert(0,qe(0,Dt.length)),a.remove(Dt.length,a.size-Dt.length);else if(La(a,b)){var Zi=qe(0,Dt.length-1);De(Hn,Hn.text,xr),xi&&a.remove(vt.line,xi),Zi.length&&a.insert(vt.line,Zi)}else if(Ln==Hn)if(Dt.length==1)De(Ln,Ln.text.slice(0,vt.ch)+Pr+Ln.text.slice(St.ch),xr);else{var lo=qe(1,Dt.length-1);lo.push(new ga(Pr+Ln.text.slice(St.ch),xr,te)),De(Ln,Ln.text.slice(0,vt.ch)+Dt[0],ue(0)),a.insert(vt.line+1,lo)}else if(Dt.length==1)De(Ln,Ln.text.slice(0,vt.ch)+Dt[0]+Hn.text.slice(St.ch),ue(0)),a.remove(vt.line+1,xi);else{De(Ln,Ln.text.slice(0,vt.ch)+Dt[0],ue(0)),De(Hn,Pr+Hn.text.slice(St.ch),xr);var So=qe(1,Dt.length-1);xi>1&&a.remove(vt.line+1,xi-1),a.insert(vt.line+1,So)}Xs(a,"change",a,b)}function ea(a,b,ne){function te(ue,De,qe){if(ue.linked)for(var vt=0;vt<ue.linked.length;++vt){var St=ue.linked[vt];if(St.doc!=De){var Dt=qe&&St.sharedHist;ne&&!Dt||(b(St.doc,Dt),te(St.doc,ue,Dt))}}}te(a,null,!0)}function zo(a,b){if(b.cm)throw new Error("This document is already in use.");a.doc=b,b.cm=a,nd(a),jo(a),Ho(a),a.options.lineWrapping||Do(a),a.options.mode=b.modeOption,Lu(a)}function Ho(a){(a.doc.direction=="rtl"?je:Ge)(a.display.lineDiv,"CodeMirror-rtl")}function Qo(a){oA(a,function(){Ho(a),Lu(a)})}function vo(a){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=a||1}function co(a,b){var ne={from:Nr(b.from),to:qi(b),text:Hr(a,b.from,b.to)};return _l(a,ne,b.from.line,b.to.line+1),ea(a,function(te){return _l(te,ne,b.from.line,b.to.line+1)},!0),ne}function To(a){for(;a.length;){var b=_t(a);if(b.ranges)a.pop();else break}}function Wo(a,b){if(b)return To(a.done),_t(a.done);if(a.done.length&&!_t(a.done).ranges)return _t(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),_t(a.done)}function na(a,b,ne,te){var ue=a.history;ue.undone.length=0;var De=+new Date,qe,vt;if((ue.lastOp==te||ue.lastOrigin==b.origin&&b.origin&&(b.origin.charAt(0)=="+"&&ue.lastModTime>De-(a.cm?a.cm.options.historyEventDelay:500)||b.origin.charAt(0)=="*"))&&(qe=Wo(ue,ue.lastOp==te)))vt=_t(qe.changes),gn(b.from,b.to)==0&&gn(b.from,vt.to)==0?vt.to=qi(b):qe.changes.push(co(a,b));else{var St=_t(ue.done);for((!St||!St.ranges)&&Ka(a.sel,ue.done),qe={changes:[co(a,b)],generation:ue.generation},ue.done.push(qe);ue.done.length>ue.undoDepth;)ue.done.shift(),ue.done[0].ranges||ue.done.shift()}ue.done.push(ne),ue.generation=++ue.maxGeneration,ue.lastModTime=ue.lastSelTime=De,ue.lastOp=ue.lastSelOp=te,ue.lastOrigin=ue.lastSelOrigin=b.origin,vt||ln(a,"historyAdded")}function Co(a,b,ne,te){var ue=b.charAt(0);return ue=="*"||ue=="+"&&ne.ranges.length==te.ranges.length&&ne.somethingSelected()==te.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function Ya(a,b,ne,te){var ue=a.history,De=te&&te.origin;ne==ue.lastSelOp||De&&ue.lastSelOrigin==De&&(ue.lastModTime==ue.lastSelTime&&ue.lastOrigin==De||Co(a,De,_t(ue.done),b))?ue.done[ue.done.length-1]=b:Ka(b,ue.done),ue.lastSelTime=+new Date,ue.lastSelOrigin=De,ue.lastSelOp=ne,te&&te.clearRedo!==!1&&To(ue.undone)}function Ka(a,b){var ne=_t(b);ne&&ne.ranges&&ne.equals(a)||b.push(a)}function _l(a,b,ne,te){var ue=b["spans_"+a.id],De=0;a.iter(Math.max(a.first,ne),Math.min(a.first+a.size,te),function(qe){qe.markedSpans&&((ue||(ue=b["spans_"+a.id]={}))[De]=qe.markedSpans),++De})}function El(a){if(!a)return null;for(var b,ne=0;ne<a.length;++ne)a[ne].marker.explicitlyCleared?b||(b=a.slice(0,ne)):b&&b.push(a[ne]);return b?b.length?b:null:a}function al(a,b){var ne=b["spans_"+a.id];if(!ne)return null;for(var te=[],ue=0;ue<b.text.length;++ue)te.push(El(ne[ue]));return te}function so(a,b){var ne=al(a,b),te=ko(a,b);if(!ne)return te;if(!te)return ne;for(var ue=0;ue<ne.length;++ue){var De=ne[ue],qe=te[ue];if(De&&qe)e:for(var vt=0;vt<qe.length;++vt){for(var St=qe[vt],Dt=0;Dt<De.length;++Dt)if(De[Dt].marker==St.marker)continue e;De.push(St)}else qe&&(ne[ue]=qe)}return ne}function Jl(a,b,ne){for(var te=[],ue=0;ue<a.length;++ue){var De=a[ue];if(De.ranges){te.push(ne?Dr.prototype.deepCopy.call(De):De);continue}var qe=De.changes,vt=[];te.push({changes:vt});for(var St=0;St<qe.length;++St){var Dt=qe[St],Ln=void 0;if(vt.push({from:Dt.from,to:Dt.to,text:Dt.text}),b)for(var Hn in Dt)(Ln=Hn.match(/^spans_(\d+)$/))&&ot(b,Number(Ln[1]))>-1&&(_t(vt)[Hn]=Dt[Hn],delete Dt[Hn])}}return te}function ss(a,b,ne,te){if(te){var ue=a.anchor;if(ne){var De=gn(b,ue)<0;De!=gn(ne,ue)<0?(ue=b,b=ne):De!=gn(b,ne)<0&&(b=ne)}return new Fr(ue,b)}else return new Fr(ne||b,b)}function rs(a,b,ne,te,ue){ue==null&&(ue=a.cm&&(a.cm.display.shift||a.extend)),Oo(a,new Dr([ss(a.sel.primary(),b,ne,ue)],0),te)}function il(a,b,ne){for(var te=[],ue=a.cm&&(a.cm.display.shift||a.extend),De=0;De<a.sel.ranges.length;De++)te[De]=ss(a.sel.ranges[De],b[De],null,ue);var qe=$i(a.cm,te,a.sel.primIndex);Oo(a,qe,ne)}function fu(a,b,ne,te){var ue=a.sel.ranges.slice(0);ue[b]=ne,Oo(a,$i(a.cm,ue,a.sel.primIndex),te)}function ra(a,b,ne,te){Oo(a,bi(b,ne),te)}function Ca(a,b,ne){var te={ranges:b.ranges,update:function(ue){this.ranges=[];for(var De=0;De<ue.length;De++)this.ranges[De]=new Fr(ur(a,ue[De].anchor),ur(a,ue[De].head))},origin:ne&&ne.origin};return ln(a,"beforeSelectionChange",a,te),a.cm&&ln(a.cm,"beforeSelectionChange",a.cm,te),te.ranges!=b.ranges?$i(a.cm,te.ranges,te.ranges.length-1):b}function $o(a,b,ne){var te=a.history.done,ue=_t(te);ue&&ue.ranges?(te[te.length-1]=b,fs(a,b,ne)):Oo(a,b,ne)}function Oo(a,b,ne){fs(a,b,ne),Ya(a,a.sel,a.cm?a.cm.curOp.id:NaN,ne)}function fs(a,b,ne){(En(a,"beforeSelectionChange")||a.cm&&En(a.cm,"beforeSelectionChange"))&&(b=Ca(a,b,ne));var te=ne&&ne.bias||(gn(b.primary().head,a.sel.primary().head)<0?-1:1);Ss(a,Qs(a,b,te,!0)),!(ne&&ne.scroll===!1)&&a.cm&&TA(a.cm)}function Ss(a,b){b.equals(a.sel)||(a.sel=b,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,Qn(a.cm)),Xs(a,"cursorActivity",a))}function Ws(a){Ss(a,Qs(a,a.sel,null,!1))}function Qs(a,b,ne,te){for(var ue,De=0;De<b.ranges.length;De++){var qe=b.ranges[De],vt=b.ranges.length==a.sel.ranges.length&&a.sel.ranges[De],St=pu(a,qe.anchor,vt&&vt.anchor,ne,te),Dt=pu(a,qe.head,vt&&vt.head,ne,te);(ue||St!=qe.anchor||Dt!=qe.head)&&(ue||(ue=b.ranges.slice(0,De)),ue[De]=new Fr(St,Dt))}return ue?$i(a.cm,ue,b.primIndex):b}function sl(a,b,ne,te,ue){var De=or(a,b.line);if(De.markedSpans)for(var qe=0;qe<De.markedSpans.length;++qe){var vt=De.markedSpans[qe],St=vt.marker,Dt="selectLeft"in St?!St.selectLeft:St.inclusiveLeft,Ln="selectRight"in St?!St.selectRight:St.inclusiveRight;if((vt.from==null||(Dt?vt.from<=b.ch:vt.from<b.ch))&&(vt.to==null||(Ln?vt.to>=b.ch:vt.to>b.ch))){if(ue&&(ln(St,"beforeCursorEnter"),St.explicitlyCleared))if(De.markedSpans){--qe;continue}else break;if(!St.atomic)continue;if(ne){var Hn=St.find(te<0?1:-1),Pr=void 0;if((te<0?Ln:Dt)&&(Hn=la(a,Hn,-te,Hn&&Hn.line==b.line?De:null)),Hn&&Hn.line==b.line&&(Pr=gn(Hn,ne))&&(te<0?Pr<0:Pr>0))return sl(a,Hn,b,te,ue)}var xr=St.find(te<0?-1:1);return(te<0?Dt:Ln)&&(xr=la(a,xr,te,xr.line==b.line?De:null)),xr?sl(a,xr,b,te,ue):null}}return b}function pu(a,b,ne,te,ue){var De=te||1,qe=sl(a,b,ne,De,ue)||!ue&&sl(a,b,ne,De,!0)||sl(a,b,ne,-De,ue)||!ue&&sl(a,b,ne,-De,!0);return qe||(a.cantEdit=!0,Kt(a.first,0))}function la(a,b,ne,te){return ne<0&&b.ch==0?b.line>a.first?ur(a,Kt(b.line-1)):null:ne>0&&b.ch==(te||or(a,b.line)).text.length?b.line<a.first+a.size-1?Kt(b.line+1,0):null:new Kt(b.line,b.ch+ne)}function qo(a){a.setSelection(Kt(a.firstLine(),0),Kt(a.lastLine()),tt)}function xs(a,b,ne){var te={canceled:!1,from:b.from,to:b.to,text:b.text,origin:b.origin,cancel:function(){return te.canceled=!0}};return ne&&(te.update=function(ue,De,qe,vt){ue&&(te.from=ur(a,ue)),De&&(te.to=ur(a,De)),qe&&(te.text=qe),vt!==void 0&&(te.origin=vt)}),ln(a,"beforeChange",a,te),a.cm&&ln(a.cm,"beforeChange",a.cm,te),te.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:te.from,to:te.to,text:te.text,origin:te.origin}}function Ys(a,b,ne){if(a.cm){if(!a.cm.curOp)return Du(a.cm,Ys)(a,b,ne);if(a.cm.state.suppressEdits)return}if(!((En(a,"beforeChange")||a.cm&&En(a.cm,"beforeChange"))&&(b=xs(a,b,!0),!b))){var te=Si&&!ne&&Vo(a,b.from,b.to);if(te)for(var ue=te.length-1;ue>=0;--ue)$s(a,{from:te[ue].from,to:te[ue].to,text:ue?[""]:b.text,origin:b.origin});else $s(a,b)}}function $s(a,b){if(!(b.text.length==1&&b.text[0]==""&&gn(b.from,b.to)==0)){var ne=Ji(a,b);na(a,b,ne,a.cm?a.cm.curOp.id:NaN),sA(a,b,ne,ko(a,b));var te=[];ea(a,function(ue,De){!De&&ot(te,ue.history)==-1&&(hu(ue.history,b),te.push(ue.history)),sA(ue,b,null,ko(ue,b))})}}function gu(a,b,ne){var te=a.cm&&a.cm.state.suppressEdits;if(!(te&&!ne)){for(var ue=a.history,De,qe=a.sel,vt=b=="undo"?ue.done:ue.undone,St=b=="undo"?ue.undone:ue.done,Dt=0;Dt<vt.length&&(De=vt[Dt],!(ne?De.ranges&&!De.equals(a.sel):!De.ranges));Dt++);if(Dt!=vt.length){for(ue.lastOrigin=ue.lastSelOrigin=null;;)if(De=vt.pop(),De.ranges){if(Ka(De,St),ne&&!De.equals(a.sel)){Oo(a,De,{clearRedo:!1});return}qe=De}else if(te){vt.push(De);return}else break;var Ln=[];Ka(qe,St),St.push({changes:Ln,generation:ue.generation}),ue.generation=De.generation||++ue.maxGeneration;for(var Hn=En(a,"beforeChange")||a.cm&&En(a.cm,"beforeChange"),Pr=function(Zi){var lo=De.changes[Zi];if(lo.origin=b,Hn&&!xs(a,lo,!1))return vt.length=0,{};Ln.push(co(a,lo));var So=Zi?Ji(a,lo):_t(vt);sA(a,lo,So,so(a,lo)),!Zi&&a.cm&&a.cm.scrollIntoView({from:lo.from,to:qi(lo)});var Ko=[];ea(a,function(Fo,Aa){!Aa&&ot(Ko,Fo.history)==-1&&(hu(Fo.history,lo),Ko.push(Fo.history)),sA(Fo,lo,null,so(Fo,lo))})},xr=De.changes.length-1;xr>=0;--xr){var xi=Pr(xr);if(xi)return xi.v}}}}function Tl(a,b){if(b!=0&&(a.first+=b,a.sel=new Dr(Cn(a.sel.ranges,function(ue){return new Fr(Kt(ue.anchor.line+b,ue.anchor.ch),Kt(ue.head.line+b,ue.head.ch))}),a.sel.primIndex),a.cm)){Lu(a.cm,a.first,a.first-b,b);for(var ne=a.cm.display,te=ne.viewFrom;te<ne.viewTo;te++)Pc(a.cm,te,"gutter")}}function sA(a,b,ne,te){if(a.cm&&!a.cm.curOp)return Du(a.cm,sA)(a,b,ne,te);if(b.to.line<a.first){Tl(a,b.text.length-1-(b.to.line-b.from.line));return}if(!(b.from.line>a.lastLine())){if(b.from.line<a.first){var ue=b.text.length-1-(a.first-b.from.line);Tl(a,ue),b={from:Kt(a.first,0),to:Kt(b.to.line+ue,b.to.ch),text:[_t(b.text)],origin:b.origin}}var De=a.lastLine();b.to.line>De&&(b={from:b.from,to:Kt(De,or(a,De).text.length),text:[b.text[0]],origin:b.origin}),b.removed=Hr(a,b.from,b.to),ne||(ne=Ji(a,b)),a.cm?Sl(a.cm,b,te):sa(a,b,te),fs(a,ne,tt),a.cantEdit&&pu(a,Kt(a.firstLine(),0))&&(a.cantEdit=!1)}}function Sl(a,b,ne){var te=a.doc,ue=a.display,De=b.from,qe=b.to,vt=!1,St=De.line;a.options.lineWrapping||(St=rn(Wr(or(te,De.line))),te.iter(St,qe.line+1,function(xr){if(xr==ue.maxLine)return vt=!0,!0})),te.sel.contains(b.from,b.to)>-1&&Qn(a),sa(te,b,ne,Jf(a)),a.options.lineWrapping||(te.iter(St,De.line+b.text.length,function(xr){var xi=Yo(xr);xi>ue.maxLineLength&&(ue.maxLine=xr,ue.maxLineLength=xi,ue.maxLineChanged=!0,vt=!1)}),vt&&(a.curOp.updateMaxLine=!0)),mi(te,De.line),sd(a,400);var Dt=b.text.length-(qe.line-De.line)-1;b.full?Lu(a):De.line==qe.line&&b.text.length==1&&!La(a.doc,b)?Pc(a,De.line,"text"):Lu(a,De.line,qe.line+1,Dt);var Ln=En(a,"changes"),Hn=En(a,"change");if(Hn||Ln){var Pr={from:De,to:qe,text:b.text,removed:b.removed,origin:b.origin};Hn&&Xs(a,"change",a,Pr),Ln&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Pr)}a.display.selForContextMenu=null}function vs(a,b,ne,te,ue){var De;te||(te=ne),gn(te,ne)<0&&(De=[te,ne],ne=De[0],te=De[1]),typeof b=="string"&&(b=a.splitLines(b)),Ys(a,{from:ne,to:te,text:b,origin:ue})}function ll(a,b,ne,te){ne<a.line?a.line+=te:b<a.line&&(a.line=b,a.ch=0)}function ul(a,b,ne,te){for(var ue=0;ue<a.length;++ue){var De=a[ue],qe=!0;if(De.ranges){De.copied||(De=a[ue]=De.deepCopy(),De.copied=!0);for(var vt=0;vt<De.ranges.length;vt++)ll(De.ranges[vt].anchor,b,ne,te),ll(De.ranges[vt].head,b,ne,te);continue}for(var St=0;St<De.changes.length;++St){var Dt=De.changes[St];if(ne<Dt.from.line)Dt.from=Kt(Dt.from.line+te,Dt.from.ch),Dt.to=Kt(Dt.to.line+te,Dt.to.ch);else if(b<=Dt.to.line){qe=!1;break}}qe||(a.splice(0,ue+1),ue=0)}}function hu(a,b){var ne=b.from.line,te=b.to.line,ue=b.text.length-(te-ne)-1;ul(a.done,ne,te,ue),ul(a.undone,ne,te,ue)}function kl(a,b,ne,te){var ue=b,De=b;return typeof b=="number"?De=or(a,rr(a,b)):ue=rn(b),ue==null?null:(te(De,ue)&&a.cm&&Pc(a.cm,ue,ne),De)}function ys(a){this.lines=a,this.parent=null;for(var b=0,ne=0;ne<a.length;++ne)a[ne].parent=this,b+=a[ne].height;this.height=b}ys.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,b){for(var ne=a,te=a+b;ne<te;++ne){var ue=this.lines[ne];this.height-=ue.height,Jo(ue),Xs(ue,"delete")}this.lines.splice(a,b)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,b,ne){this.height+=ne,this.lines=this.lines.slice(0,a).concat(b).concat(this.lines.slice(a));for(var te=0;te<b.length;++te)b[te].parent=this},iterN:function(a,b,ne){for(var te=a+b;a<te;++a)if(ne(this.lines[a]))return!0}};function vl(a){this.children=a;for(var b=0,ne=0,te=0;te<a.length;++te){var ue=a[te];b+=ue.chunkSize(),ne+=ue.height,ue.parent=this}this.size=b,this.height=ne,this.parent=null}vl.prototype={chunkSize:function(){return this.size},removeInner:function(a,b){this.size-=b;for(var ne=0;ne<this.children.length;++ne){var te=this.children[ne],ue=te.chunkSize();if(a<ue){var De=Math.min(b,ue-a),qe=te.height;if(te.removeInner(a,De),this.height-=qe-te.height,ue==De&&(this.children.splice(ne--,1),te.parent=null),(b-=De)==0)break;a=0}else a-=ue}if(this.size-b<25&&(this.children.length>1||!(this.children[0]instanceof ys))){var vt=[];this.collapse(vt),this.children=[new ys(vt)],this.children[0].parent=this}},collapse:function(a){for(var b=0;b<this.children.length;++b)this.children[b].collapse(a)},insertInner:function(a,b,ne){this.size+=b.length,this.height+=ne;for(var te=0;te<this.children.length;++te){var ue=this.children[te],De=ue.chunkSize();if(a<=De){if(ue.insertInner(a,b,ne),ue.lines&&ue.lines.length>50){for(var qe=ue.lines.length%25+25,vt=qe;vt<ue.lines.length;){var St=new ys(ue.lines.slice(vt,vt+=25));ue.height-=St.height,this.children.splice(++te,0,St),St.parent=this}ue.lines=ue.lines.slice(0,qe),this.maybeSpill()}break}a-=De}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var b=a.children.splice(a.children.length-5,5),ne=new vl(b);if(a.parent){a.size-=ne.size,a.height-=ne.height;var ue=ot(a.parent.children,a);a.parent.children.splice(ue+1,0,ne)}else{var te=new vl(a.children);te.parent=a,a.children=[te,ne],a=te}ne.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,b,ne){for(var te=0;te<this.children.length;++te){var ue=this.children[te],De=ue.chunkSize();if(a<De){var qe=Math.min(b,De-a);if(ue.iterN(a,qe,ne))return!0;if((b-=qe)==0)break;a=0}else a-=De}}};var Fs=function(a,b,ne){if(ne)for(var te in ne)ne.hasOwnProperty(te)&&(this[te]=ne[te]);this.doc=a,this.node=b};Fs.prototype.clear=function(){var a=this.doc.cm,b=this.line.widgets,ne=this.line,te=rn(ne);if(!(te==null||!b)){for(var ue=0;ue<b.length;++ue)b[ue]==this&&b.splice(ue--,1);b.length||(ne.widgets=null);var De=$l(this);Yt(ne,Math.max(0,ne.height-De)),a&&(oA(a,function(){yl(a,ne,-De),Pc(a,te,"widget")}),Xs(a,"lineWidgetCleared",a,this,te))}},Fs.prototype.changed=function(){var a=this,b=this.height,ne=this.doc.cm,te=this.line;this.height=null;var ue=$l(this)-b;ue&&(vr(this.doc,te)||Yt(te,te.height+ue),ne&&oA(ne,function(){ne.curOp.forceUpdate=!0,yl(ne,te,ue),Xs(ne,"lineWidgetChanged",ne,a,rn(te))}))},Rt(Fs);function yl(a,b,ne){Ao(b)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&th(a,ne)}function ql(a,b,ne,te){var ue=new Fs(a,ne,te),De=a.cm;return De&&ue.noHScroll&&(De.display.alignWidgets=!0),kl(a,b,"widget",function(qe){var vt=qe.widgets||(qe.widgets=[]);if(ue.insertAt==null?vt.push(ue):vt.splice(Math.min(vt.length-1,Math.max(0,ue.insertAt)),0,ue),ue.line=qe,De&&!vr(a,qe)){var St=Ao(qe)<a.scrollTop;Yt(qe,qe.height+$l(ue)),St&&th(De,ue.height),De.curOp.forceUpdate=!0}return!0}),De&&Xs(De,"lineWidgetAdded",De,ue,typeof b=="number"?b:rn(b)),ue}var Ou=0,Pu=function(a,b){this.lines=[],this.type=b,this.doc=a,this.id=++Ou};Pu.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,b=a&&!a.curOp;if(b&&iA(a),En(this,"clear")){var ne=this.find();ne&&Xs(this,"clear",ne.from,ne.to)}for(var te=null,ue=null,De=0;De<this.lines.length;++De){var qe=this.lines[De],vt=eo(qe.markedSpans,this);a&&!this.collapsed?Pc(a,rn(qe),"text"):a&&(vt.to!=null&&(ue=rn(qe)),vt.from!=null&&(te=rn(qe))),qe.markedSpans=mo(qe.markedSpans,vt),vt.from==null&&this.collapsed&&!vr(this.doc,qe)&&a&&Yt(qe,mA(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var St=0;St<this.lines.length;++St){var Dt=Wr(this.lines[St]),Ln=Yo(Dt);Ln>a.display.maxLineLength&&(a.display.maxLine=Dt,a.display.maxLineLength=Ln,a.display.maxLineChanged=!0)}te!=null&&a&&this.collapsed&&Lu(a,te,ue+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Ws(a.doc)),a&&Xs(a,"markerCleared",a,this,te,ue),b&&yc(a),this.parent&&this.parent.clear()}},Pu.prototype.find=function(a,b){a==null&&this.type=="bookmark"&&(a=1);for(var ne,te,ue=0;ue<this.lines.length;++ue){var De=this.lines[ue],qe=eo(De.markedSpans,this);if(qe.from!=null&&(ne=Kt(b?De:rn(De),qe.from),a==-1))return ne;if(qe.to!=null&&(te=Kt(b?De:rn(De),qe.to),a==1))return te}return ne&&{from:ne,to:te}},Pu.prototype.changed=function(){var a=this,b=this.find(-1,!0),ne=this,te=this.doc.cm;!b||!te||oA(te,function(){var ue=b.line,De=rn(b.line),qe=Cu(te,De);if(qe&&(PA(qe),te.curOp.selectionChanged=te.curOp.forceUpdate=!0),te.curOp.updateMaxLine=!0,!vr(ne.doc,ue)&&ne.height!=null){var vt=ne.height;ne.height=null;var St=$l(ne)-vt;St&&Yt(ue,ue.height+St)}Xs(te,"markerChanged",te,a)})},Pu.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(!b.maybeHiddenMarkers||ot(b.maybeHiddenMarkers,this)==-1)&&(b.maybeUnhiddenMarkers||(b.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},Pu.prototype.detachLine=function(a){if(this.lines.splice(ot(this.lines,a),1),!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(b.maybeHiddenMarkers||(b.maybeHiddenMarkers=[])).push(this)}},Rt(Pu);function GA(a,b,ne,te,ue){if(te&&te.shared)return Dd(a,b,ne,te,ue);if(a.cm&&!a.cm.curOp)return Du(a.cm,GA)(a,b,ne,te,ue);var De=new Pu(a,ue),qe=gn(b,ne);if(te&&Bt(te,De,!1),qe>0||qe==0&&De.clearWhenEmpty!==!1)return De;if(De.replacedWith&&(De.collapsed=!0,De.widgetNode=bt("span",[De.replacedWith],"CodeMirror-widget"),te.handleMouseEvents||De.widgetNode.setAttribute("cm-ignore-events","true"),te.insertLeft&&(De.widgetNode.insertLeft=!0)),De.collapsed){if(ri(a,b.line,b,ne,De)||b.line!=ne.line&&ri(a,ne.line,b,ne,De))throw new Error("Inserting collapsed marker partially overlapping an existing one");yi()}De.addToHistory&&na(a,{from:b,to:ne,origin:"markText"},a.sel,NaN);var vt=b.line,St=a.cm,Dt;if(a.iter(vt,ne.line+1,function(Hn){St&&De.collapsed&&!St.options.lineWrapping&&Wr(Hn)==St.display.maxLine&&(Dt=!0),De.collapsed&&vt!=b.line&&Yt(Hn,0),Yi(Hn,new Mi(De,vt==b.line?b.ch:null,vt==ne.line?ne.ch:null)),++vt}),De.collapsed&&a.iter(b.line,ne.line+1,function(Hn){vr(a,Hn)&&Yt(Hn,0)}),De.clearOnEnter&&$t(De,"beforeCursorEnter",function(){return De.clear()}),De.readOnly&&(Ci(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),De.collapsed&&(De.id=++Ou,De.atomic=!0),St){if(Dt&&(St.curOp.updateMaxLine=!0),De.collapsed)Lu(St,b.line,ne.line+1);else if(De.className||De.startStyle||De.endStyle||De.css||De.attributes||De.title)for(var Ln=b.line;Ln<=ne.line;Ln++)Pc(St,Ln,"text");De.atomic&&Ws(St.doc),Xs(St,"markerAdded",St,De)}return De}var Al=function(a,b){this.markers=a,this.primary=b;for(var ne=0;ne<a.length;++ne)a[ne].parent=this};Al.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();Xs(this,"clear")}},Al.prototype.find=function(a,b){return this.primary.find(a,b)},Rt(Al);function Dd(a,b,ne,te,ue){te=Bt(te),te.shared=!1;var De=[GA(a,b,ne,te,ue)],qe=De[0],vt=te.widgetNode;return ea(a,function(St){vt&&(te.widgetNode=vt.cloneNode(!0)),De.push(GA(St,ur(St,b),ur(St,ne),te,ue));for(var Dt=0;Dt<St.linked.length;++Dt)if(St.linked[Dt].isParent)return;qe=_t(De)}),new Al(De,qe)}function Uu(a){return a.findMarks(Kt(a.first,0),a.clipPos(Kt(a.lastLine())),function(b){return b.parent})}function Vu(a,b){for(var ne=0;ne<b.length;ne++){var te=b[ne],ue=te.find(),De=a.clipPos(ue.from),qe=a.clipPos(ue.to);if(gn(De,qe)){var vt=GA(a,De,qe,te.primary,te.primary.type);te.markers.push(vt),vt.parent=te}}}function Ru(a){for(var b=function(te){var ue=a[te],De=[ue.primary.doc];ea(ue.primary.doc,function(St){return De.push(St)});for(var qe=0;qe<ue.markers.length;qe++){var vt=ue.markers[qe];ot(De,vt.doc)==-1&&(vt.parent=null,ue.markers.splice(qe--,1))}},ne=0;ne<a.length;ne++)b(ne)}var Xu=0,cl=function(a,b,ne,te,ue){if(!(this instanceof cl))return new cl(a,b,ne,te,ue);ne==null&&(ne=0),vl.call(this,[new ys([new ga("",null)])]),this.first=ne,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ne;var De=Kt(ne,0);this.sel=bi(De),this.history=new vo(null),this.id=++Xu,this.modeOption=b,this.lineSep=te,this.direction=ue=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),sa(this,{from:De,to:De,text:a}),Oo(this,bi(De),tt)};cl.prototype=pe(vl.prototype,{constructor:cl,iter:function(a,b,ne){ne?this.iterN(a-this.first,b-a,ne):this.iterN(this.first,this.first+this.size,a)},insert:function(a,b){for(var ne=0,te=0;te<b.length;++te)ne+=b[te].height;this.insertInner(a-this.first,b,ne)},remove:function(a,b){this.removeInner(a-this.first,b)},getValue:function(a){var b=Bi(this,this.first,this.first+this.size);return a===!1?b:b.join(a||this.lineSeparator())},setValue:Nu(function(a){var b=Kt(this.first,0),ne=this.first+this.size-1;Ys(this,{from:b,to:Kt(ne,or(this,ne).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&id(this.cm,0,0),Oo(this,bi(b),tt)}),replaceRange:function(a,b,ne,te){b=ur(this,b),ne=ne?ur(this,ne):b,vs(this,a,b,ne,te)},getRange:function(a,b,ne){var te=Hr(this,ur(this,a),ur(this,b));return ne===!1?te:te.join(ne||this.lineSeparator())},getLine:function(a){var b=this.getLineHandle(a);return b&&b.text},getLineHandle:function(a){if(Pt(this,a))return or(this,a)},getLineNumber:function(a){return rn(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=or(this,a)),Wr(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return ur(this,a)},getCursor:function(a){var b=this.sel.primary(),ne;return a==null||a=="head"?ne=b.head:a=="anchor"?ne=b.anchor:a=="end"||a=="to"||a===!1?ne=b.to():ne=b.from(),ne},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Nu(function(a,b,ne){ra(this,ur(this,typeof a=="number"?Kt(a,b||0):a),null,ne)}),setSelection:Nu(function(a,b,ne){ra(this,ur(this,a),ur(this,b||a),ne)}),extendSelection:Nu(function(a,b,ne){rs(this,ur(this,a),b&&ur(this,b),ne)}),extendSelections:Nu(function(a,b){il(this,ni(this,a),b)}),extendSelectionsBy:Nu(function(a,b){var ne=Cn(this.sel.ranges,a);il(this,ni(this,ne),b)}),setSelections:Nu(function(a,b,ne){if(a.length){for(var te=[],ue=0;ue<a.length;ue++)te[ue]=new Fr(ur(this,a[ue].anchor),ur(this,a[ue].head));b==null&&(b=Math.min(a.length-1,this.sel.primIndex)),Oo(this,$i(this.cm,te,b),ne)}}),addSelection:Nu(function(a,b,ne){var te=this.sel.ranges.slice(0);te.push(new Fr(ur(this,a),ur(this,b||a))),Oo(this,$i(this.cm,te,te.length-1),ne)}),getSelection:function(a){for(var b=this.sel.ranges,ne,te=0;te<b.length;te++){var ue=Hr(this,b[te].from(),b[te].to());ne=ne?ne.concat(ue):ue}return a===!1?ne:ne.join(a||this.lineSeparator())},getSelections:function(a){for(var b=[],ne=this.sel.ranges,te=0;te<ne.length;te++){var ue=Hr(this,ne[te].from(),ne[te].to());a!==!1&&(ue=ue.join(a||this.lineSeparator())),b[te]=ue}return b},replaceSelection:function(a,b,ne){for(var te=[],ue=0;ue<this.sel.ranges.length;ue++)te[ue]=a;this.replaceSelections(te,b,ne||"+input")},replaceSelections:Nu(function(a,b,ne){for(var te=[],ue=this.sel,De=0;De<ue.ranges.length;De++){var qe=ue.ranges[De];te[De]={from:qe.from(),to:qe.to(),text:this.splitLines(a[De]),origin:ne}}for(var vt=b&&b!="end"&&Bo(this,te,b),St=te.length-1;St>=0;St--)Ys(this,te[St]);vt?$o(this,vt):this.cm&&TA(this.cm)}),undo:Nu(function(){gu(this,"undo")}),redo:Nu(function(){gu(this,"redo")}),undoSelection:Nu(function(){gu(this,"undo",!0)}),redoSelection:Nu(function(){gu(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,b=0,ne=0,te=0;te<a.done.length;te++)a.done[te].ranges||++b;for(var ue=0;ue<a.undone.length;ue++)a.undone[ue].ranges||++ne;return{undo:b,redo:ne}},clearHistory:function(){var a=this;this.history=new vo(this.history.maxGeneration),ea(this,function(b){return b.history=a.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:Jl(this.history.done),undone:Jl(this.history.undone)}},setHistory:function(a){var b=this.history=new vo(this.history.maxGeneration);b.done=Jl(a.done.slice(0),null,!0),b.undone=Jl(a.undone.slice(0),null,!0)},setGutterMarker:Nu(function(a,b,ne){return kl(this,a,"gutter",function(te){var ue=te.gutterMarkers||(te.gutterMarkers={});return ue[b]=ne,!ne&&le(ue)&&(te.gutterMarkers=null),!0})}),clearGutter:Nu(function(a){var b=this;this.iter(function(ne){ne.gutterMarkers&&ne.gutterMarkers[a]&&kl(b,ne,"gutter",function(){return ne.gutterMarkers[a]=null,le(ne.gutterMarkers)&&(ne.gutterMarkers=null),!0})})}),lineInfo:function(a){var b;if(typeof a=="number"){if(!Pt(this,a)||(b=a,a=or(this,a),!a))return null}else if(b=rn(a),b==null)return null;return{line:b,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:Nu(function(a,b,ne){return kl(this,a,b=="gutter"?"gutter":"class",function(te){var ue=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass";if(!te[ue])te[ue]=ne;else{if(et(ne).test(te[ue]))return!1;te[ue]+=" "+ne}return!0})}),removeLineClass:Nu(function(a,b,ne){return kl(this,a,b=="gutter"?"gutter":"class",function(te){var ue=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass",De=te[ue];if(De)if(ne==null)te[ue]=null;else{var qe=De.match(et(ne));if(!qe)return!1;var vt=qe.index+qe[0].length;te[ue]=De.slice(0,qe.index)+(!qe.index||vt==De.length?"":" ")+De.slice(vt)||null}else return!1;return!0})}),addLineWidget:Nu(function(a,b,ne){return ql(this,a,b,ne)}),removeLineWidget:function(a){a.clear()},markText:function(a,b,ne){return GA(this,ur(this,a),ur(this,b),ne,ne&&ne.type||"range")},setBookmark:function(a,b){var ne={replacedWith:b&&(b.nodeType==null?b.widget:b),insertLeft:b&&b.insertLeft,clearWhenEmpty:!1,shared:b&&b.shared,handleMouseEvents:b&&b.handleMouseEvents};return a=ur(this,a),GA(this,a,a,ne,"bookmark")},findMarksAt:function(a){a=ur(this,a);var b=[],ne=or(this,a.line).markedSpans;if(ne)for(var te=0;te<ne.length;++te){var ue=ne[te];(ue.from==null||ue.from<=a.ch)&&(ue.to==null||ue.to>=a.ch)&&b.push(ue.marker.parent||ue.marker)}return b},findMarks:function(a,b,ne){a=ur(this,a),b=ur(this,b);var te=[],ue=a.line;return this.iter(a.line,b.line+1,function(De){var qe=De.markedSpans;if(qe)for(var vt=0;vt<qe.length;vt++){var St=qe[vt];!(St.to!=null&&ue==a.line&&a.ch>=St.to||St.from==null&&ue!=a.line||St.from!=null&&ue==b.line&&St.from>=b.ch)&&(!ne||ne(St.marker))&&te.push(St.marker.parent||St.marker)}++ue}),te},getAllMarks:function(){var a=[];return this.iter(function(b){var ne=b.markedSpans;if(ne)for(var te=0;te<ne.length;++te)ne[te].from!=null&&a.push(ne[te].marker)}),a},posFromIndex:function(a){var b,ne=this.first,te=this.lineSeparator().length;return this.iter(function(ue){var De=ue.text.length+te;if(De>a)return b=a,!0;a-=De,++ne}),ur(this,Kt(ne,b))},indexFromPos:function(a){a=ur(this,a);var b=a.ch;if(a.line<this.first||a.ch<0)return 0;var ne=this.lineSeparator().length;return this.iter(this.first,a.line,function(te){b+=te.text.length+ne}),b},copy:function(a){var b=new cl(Bi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return b.scrollTop=this.scrollTop,b.scrollLeft=this.scrollLeft,b.sel=this.sel,b.extend=!1,a&&(b.history.undoDepth=this.history.undoDepth,b.setHistory(this.getHistory())),b},linkedDoc:function(a){a||(a={});var b=this.first,ne=this.first+this.size;a.from!=null&&a.from>b&&(b=a.from),a.to!=null&&a.to<ne&&(ne=a.to);var te=new cl(Bi(this,b,ne),a.mode||this.modeOption,b,this.lineSep,this.direction);return a.sharedHist&&(te.history=this.history),(this.linked||(this.linked=[])).push({doc:te,sharedHist:a.sharedHist}),te.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],Vu(te,Uu(this)),te},unlinkDoc:function(a){if(a instanceof Hl&&(a=a.doc),this.linked)for(var b=0;b<this.linked.length;++b){var ne=this.linked[b];if(ne.doc==a){this.linked.splice(b,1),a.unlinkDoc(this),Ru(Uu(this));break}}if(a.history==this.history){var te=[a.id];ea(a,function(ue){return te.push(ue.id)},!0),a.history=new vo(null),a.history.done=Jl(this.history.done,te),a.history.undone=Jl(this.history.undone,te)}},iterLinkedDocs:function(a){ea(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):Sr(a)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Nu(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(b){return b.order=null}),this.cm&&Qo(this.cm))})}),cl.prototype.eachLine=cl.prototype.iter;var vA=0;function bc(a){var b=this;if(Jd(b),!(tn(b,a)||cu(b.display,a))){un(a),ze&&(vA=+new Date);var ne=Oc(b,a,!0),te=a.dataTransfer.files;if(!(!ne||b.isReadOnly()))if(te&&te.length&&window.FileReader&&window.File)for(var ue=te.length,De=Array(ue),qe=0,vt=function(){++qe==ue&&Du(b,function(){ne=ur(b.doc,ne);var xr={from:ne,to:ne,text:b.doc.splitLines(De.filter(function(xi){return xi!=null}).join(b.doc.lineSeparator())),origin:"paste"};Ys(b.doc,xr),$o(b.doc,bi(ur(b.doc,ne),ur(b.doc,qi(xr))))})()},St=function(xr,xi){if(b.options.allowDropFileTypes&&ot(b.options.allowDropFileTypes,xr.type)==-1){vt();return}var Zi=new FileReader;Zi.onerror=function(){return vt()},Zi.onload=function(){var lo=Zi.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(lo)){vt();return}De[xi]=lo,vt()},Zi.readAsText(xr)},Dt=0;Dt<te.length;Dt++)St(te[Dt],Dt);else{if(b.state.draggingText&&b.doc.sel.contains(ne)>-1){b.state.draggingText(a),setTimeout(function(){return b.display.input.focus()},20);return}try{var Ln=a.dataTransfer.getData("Text");if(Ln){var Hn;if(b.state.draggingText&&!b.state.draggingText.copy&&(Hn=b.listSelections()),fs(b.doc,bi(ne,ne)),Hn)for(var Pr=0;Pr<Hn.length;++Pr)vs(b.doc,"",Hn[Pr].anchor,Hn[Pr].head,"drag");b.replaceSelection(Ln,"around","paste"),b.display.input.focus()}}catch(xr){}}}}function kA(a,b){if(ze&&(!a.state.draggingText||+new Date-vA<100)){It(b);return}if(!(tn(a,b)||cu(a.display,b))&&(b.dataTransfer.setData("Text",a.getSelection()),b.dataTransfer.effectAllowed="copyMove",b.dataTransfer.setDragImage&&!Oe)){var ne=ft("img",null,null,"position: fixed; left: 0; top: 0;");ne.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",oe&&(ne.width=ne.height=1,a.display.wrapper.appendChild(ne),ne._top=ne.offsetTop),b.dataTransfer.setDragImage(ne,0,0),oe&&ne.parentNode.removeChild(ne)}}function VA(a,b){var ne=Oc(a,b);if(ne){var te=document.createDocumentFragment();_h(a,ne,te),a.display.dragCursor||(a.display.dragCursor=ft("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),at(a.display.dragCursor,te)}}function Jd(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function qd(a){if(document.getElementsByClassName){for(var b=document.getElementsByClassName("CodeMirror"),ne=[],te=0;te<b.length;te++){var ue=b[te].CodeMirror;ue&&ne.push(ue)}ne.length&&ne[0].operation(function(){for(var De=0;De<ne.length;De++)a(ne[De])})}}var Is=!1;function ld(){Is||(Ef(),Is=!0)}function Ef(){var a;$t(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,qd(Za)},100))}),$t(window,"blur",function(){return qd($A)})}function Za(a){var b=a.display;b.cachedCharWidth=b.cachedTextHeight=b.cachedPaddingH=null,b.scrollbarsClipped=!1,a.setSize()}for(var hs={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},jl=0;jl<10;jl++)hs[jl+48]=hs[jl+96]=String(jl);for(var su=65;su<=90;su++)hs[su]=String.fromCharCode(su);for(var xu=1;xu<=12;xu++)hs[xu+111]=hs[xu+63235]="F"+xu;var Bu={};Bu.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Bu.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Bu.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Bu.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Bu.default=xe?Bu.macDefault:Bu.pcDefault;function Yu(a){var b=a.split(/-(?!$)/);a=b[b.length-1];for(var ne,te,ue,De,qe=0;qe<b.length-1;qe++){var vt=b[qe];if(/^(cmd|meta|m)$/i.test(vt))De=!0;else if(/^a(lt)?$/i.test(vt))ne=!0;else if(/^(c|ctrl|control)$/i.test(vt))te=!0;else if(/^s(hift)?$/i.test(vt))ue=!0;else throw new Error("Unrecognized modifier name: "+vt)}return ne&&(a="Alt-"+a),te&&(a="Ctrl-"+a),De&&(a="Cmd-"+a),ue&&(a="Shift-"+a),a}function ju(a){var b={};for(var ne in a)if(a.hasOwnProperty(ne)){var te=a[ne];if(/^(name|fallthrough|(de|at)tach)$/.test(ne))continue;if(te=="..."){delete a[ne];continue}for(var ue=Cn(ne.split(" "),Yu),De=0;De<ue.length;De++){var qe=void 0,vt=void 0;De==ue.length-1?(vt=ue.join(" "),qe=te):(vt=ue.slice(0,De+1).join(" "),qe="...");var St=b[vt];if(!St)b[vt]=qe;else if(St!=qe)throw new Error("Inconsistent bindings for "+vt)}delete a[ne]}for(var Dt in b)a[Dt]=b[Dt];return a}function Zc(a,b,ne,te){b=mu(b);var ue=b.call?b.call(a,te):b[a];if(ue===!1)return"nothing";if(ue==="...")return"multi";if(ue!=null&&ne(ue))return"handled";if(b.fallthrough){if(Object.prototype.toString.call(b.fallthrough)!="[object Array]")return Zc(a,b.fallthrough,ne,te);for(var De=0;De<b.fallthrough.length;De++){var qe=Zc(a,b.fallthrough[De],ne,te);if(qe)return qe}}}function Sf(a){var b=typeof a=="string"?a:hs[a.keyCode];return b=="Ctrl"||b=="Alt"||b=="Shift"||b=="Mod"}function Wc(a,b,ne){var te=a;return b.altKey&&te!="Alt"&&(a="Alt-"+a),(Qe?b.metaKey:b.ctrlKey)&&te!="Ctrl"&&(a="Ctrl-"+a),(Qe?b.ctrlKey:b.metaKey)&&te!="Mod"&&(a="Cmd-"+a),!ne&&b.shiftKey&&te!="Shift"&&(a="Shift-"+a),a}function $c(a,b){if(oe&&a.keyCode==34&&a.char)return!1;var ne=hs[a.keyCode];return ne==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(ne=a.code),Wc(ne,a,b))}function mu(a){return typeof a=="string"?Bu[a]:a}function MA(a,b){for(var ne=a.doc.sel.ranges,te=[],ue=0;ue<ne.length;ue++){for(var De=b(ne[ue]);te.length&&gn(De.from,_t(te).to)<=0;){var qe=te.pop();if(gn(qe.from,De.from)<0){De.from=qe.from;break}}te.push(De)}oA(a,function(){for(var vt=te.length-1;vt>=0;vt--)vs(a.doc,"",te[vt].from,te[vt].to,"+delete");TA(a)})}function ef(a,b,ne){var te=st(a.text,b+ne,ne);return te<0||te>a.text.length?null:te}function Ff(a,b,ne){var te=ef(a,b.ch,ne);return te==null?null:new Kt(b.line,te,ne<0?"after":"before")}function tf(a,b,ne,te,ue){if(a){b.doc.direction=="rtl"&&(ue=-ue);var De=Ct(ne,b.doc.direction);if(De){var qe=ue<0?_t(De):De[0],vt=ue<0==(qe.level==1),St=vt?"after":"before",Dt;if(qe.level>0||b.doc.direction=="rtl"){var Ln=aa(b,ne);Dt=ue<0?ne.text.length-1:0;var Hn=$u(b,Ln,Dt).top;Dt=gt(function(Pr){return $u(b,Ln,Pr).top==Hn},ue<0==(qe.level==1)?qe.from:qe.to-1,Dt),St=="before"&&(Dt=ef(ne,Dt,1))}else Dt=ue<0?qe.to:qe.from;return new Kt(te,Dt,St)}}return new Kt(te,ue<0?ne.text.length:0,ue<0?"before":"after")}function If(a,b,ne,te){var ue=Ct(b,a.doc.direction);if(!ue)return Ff(b,ne,te);ne.ch>=b.text.length?(ne.ch=b.text.length,ne.sticky="before"):ne.ch<=0&&(ne.ch=0,ne.sticky="after");var De=Lt(ue,ne.ch,ne.sticky),qe=ue[De];if(a.doc.direction=="ltr"&&qe.level%2==0&&(te>0?qe.to>ne.ch:qe.from<ne.ch))return Ff(b,ne,te);var vt=function(So,Ko){return ef(b,So instanceof Kt?So.ch:So,Ko)},St,Dt=function(So){return a.options.lineWrapping?(St=St||aa(a,b),Xl(a,b,St,So)):{begin:0,end:b.text.length}},Ln=Dt(ne.sticky=="before"?vt(ne,-1):ne.ch);if(a.doc.direction=="rtl"||qe.level==1){var Hn=qe.level==1==te<0,Pr=vt(ne,Hn?1:-1);if(Pr!=null&&(Hn?Pr<=qe.to&&Pr<=Ln.end:Pr>=qe.from&&Pr>=Ln.begin)){var xr=Hn?"before":"after";return new Kt(ne.line,Pr,xr)}}var xi=function(So,Ko,Fo){for(var Aa=function(Il,zu){return zu?new Kt(ne.line,vt(Il,1),"before"):new Kt(ne.line,Il,"after")};So>=0&&So<ue.length;So+=Ko){var _a=ue[So],xa=Ko>0==(_a.level!=1),ja=xa?Fo.begin:vt(Fo.end,-1);if(_a.from<=ja&&ja<_a.to||(ja=xa?_a.from:vt(_a.to,-1),Fo.begin<=ja&&ja<Fo.end))return Aa(ja,xa)}},Zi=xi(De+te,te,Ln);if(Zi)return Zi;var lo=te>0?Ln.end:vt(Ln.begin,-1);return lo!=null&&!(te>0&&lo==b.text.length)&&(Zi=xi(te>0?0:ue.length-1,te,Dt(lo)),Zi)?Zi:null}var Gc={selectAll:qo,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),tt)},killLine:function(a){return MA(a,function(b){if(b.empty()){var ne=or(a.doc,b.head.line).text.length;return b.head.ch==ne&&b.head.line<a.lastLine()?{from:b.head,to:Kt(b.head.line+1,0)}:{from:b.head,to:Kt(b.head.line,ne)}}else return{from:b.from(),to:b.to()}})},deleteLine:function(a){return MA(a,function(b){return{from:Kt(b.from().line,0),to:ur(a.doc,Kt(b.to().line+1,0))}})},delLineLeft:function(a){return MA(a,function(b){return{from:Kt(b.from().line,0),to:b.from()}})},delWrappedLineLeft:function(a){return MA(a,function(b){var ne=a.charCoords(b.head,"div").top+5,te=a.coordsChar({left:0,top:ne},"div");return{from:te,to:b.from()}})},delWrappedLineRight:function(a){return MA(a,function(b){var ne=a.charCoords(b.head,"div").top+5,te=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:ne},"div");return{from:b.from(),to:te}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(Kt(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(Kt(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(b){return rh(a,b.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(b){return ih(a,b.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(b){return pp(a,b.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(b){var ne=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:ne},"div")},Ut)},goLineLeft:function(a){return a.extendSelectionsBy(function(b){var ne=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:0,top:ne},"div")},Ut)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(b){var ne=a.cursorCoords(b.head,"div").top+5,te=a.coordsChar({left:0,top:ne},"div");return te.ch<a.getLine(te.line).search(/\S/)?ih(a,b.head):te},Ut)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var b=[],ne=a.listSelections(),te=a.options.tabSize,ue=0;ue<ne.length;ue++){var De=ne[ue].from(),qe=We(a.getLine(De.line),De.ch,te);b.push(mn(te-qe%te))}a.replaceSelections(b)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return oA(a,function(){for(var b=a.listSelections(),ne=[],te=0;te<b.length;te++)if(b[te].empty()){var ue=b[te].head,De=or(a.doc,ue.line).text;if(De){if(ue.ch==De.length&&(ue=new Kt(ue.line,ue.ch-1)),ue.ch>0)ue=new Kt(ue.line,ue.ch+1),a.replaceRange(De.charAt(ue.ch-1)+De.charAt(ue.ch-2),Kt(ue.line,ue.ch-2),ue,"+transpose");else if(ue.line>a.doc.first){var qe=or(a.doc,ue.line-1).text;qe&&(ue=new Kt(ue.line,1),a.replaceRange(De.charAt(0)+a.doc.lineSeparator()+qe.charAt(qe.length-1),Kt(ue.line-1,qe.length-1),ue,"+transpose"))}}ne.push(new Fr(ue,ue))}a.setSelections(ne)})},newlineAndIndent:function(a){return oA(a,function(){for(var b=a.listSelections(),ne=b.length-1;ne>=0;ne--)a.replaceRange(a.doc.lineSeparator(),b[ne].anchor,b[ne].head,"+input");b=a.listSelections();for(var te=0;te<b.length;te++)a.indentLine(b[te].from().line,null,!0);TA(a)})},openLine:function(a){return a.replaceSelection(`
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function rh(a,b){var ne=or(a.doc,b),te=Wr(ne);return te!=ne&&(b=rn(te)),tf(!0,a,te,b,1)}function pp(a,b){var ne=or(a.doc,b),te=Qi(ne);return te!=ne&&(b=rn(te)),tf(!0,a,ne,b,-1)}function ih(a,b){var ne=rh(a,b.line),te=or(a.doc,ne.line),ue=Ct(te,a.doc.direction);if(!ue||ue[0].level==0){var De=Math.max(ne.ch,te.text.search(/\S/)),qe=b.line==ne.line&&b.ch<=De&&b.ch;return Kt(ne.line,qe?0:De,ne.sticky)}return ne}function nf(a,b,ne){if(typeof b=="string"&&(b=Gc[b],!b))return!1;a.display.input.ensurePolled();var te=a.display.shift,ue=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),ne&&(a.display.shift=!1),ue=b(a)!=zt}finally{a.display.shift=te,a.state.suppressEdits=!1}return ue}function gp(a,b,ne){for(var te=0;te<a.state.keyMaps.length;te++){var ue=Zc(b,a.state.keyMaps[te],ne,a);if(ue)return ue}return a.options.extraKeys&&Zc(b,a.options.extraKeys,ne,a)||Zc(b,a.options.keyMap,ne,a)}var mp=new _e;function rf(a,b,ne,te){var ue=a.state.keySeq;if(ue){if(Sf(b))return"handled";if(/\'$/.test(b)?a.state.keySeq=null:mp.set(50,function(){a.state.keySeq==ue&&(a.state.keySeq=null,a.display.input.reset())}),Lf(a,ue+" "+b,ne,te))return!0}return Lf(a,b,ne,te)}function Lf(a,b,ne,te){var ue=gp(a,b,te);return ue=="multi"&&(a.state.keySeq=b),ue=="handled"&&Xs(a,"keyHandled",a,b,ne),(ue=="handled"||ue=="multi")&&(un(ne),Fd(a)),!!ue}function Nd(a,b){var ne=$c(b,!0);return ne?b.shiftKey&&!a.state.keySeq?rf(a,"Shift-"+ne,b,function(te){return nf(a,te,!0)})||rf(a,ne,b,function(te){if(typeof te=="string"?/^go[A-Z]/.test(te):te.motion)return nf(a,te)}):rf(a,ne,b,function(te){return nf(a,te)}):!1}function Df(a,b,ne){return rf(a,"'"+ne+"'",b,function(te){return nf(a,te,!0)})}var Od=null;function of(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&(b.curOp.focus=Ne(),!tn(b,a))){ze&&Se<11&&a.keyCode==27&&(a.returnValue=!1);var ne=a.keyCode;b.display.shift=ne==16||a.shiftKey;var te=Nd(b,a);oe&&(Od=te?ne:null,!te&&ne==88&&!gr&&(xe?a.metaKey:a.ctrlKey)&&b.replaceSelection("",null,"cut")),x&&!xe&&!te&&ne==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),ne==18&&!/\bCodeMirror-crosshair\b/.test(b.display.lineDiv.className)&&Cc(b)}}function Cc(a){var b=a.display.lineDiv;je(b,"CodeMirror-crosshair");function ne(te){(te.keyCode==18||!te.altKey)&&(Ge(b,"CodeMirror-crosshair"),wn(document,"keyup",ne),wn(document,"mouseover",ne))}$t(document,"keyup",ne),$t(document,"mouseover",ne)}function oh(a){a.keyCode==16&&(this.doc.sel.shift=!1),tn(this,a)}function ah(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&!(cu(b.display,a)||tn(b,a)||a.ctrlKey&&!a.altKey||xe&&a.metaKey)){var ne=a.keyCode,te=a.charCode;if(oe&&ne==Od){Od=null,un(a);return}if(!(oe&&(!a.which||a.which<10)&&Nd(b,a))){var ue=String.fromCharCode(te==null?ne:te);ue!="\b"&&(Df(b,a,ue)||b.display.input.onKeyPress(a))}}}var Mh=400,ud=function(a,b,ne){this.time=a,this.pos=b,this.button=ne};ud.prototype.compare=function(a,b,ne){return this.time+Mh>a&&gn(b,this.pos)==0&&ne==this.button};var xc,Bc;function Pd(a,b){var ne=+new Date;return Bc&&Bc.compare(ne,a,b)?(xc=Bc=null,"triple"):xc&&xc.compare(ne,a,b)?(Bc=new ud(ne,a,b),xc=null,"double"):(xc=new ud(ne,a,b),Bc=null,"single")}function Ad(a){var b=this,ne=b.display;if(!(tn(b,a)||ne.activeTouch&&ne.input.supportsTouch())){if(ne.input.ensurePolled(),ne.shift=a.shiftKey,cu(ne,a)){Ue||(ne.scroller.draggable=!1,setTimeout(function(){return ne.scroller.draggable=!0},100));return}if(!Mc(b,a)){var te=Oc(b,a),ue=sn(a),De=te?Pd(te,ue):"single";window.focus(),ue==1&&b.state.selectingText&&b.state.selectingText(a),!(te&&Uh(b,ue,te,De,a))&&(ue==1?te?Ls(b,te,De,a):Gt(a)==ne.scroller&&un(a):ue==2?(te&&rs(b.doc,te),setTimeout(function(){return ne.input.focus()},20)):ue==3&&(Re?b.display.input.onContextMenu(a):bf(b)))}}}function Uh(a,b,ne,te,ue){var De="Click";return te=="double"?De="Double"+De:te=="triple"&&(De="Triple"+De),De=(b==1?"Left":b==2?"Middle":"Right")+De,rf(a,Wc(De,ue),ue,function(qe){if(typeof qe=="string"&&(qe=Gc[qe]),!qe)return!1;var vt=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),vt=qe(a,ne)!=zt}finally{a.state.suppressEdits=!1}return vt})}function ps(a,b,ne){var te=a.getOption("configureMouse"),ue=te?te(a,b,ne):{};if(ue.unit==null){var De=Ee?ne.shiftKey&&ne.metaKey:ne.altKey;ue.unit=De?"rectangle":b=="single"?"char":b=="double"?"word":"line"}return(ue.extend==null||a.doc.extend)&&(ue.extend=a.doc.extend||ne.shiftKey),ue.addNew==null&&(ue.addNew=xe?ne.metaKey:ne.ctrlKey),ue.moveOnDrag==null&&(ue.moveOnDrag=!(xe?ne.altKey:ne.ctrlKey)),ue}function Ls(a,b,ne,te){ze?setTimeout(ht(eh,a),0):a.curOp.focus=Ne();var ue=ps(a,ne,te),De=a.doc.sel,qe;a.options.dragDrop&&yn&&!a.isReadOnly()&&ne=="single"&&(qe=De.contains(b))>-1&&(gn((qe=De.ranges[qe]).from(),b)<0||b.xRel>0)&&(gn(qe.to(),b)>0||b.xRel<0)?vu(a,te,b,ue):Qu(a,te,b,ue)}function vu(a,b,ne,te){var ue=a.display,De=!1,qe=Du(a,function(Dt){Ue&&(ue.scroller.draggable=!1),a.state.draggingText=!1,wn(ue.wrapper.ownerDocument,"mouseup",qe),wn(ue.wrapper.ownerDocument,"mousemove",vt),wn(ue.scroller,"dragstart",St),wn(ue.scroller,"drop",qe),De||(un(Dt),te.addNew||rs(a.doc,ne,null,null,te.extend),Ue&&!Oe||ze&&Se==9?setTimeout(function(){ue.wrapper.ownerDocument.body.focus({preventScroll:!0}),ue.input.focus()},20):ue.input.focus())}),vt=function(Dt){De=De||Math.abs(b.clientX-Dt.clientX)+Math.abs(b.clientY-Dt.clientY)>=10},St=function(){return De=!0};Ue&&(ue.scroller.draggable=!0),a.state.draggingText=qe,qe.copy=!te.moveOnDrag,ue.scroller.dragDrop&&ue.scroller.dragDrop(),$t(ue.wrapper.ownerDocument,"mouseup",qe),$t(ue.wrapper.ownerDocument,"mousemove",vt),$t(ue.scroller,"dragstart",St),$t(ue.scroller,"drop",qe),bf(a),setTimeout(function(){return ue.input.focus()},20)}function Hu(a,b,ne){if(ne=="char")return new Fr(b,b);if(ne=="word")return a.findWordAt(b);if(ne=="line")return new Fr(Kt(b.line,0),ur(a.doc,Kt(b.line+1,0)));var te=ne(a,b);return new Fr(te.from,te.to)}function Qu(a,b,ne,te){var ue=a.display,De=a.doc;un(b);var qe,vt,St=De.sel,Dt=St.ranges;if(te.addNew&&!te.extend?(vt=De.sel.contains(ne),vt>-1?qe=Dt[vt]:qe=new Fr(ne,ne)):(qe=De.sel.primary(),vt=De.sel.primIndex),te.unit=="rectangle")te.addNew||(qe=new Fr(ne,ne)),ne=Oc(a,b,!0,!0),vt=-1;else{var Ln=Hu(a,ne,te.unit);te.extend?qe=ss(qe,Ln.anchor,Ln.head,te.extend):qe=Ln}te.addNew?vt==-1?(vt=Dt.length,Oo(De,$i(a,Dt.concat([qe]),vt),{scroll:!1,origin:"*mouse"})):Dt.length>1&&Dt[vt].empty()&&te.unit=="char"&&!te.extend?(Oo(De,$i(a,Dt.slice(0,vt).concat(Dt.slice(vt+1)),0),{scroll:!1,origin:"*mouse"}),St=De.sel):fu(De,vt,qe,Nt):(vt=0,Oo(De,new Dr([qe],0),Nt),St=De.sel);var Hn=ne;function Pr(Fo){if(gn(Hn,Fo)!=0)if(Hn=Fo,te.unit=="rectangle"){for(var Aa=[],_a=a.options.tabSize,xa=We(or(De,ne.line).text,ne.ch,_a),ja=We(or(De,Fo.line).text,Fo.ch,_a),Il=Math.min(xa,ja),zu=Math.max(xa,ja),eu=Math.min(ne.line,Fo.line),yA=Math.min(a.lastLine(),Math.max(ne.line,Fo.line));eu<=yA;eu++){var Ju=or(De,eu).text,_u=pn(Ju,Il,_a);Il==zu?Aa.push(new Fr(Kt(eu,_u),Kt(eu,_u))):Ju.length>_u&&Aa.push(new Fr(Kt(eu,_u),Kt(eu,pn(Ju,zu,_a))))}Aa.length||Aa.push(new Fr(ne,ne)),Oo(De,$i(a,St.ranges.slice(0,vt).concat(Aa),vt),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Fo)}else{var wA=qe,lA=Hu(a,Fo,te.unit),Eo=wA.anchor,zl;gn(lA.anchor,Eo)>0?(zl=lA.head,Eo=hi(wA.from(),lA.anchor)):(zl=lA.anchor,Eo=Yr(wA.to(),lA.head));var tu=St.ranges.slice(0);tu[vt]=cd(a,new Fr(ur(De,Eo),zl)),Oo(De,$i(a,tu,vt),Nt)}}var xr=ue.wrapper.getBoundingClientRect(),xi=0;function Zi(Fo){var Aa=++xi,_a=Oc(a,Fo,!0,te.unit=="rectangle");if(_a)if(gn(_a,Hn)!=0){a.curOp.focus=Ne(),Pr(_a);var xa=_A(ue,De);(_a.line>=xa.to||_a.line<xa.from)&&setTimeout(Du(a,function(){xi==Aa&&Zi(Fo)}),150)}else{var ja=Fo.clientY<xr.top?-20:Fo.clientY>xr.bottom?20:0;ja&&setTimeout(Du(a,function(){xi==Aa&&(ue.scroller.scrollTop+=ja,Zi(Fo))}),50)}}function lo(Fo){a.state.selectingText=!1,xi=1/0,Fo&&(un(Fo),ue.input.focus()),wn(ue.wrapper.ownerDocument,"mousemove",So),wn(ue.wrapper.ownerDocument,"mouseup",Ko),De.history.lastSelOrigin=null}var So=Du(a,function(Fo){Fo.buttons===0||!sn(Fo)?lo(Fo):Zi(Fo)}),Ko=Du(a,lo);a.state.selectingText=Ko,$t(ue.wrapper.ownerDocument,"mousemove",So),$t(ue.wrapper.ownerDocument,"mouseup",Ko)}function cd(a,b){var ne=b.anchor,te=b.head,ue=or(a.doc,ne.line);if(gn(ne,te)==0&&ne.sticky==te.sticky)return b;var De=Ct(ue);if(!De)return b;var qe=Lt(De,ne.ch,ne.sticky),vt=De[qe];if(vt.from!=ne.ch&&vt.to!=ne.ch)return b;var St=qe+(vt.from==ne.ch==(vt.level!=1)?0:1);if(St==0||St==De.length)return b;var Dt;if(te.line!=ne.line)Dt=(te.line-ne.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Ln=Lt(De,te.ch,te.sticky),Hn=Ln-qe||(te.ch-ne.ch)*(vt.level==1?-1:1);Ln==St-1||Ln==St?Dt=Hn<0:Dt=Hn>0}var Pr=De[St+(Dt?-1:0)],xr=Dt==(Pr.level==1),xi=xr?Pr.from:Pr.to,Zi=xr?"after":"before";return ne.ch==xi&&ne.sticky==Zi?b:new Fr(new Kt(ne.line,xi,Zi),te)}function Vc(a,b,ne,te){var ue,De;if(b.touches)ue=b.touches[0].clientX,De=b.touches[0].clientY;else try{ue=b.clientX,De=b.clientY}catch(Pr){return!1}if(ue>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;te&&un(b);var qe=a.display,vt=qe.lineDiv.getBoundingClientRect();if(De>vt.bottom||!En(a,ne))return Wn(b);De-=vt.top-qe.viewOffset;for(var St=0;St<a.display.gutterSpecs.length;++St){var Dt=qe.gutters.childNodes[St];if(Dt&&Dt.getBoundingClientRect().right>=ue){var Ln=fn(a.doc,De),Hn=a.display.gutterSpecs[St];return ln(a,ne,a,Ln,Hn.className,b),Wn(b)}}}function Mc(a,b){return Vc(a,b,"gutterClick",!0)}function dd(a,b){cu(a.display,b)||Xc(a,b)||tn(a,b,"contextmenu")||Re||a.display.input.onContextMenu(b)}function Xc(a,b){return En(a,"gutterContextMenu")?Vc(a,b,"gutterContextMenu",!1):!1}function Rh(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Bl(a)}var fd={toString:function(){return"CodeMirror.Init"}},Vp={},jh={};function gg(a){var b=a.optionHandlers;function ne(te,ue,De,qe){a.defaults[te]=ue,De&&(b[te]=qe?function(vt,St,Dt){Dt!=fd&&De(vt,St,Dt)}:De)}a.defineOption=ne,a.Init=fd,ne("value","",function(te,ue){return te.setValue(ue)},!0),ne("mode",null,function(te,ue){te.doc.modeOption=ue,jo(te)},!0),ne("indentUnit",2,jo,!0),ne("indentWithTabs",!1),ne("smartIndent",!0),ne("tabSize",4,function(te){_o(te),Bl(te),Lu(te)},!0),ne("lineSeparator",null,function(te,ue){if(te.doc.lineSep=ue,!!ue){var De=[],qe=te.doc.first;te.doc.iter(function(St){for(var Dt=0;;){var Ln=St.text.indexOf(ue,Dt);if(Ln==-1)break;Dt=Ln+ue.length,De.push(Kt(qe,Ln))}qe++});for(var vt=De.length-1;vt>=0;vt--)vs(te.doc,ue,De[vt],Kt(De[vt].line,De[vt].ch+ue.length))}}),ne("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(te,ue,De){te.state.specialChars=new RegExp(ue.source+(ue.test(" ")?"":"| "),"g"),De!=fd&&te.refresh()}),ne("specialCharPlaceholder",Ds,function(te){return te.refresh()},!0),ne("electricChars",!0),ne("inputStyle",ye?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ne("spellcheck",!1,function(te,ue){return te.getInputField().spellcheck=ue},!0),ne("autocorrect",!1,function(te,ue){return te.getInputField().autocorrect=ue},!0),ne("autocapitalize",!1,function(te,ue){return te.getInputField().autocapitalize=ue},!0),ne("rtlMoveVisually",!ke),ne("wholeLineUpdateBefore",!0),ne("theme","default",function(te){Rh(te),ar(te)},!0),ne("keyMap","default",function(te,ue,De){var qe=mu(ue),vt=De!=fd&&mu(De);vt&&vt.detach&&vt.detach(te,qe),qe.attach&&qe.attach(te,vt||null)}),ne("extraKeys",null),ne("configureMouse",null),ne("lineWrapping",!1,Xp,!0),ne("gutters",[],function(te,ue){te.display.gutterSpecs=Fn(ue,te.options.lineNumbers),ar(te)},!0),ne("fixedGutter",!0,function(te,ue){te.display.gutters.style.left=ue?Ed(te.display)+"px":"0",te.refresh()},!0),ne("coverGutterNextToScrollbar",!1,function(te){return kc(te)},!0),ne("scrollbarStyle","native",function(te){kh(te),kc(te),te.display.scrollbars.setScrollTop(te.doc.scrollTop),te.display.scrollbars.setScrollLeft(te.doc.scrollLeft)},!0),ne("lineNumbers",!1,function(te,ue){te.display.gutterSpecs=Fn(te.options.gutters,ue),ar(te)},!0),ne("firstLineNumber",1,ar,!0),ne("lineNumberFormatter",function(te){return te},ar,!0),ne("showCursorWhenSelecting",!1,Gu,!0),ne("resetSelectionOnContextMenu",!0),ne("lineWiseCopyCut",!0),ne("pasteLinesPerSelection",!0),ne("selectionsMayTouch",!1),ne("readOnly",!1,function(te,ue){ue=="nocursor"&&($A(te),te.display.input.blur()),te.display.input.readOnlyChanged(ue)}),ne("screenReaderLabel",null,function(te,ue){ue=ue===""?null:ue,te.display.input.screenReaderLabelChanged(ue)}),ne("disableInput",!1,function(te,ue){ue||te.display.input.reset()},!0),ne("dragDrop",!0,mg),ne("allowDropFileTypes",null),ne("cursorBlinkRate",530),ne("cursorScrollMargin",0),ne("cursorHeight",1,Gu,!0),ne("singleCursorHeightPerLine",!0,Gu,!0),ne("workTime",100),ne("workDelay",100),ne("flattenSpans",!0,_o,!0),ne("addModeClass",!1,_o,!0),ne("pollInterval",100),ne("undoDepth",200,function(te,ue){return te.doc.history.undoDepth=ue}),ne("historyEventDelay",1250),ne("viewportMargin",10,function(te){return te.refresh()},!0),ne("maxHighlightLength",1e4,_o,!0),ne("moveInputWithCursor",!0,function(te,ue){ue||te.display.input.resetPosition()}),ne("tabindex",null,function(te,ue){return te.display.input.getField().tabIndex=ue||""}),ne("autofocus",null),ne("direction","ltr",function(te,ue){return te.doc.setDirection(ue)},!0),ne("phrases",null)}function mg(a,b,ne){var te=ne&&ne!=fd;if(!b!=!te){var ue=a.display.dragFunctions,De=b?$t:wn;De(a.display.scroller,"dragstart",ue.start),De(a.display.scroller,"dragenter",ue.enter),De(a.display.scroller,"dragover",ue.over),De(a.display.scroller,"dragleave",ue.leave),De(a.display.scroller,"drop",ue.drop)}}function Xp(a){a.options.lineWrapping?(je(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Ge(a.display.wrapper,"CodeMirror-wrap"),Do(a)),nd(a),Lu(a),Bl(a),setTimeout(function(){return kc(a)},100)}function Hl(a,b){var ne=this;if(!(this instanceof Hl))return new Hl(a,b);this.options=b=b?Bt(b):{},Bt(Vp,b,!1);var te=b.value;typeof te=="string"?te=new cl(te,b.mode,null,b.lineSeparator,b.direction):b.mode&&(te.modeOption=b.mode),this.doc=te;var ue=new Hl.inputStyles[b.inputStyle](this),De=this.display=new qn(a,te,ue,b);De.wrapper.CodeMirror=this,Rh(this),b.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),kh(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new _e,keySeq:null,specialChars:null},b.autofocus&&!ye&&De.input.focus(),ze&&Se<11&&setTimeout(function(){return ne.display.input.reset(!0)},20),Yp(this),ld(),iA(this),this.curOp.forceUpdate=!0,zo(this,te),b.autofocus&&!ye||this.hasFocus()?setTimeout(function(){ne.hasFocus()&&!ne.state.focused&&Cf(ne)},20):$A(this);for(var qe in jh)jh.hasOwnProperty(qe)&&jh[qe](this,b[qe],fd);cn(this),b.finishInit&&b.finishInit(this);for(var vt=0;vt<Hh.length;++vt)Hh[vt](this);yc(this),Ue&&b.lineWrapping&&getComputedStyle(De.lineDiv).textRendering=="optimizelegibility"&&(De.lineDiv.style.textRendering="auto")}Hl.defaults=Vp,Hl.optionHandlers=jh;function Yp(a){var b=a.display;$t(b.scroller,"mousedown",Du(a,Ad)),ze&&Se<11?$t(b.scroller,"dblclick",Du(a,function(St){if(!tn(a,St)){var Dt=Oc(a,St);if(!(!Dt||Mc(a,St)||cu(a.display,St))){un(St);var Ln=a.findWordAt(Dt);rs(a.doc,Ln.anchor,Ln.head)}}})):$t(b.scroller,"dblclick",function(St){return tn(a,St)||un(St)}),$t(b.scroller,"contextmenu",function(St){return dd(a,St)}),$t(b.input.getField(),"contextmenu",function(St){b.scroller.contains(St.target)||dd(a,St)});var ne,te={end:0};function ue(){b.activeTouch&&(ne=setTimeout(function(){return b.activeTouch=null},1e3),te=b.activeTouch,te.end=+new Date)}function De(St){if(St.touches.length!=1)return!1;var Dt=St.touches[0];return Dt.radiusX<=1&&Dt.radiusY<=1}function qe(St,Dt){if(Dt.left==null)return!0;var Ln=Dt.left-St.left,Hn=Dt.top-St.top;return Ln*Ln+Hn*Hn>20*20}$t(b.scroller,"touchstart",function(St){if(!tn(a,St)&&!De(St)&&!Mc(a,St)){b.input.ensurePolled(),clearTimeout(ne);var Dt=+new Date;b.activeTouch={start:Dt,moved:!1,prev:Dt-te.end<=300?te:null},St.touches.length==1&&(b.activeTouch.left=St.touches[0].pageX,b.activeTouch.top=St.touches[0].pageY)}}),$t(b.scroller,"touchmove",function(){b.activeTouch&&(b.activeTouch.moved=!0)}),$t(b.scroller,"touchend",function(St){var Dt=b.activeTouch;if(Dt&&!cu(b,St)&&Dt.left!=null&&!Dt.moved&&new Date-Dt.start<300){var Ln=a.coordsChar(b.activeTouch,"page"),Hn;!Dt.prev||qe(Dt,Dt.prev)?Hn=new Fr(Ln,Ln):!Dt.prev.prev||qe(Dt,Dt.prev.prev)?Hn=a.findWordAt(Ln):Hn=new Fr(Kt(Ln.line,0),ur(a.doc,Kt(Ln.line+1,0))),a.setSelection(Hn.anchor,Hn.head),a.focus(),un(St)}ue()}),$t(b.scroller,"touchcancel",ue),$t(b.scroller,"scroll",function(){b.scroller.clientHeight&&(rA(a,b.scroller.scrollTop),mc(a,b.scroller.scrollLeft,!0),ln(a,"scroll",a))}),$t(b.scroller,"mousewheel",function(St){return jr(a,St)}),$t(b.scroller,"DOMMouseScroll",function(St){return jr(a,St)}),$t(b.wrapper,"scroll",function(){return b.wrapper.scrollTop=b.wrapper.scrollLeft=0}),b.dragFunctions={enter:function(St){tn(a,St)||It(St)},over:function(St){tn(a,St)||(VA(a,St),It(St))},start:function(St){return kA(a,St)},drop:Du(a,bc),leave:function(St){tn(a,St)||Jd(a)}};var vt=b.input.getField();$t(vt,"keyup",function(St){return oh.call(a,St)}),$t(vt,"keydown",Du(a,of)),$t(vt,"keypress",Du(a,ah)),$t(vt,"focus",function(St){return Cf(a,St)}),$t(vt,"blur",function(St){return $A(a,St)})}var Hh=[];Hl.defineInitHook=function(a){return Hh.push(a)};function af(a,b,ne,te){var ue=a.doc,De;ne==null&&(ne="add"),ne=="smart"&&(ue.mode.indent?De=Kn(a,b).state:ne="prev");var qe=a.options.tabSize,vt=or(ue,b),St=We(vt.text,null,qe);vt.stateAfter&&(vt.stateAfter=null);var Dt=vt.text.match(/^\s*/)[0],Ln;if(!te&&!/\S/.test(vt.text))Ln=0,ne="not";else if(ne=="smart"&&(Ln=ue.mode.indent(De,vt.text.slice(Dt.length),vt.text),Ln==zt||Ln>150)){if(!te)return;ne="prev"}ne=="prev"?b>ue.first?Ln=We(or(ue,b-1).text,null,qe):Ln=0:ne=="add"?Ln=St+a.options.indentUnit:ne=="subtract"?Ln=St-a.options.indentUnit:typeof ne=="number"&&(Ln=St+ne),Ln=Math.max(0,Ln);var Hn="",Pr=0;if(a.options.indentWithTabs)for(var xr=Math.floor(Ln/qe);xr;--xr)Pr+=qe,Hn+=" ";if(Pr<Ln&&(Hn+=mn(Ln-Pr)),Hn!=Dt)return vs(ue,Hn,Kt(b,0),Kt(b,Dt.length),"+input"),vt.stateAfter=null,!0;for(var xi=0;xi<ue.sel.ranges.length;xi++){var Zi=ue.sel.ranges[xi];if(Zi.head.line==b&&Zi.head.ch<Dt.length){var lo=Kt(b,Dt.length);fu(ue,xi,new Fr(lo,lo));break}}}var Ec=null;function sh(a){Ec=a}function lh(a,b,ne,te,ue){var De=a.doc;a.display.shift=!1,te||(te=De.sel);var qe=+new Date-200,vt=ue=="paste"||a.state.pasteIncoming>qe,St=Sr(b),Dt=null;if(vt&&te.ranges.length>1)if(Ec&&Ec.text.join(`
`)==b){if(te.ranges.length%Ec.text.length==0){Dt=[];for(var Ln=0;Ln<Ec.text.length;Ln++)Dt.push(De.splitLines(Ec.text[Ln]))}}else St.length==te.ranges.length&&a.options.pasteLinesPerSelection&&(Dt=Cn(St,function(So){return[So]}));for(var Hn=a.curOp.updateInput,Pr=te.ranges.length-1;Pr>=0;Pr--){var xr=te.ranges[Pr],xi=xr.from(),Zi=xr.to();xr.empty()&&(ne&&ne>0?xi=Kt(xi.line,xi.ch-ne):a.state.overwrite&&!vt?Zi=Kt(Zi.line,Math.min(or(De,Zi.line).text.length,Zi.ch+_t(St).length)):vt&&Ec&&Ec.lineWise&&Ec.text.join(`
`)==St.join(`
`)&&(xi=Zi=Kt(xi.line,0)));var lo={from:xi,to:Zi,text:Dt?Dt[Pr%Dt.length]:St,origin:ue||(vt?"paste":a.state.cutIncoming>qe?"cut":"+input")};Ys(a.doc,lo),Xs(a,"inputRead",a,lo)}b&&!vt&&uh(a,b),TA(a),a.curOp.updateInput<2&&(a.curOp.updateInput=Hn),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Nf(a,b){var ne=a.clipboardData&&a.clipboardData.getData("Text");if(ne)return a.preventDefault(),!b.isReadOnly()&&!b.options.disableInput&&oA(b,function(){return lh(b,ne,0,null,"paste")}),!0}function uh(a,b){if(!(!a.options.electricChars||!a.options.smartIndent))for(var ne=a.doc.sel,te=ne.ranges.length-1;te>=0;te--){var ue=ne.ranges[te];if(!(ue.head.ch>100||te&&ne.ranges[te-1].head.line==ue.head.line)){var De=a.getModeAt(ue.head),qe=!1;if(De.electricChars){for(var vt=0;vt<De.electricChars.length;vt++)if(b.indexOf(De.electricChars.charAt(vt))>-1){qe=af(a,ue.head.line,"smart");break}}else De.electricInput&&De.electricInput.test(or(a.doc,ue.head.line).text.slice(0,ue.head.ch))&&(qe=af(a,ue.head.line,"smart"));qe&&Xs(a,"electricInput",a,ue.head.line)}}}function vp(a){for(var b=[],ne=[],te=0;te<a.doc.sel.ranges.length;te++){var ue=a.doc.sel.ranges[te].head.line,De={anchor:Kt(ue,0),head:Kt(ue+1,0)};ne.push(De),b.push(a.getRange(De.anchor,De.head))}return{text:b,ranges:ne}}function yp(a,b,ne,te){a.setAttribute("autocorrect",ne?"":"off"),a.setAttribute("autocapitalize",te?"":"off"),a.setAttribute("spellcheck",!!b)}function vg(){var a=ft("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),b=ft("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ue?a.style.width="1000px":a.setAttribute("wrap","off"),Fe&&(a.style.border="1px solid black"),yp(a),b}function wp(a){var b=a.optionHandlers,ne=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(te,ue){var De=this.options,qe=De[te];De[te]==ue&&te!="mode"||(De[te]=ue,b.hasOwnProperty(te)&&Du(this,b[te])(this,ue,qe),ln(this,"optionChange",this,te))},getOption:function(te){return this.options[te]},getDoc:function(){return this.doc},addKeyMap:function(te,ue){this.state.keyMaps[ue?"push":"unshift"](mu(te))},removeKeyMap:function(te){for(var ue=this.state.keyMaps,De=0;De<ue.length;++De)if(ue[De]==te||ue[De].name==te)return ue.splice(De,1),!0},addOverlay:aA(function(te,ue){var De=te.token?te:a.getMode(this.options,te);if(De.startState)throw new Error("Overlays may not be stateful.");an(this.state.overlays,{mode:De,modeSpec:te,opaque:ue&&ue.opaque,priority:ue&&ue.priority||0},function(qe){return qe.priority}),this.state.modeGen++,Lu(this)}),removeOverlay:aA(function(te){for(var ue=this.state.overlays,De=0;De<ue.length;++De){var qe=ue[De].modeSpec;if(qe==te||typeof te=="string"&&qe.name==te){ue.splice(De,1),this.state.modeGen++,Lu(this);return}}}),indentLine:aA(function(te,ue,De){typeof ue!="string"&&typeof ue!="number"&&(ue==null?ue=this.options.smartIndent?"smart":"prev":ue=ue?"add":"subtract"),Pt(this.doc,te)&&af(this,te,ue,De)}),indentSelection:aA(function(te){for(var ue=this.doc.sel.ranges,De=-1,qe=0;qe<ue.length;qe++){var vt=ue[qe];if(vt.empty())vt.head.line>De&&(af(this,vt.head.line,te,!0),De=vt.head.line,qe==this.doc.sel.primIndex&&TA(this));else{var St=vt.from(),Dt=vt.to(),Ln=Math.max(De,St.line);De=Math.min(this.lastLine(),Dt.line-(Dt.ch?0:1))+1;for(var Hn=Ln;Hn<De;++Hn)af(this,Hn,te);var Pr=this.doc.sel.ranges;St.ch==0&&ue.length==Pr.length&&Pr[qe].from().ch>0&&fu(this.doc,qe,new Fr(St,Pr[qe].to()),tt)}}}),getTokenAt:function(te,ue){return zr(this,te,ue)},getLineTokens:function(te,ue){return zr(this,Kt(te),ue,!0)},getTokenTypeAt:function(te){te=ur(this.doc,te);var ue=Ei(this,or(this.doc,te.line)),De=0,qe=(ue.length-1)/2,vt=te.ch,St;if(vt==0)St=ue[2];else for(;;){var Dt=De+qe>>1;if((Dt?ue[Dt*2-1]:0)>=vt)qe=Dt;else if(ue[Dt*2+1]<vt)De=Dt+1;else{St=ue[Dt*2+2];break}}var Ln=St?St.indexOf("overlay "):-1;return Ln<0?St:Ln==0?null:St.slice(0,Ln-1)},getModeAt:function(te){var ue=this.doc.mode;return ue.innerMode?a.innerMode(ue,this.getTokenAt(te).state).mode:ue},getHelper:function(te,ue){return this.getHelpers(te,ue)[0]},getHelpers:function(te,ue){var De=[];if(!ne.hasOwnProperty(ue))return De;var qe=ne[ue],vt=this.getModeAt(te);if(typeof vt[ue]=="string")qe[vt[ue]]&&De.push(qe[vt[ue]]);else if(vt[ue])for(var St=0;St<vt[ue].length;St++){var Dt=qe[vt[ue][St]];Dt&&De.push(Dt)}else vt.helperType&&qe[vt.helperType]?De.push(qe[vt.helperType]):qe[vt.name]&&De.push(qe[vt.name]);for(var Ln=0;Ln<qe._global.length;Ln++){var Hn=qe._global[Ln];Hn.pred(vt,this)&&ot(De,Hn.val)==-1&&De.push(Hn.val)}return De},getStateAfter:function(te,ue){var De=this.doc;return te=rr(De,te==null?De.first+De.size-1:te),Kn(this,te+1,ue).state},cursorCoords:function(te,ue){var De,qe=this.doc.sel.primary();return te==null?De=qe.head:typeof te=="object"?De=ur(this.doc,te):De=te?qe.from():qe.to(),Mu(this,De,ue||"page")},charCoords:function(te,ue){return Ul(this,ur(this.doc,te),ue||"page")},coordsChar:function(te,ue){return te=td(this,te,ue||"page"),Ms(this,te.left,te.top)},lineAtHeight:function(te,ue){return te=td(this,{top:te,left:0},ue||"page").top,fn(this.doc,te+this.display.viewOffset)},heightAtLine:function(te,ue,De){var qe=!1,vt;if(typeof te=="number"){var St=this.doc.first+this.doc.size-1;te<this.doc.first?te=this.doc.first:te>St&&(te=St,qe=!0),vt=or(this.doc,te)}else vt=te;return Nc(this,vt,{top:0,left:0},ue||"page",De||qe).top+(qe?this.doc.height-Ao(vt):0)},defaultTextHeight:function(){return mA(this.display)},defaultCharWidth:function(){return tc(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(te,ue,De,qe,vt){var St=this.display;te=Mu(this,ur(this.doc,te));var Dt=te.bottom,Ln=te.left;if(ue.style.position="absolute",ue.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ue),St.sizer.appendChild(ue),qe=="over")Dt=te.top;else if(qe=="above"||qe=="near"){var Hn=Math.max(St.wrapper.clientHeight,this.doc.height),Pr=Math.max(St.sizer.clientWidth,St.lineSpace.clientWidth);(qe=="above"||te.bottom+ue.offsetHeight>Hn)&&te.top>ue.offsetHeight?Dt=te.top-ue.offsetHeight:te.bottom+ue.offsetHeight<=Hn&&(Dt=te.bottom),Ln+ue.offsetWidth>Pr&&(Ln=Pr-ue.offsetWidth)}ue.style.top=Dt+"px",ue.style.left=ue.style.right="",vt=="right"?(Ln=St.sizer.clientWidth-ue.offsetWidth,ue.style.right="0px"):(vt=="left"?Ln=0:vt=="middle"&&(Ln=(St.sizer.clientWidth-ue.offsetWidth)/2),ue.style.left=Ln+"px"),De&&Kp(this,{left:Ln,top:Dt,right:Ln+ue.offsetWidth,bottom:Dt+ue.offsetHeight})},triggerOnKeyDown:aA(of),triggerOnKeyPress:aA(ah),triggerOnKeyUp:oh,triggerOnMouseDown:aA(Ad),execCommand:function(te){if(Gc.hasOwnProperty(te))return Gc[te].call(null,this)},triggerElectric:aA(function(te){uh(this,te)}),findPosH:function(te,ue,De,qe){var vt=1;ue<0&&(vt=-1,ue=-ue);for(var St=ur(this.doc,te),Dt=0;Dt<ue&&(St=Ah(this.doc,St,vt,De,qe),!St.hitSide);++Dt);return St},moveH:aA(function(te,ue){var De=this;this.extendSelectionsBy(function(qe){return De.display.shift||De.doc.extend||qe.empty()?Ah(De.doc,qe.head,te,ue,De.options.rtlMoveVisually):te<0?qe.from():qe.to()},Ut)}),deleteH:aA(function(te,ue){var De=this.doc.sel,qe=this.doc;De.somethingSelected()?qe.replaceSelection("",null,"+delete"):MA(this,function(vt){var St=Ah(qe,vt.head,te,ue,!1);return te<0?{from:St,to:vt.head}:{from:vt.head,to:St}})}),findPosV:function(te,ue,De,qe){var vt=1,St=qe;ue<0&&(vt=-1,ue=-ue);for(var Dt=ur(this.doc,te),Ln=0;Ln<ue;++Ln){var Hn=Mu(this,Dt,"div");if(St==null?St=Hn.left:Hn.left=St,Dt=Jp(this,Hn,vt,De),Dt.hitSide)break}return Dt},moveV:aA(function(te,ue){var De=this,qe=this.doc,vt=[],St=!this.display.shift&&!qe.extend&&qe.sel.somethingSelected();if(qe.extendSelectionsBy(function(Ln){if(St)return te<0?Ln.from():Ln.to();var Hn=Mu(De,Ln.head,"div");Ln.goalColumn!=null&&(Hn.left=Ln.goalColumn),vt.push(Hn.left);var Pr=Jp(De,Hn,te,ue);return ue=="page"&&Ln==qe.sel.primary()&&th(De,Ul(De,Pr,"div").top-Hn.top),Pr},Ut),vt.length)for(var Dt=0;Dt<qe.sel.ranges.length;Dt++)qe.sel.ranges[Dt].goalColumn=vt[Dt]}),findWordAt:function(te){var ue=this.doc,De=or(ue,te.line).text,qe=te.ch,vt=te.ch;if(De){var St=this.getHelper(te,"wordChars");(te.sticky=="before"||vt==De.length)&&qe?--qe:++vt;for(var Dt=De.charAt(qe),Ln=se(Dt,St)?function(Hn){return se(Hn,St)}:/\s/.test(Dt)?function(Hn){return/\s/.test(Hn)}:function(Hn){return!/\s/.test(Hn)&&!se(Hn)};qe>0&&Ln(De.charAt(qe-1));)--qe;for(;vt<De.length&&Ln(De.charAt(vt));)++vt}return new Fr(Kt(te.line,qe),Kt(te.line,vt))},toggleOverwrite:function(te){te!=null&&te==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?je(this.display.cursorDiv,"CodeMirror-overwrite"):Ge(this.display.cursorDiv,"CodeMirror-overwrite"),ln(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ne()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:aA(function(te,ue){id(this,te,ue)}),getScrollInfo:function(){var te=this.display.scroller;return{left:te.scrollLeft,top:te.scrollTop,height:te.scrollHeight-au(this)-this.display.barHeight,width:te.scrollWidth-au(this)-this.display.barWidth,clientHeight:ms(this),clientWidth:Ml(this)}},scrollIntoView:aA(function(te,ue){te==null?(te={from:this.doc.sel.primary().head,to:null},ue==null&&(ue=this.options.cursorScrollMargin)):typeof te=="number"?te={from:Kt(te,0),to:null}:te.from==null&&(te={from:te,to:null}),te.to||(te.to=te.from),te.margin=ue||0,te.from.line!=null?Zp(this,te):IA(this,te.from,te.to,te.margin)}),setSize:aA(function(te,ue){var De=this,qe=function(St){return typeof St=="number"||/^\d+$/.test(String(St))?St+"px":St};te!=null&&(this.display.wrapper.style.width=qe(te)),ue!=null&&(this.display.wrapper.style.height=qe(ue)),this.options.lineWrapping&&xl(this);var vt=this.display.viewFrom;this.doc.iter(vt,this.display.viewTo,function(St){if(St.widgets){for(var Dt=0;Dt<St.widgets.length;Dt++)if(St.widgets[Dt].noHScroll){Pc(De,vt,"widget");break}}++vt}),this.curOp.forceUpdate=!0,ln(this,"refresh",this)}),operation:function(te){return oA(this,te)},startOperation:function(){return iA(this)},endOperation:function(){return yc(this)},refresh:aA(function(){var te=this.display.cachedTextHeight;Lu(this),this.curOp.forceUpdate=!0,Bl(this),id(this,this.doc.scrollLeft,this.doc.scrollTop),wt(this.display),(te==null||Math.abs(te-mA(this.display))>.5||this.options.lineWrapping)&&nd(this),ln(this,"refresh",this)}),swapDoc:aA(function(te){var ue=this.doc;return ue.cm=null,this.state.selectingText&&this.state.selectingText(),zo(this,te),Bl(this),this.display.input.reset(),id(this,te.scrollLeft,te.scrollTop),this.curOp.forceScroll=!0,Xs(this,"swapDoc",this,ue),ue}),phrase:function(te){var ue=this.options.phrases;return ue&&Object.prototype.hasOwnProperty.call(ue,te)?ue[te]:te},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Rt(a),a.registerHelper=function(te,ue,De){ne.hasOwnProperty(te)||(ne[te]=a[te]={_global:[]}),ne[te][ue]=De},a.registerGlobalHelper=function(te,ue,De,qe){a.registerHelper(te,ue,qe),ne[te]._global.push({pred:De,val:qe})}}function Ah(a,b,ne,te,ue){var De=b,qe=ne,vt=or(a,b.line),St=ue&&a.direction=="rtl"?-ne:ne;function Dt(){var Ko=b.line+St;return Ko<a.first||Ko>=a.first+a.size?!1:(b=new Kt(Ko,b.ch,b.sticky),vt=or(a,Ko))}function Ln(Ko){var Fo;if(te=="codepoint"){var Aa=vt.text.charCodeAt(b.ch+(te>0?0:-1));isNaN(Aa)?Fo=null:Fo=new Kt(b.line,Math.max(0,Math.min(vt.text.length,b.ch+ne*(Aa>=55296&&Aa<56320?2:1))),-ne)}else ue?Fo=If(a.cm,vt,b,ne):Fo=Ff(vt,b,ne);if(Fo==null)if(!Ko&&Dt())b=tf(ue,a.cm,vt,b.line,St);else return!1;else b=Fo;return!0}if(te=="char"||te=="codepoint")Ln();else if(te=="column")Ln(!0);else if(te=="word"||te=="group")for(var Hn=null,Pr=te=="group",xr=a.cm&&a.cm.getHelper(b,"wordChars"),xi=!0;!(ne<0&&!Ln(!xi));xi=!1){var Zi=vt.text.charAt(b.ch)||`
`,lo=se(Zi,xr)?"w":Pr&&Zi==`
`?"n":!Pr||/\s/.test(Zi)?null:"p";if(Pr&&!xi&&!lo&&(lo="s"),Hn&&Hn!=lo){ne<0&&(ne=1,Ln(),b.sticky="after");break}if(lo&&(Hn=lo),ne>0&&!Ln(!xi))break}var So=pu(a,b,De,qe,!0);return On(De,So)&&(So.hitSide=!0),So}function Jp(a,b,ne,te){var ue=a.doc,De=b.left,qe;if(te=="page"){var vt=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),St=Math.max(vt-.5*mA(a.display),3);qe=(ne>0?b.bottom:b.top)+ne*St}else te=="line"&&(qe=ne>0?b.bottom+3:b.top-3);for(var Dt;Dt=Ms(a,De,qe),!!Dt.outside;){if(ne<0?qe<=0:qe>=ue.height){Dt.hitSide=!0;break}qe+=ne*5}return Dt}var wl=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new _e,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};wl.prototype.init=function(a){var b=this,ne=this,te=ne.cm,ue=ne.div=a.lineDiv;yp(ue,te.options.spellcheck,te.options.autocorrect,te.options.autocapitalize);function De(vt){for(var St=vt.target;St;St=St.parentNode){if(St==ue)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(St.className))break}return!1}$t(ue,"paste",function(vt){!De(vt)||tn(te,vt)||Nf(vt,te)||Se<=11&&setTimeout(Du(te,function(){return b.updateFromDOM()}),20)}),$t(ue,"compositionstart",function(vt){b.composing={data:vt.data,done:!1}}),$t(ue,"compositionupdate",function(vt){b.composing||(b.composing={data:vt.data,done:!1})}),$t(ue,"compositionend",function(vt){b.composing&&(vt.data!=b.composing.data&&b.readFromDOMSoon(),b.composing.done=!0)}),$t(ue,"touchstart",function(){return ne.forceCompositionEnd()}),$t(ue,"input",function(){b.composing||b.readFromDOMSoon()});function qe(vt){if(!(!De(vt)||tn(te,vt))){if(te.somethingSelected())sh({lineWise:!1,text:te.getSelections()}),vt.type=="cut"&&te.replaceSelection("",null,"cut");else if(te.options.lineWiseCopyCut){var St=vp(te);sh({lineWise:!0,text:St.text}),vt.type=="cut"&&te.operation(function(){te.setSelections(St.ranges,0,tt),te.replaceSelection("",null,"cut")})}else return;if(vt.clipboardData){vt.clipboardData.clearData();var Dt=Ec.text.join(`
`);if(vt.clipboardData.setData("Text",Dt),vt.clipboardData.getData("Text")==Dt){vt.preventDefault();return}}var Ln=vg(),Hn=Ln.firstChild;te.display.lineSpace.insertBefore(Ln,te.display.lineSpace.firstChild),Hn.value=Ec.text.join(`
`);var Pr=document.activeElement;it(Hn),setTimeout(function(){te.display.lineSpace.removeChild(Ln),Pr.focus(),Pr==ue&&ne.showPrimarySelection()},50)}}$t(ue,"copy",qe),$t(ue,"cut",qe)},wl.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},wl.prototype.prepareSelection=function(){var a=pc(this.cm,!1);return a.focus=document.activeElement==this.div,a},wl.prototype.showSelection=function(a,b){!a||!this.cm.display.view.length||((a.focus||b)&&this.showPrimarySelection(),this.showMultipleSelections(a))},wl.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},wl.prototype.showPrimarySelection=function(){var a=this.getSelection(),b=this.cm,ne=b.doc.sel.primary(),te=ne.from(),ue=ne.to();if(b.display.viewTo==b.display.viewFrom||te.line>=b.display.viewTo||ue.line<b.display.viewFrom){a.removeAllRanges();return}var De=Yc(b,a.anchorNode,a.anchorOffset),qe=Yc(b,a.focusNode,a.focusOffset);if(!(De&&!De.bad&&qe&&!qe.bad&&gn(hi(De,qe),te)==0&&gn(Yr(De,qe),ue)==0)){var vt=b.display.view,St=te.line>=b.display.viewFrom&&_d(b,te)||{node:vt[0].measure.map[2],offset:0},Dt=ue.line<b.display.viewTo&&_d(b,ue);if(!Dt){var Ln=vt[vt.length-1].measure,Hn=Ln.maps?Ln.maps[Ln.maps.length-1]:Ln.map;Dt={node:Hn[Hn.length-1],offset:Hn[Hn.length-2]-Hn[Hn.length-3]}}if(!St||!Dt){a.removeAllRanges();return}var Pr=a.rangeCount&&a.getRangeAt(0),xr;try{xr=He(St.node,St.offset,Dt.offset,Dt.node)}catch(xi){}xr&&(!x&&b.state.focused?(a.collapse(St.node,St.offset),xr.collapsed||(a.removeAllRanges(),a.addRange(xr))):(a.removeAllRanges(),a.addRange(xr)),Pr&&a.anchorNode==null?a.addRange(Pr):x&&this.startGracePeriod()),this.rememberSelection()}},wl.prototype.startGracePeriod=function(){var a=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){a.gracePeriod=!1,a.selectionChanged()&&a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)},wl.prototype.showMultipleSelections=function(a){at(this.cm.display.cursorDiv,a.cursors),at(this.cm.display.selectionDiv,a.selection)},wl.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},wl.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var b=a.getRangeAt(0).commonAncestorContainer;return pt(this.div,b)},wl.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},wl.prototype.blur=function(){this.div.blur()},wl.prototype.getField=function(){return this.div},wl.prototype.supportsTouch=function(){return!0},wl.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():oA(this.cm,function(){return a.cm.curOp.selectionChanged=!0});function b(){a.cm.state.focused&&(a.pollSelection(),a.polling.set(a.cm.options.pollInterval,b))}this.polling.set(this.cm.options.pollInterval,b)},wl.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},wl.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),b=this.cm;if(Te&&Ce&&this.cm.display.gutterSpecs.length&&yg(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ne=Yc(b,a.anchorNode,a.anchorOffset),te=Yc(b,a.focusNode,a.focusOffset);ne&&te&&oA(b,function(){Oo(b.doc,bi(ne,te),tt),(ne.bad||te.bad)&&(b.curOp.selectionChanged=!0)})}}},wl.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,b=a.display,ne=a.doc.sel.primary(),te=ne.from(),ue=ne.to();if(te.ch==0&&te.line>a.firstLine()&&(te=Kt(te.line-1,or(a.doc,te.line-1).length)),ue.ch==or(a.doc,ue.line).text.length&&ue.line<a.lastLine()&&(ue=Kt(ue.line+1,0)),te.line<b.viewFrom||ue.line>b.viewTo-1)return!1;var De,qe,vt;te.line==b.viewFrom||(De=hc(a,te.line))==0?(qe=rn(b.view[0].line),vt=b.view[0].node):(qe=rn(b.view[De].line),vt=b.view[De-1].node.nextSibling);var St=hc(a,ue.line),Dt,Ln;if(St==b.view.length-1?(Dt=b.viewTo-1,Ln=b.lineDiv.lastChild):(Dt=rn(b.view[St+1].line)-1,Ln=b.view[St+1].node.previousSibling),!vt)return!1;for(var Hn=a.doc.splitLines(Td(a,vt,Ln,qe,Dt)),Pr=Hr(a.doc,Kt(qe,0),Kt(Dt,or(a.doc,Dt).text.length));Hn.length>1&&Pr.length>1;)if(_t(Hn)==_t(Pr))Hn.pop(),Pr.pop(),Dt--;else if(Hn[0]==Pr[0])Hn.shift(),Pr.shift(),qe++;else break;for(var xr=0,xi=0,Zi=Hn[0],lo=Pr[0],So=Math.min(Zi.length,lo.length);xr<So&&Zi.charCodeAt(xr)==lo.charCodeAt(xr);)++xr;for(var Ko=_t(Hn),Fo=_t(Pr),Aa=Math.min(Ko.length-(Hn.length==1?xr:0),Fo.length-(Pr.length==1?xr:0));xi<Aa&&Ko.charCodeAt(Ko.length-xi-1)==Fo.charCodeAt(Fo.length-xi-1);)++xi;if(Hn.length==1&&Pr.length==1&&qe==te.line)for(;xr&&xr>te.ch&&Ko.charCodeAt(Ko.length-xi-1)==Fo.charCodeAt(Fo.length-xi-1);)xr--,xi++;Hn[Hn.length-1]=Ko.slice(0,Ko.length-xi).replace(/^\u200b+/,""),Hn[0]=Hn[0].slice(xr).replace(/\u200b+$/,"");var _a=Kt(qe,xr),xa=Kt(Dt,Pr.length?_t(Pr).length-xi:0);if(Hn.length>1||Hn[0]||gn(_a,xa))return vs(a.doc,Hn,_a,xa,"+input"),!0},wl.prototype.ensurePolled=function(){this.forceCompositionEnd()},wl.prototype.reset=function(){this.forceCompositionEnd()},wl.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},wl.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},wl.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&oA(this.cm,function(){return Lu(a.cm)})},wl.prototype.setUneditable=function(a){a.contentEditable="false"},wl.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Du(this.cm,lh)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},wl.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},wl.prototype.onContextMenu=function(){},wl.prototype.resetPosition=function(){},wl.prototype.needsContentAttribute=!0;function _d(a,b){var ne=Cu(a,b.line);if(!ne||ne.hidden)return null;var te=or(a.doc,b.line),ue=ml(ne,te,b.line),De=Ct(te,a.doc.direction),qe="left";if(De){var vt=Lt(De,b.ch);qe=vt%2?"right":"left"}var St=ku(ue.map,b.ch,qe);return St.offset=St.collapse=="right"?St.end:St.start,St}function yg(a){for(var b=a;b;b=b.parentNode)if(/CodeMirror-gutter-wrapper/.test(b.className))return!0;return!1}function Ql(a,b){return b&&(a.bad=!0),a}function Td(a,b,ne,te,ue){var De="",qe=!1,vt=a.doc.lineSeparator(),St=!1;function Dt(xr){return function(xi){return xi.id==xr}}function Ln(){qe&&(De+=vt,St&&(De+=vt),qe=St=!1)}function Hn(xr){xr&&(Ln(),De+=xr)}function Pr(xr){if(xr.nodeType==1){var xi=xr.getAttribute("cm-text");if(xi){Hn(xi);return}var Zi=xr.getAttribute("cm-marker"),lo;if(Zi){var So=a.findMarks(Kt(te,0),Kt(ue+1,0),Dt(+Zi));So.length&&(lo=So[0].find(0))&&Hn(Hr(a.doc,lo.from,lo.to).join(vt));return}if(xr.getAttribute("contenteditable")=="false")return;var Ko=/^(pre|div|p|li|table|br)$/i.test(xr.nodeName);if(!/^br$/i.test(xr.nodeName)&&xr.textContent.length==0)return;Ko&&Ln();for(var Fo=0;Fo<xr.childNodes.length;Fo++)Pr(xr.childNodes[Fo]);/^(pre|p)$/i.test(xr.nodeName)&&(St=!0),Ko&&(qe=!0)}else xr.nodeType==3&&Hn(xr.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Pr(b),b!=ne;)b=b.nextSibling,St=!1;return De}function Yc(a,b,ne){var te;if(b==a.display.lineDiv){if(te=a.display.lineDiv.childNodes[ne],!te)return Ql(a.clipPos(Kt(a.display.viewTo-1)),!0);b=null,ne=0}else for(te=b;;te=te.parentNode){if(!te||te==a.display.lineDiv)return null;if(te.parentNode&&te.parentNode==a.display.lineDiv)break}for(var ue=0;ue<a.display.view.length;ue++){var De=a.display.view[ue];if(De.node==te)return hd(De,b,ne)}}function hd(a,b,ne){var te=a.text.firstChild,ue=!1;if(!b||!pt(te,b))return Ql(Kt(rn(a.line),0),!0);if(b==te&&(ue=!0,b=te.childNodes[ne],ne=0,!b)){var De=a.rest?_t(a.rest):a.line;return Ql(Kt(rn(De),De.text.length),ue)}var qe=b.nodeType==3?b:null,vt=b;for(!qe&&b.childNodes.length==1&&b.firstChild.nodeType==3&&(qe=b.firstChild,ne&&(ne=qe.nodeValue.length));vt.parentNode!=te;)vt=vt.parentNode;var St=a.measure,Dt=St.maps;function Ln(lo,So,Ko){for(var Fo=-1;Fo<(Dt?Dt.length:0);Fo++)for(var Aa=Fo<0?St.map:Dt[Fo],_a=0;_a<Aa.length;_a+=3){var xa=Aa[_a+2];if(xa==lo||xa==So){var ja=rn(Fo<0?a.line:a.rest[Fo]),Il=Aa[_a]+Ko;return(Ko<0||xa!=lo)&&(Il=Aa[_a+(Ko?1:0)]),Kt(ja,Il)}}}var Hn=Ln(qe,vt,ne);if(Hn)return Ql(Hn,ue);for(var Pr=vt.nextSibling,xr=qe?qe.nodeValue.length-ne:0;Pr;Pr=Pr.nextSibling){if(Hn=Ln(Pr,Pr.firstChild,0),Hn)return Ql(Kt(Hn.line,Hn.ch-xr),ue);xr+=Pr.textContent.length}for(var xi=vt.previousSibling,Zi=ne;xi;xi=xi.previousSibling){if(Hn=Ln(xi,xi.firstChild,-1),Hn)return Ql(Kt(Hn.line,Hn.ch+Zi),ue);Zi+=xi.textContent.length}}var Fl=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new _e,this.hasSelection=!1,this.composing=null};Fl.prototype.init=function(a){var b=this,ne=this,te=this.cm;this.createField(a);var ue=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),Fe&&(ue.style.width="0px"),$t(ue,"input",function(){ze&&Se>=9&&b.hasSelection&&(b.hasSelection=null),ne.poll()}),$t(ue,"paste",function(qe){tn(te,qe)||Nf(qe,te)||(te.state.pasteIncoming=+new Date,ne.fastPoll())});function De(qe){if(!tn(te,qe)){if(te.somethingSelected())sh({lineWise:!1,text:te.getSelections()});else if(te.options.lineWiseCopyCut){var vt=vp(te);sh({lineWise:!0,text:vt.text}),qe.type=="cut"?te.setSelections(vt.ranges,null,tt):(ne.prevInput="",ue.value=vt.text.join(`
`),it(ue))}else return;qe.type=="cut"&&(te.state.cutIncoming=+new Date)}}$t(ue,"cut",De),$t(ue,"copy",De),$t(a.scroller,"paste",function(qe){if(!(cu(a,qe)||tn(te,qe))){if(!ue.dispatchEvent){te.state.pasteIncoming=+new Date,ne.focus();return}var vt=new Event("paste");vt.clipboardData=qe.clipboardData,ue.dispatchEvent(vt)}}),$t(a.lineSpace,"selectstart",function(qe){cu(a,qe)||un(qe)}),$t(ue,"compositionstart",function(){var qe=te.getCursor("from");ne.composing&&ne.composing.range.clear(),ne.composing={start:qe,range:te.markText(qe,te.getCursor("to"),{className:"CodeMirror-composing"})}}),$t(ue,"compositionend",function(){ne.composing&&(ne.poll(),ne.composing.range.clear(),ne.composing=null)})},Fl.prototype.createField=function(a){this.wrapper=vg(),this.textarea=this.wrapper.firstChild},Fl.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Fl.prototype.prepareSelection=function(){var a=this.cm,b=a.display,ne=a.doc,te=pc(a);if(a.options.moveInputWithCursor){var ue=Mu(a,ne.sel.primary().head,"div"),De=b.wrapper.getBoundingClientRect(),qe=b.lineDiv.getBoundingClientRect();te.teTop=Math.max(0,Math.min(b.wrapper.clientHeight-10,ue.top+qe.top-De.top)),te.teLeft=Math.max(0,Math.min(b.wrapper.clientWidth-10,ue.left+qe.left-De.left))}return te},Fl.prototype.showSelection=function(a){var b=this.cm,ne=b.display;at(ne.cursorDiv,a.cursors),at(ne.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Fl.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var b=this.cm;if(b.somethingSelected()){this.prevInput="";var ne=b.getSelection();this.textarea.value=ne,b.state.focused&&it(this.textarea),ze&&Se>=9&&(this.hasSelection=ne)}else a||(this.prevInput=this.textarea.value="",ze&&Se>=9&&(this.hasSelection=null))}},Fl.prototype.getField=function(){return this.textarea},Fl.prototype.supportsTouch=function(){return!1},Fl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ye||Ne()!=this.textarea))try{this.textarea.focus()}catch(a){}},Fl.prototype.blur=function(){this.textarea.blur()},Fl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Fl.prototype.receivedFocus=function(){this.slowPoll()},Fl.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Fl.prototype.fastPoll=function(){var a=!1,b=this;b.pollingFast=!0;function ne(){var te=b.poll();!te&&!a?(a=!0,b.polling.set(60,ne)):(b.pollingFast=!1,b.slowPoll())}b.polling.set(20,ne)},Fl.prototype.poll=function(){var a=this,b=this.cm,ne=this.textarea,te=this.prevInput;if(this.contextMenuPending||!b.state.focused||Jn(ne)&&!te&&!this.composing||b.isReadOnly()||b.options.disableInput||b.state.keySeq)return!1;var ue=ne.value;if(ue==te&&!b.somethingSelected())return!1;if(ze&&Se>=9&&this.hasSelection===ue||xe&&/[\uf700-\uf7ff]/.test(ue))return b.display.input.reset(),!1;if(b.doc.sel==b.display.selForContextMenu){var De=ue.charCodeAt(0);if(De==8203&&!te&&(te="\u200B"),De==8666)return this.reset(),this.cm.execCommand("undo")}for(var qe=0,vt=Math.min(te.length,ue.length);qe<vt&&te.charCodeAt(qe)==ue.charCodeAt(qe);)++qe;return oA(b,function(){lh(b,ue.slice(qe),te.length-qe,null,a.composing?"*compose":null),ue.length>1e3||ue.indexOf(`
`)>-1?ne.value=a.prevInput="":a.prevInput=ue,a.composing&&(a.composing.range.clear(),a.composing.range=b.markText(a.composing.start,b.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Fl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Fl.prototype.onKeyPress=function(){ze&&Se>=9&&(this.hasSelection=null),this.fastPoll()},Fl.prototype.onContextMenu=function(a){var b=this,ne=b.cm,te=ne.display,ue=b.textarea;b.contextMenuPending&&b.contextMenuPending();var De=Oc(ne,a),qe=te.scroller.scrollTop;if(!De||oe)return;var vt=ne.options.resetSelectionOnContextMenu;vt&&ne.doc.sel.contains(De)==-1&&Du(ne,Oo)(ne.doc,bi(De),tt);var St=ue.style.cssText,Dt=b.wrapper.style.cssText,Ln=b.wrapper.offsetParent.getBoundingClientRect();b.wrapper.style.cssText="position: static",ue.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-Ln.top-5)+"px; left: "+(a.clientX-Ln.left-5)+`px;
z-index: 1000; background: `+(ze?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Hn;Ue&&(Hn=window.scrollY),te.input.focus(),Ue&&window.scrollTo(null,Hn),te.input.reset(),ne.somethingSelected()||(ue.value=b.prevInput=" "),b.contextMenuPending=xr,te.selForContextMenu=ne.doc.sel,clearTimeout(te.detectingSelectAll);function Pr(){if(ue.selectionStart!=null){var Zi=ne.somethingSelected(),lo="\u200B"+(Zi?ue.value:"");ue.value="\u21DA",ue.value=lo,b.prevInput=Zi?"":"\u200B",ue.selectionStart=1,ue.selectionEnd=lo.length,te.selForContextMenu=ne.doc.sel}}function xr(){if(b.contextMenuPending==xr&&(b.contextMenuPending=!1,b.wrapper.style.cssText=Dt,ue.style.cssText=St,ze&&Se<9&&te.scrollbars.setScrollTop(te.scroller.scrollTop=qe),ue.selectionStart!=null)){(!ze||ze&&Se<9)&&Pr();var Zi=0,lo=function(){te.selForContextMenu==ne.doc.sel&&ue.selectionStart==0&&ue.selectionEnd>0&&b.prevInput=="\u200B"?Du(ne,qo)(ne):Zi++<10?te.detectingSelectAll=setTimeout(lo,500):(te.selForContextMenu=null,te.input.reset())};te.detectingSelectAll=setTimeout(lo,200)}}if(ze&&Se>=9&&Pr(),Re){It(a);var xi=function(){wn(window,"mouseup",xi),setTimeout(xr,20)};$t(window,"mouseup",xi)}else setTimeout(xr,50)},Fl.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Fl.prototype.setUneditable=function(){},Fl.prototype.needsContentAttribute=!1;function ch(a,b){if(b=b?Bt(b):{},b.value=a.value,!b.tabindex&&a.tabIndex&&(b.tabindex=a.tabIndex),!b.placeholder&&a.placeholder&&(b.placeholder=a.placeholder),b.autofocus==null){var ne=Ne();b.autofocus=ne==a||a.getAttribute("autofocus")!=null&&ne==document.body}function te(){a.value=vt.getValue()}var ue;if(a.form&&($t(a.form,"submit",te),!b.leaveSubmitMethodAlone)){var De=a.form;ue=De.submit;try{var qe=De.submit=function(){te(),De.submit=ue,De.submit(),De.submit=qe}}catch(St){}}b.finishInit=function(St){St.save=te,St.getTextArea=function(){return a},St.toTextArea=function(){St.toTextArea=isNaN,te(),a.parentNode.removeChild(St.getWrapperElement()),a.style.display="",a.form&&(wn(a.form,"submit",te),!b.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=ue))}},a.style.display="none";var vt=Hl(function(St){return a.parentNode.insertBefore(St,a.nextSibling)},b);return vt}function pd(a){a.off=wn,a.on=$t,a.wheelEventPixels=Rr,a.Doc=cl,a.splitLines=Sr,a.countColumn=We,a.findColumn=pn,a.isWordChar=ee,a.Pass=zt,a.signal=ln,a.Line=ga,a.changeEnd=qi,a.scrollbarModel=Id,a.Pos=Kt,a.cmpPos=gn,a.modes=pi,a.mimeModes=Lr,a.resolveMode=mr,a.getMode=Qr,a.modeExtensions=ii,a.extendMode=ai,a.copyState=oi,a.startState=ji,a.innerMode=li,a.commands=Gc,a.keyMap=Bu,a.keyName=$c,a.isModifierKey=Sf,a.lookupKey=Zc,a.normalizeKeyMap=ju,a.StringStream=ki,a.SharedTextMarker=Al,a.TextMarker=Pu,a.LineWidget=Fs,a.e_preventDefault=un,a.e_stopPropagation=Dn,a.e_stop=It,a.addClass=je,a.contains=pt,a.rmClass=Ge,a.keyNames=hs}gg(Hl),wp(Hl);var qp="iter insert remove copy getEditor constructor".split(" ");for(var Qh in cl.prototype)cl.prototype.hasOwnProperty(Qh)&&ot(qp,Qh)<0&&(Hl.prototype[Qh]=function(a){return function(){return a.apply(this.doc,arguments)}}(cl.prototype[Qh]));return Rt(cl),Hl.inputStyles={textarea:Fl,contenteditable:wl},Hl.defineMode=function(a){!Hl.defaults.mode&&a!="null"&&(Hl.defaults.mode=a),tr.apply(this,arguments)},Hl.defineMIME=Xn,Hl.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Hl.defineMIME("text/plain","null"),Hl.defineExtension=function(a,b){Hl.prototype[a]=b},Hl.defineDocExtension=function(a,b){cl.prototype[a]=b},Hl.fromTextArea=ch,pd(Hl),Hl.version="5.58.2",Hl})},25419:function(Vn,Mt,ae){(function(x){x(ae(89780),ae(15525),ae(98101))})(function(x){"use strict";x.defineMode("markdown",function(ct,Le){var Je=x.getMode(ct,"text/html"),ze=Je.name=="null";function Se(We){if(x.findModeByName){var _e=x.findModeByName(We);_e&&(We=_e.mime||_e.mimes[0])}var ot=x.getMode(ct,We);return ot.name=="null"?null:ot}Le.highlightFormatting===void 0&&(Le.highlightFormatting=!1),Le.maxBlockquoteDepth===void 0&&(Le.maxBlockquoteDepth=0),Le.taskLists===void 0&&(Le.taskLists=!1),Le.strikethrough===void 0&&(Le.strikethrough=!1),Le.emoji===void 0&&(Le.emoji=!1),Le.fencedCodeBlockHighlighting===void 0&&(Le.fencedCodeBlockHighlighting=!0),Le.fencedCodeBlockDefaultMode===void 0&&(Le.fencedCodeBlockDefaultMode="text/plain"),Le.xml===void 0&&(Le.xml=!0),Le.tokenTypeOverrides===void 0&&(Le.tokenTypeOverrides={});var Ue={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var fe in Ue)Ue.hasOwnProperty(fe)&&Le.tokenTypeOverrides[fe]&&(Ue[fe]=Le.tokenTypeOverrides[fe]);var Ce=/^([*\-_])(?:\s*\1){2,}\s*$/,oe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Oe=/^\[(x| )\](?=\s)/i,ve=Le.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Me=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Fe=/^[^#!\[\]*_\\<>` "'(~:]+/,Te=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ye=/^\s*\[[^\]]+?\]:.*$/,xe=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,Ee=" ";function ke(We,_e,ot){return _e.f=_e.inline=ot,ot(We,_e)}function Ke(We,_e,ot){return _e.f=_e.block=ot,ot(We,_e)}function Qe(We){return!We||!/\S/.test(We.string)}function Re(We){if(We.linkTitle=!1,We.linkHref=!1,We.linkText=!1,We.em=!1,We.strong=!1,We.strikethrough=!1,We.quote=0,We.indentedCode=!1,We.f==Ge){var _e=ze;if(!_e){var ot=x.innerMode(Je,We.htmlState);_e=ot.mode.name=="xml"&&ot.state.tagStart===null&&!ot.state.context&&ot.state.tokenize.isInText}_e&&(We.f=bt,We.block=et,We.htmlState=null)}return We.trailingSpace=0,We.trailingSpaceNewLine=!1,We.prevLine=We.thisLine,We.thisLine={stream:null},null}function et(We,_e){var ot=We.column()===_e.indentation,Zt=Qe(_e.prevLine.stream),zt=_e.indentedCode,tt=_e.prevLine.hr,Nt=_e.list!==!1,Ut=(_e.listStack[_e.listStack.length-1]||0)+3;_e.indentedCode=!1;var pn=_e.indentation;if(_e.indentationDiff===null&&(_e.indentationDiff=_e.indentation,Nt)){for(_e.list=null;pn<_e.listStack[_e.listStack.length-1];)_e.listStack.pop(),_e.listStack.length?_e.indentation=_e.listStack[_e.listStack.length-1]:_e.list=!1;_e.list!==!1&&(_e.indentationDiff=pn-_e.listStack[_e.listStack.length-1])}var kt=!Zt&&!tt&&!_e.prevLine.header&&(!Nt||!zt)&&!_e.prevLine.fencedCodeEnd,mn=(_e.list===!1||tt||Zt)&&_e.indentation<=Ut&&We.match(Ce),_t=null;if(_e.indentationDiff>=4&&(zt||_e.prevLine.fencedCodeEnd||_e.prevLine.header||Zt))return We.skipToEnd(),_e.indentedCode=!0,Ue.code;if(We.eatSpace())return null;if(ot&&_e.indentation<=Ut&&(_t=We.match(ve))&&_t[1].length<=6)return _e.quote=0,_e.header=_t[1].length,_e.thisLine.header=!0,Le.highlightFormatting&&(_e.formatting="header"),_e.f=_e.inline,at(_e);if(_e.indentation<=Ut&&We.eat(">"))return _e.quote=ot?1:_e.quote+1,Le.highlightFormatting&&(_e.formatting="quote"),We.eatSpace(),at(_e);if(!mn&&!_e.setext&&ot&&_e.indentation<=Ut&&(_t=We.match(oe))){var Cn=_t[1]?"ol":"ul";return _e.indentation=pn+We.current().length,_e.list=!0,_e.quote=0,_e.listStack.push(_e.indentation),_e.em=!1,_e.strong=!1,_e.code=!1,_e.strikethrough=!1,Le.taskLists&&We.match(Oe,!1)&&(_e.taskList=!0),_e.f=_e.inline,Le.highlightFormatting&&(_e.formatting=["list","list-"+Cn]),at(_e)}else{if(ot&&_e.indentation<=Ut&&(_t=We.match(Te,!0)))return _e.quote=0,_e.fencedEndRE=new RegExp(_t[1]+"+ *$"),_e.localMode=Le.fencedCodeBlockHighlighting&&Se(_t[2]||Le.fencedCodeBlockDefaultMode),_e.localMode&&(_e.localState=x.startState(_e.localMode)),_e.f=_e.block=ut,Le.highlightFormatting&&(_e.formatting="code-block"),_e.code=-1,at(_e);if(_e.setext||(!kt||!Nt)&&!_e.quote&&_e.list===!1&&!_e.code&&!mn&&!ye.test(We.string)&&(_t=We.lookAhead(1))&&(_t=_t.match(Me)))return _e.setext?(_e.header=_e.setext,_e.setext=0,We.skipToEnd(),Le.highlightFormatting&&(_e.formatting="header")):(_e.header=_t[0].charAt(0)=="="?1:2,_e.setext=_e.header),_e.thisLine.header=!0,_e.f=_e.inline,at(_e);if(mn)return We.skipToEnd(),_e.hr=!0,_e.thisLine.hr=!0,Ue.hr;if(We.peek()==="[")return ke(We,_e,Ot)}return ke(We,_e,_e.inline)}function Ge(We,_e){var ot=Je.token(We,_e.htmlState);if(!ze){var Zt=x.innerMode(Je,_e.htmlState);(Zt.mode.name=="xml"&&Zt.state.tagStart===null&&!Zt.state.context&&Zt.state.tokenize.isInText||_e.md_inside&&We.current().indexOf(">")>-1)&&(_e.f=bt,_e.block=et,_e.htmlState=null)}return ot}function ut(We,_e){var ot=_e.listStack[_e.listStack.length-1]||0,Zt=_e.indentation<ot,zt=ot+3;if(_e.fencedEndRE&&_e.indentation<=zt&&(Zt||We.match(_e.fencedEndRE))){Le.highlightFormatting&&(_e.formatting="code-block");var tt;return Zt||(tt=at(_e)),_e.localMode=_e.localState=null,_e.block=et,_e.f=bt,_e.fencedEndRE=null,_e.code=0,_e.thisLine.fencedCodeEnd=!0,Zt?Ke(We,_e,_e.block):tt}else return _e.localMode?_e.localMode.token(We,_e.localState):(We.skipToEnd(),Ue.code)}function at(We){var _e=[];if(We.formatting){_e.push(Ue.formatting),typeof We.formatting=="string"&&(We.formatting=[We.formatting]);for(var ot=0;ot<We.formatting.length;ot++)_e.push(Ue.formatting+"-"+We.formatting[ot]),We.formatting[ot]==="header"&&_e.push(Ue.formatting+"-"+We.formatting[ot]+"-"+We.header),We.formatting[ot]==="quote"&&(!Le.maxBlockquoteDepth||Le.maxBlockquoteDepth>=We.quote?_e.push(Ue.formatting+"-"+We.formatting[ot]+"-"+We.quote):_e.push("error"))}if(We.taskOpen)return _e.push("meta"),_e.length?_e.join(" "):null;if(We.taskClosed)return _e.push("property"),_e.length?_e.join(" "):null;if(We.linkHref?_e.push(Ue.linkHref,"url"):(We.strong&&_e.push(Ue.strong),We.em&&_e.push(Ue.em),We.strikethrough&&_e.push(Ue.strikethrough),We.emoji&&_e.push(Ue.emoji),We.linkText&&_e.push(Ue.linkText),We.code&&_e.push(Ue.code),We.image&&_e.push(Ue.image),We.imageAltText&&_e.push(Ue.imageAltText,"link"),We.imageMarker&&_e.push(Ue.imageMarker)),We.header&&_e.push(Ue.header,Ue.header+"-"+We.header),We.quote&&(_e.push(Ue.quote),!Le.maxBlockquoteDepth||Le.maxBlockquoteDepth>=We.quote?_e.push(Ue.quote+"-"+We.quote):_e.push(Ue.quote+"-"+Le.maxBlockquoteDepth)),We.list!==!1){var Zt=(We.listStack.length-1)%3;Zt?Zt===1?_e.push(Ue.list2):_e.push(Ue.list3):_e.push(Ue.list1)}return We.trailingSpaceNewLine?_e.push("trailing-space-new-line"):We.trailingSpace&&_e.push("trailing-space-"+(We.trailingSpace%2?"a":"b")),_e.length?_e.join(" "):null}function ft(We,_e){if(We.match(Fe,!0))return at(_e)}function bt(We,_e){var ot=_e.text(We,_e);if(typeof ot!="undefined")return ot;if(_e.list)return _e.list=null,at(_e);if(_e.taskList){var Zt=We.match(Oe,!0)[1]===" ";return Zt?_e.taskOpen=!0:_e.taskClosed=!0,Le.highlightFormatting&&(_e.formatting="task"),_e.taskList=!1,at(_e)}if(_e.taskOpen=!1,_e.taskClosed=!1,_e.header&&We.match(/^#+$/,!0))return Le.highlightFormatting&&(_e.formatting="header"),at(_e);var zt=We.next();if(_e.linkTitle){_e.linkTitle=!1;var tt=zt;zt==="("&&(tt=")"),tt=(tt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Nt="^\\s*(?:[^"+tt+"\\\\]+|\\\\\\\\|\\\\.)"+tt;if(We.match(new RegExp(Nt),!0))return Ue.linkHref}if(zt==="`"){var Ut=_e.formatting;Le.highlightFormatting&&(_e.formatting="code"),We.eatWhile("`");var pn=We.current().length;if(_e.code==0&&(!_e.quote||pn==1))return _e.code=pn,at(_e);if(pn==_e.code){var kt=at(_e);return _e.code=0,kt}else return _e.formatting=Ut,at(_e)}else if(_e.code)return at(_e);if(zt==="\\"&&(We.next(),Le.highlightFormatting)){var mn=at(_e),_t=Ue.formatting+"-escape";return mn?mn+" "+_t:_t}if(zt==="!"&&We.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return _e.imageMarker=!0,_e.image=!0,Le.highlightFormatting&&(_e.formatting="image"),at(_e);if(zt==="["&&_e.imageMarker&&We.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return _e.imageMarker=!1,_e.imageAltText=!0,Le.highlightFormatting&&(_e.formatting="image"),at(_e);if(zt==="]"&&_e.imageAltText){Le.highlightFormatting&&(_e.formatting="image");var mn=at(_e);return _e.imageAltText=!1,_e.image=!1,_e.inline=_e.f=pt,mn}if(zt==="["&&!_e.image)return _e.linkText&&We.match(/^.*?\]/)||(_e.linkText=!0,Le.highlightFormatting&&(_e.formatting="link")),at(_e);if(zt==="]"&&_e.linkText){Le.highlightFormatting&&(_e.formatting="link");var mn=at(_e);return _e.linkText=!1,_e.inline=_e.f=We.match(/\(.*?\)| ?\[.*?\]/,!1)?pt:bt,mn}if(zt==="<"&&We.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){_e.f=_e.inline=He,Le.highlightFormatting&&(_e.formatting="link");var mn=at(_e);return mn?mn+=" ":mn="",mn+Ue.linkInline}if(zt==="<"&&We.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){_e.f=_e.inline=He,Le.highlightFormatting&&(_e.formatting="link");var mn=at(_e);return mn?mn+=" ":mn="",mn+Ue.linkEmail}if(Le.xml&&zt==="<"&&We.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Cn=We.string.indexOf(">",We.pos);if(Cn!=-1){var an=We.string.substring(We.start,Cn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(an)&&(_e.md_inside=!0)}return We.backUp(1),_e.htmlState=x.startState(Je),Ke(We,_e,Ge)}if(Le.xml&&zt==="<"&&We.match(/^\/\w*?>/))return _e.md_inside=!1,"tag";if(zt==="*"||zt==="_"){for(var de=1,pe=We.pos==1?" ":We.string.charAt(We.pos-2);de<3&&We.eat(zt);)de++;var ie=We.peek()||" ",ee=!/\s/.test(ie)&&(!xe.test(ie)||/\s/.test(pe)||xe.test(pe)),se=!/\s/.test(pe)&&(!xe.test(pe)||/\s/.test(ie)||xe.test(ie)),le=null,Be=null;if(de%2&&(!_e.em&&ee&&(zt==="*"||!se||xe.test(pe))?le=!0:_e.em==zt&&se&&(zt==="*"||!ee||xe.test(ie))&&(le=!1)),de>1&&(!_e.strong&&ee&&(zt==="*"||!se||xe.test(pe))?Be=!0:_e.strong==zt&&se&&(zt==="*"||!ee||xe.test(ie))&&(Be=!1)),Be!=null||le!=null){Le.highlightFormatting&&(_e.formatting=le==null?"strong":Be==null?"em":"strong em"),le===!0&&(_e.em=zt),Be===!0&&(_e.strong=zt);var kt=at(_e);return le===!1&&(_e.em=!1),Be===!1&&(_e.strong=!1),kt}}else if(zt===" "&&(We.eat("*")||We.eat("_"))){if(We.peek()===" ")return at(_e);We.backUp(1)}if(Le.strikethrough){if(zt==="~"&&We.eatWhile(zt)){if(_e.strikethrough){Le.highlightFormatting&&(_e.formatting="strikethrough");var kt=at(_e);return _e.strikethrough=!1,kt}else if(We.match(/^[^\s]/,!1))return _e.strikethrough=!0,Le.highlightFormatting&&(_e.formatting="strikethrough"),at(_e)}else if(zt===" "&&We.match(/^~~/,!0)){if(We.peek()===" ")return at(_e);We.backUp(2)}}if(Le.emoji&&zt===":"&&We.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){_e.emoji=!0,Le.highlightFormatting&&(_e.formatting="emoji");var $e=at(_e);return _e.emoji=!1,$e}return zt===" "&&(We.match(/^ +$/,!1)?_e.trailingSpace++:_e.trailingSpace&&(_e.trailingSpaceNewLine=!0)),at(_e)}function He(We,_e){var ot=We.next();if(ot===">"){_e.f=_e.inline=bt,Le.highlightFormatting&&(_e.formatting="link");var Zt=at(_e);return Zt?Zt+=" ":Zt="",Zt+Ue.linkInline}return We.match(/^[^>]+/,!0),Ue.linkInline}function pt(We,_e){if(We.eatSpace())return null;var ot=We.next();return ot==="("||ot==="["?(_e.f=_e.inline=je(ot==="("?")":"]"),Le.highlightFormatting&&(_e.formatting="link-string"),_e.linkHref=!0,at(_e)):"error"}var Ne={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function je(We){return function(_e,ot){var Zt=_e.next();if(Zt===We){ot.f=ot.inline=bt,Le.highlightFormatting&&(ot.formatting="link-string");var zt=at(ot);return ot.linkHref=!1,zt}return _e.match(Ne[We]),ot.linkHref=!0,at(ot)}}function Ot(We,_e){return We.match(/^([^\]\\]|\\.)*\]:/,!1)?(_e.f=it,We.next(),Le.highlightFormatting&&(_e.formatting="link"),_e.linkText=!0,at(_e)):ke(We,_e,bt)}function it(We,_e){if(We.match(/^\]:/,!0)){_e.f=_e.inline=ht,Le.highlightFormatting&&(_e.formatting="link");var ot=at(_e);return _e.linkText=!1,ot}return We.match(/^([^\]\\]|\\.)+/,!0),Ue.linkText}function ht(We,_e){return We.eatSpace()?null:(We.match(/^[^\s]+/,!0),We.peek()===void 0?_e.linkTitle=!0:We.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),_e.f=_e.inline=bt,Ue.linkHref+" url")}var Bt={startState:function(){return{f:et,prevLine:{stream:null},thisLine:{stream:null},block:et,htmlState:null,indentation:0,inline:bt,text:ft,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(We){return{f:We.f,prevLine:We.prevLine,thisLine:We.thisLine,block:We.block,htmlState:We.htmlState&&x.copyState(Je,We.htmlState),indentation:We.indentation,localMode:We.localMode,localState:We.localMode?x.copyState(We.localMode,We.localState):null,inline:We.inline,text:We.text,formatting:!1,linkText:We.linkText,linkTitle:We.linkTitle,linkHref:We.linkHref,code:We.code,em:We.em,strong:We.strong,strikethrough:We.strikethrough,emoji:We.emoji,header:We.header,setext:We.setext,hr:We.hr,taskList:We.taskList,list:We.list,listStack:We.listStack.slice(0),quote:We.quote,indentedCode:We.indentedCode,trailingSpace:We.trailingSpace,trailingSpaceNewLine:We.trailingSpaceNewLine,md_inside:We.md_inside,fencedEndRE:We.fencedEndRE}},token:function(We,_e){if(_e.formatting=!1,We!=_e.thisLine.stream){if(_e.header=0,_e.hr=!1,We.match(/^\s*$/,!0))return Re(_e),null;if(_e.prevLine=_e.thisLine,_e.thisLine={stream:We},_e.taskList=!1,_e.trailingSpace=0,_e.trailingSpaceNewLine=!1,!_e.localState&&(_e.f=_e.block,_e.f!=Ge)){var ot=We.match(/^\s*/,!0)[0].replace(/\t/g,Ee).length;if(_e.indentation=ot,_e.indentationDiff=null,ot>0)return null}}return _e.f(We,_e)},innerMode:function(We){return We.block==Ge?{state:We.htmlState,mode:Je}:We.localState?{state:We.localState,mode:We.localMode}:{state:We,mode:Bt}},indent:function(We,_e,ot){return We.block==Ge&&Je.indent?Je.indent(We.htmlState,_e,ot):We.localState&&We.localMode.indent?We.localMode.indent(We.localState,_e,ot):x.Pass},blankLine:Re,getType:at,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Bt},"xml"),x.defineMIME("text/markdown","markdown"),x.defineMIME("text/x-markdown","markdown")})},98101:function(Vn,Mt,ae){(function(x){x(ae(89780))})(function(x){"use strict";x.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var ct=0;ct<x.modeInfo.length;ct++){var Le=x.modeInfo[ct];Le.mimes&&(Le.mime=Le.mimes[0])}x.findModeByMIME=function(Je){Je=Je.toLowerCase();for(var ze=0;ze<x.modeInfo.length;ze++){var Se=x.modeInfo[ze];if(Se.mime==Je)return Se;if(Se.mimes){for(var Ue=0;Ue<Se.mimes.length;Ue++)if(Se.mimes[Ue]==Je)return Se}}if(/\+xml$/.test(Je))return x.findModeByMIME("application/xml");if(/\+json$/.test(Je))return x.findModeByMIME("application/json")},x.findModeByExtension=function(Je){Je=Je.toLowerCase();for(var ze=0;ze<x.modeInfo.length;ze++){var Se=x.modeInfo[ze];if(Se.ext){for(var Ue=0;Ue<Se.ext.length;Ue++)if(Se.ext[Ue]==Je)return Se}}},x.findModeByFileName=function(Je){for(var ze=0;ze<x.modeInfo.length;ze++){var Se=x.modeInfo[ze];if(Se.file&&Se.file.test(Je))return Se}var Ue=Je.lastIndexOf("."),fe=Ue>-1&&Je.substring(Ue+1,Je.length);if(fe)return x.findModeByExtension(fe)},x.findModeByName=function(Je){Je=Je.toLowerCase();for(var ze=0;ze<x.modeInfo.length;ze++){var Se=x.modeInfo[ze];if(Se.name.toLowerCase()==Je)return Se;if(Se.alias){for(var Ue=0;Ue<Se.alias.length;Ue++)if(Se.alias[Ue].toLowerCase()==Je)return Se}}}})},67549:function(Vn,Mt,ae){(function(x){x(ae(89780))})(function(x){"use strict";x.defineMode("stex",function(ct,Le){"use strict";function Je(Fe,Te){Fe.cmdState.push(Te)}function ze(Fe){return Fe.cmdState.length>0?Fe.cmdState[Fe.cmdState.length-1]:null}function Se(Fe){var Te=Fe.cmdState.pop();Te&&Te.closeBracket()}function Ue(Fe){for(var Te=Fe.cmdState,ye=Te.length-1;ye>=0;ye--){var xe=Te[ye];if(xe.name!="DEFAULT")return xe}return{styleIdentifier:function(){return null}}}function fe(Fe,Te,ye){return function(){this.name=Fe,this.bracketNo=0,this.style=Te,this.styles=ye,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ce={};Ce.importmodule=fe("importmodule","tag",["string","builtin"]),Ce.documentclass=fe("documentclass","tag",["","atom"]),Ce.usepackage=fe("usepackage","tag",["atom"]),Ce.begin=fe("begin","tag",["atom"]),Ce.end=fe("end","tag",["atom"]),Ce.label=fe("label","tag",["atom"]),Ce.ref=fe("ref","tag",["atom"]),Ce.eqref=fe("eqref","tag",["atom"]),Ce.cite=fe("cite","tag",["atom"]),Ce.bibitem=fe("bibitem","tag",["atom"]),Ce.Bibitem=fe("Bibitem","tag",["atom"]),Ce.RBibitem=fe("RBibitem","tag",["atom"]),Ce.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function oe(Fe,Te){Fe.f=Te}function Oe(Fe,Te){var ye;if(Fe.match(/^\\[a-zA-Z@]+/)){var xe=Fe.current().slice(1);return ye=Ce.hasOwnProperty(xe)?Ce[xe]:Ce.DEFAULT,ye=new ye,Je(Te,ye),oe(Te,Me),ye.style}if(Fe.match(/^\\[$&%#{}_]/)||Fe.match(/^\\[,;!\/\\]/))return"tag";if(Fe.match("\\["))return oe(Te,function(ke,Ke){return ve(ke,Ke,"\\]")}),"keyword";if(Fe.match("\\("))return oe(Te,function(ke,Ke){return ve(ke,Ke,"\\)")}),"keyword";if(Fe.match("$$"))return oe(Te,function(ke,Ke){return ve(ke,Ke,"$$")}),"keyword";if(Fe.match("$"))return oe(Te,function(ke,Ke){return ve(ke,Ke,"$")}),"keyword";var Ee=Fe.next();if(Ee=="%")return Fe.skipToEnd(),"comment";if(Ee=="}"||Ee=="]"){if(ye=ze(Te),ye)ye.closeBracket(Ee),oe(Te,Me);else return"error";return"bracket"}else return Ee=="{"||Ee=="["?(ye=Ce.DEFAULT,ye=new ye,Je(Te,ye),"bracket"):/\d/.test(Ee)?(Fe.eatWhile(/[\w.%]/),"atom"):(Fe.eatWhile(/[\w\-_]/),ye=Ue(Te),ye.name=="begin"&&(ye.argument=Fe.current()),ye.styleIdentifier())}function ve(Fe,Te,ye){if(Fe.eatSpace())return null;if(ye&&Fe.match(ye))return oe(Te,Oe),"keyword";if(Fe.match(/^\\[a-zA-Z@]+/))return"tag";if(Fe.match(/^[a-zA-Z]+/))return"variable-2";if(Fe.match(/^\\[$&%#{}_]/)||Fe.match(/^\\[,;!\/]/)||Fe.match(/^[\^_&]/))return"tag";if(Fe.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Fe.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var xe=Fe.next();return xe=="{"||xe=="}"||xe=="["||xe=="]"||xe=="("||xe==")"?"bracket":xe=="%"?(Fe.skipToEnd(),"comment"):"error"}function Me(Fe,Te){var ye=Fe.peek(),xe;return ye=="{"||ye=="["?(xe=ze(Te),xe.openBracket(ye),Fe.eat(ye),oe(Te,Oe),"bracket"):/[ \t\r]/.test(ye)?(Fe.eat(ye),null):(oe(Te,Oe),Se(Te),Oe(Fe,Te))}return{startState:function(){var Fe=Le.inMathMode?function(Te,ye){return ve(Te,ye)}:Oe;return{cmdState:[],f:Fe}},copyState:function(Fe){return{cmdState:Fe.cmdState.slice(),f:Fe.f}},token:function(Fe,Te){return Te.f(Fe,Te)},blankLine:function(Fe){Fe.f=Oe,Fe.cmdState.length=0},lineComment:"%"}}),x.defineMIME("text/x-stex","stex"),x.defineMIME("text/x-latex","stex")})},15525:function(Vn,Mt,ae){(function(x){x(ae(89780))})(function(x){"use strict";var ct={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},Le={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};x.defineMode("xml",function(Je,ze){var Se=Je.indentUnit,Ue={},fe=ze.htmlMode?ct:Le;for(var Ce in fe)Ue[Ce]=fe[Ce];for(var Ce in ze)Ue[Ce]=ze[Ce];var oe,Oe;function ve(He,pt){function Ne(it){return pt.tokenize=it,it(He,pt)}var je=He.next();if(je=="<")return He.eat("!")?He.eat("[")?He.match("CDATA[")?Ne(Te("atom","]]>")):null:He.match("--")?Ne(Te("comment","-->")):He.match("DOCTYPE",!0,!0)?(He.eatWhile(/[\w\._\-]/),Ne(ye(1))):null:He.eat("?")?(He.eatWhile(/[\w\._\-]/),pt.tokenize=Te("meta","?>"),"meta"):(oe=He.eat("/")?"closeTag":"openTag",pt.tokenize=Me,"tag bracket");if(je=="&"){var Ot;return He.eat("#")?He.eat("x")?Ot=He.eatWhile(/[a-fA-F\d]/)&&He.eat(";"):Ot=He.eatWhile(/[\d]/)&&He.eat(";"):Ot=He.eatWhile(/[\w\.\-:]/)&&He.eat(";"),Ot?"atom":"error"}else return He.eatWhile(/[^&<]/),null}ve.isInText=!0;function Me(He,pt){var Ne=He.next();if(Ne==">"||Ne=="/"&&He.eat(">"))return pt.tokenize=ve,oe=Ne==">"?"endTag":"selfcloseTag","tag bracket";if(Ne=="=")return oe="equals",null;if(Ne=="<"){pt.tokenize=ve,pt.state=Ke,pt.tagName=pt.tagStart=null;var je=pt.tokenize(He,pt);return je?je+" tag error":"tag error"}else return/[\'\"]/.test(Ne)?(pt.tokenize=Fe(Ne),pt.stringStartCol=He.column(),pt.tokenize(He,pt)):(He.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Fe(He){var pt=function(Ne,je){for(;!Ne.eol();)if(Ne.next()==He){je.tokenize=Me;break}return"string"};return pt.isInAttribute=!0,pt}function Te(He,pt){return function(Ne,je){for(;!Ne.eol();){if(Ne.match(pt)){je.tokenize=ve;break}Ne.next()}return He}}function ye(He){return function(pt,Ne){for(var je;(je=pt.next())!=null;){if(je=="<")return Ne.tokenize=ye(He+1),Ne.tokenize(pt,Ne);if(je==">")if(He==1){Ne.tokenize=ve;break}else return Ne.tokenize=ye(He-1),Ne.tokenize(pt,Ne)}return"meta"}}function xe(He,pt,Ne){this.prev=He.context,this.tagName=pt,this.indent=He.indented,this.startOfLine=Ne,(Ue.doNotIndent.hasOwnProperty(pt)||He.context&&He.context.noIndent)&&(this.noIndent=!0)}function Ee(He){He.context&&(He.context=He.context.prev)}function ke(He,pt){for(var Ne;;){if(!He.context||(Ne=He.context.tagName,!Ue.contextGrabbers.hasOwnProperty(Ne)||!Ue.contextGrabbers[Ne].hasOwnProperty(pt)))return;Ee(He)}}function Ke(He,pt,Ne){return He=="openTag"?(Ne.tagStart=pt.column(),Qe):He=="closeTag"?Re:Ke}function Qe(He,pt,Ne){return He=="word"?(Ne.tagName=pt.current(),Oe="tag",ut):Ue.allowMissingTagName&&He=="endTag"?(Oe="tag bracket",ut(He,pt,Ne)):(Oe="error",Qe)}function Re(He,pt,Ne){if(He=="word"){var je=pt.current();return Ne.context&&Ne.context.tagName!=je&&Ue.implicitlyClosed.hasOwnProperty(Ne.context.tagName)&&Ee(Ne),Ne.context&&Ne.context.tagName==je||Ue.matchClosing===!1?(Oe="tag",et):(Oe="tag error",Ge)}else return Ue.allowMissingTagName&&He=="endTag"?(Oe="tag bracket",et(He,pt,Ne)):(Oe="error",Ge)}function et(He,pt,Ne){return He!="endTag"?(Oe="error",et):(Ee(Ne),Ke)}function Ge(He,pt,Ne){return Oe="error",et(He,pt,Ne)}function ut(He,pt,Ne){if(He=="word")return Oe="attribute",at;if(He=="endTag"||He=="selfcloseTag"){var je=Ne.tagName,Ot=Ne.tagStart;return Ne.tagName=Ne.tagStart=null,He=="selfcloseTag"||Ue.autoSelfClosers.hasOwnProperty(je)?ke(Ne,je):(ke(Ne,je),Ne.context=new xe(Ne,je,Ot==Ne.indented)),Ke}return Oe="error",ut}function at(He,pt,Ne){return He=="equals"?ft:(Ue.allowMissing||(Oe="error"),ut(He,pt,Ne))}function ft(He,pt,Ne){return He=="string"?bt:He=="word"&&Ue.allowUnquoted?(Oe="string",ut):(Oe="error",ut(He,pt,Ne))}function bt(He,pt,Ne){return He=="string"?bt:ut(He,pt,Ne)}return{startState:function(He){var pt={tokenize:ve,state:Ke,indented:He||0,tagName:null,tagStart:null,context:null};return He!=null&&(pt.baseIndent=He),pt},token:function(He,pt){if(!pt.tagName&&He.sol()&&(pt.indented=He.indentation()),He.eatSpace())return null;oe=null;var Ne=pt.tokenize(He,pt);return(Ne||oe)&&Ne!="comment"&&(Oe=null,pt.state=pt.state(oe||Ne,He,pt),Oe&&(Ne=Oe=="error"?Ne+" error":Oe)),Ne},indent:function(He,pt,Ne){var je=He.context;if(He.tokenize.isInAttribute)return He.tagStart==He.indented?He.stringStartCol+1:He.indented+Se;if(je&&je.noIndent)return x.Pass;if(He.tokenize!=Me&&He.tokenize!=ve)return Ne?Ne.match(/^(\s*)/)[0].length:0;if(He.tagName)return Ue.multilineTagIndentPastTag!==!1?He.tagStart+He.tagName.length+2:He.tagStart+Se*(Ue.multilineTagIndentFactor||1);if(Ue.alignCDATA&&/<!\[CDATA\[/.test(pt))return 0;var Ot=pt&&/^<(\/)?([\w_:\.-]*)/.exec(pt);if(Ot&&Ot[1])for(;je;)if(je.tagName==Ot[2]){je=je.prev;break}else if(Ue.implicitlyClosed.hasOwnProperty(je.tagName))je=je.prev;else break;else if(Ot)for(;je;){var it=Ue.contextGrabbers[je.tagName];if(it&&it.hasOwnProperty(Ot[2]))je=je.prev;else break}for(;je&&je.prev&&!je.startOfLine;)je=je.prev;return je?je.indent+Se:He.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ue.htmlMode?"html":"xml",helperType:Ue.htmlMode?"html":"xml",skipAttribute:function(He){He.state==ft&&(He.state=ut)},xmlCurrentTag:function(He){return He.tagName?{name:He.tagName,close:He.type=="closeTag"}:null},xmlCurrentContext:function(He){for(var pt=[],Ne=He.context;Ne;Ne=Ne.prev)Ne.tagName&&pt.push(Ne.tagName);return pt.reverse()}}}),x.defineMIME("text/xml","xml"),x.defineMIME("application/xml","xml"),x.mimeModes.hasOwnProperty("text/html")||x.defineMIME("text/html",{name:"xml",htmlMode:!0})})},97774:function(Vn,Mt,ae){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.default=void 0;var x=Object.assign||function(ye){for(var xe=1;xe<arguments.length;xe++){var Ee=arguments[xe];for(var ke in Ee)Object.prototype.hasOwnProperty.call(Ee,ke)&&(ye[ke]=Ee[ke])}return ye},ct=function(){function ye(xe,Ee){for(var ke=0;ke<Ee.length;ke++){var Ke=Ee[ke];Ke.enumerable=Ke.enumerable||!1,Ke.configurable=!0,"value"in Ke&&(Ke.writable=!0),Object.defineProperty(xe,Ke.key,Ke)}}return function(xe,Ee,ke){return Ee&&ye(xe.prototype,Ee),ke&&ye(xe,ke),xe}}(),Le=ae(59301),Je=Oe(Le),ze=ae(12708),Se=Oe(ze),Ue=ae(53291),fe=Oe(Ue),Ce=ae(47242),oe=ae(65429);function Oe(ye){return ye&&ye.__esModule?ye:{default:ye}}function ve(ye,xe){if(!(ye instanceof xe))throw new TypeError("Cannot call a class as a function")}function Me(ye,xe){if(!ye)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return xe&&(typeof xe=="object"||typeof xe=="function")?xe:ye}function Fe(ye,xe){if(typeof xe!="function"&&xe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof xe);ye.prototype=Object.create(xe&&xe.prototype,{constructor:{value:ye,enumerable:!1,writable:!0,configurable:!0}}),xe&&(Object.setPrototypeOf?Object.setPrototypeOf(ye,xe):ye.__proto__=xe)}var Te=function(ye){Fe(xe,ye);function xe(Ee){ve(this,xe);var ke=Me(this,(xe.__proto__||Object.getPrototypeOf(xe)).call(this,Ee));return ke.getEchartsInstance=function(){return ke.echartsLib.getInstanceByDom(ke.echartsElement)||ke.echartsLib.init(ke.echartsElement,ke.props.theme,ke.props.opts)},ke.dispose=function(){if(ke.echartsElement){try{(0,Ce.clear)(ke.echartsElement)}catch(Ke){console.warn(Ke)}ke.echartsLib.dispose(ke.echartsElement)}},ke.rerender=function(){var Ke=ke.props,Qe=Ke.onEvents,Re=Ke.onChartReady,et=ke.renderEchartDom();ke.bindEvents(et,Qe||{}),typeof Re=="function"&&ke.props.onChartReady(et),ke.echartsElement&&(0,Ce.bind)(ke.echartsElement,function(){try{et.resize()}catch(Ge){console.warn(Ge)}})},ke.bindEvents=function(Ke,Qe){var Re=function(ut,at){typeof ut=="string"&&typeof at=="function"&&Ke.on(ut,function(ft){at(ft,Ke)})};for(var et in Qe)Object.prototype.hasOwnProperty.call(Qe,et)&&Re(et,Qe[et])},ke.renderEchartDom=function(){var Ke=ke.getEchartsInstance();return Ke.setOption(ke.props.option,ke.props.notMerge||!1,ke.props.lazyUpdate||!1),ke.props.showLoading?Ke.showLoading(ke.props.loadingOption||null):Ke.hideLoading(),Ke},ke.echartsLib=Ee.echarts,ke.echartsElement=null,ke}return ct(xe,[{key:"componentDidMount",value:function(){this.rerender()}},{key:"componentDidUpdate",value:function(ke){if(!(typeof this.props.shouldSetOption=="function"&&!this.props.shouldSetOption(ke,this.props))){if(!(0,fe.default)(ke.theme,this.props.theme)||!(0,fe.default)(ke.opts,this.props.opts)||!(0,fe.default)(ke.onEvents,this.props.onEvents)){this.dispose(),this.rerender();return}var Ke=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if(!(0,fe.default)((0,oe.pick)(this.props,Ke),(0,oe.pick)(ke,Ke))){var Qe=this.renderEchartDom();if(!(0,fe.default)(ke.style,this.props.style)||!(0,fe.default)(ke.className,this.props.className))try{Qe.resize()}catch(Re){console.warn(Re)}}}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var ke=this,Ke=this.props,Qe=Ke.style,Re=Ke.className,et=x({height:300},Qe);return Je.default.createElement("div",{ref:function(ut){ke.echartsElement=ut},style:et,className:"echarts-for-react "+Re})}}]),xe}(Le.Component);Mt.default=Te,Te.propTypes={option:Se.default.object.isRequired,echarts:Se.default.object,notMerge:Se.default.bool,lazyUpdate:Se.default.bool,style:Se.default.object,className:Se.default.string,theme:Se.default.oneOfType([Se.default.string,Se.default.object]),onChartReady:Se.default.func,showLoading:Se.default.bool,loadingOption:Se.default.object,onEvents:Se.default.object,opts:Se.default.shape({devicePixelRatio:Se.default.number,renderer:Se.default.oneOf(["canvas","svg"]),width:Se.default.oneOfType([Se.default.number,Se.default.oneOf([null,void 0,"auto"])]),height:Se.default.oneOfType([Se.default.number,Se.default.oneOf([null,void 0,"auto"])])}),shouldSetOption:Se.default.func},Te.defaultProps={echarts:{},notMerge:!1,lazyUpdate:!1,style:{},className:"",theme:null,onChartReady:function(){},showLoading:!1,loadingOption:null,onEvents:{},opts:{},shouldSetOption:function(){return!0}}},42441:function(Vn,Mt,ae){"use strict";var x;x={value:!0},Mt.Z=void 0;var ct=ae(76411),Le=Se(ct),Je=ae(97774),ze=Se(Je);function Se(Oe){return Oe&&Oe.__esModule?Oe:{default:Oe}}function Ue(Oe,ve){if(!(Oe instanceof ve))throw new TypeError("Cannot call a class as a function")}function fe(Oe,ve){if(!Oe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve&&(typeof ve=="object"||typeof ve=="function")?ve:Oe}function Ce(Oe,ve){if(typeof ve!="function"&&ve!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ve);Oe.prototype=Object.create(ve&&ve.prototype,{constructor:{value:Oe,enumerable:!1,writable:!0,configurable:!0}}),ve&&(Object.setPrototypeOf?Object.setPrototypeOf(Oe,ve):Oe.__proto__=ve)}var oe=function(Oe){Ce(ve,Oe);function ve(Me){Ue(this,ve);var Fe=fe(this,(ve.__proto__||Object.getPrototypeOf(ve)).call(this,Me));return Fe.echartsLib=Le.default,Fe}return ve}(ze.default);Mt.Z=oe},65429:function(Vn,Mt){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});var ae=Mt.pick=function(ct,Le){var Je={};return Le.forEach(function(ze){Je[ze]=ct[ze]}),Je}},86204:function(Vn){"use strict";var Mt=typeof Reflect=="object"?Reflect:null,ae=Mt&&typeof Mt.apply=="function"?Mt.apply:function(Ke,Qe,Re){return Function.prototype.apply.call(Ke,Qe,Re)},x;Mt&&typeof Mt.ownKeys=="function"?x=Mt.ownKeys:Object.getOwnPropertySymbols?x=function(Ke){return Object.getOwnPropertyNames(Ke).concat(Object.getOwnPropertySymbols(Ke))}:x=function(Ke){return Object.getOwnPropertyNames(Ke)};function ct(ke){console&&console.warn&&console.warn(ke)}var Le=Number.isNaN||function(Ke){return Ke!==Ke};function Je(){Je.init.call(this)}Vn.exports=Je,Vn.exports.once=ye,Je.EventEmitter=Je,Je.prototype._events=void 0,Je.prototype._eventsCount=0,Je.prototype._maxListeners=void 0;var ze=10;function Se(ke){if(typeof ke!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ke)}Object.defineProperty(Je,"defaultMaxListeners",{enumerable:!0,get:function(){return ze},set:function(ke){if(typeof ke!="number"||ke<0||Le(ke))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+ke+".");ze=ke}}),Je.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Je.prototype.setMaxListeners=function(Ke){if(typeof Ke!="number"||Ke<0||Le(Ke))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Ke+".");return this._maxListeners=Ke,this};function Ue(ke){return ke._maxListeners===void 0?Je.defaultMaxListeners:ke._maxListeners}Je.prototype.getMaxListeners=function(){return Ue(this)},Je.prototype.emit=function(Ke){for(var Qe=[],Re=1;Re<arguments.length;Re++)Qe.push(arguments[Re]);var et=Ke==="error",Ge=this._events;if(Ge!==void 0)et=et&&Ge.error===void 0;else if(!et)return!1;if(et){var ut;if(Qe.length>0&&(ut=Qe[0]),ut instanceof Error)throw ut;var at=new Error("Unhandled error."+(ut?" ("+ut.message+")":""));throw at.context=ut,at}var ft=Ge[Ke];if(ft===void 0)return!1;if(typeof ft=="function")ae(ft,this,Qe);else for(var bt=ft.length,He=Me(ft,bt),Re=0;Re<bt;++Re)ae(He[Re],this,Qe);return!0};function fe(ke,Ke,Qe,Re){var et,Ge,ut;if(Se(Qe),Ge=ke._events,Ge===void 0?(Ge=ke._events=Object.create(null),ke._eventsCount=0):(Ge.newListener!==void 0&&(ke.emit("newListener",Ke,Qe.listener?Qe.listener:Qe),Ge=ke._events),ut=Ge[Ke]),ut===void 0)ut=Ge[Ke]=Qe,++ke._eventsCount;else if(typeof ut=="function"?ut=Ge[Ke]=Re?[Qe,ut]:[ut,Qe]:Re?ut.unshift(Qe):ut.push(Qe),et=Ue(ke),et>0&&ut.length>et&&!ut.warned){ut.warned=!0;var at=new Error("Possible EventEmitter memory leak detected. "+ut.length+" "+String(Ke)+" listeners added. Use emitter.setMaxListeners() to increase limit");at.name="MaxListenersExceededWarning",at.emitter=ke,at.type=Ke,at.count=ut.length,ct(at)}return ke}Je.prototype.addListener=function(Ke,Qe){return fe(this,Ke,Qe,!1)},Je.prototype.on=Je.prototype.addListener,Je.prototype.prependListener=function(Ke,Qe){return fe(this,Ke,Qe,!0)};function Ce(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function oe(ke,Ke,Qe){var Re={fired:!1,wrapFn:void 0,target:ke,type:Ke,listener:Qe},et=Ce.bind(Re);return et.listener=Qe,Re.wrapFn=et,et}Je.prototype.once=function(Ke,Qe){return Se(Qe),this.on(Ke,oe(this,Ke,Qe)),this},Je.prototype.prependOnceListener=function(Ke,Qe){return Se(Qe),this.prependListener(Ke,oe(this,Ke,Qe)),this},Je.prototype.removeListener=function(Ke,Qe){var Re,et,Ge,ut,at;if(Se(Qe),et=this._events,et===void 0)return this;if(Re=et[Ke],Re===void 0)return this;if(Re===Qe||Re.listener===Qe)--this._eventsCount===0?this._events=Object.create(null):(delete et[Ke],et.removeListener&&this.emit("removeListener",Ke,Re.listener||Qe));else if(typeof Re!="function"){for(Ge=-1,ut=Re.length-1;ut>=0;ut--)if(Re[ut]===Qe||Re[ut].listener===Qe){at=Re[ut].listener,Ge=ut;break}if(Ge<0)return this;Ge===0?Re.shift():Fe(Re,Ge),Re.length===1&&(et[Ke]=Re[0]),et.removeListener!==void 0&&this.emit("removeListener",Ke,at||Qe)}return this},Je.prototype.off=Je.prototype.removeListener,Je.prototype.removeAllListeners=function(Ke){var Qe,Re,et;if(Re=this._events,Re===void 0)return this;if(Re.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Re[Ke]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Re[Ke]),this;if(arguments.length===0){var Ge=Object.keys(Re),ut;for(et=0;et<Ge.length;++et)ut=Ge[et],ut!=="removeListener"&&this.removeAllListeners(ut);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Qe=Re[Ke],typeof Qe=="function")this.removeListener(Ke,Qe);else if(Qe!==void 0)for(et=Qe.length-1;et>=0;et--)this.removeListener(Ke,Qe[et]);return this};function Oe(ke,Ke,Qe){var Re=ke._events;if(Re===void 0)return[];var et=Re[Ke];return et===void 0?[]:typeof et=="function"?Qe?[et.listener||et]:[et]:Qe?Te(et):Me(et,et.length)}Je.prototype.listeners=function(Ke){return Oe(this,Ke,!0)},Je.prototype.rawListeners=function(Ke){return Oe(this,Ke,!1)},Je.listenerCount=function(ke,Ke){return typeof ke.listenerCount=="function"?ke.listenerCount(Ke):ve.call(ke,Ke)},Je.prototype.listenerCount=ve;function ve(ke){var Ke=this._events;if(Ke!==void 0){var Qe=Ke[ke];if(typeof Qe=="function")return 1;if(Qe!==void 0)return Qe.length}return 0}Je.prototype.eventNames=function(){return this._eventsCount>0?x(this._events):[]};function Me(ke,Ke){for(var Qe=new Array(Ke),Re=0;Re<Ke;++Re)Qe[Re]=ke[Re];return Qe}function Fe(ke,Ke){for(;Ke+1<ke.length;Ke++)ke[Ke]=ke[Ke+1];ke.pop()}function Te(ke){for(var Ke=new Array(ke.length),Qe=0;Qe<Ke.length;++Qe)Ke[Qe]=ke[Qe].listener||ke[Qe];return Ke}function ye(ke,Ke){return new Promise(function(Qe,Re){function et(ut){ke.removeListener(Ke,Ge),Re(ut)}function Ge(){typeof ke.removeListener=="function"&&ke.removeListener("error",et),Qe([].slice.call(arguments))}Ee(ke,Ke,Ge,{once:!0}),Ke!=="error"&&xe(ke,et,{once:!0})})}function xe(ke,Ke,Qe){typeof ke.on=="function"&&Ee(ke,"error",Ke,Qe)}function Ee(ke,Ke,Qe,Re){if(typeof ke.on=="function")Re.once?ke.once(Ke,Qe):ke.on(Ke,Qe);else if(typeof ke.addEventListener=="function")ke.addEventListener(Ke,function et(Ge){Re.once&&ke.removeEventListener(Ke,et),Qe(Ge)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof ke)}},53291:function(Vn){"use strict";var Mt=Array.isArray,ae=Object.keys,x=Object.prototype.hasOwnProperty;Vn.exports=function ct(Le,Je){if(Le===Je)return!0;if(Le&&Je&&typeof Le=="object"&&typeof Je=="object"){var ze=Mt(Le),Se=Mt(Je),Ue,fe,Ce;if(ze&&Se){if(fe=Le.length,fe!=Je.length)return!1;for(Ue=fe;Ue--!==0;)if(!ct(Le[Ue],Je[Ue]))return!1;return!0}if(ze!=Se)return!1;var oe=Le instanceof Date,Oe=Je instanceof Date;if(oe!=Oe)return!1;if(oe&&Oe)return Le.getTime()==Je.getTime();var ve=Le instanceof RegExp,Me=Je instanceof RegExp;if(ve!=Me)return!1;if(ve&&Me)return Le.toString()==Je.toString();var Fe=ae(Le);if(fe=Fe.length,fe!==ae(Je).length)return!1;for(Ue=fe;Ue--!==0;)if(!x.call(Je,Fe[Ue]))return!1;for(Ue=fe;Ue--!==0;)if(Ce=Fe[Ue],!ct(Le[Ce],Je[Ce]))return!1;return!0}return Le!==Le&&Je!==Je}},64270:function(Vn){(function(Mt,ae){Vn.exports=ae()})(this,function(){"use strict";var Mt=function(me,ce){return Mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(be,we){be.__proto__=we}||function(be,we){for(var nt in we)Object.prototype.hasOwnProperty.call(we,nt)&&(be[nt]=we[nt])},Mt(me,ce)};function ae(me,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Class extends value "+String(ce)+" is not a constructor or null");Mt(me,ce);function be(){this.constructor=me}me.prototype=ce===null?Object.create(ce):(be.prototype=ce.prototype,new be)}var x=function(){return x=Object.assign||function(ce){for(var be,we=1,nt=arguments.length;we<nt;we++){be=arguments[we];for(var Ft in be)Object.prototype.hasOwnProperty.call(be,Ft)&&(ce[Ft]=be[Ft])}return ce},x.apply(this,arguments)};function ct(me,ce,be,we){function nt(Ft){return Ft instanceof be?Ft:new be(function(Xt){Xt(Ft)})}return new(be||(be=Promise))(function(Ft,Xt){function Sn(Or){try{Cr(we.next(Or))}catch(Zr){Xt(Zr)}}function Bn(Or){try{Cr(we.throw(Or))}catch(Zr){Xt(Zr)}}function Cr(Or){Or.done?Ft(Or.value):nt(Or.value).then(Sn,Bn)}Cr((we=we.apply(me,ce||[])).next())})}function Le(me,ce){var be={label:0,sent:function(){if(Ft[0]&1)throw Ft[1];return Ft[1]},trys:[],ops:[]},we,nt,Ft,Xt;return Xt={next:Sn(0),throw:Sn(1),return:Sn(2)},typeof Symbol=="function"&&(Xt[Symbol.iterator]=function(){return this}),Xt;function Sn(Cr){return function(Or){return Bn([Cr,Or])}}function Bn(Cr){if(we)throw new TypeError("Generator is already executing.");for(;be;)try{if(we=1,nt&&(Ft=Cr[0]&2?nt.return:Cr[0]?nt.throw||((Ft=nt.return)&&Ft.call(nt),0):nt.next)&&!(Ft=Ft.call(nt,Cr[1])).done)return Ft;switch(nt=0,Ft&&(Cr=[Cr[0]&2,Ft.value]),Cr[0]){case 0:case 1:Ft=Cr;break;case 4:return be.label++,{value:Cr[1],done:!1};case 5:be.label++,nt=Cr[1],Cr=[0];continue;case 7:Cr=be.ops.pop(),be.trys.pop();continue;default:if(Ft=be.trys,!(Ft=Ft.length>0&&Ft[Ft.length-1])&&(Cr[0]===6||Cr[0]===2)){be=0;continue}if(Cr[0]===3&&(!Ft||Cr[1]>Ft[0]&&Cr[1]<Ft[3])){be.label=Cr[1];break}if(Cr[0]===6&&be.label<Ft[1]){be.label=Ft[1],Ft=Cr;break}if(Ft&&be.label<Ft[2]){be.label=Ft[2],be.ops.push(Cr);break}Ft[2]&&be.ops.pop(),be.trys.pop();continue}Cr=ce.call(me,be)}catch(Or){Cr=[6,Or],nt=0}finally{we=Ft=0}if(Cr[0]&5)throw Cr[1];return{value:Cr[0]?Cr[1]:void 0,done:!0}}}function Je(me,ce,be){if(be||arguments.length===2)for(var we=0,nt=ce.length,Ft;we<nt;we++)(Ft||!(we in ce))&&(Ft||(Ft=Array.prototype.slice.call(ce,0,we)),Ft[we]=ce[we]);return me.concat(Ft||ce)}for(var ze=function(){function me(ce,be,we,nt){this.left=ce,this.top=be,this.width=we,this.height=nt}return me.prototype.add=function(ce,be,we,nt){return new me(this.left+ce,this.top+be,this.width+we,this.height+nt)},me.fromClientRect=function(ce,be){return new me(be.left+ce.windowBounds.left,be.top+ce.windowBounds.top,be.width,be.height)},me.fromDOMRectList=function(ce,be){var we=Array.from(be).find(function(nt){return nt.width!==0});return we?new me(we.left+ce.windowBounds.left,we.top+ce.windowBounds.top,we.width,we.height):me.EMPTY},me.EMPTY=new me(0,0,0,0),me}(),Se=function(me,ce){return ze.fromClientRect(me,ce.getBoundingClientRect())},Ue=function(me){var ce=me.body,be=me.documentElement;if(!ce||!be)throw new Error("Unable to get document size");var we=Math.max(Math.max(ce.scrollWidth,be.scrollWidth),Math.max(ce.offsetWidth,be.offsetWidth),Math.max(ce.clientWidth,be.clientWidth)),nt=Math.max(Math.max(ce.scrollHeight,be.scrollHeight),Math.max(ce.offsetHeight,be.offsetHeight),Math.max(ce.clientHeight,be.clientHeight));return new ze(0,0,we,nt)},fe=function(me){for(var ce=[],be=0,we=me.length;be<we;){var nt=me.charCodeAt(be++);if(nt>=55296&&nt<=56319&&be<we){var Ft=me.charCodeAt(be++);(Ft&64512)===56320?ce.push(((nt&1023)<<10)+(Ft&1023)+65536):(ce.push(nt),be--)}else ce.push(nt)}return ce},Ce=function(){for(var me=[],ce=0;ce<arguments.length;ce++)me[ce]=arguments[ce];if(String.fromCodePoint)return String.fromCodePoint.apply(String,me);var be=me.length;if(!be)return"";for(var we=[],nt=-1,Ft="";++nt<be;){var Xt=me[nt];Xt<=65535?we.push(Xt):(Xt-=65536,we.push((Xt>>10)+55296,Xt%1024+56320)),(nt+1===be||we.length>16384)&&(Ft+=String.fromCharCode.apply(String,we),we.length=0)}return Ft},oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Oe=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),ve=0;ve<oe.length;ve++)Oe[oe.charCodeAt(ve)]=ve;for(var Me="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fe=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Te=0;Te<Me.length;Te++)Fe[Me.charCodeAt(Te)]=Te;for(var ye=function(me){var ce=me.length*.75,be=me.length,we,nt=0,Ft,Xt,Sn,Bn;me[me.length-1]==="="&&(ce--,me[me.length-2]==="="&&ce--);var Cr=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(ce):new Array(ce),Or=Array.isArray(Cr)?Cr:new Uint8Array(Cr);for(we=0;we<be;we+=4)Ft=Fe[me.charCodeAt(we)],Xt=Fe[me.charCodeAt(we+1)],Sn=Fe[me.charCodeAt(we+2)],Bn=Fe[me.charCodeAt(we+3)],Or[nt++]=Ft<<2|Xt>>4,Or[nt++]=(Xt&15)<<4|Sn>>2,Or[nt++]=(Sn&3)<<6|Bn&63;return Cr},xe=function(me){for(var ce=me.length,be=[],we=0;we<ce;we+=2)be.push(me[we+1]<<8|me[we]);return be},Ee=function(me){for(var ce=me.length,be=[],we=0;we<ce;we+=4)be.push(me[we+3]<<24|me[we+2]<<16|me[we+1]<<8|me[we]);return be},ke=5,Ke=11,Qe=2,Re=Ke-ke,et=65536>>ke,Ge=1<<ke,ut=Ge-1,at=1024>>ke,ft=et+at,bt=ft,He=32,pt=bt+He,Ne=65536>>Ke,je=1<<Re,Ot=je-1,it=function(me,ce,be){return me.slice?me.slice(ce,be):new Uint16Array(Array.prototype.slice.call(me,ce,be))},ht=function(me,ce,be){return me.slice?me.slice(ce,be):new Uint32Array(Array.prototype.slice.call(me,ce,be))},Bt=function(me,ce){var be=ye(me),we=Array.isArray(be)?Ee(be):new Uint32Array(be),nt=Array.isArray(be)?xe(be):new Uint16Array(be),Ft=24,Xt=it(nt,Ft/2,we[4]/2),Sn=we[5]===2?it(nt,(Ft+we[4])/2):ht(we,Math.ceil((Ft+we[4])/4));return new We(we[0],we[1],we[2],we[3],Xt,Sn)},We=function(){function me(ce,be,we,nt,Ft,Xt){this.initialValue=ce,this.errorValue=be,this.highStart=we,this.highValueIndex=nt,this.index=Ft,this.data=Xt}return me.prototype.get=function(ce){var be;if(ce>=0){if(ce<55296||ce>56319&&ce<=65535)return be=this.index[ce>>ke],be=(be<<Qe)+(ce&ut),this.data[be];if(ce<=65535)return be=this.index[et+(ce-55296>>ke)],be=(be<<Qe)+(ce&ut),this.data[be];if(ce<this.highStart)return be=pt-Ne+(ce>>Ke),be=this.index[be],be+=ce>>ke&Ot,be=this.index[be],be=(be<<Qe)+(ce&ut),this.data[be];if(ce<=1114111)return this.data[this.highValueIndex]}return this.errorValue},me}(),_e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ot=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Zt=0;Zt<_e.length;Zt++)ot[_e.charCodeAt(Zt)]=Zt;var zt="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==",tt=50,Nt=1,Ut=2,pn=3,kt=4,mn=5,_t=7,Cn=8,an=9,de=10,pe=11,ie=12,ee=13,se=14,le=15,Be=16,$e=17,st=18,gt=19,mt=20,Et=21,Lt=22,jt=23,Ct=24,lt=25,$t=26,Wt=27,wn=28,ln=29,tn=30,Qn=31,En=32,Rt=33,un=34,Dn=35,Wn=36,It=37,Gt=38,sn=39,yn=40,Yn=41,Br=42,ti=43,Ur=[9001,65288],Sr="!",Jn="\xD7",gr="\xF7",kr=Bt(zt),Vr=[tn,Wn],pi=[Nt,Ut,pn,mn],Lr=[de,Cn],tr=[Wt,$t],Xn=pi.concat(Lr),mr=[Gt,sn,yn,un,Dn],Qr=[le,ee],ii=function(me,ce){ce===void 0&&(ce="strict");var be=[],we=[],nt=[];return me.forEach(function(Ft,Xt){var Sn=kr.get(Ft);if(Sn>tt?(nt.push(!0),Sn-=tt):nt.push(!1),["normal","auto","loose"].indexOf(ce)!==-1&&[8208,8211,12316,12448].indexOf(Ft)!==-1)return we.push(Xt),be.push(Be);if(Sn===kt||Sn===pe){if(Xt===0)return we.push(Xt),be.push(tn);var Bn=be[Xt-1];return Xn.indexOf(Bn)===-1?(we.push(we[Xt-1]),be.push(Bn)):(we.push(Xt),be.push(tn))}if(we.push(Xt),Sn===Qn)return be.push(ce==="strict"?Et:It);if(Sn===Br||Sn===ln)return be.push(tn);if(Sn===ti)return Ft>=131072&&Ft<=196605||Ft>=196608&&Ft<=262141?be.push(It):be.push(tn);be.push(Sn)}),[we,be,nt]},ai=function(me,ce,be,we){var nt=we[be];if(Array.isArray(me)?me.indexOf(nt)!==-1:me===nt)for(var Ft=be;Ft<=we.length;){Ft++;var Xt=we[Ft];if(Xt===ce)return!0;if(Xt!==de)break}if(nt===de)for(var Ft=be;Ft>0;){Ft--;var Sn=we[Ft];if(Array.isArray(me)?me.indexOf(Sn)!==-1:me===Sn)for(var Bn=be;Bn<=we.length;){Bn++;var Xt=we[Bn];if(Xt===ce)return!0;if(Xt!==de)break}if(Sn!==de)break}return!1},oi=function(me,ce){for(var be=me;be>=0;){var we=ce[be];if(we===de)be--;else return we}return 0},li=function(me,ce,be,we,nt){if(be[we]===0)return Jn;var Ft=we-1;if(Array.isArray(nt)&&nt[Ft]===!0)return Jn;var Xt=Ft-1,Sn=Ft+1,Bn=ce[Ft],Cr=Xt>=0?ce[Xt]:0,Or=ce[Sn];if(Bn===Ut&&Or===pn)return Jn;if(pi.indexOf(Bn)!==-1)return Sr;if(pi.indexOf(Or)!==-1||Lr.indexOf(Or)!==-1)return Jn;if(oi(Ft,ce)===Cn)return gr;if(kr.get(me[Ft])===pe||(Bn===En||Bn===Rt)&&kr.get(me[Sn])===pe||Bn===_t||Or===_t||Bn===an||[de,ee,le].indexOf(Bn)===-1&&Or===an||[$e,st,gt,Ct,wn].indexOf(Or)!==-1||oi(Ft,ce)===Lt||ai(jt,Lt,Ft,ce)||ai([$e,st],Et,Ft,ce)||ai(ie,ie,Ft,ce))return Jn;if(Bn===de)return gr;if(Bn===jt||Or===jt)return Jn;if(Or===Be||Bn===Be)return gr;if([ee,le,Et].indexOf(Or)!==-1||Bn===se||Cr===Wn&&Qr.indexOf(Bn)!==-1||Bn===wn&&Or===Wn||Or===mt||Vr.indexOf(Or)!==-1&&Bn===lt||Vr.indexOf(Bn)!==-1&&Or===lt||Bn===Wt&&[It,En,Rt].indexOf(Or)!==-1||[It,En,Rt].indexOf(Bn)!==-1&&Or===$t||Vr.indexOf(Bn)!==-1&&tr.indexOf(Or)!==-1||tr.indexOf(Bn)!==-1&&Vr.indexOf(Or)!==-1||[Wt,$t].indexOf(Bn)!==-1&&(Or===lt||[Lt,le].indexOf(Or)!==-1&&ce[Sn+1]===lt)||[Lt,le].indexOf(Bn)!==-1&&Or===lt||Bn===lt&&[lt,wn,Ct].indexOf(Or)!==-1)return Jn;if([lt,wn,Ct,$e,st].indexOf(Or)!==-1)for(var Zr=Ft;Zr>=0;){var Ti=ce[Zr];if(Ti===lt)return Jn;if([wn,Ct].indexOf(Ti)!==-1)Zr--;else break}if([Wt,$t].indexOf(Or)!==-1)for(var Zr=[$e,st].indexOf(Bn)!==-1?Xt:Ft;Zr>=0;){var Ti=ce[Zr];if(Ti===lt)return Jn;if([wn,Ct].indexOf(Ti)!==-1)Zr--;else break}if(Gt===Bn&&[Gt,sn,un,Dn].indexOf(Or)!==-1||[sn,un].indexOf(Bn)!==-1&&[sn,yn].indexOf(Or)!==-1||[yn,Dn].indexOf(Bn)!==-1&&Or===yn||mr.indexOf(Bn)!==-1&&[mt,$t].indexOf(Or)!==-1||mr.indexOf(Or)!==-1&&Bn===Wt||Vr.indexOf(Bn)!==-1&&Vr.indexOf(Or)!==-1||Bn===Ct&&Vr.indexOf(Or)!==-1||Vr.concat(lt).indexOf(Bn)!==-1&&Or===Lt&&Ur.indexOf(me[Sn])===-1||Vr.concat(lt).indexOf(Or)!==-1&&Bn===st)return Jn;if(Bn===Yn&&Or===Yn){for(var ha=be[Ft],ho=1;ha>0&&(ha--,ce[ha]===Yn);)ho++;if(ho%2!==0)return Jn}return Bn===En&&Or===Rt?Jn:gr},ji=function(me,ce){ce||(ce={lineBreak:"normal",wordBreak:"normal"});var be=ii(me,ce.lineBreak),we=be[0],nt=be[1],Ft=be[2];(ce.wordBreak==="break-all"||ce.wordBreak==="break-word")&&(nt=nt.map(function(Sn){return[lt,tn,Br].indexOf(Sn)!==-1?It:Sn}));var Xt=ce.wordBreak==="keep-all"?Ft.map(function(Sn,Bn){return Sn&&me[Bn]>=19968&&me[Bn]<=40959}):void 0;return[we,nt,Xt]},ki=function(){function me(ce,be,we,nt){this.codePoints=ce,this.required=be===Sr,this.start=we,this.end=nt}return me.prototype.slice=function(){return Ce.apply(void 0,this.codePoints.slice(this.start,this.end))},me}(),or=function(me,ce){var be=fe(me),we=ji(be,ce),nt=we[0],Ft=we[1],Xt=we[2],Sn=be.length,Bn=0,Cr=0;return{next:function(){if(Cr>=Sn)return{done:!0,value:null};for(var Or=Jn;Cr<Sn&&(Or=li(be,Ft,nt,++Cr,Xt))===Jn;);if(Or!==Jn||Cr===Sn){var Zr=new ki(be,Or,Bn,Cr);return Bn=Cr,{value:Zr,done:!1}}return{done:!0,value:null}}}},Hr=1,Bi=2,Yt=4,rn=8,fn=10,Pt=47,en=92,Kt=9,gn=32,On=34,Nr=61,Yr=35,hi=36,rr=37,ur=39,sr=40,ni=41,er=95,Rn=45,Ar=33,Ei=60,Kn=62,vn=64,$n=91,nr=93,fr=61,zr=123,Ni=63,gi=125,Di=124,mi=126,Si=128,wi=65533,Ci=42,yi=43,Mi=44,eo=58,mo=59,Yi=46,Io=0,Ri=8,ko=11,uo=14,Vo=31,wo=127,to=-1,bo=48,Go=97,Tn=101,Lo=102,Vi=117,Mr=122,Jr=65,ri=69,Wr=70,Qi=85,no=90,Kr=function(me){return me>=bo&&me<=57},ui=function(me){return me>=55296&&me<=57343},vr=function(me){return Kr(me)||me>=Jr&&me<=Wr||me>=Go&&me<=Lo},qr=function(me){return me>=Go&&me<=Mr},Ao=function(me){return me>=Jr&&me<=no},Yo=function(me){return qr(me)||Ao(me)},Do=function(me){return me>=Si},ga=function(me){return me===fn||me===Kt||me===gn},No=function(me){return Yo(me)||Do(me)||me===er},Jo=function(me){return No(me)||Kr(me)||me===Rn},Ro=function(me){return me>=Io&&me<=Ri||me===ko||me>=uo&&me<=Vo||me===wo},oa=function(me,ce){return me!==en?!1:ce!==fn},fa=function(me,ce,be){return me===Rn?No(ce)||oa(ce,be):No(me)?!0:!!(me===en&&oa(me,ce))},Wa=function(me,ce,be){return me===yi||me===Rn?Kr(ce)?!0:ce===Yi&&Kr(be):Kr(me===Yi?ce:me)},Ds=function(me){var ce=0,be=1;(me[ce]===yi||me[ce]===Rn)&&(me[ce]===Rn&&(be=-1),ce++);for(var we=[];Kr(me[ce]);)we.push(me[ce++]);var nt=we.length?parseInt(Ce.apply(void 0,we),10):0;me[ce]===Yi&&ce++;for(var Ft=[];Kr(me[ce]);)Ft.push(me[ce++]);var Xt=Ft.length,Sn=Xt?parseInt(Ce.apply(void 0,Ft),10):0;(me[ce]===ri||me[ce]===Tn)&&ce++;var Bn=1;(me[ce]===yi||me[ce]===Rn)&&(me[ce]===Rn&&(Bn=-1),ce++);for(var Cr=[];Kr(me[ce]);)Cr.push(me[ce++]);var Or=Cr.length?parseInt(Ce.apply(void 0,Cr),10):0;return be*(nt+Sn*Math.pow(10,-Xt))*Math.pow(10,Bn*Or)},js={type:2},as={type:3},ds={type:4},Mo={type:13},go={type:8},Fa={type:21},gs={type:9},el={type:10},tl={type:11},nl={type:12},gl={type:14},Au={type:23},Xs={type:1},Zl={type:25},Wl={type:24},Iu={type:26},fl={type:27},SA={type:28},hA={type:29},pa={type:31},Ia={type:32},ma=function(){function me(){this._value=[]}return me.prototype.write=function(ce){this._value=this._value.concat(fe(ce))},me.prototype.read=function(){for(var ce=[],be=this.consumeToken();be!==Ia;)ce.push(be),be=this.consumeToken();return ce},me.prototype.consumeToken=function(){var ce=this.consumeCodePoint();switch(ce){case On:return this.consumeStringToken(On);case Yr:var be=this.peekCodePoint(0),we=this.peekCodePoint(1),nt=this.peekCodePoint(2);if(Jo(be)||oa(we,nt)){var Ft=fa(be,we,nt)?Bi:Hr,Xt=this.consumeName();return{type:5,value:Xt,flags:Ft}}break;case hi:if(this.peekCodePoint(0)===Nr)return this.consumeCodePoint(),Mo;break;case ur:return this.consumeStringToken(ur);case sr:return js;case ni:return as;case Ci:if(this.peekCodePoint(0)===Nr)return this.consumeCodePoint(),gl;break;case yi:if(Wa(ce,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(ce),this.consumeNumericToken();break;case Mi:return ds;case Rn:var Sn=ce,Bn=this.peekCodePoint(0),Cr=this.peekCodePoint(1);if(Wa(Sn,Bn,Cr))return this.reconsumeCodePoint(ce),this.consumeNumericToken();if(fa(Sn,Bn,Cr))return this.reconsumeCodePoint(ce),this.consumeIdentLikeToken();if(Bn===Rn&&Cr===Kn)return this.consumeCodePoint(),this.consumeCodePoint(),Wl;break;case Yi:if(Wa(ce,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(ce),this.consumeNumericToken();break;case Pt:if(this.peekCodePoint(0)===Ci)for(this.consumeCodePoint();;){var Or=this.consumeCodePoint();if(Or===Ci&&(Or=this.consumeCodePoint(),Or===Pt))return this.consumeToken();if(Or===to)return this.consumeToken()}break;case eo:return Iu;case mo:return fl;case Ei:if(this.peekCodePoint(0)===Ar&&this.peekCodePoint(1)===Rn&&this.peekCodePoint(2)===Rn)return this.consumeCodePoint(),this.consumeCodePoint(),Zl;break;case vn:var Zr=this.peekCodePoint(0),Ti=this.peekCodePoint(1),ha=this.peekCodePoint(2);if(fa(Zr,Ti,ha)){var Xt=this.consumeName();return{type:7,value:Xt}}break;case $n:return SA;case en:if(oa(ce,this.peekCodePoint(0)))return this.reconsumeCodePoint(ce),this.consumeIdentLikeToken();break;case nr:return hA;case fr:if(this.peekCodePoint(0)===Nr)return this.consumeCodePoint(),go;break;case zr:return tl;case gi:return nl;case Vi:case Qi:var ho=this.peekCodePoint(0),Zo=this.peekCodePoint(1);return ho===yi&&(vr(Zo)||Zo===Ni)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(ce),this.consumeIdentLikeToken();case Di:if(this.peekCodePoint(0)===Nr)return this.consumeCodePoint(),gs;if(this.peekCodePoint(0)===Di)return this.consumeCodePoint(),Fa;break;case mi:if(this.peekCodePoint(0)===Nr)return this.consumeCodePoint(),el;break;case to:return Ia}return ga(ce)?(this.consumeWhiteSpace(),pa):Kr(ce)?(this.reconsumeCodePoint(ce),this.consumeNumericToken()):No(ce)?(this.reconsumeCodePoint(ce),this.consumeIdentLikeToken()):{type:6,value:Ce(ce)}},me.prototype.consumeCodePoint=function(){var ce=this._value.shift();return typeof ce=="undefined"?-1:ce},me.prototype.reconsumeCodePoint=function(ce){this._value.unshift(ce)},me.prototype.peekCodePoint=function(ce){return ce>=this._value.length?-1:this._value[ce]},me.prototype.consumeUnicodeRangeToken=function(){for(var ce=[],be=this.consumeCodePoint();vr(be)&&ce.length<6;)ce.push(be),be=this.consumeCodePoint();for(var we=!1;be===Ni&&ce.length<6;)ce.push(be),be=this.consumeCodePoint(),we=!0;if(we){var nt=parseInt(Ce.apply(void 0,ce.map(function(Bn){return Bn===Ni?bo:Bn})),16),Ft=parseInt(Ce.apply(void 0,ce.map(function(Bn){return Bn===Ni?Wr:Bn})),16);return{type:30,start:nt,end:Ft}}var Xt=parseInt(Ce.apply(void 0,ce),16);if(this.peekCodePoint(0)===Rn&&vr(this.peekCodePoint(1))){this.consumeCodePoint(),be=this.consumeCodePoint();for(var Sn=[];vr(be)&&Sn.length<6;)Sn.push(be),be=this.consumeCodePoint();var Ft=parseInt(Ce.apply(void 0,Sn),16);return{type:30,start:Xt,end:Ft}}else return{type:30,start:Xt,end:Xt}},me.prototype.consumeIdentLikeToken=function(){var ce=this.consumeName();return ce.toLowerCase()==="url"&&this.peekCodePoint(0)===sr?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===sr?(this.consumeCodePoint(),{type:19,value:ce}):{type:20,value:ce}},me.prototype.consumeUrlToken=function(){var ce=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===to)return{type:22,value:""};var be=this.peekCodePoint(0);if(be===ur||be===On){var we=this.consumeStringToken(this.consumeCodePoint());return we.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===to||this.peekCodePoint(0)===ni)?(this.consumeCodePoint(),{type:22,value:we.value}):(this.consumeBadUrlRemnants(),Au)}for(;;){var nt=this.consumeCodePoint();if(nt===to||nt===ni)return{type:22,value:Ce.apply(void 0,ce)};if(ga(nt))return this.consumeWhiteSpace(),this.peekCodePoint(0)===to||this.peekCodePoint(0)===ni?(this.consumeCodePoint(),{type:22,value:Ce.apply(void 0,ce)}):(this.consumeBadUrlRemnants(),Au);if(nt===On||nt===ur||nt===sr||Ro(nt))return this.consumeBadUrlRemnants(),Au;if(nt===en)if(oa(nt,this.peekCodePoint(0)))ce.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Au;else ce.push(nt)}},me.prototype.consumeWhiteSpace=function(){for(;ga(this.peekCodePoint(0));)this.consumeCodePoint()},me.prototype.consumeBadUrlRemnants=function(){for(;;){var ce=this.consumeCodePoint();if(ce===ni||ce===to)return;oa(ce,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},me.prototype.consumeStringSlice=function(ce){for(var be=5e4,we="";ce>0;){var nt=Math.min(be,ce);we+=Ce.apply(void 0,this._value.splice(0,nt)),ce-=nt}return this._value.shift(),we},me.prototype.consumeStringToken=function(ce){var be="",we=0;do{var nt=this._value[we];if(nt===to||nt===void 0||nt===ce)return be+=this.consumeStringSlice(we),{type:0,value:be};if(nt===fn)return this._value.splice(0,we),Xs;if(nt===en){var Ft=this._value[we+1];Ft!==to&&Ft!==void 0&&(Ft===fn?(be+=this.consumeStringSlice(we),we=-1,this._value.shift()):oa(nt,Ft)&&(be+=this.consumeStringSlice(we),be+=Ce(this.consumeEscapedCodePoint()),we=-1))}we++}while(!0)},me.prototype.consumeNumber=function(){var ce=[],be=Yt,we=this.peekCodePoint(0);for((we===yi||we===Rn)&&ce.push(this.consumeCodePoint());Kr(this.peekCodePoint(0));)ce.push(this.consumeCodePoint());we=this.peekCodePoint(0);var nt=this.peekCodePoint(1);if(we===Yi&&Kr(nt))for(ce.push(this.consumeCodePoint(),this.consumeCodePoint()),be=rn;Kr(this.peekCodePoint(0));)ce.push(this.consumeCodePoint());we=this.peekCodePoint(0),nt=this.peekCodePoint(1);var Ft=this.peekCodePoint(2);if((we===ri||we===Tn)&&((nt===yi||nt===Rn)&&Kr(Ft)||Kr(nt)))for(ce.push(this.consumeCodePoint(),this.consumeCodePoint()),be=rn;Kr(this.peekCodePoint(0));)ce.push(this.consumeCodePoint());return[Ds(ce),be]},me.prototype.consumeNumericToken=function(){var ce=this.consumeNumber(),be=ce[0],we=ce[1],nt=this.peekCodePoint(0),Ft=this.peekCodePoint(1),Xt=this.peekCodePoint(2);if(fa(nt,Ft,Xt)){var Sn=this.consumeName();return{type:15,number:be,flags:we,unit:Sn}}return nt===rr?(this.consumeCodePoint(),{type:16,number:be,flags:we}):{type:17,number:be,flags:we}},me.prototype.consumeEscapedCodePoint=function(){var ce=this.consumeCodePoint();if(vr(ce)){for(var be=Ce(ce);vr(this.peekCodePoint(0))&&be.length<6;)be+=Ce(this.consumeCodePoint());ga(this.peekCodePoint(0))&&this.consumeCodePoint();var we=parseInt(be,16);return we===0||ui(we)||we>1114111?wi:we}return ce===to?wi:ce},me.prototype.consumeName=function(){for(var ce="";;){var be=this.consumeCodePoint();if(Jo(be))ce+=Ce(be);else if(oa(be,this.peekCodePoint(0)))ce+=Ce(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(be),ce}},me}(),ba=function(){function me(ce){this._tokens=ce}return me.create=function(ce){var be=new ma;return be.write(ce),new me(be.read())},me.parseValue=function(ce){return me.create(ce).parseComponentValue()},me.parseValues=function(ce){return me.create(ce).parseComponentValues()},me.prototype.parseComponentValue=function(){for(var ce=this.consumeToken();ce.type===31;)ce=this.consumeToken();if(ce.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(ce);var be=this.consumeComponentValue();do ce=this.consumeToken();while(ce.type===31);if(ce.type===32)return be;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},me.prototype.parseComponentValues=function(){for(var ce=[];;){var be=this.consumeComponentValue();if(be.type===32)return ce;ce.push(be),ce.push()}},me.prototype.consumeComponentValue=function(){var ce=this.consumeToken();switch(ce.type){case 11:case 28:case 2:return this.consumeSimpleBlock(ce.type);case 19:return this.consumeFunction(ce)}return ce},me.prototype.consumeSimpleBlock=function(ce){for(var be={type:ce,values:[]},we=this.consumeToken();;){if(we.type===32||au(we,ce))return be;this.reconsumeToken(we),be.values.push(this.consumeComponentValue()),we=this.consumeToken()}},me.prototype.consumeFunction=function(ce){for(var be={name:ce.value,values:[],type:18};;){var we=this.consumeToken();if(we.type===32||we.type===3)return be;this.reconsumeToken(we),be.values.push(this.consumeComponentValue())}},me.prototype.consumeToken=function(){var ce=this._tokens.shift();return typeof ce=="undefined"?Ia:ce},me.prototype.reconsumeToken=function(ce){this._tokens.unshift(ce)},me}(),qa=function(me){return me.type===15},Va=function(me){return me.type===17},za=function(me){return me.type===20},$l=function(me){return me.type===0},cu=function(me,ce){return za(me)&&me.value===ce},Ui=function(me){return me.type!==31},ta=function(me){return me.type!==31&&me.type!==4},Ta=function(me){var ce=[],be=[];return me.forEach(function(we){if(we.type===4){if(be.length===0)throw new Error("Error parsing function args, zero tokens for arg");ce.push(be),be=[];return}we.type!==31&&be.push(we)}),be.length&&ce.push(be),ce},au=function(me,ce){return ce===11&&me.type===12||ce===28&&me.type===29?!0:ce===2&&me.type===3},Ml=function(me){return me.type===17||me.type===15},ms=function(me){return me.type===16||Ml(me)},bu=function(me){return me.length>1?[me[0],me[1]]:[me[0]]},ml={type:17,number:0,flags:Yt},Kc={type:16,number:50,flags:Yt},FA={type:16,number:100,flags:Yt},Cu=function(me,ce,be){var we=me[0],nt=me[1];return[aa(we,ce),aa(typeof nt!="undefined"?nt:we,be)]},aa=function(me,ce){if(me.type===16)return me.number/100*ce;if(qa(me))switch(me.unit){case"rem":case"em":return 16*me.number;case"px":default:return me.number}return me.number},$u="deg",dc="grad",ku="rad",Ns="turn",tA={name:"angle",parse:function(me,ce){if(ce.type===15)switch(ce.unit){case $u:return Math.PI*ce.number/180;case dc:return Math.PI/200*ce.number;case ku:return ce.number;case Ns:return Math.PI*2*ce.number}throw new Error("Unsupported angle type")}},pA=function(me){return me.type===15&&(me.unit===$u||me.unit===dc||me.unit===ku||me.unit===Ns)},PA=function(me){var ce=me.filter(za).map(function(be){return be.value}).join(" ");switch(ce){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ml,ml];case"to top":case"bottom":return xl(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ml,FA];case"to right":case"left":return xl(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[FA,FA];case"to bottom":case"top":return xl(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[FA,ml];case"to left":case"right":return xl(270)}return 0},xl=function(me){return Math.PI*me/180},Bl={name:"color",parse:function(me,ce){if(ce.type===18){var be=Pa[ce.name];if(typeof be=="undefined")throw new Error('Attempting to parse an unsupported color function "'+ce.name+'"');return be(me,ce.values)}if(ce.type===5){if(ce.value.length===3){var we=ce.value.substring(0,1),nt=ce.value.substring(1,2),Ft=ce.value.substring(2,3);return Vl(parseInt(we+we,16),parseInt(nt+nt,16),parseInt(Ft+Ft,16),1)}if(ce.value.length===4){var we=ce.value.substring(0,1),nt=ce.value.substring(1,2),Ft=ce.value.substring(2,3),Xt=ce.value.substring(3,4);return Vl(parseInt(we+we,16),parseInt(nt+nt,16),parseInt(Ft+Ft,16),parseInt(Xt+Xt,16)/255)}if(ce.value.length===6){var we=ce.value.substring(0,2),nt=ce.value.substring(2,4),Ft=ce.value.substring(4,6);return Vl(parseInt(we,16),parseInt(nt,16),parseInt(Ft,16),1)}if(ce.value.length===8){var we=ce.value.substring(0,2),nt=ce.value.substring(2,4),Ft=ce.value.substring(4,6),Xt=ce.value.substring(6,8);return Vl(parseInt(we,16),parseInt(nt,16),parseInt(Ft,16),parseInt(Xt,16)/255)}}if(ce.type===20){var Sn=Ms[ce.value.toUpperCase()];if(typeof Sn!="undefined")return Sn}return Ms.TRANSPARENT}},rl=function(me){return(255&me)===0},Gl=function(me){var ce=255&me,be=255&me>>8,we=255&me>>16,nt=255&me>>24;return ce<255?"rgba("+nt+","+we+","+be+","+ce/255+")":"rgb("+nt+","+we+","+be+")"},Vl=function(me,ce,be,we){return(me<<24|ce<<16|be<<8|Math.round(we*255)<<0)>>>0},Nc=function(me,ce){if(me.type===17)return me.number;if(me.type===16){var be=ce===3?1:255;return ce===3?me.number/100*be:Math.round(me.number/100*be)}return 0},td=function(me,ce){var be=ce.filter(ta);if(be.length===3){var we=be.map(Nc),nt=we[0],Ft=we[1],Xt=we[2];return Vl(nt,Ft,Xt,1)}if(be.length===4){var Sn=be.map(Nc),nt=Sn[0],Ft=Sn[1],Xt=Sn[2],Bn=Sn[3];return Vl(nt,Ft,Xt,Bn)}return 0};function Ul(me,ce,be){return be<0&&(be+=1),be>=1&&(be-=1),be<1/6?(ce-me)*be*6+me:be<1/2?ce:be<2/3?(ce-me)*6*(2/3-be)+me:me}var Mu=function(me,ce){var be=ce.filter(ta),we=be[0],nt=be[1],Ft=be[2],Xt=be[3],Sn=(we.type===17?xl(we.number):tA.parse(me,we))/(Math.PI*2),Bn=ms(nt)?nt.number/100:0,Cr=ms(Ft)?Ft.number/100:0,Or=typeof Xt!="undefined"&&ms(Xt)?aa(Xt,1):1;if(Bn===0)return Vl(Cr*255,Cr*255,Cr*255,1);var Zr=Cr<=.5?Cr*(Bn+1):Cr+Bn-Cr*Bn,Ti=Cr*2-Zr,ha=Ul(Ti,Zr,Sn+1/3),ho=Ul(Ti,Zr,Sn),Zo=Ul(Ti,Zr,Sn-1/3);return Vl(ha*255,ho*255,Zo*255,Or)},Pa={hsl:Mu,hsla:Mu,rgb:td,rgba:td},Ra=function(me,ce){return Bl.parse(me,ba.create(ce).parseComponentValue())},Ms={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},nA={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(me,ce){return ce.map(function(be){if(za(be))switch(be.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Xl={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},du=function(me,ce){var be=Bl.parse(me,ce[0]),we=ce[1];return we&&ms(we)?{color:be,stop:we}:{color:be,stop:null}},ZA=function(me,ce){var be=me[0],we=me[me.length-1];be.stop===null&&(be.stop=ml),we.stop===null&&(we.stop=FA);for(var nt=[],Ft=0,Xt=0;Xt<me.length;Xt++){var Sn=me[Xt].stop;if(Sn!==null){var Bn=aa(Sn,ce);Bn>Ft?nt.push(Bn):nt.push(Ft),Ft=Bn}else nt.push(null)}for(var Cr=null,Xt=0;Xt<nt.length;Xt++){var Or=nt[Xt];if(Or===null)Cr===null&&(Cr=Xt);else if(Cr!==null){for(var Zr=Xt-Cr,Ti=nt[Cr-1],ha=(Or-Ti)/(Zr+1),ho=1;ho<=Zr;ho++)nt[Cr+ho-1]=ha*ho;Cr=null}}return me.map(function(Zo,As){var wa=Zo.color;return{color:wa,stop:Math.max(Math.min(1,nt[As]/ce),0)}})},gA=function(me,ce,be){var we=ce/2,nt=be/2,Ft=aa(me[0],ce)-we,Xt=nt-aa(me[1],be);return(Math.atan2(Xt,Ft)+Math.PI*2)%(Math.PI*2)},fc=function(me,ce,be){var we=typeof me=="number"?me:gA(me,ce,be),nt=Math.abs(ce*Math.sin(we))+Math.abs(be*Math.cos(we)),Ft=ce/2,Xt=be/2,Sn=nt/2,Bn=Math.sin(we-Math.PI/2)*Sn,Cr=Math.cos(we-Math.PI/2)*Sn;return[nt,Ft-Cr,Ft+Cr,Xt-Bn,Xt+Bn]},Yl=function(me,ce){return Math.sqrt(me*me+ce*ce)},mA=function(me,ce,be,we,nt){var Ft=[[0,0],[0,ce],[me,0],[me,ce]];return Ft.reduce(function(Xt,Sn){var Bn=Sn[0],Cr=Sn[1],Or=Yl(be-Bn,we-Cr);return(nt?Or<Xt.optimumDistance:Or>Xt.optimumDistance)?{optimumCorner:Sn,optimumDistance:Or}:Xt},{optimumDistance:nt?1/0:-1/0,optimumCorner:null}).optimumCorner},tc=function(me,ce,be,we,nt){var Ft=0,Xt=0;switch(me.size){case 0:me.shape===0?Ft=Xt=Math.min(Math.abs(ce),Math.abs(ce-we),Math.abs(be),Math.abs(be-nt)):me.shape===1&&(Ft=Math.min(Math.abs(ce),Math.abs(ce-we)),Xt=Math.min(Math.abs(be),Math.abs(be-nt)));break;case 2:if(me.shape===0)Ft=Xt=Math.min(Yl(ce,be),Yl(ce,be-nt),Yl(ce-we,be),Yl(ce-we,be-nt));else if(me.shape===1){var Sn=Math.min(Math.abs(be),Math.abs(be-nt))/Math.min(Math.abs(ce),Math.abs(ce-we)),Bn=mA(we,nt,ce,be,!0),Cr=Bn[0],Or=Bn[1];Ft=Yl(Cr-ce,(Or-be)/Sn),Xt=Sn*Ft}break;case 1:me.shape===0?Ft=Xt=Math.max(Math.abs(ce),Math.abs(ce-we),Math.abs(be),Math.abs(be-nt)):me.shape===1&&(Ft=Math.max(Math.abs(ce),Math.abs(ce-we)),Xt=Math.max(Math.abs(be),Math.abs(be-nt)));break;case 3:if(me.shape===0)Ft=Xt=Math.max(Yl(ce,be),Yl(ce,be-nt),Yl(ce-we,be),Yl(ce-we,be-nt));else if(me.shape===1){var Sn=Math.max(Math.abs(be),Math.abs(be-nt))/Math.max(Math.abs(ce),Math.abs(ce-we)),Zr=mA(we,nt,ce,be,!1),Cr=Zr[0],Or=Zr[1];Ft=Yl(Cr-ce,(Or-be)/Sn),Xt=Sn*Ft}break}return Array.isArray(me.size)&&(Ft=aa(me.size[0],we),Xt=me.size.length===2?aa(me.size[1],nt):Ft),[Ft,Xt]},nc=function(me,ce){var be=xl(180),we=[];return Ta(ce).forEach(function(nt,Ft){if(Ft===0){var Xt=nt[0];if(Xt.type===20&&Xt.value==="to"){be=PA(nt);return}else if(pA(Xt)){be=tA.parse(me,Xt);return}}var Sn=du(me,nt);we.push(Sn)}),{angle:be,stops:we,type:1}},Ed=function(me,ce){var be=xl(180),we=[];return Ta(ce).forEach(function(nt,Ft){if(Ft===0){var Xt=nt[0];if(Xt.type===20&&["top","left","right","bottom"].indexOf(Xt.value)!==-1){be=PA(nt);return}else if(pA(Xt)){be=(tA.parse(me,Xt)+xl(270))%xl(360);return}}var Sn=du(me,nt);we.push(Sn)}),{angle:be,stops:we,type:1}},Jf=function(me,ce){var be=xl(180),we=[],nt=1,Ft=0,Xt=3,Sn=[];return Ta(ce).forEach(function(Bn,Cr){var Or=Bn[0];if(Cr===0){if(za(Or)&&Or.value==="linear"){nt=1;return}else if(za(Or)&&Or.value==="radial"){nt=2;return}}if(Or.type===18){if(Or.name==="from"){var Zr=Bl.parse(me,Or.values[0]);we.push({stop:ml,color:Zr})}else if(Or.name==="to"){var Zr=Bl.parse(me,Or.values[0]);we.push({stop:FA,color:Zr})}else if(Or.name==="color-stop"){var Ti=Or.values.filter(ta);if(Ti.length===2){var Zr=Bl.parse(me,Ti[1]),ha=Ti[0];Va(ha)&&we.push({stop:{type:16,number:ha.number*100,flags:ha.flags},color:Zr})}}}}),nt===1?{angle:(be+xl(180))%xl(360),stops:we,type:nt}:{size:Xt,shape:Ft,stops:we,position:Sn,type:nt}},nd="closest-side",Oc="farthest-side",hc="closest-corner",Lu="farthest-corner",Pc="circle",rc="ellipse",Sd="cover",qf="contain",Os=function(me,ce){var be=0,we=3,nt=[],Ft=[];return Ta(ce).forEach(function(Xt,Sn){var Bn=!0;if(Sn===0){var Cr=!1;Bn=Xt.reduce(function(Zr,Ti){if(Cr)if(za(Ti))switch(Ti.value){case"center":return Ft.push(Kc),Zr;case"top":case"left":return Ft.push(ml),Zr;case"right":case"bottom":return Ft.push(FA),Zr}else(ms(Ti)||Ml(Ti))&&Ft.push(Ti);else if(za(Ti))switch(Ti.value){case Pc:return be=0,!1;case rc:return be=1,!1;case"at":return Cr=!0,!1;case nd:return we=0,!1;case Sd:case Oc:return we=1,!1;case qf:case hc:return we=2,!1;case Lu:return we=3,!1}else if(Ml(Ti)||ms(Ti))return Array.isArray(we)||(we=[]),we.push(Ti),!1;return Zr},Bn)}if(Bn){var Or=du(me,Xt);nt.push(Or)}}),{size:we,shape:be,stops:nt,position:Ft,type:2}},Gu=function(me,ce){var be=0,we=3,nt=[],Ft=[];return Ta(ce).forEach(function(Xt,Sn){var Bn=!0;if(Sn===0?Bn=Xt.reduce(function(Or,Zr){if(za(Zr))switch(Zr.value){case"center":return Ft.push(Kc),!1;case"top":case"left":return Ft.push(ml),!1;case"right":case"bottom":return Ft.push(FA),!1}else if(ms(Zr)||Ml(Zr))return Ft.push(Zr),!1;return Or},Bn):Sn===1&&(Bn=Xt.reduce(function(Or,Zr){if(za(Zr))switch(Zr.value){case Pc:return be=0,!1;case rc:return be=1,!1;case qf:case nd:return we=0,!1;case Oc:return we=1,!1;case hc:return we=2,!1;case Sd:case Lu:return we=3,!1}else if(Ml(Zr)||ms(Zr))return Array.isArray(we)||(we=[]),we.push(Zr),!1;return Or},Bn)),Bn){var Cr=du(me,Xt);nt.push(Cr)}}),{size:we,shape:be,stops:nt,position:Ft,type:2}},pc=function(me){return me.type===1},_h=function(me){return me.type===2},WA={name:"image",parse:function(me,ce){if(ce.type===22){var be={url:ce.value,type:0};return me.cache.addImage(ce.value),be}if(ce.type===18){var we=Fd[ce.name];if(typeof we=="undefined")throw new Error('Attempting to parse an unsupported image function "'+ce.name+'"');return we(me,ce.values)}throw new Error("Unsupported image type "+ce.type)}};function Th(me){return!(me.type===20&&me.value==="none")&&(me.type!==18||!!Fd[me.name])}var Fd={"linear-gradient":nc,"-moz-linear-gradient":Ed,"-ms-linear-gradient":Ed,"-o-linear-gradient":Ed,"-webkit-linear-gradient":Ed,"radial-gradient":Os,"-moz-radial-gradient":Gu,"-ms-radial-gradient":Gu,"-o-radial-gradient":Gu,"-webkit-radial-gradient":Gu,"-webkit-gradient":Jf},eh={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(me,ce){if(ce.length===0)return[];var be=ce[0];return be.type===20&&be.value==="none"?[]:ce.filter(function(we){return ta(we)&&Th(we)}).map(function(we){return WA.parse(me,we)})}},bf={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(me,ce){return ce.map(function(be){if(za(be))switch(be.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Cf={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(me,ce){return Ta(ce).map(function(be){return be.filter(ms)}).map(bu)}},$A={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(me,ce){return Ta(ce).map(function(be){return be.filter(za).map(function(we){return we.value}).join(" ")}).map(ya)}},ya=function(me){switch(me){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}},Rl;(function(me){me.AUTO="auto",me.CONTAIN="contain",me.COVER="cover"})(Rl||(Rl={}));var _A={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(me,ce){return Ta(ce).map(function(be){return be.filter(rd)})}},rd=function(me){return za(me)||ms(me)},_c=function(me){return{name:"border-"+me+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Kp=_c("top"),Tc=_c("right"),th=_c("bottom"),TA=_c("left"),id=function(me){return{name:"border-radius-"+me,initialValue:"0 0",prefix:!1,type:1,parse:function(ce,be){return bu(be.filter(ms))}}},Zp=id("top-left"),gc=id("top-right"),IA=id("bottom-right"),rA=id("bottom-left"),Hs=function(me){return{name:"border-"+me+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(ce,be){switch(be){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},mc=Hs("top"),od=Hs("right"),ad=Hs("bottom"),vc=Hs("left"),kc=function(me){return{name:"border-"+me+"-width",initialValue:"0",type:0,prefix:!1,parse:function(ce,be){return qa(be)?be.number:0}}},xf=kc("top"),Id=kc("right"),kh=kc("bottom"),Wp=kc("left"),iA={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},yc={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(me,ce){switch(ce){case"rtl":return 1;case"ltr":default:return 0}}},up={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(me,ce){return ce.filter(za).reduce(function(be,we){return be|$p(we.value)},0)}},$p=function(me){switch(me){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},Vd={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(me,ce){switch(ce){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Ap={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(me,ce){return ce.type===20&&ce.value==="normal"?0:ce.type===17||ce.type===15?ce.number:0}},Xd;(function(me){me.NORMAL="normal",me.STRICT="strict"})(Xd||(Xd={}));var Gp={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(me,ce){switch(ce){case"strict":return Xd.STRICT;case"normal":default:return Xd.NORMAL}}},oA={name:"line-height",initialValue:"normal",prefix:!1,type:4},Du=function(me,ce){return za(me)&&me.value==="normal"?1.2*ce:me.type===17?ce*me.number:ms(me)?aa(me,ce):ce},aA={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(me,ce){return ce.type===20&&ce.value==="none"?null:WA.parse(me,ce)}},Nu={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(me,ce){switch(ce){case"inside":return 0;case"outside":default:return 1}}},sd={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(me,ce){switch(ce){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}}},Yd=function(me){return{name:"margin-"+me,initialValue:"0",prefix:!1,type:4}},Bf=Yd("top"),cp=Yd("right"),dp=Yd("bottom"),fp=Yd("left"),nh={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(me,ce){return ce.filter(za).map(function(be){switch(be.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},wc={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(me,ce){switch(ce){case"break-word":return"break-word";case"normal":default:return"normal"}}},Ld=function(me){return{name:"padding-"+me,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},hp=Ld("top"),wt=Ld("right"),yt=Ld("bottom"),Vt=Ld("left"),cn={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(me,ce){switch(ce){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Fn={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(me,ce){switch(ce){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},kn={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(me,ce){return ce.length===1&&cu(ce[0],"none")?[]:Ta(ce).map(function(be){for(var we={color:Ms.TRANSPARENT,offsetX:ml,offsetY:ml,blur:ml},nt=0,Ft=0;Ft<be.length;Ft++){var Xt=be[Ft];Ml(Xt)?(nt===0?we.offsetX=Xt:nt===1?we.offsetY=Xt:we.blur=Xt,nt++):we.color=Bl.parse(me,Xt)}return we})}},ar={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(me,ce){switch(ce){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},qn={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(me,ce){if(ce.type===20&&ce.value==="none")return null;if(ce.type===18){var be=di[ce.name];if(typeof be=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+ce.name+'"');return be(ce.values)}return null}},wr=function(me){var ce=me.filter(function(be){return be.type===17}).map(function(be){return be.number});return ce.length===6?ce:null},dr=function(me){var ce=me.filter(function(Bn){return Bn.type===17}).map(function(Bn){return Bn.number}),be=ce[0],we=ce[1];ce[2],ce[3];var nt=ce[4],Ft=ce[5];ce[6],ce[7],ce[8],ce[9],ce[10],ce[11];var Xt=ce[12],Sn=ce[13];return ce[14],ce[15],ce.length===16?[be,we,nt,Ft,Xt,Sn]:null},di={matrix:wr,matrix3d:dr},Rr={type:16,number:50,flags:Yt},jr=[Rr,Rr],Dr={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(me,ce){var be=ce.filter(ms);return be.length!==2?jr:[be[0],be[1]]}},Fr={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(me,ce){switch(ce){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},$i;(function(me){me.NORMAL="normal",me.BREAK_ALL="break-all",me.KEEP_ALL="keep-all"})($i||($i={}));for(var bi={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(me,ce){switch(ce){case"break-all":return $i.BREAK_ALL;case"keep-all":return $i.KEEP_ALL;case"normal":default:return $i.NORMAL}}},qi={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(me,ce){if(ce.type===20)return{auto:!0,order:0};if(Va(ce))return{auto:!1,order:ce.number};throw new Error("Invalid z-index number parsed")}},ao={name:"time",parse:function(me,ce){if(ce.type===15)switch(ce.unit.toLowerCase()){case"s":return 1e3*ce.number;case"ms":return ce.number}throw new Error("Unsupported time type")}},Ji={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(me,ce){return Va(ce)?ce.number:1}},fo={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Bo={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(me,ce){return ce.filter(za).map(function(be){switch(be.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(be){return be!==0})}},jo={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(me,ce){var be=[],we=[];return ce.forEach(function(nt){switch(nt.type){case 20:case 0:be.push(nt.value);break;case 17:be.push(nt.number.toString());break;case 4:we.push(be.join(" ")),be.length=0;break}}),be.length&&we.push(be.join(" ")),we.map(function(nt){return nt.indexOf(" ")===-1?nt:"'"+nt+"'"})}},_o={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},La={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(me,ce){if(Va(ce))return ce.number;if(za(ce))switch(ce.value){case"bold":return 700;case"normal":default:return 400}return 400}},sa={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(me,ce){return ce.filter(za).map(function(be){return be.value})}},ea={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(me,ce){switch(ce){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},zo=function(me,ce){return(me&ce)!==0},Ho={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(me,ce){if(ce.length===0)return[];var be=ce[0];return be.type===20&&be.value==="none"?[]:ce}},Qo={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(me,ce){if(ce.length===0)return null;var be=ce[0];if(be.type===20&&be.value==="none")return null;for(var we=[],nt=ce.filter(Ui),Ft=0;Ft<nt.length;Ft++){var Xt=nt[Ft],Sn=nt[Ft+1];if(Xt.type===20){var Bn=Sn&&Va(Sn)?Sn.number:1;we.push({counter:Xt.value,increment:Bn})}}return we}},vo={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(me,ce){if(ce.length===0)return[];for(var be=[],we=ce.filter(Ui),nt=0;nt<we.length;nt++){var Ft=we[nt],Xt=we[nt+1];if(za(Ft)&&Ft.value!=="none"){var Sn=Xt&&Va(Xt)?Xt.number:0;be.push({counter:Ft.value,reset:Sn})}}return be}},co={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(me,ce){return ce.filter(qa).map(function(be){return ao.parse(me,be)})}},To={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(me,ce){if(ce.length===0)return null;var be=ce[0];if(be.type===20&&be.value==="none")return null;var we=[],nt=ce.filter($l);if(nt.length%2!==0)return null;for(var Ft=0;Ft<nt.length;Ft+=2){var Xt=nt[Ft].value,Sn=nt[Ft+1].value;we.push({open:Xt,close:Sn})}return we}},Wo=function(me,ce,be){if(!me)return"";var we=me[Math.min(ce,me.length-1)];return we?be?we.open:we.close:""},na={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(me,ce){return ce.length===1&&cu(ce[0],"none")?[]:Ta(ce).map(function(be){for(var we={color:255,offsetX:ml,offsetY:ml,blur:ml,spread:ml,inset:!1},nt=0,Ft=0;Ft<be.length;Ft++){var Xt=be[Ft];cu(Xt,"inset")?we.inset=!0:Ml(Xt)?(nt===0?we.offsetX=Xt:nt===1?we.offsetY=Xt:nt===2?we.blur=Xt:we.spread=Xt,nt++):we.color=Bl.parse(me,Xt)}return we})}},Co={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(me,ce){var be=[0,1,2],we=[];return ce.filter(za).forEach(function(nt){switch(nt.value){case"stroke":we.push(1);break;case"fill":we.push(0);break;case"markers":we.push(2);break}}),be.forEach(function(nt){we.indexOf(nt)===-1&&we.push(nt)}),we}},Ya={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Ka={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(me,ce){return qa(ce)?ce.number:0}},_l=function(){function me(ce,be){var we,nt;this.animationDuration=so(ce,co,be.animationDuration),this.backgroundClip=so(ce,nA,be.backgroundClip),this.backgroundColor=so(ce,Xl,be.backgroundColor),this.backgroundImage=so(ce,eh,be.backgroundImage),this.backgroundOrigin=so(ce,bf,be.backgroundOrigin),this.backgroundPosition=so(ce,Cf,be.backgroundPosition),this.backgroundRepeat=so(ce,$A,be.backgroundRepeat),this.backgroundSize=so(ce,_A,be.backgroundSize),this.borderTopColor=so(ce,Kp,be.borderTopColor),this.borderRightColor=so(ce,Tc,be.borderRightColor),this.borderBottomColor=so(ce,th,be.borderBottomColor),this.borderLeftColor=so(ce,TA,be.borderLeftColor),this.borderTopLeftRadius=so(ce,Zp,be.borderTopLeftRadius),this.borderTopRightRadius=so(ce,gc,be.borderTopRightRadius),this.borderBottomRightRadius=so(ce,IA,be.borderBottomRightRadius),this.borderBottomLeftRadius=so(ce,rA,be.borderBottomLeftRadius),this.borderTopStyle=so(ce,mc,be.borderTopStyle),this.borderRightStyle=so(ce,od,be.borderRightStyle),this.borderBottomStyle=so(ce,ad,be.borderBottomStyle),this.borderLeftStyle=so(ce,vc,be.borderLeftStyle),this.borderTopWidth=so(ce,xf,be.borderTopWidth),this.borderRightWidth=so(ce,Id,be.borderRightWidth),this.borderBottomWidth=so(ce,kh,be.borderBottomWidth),this.borderLeftWidth=so(ce,Wp,be.borderLeftWidth),this.boxShadow=so(ce,na,be.boxShadow),this.color=so(ce,iA,be.color),this.direction=so(ce,yc,be.direction),this.display=so(ce,up,be.display),this.float=so(ce,Vd,be.cssFloat),this.fontFamily=so(ce,jo,be.fontFamily),this.fontSize=so(ce,_o,be.fontSize),this.fontStyle=so(ce,ea,be.fontStyle),this.fontVariant=so(ce,sa,be.fontVariant),this.fontWeight=so(ce,La,be.fontWeight),this.letterSpacing=so(ce,Ap,be.letterSpacing),this.lineBreak=so(ce,Gp,be.lineBreak),this.lineHeight=so(ce,oA,be.lineHeight),this.listStyleImage=so(ce,aA,be.listStyleImage),this.listStylePosition=so(ce,Nu,be.listStylePosition),this.listStyleType=so(ce,sd,be.listStyleType),this.marginTop=so(ce,Bf,be.marginTop),this.marginRight=so(ce,cp,be.marginRight),this.marginBottom=so(ce,dp,be.marginBottom),this.marginLeft=so(ce,fp,be.marginLeft),this.opacity=so(ce,Ji,be.opacity);var Ft=so(ce,nh,be.overflow);this.overflowX=Ft[0],this.overflowY=Ft[Ft.length>1?1:0],this.overflowWrap=so(ce,wc,be.overflowWrap),this.paddingTop=so(ce,hp,be.paddingTop),this.paddingRight=so(ce,wt,be.paddingRight),this.paddingBottom=so(ce,yt,be.paddingBottom),this.paddingLeft=so(ce,Vt,be.paddingLeft),this.paintOrder=so(ce,Co,be.paintOrder),this.position=so(ce,Fn,be.position),this.textAlign=so(ce,cn,be.textAlign),this.textDecorationColor=so(ce,fo,(we=be.textDecorationColor)!==null&&we!==void 0?we:be.color),this.textDecorationLine=so(ce,Bo,(nt=be.textDecorationLine)!==null&&nt!==void 0?nt:be.textDecoration),this.textShadow=so(ce,kn,be.textShadow),this.textTransform=so(ce,ar,be.textTransform),this.transform=so(ce,qn,be.transform),this.transformOrigin=so(ce,Dr,be.transformOrigin),this.visibility=so(ce,Fr,be.visibility),this.webkitTextStrokeColor=so(ce,Ya,be.webkitTextStrokeColor),this.webkitTextStrokeWidth=so(ce,Ka,be.webkitTextStrokeWidth),this.wordBreak=so(ce,bi,be.wordBreak),this.zIndex=so(ce,qi,be.zIndex)}return me.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},me.prototype.isTransparent=function(){return rl(this.backgroundColor)},me.prototype.isTransformed=function(){return this.transform!==null},me.prototype.isPositioned=function(){return this.position!==0},me.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},me.prototype.isFloating=function(){return this.float!==0},me.prototype.isInlineLevel=function(){return zo(this.display,4)||zo(this.display,33554432)||zo(this.display,268435456)||zo(this.display,536870912)||zo(this.display,67108864)||zo(this.display,134217728)},me}(),El=function(){function me(ce,be){this.content=so(ce,Ho,be.content),this.quotes=so(ce,To,be.quotes)}return me}(),al=function(){function me(ce,be){this.counterIncrement=so(ce,Qo,be.counterIncrement),this.counterReset=so(ce,vo,be.counterReset)}return me}(),so=function(me,ce,be){var we=new ma,nt=be!==null&&typeof be!="undefined"?be.toString():ce.initialValue;we.write(nt);var Ft=new ba(we.read());switch(ce.type){case 2:var Xt=Ft.parseComponentValue();return ce.parse(me,za(Xt)?Xt.value:ce.initialValue);case 0:return ce.parse(me,Ft.parseComponentValue());case 1:return ce.parse(me,Ft.parseComponentValues());case 4:return Ft.parseComponentValue();case 3:switch(ce.format){case"angle":return tA.parse(me,Ft.parseComponentValue());case"color":return Bl.parse(me,Ft.parseComponentValue());case"image":return WA.parse(me,Ft.parseComponentValue());case"length":var Sn=Ft.parseComponentValue();return Ml(Sn)?Sn:ml;case"length-percentage":var Bn=Ft.parseComponentValue();return ms(Bn)?Bn:ml;case"time":return ao.parse(me,Ft.parseComponentValue())}break}},Jl="data-html2canvas-debug",ss=function(me){var ce=me.getAttribute(Jl);switch(ce){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},rs=function(me,ce){var be=ss(me);return be===1||ce===be},il=function(){function me(ce,be){if(this.context=ce,this.textNodes=[],this.elements=[],this.flags=0,rs(be,3))debugger;this.styles=new _l(ce,window.getComputedStyle(be,null)),Rh(be)&&(this.styles.animationDuration.some(function(we){return we>0})&&(be.style.animationDuration="0s"),this.styles.transform!==null&&(be.style.transform="none")),this.bounds=Se(this.context,be),rs(be,4)&&(this.flags|=16)}return me}(),fu="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",ra="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ca=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),$o=0;$o<ra.length;$o++)Ca[ra.charCodeAt($o)]=$o;for(var Oo=function(me){var ce=me.length*.75,be=me.length,we,nt=0,Ft,Xt,Sn,Bn;me[me.length-1]==="="&&(ce--,me[me.length-2]==="="&&ce--);var Cr=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(ce):new Array(ce),Or=Array.isArray(Cr)?Cr:new Uint8Array(Cr);for(we=0;we<be;we+=4)Ft=Ca[me.charCodeAt(we)],Xt=Ca[me.charCodeAt(we+1)],Sn=Ca[me.charCodeAt(we+2)],Bn=Ca[me.charCodeAt(we+3)],Or[nt++]=Ft<<2|Xt>>4,Or[nt++]=(Xt&15)<<4|Sn>>2,Or[nt++]=(Sn&3)<<6|Bn&63;return Cr},fs=function(me){for(var ce=me.length,be=[],we=0;we<ce;we+=2)be.push(me[we+1]<<8|me[we]);return be},Ss=function(me){for(var ce=me.length,be=[],we=0;we<ce;we+=4)be.push(me[we+3]<<24|me[we+2]<<16|me[we+1]<<8|me[we]);return be},Ws=5,Qs=11,sl=2,pu=Qs-Ws,la=65536>>Ws,qo=1<<Ws,xs=qo-1,Ys=1024>>Ws,$s=la+Ys,gu=$s,Tl=32,sA=gu+Tl,Sl=65536>>Qs,vs=1<<pu,ll=vs-1,ul=function(me,ce,be){return me.slice?me.slice(ce,be):new Uint16Array(Array.prototype.slice.call(me,ce,be))},hu=function(me,ce,be){return me.slice?me.slice(ce,be):new Uint32Array(Array.prototype.slice.call(me,ce,be))},kl=function(me,ce){var be=Oo(me),we=Array.isArray(be)?Ss(be):new Uint32Array(be),nt=Array.isArray(be)?fs(be):new Uint16Array(be),Ft=24,Xt=ul(nt,Ft/2,we[4]/2),Sn=we[5]===2?ul(nt,(Ft+we[4])/2):hu(we,Math.ceil((Ft+we[4])/4));return new ys(we[0],we[1],we[2],we[3],Xt,Sn)},ys=function(){function me(ce,be,we,nt,Ft,Xt){this.initialValue=ce,this.errorValue=be,this.highStart=we,this.highValueIndex=nt,this.index=Ft,this.data=Xt}return me.prototype.get=function(ce){var be;if(ce>=0){if(ce<55296||ce>56319&&ce<=65535)return be=this.index[ce>>Ws],be=(be<<sl)+(ce&xs),this.data[be];if(ce<=65535)return be=this.index[la+(ce-55296>>Ws)],be=(be<<sl)+(ce&xs),this.data[be];if(ce<this.highStart)return be=sA-Sl+(ce>>Qs),be=this.index[be],be+=ce>>Ws&ll,be=this.index[be],be=(be<<sl)+(ce&xs),this.data[be];if(ce<=1114111)return this.data[this.highValueIndex]}return this.errorValue},me}(),vl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fs=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),yl=0;yl<vl.length;yl++)Fs[vl.charCodeAt(yl)]=yl;var ql=1,Ou=2,Pu=3,GA=4,Al=5,Dd=7,Uu=8,Vu=9,Ru=10,Xu=11,cl=12,vA=13,bc=14,kA=15,VA=function(me){for(var ce=[],be=0,we=me.length;be<we;){var nt=me.charCodeAt(be++);if(nt>=55296&&nt<=56319&&be<we){var Ft=me.charCodeAt(be++);(Ft&64512)===56320?ce.push(((nt&1023)<<10)+(Ft&1023)+65536):(ce.push(nt),be--)}else ce.push(nt)}return ce},Jd=function(){for(var me=[],ce=0;ce<arguments.length;ce++)me[ce]=arguments[ce];if(String.fromCodePoint)return String.fromCodePoint.apply(String,me);var be=me.length;if(!be)return"";for(var we=[],nt=-1,Ft="";++nt<be;){var Xt=me[nt];Xt<=65535?we.push(Xt):(Xt-=65536,we.push((Xt>>10)+55296,Xt%1024+56320)),(nt+1===be||we.length>16384)&&(Ft+=String.fromCharCode.apply(String,we),we.length=0)}return Ft},qd=kl(fu),Is="\xD7",ld="\xF7",Ef=function(me){return qd.get(me)},Za=function(me,ce,be){var we=be-2,nt=ce[we],Ft=ce[be-1],Xt=ce[be];if(Ft===Ou&&Xt===Pu)return Is;if(Ft===Ou||Ft===Pu||Ft===GA||Xt===Ou||Xt===Pu||Xt===GA)return ld;if(Ft===Uu&&[Uu,Vu,Xu,cl].indexOf(Xt)!==-1||(Ft===Xu||Ft===Vu)&&(Xt===Vu||Xt===Ru)||(Ft===cl||Ft===Ru)&&Xt===Ru||Xt===vA||Xt===Al||Xt===Dd||Ft===ql)return Is;if(Ft===vA&&Xt===bc){for(;nt===Al;)nt=ce[--we];if(nt===bc)return Is}if(Ft===kA&&Xt===kA){for(var Sn=0;nt===kA;)Sn++,nt=ce[--we];if(Sn%2===0)return Is}return ld},hs=function(me){var ce=VA(me),be=ce.length,we=0,nt=0,Ft=ce.map(Ef);return{next:function(){if(we>=be)return{done:!0,value:null};for(var Xt=Is;we<be&&(Xt=Za(ce,Ft,++we))===Is;);if(Xt!==Is||we===be){var Sn=Jd.apply(null,ce.slice(nt,we));return nt=we,{value:Sn,done:!1}}return{done:!0,value:null}}}},jl=function(me){for(var ce=hs(me),be=[],we;!(we=ce.next()).done;)we.value&&be.push(we.value.slice());return be},su=function(me){var ce=123;if(me.createRange){var be=me.createRange();if(be.getBoundingClientRect){var we=me.createElement("boundtest");we.style.height=ce+"px",we.style.display="block",me.body.appendChild(we),be.selectNode(we);var nt=be.getBoundingClientRect(),Ft=Math.round(nt.height);if(me.body.removeChild(we),Ft===ce)return!0}}return!1},xu=function(me){var ce=me.createElement("boundtest");ce.style.width="50px",ce.style.display="block",ce.style.fontSize="12px",ce.style.letterSpacing="0px",ce.style.wordSpacing="0px",me.body.appendChild(ce);var be=me.createRange();ce.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var we=ce.firstChild,nt=fe(we.data).map(function(Bn){return Ce(Bn)}),Ft=0,Xt={},Sn=nt.every(function(Bn,Cr){be.setStart(we,Ft),be.setEnd(we,Ft+Bn.length);var Or=be.getBoundingClientRect();Ft+=Bn.length;var Zr=Or.x>Xt.x||Or.y>Xt.y;return Xt=Or,Cr===0?!0:Zr});return me.body.removeChild(ce),Sn},Bu=function(){return typeof new Image().crossOrigin!="undefined"},Yu=function(){return typeof new XMLHttpRequest().responseType=="string"},ju=function(me){var ce=new Image,be=me.createElement("canvas"),we=be.getContext("2d");if(!we)return!1;ce.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{we.drawImage(ce,0,0),be.toDataURL()}catch(nt){return!1}return!0},Zc=function(me){return me[0]===0&&me[1]===255&&me[2]===0&&me[3]===255},Sf=function(me){var ce=me.createElement("canvas"),be=100;ce.width=be,ce.height=be;var we=ce.getContext("2d");if(!we)return Promise.reject(!1);we.fillStyle="rgb(0, 255, 0)",we.fillRect(0,0,be,be);var nt=new Image,Ft=ce.toDataURL();nt.src=Ft;var Xt=Wc(be,be,0,0,nt);return we.fillStyle="red",we.fillRect(0,0,be,be),$c(Xt).then(function(Sn){we.drawImage(Sn,0,0);var Bn=we.getImageData(0,0,be,be).data;we.fillStyle="red",we.fillRect(0,0,be,be);var Cr=me.createElement("div");return Cr.style.backgroundImage="url("+Ft+")",Cr.style.height=be+"px",Zc(Bn)?$c(Wc(be,be,0,0,Cr)):Promise.reject(!1)}).then(function(Sn){return we.drawImage(Sn,0,0),Zc(we.getImageData(0,0,be,be).data)}).catch(function(){return!1})},Wc=function(me,ce,be,we,nt){var Ft="http://www.w3.org/2000/svg",Xt=document.createElementNS(Ft,"svg"),Sn=document.createElementNS(Ft,"foreignObject");return Xt.setAttributeNS(null,"width",me.toString()),Xt.setAttributeNS(null,"height",ce.toString()),Sn.setAttributeNS(null,"width","100%"),Sn.setAttributeNS(null,"height","100%"),Sn.setAttributeNS(null,"x",be.toString()),Sn.setAttributeNS(null,"y",we.toString()),Sn.setAttributeNS(null,"externalResourcesRequired","true"),Xt.appendChild(Sn),Sn.appendChild(nt),Xt},$c=function(me){return new Promise(function(ce,be){var we=new Image;we.onload=function(){return ce(we)},we.onerror=be,we.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(me))})},mu={get SUPPORT_RANGE_BOUNDS(){var me=su(document);return Object.defineProperty(mu,"SUPPORT_RANGE_BOUNDS",{value:me}),me},get SUPPORT_WORD_BREAKING(){var me=mu.SUPPORT_RANGE_BOUNDS&&xu(document);return Object.defineProperty(mu,"SUPPORT_WORD_BREAKING",{value:me}),me},get SUPPORT_SVG_DRAWING(){var me=ju(document);return Object.defineProperty(mu,"SUPPORT_SVG_DRAWING",{value:me}),me},get SUPPORT_FOREIGNOBJECT_DRAWING(){var me=typeof Array.from=="function"&&typeof window.fetch=="function"?Sf(document):Promise.resolve(!1);return Object.defineProperty(mu,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:me}),me},get SUPPORT_CORS_IMAGES(){var me=Bu();return Object.defineProperty(mu,"SUPPORT_CORS_IMAGES",{value:me}),me},get SUPPORT_RESPONSE_TYPE(){var me=Yu();return Object.defineProperty(mu,"SUPPORT_RESPONSE_TYPE",{value:me}),me},get SUPPORT_CORS_XHR(){var me="withCredentials"in new XMLHttpRequest;return Object.defineProperty(mu,"SUPPORT_CORS_XHR",{value:me}),me},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var me=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(mu,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:me}),me}},MA=function(){function me(ce,be){this.text=ce,this.bounds=be}return me}(),ef=function(me,ce,be,we){var nt=rh(ce,be),Ft=[],Xt=0;return nt.forEach(function(Sn){if(be.textDecorationLine.length||Sn.trim().length>0)if(mu.SUPPORT_RANGE_BOUNDS){var Bn=tf(we,Xt,Sn.length).getClientRects();if(Bn.length>1){var Cr=If(Sn),Or=0;Cr.forEach(function(Ti){Ft.push(new MA(Ti,ze.fromDOMRectList(me,tf(we,Or+Xt,Ti.length).getClientRects()))),Or+=Ti.length})}else Ft.push(new MA(Sn,ze.fromDOMRectList(me,Bn)))}else{var Zr=we.splitText(Sn.length);Ft.push(new MA(Sn,Ff(me,we))),we=Zr}else mu.SUPPORT_RANGE_BOUNDS||(we=we.splitText(Sn.length));Xt+=Sn.length}),Ft},Ff=function(me,ce){var be=ce.ownerDocument;if(be){var we=be.createElement("html2canvaswrapper");we.appendChild(ce.cloneNode(!0));var nt=ce.parentNode;if(nt){nt.replaceChild(we,ce);var Ft=Se(me,we);return we.firstChild&&nt.replaceChild(we.firstChild,we),Ft}}return ze.EMPTY},tf=function(me,ce,be){var we=me.ownerDocument;if(!we)throw new Error("Node has no owner document");var nt=we.createRange();return nt.setStart(me,ce),nt.setEnd(me,ce+be),nt},If=function(me){if(mu.SUPPORT_NATIVE_TEXT_SEGMENTATION){var ce=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(ce.segment(me)).map(function(be){return be.segment})}return jl(me)},Gc=function(me,ce){if(mu.SUPPORT_NATIVE_TEXT_SEGMENTATION){var be=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(be.segment(me)).map(function(we){return we.segment})}return ih(me,ce)},rh=function(me,ce){return ce.letterSpacing!==0?If(me):Gc(me,ce)},pp=[32,160,4961,65792,65793,4153,4241],ih=function(me,ce){for(var be=or(me,{lineBreak:ce.lineBreak,wordBreak:ce.overflowWrap==="break-word"?"break-word":ce.wordBreak}),we=[],nt,Ft=function(){if(nt.value){var Xt=nt.value.slice(),Sn=fe(Xt),Bn="";Sn.forEach(function(Cr){pp.indexOf(Cr)===-1?Bn+=Ce(Cr):(Bn.length&&we.push(Bn),we.push(Ce(Cr)),Bn="")}),Bn.length&&we.push(Bn)}};!(nt=be.next()).done;)Ft();return we},nf=function(){function me(ce,be,we){this.text=gp(be.data,we.textTransform),this.textBounds=ef(ce,this.text,we,be)}return me}(),gp=function(me,ce){switch(ce){case 1:return me.toLowerCase();case 3:return me.replace(mp,rf);case 2:return me.toUpperCase();default:return me}},mp=/(^|\s|:|-|\(|\))([a-z])/g,rf=function(me,ce,be){return me.length>0?ce+be.toUpperCase():me},Lf=function(me){ae(ce,me);function ce(be,we){var nt=me.call(this,be,we)||this;return nt.src=we.currentSrc||we.src,nt.intrinsicWidth=we.naturalWidth,nt.intrinsicHeight=we.naturalHeight,nt.context.cache.addImage(nt.src),nt}return ce}(il),Nd=function(me){ae(ce,me);function ce(be,we){var nt=me.call(this,be,we)||this;return nt.canvas=we,nt.intrinsicWidth=we.width,nt.intrinsicHeight=we.height,nt}return ce}(il),Df=function(me){ae(ce,me);function ce(be,we){var nt=me.call(this,be,we)||this,Ft=new XMLSerializer,Xt=Se(be,we);return we.setAttribute("width",Xt.width+"px"),we.setAttribute("height",Xt.height+"px"),nt.svg="data:image/svg+xml,"+encodeURIComponent(Ft.serializeToString(we)),nt.intrinsicWidth=we.width.baseVal.value,nt.intrinsicHeight=we.height.baseVal.value,nt.context.cache.addImage(nt.svg),nt}return ce}(il),Od=function(me){ae(ce,me);function ce(be,we){var nt=me.call(this,be,we)||this;return nt.value=we.value,nt}return ce}(il),of=function(me){ae(ce,me);function ce(be,we){var nt=me.call(this,be,we)||this;return nt.start=we.start,nt.reversed=typeof we.reversed=="boolean"&&we.reversed===!0,nt}return ce}(il),Cc=[{type:15,flags:0,unit:"px",number:3}],oh=[{type:16,flags:0,number:50}],ah=function(me){return me.width>me.height?new ze(me.left+(me.width-me.height)/2,me.top,me.height,me.height):me.width<me.height?new ze(me.left,me.top+(me.height-me.width)/2,me.width,me.width):me},Mh=function(me){var ce=me.type===Bc?new Array(me.value.length+1).join("\u2022"):me.value;return ce.length===0?me.placeholder||"":ce},ud="checkbox",xc="radio",Bc="password",Pd=707406591,Ad=function(me){ae(ce,me);function ce(be,we){var nt=me.call(this,be,we)||this;switch(nt.type=we.type.toLowerCase(),nt.checked=we.checked,nt.value=Mh(we),(nt.type===ud||nt.type===xc)&&(nt.styles.backgroundColor=3739148031,nt.styles.borderTopColor=nt.styles.borderRightColor=nt.styles.borderBottomColor=nt.styles.borderLeftColor=2779096575,nt.styles.borderTopWidth=nt.styles.borderRightWidth=nt.styles.borderBottomWidth=nt.styles.borderLeftWidth=1,nt.styles.borderTopStyle=nt.styles.borderRightStyle=nt.styles.borderBottomStyle=nt.styles.borderLeftStyle=1,nt.styles.backgroundClip=[0],nt.styles.backgroundOrigin=[0],nt.bounds=ah(nt.bounds)),nt.type){case ud:nt.styles.borderTopRightRadius=nt.styles.borderTopLeftRadius=nt.styles.borderBottomRightRadius=nt.styles.borderBottomLeftRadius=Cc;break;case xc:nt.styles.borderTopRightRadius=nt.styles.borderTopLeftRadius=nt.styles.borderBottomRightRadius=nt.styles.borderBottomLeftRadius=oh;break}return nt}return ce}(il),Uh=function(me){ae(ce,me);function ce(be,we){var nt=me.call(this,be,we)||this,Ft=we.options[we.selectedIndex||0];return nt.value=Ft&&Ft.text||"",nt}return ce}(il),ps=function(me){ae(ce,me);function ce(be,we){var nt=me.call(this,be,we)||this;return nt.value=we.value,nt}return ce}(il),Ls=function(me){ae(ce,me);function ce(be,we){var nt=me.call(this,be,we)||this;nt.src=we.src,nt.width=parseInt(we.width,10)||0,nt.height=parseInt(we.height,10)||0,nt.backgroundColor=nt.styles.backgroundColor;try{if(we.contentWindow&&we.contentWindow.document&&we.contentWindow.document.documentElement){nt.tree=cd(be,we.contentWindow.document.documentElement);var Ft=we.contentWindow.document.documentElement?Ra(be,getComputedStyle(we.contentWindow.document.documentElement).backgroundColor):Ms.TRANSPARENT,Xt=we.contentWindow.document.body?Ra(be,getComputedStyle(we.contentWindow.document.body).backgroundColor):Ms.TRANSPARENT;nt.backgroundColor=rl(Ft)?rl(Xt)?nt.styles.backgroundColor:Xt:Ft}}catch(Sn){}return nt}return ce}(il),vu=["OL","UL","MENU"],Hu=function(me,ce,be,we){for(var nt=ce.firstChild,Ft=void 0;nt;nt=Ft)if(Ft=nt.nextSibling,dd(nt)&&nt.data.trim().length>0)be.textNodes.push(new nf(me,nt,be.styles));else if(Xc(nt))if(vp(nt)&&nt.assignedNodes)nt.assignedNodes().forEach(function(Sn){return Hu(me,Sn,be,we)});else{var Xt=Qu(me,nt);Xt.styles.isVisible()&&(Vc(nt,Xt,we)?Xt.flags|=4:Mc(Xt.styles)&&(Xt.flags|=2),vu.indexOf(nt.tagName)!==-1&&(Xt.flags|=8),be.elements.push(Xt),nt.slot,nt.shadowRoot?Hu(me,nt.shadowRoot,Xt,we):!Nf(nt)&&!Xp(nt)&&!uh(nt)&&Hu(me,nt,Xt,we))}},Qu=function(me,ce){return af(ce)?new Lf(me,ce):Yp(ce)?new Nd(me,ce):Xp(ce)?new Df(me,ce):Vp(ce)?new Od(me,ce):jh(ce)?new of(me,ce):gg(ce)?new Ad(me,ce):uh(ce)?new Uh(me,ce):Nf(ce)?new ps(me,ce):Ec(ce)?new Ls(me,ce):new il(me,ce)},cd=function(me,ce){var be=Qu(me,ce);return be.flags|=4,Hu(me,ce,be,be),be},Vc=function(me,ce,be){return ce.styles.isPositionedWithZIndex()||ce.styles.opacity<1||ce.styles.isTransformed()||Hl(me)&&be.styles.isTransparent()},Mc=function(me){return me.isPositioned()||me.isFloating()},dd=function(me){return me.nodeType===Node.TEXT_NODE},Xc=function(me){return me.nodeType===Node.ELEMENT_NODE},Rh=function(me){return Xc(me)&&typeof me.style!="undefined"&&!fd(me)},fd=function(me){return typeof me.className=="object"},Vp=function(me){return me.tagName==="LI"},jh=function(me){return me.tagName==="OL"},gg=function(me){return me.tagName==="INPUT"},mg=function(me){return me.tagName==="HTML"},Xp=function(me){return me.tagName==="svg"},Hl=function(me){return me.tagName==="BODY"},Yp=function(me){return me.tagName==="CANVAS"},Hh=function(me){return me.tagName==="VIDEO"},af=function(me){return me.tagName==="IMG"},Ec=function(me){return me.tagName==="IFRAME"},sh=function(me){return me.tagName==="STYLE"},lh=function(me){return me.tagName==="SCRIPT"},Nf=function(me){return me.tagName==="TEXTAREA"},uh=function(me){return me.tagName==="SELECT"},vp=function(me){return me.tagName==="SLOT"},yp=function(me){return me.tagName.indexOf("-")>0},vg=function(){function me(){this.counters={}}return me.prototype.getCounterValue=function(ce){var be=this.counters[ce];return be&&be.length?be[be.length-1]:1},me.prototype.getCounterValues=function(ce){var be=this.counters[ce];return be||[]},me.prototype.pop=function(ce){var be=this;ce.forEach(function(we){return be.counters[we].pop()})},me.prototype.parse=function(ce){var be=this,we=ce.counterIncrement,nt=ce.counterReset,Ft=!0;we!==null&&we.forEach(function(Sn){var Bn=be.counters[Sn.counter];Bn&&Sn.increment!==0&&(Ft=!1,Bn.length||Bn.push(1),Bn[Math.max(0,Bn.length-1)]+=Sn.increment)});var Xt=[];return Ft&&nt.forEach(function(Sn){var Bn=be.counters[Sn.counter];Xt.push(Sn.counter),Bn||(Bn=be.counters[Sn.counter]=[]),Bn.push(Sn.reset)}),Xt},me}(),wp={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"]},Ah={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"]},Jp={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"]},wl={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"]},_d=function(me,ce,be,we,nt,Ft){return me<ce||me>be?ne(me,nt,Ft.length>0):we.integers.reduce(function(Xt,Sn,Bn){for(;me>=Sn;)me-=Sn,Xt+=we.values[Bn];return Xt},"")+Ft},yg=function(me,ce,be,we){var nt="";do be||me--,nt=we(me)+nt,me/=ce;while(me*ce>=ce);return nt},Ql=function(me,ce,be,we,nt){var Ft=be-ce+1;return(me<0?"-":"")+(yg(Math.abs(me),Ft,we,function(Xt){return Ce(Math.floor(Xt%Ft)+ce)})+nt)},Td=function(me,ce,be){be===void 0&&(be=". ");var we=ce.length;return yg(Math.abs(me),we,!1,function(nt){return ce[Math.floor(nt%we)]})+be},Yc=1,hd=2,Fl=4,ch=8,pd=function(me,ce,be,we,nt,Ft){if(me<-9999||me>9999)return ne(me,4,nt.length>0);var Xt=Math.abs(me),Sn=nt;if(Xt===0)return ce[0]+Sn;for(var Bn=0;Xt>0&&Bn<=4;Bn++){var Cr=Xt%10;Cr===0&&zo(Ft,Yc)&&Sn!==""?Sn=ce[Cr]+Sn:Cr>1||Cr===1&&Bn===0||Cr===1&&Bn===1&&zo(Ft,hd)||Cr===1&&Bn===1&&zo(Ft,Fl)&&me>100||Cr===1&&Bn>1&&zo(Ft,ch)?Sn=ce[Cr]+(Bn>0?be[Bn-1]:"")+Sn:Cr===1&&Bn>0&&(Sn=be[Bn-1]+Sn),Xt=Math.floor(Xt/10)}return(me<0?we:"")+Sn},qp="\u5341\u767E\u5343\u842C",Qh="\u62FE\u4F70\u4EDF\u842C",a="\u30DE\u30A4\u30CA\u30B9",b="\uB9C8\uC774\uB108\uC2A4",ne=function(me,ce,be){var we=be?". ":"",nt=be?"\u3001":"",Ft=be?", ":"",Xt=be?" ":"";switch(ce){case 0:return"\u2022"+Xt;case 1:return"\u25E6"+Xt;case 2:return"\u25FE"+Xt;case 5:var Sn=Ql(me,48,57,!0,we);return Sn.length<4?"0"+Sn:Sn;case 4:return Td(me,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",nt);case 6:return _d(me,1,3999,wp,3,we).toLowerCase();case 7:return _d(me,1,3999,wp,3,we);case 8:return Ql(me,945,969,!1,we);case 9:return Ql(me,97,122,!1,we);case 10:return Ql(me,65,90,!1,we);case 11:return Ql(me,1632,1641,!0,we);case 12:case 49:return _d(me,1,9999,Ah,3,we);case 35:return _d(me,1,9999,Ah,3,we).toLowerCase();case 13:return Ql(me,2534,2543,!0,we);case 14:case 30:return Ql(me,6112,6121,!0,we);case 15:return Td(me,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",nt);case 16:return Td(me,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",nt);case 17:case 48:return pd(me,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",qp,"\u8CA0",nt,hd|Fl|ch);case 47:return pd(me,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",Qh,"\u8CA0",nt,Yc|hd|Fl|ch);case 42:return pd(me,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",qp,"\u8D1F",nt,hd|Fl|ch);case 41:return pd(me,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",Qh,"\u8D1F",nt,Yc|hd|Fl|ch);case 26:return pd(me,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",a,nt,0);case 25:return pd(me,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",a,nt,Yc|hd|Fl);case 31:return pd(me,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",b,Ft,Yc|hd|Fl);case 33:return pd(me,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",b,Ft,0);case 32:return pd(me,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",b,Ft,Yc|hd|Fl);case 18:return Ql(me,2406,2415,!0,we);case 20:return _d(me,1,19999,wl,3,we);case 21:return Ql(me,2790,2799,!0,we);case 22:return Ql(me,2662,2671,!0,we);case 22:return _d(me,1,10999,Jp,3,we);case 23:return Td(me,"\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 Td(me,"\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 Ql(me,3302,3311,!0,we);case 28:return Td(me,"\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",nt);case 29:return Td(me,"\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",nt);case 34:return Ql(me,3792,3801,!0,we);case 37:return Ql(me,6160,6169,!0,we);case 38:return Ql(me,4160,4169,!0,we);case 39:return Ql(me,2918,2927,!0,we);case 40:return Ql(me,1776,1785,!0,we);case 43:return Ql(me,3046,3055,!0,we);case 44:return Ql(me,3174,3183,!0,we);case 45:return Ql(me,3664,3673,!0,we);case 46:return Ql(me,3872,3881,!0,we);case 3:default:return Ql(me,48,57,!0,we)}},te="data-html2canvas-ignore",ue=function(){function me(ce,be,we){if(this.context=ce,this.options=we,this.scrolledElements=[],this.referenceElement=be,this.counters=new vg,this.quoteDepth=0,!be.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(be.ownerDocument.documentElement,!1)}return me.prototype.toIFrame=function(ce,be){var we=this,nt=qe(ce,be);if(!nt.contentWindow)return Promise.reject("Unable to find iframe window");var Ft=ce.defaultView.pageXOffset,Xt=ce.defaultView.pageYOffset,Sn=nt.contentWindow,Bn=Sn.document,Cr=Dt(nt).then(function(){return ct(we,void 0,void 0,function(){var Or,Zr;return Le(this,function(Ti){switch(Ti.label){case 0:return this.scrolledElements.forEach(xi),Sn&&(Sn.scrollTo(be.left,be.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(Sn.scrollY!==be.top||Sn.scrollX!==be.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(Sn.scrollX-be.left,Sn.scrollY-be.top,0,0))),Or=this.options.onclone,Zr=this.clonedReferenceElement,typeof Zr=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:Bn.fonts&&Bn.fonts.ready?[4,Bn.fonts.ready]:[3,2];case 1:Ti.sent(),Ti.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,St(Bn)]:[3,4];case 3:Ti.sent(),Ti.label=4;case 4:return typeof Or=="function"?[2,Promise.resolve().then(function(){return Or(Bn,Zr)}).then(function(){return nt})]:[2,nt]}})})});return Bn.open(),Bn.write(Pr(document.doctype)+"<html></html>"),xr(this.referenceElement.ownerDocument,Ft,Xt),Bn.replaceChild(Bn.adoptNode(this.documentElement),Bn.documentElement),Bn.close(),Cr},me.prototype.createElementClone=function(ce){if(rs(ce,2))debugger;if(Yp(ce))return this.createCanvasClone(ce);if(Hh(ce))return this.createVideoClone(ce);if(sh(ce))return this.createStyleClone(ce);var be=ce.cloneNode(!1);return af(be)&&(af(ce)&&ce.currentSrc&&ce.currentSrc!==ce.src&&(be.src=ce.currentSrc,be.srcset=""),be.loading==="lazy"&&(be.loading="eager")),yp(be)?this.createCustomElementClone(be):be},me.prototype.createCustomElementClone=function(ce){var be=document.createElement("html2canvascustomelement");return Hn(ce.style,be),be},me.prototype.createStyleClone=function(ce){try{var be=ce.sheet;if(be&&be.cssRules){var we=[].slice.call(be.cssRules,0).reduce(function(Ft,Xt){return Xt&&typeof Xt.cssText=="string"?Ft+Xt.cssText:Ft},""),nt=ce.cloneNode(!1);return nt.textContent=we,nt}}catch(Ft){if(this.context.logger.error("Unable to access cssRules property",Ft),Ft.name!=="SecurityError")throw Ft}return ce.cloneNode(!1)},me.prototype.createCanvasClone=function(ce){var be;if(this.options.inlineImages&&ce.ownerDocument){var we=ce.ownerDocument.createElement("img");try{return we.src=ce.toDataURL(),we}catch(Cr){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",ce)}}var nt=ce.cloneNode(!1);try{nt.width=ce.width,nt.height=ce.height;var Ft=ce.getContext("2d"),Xt=nt.getContext("2d");if(Xt)if(!this.options.allowTaint&&Ft)Xt.putImageData(Ft.getImageData(0,0,ce.width,ce.height),0,0);else{var Sn=(be=ce.getContext("webgl2"))!==null&&be!==void 0?be:ce.getContext("webgl");if(Sn){var Bn=Sn.getContextAttributes();(Bn==null?void 0:Bn.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",ce)}Xt.drawImage(ce,0,0)}return nt}catch(Cr){this.context.logger.info("Unable to clone canvas as it is tainted",ce)}return nt},me.prototype.createVideoClone=function(ce){var be=ce.ownerDocument.createElement("canvas");be.width=ce.offsetWidth,be.height=ce.offsetHeight;var we=be.getContext("2d");try{return we&&(we.drawImage(ce,0,0,be.width,be.height),this.options.allowTaint||we.getImageData(0,0,be.width,be.height)),be}catch(Ft){this.context.logger.info("Unable to clone video as it is tainted",ce)}var nt=ce.ownerDocument.createElement("canvas");return nt.width=ce.offsetWidth,nt.height=ce.offsetHeight,nt},me.prototype.appendChildNode=function(ce,be,we){(!Xc(be)||!lh(be)&&!be.hasAttribute(te)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(be)))&&(!this.options.copyStyles||!Xc(be)||!sh(be))&&ce.appendChild(this.cloneNode(be,we))},me.prototype.cloneChildNodes=function(ce,be,we){for(var nt=this,Ft=ce.shadowRoot?ce.shadowRoot.firstChild:ce.firstChild;Ft;Ft=Ft.nextSibling)if(Xc(Ft)&&vp(Ft)&&typeof Ft.assignedNodes=="function"){var Xt=Ft.assignedNodes();Xt.length&&Xt.forEach(function(Sn){return nt.appendChildNode(be,Sn,we)})}else this.appendChildNode(be,Ft,we)},me.prototype.cloneNode=function(ce,be){if(dd(ce))return document.createTextNode(ce.data);if(!ce.ownerDocument)return ce.cloneNode(!1);var we=ce.ownerDocument.defaultView;if(we&&Xc(ce)&&(Rh(ce)||fd(ce))){var nt=this.createElementClone(ce);nt.style.transitionProperty="none";var Ft=we.getComputedStyle(ce),Xt=we.getComputedStyle(ce,":before"),Sn=we.getComputedStyle(ce,":after");this.referenceElement===ce&&Rh(nt)&&(this.clonedReferenceElement=nt),Hl(nt)&&Aa(nt);var Bn=this.counters.parse(new al(this.context,Ft)),Cr=this.resolvePseudoContent(ce,nt,Xt,De.BEFORE);yp(ce)&&(be=!0),Hh(ce)||this.cloneChildNodes(ce,nt,be),Cr&&nt.insertBefore(Cr,nt.firstChild);var Or=this.resolvePseudoContent(ce,nt,Sn,De.AFTER);return Or&&nt.appendChild(Or),this.counters.pop(Bn),(Ft&&(this.options.copyStyles||fd(ce))&&!Ec(ce)||be)&&Hn(Ft,nt),(ce.scrollTop!==0||ce.scrollLeft!==0)&&this.scrolledElements.push([nt,ce.scrollLeft,ce.scrollTop]),(Nf(ce)||uh(ce))&&(Nf(nt)||uh(nt))&&(nt.value=ce.value),nt}return ce.cloneNode(!1)},me.prototype.resolvePseudoContent=function(ce,be,we,nt){var Ft=this;if(we){var Xt=we.content,Sn=be.ownerDocument;if(!(!Sn||!Xt||Xt==="none"||Xt==="-moz-alt-content"||we.display==="none")){this.counters.parse(new al(this.context,we));var Bn=new El(this.context,we),Cr=Sn.createElement("html2canvaspseudoelement");Hn(we,Cr),Bn.content.forEach(function(Zr){if(Zr.type===0)Cr.appendChild(Sn.createTextNode(Zr.value));else if(Zr.type===22){var Ti=Sn.createElement("img");Ti.src=Zr.value,Ti.style.opacity="1",Cr.appendChild(Ti)}else if(Zr.type===18){if(Zr.name==="attr"){var ha=Zr.values.filter(za);ha.length&&Cr.appendChild(Sn.createTextNode(ce.getAttribute(ha[0].value)||""))}else if(Zr.name==="counter"){var ho=Zr.values.filter(ta),Zo=ho[0],As=ho[1];if(Zo&&za(Zo)){var wa=Ft.counters.getCounterValue(Zo.value),va=As&&za(As)?sd.parse(Ft.context,As.value):3;Cr.appendChild(Sn.createTextNode(ne(wa,va,!1)))}}else if(Zr.name==="counters"){var es=Zr.values.filter(ta),Zo=es[0],bs=es[1],As=es[2];if(Zo&&za(Zo)){var $a=Ft.counters.getCounterValues(Zo.value),ia=As&&za(As)?sd.parse(Ft.context,As.value):3,Gs=bs&&bs.type===0?bs.value:"",Ps=$a.map(function(Ic){return ne(Ic,ia,!1)}).join(Gs);Cr.appendChild(Sn.createTextNode(Ps))}}}else if(Zr.type===20)switch(Zr.value){case"open-quote":Cr.appendChild(Sn.createTextNode(Wo(Bn.quotes,Ft.quoteDepth++,!0)));break;case"close-quote":Cr.appendChild(Sn.createTextNode(Wo(Bn.quotes,--Ft.quoteDepth,!1)));break;default:Cr.appendChild(Sn.createTextNode(Zr.value))}}),Cr.className=So+" "+Ko;var Or=nt===De.BEFORE?" "+So:" "+Ko;return fd(be)?be.className.baseValue+=Or:be.className+=Or,Cr}}},me.destroy=function(ce){return ce.parentNode?(ce.parentNode.removeChild(ce),!0):!1},me}(),De;(function(me){me[me.BEFORE=0]="BEFORE",me[me.AFTER=1]="AFTER"})(De||(De={}));var qe=function(me,ce){var be=me.createElement("iframe");return be.className="html2canvas-container",be.style.visibility="hidden",be.style.position="fixed",be.style.left="-10000px",be.style.top="0px",be.style.border="0",be.width=ce.width.toString(),be.height=ce.height.toString(),be.scrolling="no",be.setAttribute(te,"true"),me.body.appendChild(be),be},vt=function(me){return new Promise(function(ce){if(me.complete){ce();return}if(!me.src){ce();return}me.onload=ce,me.onerror=ce})},St=function(me){return Promise.all([].slice.call(me.images,0).map(vt))},Dt=function(me){return new Promise(function(ce,be){var we=me.contentWindow;if(!we)return be("No window assigned for iframe");var nt=we.document;we.onload=me.onload=function(){we.onload=me.onload=null;var Ft=setInterval(function(){nt.body.childNodes.length>0&&nt.readyState==="complete"&&(clearInterval(Ft),ce(me))},50)}})},Ln=["all","d","content"],Hn=function(me,ce){for(var be=me.length-1;be>=0;be--){var we=me.item(be);Ln.indexOf(we)===-1&&ce.style.setProperty(we,me.getPropertyValue(we))}return ce},Pr=function(me){var ce="";return me&&(ce+="<!DOCTYPE ",me.name&&(ce+=me.name),me.internalSubset&&(ce+=me.internalSubset),me.publicId&&(ce+='"'+me.publicId+'"'),me.systemId&&(ce+='"'+me.systemId+'"'),ce+=">"),ce},xr=function(me,ce,be){me&&me.defaultView&&(ce!==me.defaultView.pageXOffset||be!==me.defaultView.pageYOffset)&&me.defaultView.scrollTo(ce,be)},xi=function(me){var ce=me[0],be=me[1],we=me[2];ce.scrollLeft=be,ce.scrollTop=we},Zi=":before",lo=":after",So="___html2canvas___pseudoelement_before",Ko="___html2canvas___pseudoelement_after",Fo=`{
content: "" !important;
display: none !important;
}`,Aa=function(me){_a(me,"."+So+Zi+Fo+`
.`+Ko+lo+Fo)},_a=function(me,ce){var be=me.ownerDocument;if(be){var we=be.createElement("style");we.textContent=ce,me.appendChild(we)}},xa=function(){function me(){}return me.getOrigin=function(ce){var be=me._link;return be?(be.href=ce,be.href=be.href,be.protocol+be.hostname+be.port):"about:blank"},me.isSameOrigin=function(ce){return me.getOrigin(ce)===me._origin},me.setContext=function(ce){me._link=ce.document.createElement("a"),me._origin=me.getOrigin(ce.location.href)},me._origin="about:blank",me}(),ja=function(){function me(ce,be){this.context=ce,this._options=be,this._cache={}}return me.prototype.addImage=function(ce){var be=Promise.resolve();return this.has(ce)||(wA(ce)||yA(ce))&&(this._cache[ce]=this.loadImage(ce)).catch(function(){}),be},me.prototype.match=function(ce){return this._cache[ce]},me.prototype.loadImage=function(ce){return ct(this,void 0,void 0,function(){var be,we,nt,Ft,Xt=this;return Le(this,function(Sn){switch(Sn.label){case 0:return be=xa.isSameOrigin(ce),we=!Ju(ce)&&this._options.useCORS===!0&&mu.SUPPORT_CORS_IMAGES&&!be,nt=!Ju(ce)&&!be&&!wA(ce)&&typeof this._options.proxy=="string"&&mu.SUPPORT_CORS_XHR&&!we,!be&&this._options.allowTaint===!1&&!Ju(ce)&&!wA(ce)&&!nt&&!we?[2]:(Ft=ce,nt?[4,this.proxy(Ft)]:[3,2]);case 1:Ft=Sn.sent(),Sn.label=2;case 2:return this.context.logger.debug("Added image "+ce.substring(0,256)),[4,new Promise(function(Bn,Cr){var Or=new Image;Or.onload=function(){return Bn(Or)},Or.onerror=Cr,(_u(Ft)||we)&&(Or.crossOrigin="anonymous"),Or.src=Ft,Or.complete===!0&&setTimeout(function(){return Bn(Or)},500),Xt._options.imageTimeout>0&&setTimeout(function(){return Cr("Timed out ("+Xt._options.imageTimeout+"ms) loading image")},Xt._options.imageTimeout)})];case 3:return[2,Sn.sent()]}})})},me.prototype.has=function(ce){return typeof this._cache[ce]!="undefined"},me.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},me.prototype.proxy=function(ce){var be=this,we=this._options.proxy;if(!we)throw new Error("No proxy defined");var nt=ce.substring(0,256);return new Promise(function(Ft,Xt){var Sn=mu.SUPPORT_RESPONSE_TYPE?"blob":"text",Bn=new XMLHttpRequest;Bn.onload=function(){if(Bn.status===200)if(Sn==="text")Ft(Bn.response);else{var Zr=new FileReader;Zr.addEventListener("load",function(){return Ft(Zr.result)},!1),Zr.addEventListener("error",function(Ti){return Xt(Ti)},!1),Zr.readAsDataURL(Bn.response)}else Xt("Failed to proxy resource "+nt+" with status code "+Bn.status)},Bn.onerror=Xt;var Cr=we.indexOf("?")>-1?"&":"?";if(Bn.open("GET",""+we+Cr+"url="+encodeURIComponent(ce)+"&responseType="+Sn),Sn!=="text"&&Bn instanceof XMLHttpRequest&&(Bn.responseType=Sn),be._options.imageTimeout){var Or=be._options.imageTimeout;Bn.timeout=Or,Bn.ontimeout=function(){return Xt("Timed out ("+Or+"ms) proxying "+nt)}}Bn.send()})},me}(),Il=/^data:image\/svg\+xml/i,zu=/^data:image\/.*;base64,/i,eu=/^data:image\/.*/i,yA=function(me){return mu.SUPPORT_SVG_DRAWING||!lA(me)},Ju=function(me){return eu.test(me)},_u=function(me){return zu.test(me)},wA=function(me){return me.substr(0,4)==="blob"},lA=function(me){return me.substr(-3).toLowerCase()==="svg"||Il.test(me)},Eo=function(){function me(ce,be){this.type=0,this.x=ce,this.y=be}return me.prototype.add=function(ce,be){return new me(this.x+ce,this.y+be)},me}(),zl=function(me,ce,be){return new Eo(me.x+(ce.x-me.x)*be,me.y+(ce.y-me.y)*be)},tu=function(){function me(ce,be,we,nt){this.type=1,this.start=ce,this.startControl=be,this.endControl=we,this.end=nt}return me.prototype.subdivide=function(ce,be){var we=zl(this.start,this.startControl,ce),nt=zl(this.startControl,this.endControl,ce),Ft=zl(this.endControl,this.end,ce),Xt=zl(we,nt,ce),Sn=zl(nt,Ft,ce),Bn=zl(Xt,Sn,ce);return be?new me(this.start,we,Xt,Bn):new me(Bn,Sn,Ft,this.end)},me.prototype.add=function(ce,be){return new me(this.start.add(ce,be),this.startControl.add(ce,be),this.endControl.add(ce,be),this.end.add(ce,be))},me.prototype.reverse=function(){return new me(this.end,this.endControl,this.startControl,this.start)},me}(),nu=function(me){return me.type===1},Of=function(){function me(ce){var be=ce.styles,we=ce.bounds,nt=Cu(be.borderTopLeftRadius,we.width,we.height),Ft=nt[0],Xt=nt[1],Sn=Cu(be.borderTopRightRadius,we.width,we.height),Bn=Sn[0],Cr=Sn[1],Or=Cu(be.borderBottomRightRadius,we.width,we.height),Zr=Or[0],Ti=Or[1],ha=Cu(be.borderBottomLeftRadius,we.width,we.height),ho=ha[0],Zo=ha[1],As=[];As.push((Ft+Bn)/we.width),As.push((ho+Zr)/we.width),As.push((Xt+Zo)/we.height),As.push((Cr+Ti)/we.height);var wa=Math.max.apply(Math,As);wa>1&&(Ft/=wa,Xt/=wa,Bn/=wa,Cr/=wa,Zr/=wa,Ti/=wa,ho/=wa,Zo/=wa);var va=we.width-Bn,es=we.height-Ti,bs=we.width-Zr,$a=we.height-Zo,ia=be.borderTopWidth,Gs=be.borderRightWidth,Ps=be.borderBottomWidth,ts=be.borderLeftWidth,Uo=aa(be.paddingTop,ce.bounds.width),Ic=aa(be.paddingRight,ce.bounds.width),Rc=aa(be.paddingBottom,ce.bounds.width),Kl=aa(be.paddingLeft,ce.bounds.width);this.topLeftBorderDoubleOuterBox=Ft>0||Xt>0?Bs(we.left+ts/3,we.top+ia/3,Ft-ts/3,Xt-ia/3,zs.TOP_LEFT):new Eo(we.left+ts/3,we.top+ia/3),this.topRightBorderDoubleOuterBox=Ft>0||Xt>0?Bs(we.left+va,we.top+ia/3,Bn-Gs/3,Cr-ia/3,zs.TOP_RIGHT):new Eo(we.left+we.width-Gs/3,we.top+ia/3),this.bottomRightBorderDoubleOuterBox=Zr>0||Ti>0?Bs(we.left+bs,we.top+es,Zr-Gs/3,Ti-Ps/3,zs.BOTTOM_RIGHT):new Eo(we.left+we.width-Gs/3,we.top+we.height-Ps/3),this.bottomLeftBorderDoubleOuterBox=ho>0||Zo>0?Bs(we.left+ts/3,we.top+$a,ho-ts/3,Zo-Ps/3,zs.BOTTOM_LEFT):new Eo(we.left+ts/3,we.top+we.height-Ps/3),this.topLeftBorderDoubleInnerBox=Ft>0||Xt>0?Bs(we.left+ts*2/3,we.top+ia*2/3,Ft-ts*2/3,Xt-ia*2/3,zs.TOP_LEFT):new Eo(we.left+ts*2/3,we.top+ia*2/3),this.topRightBorderDoubleInnerBox=Ft>0||Xt>0?Bs(we.left+va,we.top+ia*2/3,Bn-Gs*2/3,Cr-ia*2/3,zs.TOP_RIGHT):new Eo(we.left+we.width-Gs*2/3,we.top+ia*2/3),this.bottomRightBorderDoubleInnerBox=Zr>0||Ti>0?Bs(we.left+bs,we.top+es,Zr-Gs*2/3,Ti-Ps*2/3,zs.BOTTOM_RIGHT):new Eo(we.left+we.width-Gs*2/3,we.top+we.height-Ps*2/3),this.bottomLeftBorderDoubleInnerBox=ho>0||Zo>0?Bs(we.left+ts*2/3,we.top+$a,ho-ts*2/3,Zo-Ps*2/3,zs.BOTTOM_LEFT):new Eo(we.left+ts*2/3,we.top+we.height-Ps*2/3),this.topLeftBorderStroke=Ft>0||Xt>0?Bs(we.left+ts/2,we.top+ia/2,Ft-ts/2,Xt-ia/2,zs.TOP_LEFT):new Eo(we.left+ts/2,we.top+ia/2),this.topRightBorderStroke=Ft>0||Xt>0?Bs(we.left+va,we.top+ia/2,Bn-Gs/2,Cr-ia/2,zs.TOP_RIGHT):new Eo(we.left+we.width-Gs/2,we.top+ia/2),this.bottomRightBorderStroke=Zr>0||Ti>0?Bs(we.left+bs,we.top+es,Zr-Gs/2,Ti-Ps/2,zs.BOTTOM_RIGHT):new Eo(we.left+we.width-Gs/2,we.top+we.height-Ps/2),this.bottomLeftBorderStroke=ho>0||Zo>0?Bs(we.left+ts/2,we.top+$a,ho-ts/2,Zo-Ps/2,zs.BOTTOM_LEFT):new Eo(we.left+ts/2,we.top+we.height-Ps/2),this.topLeftBorderBox=Ft>0||Xt>0?Bs(we.left,we.top,Ft,Xt,zs.TOP_LEFT):new Eo(we.left,we.top),this.topRightBorderBox=Bn>0||Cr>0?Bs(we.left+va,we.top,Bn,Cr,zs.TOP_RIGHT):new Eo(we.left+we.width,we.top),this.bottomRightBorderBox=Zr>0||Ti>0?Bs(we.left+bs,we.top+es,Zr,Ti,zs.BOTTOM_RIGHT):new Eo(we.left+we.width,we.top+we.height),this.bottomLeftBorderBox=ho>0||Zo>0?Bs(we.left,we.top+$a,ho,Zo,zs.BOTTOM_LEFT):new Eo(we.left,we.top+we.height),this.topLeftPaddingBox=Ft>0||Xt>0?Bs(we.left+ts,we.top+ia,Math.max(0,Ft-ts),Math.max(0,Xt-ia),zs.TOP_LEFT):new Eo(we.left+ts,we.top+ia),this.topRightPaddingBox=Bn>0||Cr>0?Bs(we.left+Math.min(va,we.width-Gs),we.top+ia,va>we.width+Gs?0:Math.max(0,Bn-Gs),Math.max(0,Cr-ia),zs.TOP_RIGHT):new Eo(we.left+we.width-Gs,we.top+ia),this.bottomRightPaddingBox=Zr>0||Ti>0?Bs(we.left+Math.min(bs,we.width-ts),we.top+Math.min(es,we.height-Ps),Math.max(0,Zr-Gs),Math.max(0,Ti-Ps),zs.BOTTOM_RIGHT):new Eo(we.left+we.width-Gs,we.top+we.height-Ps),this.bottomLeftPaddingBox=ho>0||Zo>0?Bs(we.left+ts,we.top+Math.min($a,we.height-Ps),Math.max(0,ho-ts),Math.max(0,Zo-Ps),zs.BOTTOM_LEFT):new Eo(we.left+ts,we.top+we.height-Ps),this.topLeftContentBox=Ft>0||Xt>0?Bs(we.left+ts+Kl,we.top+ia+Uo,Math.max(0,Ft-(ts+Kl)),Math.max(0,Xt-(ia+Uo)),zs.TOP_LEFT):new Eo(we.left+ts+Kl,we.top+ia+Uo),this.topRightContentBox=Bn>0||Cr>0?Bs(we.left+Math.min(va,we.width+ts+Kl),we.top+ia+Uo,va>we.width+ts+Kl?0:Bn-ts+Kl,Cr-(ia+Uo),zs.TOP_RIGHT):new Eo(we.left+we.width-(Gs+Ic),we.top+ia+Uo),this.bottomRightContentBox=Zr>0||Ti>0?Bs(we.left+Math.min(bs,we.width-(ts+Kl)),we.top+Math.min(es,we.height+ia+Uo),Math.max(0,Zr-(Gs+Ic)),Ti-(Ps+Rc),zs.BOTTOM_RIGHT):new Eo(we.left+we.width-(Gs+Ic),we.top+we.height-(Ps+Rc)),this.bottomLeftContentBox=ho>0||Zo>0?Bs(we.left+ts+Kl,we.top+$a,Math.max(0,ho-(ts+Kl)),Zo-(Ps+Rc),zs.BOTTOM_LEFT):new Eo(we.left+ts+Kl,we.top+we.height-(Ps+Rc))}return me}(),zs;(function(me){me[me.TOP_LEFT=0]="TOP_LEFT",me[me.TOP_RIGHT=1]="TOP_RIGHT",me[me.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",me[me.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(zs||(zs={}));var Bs=function(me,ce,be,we,nt){var Ft=4*((Math.sqrt(2)-1)/3),Xt=be*Ft,Sn=we*Ft,Bn=me+be,Cr=ce+we;switch(nt){case zs.TOP_LEFT:return new tu(new Eo(me,Cr),new Eo(me,Cr-Sn),new Eo(Bn-Xt,ce),new Eo(Bn,ce));case zs.TOP_RIGHT:return new tu(new Eo(me,ce),new Eo(me+Xt,ce),new Eo(Bn,Cr-Sn),new Eo(Bn,Cr));case zs.BOTTOM_RIGHT:return new tu(new Eo(Bn,ce),new Eo(Bn,ce+Sn),new Eo(me+Xt,Cr),new Eo(me,Cr));case zs.BOTTOM_LEFT:default:return new tu(new Eo(Bn,Cr),new Eo(Bn-Xt,Cr),new Eo(me,ce+Sn),new Eo(me,ce))}},ic=function(me){return[me.topLeftBorderBox,me.topRightBorderBox,me.bottomRightBorderBox,me.bottomLeftBorderBox]},uA=function(me){return[me.topLeftContentBox,me.topRightContentBox,me.bottomRightContentBox,me.bottomLeftContentBox]},dh=function(me){return[me.topLeftPaddingBox,me.topRightPaddingBox,me.bottomRightPaddingBox,me.bottomLeftPaddingBox]},ka=function(){function me(ce,be,we){this.offsetX=ce,this.offsetY=be,this.matrix=we,this.type=0,this.target=6}return me}(),Sc=function(){function me(ce,be){this.path=ce,this.target=be,this.type=1}return me}(),dl=function(){function me(ce){this.opacity=ce,this.type=2,this.target=6}return me}(),AA=function(me){return me.type===0},kd=function(me){return me.type===1},Pf=function(me){return me.type===2},_f=function(me,ce){return me.length===ce.length?me.some(function(be,we){return be===ce[we]}):!1},Jg=function(me,ce,be,we,nt){return me.map(function(Ft,Xt){switch(Xt){case 0:return Ft.add(ce,be);case 1:return Ft.add(ce+we,be);case 2:return Ft.add(ce+we,be+nt);case 3:return Ft.add(ce,be+nt)}return Ft})},bp=function(){function me(ce){this.element=ce,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return me}(),wg=function(){function me(ce,be){if(this.container=ce,this.parent=be,this.effects=[],this.curves=new Of(this.container),this.container.styles.opacity<1&&this.effects.push(new dl(this.container.styles.opacity)),this.container.styles.transform!==null){var we=this.container.bounds.left+this.container.styles.transformOrigin[0].number,nt=this.container.bounds.top+this.container.styles.transformOrigin[1].number,Ft=this.container.styles.transform;this.effects.push(new ka(we,nt,Ft))}if(this.container.styles.overflowX!==0){var Xt=ic(this.curves),Sn=dh(this.curves);_f(Xt,Sn)?this.effects.push(new Sc(Xt,6)):(this.effects.push(new Sc(Xt,2)),this.effects.push(new Sc(Sn,4)))}}return me.prototype.getEffects=function(ce){for(var be=[2,3].indexOf(this.container.styles.position)===-1,we=this.parent,nt=this.effects.slice(0);we;){var Ft=we.effects.filter(function(Bn){return!kd(Bn)});if(be||we.container.styles.position!==0||!we.parent){if(nt.unshift.apply(nt,Ft),be=[2,3].indexOf(we.container.styles.position)===-1,we.container.styles.overflowX!==0){var Xt=ic(we.curves),Sn=dh(we.curves);_f(Xt,Sn)||nt.unshift(new Sc(Sn,6))}}else nt.unshift.apply(nt,Ft);we=we.parent}return nt.filter(function(Bn){return zo(Bn.target,ce)})},me}(),Cp=function(me,ce,be,we){me.container.elements.forEach(function(nt){var Ft=zo(nt.flags,4),Xt=zo(nt.flags,2),Sn=new wg(nt,me);zo(nt.styles.display,2048)&&we.push(Sn);var Bn=zo(nt.flags,8)?[]:we;if(Ft||Xt){var Cr=Ft||nt.styles.isPositioned()?be:ce,Or=new bp(Sn);if(nt.styles.isPositioned()||nt.styles.opacity<1||nt.styles.isTransformed()){var Zr=nt.styles.zIndex.order;if(Zr<0){var Ti=0;Cr.negativeZIndex.some(function(ho,Zo){return Zr>ho.element.container.styles.zIndex.order?(Ti=Zo,!1):Ti>0}),Cr.negativeZIndex.splice(Ti,0,Or)}else if(Zr>0){var ha=0;Cr.positiveZIndex.some(function(ho,Zo){return Zr>=ho.element.container.styles.zIndex.order?(ha=Zo+1,!1):ha>0}),Cr.positiveZIndex.splice(ha,0,Or)}else Cr.zeroOrAutoZIndexOrTransformedOrOpacity.push(Or)}else nt.styles.isFloating()?Cr.nonPositionedFloats.push(Or):Cr.nonPositionedInlineLevel.push(Or);Cp(Sn,Or,Ft?Or:be,Bn)}else nt.styles.isInlineLevel()?ce.inlineLevel.push(Sn):ce.nonInlineLevel.push(Sn),Cp(Sn,ce,be,Bn);zo(nt.flags,8)&&xp(nt,Bn)})},xp=function(me,ce){for(var be=me instanceof of?me.start:1,we=me instanceof of?me.reversed:!1,nt=0;nt<ce.length;nt++){var Ft=ce[nt];Ft.container instanceof Od&&typeof Ft.container.value=="number"&&Ft.container.value!==0&&(be=Ft.container.value),Ft.listValue=ne(be,Ft.container.styles.listStyleType,!0),be+=we?-1:1}},XA=function(me){var ce=new wg(me,null),be=new bp(ce),we=[];return Cp(ce,be,be,we),xp(ce.container,we),be},UA=function(me,ce){switch(ce){case 0:return Uc(me.topLeftBorderBox,me.topLeftPaddingBox,me.topRightBorderBox,me.topRightPaddingBox);case 1:return Uc(me.topRightBorderBox,me.topRightPaddingBox,me.bottomRightBorderBox,me.bottomRightPaddingBox);case 2:return Uc(me.bottomRightBorderBox,me.bottomRightPaddingBox,me.bottomLeftBorderBox,me.bottomLeftPaddingBox);case 3:default:return Uc(me.bottomLeftBorderBox,me.bottomLeftPaddingBox,me.topLeftBorderBox,me.topLeftPaddingBox)}},YA=function(me,ce){switch(ce){case 0:return Uc(me.topLeftBorderBox,me.topLeftBorderDoubleOuterBox,me.topRightBorderBox,me.topRightBorderDoubleOuterBox);case 1:return Uc(me.topRightBorderBox,me.topRightBorderDoubleOuterBox,me.bottomRightBorderBox,me.bottomRightBorderDoubleOuterBox);case 2:return Uc(me.bottomRightBorderBox,me.bottomRightBorderDoubleOuterBox,me.bottomLeftBorderBox,me.bottomLeftBorderDoubleOuterBox);case 3:default:return Uc(me.bottomLeftBorderBox,me.bottomLeftBorderDoubleOuterBox,me.topLeftBorderBox,me.topLeftBorderDoubleOuterBox)}},JA=function(me,ce){switch(ce){case 0:return Uc(me.topLeftBorderDoubleInnerBox,me.topLeftPaddingBox,me.topRightBorderDoubleInnerBox,me.topRightPaddingBox);case 1:return Uc(me.topRightBorderDoubleInnerBox,me.topRightPaddingBox,me.bottomRightBorderDoubleInnerBox,me.bottomRightPaddingBox);case 2:return Uc(me.bottomRightBorderDoubleInnerBox,me.bottomRightPaddingBox,me.bottomLeftBorderDoubleInnerBox,me.bottomLeftPaddingBox);case 3:default:return Uc(me.bottomLeftBorderDoubleInnerBox,me.bottomLeftPaddingBox,me.topLeftBorderDoubleInnerBox,me.topLeftPaddingBox)}},qg=function(me,ce){switch(ce){case 0:return eg(me.topLeftBorderStroke,me.topRightBorderStroke);case 1:return eg(me.topRightBorderStroke,me.bottomRightBorderStroke);case 2:return eg(me.bottomRightBorderStroke,me.bottomLeftBorderStroke);case 3:default:return eg(me.bottomLeftBorderStroke,me.topLeftBorderStroke)}},eg=function(me,ce){var be=[];return nu(me)?be.push(me.subdivide(.5,!1)):be.push(me),nu(ce)?be.push(ce.subdivide(.5,!0)):be.push(ce),be},Uc=function(me,ce,be,we){var nt=[];return nu(me)?nt.push(me.subdivide(.5,!1)):nt.push(me),nu(be)?nt.push(be.subdivide(.5,!0)):nt.push(be),nu(we)?nt.push(we.subdivide(.5,!0).reverse()):nt.push(we),nu(ce)?nt.push(ce.subdivide(.5,!1).reverse()):nt.push(ce),nt},em=function(me){var ce=me.bounds,be=me.styles;return ce.add(be.borderLeftWidth,be.borderTopWidth,-(be.borderRightWidth+be.borderLeftWidth),-(be.borderTopWidth+be.borderBottomWidth))},tg=function(me){var ce=me.styles,be=me.bounds,we=aa(ce.paddingLeft,be.width),nt=aa(ce.paddingRight,be.width),Ft=aa(ce.paddingTop,be.width),Xt=aa(ce.paddingBottom,be.width);return be.add(we+ce.borderLeftWidth,Ft+ce.borderTopWidth,-(ce.borderRightWidth+ce.borderLeftWidth+we+nt),-(ce.borderTopWidth+ce.borderBottomWidth+Ft+Xt))},bg=function(me,ce){return me===0?ce.bounds:me===2?tg(ce):em(ce)},Hm=function(me,ce){return me===0?ce.bounds:me===2?tg(ce):em(ce)},Md=function(me,ce,be){var we=bg(gd(me.styles.backgroundOrigin,ce),me),nt=Hm(gd(me.styles.backgroundClip,ce),me),Ft=zh(gd(me.styles.backgroundSize,ce),be,we),Xt=Ft[0],Sn=Ft[1],Bn=Cu(gd(me.styles.backgroundPosition,ce),we.width-Xt,we.height-Sn),Cr=tm(gd(me.styles.backgroundRepeat,ce),Bn,Ft,we,nt),Or=Math.round(we.left+Bn[0]),Zr=Math.round(we.top+Bn[1]);return[Cr,Or,Zr,Xt,Sn]},Tf=function(me){return za(me)&&me.value===Rl.AUTO},Bp=function(me){return typeof me=="number"},zh=function(me,ce,be){var we=ce[0],nt=ce[1],Ft=ce[2],Xt=me[0],Sn=me[1];if(!Xt)return[0,0];if(ms(Xt)&&Sn&&ms(Sn))return[aa(Xt,be.width),aa(Sn,be.height)];var Bn=Bp(Ft);if(za(Xt)&&(Xt.value===Rl.CONTAIN||Xt.value===Rl.COVER)){if(Bp(Ft)){var Cr=be.width/be.height;return Cr<Ft!=(Xt.value===Rl.COVER)?[be.width,be.width/Ft]:[be.height*Ft,be.height]}return[be.width,be.height]}var Or=Bp(we),Zr=Bp(nt),Ti=Or||Zr;if(Tf(Xt)&&(!Sn||Tf(Sn))){if(Or&&Zr)return[we,nt];if(!Bn&&!Ti)return[be.width,be.height];if(Ti&&Bn){var ha=Or?we:nt*Ft,ho=Zr?nt:we/Ft;return[ha,ho]}var Zo=Or?we:be.width,As=Zr?nt:be.height;return[Zo,As]}if(Bn){var wa=0,va=0;return ms(Xt)?wa=aa(Xt,be.width):ms(Sn)&&(va=aa(Sn,be.height)),Tf(Xt)?wa=va*Ft:(!Sn||Tf(Sn))&&(va=wa/Ft),[wa,va]}var es=null,bs=null;if(ms(Xt)?es=aa(Xt,be.width):Sn&&ms(Sn)&&(bs=aa(Sn,be.height)),es!==null&&(!Sn||Tf(Sn))&&(bs=Or&&Zr?es/we*nt:be.height),bs!==null&&Tf(Xt)&&(es=Or&&Zr?bs/nt*we:be.width),es!==null&&bs!==null)return[es,bs];throw new Error("Unable to calculate background-size for element")},gd=function(me,ce){var be=me[ce];return typeof be=="undefined"?me[0]:be},tm=function(me,ce,be,we,nt){var Ft=ce[0],Xt=ce[1],Sn=be[0],Bn=be[1];switch(me){case 2:return[new Eo(Math.round(we.left),Math.round(we.top+Xt)),new Eo(Math.round(we.left+we.width),Math.round(we.top+Xt)),new Eo(Math.round(we.left+we.width),Math.round(Bn+we.top+Xt)),new Eo(Math.round(we.left),Math.round(Bn+we.top+Xt))];case 3:return[new Eo(Math.round(we.left+Ft),Math.round(we.top)),new Eo(Math.round(we.left+Ft+Sn),Math.round(we.top)),new Eo(Math.round(we.left+Ft+Sn),Math.round(we.height+we.top)),new Eo(Math.round(we.left+Ft),Math.round(we.height+we.top))];case 1:return[new Eo(Math.round(we.left+Ft),Math.round(we.top+Xt)),new Eo(Math.round(we.left+Ft+Sn),Math.round(we.top+Xt)),new Eo(Math.round(we.left+Ft+Sn),Math.round(we.top+Xt+Bn)),new Eo(Math.round(we.left+Ft),Math.round(we.top+Xt+Bn))];default:return[new Eo(Math.round(nt.left),Math.round(nt.top)),new Eo(Math.round(nt.left+nt.width),Math.round(nt.top)),new Eo(Math.round(nt.left+nt.width),Math.round(nt.height+nt.top)),new Eo(Math.round(nt.left),Math.round(nt.height+nt.top))]}},Ep="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Cg="Hidden Text",kf=function(){function me(ce){this._data={},this._document=ce}return me.prototype.parseMetrics=function(ce,be){var we=this._document.createElement("div"),nt=this._document.createElement("img"),Ft=this._document.createElement("span"),Xt=this._document.body;we.style.visibility="hidden",we.style.fontFamily=ce,we.style.fontSize=be,we.style.margin="0",we.style.padding="0",we.style.whiteSpace="nowrap",Xt.appendChild(we),nt.src=Ep,nt.width=1,nt.height=1,nt.style.margin="0",nt.style.padding="0",nt.style.verticalAlign="baseline",Ft.style.fontFamily=ce,Ft.style.fontSize=be,Ft.style.margin="0",Ft.style.padding="0",Ft.appendChild(this._document.createTextNode(Cg)),we.appendChild(Ft),we.appendChild(nt);var Sn=nt.offsetTop-Ft.offsetTop+2;we.removeChild(Ft),we.appendChild(this._document.createTextNode(Cg)),we.style.lineHeight="normal",nt.style.verticalAlign="super";var Bn=nt.offsetTop-we.offsetTop+2;return Xt.removeChild(we),{baseline:Sn,middle:Bn}},me.prototype.getMetrics=function(ce,be){var we=ce+" "+be;return typeof this._data[we]=="undefined"&&(this._data[we]=this.parseMetrics(ce,be)),this._data[we]},me}(),Mf=function(){function me(ce,be){this.context=ce,this.options=be}return me}(),Da=1e4,Ku=function(me){ae(ce,me);function ce(be,we){var nt=me.call(this,be,we)||this;return nt._activeEffects=[],nt.canvas=we.canvas?we.canvas:document.createElement("canvas"),nt.ctx=nt.canvas.getContext("2d"),we.canvas||(nt.canvas.width=Math.floor(we.width*we.scale),nt.canvas.height=Math.floor(we.height*we.scale),nt.canvas.style.width=we.width+"px",nt.canvas.style.height=we.height+"px"),nt.fontMetrics=new kf(document),nt.ctx.scale(nt.options.scale,nt.options.scale),nt.ctx.translate(-we.x,-we.y),nt.ctx.textBaseline="bottom",nt._activeEffects=[],nt.context.logger.debug("Canvas renderer initialized ("+we.width+"x"+we.height+") with scale "+we.scale),nt}return ce.prototype.applyEffects=function(be){for(var we=this;this._activeEffects.length;)this.popEffect();be.forEach(function(nt){return we.applyEffect(nt)})},ce.prototype.applyEffect=function(be){this.ctx.save(),Pf(be)&&(this.ctx.globalAlpha=be.opacity),AA(be)&&(this.ctx.translate(be.offsetX,be.offsetY),this.ctx.transform(be.matrix[0],be.matrix[1],be.matrix[2],be.matrix[3],be.matrix[4],be.matrix[5]),this.ctx.translate(-be.offsetX,-be.offsetY)),kd(be)&&(this.path(be.path),this.ctx.clip()),this._activeEffects.push(be)},ce.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},ce.prototype.renderStack=function(be){return ct(this,void 0,void 0,function(){var we;return Le(this,function(nt){switch(nt.label){case 0:return we=be.element.container.styles,we.isVisible()?[4,this.renderStackContent(be)]:[3,2];case 1:nt.sent(),nt.label=2;case 2:return[2]}})})},ce.prototype.renderNode=function(be){return ct(this,void 0,void 0,function(){return Le(this,function(we){switch(we.label){case 0:if(zo(be.container.flags,16))debugger;return be.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(be)]:[3,3];case 1:return we.sent(),[4,this.renderNodeContent(be)];case 2:we.sent(),we.label=3;case 3:return[2]}})})},ce.prototype.renderTextWithLetterSpacing=function(be,we,nt){var Ft=this;if(we===0)this.ctx.fillText(be.text,be.bounds.left,be.bounds.top+nt);else{var Xt=If(be.text);Xt.reduce(function(Sn,Bn){return Ft.ctx.fillText(Bn,Sn,be.bounds.top+nt),Sn+Ft.ctx.measureText(Bn).width},be.bounds.left)}},ce.prototype.createFontStyle=function(be){var we=be.fontVariant.filter(function(Xt){return Xt==="normal"||Xt==="small-caps"}).join(""),nt=Uf(be.fontFamily).join(", "),Ft=qa(be.fontSize)?""+be.fontSize.number+be.fontSize.unit:be.fontSize.number+"px";return[[be.fontStyle,we,be.fontWeight,Ft,nt].join(" "),nt,Ft]},ce.prototype.renderTextNode=function(be,we){return ct(this,void 0,void 0,function(){var nt,Ft,Xt,Sn,Bn,Cr,Or,Zr,Ti=this;return Le(this,function(ha){return nt=this.createFontStyle(we),Ft=nt[0],Xt=nt[1],Sn=nt[2],this.ctx.font=Ft,this.ctx.direction=we.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",Bn=this.fontMetrics.getMetrics(Xt,Sn),Cr=Bn.baseline,Or=Bn.middle,Zr=we.paintOrder,be.textBounds.forEach(function(ho){Zr.forEach(function(Zo){switch(Zo){case 0:Ti.ctx.fillStyle=Gl(we.color),Ti.renderTextWithLetterSpacing(ho,we.letterSpacing,Cr);var As=we.textShadow;As.length&&ho.text.trim().length&&(As.slice(0).reverse().forEach(function(wa){Ti.ctx.shadowColor=Gl(wa.color),Ti.ctx.shadowOffsetX=wa.offsetX.number*Ti.options.scale,Ti.ctx.shadowOffsetY=wa.offsetY.number*Ti.options.scale,Ti.ctx.shadowBlur=wa.blur.number,Ti.renderTextWithLetterSpacing(ho,we.letterSpacing,Cr)}),Ti.ctx.shadowColor="",Ti.ctx.shadowOffsetX=0,Ti.ctx.shadowOffsetY=0,Ti.ctx.shadowBlur=0),we.textDecorationLine.length&&(Ti.ctx.fillStyle=Gl(we.textDecorationColor||we.color),we.textDecorationLine.forEach(function(wa){switch(wa){case 1:Ti.ctx.fillRect(ho.bounds.left,Math.round(ho.bounds.top+Cr),ho.bounds.width,1);break;case 2:Ti.ctx.fillRect(ho.bounds.left,Math.round(ho.bounds.top),ho.bounds.width,1);break;case 3:Ti.ctx.fillRect(ho.bounds.left,Math.ceil(ho.bounds.top+Or),ho.bounds.width,1);break}}));break;case 1:we.webkitTextStrokeWidth&&ho.text.trim().length&&(Ti.ctx.strokeStyle=Gl(we.webkitTextStrokeColor),Ti.ctx.lineWidth=we.webkitTextStrokeWidth,Ti.ctx.lineJoin=window.chrome?"miter":"round",Ti.ctx.strokeText(ho.text,ho.bounds.left,ho.bounds.top+Cr)),Ti.ctx.strokeStyle="",Ti.ctx.lineWidth=0,Ti.ctx.lineJoin="miter";break}})}),[2]})})},ce.prototype.renderReplacedElement=function(be,we,nt){if(nt&&be.intrinsicWidth>0&&be.intrinsicHeight>0){var Ft=tg(be),Xt=dh(we);this.path(Xt),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(nt,0,0,be.intrinsicWidth,be.intrinsicHeight,Ft.left,Ft.top,Ft.width,Ft.height),this.ctx.restore()}},ce.prototype.renderNodeContent=function(be){return ct(this,void 0,void 0,function(){var we,nt,Ft,Xt,Sn,Bn,va,va,Cr,Or,Zr,Ti,bs,ha,ho,$a,Zo,As,wa,va,es,bs,$a;return Le(this,function(ia){switch(ia.label){case 0:this.applyEffects(be.getEffects(4)),we=be.container,nt=be.curves,Ft=we.styles,Xt=0,Sn=we.textNodes,ia.label=1;case 1:return Xt<Sn.length?(Bn=Sn[Xt],[4,this.renderTextNode(Bn,Ft)]):[3,4];case 2:ia.sent(),ia.label=3;case 3:return Xt++,[3,1];case 4:if(!(we instanceof Lf))return[3,8];ia.label=5;case 5:return ia.trys.push([5,7,,8]),[4,this.context.cache.match(we.src)];case 6:return va=ia.sent(),this.renderReplacedElement(we,nt,va),[3,8];case 7:return ia.sent(),this.context.logger.error("Error loading image "+we.src),[3,8];case 8:if(we instanceof Nd&&this.renderReplacedElement(we,nt,we.canvas),!(we instanceof Df))return[3,12];ia.label=9;case 9:return ia.trys.push([9,11,,12]),[4,this.context.cache.match(we.svg)];case 10:return va=ia.sent(),this.renderReplacedElement(we,nt,va),[3,12];case 11:return ia.sent(),this.context.logger.error("Error loading svg "+we.svg.substring(0,255)),[3,12];case 12:return we instanceof Ls&&we.tree?(Cr=new ce(this.context,{scale:this.options.scale,backgroundColor:we.backgroundColor,x:0,y:0,width:we.width,height:we.height}),[4,Cr.render(we.tree)]):[3,14];case 13:Or=ia.sent(),we.width&&we.height&&this.ctx.drawImage(Or,0,0,we.width,we.height,we.bounds.left,we.bounds.top,we.bounds.width,we.bounds.height),ia.label=14;case 14:if(we instanceof Ad&&(Zr=Math.min(we.bounds.width,we.bounds.height),we.type===ud?we.checked&&(this.ctx.save(),this.path([new Eo(we.bounds.left+Zr*.39363,we.bounds.top+Zr*.79),new Eo(we.bounds.left+Zr*.16,we.bounds.top+Zr*.5549),new Eo(we.bounds.left+Zr*.27347,we.bounds.top+Zr*.44071),new Eo(we.bounds.left+Zr*.39694,we.bounds.top+Zr*.5649),new Eo(we.bounds.left+Zr*.72983,we.bounds.top+Zr*.23),new Eo(we.bounds.left+Zr*.84,we.bounds.top+Zr*.34085),new Eo(we.bounds.left+Zr*.39363,we.bounds.top+Zr*.79)]),this.ctx.fillStyle=Gl(Pd),this.ctx.fill(),this.ctx.restore()):we.type===xc&&we.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(we.bounds.left+Zr/2,we.bounds.top+Zr/2,Zr/4,0,Math.PI*2,!0),this.ctx.fillStyle=Gl(Pd),this.ctx.fill(),this.ctx.restore())),xg(we)&&we.value.length){switch(Ti=this.createFontStyle(Ft),bs=Ti[0],ha=Ti[1],ho=this.fontMetrics.getMetrics(bs,ha).baseline,this.ctx.font=bs,this.ctx.fillStyle=Gl(Ft.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Kh(we.styles.textAlign),$a=tg(we),Zo=0,we.styles.textAlign){case 1:Zo+=$a.width/2;break;case 2:Zo+=$a.width;break}As=$a.add(Zo,0,0,-$a.height/2+1),this.ctx.save(),this.path([new Eo($a.left,$a.top),new Eo($a.left+$a.width,$a.top),new Eo($a.left+$a.width,$a.top+$a.height),new Eo($a.left,$a.top+$a.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new MA(we.value,As),Ft.letterSpacing,ho),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!zo(we.styles.display,2048))return[3,20];if(we.styles.listStyleImage===null)return[3,19];if(wa=we.styles.listStyleImage,wa.type!==0)return[3,18];va=void 0,es=wa.url,ia.label=15;case 15:return ia.trys.push([15,17,,18]),[4,this.context.cache.match(es)];case 16:return va=ia.sent(),this.ctx.drawImage(va,we.bounds.left-(va.width+10),we.bounds.top),[3,18];case 17:return ia.sent(),this.context.logger.error("Error loading list-style-image "+es),[3,18];case 18:return[3,20];case 19:be.listValue&&we.styles.listStyleType!==-1&&(bs=this.createFontStyle(Ft)[0],this.ctx.font=bs,this.ctx.fillStyle=Gl(Ft.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",$a=new ze(we.bounds.left,we.bounds.top+aa(we.styles.paddingTop,we.bounds.width),we.bounds.width,Du(Ft.lineHeight,Ft.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new MA(be.listValue,$a),Ft.letterSpacing,Du(Ft.lineHeight,Ft.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),ia.label=20;case 20:return[2]}})})},ce.prototype.renderStackContent=function(be){return ct(this,void 0,void 0,function(){var we,nt,wa,Ft,Xt,wa,Sn,Bn,wa,Cr,Or,wa,Zr,Ti,wa,ha,ho,wa,Zo,As,wa;return Le(this,function(va){switch(va.label){case 0:if(zo(be.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(be.element)];case 1:va.sent(),we=0,nt=be.negativeZIndex,va.label=2;case 2:return we<nt.length?(wa=nt[we],[4,this.renderStack(wa)]):[3,5];case 3:va.sent(),va.label=4;case 4:return we++,[3,2];case 5:return[4,this.renderNodeContent(be.element)];case 6:va.sent(),Ft=0,Xt=be.nonInlineLevel,va.label=7;case 7:return Ft<Xt.length?(wa=Xt[Ft],[4,this.renderNode(wa)]):[3,10];case 8:va.sent(),va.label=9;case 9:return Ft++,[3,7];case 10:Sn=0,Bn=be.nonPositionedFloats,va.label=11;case 11:return Sn<Bn.length?(wa=Bn[Sn],[4,this.renderStack(wa)]):[3,14];case 12:va.sent(),va.label=13;case 13:return Sn++,[3,11];case 14:Cr=0,Or=be.nonPositionedInlineLevel,va.label=15;case 15:return Cr<Or.length?(wa=Or[Cr],[4,this.renderStack(wa)]):[3,18];case 16:va.sent(),va.label=17;case 17:return Cr++,[3,15];case 18:Zr=0,Ti=be.inlineLevel,va.label=19;case 19:return Zr<Ti.length?(wa=Ti[Zr],[4,this.renderNode(wa)]):[3,22];case 20:va.sent(),va.label=21;case 21:return Zr++,[3,19];case 22:ha=0,ho=be.zeroOrAutoZIndexOrTransformedOrOpacity,va.label=23;case 23:return ha<ho.length?(wa=ho[ha],[4,this.renderStack(wa)]):[3,26];case 24:va.sent(),va.label=25;case 25:return ha++,[3,23];case 26:Zo=0,As=be.positiveZIndex,va.label=27;case 27:return Zo<As.length?(wa=As[Zo],[4,this.renderStack(wa)]):[3,30];case 28:va.sent(),va.label=29;case 29:return Zo++,[3,27];case 30:return[2]}})})},ce.prototype.mask=function(be){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(be.slice(0).reverse()),this.ctx.closePath()},ce.prototype.path=function(be){this.ctx.beginPath(),this.formatPath(be),this.ctx.closePath()},ce.prototype.formatPath=function(be){var we=this;be.forEach(function(nt,Ft){var Xt=nu(nt)?nt.start:nt;Ft===0?we.ctx.moveTo(Xt.x,Xt.y):we.ctx.lineTo(Xt.x,Xt.y),nu(nt)&&we.ctx.bezierCurveTo(nt.startControl.x,nt.startControl.y,nt.endControl.x,nt.endControl.y,nt.end.x,nt.end.y)})},ce.prototype.renderRepeat=function(be,we,nt,Ft){this.path(be),this.ctx.fillStyle=we,this.ctx.translate(nt,Ft),this.ctx.fill(),this.ctx.translate(-nt,-Ft)},ce.prototype.resizeImage=function(be,we,nt){var Ft;if(be.width===we&&be.height===nt)return be;var Xt=(Ft=this.canvas.ownerDocument)!==null&&Ft!==void 0?Ft:document,Sn=Xt.createElement("canvas");Sn.width=Math.max(1,we),Sn.height=Math.max(1,nt);var Bn=Sn.getContext("2d");return Bn.drawImage(be,0,0,be.width,be.height,0,0,we,nt),Sn},ce.prototype.renderBackgroundImage=function(be){return ct(this,void 0,void 0,function(){var we,nt,Ft,Xt,Sn,Bn;return Le(this,function(Cr){switch(Cr.label){case 0:we=be.styles.backgroundImage.length-1,nt=function(Or){var Zr,Ti,ha,Uo,qA,oc,Kl,LA,Ps,ho,Uo,qA,oc,Kl,LA,Zo,As,wa,va,es,bs,$a,ia,Gs,Ps,ts,Uo,Ic,Rc,Kl,LA,sf,qA,oc,hh,Jc,lf,ph,Rf,Rd,jf,uf;return Le(this,function(Zh){switch(Zh.label){case 0:if(Or.type!==0)return[3,5];Zr=void 0,Ti=Or.url,Zh.label=1;case 1:return Zh.trys.push([1,3,,4]),[4,Ft.context.cache.match(Ti)];case 2:return Zr=Zh.sent(),[3,4];case 3:return Zh.sent(),Ft.context.logger.error("Error loading background-image "+Ti),[3,4];case 4:return Zr&&(ha=Md(be,we,[Zr.width,Zr.height,Zr.width/Zr.height]),Uo=ha[0],qA=ha[1],oc=ha[2],Kl=ha[3],LA=ha[4],Ps=Ft.ctx.createPattern(Ft.resizeImage(Zr,Kl,LA),"repeat"),Ft.renderRepeat(Uo,Ps,qA,oc)),[3,6];case 5:pc(Or)?(ho=Md(be,we,[null,null,null]),Uo=ho[0],qA=ho[1],oc=ho[2],Kl=ho[3],LA=ho[4],Zo=fc(Or.angle,Kl,LA),As=Zo[0],wa=Zo[1],va=Zo[2],es=Zo[3],bs=Zo[4],$a=document.createElement("canvas"),$a.width=Kl,$a.height=LA,ia=$a.getContext("2d"),Gs=ia.createLinearGradient(wa,es,va,bs),ZA(Or.stops,As).forEach(function(Hf){return Gs.addColorStop(Hf.stop,Gl(Hf.color))}),ia.fillStyle=Gs,ia.fillRect(0,0,Kl,LA),Kl>0&&LA>0&&(Ps=Ft.ctx.createPattern($a,"repeat"),Ft.renderRepeat(Uo,Ps,qA,oc))):_h(Or)&&(ts=Md(be,we,[null,null,null]),Uo=ts[0],Ic=ts[1],Rc=ts[2],Kl=ts[3],LA=ts[4],sf=Or.position.length===0?[Kc]:Or.position,qA=aa(sf[0],Kl),oc=aa(sf[sf.length-1],LA),hh=tc(Or,qA,oc,Kl,LA),Jc=hh[0],lf=hh[1],Jc>0&&lf>0&&(ph=Ft.ctx.createRadialGradient(Ic+qA,Rc+oc,0,Ic+qA,Rc+oc,Jc),ZA(Or.stops,Jc*2).forEach(function(Hf){return ph.addColorStop(Hf.stop,Gl(Hf.color))}),Ft.path(Uo),Ft.ctx.fillStyle=ph,Jc!==lf?(Rf=be.bounds.left+.5*be.bounds.width,Rd=be.bounds.top+.5*be.bounds.height,jf=lf/Jc,uf=1/jf,Ft.ctx.save(),Ft.ctx.translate(Rf,Rd),Ft.ctx.transform(1,0,0,jf,0,0),Ft.ctx.translate(-Rf,-Rd),Ft.ctx.fillRect(Ic,uf*(Rc-Rd)+Rd,Kl,LA*uf),Ft.ctx.restore()):Ft.ctx.fill())),Zh.label=6;case 6:return we--,[2]}})},Ft=this,Xt=0,Sn=be.styles.backgroundImage.slice(0).reverse(),Cr.label=1;case 1:return Xt<Sn.length?(Bn=Sn[Xt],[5,nt(Bn)]):[3,4];case 2:Cr.sent(),Cr.label=3;case 3:return Xt++,[3,1];case 4:return[2]}})})},ce.prototype.renderSolidBorder=function(be,we,nt){return ct(this,void 0,void 0,function(){return Le(this,function(Ft){return this.path(UA(nt,we)),this.ctx.fillStyle=Gl(be),this.ctx.fill(),[2]})})},ce.prototype.renderDoubleBorder=function(be,we,nt,Ft){return ct(this,void 0,void 0,function(){var Xt,Sn;return Le(this,function(Bn){switch(Bn.label){case 0:return we<3?[4,this.renderSolidBorder(be,nt,Ft)]:[3,2];case 1:return Bn.sent(),[2];case 2:return Xt=YA(Ft,nt),this.path(Xt),this.ctx.fillStyle=Gl(be),this.ctx.fill(),Sn=JA(Ft,nt),this.path(Sn),this.ctx.fill(),[2]}})})},ce.prototype.renderNodeBackgroundAndBorders=function(be){return ct(this,void 0,void 0,function(){var we,nt,Ft,Xt,Sn,Bn,Cr,Or,Zr=this;return Le(this,function(Ti){switch(Ti.label){case 0:return this.applyEffects(be.getEffects(2)),we=be.container.styles,nt=!rl(we.backgroundColor)||we.backgroundImage.length,Ft=[{style:we.borderTopStyle,color:we.borderTopColor,width:we.borderTopWidth},{style:we.borderRightStyle,color:we.borderRightColor,width:we.borderRightWidth},{style:we.borderBottomStyle,color:we.borderBottomColor,width:we.borderBottomWidth},{style:we.borderLeftStyle,color:we.borderLeftColor,width:we.borderLeftWidth}],Xt=fh(gd(we.backgroundClip,0),be.curves),nt||we.boxShadow.length?(this.ctx.save(),this.path(Xt),this.ctx.clip(),rl(we.backgroundColor)||(this.ctx.fillStyle=Gl(we.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(be.container)]):[3,2];case 1:Ti.sent(),this.ctx.restore(),we.boxShadow.slice(0).reverse().forEach(function(ha){Zr.ctx.save();var ho=ic(be.curves),Zo=ha.inset?0:Da,As=Jg(ho,-Zo+(ha.inset?1:-1)*ha.spread.number,(ha.inset?1:-1)*ha.spread.number,ha.spread.number*(ha.inset?-2:2),ha.spread.number*(ha.inset?-2:2));ha.inset?(Zr.path(ho),Zr.ctx.clip(),Zr.mask(As)):(Zr.mask(ho),Zr.ctx.clip(),Zr.path(As)),Zr.ctx.shadowOffsetX=ha.offsetX.number+Zo,Zr.ctx.shadowOffsetY=ha.offsetY.number,Zr.ctx.shadowColor=Gl(ha.color),Zr.ctx.shadowBlur=ha.blur.number,Zr.ctx.fillStyle=ha.inset?Gl(ha.color):"rgba(0,0,0,1)",Zr.ctx.fill(),Zr.ctx.restore()}),Ti.label=2;case 2:Sn=0,Bn=0,Cr=Ft,Ti.label=3;case 3:return Bn<Cr.length?(Or=Cr[Bn],Or.style!==0&&!rl(Or.color)&&Or.width>0?Or.style!==2?[3,5]:[4,this.renderDashedDottedBorder(Or.color,Or.width,Sn,be.curves,2)]:[3,11]):[3,13];case 4:return Ti.sent(),[3,11];case 5:return Or.style!==3?[3,7]:[4,this.renderDashedDottedBorder(Or.color,Or.width,Sn,be.curves,3)];case 6:return Ti.sent(),[3,11];case 7:return Or.style!==4?[3,9]:[4,this.renderDoubleBorder(Or.color,Or.width,Sn,be.curves)];case 8:return Ti.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Or.color,Sn,be.curves)];case 10:Ti.sent(),Ti.label=11;case 11:Sn++,Ti.label=12;case 12:return Bn++,[3,3];case 13:return[2]}})})},ce.prototype.renderDashedDottedBorder=function(be,we,nt,Ft,Xt){return ct(this,void 0,void 0,function(){var Sn,Bn,Cr,Or,Zr,Ti,ha,ho,Zo,As,wa,va,es,bs,$a,ia,$a,ia;return Le(this,function(Gs){return this.ctx.save(),Sn=qg(Ft,nt),Bn=UA(Ft,nt),Xt===2&&(this.path(Bn),this.ctx.clip()),nu(Bn[0])?(Cr=Bn[0].start.x,Or=Bn[0].start.y):(Cr=Bn[0].x,Or=Bn[0].y),nu(Bn[1])?(Zr=Bn[1].end.x,Ti=Bn[1].end.y):(Zr=Bn[1].x,Ti=Bn[1].y),nt===0||nt===2?ha=Math.abs(Cr-Zr):ha=Math.abs(Or-Ti),this.ctx.beginPath(),Xt===3?this.formatPath(Sn):this.formatPath(Bn.slice(0,2)),ho=we<3?we*3:we*2,Zo=we<3?we*2:we,Xt===3&&(ho=we,Zo=we),As=!0,ha<=ho*2?As=!1:ha<=ho*2+Zo?(wa=ha/(2*ho+Zo),ho*=wa,Zo*=wa):(va=Math.floor((ha+Zo)/(ho+Zo)),es=(ha-va*ho)/(va-1),bs=(ha-(va+1)*ho)/va,Zo=bs<=0||Math.abs(Zo-es)<Math.abs(Zo-bs)?es:bs),As&&(Xt===3?this.ctx.setLineDash([0,ho+Zo]):this.ctx.setLineDash([ho,Zo])),Xt===3?(this.ctx.lineCap="round",this.ctx.lineWidth=we):this.ctx.lineWidth=we*2+1.1,this.ctx.strokeStyle=Gl(be),this.ctx.stroke(),this.ctx.setLineDash([]),Xt===2&&(nu(Bn[0])&&($a=Bn[3],ia=Bn[0],this.ctx.beginPath(),this.formatPath([new Eo($a.end.x,$a.end.y),new Eo(ia.start.x,ia.start.y)]),this.ctx.stroke()),nu(Bn[1])&&($a=Bn[1],ia=Bn[2],this.ctx.beginPath(),this.formatPath([new Eo($a.end.x,$a.end.y),new Eo(ia.start.x,ia.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},ce.prototype.render=function(be){return ct(this,void 0,void 0,function(){var we;return Le(this,function(nt){switch(nt.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Gl(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),we=XA(be),[4,this.renderStack(we)];case 1:return nt.sent(),this.applyEffects([]),[2,this.canvas]}})})},ce}(Mf),xg=function(me){return me instanceof ps||me instanceof Uh?!0:me instanceof Ad&&me.type!==xc&&me.type!==ud},fh=function(me,ce){switch(me){case 0:return ic(ce);case 2:return uA(ce);case 1:default:return dh(ce)}},Kh=function(me){switch(me){case 1:return"center";case 2:return"right";case 0:default:return"left"}},ws=["-apple-system","system-ui"],Uf=function(me){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?me.filter(function(ce){return ws.indexOf(ce)===-1}):me},Fc=function(me){ae(ce,me);function ce(be,we){var nt=me.call(this,be,we)||this;return nt.canvas=we.canvas?we.canvas:document.createElement("canvas"),nt.ctx=nt.canvas.getContext("2d"),nt.options=we,nt.canvas.width=Math.floor(we.width*we.scale),nt.canvas.height=Math.floor(we.height*we.scale),nt.canvas.style.width=we.width+"px",nt.canvas.style.height=we.height+"px",nt.ctx.scale(nt.options.scale,nt.options.scale),nt.ctx.translate(-we.x,-we.y),nt.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+we.width+"x"+we.height+" at "+we.x+","+we.y+") with scale "+we.scale),nt}return ce.prototype.render=function(be){return ct(this,void 0,void 0,function(){var we,nt;return Le(this,function(Ft){switch(Ft.label){case 0:return we=Wc(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,be),[4,nm(we)];case 1:return nt=Ft.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Gl(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(nt,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},ce}(Mf),nm=function(me){return new Promise(function(ce,be){var we=new Image;we.onload=function(){ce(we)},we.onerror=be,we.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(me))})},Ud=function(){function me(ce){var be=ce.id,we=ce.enabled;this.id=be,this.enabled=we,this.start=Date.now()}return me.prototype.debug=function(){for(var ce=[],be=0;be<arguments.length;be++)ce[be]=arguments[be];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Je([this.id,this.getTime()+"ms"],ce)):this.info.apply(this,ce))},me.prototype.getTime=function(){return Date.now()-this.start},me.prototype.info=function(){for(var ce=[],be=0;be<arguments.length;be++)ce[be]=arguments[be];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Je([this.id,this.getTime()+"ms"],ce))},me.prototype.warn=function(){for(var ce=[],be=0;be<arguments.length;be++)ce[be]=arguments[be];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Je([this.id,this.getTime()+"ms"],ce)):this.info.apply(this,ce))},me.prototype.error=function(){for(var ce=[],be=0;be<arguments.length;be++)ce[be]=arguments[be];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,Je([this.id,this.getTime()+"ms"],ce)):this.info.apply(this,ce))},me.instances={},me}(),Qm=function(){function me(ce,be){var we;this.windowBounds=be,this.instanceName="#"+me.instanceCount++,this.logger=new Ud({id:this.instanceName,enabled:ce.logging}),this.cache=(we=ce.cache)!==null&&we!==void 0?we:new ja(this,ce)}return me.instanceCount=1,me}(),zm=function(me,ce){return ce===void 0&&(ce={}),Km(me,ce)};typeof window!="undefined"&&xa.setContext(window);var Km=function(me,ce){return ct(void 0,void 0,void 0,function(){var be,we,nt,Ft,Xt,Sn,Bn,Cr,Or,Zr,Ti,ha,ho,Zo,As,wa,va,es,bs,$a,Gs,ia,Gs,Ps,ts,Uo,Ic,Rc,Kl,LA,sf,qA,oc,hh,Jc,lf,ph,Rf,Rd,jf;return Le(this,function(uf){switch(uf.label){case 0:if(!me||typeof me!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(be=me.ownerDocument,!be)throw new Error("Element is not attached to a Document");if(we=be.defaultView,!we)throw new Error("Document is not attached to a Window");return nt={allowTaint:(Ps=ce.allowTaint)!==null&&Ps!==void 0?Ps:!1,imageTimeout:(ts=ce.imageTimeout)!==null&&ts!==void 0?ts:15e3,proxy:ce.proxy,useCORS:(Uo=ce.useCORS)!==null&&Uo!==void 0?Uo:!1},Ft=x({logging:(Ic=ce.logging)!==null&&Ic!==void 0?Ic:!0,cache:ce.cache},nt),Xt={windowWidth:(Rc=ce.windowWidth)!==null&&Rc!==void 0?Rc:we.innerWidth,windowHeight:(Kl=ce.windowHeight)!==null&&Kl!==void 0?Kl:we.innerHeight,scrollX:(LA=ce.scrollX)!==null&&LA!==void 0?LA:we.pageXOffset,scrollY:(sf=ce.scrollY)!==null&&sf!==void 0?sf:we.pageYOffset},Sn=new ze(Xt.scrollX,Xt.scrollY,Xt.windowWidth,Xt.windowHeight),Bn=new Qm(Ft,Sn),Cr=(qA=ce.foreignObjectRendering)!==null&&qA!==void 0?qA:!1,Or={allowTaint:(oc=ce.allowTaint)!==null&&oc!==void 0?oc:!1,onclone:ce.onclone,ignoreElements:ce.ignoreElements,inlineImages:Cr,copyStyles:Cr},Bn.logger.debug("Starting document clone with size "+Sn.width+"x"+Sn.height+" scrolled to "+-Sn.left+","+-Sn.top),Zr=new ue(Bn,me,Or),Ti=Zr.clonedReferenceElement,Ti?[4,Zr.toIFrame(be,Sn)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return ha=uf.sent(),ho=Hl(Ti)||mg(Ti)?Ue(Ti.ownerDocument):Se(Bn,Ti),Zo=ho.width,As=ho.height,wa=ho.left,va=ho.top,es=qu(Bn,Ti,ce.backgroundColor),bs={canvas:ce.canvas,backgroundColor:es,scale:(Jc=(hh=ce.scale)!==null&&hh!==void 0?hh:we.devicePixelRatio)!==null&&Jc!==void 0?Jc:1,x:((lf=ce.x)!==null&&lf!==void 0?lf:0)+wa,y:((ph=ce.y)!==null&&ph!==void 0?ph:0)+va,width:(Rf=ce.width)!==null&&Rf!==void 0?Rf:Math.ceil(Zo),height:(Rd=ce.height)!==null&&Rd!==void 0?Rd:Math.ceil(As)},Cr?(Bn.logger.debug("Document cloned, using foreign object rendering"),Gs=new Fc(Bn,bs),[4,Gs.render(Ti)]):[3,3];case 2:return $a=uf.sent(),[3,5];case 3:return Bn.logger.debug("Document cloned, element located at "+wa+","+va+" with size "+Zo+"x"+As+" using computed rendering"),Bn.logger.debug("Starting DOM parsing"),ia=cd(Bn,Ti),es===ia.styles.backgroundColor&&(ia.styles.backgroundColor=Ms.TRANSPARENT),Bn.logger.debug("Starting renderer for element at "+bs.x+","+bs.y+" with size "+bs.width+"x"+bs.height),Gs=new Ku(Bn,bs),[4,Gs.render(ia)];case 4:$a=uf.sent(),uf.label=5;case 5:return(!((jf=ce.removeContainer)!==null&&jf!==void 0)||jf)&&(ue.destroy(ha)||Bn.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),Bn.logger.debug("Finished rendering"),[2,$a]}})})},qu=function(me,ce,be){var we=ce.ownerDocument,nt=we.documentElement?Ra(me,getComputedStyle(we.documentElement).backgroundColor):Ms.TRANSPARENT,Ft=we.body?Ra(me,getComputedStyle(we.body).backgroundColor):Ms.TRANSPARENT,Xt=typeof be=="string"?Ra(me,be):be===null?Ms.TRANSPARENT:4294967295;return ce===we.documentElement?rl(nt)?rl(Ft)?Xt:Ft:nt:Xt};return zm})},44164:function(Vn,Mt,ae){var x=ae(97671);(function(Le,Je){Vn.exports=Je(ae(53307),ae(64270))})(self,function(ct,Le){return function(){var Je={"./src/plugin/hyperlinks.js":function(fe,Ce,oe){"use strict";oe.r(Ce);var Oe=oe("./node_modules/core-js/modules/web.dom-collections.for-each.js"),ve=oe.n(Oe),Me=oe("./node_modules/core-js/modules/es.string.link.js"),Fe=oe.n(Me),Te=oe("./src/worker.js"),ye=oe("./src/utils.js"),xe=[],Ee={toContainer:Te.default.prototype.toContainer,toPdf:Te.default.prototype.toPdf};Te.default.prototype.toContainer=function(){return Ee.toContainer.call(this).then(function(){if(this.opt.enableLinks){var Qe=this.prop.container,Re=Qe.querySelectorAll("a"),et=(0,ye.unitConvert)(Qe.getBoundingClientRect(),this.prop.pageSize.k);xe=[],Array.prototype.forEach.call(Re,function(Ge){for(var ut=Ge.getClientRects(),at=0;at<ut.length;at++){var ft=(0,ye.unitConvert)(ut[at],this.prop.pageSize.k);ft.left-=et.left,ft.top-=et.top;var bt=Math.floor(ft.top/this.prop.pageSize.inner.height)+1,He=this.opt.margin[0]+ft.top%this.prop.pageSize.inner.height,pt=this.opt.margin[1]+ft.left;xe.push({page:bt,top:He,left:pt,clientRect:ft,link:Ge})}},this)}})},Te.default.prototype.toPdf=function(){return Ee.toPdf.call(this).then(function(){if(this.opt.enableLinks){xe.forEach(function(Re){this.prop.pdf.setPage(Re.page),this.prop.pdf.link(Re.left,Re.top,Re.clientRect.width,Re.clientRect.height,{url:Re.link.href})},this);var Qe=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(Qe)}})}},"./src/plugin/jspdf-plugin.js":function(fe,Ce,oe){"use strict";oe.r(Ce);var Oe=oe("./node_modules/core-js/modules/es.symbol.js"),ve=oe.n(Oe),Me=oe("./node_modules/core-js/modules/es.symbol.description.js"),Fe=oe.n(Me),Te=oe("./node_modules/core-js/modules/es.object.to-string.js"),ye=oe.n(Te),xe=oe("./node_modules/core-js/modules/es.symbol.iterator.js"),Ee=oe.n(xe),ke=oe("./node_modules/core-js/modules/es.array.iterator.js"),Ke=oe.n(ke),Qe=oe("./node_modules/core-js/modules/es.string.iterator.js"),Re=oe.n(Qe),et=oe("./node_modules/core-js/modules/web.dom-collections.iterator.js"),Ge=oe.n(et),ut=oe("jspdf"),at=oe.n(ut);function ft(bt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ft=function(pt){return typeof pt}:ft=function(pt){return pt&&typeof Symbol=="function"&&pt.constructor===Symbol&&pt!==Symbol.prototype?"symbol":typeof pt},ft(bt)}ut.jsPDF.getPageSize=function(bt,He,pt){if(ft(bt)==="object"){var Ne=bt;bt=Ne.orientation,He=Ne.unit||He,pt=Ne.format||pt}He=He||"mm",pt=pt||"a4",bt=(""+(bt||"P")).toLowerCase();var je=(""+pt).toLowerCase(),Ot={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(He){case"pt":var it=1;break;case"mm":var it=72/25.4;break;case"cm":var it=72/2.54;break;case"in":var it=72;break;case"px":var it=72/96;break;case"pc":var it=12;break;case"em":var it=12;break;case"ex":var it=6;break;default:throw"Invalid unit: "+He}if(Ot.hasOwnProperty(je))var ht=Ot[je][1]/it,Bt=Ot[je][0]/it;else try{var ht=pt[1],Bt=pt[0]}catch(ot){throw new Error("Invalid format: "+pt)}if(bt==="p"||bt==="portrait"){if(bt="p",Bt>ht){var We=Bt;Bt=ht,ht=We}}else if(bt==="l"||bt==="landscape"){if(bt="l",ht>Bt){var We=Bt;Bt=ht,ht=We}}else throw"Invalid orientation: "+bt;var _e={width:Bt,height:ht,unit:He,k:it};return _e},Ce.default=ut.jsPDF},"./src/plugin/pagebreaks.js":function(fe,Ce,oe){"use strict";oe.r(Ce);var Oe=oe("./node_modules/core-js/modules/es.array.concat.js"),ve=oe.n(Oe),Me=oe("./node_modules/core-js/modules/es.array.slice.js"),Fe=oe.n(Me),Te=oe("./node_modules/core-js/modules/es.array.join.js"),ye=oe.n(Te),xe=oe("./node_modules/core-js/modules/web.dom-collections.for-each.js"),Ee=oe.n(xe),ke=oe("./node_modules/core-js/modules/es.object.keys.js"),Ke=oe.n(ke),Qe=oe("./src/worker.js"),Re=oe("./src/utils.js"),et={toContainer:Qe.default.prototype.toContainer};Qe.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},Qe.default.prototype.toContainer=function(){return et.toContainer.call(this).then(function(){var at=this.prop.container,ft=this.prop.pageSize.inner.px.height,bt=[].concat(this.opt.pagebreak.mode),He={avoidAll:bt.indexOf("avoid-all")!==-1,css:bt.indexOf("css")!==-1,legacy:bt.indexOf("legacy")!==-1},pt={},Ne=this;["before","after","avoid"].forEach(function(it){var ht=He.avoidAll&&it==="avoid";pt[it]=ht?[]:[].concat(Ne.opt.pagebreak[it]||[]),pt[it].length>0&&(pt[it]=Array.prototype.slice.call(at.querySelectorAll(pt[it].join(", "))))});var je=at.querySelectorAll(".html2pdf__page-break");je=Array.prototype.slice.call(je);var Ot=at.querySelectorAll("*");Array.prototype.forEach.call(Ot,function(ht){var Bt={before:!1,after:He.legacy&&je.indexOf(ht)!==-1,avoid:He.avoidAll};if(He.css){var We=window.getComputedStyle(ht),_e=["always","page","left","right"],ot=["avoid","avoid-page"];Bt={before:Bt.before||_e.indexOf(We.breakBefore||We.pageBreakBefore)!==-1,after:Bt.after||_e.indexOf(We.breakAfter||We.pageBreakAfter)!==-1,avoid:Bt.avoid||ot.indexOf(We.breakInside||We.pageBreakInside)!==-1}}Object.keys(Bt).forEach(function(pn){Bt[pn]=Bt[pn]||pt[pn].indexOf(ht)!==-1});var Zt=ht.getBoundingClientRect();if(Bt.avoid&&!Bt.before){var zt=Math.floor(Zt.top/ft),tt=Math.floor(Zt.bottom/ft),Nt=Math.abs(Zt.bottom-Zt.top)/ft;tt!==zt&&Nt<=1&&(Bt.before=!0)}if(Bt.before){var Ut=(0,Re.createElement)("div",{style:{display:"block",height:ft-Zt.top%ft+"px"}});ht.parentNode.insertBefore(Ut,ht)}if(Bt.after){var Ut=(0,Re.createElement)("div",{style:{display:"block",height:ft-Zt.bottom%ft+"px"}});ht.parentNode.insertBefore(Ut,ht.nextSibling)}})})}},"./src/utils.js":function(fe,Ce,oe){"use strict";oe.r(Ce),oe.d(Ce,{objType:function(){return bt},createElement:function(){return He},cloneNode:function(){return pt},unitConvert:function(){return Ne},toPx:function(){return je}});var Oe=oe("./node_modules/core-js/modules/es.number.constructor.js"),ve=oe.n(Oe),Me=oe("./node_modules/core-js/modules/es.symbol.js"),Fe=oe.n(Me),Te=oe("./node_modules/core-js/modules/es.symbol.description.js"),ye=oe.n(Te),xe=oe("./node_modules/core-js/modules/es.object.to-string.js"),Ee=oe.n(xe),ke=oe("./node_modules/core-js/modules/es.symbol.iterator.js"),Ke=oe.n(ke),Qe=oe("./node_modules/core-js/modules/es.array.iterator.js"),Re=oe.n(Qe),et=oe("./node_modules/core-js/modules/es.string.iterator.js"),Ge=oe.n(et),ut=oe("./node_modules/core-js/modules/web.dom-collections.iterator.js"),at=oe.n(ut);function ft(Ot){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ft=function(ht){return typeof ht}:ft=function(ht){return ht&&typeof Symbol=="function"&&ht.constructor===Symbol&&ht!==Symbol.prototype?"symbol":typeof ht},ft(Ot)}var bt=function(it){var ht=ft(it);return ht==="undefined"?"undefined":ht==="string"||it instanceof String?"string":ht==="number"||it instanceof Number?"number":ht==="function"||it instanceof Function?"function":it&&it.constructor===Array?"array":it&&it.nodeType===1?"element":ht==="object"?"object":"unknown"},He=function(it,ht){var Bt=document.createElement(it);if(ht.className&&(Bt.className=ht.className),ht.innerHTML){Bt.innerHTML=ht.innerHTML;for(var We=Bt.getElementsByTagName("script"),_e=We.length;_e-- >0;null)We[_e].parentNode.removeChild(We[_e])}for(var ot in ht.style)Bt.style[ot]=ht.style[ot];return Bt},pt=function Ot(it,ht){for(var Bt=it.nodeType===3?document.createTextNode(it.nodeValue):it.cloneNode(!1),We=it.firstChild;We;We=We.nextSibling)(ht===!0||We.nodeType!==1||We.nodeName!=="SCRIPT")&&Bt.appendChild(Ot(We,ht));return it.nodeType===1&&(it.nodeName==="CANVAS"?(Bt.width=it.width,Bt.height=it.height,Bt.getContext("2d").drawImage(it,0,0)):(it.nodeName==="TEXTAREA"||it.nodeName==="SELECT")&&(Bt.value=it.value),Bt.addEventListener("load",function(){Bt.scrollTop=it.scrollTop,Bt.scrollLeft=it.scrollLeft},!0)),Bt},Ne=function(it,ht){if(bt(it)==="number")return it*72/96/ht;var Bt={};for(var We in it)Bt[We]=it[We]*72/96/ht;return Bt},je=function(it,ht){return Math.floor(it*ht/72*96)}},"./src/worker.js":function(fe,Ce,oe){"use strict";oe.r(Ce);var Oe=oe("./node_modules/core-js/modules/es.object.assign.js"),ve=oe.n(Oe),Me=oe("./node_modules/core-js/modules/es.array.map.js"),Fe=oe.n(Me),Te=oe("./node_modules/core-js/modules/es.object.keys.js"),ye=oe.n(Te),xe=oe("./node_modules/core-js/modules/es.array.concat.js"),Ee=oe.n(xe),ke=oe("./node_modules/core-js/modules/es.object.to-string.js"),Ke=oe.n(ke),Qe=oe("./node_modules/core-js/modules/es.regexp.to-string.js"),Re=oe.n(Qe),et=oe("./node_modules/core-js/modules/es.function.name.js"),Ge=oe.n(et),ut=oe("./node_modules/core-js/modules/web.dom-collections.for-each.js"),at=oe.n(ut),ft=oe("jspdf"),bt=oe.n(ft),He=oe("html2canvas"),pt=oe.n(He),Ne=oe("./src/utils.js"),je=oe("./node_modules/es6-promise/dist/es6-promise.js"),Ot=oe.n(je),it=Ot().Promise,ht=function Bt(We){var _e=Object.assign(Bt.convert(it.resolve()),JSON.parse(JSON.stringify(Bt.template))),ot=Bt.convert(it.resolve(),_e);return ot=ot.setProgress(1,Bt,1,[Bt]),ot=ot.set(We),ot};ht.prototype=Object.create(it.prototype),ht.prototype.constructor=ht,ht.convert=function(We,_e){return We.__proto__=_e||ht.prototype,We},ht.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:{}}},ht.prototype.from=function(We,_e){function ot(Zt){switch((0,Ne.objType)(Zt)){case"string":return"string";case"element":return Zt.nodeName.toLowerCase&&Zt.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){switch(_e=_e||ot(We),_e){case"string":return this.set({src:(0,Ne.createElement)("div",{innerHTML:We})});case"element":return this.set({src:We});case"canvas":return this.set({canvas:We});case"img":return this.set({img:We});default:return this.error("Unknown source type.")}})},ht.prototype.to=function(We){switch(We){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.")}},ht.prototype.toContainer=function(){var We=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(We).then(function(){var ot={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},Zt={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};ot.opacity=0;var zt=(0,Ne.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,Ne.createElement)("div",{className:"html2pdf__overlay",style:ot}),this.prop.container=(0,Ne.createElement)("div",{className:"html2pdf__container",style:Zt}),this.prop.container.appendChild(zt),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},ht.prototype.toCanvas=function(){var We=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(We).then(function(){var ot=Object.assign({},this.opt.html2canvas);return delete ot.onrendered,He(this.prop.container,ot)}).then(function(ot){var Zt=this.opt.html2canvas.onrendered||function(){};Zt(ot),this.prop.canvas=ot,document.body.removeChild(this.prop.overlay)})},ht.prototype.toImg=function(){var We=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(We).then(function(){var ot=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=ot})},ht.prototype.toPdf=function(){var We=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(We).then(function(){var ot=this.prop.canvas,Zt=this.opt,zt=ot.height,tt=Math.floor(ot.width*this.prop.pageSize.inner.ratio),Nt=Math.ceil(zt/tt),Ut=this.prop.pageSize.inner.height,pn=document.createElement("canvas"),kt=pn.getContext("2d");pn.width=ot.width,pn.height=tt,this.prop.pdf=this.prop.pdf||new ft.jsPDF(Zt.jsPDF);for(var mn=0;mn<Nt;mn++){mn===Nt-1&&zt%tt!==0&&(pn.height=zt%tt,Ut=pn.height*this.prop.pageSize.inner.width/pn.width);var _t=pn.width,Cn=pn.height;kt.fillStyle="white",kt.fillRect(0,0,_t,Cn),kt.drawImage(ot,0,mn*tt,_t,Cn,0,0,_t,Cn),mn&&this.prop.pdf.addPage();var an=pn.toDataURL("image/"+Zt.image.type,Zt.image.quality);this.prop.pdf.addImage(an,Zt.image.type,Zt.margin[1],Zt.margin[0],this.prop.pageSize.inner.width,Ut)}})},ht.prototype.output=function(We,_e,ot){return ot=ot||"pdf",ot.toLowerCase()==="img"||ot.toLowerCase()==="image"?this.outputImg(We,_e):this.outputPdf(We,_e)},ht.prototype.outputPdf=function(We,_e){var ot=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(ot).then(function(){return this.prop.pdf.output(We,_e)})},ht.prototype.outputImg=function(We,_e){var ot=[function(){return this.prop.img||this.toImg()}];return this.thenList(ot).then(function(){switch(We){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 "'+We+'" is not supported.'}})},ht.prototype.save=function(We){var _e=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(_e).set(We?{filename:We}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},ht.prototype.set=function(We){if((0,Ne.objType)(We)!=="object")return this;var _e=Object.keys(We||{}).map(function(ot){switch(ot){case"margin":return this.setMargin.bind(this,We.margin);case"jsPDF":return function(){return this.opt.jsPDF=We.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,We.pageSize);default:return ot in ht.template.prop?function(){this.prop[ot]=We[ot]}:function(){this.opt[ot]=We[ot]}}},this);return this.then(function(){return this.thenList(_e)})},ht.prototype.get=function(We,_e){return this.then(function(){var Zt=We in ht.template.prop?this.prop[We]:this.opt[We];return _e?_e(Zt):Zt})},ht.prototype.setMargin=function(We){return this.then(function(){switch((0,Ne.objType)(We)){case"number":We=[We,We,We,We];case"array":if(We.length===2&&(We=[We[0],We[1],We[0],We[1]]),We.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=We}).then(this.setPageSize)},ht.prototype.setPageSize=function(We){return this.then(function(){We=We||ft.jsPDF.getPageSize(this.opt.jsPDF),We.hasOwnProperty("inner")||(We.inner={width:We.width-this.opt.margin[1]-this.opt.margin[3],height:We.height-this.opt.margin[0]-this.opt.margin[2]},We.inner.px={width:(0,Ne.toPx)(We.inner.width,We.k),height:(0,Ne.toPx)(We.inner.height,We.k)},We.inner.ratio=We.inner.height/We.inner.width),this.prop.pageSize=We})},ht.prototype.setProgress=function(We,_e,ot,Zt){return We!=null&&(this.progress.val=We),_e!=null&&(this.progress.state=_e),ot!=null&&(this.progress.n=ot),Zt!=null&&(this.progress.stack=Zt),this.progress.ratio=this.progress.val/this.progress.state,this},ht.prototype.updateProgress=function(We,_e,ot,Zt){return this.setProgress(We?this.progress.val+We:null,_e||null,ot?this.progress.n+ot:null,Zt?this.progress.stack.concat(Zt):null)},ht.prototype.then=function(We,_e){var ot=this;return this.thenCore(We,_e,function(zt,tt){return ot.updateProgress(null,null,1,[zt]),it.prototype.then.call(this,function(Ut){return ot.updateProgress(null,zt),Ut}).then(zt,tt).then(function(Ut){return ot.updateProgress(1),Ut})})},ht.prototype.thenCore=function(We,_e,ot){ot=ot||it.prototype.then;var Zt=this;We&&(We=We.bind(Zt)),_e&&(_e=_e.bind(Zt));var zt=it.toString().indexOf("[native code]")!==-1&&it.name==="Promise",tt=zt?Zt:ht.convert(Object.assign({},Zt),it.prototype),Nt=ot.call(tt,We,_e);return ht.convert(Nt,Zt.__proto__)},ht.prototype.thenExternal=function(We,_e){return it.prototype.then.call(this,We,_e)},ht.prototype.thenList=function(We){var _e=this;return We.forEach(function(Zt){_e=_e.thenCore(Zt)}),_e},ht.prototype.catch=function(Bt){Bt&&(Bt=Bt.bind(this));var We=it.prototype.catch.call(this,Bt);return ht.convert(We,this)},ht.prototype.catchExternal=function(We){return it.prototype.catch.call(this,We)},ht.prototype.error=function(We){return this.then(function(){throw new Error(We)})},ht.prototype.using=ht.prototype.set,ht.prototype.saveAs=ht.prototype.save,ht.prototype.export=ht.prototype.output,ht.prototype.run=ht.prototype.then,Ce.default=ht},"./node_modules/core-js/internals/a-function.js":function(fe){fe.exports=function(Ce){if(typeof Ce!="function")throw TypeError(String(Ce)+" is not a function");return Ce}},"./node_modules/core-js/internals/a-possible-prototype.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/is-object.js");fe.exports=function(ve){if(!Oe(ve)&&ve!==null)throw TypeError("Can't set "+String(ve)+" as a prototype");return ve}},"./node_modules/core-js/internals/add-to-unscopables.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/well-known-symbol.js"),ve=oe("./node_modules/core-js/internals/object-create.js"),Me=oe("./node_modules/core-js/internals/object-define-property.js"),Fe=Oe("unscopables"),Te=Array.prototype;Te[Fe]==null&&Me.f(Te,Fe,{configurable:!0,value:ve(null)}),fe.exports=function(ye){Te[Fe][ye]=!0}},"./node_modules/core-js/internals/an-object.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/is-object.js");fe.exports=function(ve){if(!Oe(ve))throw TypeError(String(ve)+" is not an object");return ve}},"./node_modules/core-js/internals/array-for-each.js":function(fe,Ce,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/array-iteration.js").forEach,ve=oe("./node_modules/core-js/internals/array-method-is-strict.js"),Me=ve("forEach");fe.exports=Me?[].forEach:function(Te){return Oe(this,Te,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/to-indexed-object.js"),ve=oe("./node_modules/core-js/internals/to-length.js"),Me=oe("./node_modules/core-js/internals/to-absolute-index.js"),Fe=function(Te){return function(ye,xe,Ee){var ke=Oe(ye),Ke=ve(ke.length),Qe=Me(Ee,Ke),Re;if(Te&&xe!=xe){for(;Ke>Qe;)if(Re=ke[Qe++],Re!=Re)return!0}else for(;Ke>Qe;Qe++)if((Te||Qe in ke)&&ke[Qe]===xe)return Te||Qe||0;return!Te&&-1}};fe.exports={includes:Fe(!0),indexOf:Fe(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/function-bind-context.js"),ve=oe("./node_modules/core-js/internals/indexed-object.js"),Me=oe("./node_modules/core-js/internals/to-object.js"),Fe=oe("./node_modules/core-js/internals/to-length.js"),Te=oe("./node_modules/core-js/internals/array-species-create.js"),ye=[].push,xe=function(Ee){var ke=Ee==1,Ke=Ee==2,Qe=Ee==3,Re=Ee==4,et=Ee==6,Ge=Ee==7,ut=Ee==5||et;return function(at,ft,bt,He){for(var pt=Me(at),Ne=ve(pt),je=Oe(ft,bt,3),Ot=Fe(Ne.length),it=0,ht=He||Te,Bt=ke?ht(at,Ot):Ke||Ge?ht(at,0):void 0,We,_e;Ot>it;it++)if((ut||it in Ne)&&(We=Ne[it],_e=je(We,it,pt),Ee))if(ke)Bt[it]=_e;else if(_e)switch(Ee){case 3:return!0;case 5:return We;case 6:return it;case 2:ye.call(Bt,We)}else switch(Ee){case 4:return!1;case 7:ye.call(Bt,We)}return et?-1:Qe||Re?Re:Bt}};fe.exports={forEach:xe(0),map:xe(1),filter:xe(2),some:xe(3),every:xe(4),find:xe(5),findIndex:xe(6),filterReject:xe(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/fails.js"),ve=oe("./node_modules/core-js/internals/well-known-symbol.js"),Me=oe("./node_modules/core-js/internals/engine-v8-version.js"),Fe=ve("species");fe.exports=function(Te){return Me>=51||!Oe(function(){var ye=[],xe=ye.constructor={};return xe[Fe]=function(){return{foo:1}},ye[Te](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(fe,Ce,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/fails.js");fe.exports=function(ve,Me){var Fe=[][ve];return!!Fe&&Oe(function(){Fe.call(null,Me||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/is-object.js"),ve=oe("./node_modules/core-js/internals/is-array.js"),Me=oe("./node_modules/core-js/internals/well-known-symbol.js"),Fe=Me("species");fe.exports=function(Te){var ye;return ve(Te)&&(ye=Te.constructor,typeof ye=="function"&&(ye===Array||ve(ye.prototype))?ye=void 0:Oe(ye)&&(ye=ye[Fe],ye===null&&(ye=void 0))),ye===void 0?Array:ye}},"./node_modules/core-js/internals/array-species-create.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/array-species-constructor.js");fe.exports=function(ve,Me){return new(Oe(ve))(Me===0?0:Me)}},"./node_modules/core-js/internals/classof-raw.js":function(fe){var Ce={}.toString;fe.exports=function(oe){return Ce.call(oe).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/to-string-tag-support.js"),ve=oe("./node_modules/core-js/internals/classof-raw.js"),Me=oe("./node_modules/core-js/internals/well-known-symbol.js"),Fe=Me("toStringTag"),Te=ve(function(){return arguments}())=="Arguments",ye=function(xe,Ee){try{return xe[Ee]}catch(ke){}};fe.exports=Oe?ve:function(xe){var Ee,ke,Ke;return xe===void 0?"Undefined":xe===null?"Null":typeof(ke=ye(Ee=Object(xe),Fe))=="string"?ke:Te?ve(Ee):(Ke=ve(Ee))=="Object"&&typeof Ee.callee=="function"?"Arguments":Ke}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/has.js"),ve=oe("./node_modules/core-js/internals/own-keys.js"),Me=oe("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),Fe=oe("./node_modules/core-js/internals/object-define-property.js");fe.exports=function(Te,ye){for(var xe=ve(ye),Ee=Fe.f,ke=Me.f,Ke=0;Ke<xe.length;Ke++){var Qe=xe[Ke];Oe(Te,Qe)||Ee(Te,Qe,ke(ye,Qe))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/fails.js");fe.exports=!Oe(function(){function ve(){}return ve.prototype.constructor=null,Object.getPrototypeOf(new ve)!==ve.prototype})},"./node_modules/core-js/internals/create-html.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/require-object-coercible.js"),ve=oe("./node_modules/core-js/internals/to-string.js"),Me=/"/g;fe.exports=function(Fe,Te,ye,xe){var Ee=ve(Oe(Fe)),ke="<"+Te;return ye!==""&&(ke+=" "+ye+'="'+ve(xe).replace(Me,"&quot;")+'"'),ke+">"+Ee+"</"+Te+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(fe,Ce,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,ve=oe("./node_modules/core-js/internals/object-create.js"),Me=oe("./node_modules/core-js/internals/create-property-descriptor.js"),Fe=oe("./node_modules/core-js/internals/set-to-string-tag.js"),Te=oe("./node_modules/core-js/internals/iterators.js"),ye=function(){return this};fe.exports=function(xe,Ee,ke){var Ke=Ee+" Iterator";return xe.prototype=ve(Oe,{next:Me(1,ke)}),Fe(xe,Ke,!1,!0),Te[Ke]=ye,xe}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/descriptors.js"),ve=oe("./node_modules/core-js/internals/object-define-property.js"),Me=oe("./node_modules/core-js/internals/create-property-descriptor.js");fe.exports=Oe?function(Fe,Te,ye){return ve.f(Fe,Te,Me(1,ye))}:function(Fe,Te,ye){return Fe[Te]=ye,Fe}},"./node_modules/core-js/internals/create-property-descriptor.js":function(fe){fe.exports=function(Ce,oe){return{enumerable:!(Ce&1),configurable:!(Ce&2),writable:!(Ce&4),value:oe}}},"./node_modules/core-js/internals/create-property.js":function(fe,Ce,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/to-property-key.js"),ve=oe("./node_modules/core-js/internals/object-define-property.js"),Me=oe("./node_modules/core-js/internals/create-property-descriptor.js");fe.exports=function(Fe,Te,ye){var xe=Oe(Te);xe in Fe?ve.f(Fe,xe,Me(0,ye)):Fe[xe]=ye}},"./node_modules/core-js/internals/define-iterator.js":function(fe,Ce,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/export.js"),ve=oe("./node_modules/core-js/internals/create-iterator-constructor.js"),Me=oe("./node_modules/core-js/internals/object-get-prototype-of.js"),Fe=oe("./node_modules/core-js/internals/object-set-prototype-of.js"),Te=oe("./node_modules/core-js/internals/set-to-string-tag.js"),ye=oe("./node_modules/core-js/internals/create-non-enumerable-property.js"),xe=oe("./node_modules/core-js/internals/redefine.js"),Ee=oe("./node_modules/core-js/internals/well-known-symbol.js"),ke=oe("./node_modules/core-js/internals/is-pure.js"),Ke=oe("./node_modules/core-js/internals/iterators.js"),Qe=oe("./node_modules/core-js/internals/iterators-core.js"),Re=Qe.IteratorPrototype,et=Qe.BUGGY_SAFARI_ITERATORS,Ge=Ee("iterator"),ut="keys",at="values",ft="entries",bt=function(){return this};fe.exports=function(He,pt,Ne,je,Ot,it,ht){ve(Ne,pt,je);var Bt=function(kt){if(kt===Ot&&zt)return zt;if(!et&&kt in ot)return ot[kt];switch(kt){case ut:return function(){return new Ne(this,kt)};case at:return function(){return new Ne(this,kt)};case ft:return function(){return new Ne(this,kt)}}return function(){return new Ne(this)}},We=pt+" Iterator",_e=!1,ot=He.prototype,Zt=ot[Ge]||ot["@@iterator"]||Ot&&ot[Ot],zt=!et&&Zt||Bt(Ot),tt=pt=="Array"&&ot.entries||Zt,Nt,Ut,pn;if(tt&&(Nt=Me(tt.call(new He)),Re!==Object.prototype&&Nt.next&&(!ke&&Me(Nt)!==Re&&(Fe?Fe(Nt,Re):typeof Nt[Ge]!="function"&&ye(Nt,Ge,bt)),Te(Nt,We,!0,!0),ke&&(Ke[We]=bt))),Ot==at&&Zt&&Zt.name!==at&&(_e=!0,zt=function(){return Zt.call(this)}),(!ke||ht)&&ot[Ge]!==zt&&ye(ot,Ge,zt),Ke[pt]=zt,Ot)if(Ut={values:Bt(at),keys:it?zt:Bt(ut),entries:Bt(ft)},ht)for(pn in Ut)(et||_e||!(pn in ot))&&xe(ot,pn,Ut[pn]);else Oe({target:pt,proto:!0,forced:et||_e},Ut);return Ut}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/path.js"),ve=oe("./node_modules/core-js/internals/has.js"),Me=oe("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Fe=oe("./node_modules/core-js/internals/object-define-property.js").f;fe.exports=function(Te){var ye=Oe.Symbol||(Oe.Symbol={});ve(ye,Te)||Fe(ye,Te,{value:Me.f(Te)})}},"./node_modules/core-js/internals/descriptors.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/fails.js");fe.exports=!Oe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/global.js"),ve=oe("./node_modules/core-js/internals/is-object.js"),Me=Oe.document,Fe=ve(Me)&&ve(Me.createElement);fe.exports=function(Te){return Fe?Me.createElement(Te):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(fe){fe.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(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/get-built-in.js");fe.exports=Oe("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/global.js"),ve=oe("./node_modules/core-js/internals/engine-user-agent.js"),Me=Oe.process,Fe=Oe.Deno,Te=Me&&Me.versions||Fe&&Fe.version,ye=Te&&Te.v8,xe,Ee;ye?(xe=ye.split("."),Ee=xe[0]<4?1:xe[0]+xe[1]):ve&&(xe=ve.match(/Edge\/(\d+)/),(!xe||xe[1]>=74)&&(xe=ve.match(/Chrome\/(\d+)/),xe&&(Ee=xe[1]))),fe.exports=Ee&&+Ee},"./node_modules/core-js/internals/enum-bug-keys.js":function(fe){fe.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/global.js"),ve=oe("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,Me=oe("./node_modules/core-js/internals/create-non-enumerable-property.js"),Fe=oe("./node_modules/core-js/internals/redefine.js"),Te=oe("./node_modules/core-js/internals/set-global.js"),ye=oe("./node_modules/core-js/internals/copy-constructor-properties.js"),xe=oe("./node_modules/core-js/internals/is-forced.js");fe.exports=function(Ee,ke){var Ke=Ee.target,Qe=Ee.global,Re=Ee.stat,et,Ge,ut,at,ft,bt;if(Qe?Ge=Oe:Re?Ge=Oe[Ke]||Te(Ke,{}):Ge=(Oe[Ke]||{}).prototype,Ge)for(ut in ke){if(ft=ke[ut],Ee.noTargetGet?(bt=ve(Ge,ut),at=bt&&bt.value):at=Ge[ut],et=xe(Qe?ut:Ke+(Re?".":"#")+ut,Ee.forced),!et&&at!==void 0){if(typeof ft==typeof at)continue;ye(ft,at)}(Ee.sham||at&&at.sham)&&Me(ft,"sham",!0),Fe(Ge,ut,ft,Ee)}}},"./node_modules/core-js/internals/fails.js":function(fe){fe.exports=function(Ce){try{return!!Ce()}catch(oe){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/a-function.js");fe.exports=function(ve,Me,Fe){if(Oe(ve),Me===void 0)return ve;switch(Fe){case 0:return function(){return ve.call(Me)};case 1:return function(Te){return ve.call(Me,Te)};case 2:return function(Te,ye){return ve.call(Me,Te,ye)};case 3:return function(Te,ye,xe){return ve.call(Me,Te,ye,xe)}}return function(){return ve.apply(Me,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/global.js"),ve=function(Me){return typeof Me=="function"?Me:void 0};fe.exports=function(Me,Fe){return arguments.length<2?ve(Oe[Me]):Oe[Me]&&Oe[Me][Fe]}},"./node_modules/core-js/internals/global.js":function(fe){var Ce=function(oe){return oe&&oe.Math==Math&&oe};fe.exports=Ce(typeof globalThis=="object"&&globalThis)||Ce(typeof window=="object"&&window)||Ce(typeof self=="object"&&self)||Ce(typeof ae.g=="object"&&ae.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/to-object.js"),ve={}.hasOwnProperty;fe.exports=Object.hasOwn||function(Fe,Te){return ve.call(Oe(Fe),Te)}},"./node_modules/core-js/internals/hidden-keys.js":function(fe){fe.exports={}},"./node_modules/core-js/internals/html.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/get-built-in.js");fe.exports=Oe("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/descriptors.js"),ve=oe("./node_modules/core-js/internals/fails.js"),Me=oe("./node_modules/core-js/internals/document-create-element.js");fe.exports=!Oe&&!ve(function(){return Object.defineProperty(Me("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/fails.js"),ve=oe("./node_modules/core-js/internals/classof-raw.js"),Me="".split;fe.exports=Oe(function(){return!Object("z").propertyIsEnumerable(0)})?function(Fe){return ve(Fe)=="String"?Me.call(Fe,""):Object(Fe)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/is-object.js"),ve=oe("./node_modules/core-js/internals/object-set-prototype-of.js");fe.exports=function(Me,Fe,Te){var ye,xe;return ve&&typeof(ye=Fe.constructor)=="function"&&ye!==Te&&Oe(xe=ye.prototype)&&xe!==Te.prototype&&ve(Me,xe),Me}},"./node_modules/core-js/internals/inspect-source.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/shared-store.js"),ve=Function.toString;typeof Oe.inspectSource!="function"&&(Oe.inspectSource=function(Me){return ve.call(Me)}),fe.exports=Oe.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/native-weak-map.js"),ve=oe("./node_modules/core-js/internals/global.js"),Me=oe("./node_modules/core-js/internals/is-object.js"),Fe=oe("./node_modules/core-js/internals/create-non-enumerable-property.js"),Te=oe("./node_modules/core-js/internals/has.js"),ye=oe("./node_modules/core-js/internals/shared-store.js"),xe=oe("./node_modules/core-js/internals/shared-key.js"),Ee=oe("./node_modules/core-js/internals/hidden-keys.js"),ke="Object already initialized",Ke=ve.WeakMap,Qe,Re,et,Ge=function(Ne){return et(Ne)?Re(Ne):Qe(Ne,{})},ut=function(Ne){return function(je){var Ot;if(!Me(je)||(Ot=Re(je)).type!==Ne)throw TypeError("Incompatible receiver, "+Ne+" required");return Ot}};if(Oe||ye.state){var at=ye.state||(ye.state=new Ke),ft=at.get,bt=at.has,He=at.set;Qe=function(Ne,je){if(bt.call(at,Ne))throw new TypeError(ke);return je.facade=Ne,He.call(at,Ne,je),je},Re=function(Ne){return ft.call(at,Ne)||{}},et=function(Ne){return bt.call(at,Ne)}}else{var pt=xe("state");Ee[pt]=!0,Qe=function(Ne,je){if(Te(Ne,pt))throw new TypeError(ke);return je.facade=Ne,Fe(Ne,pt,je),je},Re=function(Ne){return Te(Ne,pt)?Ne[pt]:{}},et=function(Ne){return Te(Ne,pt)}}fe.exports={set:Qe,get:Re,has:et,enforce:Ge,getterFor:ut}},"./node_modules/core-js/internals/is-array.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/classof-raw.js");fe.exports=Array.isArray||function(Me){return Oe(Me)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/fails.js"),ve=/#|\.prototype\./,Me=function(Ee,ke){var Ke=Te[Fe(Ee)];return Ke==xe?!0:Ke==ye?!1:typeof ke=="function"?Oe(ke):!!ke},Fe=Me.normalize=function(Ee){return String(Ee).replace(ve,".").toLowerCase()},Te=Me.data={},ye=Me.NATIVE="N",xe=Me.POLYFILL="P";fe.exports=Me},"./node_modules/core-js/internals/is-object.js":function(fe){fe.exports=function(Ce){return typeof Ce=="object"?Ce!==null:typeof Ce=="function"}},"./node_modules/core-js/internals/is-pure.js":function(fe){fe.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/get-built-in.js"),ve=oe("./node_modules/core-js/internals/use-symbol-as-uid.js");fe.exports=ve?function(Me){return typeof Me=="symbol"}:function(Me){var Fe=Oe("Symbol");return typeof Fe=="function"&&Object(Me)instanceof Fe}},"./node_modules/core-js/internals/iterators-core.js":function(fe,Ce,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/fails.js"),ve=oe("./node_modules/core-js/internals/object-get-prototype-of.js"),Me=oe("./node_modules/core-js/internals/create-non-enumerable-property.js"),Fe=oe("./node_modules/core-js/internals/has.js"),Te=oe("./node_modules/core-js/internals/well-known-symbol.js"),ye=oe("./node_modules/core-js/internals/is-pure.js"),xe=Te("iterator"),Ee=!1,ke=function(){return this},Ke,Qe,Re;[].keys&&(Re=[].keys(),"next"in Re?(Qe=ve(ve(Re)),Qe!==Object.prototype&&(Ke=Qe)):Ee=!0);var et=Ke==null||Oe(function(){var Ge={};return Ke[xe].call(Ge)!==Ge});et&&(Ke={}),(!ye||et)&&!Fe(Ke,xe)&&Me(Ke,xe,ke),fe.exports={IteratorPrototype:Ke,BUGGY_SAFARI_ITERATORS:Ee}},"./node_modules/core-js/internals/iterators.js":function(fe){fe.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/engine-v8-version.js"),ve=oe("./node_modules/core-js/internals/fails.js");fe.exports=!!Object.getOwnPropertySymbols&&!ve(function(){var Me=Symbol();return!String(Me)||!(Object(Me)instanceof Symbol)||!Symbol.sham&&Oe&&Oe<41})},"./node_modules/core-js/internals/native-weak-map.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/global.js"),ve=oe("./node_modules/core-js/internals/inspect-source.js"),Me=Oe.WeakMap;fe.exports=typeof Me=="function"&&/native code/.test(ve(Me))},"./node_modules/core-js/internals/object-assign.js":function(fe,Ce,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/descriptors.js"),ve=oe("./node_modules/core-js/internals/fails.js"),Me=oe("./node_modules/core-js/internals/object-keys.js"),Fe=oe("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Te=oe("./node_modules/core-js/internals/object-property-is-enumerable.js"),ye=oe("./node_modules/core-js/internals/to-object.js"),xe=oe("./node_modules/core-js/internals/indexed-object.js"),Ee=Object.assign,ke=Object.defineProperty;fe.exports=!Ee||ve(function(){if(Oe&&Ee({b:1},Ee(ke({},"a",{enumerable:!0,get:function(){ke(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var Ke={},Qe={},Re=Symbol(),et="abcdefghijklmnopqrst";return Ke[Re]=7,et.split("").forEach(function(Ge){Qe[Ge]=Ge}),Ee({},Ke)[Re]!=7||Me(Ee({},Qe)).join("")!=et})?function(Qe,Re){for(var et=ye(Qe),Ge=arguments.length,ut=1,at=Fe.f,ft=Te.f;Ge>ut;)for(var bt=xe(arguments[ut++]),He=at?Me(bt).concat(at(bt)):Me(bt),pt=He.length,Ne=0,je;pt>Ne;)je=He[Ne++],(!Oe||ft.call(bt,je))&&(et[je]=bt[je]);return et}:Ee},"./node_modules/core-js/internals/object-create.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/an-object.js"),ve=oe("./node_modules/core-js/internals/object-define-properties.js"),Me=oe("./node_modules/core-js/internals/enum-bug-keys.js"),Fe=oe("./node_modules/core-js/internals/hidden-keys.js"),Te=oe("./node_modules/core-js/internals/html.js"),ye=oe("./node_modules/core-js/internals/document-create-element.js"),xe=oe("./node_modules/core-js/internals/shared-key.js"),Ee=">",ke="<",Ke="prototype",Qe="script",Re=xe("IE_PROTO"),et=function(){},Ge=function(He){return ke+Qe+Ee+He+ke+"/"+Qe+Ee},ut=function(He){He.write(Ge("")),He.close();var pt=He.parentWindow.Object;return He=null,pt},at=function(){var He=ye("iframe"),pt="java"+Qe+":",Ne;if(He.style)return He.style.display="none",Te.appendChild(He),He.src=String(pt),Ne=He.contentWindow.document,Ne.open(),Ne.write(Ge("document.F=Object")),Ne.close(),Ne.F},ft,bt=function(){try{ft=new ActiveXObject("htmlfile")}catch(pt){}bt=document.domain&&ft?ut(ft):at()||ut(ft);for(var He=Me.length;He--;)delete bt[Ke][Me[He]];return bt()};Fe[Re]=!0,fe.exports=Object.create||function(pt,Ne){var je;return pt!==null?(et[Ke]=Oe(pt),je=new et,et[Ke]=null,je[Re]=pt):je=bt(),Ne===void 0?je:ve(je,Ne)}},"./node_modules/core-js/internals/object-define-properties.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/descriptors.js"),ve=oe("./node_modules/core-js/internals/object-define-property.js"),Me=oe("./node_modules/core-js/internals/an-object.js"),Fe=oe("./node_modules/core-js/internals/object-keys.js");fe.exports=Oe?Object.defineProperties:function(ye,xe){Me(ye);for(var Ee=Fe(xe),ke=Ee.length,Ke=0,Qe;ke>Ke;)ve.f(ye,Qe=Ee[Ke++],xe[Qe]);return ye}},"./node_modules/core-js/internals/object-define-property.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/descriptors.js"),ve=oe("./node_modules/core-js/internals/ie8-dom-define.js"),Me=oe("./node_modules/core-js/internals/an-object.js"),Fe=oe("./node_modules/core-js/internals/to-property-key.js"),Te=Object.defineProperty;Ce.f=Oe?Te:function(xe,Ee,ke){if(Me(xe),Ee=Fe(Ee),Me(ke),ve)try{return Te(xe,Ee,ke)}catch(Ke){}if("get"in ke||"set"in ke)throw TypeError("Accessors not supported");return"value"in ke&&(xe[Ee]=ke.value),xe}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/descriptors.js"),ve=oe("./node_modules/core-js/internals/object-property-is-enumerable.js"),Me=oe("./node_modules/core-js/internals/create-property-descriptor.js"),Fe=oe("./node_modules/core-js/internals/to-indexed-object.js"),Te=oe("./node_modules/core-js/internals/to-property-key.js"),ye=oe("./node_modules/core-js/internals/has.js"),xe=oe("./node_modules/core-js/internals/ie8-dom-define.js"),Ee=Object.getOwnPropertyDescriptor;Ce.f=Oe?Ee:function(Ke,Qe){if(Ke=Fe(Ke),Qe=Te(Qe),xe)try{return Ee(Ke,Qe)}catch(Re){}if(ye(Ke,Qe))return Me(!ve.f.call(Ke,Qe),Ke[Qe])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/to-indexed-object.js"),ve=oe("./node_modules/core-js/internals/object-get-own-property-names.js").f,Me={}.toString,Fe=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Te=function(ye){try{return ve(ye)}catch(xe){return Fe.slice()}};fe.exports.f=function(xe){return Fe&&Me.call(xe)=="[object Window]"?Te(xe):ve(Oe(xe))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/object-keys-internal.js"),ve=oe("./node_modules/core-js/internals/enum-bug-keys.js"),Me=ve.concat("length","prototype");Ce.f=Object.getOwnPropertyNames||function(Te){return Oe(Te,Me)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(fe,Ce){Ce.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/has.js"),ve=oe("./node_modules/core-js/internals/to-object.js"),Me=oe("./node_modules/core-js/internals/shared-key.js"),Fe=oe("./node_modules/core-js/internals/correct-prototype-getter.js"),Te=Me("IE_PROTO"),ye=Object.prototype;fe.exports=Fe?Object.getPrototypeOf:function(xe){return xe=ve(xe),Oe(xe,Te)?xe[Te]:typeof xe.constructor=="function"&&xe instanceof xe.constructor?xe.constructor.prototype:xe instanceof Object?ye:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/has.js"),ve=oe("./node_modules/core-js/internals/to-indexed-object.js"),Me=oe("./node_modules/core-js/internals/array-includes.js").indexOf,Fe=oe("./node_modules/core-js/internals/hidden-keys.js");fe.exports=function(Te,ye){var xe=ve(Te),Ee=0,ke=[],Ke;for(Ke in xe)!Oe(Fe,Ke)&&Oe(xe,Ke)&&ke.push(Ke);for(;ye.length>Ee;)Oe(xe,Ke=ye[Ee++])&&(~Me(ke,Ke)||ke.push(Ke));return ke}},"./node_modules/core-js/internals/object-keys.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/object-keys-internal.js"),ve=oe("./node_modules/core-js/internals/enum-bug-keys.js");fe.exports=Object.keys||function(Fe){return Oe(Fe,ve)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(fe,Ce){"use strict";var oe={}.propertyIsEnumerable,Oe=Object.getOwnPropertyDescriptor,ve=Oe&&!oe.call({1:2},1);Ce.f=ve?function(Fe){var Te=Oe(this,Fe);return!!Te&&Te.enumerable}:oe},"./node_modules/core-js/internals/object-set-prototype-of.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/an-object.js"),ve=oe("./node_modules/core-js/internals/a-possible-prototype.js");fe.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var Me=!1,Fe={},Te;try{Te=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,Te.call(Fe,[]),Me=Fe instanceof Array}catch(ye){}return function(xe,Ee){return Oe(xe),ve(Ee),Me?Te.call(xe,Ee):xe.__proto__=Ee,xe}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(fe,Ce,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/to-string-tag-support.js"),ve=oe("./node_modules/core-js/internals/classof.js");fe.exports=Oe?{}.toString:function(){return"[object "+ve(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/is-object.js");fe.exports=function(ve,Me){var Fe,Te;if(Me==="string"&&typeof(Fe=ve.toString)=="function"&&!Oe(Te=Fe.call(ve))||typeof(Fe=ve.valueOf)=="function"&&!Oe(Te=Fe.call(ve))||Me!=="string"&&typeof(Fe=ve.toString)=="function"&&!Oe(Te=Fe.call(ve)))return Te;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/get-built-in.js"),ve=oe("./node_modules/core-js/internals/object-get-own-property-names.js"),Me=oe("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Fe=oe("./node_modules/core-js/internals/an-object.js");fe.exports=Oe("Reflect","ownKeys")||function(ye){var xe=ve.f(Fe(ye)),Ee=Me.f;return Ee?xe.concat(Ee(ye)):xe}},"./node_modules/core-js/internals/path.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/global.js");fe.exports=Oe},"./node_modules/core-js/internals/redefine.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/global.js"),ve=oe("./node_modules/core-js/internals/create-non-enumerable-property.js"),Me=oe("./node_modules/core-js/internals/has.js"),Fe=oe("./node_modules/core-js/internals/set-global.js"),Te=oe("./node_modules/core-js/internals/inspect-source.js"),ye=oe("./node_modules/core-js/internals/internal-state.js"),xe=ye.get,Ee=ye.enforce,ke=String(String).split("String");(fe.exports=function(Ke,Qe,Re,et){var Ge=et?!!et.unsafe:!1,ut=et?!!et.enumerable:!1,at=et?!!et.noTargetGet:!1,ft;if(typeof Re=="function"&&(typeof Qe=="string"&&!Me(Re,"name")&&ve(Re,"name",Qe),ft=Ee(Re),ft.source||(ft.source=ke.join(typeof Qe=="string"?Qe:""))),Ke===Oe){ut?Ke[Qe]=Re:Fe(Qe,Re);return}else Ge?!at&&Ke[Qe]&&(ut=!0):delete Ke[Qe];ut?Ke[Qe]=Re:ve(Ke,Qe,Re)})(Function.prototype,"toString",function(){return typeof this=="function"&&xe(this).source||Te(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(fe,Ce,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/an-object.js");fe.exports=function(){var ve=Oe(this),Me="";return ve.global&&(Me+="g"),ve.ignoreCase&&(Me+="i"),ve.multiline&&(Me+="m"),ve.dotAll&&(Me+="s"),ve.unicode&&(Me+="u"),ve.sticky&&(Me+="y"),Me}},"./node_modules/core-js/internals/require-object-coercible.js":function(fe){fe.exports=function(Ce){if(Ce==null)throw TypeError("Can't call method on "+Ce);return Ce}},"./node_modules/core-js/internals/set-global.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/global.js");fe.exports=function(ve,Me){try{Object.defineProperty(Oe,ve,{value:Me,configurable:!0,writable:!0})}catch(Fe){Oe[ve]=Me}return Me}},"./node_modules/core-js/internals/set-to-string-tag.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/object-define-property.js").f,ve=oe("./node_modules/core-js/internals/has.js"),Me=oe("./node_modules/core-js/internals/well-known-symbol.js"),Fe=Me("toStringTag");fe.exports=function(Te,ye,xe){Te&&!ve(Te=xe?Te:Te.prototype,Fe)&&Oe(Te,Fe,{configurable:!0,value:ye})}},"./node_modules/core-js/internals/shared-key.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/shared.js"),ve=oe("./node_modules/core-js/internals/uid.js"),Me=Oe("keys");fe.exports=function(Fe){return Me[Fe]||(Me[Fe]=ve(Fe))}},"./node_modules/core-js/internals/shared-store.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/global.js"),ve=oe("./node_modules/core-js/internals/set-global.js"),Me="__core-js_shared__",Fe=Oe[Me]||ve(Me,{});fe.exports=Fe},"./node_modules/core-js/internals/shared.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/is-pure.js"),ve=oe("./node_modules/core-js/internals/shared-store.js");(fe.exports=function(Me,Fe){return ve[Me]||(ve[Me]=Fe!==void 0?Fe:{})})("versions",[]).push({version:"3.16.0",mode:Oe?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/fails.js");fe.exports=function(ve){return Oe(function(){var Me=""[ve]('"');return Me!==Me.toLowerCase()||Me.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/to-integer.js"),ve=oe("./node_modules/core-js/internals/to-string.js"),Me=oe("./node_modules/core-js/internals/require-object-coercible.js"),Fe=function(Te){return function(ye,xe){var Ee=ve(Me(ye)),ke=Oe(xe),Ke=Ee.length,Qe,Re;return ke<0||ke>=Ke?Te?"":void 0:(Qe=Ee.charCodeAt(ke),Qe<55296||Qe>56319||ke+1===Ke||(Re=Ee.charCodeAt(ke+1))<56320||Re>57343?Te?Ee.charAt(ke):Qe:Te?Ee.slice(ke,ke+2):(Qe-55296<<10)+(Re-56320)+65536)}};fe.exports={codeAt:Fe(!1),charAt:Fe(!0)}},"./node_modules/core-js/internals/string-trim.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/require-object-coercible.js"),ve=oe("./node_modules/core-js/internals/to-string.js"),Me=oe("./node_modules/core-js/internals/whitespaces.js"),Fe="["+Me+"]",Te=RegExp("^"+Fe+Fe+"*"),ye=RegExp(Fe+Fe+"*$"),xe=function(Ee){return function(ke){var Ke=ve(Oe(ke));return Ee&1&&(Ke=Ke.replace(Te,"")),Ee&2&&(Ke=Ke.replace(ye,"")),Ke}};fe.exports={start:xe(1),end:xe(2),trim:xe(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/to-integer.js"),ve=Math.max,Me=Math.min;fe.exports=function(Fe,Te){var ye=Oe(Fe);return ye<0?ve(ye+Te,0):Me(ye,Te)}},"./node_modules/core-js/internals/to-indexed-object.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/indexed-object.js"),ve=oe("./node_modules/core-js/internals/require-object-coercible.js");fe.exports=function(Me){return Oe(ve(Me))}},"./node_modules/core-js/internals/to-integer.js":function(fe){var Ce=Math.ceil,oe=Math.floor;fe.exports=function(Oe){return isNaN(Oe=+Oe)?0:(Oe>0?oe:Ce)(Oe)}},"./node_modules/core-js/internals/to-length.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/to-integer.js"),ve=Math.min;fe.exports=function(Me){return Me>0?ve(Oe(Me),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/require-object-coercible.js");fe.exports=function(ve){return Object(Oe(ve))}},"./node_modules/core-js/internals/to-primitive.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/is-object.js"),ve=oe("./node_modules/core-js/internals/is-symbol.js"),Me=oe("./node_modules/core-js/internals/ordinary-to-primitive.js"),Fe=oe("./node_modules/core-js/internals/well-known-symbol.js"),Te=Fe("toPrimitive");fe.exports=function(ye,xe){if(!Oe(ye)||ve(ye))return ye;var Ee=ye[Te],ke;if(Ee!==void 0){if(xe===void 0&&(xe="default"),ke=Ee.call(ye,xe),!Oe(ke)||ve(ke))return ke;throw TypeError("Can't convert object to primitive value")}return xe===void 0&&(xe="number"),Me(ye,xe)}},"./node_modules/core-js/internals/to-property-key.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/to-primitive.js"),ve=oe("./node_modules/core-js/internals/is-symbol.js");fe.exports=function(Me){var Fe=Oe(Me,"string");return ve(Fe)?Fe:String(Fe)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/well-known-symbol.js"),ve=Oe("toStringTag"),Me={};Me[ve]="z",fe.exports=String(Me)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/is-symbol.js");fe.exports=function(ve){if(Oe(ve))throw TypeError("Cannot convert a Symbol value to a string");return String(ve)}},"./node_modules/core-js/internals/uid.js":function(fe){var Ce=0,oe=Math.random();fe.exports=function(Oe){return"Symbol("+String(Oe===void 0?"":Oe)+")_"+(++Ce+oe).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/native-symbol.js");fe.exports=Oe&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/well-known-symbol.js");Ce.f=Oe},"./node_modules/core-js/internals/well-known-symbol.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/global.js"),ve=oe("./node_modules/core-js/internals/shared.js"),Me=oe("./node_modules/core-js/internals/has.js"),Fe=oe("./node_modules/core-js/internals/uid.js"),Te=oe("./node_modules/core-js/internals/native-symbol.js"),ye=oe("./node_modules/core-js/internals/use-symbol-as-uid.js"),xe=ve("wks"),Ee=Oe.Symbol,ke=ye?Ee:Ee&&Ee.withoutSetter||Fe;fe.exports=function(Ke){return(!Me(xe,Ke)||!(Te||typeof xe[Ke]=="string"))&&(Te&&Me(Ee,Ke)?xe[Ke]=Ee[Ke]:xe[Ke]=ke("Symbol."+Ke)),xe[Ke]}},"./node_modules/core-js/internals/whitespaces.js":function(fe){fe.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(fe,Ce,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/export.js"),ve=oe("./node_modules/core-js/internals/fails.js"),Me=oe("./node_modules/core-js/internals/is-array.js"),Fe=oe("./node_modules/core-js/internals/is-object.js"),Te=oe("./node_modules/core-js/internals/to-object.js"),ye=oe("./node_modules/core-js/internals/to-length.js"),xe=oe("./node_modules/core-js/internals/create-property.js"),Ee=oe("./node_modules/core-js/internals/array-species-create.js"),ke=oe("./node_modules/core-js/internals/array-method-has-species-support.js"),Ke=oe("./node_modules/core-js/internals/well-known-symbol.js"),Qe=oe("./node_modules/core-js/internals/engine-v8-version.js"),Re=Ke("isConcatSpreadable"),et=9007199254740991,Ge="Maximum allowed index exceeded",ut=Qe>=51||!ve(function(){var He=[];return He[Re]=!1,He.concat()[0]!==He}),at=ke("concat"),ft=function(He){if(!Fe(He))return!1;var pt=He[Re];return pt!==void 0?!!pt:Me(He)},bt=!ut||!at;Oe({target:"Array",proto:!0,forced:bt},{concat:function(pt){var Ne=Te(this),je=Ee(Ne,0),Ot=0,it,ht,Bt,We,_e;for(it=-1,Bt=arguments.length;it<Bt;it++)if(_e=it===-1?Ne:arguments[it],ft(_e)){if(We=ye(_e.length),Ot+We>et)throw TypeError(Ge);for(ht=0;ht<We;ht++,Ot++)ht in _e&&xe(je,Ot,_e[ht])}else{if(Ot>=et)throw TypeError(Ge);xe(je,Ot++,_e)}return je.length=Ot,je}})},"./node_modules/core-js/modules/es.array.iterator.js":function(fe,Ce,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/to-indexed-object.js"),ve=oe("./node_modules/core-js/internals/add-to-unscopables.js"),Me=oe("./node_modules/core-js/internals/iterators.js"),Fe=oe("./node_modules/core-js/internals/internal-state.js"),Te=oe("./node_modules/core-js/internals/define-iterator.js"),ye="Array Iterator",xe=Fe.set,Ee=Fe.getterFor(ye);fe.exports=Te(Array,"Array",function(ke,Ke){xe(this,{type:ye,target:Oe(ke),index:0,kind:Ke})},function(){var ke=Ee(this),Ke=ke.target,Qe=ke.kind,Re=ke.index++;return!Ke||Re>=Ke.length?(ke.target=void 0,{value:void 0,done:!0}):Qe=="keys"?{value:Re,done:!1}:Qe=="values"?{value:Ke[Re],done:!1}:{value:[Re,Ke[Re]],done:!1}},"values"),Me.Arguments=Me.Array,ve("keys"),ve("values"),ve("entries")},"./node_modules/core-js/modules/es.array.join.js":function(fe,Ce,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/export.js"),ve=oe("./node_modules/core-js/internals/indexed-object.js"),Me=oe("./node_modules/core-js/internals/to-indexed-object.js"),Fe=oe("./node_modules/core-js/internals/array-method-is-strict.js"),Te=[].join,ye=ve!=Object,xe=Fe("join",",");Oe({target:"Array",proto:!0,forced:ye||!xe},{join:function(ke){return Te.call(Me(this),ke===void 0?",":ke)}})},"./node_modules/core-js/modules/es.array.map.js":function(fe,Ce,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/export.js"),ve=oe("./node_modules/core-js/internals/array-iteration.js").map,Me=oe("./node_modules/core-js/internals/array-method-has-species-support.js"),Fe=Me("map");Oe({target:"Array",proto:!0,forced:!Fe},{map:function(ye){return ve(this,ye,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(fe,Ce,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/export.js"),ve=oe("./node_modules/core-js/internals/is-object.js"),Me=oe("./node_modules/core-js/internals/is-array.js"),Fe=oe("./node_modules/core-js/internals/to-absolute-index.js"),Te=oe("./node_modules/core-js/internals/to-length.js"),ye=oe("./node_modules/core-js/internals/to-indexed-object.js"),xe=oe("./node_modules/core-js/internals/create-property.js"),Ee=oe("./node_modules/core-js/internals/well-known-symbol.js"),ke=oe("./node_modules/core-js/internals/array-method-has-species-support.js"),Ke=ke("slice"),Qe=Ee("species"),Re=[].slice,et=Math.max;Oe({target:"Array",proto:!0,forced:!Ke},{slice:function(ut,at){var ft=ye(this),bt=Te(ft.length),He=Fe(ut,bt),pt=Fe(at===void 0?bt:at,bt),Ne,je,Ot;if(Me(ft)&&(Ne=ft.constructor,typeof Ne=="function"&&(Ne===Array||Me(Ne.prototype))?Ne=void 0:ve(Ne)&&(Ne=Ne[Qe],Ne===null&&(Ne=void 0)),Ne===Array||Ne===void 0))return Re.call(ft,He,pt);for(je=new(Ne===void 0?Array:Ne)(et(pt-He,0)),Ot=0;He<pt;He++,Ot++)He in ft&&xe(je,Ot,ft[He]);return je.length=Ot,je}})},"./node_modules/core-js/modules/es.function.name.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/descriptors.js"),ve=oe("./node_modules/core-js/internals/object-define-property.js").f,Me=Function.prototype,Fe=Me.toString,Te=/^\s*function ([^ (]*)/,ye="name";Oe&&!(ye in Me)&&ve(Me,ye,{configurable:!0,get:function(){try{return Fe.call(this).match(Te)[1]}catch(xe){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(fe,Ce,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/descriptors.js"),ve=oe("./node_modules/core-js/internals/global.js"),Me=oe("./node_modules/core-js/internals/is-forced.js"),Fe=oe("./node_modules/core-js/internals/redefine.js"),Te=oe("./node_modules/core-js/internals/has.js"),ye=oe("./node_modules/core-js/internals/classof-raw.js"),xe=oe("./node_modules/core-js/internals/inherit-if-required.js"),Ee=oe("./node_modules/core-js/internals/is-symbol.js"),ke=oe("./node_modules/core-js/internals/to-primitive.js"),Ke=oe("./node_modules/core-js/internals/fails.js"),Qe=oe("./node_modules/core-js/internals/object-create.js"),Re=oe("./node_modules/core-js/internals/object-get-own-property-names.js").f,et=oe("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,Ge=oe("./node_modules/core-js/internals/object-define-property.js").f,ut=oe("./node_modules/core-js/internals/string-trim.js").trim,at="Number",ft=ve[at],bt=ft.prototype,He=ye(Qe(bt))==at,pt=function(ht){if(Ee(ht))throw TypeError("Cannot convert a Symbol value to a number");var Bt=ke(ht,"number"),We,_e,ot,Zt,zt,tt,Nt,Ut;if(typeof Bt=="string"&&Bt.length>2){if(Bt=ut(Bt),We=Bt.charCodeAt(0),We===43||We===45){if(_e=Bt.charCodeAt(2),_e===88||_e===120)return NaN}else if(We===48){switch(Bt.charCodeAt(1)){case 66:case 98:ot=2,Zt=49;break;case 79:case 111:ot=8,Zt=55;break;default:return+Bt}for(zt=Bt.slice(2),tt=zt.length,Nt=0;Nt<tt;Nt++)if(Ut=zt.charCodeAt(Nt),Ut<48||Ut>Zt)return NaN;return parseInt(zt,ot)}}return+Bt};if(Me(at,!ft(" 0o1")||!ft("0b1")||ft("+0x1"))){for(var Ne=function(Bt){var We=arguments.length<1?0:Bt,_e=this;return _e instanceof Ne&&(He?Ke(function(){bt.valueOf.call(_e)}):ye(_e)!=at)?xe(new ft(pt(We)),_e,Ne):pt(We)},je=Oe?Re(ft):"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(","),Ot=0,it;je.length>Ot;Ot++)Te(ft,it=je[Ot])&&!Te(Ne,it)&&Ge(Ne,it,et(ft,it));Ne.prototype=bt,bt.constructor=Ne,Fe(ve,at,Ne)}},"./node_modules/core-js/modules/es.object.assign.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/export.js"),ve=oe("./node_modules/core-js/internals/object-assign.js");Oe({target:"Object",stat:!0,forced:Object.assign!==ve},{assign:ve})},"./node_modules/core-js/modules/es.object.keys.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/export.js"),ve=oe("./node_modules/core-js/internals/to-object.js"),Me=oe("./node_modules/core-js/internals/object-keys.js"),Fe=oe("./node_modules/core-js/internals/fails.js"),Te=Fe(function(){Me(1)});Oe({target:"Object",stat:!0,forced:Te},{keys:function(xe){return Me(ve(xe))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/to-string-tag-support.js"),ve=oe("./node_modules/core-js/internals/redefine.js"),Me=oe("./node_modules/core-js/internals/object-to-string.js");Oe||ve(Object.prototype,"toString",Me,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(fe,Ce,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/redefine.js"),ve=oe("./node_modules/core-js/internals/an-object.js"),Me=oe("./node_modules/core-js/internals/to-string.js"),Fe=oe("./node_modules/core-js/internals/fails.js"),Te=oe("./node_modules/core-js/internals/regexp-flags.js"),ye="toString",xe=RegExp.prototype,Ee=xe[ye],ke=Fe(function(){return Ee.call({source:"a",flags:"b"})!="/a/b"}),Ke=Ee.name!=ye;(ke||Ke)&&Oe(RegExp.prototype,ye,function(){var Re=ve(this),et=Me(Re.source),Ge=Re.flags,ut=Me(Ge===void 0&&Re instanceof RegExp&&!("flags"in xe)?Te.call(Re):Ge);return"/"+et+"/"+ut},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(fe,Ce,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/string-multibyte.js").charAt,ve=oe("./node_modules/core-js/internals/to-string.js"),Me=oe("./node_modules/core-js/internals/internal-state.js"),Fe=oe("./node_modules/core-js/internals/define-iterator.js"),Te="String Iterator",ye=Me.set,xe=Me.getterFor(Te);Fe(String,"String",function(Ee){ye(this,{type:Te,string:ve(Ee),index:0})},function(){var ke=xe(this),Ke=ke.string,Qe=ke.index,Re;return Qe>=Ke.length?{value:void 0,done:!0}:(Re=Oe(Ke,Qe),ke.index+=Re.length,{value:Re,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(fe,Ce,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/export.js"),ve=oe("./node_modules/core-js/internals/create-html.js"),Me=oe("./node_modules/core-js/internals/string-html-forced.js");Oe({target:"String",proto:!0,forced:Me("link")},{link:function(Te){return ve(this,"a","href",Te)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(fe,Ce,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/export.js"),ve=oe("./node_modules/core-js/internals/descriptors.js"),Me=oe("./node_modules/core-js/internals/global.js"),Fe=oe("./node_modules/core-js/internals/has.js"),Te=oe("./node_modules/core-js/internals/is-object.js"),ye=oe("./node_modules/core-js/internals/object-define-property.js").f,xe=oe("./node_modules/core-js/internals/copy-constructor-properties.js"),Ee=Me.Symbol;if(ve&&typeof Ee=="function"&&(!("description"in Ee.prototype)||Ee().description!==void 0)){var ke={},Ke=function(){var at=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),ft=this instanceof Ke?new Ee(at):at===void 0?Ee():Ee(at);return at===""&&(ke[ft]=!0),ft};xe(Ke,Ee);var Qe=Ke.prototype=Ee.prototype;Qe.constructor=Ke;var Re=Qe.toString,et=String(Ee("test"))=="Symbol(test)",Ge=/^Symbol\((.*)\)[^)]+$/;ye(Qe,"description",{configurable:!0,get:function(){var at=Te(this)?this.valueOf():this,ft=Re.call(at);if(Fe(ke,at))return"";var bt=et?ft.slice(7,-1):ft.replace(Ge,"$1");return bt===""?void 0:bt}}),Oe({global:!0,forced:!0},{Symbol:Ke})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/define-well-known-symbol.js");Oe("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(fe,Ce,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/export.js"),ve=oe("./node_modules/core-js/internals/global.js"),Me=oe("./node_modules/core-js/internals/get-built-in.js"),Fe=oe("./node_modules/core-js/internals/is-pure.js"),Te=oe("./node_modules/core-js/internals/descriptors.js"),ye=oe("./node_modules/core-js/internals/native-symbol.js"),xe=oe("./node_modules/core-js/internals/fails.js"),Ee=oe("./node_modules/core-js/internals/has.js"),ke=oe("./node_modules/core-js/internals/is-array.js"),Ke=oe("./node_modules/core-js/internals/is-object.js"),Qe=oe("./node_modules/core-js/internals/is-symbol.js"),Re=oe("./node_modules/core-js/internals/an-object.js"),et=oe("./node_modules/core-js/internals/to-object.js"),Ge=oe("./node_modules/core-js/internals/to-indexed-object.js"),ut=oe("./node_modules/core-js/internals/to-property-key.js"),at=oe("./node_modules/core-js/internals/to-string.js"),ft=oe("./node_modules/core-js/internals/create-property-descriptor.js"),bt=oe("./node_modules/core-js/internals/object-create.js"),He=oe("./node_modules/core-js/internals/object-keys.js"),pt=oe("./node_modules/core-js/internals/object-get-own-property-names.js"),Ne=oe("./node_modules/core-js/internals/object-get-own-property-names-external.js"),je=oe("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Ot=oe("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),it=oe("./node_modules/core-js/internals/object-define-property.js"),ht=oe("./node_modules/core-js/internals/object-property-is-enumerable.js"),Bt=oe("./node_modules/core-js/internals/create-non-enumerable-property.js"),We=oe("./node_modules/core-js/internals/redefine.js"),_e=oe("./node_modules/core-js/internals/shared.js"),ot=oe("./node_modules/core-js/internals/shared-key.js"),Zt=oe("./node_modules/core-js/internals/hidden-keys.js"),zt=oe("./node_modules/core-js/internals/uid.js"),tt=oe("./node_modules/core-js/internals/well-known-symbol.js"),Nt=oe("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Ut=oe("./node_modules/core-js/internals/define-well-known-symbol.js"),pn=oe("./node_modules/core-js/internals/set-to-string-tag.js"),kt=oe("./node_modules/core-js/internals/internal-state.js"),mn=oe("./node_modules/core-js/internals/array-iteration.js").forEach,_t=ot("hidden"),Cn="Symbol",an="prototype",de=tt("toPrimitive"),pe=kt.set,ie=kt.getterFor(Cn),ee=Object[an],se=ve.Symbol,le=Me("JSON","stringify"),Be=Ot.f,$e=it.f,st=Ne.f,gt=ht.f,mt=_e("symbols"),Et=_e("op-symbols"),Lt=_e("string-to-symbol-registry"),jt=_e("symbol-to-string-registry"),Ct=_e("wks"),lt=ve.QObject,$t=!lt||!lt[an]||!lt[an].findChild,Wt=Te&&xe(function(){return bt($e({},"a",{get:function(){return $e(this,"a",{value:7}).a}})).a!=7})?function(It,Gt,sn){var yn=Be(ee,Gt);yn&&delete ee[Gt],$e(It,Gt,sn),yn&&It!==ee&&$e(ee,Gt,yn)}:$e,wn=function(It,Gt){var sn=mt[It]=bt(se[an]);return pe(sn,{type:Cn,tag:It,description:Gt}),Te||(sn.description=Gt),sn},ln=function(Gt,sn,yn){Gt===ee&&ln(Et,sn,yn),Re(Gt);var Yn=ut(sn);return Re(yn),Ee(mt,Yn)?(yn.enumerable?(Ee(Gt,_t)&&Gt[_t][Yn]&&(Gt[_t][Yn]=!1),yn=bt(yn,{enumerable:ft(0,!1)})):(Ee(Gt,_t)||$e(Gt,_t,ft(1,{})),Gt[_t][Yn]=!0),Wt(Gt,Yn,yn)):$e(Gt,Yn,yn)},tn=function(Gt,sn){Re(Gt);var yn=Ge(sn),Yn=He(yn).concat(Dn(yn));return mn(Yn,function(Br){(!Te||En.call(yn,Br))&&ln(Gt,Br,yn[Br])}),Gt},Qn=function(Gt,sn){return sn===void 0?bt(Gt):tn(bt(Gt),sn)},En=function(Gt){var sn=ut(Gt),yn=gt.call(this,sn);return this===ee&&Ee(mt,sn)&&!Ee(Et,sn)?!1:yn||!Ee(this,sn)||!Ee(mt,sn)||Ee(this,_t)&&this[_t][sn]?yn:!0},Rt=function(Gt,sn){var yn=Ge(Gt),Yn=ut(sn);if(!(yn===ee&&Ee(mt,Yn)&&!Ee(Et,Yn))){var Br=Be(yn,Yn);return Br&&Ee(mt,Yn)&&!(Ee(yn,_t)&&yn[_t][Yn])&&(Br.enumerable=!0),Br}},un=function(Gt){var sn=st(Ge(Gt)),yn=[];return mn(sn,function(Yn){!Ee(mt,Yn)&&!Ee(Zt,Yn)&&yn.push(Yn)}),yn},Dn=function(Gt){var sn=Gt===ee,yn=st(sn?Et:Ge(Gt)),Yn=[];return mn(yn,function(Br){Ee(mt,Br)&&(!sn||Ee(ee,Br))&&Yn.push(mt[Br])}),Yn};if(ye||(se=function(){if(this instanceof se)throw TypeError("Symbol is not a constructor");var Gt=!arguments.length||arguments[0]===void 0?void 0:at(arguments[0]),sn=zt(Gt),yn=function(Yn){this===ee&&yn.call(Et,Yn),Ee(this,_t)&&Ee(this[_t],sn)&&(this[_t][sn]=!1),Wt(this,sn,ft(1,Yn))};return Te&&$t&&Wt(ee,sn,{configurable:!0,set:yn}),wn(sn,Gt)},We(se[an],"toString",function(){return ie(this).tag}),We(se,"withoutSetter",function(It){return wn(zt(It),It)}),ht.f=En,it.f=ln,Ot.f=Rt,pt.f=Ne.f=un,je.f=Dn,Nt.f=function(It){return wn(tt(It),It)},Te&&($e(se[an],"description",{configurable:!0,get:function(){return ie(this).description}}),Fe||We(ee,"propertyIsEnumerable",En,{unsafe:!0}))),Oe({global:!0,wrap:!0,forced:!ye,sham:!ye},{Symbol:se}),mn(He(Ct),function(It){Ut(It)}),Oe({target:Cn,stat:!0,forced:!ye},{for:function(It){var Gt=at(It);if(Ee(Lt,Gt))return Lt[Gt];var sn=se(Gt);return Lt[Gt]=sn,jt[sn]=Gt,sn},keyFor:function(Gt){if(!Qe(Gt))throw TypeError(Gt+" is not a symbol");if(Ee(jt,Gt))return jt[Gt]},useSetter:function(){$t=!0},useSimple:function(){$t=!1}}),Oe({target:"Object",stat:!0,forced:!ye,sham:!Te},{create:Qn,defineProperty:ln,defineProperties:tn,getOwnPropertyDescriptor:Rt}),Oe({target:"Object",stat:!0,forced:!ye},{getOwnPropertyNames:un,getOwnPropertySymbols:Dn}),Oe({target:"Object",stat:!0,forced:xe(function(){je.f(1)})},{getOwnPropertySymbols:function(Gt){return je.f(et(Gt))}}),le){var Wn=!ye||xe(function(){var It=se();return le([It])!="[null]"||le({a:It})!="{}"||le(Object(It))!="{}"});Oe({target:"JSON",stat:!0,forced:Wn},{stringify:function(Gt,sn,yn){for(var Yn=[Gt],Br=1,ti;arguments.length>Br;)Yn.push(arguments[Br++]);if(ti=sn,!(!Ke(sn)&&Gt===void 0||Qe(Gt)))return ke(sn)||(sn=function(Ur,Sr){if(typeof ti=="function"&&(Sr=ti.call(this,Ur,Sr)),!Qe(Sr))return Sr}),Yn[1]=sn,le.apply(null,Yn)}})}se[an][de]||Bt(se[an],de,se[an].valueOf),pn(se,Cn),Zt[_t]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/global.js"),ve=oe("./node_modules/core-js/internals/dom-iterables.js"),Me=oe("./node_modules/core-js/internals/array-for-each.js"),Fe=oe("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var Te in ve){var ye=Oe[Te],xe=ye&&ye.prototype;if(xe&&xe.forEach!==Me)try{Fe(xe,"forEach",Me)}catch(Ee){xe.forEach=Me}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(fe,Ce,oe){var Oe=oe("./node_modules/core-js/internals/global.js"),ve=oe("./node_modules/core-js/internals/dom-iterables.js"),Me=oe("./node_modules/core-js/modules/es.array.iterator.js"),Fe=oe("./node_modules/core-js/internals/create-non-enumerable-property.js"),Te=oe("./node_modules/core-js/internals/well-known-symbol.js"),ye=Te("iterator"),xe=Te("toStringTag"),Ee=Me.values;for(var ke in ve){var Ke=Oe[ke],Qe=Ke&&Ke.prototype;if(Qe){if(Qe[ye]!==Ee)try{Fe(Qe,ye,Ee)}catch(et){Qe[ye]=Ee}if(Qe[xe]||Fe(Qe,xe,ke),ve[ke]){for(var Re in Me)if(Qe[Re]!==Me[Re])try{Fe(Qe,Re,Me[Re])}catch(et){Qe[Re]=Me[Re]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(fe){(function(Ce,oe){fe.exports=oe()})(this,function(){"use strict";function Ce(lt){var $t=typeof lt;return lt!==null&&($t==="object"||$t==="function")}function oe(lt){return typeof lt=="function"}var Oe=void 0;Array.isArray?Oe=Array.isArray:Oe=function(lt){return Object.prototype.toString.call(lt)==="[object Array]"};var ve=Oe,Me=0,Fe=void 0,Te=void 0,ye=function($t,Wt){He[Me]=$t,He[Me+1]=Wt,Me+=2,Me===2&&(Te?Te(pt):je())};function xe(lt){Te=lt}function Ee(lt){ye=lt}var ke=typeof window!="undefined"?window:void 0,Ke=ke||{},Qe=Ke.MutationObserver||Ke.WebKitMutationObserver,Re=typeof self=="undefined"&&typeof x!="undefined"&&{}.toString.call(x)==="[object process]",et=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function Ge(){return function(){return x.nextTick(pt)}}function ut(){return typeof Fe!="undefined"?function(){Fe(pt)}:bt()}function at(){var lt=0,$t=new Qe(pt),Wt=document.createTextNode("");return $t.observe(Wt,{characterData:!0}),function(){Wt.data=lt=++lt%2}}function ft(){var lt=new MessageChannel;return lt.port1.onmessage=pt,function(){return lt.port2.postMessage(0)}}function bt(){var lt=setTimeout;return function(){return lt(pt,1)}}var He=new Array(1e3);function pt(){for(var lt=0;lt<Me;lt+=2){var $t=He[lt],Wt=He[lt+1];$t(Wt),He[lt]=void 0,He[lt+1]=void 0}Me=0}function Ne(){try{var lt=Function("return this")().require("vertx");return Fe=lt.runOnLoop||lt.runOnContext,ut()}catch($t){return bt()}}var je=void 0;Re?je=Ge():Qe?je=at():et?je=ft():ke===void 0?je=Ne():je=bt();function Ot(lt,$t){var Wt=this,wn=new this.constructor(Bt);wn[ht]===void 0&&le(wn);var ln=Wt._state;if(ln){var tn=arguments[ln-1];ye(function(){return pe(ln,wn,tn,Wt._result)})}else an(Wt,wn,lt,$t);return wn}function it(lt){var $t=this;if(lt&&typeof lt=="object"&&lt.constructor===$t)return lt;var Wt=new $t(Bt);return kt(Wt,lt),Wt}var ht=Math.random().toString(36).substring(2);function Bt(){}var We=void 0,_e=1,ot=2;function Zt(){return new TypeError("You cannot resolve a promise with itself")}function zt(){return new TypeError("A promises callback cannot return that same promise.")}function tt(lt,$t,Wt,wn){try{lt.call($t,Wt,wn)}catch(ln){return ln}}function Nt(lt,$t,Wt){ye(function(wn){var ln=!1,tn=tt(Wt,$t,function(Qn){ln||(ln=!0,$t!==Qn?kt(wn,Qn):_t(wn,Qn))},function(Qn){ln||(ln=!0,Cn(wn,Qn))},"Settle: "+(wn._label||" unknown promise"));!ln&&tn&&(ln=!0,Cn(wn,tn))},lt)}function Ut(lt,$t){$t._state===_e?_t(lt,$t._result):$t._state===ot?Cn(lt,$t._result):an($t,void 0,function(Wt){return kt(lt,Wt)},function(Wt){return Cn(lt,Wt)})}function pn(lt,$t,Wt){$t.constructor===lt.constructor&&Wt===Ot&&$t.constructor.resolve===it?Ut(lt,$t):Wt===void 0?_t(lt,$t):oe(Wt)?Nt(lt,$t,Wt):_t(lt,$t)}function kt(lt,$t){if(lt===$t)Cn(lt,Zt());else if(Ce($t)){var Wt=void 0;try{Wt=$t.then}catch(wn){Cn(lt,wn);return}pn(lt,$t,Wt)}else _t(lt,$t)}function mn(lt){lt._onerror&&lt._onerror(lt._result),de(lt)}function _t(lt,$t){lt._state===We&&(lt._result=$t,lt._state=_e,lt._subscribers.length!==0&&ye(de,lt))}function Cn(lt,$t){lt._state===We&&(lt._state=ot,lt._result=$t,ye(mn,lt))}function an(lt,$t,Wt,wn){var ln=lt._subscribers,tn=ln.length;lt._onerror=null,ln[tn]=$t,ln[tn+_e]=Wt,ln[tn+ot]=wn,tn===0&&lt._state&&ye(de,lt)}function de(lt){var $t=lt._subscribers,Wt=lt._state;if($t.length!==0){for(var wn=void 0,ln=void 0,tn=lt._result,Qn=0;Qn<$t.length;Qn+=3)wn=$t[Qn],ln=$t[Qn+Wt],wn?pe(Wt,wn,ln,tn):ln(tn);lt._subscribers.length=0}}function pe(lt,$t,Wt,wn){var ln=oe(Wt),tn=void 0,Qn=void 0,En=!0;if(ln){try{tn=Wt(wn)}catch(Rt){En=!1,Qn=Rt}if($t===tn){Cn($t,zt());return}}else tn=wn;$t._state!==We||(ln&&En?kt($t,tn):En===!1?Cn($t,Qn):lt===_e?_t($t,tn):lt===ot&&Cn($t,tn))}function ie(lt,$t){try{$t(function(wn){kt(lt,wn)},function(wn){Cn(lt,wn)})}catch(Wt){Cn(lt,Wt)}}var ee=0;function se(){return ee++}function le(lt){lt[ht]=ee++,lt._state=void 0,lt._result=void 0,lt._subscribers=[]}function Be(){return new Error("Array Methods must be provided an Array")}var $e=function(){function lt($t,Wt){this._instanceConstructor=$t,this.promise=new $t(Bt),this.promise[ht]||le(this.promise),ve(Wt)?(this.length=Wt.length,this._remaining=Wt.length,this._result=new Array(this.length),this.length===0?_t(this.promise,this._result):(this.length=this.length||0,this._enumerate(Wt),this._remaining===0&&_t(this.promise,this._result))):Cn(this.promise,Be())}return lt.prototype._enumerate=function(Wt){for(var wn=0;this._state===We&&wn<Wt.length;wn++)this._eachEntry(Wt[wn],wn)},lt.prototype._eachEntry=function(Wt,wn){var ln=this._instanceConstructor,tn=ln.resolve;if(tn===it){var Qn=void 0,En=void 0,Rt=!1;try{Qn=Wt.then}catch(Dn){Rt=!0,En=Dn}if(Qn===Ot&&Wt._state!==We)this._settledAt(Wt._state,wn,Wt._result);else if(typeof Qn!="function")this._remaining--,this._result[wn]=Wt;else if(ln===jt){var un=new ln(Bt);Rt?Cn(un,En):pn(un,Wt,Qn),this._willSettleAt(un,wn)}else this._willSettleAt(new ln(function(Dn){return Dn(Wt)}),wn)}else this._willSettleAt(tn(Wt),wn)},lt.prototype._settledAt=function(Wt,wn,ln){var tn=this.promise;tn._state===We&&(this._remaining--,Wt===ot?Cn(tn,ln):this._result[wn]=ln),this._remaining===0&&_t(tn,this._result)},lt.prototype._willSettleAt=function(Wt,wn){var ln=this;an(Wt,void 0,function(tn){return ln._settledAt(_e,wn,tn)},function(tn){return ln._settledAt(ot,wn,tn)})},lt}();function st(lt){return new $e(this,lt).promise}function gt(lt){var $t=this;return ve(lt)?new $t(function(Wt,wn){for(var ln=lt.length,tn=0;tn<ln;tn++)$t.resolve(lt[tn]).then(Wt,wn)}):new $t(function(Wt,wn){return wn(new TypeError("You must pass an array to race."))})}function mt(lt){var $t=this,Wt=new $t(Bt);return Cn(Wt,lt),Wt}function Et(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Lt(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var jt=function(){function lt($t){this[ht]=se(),this._result=this._state=void 0,this._subscribers=[],Bt!==$t&&(typeof $t!="function"&&Et(),this instanceof lt?ie(this,$t):Lt())}return lt.prototype.catch=function(Wt){return this.then(null,Wt)},lt.prototype.finally=function(Wt){var wn=this,ln=wn.constructor;return oe(Wt)?wn.then(function(tn){return ln.resolve(Wt()).then(function(){return tn})},function(tn){return ln.resolve(Wt()).then(function(){throw tn})}):wn.then(Wt,Wt)},lt}();jt.prototype.then=Ot,jt.all=st,jt.race=gt,jt.resolve=it,jt.reject=mt,jt._setScheduler=xe,jt._setAsap=Ee,jt._asap=ye;function Ct(){var lt=void 0;if(typeof ae.g!="undefined")lt=ae.g;else if(typeof self!="undefined")lt=self;else try{lt=Function("return this")()}catch(wn){throw new Error("polyfill failed because global object is unavailable in this environment")}var $t=lt.Promise;if($t){var Wt=null;try{Wt=Object.prototype.toString.call($t.resolve())}catch(wn){}if(Wt==="[object Promise]"&&!$t.cast)return}lt.Promise=jt}return jt.polyfill=Ct,jt.Promise=jt,jt})},html2canvas:function(fe){"use strict";fe.exports=Le},jspdf:function(fe){"use strict";fe.exports=ct}},ze={};function Se(fe){var Ce=ze[fe];if(Ce!==void 0)return Ce.exports;var oe=ze[fe]={exports:{}};return Je[fe].call(oe.exports,oe,oe.exports,Se),oe.exports}(function(){Se.n=function(fe){var Ce=fe&&fe.__esModule?function(){return fe.default}:function(){return fe};return Se.d(Ce,{a:Ce}),Ce}})(),function(){Se.d=function(fe,Ce){for(var oe in Ce)Se.o(Ce,oe)&&!Se.o(fe,oe)&&Object.defineProperty(fe,oe,{enumerable:!0,get:Ce[oe]})}}(),function(){Se.o=function(fe,Ce){return Object.prototype.hasOwnProperty.call(fe,Ce)}}(),function(){Se.r=function(fe){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(fe,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(fe,"__esModule",{value:!0})}}();var Ue={};return function(){"use strict";Se.r(Ue);var fe=Se("./src/worker.js"),Ce=Se("./src/plugin/jspdf-plugin.js"),oe=Se("./src/plugin/pagebreaks.js"),Oe=Se("./src/plugin/hyperlinks.js"),ve=function Me(Fe,Te){var ye=new Me.Worker(Te);return Fe?ye.from(Fe).save():ye};ve.Worker=fe.default,Ue.default=ve}(),Ue=Ue.default,Ue}()})},67467:function(Vn,Mt){Mt.read=function(ae,x,ct,Le,Je){var ze,Se,Ue=Je*8-Le-1,fe=(1<<Ue)-1,Ce=fe>>1,oe=-7,Oe=ct?Je-1:0,ve=ct?-1:1,Me=ae[x+Oe];for(Oe+=ve,ze=Me&(1<<-oe)-1,Me>>=-oe,oe+=Ue;oe>0;ze=ze*256+ae[x+Oe],Oe+=ve,oe-=8);for(Se=ze&(1<<-oe)-1,ze>>=-oe,oe+=Le;oe>0;Se=Se*256+ae[x+Oe],Oe+=ve,oe-=8);if(ze===0)ze=1-Ce;else{if(ze===fe)return Se?NaN:(Me?-1:1)*(1/0);Se=Se+Math.pow(2,Le),ze=ze-Ce}return(Me?-1:1)*Se*Math.pow(2,ze-Le)},Mt.write=function(ae,x,ct,Le,Je,ze){var Se,Ue,fe,Ce=ze*8-Je-1,oe=(1<<Ce)-1,Oe=oe>>1,ve=Je===23?Math.pow(2,-24)-Math.pow(2,-77):0,Me=Le?0:ze-1,Fe=Le?1:-1,Te=x<0||x===0&&1/x<0?1:0;for(x=Math.abs(x),isNaN(x)||x===1/0?(Ue=isNaN(x)?1:0,Se=oe):(Se=Math.floor(Math.log(x)/Math.LN2),x*(fe=Math.pow(2,-Se))<1&&(Se--,fe*=2),Se+Oe>=1?x+=ve/fe:x+=ve*Math.pow(2,1-Oe),x*fe>=2&&(Se++,fe/=2),Se+Oe>=oe?(Ue=0,Se=oe):Se+Oe>=1?(Ue=(x*fe-1)*Math.pow(2,Je),Se=Se+Oe):(Ue=x*Math.pow(2,Oe-1)*Math.pow(2,Je),Se=0));Je>=8;ae[ct+Me]=Ue&255,Me+=Fe,Ue/=256,Je-=8);for(Se=Se<<Je|Ue,Ce+=Je;Ce>0;ae[ct+Me]=Se&255,Me+=Fe,Se/=256,Ce-=8);ae[ct+Me-Fe]|=Te*128}},53307:function(Vn,Mt,ae){"use strict";ae.r(Mt),ae.d(Mt,{AcroForm:function(){return Rc},AcroFormAppearance:function(){return Uo},AcroFormButton:function(){return es},AcroFormCheckBox:function(){return Gs},AcroFormChoiceField:function(){return Zo},AcroFormComboBox:function(){return wa},AcroFormEditBox:function(){return va},AcroFormListBox:function(){return As},AcroFormPasswordField:function(){return ts},AcroFormPushButton:function(){return bs},AcroFormRadioButton:function(){return $a},AcroFormTextField:function(){return Ps},GState:function(){return Ep},ShadingPattern:function(){return kf},TilingPattern:function(){return Mf},default:function(){return Da},jsPDF:function(){return Da}});var x=ae(76190),ct={},Le=function(y,z,E,re,Ae){var he=new Worker(ct[z]||(ct[z]=URL.createObjectURL(new Blob([y+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return he.onmessage=function(Ze){var Pe=Ze.data,Ve=Pe.$e$;if(Ve){var Ye=new Error(Ve[0]);Ye.code=Ve[1],Ye.stack=Ve[2],Ae(Ye,null)}else Ae(null,Pe)},he.postMessage(E,re),he},Je=Uint8Array,ze=Uint16Array,Se=Int32Array,Ue=new Je([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]),fe=new Je([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]),Ce=new Je([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),oe=function(y,z){for(var E=new ze(31),re=0;re<31;++re)E[re]=z+=1<<y[re-1];for(var Ae=new Se(E[30]),re=1;re<30;++re)for(var he=E[re];he<E[re+1];++he)Ae[he]=he-E[re]<<5|re;return{b:E,r:Ae}},Oe=oe(Ue,2),ve=Oe.b,Me=Oe.r;ve[28]=258,Me[258]=28;for(var Fe=oe(fe,0),Te=Fe.b,ye=Fe.r,xe=new ze(32768),Ee=0;Ee<32768;++Ee){var ke=(Ee&43690)>>1|(Ee&21845)<<1;ke=(ke&52428)>>2|(ke&13107)<<2,ke=(ke&61680)>>4|(ke&3855)<<4,xe[Ee]=((ke&65280)>>8|(ke&255)<<8)>>1}for(var Ke=function(y,z,E){for(var re=y.length,Ae=0,he=new ze(z);Ae<re;++Ae)y[Ae]&&++he[y[Ae]-1];var Ze=new ze(z);for(Ae=1;Ae<z;++Ae)Ze[Ae]=Ze[Ae-1]+he[Ae-1]<<1;var Pe;if(E){Pe=new ze(1<<z);var Ve=15-z;for(Ae=0;Ae<re;++Ae)if(y[Ae])for(var Ye=Ae<<4|y[Ae],dt=z-y[Ae],Tt=Ze[y[Ae]-1]++<<dt,Jt=Tt|(1<<dt)-1;Tt<=Jt;++Tt)Pe[xe[Tt]>>Ve]=Ye}else for(Pe=new ze(re),Ae=0;Ae<re;++Ae)y[Ae]&&(Pe[Ae]=xe[Ze[y[Ae]-1]++]>>15-y[Ae]);return Pe},Qe=new Je(288),Ee=0;Ee<144;++Ee)Qe[Ee]=8;for(var Ee=144;Ee<256;++Ee)Qe[Ee]=9;for(var Ee=256;Ee<280;++Ee)Qe[Ee]=7;for(var Ee=280;Ee<288;++Ee)Qe[Ee]=8;for(var Re=new Je(32),Ee=0;Ee<32;++Ee)Re[Ee]=5;var et=Ke(Qe,9,0),Ge=null,ut=Ke(Re,5,0),at=null,ft=function(y){for(var z=y[0],E=1;E<y.length;++E)y[E]>z&&(z=y[E]);return z},bt=function(y,z,E){var re=z/8|0;return(y[re]|y[re+1]<<8)>>(z&7)&E},He=function(y,z){var E=z/8|0;return(y[E]|y[E+1]<<8|y[E+2]<<16)>>(z&7)},pt=function(y){return(y+7)/8|0},Ne=function(y,z,E){return(z==null||z<0)&&(z=0),(E==null||E>y.length)&&(E=y.length),new Je(y.subarray(z,E))},je={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},Ot=["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"],it=function(y,z,E){var re=new Error(z||Ot[y]);if(re.code=y,Error.captureStackTrace&&Error.captureStackTrace(re,it),!E)throw re;return re},ht=function(y,z,E,re){var Ae=y.length,he=re?re.length:0;if(!Ae||z.f&&!z.l)return E||new Je(0);var Ze=!E,Pe=Ze||z.i!=2,Ve=z.i;Ze&&(E=new Je(Ae*3));var Ye=function(xo){var ca=E.length;if(xo>ca){var ua=new Je(Math.max(ca*2,xo));ua.set(E),E=ua}},dt=z.f||0,Tt=z.p||0,Jt=z.b||0,At=z.l,In=z.d,xn=z.m,Nn=z.n,dn=Ae*8;do{if(!At){dt=bt(y,Tt,1);var yr=bt(y,Tt+1,3);if(Tt+=3,yr)if(yr==1)At=Ge,In=at,xn=9,Nn=5;else if(yr==2){var zi=bt(y,Tt,31)+257,Ii=bt(y,Tt+10,15)+4,Ir=zi+bt(y,Tt+5,31)+1;Tt+=14;for(var Gn=new Je(Ir),Gr=new Je(19),An=0;An<Ii;++An)Gr[Ce[An]]=bt(y,Tt+An*3,7);Tt+=Ii*3;for(var Pn=ft(Gr),pr=(1<<Pn)-1,cr=Ke(Gr,Pn,1),An=0;An<Ir;){var vi=cr[bt(y,Tt,pr)];Tt+=vi&15;var lr=vi>>4;if(lr<16)Gn[An++]=lr;else{var Fi=0,Oi=0;for(lr==16?(Oi=3+bt(y,Tt,3),Tt+=2,Fi=Gn[An-1]):lr==17?(Oi=3+bt(y,Tt,7),Tt+=3):lr==18&&(Oi=11+bt(y,Tt,127),Tt+=7);Oi--;)Gn[An++]=Fi}}var Ai=Gn.subarray(0,zi),_i=Gn.subarray(zi);xn=ft(Ai),Nn=ft(_i),At=Ke(Ai,xn,1),In=Ke(_i,Nn,1)}else it(1);else{var lr=pt(Tt)+4,Zn=y[lr-4]|y[lr-3]<<8,fi=lr+Zn;if(fi>Ae){Ve&&it(0);break}Pe&&Ye(Jt+Zn),E.set(y.subarray(lr,fi),Jt),z.b=Jt+=Zn,z.p=Tt=fi*8,z.f=dt;continue}if(Tt>dn){Ve&&it(0);break}}Pe&&Ye(Jt+131072);for(var Po=(1<<xn)-1,ro=(1<<Nn)-1,on=Tt;;on=Tt){var Fi=At[He(y,Tt)&Po],zn=Fi>>4;if(Tt+=Fi&15,Tt>dn){Ve&&it(0);break}if(Fi||it(2),zn<256)E[Jt++]=zn;else if(zn==256){on=Tt,At=null;break}else{var ir=zn-254;if(zn>264){var An=zn-257,br=Ue[An];ir=bt(y,Tt,(1<<br)-1)+ve[An],Tt+=br}var Tr=In[He(y,Tt)&ro],ei=Tr>>4;Tr||it(3),Tt+=Tr&15;var _i=Te[ei];if(ei>3){var br=fe[ei];_i+=He(y,Tt)&(1<<br)-1,Tt+=br}if(Tt>dn){Ve&&it(0);break}Pe&&Ye(Jt+131072);var Li=Jt+ir;if(Jt<_i){var Pi=he-_i,Xi=Math.min(_i,Li);for(Pi+Jt<0&&it(3);Jt<Xi;++Jt)E[Jt]=re[Pi+Jt]}for(;Jt<Li;++Jt)E[Jt]=E[Jt-_i]}}z.l=At,z.p=on,z.b=Jt,z.f=dt,At&&(dt=1,z.m=xn,z.d=In,z.n=Nn)}while(!dt);return Jt!=E.length&&Ze?Ne(E,0,Jt):E.subarray(0,Jt)},Bt=function(y,z,E){E<<=z&7;var re=z/8|0;y[re]|=E,y[re+1]|=E>>8},We=function(y,z,E){E<<=z&7;var re=z/8|0;y[re]|=E,y[re+1]|=E>>8,y[re+2]|=E>>16},_e=function(y,z){for(var E=[],re=0;re<y.length;++re)y[re]&&E.push({s:re,f:y[re]});var Ae=E.length,he=E.slice();if(!Ae)return{t:pn,l:0};if(Ae==1){var Ze=new Je(E[0].s+1);return Ze[E[0].s]=1,{t:Ze,l:1}}E.sort(function(fi,zi){return fi.f-zi.f}),E.push({s:-1,f:25001});var Pe=E[0],Ve=E[1],Ye=0,dt=1,Tt=2;for(E[0]={s:-1,f:Pe.f+Ve.f,l:Pe,r:Ve};dt!=Ae-1;)Pe=E[E[Ye].f<E[Tt].f?Ye++:Tt++],Ve=E[Ye!=dt&&E[Ye].f<E[Tt].f?Ye++:Tt++],E[dt++]={s:-1,f:Pe.f+Ve.f,l:Pe,r:Ve};for(var Jt=he[0].s,re=1;re<Ae;++re)he[re].s>Jt&&(Jt=he[re].s);var At=new ze(Jt+1),In=ot(E[dt-1],At,0);if(In>z){var re=0,xn=0,Nn=In-z,dn=1<<Nn;for(he.sort(function(zi,Ii){return At[Ii.s]-At[zi.s]||zi.f-Ii.f});re<Ae;++re){var yr=he[re].s;if(At[yr]>z)xn+=dn-(1<<In-At[yr]),At[yr]=z;else break}for(xn>>=Nn;xn>0;){var lr=he[re].s;At[lr]<z?xn-=1<<z-At[lr]++-1:++re}for(;re>=0&&xn;--re){var Zn=he[re].s;At[Zn]==z&&(--At[Zn],++xn)}In=z}return{t:new Je(At),l:In}},ot=function(y,z,E){return y.s==-1?Math.max(ot(y.l,z,E+1),ot(y.r,z,E+1)):z[y.s]=E},Zt=function(y){for(var z=y.length;z&&!y[--z];);for(var E=new ze(++z),re=0,Ae=y[0],he=1,Ze=function(Ve){E[re++]=Ve},Pe=1;Pe<=z;++Pe)if(y[Pe]==Ae&&Pe!=z)++he;else{if(!Ae&&he>2){for(;he>138;he-=138)Ze(32754);he>2&&(Ze(he>10?he-11<<5|28690:he-3<<5|12305),he=0)}else if(he>3){for(Ze(Ae),--he;he>6;he-=6)Ze(8304);he>2&&(Ze(he-3<<5|8208),he=0)}for(;he--;)Ze(Ae);he=1,Ae=y[Pe]}return{c:E.subarray(0,re),n:z}},zt=function(y,z){for(var E=0,re=0;re<z.length;++re)E+=y[re]*z[re];return E},tt=function(y,z,E){var re=E.length,Ae=pt(z+2);y[Ae]=re&255,y[Ae+1]=re>>8,y[Ae+2]=y[Ae]^255,y[Ae+3]=y[Ae+1]^255;for(var he=0;he<re;++he)y[Ae+he+4]=E[he];return(Ae+4+re)*8},Nt=function(y,z,E,re,Ae,he,Ze,Pe,Ve,Ye,dt){Bt(z,dt++,E),++Ae[256];for(var Tt=_e(Ae,15),Jt=Tt.t,At=Tt.l,In=_e(he,15),xn=In.t,Nn=In.l,dn=Zt(Jt),yr=dn.c,lr=dn.n,Zn=Zt(xn),fi=Zn.c,zi=Zn.n,Ii=new ze(19),Ir=0;Ir<yr.length;++Ir)++Ii[yr[Ir]&31];for(var Ir=0;Ir<fi.length;++Ir)++Ii[fi[Ir]&31];for(var Gn=_e(Ii,7),Gr=Gn.t,An=Gn.l,Pn=19;Pn>4&&!Gr[Ce[Pn-1]];--Pn);var pr=Ye+5<<3,cr=zt(Ae,Qe)+zt(he,Re)+Ze,vi=zt(Ae,Jt)+zt(he,xn)+Ze+14+3*Pn+zt(Ii,Gr)+2*Ii[16]+3*Ii[17]+7*Ii[18];if(Ve>=0&&pr<=cr&&pr<=vi)return tt(z,dt,y.subarray(Ve,Ve+Ye));var Fi,Oi,Ai,_i;if(Bt(z,dt,1+(vi<cr)),dt+=2,vi<cr){Fi=Ke(Jt,At,0),Oi=Jt,Ai=Ke(xn,Nn,0),_i=xn;var Po=Ke(Gr,An,0);Bt(z,dt,lr-257),Bt(z,dt+5,zi-1),Bt(z,dt+10,Pn-4),dt+=14;for(var Ir=0;Ir<Pn;++Ir)Bt(z,dt+3*Ir,Gr[Ce[Ir]]);dt+=3*Pn;for(var ro=[yr,fi],on=0;on<2;++on)for(var zn=ro[on],Ir=0;Ir<zn.length;++Ir){var ir=zn[Ir]&31;Bt(z,dt,Po[ir]),dt+=Gr[ir],ir>15&&(Bt(z,dt,zn[Ir]>>5&127),dt+=zn[Ir]>>12)}}else Fi=et,Oi=Qe,Ai=ut,_i=Re;for(var Ir=0;Ir<Pe;++Ir){var br=re[Ir];if(br>255){var ir=br>>18&31;We(z,dt,Fi[ir+257]),dt+=Oi[ir+257],ir>7&&(Bt(z,dt,br>>23&31),dt+=Ue[ir]);var Tr=br&31;We(z,dt,Ai[Tr]),dt+=_i[Tr],Tr>3&&(We(z,dt,br>>5&8191),dt+=fe[Tr])}else We(z,dt,Fi[br]),dt+=Oi[br]}return We(z,dt,Fi[256]),dt+Oi[256]},Ut=new Se([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),pn=new Je(0),kt=function(y,z,E,re,Ae,he){var Ze=he.z||y.length,Pe=new Je(re+Ze+5*(1+Math.ceil(Ze/7e3))+Ae),Ve=Pe.subarray(re,Pe.length-Ae),Ye=he.l,dt=(he.r||0)&7;if(z){dt&&(Ve[0]=he.r>>3);for(var Tt=Ut[z-1],Jt=Tt>>13,At=Tt&8191,In=(1<<E)-1,xn=he.p||new ze(32768),Nn=he.h||new ze(In+1),dn=Math.ceil(E/3),yr=2*dn,lr=function(Ga){return(y[Ga]^y[Ga+1]<<dn^y[Ga+2]<<yr)&In},Zn=new Se(25e3),fi=new ze(288),zi=new ze(32),Ii=0,Ir=0,Gn=he.i||0,Gr=0,An=he.w||0,Pn=0;Gn+2<Ze;++Gn){var pr=lr(Gn),cr=Gn&32767,vi=Nn[pr];if(xn[cr]=vi,Nn[pr]=cr,An<=Gn){var Fi=Ze-Gn;if((Ii>7e3||Gr>24576)&&(Fi>423||!Ye)){dt=Nt(y,Ve,0,Zn,fi,zi,Ir,Gr,Pn,Gn-Pn,dt),Gr=Ii=Ir=0,Pn=Gn;for(var Oi=0;Oi<286;++Oi)fi[Oi]=0;for(var Oi=0;Oi<30;++Oi)zi[Oi]=0}var Ai=2,_i=0,Po=At,ro=cr-vi&32767;if(Fi>2&&pr==lr(Gn-ro))for(var on=Math.min(Jt,Fi)-1,zn=Math.min(32767,Gn),ir=Math.min(258,Fi);ro<=zn&&--Po&&cr!=vi;){if(y[Gn+Ai]==y[Gn+Ai-ro]){for(var br=0;br<ir&&y[Gn+br]==y[Gn+br-ro];++br);if(br>Ai){if(Ai=br,_i=ro,br>on)break;for(var Tr=Math.min(ro,br-2),ei=0,Oi=0;Oi<Tr;++Oi){var Li=Gn-ro+Oi&32767,Pi=xn[Li],Xi=Li-Pi&32767;Xi>ei&&(ei=Xi,vi=Li)}}}cr=vi,vi=xn[cr],ro+=cr-vi&32767}if(_i){Zn[Gr++]=268435456|Me[Ai]<<18|ye[_i];var xo=Me[Ai]&31,ca=ye[_i]&31;Ir+=Ue[xo]+fe[ca],++fi[257+xo],++zi[ca],An=Gn+Ai,++Ii}else Zn[Gr++]=y[Gn],++fi[y[Gn]]}}for(Gn=Math.max(Gn,An);Gn<Ze;++Gn)Zn[Gr++]=y[Gn],++fi[y[Gn]];dt=Nt(y,Ve,Ye,Zn,fi,zi,Ir,Gr,Pn,Gn-Pn,dt),Ye||(he.r=dt&7|Ve[dt/8|0]<<3,dt-=7,he.h=Nn,he.p=xn,he.i=Gn,he.w=An)}else{for(var Gn=he.w||0;Gn<Ze+Ye;Gn+=65535){var ua=Gn+65535;ua>=Ze&&(Ve[dt/8|0]=Ye,ua=Ze),dt=tt(Ve,dt+1,y.subarray(Gn,ua))}he.i=Ze}return Ne(Pe,0,re+pt(dt)+Ae)},mn=null,_t=function(){var y=-1;return{p:function(z){for(var E=y,re=0;re<z.length;++re)E=mn[E&255^z[re]]^E>>>8;y=E},d:function(){return~y}}},Cn=function(){var y=1,z=0;return{p:function(E){for(var re=y,Ae=z,he=E.length|0,Ze=0;Ze!=he;){for(var Pe=Math.min(Ze+2655,he);Ze<Pe;++Ze)Ae+=re+=E[Ze];re=(re&65535)+15*(re>>16),Ae=(Ae&65535)+15*(Ae>>16)}y=re,z=Ae},d:function(){return y%=65521,z%=65521,(y&255)<<24|(y&65280)<<8|(z&255)<<8|z>>8}}},an=function(y,z,E,re,Ae){if(!Ae&&(Ae={l:1},z.dictionary)){var he=z.dictionary.subarray(-32768),Ze=new Je(he.length+y.length);Ze.set(he),Ze.set(y,he.length),y=Ze,Ae.w=he.length}return kt(y,z.level==null?6:z.level,z.mem==null?Ae.l?Math.ceil(Math.max(8,Math.min(13,Math.log(y.length)))*1.5):20:12+z.mem,E,re,Ae)},de=function(y,z){var E={};for(var re in y)E[re]=y[re];for(var re in z)E[re]=z[re];return E},pe=function(y,z,E){for(var re=y(),Ae=y.toString(),he=Ae.slice(Ae.indexOf("[")+1,Ae.lastIndexOf("]")).replace(/\s+/g,"").split(","),Ze=0;Ze<re.length;++Ze){var Pe=re[Ze],Ve=he[Ze];if(typeof Pe=="function"){z+=";"+Ve+"=";var Ye=Pe.toString();if(Pe.prototype)if(Ye.indexOf("[native code]")!=-1){var dt=Ye.indexOf(" ",8)+1;z+=Ye.slice(dt,Ye.indexOf("(",dt))}else{z+=Ye;for(var Tt in Pe.prototype)z+=";"+Ve+".prototype."+Tt+"="+Pe.prototype[Tt].toString()}else z+=Ye}else E[Ve]=Pe}return z},ie=null,ee=function(y){var z=[];for(var E in y)y[E].buffer&&z.push((y[E]=new y[E].constructor(y[E])).buffer);return z},se=function(y,z,E,re){if(!ie[E]){for(var Ae="",he={},Ze=y.length-1,Pe=0;Pe<Ze;++Pe)Ae=pe(y[Pe],Ae,he);ie[E]={c:pe(y[Ze],Ae,he),e:he}}var Ve=de({},ie[E].e);return Le(ie[E].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+z.toString()+"}",E,Ve,ee(Ve),re)},le=function(){return[Je,ze,Se,Ue,fe,Ce,ve,Te,Ge,at,xe,Ot,Ke,ft,bt,He,pt,Ne,it,ht,Ur,Et,Lt]},Be=function(){return[Je,ze,Se,Ue,fe,Ce,Me,ye,et,Qe,ut,Re,xe,Ut,pn,Ke,Bt,We,_e,ot,Zt,zt,tt,Nt,pt,Ne,kt,an,yn,Et]},$e=function(){return[tn,Rt,ln,_t,mn]},st=function(){return[Qn,En]},gt=function(){return[un,ln,Cn]},mt=function(){return[Dn]},Et=function(y){return postMessage(y,[y.buffer])},Lt=function(y){return y&&{out:y.size&&new Je(y.size),dictionary:y.dictionary}},jt=function(y,z,E,re,Ae,he){var Ze=se(E,re,Ae,function(Pe,Ve){Ze.terminate(),he(Pe,Ve)});return Ze.postMessage([y,z],z.consume?[y.buffer]:[]),function(){Ze.terminate()}},Ct=function(y){return y.ondata=function(z,E){return postMessage([z,E],[z.buffer])},function(z){z.data.length?(y.push(z.data[0],z.data[1]),postMessage([z.data[0].length])):y.flush()}},lt=function(y,z,E,re,Ae,he,Ze){var Pe,Ve=se(y,re,Ae,function(Ye,dt){Ye?(Ve.terminate(),z.ondata.call(z,Ye)):Array.isArray(dt)?dt.length==1?(z.queuedSize-=dt[0],z.ondrain&&z.ondrain(dt[0])):(dt[1]&&Ve.terminate(),z.ondata.call(z,Ye,dt[0],dt[1])):Ze(dt)});Ve.postMessage(E),z.queuedSize=0,z.push=function(Ye,dt){z.ondata||it(5),Pe&&z.ondata(it(4,0,1),null,!!dt),z.queuedSize+=Ye.length,Ve.postMessage([Ye,Pe=dt],[Ye.buffer])},z.terminate=function(){Ve.terminate()},he&&(z.flush=function(){Ve.postMessage([])})},$t=function(y,z){return y[z]|y[z+1]<<8},Wt=function(y,z){return(y[z]|y[z+1]<<8|y[z+2]<<16|y[z+3]<<24)>>>0},wn=function(y,z){return Wt(y,z)+Wt(y,z+4)*4294967296},ln=function(y,z,E){for(;E;++z)y[z]=E,E>>>=8},tn=function(y,z){var E=z.filename;if(y[0]=31,y[1]=139,y[2]=8,y[8]=z.level<2?4:z.level==9?2:0,y[9]=3,z.mtime!=0&&ln(y,4,Math.floor(new Date(z.mtime||Date.now())/1e3)),E){y[3]=8;for(var re=0;re<=E.length;++re)y[re+10]=E.charCodeAt(re)}},Qn=function(y){(y[0]!=31||y[1]!=139||y[2]!=8)&&it(6,"invalid gzip data");var z=y[3],E=10;z&4&&(E+=(y[10]|y[11]<<8)+2);for(var re=(z>>3&1)+(z>>4&1);re>0;re-=!y[E++]);return E+(z&2)},En=function(y){var z=y.length;return(y[z-4]|y[z-3]<<8|y[z-2]<<16|y[z-1]<<24)>>>0},Rt=function(y){return 10+(y.filename?y.filename.length+1:0)},un=function(y,z){var E=z.level,re=E==0?0:E<6?1:E==9?3:2;if(y[0]=120,y[1]=re<<6|(z.dictionary&&32),y[1]|=31-(y[0]<<8|y[1])%31,z.dictionary){var Ae=Cn();Ae.p(z.dictionary),ln(y,2,Ae.d())}},Dn=function(y,z){return((y[0]&15)!=8||y[0]>>4>7||(y[0]<<8|y[1])%31)&&it(6,"invalid zlib data"),(y[1]>>5&1)==+!z&&it(6,"invalid zlib data: "+(y[1]&32?"need":"unexpected")+" dictionary"),(y[1]>>3&4)+2};function Wn(y,z){return typeof y=="function"&&(z=y,y={}),this.ondata=z,y}var It=null,Gt=null;function sn(y,z,E){return E||(E=z,z={}),typeof E!="function"&&it(7),jt(y,z,[Be],function(re){return Et(yn(re.data[0],re.data[1]))},0,E)}function yn(y,z){return an(y,z||{},0,0)}var Yn=null,Br=null;function ti(y,z,E){return E||(E=z,z={}),typeof E!="function"&&it(7),jt(y,z,[le],function(re){return Et(Ur(re.data[0],Lt(re.data[1])))},1,E)}function Ur(y,z){return ht(y,{i:2},z&&z.out,z&&z.dictionary)}var Sr=null,Jn=null;function gr(y,z,E){return E||(E=z,z={}),typeof E!="function"&&it(7),jt(y,z,[Be,$e,function(){return[kr]}],function(re){return Et(kr(re.data[0],re.data[1]))},2,E)}function kr(y,z){z||(z={});var E=_t(),re=y.length;E.p(y);var Ae=an(y,z,Rt(z),8),he=Ae.length;return tn(Ae,z),ln(Ae,he-8,E.d()),ln(Ae,he-4,re),Ae}var Vr=null,pi=null;function Lr(y,z,E){return E||(E=z,z={}),typeof E!="function"&&it(7),jt(y,z,[le,st,function(){return[tr]}],function(re){return Et(tr(re.data[0],re.data[1]))},3,E)}function tr(y,z){var E=Qn(y);return E+8>y.length&&it(6,"invalid gzip data"),ht(y.subarray(E,-8),{i:2},z&&z.out||new Je(En(y)),z&&z.dictionary)}var Xn=null,mr=null;function Qr(y,z,E){return E||(E=z,z={}),typeof E!="function"&&it(7),jt(y,z,[Be,gt,function(){return[ii]}],function(re){return Et(ii(re.data[0],re.data[1]))},4,E)}function ii(y,z){z||(z={});var E=Cn();E.p(y);var re=an(y,z,z.dictionary?6:2,4);return un(re,z),ln(re,re.length-4,E.d()),re}var ai=null,oi=null;function li(y,z,E){return E||(E=z,z={}),typeof E!="function"&&it(7),jt(y,z,[le,mt,function(){return[ji]}],function(re){return Et(ji(re.data[0],Lt(re.data[1])))},5,E)}function ji(y,z){return ht(y.subarray(Dn(y,z&&z.dictionary),-4),{i:2},z&&z.out,z&&z.dictionary)}var ki=null,or=null;function Hr(y,z,E){return E||(E=z,z={}),typeof E!="function"&&it(7),y[0]==31&&y[1]==139&&y[2]==8?Lr(y,z,E):(y[0]&15)!=8||y[0]>>4>7||(y[0]<<8|y[1])%31?ti(y,z,E):li(y,z,E)}function Bi(y,z){return y[0]==31&&y[1]==139&&y[2]==8?tr(y,z):(y[0]&15)!=8||y[0]>>4>7||(y[0]<<8|y[1])%31?Ur(y,z):ji(y,z)}var Yt=function(y,z,E,re){for(var Ae in y){var he=y[Ae],Ze=z+Ae,Pe=re;Array.isArray(he)&&(Pe=de(re,he[1]),he=he[0]),he instanceof Je?E[Ze]=[he,Pe]:(E[Ze+="/"]=[new Je(0),Pe],Yt(he,Ze,E,re))}},rn=typeof TextEncoder!="undefined"&&new TextEncoder,fn=typeof TextDecoder!="undefined"&&new TextDecoder,Pt=0;try{fn.decode(pn,{stream:!0}),Pt=1}catch(y){}var en=function(y){for(var z="",E=0;;){var re=y[E++],Ae=(re>127)+(re>223)+(re>239);if(E+Ae>y.length)return{s:z,r:Ne(y,E-1)};Ae?Ae==3?(re=((re&15)<<18|(y[E++]&63)<<12|(y[E++]&63)<<6|y[E++]&63)-65536,z+=String.fromCharCode(55296|re>>10,56320|re&1023)):Ae&1?z+=String.fromCharCode((re&31)<<6|y[E++]&63):z+=String.fromCharCode((re&15)<<12|(y[E++]&63)<<6|y[E++]&63):z+=String.fromCharCode(re)}},Kt=null,gn=null;function On(y,z){if(z){for(var E=new Je(y.length),re=0;re<y.length;++re)E[re]=y.charCodeAt(re);return E}if(rn)return rn.encode(y);for(var Ae=y.length,he=new Je(y.length+(y.length>>1)),Ze=0,Pe=function(dt){he[Ze++]=dt},re=0;re<Ae;++re){if(Ze+5>he.length){var Ve=new Je(Ze+8+(Ae-re<<1));Ve.set(he),he=Ve}var Ye=y.charCodeAt(re);Ye<128||z?Pe(Ye):Ye<2048?(Pe(192|Ye>>6),Pe(128|Ye&63)):Ye>55295&&Ye<57344?(Ye=65536+(Ye&1047552)|y.charCodeAt(++re)&1023,Pe(240|Ye>>18),Pe(128|Ye>>12&63),Pe(128|Ye>>6&63),Pe(128|Ye&63)):(Pe(224|Ye>>12),Pe(128|Ye>>6&63),Pe(128|Ye&63))}return Ne(he,0,Ze)}function Nr(y,z){if(z){for(var E="",re=0;re<y.length;re+=16384)E+=String.fromCharCode.apply(null,y.subarray(re,re+16384));return E}else{if(fn)return fn.decode(y);var Ae=en(y),he=Ae.s,E=Ae.r;return E.length&&it(8),he}}var Yr=function(y){return y==1?3:y<6?2:y==9?1:0},hi=function(y,z){return z+30+$t(y,z+26)+$t(y,z+28)},rr=function(y,z,E){var re=$t(y,z+28),Ae=Nr(y.subarray(z+46,z+46+re),!($t(y,z+8)&2048)),he=z+46+re,Ze=Wt(y,z+20),Pe=E&&Ze==4294967295?ur(y,he):[Ze,Wt(y,z+24),Wt(y,z+42)],Ve=Pe[0],Ye=Pe[1],dt=Pe[2];return[$t(y,z+10),Ve,Ye,Ae,he+$t(y,z+30)+$t(y,z+32),dt]},ur=function(y,z){for(;$t(y,z)!=1;z+=4+$t(y,z+2));return[wn(y,z+12),wn(y,z+4),wn(y,z+20)]},sr=function(y){var z=0;if(y)for(var E in y){var re=y[E].length;re>65535&&it(9),z+=re+4}return z},ni=function(y,z,E,re,Ae,he,Ze,Pe){var Ve=re.length,Ye=E.extra,dt=Pe&&Pe.length,Tt=sr(Ye);ln(y,z,Ze!=null?33639248:67324752),z+=4,Ze!=null&&(y[z++]=20,y[z++]=E.os),y[z]=20,z+=2,y[z++]=E.flag<<1|(he<0&&8),y[z++]=Ae&&8,y[z++]=E.compression&255,y[z++]=E.compression>>8;var Jt=new Date(E.mtime==null?Date.now():E.mtime),At=Jt.getFullYear()-1980;if((At<0||At>119)&&it(10),ln(y,z,At<<25|Jt.getMonth()+1<<21|Jt.getDate()<<16|Jt.getHours()<<11|Jt.getMinutes()<<5|Jt.getSeconds()>>1),z+=4,he!=-1&&(ln(y,z,E.crc),ln(y,z+4,he<0?-he-2:he),ln(y,z+8,E.size)),ln(y,z+12,Ve),ln(y,z+14,Tt),z+=16,Ze!=null&&(ln(y,z,dt),ln(y,z+6,E.attrs),ln(y,z+10,Ze),z+=14),y.set(re,z),z+=Ve,Tt)for(var In in Ye){var xn=Ye[In],Nn=xn.length;ln(y,z,+In),ln(y,z+2,Nn),y.set(xn,z+4),z+=4+Nn}return dt&&(y.set(Pe,z),z+=dt),z},er=function(y,z,E,re,Ae){ln(y,z,101010256),ln(y,z+8,E),ln(y,z+10,E),ln(y,z+12,re),ln(y,z+16,Ae)},Rn=null,Ar=null,Ei=null,Kn=null;function vn(y,z,E){E||(E=z,z={}),typeof E!="function"&&it(7);var re={};Yt(y,"",re,z);var Ae=Object.keys(re),he=Ae.length,Ze=0,Pe=0,Ve=he,Ye=new Array(he),dt=[],Tt=function(){for(var Nn=0;Nn<dt.length;++Nn)dt[Nn]()},Jt=function(Nn,dn){gi(function(){E(Nn,dn)})};gi(function(){Jt=E});var At=function(){var Nn=new Je(Pe+22),dn=Ze,yr=Pe-Ze;Pe=0;for(var lr=0;lr<Ve;++lr){var Zn=Ye[lr];try{var fi=Zn.c.length;ni(Nn,Pe,Zn,Zn.f,Zn.u,fi);var zi=30+Zn.f.length+sr(Zn.extra),Ii=Pe+zi;Nn.set(Zn.c,Ii),ni(Nn,Ze,Zn,Zn.f,Zn.u,fi,Pe,Zn.m),Ze+=16+zi+(Zn.m?Zn.m.length:0),Pe=Ii+fi}catch(Ir){return Jt(Ir,null)}}er(Nn,Ze,Ye.length,yr,dn),Jt(null,Nn)};he||At();for(var In=function(Nn){var dn=Ae[Nn],yr=re[dn],lr=yr[0],Zn=yr[1],fi=_t(),zi=lr.length;fi.p(lr);var Ii=On(dn),Ir=Ii.length,Gn=Zn.comment,Gr=Gn&&On(Gn),An=Gr&&Gr.length,Pn=sr(Zn.extra),pr=Zn.level==0?0:8,cr=function(vi,Fi){if(vi)Tt(),Jt(vi,null);else{var Oi=Fi.length;Ye[Nn]=de(Zn,{size:zi,crc:fi.d(),c:Fi,f:Ii,m:Gr,u:Ir!=dn.length||Gr&&Gn.length!=An,compression:pr}),Ze+=30+Ir+Pn+Oi,Pe+=76+2*(Ir+Pn)+(An||0)+Oi,--he||At()}};if(Ir>65535&&cr(it(11,0,1),null),!pr)cr(null,lr);else if(zi<16e4)try{cr(null,yn(lr,Zn))}catch(vi){cr(vi,null)}else dt.push(sn(lr,Zn,cr))},xn=0;xn<Ve;++xn)In(xn);return Tt}function $n(y,z){z||(z={});var E={},re=[];Yt(y,"",E,z);var Ae=0,he=0;for(var Ze in E){var Pe=E[Ze],Ve=Pe[0],Ye=Pe[1],dt=Ye.level==0?0:8,Tt=On(Ze),Jt=Tt.length,At=Ye.comment,In=At&&On(At),xn=In&&In.length,Nn=sr(Ye.extra);Jt>65535&&it(11);var dn=dt?yn(Ve,Ye):Ve,yr=dn.length,lr=_t();lr.p(Ve),re.push(de(Ye,{size:Ve.length,crc:lr.d(),c:dn,f:Tt,m:In,u:Jt!=Ze.length||In&&At.length!=xn,o:Ae,compression:dt})),Ae+=30+Jt+Nn+yr,he+=76+2*(Jt+Nn)+(xn||0)+yr}for(var Zn=new Je(he+22),fi=Ae,zi=he-Ae,Ii=0;Ii<re.length;++Ii){var Tt=re[Ii];ni(Zn,Tt.o,Tt,Tt.f,Tt.u,Tt.c.length);var Ir=30+Tt.f.length+sr(Tt.extra);Zn.set(Tt.c,Tt.o+Ir),ni(Zn,Ae,Tt,Tt.f,Tt.u,Tt.c.length,Tt.o,Tt.m),Ae+=16+Ir+(Tt.m?Tt.m.length:0)}return er(Zn,Ae,re.length,zi,fi),Zn}var nr=null,fr=null,zr=null,Ni=null,gi=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(y){y()};function Di(y,z,E){E||(E=z,z={}),typeof E!="function"&&it(7);var re=[],Ae=function(){for(var Nn=0;Nn<re.length;++Nn)re[Nn]()},he={},Ze=function(Nn,dn){gi(function(){E(Nn,dn)})};gi(function(){Ze=E});for(var Pe=y.length-22;Wt(y,Pe)!=101010256;--Pe)if(!Pe||y.length-Pe>65558)return Ze(it(13,0,1),null),Ae;var Ve=$t(y,Pe+8);if(Ve){var Ye=Ve,dt=Wt(y,Pe+16),Tt=dt==4294967295||Ye==65535;if(Tt){var Jt=Wt(y,Pe-12);Tt=Wt(y,Jt)==101075792,Tt&&(Ye=Ve=Wt(y,Jt+32),dt=Wt(y,Jt+48))}for(var At=z&&z.filter,In=function(Nn){var dn=rr(y,dt,Tt),yr=dn[0],lr=dn[1],Zn=dn[2],fi=dn[3],zi=dn[4],Ii=dn[5],Ir=hi(y,Ii);dt=zi;var Gn=function(An,Pn){An?(Ae(),Ze(An,null)):(Pn&&(he[fi]=Pn),--Ve||Ze(null,he))};if(!At||At({name:fi,size:lr,originalSize:Zn,compression:yr}))if(!yr)Gn(null,Ne(y,Ir,Ir+lr));else if(yr==8){var Gr=y.subarray(Ir,Ir+lr);if(Zn<524288||lr>.8*Zn)try{Gn(null,Ur(Gr,{out:new Je(Zn)}))}catch(An){Gn(An,null)}else re.push(ti(Gr,{size:Zn},Gn))}else Gn(it(14,"unknown compression type "+yr,1),null);else Gn(null,null)},xn=0;xn<Ye;++xn)In(xn)}else Ze(null,{});return Ae}function mi(y,z){for(var E={},re=y.length-22;Wt(y,re)!=101010256;--re)(!re||y.length-re>65558)&&it(13);var Ae=$t(y,re+8);if(!Ae)return{};var he=Wt(y,re+16),Ze=he==4294967295||Ae==65535;if(Ze){var Pe=Wt(y,re-12);Ze=Wt(y,Pe)==101075792,Ze&&(Ae=Wt(y,Pe+32),he=Wt(y,Pe+48))}for(var Ve=z&&z.filter,Ye=0;Ye<Ae;++Ye){var dt=rr(y,he,Ze),Tt=dt[0],Jt=dt[1],At=dt[2],In=dt[3],xn=dt[4],Nn=dt[5],dn=hi(y,Nn);he=xn,(!Ve||Ve({name:In,size:Jt,originalSize:At,compression:Tt}))&&(Tt?Tt==8?E[In]=Ur(y.subarray(dn,dn+Jt),{out:new Je(At)}):it(14,"unknown compression type "+Tt):E[In]=Ne(y,dn,dn+Jt))}return E}var Si=ae(42978);function wi(y,z="utf8"){return new TextDecoder(z).decode(y)}const Ci=new TextEncoder;function yi(y){return Ci.encode(y)}const Mi=1024*8,eo=(()=>{const y=new Uint8Array(4),z=new Uint32Array(y.buffer);return!((z[0]=1)&y[0])})(),mo={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class Yi{constructor(z=Mi,E={}){Pl(this,"buffer");Pl(this,"byteLength");Pl(this,"byteOffset");Pl(this,"length");Pl(this,"offset");Pl(this,"lastWrittenByte");Pl(this,"littleEndian");Pl(this,"_data");Pl(this,"_mark");Pl(this,"_marks");let re=!1;typeof z=="number"?z=new ArrayBuffer(z):(re=!0,this.lastWrittenByte=z.byteLength);const Ae=E.offset?E.offset>>>0:0,he=z.byteLength-Ae;let Ze=Ae;(ArrayBuffer.isView(z)||z instanceof Yi)&&(z.byteLength!==z.buffer.byteLength&&(Ze=z.byteOffset+Ae),z=z.buffer),re?this.lastWrittenByte=he:this.lastWrittenByte=0,this.buffer=z,this.length=he,this.byteLength=he,this.byteOffset=Ze,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,Ze,he),this._mark=0,this._marks=[]}available(z=1){return this.offset+z<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(z=1){return this.offset+=z,this}back(z=1){return this.offset-=z,this}seek(z){return this.offset=z,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const z=this._marks.pop();if(z===void 0)throw new Error("Mark stack empty");return this.seek(z),this}rewind(){return this.offset=0,this}ensureAvailable(z=1){if(!this.available(z)){const re=(this.offset+z)*2,Ae=new Uint8Array(re);Ae.set(new Uint8Array(this.buffer)),this.buffer=Ae.buffer,this.length=re,this.byteLength=re,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(z=1){return this.readArray(z,"uint8")}readArray(z,E){const re=mo[E].BYTES_PER_ELEMENT*z,Ae=this.byteOffset+this.offset,he=this.buffer.slice(Ae,Ae+re);if(this.littleEndian===eo&&E!=="uint8"&&E!=="int8"){const Pe=new Uint8Array(this.buffer.slice(Ae,Ae+re));Pe.reverse();const Ve=new mo[E](Pe.buffer);return this.offset+=re,Ve.reverse(),Ve}const Ze=new mo[E](he);return this.offset+=re,Ze}readInt16(){const z=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,z}readUint16(){const z=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,z}readInt32(){const z=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,z}readUint32(){const z=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,z}readFloat32(){const z=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,z}readFloat64(){const z=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,z}readBigInt64(){const z=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,z}readBigUint64(){const z=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,z}readChar(){return String.fromCharCode(this.readInt8())}readChars(z=1){let E="";for(let re=0;re<z;re++)E+=this.readChar();return E}readUtf8(z=1){return wi(this.readBytes(z))}decodeText(z=1,E="utf8"){return wi(this.readBytes(z),E)}writeBoolean(z){return this.writeUint8(z?255:0),this}writeInt8(z){return this.ensureAvailable(1),this._data.setInt8(this.offset++,z),this._updateLastWrittenByte(),this}writeUint8(z){return this.ensureAvailable(1),this._data.setUint8(this.offset++,z),this._updateLastWrittenByte(),this}writeByte(z){return this.writeUint8(z)}writeBytes(z){this.ensureAvailable(z.length);for(let E=0;E<z.length;E++)this._data.setUint8(this.offset++,z[E]);return this._updateLastWrittenByte(),this}writeInt16(z){return this.ensureAvailable(2),this._data.setInt16(this.offset,z,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(z){return this.ensureAvailable(2),this._data.setUint16(this.offset,z,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(z){return this.ensureAvailable(4),this._data.setInt32(this.offset,z,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(z){return this.ensureAvailable(4),this._data.setUint32(this.offset,z,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(z){return this.ensureAvailable(4),this._data.setFloat32(this.offset,z,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(z){return this.ensureAvailable(8),this._data.setFloat64(this.offset,z,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(z){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,z,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(z){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,z,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(z){return this.writeUint8(z.charCodeAt(0))}writeChars(z){for(let E=0;E<z.length;E++)this.writeUint8(z.charCodeAt(E));return this}writeUtf8(z){return this.writeBytes(yi(z))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}const Io=4,Ri=0,ko=1,uo=2;function Vo(y){let z=y.length;for(;--z>=0;)y[z]=0}const wo=0,to=1,bo=2,Go=3,Tn=258,Lo=29,Vi=256,Mr=Vi+1+Lo,Jr=30,ri=19,Wr=2*Mr+1,Qi=15,no=16,Kr=7,ui=256,vr=16,qr=17,Ao=18,Yo=new Uint8Array([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]),Do=new Uint8Array([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]),ga=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),No=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Jo=512,Ro=new Array((Mr+2)*2);Vo(Ro);const oa=new Array(Jr*2);Vo(oa);const fa=new Array(Jo);Vo(fa);const Wa=new Array(Tn-Go+1);Vo(Wa);const Ds=new Array(Lo);Vo(Ds);const js=new Array(Jr);Vo(js);function as(y,z,E,re,Ae){this.static_tree=y,this.extra_bits=z,this.extra_base=E,this.elems=re,this.max_length=Ae,this.has_stree=y&&y.length}let ds,Mo,go;function Fa(y,z){this.dyn_tree=y,this.max_code=0,this.stat_desc=z}const gs=y=>y<256?fa[y]:fa[256+(y>>>7)],el=(y,z)=>{y.pending_buf[y.pending++]=z&255,y.pending_buf[y.pending++]=z>>>8&255},tl=(y,z,E)=>{y.bi_valid>no-E?(y.bi_buf|=z<<y.bi_valid&65535,el(y,y.bi_buf),y.bi_buf=z>>no-y.bi_valid,y.bi_valid+=E-no):(y.bi_buf|=z<<y.bi_valid&65535,y.bi_valid+=E)},nl=(y,z,E)=>{tl(y,E[z*2],E[z*2+1])},gl=(y,z)=>{let E=0;do E|=y&1,y>>>=1,E<<=1;while(--z>0);return E>>>1},Au=y=>{y.bi_valid===16?(el(y,y.bi_buf),y.bi_buf=0,y.bi_valid=0):y.bi_valid>=8&&(y.pending_buf[y.pending++]=y.bi_buf&255,y.bi_buf>>=8,y.bi_valid-=8)},Xs=(y,z)=>{const E=z.dyn_tree,re=z.max_code,Ae=z.stat_desc.static_tree,he=z.stat_desc.has_stree,Ze=z.stat_desc.extra_bits,Pe=z.stat_desc.extra_base,Ve=z.stat_desc.max_length;let Ye,dt,Tt,Jt,At,In,xn=0;for(Jt=0;Jt<=Qi;Jt++)y.bl_count[Jt]=0;for(E[y.heap[y.heap_max]*2+1]=0,Ye=y.heap_max+1;Ye<Wr;Ye++)dt=y.heap[Ye],Jt=E[E[dt*2+1]*2+1]+1,Jt>Ve&&(Jt=Ve,xn++),E[dt*2+1]=Jt,!(dt>re)&&(y.bl_count[Jt]++,At=0,dt>=Pe&&(At=Ze[dt-Pe]),In=E[dt*2],y.opt_len+=In*(Jt+At),he&&(y.static_len+=In*(Ae[dt*2+1]+At)));if(xn!==0){do{for(Jt=Ve-1;y.bl_count[Jt]===0;)Jt--;y.bl_count[Jt]--,y.bl_count[Jt+1]+=2,y.bl_count[Ve]--,xn-=2}while(xn>0);for(Jt=Ve;Jt!==0;Jt--)for(dt=y.bl_count[Jt];dt!==0;)Tt=y.heap[--Ye],!(Tt>re)&&(E[Tt*2+1]!==Jt&&(y.opt_len+=(Jt-E[Tt*2+1])*E[Tt*2],E[Tt*2+1]=Jt),dt--)}},Zl=(y,z,E)=>{const re=new Array(Qi+1);let Ae=0,he,Ze;for(he=1;he<=Qi;he++)Ae=Ae+E[he-1]<<1,re[he]=Ae;for(Ze=0;Ze<=z;Ze++){let Pe=y[Ze*2+1];Pe!==0&&(y[Ze*2]=gl(re[Pe]++,Pe))}},Wl=()=>{let y,z,E,re,Ae;const he=new Array(Qi+1);for(E=0,re=0;re<Lo-1;re++)for(Ds[re]=E,y=0;y<1<<Yo[re];y++)Wa[E++]=re;for(Wa[E-1]=re,Ae=0,re=0;re<16;re++)for(js[re]=Ae,y=0;y<1<<Do[re];y++)fa[Ae++]=re;for(Ae>>=7;re<Jr;re++)for(js[re]=Ae<<7,y=0;y<1<<Do[re]-7;y++)fa[256+Ae++]=re;for(z=0;z<=Qi;z++)he[z]=0;for(y=0;y<=143;)Ro[y*2+1]=8,y++,he[8]++;for(;y<=255;)Ro[y*2+1]=9,y++,he[9]++;for(;y<=279;)Ro[y*2+1]=7,y++,he[7]++;for(;y<=287;)Ro[y*2+1]=8,y++,he[8]++;for(Zl(Ro,Mr+1,he),y=0;y<Jr;y++)oa[y*2+1]=5,oa[y*2]=gl(y,5);ds=new as(Ro,Yo,Vi+1,Mr,Qi),Mo=new as(oa,Do,0,Jr,Qi),go=new as(new Array(0),ga,0,ri,Kr)},Iu=y=>{let z;for(z=0;z<Mr;z++)y.dyn_ltree[z*2]=0;for(z=0;z<Jr;z++)y.dyn_dtree[z*2]=0;for(z=0;z<ri;z++)y.bl_tree[z*2]=0;y.dyn_ltree[ui*2]=1,y.opt_len=y.static_len=0,y.sym_next=y.matches=0},fl=y=>{y.bi_valid>8?el(y,y.bi_buf):y.bi_valid>0&&(y.pending_buf[y.pending++]=y.bi_buf),y.bi_buf=0,y.bi_valid=0},SA=(y,z,E,re)=>{const Ae=z*2,he=E*2;return y[Ae]<y[he]||y[Ae]===y[he]&&re[z]<=re[E]},hA=(y,z,E)=>{const re=y.heap[E];let Ae=E<<1;for(;Ae<=y.heap_len&&(Ae<y.heap_len&&SA(z,y.heap[Ae+1],y.heap[Ae],y.depth)&&Ae++,!SA(z,re,y.heap[Ae],y.depth));)y.heap[E]=y.heap[Ae],E=Ae,Ae<<=1;y.heap[E]=re},pa=(y,z,E)=>{let re,Ae,he=0,Ze,Pe;if(y.sym_next!==0)do re=y.pending_buf[y.sym_buf+he++]&255,re+=(y.pending_buf[y.sym_buf+he++]&255)<<8,Ae=y.pending_buf[y.sym_buf+he++],re===0?nl(y,Ae,z):(Ze=Wa[Ae],nl(y,Ze+Vi+1,z),Pe=Yo[Ze],Pe!==0&&(Ae-=Ds[Ze],tl(y,Ae,Pe)),re--,Ze=gs(re),nl(y,Ze,E),Pe=Do[Ze],Pe!==0&&(re-=js[Ze],tl(y,re,Pe)));while(he<y.sym_next);nl(y,ui,z)},Ia=(y,z)=>{const E=z.dyn_tree,re=z.stat_desc.static_tree,Ae=z.stat_desc.has_stree,he=z.stat_desc.elems;let Ze,Pe,Ve=-1,Ye;for(y.heap_len=0,y.heap_max=Wr,Ze=0;Ze<he;Ze++)E[Ze*2]!==0?(y.heap[++y.heap_len]=Ve=Ze,y.depth[Ze]=0):E[Ze*2+1]=0;for(;y.heap_len<2;)Ye=y.heap[++y.heap_len]=Ve<2?++Ve:0,E[Ye*2]=1,y.depth[Ye]=0,y.opt_len--,Ae&&(y.static_len-=re[Ye*2+1]);for(z.max_code=Ve,Ze=y.heap_len>>1;Ze>=1;Ze--)hA(y,E,Ze);Ye=he;do Ze=y.heap[1],y.heap[1]=y.heap[y.heap_len--],hA(y,E,1),Pe=y.heap[1],y.heap[--y.heap_max]=Ze,y.heap[--y.heap_max]=Pe,E[Ye*2]=E[Ze*2]+E[Pe*2],y.depth[Ye]=(y.depth[Ze]>=y.depth[Pe]?y.depth[Ze]:y.depth[Pe])+1,E[Ze*2+1]=E[Pe*2+1]=Ye,y.heap[1]=Ye++,hA(y,E,1);while(y.heap_len>=2);y.heap[--y.heap_max]=y.heap[1],Xs(y,z),Zl(E,Ve,y.bl_count)},ma=(y,z,E)=>{let re,Ae=-1,he,Ze=z[0*2+1],Pe=0,Ve=7,Ye=4;for(Ze===0&&(Ve=138,Ye=3),z[(E+1)*2+1]=65535,re=0;re<=E;re++)he=Ze,Ze=z[(re+1)*2+1],!(++Pe<Ve&&he===Ze)&&(Pe<Ye?y.bl_tree[he*2]+=Pe:he!==0?(he!==Ae&&y.bl_tree[he*2]++,y.bl_tree[vr*2]++):Pe<=10?y.bl_tree[qr*2]++:y.bl_tree[Ao*2]++,Pe=0,Ae=he,Ze===0?(Ve=138,Ye=3):he===Ze?(Ve=6,Ye=3):(Ve=7,Ye=4))},ba=(y,z,E)=>{let re,Ae=-1,he,Ze=z[0*2+1],Pe=0,Ve=7,Ye=4;for(Ze===0&&(Ve=138,Ye=3),re=0;re<=E;re++)if(he=Ze,Ze=z[(re+1)*2+1],!(++Pe<Ve&&he===Ze)){if(Pe<Ye)do nl(y,he,y.bl_tree);while(--Pe!==0);else he!==0?(he!==Ae&&(nl(y,he,y.bl_tree),Pe--),nl(y,vr,y.bl_tree),tl(y,Pe-3,2)):Pe<=10?(nl(y,qr,y.bl_tree),tl(y,Pe-3,3)):(nl(y,Ao,y.bl_tree),tl(y,Pe-11,7));Pe=0,Ae=he,Ze===0?(Ve=138,Ye=3):he===Ze?(Ve=6,Ye=3):(Ve=7,Ye=4)}},qa=y=>{let z;for(ma(y,y.dyn_ltree,y.l_desc.max_code),ma(y,y.dyn_dtree,y.d_desc.max_code),Ia(y,y.bl_desc),z=ri-1;z>=3&&y.bl_tree[No[z]*2+1]===0;z--);return y.opt_len+=3*(z+1)+5+5+4,z},Va=(y,z,E,re)=>{let Ae;for(tl(y,z-257,5),tl(y,E-1,5),tl(y,re-4,4),Ae=0;Ae<re;Ae++)tl(y,y.bl_tree[No[Ae]*2+1],3);ba(y,y.dyn_ltree,z-1),ba(y,y.dyn_dtree,E-1)},za=y=>{let z=4093624447,E;for(E=0;E<=31;E++,z>>>=1)if(z&1&&y.dyn_ltree[E*2]!==0)return Ri;if(y.dyn_ltree[9*2]!==0||y.dyn_ltree[10*2]!==0||y.dyn_ltree[13*2]!==0)return ko;for(E=32;E<Vi;E++)if(y.dyn_ltree[E*2]!==0)return ko;return Ri};let $l=!1;const cu=y=>{$l||(Wl(),$l=!0),y.l_desc=new Fa(y.dyn_ltree,ds),y.d_desc=new Fa(y.dyn_dtree,Mo),y.bl_desc=new Fa(y.bl_tree,go),y.bi_buf=0,y.bi_valid=0,Iu(y)},Ui=(y,z,E,re)=>{tl(y,(wo<<1)+(re?1:0),3),fl(y),el(y,E),el(y,~E),E&&y.pending_buf.set(y.window.subarray(z,z+E),y.pending),y.pending+=E},ta=y=>{tl(y,to<<1,3),nl(y,ui,Ro),Au(y)},Ta=(y,z,E,re)=>{let Ae,he,Ze=0;y.level>0?(y.strm.data_type===uo&&(y.strm.data_type=za(y)),Ia(y,y.l_desc),Ia(y,y.d_desc),Ze=qa(y),Ae=y.opt_len+3+7>>>3,he=y.static_len+3+7>>>3,he<=Ae&&(Ae=he)):Ae=he=E+5,E+4<=Ae&&z!==-1?Ui(y,z,E,re):y.strategy===Io||he===Ae?(tl(y,(to<<1)+(re?1:0),3),pa(y,Ro,oa)):(tl(y,(bo<<1)+(re?1:0),3),Va(y,y.l_desc.max_code+1,y.d_desc.max_code+1,Ze+1),pa(y,y.dyn_ltree,y.dyn_dtree)),Iu(y),re&&fl(y)},au=(y,z,E)=>(y.pending_buf[y.sym_buf+y.sym_next++]=z,y.pending_buf[y.sym_buf+y.sym_next++]=z>>8,y.pending_buf[y.sym_buf+y.sym_next++]=E,z===0?y.dyn_ltree[E*2]++:(y.matches++,z--,y.dyn_ltree[(Wa[E]+Vi+1)*2]++,y.dyn_dtree[gs(z)*2]++),y.sym_next===y.sym_end);var Ml=cu,ms=Ui,bu=Ta,ml=au,Kc=ta,FA={_tr_init:Ml,_tr_stored_block:ms,_tr_flush_block:bu,_tr_tally:ml,_tr_align:Kc},aa=(y,z,E,re)=>{let Ae=y&65535|0,he=y>>>16&65535|0,Ze=0;for(;E!==0;){Ze=E>2e3?2e3:E,E-=Ze;do Ae=Ae+z[re++]|0,he=he+Ae|0;while(--Ze);Ae%=65521,he%=65521}return Ae|he<<16|0};const $u=()=>{let y,z=[];for(var E=0;E<256;E++){y=E;for(var re=0;re<8;re++)y=y&1?3988292384^y>>>1:y>>>1;z[E]=y}return z},dc=new Uint32Array($u());var Ns=(y,z,E,re)=>{const Ae=dc,he=re+E;y^=-1;for(let Ze=re;Ze<he;Ze++)y=y>>>8^Ae[(y^z[Ze])&255];return y^-1},tA={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"},pA={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_MEM_ERROR:-4,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};const{_tr_init:PA,_tr_stored_block:xl,_tr_flush_block:Bl,_tr_tally:rl,_tr_align:Gl}=FA,{Z_NO_FLUSH:Vl,Z_PARTIAL_FLUSH:Nc,Z_FULL_FLUSH:td,Z_FINISH:Ul,Z_BLOCK:Mu,Z_OK:Pa,Z_STREAM_END:Ra,Z_STREAM_ERROR:Ms,Z_DATA_ERROR:nA,Z_BUF_ERROR:Xl,Z_DEFAULT_COMPRESSION:du,Z_FILTERED:ZA,Z_HUFFMAN_ONLY:gA,Z_RLE:fc,Z_FIXED:Yl,Z_DEFAULT_STRATEGY:mA,Z_UNKNOWN:tc,Z_DEFLATED:nc}=pA,Ed=9,Jf=15,nd=8,Lu=256+1+29,Pc=30,rc=19,Sd=2*Lu+1,qf=15,Os=3,Gu=258,pc=Gu+Os+1,_h=32,WA=42,Th=57,Fd=69,eh=73,bf=91,Cf=103,$A=113,ya=666,Rl=1,_A=2,rd=3,_c=4,Kp=3,Tc=(y,z)=>(y.msg=tA[z],z),th=y=>y*2-(y>4?9:0),TA=y=>{let z=y.length;for(;--z>=0;)y[z]=0},id=y=>{let z,E,re,Ae=y.w_size;z=y.hash_size,re=z;do E=y.head[--re],y.head[re]=E>=Ae?E-Ae:0;while(--z);z=Ae,re=z;do E=y.prev[--re],y.prev[re]=E>=Ae?E-Ae:0;while(--z)};let gc=(y,z,E)=>(z<<y.hash_shift^E)&y.hash_mask;const IA=y=>{const z=y.state;let E=z.pending;E>y.avail_out&&(E=y.avail_out),E!==0&&(y.output.set(z.pending_buf.subarray(z.pending_out,z.pending_out+E),y.next_out),y.next_out+=E,z.pending_out+=E,y.total_out+=E,y.avail_out-=E,z.pending-=E,z.pending===0&&(z.pending_out=0))},rA=(y,z)=>{Bl(y,y.block_start>=0?y.block_start:-1,y.strstart-y.block_start,z),y.block_start=y.strstart,IA(y.strm)},Hs=(y,z)=>{y.pending_buf[y.pending++]=z},mc=(y,z)=>{y.pending_buf[y.pending++]=z>>>8&255,y.pending_buf[y.pending++]=z&255},od=(y,z,E,re)=>{let Ae=y.avail_in;return Ae>re&&(Ae=re),Ae===0?0:(y.avail_in-=Ae,z.set(y.input.subarray(y.next_in,y.next_in+Ae),E),y.state.wrap===1?y.adler=aa(y.adler,z,Ae,E):y.state.wrap===2&&(y.adler=Ns(y.adler,z,Ae,E)),y.next_in+=Ae,y.total_in+=Ae,Ae)},ad=(y,z)=>{let E=y.max_chain_length,re=y.strstart,Ae,he,Ze=y.prev_length,Pe=y.nice_match;const Ve=y.strstart>y.w_size-pc?y.strstart-(y.w_size-pc):0,Ye=y.window,dt=y.w_mask,Tt=y.prev,Jt=y.strstart+Gu;let At=Ye[re+Ze-1],In=Ye[re+Ze];y.prev_length>=y.good_match&&(E>>=2),Pe>y.lookahead&&(Pe=y.lookahead);do if(Ae=z,!(Ye[Ae+Ze]!==In||Ye[Ae+Ze-1]!==At||Ye[Ae]!==Ye[re]||Ye[++Ae]!==Ye[re+1])){re+=2,Ae++;do;while(Ye[++re]===Ye[++Ae]&&Ye[++re]===Ye[++Ae]&&Ye[++re]===Ye[++Ae]&&Ye[++re]===Ye[++Ae]&&Ye[++re]===Ye[++Ae]&&Ye[++re]===Ye[++Ae]&&Ye[++re]===Ye[++Ae]&&Ye[++re]===Ye[++Ae]&&re<Jt);if(he=Gu-(Jt-re),re=Jt-Gu,he>Ze){if(y.match_start=z,Ze=he,he>=Pe)break;At=Ye[re+Ze-1],In=Ye[re+Ze]}}while((z=Tt[z&dt])>Ve&&--E!==0);return Ze<=y.lookahead?Ze:y.lookahead},vc=y=>{const z=y.w_size;let E,re,Ae;do{if(re=y.window_size-y.lookahead-y.strstart,y.strstart>=z+(z-pc)&&(y.window.set(y.window.subarray(z,z+z-re),0),y.match_start-=z,y.strstart-=z,y.block_start-=z,y.insert>y.strstart&&(y.insert=y.strstart),id(y),re+=z),y.strm.avail_in===0)break;if(E=od(y.strm,y.window,y.strstart+y.lookahead,re),y.lookahead+=E,y.lookahead+y.insert>=Os)for(Ae=y.strstart-y.insert,y.ins_h=y.window[Ae],y.ins_h=gc(y,y.ins_h,y.window[Ae+1]);y.insert&&(y.ins_h=gc(y,y.ins_h,y.window[Ae+Os-1]),y.prev[Ae&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=Ae,Ae++,y.insert--,!(y.lookahead+y.insert<Os)););}while(y.lookahead<pc&&y.strm.avail_in!==0)},kc=(y,z)=>{let E=y.pending_buf_size-5>y.w_size?y.w_size:y.pending_buf_size-5,re,Ae,he,Ze=0,Pe=y.strm.avail_in;do{if(re=65535,he=y.bi_valid+42>>3,y.strm.avail_out<he||(he=y.strm.avail_out-he,Ae=y.strstart-y.block_start,re>Ae+y.strm.avail_in&&(re=Ae+y.strm.avail_in),re>he&&(re=he),re<E&&(re===0&&z!==Ul||z===Vl||re!==Ae+y.strm.avail_in)))break;Ze=z===Ul&&re===Ae+y.strm.avail_in?1:0,xl(y,0,0,Ze),y.pending_buf[y.pending-4]=re,y.pending_buf[y.pending-3]=re>>8,y.pending_buf[y.pending-2]=~re,y.pending_buf[y.pending-1]=~re>>8,IA(y.strm),Ae&&(Ae>re&&(Ae=re),y.strm.output.set(y.window.subarray(y.block_start,y.block_start+Ae),y.strm.next_out),y.strm.next_out+=Ae,y.strm.avail_out-=Ae,y.strm.total_out+=Ae,y.block_start+=Ae,re-=Ae),re&&(od(y.strm,y.strm.output,y.strm.next_out,re),y.strm.next_out+=re,y.strm.avail_out-=re,y.strm.total_out+=re)}while(Ze===0);return Pe-=y.strm.avail_in,Pe&&(Pe>=y.w_size?(y.matches=2,y.window.set(y.strm.input.subarray(y.strm.next_in-y.w_size,y.strm.next_in),0),y.strstart=y.w_size,y.insert=y.strstart):(y.window_size-y.strstart<=Pe&&(y.strstart-=y.w_size,y.window.set(y.window.subarray(y.w_size,y.w_size+y.strstart),0),y.matches<2&&y.matches++,y.insert>y.strstart&&(y.insert=y.strstart)),y.window.set(y.strm.input.subarray(y.strm.next_in-Pe,y.strm.next_in),y.strstart),y.strstart+=Pe,y.insert+=Pe>y.w_size-y.insert?y.w_size-y.insert:Pe),y.block_start=y.strstart),y.high_water<y.strstart&&(y.high_water=y.strstart),Ze?_c:z!==Vl&&z!==Ul&&y.strm.avail_in===0&&y.strstart===y.block_start?_A:(he=y.window_size-y.strstart,y.strm.avail_in>he&&y.block_start>=y.w_size&&(y.block_start-=y.w_size,y.strstart-=y.w_size,y.window.set(y.window.subarray(y.w_size,y.w_size+y.strstart),0),y.matches<2&&y.matches++,he+=y.w_size,y.insert>y.strstart&&(y.insert=y.strstart)),he>y.strm.avail_in&&(he=y.strm.avail_in),he&&(od(y.strm,y.window,y.strstart,he),y.strstart+=he,y.insert+=he>y.w_size-y.insert?y.w_size-y.insert:he),y.high_water<y.strstart&&(y.high_water=y.strstart),he=y.bi_valid+42>>3,he=y.pending_buf_size-he>65535?65535:y.pending_buf_size-he,E=he>y.w_size?y.w_size:he,Ae=y.strstart-y.block_start,(Ae>=E||(Ae||z===Ul)&&z!==Vl&&y.strm.avail_in===0&&Ae<=he)&&(re=Ae>he?he:Ae,Ze=z===Ul&&y.strm.avail_in===0&&re===Ae?1:0,xl(y,y.block_start,re,Ze),y.block_start+=re,IA(y.strm)),Ze?rd:Rl)},xf=(y,z)=>{let E,re;for(;;){if(y.lookahead<pc){if(vc(y),y.lookahead<pc&&z===Vl)return Rl;if(y.lookahead===0)break}if(E=0,y.lookahead>=Os&&(y.ins_h=gc(y,y.ins_h,y.window[y.strstart+Os-1]),E=y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart),E!==0&&y.strstart-E<=y.w_size-pc&&(y.match_length=ad(y,E)),y.match_length>=Os)if(re=rl(y,y.strstart-y.match_start,y.match_length-Os),y.lookahead-=y.match_length,y.match_length<=y.max_lazy_match&&y.lookahead>=Os){y.match_length--;do y.strstart++,y.ins_h=gc(y,y.ins_h,y.window[y.strstart+Os-1]),E=y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart;while(--y.match_length!==0);y.strstart++}else y.strstart+=y.match_length,y.match_length=0,y.ins_h=y.window[y.strstart],y.ins_h=gc(y,y.ins_h,y.window[y.strstart+1]);else re=rl(y,0,y.window[y.strstart]),y.lookahead--,y.strstart++;if(re&&(rA(y,!1),y.strm.avail_out===0))return Rl}return y.insert=y.strstart<Os-1?y.strstart:Os-1,z===Ul?(rA(y,!0),y.strm.avail_out===0?rd:_c):y.sym_next&&(rA(y,!1),y.strm.avail_out===0)?Rl:_A},Id=(y,z)=>{let E,re,Ae;for(;;){if(y.lookahead<pc){if(vc(y),y.lookahead<pc&&z===Vl)return Rl;if(y.lookahead===0)break}if(E=0,y.lookahead>=Os&&(y.ins_h=gc(y,y.ins_h,y.window[y.strstart+Os-1]),E=y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart),y.prev_length=y.match_length,y.prev_match=y.match_start,y.match_length=Os-1,E!==0&&y.prev_length<y.max_lazy_match&&y.strstart-E<=y.w_size-pc&&(y.match_length=ad(y,E),y.match_length<=5&&(y.strategy===ZA||y.match_length===Os&&y.strstart-y.match_start>4096)&&(y.match_length=Os-1)),y.prev_length>=Os&&y.match_length<=y.prev_length){Ae=y.strstart+y.lookahead-Os,re=rl(y,y.strstart-1-y.prev_match,y.prev_length-Os),y.lookahead-=y.prev_length-1,y.prev_length-=2;do++y.strstart<=Ae&&(y.ins_h=gc(y,y.ins_h,y.window[y.strstart+Os-1]),E=y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart);while(--y.prev_length!==0);if(y.match_available=0,y.match_length=Os-1,y.strstart++,re&&(rA(y,!1),y.strm.avail_out===0))return Rl}else if(y.match_available){if(re=rl(y,0,y.window[y.strstart-1]),re&&rA(y,!1),y.strstart++,y.lookahead--,y.strm.avail_out===0)return Rl}else y.match_available=1,y.strstart++,y.lookahead--}return y.match_available&&(re=rl(y,0,y.window[y.strstart-1]),y.match_available=0),y.insert=y.strstart<Os-1?y.strstart:Os-1,z===Ul?(rA(y,!0),y.strm.avail_out===0?rd:_c):y.sym_next&&(rA(y,!1),y.strm.avail_out===0)?Rl:_A},kh=(y,z)=>{let E,re,Ae,he;const Ze=y.window;for(;;){if(y.lookahead<=Gu){if(vc(y),y.lookahead<=Gu&&z===Vl)return Rl;if(y.lookahead===0)break}if(y.match_length=0,y.lookahead>=Os&&y.strstart>0&&(Ae=y.strstart-1,re=Ze[Ae],re===Ze[++Ae]&&re===Ze[++Ae]&&re===Ze[++Ae])){he=y.strstart+Gu;do;while(re===Ze[++Ae]&&re===Ze[++Ae]&&re===Ze[++Ae]&&re===Ze[++Ae]&&re===Ze[++Ae]&&re===Ze[++Ae]&&re===Ze[++Ae]&&re===Ze[++Ae]&&Ae<he);y.match_length=Gu-(he-Ae),y.match_length>y.lookahead&&(y.match_length=y.lookahead)}if(y.match_length>=Os?(E=rl(y,1,y.match_length-Os),y.lookahead-=y.match_length,y.strstart+=y.match_length,y.match_length=0):(E=rl(y,0,y.window[y.strstart]),y.lookahead--,y.strstart++),E&&(rA(y,!1),y.strm.avail_out===0))return Rl}return y.insert=0,z===Ul?(rA(y,!0),y.strm.avail_out===0?rd:_c):y.sym_next&&(rA(y,!1),y.strm.avail_out===0)?Rl:_A},Wp=(y,z)=>{let E;for(;;){if(y.lookahead===0&&(vc(y),y.lookahead===0)){if(z===Vl)return Rl;break}if(y.match_length=0,E=rl(y,0,y.window[y.strstart]),y.lookahead--,y.strstart++,E&&(rA(y,!1),y.strm.avail_out===0))return Rl}return y.insert=0,z===Ul?(rA(y,!0),y.strm.avail_out===0?rd:_c):y.sym_next&&(rA(y,!1),y.strm.avail_out===0)?Rl:_A};function iA(y,z,E,re,Ae){this.good_length=y,this.max_lazy=z,this.nice_length=E,this.max_chain=re,this.func=Ae}const yc=[new iA(0,0,0,0,kc),new iA(4,4,8,4,xf),new iA(4,5,16,8,xf),new iA(4,6,32,32,xf),new iA(4,4,16,16,Id),new iA(8,16,32,32,Id),new iA(8,16,128,128,Id),new iA(8,32,128,256,Id),new iA(32,128,258,1024,Id),new iA(32,258,258,4096,Id)],up=y=>{y.window_size=2*y.w_size,TA(y.head),y.max_lazy_match=yc[y.level].max_lazy,y.good_match=yc[y.level].good_length,y.nice_match=yc[y.level].nice_length,y.max_chain_length=yc[y.level].max_chain,y.strstart=0,y.block_start=0,y.lookahead=0,y.insert=0,y.match_length=y.prev_length=Os-1,y.match_available=0,y.ins_h=0};function $p(){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=nc,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 Uint16Array(Sd*2),this.dyn_dtree=new Uint16Array((2*Pc+1)*2),this.bl_tree=new Uint16Array((2*rc+1)*2),TA(this.dyn_ltree),TA(this.dyn_dtree),TA(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(qf+1),this.heap=new Uint16Array(2*Lu+1),TA(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Lu+1),TA(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Vd=y=>{if(!y)return 1;const z=y.state;return!z||z.strm!==y||z.status!==WA&&z.status!==Th&&z.status!==Fd&&z.status!==eh&&z.status!==bf&&z.status!==Cf&&z.status!==$A&&z.status!==ya?1:0},Ap=y=>{if(Vd(y))return Tc(y,Ms);y.total_in=y.total_out=0,y.data_type=tc;const z=y.state;return z.pending=0,z.pending_out=0,z.wrap<0&&(z.wrap=-z.wrap),z.status=z.wrap===2?Th:z.wrap?WA:$A,y.adler=z.wrap===2?0:1,z.last_flush=-2,PA(z),Pa},Xd=y=>{const z=Ap(y);return z===Pa&&up(y.state),z},Gp=(y,z)=>Vd(y)||y.state.wrap!==2?Ms:(y.state.gzhead=z,Pa),oA=(y,z,E,re,Ae,he)=>{if(!y)return Ms;let Ze=1;if(z===du&&(z=6),re<0?(Ze=0,re=-re):re>15&&(Ze=2,re-=16),Ae<1||Ae>Ed||E!==nc||re<8||re>15||z<0||z>9||he<0||he>Yl||re===8&&Ze!==1)return Tc(y,Ms);re===8&&(re=9);const Pe=new $p;return y.state=Pe,Pe.strm=y,Pe.status=WA,Pe.wrap=Ze,Pe.gzhead=null,Pe.w_bits=re,Pe.w_size=1<<Pe.w_bits,Pe.w_mask=Pe.w_size-1,Pe.hash_bits=Ae+7,Pe.hash_size=1<<Pe.hash_bits,Pe.hash_mask=Pe.hash_size-1,Pe.hash_shift=~~((Pe.hash_bits+Os-1)/Os),Pe.window=new Uint8Array(Pe.w_size*2),Pe.head=new Uint16Array(Pe.hash_size),Pe.prev=new Uint16Array(Pe.w_size),Pe.lit_bufsize=1<<Ae+6,Pe.pending_buf_size=Pe.lit_bufsize*4,Pe.pending_buf=new Uint8Array(Pe.pending_buf_size),Pe.sym_buf=Pe.lit_bufsize,Pe.sym_end=(Pe.lit_bufsize-1)*3,Pe.level=z,Pe.strategy=he,Pe.method=E,Xd(y)},Du=(y,z)=>oA(y,z,nc,Jf,nd,mA),aA=(y,z)=>{if(Vd(y)||z>Mu||z<0)return y?Tc(y,Ms):Ms;const E=y.state;if(!y.output||y.avail_in!==0&&!y.input||E.status===ya&&z!==Ul)return Tc(y,y.avail_out===0?Xl:Ms);const re=E.last_flush;if(E.last_flush=z,E.pending!==0){if(IA(y),y.avail_out===0)return E.last_flush=-1,Pa}else if(y.avail_in===0&&th(z)<=th(re)&&z!==Ul)return Tc(y,Xl);if(E.status===ya&&y.avail_in!==0)return Tc(y,Xl);if(E.status===WA&&E.wrap===0&&(E.status=$A),E.status===WA){let Ae=nc+(E.w_bits-8<<4)<<8,he=-1;if(E.strategy>=gA||E.level<2?he=0:E.level<6?he=1:E.level===6?he=2:he=3,Ae|=he<<6,E.strstart!==0&&(Ae|=_h),Ae+=31-Ae%31,mc(E,Ae),E.strstart!==0&&(mc(E,y.adler>>>16),mc(E,y.adler&65535)),y.adler=1,E.status=$A,IA(y),E.pending!==0)return E.last_flush=-1,Pa}if(E.status===Th){if(y.adler=0,Hs(E,31),Hs(E,139),Hs(E,8),E.gzhead)Hs(E,(E.gzhead.text?1:0)+(E.gzhead.hcrc?2:0)+(E.gzhead.extra?4:0)+(E.gzhead.name?8:0)+(E.gzhead.comment?16:0)),Hs(E,E.gzhead.time&255),Hs(E,E.gzhead.time>>8&255),Hs(E,E.gzhead.time>>16&255),Hs(E,E.gzhead.time>>24&255),Hs(E,E.level===9?2:E.strategy>=gA||E.level<2?4:0),Hs(E,E.gzhead.os&255),E.gzhead.extra&&E.gzhead.extra.length&&(Hs(E,E.gzhead.extra.length&255),Hs(E,E.gzhead.extra.length>>8&255)),E.gzhead.hcrc&&(y.adler=Ns(y.adler,E.pending_buf,E.pending,0)),E.gzindex=0,E.status=Fd;else if(Hs(E,0),Hs(E,0),Hs(E,0),Hs(E,0),Hs(E,0),Hs(E,E.level===9?2:E.strategy>=gA||E.level<2?4:0),Hs(E,Kp),E.status=$A,IA(y),E.pending!==0)return E.last_flush=-1,Pa}if(E.status===Fd){if(E.gzhead.extra){let Ae=E.pending,he=(E.gzhead.extra.length&65535)-E.gzindex;for(;E.pending+he>E.pending_buf_size;){let Pe=E.pending_buf_size-E.pending;if(E.pending_buf.set(E.gzhead.extra.subarray(E.gzindex,E.gzindex+Pe),E.pending),E.pending=E.pending_buf_size,E.gzhead.hcrc&&E.pending>Ae&&(y.adler=Ns(y.adler,E.pending_buf,E.pending-Ae,Ae)),E.gzindex+=Pe,IA(y),E.pending!==0)return E.last_flush=-1,Pa;Ae=0,he-=Pe}let Ze=new Uint8Array(E.gzhead.extra);E.pending_buf.set(Ze.subarray(E.gzindex,E.gzindex+he),E.pending),E.pending+=he,E.gzhead.hcrc&&E.pending>Ae&&(y.adler=Ns(y.adler,E.pending_buf,E.pending-Ae,Ae)),E.gzindex=0}E.status=eh}if(E.status===eh){if(E.gzhead.name){let Ae=E.pending,he;do{if(E.pending===E.pending_buf_size){if(E.gzhead.hcrc&&E.pending>Ae&&(y.adler=Ns(y.adler,E.pending_buf,E.pending-Ae,Ae)),IA(y),E.pending!==0)return E.last_flush=-1,Pa;Ae=0}E.gzindex<E.gzhead.name.length?he=E.gzhead.name.charCodeAt(E.gzindex++)&255:he=0,Hs(E,he)}while(he!==0);E.gzhead.hcrc&&E.pending>Ae&&(y.adler=Ns(y.adler,E.pending_buf,E.pending-Ae,Ae)),E.gzindex=0}E.status=bf}if(E.status===bf){if(E.gzhead.comment){let Ae=E.pending,he;do{if(E.pending===E.pending_buf_size){if(E.gzhead.hcrc&&E.pending>Ae&&(y.adler=Ns(y.adler,E.pending_buf,E.pending-Ae,Ae)),IA(y),E.pending!==0)return E.last_flush=-1,Pa;Ae=0}E.gzindex<E.gzhead.comment.length?he=E.gzhead.comment.charCodeAt(E.gzindex++)&255:he=0,Hs(E,he)}while(he!==0);E.gzhead.hcrc&&E.pending>Ae&&(y.adler=Ns(y.adler,E.pending_buf,E.pending-Ae,Ae))}E.status=Cf}if(E.status===Cf){if(E.gzhead.hcrc){if(E.pending+2>E.pending_buf_size&&(IA(y),E.pending!==0))return E.last_flush=-1,Pa;Hs(E,y.adler&255),Hs(E,y.adler>>8&255),y.adler=0}if(E.status=$A,IA(y),E.pending!==0)return E.last_flush=-1,Pa}if(y.avail_in!==0||E.lookahead!==0||z!==Vl&&E.status!==ya){let Ae=E.level===0?kc(E,z):E.strategy===gA?Wp(E,z):E.strategy===fc?kh(E,z):yc[E.level].func(E,z);if((Ae===rd||Ae===_c)&&(E.status=ya),Ae===Rl||Ae===rd)return y.avail_out===0&&(E.last_flush=-1),Pa;if(Ae===_A&&(z===Nc?Gl(E):z!==Mu&&(xl(E,0,0,!1),z===td&&(TA(E.head),E.lookahead===0&&(E.strstart=0,E.block_start=0,E.insert=0))),IA(y),y.avail_out===0))return E.last_flush=-1,Pa}return z!==Ul?Pa:E.wrap<=0?Ra:(E.wrap===2?(Hs(E,y.adler&255),Hs(E,y.adler>>8&255),Hs(E,y.adler>>16&255),Hs(E,y.adler>>24&255),Hs(E,y.total_in&255),Hs(E,y.total_in>>8&255),Hs(E,y.total_in>>16&255),Hs(E,y.total_in>>24&255)):(mc(E,y.adler>>>16),mc(E,y.adler&65535)),IA(y),E.wrap>0&&(E.wrap=-E.wrap),E.pending!==0?Pa:Ra)},Nu=y=>{if(Vd(y))return Ms;const z=y.state.status;return y.state=null,z===$A?Tc(y,nA):Pa},sd=(y,z)=>{let E=z.length;if(Vd(y))return Ms;const re=y.state,Ae=re.wrap;if(Ae===2||Ae===1&&re.status!==WA||re.lookahead)return Ms;if(Ae===1&&(y.adler=aa(y.adler,z,E,0)),re.wrap=0,E>=re.w_size){Ae===0&&(TA(re.head),re.strstart=0,re.block_start=0,re.insert=0);let Ve=new Uint8Array(re.w_size);Ve.set(z.subarray(E-re.w_size,E),0),z=Ve,E=re.w_size}const he=y.avail_in,Ze=y.next_in,Pe=y.input;for(y.avail_in=E,y.next_in=0,y.input=z,vc(re);re.lookahead>=Os;){let Ve=re.strstart,Ye=re.lookahead-(Os-1);do re.ins_h=gc(re,re.ins_h,re.window[Ve+Os-1]),re.prev[Ve&re.w_mask]=re.head[re.ins_h],re.head[re.ins_h]=Ve,Ve++;while(--Ye);re.strstart=Ve,re.lookahead=Os-1,vc(re)}return re.strstart+=re.lookahead,re.block_start=re.strstart,re.insert=re.lookahead,re.lookahead=0,re.match_length=re.prev_length=Os-1,re.match_available=0,y.next_in=Ze,y.input=Pe,y.avail_in=he,re.wrap=Ae,Pa};var Yd=Du,Bf=oA,cp=Xd,dp=Ap,fp=Gp,nh=aA,wc=Nu,Ld=sd,hp="pako deflate (from Nodeca project)",wt={deflateInit:Yd,deflateInit2:Bf,deflateReset:cp,deflateResetKeep:dp,deflateSetHeader:fp,deflate:nh,deflateEnd:wc,deflateSetDictionary:Ld,deflateInfo:hp};const yt=(y,z)=>Object.prototype.hasOwnProperty.call(y,z);var Vt=function(y){const z=Array.prototype.slice.call(arguments,1);for(;z.length;){const E=z.shift();if(E){if(typeof E!="object")throw new TypeError(E+"must be non-object");for(const re in E)yt(E,re)&&(y[re]=E[re])}}return y},cn=y=>{let z=0;for(let re=0,Ae=y.length;re<Ae;re++)z+=y[re].length;const E=new Uint8Array(z);for(let re=0,Ae=0,he=y.length;re<he;re++){let Ze=y[re];E.set(Ze,Ae),Ae+=Ze.length}return E},Fn={assign:Vt,flattenChunks:cn};let kn=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(y){kn=!1}const ar=new Uint8Array(256);for(let y=0;y<256;y++)ar[y]=y>=252?6:y>=248?5:y>=240?4:y>=224?3:y>=192?2:1;ar[254]=ar[254]=1;var qn=y=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(y);let z,E,re,Ae,he,Ze=y.length,Pe=0;for(Ae=0;Ae<Ze;Ae++)E=y.charCodeAt(Ae),(E&64512)===55296&&Ae+1<Ze&&(re=y.charCodeAt(Ae+1),(re&64512)===56320&&(E=65536+(E-55296<<10)+(re-56320),Ae++)),Pe+=E<128?1:E<2048?2:E<65536?3:4;for(z=new Uint8Array(Pe),he=0,Ae=0;he<Pe;Ae++)E=y.charCodeAt(Ae),(E&64512)===55296&&Ae+1<Ze&&(re=y.charCodeAt(Ae+1),(re&64512)===56320&&(E=65536+(E-55296<<10)+(re-56320),Ae++)),E<128?z[he++]=E:E<2048?(z[he++]=192|E>>>6,z[he++]=128|E&63):E<65536?(z[he++]=224|E>>>12,z[he++]=128|E>>>6&63,z[he++]=128|E&63):(z[he++]=240|E>>>18,z[he++]=128|E>>>12&63,z[he++]=128|E>>>6&63,z[he++]=128|E&63);return z};const wr=(y,z)=>{if(z<65534&&y.subarray&&kn)return String.fromCharCode.apply(null,y.length===z?y:y.subarray(0,z));let E="";for(let re=0;re<z;re++)E+=String.fromCharCode(y[re]);return E};var dr=(y,z)=>{const E=z||y.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(y.subarray(0,z));let re,Ae;const he=new Array(E*2);for(Ae=0,re=0;re<E;){let Ze=y[re++];if(Ze<128){he[Ae++]=Ze;continue}let Pe=ar[Ze];if(Pe>4){he[Ae++]=65533,re+=Pe-1;continue}for(Ze&=Pe===2?31:Pe===3?15:7;Pe>1&&re<E;)Ze=Ze<<6|y[re++]&63,Pe--;if(Pe>1){he[Ae++]=65533;continue}Ze<65536?he[Ae++]=Ze:(Ze-=65536,he[Ae++]=55296|Ze>>10&1023,he[Ae++]=56320|Ze&1023)}return wr(he,Ae)},di=(y,z)=>{z=z||y.length,z>y.length&&(z=y.length);let E=z-1;for(;E>=0&&(y[E]&192)===128;)E--;return E<0||E===0?z:E+ar[y[E]]>z?E:z},Rr={string2buf:qn,buf2string:dr,utf8border:di};function jr(){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}var Dr=jr;const Fr=Object.prototype.toString,{Z_NO_FLUSH:$i,Z_SYNC_FLUSH:bi,Z_FULL_FLUSH:qi,Z_FINISH:ao,Z_OK:Ji,Z_STREAM_END:fo,Z_DEFAULT_COMPRESSION:Bo,Z_DEFAULT_STRATEGY:jo,Z_DEFLATED:_o}=pA;function La(y){this.options=Fn.assign({level:Bo,method:_o,chunkSize:16384,windowBits:15,memLevel:8,strategy:jo},y||{});let z=this.options;z.raw&&z.windowBits>0?z.windowBits=-z.windowBits:z.gzip&&z.windowBits>0&&z.windowBits<16&&(z.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Dr,this.strm.avail_out=0;let E=wt.deflateInit2(this.strm,z.level,z.method,z.windowBits,z.memLevel,z.strategy);if(E!==Ji)throw new Error(tA[E]);if(z.header&&wt.deflateSetHeader(this.strm,z.header),z.dictionary){let re;if(typeof z.dictionary=="string"?re=Rr.string2buf(z.dictionary):Fr.call(z.dictionary)==="[object ArrayBuffer]"?re=new Uint8Array(z.dictionary):re=z.dictionary,E=wt.deflateSetDictionary(this.strm,re),E!==Ji)throw new Error(tA[E]);this._dict_set=!0}}La.prototype.push=function(y,z){const E=this.strm,re=this.options.chunkSize;let Ae,he;if(this.ended)return!1;for(z===~~z?he=z:he=z===!0?ao:$i,typeof y=="string"?E.input=Rr.string2buf(y):Fr.call(y)==="[object ArrayBuffer]"?E.input=new Uint8Array(y):E.input=y,E.next_in=0,E.avail_in=E.input.length;;){if(E.avail_out===0&&(E.output=new Uint8Array(re),E.next_out=0,E.avail_out=re),(he===bi||he===qi)&&E.avail_out<=6){this.onData(E.output.subarray(0,E.next_out)),E.avail_out=0;continue}if(Ae=wt.deflate(E,he),Ae===fo)return E.next_out>0&&this.onData(E.output.subarray(0,E.next_out)),Ae=wt.deflateEnd(this.strm),this.onEnd(Ae),this.ended=!0,Ae===Ji;if(E.avail_out===0){this.onData(E.output);continue}if(he>0&&E.next_out>0){this.onData(E.output.subarray(0,E.next_out)),E.avail_out=0;continue}if(E.avail_in===0)break}return!0},La.prototype.onData=function(y){this.chunks.push(y)},La.prototype.onEnd=function(y){y===Ji&&(this.result=Fn.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg};function sa(y,z){const E=new La(z);if(E.push(y,!0),E.err)throw E.msg||tA[E.err];return E.result}function ea(y,z){return z=z||{},z.raw=!0,sa(y,z)}function zo(y,z){return z=z||{},z.gzip=!0,sa(y,z)}var Ho=La,Qo=sa,vo=ea,co=zo,To=pA,Wo={Deflate:Ho,deflate:Qo,deflateRaw:vo,gzip:co,constants:To};const na=16209,Co=16191;var Ya=function(z,E){let re,Ae,he,Ze,Pe,Ve,Ye,dt,Tt,Jt,At,In,xn,Nn,dn,yr,lr,Zn,fi,zi,Ii,Ir,Gn,Gr;const An=z.state;re=z.next_in,Gn=z.input,Ae=re+(z.avail_in-5),he=z.next_out,Gr=z.output,Ze=he-(E-z.avail_out),Pe=he+(z.avail_out-257),Ve=An.dmax,Ye=An.wsize,dt=An.whave,Tt=An.wnext,Jt=An.window,At=An.hold,In=An.bits,xn=An.lencode,Nn=An.distcode,dn=(1<<An.lenbits)-1,yr=(1<<An.distbits)-1;e:do{In<15&&(At+=Gn[re++]<<In,In+=8,At+=Gn[re++]<<In,In+=8),lr=xn[At&dn];t:for(;;){if(Zn=lr>>>24,At>>>=Zn,In-=Zn,Zn=lr>>>16&255,Zn===0)Gr[he++]=lr&65535;else if(Zn&16){fi=lr&65535,Zn&=15,Zn&&(In<Zn&&(At+=Gn[re++]<<In,In+=8),fi+=At&(1<<Zn)-1,At>>>=Zn,In-=Zn),In<15&&(At+=Gn[re++]<<In,In+=8,At+=Gn[re++]<<In,In+=8),lr=Nn[At&yr];n:for(;;){if(Zn=lr>>>24,At>>>=Zn,In-=Zn,Zn=lr>>>16&255,Zn&16){if(zi=lr&65535,Zn&=15,In<Zn&&(At+=Gn[re++]<<In,In+=8,In<Zn&&(At+=Gn[re++]<<In,In+=8)),zi+=At&(1<<Zn)-1,zi>Ve){z.msg="invalid distance too far back",An.mode=na;break e}if(At>>>=Zn,In-=Zn,Zn=he-Ze,zi>Zn){if(Zn=zi-Zn,Zn>dt&&An.sane){z.msg="invalid distance too far back",An.mode=na;break e}if(Ii=0,Ir=Jt,Tt===0){if(Ii+=Ye-Zn,Zn<fi){fi-=Zn;do Gr[he++]=Jt[Ii++];while(--Zn);Ii=he-zi,Ir=Gr}}else if(Tt<Zn){if(Ii+=Ye+Tt-Zn,Zn-=Tt,Zn<fi){fi-=Zn;do Gr[he++]=Jt[Ii++];while(--Zn);if(Ii=0,Tt<fi){Zn=Tt,fi-=Zn;do Gr[he++]=Jt[Ii++];while(--Zn);Ii=he-zi,Ir=Gr}}}else if(Ii+=Tt-Zn,Zn<fi){fi-=Zn;do Gr[he++]=Jt[Ii++];while(--Zn);Ii=he-zi,Ir=Gr}for(;fi>2;)Gr[he++]=Ir[Ii++],Gr[he++]=Ir[Ii++],Gr[he++]=Ir[Ii++],fi-=3;fi&&(Gr[he++]=Ir[Ii++],fi>1&&(Gr[he++]=Ir[Ii++]))}else{Ii=he-zi;do Gr[he++]=Gr[Ii++],Gr[he++]=Gr[Ii++],Gr[he++]=Gr[Ii++],fi-=3;while(fi>2);fi&&(Gr[he++]=Gr[Ii++],fi>1&&(Gr[he++]=Gr[Ii++]))}}else if(Zn&64){z.msg="invalid distance code",An.mode=na;break e}else{lr=Nn[(lr&65535)+(At&(1<<Zn)-1)];continue n}break}}else if(Zn&64)if(Zn&32){An.mode=Co;break e}else{z.msg="invalid literal/length code",An.mode=na;break e}else{lr=xn[(lr&65535)+(At&(1<<Zn)-1)];continue t}break}}while(re<Ae&&he<Pe);fi=In>>3,re-=fi,In-=fi<<3,At&=(1<<In)-1,z.next_in=re,z.next_out=he,z.avail_in=re<Ae?5+(Ae-re):5-(re-Ae),z.avail_out=he<Pe?257+(Pe-he):257-(he-Pe),An.hold=At,An.bits=In};const Ka=15,_l=852,El=592,al=0,so=1,Jl=2,ss=new Uint16Array([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]),rs=new Uint8Array([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]),il=new Uint16Array([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]),fu=new Uint8Array([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]);var Ca=(y,z,E,re,Ae,he,Ze,Pe)=>{const Ve=Pe.bits;let Ye=0,dt=0,Tt=0,Jt=0,At=0,In=0,xn=0,Nn=0,dn=0,yr=0,lr,Zn,fi,zi,Ii,Ir=null,Gn;const Gr=new Uint16Array(Ka+1),An=new Uint16Array(Ka+1);let Pn=null,pr,cr,vi;for(Ye=0;Ye<=Ka;Ye++)Gr[Ye]=0;for(dt=0;dt<re;dt++)Gr[z[E+dt]]++;for(At=Ve,Jt=Ka;Jt>=1&&Gr[Jt]===0;Jt--);if(At>Jt&&(At=Jt),Jt===0)return Ae[he++]=1<<24|64<<16|0,Ae[he++]=1<<24|64<<16|0,Pe.bits=1,0;for(Tt=1;Tt<Jt&&Gr[Tt]===0;Tt++);for(At<Tt&&(At=Tt),Nn=1,Ye=1;Ye<=Ka;Ye++)if(Nn<<=1,Nn-=Gr[Ye],Nn<0)return-1;if(Nn>0&&(y===al||Jt!==1))return-1;for(An[1]=0,Ye=1;Ye<Ka;Ye++)An[Ye+1]=An[Ye]+Gr[Ye];for(dt=0;dt<re;dt++)z[E+dt]!==0&&(Ze[An[z[E+dt]]++]=dt);if(y===al?(Ir=Pn=Ze,Gn=20):y===so?(Ir=ss,Pn=rs,Gn=257):(Ir=il,Pn=fu,Gn=0),yr=0,dt=0,Ye=Tt,Ii=he,In=At,xn=0,fi=-1,dn=1<<At,zi=dn-1,y===so&&dn>_l||y===Jl&&dn>El)return 1;for(;;){pr=Ye-xn,Ze[dt]+1<Gn?(cr=0,vi=Ze[dt]):Ze[dt]>=Gn?(cr=Pn[Ze[dt]-Gn],vi=Ir[Ze[dt]-Gn]):(cr=96,vi=0),lr=1<<Ye-xn,Zn=1<<In,Tt=Zn;do Zn-=lr,Ae[Ii+(yr>>xn)+Zn]=pr<<24|cr<<16|vi|0;while(Zn!==0);for(lr=1<<Ye-1;yr&lr;)lr>>=1;if(lr!==0?(yr&=lr-1,yr+=lr):yr=0,dt++,--Gr[Ye]===0){if(Ye===Jt)break;Ye=z[E+Ze[dt]]}if(Ye>At&&(yr&zi)!==fi){for(xn===0&&(xn=At),Ii+=Tt,In=Ye-xn,Nn=1<<In;In+xn<Jt&&(Nn-=Gr[In+xn],!(Nn<=0));)In++,Nn<<=1;if(dn+=1<<In,y===so&&dn>_l||y===Jl&&dn>El)return 1;fi=yr&zi,Ae[fi]=At<<24|In<<16|Ii-he|0}}return yr!==0&&(Ae[Ii+yr]=Ye-xn<<24|64<<16|0),Pe.bits=At,0};const $o=0,Oo=1,fs=2,{Z_FINISH:Ss,Z_BLOCK:Ws,Z_TREES:Qs,Z_OK:sl,Z_STREAM_END:pu,Z_NEED_DICT:la,Z_STREAM_ERROR:qo,Z_DATA_ERROR:xs,Z_MEM_ERROR:Ys,Z_BUF_ERROR:$s,Z_DEFLATED:gu}=pA,Tl=16180,sA=16181,Sl=16182,vs=16183,ll=16184,ul=16185,hu=16186,kl=16187,ys=16188,vl=16189,Fs=16190,yl=16191,ql=16192,Ou=16193,Pu=16194,GA=16195,Al=16196,Dd=16197,Uu=16198,Vu=16199,Ru=16200,Xu=16201,cl=16202,vA=16203,bc=16204,kA=16205,VA=16206,Jd=16207,qd=16208,Is=16209,ld=16210,Ef=16211,Za=852,hs=592,su=15,xu=y=>(y>>>24&255)+(y>>>8&65280)+((y&65280)<<8)+((y&255)<<24);function Bu(){this.strm=null,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 Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Yu=y=>{if(!y)return 1;const z=y.state;return!z||z.strm!==y||z.mode<Tl||z.mode>Ef?1:0},ju=y=>{if(Yu(y))return qo;const z=y.state;return y.total_in=y.total_out=z.total=0,y.msg="",z.wrap&&(y.adler=z.wrap&1),z.mode=Tl,z.last=0,z.havedict=0,z.flags=-1,z.dmax=32768,z.head=null,z.hold=0,z.bits=0,z.lencode=z.lendyn=new Int32Array(Za),z.distcode=z.distdyn=new Int32Array(hs),z.sane=1,z.back=-1,sl},Zc=y=>{if(Yu(y))return qo;const z=y.state;return z.wsize=0,z.whave=0,z.wnext=0,ju(y)},Sf=(y,z)=>{let E;if(Yu(y))return qo;const re=y.state;return z<0?(E=0,z=-z):(E=(z>>4)+5,z<48&&(z&=15)),z&&(z<8||z>15)?qo:(re.window!==null&&re.wbits!==z&&(re.window=null),re.wrap=E,re.wbits=z,Zc(y))},Wc=(y,z)=>{if(!y)return qo;const E=new Bu;y.state=E,E.strm=y,E.window=null,E.mode=Tl;const re=Sf(y,z);return re!==sl&&(y.state=null),re},$c=y=>Wc(y,su);let mu=!0,MA,ef;const Ff=y=>{if(mu){MA=new Int32Array(512),ef=new Int32Array(32);let z=0;for(;z<144;)y.lens[z++]=8;for(;z<256;)y.lens[z++]=9;for(;z<280;)y.lens[z++]=7;for(;z<288;)y.lens[z++]=8;for(Ca(Oo,y.lens,0,288,MA,0,y.work,{bits:9}),z=0;z<32;)y.lens[z++]=5;Ca(fs,y.lens,0,32,ef,0,y.work,{bits:5}),mu=!1}y.lencode=MA,y.lenbits=9,y.distcode=ef,y.distbits=5},tf=(y,z,E,re)=>{let Ae;const he=y.state;return he.window===null&&(he.wsize=1<<he.wbits,he.wnext=0,he.whave=0,he.window=new Uint8Array(he.wsize)),re>=he.wsize?(he.window.set(z.subarray(E-he.wsize,E),0),he.wnext=0,he.whave=he.wsize):(Ae=he.wsize-he.wnext,Ae>re&&(Ae=re),he.window.set(z.subarray(E-re,E-re+Ae),he.wnext),re-=Ae,re?(he.window.set(z.subarray(E-re,E),0),he.wnext=re,he.whave=he.wsize):(he.wnext+=Ae,he.wnext===he.wsize&&(he.wnext=0),he.whave<he.wsize&&(he.whave+=Ae))),0},If=(y,z)=>{let E,re,Ae,he,Ze,Pe,Ve,Ye,dt,Tt,Jt,At,In,xn,Nn=0,dn,yr,lr,Zn,fi,zi,Ii,Ir;const Gn=new Uint8Array(4);let Gr,An;const Pn=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Yu(y)||!y.output||!y.input&&y.avail_in!==0)return qo;E=y.state,E.mode===yl&&(E.mode=ql),Ze=y.next_out,Ae=y.output,Ve=y.avail_out,he=y.next_in,re=y.input,Pe=y.avail_in,Ye=E.hold,dt=E.bits,Tt=Pe,Jt=Ve,Ir=sl;e:for(;;)switch(E.mode){case Tl:if(E.wrap===0){E.mode=ql;break}for(;dt<16;){if(Pe===0)break e;Pe--,Ye+=re[he++]<<dt,dt+=8}if(E.wrap&2&&Ye===35615){E.wbits===0&&(E.wbits=15),E.check=0,Gn[0]=Ye&255,Gn[1]=Ye>>>8&255,E.check=Ns(E.check,Gn,2,0),Ye=0,dt=0,E.mode=sA;break}if(E.head&&(E.head.done=!1),!(E.wrap&1)||(((Ye&255)<<8)+(Ye>>8))%31){y.msg="incorrect header check",E.mode=Is;break}if((Ye&15)!==gu){y.msg="unknown compression method",E.mode=Is;break}if(Ye>>>=4,dt-=4,Ii=(Ye&15)+8,E.wbits===0&&(E.wbits=Ii),Ii>15||Ii>E.wbits){y.msg="invalid window size",E.mode=Is;break}E.dmax=1<<E.wbits,E.flags=0,y.adler=E.check=1,E.mode=Ye&512?vl:yl,Ye=0,dt=0;break;case sA:for(;dt<16;){if(Pe===0)break e;Pe--,Ye+=re[he++]<<dt,dt+=8}if(E.flags=Ye,(E.flags&255)!==gu){y.msg="unknown compression method",E.mode=Is;break}if(E.flags&57344){y.msg="unknown header flags set",E.mode=Is;break}E.head&&(E.head.text=Ye>>8&1),E.flags&512&&E.wrap&4&&(Gn[0]=Ye&255,Gn[1]=Ye>>>8&255,E.check=Ns(E.check,Gn,2,0)),Ye=0,dt=0,E.mode=Sl;case Sl:for(;dt<32;){if(Pe===0)break e;Pe--,Ye+=re[he++]<<dt,dt+=8}E.head&&(E.head.time=Ye),E.flags&512&&E.wrap&4&&(Gn[0]=Ye&255,Gn[1]=Ye>>>8&255,Gn[2]=Ye>>>16&255,Gn[3]=Ye>>>24&255,E.check=Ns(E.check,Gn,4,0)),Ye=0,dt=0,E.mode=vs;case vs:for(;dt<16;){if(Pe===0)break e;Pe--,Ye+=re[he++]<<dt,dt+=8}E.head&&(E.head.xflags=Ye&255,E.head.os=Ye>>8),E.flags&512&&E.wrap&4&&(Gn[0]=Ye&255,Gn[1]=Ye>>>8&255,E.check=Ns(E.check,Gn,2,0)),Ye=0,dt=0,E.mode=ll;case ll:if(E.flags&1024){for(;dt<16;){if(Pe===0)break e;Pe--,Ye+=re[he++]<<dt,dt+=8}E.length=Ye,E.head&&(E.head.extra_len=Ye),E.flags&512&&E.wrap&4&&(Gn[0]=Ye&255,Gn[1]=Ye>>>8&255,E.check=Ns(E.check,Gn,2,0)),Ye=0,dt=0}else E.head&&(E.head.extra=null);E.mode=ul;case ul:if(E.flags&1024&&(At=E.length,At>Pe&&(At=Pe),At&&(E.head&&(Ii=E.head.extra_len-E.length,E.head.extra||(E.head.extra=new Uint8Array(E.head.extra_len)),E.head.extra.set(re.subarray(he,he+At),Ii)),E.flags&512&&E.wrap&4&&(E.check=Ns(E.check,re,At,he)),Pe-=At,he+=At,E.length-=At),E.length))break e;E.length=0,E.mode=hu;case hu:if(E.flags&2048){if(Pe===0)break e;At=0;do Ii=re[he+At++],E.head&&Ii&&E.length<65536&&(E.head.name+=String.fromCharCode(Ii));while(Ii&&At<Pe);if(E.flags&512&&E.wrap&4&&(E.check=Ns(E.check,re,At,he)),Pe-=At,he+=At,Ii)break e}else E.head&&(E.head.name=null);E.length=0,E.mode=kl;case kl:if(E.flags&4096){if(Pe===0)break e;At=0;do Ii=re[he+At++],E.head&&Ii&&E.length<65536&&(E.head.comment+=String.fromCharCode(Ii));while(Ii&&At<Pe);if(E.flags&512&&E.wrap&4&&(E.check=Ns(E.check,re,At,he)),Pe-=At,he+=At,Ii)break e}else E.head&&(E.head.comment=null);E.mode=ys;case ys:if(E.flags&512){for(;dt<16;){if(Pe===0)break e;Pe--,Ye+=re[he++]<<dt,dt+=8}if(E.wrap&4&&Ye!==(E.check&65535)){y.msg="header crc mismatch",E.mode=Is;break}Ye=0,dt=0}E.head&&(E.head.hcrc=E.flags>>9&1,E.head.done=!0),y.adler=E.check=0,E.mode=yl;break;case vl:for(;dt<32;){if(Pe===0)break e;Pe--,Ye+=re[he++]<<dt,dt+=8}y.adler=E.check=xu(Ye),Ye=0,dt=0,E.mode=Fs;case Fs:if(E.havedict===0)return y.next_out=Ze,y.avail_out=Ve,y.next_in=he,y.avail_in=Pe,E.hold=Ye,E.bits=dt,la;y.adler=E.check=1,E.mode=yl;case yl:if(z===Ws||z===Qs)break e;case ql:if(E.last){Ye>>>=dt&7,dt-=dt&7,E.mode=VA;break}for(;dt<3;){if(Pe===0)break e;Pe--,Ye+=re[he++]<<dt,dt+=8}switch(E.last=Ye&1,Ye>>>=1,dt-=1,Ye&3){case 0:E.mode=Ou;break;case 1:if(Ff(E),E.mode=Vu,z===Qs){Ye>>>=2,dt-=2;break e}break;case 2:E.mode=Al;break;case 3:y.msg="invalid block type",E.mode=Is}Ye>>>=2,dt-=2;break;case Ou:for(Ye>>>=dt&7,dt-=dt&7;dt<32;){if(Pe===0)break e;Pe--,Ye+=re[he++]<<dt,dt+=8}if((Ye&65535)!==(Ye>>>16^65535)){y.msg="invalid stored block lengths",E.mode=Is;break}if(E.length=Ye&65535,Ye=0,dt=0,E.mode=Pu,z===Qs)break e;case Pu:E.mode=GA;case GA:if(At=E.length,At){if(At>Pe&&(At=Pe),At>Ve&&(At=Ve),At===0)break e;Ae.set(re.subarray(he,he+At),Ze),Pe-=At,he+=At,Ve-=At,Ze+=At,E.length-=At;break}E.mode=yl;break;case Al:for(;dt<14;){if(Pe===0)break e;Pe--,Ye+=re[he++]<<dt,dt+=8}if(E.nlen=(Ye&31)+257,Ye>>>=5,dt-=5,E.ndist=(Ye&31)+1,Ye>>>=5,dt-=5,E.ncode=(Ye&15)+4,Ye>>>=4,dt-=4,E.nlen>286||E.ndist>30){y.msg="too many length or distance symbols",E.mode=Is;break}E.have=0,E.mode=Dd;case Dd:for(;E.have<E.ncode;){for(;dt<3;){if(Pe===0)break e;Pe--,Ye+=re[he++]<<dt,dt+=8}E.lens[Pn[E.have++]]=Ye&7,Ye>>>=3,dt-=3}for(;E.have<19;)E.lens[Pn[E.have++]]=0;if(E.lencode=E.lendyn,E.lenbits=7,Gr={bits:E.lenbits},Ir=Ca($o,E.lens,0,19,E.lencode,0,E.work,Gr),E.lenbits=Gr.bits,Ir){y.msg="invalid code lengths set",E.mode=Is;break}E.have=0,E.mode=Uu;case Uu:for(;E.have<E.nlen+E.ndist;){for(;Nn=E.lencode[Ye&(1<<E.lenbits)-1],dn=Nn>>>24,yr=Nn>>>16&255,lr=Nn&65535,!(dn<=dt);){if(Pe===0)break e;Pe--,Ye+=re[he++]<<dt,dt+=8}if(lr<16)Ye>>>=dn,dt-=dn,E.lens[E.have++]=lr;else{if(lr===16){for(An=dn+2;dt<An;){if(Pe===0)break e;Pe--,Ye+=re[he++]<<dt,dt+=8}if(Ye>>>=dn,dt-=dn,E.have===0){y.msg="invalid bit length repeat",E.mode=Is;break}Ii=E.lens[E.have-1],At=3+(Ye&3),Ye>>>=2,dt-=2}else if(lr===17){for(An=dn+3;dt<An;){if(Pe===0)break e;Pe--,Ye+=re[he++]<<dt,dt+=8}Ye>>>=dn,dt-=dn,Ii=0,At=3+(Ye&7),Ye>>>=3,dt-=3}else{for(An=dn+7;dt<An;){if(Pe===0)break e;Pe--,Ye+=re[he++]<<dt,dt+=8}Ye>>>=dn,dt-=dn,Ii=0,At=11+(Ye&127),Ye>>>=7,dt-=7}if(E.have+At>E.nlen+E.ndist){y.msg="invalid bit length repeat",E.mode=Is;break}for(;At--;)E.lens[E.have++]=Ii}}if(E.mode===Is)break;if(E.lens[256]===0){y.msg="invalid code -- missing end-of-block",E.mode=Is;break}if(E.lenbits=9,Gr={bits:E.lenbits},Ir=Ca(Oo,E.lens,0,E.nlen,E.lencode,0,E.work,Gr),E.lenbits=Gr.bits,Ir){y.msg="invalid literal/lengths set",E.mode=Is;break}if(E.distbits=6,E.distcode=E.distdyn,Gr={bits:E.distbits},Ir=Ca(fs,E.lens,E.nlen,E.ndist,E.distcode,0,E.work,Gr),E.distbits=Gr.bits,Ir){y.msg="invalid distances set",E.mode=Is;break}if(E.mode=Vu,z===Qs)break e;case Vu:E.mode=Ru;case Ru:if(Pe>=6&&Ve>=258){y.next_out=Ze,y.avail_out=Ve,y.next_in=he,y.avail_in=Pe,E.hold=Ye,E.bits=dt,Ya(y,Jt),Ze=y.next_out,Ae=y.output,Ve=y.avail_out,he=y.next_in,re=y.input,Pe=y.avail_in,Ye=E.hold,dt=E.bits,E.mode===yl&&(E.back=-1);break}for(E.back=0;Nn=E.lencode[Ye&(1<<E.lenbits)-1],dn=Nn>>>24,yr=Nn>>>16&255,lr=Nn&65535,!(dn<=dt);){if(Pe===0)break e;Pe--,Ye+=re[he++]<<dt,dt+=8}if(yr&&!(yr&240)){for(Zn=dn,fi=yr,zi=lr;Nn=E.lencode[zi+((Ye&(1<<Zn+fi)-1)>>Zn)],dn=Nn>>>24,yr=Nn>>>16&255,lr=Nn&65535,!(Zn+dn<=dt);){if(Pe===0)break e;Pe--,Ye+=re[he++]<<dt,dt+=8}Ye>>>=Zn,dt-=Zn,E.back+=Zn}if(Ye>>>=dn,dt-=dn,E.back+=dn,E.length=lr,yr===0){E.mode=kA;break}if(yr&32){E.back=-1,E.mode=yl;break}if(yr&64){y.msg="invalid literal/length code",E.mode=Is;break}E.extra=yr&15,E.mode=Xu;case Xu:if(E.extra){for(An=E.extra;dt<An;){if(Pe===0)break e;Pe--,Ye+=re[he++]<<dt,dt+=8}E.length+=Ye&(1<<E.extra)-1,Ye>>>=E.extra,dt-=E.extra,E.back+=E.extra}E.was=E.length,E.mode=cl;case cl:for(;Nn=E.distcode[Ye&(1<<E.distbits)-1],dn=Nn>>>24,yr=Nn>>>16&255,lr=Nn&65535,!(dn<=dt);){if(Pe===0)break e;Pe--,Ye+=re[he++]<<dt,dt+=8}if(!(yr&240)){for(Zn=dn,fi=yr,zi=lr;Nn=E.distcode[zi+((Ye&(1<<Zn+fi)-1)>>Zn)],dn=Nn>>>24,yr=Nn>>>16&255,lr=Nn&65535,!(Zn+dn<=dt);){if(Pe===0)break e;Pe--,Ye+=re[he++]<<dt,dt+=8}Ye>>>=Zn,dt-=Zn,E.back+=Zn}if(Ye>>>=dn,dt-=dn,E.back+=dn,yr&64){y.msg="invalid distance code",E.mode=Is;break}E.offset=lr,E.extra=yr&15,E.mode=vA;case vA:if(E.extra){for(An=E.extra;dt<An;){if(Pe===0)break e;Pe--,Ye+=re[he++]<<dt,dt+=8}E.offset+=Ye&(1<<E.extra)-1,Ye>>>=E.extra,dt-=E.extra,E.back+=E.extra}if(E.offset>E.dmax){y.msg="invalid distance too far back",E.mode=Is;break}E.mode=bc;case bc:if(Ve===0)break e;if(At=Jt-Ve,E.offset>At){if(At=E.offset-At,At>E.whave&&E.sane){y.msg="invalid distance too far back",E.mode=Is;break}At>E.wnext?(At-=E.wnext,In=E.wsize-At):In=E.wnext-At,At>E.length&&(At=E.length),xn=E.window}else xn=Ae,In=Ze-E.offset,At=E.length;At>Ve&&(At=Ve),Ve-=At,E.length-=At;do Ae[Ze++]=xn[In++];while(--At);E.length===0&&(E.mode=Ru);break;case kA:if(Ve===0)break e;Ae[Ze++]=E.length,Ve--,E.mode=Ru;break;case VA:if(E.wrap){for(;dt<32;){if(Pe===0)break e;Pe--,Ye|=re[he++]<<dt,dt+=8}if(Jt-=Ve,y.total_out+=Jt,E.total+=Jt,E.wrap&4&&Jt&&(y.adler=E.check=E.flags?Ns(E.check,Ae,Jt,Ze-Jt):aa(E.check,Ae,Jt,Ze-Jt)),Jt=Ve,E.wrap&4&&(E.flags?Ye:xu(Ye))!==E.check){y.msg="incorrect data check",E.mode=Is;break}Ye=0,dt=0}E.mode=Jd;case Jd:if(E.wrap&&E.flags){for(;dt<32;){if(Pe===0)break e;Pe--,Ye+=re[he++]<<dt,dt+=8}if(E.wrap&4&&Ye!==(E.total&4294967295)){y.msg="incorrect length check",E.mode=Is;break}Ye=0,dt=0}E.mode=qd;case qd:Ir=pu;break e;case Is:Ir=xs;break e;case ld:return Ys;case Ef:default:return qo}return y.next_out=Ze,y.avail_out=Ve,y.next_in=he,y.avail_in=Pe,E.hold=Ye,E.bits=dt,(E.wsize||Jt!==y.avail_out&&E.mode<Is&&(E.mode<VA||z!==Ss))&&tf(y,y.output,y.next_out,Jt-y.avail_out),Tt-=y.avail_in,Jt-=y.avail_out,y.total_in+=Tt,y.total_out+=Jt,E.total+=Jt,E.wrap&4&&Jt&&(y.adler=E.check=E.flags?Ns(E.check,Ae,Jt,y.next_out-Jt):aa(E.check,Ae,Jt,y.next_out-Jt)),y.data_type=E.bits+(E.last?64:0)+(E.mode===yl?128:0)+(E.mode===Vu||E.mode===Pu?256:0),(Tt===0&&Jt===0||z===Ss)&&Ir===sl&&(Ir=$s),Ir},Gc=y=>{if(Yu(y))return qo;let z=y.state;return z.window&&(z.window=null),y.state=null,sl},rh=(y,z)=>{if(Yu(y))return qo;const E=y.state;return E.wrap&2?(E.head=z,z.done=!1,sl):qo},pp=(y,z)=>{const E=z.length;let re,Ae,he;return Yu(y)||(re=y.state,re.wrap!==0&&re.mode!==Fs)?qo:re.mode===Fs&&(Ae=1,Ae=aa(Ae,z,E,0),Ae!==re.check)?xs:(he=tf(y,z,E,E),he?(re.mode=ld,Ys):(re.havedict=1,sl))};var ih=Zc,nf=Sf,gp=ju,mp=$c,rf=Wc,Lf=If,Nd=Gc,Df=rh,Od=pp,of="pako inflate (from Nodeca project)",Cc={inflateReset:ih,inflateReset2:nf,inflateResetKeep:gp,inflateInit:mp,inflateInit2:rf,inflate:Lf,inflateEnd:Nd,inflateGetHeader:Df,inflateSetDictionary:Od,inflateInfo:of};function oh(){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}var ah=oh;const Mh=Object.prototype.toString,{Z_NO_FLUSH:ud,Z_FINISH:xc,Z_OK:Bc,Z_STREAM_END:Pd,Z_NEED_DICT:Ad,Z_STREAM_ERROR:Uh,Z_DATA_ERROR:ps,Z_MEM_ERROR:Ls}=pA;function vu(y){this.options=Fn.assign({chunkSize:1024*64,windowBits:15,to:""},y||{});const z=this.options;z.raw&&z.windowBits>=0&&z.windowBits<16&&(z.windowBits=-z.windowBits,z.windowBits===0&&(z.windowBits=-15)),z.windowBits>=0&&z.windowBits<16&&!(y&&y.windowBits)&&(z.windowBits+=32),z.windowBits>15&&z.windowBits<48&&(z.windowBits&15||(z.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Dr,this.strm.avail_out=0;let E=Cc.inflateInit2(this.strm,z.windowBits);if(E!==Bc)throw new Error(tA[E]);if(this.header=new ah,Cc.inflateGetHeader(this.strm,this.header),z.dictionary&&(typeof z.dictionary=="string"?z.dictionary=Rr.string2buf(z.dictionary):Mh.call(z.dictionary)==="[object ArrayBuffer]"&&(z.dictionary=new Uint8Array(z.dictionary)),z.raw&&(E=Cc.inflateSetDictionary(this.strm,z.dictionary),E!==Bc)))throw new Error(tA[E])}vu.prototype.push=function(y,z){const E=this.strm,re=this.options.chunkSize,Ae=this.options.dictionary;let he,Ze,Pe;if(this.ended)return!1;for(z===~~z?Ze=z:Ze=z===!0?xc:ud,Mh.call(y)==="[object ArrayBuffer]"?E.input=new Uint8Array(y):E.input=y,E.next_in=0,E.avail_in=E.input.length;;){for(E.avail_out===0&&(E.output=new Uint8Array(re),E.next_out=0,E.avail_out=re),he=Cc.inflate(E,Ze),he===Ad&&Ae&&(he=Cc.inflateSetDictionary(E,Ae),he===Bc?he=Cc.inflate(E,Ze):he===ps&&(he=Ad));E.avail_in>0&&he===Pd&&E.state.wrap>0&&y[E.next_in]!==0;)Cc.inflateReset(E),he=Cc.inflate(E,Ze);switch(he){case Uh:case ps:case Ad:case Ls:return this.onEnd(he),this.ended=!0,!1}if(Pe=E.avail_out,E.next_out&&(E.avail_out===0||he===Pd))if(this.options.to==="string"){let Ve=Rr.utf8border(E.output,E.next_out),Ye=E.next_out-Ve,dt=Rr.buf2string(E.output,Ve);E.next_out=Ye,E.avail_out=re-Ye,Ye&&E.output.set(E.output.subarray(Ve,Ve+Ye),0),this.onData(dt)}else this.onData(E.output.length===E.next_out?E.output:E.output.subarray(0,E.next_out));if(!(he===Bc&&Pe===0)){if(he===Pd)return he=Cc.inflateEnd(this.strm),this.onEnd(he),this.ended=!0,!0;if(E.avail_in===0)break}}return!0},vu.prototype.onData=function(y){this.chunks.push(y)},vu.prototype.onEnd=function(y){y===Bc&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Fn.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg};function Hu(y,z){const E=new vu(z);if(E.push(y),E.err)throw E.msg||tA[E.err];return E.result}function Qu(y,z){return z=z||{},z.raw=!0,Hu(y,z)}var cd=vu,Vc=Hu,Mc=Qu,dd=Hu,Xc=pA,Rh={Inflate:cd,inflate:Vc,inflateRaw:Mc,ungzip:dd,constants:Xc};const{Deflate:fd,deflate:Vp,deflateRaw:jh,gzip:gg}=Wo,{Inflate:mg,inflate:Xp,inflateRaw:Hl,ungzip:Yp}=Rh;var Hh=fd,af=Vp,Ec=jh,sh=gg,lh=mg,Nf=Xp,uh=Hl,vp=Yp,yp=pA,vg={Deflate:Hh,deflate:af,deflateRaw:Ec,gzip:sh,Inflate:lh,inflate:Nf,inflateRaw:uh,ungzip:vp,constants:yp};const wp=[];for(let y=0;y<256;y++){let z=y;for(let E=0;E<8;E++)z&1?z=3988292384^z>>>1:z=z>>>1;wp[y]=z}const Ah=4294967295;function Jp(y,z,E){let re=y;for(let Ae=0;Ae<E;Ae++)re=wp[(re^z[Ae])&255]^re>>>8;return re}function wl(y,z){return(Jp(Ah,y,z)^Ah)>>>0}function _d(y,z,E){const re=y.readUint32(),Ae=wl(new Uint8Array(y.buffer,y.byteOffset+y.offset-z-4,z),z);if(Ae!==re)throw new Error(`CRC mismatch for chunk ${E}. Expected ${re}, found ${Ae}`)}function yg(y,z){y.writeUint32(wl(new Uint8Array(y.buffer,y.byteOffset+y.offset-z,z),z))}function Ql(y,z,E){for(let re=0;re<E;re++)z[re]=y[re]}function Td(y,z,E,re){let Ae=0;for(;Ae<re;Ae++)z[Ae]=y[Ae];for(;Ae<E;Ae++)z[Ae]=y[Ae]+z[Ae-re]&255}function Yc(y,z,E,re){let Ae=0;if(E.length===0)for(;Ae<re;Ae++)z[Ae]=y[Ae];else for(;Ae<re;Ae++)z[Ae]=y[Ae]+E[Ae]&255}function hd(y,z,E,re,Ae){let he=0;if(E.length===0){for(;he<Ae;he++)z[he]=y[he];for(;he<re;he++)z[he]=y[he]+(z[he-Ae]>>1)&255}else{for(;he<Ae;he++)z[he]=y[he]+(E[he]>>1)&255;for(;he<re;he++)z[he]=y[he]+(z[he-Ae]+E[he]>>1)&255}}function Fl(y,z,E,re,Ae){let he=0;if(E.length===0){for(;he<Ae;he++)z[he]=y[he];for(;he<re;he++)z[he]=y[he]+z[he-Ae]&255}else{for(;he<Ae;he++)z[he]=y[he]+E[he]&255;for(;he<re;he++)z[he]=y[he]+ch(z[he-Ae],E[he],E[he-Ae])&255}}function ch(y,z,E){const re=y+z-E,Ae=Math.abs(re-y),he=Math.abs(re-z),Ze=Math.abs(re-E);return Ae<=he&&Ae<=Ze?y:he<=Ze?z:E}function pd(y,z,E,re,Ae,he){switch(y){case 0:Ql(z,E,Ae);break;case 1:Td(z,E,Ae,he);break;case 2:Yc(z,E,re,Ae);break;case 3:hd(z,E,re,Ae,he);break;case 4:Fl(z,E,re,Ae,he);break;default:throw new Error(`Unsupported filter: ${y}`)}}const qp=new Uint16Array([255]),a=new Uint8Array(qp.buffer)[0]===255;function b(y){const{data:z,width:E,height:re,channels:Ae,depth:he}=y,Ze=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],Pe=Math.ceil(he/8)*Ae,Ve=new Uint8Array(re*E*Pe);let Ye=0;for(let dt=0;dt<7;dt++){const Tt=Ze[dt],Jt=Math.ceil((E-Tt.x)/Tt.xStep),At=Math.ceil((re-Tt.y)/Tt.yStep);if(Jt<=0||At<=0)continue;const In=Jt*Pe,xn=new Uint8Array(In);for(let Nn=0;Nn<At;Nn++){const dn=z[Ye++],yr=z.subarray(Ye,Ye+In);Ye+=In;const lr=new Uint8Array(In);pd(dn,yr,lr,xn,In,Pe),xn.set(lr);for(let Zn=0;Zn<Jt;Zn++){const fi=Tt.x+Zn*Tt.xStep,zi=Tt.y+Nn*Tt.yStep;if(!(fi>=E||zi>=re))for(let Ii=0;Ii<Pe;Ii++)Ve[(zi*E+fi)*Pe+Ii]=lr[Zn*Pe+Ii]}}}if(he===16){const dt=new Uint16Array(Ve.buffer);if(a)for(let Tt=0;Tt<dt.length;Tt++)dt[Tt]=ne(dt[Tt]);return dt}else return Ve}function ne(y){return(y&255)<<8|y>>8&255}const te=new Uint16Array([255]),De=new Uint8Array(te.buffer)[0]===255,qe=new Uint8Array(0);function vt(y){const{data:z,width:E,height:re,channels:Ae,depth:he}=y,Ze=Math.ceil(he/8)*Ae,Pe=Math.ceil(he/8*Ae*E),Ve=new Uint8Array(re*Pe);let Ye=qe,dt=0,Tt,Jt;for(let At=0;At<re;At++){switch(Tt=z.subarray(dt+1,dt+1+Pe),Jt=Ve.subarray(At*Pe,(At+1)*Pe),z[dt]){case 0:Ql(Tt,Jt,Pe);break;case 1:Td(Tt,Jt,Pe,Ze);break;case 2:Yc(Tt,Jt,Ye,Pe);break;case 3:hd(Tt,Jt,Ye,Pe,Ze);break;case 4:Fl(Tt,Jt,Ye,Pe,Ze);break;default:throw new Error(`Unsupported filter: ${z[dt]}`)}Ye=Jt,dt+=Pe+1}if(he===16){const At=new Uint16Array(Ve.buffer);if(De)for(let In=0;In<At.length;In++)At[In]=St(At[In]);return At}else return Ve}function St(y){return(y&255)<<8|y>>8&255}const Dt=Uint8Array.of(137,80,78,71,13,10,26,10);function Ln(y){y.writeBytes(Dt)}function Hn(y){if(!Pr(y.readBytes(Dt.length)))throw new Error("wrong PNG signature")}function Pr(y){if(y.length<Dt.length)return!1;for(let z=0;z<Dt.length;z++)if(y[z]!==Dt[z])return!1;return!0}const xr="tEXt",xi=0,Zi=new TextDecoder("latin1");function lo(y){if(Ko(y),y.length===0||y.length>79)throw new Error("keyword length must be between 1 and 79")}const So=/^[\u0000-\u00FF]*$/;function Ko(y){if(!So.test(y))throw new Error("invalid latin1 text")}function Fo(y,z,E){const re=_a(z);y[re]=xa(z,E-re.length-1)}function Aa(y,z,E){lo(z),Ko(E);const re=z.length+1+E.length;y.writeUint32(re),y.writeChars(xr),y.writeChars(z),y.writeByte(xi),y.writeChars(E),writeCrc(y,re+4)}function _a(y){for(y.mark();y.readByte()!==xi;);const z=y.offset;y.reset();const E=Zi.decode(y.readBytes(z-y.offset-1));return y.skip(1),lo(E),E}function xa(y,z){return Zi.decode(y.readBytes(z))}const ja={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},Il={UNKNOWN:-1,DEFLATE:0},zu={UNKNOWN:-1,ADAPTIVE:0},eu={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},yA={NONE:0,BACKGROUND:1,PREVIOUS:2},Ju={SOURCE:0,OVER:1};class _u extends Yi{constructor(E,re={}){super(E);Pl(this,"_checkCrc");Pl(this,"_inflator");Pl(this,"_png");Pl(this,"_apng");Pl(this,"_end");Pl(this,"_hasPalette");Pl(this,"_palette");Pl(this,"_hasTransparency");Pl(this,"_transparency");Pl(this,"_compressionMethod");Pl(this,"_filterMethod");Pl(this,"_interlaceMethod");Pl(this,"_colorType");Pl(this,"_isAnimated");Pl(this,"_numberOfFrames");Pl(this,"_numberOfPlays");Pl(this,"_frames");Pl(this,"_writingDataChunks");const{checkCrc:Ae=!1}=re;this._checkCrc=Ae,this._inflator=new lh,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=Il.UNKNOWN,this._filterMethod=zu.UNKNOWN,this._interlaceMethod=eu.UNKNOWN,this._colorType=ja.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(Hn(this);!this._end;){const E=this.readUint32(),re=this.readChars(4);this.decodeChunk(E,re)}return this.decodeImage(),this._png}decodeApng(){for(Hn(this);!this._end;){const E=this.readUint32(),re=this.readChars(4);this.decodeApngChunk(E,re)}return this.decodeApngImage(),this._apng}decodeChunk(E,re){const Ae=this.offset;switch(re){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(E);break;case"IDAT":this.decodeIDAT(E);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(E);break;case"iCCP":this.decodeiCCP(E);break;case xr:Fo(this._png.text,this,E);break;case"pHYs":this.decodepHYs();break;default:this.skip(E);break}if(this.offset-Ae!==E)throw new Error(`Length mismatch while decoding chunk ${re}`);this._checkCrc?_d(this,E+4,re):this.skip(4)}decodeApngChunk(E,re){const Ae=this.offset;switch(re!=="fdAT"&&re!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),re){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(E);break;default:this.decodeChunk(E,re),this.offset=Ae+E;break}if(this.offset-Ae!==E)throw new Error(`Length mismatch while decoding chunk ${re}`);this._checkCrc?_d(this,E+4,re):this.skip(4)}decodeIHDR(){const E=this._png;E.width=this.readUint32(),E.height=this.readUint32(),E.depth=wA(this.readUint8());const re=this.readUint8();this._colorType=re;let Ae;switch(re){case ja.GREYSCALE:Ae=1;break;case ja.TRUECOLOUR:Ae=3;break;case ja.INDEXED_COLOUR:Ae=1;break;case ja.GREYSCALE_ALPHA:Ae=2;break;case ja.TRUECOLOUR_ALPHA:Ae=4;break;case ja.UNKNOWN:default:throw new Error(`Unknown color type: ${re}`)}if(this._png.channels=Ae,this._compressionMethod=this.readUint8(),this._compressionMethod!==Il.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const E={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(E)}decodePLTE(E){if(E%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${E}`);const re=E/3;this._hasPalette=!0;const Ae=[];this._palette=Ae;for(let he=0;he<re;he++)Ae.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(E){this._writingDataChunks=!0;const re=E,Ae=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,Ae,re)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(E)}decodeFDAT(E){this._writingDataChunks=!0;let re=E,Ae=this.offset+this.byteOffset;if(Ae+=4,re-=4,this._inflator.push(new Uint8Array(this.buffer,Ae,re)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(E)}decodetRNS(E){switch(this._colorType){case ja.GREYSCALE:case ja.TRUECOLOUR:{if(E%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${E}`);if(E/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${E/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(E/2);for(let re=0;re<E/2;re++)this._transparency[re]=this.readUint16();break}case ja.INDEXED_COLOUR:{if(E>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${E} vs ${this._palette.length})`);let re=0;for(;re<E;re++){const Ae=this.readByte();this._palette[re].push(Ae)}for(;re<this._palette.length;re++)this._palette[re].push(255);break}case ja.UNKNOWN:case ja.GREYSCALE_ALPHA:case ja.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(E){const re=_a(this),Ae=this.readUint8();if(Ae!==Il.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${Ae}`);const he=this.readBytes(E-re.length-2);this._png.iccEmbeddedProfile={name:re,profile:Nf(he)}}decodepHYs(){const E=this.readUint32(),re=this.readUint32(),Ae=this.readByte();this._png.resolution={x:E,y:re,unit:Ae}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let E=0;E<this._numberOfFrames;E++){const re={sequenceNumber:this._frames[E].sequenceNumber,delayNumber:this._frames[E].delayNumber,delayDenominator:this._frames[E].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},Ae=this._frames.at(E);if(Ae){if(Ae.data=vt({data:Ae.data,width:Ae.width,height:Ae.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),E===0||Ae.xOffset===0&&Ae.yOffset===0&&Ae.width===this._png.width&&Ae.height===this._png.height)re.data=Ae.data;else{const he=this._apng.frames.at(E-1);this.disposeFrame(Ae,he,re),this.addFrameDataToCanvas(re,Ae)}this._apng.frames.push(re)}}return this._apng}disposeFrame(E,re,Ae){switch(E.disposeOp){case yA.NONE:break;case yA.BACKGROUND:for(let he=0;he<this._png.height;he++)for(let Ze=0;Ze<this._png.width;Ze++){const Pe=(he*E.width+Ze)*this._png.channels;for(let Ve=0;Ve<this._png.channels;Ve++)Ae.data[Pe+Ve]=0}break;case yA.PREVIOUS:Ae.data.set(re.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(E,re){const Ae=1<<this._png.depth,he=(Ze,Pe)=>{const Ve=((Ze+re.yOffset)*this._png.width+re.xOffset+Pe)*this._png.channels,Ye=(Ze*re.width+Pe)*this._png.channels;return{index:Ve,frameIndex:Ye}};switch(re.blendOp){case Ju.SOURCE:for(let Ze=0;Ze<re.height;Ze++)for(let Pe=0;Pe<re.width;Pe++){const{index:Ve,frameIndex:Ye}=he(Ze,Pe);for(let dt=0;dt<this._png.channels;dt++)E.data[Ve+dt]=re.data[Ye+dt]}break;case Ju.OVER:for(let Ze=0;Ze<re.height;Ze++)for(let Pe=0;Pe<re.width;Pe++){const{index:Ve,frameIndex:Ye}=he(Ze,Pe);for(let dt=0;dt<this._png.channels;dt++){const Tt=re.data[Ye+this._png.channels-1]/Ae,Jt=dt%(this._png.channels-1)===0?1:re.data[Ye+dt],At=Math.floor(Tt*Jt+(1-Tt)*E.data[Ve+dt]);E.data[Ve+dt]+=At}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var re;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const E=this._isAnimated?((re=this._frames)==null?void 0:re.at(0)).data:this._inflator.result;if(this._filterMethod!==zu.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===eu.NO_INTERLACE)this._png.data=vt({data:E,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===eu.ADAM7)this._png.data=b({data:E,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const E=this._inflator.result,re=this._frames.at(-1);re?re.data=E:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:yA.NONE,blendOp:Ju.SOURCE,data:E}),this._inflator=new lh,this._writingDataChunks=!1}}function wA(y){if(y!==1&&y!==2&&y!==4&&y!==8&&y!==16)throw new Error(`invalid bit depth: ${y}`);return y}const lA={level:3};class Eo extends null{constructor(E,re={}){var Ae;super();Pl(this,"_png");Pl(this,"_zlibOptions");Pl(this,"_colorType");Pl(this,"_interlaceMethod");this._colorType=ColorType.UNKNOWN,this._zlibOptions=wf(wf({},lA),re.zlib),this._png=this._checkData(E),this._interlaceMethod=(Ae=re.interlace==="Adam7"?InterlaceMethod.ADAM7:InterlaceMethod.NO_INTERLACE)!=null?Ae:InterlaceMethod.NO_INTERLACE,this.setBigEndian()}encode(){if(writeSignature(this),this.encodeIHDR(),this._png.palette&&(this.encodePLTE(),this._png.palette[0].length===4&&this.encodeTRNS()),this.encodeData(),this._png.text)for(const[E,re]of Object.entries(this._png.text))encodetEXt(this,E,re);return this.encodeIEND(),this.toArray()}encodeIHDR(){this.writeUint32(13),this.writeChars("IHDR"),this.writeUint32(this._png.width),this.writeUint32(this._png.height),this.writeByte(this._png.depth),this.writeByte(this._colorType),this.writeByte(CompressionMethod.DEFLATE),this.writeByte(FilterMethod.ADAPTIVE),this.writeByte(this._interlaceMethod),writeCrc(this,17)}encodeIEND(){this.writeUint32(0),this.writeChars("IEND"),writeCrc(this,4)}encodePLTE(){var re;const E=((re=this._png.palette)==null?void 0:re.length)*3;this.writeUint32(E),this.writeChars("PLTE");for(const Ae of this._png.palette)this.writeByte(Ae[0]),this.writeByte(Ae[1]),this.writeByte(Ae[2]);writeCrc(this,4+E)}encodeTRNS(){const E=this._png.palette.filter(re=>re.at(-1)!==255);this.writeUint32(E.length),this.writeChars("tRNS");for(const re of E)this.writeByte(re.at(-1));writeCrc(this,4+E.length)}encodeIDAT(E){this.writeUint32(E.length),this.writeChars("IDAT"),this.writeBytes(E),writeCrc(this,E.length+4)}encodeData(){const{width:E,height:re,channels:Ae,depth:he,data:Ze}=this._png,Pe=he<=8?Math.ceil(E*he/8)*Ae:Math.ceil(E*he/8*Ae/2),Ve=new IOBuffer().setBigEndian();let Ye=0;if(this._interlaceMethod===InterlaceMethod.NO_INTERLACE)for(let Jt=0;Jt<re;Jt++)Ve.writeByte(0),he===16?Ye=zs(Ze,Ve,Pe,Ye):Ye=nu(Ze,Ve,Pe,Ye);else this._interlaceMethod===InterlaceMethod.ADAM7&&(Ye=Of(this._png,Ze,Ve,Ye));const dt=Ve.toArray(),Tt=deflate(dt,this._zlibOptions);this.encodeIDAT(Tt)}_checkData(E){const{colorType:re,channels:Ae,depth:he}=tu(E,E.palette),Ze={width:zl(E.width,"width"),height:zl(E.height,"height"),channels:Ae,data:E.data,depth:he,text:E.text,palette:E.palette};this._colorType=re;const Pe=he<8?Math.ceil(Ze.width*he/8)*Ze.height*Ae:Ze.width*Ze.height*Ae;if(Ze.data.length!==Pe)throw new RangeError(`wrong data size. Found ${Ze.data.length}, expected ${Pe}`);return Ze}}function zl(y,z){if(Number.isInteger(y)&&y>0)return y;throw new TypeError(`${z} must be a positive integer`)}function tu(y,z){const{channels:E=4,depth:re=8}=y;if(E!==4&&E!==3&&E!==2&&E!==1)throw new RangeError(`unsupported number of channels: ${E}`);const Ae={channels:E,depth:re,colorType:ColorType.UNKNOWN};switch(E){case 4:Ae.colorType=ColorType.TRUECOLOUR_ALPHA;break;case 3:Ae.colorType=ColorType.TRUECOLOUR;break;case 1:z?Ae.colorType=ColorType.INDEXED_COLOUR:Ae.colorType=ColorType.GREYSCALE;break;case 2:Ae.colorType=ColorType.GREYSCALE_ALPHA;break;default:throw new Error("unsupported number of channels")}return Ae}function nu(y,z,E,re){for(let Ae=0;Ae<E;Ae++)z.writeByte(y[re++]);return re}function Of(y,z,E,re){const Ae=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],{width:he,height:Ze,channels:Pe,depth:Ve}=y;let Ye=0;Ve===16?Ye=Pe*Ve/8/2:Ye=Pe*Ve/8;for(let dt=0;dt<7;dt++){const Tt=Ae[dt],Jt=Math.floor((he-Tt.x+Tt.xStep-1)/Tt.xStep),At=Math.floor((Ze-Tt.y+Tt.yStep-1)/Tt.yStep);if(Jt<=0||At<=0)continue;const In=Jt*Ye;for(let xn=0;xn<At;xn++){const Nn=Tt.y+xn*Tt.yStep,dn=Ve<=8?new Uint8Array(In):new Uint16Array(In);let yr=0;for(let lr=0;lr<Jt;lr++){const Zn=Tt.x+lr*Tt.xStep;if(Zn<he&&Nn<Ze){const fi=(Nn*he+Zn)*Ye;for(let zi=0;zi<Ye;zi++)dn[yr++]=z[fi+zi]}}if(E.writeByte(0),Ve===8)E.writeBytes(dn);else if(Ve===16)for(const lr of dn)E.writeByte(lr>>8&255),E.writeByte(lr&255)}}return re}function zs(y,z,E,re){for(let Ae=0;Ae<E;Ae++)z.writeUint16(y[re++]);return re}var Bs;(function(y){y[y.UNKNOWN=0]="UNKNOWN",y[y.METRE=1]="METRE"})(Bs||(Bs={}));function ic(y,z){return new _u(y,z).decode()}function uA(y,z){return new PngEncoder(y,z).encode()}function dh(y,z){return new PngDecoder(y,z).decodeApng()}var ka=function(){return typeof window!="undefined"?window:typeof ae.g!="undefined"?ae.g:typeof self!="undefined"?self:this}();function Sc(){ka.console&&typeof ka.console.log=="function"&&ka.console.log.apply(ka.console,arguments)}var dl={log:Sc,warn:function(y){ka.console&&(typeof ka.console.warn=="function"?ka.console.warn.apply(ka.console,arguments):Sc.call(null,arguments))},error:function(y){ka.console&&(typeof ka.console.error=="function"?ka.console.error.apply(ka.console,arguments):Sc(y))}};function AA(y,z,E){var re=new XMLHttpRequest;re.open("GET",y),re.responseType="blob",re.onload=function(){_f(re.response,z,E)},re.onerror=function(){dl.error("could not download file")},re.send()}function kd(y){var z=new XMLHttpRequest;z.open("HEAD",y,!1);try{z.send()}catch(E){}return z.status>=200&&z.status<=299}function Pf(y){try{y.dispatchEvent(new MouseEvent("click"))}catch(E){var z=document.createEvent("MouseEvents");z.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),y.dispatchEvent(z)}}var _f=ka.saveAs||((typeof window=="undefined"?"undefined":(0,x.Z)(window))!=="object"||window!==ka?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(y,z,E){var re=ka.URL||ka.webkitURL,Ae=document.createElement("a");z=z||y.name||"download",Ae.download=z,Ae.rel="noopener",typeof y=="string"?(Ae.href=y,Ae.origin!==location.origin?kd(Ae.href)?AA(y,z,E):Pf(Ae,Ae.target="_blank"):Pf(Ae)):(Ae.href=re.createObjectURL(y),setTimeout(function(){re.revokeObjectURL(Ae.href)},4e4),setTimeout(function(){Pf(Ae)},0))}:"msSaveOrOpenBlob"in navigator?function(y,z,E){if(z=z||y.name||"download",typeof y=="string")if(kd(y))AA(y,z,E);else{var re=document.createElement("a");re.href=y,re.target="_blank",setTimeout(function(){Pf(re)})}else navigator.msSaveOrOpenBlob(function(Ae,he){return he===void 0?he={autoBom:!1}:(0,x.Z)(he)!=="object"&&(dl.warn("Deprecated: Expected third argument to be a object"),he={autoBom:!he}),he.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Ae.type)?new Blob(["\uFEFF",Ae],{type:Ae.type}):Ae}(y,E),z)}:function(y,z,E,re){if((re=re||open("","_blank"))&&(re.document.title=re.document.body.innerText="downloading..."),typeof y=="string")return AA(y,z,E);var Ae=y.type==="application/octet-stream",he=/constructor/i.test(ka.HTMLElement)||ka.safari,Ze=/CriOS\/[\d]+/.test(navigator.userAgent);if((Ze||Ae&&he)&&(typeof FileReader=="undefined"?"undefined":(0,x.Z)(FileReader))==="object"){var Pe=new FileReader;Pe.onloadend=function(){var dt=Pe.result;dt=Ze?dt:dt.replace(/^data:[^;]*;/,"data:attachment/file;"),re?re.location.href=dt:location=dt,re=null},Pe.readAsDataURL(y)}else{var Ve=ka.URL||ka.webkitURL,Ye=Ve.createObjectURL(y);re?re.location=Ye:location.href=Ye,re=null,setTimeout(function(){Ve.revokeObjectURL(Ye)},4e4)}});function Jg(y){var z;y=y||"",this.ok=!1,y.charAt(0)=="#"&&(y=y.substr(1,6)),y={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"}[y=(y=y.replace(/ /g,"")).toLowerCase()]||y;for(var E=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(Pe){return[parseInt(Pe[1]),parseInt(Pe[2]),parseInt(Pe[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(Pe){return[parseInt(Pe[1],16),parseInt(Pe[2],16),parseInt(Pe[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(Pe){return[parseInt(Pe[1]+Pe[1],16),parseInt(Pe[2]+Pe[2],16),parseInt(Pe[3]+Pe[3],16)]}}],re=0;re<E.length;re++){var Ae=E[re].re,he=E[re].process,Ze=Ae.exec(y);Ze&&(z=he(Ze),this.r=z[0],this.g=z[1],this.b=z[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 Pe=this.r.toString(16),Ve=this.g.toString(16),Ye=this.b.toString(16);return Pe.length==1&&(Pe="0"+Pe),Ve.length==1&&(Ve="0"+Ve),Ye.length==1&&(Ye="0"+Ye),"#"+Pe+Ve+Ye}}var bp=ka.atob.bind(ka),wg=ka.btoa.bind(ka);function Cp(y,z){var E=y[0],re=y[1],Ae=y[2],he=y[3];E=XA(E,re,Ae,he,z[0],7,-680876936),he=XA(he,E,re,Ae,z[1],12,-389564586),Ae=XA(Ae,he,E,re,z[2],17,606105819),re=XA(re,Ae,he,E,z[3],22,-1044525330),E=XA(E,re,Ae,he,z[4],7,-176418897),he=XA(he,E,re,Ae,z[5],12,1200080426),Ae=XA(Ae,he,E,re,z[6],17,-1473231341),re=XA(re,Ae,he,E,z[7],22,-45705983),E=XA(E,re,Ae,he,z[8],7,1770035416),he=XA(he,E,re,Ae,z[9],12,-1958414417),Ae=XA(Ae,he,E,re,z[10],17,-42063),re=XA(re,Ae,he,E,z[11],22,-1990404162),E=XA(E,re,Ae,he,z[12],7,1804603682),he=XA(he,E,re,Ae,z[13],12,-40341101),Ae=XA(Ae,he,E,re,z[14],17,-1502002290),E=UA(E,re=XA(re,Ae,he,E,z[15],22,1236535329),Ae,he,z[1],5,-165796510),he=UA(he,E,re,Ae,z[6],9,-1069501632),Ae=UA(Ae,he,E,re,z[11],14,643717713),re=UA(re,Ae,he,E,z[0],20,-373897302),E=UA(E,re,Ae,he,z[5],5,-701558691),he=UA(he,E,re,Ae,z[10],9,38016083),Ae=UA(Ae,he,E,re,z[15],14,-660478335),re=UA(re,Ae,he,E,z[4],20,-405537848),E=UA(E,re,Ae,he,z[9],5,568446438),he=UA(he,E,re,Ae,z[14],9,-1019803690),Ae=UA(Ae,he,E,re,z[3],14,-187363961),re=UA(re,Ae,he,E,z[8],20,1163531501),E=UA(E,re,Ae,he,z[13],5,-1444681467),he=UA(he,E,re,Ae,z[2],9,-51403784),Ae=UA(Ae,he,E,re,z[7],14,1735328473),E=YA(E,re=UA(re,Ae,he,E,z[12],20,-1926607734),Ae,he,z[5],4,-378558),he=YA(he,E,re,Ae,z[8],11,-2022574463),Ae=YA(Ae,he,E,re,z[11],16,1839030562),re=YA(re,Ae,he,E,z[14],23,-35309556),E=YA(E,re,Ae,he,z[1],4,-1530992060),he=YA(he,E,re,Ae,z[4],11,1272893353),Ae=YA(Ae,he,E,re,z[7],16,-155497632),re=YA(re,Ae,he,E,z[10],23,-1094730640),E=YA(E,re,Ae,he,z[13],4,681279174),he=YA(he,E,re,Ae,z[0],11,-358537222),Ae=YA(Ae,he,E,re,z[3],16,-722521979),re=YA(re,Ae,he,E,z[6],23,76029189),E=YA(E,re,Ae,he,z[9],4,-640364487),he=YA(he,E,re,Ae,z[12],11,-421815835),Ae=YA(Ae,he,E,re,z[15],16,530742520),E=JA(E,re=YA(re,Ae,he,E,z[2],23,-995338651),Ae,he,z[0],6,-198630844),he=JA(he,E,re,Ae,z[7],10,1126891415),Ae=JA(Ae,he,E,re,z[14],15,-1416354905),re=JA(re,Ae,he,E,z[5],21,-57434055),E=JA(E,re,Ae,he,z[12],6,1700485571),he=JA(he,E,re,Ae,z[3],10,-1894986606),Ae=JA(Ae,he,E,re,z[10],15,-1051523),re=JA(re,Ae,he,E,z[1],21,-2054922799),E=JA(E,re,Ae,he,z[8],6,1873313359),he=JA(he,E,re,Ae,z[15],10,-30611744),Ae=JA(Ae,he,E,re,z[6],15,-1560198380),re=JA(re,Ae,he,E,z[13],21,1309151649),E=JA(E,re,Ae,he,z[4],6,-145523070),he=JA(he,E,re,Ae,z[11],10,-1120210379),Ae=JA(Ae,he,E,re,z[2],15,718787259),re=JA(re,Ae,he,E,z[9],21,-343485551),y[0]=Md(E,y[0]),y[1]=Md(re,y[1]),y[2]=Md(Ae,y[2]),y[3]=Md(he,y[3])}function xp(y,z,E,re,Ae,he){return z=Md(Md(z,y),Md(re,he)),Md(z<<Ae|z>>>32-Ae,E)}function XA(y,z,E,re,Ae,he,Ze){return xp(z&E|~z&re,y,z,Ae,he,Ze)}function UA(y,z,E,re,Ae,he,Ze){return xp(z&re|E&~re,y,z,Ae,he,Ze)}function YA(y,z,E,re,Ae,he,Ze){return xp(z^E^re,y,z,Ae,he,Ze)}function JA(y,z,E,re,Ae,he,Ze){return xp(E^(z|~re),y,z,Ae,he,Ze)}function qg(y){var z,E=y.length,re=[1732584193,-271733879,-1732584194,271733878];for(z=64;z<=y.length;z+=64)Cp(re,eg(y.substring(z-64,z)));y=y.substring(z-64);var Ae=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(z=0;z<y.length;z++)Ae[z>>2]|=y.charCodeAt(z)<<(z%4<<3);if(Ae[z>>2]|=128<<(z%4<<3),z>55)for(Cp(re,Ae),z=0;z<16;z++)Ae[z]=0;return Ae[14]=8*E,Cp(re,Ae),re}function eg(y){var z,E=[];for(z=0;z<64;z+=4)E[z>>2]=y.charCodeAt(z)+(y.charCodeAt(z+1)<<8)+(y.charCodeAt(z+2)<<16)+(y.charCodeAt(z+3)<<24);return E}var Uc="0123456789abcdef".split("");function em(y){for(var z="",E=0;E<4;E++)z+=Uc[y>>8*E+4&15]+Uc[y>>8*E&15];return z}function tg(y){return String.fromCharCode(255&y,(65280&y)>>8,(16711680&y)>>16,(4278190080&y)>>24)}function bg(y){return qg(y).map(tg).join("")}var Hm=function(y){for(var z=0;z<y.length;z++)y[z]=em(y[z]);return y.join("")}(qg("hello"))!="5d41402abc4b2a76b9719d911017c592";function Md(y,z){if(Hm){var E=(65535&y)+(65535&z);return(y>>16)+(z>>16)+(E>>16)<<16|65535&E}return y+z&4294967295}function Tf(y,z){var E,re,Ae,he;if(y!==E){for(var Ze=(Ae=y,he=1+(256/y.length|0),new Array(he+1).join(Ae)),Pe=[],Ve=0;Ve<256;Ve++)Pe[Ve]=Ve;var Ye=0;for(Ve=0;Ve<256;Ve++){var dt=Pe[Ve];Ye=(Ye+dt+Ze.charCodeAt(Ve))%256,Pe[Ve]=Pe[Ye],Pe[Ye]=dt}E=y,re=Pe}else Pe=re;var Tt=z.length,Jt=0,At=0,In="";for(Ve=0;Ve<Tt;Ve++)At=(At+(dt=Pe[Jt=(Jt+1)%256]))%256,Pe[Jt]=Pe[At],Pe[At]=dt,Ze=Pe[(Pe[Jt]+Pe[At])%256],In+=String.fromCharCode(z.charCodeAt(Ve)^Ze);return In}var Bp={print:4,modify:8,copy:16,"annot-forms":32};function zh(y,z,E,re){this.v=1,this.r=2;var Ae=192;y.forEach(function(Pe){if(Bp.perm!==void 0)throw new Error("Invalid permission: "+Pe);Ae+=Bp[Pe]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var he=(z+this.padding).substr(0,32),Ze=(E+this.padding).substr(0,32);this.O=this.processOwnerPassword(he,Ze),this.P=-(1+(255^Ae)),this.encryptionKey=bg(he+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(re)).substr(0,5),this.U=Tf(this.encryptionKey,this.padding)}function gd(y){if(/[^\u0000-\u00ff]/.test(y))throw new Error("Invalid PDF Name Object: "+y+", Only accept ASCII characters.");for(var z="",E=y.length,re=0;re<E;re++){var Ae=y.charCodeAt(re);z+=Ae<33||Ae===35||Ae===37||Ae===40||Ae===41||Ae===47||Ae===60||Ae===62||Ae===91||Ae===93||Ae===123||Ae===125||Ae>126?"#"+("0"+Ae.toString(16)).slice(-2):y[re]}return z}function tm(y){if((0,x.Z)(y)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var z={};this.subscribe=function(E,re,Ae){if(Ae=Ae||!1,typeof E!="string"||typeof re!="function"||typeof Ae!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");z.hasOwnProperty(E)||(z[E]={});var he=Math.random().toString(35);return z[E][he]=[re,!!Ae],he},this.unsubscribe=function(E){for(var re in z)if(z[re][E])return delete z[re][E],Object.keys(z[re]).length===0&&delete z[re],!0;return!1},this.publish=function(E){if(z.hasOwnProperty(E)){var re=Array.prototype.slice.call(arguments,1),Ae=[];for(var he in z[E]){var Ze=z[E][he];try{Ze[0].apply(y,re)}catch(Pe){ka.console&&dl.error("jsPDF PubSub Error",Pe.message,Pe)}Ze[1]&&Ae.push(he)}Ae.length&&Ae.forEach(this.unsubscribe)}},this.getTopics=function(){return z}}function Ep(y){if(!(this instanceof Ep))return new Ep(y);var z="opacity,stroke-opacity".split(",");for(var E in y)y.hasOwnProperty(E)&&z.indexOf(E)>=0&&(this[E]=y[E]);this.id="",this.objectNumber=-1}function Cg(y,z){this.gState=y,this.matrix=z,this.id="",this.objectNumber=-1}function kf(y,z,E,re,Ae){if(!(this instanceof kf))return new kf(y,z,E,re,Ae);this.type=y==="axial"?2:3,this.coords=z,this.colors=E,Cg.call(this,re,Ae)}function Mf(y,z,E,re,Ae){if(!(this instanceof Mf))return new Mf(y,z,E,re,Ae);this.boundingBox=y,this.xStep=z,this.yStep=E,this.stream="",this.cloneIndex=0,Cg.call(this,re,Ae)}function Da(y){var z,E=typeof arguments[0]=="string"?arguments[0]:"p",re=arguments[1],Ae=arguments[2],he=arguments[3],Ze=[],Pe=1,Ve=16,Ye="S",dt=null;(0,x.Z)(y=y||{})==="object"&&(E=y.orientation,re=y.unit||re,Ae=y.format||Ae,he=y.compress||y.compressPdf||he,(dt=y.encryption||null)!==null&&(dt.userPassword=dt.userPassword||"",dt.ownerPassword=dt.ownerPassword||"",dt.userPermissions=dt.userPermissions||[]),Pe=typeof y.userUnit=="number"?Math.abs(y.userUnit):1,y.precision!==void 0&&(z=y.precision),y.floatPrecision!==void 0&&(Ve=y.floatPrecision),Ye=y.defaultPathOperation||"S"),Ze=y.filters||(he===!0?["FlateEncode"]:Ze),re=re||"mm",E=(""+(E||"P")).toLowerCase();var Tt=y.putOnlyUsedFonts||!1,Jt={},At={internal:{},__private__:{}};At.__private__.PubSub=tm;var In="1.3",xn=At.__private__.getPdfVersion=function(){return In};At.__private__.setPdfVersion=function(Xe){In=Xe};var Nn={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]};At.__private__.getPageFormats=function(){return Nn};var dn=At.__private__.getPageFormat=function(Xe){return Nn[Xe]};Ae=Ae||"a4";var yr="compat",lr="advanced",Zn=yr;function fi(){this.saveGraphicsState(),_n(new us(Us,0,0,-Us,0,_p()*Us).toString()+" cm"),this.setFontSize(this.getFontSize()/Us),Ye="n",Zn=lr}function zi(){this.restoreGraphicsState(),Ye="S",Zn=yr}var Ii=At.__private__.combineFontStyleAndFontWeight=function(Xe,Ht){if(Xe=="bold"&&Ht=="normal"||Xe=="bold"&&Ht==400||Xe=="normal"&&Ht=="italic"||Xe=="bold"&&Ht=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return Ht&&(Xe=Ht==400||Ht==="normal"?Xe==="italic"?"italic":"normal":Ht!=700&&Ht!=="bold"||Xe!=="normal"?(Ht==700?"bold":Ht)+""+Xe:"bold"),Xe};At.advancedAPI=function(Xe){var Ht=Zn===yr;return Ht&&fi.call(this),typeof Xe!="function"||(Xe(this),Ht&&zi.call(this)),this},At.compatAPI=function(Xe){var Ht=Zn===lr;return Ht&&zi.call(this),typeof Xe!="function"||(Xe(this),Ht&&fi.call(this)),this},At.isAdvancedAPI=function(){return Zn===lr};var Ir,Gn=function(Xe){if(Zn!==lr)throw new Error(Xe+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Gr=At.roundToPrecision=At.__private__.roundToPrecision=function(Xe,Ht){var jn=z||Ht;if(isNaN(Xe)||isNaN(jn))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return Xe.toFixed(jn).replace(/0+$/,"")};Ir=At.hpf=At.__private__.hpf=typeof Ve=="number"?function(Xe){if(isNaN(Xe))throw new Error("Invalid argument passed to jsPDF.hpf");return Gr(Xe,Ve)}:Ve==="smart"?function(Xe){if(isNaN(Xe))throw new Error("Invalid argument passed to jsPDF.hpf");return Gr(Xe,Xe>-1&&Xe<1?16:5)}:function(Xe){if(isNaN(Xe))throw new Error("Invalid argument passed to jsPDF.hpf");return Gr(Xe,16)};var An=At.f2=At.__private__.f2=function(Xe){if(isNaN(Xe))throw new Error("Invalid argument passed to jsPDF.f2");return Gr(Xe,2)},Pn=At.__private__.f3=function(Xe){if(isNaN(Xe))throw new Error("Invalid argument passed to jsPDF.f3");return Gr(Xe,3)},pr=At.scale=At.__private__.scale=function(Xe){if(isNaN(Xe))throw new Error("Invalid argument passed to jsPDF.scale");return Zn===yr?Xe*Us:Zn===lr?Xe:void 0},cr=function(Xe){return pr(function(Ht){return Zn===yr?_p()-Ht:Zn===lr?Ht:void 0}(Xe))};At.__private__.setPrecision=At.setPrecision=function(Xe){typeof parseInt(Xe,10)=="number"&&(z=parseInt(Xe,10))};var vi,Fi="00000000000000000000000000000000",Oi=At.__private__.getFileId=function(){return Fi},Ai=At.__private__.setFileId=function(Xe){return Fi=Xe!==void 0&&/^[a-fA-F0-9]{32}$/.test(Xe)?Xe.toUpperCase():Fi.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),dt!==null&&(RA=new zh(dt.userPermissions,dt.userPassword,dt.ownerPassword,Fi)),Fi};At.setFileId=function(Xe){return Ai(Xe),this},At.getFileId=function(){return Oi()};var _i=At.__private__.convertDateToPDFDate=function(Xe){var Ht=Xe.getTimezoneOffset(),jn=Ht<0?"+":"-",hr=Math.floor(Math.abs(Ht/60)),$r=Math.abs(Ht%60),Wi=[jn,ir(hr),"'",ir($r),"'"].join("");return["D:",Xe.getFullYear(),ir(Xe.getMonth()+1),ir(Xe.getDate()),ir(Xe.getHours()),ir(Xe.getMinutes()),ir(Xe.getSeconds()),Wi].join("")},Po=At.__private__.convertPDFDateToDate=function(Xe){var Ht=parseInt(Xe.substr(2,4),10),jn=parseInt(Xe.substr(6,2),10)-1,hr=parseInt(Xe.substr(8,2),10),$r=parseInt(Xe.substr(10,2),10),Wi=parseInt(Xe.substr(12,2),10),io=parseInt(Xe.substr(14,2),10);return new Date(Ht,jn,hr,$r,Wi,io,0)},ro=At.__private__.setCreationDate=function(Xe){var Ht;if(Xe===void 0&&(Xe=new Date),Xe instanceof Date)Ht=_i(Xe);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(Xe))throw new Error("Invalid argument passed to jsPDF.setCreationDate");Ht=Xe}return vi=Ht},on=At.__private__.getCreationDate=function(Xe){var Ht=vi;return Xe==="jsDate"&&(Ht=Po(vi)),Ht};At.setCreationDate=function(Xe){return ro(Xe),this},At.getCreationDate=function(Xe){return on(Xe)};var zn,ir=At.__private__.padd2=function(Xe){return("0"+parseInt(Xe)).slice(-2)},br=At.__private__.padd2Hex=function(Xe){return("00"+(Xe=Xe.toString())).substr(Xe.length)},Tr=0,ei=[],Li=[],Pi=0,Xi=[],xo=[],ca=!1,ua=Li;At.__private__.setCustomOutputDestination=function(Xe){ca=!0,ua=Xe};var Ga=function(Xe){ca||(ua=Xe)};At.__private__.resetCustomOutputDestination=function(){ca=!1,ua=Li};var _n=At.__private__.out=function(Xe){return Xe=Xe.toString(),Pi+=Xe.length+1,ua.push(Xe),ua},da=At.__private__.write=function(Xe){return _n(arguments.length===1?Xe.toString():Array.prototype.join.call(arguments," "))},Vs=At.__private__.getArrayBuffer=function(Xe){for(var Ht=Xe.length,jn=new ArrayBuffer(Ht),hr=new Uint8Array(jn);Ht--;)hr[Ht]=Xe.charCodeAt(Ht);return jn},is=[["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]];At.__private__.getStandardFonts=function(){return is};var po=y.fontSize||16;At.__private__.setFontSize=At.setFontSize=function(Xe){return po=Zn===lr?Xe/Us:Xe,this};var os,Ea=At.__private__.getFontSize=At.getFontSize=function(){return Zn===yr?po:po*Us},ns=y.R2L||!1;At.__private__.setR2L=At.setR2L=function(Xe){return ns=Xe,this},At.__private__.getR2L=At.getR2L=function(){return ns};var Xa,ru=At.__private__.setZoomMode=function(Xe){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(Xe))os=Xe;else if(isNaN(Xe)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(Xe)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+Xe+'" is not recognized.');os=Xe}else os=parseInt(Xe,10)};At.__private__.getZoomMode=function(){return os};var hl,_s=At.__private__.setPageMode=function(Xe){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(Xe)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+Xe+'" is not recognized.');Xa=Xe};At.__private__.getPageMode=function(){return Xa};var bl=At.__private__.setLayoutMode=function(Xe){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(Xe)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+Xe+'" is not recognized.');hl=Xe};At.__private__.getLayoutMode=function(){return hl},At.__private__.setDisplayMode=At.setDisplayMode=function(Xe,Ht,jn){return ru(Xe),bl(Ht),_s(jn),this};var pl={title:"",subject:"",author:"",keywords:"",creator:""};At.__private__.getDocumentProperty=function(Xe){if(Object.keys(pl).indexOf(Xe)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return pl[Xe]},At.__private__.getDocumentProperties=function(){return pl},At.__private__.setDocumentProperties=At.setProperties=At.setDocumentProperties=function(Xe){for(var Ht in pl)pl.hasOwnProperty(Ht)&&Xe[Ht]&&(pl[Ht]=Xe[Ht]);return this},At.__private__.setDocumentProperty=function(Xe,Ht){if(Object.keys(pl).indexOf(Xe)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return pl[Xe]=Ht};var Ma,Us,Qa,bA,Dl,Js={},qs={},Zu=[],Ja={},Eu={},cs={},Ts={},Wu=null,ol=0,ls=[],iu=new tm(At),Sp=y.hotfixes||[],Lc={},gh={},zf=[],us=function Xe(Ht,jn,hr,$r,Wi,io){if(!(this instanceof Xe))return new Xe(Ht,jn,hr,$r,Wi,io);isNaN(Ht)&&(Ht=1),isNaN(jn)&&(jn=0),isNaN(hr)&&(hr=0),isNaN($r)&&($r=1),isNaN(Wi)&&(Wi=0),isNaN(io)&&(io=0),this._matrix=[Ht,jn,hr,$r,Wi,io]};Object.defineProperty(us.prototype,"sx",{get:function(){return this._matrix[0]},set:function(Xe){this._matrix[0]=Xe}}),Object.defineProperty(us.prototype,"shy",{get:function(){return this._matrix[1]},set:function(Xe){this._matrix[1]=Xe}}),Object.defineProperty(us.prototype,"shx",{get:function(){return this._matrix[2]},set:function(Xe){this._matrix[2]=Xe}}),Object.defineProperty(us.prototype,"sy",{get:function(){return this._matrix[3]},set:function(Xe){this._matrix[3]=Xe}}),Object.defineProperty(us.prototype,"tx",{get:function(){return this._matrix[4]},set:function(Xe){this._matrix[4]=Xe}}),Object.defineProperty(us.prototype,"ty",{get:function(){return this._matrix[5]},set:function(Xe){this._matrix[5]=Xe}}),Object.defineProperty(us.prototype,"a",{get:function(){return this._matrix[0]},set:function(Xe){this._matrix[0]=Xe}}),Object.defineProperty(us.prototype,"b",{get:function(){return this._matrix[1]},set:function(Xe){this._matrix[1]=Xe}}),Object.defineProperty(us.prototype,"c",{get:function(){return this._matrix[2]},set:function(Xe){this._matrix[2]=Xe}}),Object.defineProperty(us.prototype,"d",{get:function(){return this._matrix[3]},set:function(Xe){this._matrix[3]=Xe}}),Object.defineProperty(us.prototype,"e",{get:function(){return this._matrix[4]},set:function(Xe){this._matrix[4]=Xe}}),Object.defineProperty(us.prototype,"f",{get:function(){return this._matrix[5]},set:function(Xe){this._matrix[5]=Xe}}),Object.defineProperty(us.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(us.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(us.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(us.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),us.prototype.join=function(Xe){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Ir).join(Xe)},us.prototype.multiply=function(Xe){var Ht=Xe.sx*this.sx+Xe.shy*this.shx,jn=Xe.sx*this.shy+Xe.shy*this.sy,hr=Xe.shx*this.sx+Xe.sy*this.shx,$r=Xe.shx*this.shy+Xe.sy*this.sy,Wi=Xe.tx*this.sx+Xe.ty*this.shx+this.tx,io=Xe.tx*this.shy+Xe.ty*this.sy+this.ty;return new us(Ht,jn,hr,$r,Wi,io)},us.prototype.decompose=function(){var Xe=this.sx,Ht=this.shy,jn=this.shx,hr=this.sy,$r=this.tx,Wi=this.ty,io=Math.sqrt(Xe*Xe+Ht*Ht),Sa=(Xe/=io)*jn+(Ht/=io)*hr;jn-=Xe*Sa,hr-=Ht*Sa;var Ua=Math.sqrt(jn*jn+hr*hr);return Sa/=Ua,Xe*(hr/=Ua)<Ht*(jn/=Ua)&&(Xe=-Xe,Ht=-Ht,Sa=-Sa,io=-io),{scale:new us(io,0,0,Ua,0,0),translate:new us(1,0,0,1,$r,Wi),rotate:new us(Xe,Ht,-Ht,Xe,0,0),skew:new us(1,0,Sa,1,0,0)}},us.prototype.toString=function(Xe){return this.join(" ")},us.prototype.inversed=function(){var Xe=this.sx,Ht=this.shy,jn=this.shx,hr=this.sy,$r=this.tx,Wi=this.ty,io=1/(Xe*hr-Ht*jn),Sa=hr*io,Ua=-Ht*io,Cs=-jn*io,Rs=Xe*io;return new us(Sa,Ua,Cs,Rs,-Sa*$r-Cs*Wi,-Ua*$r-Rs*Wi)},us.prototype.applyToPoint=function(Xe){var Ht=Xe.x*this.sx+Xe.y*this.shx+this.tx,jn=Xe.x*this.shy+Xe.y*this.sy+this.ty;return new xh(Ht,jn)},us.prototype.applyToRectangle=function(Xe){var Ht=this.applyToPoint(Xe),jn=this.applyToPoint(new xh(Xe.x+Xe.w,Xe.y+Xe.h));return new Og(Ht.x,Ht.y,jn.x-Ht.x,jn.y-Ht.y)},us.prototype.clone=function(){var Xe=this.sx,Ht=this.shy,jn=this.shx,hr=this.sy,$r=this.tx,Wi=this.ty;return new us(Xe,Ht,jn,hr,$r,Wi)},At.Matrix=us;var mh=At.matrixMult=function(Xe,Ht){return Ht.multiply(Xe)},vh=new us(1,0,0,1,0,0);At.unitMatrix=At.identityMatrix=vh;var jd=function(Xe,Ht){if(!Eu[Xe]){var jn=(Ht instanceof kf?"Sh":"P")+(Object.keys(Ja).length+1).toString(10);Ht.id=jn,Eu[Xe]=jn,Ja[jn]=Ht,iu.publish("addPattern",Ht)}};At.ShadingPattern=kf,At.TilingPattern=Mf,At.addShadingPattern=function(Xe,Ht){return Gn("addShadingPattern()"),jd(Xe,Ht),this},At.beginTilingPattern=function(Xe){Gn("beginTilingPattern()"),Pg(Xe.boundingBox[0],Xe.boundingBox[1],Xe.boundingBox[2]-Xe.boundingBox[0],Xe.boundingBox[3]-Xe.boundingBox[1],Xe.matrix)},At.endTilingPattern=function(Xe,Ht){Gn("endTilingPattern()"),Ht.stream=xo[zn].join(`
`),jd(Xe,Ht),iu.publish("endTilingPattern",Ht),zf.pop().restore()};var Hd,cA=At.__private__.newObject=function(){var Xe=ec();return ac(Xe,!0),Xe},ec=At.__private__.newObjectDeferred=function(){return Tr++,ei[Tr]=function(){return Pi},Tr},ac=function(Xe,Ht){return Ht=typeof Ht=="boolean"&&Ht,ei[Xe]=Pi,Ht&&_n(Xe+" 0 obj"),Xe},Fp=At.__private__.newAdditionalObject=function(){var Xe={objId:ec(),content:""};return Xi.push(Xe),Xe},$h=ec(),df=ec(),Kf=At.__private__.decodeColorString=function(Xe){var Ht=Xe.split(" ");if(Ht.length!==2||Ht[1]!=="g"&&Ht[1]!=="G")Ht.length!==5||Ht[4]!=="k"&&Ht[4]!=="K"||(Ht=[(1-Ht[0])*(1-Ht[3]),(1-Ht[1])*(1-Ht[3]),(1-Ht[2])*(1-Ht[3]),"r"]);else{var jn=parseFloat(Ht[0]);Ht=[jn,jn,jn,"r"]}for(var hr="#",$r=0;$r<3;$r++)hr+=("0"+Math.floor(255*parseFloat(Ht[$r])).toString(16)).slice(-2);return hr},ff=At.__private__.encodeColorString=function(Xe){var Ht;typeof Xe=="string"&&(Xe={ch1:Xe});var jn=Xe.ch1,hr=Xe.ch2,$r=Xe.ch3,Wi=Xe.ch4,io=Xe.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof jn=="string"&&jn.charAt(0)!=="#"){var Sa=new Jg(jn);if(Sa.ok)jn=Sa.toHex();else if(!/^\d*\.?\d*$/.test(jn))throw new Error('Invalid color "'+jn+'" passed to jsPDF.encodeColorString.')}if(typeof jn=="string"&&/^#[0-9A-Fa-f]{3}$/.test(jn)&&(jn="#"+jn[1]+jn[1]+jn[2]+jn[2]+jn[3]+jn[3]),typeof jn=="string"&&/^#[0-9A-Fa-f]{6}$/.test(jn)){var Ua=parseInt(jn.substr(1),16);jn=Ua>>16&255,hr=Ua>>8&255,$r=255&Ua}if(hr===void 0||Wi===void 0&&jn===hr&&hr===$r)Ht=typeof jn=="string"?jn+" "+io[0]:Xe.precision===2?An(jn/255)+" "+io[0]:Pn(jn/255)+" "+io[0];else if(Wi===void 0||(0,x.Z)(Wi)==="object"){if(Wi&&!isNaN(Wi.a)&&Wi.a===0)return["1.","1.","1.",io[1]].join(" ");Ht=typeof jn=="string"?[jn,hr,$r,io[1]].join(" "):Xe.precision===2?[An(jn/255),An(hr/255),An($r/255),io[1]].join(" "):[Pn(jn/255),Pn(hr/255),Pn($r/255),io[1]].join(" ")}else Ht=typeof jn=="string"?[jn,hr,$r,Wi,io[2]].join(" "):Xe.precision===2?[An(jn),An(hr),An($r),An(Wi),io[2]].join(" "):[Pn(jn),Pn(hr),Pn($r),Pn(Wi),io[2]].join(" ");return Ht},hf=At.__private__.getFilters=function(){return Ze},Qd=At.__private__.putStream=function(Xe){var Ht=(Xe=Xe||{}).data||"",jn=Xe.filters||hf(),hr=Xe.alreadyAppliedFilters||[],$r=Xe.addLength1||!1,Wi=Ht.length,io=Xe.objectId,Sa=function(jA){return jA};if(dt!==null&&io===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");dt!==null&&(Sa=RA.encryptor(io,0));var Ua={};jn===!0&&(jn=["FlateEncode"]);var Cs=Xe.additionalKeyValues||[],Rs=(Ua=Da.API.processDataByFilters!==void 0?Da.API.processDataByFilters(Ht,jn):{data:Ht,reverseChain:[]}).reverseChain+(Array.isArray(hr)?hr.join(" "):hr.toString());if(Ua.data.length!==0&&(Cs.push({key:"Length",value:Ua.data.length}),$r===!0&&Cs.push({key:"Length1",value:Wi})),Rs.length!=0)if(Rs.split("/").length-1==1)Cs.push({key:"Filter",value:Rs});else{Cs.push({key:"Filter",value:"["+Rs+"]"});for(var Nl=0;Nl<Cs.length;Nl+=1)if(Cs[Nl].key==="DecodeParms"){for(var eA=[],NA=0;NA<Ua.reverseChain.split("/").length-1;NA+=1)eA.push("null");eA.push(Cs[Nl].value),Cs[Nl].value="["+eA.join(" ")+"]"}}_n("<<");for(var Su=0;Su<Cs.length;Su++)_n("/"+Cs[Su].key+" "+Cs[Su].value);_n(">>"),Ua.data.length!==0&&(_n("stream"),_n(Sa(Ua.data)),_n("endstream"))},Ip=At.__private__.putPage=function(Xe){var Ht=Xe.number,jn=Xe.data,hr=Xe.objId,$r=Xe.contentsObjId;ac(hr,!0),_n("<</Type /Page"),_n("/Parent "+Xe.rootDictionaryObjId+" 0 R"),_n("/Resources "+Xe.resourceDictionaryObjId+" 0 R"),_n("/MediaBox ["+parseFloat(Ir(Xe.mediaBox.bottomLeftX))+" "+parseFloat(Ir(Xe.mediaBox.bottomLeftY))+" "+Ir(Xe.mediaBox.topRightX)+" "+Ir(Xe.mediaBox.topRightY)+"]"),Xe.cropBox!==null&&_n("/CropBox ["+Ir(Xe.cropBox.bottomLeftX)+" "+Ir(Xe.cropBox.bottomLeftY)+" "+Ir(Xe.cropBox.topRightX)+" "+Ir(Xe.cropBox.topRightY)+"]"),Xe.bleedBox!==null&&_n("/BleedBox ["+Ir(Xe.bleedBox.bottomLeftX)+" "+Ir(Xe.bleedBox.bottomLeftY)+" "+Ir(Xe.bleedBox.topRightX)+" "+Ir(Xe.bleedBox.topRightY)+"]"),Xe.trimBox!==null&&_n("/TrimBox ["+Ir(Xe.trimBox.bottomLeftX)+" "+Ir(Xe.trimBox.bottomLeftY)+" "+Ir(Xe.trimBox.topRightX)+" "+Ir(Xe.trimBox.topRightY)+"]"),Xe.artBox!==null&&_n("/ArtBox ["+Ir(Xe.artBox.bottomLeftX)+" "+Ir(Xe.artBox.bottomLeftY)+" "+Ir(Xe.artBox.topRightX)+" "+Ir(Xe.artBox.topRightY)+"]"),typeof Xe.userUnit=="number"&&Xe.userUnit!==1&&_n("/UserUnit "+Xe.userUnit),iu.publish("putPage",{objId:hr,pageContext:ls[Ht],pageNumber:Ht,page:jn}),_n("/Contents "+$r+" 0 R"),_n(">>"),_n("endobj");var Wi=jn.join(`
`);return Zn===lr&&(Wi+=`
Q`),ac($r,!0),Qd({data:Wi,filters:hf(),objectId:$r}),_n("endobj"),hr},Zf=At.__private__.putPages=function(){var Xe,Ht,jn=[];for(Xe=1;Xe<=ol;Xe++)ls[Xe].objId=ec(),ls[Xe].contentsObjId=ec();for(Xe=1;Xe<=ol;Xe++)jn.push(Ip({number:Xe,data:xo[Xe],objId:ls[Xe].objId,contentsObjId:ls[Xe].contentsObjId,mediaBox:ls[Xe].mediaBox,cropBox:ls[Xe].cropBox,bleedBox:ls[Xe].bleedBox,trimBox:ls[Xe].trimBox,artBox:ls[Xe].artBox,userUnit:ls[Xe].userUnit,rootDictionaryObjId:$h,resourceDictionaryObjId:df}));ac($h,!0),_n("<</Type /Pages");var hr="/Kids [";for(Ht=0;Ht<ol;Ht++)hr+=jn[Ht]+" 0 R ";_n(hr+"]"),_n("/Count "+ol),_n(">>"),_n("endobj"),iu.publish("postPutPages")},Lp=function(Xe){iu.publish("putFont",{font:Xe,out:_n,newObject:cA,putStream:Qd}),Xe.isAlreadyPutted!==!0&&(Xe.objectNumber=cA(),_n("<<"),_n("/Type /Font"),_n("/BaseFont /"+gd(Xe.postScriptName)),_n("/Subtype /Type1"),typeof Xe.encoding=="string"&&_n("/Encoding /"+Xe.encoding),_n("/FirstChar 32"),_n("/LastChar 255"),_n(">>"),_n("endobj"))},rg=function(Xe){Xe.objectNumber=cA();var Ht=[];Ht.push({key:"Type",value:"/XObject"}),Ht.push({key:"Subtype",value:"/Form"}),Ht.push({key:"BBox",value:"["+[Ir(Xe.x),Ir(Xe.y),Ir(Xe.x+Xe.width),Ir(Xe.y+Xe.height)].join(" ")+"]"}),Ht.push({key:"Matrix",value:"["+Xe.matrix.toString()+"]"});var jn=Xe.pages[1].join(`
`);Qd({data:jn,additionalKeyValues:Ht,objectId:Xe.objectNumber}),_n("endobj")},ig=function(Xe,Ht){Ht||(Ht=21);var jn=cA(),hr=function(io,Sa){var Ua,Cs=[],Rs=1/(Sa-1);for(Ua=0;Ua<1;Ua+=Rs)Cs.push(Ua);if(Cs.push(1),io[0].offset!=0){var Nl={offset:0,color:io[0].color};io.unshift(Nl)}if(io[io.length-1].offset!=1){var eA={offset:1,color:io[io.length-1].color};io.push(eA)}for(var NA="",Su=0,jA=0;jA<Cs.length;jA++){for(Ua=Cs[jA];Ua>io[Su+1].offset;)Su++;var OA=io[Su].offset,sc=(Ua-OA)/(io[Su+1].offset-OA),Sh=io[Su].color,gf=io[Su+1].color;NA+=br(Math.round((1-sc)*Sh[0]+sc*gf[0]).toString(16))+br(Math.round((1-sc)*Sh[1]+sc*gf[1]).toString(16))+br(Math.round((1-sc)*Sh[2]+sc*gf[2]).toString(16))}return NA.trim()}(Xe.colors,Ht),$r=[];$r.push({key:"FunctionType",value:"0"}),$r.push({key:"Domain",value:"[0.0 1.0]"}),$r.push({key:"Size",value:"["+Ht+"]"}),$r.push({key:"BitsPerSample",value:"8"}),$r.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),$r.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Qd({data:hr,additionalKeyValues:$r,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:jn}),_n("endobj"),Xe.objectNumber=cA(),_n("<< /ShadingType "+Xe.type),_n("/ColorSpace /DeviceRGB");var Wi="/Coords ["+Ir(parseFloat(Xe.coords[0]))+" "+Ir(parseFloat(Xe.coords[1]))+" ";Xe.type===2?Wi+=Ir(parseFloat(Xe.coords[2]))+" "+Ir(parseFloat(Xe.coords[3])):Wi+=Ir(parseFloat(Xe.coords[2]))+" "+Ir(parseFloat(Xe.coords[3]))+" "+Ir(parseFloat(Xe.coords[4]))+" "+Ir(parseFloat(Xe.coords[5])),_n(Wi+="]"),Xe.matrix&&_n("/Matrix ["+Xe.matrix.toString()+"]"),_n("/Function "+jn+" 0 R"),_n("/Extend [true true]"),_n(">>"),_n("endobj")},og=function(Xe,Ht){var jn=ec(),hr=cA();Ht.push({resourcesOid:jn,objectOid:hr}),Xe.objectNumber=hr;var $r=[];$r.push({key:"Type",value:"/Pattern"}),$r.push({key:"PatternType",value:"1"}),$r.push({key:"PaintType",value:"1"}),$r.push({key:"TilingType",value:"1"}),$r.push({key:"BBox",value:"["+Xe.boundingBox.map(Ir).join(" ")+"]"}),$r.push({key:"XStep",value:Ir(Xe.xStep)}),$r.push({key:"YStep",value:Ir(Xe.yStep)}),$r.push({key:"Resources",value:jn+" 0 R"}),Xe.matrix&&$r.push({key:"Matrix",value:"["+Xe.matrix.toString()+"]"}),Qd({data:Xe.stream,additionalKeyValues:$r,objectId:Xe.objectNumber}),_n("endobj")},Gm=function(Xe){for(var Ht in Xe.objectNumber=cA(),_n("<<"),Xe)switch(Ht){case"opacity":_n("/ca "+An(Xe[Ht]));break;case"stroke-opacity":_n("/CA "+An(Xe[Ht]))}_n(">>"),_n("endobj")},Bg=function(Xe){ac(Xe.resourcesOid,!0),_n("<<"),_n("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var Ht in _n("/Font <<"),Js)Js.hasOwnProperty(Ht)&&(Tt===!1||Tt===!0&&Jt.hasOwnProperty(Ht))&&_n("/"+Ht+" "+Js[Ht].objectNumber+" 0 R");_n(">>")}(),function(){if(Object.keys(Ja).length>0){for(var Ht in _n("/Shading <<"),Ja)Ja.hasOwnProperty(Ht)&&Ja[Ht]instanceof kf&&Ja[Ht].objectNumber>=0&&_n("/"+Ht+" "+Ja[Ht].objectNumber+" 0 R");iu.publish("putShadingPatternDict"),_n(">>")}}(),function(Ht){if(Object.keys(Ja).length>0){for(var jn in _n("/Pattern <<"),Ja)Ja.hasOwnProperty(jn)&&Ja[jn]instanceof At.TilingPattern&&Ja[jn].objectNumber>=0&&Ja[jn].objectNumber<Ht&&_n("/"+jn+" "+Ja[jn].objectNumber+" 0 R");iu.publish("putTilingPatternDict"),_n(">>")}}(Xe.objectOid),function(){if(Object.keys(cs).length>0){var Ht;for(Ht in _n("/ExtGState <<"),cs)cs.hasOwnProperty(Ht)&&cs[Ht].objectNumber>=0&&_n("/"+Ht+" "+cs[Ht].objectNumber+" 0 R");iu.publish("putGStateDict"),_n(">>")}}(),function(){for(var Ht in _n("/XObject <<"),Lc)Lc.hasOwnProperty(Ht)&&Lc[Ht].objectNumber>=0&&_n("/"+Ht+" "+Lc[Ht].objectNumber+" 0 R");iu.publish("putXobjectDict"),_n(">>")}(),_n(">>"),_n("endobj")},im=function(Xe){qs[Xe.fontName]=qs[Xe.fontName]||{},qs[Xe.fontName][Xe.fontStyle]=Xe.id},om=function(Xe,Ht,jn,hr,$r){var Wi={id:"F"+(Object.keys(Js).length+1).toString(10),postScriptName:Xe,fontName:Ht,fontStyle:jn,encoding:hr,isStandardFont:$r||!1,metadata:{}};return iu.publish("addFont",{font:Wi,instance:this}),Js[Wi.id]=Wi,im(Wi),Wi.id},zd=At.__private__.pdfEscape=At.pdfEscape=function(Xe,Ht){return function(jn,hr){var $r,Wi,io,Sa,Ua,Cs,Rs,Nl,eA;if(io=(hr=hr||{}).sourceEncoding||"Unicode",Ua=hr.outputEncoding,(hr.autoencode||Ua)&&Js[Ma].metadata&&Js[Ma].metadata[io]&&Js[Ma].metadata[io].encoding&&(Sa=Js[Ma].metadata[io].encoding,!Ua&&Js[Ma].encoding&&(Ua=Js[Ma].encoding),!Ua&&Sa.codePages&&(Ua=Sa.codePages[0]),typeof Ua=="string"&&(Ua=Sa[Ua]),Ua)){for(Rs=!1,Cs=[],$r=0,Wi=jn.length;$r<Wi;$r++)(Nl=Ua[jn.charCodeAt($r)])?Cs.push(String.fromCharCode(Nl)):Cs.push(jn[$r]),Cs[$r].charCodeAt(0)>>8&&(Rs=!0);jn=Cs.join("")}for($r=jn.length;Rs===void 0&&$r!==0;)jn.charCodeAt($r-1)>>8&&(Rs=!0),$r--;if(!Rs)return jn;for(Cs=hr.noBOM?[]:[254,255],$r=0,Wi=jn.length;$r<Wi;$r++){if((eA=(Nl=jn.charCodeAt($r))>>8)>>8)throw new Error("Character at position "+$r+" of string '"+jn+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Cs.push(eA),Cs.push(Nl-(eA<<8))}return String.fromCharCode.apply(void 0,Cs)}(Xe,Ht).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Eg=At.__private__.beginPage=function(Xe){xo[++ol]=[],ls[ol]={objId:0,contentsObjId:0,userUnit:Number(Pe),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(Xe[0]),topRightY:Number(Xe[1])}},sm(ol),Ga(xo[zn])},am=function(Xe,Ht){var jn,hr,$r;switch(E=Ht||E,typeof Xe=="string"&&(jn=dn(Xe.toLowerCase()),Array.isArray(jn)&&(hr=jn[0],$r=jn[1])),Array.isArray(Xe)&&(hr=Xe[0]*Us,$r=Xe[1]*Us),isNaN(hr)&&(hr=Ae[0],$r=Ae[1]),(hr>14400||$r>14400)&&(dl.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),hr=Math.min(14400,hr),$r=Math.min(14400,$r)),Ae=[hr,$r],E.substr(0,1)){case"l":$r>hr&&(Ae=[$r,hr]);break;case"p":hr>$r&&(Ae=[$r,hr])}Eg(Ae),Es(Ig),_n(ug),Dg!==0&&_n(Dg+" J"),Ng!==0&&_n(Ng+" j"),iu.publish("addPage",{pageNumber:ol})},Sg=function(Xe){Xe>0&&Xe<=ol&&(xo.splice(Xe,1),ls.splice(Xe,1),ol--,zn>ol&&(zn=ol),this.setPage(zn))},sm=function(Xe){Xe>0&&Xe<=ol&&(zn=Xe)},lm=At.__private__.getNumberOfPages=At.getNumberOfPages=function(){return xo.length-1},um=function(Xe,Ht,jn){var hr,$r=void 0;return jn=jn||{},Xe=Xe!==void 0?Xe:Js[Ma].fontName,Ht=Ht!==void 0?Ht:Js[Ma].fontStyle,hr=Xe.toLowerCase(),qs[hr]!==void 0&&qs[hr][Ht]!==void 0?$r=qs[hr][Ht]:qs[Xe]!==void 0&&qs[Xe][Ht]!==void 0?$r=qs[Xe][Ht]:jn.disableWarning===!1&&dl.warn("Unable to look up font label for font '"+Xe+"', '"+Ht+"'. Refer to getFontList() for available fonts."),$r||jn.noFallback||($r=qs.times[Ht])==null&&($r=qs.times.normal),$r},Wf=At.__private__.putInfo=function(){var Xe=cA(),Ht=function(hr){return hr};for(var jn in dt!==null&&(Ht=RA.encryptor(Xe,0)),_n("<<"),_n("/Producer ("+zd(Ht("jsPDF "+Da.version))+")"),pl)pl.hasOwnProperty(jn)&&pl[jn]&&_n("/"+jn.substr(0,1).toUpperCase()+jn.substr(1)+" ("+zd(Ht(pl[jn]))+")");_n("/CreationDate ("+zd(Ht(vi))+")"),_n(">>"),_n("endobj")},ag=At.__private__.putCatalog=function(Xe){var Ht=(Xe=Xe||{}).rootDictionaryObjId||$h;switch(cA(),_n("<<"),_n("/Type /Catalog"),_n("/Pages "+Ht+" 0 R"),os||(os="fullwidth"),os){case"fullwidth":_n("/OpenAction [3 0 R /FitH null]");break;case"fullheight":_n("/OpenAction [3 0 R /FitV null]");break;case"fullpage":_n("/OpenAction [3 0 R /Fit]");break;case"original":_n("/OpenAction [3 0 R /XYZ null null 1]");break;default:var jn=""+os;jn.substr(jn.length-1)==="%"&&(os=parseInt(os)/100),typeof os=="number"&&_n("/OpenAction [3 0 R /XYZ null null "+An(os)+"]")}switch(hl||(hl="continuous"),hl){case"continuous":_n("/PageLayout /OneColumn");break;case"single":_n("/PageLayout /SinglePage");break;case"two":case"twoleft":_n("/PageLayout /TwoColumnLeft");break;case"tworight":_n("/PageLayout /TwoColumnRight")}Xa&&_n("/PageMode /"+Xa),iu.publish("putCatalog"),_n(">>"),_n("endobj")},Vm=At.__private__.putTrailer=function(){_n("trailer"),_n("<<"),_n("/Size "+(Tr+1)),_n("/Root "+Tr+" 0 R"),_n("/Info "+(Tr-1)+" 0 R"),dt!==null&&_n("/Encrypt "+RA.oid+" 0 R"),_n("/ID [ <"+Fi+"> <"+Fi+"> ]"),_n(">>")},DA=At.__private__.putHeader=function(){_n("%PDF-"+In),_n("%\xBA\xDF\xAC\xE0")},Am=At.__private__.putXRef=function(){var Xe="0000000000";_n("xref"),_n("0 "+(Tr+1)),_n("0000000000 65535 f ");for(var Ht=1;Ht<=Tr;Ht++)typeof ei[Ht]=="function"?_n((Xe+ei[Ht]()).slice(-10)+" 00000 n "):ei[Ht]!==void 0?_n((Xe+ei[Ht]).slice(-10)+" 00000 n "):_n("0000000000 00000 n ")},$f=At.__private__.buildDocument=function(){var Xe;Tr=0,Pi=0,Li=[],ei=[],Xi=[],$h=ec(),df=ec(),Ga(Li),iu.publish("buildDocument"),DA(),Zf(),function(){iu.publish("putAdditionalObjects");for(var jn=0;jn<Xi.length;jn++){var hr=Xi[jn];ac(hr.objId,!0),_n(hr.content),_n("endobj")}iu.publish("postPutAdditionalObjects")}(),Xe=[],function(){for(var jn in Js)Js.hasOwnProperty(jn)&&(Tt===!1||Tt===!0&&Jt.hasOwnProperty(jn))&&Lp(Js[jn])}(),function(){var jn;for(jn in cs)cs.hasOwnProperty(jn)&&Gm(cs[jn])}(),function(){for(var jn in Lc)Lc.hasOwnProperty(jn)&&rg(Lc[jn])}(),function(jn){var hr;for(hr in Ja)Ja.hasOwnProperty(hr)&&(Ja[hr]instanceof kf?ig(Ja[hr]):Ja[hr]instanceof Mf&&og(Ja[hr],jn))}(Xe),iu.publish("putResources"),Xe.forEach(Bg),Bg({resourcesOid:df,objectOid:Number.MAX_SAFE_INTEGER}),iu.publish("postPutResources"),dt!==null&&(RA.oid=cA(),_n("<<"),_n("/Filter /Standard"),_n("/V "+RA.v),_n("/R "+RA.r),_n("/U <"+RA.toHexString(RA.U)+">"),_n("/O <"+RA.toHexString(RA.O)+">"),_n("/P "+RA.P),_n(">>"),_n("endobj")),Wf(),ag();var Ht=Pi;return Am(),Vm(),_n("startxref"),_n(""+Ht),_n("%%EOF"),Ga(xo[zn]),Li.join(`
`)},sg=At.__private__.getBlob=function(Xe){return new Blob([Vs(Xe)],{type:"application/pdf"})},cm=At.output=At.__private__.output=(Hd=function(Xe,Ht){switch(typeof(Ht=Ht||{})=="string"?Ht={filename:Ht}:Ht.filename=Ht.filename||"generated.pdf",Xe){case void 0:return $f();case"save":At.save(Ht.filename);break;case"arraybuffer":return Vs($f());case"blob":return sg($f());case"bloburi":case"bloburl":if(ka.URL!==void 0&&typeof ka.URL.createObjectURL=="function")return ka.URL&&ka.URL.createObjectURL(sg($f()))||void 0;dl.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var jn="",hr=$f();try{jn=wg(hr)}catch(NA){jn=wg(unescape(encodeURIComponent(hr)))}return"data:application/pdf;filename="+Ht.filename+";base64,"+jn;case"pdfobjectnewwindow":if(Object.prototype.toString.call(ka)==="[object Window]"){var $r="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Wi=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';Ht.pdfObjectUrl&&($r=Ht.pdfObjectUrl,Wi="");var io='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+$r+'"'+Wi+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(Ht)+");<\/script></body></html>",Sa=ka.open();return Sa!==null&&Sa.document.write(io),Sa}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(ka)==="[object Window]"){var Ua='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(Ht.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+Ht.filename+'" width="500px" height="400px" /></body></html>',Cs=ka.open();if(Cs!==null){Cs.document.write(Ua);var Rs=this;Cs.document.documentElement.querySelector("#pdfViewer").onload=function(){Cs.document.title=Ht.filename,Cs.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Rs.output("bloburl"))}}return Cs}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(ka)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Nl='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",Ht)+'"></iframe></body></html>',eA=ka.open();if(eA!==null&&(eA.document.write(Nl),eA.document.title=Ht.filename),eA||typeof safari=="undefined")return eA;break;case"datauri":case"dataurl":return ka.document.location.href=this.output("datauristring",Ht);default:return null}},Hd.foo=function(){try{return Hd.apply(this,arguments)}catch(jn){var Xe=jn.stack||"";~Xe.indexOf(" at ")&&(Xe=Xe.split(" at ")[1]);var Ht="Error in function "+Xe.split(`
`)[0].split("<")[0]+": "+jn.message;if(!ka.console)throw new Error(Ht);ka.console.error(Ht,jn),ka.alert&&alert(Ht)}},Hd.foo.bar=Hd,Hd.foo),Kd=function(Xe){return Array.isArray(Sp)===!0&&Sp.indexOf(Xe)>-1};switch(re){case"pt":Us=1;break;case"mm":Us=72/25.4;break;case"cm":Us=72/2.54;break;case"in":Us=72;break;case"px":Us=Kd("px_scaling")==1?.75:96/72;break;case"pc":case"em":Us=12;break;case"ex":Us=6;break;default:if(typeof re!="number")throw new Error("Invalid unit: "+re);Us=re}var RA=null;ro(),Ai();var yh=At.__private__.getPageInfo=At.getPageInfo=function(Xe){if(isNaN(Xe)||Xe%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:ls[Xe].objId,pageNumber:Xe,pageContext:ls[Xe]}},dm=At.__private__.getPageInfoByObjId=function(Xe){if(isNaN(Xe)||Xe%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var Ht in ls)if(ls[Ht].objId===Xe)break;return yh(Ht)},Xm=At.__private__.getCurrentPageInfo=At.getCurrentPageInfo=function(){return{objId:ls[zn].objId,pageNumber:zn,pageContext:ls[zn]}};At.addPage=function(){return am.apply(this,arguments),this},At.setPage=function(){return sm.apply(this,arguments),Ga.call(this,xo[zn]),this},At.insertPage=function(Xe){return this.addPage(),this.movePage(zn,Xe),this},At.movePage=function(Xe,Ht){var jn,hr;if(Xe>Ht){jn=xo[Xe],hr=ls[Xe];for(var $r=Xe;$r>Ht;$r--)xo[$r]=xo[$r-1],ls[$r]=ls[$r-1];xo[Ht]=jn,ls[Ht]=hr,this.setPage(Ht)}else if(Xe<Ht){jn=xo[Xe],hr=ls[Xe];for(var Wi=Xe;Wi<Ht;Wi++)xo[Wi]=xo[Wi+1],ls[Wi]=ls[Wi+1];xo[Ht]=jn,ls[Ht]=hr,this.setPage(Ht)}return this},At.deletePage=function(){return Sg.apply(this,arguments),this},At.__private__.text=At.text=function(Xe,Ht,jn,hr,$r){var Wi,io,Sa,Ua,Cs,Rs,Nl,eA,NA,Su=(hr=hr||{}).scope||this;if(typeof Xe=="number"&&typeof Ht=="number"&&(typeof jn=="string"||Array.isArray(jn))){var jA=jn;jn=Ht,Ht=Xe,Xe=jA}if(arguments[3]instanceof us==0?(Sa=arguments[4],Ua=arguments[5],(0,x.Z)(Nl=arguments[3])==="object"&&Nl!==null||(typeof Sa=="string"&&(Ua=Sa,Sa=null),typeof Nl=="string"&&(Ua=Nl,Nl=null),typeof Nl=="number"&&(Sa=Nl,Nl=null),hr={flags:Nl,angle:Sa,align:Ua})):(Gn("The transform parameter of text() with a Matrix value"),NA=$r),isNaN(Ht)||isNaN(jn)||Xe==null)throw new Error("Invalid arguments passed to jsPDF.text");if(Xe.length===0)return Su;var OA,sc="",Sh=typeof hr.lineHeightFactor=="number"?hr.lineHeightFactor:Np,gf=Su.internal.scaleFactor;function Fh(ou){return ou=ou.split(" ").join(Array(hr.TabLen||9).join(" ")),zd(ou,Nl)}function Tg(ou){for(var yu,xA=ou.concat(),HA=[],Dh=xA.length;Dh--;)typeof(yu=xA.shift())=="string"?HA.push(yu):Array.isArray(ou)&&(yu.length===1||yu[1]===void 0&&yu[2]===void 0)?HA.push(yu[0]):HA.push([yu[0],yu[1],yu[2]]);return HA}function cg(ou,yu){var xA;if(typeof ou=="string")xA=yu(ou)[0];else if(Array.isArray(ou)){for(var HA,Dh,Zg=ou.concat(),hg=[],xm=Zg.length;xm--;)typeof(HA=Zg.shift())=="string"?hg.push(yu(HA)[0]):Array.isArray(HA)&&typeof HA[0]=="string"&&(Dh=yu(HA[0],HA[1],HA[2]),hg.push([Dh[0],Dh[1],Dh[2]]));xA=hg}return xA}var Gh=!1,Tp=!0;if(typeof Xe=="string")Gh=!0;else if(Array.isArray(Xe)){var kp=Xe.concat();io=[];for(var Vh,lc=kp.length;lc--;)(typeof(Vh=kp.shift())!="string"||Array.isArray(Vh)&&typeof Vh[0]!="string")&&(Tp=!1);Gh=Tp}if(Gh===!1)throw new Error('Type of text must be string or Array. "'+Xe+'" is not recognized.');typeof Xe=="string"&&(Xe=Xe.match(/[\r?\n]/)?Xe.split(/\r\n|\r|\n/g):[Xe]);var Mp=po/Su.internal.scaleFactor,Up=Mp*(Sh-1);switch(hr.baseline){case"bottom":jn-=Up;break;case"top":jn+=Mp-Up;break;case"hanging":jn+=Mp-2*Up;break;case"middle":jn+=Mp/2-Up}if((Rs=hr.maxWidth||0)>0&&(typeof Xe=="string"?Xe=Su.splitTextToSize(Xe,Rs):Object.prototype.toString.call(Xe)==="[object Array]"&&(Xe=Xe.reduce(function(ou,yu){return ou.concat(Su.splitTextToSize(yu,Rs))},[]))),Wi={text:Xe,x:Ht,y:jn,options:hr,mutex:{pdfEscape:zd,activeFontKey:Ma,fonts:Js,activeFontSize:po}},iu.publish("preProcessText",Wi),Xe=Wi.text,Sa=(hr=Wi.options).angle,NA instanceof us==0&&Sa&&typeof Sa=="number"){Sa*=Math.PI/180,hr.rotationDirection===0&&(Sa=-Sa),Zn===lr&&(Sa=-Sa);var kg=Math.cos(Sa),Mg=Math.sin(Sa);NA=new us(kg,Mg,-Mg,kg,0,0)}else Sa&&Sa instanceof us&&(NA=Sa);Zn!==lr||NA||(NA=vh),(Cs=hr.charSpace||Ch)!==void 0&&(sc+=Ir(pr(Cs))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(eA=hr.horizontalScale)!==void 0&&(sc+=Ir(100*eA)+` Tz
`),hr.lang;var jc=-1,Ih=hr.renderingMode!==void 0?hr.renderingMode:hr.stroke,dg=Su.internal.getCurrentPageInfo().pageContext;switch(Ih){case 0:case!1:case"fill":jc=0;break;case 1:case!0:case"stroke":jc=1;break;case 2:case"fillThenStroke":jc=2;break;case 3:case"invisible":jc=3;break;case 4:case"fillAndAddForClipping":jc=4;break;case 5:case"strokeAndAddPathForClipping":jc=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":jc=6;break;case 7:case"addToPathForClipping":jc=7}var bm=dg.usedRenderingMode!==void 0?dg.usedRenderingMode:-1;jc!==-1?sc+=jc+` Tr
`:bm!==-1&&(sc+=`0 Tr
`),jc!==-1&&(dg.usedRenderingMode=jc),Ua=hr.align||"left";var Zd,Rp=po*Sh,Ug=Su.internal.pageSize.getWidth(),Rg=Js[Ma];Cs=hr.charSpace||Ch,Rs=hr.maxWidth||0,Nl=Object.assign({autoencode:!0,noBOM:!0},hr.flags);var Xh=[],jp=function(ou){return Su.getStringUnitWidth(ou,{font:Rg,charSpace:Cs,fontSize:po,doKerning:!1})*po/gf};if(Object.prototype.toString.call(Xe)==="[object Array]"){var md;io=Tg(Xe),Ua!=="left"&&(Zd=io.map(jp));var vd,Yh=0;if(Ua==="right"){Ht-=Zd[0],Xe=[],lc=io.length;for(var Lh=0;Lh<lc;Lh++)Lh===0?(vd=wh(Ht),md=bh(jn)):(vd=pr(Yh-Zd[Lh]),md=-Rp),Xe.push([io[Lh],vd,md]),Yh=Zd[Lh]}else if(Ua==="center"){Ht-=Zd[0]/2,Xe=[],lc=io.length;for(var Jh=0;Jh<lc;Jh++)Jh===0?(vd=wh(Ht),md=bh(jn)):(vd=pr((Yh-Zd[Jh])/2),md=-Rp),Xe.push([io[Jh],vd,md]),Yh=Zd[Jh]}else if(Ua==="left"){Xe=[],lc=io.length;for(var jg=0;jg<lc;jg++)Xe.push(io[jg])}else if(Ua==="justify"&&Rg.encoding==="Identity-H"){Xe=[],lc=io.length,Rs=Rs!==0?Rs:Ug;for(var fg=0,CA=0;CA<lc;CA++)if(md=CA===0?bh(jn):-Rp,vd=CA===0?wh(Ht):fg,CA<lc-1){var Cm=pr((Rs-Zd[CA])/(io[CA].split(" ").length-1)),Vf=io[CA].split(" ");Xe.push([Vf[0]+" ",vd,md]),fg=0;for(var Xf=1;Xf<Vf.length;Xf++){var Hg=(jp(Vf[Xf-1]+" "+Vf[Xf])-jp(Vf[Xf]))*gf+Cm;Xf==Vf.length-1?Xe.push([Vf[Xf],Hg,0]):Xe.push([Vf[Xf]+" ",Hg,0]),fg-=Hg}}else Xe.push([io[CA],vd,md]);Xe.push(["",fg,0])}else{if(Ua!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(Xe=[],lc=io.length,Rs=Rs!==0?Rs:Ug,CA=0;CA<lc;CA++){md=CA===0?bh(jn):-Rp,vd=CA===0?wh(Ht):0;var Qg=io[CA].split(" ").length-1,zg=Qg>0?(Rs-Zd[CA])/Qg:0;CA<lc-1?Xh.push(Ir(pr(zg))):Xh.push(0),Xe.push([io[CA],vd,md])}}}(typeof hr.R2L=="boolean"?hr.R2L:ns)===!0&&(Xe=cg(Xe,function(ou,yu,xA){return[ou.split("").reverse().join(""),yu,xA]})),Wi={text:Xe,x:Ht,y:jn,options:hr,mutex:{pdfEscape:zd,activeFontKey:Ma,fonts:Js,activeFontSize:po}},iu.publish("postProcessText",Wi),Xe=Wi.text,OA=Wi.mutex.isHex||!1;var Kg=Js[Ma].encoding;Kg!=="WinAnsiEncoding"&&Kg!=="StandardEncoding"||(Xe=cg(Xe,function(ou,yu,xA){return[Fh(ou),yu,xA]})),io=Tg(Xe),Xe=[];for(var qh,ep,tp,Hp=Array.isArray(io[0])?1:0,np="",Qp=function(ou,yu,xA){var HA="";return xA instanceof us?(xA=typeof hr.angle=="number"?mh(xA,new us(1,0,0,1,ou,yu)):mh(new us(1,0,0,1,ou,yu),xA),Zn===lr&&(xA=mh(new us(1,0,0,-1,0,0),xA)),HA=xA.join(" ")+` Tm
`):HA=Ir(ou)+" "+Ir(yu)+` Td
`,HA},Wd=0;Wd<io.length;Wd++){switch(np="",Hp){case 1:tp=(OA?"<":"(")+io[Wd][0]+(OA?">":")"),qh=parseFloat(io[Wd][1]),ep=parseFloat(io[Wd][2]);break;case 0:tp=(OA?"<":"(")+io[Wd]+(OA?">":")"),qh=wh(Ht),ep=bh(jn)}Xh!==void 0&&Xh[Wd]!==void 0&&(np=Xh[Wd]+` Tw
`),Wd===0?Xe.push(np+Qp(qh,ep,NA)+tp):Hp===0?Xe.push(np+tp):Hp===1&&Xe.push(np+Qp(qh,ep,NA)+tp)}Xe=Hp===0?Xe.join(` Tj
T* `):Xe.join(` Tj
`),Xe+=` Tj
`;var Yf=`BT
/`;return Yf+=Ma+" "+po+` Tf
`,Yf+=Ir(po*Sh)+` TL
`,Yf+=Op+`
`,Yf+=sc,Yf+=Xe,_n(Yf+="ET"),Jt[Ma]=!0,Su};var Ym=At.__private__.clip=At.clip=function(Xe){return _n(Xe==="evenodd"?"W*":"W"),this};At.clipEvenOdd=function(){return Ym("evenodd")},At.__private__.discardPath=At.discardPath=function(){return _n("n"),this};var Gf=At.__private__.isValidStyle=function(Xe){var Ht=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(Xe)!==-1&&(Ht=!0),Ht};At.__private__.setDefaultPathOperation=At.setDefaultPathOperation=function(Xe){return Gf(Xe)&&(Ye=Xe),this};var fm=At.__private__.getStyle=At.getStyle=function(Xe){var Ht=Ye;switch(Xe){case"D":case"S":Ht="S";break;case"F":Ht="f";break;case"FD":case"DF":Ht="B";break;case"f":case"f*":case"B":case"B*":Ht=Xe}return Ht},hm=At.close=function(){return _n("h"),this};At.stroke=function(){return _n("S"),this},At.fill=function(Xe){return lg("f",Xe),this},At.fillEvenOdd=function(Xe){return lg("f*",Xe),this},At.fillStroke=function(Xe){return lg("B",Xe),this},At.fillStrokeEvenOdd=function(Xe){return lg("B*",Xe),this};var lg=function(Xe,Ht){(0,x.Z)(Ht)==="object"?qm(Ht,Xe):_n(Xe)},Dp=function(Xe){Xe===null||Zn===lr&&Xe===void 0||(Xe=fm(Xe),_n(Xe))};function Jm(Xe,Ht,jn,hr,$r){var Wi=new Mf(Ht||this.boundingBox,jn||this.xStep,hr||this.yStep,this.gState,$r||this.matrix);Wi.stream=this.stream;var io=Xe+"$$"+this.cloneIndex+++"$$";return jd(io,Wi),Wi}var qm=function(Xe,Ht){var jn=Eu[Xe.key],hr=Ja[jn];if(hr instanceof kf)_n("q"),_n(e0(Ht)),hr.gState&&At.setGState(hr.gState),_n(Xe.matrix.toString()+" cm"),_n("/"+jn+" sh"),_n("Q");else if(hr instanceof Mf){var $r=new us(1,0,0,-1,0,_p());Xe.matrix&&($r=$r.multiply(Xe.matrix||vh),jn=Jm.call(hr,Xe.key,Xe.boundingBox,Xe.xStep,Xe.yStep,$r).id),_n("q"),_n("/Pattern cs"),_n("/"+jn+" scn"),hr.gState&&At.setGState(hr.gState),_n(Ht),_n("Q")}},e0=function(Xe){switch(Xe){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Fg=At.moveTo=function(Xe,Ht){return _n(Ir(pr(Xe))+" "+Ir(cr(Ht))+" m"),this},pm=At.lineTo=function(Xe,Ht){return _n(Ir(pr(Xe))+" "+Ir(cr(Ht))+" l"),this},pf=At.curveTo=function(Xe,Ht,jn,hr,$r,Wi){return _n([Ir(pr(Xe)),Ir(cr(Ht)),Ir(pr(jn)),Ir(cr(hr)),Ir(pr($r)),Ir(cr(Wi)),"c"].join(" ")),this};At.__private__.line=At.line=function(Xe,Ht,jn,hr,$r){if(isNaN(Xe)||isNaN(Ht)||isNaN(jn)||isNaN(hr)||!Gf($r))throw new Error("Invalid arguments passed to jsPDF.line");return Zn===yr?this.lines([[jn-Xe,hr-Ht]],Xe,Ht,[1,1],$r||"S"):this.lines([[jn-Xe,hr-Ht]],Xe,Ht,[1,1]).stroke()},At.__private__.lines=At.lines=function(Xe,Ht,jn,hr,$r,Wi){var io,Sa,Ua,Cs,Rs,Nl,eA,NA,Su,jA,OA,sc;if(typeof Xe=="number"&&(sc=jn,jn=Ht,Ht=Xe,Xe=sc),hr=hr||[1,1],Wi=Wi||!1,isNaN(Ht)||isNaN(jn)||!Array.isArray(Xe)||!Array.isArray(hr)||!Gf($r)||typeof Wi!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Fg(Ht,jn),io=hr[0],Sa=hr[1],Cs=Xe.length,jA=Ht,OA=jn,Ua=0;Ua<Cs;Ua++)(Rs=Xe[Ua]).length===2?(jA=Rs[0]*io+jA,OA=Rs[1]*Sa+OA,pm(jA,OA)):(Nl=Rs[0]*io+jA,eA=Rs[1]*Sa+OA,NA=Rs[2]*io+jA,Su=Rs[3]*Sa+OA,jA=Rs[4]*io+jA,OA=Rs[5]*Sa+OA,pf(Nl,eA,NA,Su,jA,OA));return Wi&&hm(),Dp($r),this},At.path=function(Xe){for(var Ht=0;Ht<Xe.length;Ht++){var jn=Xe[Ht],hr=jn.c;switch(jn.op){case"m":Fg(hr[0],hr[1]);break;case"l":pm(hr[0],hr[1]);break;case"c":pf.apply(this,hr);break;case"h":hm()}}return this},At.__private__.rect=At.rect=function(Xe,Ht,jn,hr,$r){if(isNaN(Xe)||isNaN(Ht)||isNaN(jn)||isNaN(hr)||!Gf($r))throw new Error("Invalid arguments passed to jsPDF.rect");return Zn===yr&&(hr=-hr),_n([Ir(pr(Xe)),Ir(cr(Ht)),Ir(pr(jn)),Ir(pr(hr)),"re"].join(" ")),Dp($r),this},At.__private__.triangle=At.triangle=function(Xe,Ht,jn,hr,$r,Wi,io){if(isNaN(Xe)||isNaN(Ht)||isNaN(jn)||isNaN(hr)||isNaN($r)||isNaN(Wi)||!Gf(io))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[jn-Xe,hr-Ht],[$r-jn,Wi-hr],[Xe-$r,Ht-Wi]],Xe,Ht,[1,1],io,!0),this},At.__private__.roundedRect=At.roundedRect=function(Xe,Ht,jn,hr,$r,Wi,io){if(isNaN(Xe)||isNaN(Ht)||isNaN(jn)||isNaN(hr)||isNaN($r)||isNaN(Wi)||!Gf(io))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Sa=4/3*(Math.SQRT2-1);return $r=Math.min($r,.5*jn),Wi=Math.min(Wi,.5*hr),this.lines([[jn-2*$r,0],[$r*Sa,0,$r,Wi-Wi*Sa,$r,Wi],[0,hr-2*Wi],[0,Wi*Sa,-$r*Sa,Wi,-$r,Wi],[2*$r-jn,0],[-$r*Sa,0,-$r,-Wi*Sa,-$r,-Wi],[0,2*Wi-hr],[0,-Wi*Sa,$r*Sa,-Wi,$r,-Wi]],Xe+$r,Ht,[1,1],io,!0),this},At.__private__.ellipse=At.ellipse=function(Xe,Ht,jn,hr,$r){if(isNaN(Xe)||isNaN(Ht)||isNaN(jn)||isNaN(hr)||!Gf($r))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Wi=4/3*(Math.SQRT2-1)*jn,io=4/3*(Math.SQRT2-1)*hr;return Fg(Xe+jn,Ht),pf(Xe+jn,Ht-io,Xe+Wi,Ht-hr,Xe,Ht-hr),pf(Xe-Wi,Ht-hr,Xe-jn,Ht-io,Xe-jn,Ht),pf(Xe-jn,Ht+io,Xe-Wi,Ht+hr,Xe,Ht+hr),pf(Xe+Wi,Ht+hr,Xe+jn,Ht+io,Xe+jn,Ht),Dp($r),this},At.__private__.circle=At.circle=function(Xe,Ht,jn,hr){if(isNaN(Xe)||isNaN(Ht)||isNaN(jn)||!Gf(hr))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(Xe,Ht,jn,jn,hr)},At.setFont=function(Xe,Ht,jn){return jn&&(Ht=Ii(Ht,jn)),Ma=um(Xe,Ht,{disableWarning:!1}),this};var t0=At.__private__.getFont=At.getFont=function(){return Js[um.apply(At,arguments)]};At.__private__.getFontList=At.getFontList=function(){var Xe,Ht,jn={};for(Xe in qs)if(qs.hasOwnProperty(Xe))for(Ht in jn[Xe]=[],qs[Xe])qs[Xe].hasOwnProperty(Ht)&&jn[Xe].push(Ht);return jn},At.addFont=function(Xe,Ht,jn,hr,$r){var Wi=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Wi.indexOf(arguments[3])!==-1?$r=arguments[3]:arguments[3]&&Wi.indexOf(arguments[3])==-1&&(jn=Ii(jn,hr)),om.call(this,Xe,Ht,jn,$r=$r||"Identity-H")};var Np,Ig=y.lineWidth||.200025,n0=At.__private__.getLineWidth=At.getLineWidth=function(){return Ig},Es=At.__private__.setLineWidth=At.setLineWidth=function(Xe){return Ig=Xe,_n(Ir(pr(Xe))+" w"),this};At.__private__.setLineDash=Da.API.setLineDash=Da.API.setLineDashPattern=function(Xe,Ht){if(Xe=Xe||[],Ht=Ht||0,isNaN(Ht)||!Array.isArray(Xe))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return Xe=Xe.map(function(jn){return Ir(pr(jn))}).join(" "),Ht=Ir(pr(Ht)),_n("["+Xe+"] "+Ht+" d"),this};var r0=At.__private__.getLineHeight=At.getLineHeight=function(){return po*Np};At.__private__.getLineHeight=At.getLineHeight=function(){return po*Np};var i0=At.__private__.setLineHeightFactor=At.setLineHeightFactor=function(Xe){return typeof(Xe=Xe||1.15)=="number"&&(Np=Xe),this},o0=At.__private__.getLineHeightFactor=At.getLineHeightFactor=function(){return Np};i0(y.lineHeight);var wh=At.__private__.getHorizontalCoordinate=function(Xe){return pr(Xe)},bh=At.__private__.getVerticalCoordinate=function(Xe){return Zn===lr?Xe:ls[zn].mediaBox.topRightY-ls[zn].mediaBox.bottomLeftY-pr(Xe)},a0=At.__private__.getHorizontalCoordinateString=At.getHorizontalCoordinateString=function(Xe){return Ir(wh(Xe))},s0=At.__private__.getVerticalCoordinateString=At.getVerticalCoordinateString=function(Xe){return Ir(bh(Xe))},ug=y.strokeColor||"0 G";At.__private__.getStrokeColor=At.getDrawColor=function(){return Kf(ug)},At.__private__.setStrokeColor=At.setDrawColor=function(Xe,Ht,jn,hr){return ug=ff({ch1:Xe,ch2:Ht,ch3:jn,ch4:hr,pdfColorType:"draw",precision:2}),_n(ug),this};var Lg=y.fillColor||"0 g";At.__private__.getFillColor=At.getFillColor=function(){return Kf(Lg)},At.__private__.setFillColor=At.setFillColor=function(Xe,Ht,jn,hr){return Lg=ff({ch1:Xe,ch2:Ht,ch3:jn,ch4:hr,pdfColorType:"fill",precision:2}),_n(Lg),this};var Op=y.textColor||"0 g",l0=At.__private__.getTextColor=At.getTextColor=function(){return Kf(Op)};At.__private__.setTextColor=At.setTextColor=function(Xe,Ht,jn,hr){return Op=ff({ch1:Xe,ch2:Ht,ch3:jn,ch4:hr,pdfColorType:"text",precision:3}),this};var Ch=y.charSpace,u0=At.__private__.getCharSpace=At.getCharSpace=function(){return parseFloat(Ch||0)};At.__private__.setCharSpace=At.setCharSpace=function(Xe){if(isNaN(Xe))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Ch=Xe,this};var Dg=0;At.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},At.__private__.setLineCap=At.setLineCap=function(Xe){var Ht=At.CapJoinStyles[Xe];if(Ht===void 0)throw new Error("Line cap style of '"+Xe+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Dg=Ht,_n(Ht+" J"),this};var Ng=0;At.__private__.setLineJoin=At.setLineJoin=function(Xe){var Ht=At.CapJoinStyles[Xe];if(Ht===void 0)throw new Error("Line join style of '"+Xe+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ng=Ht,_n(Ht+" j"),this},At.__private__.setLineMiterLimit=At.__private__.setMiterLimit=At.setLineMiterLimit=At.setMiterLimit=function(Xe){if(Xe=Xe||0,isNaN(Xe))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return _n(Ir(pr(Xe))+" M"),this},At.GState=Ep,At.setGState=function(Xe){(Xe=typeof Xe=="string"?cs[Ts[Xe]]:gm(null,Xe)).equals(Wu)||(_n("/"+Xe.id+" gs"),Wu=Xe)};var gm=function(Xe,Ht){if(!Xe||!Ts[Xe]){var jn=!1;for(var hr in cs)if(cs.hasOwnProperty(hr)&&cs[hr].equals(Ht)){jn=!0;break}if(jn)Ht=cs[hr];else{var $r="GS"+(Object.keys(cs).length+1).toString(10);cs[$r]=Ht,Ht.id=$r}return Xe&&(Ts[Xe]=Ht.id),iu.publish("addGState",Ht),Ht}};At.addGState=function(Xe,Ht){return gm(Xe,Ht),this},At.saveGraphicsState=function(){return _n("q"),Zu.push({key:Ma,size:po,color:Op}),this},At.restoreGraphicsState=function(){_n("Q");var Xe=Zu.pop();return Ma=Xe.key,po=Xe.size,Op=Xe.color,Wu=null,this},At.setCurrentTransformationMatrix=function(Xe){return _n(Xe.toString()+" cm"),this},At.comment=function(Xe){return _n("#"+Xe),this};var xh=function(Xe,Ht){var jn=Xe||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return jn},set:function(Wi){isNaN(Wi)||(jn=parseFloat(Wi))}});var hr=Ht||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return hr},set:function(Wi){isNaN(Wi)||(hr=parseFloat(Wi))}});var $r="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return $r},set:function(Wi){$r=Wi.toString()}}),this},Og=function(Xe,Ht,jn,hr){xh.call(this,Xe,Ht),this.type="rect";var $r=jn||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return $r},set:function(io){isNaN(io)||($r=parseFloat(io))}});var Wi=hr||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Wi},set:function(io){isNaN(io)||(Wi=parseFloat(io))}}),this},Ag=function(){this.page=ol,this.currentPage=zn,this.pages=xo.slice(0),this.pagesContext=ls.slice(0),this.x=Qa,this.y=bA,this.matrix=Dl,this.width=_g(zn),this.height=vm(zn),this.outputDestination=ua,this.id="",this.objectNumber=-1};Ag.prototype.restore=function(){ol=this.page,zn=this.currentPage,ls=this.pagesContext,xo=this.pages,Qa=this.x,bA=this.y,Dl=this.matrix,mm(zn,this.width),Bh(zn,this.height),ua=this.outputDestination};var Pg=function(Xe,Ht,jn,hr,$r){zf.push(new Ag),ol=zn=0,xo=[],Qa=Xe,bA=Ht,Dl=$r,Eg([jn,hr])};for(var Pp in At.beginFormObject=function(Xe,Ht,jn,hr,$r){return Pg(Xe,Ht,jn,hr,$r),this},At.endFormObject=function(Xe){return function(Ht){if(gh[Ht])zf.pop().restore();else{var jn=new Ag,hr="Xo"+(Object.keys(Lc).length+1).toString(10);jn.id=hr,gh[Ht]=hr,Lc[hr]=jn,iu.publish("addFormObject",jn),zf.pop().restore()}}(Xe),this},At.doFormObject=function(Xe,Ht){var jn=Lc[gh[Xe]];return _n("q"),_n(Ht.toString()+" cm"),_n("/"+jn.id+" Do"),_n("Q"),this},At.getFormObject=function(Xe){var Ht=Lc[gh[Xe]];return{x:Ht.x,y:Ht.y,width:Ht.width,height:Ht.height,matrix:Ht.matrix}},At.save=function(Xe,Ht){return Xe=Xe||"generated.pdf",(Ht=Ht||{}).returnPromise=Ht.returnPromise||!1,Ht.returnPromise===!1?(_f(sg($f()),Xe),typeof _f.unload=="function"&&ka.setTimeout&&setTimeout(_f.unload,911),this):new Promise(function(jn,hr){try{var $r=_f(sg($f()),Xe);typeof _f.unload=="function"&&ka.setTimeout&&setTimeout(_f.unload,911),jn($r)}catch(Wi){hr(Wi.message)}})},Da.API)Da.API.hasOwnProperty(Pp)&&(Pp==="events"&&Da.API.events.length?function(Xe,Ht){var jn,hr,$r;for($r=Ht.length-1;$r!==-1;$r--)jn=Ht[$r][0],hr=Ht[$r][1],Xe.subscribe.apply(Xe,[jn].concat(typeof hr=="function"?[hr]:hr))}(iu,Da.API.events):At[Pp]=Da.API[Pp]);function _g(Xe){return ls[Xe].mediaBox.topRightX-ls[Xe].mediaBox.bottomLeftX}function mm(Xe,Ht){ls[Xe].mediaBox.topRightX=Ht+ls[Xe].mediaBox.bottomLeftX}function vm(Xe){return ls[Xe].mediaBox.topRightY-ls[Xe].mediaBox.bottomLeftY}function Bh(Xe,Ht){ls[Xe].mediaBox.topRightY=Ht+ls[Xe].mediaBox.bottomLeftY}var Eh=At.getPageWidth=function(Xe){return _g(Xe=Xe||zn)/Us},ym=At.setPageWidth=function(Xe,Ht){mm(Xe,Ht*Us)},_p=At.getPageHeight=function(Xe){return vm(Xe=Xe||zn)/Us},wm=At.setPageHeight=function(Xe,Ht){Bh(Xe,Ht*Us)};return At.internal={pdfEscape:zd,getStyle:fm,getFont:t0,getFontSize:Ea,getCharSpace:u0,getTextColor:l0,getLineHeight:r0,getLineHeightFactor:o0,getLineWidth:n0,write:da,getHorizontalCoordinate:wh,getVerticalCoordinate:bh,getCoordinateString:a0,getVerticalCoordinateString:s0,collections:{},newObject:cA,newAdditionalObject:Fp,newObjectDeferred:ec,newObjectDeferredBegin:ac,getFilters:hf,putStream:Qd,events:iu,scaleFactor:Us,pageSize:{getWidth:function(){return Eh(zn)},setWidth:function(Xe){ym(zn,Xe)},getHeight:function(){return _p(zn)},setHeight:function(Xe){wm(zn,Xe)}},encryptionOptions:dt,encryption:RA,getEncryptor:function(Xe){return dt!==null?RA.encryptor(Xe,0):function(Ht){return Ht}},output:cm,getNumberOfPages:lm,get pages(){return xo},out:_n,f2:An,f3:Pn,getPageInfo:yh,getPageInfoByObjId:dm,getCurrentPageInfo:Xm,getPDFVersion:xn,Point:xh,Rectangle:Og,Matrix:us,hasHotfix:Kd},Object.defineProperty(At.internal.pageSize,"width",{get:function(){return Eh(zn)},set:function(Xe){ym(zn,Xe)},enumerable:!0,configurable:!0}),Object.defineProperty(At.internal.pageSize,"height",{get:function(){return _p(zn)},set:function(Xe){wm(zn,Xe)},enumerable:!0,configurable:!0}),function(Xe){for(var Ht=0,jn=is.length;Ht<jn;Ht++){var hr=om.call(this,Xe[Ht][0],Xe[Ht][1],Xe[Ht][2],is[Ht][3],!0);Tt===!1&&(Jt[hr]=!0);var $r=Xe[Ht][0].split("-");im({id:hr,fontName:$r[0],fontStyle:$r[1]||""})}iu.publish("addFonts",{fonts:Js,dictionary:qs})}.call(At,is),Ma="F1",am(Ae,E),iu.publish("initialized"),At}zh.prototype.lsbFirstWord=function(y){return String.fromCharCode(255&y,y>>8&255,y>>16&255,y>>24&255)},zh.prototype.toHexString=function(y){return y.split("").map(function(z){return("0"+(255&z.charCodeAt(0)).toString(16)).slice(-2)}).join("")},zh.prototype.hexToBytes=function(y){for(var z=[],E=0;E<y.length;E+=2)z.push(String.fromCharCode(parseInt(y.substr(E,2),16)));return z.join("")},zh.prototype.processOwnerPassword=function(y,z){return Tf(bg(z).substr(0,5),y)},zh.prototype.encryptor=function(y,z){var E=bg(this.encryptionKey+String.fromCharCode(255&y,y>>8&255,y>>16&255,255&z,z>>8&255)).substr(0,10);return function(re){return Tf(E,re)}},Ep.prototype.equals=function(y){var z,E="id,objectNumber,equals";if(!y||(0,x.Z)(y)!==(0,x.Z)(this))return!1;var re=0;for(z in this)if(!(E.indexOf(z)>=0)){if(this.hasOwnProperty(z)&&!y.hasOwnProperty(z)||this[z]!==y[z])return!1;re++}for(z in y)y.hasOwnProperty(z)&&E.indexOf(z)<0&&re--;return re===0},Da.API={events:[]},Da.version="3.0.4";var Ku=Da.API,xg=1,fh=function(y){return y.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Kh=function(y){return y.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},ws=function(y){return y.toFixed(2)},Uf=function(y){return y.toFixed(5)};Ku.__acroform__={};var Fc=function(y,z){y.prototype=Object.create(z.prototype),y.prototype.constructor=y},nm=function(y){return y*xg},Ud=function(y){var z=new Ti,E=Uo.internal.getHeight(y)||0,re=Uo.internal.getWidth(y)||0;return z.BBox=[0,0,Number(ws(re)),Number(ws(E))],z},Qm=Ku.__acroform__.setBit=function(y,z){if(y=y||0,z=z||0,isNaN(y)||isNaN(z))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return y|1<<z},zm=Ku.__acroform__.clearBit=function(y,z){if(y=y||0,z=z||0,isNaN(y)||isNaN(z))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return y&~(1<<z)},Km=Ku.__acroform__.getBit=function(y,z){if(isNaN(y)||isNaN(z))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return y&1<<z?1:0},qu=Ku.__acroform__.getBitForPdf=function(y,z){if(isNaN(y)||isNaN(z))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Km(y,z-1)},me=Ku.__acroform__.setBitForPdf=function(y,z){if(isNaN(y)||isNaN(z))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Qm(y,z-1)},ce=Ku.__acroform__.clearBitForPdf=function(y,z){if(isNaN(y)||isNaN(z))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return zm(y,z-1)},be=Ku.__acroform__.calculateCoordinates=function(y,z){var E=z.internal.getHorizontalCoordinate,re=z.internal.getVerticalCoordinate,Ae=y[0],he=y[1],Ze=y[2],Pe=y[3],Ve={};return Ve.lowerLeft_X=E(Ae)||0,Ve.lowerLeft_Y=re(he+Pe)||0,Ve.upperRight_X=E(Ae+Ze)||0,Ve.upperRight_Y=re(he)||0,[Number(ws(Ve.lowerLeft_X)),Number(ws(Ve.lowerLeft_Y)),Number(ws(Ve.upperRight_X)),Number(ws(Ve.upperRight_Y))]},we=function(y){if(y.appearanceStreamContent)return y.appearanceStreamContent;if(y.V||y.DV){var z=[],E=y._V||y.DV,re=nt(y,E),Ae=y.scope.internal.getFont(y.fontName,y.fontStyle).id;z.push("/Tx BMC"),z.push("q"),z.push("BT"),z.push(y.scope.__private__.encodeColorString(y.color)),z.push("/"+Ae+" "+ws(re.fontSize)+" Tf"),z.push("1 0 0 1 0 0 Tm"),z.push(re.text),z.push("ET"),z.push("Q"),z.push("EMC");var he=Ud(y);return he.scope=y.scope,he.stream=z.join(`
`),he}},nt=function(y,z){var E=y.fontSize===0?y.maxFontSize:y.fontSize,re={text:"",fontSize:""},Ae=(z=(z=z.substr(0,1)=="("?z.substr(1):z).substr(z.length-1)==")"?z.substr(0,z.length-1):z).split(" ");Ae=y.multiline?Ae.map(function(An){return An.split(`
`)}):Ae.map(function(An){return[An]});var he=E,Ze=Uo.internal.getHeight(y)||0;Ze=Ze<0?-Ze:Ze;var Pe=Uo.internal.getWidth(y)||0;Pe=Pe<0?-Pe:Pe;var Ve=function(An,Pn,pr){if(An+1<Ae.length){var cr=Pn+" "+Ae[An+1][0];return Ft(cr,y,pr).width<=Pe-4}return!1};he++;e:for(;he>0;){z="",he--;var Ye,dt,Tt=Ft("3",y,he).height,Jt=y.multiline?Ze-he:(Ze-Tt)/2,At=Jt+=2,In=0,xn=0,Nn=0;if(he<=0){z=`(...) Tj
`,z+="% Width of Text: "+Ft(z,y,he=12).width+", FieldWidth:"+Pe+`
`;break}for(var dn="",yr=0,lr=0;lr<Ae.length;lr++)if(Ae.hasOwnProperty(lr)){var Zn=!1;if(Ae[lr].length!==1&&Nn!==Ae[lr].length-1){if((Tt+2)*(yr+2)+2>Ze)continue e;dn+=Ae[lr][Nn],Zn=!0,xn=lr,lr--}else{dn=(dn+=Ae[lr][Nn]+" ").substr(dn.length-1)==" "?dn.substr(0,dn.length-1):dn;var fi=parseInt(lr),zi=Ve(fi,dn,he),Ii=lr>=Ae.length-1;if(zi&&!Ii){dn+=" ",Nn=0;continue}if(zi||Ii){if(Ii)xn=fi;else if(y.multiline&&(Tt+2)*(yr+2)+2>Ze)continue e}else{if(!y.multiline||(Tt+2)*(yr+2)+2>Ze)continue e;xn=fi}}for(var Ir="",Gn=In;Gn<=xn;Gn++){var Gr=Ae[Gn];if(y.multiline){if(Gn===xn){Ir+=Gr[Nn]+" ",Nn=(Nn+1)%Gr.length;continue}if(Gn===In){Ir+=Gr[Gr.length-1]+" ";continue}}Ir+=Gr[0]+" "}switch(Ir=Ir.substr(Ir.length-1)==" "?Ir.substr(0,Ir.length-1):Ir,dt=Ft(Ir,y,he).width,y.textAlign){case"right":Ye=Pe-dt-2;break;case"center":Ye=(Pe-dt)/2;break;default:Ye=2}z+=ws(Ye)+" "+ws(At)+` Td
`,z+="("+fh(Ir)+`) Tj
`,z+=-ws(Ye)+` 0 Td
`,At=-(he+2),dt=0,In=Zn?xn:xn+1,yr++,dn=""}break}return re.text=z,re.fontSize=he,re},Ft=function(y,z,E){var re=z.scope.internal.getFont(z.fontName,z.fontStyle),Ae=z.scope.getStringUnitWidth(y,{font:re,fontSize:parseFloat(E),charSpace:0})*parseFloat(E);return{height:z.scope.getStringUnitWidth("3",{font:re,fontSize:parseFloat(E),charSpace:0})*parseFloat(E)*1.5,width:Ae}},Xt={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Sn=function(y,z){var E={type:"reference",object:y};z.internal.getPageInfo(y.page).pageContext.annotations.find(function(re){return re.type===E.type&&re.object===E.object})===void 0&&z.internal.getPageInfo(y.page).pageContext.annotations.push(E)},Bn=function(y,z){if(z.scope=y,y.internal!==void 0&&(y.internal.acroformPlugin===void 0||y.internal.acroformPlugin.isInitialized===!1)){if(ho.FieldNum=0,y.internal.acroformPlugin=JSON.parse(JSON.stringify(Xt)),y.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");xg=y.internal.scaleFactor,y.internal.acroformPlugin.acroFormDictionaryRoot=new ha,y.internal.acroformPlugin.acroFormDictionaryRoot.scope=y,y.internal.acroformPlugin.acroFormDictionaryRoot._eventID=y.internal.events.subscribe("postPutResources",function(){(function(E){E.internal.events.unsubscribe(E.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete E.internal.acroformPlugin.acroFormDictionaryRoot._eventID,E.internal.acroformPlugin.printedOut=!0})(y)}),y.internal.events.subscribe("buildDocument",function(){(function(E){E.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var re=E.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var Ae in re)if(re.hasOwnProperty(Ae)){var he=re[Ae];he.objId=void 0,he.hasAnnotation&&Sn(he,E)}})(y)}),y.internal.events.subscribe("putCatalog",function(){(function(E){if(E.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");E.internal.write("/AcroForm "+E.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(y)}),y.internal.events.subscribe("postPutPages",function(E){(function(re,Ae){var he=!re;for(var Ze in re||(Ae.internal.newObjectDeferredBegin(Ae.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),Ae.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),re=re||Ae.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(re.hasOwnProperty(Ze)){var Pe=re[Ze],Ve=[],Ye=Pe.Rect;if(Pe.Rect&&(Pe.Rect=be(Pe.Rect,Ae)),Ae.internal.newObjectDeferredBegin(Pe.objId,!0),Pe.DA=Uo.createDefaultAppearanceStream(Pe),(0,x.Z)(Pe)==="object"&&typeof Pe.getKeyValueListForStream=="function"&&(Ve=Pe.getKeyValueListForStream()),Pe.Rect=Ye,Pe.hasAppearanceStream&&!Pe.appearanceStreamContent){var dt=we(Pe);Ve.push({key:"AP",value:"<</N "+dt+">>"}),Ae.internal.acroformPlugin.xForms.push(dt)}if(Pe.appearanceStreamContent){var Tt="";for(var Jt in Pe.appearanceStreamContent)if(Pe.appearanceStreamContent.hasOwnProperty(Jt)){var At=Pe.appearanceStreamContent[Jt];if(Tt+="/"+Jt+" ",Tt+="<<",Object.keys(At).length>=1||Array.isArray(At)){for(var Ze in At)if(At.hasOwnProperty(Ze)){var In=At[Ze];typeof In=="function"&&(In=In.call(Ae,Pe)),Tt+="/"+Ze+" "+In+" ",Ae.internal.acroformPlugin.xForms.indexOf(In)>=0||Ae.internal.acroformPlugin.xForms.push(In)}}else typeof(In=At)=="function"&&(In=In.call(Ae,Pe)),Tt+="/"+Ze+" "+In,Ae.internal.acroformPlugin.xForms.indexOf(In)>=0||Ae.internal.acroformPlugin.xForms.push(In);Tt+=">>"}Ve.push({key:"AP",value:`<<
`+Tt+">>"})}Ae.internal.putStream({additionalKeyValues:Ve,objectId:Pe.objId}),Ae.internal.out("endobj")}he&&function(xn,Nn){for(var dn in xn)if(xn.hasOwnProperty(dn)){var yr=dn,lr=xn[dn];Nn.internal.newObjectDeferredBegin(lr.objId,!0),(0,x.Z)(lr)==="object"&&typeof lr.putStream=="function"&&lr.putStream(),delete xn[yr]}}(Ae.internal.acroformPlugin.xForms,Ae)})(E,y)}),y.internal.acroformPlugin.isInitialized=!0}},Cr=Ku.__acroform__.arrayToPdfArray=function(y,z,E){var re=function(Ze){return Ze};if(Array.isArray(y)){for(var Ae="[",he=0;he<y.length;he++)switch(he!==0&&(Ae+=" "),(0,x.Z)(y[he])){case"boolean":case"number":case"object":Ae+=y[he].toString();break;case"string":y[he].substr(0,1)!=="/"?(z!==void 0&&E&&(re=E.internal.getEncryptor(z)),Ae+="("+fh(re(y[he].toString()))+")"):Ae+=y[he].toString()}return Ae+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Or=function(y,z,E){var re=function(Ae){return Ae};return z!==void 0&&E&&(re=E.internal.getEncryptor(z)),(y=y||"").toString(),"("+fh(re(y))+")"},Zr=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(y){this._objId=y}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Zr.prototype.toString=function(){return this.objId+" 0 R"},Zr.prototype.putStream=function(){var y=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:y,objectId:this.objId}),this.scope.internal.out("endobj")},Zr.prototype.getKeyValueListForStream=function(){var y=[],z=Object.getOwnPropertyNames(this).filter(function(he){return he!="content"&&he!="appearanceStreamContent"&&he!="scope"&&he!="objId"&&he.substring(0,1)!="_"});for(var E in z)if(Object.getOwnPropertyDescriptor(this,z[E]).configurable===!1){var re=z[E],Ae=this[re];Ae&&(Array.isArray(Ae)?y.push({key:re,value:Cr(Ae,this.objId,this.scope)}):Ae instanceof Zr?(Ae.scope=this.scope,y.push({key:re,value:Ae.objId+" 0 R"})):typeof Ae!="function"&&y.push({key:re,value:Ae}))}return y};var Ti=function(){Zr.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 y,z=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return z},set:function(E){z=E}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(E){y=E.trim()},get:function(){return y||null}})};Fc(Ti,Zr);var ha=function(){Zr.call(this);var y,z=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return z.length>0?z:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return z}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(y){var E=function(re){return re};return this.scope&&(E=this.scope.internal.getEncryptor(this.objId)),"("+fh(E(y))+")"}},set:function(E){y=E}})};Fc(ha,Zr);var ho=function y(){Zr.call(this);var z=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return z},set:function(dn){if(isNaN(dn))throw new Error('Invalid value "'+dn+'" for attribute F supplied.');z=dn}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!qu(z,3)},set:function(dn){dn?this.F=me(z,3):this.F=ce(z,3)}});var E=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return E},set:function(dn){if(isNaN(dn))throw new Error('Invalid value "'+dn+'" for attribute Ff supplied.');E=dn}});var re=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(re.length!==0)return re},set:function(dn){re=dn!==void 0?dn:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!re||isNaN(re[0])?0:re[0]},set:function(dn){re[0]=dn}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!re||isNaN(re[1])?0:re[1]},set:function(dn){re[1]=dn}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!re||isNaN(re[2])?0:re[2]},set:function(dn){re[2]=dn}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!re||isNaN(re[3])?0:re[3]},set:function(dn){re[3]=dn}});var Ae="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return Ae},set:function(dn){switch(dn){case"/Btn":case"/Tx":case"/Ch":case"/Sig":Ae=dn;break;default:throw new Error('Invalid value "'+dn+'" for attribute FT supplied.')}}});var he=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!he||he.length<1){if(this instanceof ia)return;he="FieldObject"+y.FieldNum++}var dn=function(yr){return yr};return this.scope&&(dn=this.scope.internal.getEncryptor(this.objId)),"("+fh(dn(he))+")"},set:function(dn){he=dn.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return he},set:function(dn){he=dn}});var Ze="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return Ze},set:function(dn){Ze=dn}});var Pe="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return Pe},set:function(dn){Pe=dn}});var Ve=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return Ve},set:function(dn){Ve=dn}});var Ye=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return Ye===void 0?50/xg:Ye},set:function(dn){Ye=dn}});var dt="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return dt},set:function(dn){dt=dn}});var Tt="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Tt||this instanceof ia||this instanceof Ps))return Or(Tt,this.objId,this.scope)},set:function(dn){dn=dn.toString(),Tt=dn}});var Jt=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(Jt)return this instanceof es==0?Or(Jt,this.objId,this.scope):Jt},set:function(dn){dn=dn.toString(),Jt=this instanceof es==0?dn.substr(0,1)==="("?Kh(dn.substr(1,dn.length-2)):Kh(dn):dn}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof es==1?Kh(Jt.substr(1,Jt.length-1)):Jt},set:function(dn){dn=dn.toString(),Jt=this instanceof es==1?"/"+dn:dn}});var At=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(At)return At},set:function(dn){this.V=dn}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(At)return this instanceof es==0?Or(At,this.objId,this.scope):At},set:function(dn){dn=dn.toString(),At=this instanceof es==0?dn.substr(0,1)==="("?Kh(dn.substr(1,dn.length-2)):Kh(dn):dn}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof es==1?Kh(At.substr(1,At.length-1)):At},set:function(dn){dn=dn.toString(),At=this instanceof es==1?"/"+dn:dn}}),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 In,xn=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return xn},set:function(dn){dn=!!dn,xn=dn}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(In)return In},set:function(dn){In=dn}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!qu(this.Ff,1)},set:function(dn){dn?this.Ff=me(this.Ff,1):this.Ff=ce(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!qu(this.Ff,2)},set:function(dn){dn?this.Ff=me(this.Ff,2):this.Ff=ce(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!qu(this.Ff,3)},set:function(dn){dn?this.Ff=me(this.Ff,3):this.Ff=ce(this.Ff,3)}});var Nn=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(Nn!==null)return Nn},set:function(dn){if([0,1,2].indexOf(dn)===-1)throw new Error('Invalid value "'+dn+'" for attribute Q supplied.');Nn=dn}}),Object.defineProperty(this,"textAlign",{get:function(){var dn;switch(Nn){case 0:default:dn="left";break;case 1:dn="center";break;case 2:dn="right"}return dn},configurable:!0,enumerable:!0,set:function(dn){switch(dn){case"right":case 2:Nn=2;break;case"center":case 1:Nn=1;break;default:Nn=0}}})};Fc(ho,Zr);var Zo=function(){ho.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var y=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return y},set:function(E){y=E}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return y},set:function(E){y=E}});var z=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Cr(z,this.objId,this.scope)},set:function(E){var re,Ae;Ae=[],typeof(re=E)=="string"&&(Ae=function(he,Ze,Pe){Pe||(Pe=1);for(var Ve,Ye=[];Ve=Ze.exec(he);)Ye.push(Ve[Pe]);return Ye}(re,/\((.*?)\)/g)),z=Ae}}),this.getOptions=function(){return z},this.setOptions=function(E){z=E,this.sort&&z.sort()},this.addOption=function(E){E=(E=E||"").toString(),z.push(E),this.sort&&z.sort()},this.removeOption=function(E,re){for(re=re||!1,E=(E=E||"").toString();z.indexOf(E)!==-1&&(z.splice(z.indexOf(E),1),re!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!qu(this.Ff,18)},set:function(E){E?this.Ff=me(this.Ff,18):this.Ff=ce(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!qu(this.Ff,19)},set:function(E){this.combo===!0&&(E?this.Ff=me(this.Ff,19):this.Ff=ce(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!qu(this.Ff,20)},set:function(E){E?(this.Ff=me(this.Ff,20),z.sort()):this.Ff=ce(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!qu(this.Ff,22)},set:function(E){E?this.Ff=me(this.Ff,22):this.Ff=ce(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!qu(this.Ff,23)},set:function(E){E?this.Ff=me(this.Ff,23):this.Ff=ce(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!qu(this.Ff,27)},set:function(E){E?this.Ff=me(this.Ff,27):this.Ff=ce(this.Ff,27)}}),this.hasAppearanceStream=!1};Fc(Zo,ho);var As=function(){Zo.call(this),this.fontName="helvetica",this.combo=!1};Fc(As,Zo);var wa=function(){As.call(this),this.combo=!0};Fc(wa,As);var va=function(){wa.call(this),this.edit=!0};Fc(va,wa);var es=function(){ho.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!qu(this.Ff,15)},set:function(E){E?this.Ff=me(this.Ff,15):this.Ff=ce(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!qu(this.Ff,16)},set:function(E){E?this.Ff=me(this.Ff,16):this.Ff=ce(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!qu(this.Ff,17)},set:function(E){E?this.Ff=me(this.Ff,17):this.Ff=ce(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!qu(this.Ff,26)},set:function(E){E?this.Ff=me(this.Ff,26):this.Ff=ce(this.Ff,26)}});var y,z={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var E=function(he){return he};if(this.scope&&(E=this.scope.internal.getEncryptor(this.objId)),Object.keys(z).length!==0){var re,Ae=[];for(re in Ae.push("<<"),z)Ae.push("/"+re+" ("+fh(E(z[re]))+")");return Ae.push(">>"),Ae.join(`
`)}},set:function(E){(0,x.Z)(E)==="object"&&(z=E)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return z.CA||""},set:function(E){typeof E=="string"&&(z.CA=E)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return y},set:function(E){y=E}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return y.substr(1,y.length-1)},set:function(E){y="/"+E}})};Fc(es,ho);var bs=function(){es.call(this),this.pushButton=!0};Fc(bs,es);var $a=function(){es.call(this),this.radio=!0,this.pushButton=!1;var y=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return y},set:function(z){y=z!==void 0?z:[]}})};Fc($a,es);var ia=function(){var y,z;ho.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return y},set:function(Ae){y=Ae}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return z},set:function(Ae){z=Ae}});var E,re={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var Ae=function(Pe){return Pe};this.scope&&(Ae=this.scope.internal.getEncryptor(this.objId));var he,Ze=[];for(he in Ze.push("<<"),re)Ze.push("/"+he+" ("+fh(Ae(re[he]))+")");return Ze.push(">>"),Ze.join(`
`)},set:function(Ae){(0,x.Z)(Ae)==="object"&&(re=Ae)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return re.CA||""},set:function(Ae){typeof Ae=="string"&&(re.CA=Ae)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return E},set:function(Ae){E=Ae}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return E.substr(1,E.length-1)},set:function(Ae){E="/"+Ae}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Uo.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Fc(ia,ho),$a.prototype.setAppearance=function(y){if(!("createAppearanceStream"in y)||!("getCA"in y))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var z in this.Kids)if(this.Kids.hasOwnProperty(z)){var E=this.Kids[z];E.appearanceStreamContent=y.createAppearanceStream(E.optionName),E.caption=y.getCA()}},$a.prototype.createOption=function(y){var z=new ia;return z.Parent=this,z.optionName=y,this.Kids.push(z),Ic.call(this.scope,z),z};var Gs=function(){es.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Uo.CheckBox.createAppearanceStream()};Fc(Gs,es);var Ps=function(){ho.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!qu(this.Ff,13)},set:function(z){z?this.Ff=me(this.Ff,13):this.Ff=ce(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!qu(this.Ff,21)},set:function(z){z?this.Ff=me(this.Ff,21):this.Ff=ce(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!qu(this.Ff,23)},set:function(z){z?this.Ff=me(this.Ff,23):this.Ff=ce(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!qu(this.Ff,24)},set:function(z){z?this.Ff=me(this.Ff,24):this.Ff=ce(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!qu(this.Ff,25)},set:function(z){z?this.Ff=me(this.Ff,25):this.Ff=ce(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!qu(this.Ff,26)},set:function(z){z?this.Ff=me(this.Ff,26):this.Ff=ce(this.Ff,26)}});var y=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return y},set:function(z){y=z}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return y},set:function(z){Number.isInteger(z)&&(y=z)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Fc(Ps,ho);var ts=function(){Ps.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!qu(this.Ff,14)},set:function(y){y?this.Ff=me(this.Ff,14):this.Ff=ce(this.Ff,14)}}),this.password=!0};Fc(ts,Ps);var Uo={CheckBox:{createAppearanceStream:function(){return{N:{On:Uo.CheckBox.YesNormal},D:{On:Uo.CheckBox.YesPushDown,Off:Uo.CheckBox.OffPushDown}}},YesPushDown:function(y){var z=Ud(y);z.scope=y.scope;var E=[],re=y.scope.internal.getFont(y.fontName,y.fontStyle).id,Ae=y.scope.__private__.encodeColorString(y.color),he=nt(y,y.caption);return E.push("0.749023 g"),E.push("0 0 "+ws(Uo.internal.getWidth(y))+" "+ws(Uo.internal.getHeight(y))+" re"),E.push("f"),E.push("BMC"),E.push("q"),E.push("0 0 1 rg"),E.push("/"+re+" "+ws(he.fontSize)+" Tf "+Ae),E.push("BT"),E.push(he.text),E.push("ET"),E.push("Q"),E.push("EMC"),z.stream=E.join(`
`),z},YesNormal:function(y){var z=Ud(y);z.scope=y.scope;var E=y.scope.internal.getFont(y.fontName,y.fontStyle).id,re=y.scope.__private__.encodeColorString(y.color),Ae=[],he=Uo.internal.getHeight(y),Ze=Uo.internal.getWidth(y),Pe=nt(y,y.caption);return Ae.push("1 g"),Ae.push("0 0 "+ws(Ze)+" "+ws(he)+" re"),Ae.push("f"),Ae.push("q"),Ae.push("0 0 1 rg"),Ae.push("0 0 "+ws(Ze-1)+" "+ws(he-1)+" re"),Ae.push("W"),Ae.push("n"),Ae.push("0 g"),Ae.push("BT"),Ae.push("/"+E+" "+ws(Pe.fontSize)+" Tf "+re),Ae.push(Pe.text),Ae.push("ET"),Ae.push("Q"),z.stream=Ae.join(`
`),z},OffPushDown:function(y){var z=Ud(y);z.scope=y.scope;var E=[];return E.push("0.749023 g"),E.push("0 0 "+ws(Uo.internal.getWidth(y))+" "+ws(Uo.internal.getHeight(y))+" re"),E.push("f"),z.stream=E.join(`
`),z}},RadioButton:{Circle:{createAppearanceStream:function(y){var z={D:{Off:Uo.RadioButton.Circle.OffPushDown},N:{}};return z.N[y]=Uo.RadioButton.Circle.YesNormal,z.D[y]=Uo.RadioButton.Circle.YesPushDown,z},getCA:function(){return"l"},YesNormal:function(y){var z=Ud(y);z.scope=y.scope;var E=[],re=Uo.internal.getWidth(y)<=Uo.internal.getHeight(y)?Uo.internal.getWidth(y)/4:Uo.internal.getHeight(y)/4;re=Number((.9*re).toFixed(5));var Ae=Uo.internal.Bezier_C,he=Number((re*Ae).toFixed(5));return E.push("q"),E.push("1 0 0 1 "+Uf(Uo.internal.getWidth(y)/2)+" "+Uf(Uo.internal.getHeight(y)/2)+" cm"),E.push(re+" 0 m"),E.push(re+" "+he+" "+he+" "+re+" 0 "+re+" c"),E.push("-"+he+" "+re+" -"+re+" "+he+" -"+re+" 0 c"),E.push("-"+re+" -"+he+" -"+he+" -"+re+" 0 -"+re+" c"),E.push(he+" -"+re+" "+re+" -"+he+" "+re+" 0 c"),E.push("f"),E.push("Q"),z.stream=E.join(`
`),z},YesPushDown:function(y){var z=Ud(y);z.scope=y.scope;var E=[],re=Uo.internal.getWidth(y)<=Uo.internal.getHeight(y)?Uo.internal.getWidth(y)/4:Uo.internal.getHeight(y)/4;re=Number((.9*re).toFixed(5));var Ae=Number((2*re).toFixed(5)),he=Number((Ae*Uo.internal.Bezier_C).toFixed(5)),Ze=Number((re*Uo.internal.Bezier_C).toFixed(5));return E.push("0.749023 g"),E.push("q"),E.push("1 0 0 1 "+Uf(Uo.internal.getWidth(y)/2)+" "+Uf(Uo.internal.getHeight(y)/2)+" cm"),E.push(Ae+" 0 m"),E.push(Ae+" "+he+" "+he+" "+Ae+" 0 "+Ae+" c"),E.push("-"+he+" "+Ae+" -"+Ae+" "+he+" -"+Ae+" 0 c"),E.push("-"+Ae+" -"+he+" -"+he+" -"+Ae+" 0 -"+Ae+" c"),E.push(he+" -"+Ae+" "+Ae+" -"+he+" "+Ae+" 0 c"),E.push("f"),E.push("Q"),E.push("0 g"),E.push("q"),E.push("1 0 0 1 "+Uf(Uo.internal.getWidth(y)/2)+" "+Uf(Uo.internal.getHeight(y)/2)+" cm"),E.push(re+" 0 m"),E.push(re+" "+Ze+" "+Ze+" "+re+" 0 "+re+" c"),E.push("-"+Ze+" "+re+" -"+re+" "+Ze+" -"+re+" 0 c"),E.push("-"+re+" -"+Ze+" -"+Ze+" -"+re+" 0 -"+re+" c"),E.push(Ze+" -"+re+" "+re+" -"+Ze+" "+re+" 0 c"),E.push("f"),E.push("Q"),z.stream=E.join(`
`),z},OffPushDown:function(y){var z=Ud(y);z.scope=y.scope;var E=[],re=Uo.internal.getWidth(y)<=Uo.internal.getHeight(y)?Uo.internal.getWidth(y)/4:Uo.internal.getHeight(y)/4;re=Number((.9*re).toFixed(5));var Ae=Number((2*re).toFixed(5)),he=Number((Ae*Uo.internal.Bezier_C).toFixed(5));return E.push("0.749023 g"),E.push("q"),E.push("1 0 0 1 "+Uf(Uo.internal.getWidth(y)/2)+" "+Uf(Uo.internal.getHeight(y)/2)+" cm"),E.push(Ae+" 0 m"),E.push(Ae+" "+he+" "+he+" "+Ae+" 0 "+Ae+" c"),E.push("-"+he+" "+Ae+" -"+Ae+" "+he+" -"+Ae+" 0 c"),E.push("-"+Ae+" -"+he+" -"+he+" -"+Ae+" 0 -"+Ae+" c"),E.push(he+" -"+Ae+" "+Ae+" -"+he+" "+Ae+" 0 c"),E.push("f"),E.push("Q"),z.stream=E.join(`
`),z}},Cross:{createAppearanceStream:function(y){var z={D:{Off:Uo.RadioButton.Cross.OffPushDown},N:{}};return z.N[y]=Uo.RadioButton.Cross.YesNormal,z.D[y]=Uo.RadioButton.Cross.YesPushDown,z},getCA:function(){return"8"},YesNormal:function(y){var z=Ud(y);z.scope=y.scope;var E=[],re=Uo.internal.calculateCross(y);return E.push("q"),E.push("1 1 "+ws(Uo.internal.getWidth(y)-2)+" "+ws(Uo.internal.getHeight(y)-2)+" re"),E.push("W"),E.push("n"),E.push(ws(re.x1.x)+" "+ws(re.x1.y)+" m"),E.push(ws(re.x2.x)+" "+ws(re.x2.y)+" l"),E.push(ws(re.x4.x)+" "+ws(re.x4.y)+" m"),E.push(ws(re.x3.x)+" "+ws(re.x3.y)+" l"),E.push("s"),E.push("Q"),z.stream=E.join(`
`),z},YesPushDown:function(y){var z=Ud(y);z.scope=y.scope;var E=Uo.internal.calculateCross(y),re=[];return re.push("0.749023 g"),re.push("0 0 "+ws(Uo.internal.getWidth(y))+" "+ws(Uo.internal.getHeight(y))+" re"),re.push("f"),re.push("q"),re.push("1 1 "+ws(Uo.internal.getWidth(y)-2)+" "+ws(Uo.internal.getHeight(y)-2)+" re"),re.push("W"),re.push("n"),re.push(ws(E.x1.x)+" "+ws(E.x1.y)+" m"),re.push(ws(E.x2.x)+" "+ws(E.x2.y)+" l"),re.push(ws(E.x4.x)+" "+ws(E.x4.y)+" m"),re.push(ws(E.x3.x)+" "+ws(E.x3.y)+" l"),re.push("s"),re.push("Q"),z.stream=re.join(`
`),z},OffPushDown:function(y){var z=Ud(y);z.scope=y.scope;var E=[];return E.push("0.749023 g"),E.push("0 0 "+ws(Uo.internal.getWidth(y))+" "+ws(Uo.internal.getHeight(y))+" re"),E.push("f"),z.stream=E.join(`
`),z}}},createDefaultAppearanceStream:function(y){var z=y.scope.internal.getFont(y.fontName,y.fontStyle).id,E=y.scope.__private__.encodeColorString(y.color);return"/"+z+" "+y.fontSize+" Tf "+E}};Uo.internal={Bezier_C:.551915024494,calculateCross:function(y){var z=Uo.internal.getWidth(y),E=Uo.internal.getHeight(y),re=Math.min(z,E);return{x1:{x:(z-re)/2,y:(E-re)/2+re},x2:{x:(z-re)/2+re,y:(E-re)/2},x3:{x:(z-re)/2,y:(E-re)/2},x4:{x:(z-re)/2+re,y:(E-re)/2+re}}}},Uo.internal.getWidth=function(y){var z=0;return(0,x.Z)(y)==="object"&&(z=nm(y.Rect[2])),z},Uo.internal.getHeight=function(y){var z=0;return(0,x.Z)(y)==="object"&&(z=nm(y.Rect[3])),z};var Ic=Ku.addField=function(y){if(Bn(this,y),!(y instanceof ho))throw new Error("Invalid argument passed to jsPDF.addField.");var z;return(z=y).scope.internal.acroformPlugin.printedOut&&(z.scope.internal.acroformPlugin.printedOut=!1,z.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),z.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(z),y.page=y.scope.internal.getCurrentPageInfo().pageNumber,this};Ku.AcroFormChoiceField=Zo,Ku.AcroFormListBox=As,Ku.AcroFormComboBox=wa,Ku.AcroFormEditBox=va,Ku.AcroFormButton=es,Ku.AcroFormPushButton=bs,Ku.AcroFormRadioButton=$a,Ku.AcroFormCheckBox=Gs,Ku.AcroFormTextField=Ps,Ku.AcroFormPasswordField=ts,Ku.AcroFormAppearance=Uo,Ku.AcroForm={ChoiceField:Zo,ListBox:As,ComboBox:wa,EditBox:va,Button:es,PushButton:bs,RadioButton:$a,CheckBox:Gs,TextField:Ps,PasswordField:ts,Appearance:Uo},Da.AcroForm={ChoiceField:Zo,ListBox:As,ComboBox:wa,EditBox:va,Button:es,PushButton:bs,RadioButton:$a,CheckBox:Gs,TextField:Ps,PasswordField:ts,Appearance:Uo};var Rc=Da.AcroForm;function Kl(y){return y.reduce(function(z,E,re){return z[E]=re,z},{})}(function(y){var z="addImage_";y.__addimage__={};var E="UNKNOWN",re={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]]},Ae=y.__addimage__.getImageFileTypeByImageData=function(An,Pn){var pr,cr,vi,Fi,Oi,Ai=E;if((Pn=Pn||E)==="RGBA"||An.data!==void 0&&An.data instanceof Uint8ClampedArray&&"height"in An&&"width"in An)return"RGBA";if(zi(An))for(Oi in re)for(vi=re[Oi],pr=0;pr<vi.length;pr+=1){for(Fi=!0,cr=0;cr<vi[pr].length;cr+=1)if(vi[pr][cr]!==void 0&&vi[pr][cr]!==An[cr]){Fi=!1;break}if(Fi===!0){Ai=Oi;break}}else for(Oi in re)for(vi=re[Oi],pr=0;pr<vi.length;pr+=1){for(Fi=!0,cr=0;cr<vi[pr].length;cr+=1)if(vi[pr][cr]!==void 0&&vi[pr][cr]!==An.charCodeAt(cr)){Fi=!1;break}if(Fi===!0){Ai=Oi;break}}return Ai===E&&Pn!==E&&(Ai=Pn),Ai},he=function An(Pn){for(var pr=this.internal.write,cr=this.internal.putStream,vi=(0,this.internal.getFilters)();vi.indexOf("FlateEncode")!==-1;)vi.splice(vi.indexOf("FlateEncode"),1);Pn.objectId=this.internal.newObject();var Fi=[];if(Fi.push({key:"Type",value:"/XObject"}),Fi.push({key:"Subtype",value:"/Image"}),Fi.push({key:"Width",value:Pn.width}),Fi.push({key:"Height",value:Pn.height}),Pn.colorSpace===dn.INDEXED?Fi.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(Pn.palette.length/3-1)+" "+("sMask"in Pn&&Pn.sMask!==void 0?Pn.objectId+2:Pn.objectId+1)+" 0 R]"}):(Fi.push({key:"ColorSpace",value:"/"+Pn.colorSpace}),Pn.colorSpace===dn.DEVICE_CMYK&&Fi.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Fi.push({key:"BitsPerComponent",value:Pn.bitsPerComponent}),"decodeParameters"in Pn&&Pn.decodeParameters!==void 0&&Fi.push({key:"DecodeParms",value:"<<"+Pn.decodeParameters+">>"}),"transparency"in Pn&&Array.isArray(Pn.transparency)&&Pn.transparency.length>0){for(var Oi="",Ai=0,_i=Pn.transparency.length;Ai<_i;Ai++)Oi+=Pn.transparency[Ai]+" "+Pn.transparency[Ai]+" ";Fi.push({key:"Mask",value:"["+Oi+"]"})}Pn.sMask!==void 0&&Fi.push({key:"SMask",value:Pn.objectId+1+" 0 R"});var Po=Pn.filter!==void 0?["/"+Pn.filter]:void 0;if(cr({data:Pn.data,additionalKeyValues:Fi,alreadyAppliedFilters:Po,objectId:Pn.objectId}),pr("endobj"),"sMask"in Pn&&Pn.sMask!==void 0){var ro,on=(ro=Pn.sMaskBitsPerComponent)!==null&&ro!==void 0?ro:Pn.bitsPerComponent,zn={width:Pn.width,height:Pn.height,colorSpace:"DeviceGray",bitsPerComponent:on,data:Pn.sMask};"filter"in Pn&&(zn.decodeParameters="/Predictor ".concat(Pn.predictor," /Colors 1 /BitsPerComponent ").concat(on," /Columns ").concat(Pn.width),zn.filter=Pn.filter),An.call(this,zn)}if(Pn.colorSpace===dn.INDEXED){var ir=this.internal.newObject();cr({data:Ir(new Uint8Array(Pn.palette)),objectId:ir}),pr("endobj")}},Ze=function(){var An=this.internal.collections[z+"images"];for(var Pn in An)he.call(this,An[Pn])},Pe=function(){var An,Pn=this.internal.collections[z+"images"],pr=this.internal.write;for(var cr in Pn)pr("/I"+(An=Pn[cr]).index,An.objectId,"0","R")},Ve=function(){this.internal.collections[z+"images"]||(this.internal.collections[z+"images"]={},this.internal.events.subscribe("putResources",Ze),this.internal.events.subscribe("putXobjectDict",Pe))},Ye=function(){var An=this.internal.collections[z+"images"];return Ve.call(this),An},dt=function(){return Object.keys(this.internal.collections[z+"images"]).length},Tt=function(An){return typeof y["process"+An.toUpperCase()]=="function"},Jt=function(An){return(0,x.Z)(An)==="object"&&An.nodeType===1},At=function(An,Pn){if(An.nodeName==="IMG"&&An.hasAttribute("src")){var pr=""+An.getAttribute("src");if(pr.indexOf("data:image/")===0)return bp(unescape(pr).split("base64,").pop());var cr=y.loadFile(pr,!0);if(cr!==void 0)return cr}if(An.nodeName==="CANVAS"){if(An.width===0||An.height===0)throw new Error("Given canvas must have data. Canvas width: "+An.width+", height: "+An.height);var vi;switch(Pn){case"PNG":vi="image/png";break;case"WEBP":vi="image/webp";break;default:vi="image/jpeg"}return bp(An.toDataURL(vi,1).split("base64,").pop())}},In=function(An){var Pn=this.internal.collections[z+"images"];if(Pn){for(var pr in Pn)if(An===Pn[pr].alias)return Pn[pr]}},xn=function(An,Pn,pr){return An||Pn||(An=-96,Pn=-96),An<0&&(An=-1*pr.width*72/An/this.internal.scaleFactor),Pn<0&&(Pn=-1*pr.height*72/Pn/this.internal.scaleFactor),An===0&&(An=Pn*pr.width/pr.height),Pn===0&&(Pn=An*pr.height/pr.width),[An,Pn]},Nn=function(An,Pn,pr,cr,vi,Fi){var Oi=xn.call(this,pr,cr,vi),Ai=this.internal.getCoordinateString,_i=this.internal.getVerticalCoordinateString,Po=Ye.call(this);if(pr=Oi[0],cr=Oi[1],Po[vi.index]=vi,Fi){Fi*=Math.PI/180;var ro=Math.cos(Fi),on=Math.sin(Fi),zn=function(br){return br.toFixed(4)},ir=[zn(ro),zn(on),zn(-1*on),zn(ro),0,0,"cm"]}this.internal.write("q"),Fi?(this.internal.write([1,"0","0",1,Ai(An),_i(Pn+cr),"cm"].join(" ")),this.internal.write(ir.join(" ")),this.internal.write([Ai(pr),"0","0",Ai(cr),"0","0","cm"].join(" "))):this.internal.write([Ai(pr),"0","0",Ai(cr),Ai(An),_i(Pn+cr),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+vi.index+" Do"),this.internal.write("Q")},dn=y.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"};y.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 yr=y.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},lr=y.__addimage__.sHashCode=function(An){var Pn,pr,cr=0;if(typeof An=="string")for(pr=An.length,Pn=0;Pn<pr;Pn++)cr=(cr<<5)-cr+An.charCodeAt(Pn),cr|=0;else if(zi(An))for(pr=An.byteLength/2,Pn=0;Pn<pr;Pn++)cr=(cr<<5)-cr+An[Pn],cr|=0;return cr},Zn=y.__addimage__.validateStringAsBase64=function(An){(An=An||"").toString().trim();var Pn=!0;return An.length===0&&(Pn=!1),An.length%4!=0&&(Pn=!1),/^[A-Za-z0-9+/]+$/.test(An.substr(0,An.length-2))===!1&&(Pn=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(An.substr(-2))===!1&&(Pn=!1),Pn},fi=y.__addimage__.extractImageFromDataUrl=function(An){if(An==null||!(An=An.trim()).startsWith("data:"))return null;var Pn=An.indexOf(",");return Pn<0?null:An.substring(0,Pn).trim().endsWith("base64")?An.substring(Pn+1):null};y.__addimage__.isArrayBuffer=function(An){return An instanceof ArrayBuffer};var zi=y.__addimage__.isArrayBufferView=function(An){return An instanceof Int8Array||An instanceof Uint8Array||An instanceof Uint8ClampedArray||An instanceof Int16Array||An instanceof Uint16Array||An instanceof Int32Array||An instanceof Uint32Array||An instanceof Float32Array||An instanceof Float64Array},Ii=y.__addimage__.binaryStringToUint8Array=function(An){for(var Pn=An.length,pr=new Uint8Array(Pn),cr=0;cr<Pn;cr++)pr[cr]=An.charCodeAt(cr);return pr},Ir=y.__addimage__.arrayBufferToBinaryString=function(An){for(var Pn="",pr=zi(An)?An:new Uint8Array(An),cr=0;cr<pr.length;cr+=8192)Pn+=String.fromCharCode.apply(null,pr.subarray(cr,cr+8192));return Pn};y.addImage=function(){var An,Pn,pr,cr,vi,Fi,Oi,Ai,_i;if(typeof arguments[1]=="number"?(Pn=E,pr=arguments[1],cr=arguments[2],vi=arguments[3],Fi=arguments[4],Oi=arguments[5],Ai=arguments[6],_i=arguments[7]):(Pn=arguments[1],pr=arguments[2],cr=arguments[3],vi=arguments[4],Fi=arguments[5],Oi=arguments[6],Ai=arguments[7],_i=arguments[8]),(0,x.Z)(An=arguments[0])==="object"&&!Jt(An)&&"imageData"in An){var Po=An;An=Po.imageData,Pn=Po.format||Pn||E,pr=Po.x||pr||0,cr=Po.y||cr||0,vi=Po.w||Po.width||vi,Fi=Po.h||Po.height||Fi,Oi=Po.alias||Oi,Ai=Po.compression||Ai,_i=Po.rotation||Po.angle||_i}var ro=this.internal.getFilters();if(Ai===void 0&&ro.indexOf("FlateEncode")!==-1&&(Ai="SLOW"),isNaN(pr)||isNaN(cr))throw new Error("Invalid coordinates passed to jsPDF.addImage");Ve.call(this);var on=Gn.call(this,An,Pn,Oi,Ai);return Nn.call(this,pr,cr,vi,Fi,on,_i),this};var Gn=function(An,Pn,pr,cr){var vi,Fi,Oi;if(typeof An=="string"&&Ae(An)===E){An=unescape(An);var Ai=Gr(An,!1);(Ai!==""||(Ai=y.loadFile(An,!0))!==void 0)&&(An=Ai)}if(Jt(An)&&(An=At(An,Pn)),Pn=Ae(An,Pn),!Tt(Pn))throw new Error("addImage does not support files of type '"+Pn+"', please ensure that a plugin for '"+Pn+"' support is added.");if(((Oi=pr)==null||Oi.length===0)&&(pr=function(_i){return typeof _i=="string"||zi(_i)?lr(_i):zi(_i.data)?lr(_i.data):null}(An)),(vi=In.call(this,pr))||(An instanceof Uint8Array||Pn==="RGBA"||(Fi=An,An=Ii(An)),vi=this["process"+Pn.toUpperCase()](An,dt.call(this),pr,function(_i){return _i&&typeof _i=="string"&&(_i=_i.toUpperCase()),_i in y.image_compression?_i:yr.NONE}(cr),Fi)),!vi)throw new Error("An unknown error occurred whilst processing the image.");return vi},Gr=y.__addimage__.convertBase64ToBinaryString=function(An,Pn){Pn=typeof Pn!="boolean"||Pn;var pr,cr="";if(typeof An=="string"){var vi;pr=(vi=fi(An))!==null&&vi!==void 0?vi:An;try{cr=bp(pr)}catch(Fi){if(Pn)throw Zn(pr)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Fi.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return cr};y.getImageProperties=function(An){var Pn,pr,cr="";if(Jt(An)&&(An=At(An)),typeof An=="string"&&Ae(An)===E&&((cr=Gr(An,!1))===""&&(cr=y.loadFile(An)||""),An=cr),pr=Ae(An),!Tt(pr))throw new Error("addImage does not support files of type '"+pr+"', please ensure that a plugin for '"+pr+"' support is added.");if(An instanceof Uint8Array||(An=Ii(An)),!(Pn=this["process"+pr.toUpperCase()](An)))throw new Error("An unknown error occurred whilst processing the image");return Pn.fileType=pr,Pn}})(Da.API),function(y){var z=function(E){if(E!==void 0&&E!="")return!0};Da.API.events.push(["addPage",function(E){this.internal.getPageInfo(E.pageNumber).pageContext.annotations=[]}]),y.events.push(["putPage",function(E){for(var re,Ae,he,Ze=this.internal.getCoordinateString,Pe=this.internal.getVerticalCoordinateString,Ve=this.internal.getPageInfoByObjId(E.objId),Ye=E.pageContext.annotations,dt=!1,Tt=0;Tt<Ye.length&&!dt;Tt++)switch((re=Ye[Tt]).type){case"link":(z(re.options.url)||z(re.options.pageNumber))&&(dt=!0);break;case"reference":case"text":case"freetext":dt=!0}if(dt!=0){this.internal.write("/Annots [");for(var Jt=0;Jt<Ye.length;Jt++){re=Ye[Jt];var At=this.internal.pdfEscape,In=this.internal.getEncryptor(E.objId);switch(re.type){case"reference":this.internal.write(" "+re.object.objId+" 0 R ");break;case"text":var xn=this.internal.newAdditionalObject(),Nn=this.internal.newAdditionalObject(),dn=this.internal.getEncryptor(xn.objId),yr=re.title||"Note";he="<</Type /Annot /Subtype /Text "+(Ae="/Rect ["+Ze(re.bounds.x)+" "+Pe(re.bounds.y+re.bounds.h)+" "+Ze(re.bounds.x+re.bounds.w)+" "+Pe(re.bounds.y)+"] ")+"/Contents ("+At(dn(re.contents))+")",he+=" /Popup "+Nn.objId+" 0 R",he+=" /P "+Ve.objId+" 0 R",he+=" /T ("+At(dn(yr))+") >>",xn.content=he;var lr=xn.objId+" 0 R";he="<</Type /Annot /Subtype /Popup "+(Ae="/Rect ["+Ze(re.bounds.x+30)+" "+Pe(re.bounds.y+re.bounds.h)+" "+Ze(re.bounds.x+re.bounds.w+30)+" "+Pe(re.bounds.y)+"] ")+" /Parent "+lr,re.open&&(he+=" /Open true"),he+=" >>",Nn.content=he,this.internal.write(xn.objId,"0 R",Nn.objId,"0 R");break;case"freetext":Ae="/Rect ["+Ze(re.bounds.x)+" "+Pe(re.bounds.y)+" "+Ze(re.bounds.x+re.bounds.w)+" "+Pe(re.bounds.y+re.bounds.h)+"] ";var Zn=re.color||"#000000";he="<</Type /Annot /Subtype /FreeText "+Ae+"/Contents ("+At(In(re.contents))+")",he+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+Zn+")",he+=" /Border [0 0 0]",he+=" >>",this.internal.write(he);break;case"link":if(re.options.name){var fi=this.annotations._nameMap[re.options.name];re.options.pageNumber=fi.page,re.options.top=fi.y}else re.options.top||(re.options.top=0);if(Ae="/Rect ["+re.finalBounds.x+" "+re.finalBounds.y+" "+re.finalBounds.w+" "+re.finalBounds.h+"] ",he="",re.options.url)he="<</Type /Annot /Subtype /Link "+Ae+"/Border [0 0 0] /A <</S /URI /URI ("+At(In(re.options.url))+") >>";else if(re.options.pageNumber)switch(he="<</Type /Annot /Subtype /Link "+Ae+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(re.options.pageNumber).objId+" 0 R",re.options.magFactor=re.options.magFactor||"XYZ",re.options.magFactor){case"Fit":he+=" /Fit]";break;case"FitH":he+=" /FitH "+re.options.top+"]";break;case"FitV":re.options.left=re.options.left||0,he+=" /FitV "+re.options.left+"]";break;default:var zi=Pe(re.options.top);re.options.left=re.options.left||0,re.options.zoom===void 0&&(re.options.zoom=0),he+=" /XYZ "+re.options.left+" "+zi+" "+re.options.zoom+"]"}he!=""&&(he+=" >>",this.internal.write(he))}}this.internal.write("]")}}]),y.createAnnotation=function(E){var re=this.internal.getCurrentPageInfo();switch(E.type){case"link":this.link(E.bounds.x,E.bounds.y,E.bounds.w,E.bounds.h,E);break;case"text":case"freetext":re.pageContext.annotations.push(E)}},y.link=function(E,re,Ae,he,Ze){var Pe=this.internal.getCurrentPageInfo(),Ve=this.internal.getCoordinateString,Ye=this.internal.getVerticalCoordinateString;Pe.pageContext.annotations.push({finalBounds:{x:Ve(E),y:Ye(re),w:Ve(E+Ae),h:Ye(re+he)},options:Ze,type:"link"})},y.textWithLink=function(E,re,Ae,he){var Ze,Pe,Ve=this.getTextWidth(E),Ye=this.internal.getLineHeight()/this.internal.scaleFactor;if(he.maxWidth!==void 0){Pe=he.maxWidth;var dt=this.splitTextToSize(E,Pe).length;Ze=Math.ceil(Ye*dt)}else Pe=Ve,Ze=Ye;return this.text(E,re,Ae,he),Ae+=.2*Ye,he.align==="center"&&(re-=Ve/2),he.align==="right"&&(re-=Ve),this.link(re,Ae-Ye,Pe,Ze,he),Ve},y.getTextWidth=function(E){var re=this.internal.getFontSize();return this.getStringUnitWidth(E)*re/this.internal.scaleFactor}}(Da.API),function(y){var z={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]},E={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}},re={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},Ae=[1570,1571,1573,1575];y.__arabicParser__={};var he=y.__arabicParser__.isInArabicSubstitutionA=function(xn){return z[xn.charCodeAt(0)]!==void 0},Ze=y.__arabicParser__.isArabicLetter=function(xn){return typeof xn=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(xn)},Pe=y.__arabicParser__.isArabicEndLetter=function(xn){return Ze(xn)&&he(xn)&&z[xn.charCodeAt(0)].length<=2},Ve=y.__arabicParser__.isArabicAlfLetter=function(xn){return Ze(xn)&&Ae.indexOf(xn.charCodeAt(0))>=0};y.__arabicParser__.arabicLetterHasIsolatedForm=function(xn){return Ze(xn)&&he(xn)&&z[xn.charCodeAt(0)].length>=1};var Ye=y.__arabicParser__.arabicLetterHasFinalForm=function(xn){return Ze(xn)&&he(xn)&&z[xn.charCodeAt(0)].length>=2};y.__arabicParser__.arabicLetterHasInitialForm=function(xn){return Ze(xn)&&he(xn)&&z[xn.charCodeAt(0)].length>=3};var dt=y.__arabicParser__.arabicLetterHasMedialForm=function(xn){return Ze(xn)&&he(xn)&&z[xn.charCodeAt(0)].length==4},Tt=y.__arabicParser__.resolveLigatures=function(xn){var Nn=0,dn=E,yr="",lr=0;for(Nn=0;Nn<xn.length;Nn+=1)dn[xn.charCodeAt(Nn)]!==void 0?(lr++,typeof(dn=dn[xn.charCodeAt(Nn)])=="number"&&(yr+=String.fromCharCode(dn),dn=E,lr=0),Nn===xn.length-1&&(dn=E,yr+=xn.charAt(Nn-(lr-1)),Nn-=lr-1,lr=0)):(dn=E,yr+=xn.charAt(Nn-lr),Nn-=lr,lr=0);return yr};y.__arabicParser__.isArabicDiacritic=function(xn){return xn!==void 0&&re[xn.charCodeAt(0)]!==void 0};var Jt=y.__arabicParser__.getCorrectForm=function(xn,Nn,dn){return Ze(xn)?he(xn)===!1?-1:!Ye(xn)||!Ze(Nn)&&!Ze(dn)||!Ze(dn)&&Pe(Nn)||Pe(xn)&&!Ze(Nn)||Pe(xn)&&Ve(Nn)||Pe(xn)&&Pe(Nn)?0:dt(xn)&&Ze(Nn)&&!Pe(Nn)&&Ze(dn)&&Ye(dn)?3:Pe(xn)||!Ze(dn)?1:2:-1},At=function(xn){var Nn=0,dn=0,yr=0,lr="",Zn="",fi="",zi=(xn=xn||"").split("\\s+"),Ii=[];for(Nn=0;Nn<zi.length;Nn+=1){for(Ii.push(""),dn=0;dn<zi[Nn].length;dn+=1)lr=zi[Nn][dn],Zn=zi[Nn][dn-1],fi=zi[Nn][dn+1],Ze(lr)?(yr=Jt(lr,Zn,fi),Ii[Nn]+=yr!==-1?String.fromCharCode(z[lr.charCodeAt(0)][yr]):lr):Ii[Nn]+=lr;Ii[Nn]=Tt(Ii[Nn])}return Ii.join(" ")},In=y.__arabicParser__.processArabic=y.processArabic=function(){var xn,Nn=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,dn=[];if(Array.isArray(Nn)){var yr=0;for(dn=[],yr=0;yr<Nn.length;yr+=1)Array.isArray(Nn[yr])?dn.push([At(Nn[yr][0]),Nn[yr][1],Nn[yr][2]]):dn.push([At(Nn[yr])]);xn=dn}else xn=At(Nn);return typeof arguments[0]=="string"?xn:(arguments[0].text=xn,arguments[0])};y.events.push(["preProcessText",In])}(Da.API),Da.API.autoPrint=function(y){var z;return(y=y||{}).variant=y.variant||"non-conform",y.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){z=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 "+z+" 0 R")})),this},function(y){var z=function(){var E=void 0;Object.defineProperty(this,"pdf",{get:function(){return E},set:function(Pe){E=Pe}});var re=150;Object.defineProperty(this,"width",{get:function(){return re},set:function(Pe){re=isNaN(Pe)||Number.isInteger(Pe)===!1||Pe<0?150:Pe,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=re+1)}});var Ae=300;Object.defineProperty(this,"height",{get:function(){return Ae},set:function(Pe){Ae=isNaN(Pe)||Number.isInteger(Pe)===!1||Pe<0?300:Pe,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=Ae+1)}});var he=[];Object.defineProperty(this,"childNodes",{get:function(){return he},set:function(Pe){he=Pe}});var Ze={};Object.defineProperty(this,"style",{get:function(){return Ze},set:function(Pe){Ze=Pe}}),Object.defineProperty(this,"parentNode",{})};z.prototype.getContext=function(E,re){var Ae;if((E=E||"2d")!=="2d")return null;for(Ae in re)this.pdf.context2d.hasOwnProperty(Ae)&&(this.pdf.context2d[Ae]=re[Ae]);return this.pdf.context2d._canvas=this,this.pdf.context2d},z.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},y.events.push(["initialized",function(){this.canvas=new z,this.canvas.pdf=this}])}(Da.API),function(y){var z={left:0,top:0,bottom:0,right:0},E=!1,re=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({},z),this.internal.__cell__.margins.width=this.getPageWidth(),Ae.call(this))},Ae=function(){this.internal.__cell__.lastCell=new he,this.internal.__cell__.pages=1},he=function(){var Ve=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Ve},set:function(xn){Ve=xn}});var Ye=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Ye},set:function(xn){Ye=xn}});var dt=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return dt},set:function(xn){dt=xn}});var Tt=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return Tt},set:function(xn){Tt=xn}});var Jt=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return Jt},set:function(xn){Jt=xn}});var At=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return At},set:function(xn){At=xn}});var In=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return In},set:function(xn){In=xn}}),this};he.prototype.clone=function(){return new he(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},he.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},y.setHeaderFunction=function(Ve){return re.call(this),this.internal.__cell__.headerFunction=typeof Ve=="function"?Ve:void 0,this},y.getTextDimensions=function(Ve,Ye){re.call(this);var dt=(Ye=Ye||{}).fontSize||this.getFontSize(),Tt=Ye.font||this.getFont(),Jt=Ye.scaleFactor||this.internal.scaleFactor,At=0,In=0,xn=0,Nn=this;if(!Array.isArray(Ve)&&typeof Ve!="string"){if(typeof Ve!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");Ve=String(Ve)}var dn=Ye.maxWidth;dn>0?typeof Ve=="string"?Ve=this.splitTextToSize(Ve,dn):Object.prototype.toString.call(Ve)==="[object Array]"&&(Ve=Ve.reduce(function(lr,Zn){return lr.concat(Nn.splitTextToSize(Zn,dn))},[])):Ve=Array.isArray(Ve)?Ve:[Ve];for(var yr=0;yr<Ve.length;yr++)At<(xn=this.getStringUnitWidth(Ve[yr],{font:Tt})*dt)&&(At=xn);return At!==0&&(In=Ve.length),{w:At/=Jt,h:Math.max((In*dt*this.getLineHeightFactor()-dt*(this.getLineHeightFactor()-1))/Jt,0)}},y.cellAddPage=function(){re.call(this),this.addPage();var Ve=this.internal.__cell__.margins||z;return this.internal.__cell__.lastCell=new he(Ve.left,Ve.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var Ze=y.cell=function(){var Ve;Ve=arguments[0]instanceof he?arguments[0]:new he(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),re.call(this);var Ye=this.internal.__cell__.lastCell,dt=this.internal.__cell__.padding,Tt=this.internal.__cell__.margins||z,Jt=this.internal.__cell__.tableHeaderRow,At=this.internal.__cell__.printHeaders;return Ye.lineNumber!==void 0&&(Ye.lineNumber===Ve.lineNumber?(Ve.x=(Ye.x||0)+(Ye.width||0),Ve.y=Ye.y||0):Ye.y+Ye.height+Ve.height+Tt.bottom>this.getPageHeight()?(this.cellAddPage(),Ve.y=Tt.top,At&&Jt&&(this.printHeaderRow(Ve.lineNumber,!0),Ve.y+=Jt[0].height)):Ve.y=Ye.y+Ye.height||Ve.y),Ve.text[0]!==void 0&&(this.rect(Ve.x,Ve.y,Ve.width,Ve.height,E===!0?"FD":void 0),Ve.align==="right"?this.text(Ve.text,Ve.x+Ve.width-dt,Ve.y+dt,{align:"right",baseline:"top"}):Ve.align==="center"?this.text(Ve.text,Ve.x+Ve.width/2,Ve.y+dt,{align:"center",baseline:"top",maxWidth:Ve.width-dt-dt}):this.text(Ve.text,Ve.x+dt,Ve.y+dt,{align:"left",baseline:"top",maxWidth:Ve.width-dt-dt})),this.internal.__cell__.lastCell=Ve,this};y.table=function(Ve,Ye,dt,Tt,Jt){if(re.call(this),!dt)throw new Error("No data for PDF table.");var At,In,xn,Nn,dn=[],yr=[],lr=[],Zn={},fi={},zi=[],Ii=[],Ir=(Jt=Jt||{}).autoSize||!1,Gn=Jt.printHeaders!==!1,Gr=Jt.css&&Jt.css["font-size"]!==void 0?16*Jt.css["font-size"]:Jt.fontSize||12,An=Jt.margins||Object.assign({width:this.getPageWidth()},z),Pn=typeof Jt.padding=="number"?Jt.padding:3,pr=Jt.headerBackgroundColor||"#c8c8c8",cr=Jt.headerTextColor||"#000";if(Ae.call(this),this.internal.__cell__.printHeaders=Gn,this.internal.__cell__.margins=An,this.internal.__cell__.table_font_size=Gr,this.internal.__cell__.padding=Pn,this.internal.__cell__.headerBackgroundColor=pr,this.internal.__cell__.headerTextColor=cr,this.setFontSize(Gr),Tt==null)yr=dn=Object.keys(dt[0]),lr=dn.map(function(){return"left"});else if(Array.isArray(Tt)&&(0,x.Z)(Tt[0])==="object")for(dn=Tt.map(function(Po){return Po.name}),yr=Tt.map(function(Po){return Po.prompt||Po.name||""}),lr=Tt.map(function(Po){return Po.align||"left"}),At=0;At<Tt.length;At+=1)fi[Tt[At].name]=.7499990551181103*Tt[At].width;else Array.isArray(Tt)&&typeof Tt[0]=="string"&&(yr=dn=Tt,lr=dn.map(function(){return"left"}));if(Ir||Array.isArray(Tt)&&typeof Tt[0]=="string")for(At=0;At<dn.length;At+=1){for(Zn[Nn=dn[At]]=dt.map(function(Po){return Po[Nn]}),this.setFont(void 0,"bold"),zi.push(this.getTextDimensions(yr[At],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),In=Zn[Nn],this.setFont(void 0,"normal"),xn=0;xn<In.length;xn+=1)zi.push(this.getTextDimensions(In[xn],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);fi[Nn]=Math.max.apply(null,zi)+Pn+Pn,zi=[]}if(Gn){var vi={};for(At=0;At<dn.length;At+=1)vi[dn[At]]={},vi[dn[At]].text=yr[At],vi[dn[At]].align=lr[At];var Fi=Pe.call(this,vi,fi);Ii=dn.map(function(Po){return new he(Ve,Ye,fi[Po],Fi,vi[Po].text,void 0,vi[Po].align)}),this.setTableHeaderRow(Ii),this.printHeaderRow(1,!1)}var Oi=Tt.reduce(function(Po,ro){return Po[ro.name]=ro.align,Po},{});for(At=0;At<dt.length;At+=1){"rowStart"in Jt&&Jt.rowStart instanceof Function&&Jt.rowStart({row:At,data:dt[At]},this);var Ai=Pe.call(this,dt[At],fi);for(xn=0;xn<dn.length;xn+=1){var _i=dt[At][dn[xn]];"cellStart"in Jt&&Jt.cellStart instanceof Function&&Jt.cellStart({row:At,col:xn,data:_i},this),Ze.call(this,new he(Ve,Ye,fi[dn[xn]],Ai,_i,At+2,Oi[dn[xn]]))}}return this.internal.__cell__.table_x=Ve,this.internal.__cell__.table_y=Ye,this};var Pe=function(Ve,Ye){var dt=this.internal.__cell__.padding,Tt=this.internal.__cell__.table_font_size,Jt=this.internal.scaleFactor;return Object.keys(Ve).map(function(At){var In=Ve[At];return this.splitTextToSize(In.hasOwnProperty("text")?In.text:In,Ye[At]-dt-dt)},this).map(function(At){return this.getLineHeightFactor()*At.length*Tt/Jt+dt+dt},this).reduce(function(At,In){return Math.max(At,In)},0)};y.setTableHeaderRow=function(Ve){re.call(this),this.internal.__cell__.tableHeaderRow=Ve},y.printHeaderRow=function(Ve,Ye){if(re.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var dt;if(E=!0,typeof this.internal.__cell__.headerFunction=="function"){var Tt=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new he(Tt[0],Tt[1],Tt[2],Tt[3],void 0,-1)}this.setFont(void 0,"bold");for(var Jt=[],At=0;At<this.internal.__cell__.tableHeaderRow.length;At+=1){dt=this.internal.__cell__.tableHeaderRow[At].clone(),Ye&&(dt.y=this.internal.__cell__.margins.top||0,Jt.push(dt)),dt.lineNumber=Ve;var In=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),Ze.call(this,dt),this.setTextColor(In)}Jt.length>0&&this.setTableHeaderRow(Jt),this.setFont(void 0,"normal"),E=!1}}(Da.API);var LA={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},sf=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],qA=Kl(sf),oc=[100,200,300,400,500,600,700,800,900],hh=Kl(oc);function Jc(y){var z=y.family.replace(/"|'/g,"").toLowerCase(),E=function(he){return LA[he=he||"normal"]?he:"normal"}(y.style),re=function(he){return he?typeof he=="number"?he>=100&&he<=900&&he%100==0?he:400:/^\d00$/.test(he)?parseInt(he):he==="bold"?700:400:400}(y.weight),Ae=function(he){return typeof qA[he=he||"normal"]=="number"?he:"normal"}(y.stretch);return{family:z,style:E,weight:re,stretch:Ae,src:y.src||[],ref:y.ref||{name:z,style:[Ae,E,re].join(" ")}}}function lf(y,z,E,re){var Ae;for(Ae=E;Ae>=0&&Ae<z.length;Ae+=re)if(y[z[Ae]])return y[z[Ae]];for(Ae=E;Ae>=0&&Ae<z.length;Ae-=re)if(y[z[Ae]])return y[z[Ae]]}var ph={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Rf={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Rd(y){return[y.stretch,y.style,y.weight,y.family].join(" ")}function jf(y){return y.trimLeft()}function uf(y,z){for(var E=0;E<y.length;){if(y.charAt(E)===z)return[y.substring(0,E),y.substring(E+1)];E+=1}return null}function Zh(y){var z=y.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return z===null?null:[z[0],y.substring(z[0].length)]}var Hf,I0,L0,ng,rm,D0,N0,O0,Zm=["times"];function P0(y,z,E,re,Ae){var he=4,Ze=T0;switch(Ae){case Da.API.image_compression.FAST:he=1,Ze=_0;break;case Da.API.image_compression.MEDIUM:he=6,Ze=k0;break;case Da.API.image_compression.SLOW:he=9,Ze=M0}y=function(Ve,Ye,dt,Tt){for(var Jt,At=Ve.length/Ye,In=new Uint8Array(Ve.length+At),xn=[Pv,_0,T0,k0,M0],Nn=0;Nn<At;Nn+=1){var dn=Nn*Ye,yr=Ve.subarray(dn,dn+Ye);if(Tt)In.set(Tt(yr,dt,Jt),dn+Nn);else{for(var lr=xn.length,Zn=[],fi=0;fi<lr;fi+=1)Zn[fi]=xn[fi](yr,dt,Jt);var zi=Tv(Zn.concat());In.set(Zn[zi],dn+Nn)}Jt=yr}return In}(y,z,Math.ceil(E*re/8),Ze);var Pe=ii(y,{level:he});return Da.API.__addimage__.arrayBufferToBinaryString(Pe)}function Pv(y){var z=Array.apply([],y);return z.unshift(0),z}function _0(y,z){var E=y.length,re=[];re[0]=1;for(var Ae=0;Ae<E;Ae+=1){var he=y[Ae-z]||0;re[Ae+1]=y[Ae]-he+256&255}return re}function T0(y,z,E){var re=y.length,Ae=[];Ae[0]=2;for(var he=0;he<re;he+=1){var Ze=E&&E[he]||0;Ae[he+1]=y[he]-Ze+256&255}return Ae}function k0(y,z,E){var re=y.length,Ae=[];Ae[0]=3;for(var he=0;he<re;he+=1){var Ze=y[he-z]||0,Pe=E&&E[he]||0;Ae[he+1]=y[he]+256-(Ze+Pe>>>1)&255}return Ae}function M0(y,z,E){var re=y.length,Ae=[];Ae[0]=4;for(var he=0;he<re;he+=1){var Ze=_v(y[he-z]||0,E&&E[he]||0,E&&E[he-z]||0);Ae[he+1]=y[he]-Ze+256&255}return Ae}function _v(y,z,E){if(y===z&&z===E)return y;var re=Math.abs(z-E),Ae=Math.abs(y-E),he=Math.abs(y+z-E-E);return re<=Ae&&re<=he?y:Ae<=he?z:E}function Tv(y){var z=y.map(function(E){return E.reduce(function(re,Ae){return re+Math.abs(Ae)},0)});return z.indexOf(Math.min.apply(null,z))}function Wm(y,z,E){var re=z*E,Ae=Math.floor(re/8),he=16-(re-8*Ae+E),Ze=(1<<E)-1;return R0(y,Ae)>>he&Ze}function U0(y,z,E,re){var Ae=E*re,he=Math.floor(Ae/8),Ze=16-(Ae-8*he+re),Pe=(1<<re)-1,Ve=(z&Pe)<<Ze;(function(Ye,dt,Tt){if(dt+1<Ye.byteLength)Ye.setUint16(dt,Tt,!1);else{var Jt=Tt>>8&255;Ye.setUint8(dt,Jt)}})(y,he,R0(y,he)&~(Pe<<Ze)&65535|Ve)}function R0(y,z){return z+1<y.byteLength?y.getUint16(z,!1):y.getUint8(z)<<8}function kv(y){var z=0;if(y[z++]!==71||y[z++]!==73||y[z++]!==70||y[z++]!==56||(y[z++]+1&253)!=56||y[z++]!==97)throw new Error("Invalid GIF 87a/89a header.");var E=y[z++]|y[z++]<<8,re=y[z++]|y[z++]<<8,Ae=y[z++],he=Ae>>7,Ze=1<<1+(7&Ae);y[z++],y[z++];var Pe=null,Ve=null;he&&(Pe=z,Ve=Ze,z+=3*Ze);var Ye=!0,dt=[],Tt=0,Jt=null,At=0,In=null;for(this.width=E,this.height=re;Ye&&z<y.length;)switch(y[z++]){case 33:switch(y[z++]){case 255:if(y[z]!==11||y[z+1]==78&&y[z+2]==69&&y[z+3]==84&&y[z+4]==83&&y[z+5]==67&&y[z+6]==65&&y[z+7]==80&&y[z+8]==69&&y[z+9]==50&&y[z+10]==46&&y[z+11]==48&&y[z+12]==3&&y[z+13]==1&&y[z+16]==0)z+=14,In=y[z++]|y[z++]<<8,z++;else for(z+=12;;){if(!((An=y[z++])>=0))throw Error("Invalid block size");if(An===0)break;z+=An}break;case 249:if(y[z++]!==4||y[z+4]!==0)throw new Error("Invalid graphics extension block.");var xn=y[z++];Tt=y[z++]|y[z++]<<8,Jt=y[z++],1&xn||(Jt=null),At=xn>>2&7,z++;break;case 254:for(;;){if(!((An=y[z++])>=0))throw Error("Invalid block size");if(An===0)break;z+=An}break;default:throw new Error("Unknown graphic control label: 0x"+y[z-1].toString(16))}break;case 44:var Nn=y[z++]|y[z++]<<8,dn=y[z++]|y[z++]<<8,yr=y[z++]|y[z++]<<8,lr=y[z++]|y[z++]<<8,Zn=y[z++],fi=Zn>>6&1,zi=1<<1+(7&Zn),Ii=Pe,Ir=Ve,Gn=!1;Zn>>7&&(Gn=!0,Ii=z,Ir=zi,z+=3*zi);var Gr=z;for(z++;;){var An;if(!((An=y[z++])>=0))throw Error("Invalid block size");if(An===0)break;z+=An}dt.push({x:Nn,y:dn,width:yr,height:lr,has_local_palette:Gn,palette_offset:Ii,palette_size:Ir,data_offset:Gr,data_length:z-Gr,transparent_index:Jt,interlaced:!!fi,delay:Tt,disposal:At});break;case 59:Ye=!1;break;default:throw new Error("Unknown gif block: 0x"+y[z-1].toString(16))}this.numFrames=function(){return dt.length},this.loopCount=function(){return In},this.frameInfo=function(Pn){if(Pn<0||Pn>=dt.length)throw new Error("Frame index out of range.");return dt[Pn]},this.decodeAndBlitFrameBGRA=function(Pn,pr){var cr=this.frameInfo(Pn),vi=cr.width*cr.height,Fi=new Uint8Array(vi);j0(y,cr.data_offset,Fi,vi);var Oi=cr.palette_offset,Ai=cr.transparent_index;Ai===null&&(Ai=256);var _i=cr.width,Po=E-_i,ro=_i,on=4*(cr.y*E+cr.x),zn=4*((cr.y+cr.height)*E+cr.x),ir=on,br=4*Po;cr.interlaced===!0&&(br+=4*E*7);for(var Tr=8,ei=0,Li=Fi.length;ei<Li;++ei){var Pi=Fi[ei];if(ro===0&&(ro=_i,(ir+=br)>=zn&&(br=4*Po+4*E*(Tr-1),ir=on+(_i+Po)*(Tr<<1),Tr>>=1)),Pi===Ai)ir+=4;else{var Xi=y[Oi+3*Pi],xo=y[Oi+3*Pi+1],ca=y[Oi+3*Pi+2];pr[ir++]=ca,pr[ir++]=xo,pr[ir++]=Xi,pr[ir++]=255}--ro}},this.decodeAndBlitFrameRGBA=function(Pn,pr){var cr=this.frameInfo(Pn),vi=cr.width*cr.height,Fi=new Uint8Array(vi);j0(y,cr.data_offset,Fi,vi);var Oi=cr.palette_offset,Ai=cr.transparent_index;Ai===null&&(Ai=256);var _i=cr.width,Po=E-_i,ro=_i,on=4*(cr.y*E+cr.x),zn=4*((cr.y+cr.height)*E+cr.x),ir=on,br=4*Po;cr.interlaced===!0&&(br+=4*E*7);for(var Tr=8,ei=0,Li=Fi.length;ei<Li;++ei){var Pi=Fi[ei];if(ro===0&&(ro=_i,(ir+=br)>=zn&&(br=4*Po+4*E*(Tr-1),ir=on+(_i+Po)*(Tr<<1),Tr>>=1)),Pi===Ai)ir+=4;else{var Xi=y[Oi+3*Pi],xo=y[Oi+3*Pi+1],ca=y[Oi+3*Pi+2];pr[ir++]=Xi,pr[ir++]=xo,pr[ir++]=ca,pr[ir++]=255}--ro}}}function j0(y,z,E,re){for(var Ae=y[z++],he=1<<Ae,Ze=he+1,Pe=Ze+1,Ve=Ae+1,Ye=(1<<Ve)-1,dt=0,Tt=0,Jt=0,At=y[z++],In=new Int32Array(4096),xn=null;;){for(;dt<16&&At!==0;)Tt|=y[z++]<<dt,dt+=8,At===1?At=y[z++]:--At;if(dt<Ve)break;var Nn=Tt&Ye;if(Tt>>=Ve,dt-=Ve,Nn!==he){if(Nn===Ze)break;for(var dn=Nn<Pe?Nn:xn,yr=0,lr=dn;lr>he;)lr=In[lr]>>8,++yr;var Zn=lr;if(Jt+yr+(dn!==Nn?1:0)>re)return void dl.log("Warning, gif stream longer than expected.");E[Jt++]=Zn;var fi=Jt+=yr;for(dn!==Nn&&(E[Jt++]=Zn),lr=dn;yr--;)lr=In[lr],E[--fi]=255&lr,lr>>=8;xn!==null&&Pe<4096&&(In[Pe++]=xn<<8|Zn,Pe>=Ye+1&&Ve<12&&(++Ve,Ye=Ye<<1|1)),xn=Nn}else Pe=Ze+1,Ye=(1<<(Ve=Ae+1))-1,xn=null}return Jt!==re&&dl.log("Warning, gif stream shorter than expected."),E}function $m(y){var z,E,re,Ae,he,Ze=Math.floor,Pe=new Array(64),Ve=new Array(64),Ye=new Array(64),dt=new Array(64),Tt=new Array(65535),Jt=new Array(65535),At=new Array(64),In=new Array(64),xn=[],Nn=0,dn=7,yr=new Array(64),lr=new Array(64),Zn=new Array(64),fi=new Array(256),zi=new Array(2048),Ii=[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],Ir=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Gn=[0,1,2,3,4,5,6,7,8,9,10,11],Gr=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],An=[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],Pn=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],pr=[0,1,2,3,4,5,6,7,8,9,10,11],cr=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],vi=[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 Fi(on,zn){for(var ir=0,br=0,Tr=new Array,ei=1;ei<=16;ei++){for(var Li=1;Li<=on[ei];Li++)Tr[zn[br]]=[],Tr[zn[br]][0]=ir,Tr[zn[br]][1]=ei,br++,ir++;ir*=2}return Tr}function Oi(on){for(var zn=on[0],ir=on[1]-1;ir>=0;)zn&1<<ir&&(Nn|=1<<dn),ir--,--dn<0&&(Nn==255?(Ai(255),Ai(0)):Ai(Nn),dn=7,Nn=0)}function Ai(on){xn.push(on)}function _i(on){Ai(on>>8&255),Ai(255&on)}function Po(on,zn,ir,br,Tr){for(var ei,Li=Tr[0],Pi=Tr[240],Xi=function(po,os){var Ea,ns,Xa,ru,hl,_s,bl,pl,Ma,Us,Qa=0;for(Ma=0;Ma<8;++Ma){Ea=po[Qa],ns=po[Qa+1],Xa=po[Qa+2],ru=po[Qa+3],hl=po[Qa+4],_s=po[Qa+5],bl=po[Qa+6];var bA=Ea+(pl=po[Qa+7]),Dl=Ea-pl,Js=ns+bl,qs=ns-bl,Zu=Xa+_s,Ja=Xa-_s,Eu=ru+hl,cs=ru-hl,Ts=bA+Eu,Wu=bA-Eu,ol=Js+Zu,ls=Js-Zu;po[Qa]=Ts+ol,po[Qa+4]=Ts-ol;var iu=.707106781*(ls+Wu);po[Qa+2]=Wu+iu,po[Qa+6]=Wu-iu;var Sp=.382683433*((Ts=cs+Ja)-(ls=qs+Dl)),Lc=.5411961*Ts+Sp,gh=1.306562965*ls+Sp,zf=.707106781*(ol=Ja+qs),us=Dl+zf,mh=Dl-zf;po[Qa+5]=mh+Lc,po[Qa+3]=mh-Lc,po[Qa+1]=us+gh,po[Qa+7]=us-gh,Qa+=8}for(Qa=0,Ma=0;Ma<8;++Ma){Ea=po[Qa],ns=po[Qa+8],Xa=po[Qa+16],ru=po[Qa+24],hl=po[Qa+32],_s=po[Qa+40],bl=po[Qa+48];var vh=Ea+(pl=po[Qa+56]),jd=Ea-pl,Hd=ns+bl,cA=ns-bl,ec=Xa+_s,ac=Xa-_s,Fp=ru+hl,$h=ru-hl,df=vh+Fp,Kf=vh-Fp,ff=Hd+ec,hf=Hd-ec;po[Qa]=df+ff,po[Qa+32]=df-ff;var Qd=.707106781*(hf+Kf);po[Qa+16]=Kf+Qd,po[Qa+48]=Kf-Qd;var Ip=.382683433*((df=$h+ac)-(hf=cA+jd)),Zf=.5411961*df+Ip,Lp=1.306562965*hf+Ip,rg=.707106781*(ff=ac+cA),ig=jd+rg,og=jd-rg;po[Qa+40]=og+Zf,po[Qa+24]=og-Zf,po[Qa+8]=ig+Lp,po[Qa+56]=ig-Lp,Qa++}for(Ma=0;Ma<64;++Ma)Us=po[Ma]*os[Ma],At[Ma]=Us>0?Us+.5|0:Us-.5|0;return At}(on,zn),xo=0;xo<64;++xo)In[Ii[xo]]=Xi[xo];var ca=In[0]-ir;ir=In[0],ca==0?Oi(br[0]):(Oi(br[Jt[ei=32767+ca]]),Oi(Tt[ei]));for(var ua=63;ua>0&&In[ua]==0;)ua--;if(ua==0)return Oi(Li),ir;for(var Ga,_n=1;_n<=ua;){for(var da=_n;In[_n]==0&&_n<=ua;)++_n;var Vs=_n-da;if(Vs>=16){Ga=Vs>>4;for(var is=1;is<=Ga;++is)Oi(Pi);Vs&=15}ei=32767+In[_n],Oi(Tr[(Vs<<4)+Jt[ei]]),Oi(Tt[ei]),_n++}return ua!=63&&Oi(Li),ir}function ro(on){on=Math.min(Math.max(on,1),100),he!=on&&(function(zn){for(var ir=[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],br=0;br<64;br++){var Tr=Ze((ir[br]*zn+50)/100);Tr=Math.min(Math.max(Tr,1),255),Pe[Ii[br]]=Tr}for(var ei=[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],Li=0;Li<64;Li++){var Pi=Ze((ei[Li]*zn+50)/100);Pi=Math.min(Math.max(Pi,1),255),Ve[Ii[Li]]=Pi}for(var Xi=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],xo=0,ca=0;ca<8;ca++)for(var ua=0;ua<8;ua++)Ye[xo]=1/(Pe[Ii[xo]]*Xi[ca]*Xi[ua]*8),dt[xo]=1/(Ve[Ii[xo]]*Xi[ca]*Xi[ua]*8),xo++}(on<50?Math.floor(5e3/on):Math.floor(200-2*on)),he=on)}this.encode=function(on,zn){zn&&ro(zn),xn=new Array,Nn=0,dn=7,_i(65496),_i(65504),_i(16),Ai(74),Ai(70),Ai(73),Ai(70),Ai(0),Ai(1),Ai(1),Ai(0),_i(1),_i(1),Ai(0),Ai(0),function(){_i(65499),_i(132),Ai(0);for(var ns=0;ns<64;ns++)Ai(Pe[ns]);Ai(1);for(var Xa=0;Xa<64;Xa++)Ai(Ve[Xa])}(),function(ns,Xa){_i(65472),_i(17),Ai(8),_i(Xa),_i(ns),Ai(3),Ai(1),Ai(17),Ai(0),Ai(2),Ai(17),Ai(1),Ai(3),Ai(17),Ai(1)}(on.width,on.height),function(){_i(65476),_i(418),Ai(0);for(var ns=0;ns<16;ns++)Ai(Ir[ns+1]);for(var Xa=0;Xa<=11;Xa++)Ai(Gn[Xa]);Ai(16);for(var ru=0;ru<16;ru++)Ai(Gr[ru+1]);for(var hl=0;hl<=161;hl++)Ai(An[hl]);Ai(1);for(var _s=0;_s<16;_s++)Ai(Pn[_s+1]);for(var bl=0;bl<=11;bl++)Ai(pr[bl]);Ai(17);for(var pl=0;pl<16;pl++)Ai(cr[pl+1]);for(var Ma=0;Ma<=161;Ma++)Ai(vi[Ma])}(),_i(65498),_i(12),Ai(3),Ai(1),Ai(0),Ai(2),Ai(17),Ai(3),Ai(17),Ai(0),Ai(63),Ai(0);var ir=0,br=0,Tr=0;Nn=0,dn=7,this.encode.displayName="_encode_";for(var ei,Li,Pi,Xi,xo,ca,ua,Ga,_n,da=on.data,Vs=on.width,is=on.height,po=4*Vs,os=0;os<is;){for(ei=0;ei<po;){for(xo=po*os+ei,ua=-1,Ga=0,_n=0;_n<64;_n++)ca=xo+(Ga=_n>>3)*po+(ua=4*(7&_n)),os+Ga>=is&&(ca-=po*(os+1+Ga-is)),ei+ua>=po&&(ca-=ei+ua-po+4),Li=da[ca++],Pi=da[ca++],Xi=da[ca++],yr[_n]=(zi[Li]+zi[Pi+256|0]+zi[Xi+512|0]>>16)-128,lr[_n]=(zi[Li+768|0]+zi[Pi+1024|0]+zi[Xi+1280|0]>>16)-128,Zn[_n]=(zi[Li+1280|0]+zi[Pi+1536|0]+zi[Xi+1792|0]>>16)-128;ir=Po(yr,Ye,ir,z,re),br=Po(lr,dt,br,E,Ae),Tr=Po(Zn,dt,Tr,E,Ae),ei+=32}os+=8}if(dn>=0){var Ea=[];Ea[1]=dn+1,Ea[0]=(1<<dn+1)-1,Oi(Ea)}return _i(65497),new Uint8Array(xn)},y=y||50,function(){for(var on=String.fromCharCode,zn=0;zn<256;zn++)fi[zn]=on(zn)}(),z=Fi(Ir,Gn),E=Fi(Pn,pr),re=Fi(Gr,An),Ae=Fi(cr,vi),function(){for(var on=1,zn=2,ir=1;ir<=15;ir++){for(var br=on;br<zn;br++)Jt[32767+br]=ir,Tt[32767+br]=[],Tt[32767+br][1]=ir,Tt[32767+br][0]=br;for(var Tr=-(zn-1);Tr<=-on;Tr++)Jt[32767+Tr]=ir,Tt[32767+Tr]=[],Tt[32767+Tr][1]=ir,Tt[32767+Tr][0]=zn-1+Tr;on<<=1,zn<<=1}}(),function(){for(var on=0;on<256;on++)zi[on]=19595*on,zi[on+256|0]=38470*on,zi[on+512|0]=7471*on+32768,zi[on+768|0]=-11059*on,zi[on+1024|0]=-21709*on,zi[on+1280|0]=32768*on+8421375,zi[on+1536|0]=-27439*on,zi[on+1792|0]=-5329*on}(),ro(y)}function Af(y,z){if(this.pos=0,this.buffer=y,this.datav=new DataView(y.buffer),this.is_with_alpha=!!z,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 H0(y){function z(Gn){if(!Gn)throw Error("assert :P")}function E(Gn,Gr,An){for(var Pn=0;4>Pn;Pn++)if(Gn[Gr+Pn]!=An.charCodeAt(Pn))return!0;return!1}function re(Gn,Gr,An,Pn,pr){for(var cr=0;cr<pr;cr++)Gn[Gr+cr]=An[Pn+cr]}function Ae(Gn,Gr,An,Pn){for(var pr=0;pr<Pn;pr++)Gn[Gr+pr]=An}function he(Gn){return new Int32Array(Gn)}function Ze(Gn,Gr){for(var An=[],Pn=0;Pn<Gn;Pn++)An.push(new Gr);return An}function Pe(Gn,Gr){var An=[];return function Pn(pr,cr,vi){for(var Fi=vi[cr],Oi=0;Oi<Fi&&(pr.push(vi.length>cr+1?[]:new Gr),!(vi.length<cr+1));Oi++)Pn(pr[Oi],cr+1,vi)}(An,0,Gn),An}var Ve=function(){var Gn=this;function Gr(ge,Ie){for(var rt=1<<Ie-1>>>0;ge&rt;)rt>>>=1;return rt?(ge&rt-1)+rt:ge}function An(ge,Ie,rt,xt,Qt){z(!(xt%rt));do ge[Ie+(xt-=rt)]=Qt;while(0<xt)}function Pn(ge,Ie,rt,xt,Qt){if(z(2328>=Qt),512>=Qt)var qt=he(512);else if((qt=he(Qt))==null)return 0;return function(nn,hn,bn,Mn,Er,ci){var Un,_r,Xr=hn,Hi=1<<bn,si=he(16),Ki=he(16);for(z(Er!=0),z(Mn!=null),z(nn!=null),z(0<bn),_r=0;_r<Er;++_r){if(15<Mn[_r])return 0;++si[Mn[_r]]}if(si[0]==Er)return 0;for(Ki[1]=0,Un=1;15>Un;++Un){if(si[Un]>1<<Un)return 0;Ki[Un+1]=Ki[Un]+si[Un]}for(_r=0;_r<Er;++_r)Un=Mn[_r],0<Mn[_r]&&(ci[Ki[Un]++]=_r);if(Ki[15]==1)return(Mn=new pr).g=0,Mn.value=ci[0],An(nn,Xr,1,Hi,Mn),Hi;var Gi,yo=-1,oo=Hi-1,Ha=0,Ba=1,Ks=1,Na=1<<bn;for(_r=0,Un=1,Er=2;Un<=bn;++Un,Er<<=1){if(Ba+=Ks<<=1,0>(Ks-=si[Un]))return 0;for(;0<si[Un];--si[Un])(Mn=new pr).g=Un,Mn.value=ci[_r++],An(nn,Xr+Ha,Er,Na,Mn),Ha=Gr(Ha,Un)}for(Un=bn+1,Er=2;15>=Un;++Un,Er<<=1){if(Ba+=Ks<<=1,0>(Ks-=si[Un]))return 0;for(;0<si[Un];--si[Un]){if(Mn=new pr,(Ha&oo)!=yo){for(Xr+=Na,Gi=1<<(yo=Un)-bn;15>yo&&!(0>=(Gi-=si[yo]));)++yo,Gi<<=1;Hi+=Na=1<<(Gi=yo-bn),nn[hn+(yo=Ha&oo)].g=Gi+bn,nn[hn+yo].value=Xr-hn-yo}Mn.g=Un-bn,Mn.value=ci[_r++],An(nn,Xr+(Ha>>bn),Er,Na,Mn),Ha=Gr(Ha,Un)}}return Ba!=2*Ki[15]-1?0:Hi}(ge,Ie,rt,xt,Qt,qt)}function pr(){this.value=this.g=0}function cr(){this.value=this.g=0}function vi(){this.G=Ze(5,pr),this.H=he(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=Ze(jp,cr)}function Fi(ge,Ie,rt,xt){z(ge!=null),z(Ie!=null),z(2147483648>xt),ge.Ca=254,ge.I=0,ge.b=-8,ge.Ka=0,ge.oa=Ie,ge.pa=rt,ge.Jd=Ie,ge.Yc=rt+xt,ge.Zc=4<=xt?rt+xt-4+1:rt,Li(ge)}function Oi(ge,Ie){for(var rt=0;0<Ie--;)rt|=Xi(ge,128)<<Ie;return rt}function Ai(ge,Ie){var rt=Oi(ge,Ie);return Pi(ge)?-rt:rt}function _i(ge,Ie,rt,xt){var Qt,qt=0;for(z(ge!=null),z(Ie!=null),z(4294967288>xt),ge.Sb=xt,ge.Ra=0,ge.u=0,ge.h=0,4<xt&&(xt=4),Qt=0;Qt<xt;++Qt)qt+=Ie[rt+Qt]<<8*Qt;ge.Ra=qt,ge.bb=xt,ge.oa=Ie,ge.pa=rt}function Po(ge){for(;8<=ge.u&&ge.bb<ge.Sb;)ge.Ra>>>=8,ge.Ra+=ge.oa[ge.pa+ge.bb]<<Yh-8>>>0,++ge.bb,ge.u-=8;br(ge)&&(ge.h=1,ge.u=0)}function ro(ge,Ie){if(z(0<=Ie),!ge.h&&Ie<=vd){var rt=ir(ge)&md[Ie];return ge.u+=Ie,Po(ge),rt}return ge.h=1,ge.u=0}function on(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function zn(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function ir(ge){return ge.Ra>>>(ge.u&Yh-1)>>>0}function br(ge){return z(ge.bb<=ge.Sb),ge.h||ge.bb==ge.Sb&&ge.u>Yh}function Tr(ge,Ie){ge.u=Ie,ge.h=br(ge)}function ei(ge){ge.u>=Lh&&(z(ge.u>=Lh),Po(ge))}function Li(ge){z(ge!=null&&ge.oa!=null),ge.pa<ge.Zc?(ge.I=(ge.oa[ge.pa++]|ge.I<<8)>>>0,ge.b+=8):(z(ge!=null&&ge.oa!=null),ge.pa<ge.Yc?(ge.b+=8,ge.I=ge.oa[ge.pa++]|ge.I<<8):ge.Ka?ge.b=0:(ge.I<<=8,ge.b+=8,ge.Ka=1))}function Pi(ge){return Oi(ge,1)}function Xi(ge,Ie){var rt=ge.Ca;0>ge.b&&Li(ge);var xt=ge.b,Qt=rt*Ie>>>8,qt=(ge.I>>>xt>Qt)+0;for(qt?(rt-=Qt,ge.I-=Qt+1<<xt>>>0):rt=Qt+1,xt=rt,Qt=0;256<=xt;)Qt+=8,xt>>=8;return xt=7^Qt+Jh[xt],ge.b-=xt,ge.Ca=(rt<<xt)-1,qt}function xo(ge,Ie,rt){ge[Ie+0]=rt>>24&255,ge[Ie+1]=rt>>16&255,ge[Ie+2]=rt>>8&255,ge[Ie+3]=255&rt}function ca(ge,Ie){return ge[Ie+0]|ge[Ie+1]<<8}function ua(ge,Ie){return ca(ge,Ie)|ge[Ie+2]<<16}function Ga(ge,Ie){return ca(ge,Ie)|ca(ge,Ie+2)<<16}function _n(ge,Ie){var rt=1<<Ie;return z(ge!=null),z(0<Ie),ge.X=he(rt),ge.X==null?0:(ge.Mb=32-Ie,ge.Xa=Ie,1)}function da(ge,Ie){z(ge!=null),z(Ie!=null),z(ge.Xa==Ie.Xa),re(Ie.X,0,ge.X,0,1<<Ie.Xa)}function Vs(){this.X=[],this.Xa=this.Mb=0}function is(ge,Ie,rt,xt){z(rt!=null),z(xt!=null);var Qt=rt[0],qt=xt[0];return Qt==0&&(Qt=(ge*qt+Ie/2)/Ie),qt==0&&(qt=(Ie*Qt+ge/2)/ge),0>=Qt||0>=qt?0:(rt[0]=Qt,xt[0]=qt,1)}function po(ge,Ie){return ge+(1<<Ie)-1>>>Ie}function os(ge,Ie){return((4278255360&ge)+(4278255360&Ie)>>>0&4278255360)+((16711935&ge)+(16711935&Ie)>>>0&16711935)>>>0}function Ea(ge,Ie){Gn[Ie]=function(rt,xt,Qt,qt,nn,hn,bn){var Mn;for(Mn=0;Mn<nn;++Mn){var Er=Gn[ge](hn[bn+Mn-1],Qt,qt+Mn);hn[bn+Mn]=os(rt[xt+Mn],Er)}}}function ns(){this.ud=this.hd=this.jd=0}function Xa(ge,Ie){return((4278124286&(ge^Ie))>>>1)+(ge&Ie)>>>0}function ru(ge){return 0<=ge&&256>ge?ge:0>ge?0:255<ge?255:void 0}function hl(ge,Ie){return ru(ge+(ge-Ie+.5>>1))}function _s(ge,Ie,rt){return Math.abs(Ie-rt)-Math.abs(ge-rt)}function bl(ge,Ie,rt,xt,Qt,qt,nn){for(xt=qt[nn-1],rt=0;rt<Qt;++rt)qt[nn+rt]=xt=os(ge[Ie+rt],xt)}function pl(ge,Ie,rt,xt,Qt){var qt;for(qt=0;qt<rt;++qt){var nn=ge[Ie+qt],hn=nn>>8&255,bn=16711935&(bn=(bn=16711935&nn)+((hn<<16)+hn));xt[Qt+qt]=(4278255360&nn)+bn>>>0}}function Ma(ge,Ie){Ie.jd=255&ge,Ie.hd=ge>>8&255,Ie.ud=ge>>16&255}function Us(ge,Ie,rt,xt,Qt,qt){var nn;for(nn=0;nn<xt;++nn){var hn=Ie[rt+nn],bn=hn>>>8,Mn=hn,Er=255&(Er=(Er=hn>>>16)+((ge.jd<<24>>24)*(bn<<24>>24)>>>5));Mn=255&(Mn=(Mn+=(ge.hd<<24>>24)*(bn<<24>>24)>>>5)+((ge.ud<<24>>24)*(Er<<24>>24)>>>5)),Qt[qt+nn]=(4278255360&hn)+(Er<<16)+Mn}}function Qa(ge,Ie,rt,xt,Qt){Gn[Ie]=function(qt,nn,hn,bn,Mn,Er,ci,Un,_r){for(bn=ci;bn<Un;++bn)for(ci=0;ci<_r;++ci)Mn[Er++]=Qt(hn[xt(qt[nn++])])},Gn[ge]=function(qt,nn,hn,bn,Mn,Er,ci){var Un=8>>qt.b,_r=qt.Ea,Xr=qt.K[0],Hi=qt.w;if(8>Un)for(qt=(1<<qt.b)-1,Hi=(1<<Un)-1;nn<hn;++nn){var si,Ki=0;for(si=0;si<_r;++si)si&qt||(Ki=xt(bn[Mn++])),Er[ci++]=Qt(Xr[Ki&Hi]),Ki>>=Un}else Gn["VP8LMapColor"+rt](bn,Mn,Xr,Hi,Er,ci,nn,hn,_r)}}function bA(ge,Ie,rt,xt,Qt){for(rt=Ie+rt;Ie<rt;){var qt=ge[Ie++];xt[Qt++]=qt>>16&255,xt[Qt++]=qt>>8&255,xt[Qt++]=255&qt}}function Dl(ge,Ie,rt,xt,Qt){for(rt=Ie+rt;Ie<rt;){var qt=ge[Ie++];xt[Qt++]=qt>>16&255,xt[Qt++]=qt>>8&255,xt[Qt++]=255&qt,xt[Qt++]=qt>>24&255}}function Js(ge,Ie,rt,xt,Qt){for(rt=Ie+rt;Ie<rt;){var qt=(nn=ge[Ie++])>>16&240|nn>>12&15,nn=240&nn|nn>>28&15;xt[Qt++]=qt,xt[Qt++]=nn}}function qs(ge,Ie,rt,xt,Qt){for(rt=Ie+rt;Ie<rt;){var qt=(nn=ge[Ie++])>>16&248|nn>>13&7,nn=nn>>5&224|nn>>3&31;xt[Qt++]=qt,xt[Qt++]=nn}}function Zu(ge,Ie,rt,xt,Qt){for(rt=Ie+rt;Ie<rt;){var qt=ge[Ie++];xt[Qt++]=255&qt,xt[Qt++]=qt>>8&255,xt[Qt++]=qt>>16&255}}function Ja(ge,Ie,rt,xt,Qt,qt){if(qt==0)for(rt=Ie+rt;Ie<rt;)xo(xt,((qt=ge[Ie++])[0]>>24|qt[1]>>8&65280|qt[2]<<8&16711680|qt[3]<<24)>>>0),Qt+=32;else re(xt,Qt,ge,Ie,rt)}function Eu(ge,Ie){Gn[Ie][0]=Gn[ge+"0"],Gn[Ie][1]=Gn[ge+"1"],Gn[Ie][2]=Gn[ge+"2"],Gn[Ie][3]=Gn[ge+"3"],Gn[Ie][4]=Gn[ge+"4"],Gn[Ie][5]=Gn[ge+"5"],Gn[Ie][6]=Gn[ge+"6"],Gn[Ie][7]=Gn[ge+"7"],Gn[Ie][8]=Gn[ge+"8"],Gn[Ie][9]=Gn[ge+"9"],Gn[Ie][10]=Gn[ge+"10"],Gn[Ie][11]=Gn[ge+"11"],Gn[Ie][12]=Gn[ge+"12"],Gn[Ie][13]=Gn[ge+"13"],Gn[Ie][14]=Gn[ge+"0"],Gn[Ie][15]=Gn[ge+"0"]}function cs(ge){return ge==d0||ge==f0||ge==Lm||ge==h0}function Ts(){this.eb=[],this.size=this.A=this.fb=0}function Wu(){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 ol(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Ts,this.f.kb=new Wu,this.sd=null}function ls(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function iu(){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 Sp(ge){return alert("todo:WebPSamplerProcessPlane"),ge.T}function Lc(ge,Ie){var rt=ge.T,xt=Ie.ba.f.RGBA,Qt=xt.eb,qt=xt.fb+ge.ka*xt.A,nn=Gd[Ie.ba.S],hn=ge.y,bn=ge.O,Mn=ge.f,Er=ge.N,ci=ge.ea,Un=ge.W,_r=Ie.cc,Xr=Ie.dc,Hi=Ie.Mc,si=Ie.Nc,Ki=ge.ka,Gi=ge.ka+ge.T,yo=ge.U,oo=yo+1>>1;for(Ki==0?nn(hn,bn,null,null,Mn,Er,ci,Un,Mn,Er,ci,Un,Qt,qt,null,null,yo):(nn(Ie.ec,Ie.fc,hn,bn,_r,Xr,Hi,si,Mn,Er,ci,Un,Qt,qt-xt.A,Qt,qt,yo),++rt);Ki+2<Gi;Ki+=2)_r=Mn,Xr=Er,Hi=ci,si=Un,Er+=ge.Rc,Un+=ge.Rc,qt+=2*xt.A,nn(hn,(bn+=2*ge.fa)-ge.fa,hn,bn,_r,Xr,Hi,si,Mn,Er,ci,Un,Qt,qt-xt.A,Qt,qt,yo);return bn+=ge.fa,ge.j+Gi<ge.o?(re(Ie.ec,Ie.fc,hn,bn,yo),re(Ie.cc,Ie.dc,Mn,Er,oo),re(Ie.Mc,Ie.Nc,ci,Un,oo),rt--):1&Gi||nn(hn,bn,null,null,Mn,Er,ci,Un,Mn,Er,ci,Un,Qt,qt+xt.A,null,null,yo),rt}function gh(ge,Ie,rt){var xt=ge.F,Qt=[ge.J];if(xt!=null){var qt=ge.U,nn=Ie.ba.S,hn=nn==Im||nn==Lm;Ie=Ie.ba.f.RGBA;var bn=[0],Mn=ge.ka;bn[0]=ge.T,ge.Kb&&(Mn==0?--bn[0]:(--Mn,Qt[0]-=ge.width),ge.j+ge.ka+ge.T==ge.o&&(bn[0]=ge.o-ge.j-Mn));var Er=Ie.eb;Mn=Ie.fb+Mn*Ie.A,ge=J0(xt,Qt[0],ge.width,qt,bn,Er,Mn+(hn?0:3),Ie.A),z(rt==bn),ge&&cs(nn)&&Wg(Er,Mn,hn,qt,bn,Ie.A)}return 0}function zf(ge){var Ie=ge.ma,rt=Ie.ba.S,xt=11>rt,Qt=rt==Sm||rt==Fm||rt==Im||rt==c0||rt==12||cs(rt);if(Ie.memory=null,Ie.Ib=null,Ie.Jb=null,Ie.Nd=null,!Ug(Ie.Oa,ge,Qt?11:12))return 0;if(Qt&&cs(rt)&&Tg(),ge.da)alert("todo:use_scaling");else{if(xt){if(Ie.Ib=Sp,ge.Kb){if(rt=ge.U+1>>1,Ie.memory=he(ge.U+2*rt),Ie.memory==null)return 0;Ie.ec=Ie.memory,Ie.fc=0,Ie.cc=Ie.ec,Ie.dc=Ie.fc+ge.U,Ie.Mc=Ie.cc,Ie.Nc=Ie.dc+rt,Ie.Ib=Lc,Tg()}}else alert("todo:EmitYUV");Qt&&(Ie.Jb=gh,xt&&gf())}if(xt&&!pv){for(ge=0;256>ge;++ge)g1[ge]=89858*(ge-128)+Nm>>Dm,y1[ge]=-22014*(ge-128)+Nm,v1[ge]=-45773*(ge-128),m1[ge]=113618*(ge-128)+Nm>>Dm;for(ge=Gg;ge<m0;++ge)Ie=76283*(ge-16)+Nm>>Dm,w1[ge-Gg]=Wf(Ie,255),b1[ge-Gg]=Wf(Ie+8>>4,15);pv=1}return 1}function us(ge){var Ie=ge.ma,rt=ge.U,xt=ge.T;return z(!(1&ge.ka)),0>=rt||0>=xt?0:(rt=Ie.Ib(ge,Ie),Ie.Jb!=null&&Ie.Jb(ge,Ie,rt),Ie.Dc+=rt,1)}function mh(ge){ge.ma.memory=null}function vh(ge,Ie,rt,xt){return ro(ge,8)!=47?0:(Ie[0]=ro(ge,14)+1,rt[0]=ro(ge,14)+1,xt[0]=ro(ge,1),ro(ge,3)!=0?0:!ge.h)}function jd(ge,Ie){if(4>ge)return ge+1;var rt=ge-2>>1;return(2+(1&ge)<<rt)+ro(Ie,rt)+1}function Hd(ge,Ie){return 120<Ie?Ie-120:1<=(rt=((rt=n1[Ie-1])>>4)*ge+(8-(15&rt)))?rt:1;var rt}function cA(ge,Ie,rt){var xt=ir(rt),Qt=ge[Ie+=255&xt].g-8;return 0<Qt&&(Tr(rt,rt.u+8),xt=ir(rt),Ie+=ge[Ie].value,Ie+=xt&(1<<Qt)-1),Tr(rt,rt.u+ge[Ie].g),ge[Ie].value}function ec(ge,Ie,rt){return rt.g+=ge.g,rt.value+=ge.value<<Ie>>>0,z(8>=rt.g),ge.g}function ac(ge,Ie,rt){var xt=ge.xc;return z((Ie=xt==0?0:ge.vc[ge.md*(rt>>xt)+(Ie>>xt)])<ge.Wb),ge.Ya[Ie]}function Fp(ge,Ie,rt,xt){var Qt=ge.ab,qt=ge.c*Ie,nn=ge.C;Ie=nn+Ie;var hn=rt,bn=xt;for(xt=ge.Ta,rt=ge.Ua;0<Qt--;){var Mn=ge.gc[Qt],Er=nn,ci=Ie,Un=hn,_r=bn,Xr=(bn=xt,hn=rt,Mn.Ea);switch(z(Er<ci),z(ci<=Mn.nc),Mn.hc){case 2:CA(Un,_r,(ci-Er)*Xr,bn,hn);break;case 0:var Hi=Er,si=ci,Ki=bn,Gi=hn,yo=(Na=Mn).Ea;Hi==0&&(jg(Un,_r,null,null,1,Ki,Gi),bl(Un,_r+1,0,0,yo-1,Ki,Gi+1),_r+=yo,Gi+=yo,++Hi);for(var oo=1<<Na.b,Ha=oo-1,Ba=po(yo,Na.b),Ks=Na.K,Na=Na.w+(Hi>>Na.b)*Ba;Hi<si;){var Cl=Ks,QA=Na,Zs=1;for(fg(Un,_r,Ki,Gi-yo,1,Ki,Gi);Zs<yo;){var Oa=(Zs&~Ha)+oo;Oa>yo&&(Oa=yo),(0,Qg[Cl[QA++]>>8&15])(Un,_r+ +Zs,Ki,Gi+Zs-yo,Oa-Zs,Ki,Gi+Zs),Zs=Oa}_r+=yo,Gi+=yo,++Hi&Ha||(Na+=Ba)}ci!=Mn.nc&&re(bn,hn-Xr,bn,hn+(ci-Er-1)*Xr,Xr);break;case 1:for(Xr=Un,si=_r,yo=(Un=Mn.Ea)-(Gi=Un&~(Ki=(_r=1<<Mn.b)-1)),Hi=po(Un,Mn.b),oo=Mn.K,Mn=Mn.w+(Er>>Mn.b)*Hi;Er<ci;){for(Ha=oo,Ba=Mn,Ks=new ns,Na=si+Gi,Cl=si+Un;si<Na;)Ma(Ha[Ba++],Ks),zg(Ks,Xr,si,_r,bn,hn),si+=_r,hn+=_r;si<Cl&&(Ma(Ha[Ba++],Ks),zg(Ks,Xr,si,yo,bn,hn),si+=yo,hn+=yo),++Er&Ki||(Mn+=Hi)}break;case 3:if(Un==bn&&_r==hn&&0<Mn.b){for(si=bn,Un=Xr=hn+(ci-Er)*Xr-(Gi=(ci-Er)*po(Mn.Ea,Mn.b)),_r=bn,Ki=hn,Hi=[],Gi=(yo=Gi)-1;0<=Gi;--Gi)Hi[Gi]=_r[Ki+Gi];for(Gi=yo-1;0<=Gi;--Gi)si[Un+Gi]=Hi[Gi];Cm(Mn,Er,ci,bn,Xr,bn,hn)}else Cm(Mn,Er,ci,Un,_r,bn,hn)}hn=xt,bn=rt}bn!=rt&&re(xt,rt,hn,bn,qt)}function $h(ge,Ie){var rt=ge.V,xt=ge.Ba+ge.c*ge.C,Qt=Ie-ge.C;if(z(Ie<=ge.l.o),z(16>=Qt),0<Qt){var qt=ge.l,nn=ge.Ta,hn=ge.Ua,bn=qt.width;if(Fp(ge,Qt,rt,xt),Qt=hn=[hn],z((rt=ge.C)<(xt=Ie)),z(qt.v<qt.va),xt>qt.o&&(xt=qt.o),rt<qt.j){var Mn=qt.j-rt;rt=qt.j,Qt[0]+=Mn*bn}if(rt>=xt?rt=0:(Qt[0]+=4*qt.v,qt.ka=rt-qt.j,qt.U=qt.va-qt.v,qt.T=xt-rt,rt=1),rt){if(hn=hn[0],11>(rt=ge.ca).S){var Er=rt.f.RGBA,ci=(xt=rt.S,Qt=qt.U,qt=qt.T,Mn=Er.eb,Er.A),Un=qt;for(Er=Er.fb+ge.Ma*Er.A;0<Un--;){var _r=nn,Xr=hn,Hi=Qt,si=Mn,Ki=Er;switch(xt){case Em:Kg(_r,Xr,Hi,si,Ki);break;case Sm:qh(_r,Xr,Hi,si,Ki);break;case d0:qh(_r,Xr,Hi,si,Ki),Wg(si,Ki,0,Hi,1,0);break;case ov:Hp(_r,Xr,Hi,si,Ki);break;case Fm:Ja(_r,Xr,Hi,si,Ki,1);break;case f0:Ja(_r,Xr,Hi,si,Ki,1),Wg(si,Ki,0,Hi,1,0);break;case Im:Ja(_r,Xr,Hi,si,Ki,0);break;case Lm:Ja(_r,Xr,Hi,si,Ki,0),Wg(si,Ki,1,Hi,1,0);break;case c0:ep(_r,Xr,Hi,si,Ki);break;case h0:ep(_r,Xr,Hi,si,Ki),Y0(si,Ki,Hi,1,0);break;case av:tp(_r,Xr,Hi,si,Ki);break;default:z(0)}hn+=bn,Er+=ci}ge.Ma+=qt}else alert("todo:EmitRescaledRowsYUVA");z(ge.Ma<=rt.height)}}ge.C=Ie,z(ge.C<=ge.i)}function df(ge){var Ie;if(0<ge.ua)return 0;for(Ie=0;Ie<ge.Wb;++Ie){var rt=ge.Ya[Ie].G,xt=ge.Ya[Ie].H;if(0<rt[1][xt[1]+0].g||0<rt[2][xt[2]+0].g||0<rt[3][xt[3]+0].g)return 0}return 1}function Kf(ge,Ie,rt,xt,Qt,qt){if(ge.Z!=0){var nn=ge.qd,hn=ge.rd;for(z(ip[ge.Z]!=null);Ie<rt;++Ie)ip[ge.Z](nn,hn,xt,Qt,xt,Qt,qt),nn=xt,hn=Qt,Qt+=qt;ge.qd=nn,ge.rd=hn}}function ff(ge,Ie){var rt=ge.l.ma,xt=rt.Z==0||rt.Z==1?ge.l.j:ge.C;if(xt=ge.C<xt?xt:ge.C,z(Ie<=ge.l.o),Ie>xt){var Qt=ge.l.width,qt=rt.ca,nn=rt.tb+Qt*xt,hn=ge.V,bn=ge.Ba+ge.c*xt,Mn=ge.gc;z(ge.ab==1),z(Mn[0].hc==3),Xf(Mn[0],xt,Ie,hn,bn,qt,nn),Kf(rt,xt,Ie,qt,nn,Qt)}ge.C=ge.Ma=Ie}function hf(ge,Ie,rt,xt,Qt,qt,nn){var hn=ge.$/xt,bn=ge.$%xt,Mn=ge.m,Er=ge.s,ci=rt+ge.$,Un=ci;Qt=rt+xt*Qt;var _r=rt+xt*qt,Xr=280+Er.ua,Hi=ge.Pb?hn:16777216,si=0<Er.ua?Er.Wa:null,Ki=Er.wc,Gi=ci<_r?ac(Er,bn,hn):null;z(ge.C<qt),z(_r<=Qt);var yo=!1;e:for(;;){for(;yo||ci<_r;){var oo=0;if(hn>=Hi){var Ha=ci-rt;z((Hi=ge).Pb),Hi.wd=Hi.m,Hi.xd=Ha,0<Hi.s.ua&&da(Hi.s.Wa,Hi.s.vb),Hi=hn+i1}if(bn&Ki||(Gi=ac(Er,bn,hn)),z(Gi!=null),Gi.Qb&&(Ie[ci]=Gi.qb,yo=!0),!yo)if(ei(Mn),Gi.jc){oo=Mn,Ha=Ie;var Ba=ci,Ks=Gi.pd[ir(oo)&jp-1];z(Gi.jc),256>Ks.g?(Tr(oo,oo.u+Ks.g),Ha[Ba]=Ks.value,oo=0):(Tr(oo,oo.u+Ks.g-256),z(256<=Ks.value),oo=Ks.value),oo==0&&(yo=!0)}else oo=cA(Gi.G[0],Gi.H[0],Mn);if(Mn.h)break;if(yo||256>oo){if(!yo)if(Gi.nd)Ie[ci]=(Gi.qb|oo<<8)>>>0;else{if(ei(Mn),yo=cA(Gi.G[1],Gi.H[1],Mn),ei(Mn),Ha=cA(Gi.G[2],Gi.H[2],Mn),Ba=cA(Gi.G[3],Gi.H[3],Mn),Mn.h)break;Ie[ci]=(Ba<<24|yo<<16|oo<<8|Ha)>>>0}if(yo=!1,++ci,++bn>=xt&&(bn=0,++hn,nn!=null&&hn<=qt&&!(hn%16)&&nn(ge,hn),si!=null))for(;Un<ci;)oo=Ie[Un++],si.X[(506832829*oo&4294967295)>>>si.Mb]=oo}else if(280>oo){if(oo=jd(oo-256,Mn),Ha=cA(Gi.G[4],Gi.H[4],Mn),ei(Mn),Ha=Hd(xt,Ha=jd(Ha,Mn)),Mn.h)break;if(ci-rt<Ha||Qt-ci<oo)break e;for(Ba=0;Ba<oo;++Ba)Ie[ci+Ba]=Ie[ci+Ba-Ha];for(ci+=oo,bn+=oo;bn>=xt;)bn-=xt,++hn,nn!=null&&hn<=qt&&!(hn%16)&&nn(ge,hn);if(z(ci<=Qt),bn&Ki&&(Gi=ac(Er,bn,hn)),si!=null)for(;Un<ci;)oo=Ie[Un++],si.X[(506832829*oo&4294967295)>>>si.Mb]=oo}else{if(!(oo<Xr))break e;for(yo=oo-280,z(si!=null);Un<ci;)oo=Ie[Un++],si.X[(506832829*oo&4294967295)>>>si.Mb]=oo;oo=ci,z(!(yo>>>(Ha=si).Xa)),Ie[oo]=Ha.X[yo],yo=!0}yo||z(Mn.h==br(Mn))}if(ge.Pb&&Mn.h&&ci<Qt)z(ge.m.h),ge.a=5,ge.m=ge.wd,ge.$=ge.xd,0<ge.s.ua&&da(ge.s.vb,ge.s.Wa);else{if(Mn.h)break e;nn!=null&&nn(ge,hn>qt?qt:hn),ge.a=0,ge.$=ci-rt}return 1}return ge.a=3,0}function Qd(ge){z(ge!=null),ge.vc=null,ge.yc=null,ge.Ya=null;var Ie=ge.Wa;Ie!=null&&(Ie.X=null),ge.vb=null,z(ge!=null)}function Ip(){var ge=new Cs;return ge==null?null:(ge.a=0,ge.xb=uv,Eu("Predictor","VP8LPredictors"),Eu("Predictor","VP8LPredictors_C"),Eu("PredictorAdd","VP8LPredictorsAdd"),Eu("PredictorAdd","VP8LPredictorsAdd_C"),CA=pl,zg=Us,Kg=bA,qh=Dl,ep=Js,tp=qs,Hp=Zu,Gn.VP8LMapColor32b=Vf,Gn.VP8LMapColor8b=Hg,ge)}function Zf(ge,Ie,rt,xt,Qt){var qt=1,nn=[ge],hn=[Ie],bn=xt.m,Mn=xt.s,Er=null,ci=0;e:for(;;){if(rt)for(;qt&&ro(bn,1);){var Un=nn,_r=hn,Xr=xt,Hi=1,si=Xr.m,Ki=Xr.gc[Xr.ab],Gi=ro(si,2);if(Xr.Oc&1<<Gi)qt=0;else{switch(Xr.Oc|=1<<Gi,Ki.hc=Gi,Ki.Ea=Un[0],Ki.nc=_r[0],Ki.K=[null],++Xr.ab,z(4>=Xr.ab),Gi){case 0:case 1:Ki.b=ro(si,3)+2,Hi=Zf(po(Ki.Ea,Ki.b),po(Ki.nc,Ki.b),0,Xr,Ki.K),Ki.K=Ki.K[0];break;case 3:var yo,oo=ro(si,8)+1,Ha=16<oo?0:4<oo?1:2<oo?2:3;if(Un[0]=po(Ki.Ea,Ha),Ki.b=Ha,yo=Hi=Zf(oo,1,0,Xr,Ki.K)){var Ba,Ks=oo,Na=Ki,Cl=1<<(8>>Na.b),QA=he(Cl);if(QA==null)yo=0;else{var Zs=Na.K[0],Oa=Na.w;for(QA[0]=Na.K[0][0],Ba=1;Ba<1*Ks;++Ba)QA[Ba]=os(Zs[Oa+Ba],QA[Ba-1]);for(;Ba<4*Cl;++Ba)QA[Ba]=0;Na.K[0]=null,Na.K[0]=QA,yo=1}}Hi=yo;break;case 2:break;default:z(0)}qt=Hi}}if(nn=nn[0],hn=hn[0],qt&&ro(bn,1)&&!(qt=1<=(ci=ro(bn,4))&&11>=ci)){xt.a=3;break e}var Xo;if(Xo=qt)t:{var BA,ks,Ll,Tu=xt,uc=nn,Hc=hn,dA=ci,Dc=rt,Qc=Tu.m,zA=Tu.s,Ol=[null],lu=1,fA=0,uu=r1[dA];n:for(;;){if(Dc&&ro(Qc,1)){var Ac=ro(Qc,3)+2,vf=po(uc,Ac),EA=po(Hc,Ac),qc=vf*EA;if(!Zf(vf,EA,0,Tu,Ol))break n;for(Ol=Ol[0],zA.xc=Ac,BA=0;BA<qc;++BA){var wu=Ol[BA]>>8&65535;Ol[BA]=wu,wu>=lu&&(lu=wu+1)}}if(Qc.h)break n;for(ks=0;5>ks;++ks){var KA=sv[ks];!ks&&0<dA&&(KA+=1<<dA),fA<KA&&(fA=KA)}var wd=Ze(lu*uu,pr),zc=lu,bd=Ze(zc,vi);if(bd==null)var Cd=null;else z(65536>=zc),Cd=bd;var ed=he(fA);if(Cd==null||ed==null||wd==null){Tu.a=1;break n}var xd=wd;for(BA=Ll=0;BA<lu;++BA){var Fu=Cd[BA],Bd=Fu.G,yf=Fu.H,zp=0,Oh=1,cc=0;for(ks=0;5>ks;++ks){KA=sv[ks],Bd[ks]=xd,yf[ks]=Ll,!ks&&0<dA&&(KA+=1<<dA);i:{var Pm,v0=KA,_m=Tu,Vg=ed,B1=xd,E1=Ll,y0=0,op=_m.m,S1=ro(op,1);if(Ae(Vg,0,0,v0),S1){var F1=ro(op,1)+1,I1=ro(op,1),vv=ro(op,I1==0?1:8);Vg[vv]=1,F1==2&&(Vg[vv=ro(op,8)]=1);var Tm=1}else{var yv=he(19),wv=ro(op,4)+4;if(19<wv){_m.a=3;var km=0;break i}for(Pm=0;Pm<wv;++Pm)yv[t1[Pm]]=ro(op,3);var w0=void 0,Xg=void 0,bv=_m,L1=yv,Mm=v0,Cv=Vg,b0=0,ap=bv.m,xv=8,Bv=Ze(128,pr);r:for(;Pn(Bv,0,7,L1,19);){if(ro(ap,1)){var D1=2+2*ro(ap,3);if((w0=2+ro(ap,D1))>Mm)break r}else w0=Mm;for(Xg=0;Xg<Mm&&w0--;){ei(ap);var Ev=Bv[0+(127&ir(ap))];Tr(ap,ap.u+Ev.g);var pg=Ev.value;if(16>pg)Cv[Xg++]=pg,pg!=0&&(xv=pg);else{var N1=pg==16,Sv=pg-16,O1=qv[Sv],Fv=ro(ap,Jv[Sv])+O1;if(Xg+Fv>Mm)break r;for(var P1=N1?xv:0;0<Fv--;)Cv[Xg++]=P1}}b0=1;break r}b0||(bv.a=3),Tm=b0}(Tm=Tm&&!op.h)&&(y0=Pn(B1,E1,8,Vg,v0)),Tm&&y0!=0?km=y0:(_m.a=3,km=0)}if(km==0)break n;if(Oh&&e1[ks]==1&&(Oh=xd[Ll].g==0),zp+=xd[Ll].g,Ll+=km,3>=ks){var Yg,C0=ed[0];for(Yg=1;Yg<KA;++Yg)ed[Yg]>C0&&(C0=ed[Yg]);cc+=C0}}if(Fu.nd=Oh,Fu.Qb=0,Oh&&(Fu.qb=(Bd[3][yf[3]+0].value<<24|Bd[1][yf[1]+0].value<<16|Bd[2][yf[2]+0].value)>>>0,zp==0&&256>Bd[0][yf[0]+0].value&&(Fu.Qb=1,Fu.qb+=Bd[0][yf[0]+0].value<<8)),Fu.jc=!Fu.Qb&&6>cc,Fu.jc){var Um,Ph=Fu;for(Um=0;Um<jp;++Um){var sp=Um,lp=Ph.pd[sp],Rm=Ph.G[0][Ph.H[0]+sp];256<=Rm.value?(lp.g=Rm.g+256,lp.value=Rm.value):(lp.g=0,lp.value=0,sp>>=ec(Rm,8,lp),sp>>=ec(Ph.G[1][Ph.H[1]+sp],16,lp),sp>>=ec(Ph.G[2][Ph.H[2]+sp],0,lp),ec(Ph.G[3][Ph.H[3]+sp],24,lp))}}}zA.vc=Ol,zA.Wb=lu,zA.Ya=Cd,zA.yc=wd,Xo=1;break t}Xo=0}if(!(qt=Xo)){xt.a=3;break e}if(0<ci){if(Mn.ua=1<<ci,!_n(Mn.Wa,ci)){xt.a=1,qt=0;break e}}else Mn.ua=0;var x0=xt,Iv=nn,_1=hn,B0=x0.s,E0=B0.xc;if(x0.c=Iv,x0.i=_1,B0.md=po(Iv,E0),B0.wc=E0==0?-1:(1<<E0)-1,rt){xt.xb=c1;break e}if((Er=he(nn*hn))==null){xt.a=1,qt=0;break e}qt=(qt=hf(xt,Er,0,nn,hn,hn,null))&&!bn.h;break e}return qt?(Qt!=null?Qt[0]=Er:(z(Er==null),z(rt)),xt.$=0,rt||Qd(Mn)):Qd(Mn),qt}function Lp(ge,Ie){var rt=ge.c*ge.i,xt=rt+Ie+16*Ie;return z(ge.c<=Ie),ge.V=he(xt),ge.V==null?(ge.Ta=null,ge.Ua=0,ge.a=1,0):(ge.Ta=ge.V,ge.Ua=ge.Ba+rt+Ie,1)}function rg(ge,Ie){var rt=ge.C,xt=Ie-rt,Qt=ge.V,qt=ge.Ba+ge.c*rt;for(z(Ie<=ge.l.o);0<xt;){var nn=16<xt?16:xt,hn=ge.l.ma,bn=ge.l.width,Mn=bn*nn,Er=hn.ca,ci=hn.tb+bn*rt,Un=ge.Ta,_r=ge.Ua;Fp(ge,nn,Qt,qt),q0(Un,_r,Er,ci,Mn),Kf(hn,rt,rt+nn,Er,ci,bn),xt-=nn,Qt+=nn*ge.c,rt+=nn}z(rt==Ie),ge.C=ge.Ma=Ie}function ig(){this.ub=this.yd=this.td=this.Rb=0}function og(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Gm(){this.Fb=this.Bb=this.Cb=0,this.Zb=he(4),this.Lb=he(4)}function Bg(){this.Yb=function(){var ge=[];return function Ie(rt,xt,Qt){for(var qt=Qt[xt],nn=0;nn<qt&&(rt.push(Qt.length>xt+1?[]:0),!(Qt.length<xt+1));nn++)Ie(rt[nn],xt+1,Qt)}(ge,0,[3,11]),ge}()}function im(){this.jb=he(3),this.Wc=Pe([4,8],Bg),this.Xc=Pe([4,17],Bg)}function om(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new he(4),this.od=new he(4)}function zd(){this.ld=this.La=this.dd=this.tc=0}function Eg(){this.Na=this.la=0}function am(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Sg(){this.ad=he(384),this.Za=0,this.Ob=he(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function sm(){this.uc=this.M=this.Nb=0,this.wa=Array(new zd),this.Y=0,this.ya=Array(new Sg),this.aa=0,this.l=new ag}function lm(){this.y=he(16),this.f=he(8),this.ea=he(8)}function um(){this.cb=this.a=0,this.sc="",this.m=new on,this.Od=new ig,this.Kc=new og,this.ed=new om,this.Qa=new Gm,this.Ic=this.$c=this.Aa=0,this.D=new sm,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=Ze(8,on),this.ia=0,this.pb=Ze(4,am),this.Pa=new im,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new lm),this.Hd=0,this.rb=Array(new Eg),this.sb=0,this.wa=Array(new zd),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 Sg),this.L=this.aa=0,this.gd=Pe([4,2],zd),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 Wf(ge,Ie){return 0>ge?0:ge>Ie?Ie:ge}function ag(){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 Vm(){var ge=new um;return ge!=null&&(ge.a=0,ge.sc="OK",ge.cb=0,ge.Xb=0,$g||($g=sg)),ge}function DA(ge,Ie,rt){return ge.a==0&&(ge.a=Ie,ge.sc=rt,ge.cb=0),0}function Am(ge,Ie,rt){return 3<=rt&&ge[Ie+0]==157&&ge[Ie+1]==1&&ge[Ie+2]==42}function $f(ge,Ie){if(ge==null)return 0;if(ge.a=0,ge.sc="OK",Ie==null)return DA(ge,2,"null VP8Io passed to VP8GetHeaders()");var rt=Ie.data,xt=Ie.w,Qt=Ie.ha;if(4>Qt)return DA(ge,7,"Truncated header.");var qt=rt[xt+0]|rt[xt+1]<<8|rt[xt+2]<<16,nn=ge.Od;if(nn.Rb=!(1&qt),nn.td=qt>>1&7,nn.yd=qt>>4&1,nn.ub=qt>>5,3<nn.td)return DA(ge,3,"Incorrect keyframe parameters.");if(!nn.yd)return DA(ge,4,"Frame not displayable.");xt+=3,Qt-=3;var hn=ge.Kc;if(nn.Rb){if(7>Qt)return DA(ge,7,"cannot parse picture header");if(!Am(rt,xt,Qt))return DA(ge,3,"Bad code word");hn.c=16383&(rt[xt+4]<<8|rt[xt+3]),hn.Td=rt[xt+4]>>6,hn.i=16383&(rt[xt+6]<<8|rt[xt+5]),hn.Ud=rt[xt+6]>>6,xt+=7,Qt-=7,ge.za=hn.c+15>>4,ge.Ub=hn.i+15>>4,Ie.width=hn.c,Ie.height=hn.i,Ie.Da=0,Ie.j=0,Ie.v=0,Ie.va=Ie.width,Ie.o=Ie.height,Ie.da=0,Ie.ib=Ie.width,Ie.hb=Ie.height,Ie.U=Ie.width,Ie.T=Ie.height,Ae((qt=ge.Pa).jb,0,255,qt.jb.length),z((qt=ge.Qa)!=null),qt.Cb=0,qt.Bb=0,qt.Fb=1,Ae(qt.Zb,0,0,qt.Zb.length),Ae(qt.Lb,0,0,qt.Lb)}if(nn.ub>Qt)return DA(ge,7,"bad partition length");Fi(qt=ge.m,rt,xt,nn.ub),xt+=nn.ub,Qt-=nn.ub,nn.Rb&&(hn.Ld=Pi(qt),hn.Kd=Pi(qt)),hn=ge.Qa;var bn,Mn=ge.Pa;if(z(qt!=null),z(hn!=null),hn.Cb=Pi(qt),hn.Cb){if(hn.Bb=Pi(qt),Pi(qt)){for(hn.Fb=Pi(qt),bn=0;4>bn;++bn)hn.Zb[bn]=Pi(qt)?Ai(qt,7):0;for(bn=0;4>bn;++bn)hn.Lb[bn]=Pi(qt)?Ai(qt,6):0}if(hn.Bb)for(bn=0;3>bn;++bn)Mn.jb[bn]=Pi(qt)?Oi(qt,8):255}else hn.Bb=0;if(qt.Ka)return DA(ge,3,"cannot parse segment header");if((hn=ge.ed).zd=Pi(qt),hn.Tb=Oi(qt,6),hn.wb=Oi(qt,3),hn.Pc=Pi(qt),hn.Pc&&Pi(qt)){for(Mn=0;4>Mn;++Mn)Pi(qt)&&(hn.vd[Mn]=Ai(qt,6));for(Mn=0;4>Mn;++Mn)Pi(qt)&&(hn.od[Mn]=Ai(qt,6))}if(ge.L=hn.Tb==0?0:hn.zd?1:2,qt.Ka)return DA(ge,3,"cannot parse filter header");var Er=Qt;if(Qt=bn=xt,xt=bn+Er,hn=Er,ge.Xb=(1<<Oi(ge.m,2))-1,Er<3*(Mn=ge.Xb))rt=7;else{for(bn+=3*Mn,hn-=3*Mn,Er=0;Er<Mn;++Er){var ci=rt[Qt+0]|rt[Qt+1]<<8|rt[Qt+2]<<16;ci>hn&&(ci=hn),Fi(ge.Jc[+Er],rt,bn,ci),bn+=ci,hn-=ci,Qt+=3}Fi(ge.Jc[+Mn],rt,bn,hn),rt=bn<xt?0:5}if(rt!=0)return DA(ge,rt,"cannot parse partitions");for(rt=Oi(bn=ge.m,7),Qt=Pi(bn)?Ai(bn,4):0,xt=Pi(bn)?Ai(bn,4):0,hn=Pi(bn)?Ai(bn,4):0,Mn=Pi(bn)?Ai(bn,4):0,bn=Pi(bn)?Ai(bn,4):0,Er=ge.Qa,ci=0;4>ci;++ci){if(Er.Cb){var Un=Er.Zb[ci];Er.Fb||(Un+=rt)}else{if(0<ci){ge.pb[ci]=ge.pb[0];continue}Un=rt}var _r=ge.pb[ci];_r.Sc[0]=p0[Wf(Un+Qt,127)],_r.Sc[1]=g0[Wf(Un+0,127)],_r.Eb[0]=2*p0[Wf(Un+xt,127)],_r.Eb[1]=101581*g0[Wf(Un+hn,127)]>>16,8>_r.Eb[1]&&(_r.Eb[1]=8),_r.Qc[0]=p0[Wf(Un+Mn,117)],_r.Qc[1]=g0[Wf(Un+bn,127)],_r.lc=Un+bn}if(!nn.Rb)return DA(ge,4,"Not a key frame.");for(Pi(qt),nn=ge.Pa,rt=0;4>rt;++rt){for(Qt=0;8>Qt;++Qt)for(xt=0;3>xt;++xt)for(hn=0;11>hn;++hn)Mn=Xi(qt,u1[rt][Qt][xt][hn])?Oi(qt,8):s1[rt][Qt][xt][hn],nn.Wc[rt][Qt].Yb[xt][hn]=Mn;for(Qt=0;17>Qt;++Qt)nn.Xc[rt][Qt]=nn.Wc[rt][A1[Qt]]}return ge.kc=Pi(qt),ge.kc&&(ge.Bd=Oi(qt,8)),ge.cb=1}function sg(ge,Ie,rt,xt,Qt,qt,nn){var hn=Ie[Qt].Yb[rt];for(rt=0;16>Qt;++Qt){if(!Xi(ge,hn[rt+0]))return Qt;for(;!Xi(ge,hn[rt+1]);)if(hn=Ie[++Qt].Yb[0],rt=0,Qt==16)return 16;var bn=Ie[Qt+1].Yb;if(Xi(ge,hn[rt+2])){var Mn=ge,Er=0;if(Xi(Mn,(Un=hn)[(ci=rt)+3]))if(Xi(Mn,Un[ci+6])){for(hn=0,ci=2*(Er=Xi(Mn,Un[ci+8]))+(Un=Xi(Mn,Un[ci+9+Er])),Er=0,Un=o1[ci];Un[hn];++hn)Er+=Er+Xi(Mn,Un[hn]);Er+=3+(8<<ci)}else Xi(Mn,Un[ci+7])?(Er=7+2*Xi(Mn,165),Er+=Xi(Mn,145)):Er=5+Xi(Mn,159);else Er=Xi(Mn,Un[ci+4])?3+Xi(Mn,Un[ci+5]):2;hn=bn[2]}else Er=1,hn=bn[1];bn=nn+a1[Qt],0>(Mn=ge).b&&Li(Mn);var ci,Un=Mn.b,_r=(ci=Mn.Ca>>1)-(Mn.I>>Un)>>31;--Mn.b,Mn.Ca+=_r,Mn.Ca|=1,Mn.I-=(ci+1&_r)<<Un,qt[bn]=((Er^_r)-_r)*xt[(0<Qt)+0]}return 16}function cm(ge){var Ie=ge.rb[ge.sb-1];Ie.la=0,Ie.Na=0,Ae(ge.zc,0,0,ge.zc.length),ge.ja=0}function Kd(ge,Ie,rt,xt,Qt){Qt=ge[Ie+rt+32*xt]+(Qt>>3),ge[Ie+rt+32*xt]=-256&Qt?0>Qt?0:255:Qt}function RA(ge,Ie,rt,xt,Qt,qt){Kd(ge,Ie,0,rt,xt+Qt),Kd(ge,Ie,1,rt,xt+qt),Kd(ge,Ie,2,rt,xt-qt),Kd(ge,Ie,3,rt,xt-Qt)}function yh(ge){return(20091*ge>>16)+ge}function dm(ge,Ie,rt,xt){var Qt,qt=0,nn=he(16);for(Qt=0;4>Qt;++Qt){var hn=ge[Ie+0]+ge[Ie+8],bn=ge[Ie+0]-ge[Ie+8],Mn=(35468*ge[Ie+4]>>16)-yh(ge[Ie+12]),Er=yh(ge[Ie+4])+(35468*ge[Ie+12]>>16);nn[qt+0]=hn+Er,nn[qt+1]=bn+Mn,nn[qt+2]=bn-Mn,nn[qt+3]=hn-Er,qt+=4,Ie++}for(Qt=qt=0;4>Qt;++Qt)hn=(ge=nn[qt+0]+4)+nn[qt+8],bn=ge-nn[qt+8],Mn=(35468*nn[qt+4]>>16)-yh(nn[qt+12]),Kd(rt,xt,0,0,hn+(Er=yh(nn[qt+4])+(35468*nn[qt+12]>>16))),Kd(rt,xt,1,0,bn+Mn),Kd(rt,xt,2,0,bn-Mn),Kd(rt,xt,3,0,hn-Er),qt++,xt+=32}function Xm(ge,Ie,rt,xt){var Qt=ge[Ie+0]+4,qt=35468*ge[Ie+4]>>16,nn=yh(ge[Ie+4]),hn=35468*ge[Ie+1]>>16;RA(rt,xt,0,Qt+nn,ge=yh(ge[Ie+1]),hn),RA(rt,xt,1,Qt+qt,ge,hn),RA(rt,xt,2,Qt-qt,ge,hn),RA(rt,xt,3,Qt-nn,ge,hn)}function Ym(ge,Ie,rt,xt,Qt){dm(ge,Ie,rt,xt),Qt&&dm(ge,Ie+16,rt,xt+4)}function Gf(ge,Ie,rt,xt){Qp(ge,Ie+0,rt,xt,1),Qp(ge,Ie+32,rt,xt+128,1)}function fm(ge,Ie,rt,xt){var Qt;for(ge=ge[Ie+0]+4,Qt=0;4>Qt;++Qt)for(Ie=0;4>Ie;++Ie)Kd(rt,xt,Ie,Qt,ge)}function hm(ge,Ie,rt,xt){ge[Ie+0]&&ou(ge,Ie+0,rt,xt),ge[Ie+16]&&ou(ge,Ie+16,rt,xt+4),ge[Ie+32]&&ou(ge,Ie+32,rt,xt+128),ge[Ie+48]&&ou(ge,Ie+48,rt,xt+128+4)}function lg(ge,Ie,rt,xt){var Qt,qt=he(16);for(Qt=0;4>Qt;++Qt){var nn=ge[Ie+0+Qt]+ge[Ie+12+Qt],hn=ge[Ie+4+Qt]+ge[Ie+8+Qt],bn=ge[Ie+4+Qt]-ge[Ie+8+Qt],Mn=ge[Ie+0+Qt]-ge[Ie+12+Qt];qt[0+Qt]=nn+hn,qt[8+Qt]=nn-hn,qt[4+Qt]=Mn+bn,qt[12+Qt]=Mn-bn}for(Qt=0;4>Qt;++Qt)nn=(ge=qt[0+4*Qt]+3)+qt[3+4*Qt],hn=qt[1+4*Qt]+qt[2+4*Qt],bn=qt[1+4*Qt]-qt[2+4*Qt],Mn=ge-qt[3+4*Qt],rt[xt+0]=nn+hn>>3,rt[xt+16]=Mn+bn>>3,rt[xt+32]=nn-hn>>3,rt[xt+48]=Mn-bn>>3,xt+=64}function Dp(ge,Ie,rt){var xt,Qt=Ie-32,qt=yd,nn=255-ge[Qt-1];for(xt=0;xt<rt;++xt){var hn,bn=qt,Mn=nn+ge[Ie-1];for(hn=0;hn<rt;++hn)ge[Ie+hn]=bn[Mn+ge[Qt+hn]];Ie+=32}}function Jm(ge,Ie){Dp(ge,Ie,4)}function qm(ge,Ie){Dp(ge,Ie,8)}function e0(ge,Ie){Dp(ge,Ie,16)}function Fg(ge,Ie){var rt;for(rt=0;16>rt;++rt)re(ge,Ie+32*rt,ge,Ie-32,16)}function pm(ge,Ie){var rt;for(rt=16;0<rt;--rt)Ae(ge,Ie,ge[Ie-1],16),Ie+=32}function pf(ge,Ie,rt){var xt;for(xt=0;16>xt;++xt)Ae(Ie,rt+32*xt,ge,16)}function t0(ge,Ie){var rt,xt=16;for(rt=0;16>rt;++rt)xt+=ge[Ie-1+32*rt]+ge[Ie+rt-32];pf(xt>>5,ge,Ie)}function Np(ge,Ie){var rt,xt=8;for(rt=0;16>rt;++rt)xt+=ge[Ie-1+32*rt];pf(xt>>4,ge,Ie)}function Ig(ge,Ie){var rt,xt=8;for(rt=0;16>rt;++rt)xt+=ge[Ie+rt-32];pf(xt>>4,ge,Ie)}function n0(ge,Ie){pf(128,ge,Ie)}function Es(ge,Ie,rt){return ge+2*Ie+rt+2>>2}function r0(ge,Ie){var rt,xt=Ie-32;for(xt=new Uint8Array([Es(ge[xt-1],ge[xt+0],ge[xt+1]),Es(ge[xt+0],ge[xt+1],ge[xt+2]),Es(ge[xt+1],ge[xt+2],ge[xt+3]),Es(ge[xt+2],ge[xt+3],ge[xt+4])]),rt=0;4>rt;++rt)re(ge,Ie+32*rt,xt,0,xt.length)}function i0(ge,Ie){var rt=ge[Ie-1],xt=ge[Ie-1+32],Qt=ge[Ie-1+64],qt=ge[Ie-1+96];xo(ge,Ie+0,16843009*Es(ge[Ie-1-32],rt,xt)),xo(ge,Ie+32,16843009*Es(rt,xt,Qt)),xo(ge,Ie+64,16843009*Es(xt,Qt,qt)),xo(ge,Ie+96,16843009*Es(Qt,qt,qt))}function o0(ge,Ie){var rt,xt=4;for(rt=0;4>rt;++rt)xt+=ge[Ie+rt-32]+ge[Ie-1+32*rt];for(xt>>=3,rt=0;4>rt;++rt)Ae(ge,Ie+32*rt,xt,4)}function wh(ge,Ie){var rt=ge[Ie-1+0],xt=ge[Ie-1+32],Qt=ge[Ie-1+64],qt=ge[Ie-1-32],nn=ge[Ie+0-32],hn=ge[Ie+1-32],bn=ge[Ie+2-32],Mn=ge[Ie+3-32];ge[Ie+0+96]=Es(xt,Qt,ge[Ie-1+96]),ge[Ie+1+96]=ge[Ie+0+64]=Es(rt,xt,Qt),ge[Ie+2+96]=ge[Ie+1+64]=ge[Ie+0+32]=Es(qt,rt,xt),ge[Ie+3+96]=ge[Ie+2+64]=ge[Ie+1+32]=ge[Ie+0+0]=Es(nn,qt,rt),ge[Ie+3+64]=ge[Ie+2+32]=ge[Ie+1+0]=Es(hn,nn,qt),ge[Ie+3+32]=ge[Ie+2+0]=Es(bn,hn,nn),ge[Ie+3+0]=Es(Mn,bn,hn)}function bh(ge,Ie){var rt=ge[Ie+1-32],xt=ge[Ie+2-32],Qt=ge[Ie+3-32],qt=ge[Ie+4-32],nn=ge[Ie+5-32],hn=ge[Ie+6-32],bn=ge[Ie+7-32];ge[Ie+0+0]=Es(ge[Ie+0-32],rt,xt),ge[Ie+1+0]=ge[Ie+0+32]=Es(rt,xt,Qt),ge[Ie+2+0]=ge[Ie+1+32]=ge[Ie+0+64]=Es(xt,Qt,qt),ge[Ie+3+0]=ge[Ie+2+32]=ge[Ie+1+64]=ge[Ie+0+96]=Es(Qt,qt,nn),ge[Ie+3+32]=ge[Ie+2+64]=ge[Ie+1+96]=Es(qt,nn,hn),ge[Ie+3+64]=ge[Ie+2+96]=Es(nn,hn,bn),ge[Ie+3+96]=Es(hn,bn,bn)}function a0(ge,Ie){var rt=ge[Ie-1+0],xt=ge[Ie-1+32],Qt=ge[Ie-1+64],qt=ge[Ie-1-32],nn=ge[Ie+0-32],hn=ge[Ie+1-32],bn=ge[Ie+2-32],Mn=ge[Ie+3-32];ge[Ie+0+0]=ge[Ie+1+64]=qt+nn+1>>1,ge[Ie+1+0]=ge[Ie+2+64]=nn+hn+1>>1,ge[Ie+2+0]=ge[Ie+3+64]=hn+bn+1>>1,ge[Ie+3+0]=bn+Mn+1>>1,ge[Ie+0+96]=Es(Qt,xt,rt),ge[Ie+0+64]=Es(xt,rt,qt),ge[Ie+0+32]=ge[Ie+1+96]=Es(rt,qt,nn),ge[Ie+1+32]=ge[Ie+2+96]=Es(qt,nn,hn),ge[Ie+2+32]=ge[Ie+3+96]=Es(nn,hn,bn),ge[Ie+3+32]=Es(hn,bn,Mn)}function s0(ge,Ie){var rt=ge[Ie+0-32],xt=ge[Ie+1-32],Qt=ge[Ie+2-32],qt=ge[Ie+3-32],nn=ge[Ie+4-32],hn=ge[Ie+5-32],bn=ge[Ie+6-32],Mn=ge[Ie+7-32];ge[Ie+0+0]=rt+xt+1>>1,ge[Ie+1+0]=ge[Ie+0+64]=xt+Qt+1>>1,ge[Ie+2+0]=ge[Ie+1+64]=Qt+qt+1>>1,ge[Ie+3+0]=ge[Ie+2+64]=qt+nn+1>>1,ge[Ie+0+32]=Es(rt,xt,Qt),ge[Ie+1+32]=ge[Ie+0+96]=Es(xt,Qt,qt),ge[Ie+2+32]=ge[Ie+1+96]=Es(Qt,qt,nn),ge[Ie+3+32]=ge[Ie+2+96]=Es(qt,nn,hn),ge[Ie+3+64]=Es(nn,hn,bn),ge[Ie+3+96]=Es(hn,bn,Mn)}function ug(ge,Ie){var rt=ge[Ie-1+0],xt=ge[Ie-1+32],Qt=ge[Ie-1+64],qt=ge[Ie-1+96];ge[Ie+0+0]=rt+xt+1>>1,ge[Ie+2+0]=ge[Ie+0+32]=xt+Qt+1>>1,ge[Ie+2+32]=ge[Ie+0+64]=Qt+qt+1>>1,ge[Ie+1+0]=Es(rt,xt,Qt),ge[Ie+3+0]=ge[Ie+1+32]=Es(xt,Qt,qt),ge[Ie+3+32]=ge[Ie+1+64]=Es(Qt,qt,qt),ge[Ie+3+64]=ge[Ie+2+64]=ge[Ie+0+96]=ge[Ie+1+96]=ge[Ie+2+96]=ge[Ie+3+96]=qt}function Lg(ge,Ie){var rt=ge[Ie-1+0],xt=ge[Ie-1+32],Qt=ge[Ie-1+64],qt=ge[Ie-1+96],nn=ge[Ie-1-32],hn=ge[Ie+0-32],bn=ge[Ie+1-32],Mn=ge[Ie+2-32];ge[Ie+0+0]=ge[Ie+2+32]=rt+nn+1>>1,ge[Ie+0+32]=ge[Ie+2+64]=xt+rt+1>>1,ge[Ie+0+64]=ge[Ie+2+96]=Qt+xt+1>>1,ge[Ie+0+96]=qt+Qt+1>>1,ge[Ie+3+0]=Es(hn,bn,Mn),ge[Ie+2+0]=Es(nn,hn,bn),ge[Ie+1+0]=ge[Ie+3+32]=Es(rt,nn,hn),ge[Ie+1+32]=ge[Ie+3+64]=Es(xt,rt,nn),ge[Ie+1+64]=ge[Ie+3+96]=Es(Qt,xt,rt),ge[Ie+1+96]=Es(qt,Qt,xt)}function Op(ge,Ie){var rt;for(rt=0;8>rt;++rt)re(ge,Ie+32*rt,ge,Ie-32,8)}function l0(ge,Ie){var rt;for(rt=0;8>rt;++rt)Ae(ge,Ie,ge[Ie-1],8),Ie+=32}function Ch(ge,Ie,rt){var xt;for(xt=0;8>xt;++xt)Ae(Ie,rt+32*xt,ge,8)}function u0(ge,Ie){var rt,xt=8;for(rt=0;8>rt;++rt)xt+=ge[Ie+rt-32]+ge[Ie-1+32*rt];Ch(xt>>4,ge,Ie)}function Dg(ge,Ie){var rt,xt=4;for(rt=0;8>rt;++rt)xt+=ge[Ie+rt-32];Ch(xt>>3,ge,Ie)}function Ng(ge,Ie){var rt,xt=4;for(rt=0;8>rt;++rt)xt+=ge[Ie-1+32*rt];Ch(xt>>3,ge,Ie)}function gm(ge,Ie){Ch(128,ge,Ie)}function xh(ge,Ie,rt){var xt=ge[Ie-rt],Qt=ge[Ie+0],qt=3*(Qt-xt)+A0[1020+ge[Ie-2*rt]-ge[Ie+rt]],nn=Bm[112+(qt+4>>3)];ge[Ie-rt]=yd[255+xt+Bm[112+(qt+3>>3)]],ge[Ie+0]=yd[255+Qt-nn]}function Og(ge,Ie,rt,xt){var Qt=ge[Ie+0],qt=ge[Ie+rt];return $d[255+ge[Ie-2*rt]-ge[Ie-rt]]>xt||$d[255+qt-Qt]>xt}function Ag(ge,Ie,rt,xt){return 4*$d[255+ge[Ie-rt]-ge[Ie+0]]+$d[255+ge[Ie-2*rt]-ge[Ie+rt]]<=xt}function Pg(ge,Ie,rt,xt,Qt){var qt=ge[Ie-3*rt],nn=ge[Ie-2*rt],hn=ge[Ie-rt],bn=ge[Ie+0],Mn=ge[Ie+rt],Er=ge[Ie+2*rt],ci=ge[Ie+3*rt];return 4*$d[255+hn-bn]+$d[255+nn-Mn]>xt?0:$d[255+ge[Ie-4*rt]-qt]<=Qt&&$d[255+qt-nn]<=Qt&&$d[255+nn-hn]<=Qt&&$d[255+ci-Er]<=Qt&&$d[255+Er-Mn]<=Qt&&$d[255+Mn-bn]<=Qt}function Pp(ge,Ie,rt,xt){var Qt=2*xt+1;for(xt=0;16>xt;++xt)Ag(ge,Ie+xt,rt,Qt)&&xh(ge,Ie+xt,rt)}function _g(ge,Ie,rt,xt){var Qt=2*xt+1;for(xt=0;16>xt;++xt)Ag(ge,Ie+xt*rt,1,Qt)&&xh(ge,Ie+xt*rt,1)}function mm(ge,Ie,rt,xt){var Qt;for(Qt=3;0<Qt;--Qt)Pp(ge,Ie+=4*rt,rt,xt)}function vm(ge,Ie,rt,xt){var Qt;for(Qt=3;0<Qt;--Qt)_g(ge,Ie+=4,rt,xt)}function Bh(ge,Ie,rt,xt,Qt,qt,nn,hn){for(qt=2*qt+1;0<Qt--;){if(Pg(ge,Ie,rt,qt,nn))if(Og(ge,Ie,rt,hn))xh(ge,Ie,rt);else{var bn=ge,Mn=Ie,Er=rt,ci=bn[Mn-2*Er],Un=bn[Mn-Er],_r=bn[Mn+0],Xr=bn[Mn+Er],Hi=bn[Mn+2*Er],si=27*(Gi=A0[1020+3*(_r-Un)+A0[1020+ci-Xr]])+63>>7,Ki=18*Gi+63>>7,Gi=9*Gi+63>>7;bn[Mn-3*Er]=yd[255+bn[Mn-3*Er]+Gi],bn[Mn-2*Er]=yd[255+ci+Ki],bn[Mn-Er]=yd[255+Un+si],bn[Mn+0]=yd[255+_r-si],bn[Mn+Er]=yd[255+Xr-Ki],bn[Mn+2*Er]=yd[255+Hi-Gi]}Ie+=xt}}function Eh(ge,Ie,rt,xt,Qt,qt,nn,hn){for(qt=2*qt+1;0<Qt--;){if(Pg(ge,Ie,rt,qt,nn))if(Og(ge,Ie,rt,hn))xh(ge,Ie,rt);else{var bn=ge,Mn=Ie,Er=rt,ci=bn[Mn-Er],Un=bn[Mn+0],_r=bn[Mn+Er],Xr=Bm[112+(4+(Hi=3*(Un-ci))>>3)],Hi=Bm[112+(Hi+3>>3)],si=Xr+1>>1;bn[Mn-2*Er]=yd[255+bn[Mn-2*Er]+si],bn[Mn-Er]=yd[255+ci+Hi],bn[Mn+0]=yd[255+Un-Xr],bn[Mn+Er]=yd[255+_r-si]}Ie+=xt}}function ym(ge,Ie,rt,xt,Qt,qt){Bh(ge,Ie,rt,1,16,xt,Qt,qt)}function _p(ge,Ie,rt,xt,Qt,qt){Bh(ge,Ie,1,rt,16,xt,Qt,qt)}function wm(ge,Ie,rt,xt,Qt,qt){var nn;for(nn=3;0<nn;--nn)Eh(ge,Ie+=4*rt,rt,1,16,xt,Qt,qt)}function Xe(ge,Ie,rt,xt,Qt,qt){var nn;for(nn=3;0<nn;--nn)Eh(ge,Ie+=4,1,rt,16,xt,Qt,qt)}function Ht(ge,Ie,rt,xt,Qt,qt,nn,hn){Bh(ge,Ie,Qt,1,8,qt,nn,hn),Bh(rt,xt,Qt,1,8,qt,nn,hn)}function jn(ge,Ie,rt,xt,Qt,qt,nn,hn){Bh(ge,Ie,1,Qt,8,qt,nn,hn),Bh(rt,xt,1,Qt,8,qt,nn,hn)}function hr(ge,Ie,rt,xt,Qt,qt,nn,hn){Eh(ge,Ie+4*Qt,Qt,1,8,qt,nn,hn),Eh(rt,xt+4*Qt,Qt,1,8,qt,nn,hn)}function $r(ge,Ie,rt,xt,Qt,qt,nn,hn){Eh(ge,Ie+4,1,Qt,8,qt,nn,hn),Eh(rt,xt+4,1,Qt,8,qt,nn,hn)}function Wi(){this.ba=new ol,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new iu,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function io(){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 Sa(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Ua(){this.ua=0,this.Wa=new Vs,this.vb=new Vs,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new vi,this.yc=new pr}function Cs(){this.xb=this.a=0,this.l=new ag,this.ca=new ol,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new zn,this.Pb=0,this.wd=new zn,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Ua,this.ab=0,this.gc=Ze(4,Sa),this.Oc=0}function Rs(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new ag,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Nl(ge,Ie,rt,xt,Qt,qt,nn){for(ge=ge==null?0:ge[Ie+0],Ie=0;Ie<nn;++Ie)Qt[qt+Ie]=ge+rt[xt+Ie]&255,ge=Qt[qt+Ie]}function eA(ge,Ie,rt,xt,Qt,qt,nn){var hn;if(ge==null)Nl(null,null,rt,xt,Qt,qt,nn);else for(hn=0;hn<nn;++hn)Qt[qt+hn]=ge[Ie+hn]+rt[xt+hn]&255}function NA(ge,Ie,rt,xt,Qt,qt,nn){if(ge==null)Nl(null,null,rt,xt,Qt,qt,nn);else{var hn,bn=ge[Ie+0],Mn=bn,Er=bn;for(hn=0;hn<nn;++hn)Mn=Er+(bn=ge[Ie+hn])-Mn,Er=rt[xt+hn]+(-256&Mn?0>Mn?0:255:Mn)&255,Mn=bn,Qt[qt+hn]=Er}}function Su(ge,Ie,rt,xt){var Qt=Ie.width,qt=Ie.o;if(z(ge!=null&&Ie!=null),0>rt||0>=xt||rt+xt>qt)return null;if(!ge.Cc){if(ge.ga==null){var nn;if(ge.ga=new Rs,(nn=ge.ga==null)||(nn=Ie.width*Ie.o,z(ge.Gb.length==0),ge.Gb=he(nn),ge.Uc=0,ge.Gb==null?nn=0:(ge.mb=ge.Gb,ge.nb=ge.Uc,ge.rc=null,nn=1),nn=!nn),!nn){nn=ge.ga;var hn=ge.Fa,bn=ge.P,Mn=ge.qc,Er=ge.mb,ci=ge.nb,Un=bn+1,_r=Mn-1,Xr=nn.l;if(z(hn!=null&&Er!=null&&Ie!=null),ip[0]=null,ip[1]=Nl,ip[2]=eA,ip[3]=NA,nn.ca=Er,nn.tb=ci,nn.c=Ie.width,nn.i=Ie.height,z(0<nn.c&&0<nn.i),1>=Mn)Ie=0;else if(nn.$a=3&hn[bn+0],nn.Z=hn[bn+0]>>2&3,nn.Lc=hn[bn+0]>>4&3,bn=hn[bn+0]>>6&3,0>nn.$a||1<nn.$a||4<=nn.Z||1<nn.Lc||bn)Ie=0;else if(Xr.put=us,Xr.ac=zf,Xr.bc=mh,Xr.ma=nn,Xr.width=Ie.width,Xr.height=Ie.height,Xr.Da=Ie.Da,Xr.v=Ie.v,Xr.va=Ie.va,Xr.j=Ie.j,Xr.o=Ie.o,nn.$a)e:{z(nn.$a==1),Ie=Ip();t:for(;;){if(Ie==null){Ie=0;break e}if(z(nn!=null),nn.mc=Ie,Ie.c=nn.c,Ie.i=nn.i,Ie.l=nn.l,Ie.l.ma=nn,Ie.l.width=nn.c,Ie.l.height=nn.i,Ie.a=0,_i(Ie.m,hn,Un,_r),!Zf(nn.c,nn.i,1,Ie,null)||(Ie.ab==1&&Ie.gc[0].hc==3&&df(Ie.s)?(nn.ic=1,hn=Ie.c*Ie.i,Ie.Ta=null,Ie.Ua=0,Ie.V=he(hn),Ie.Ba=0,Ie.V==null?(Ie.a=1,Ie=0):Ie=1):(nn.ic=0,Ie=Lp(Ie,nn.c)),!Ie))break t;Ie=1;break e}nn.mc=null,Ie=0}else Ie=_r>=nn.c*nn.i;nn=!Ie}if(nn)return null;ge.ga.Lc!=1?ge.Ga=0:xt=qt-rt}z(ge.ga!=null),z(rt+xt<=qt);e:{if(Ie=(hn=ge.ga).c,qt=hn.l.o,hn.$a==0){if(Un=ge.rc,_r=ge.Vc,Xr=ge.Fa,bn=ge.P+1+rt*Ie,Mn=ge.mb,Er=ge.nb+rt*Ie,z(bn<=ge.P+ge.qc),hn.Z!=0)for(z(ip[hn.Z]!=null),nn=0;nn<xt;++nn)ip[hn.Z](Un,_r,Xr,bn,Mn,Er,Ie),Un=Mn,_r=Er,Er+=Ie,bn+=Ie;else for(nn=0;nn<xt;++nn)re(Mn,Er,Xr,bn,Ie),Un=Mn,_r=Er,Er+=Ie,bn+=Ie;ge.rc=Un,ge.Vc=_r}else{if(z(hn.mc!=null),Ie=rt+xt,z((nn=hn.mc)!=null),z(Ie<=nn.i),nn.C>=Ie)Ie=1;else if(hn.ic||gf(),hn.ic){hn=nn.V,Un=nn.Ba,_r=nn.c;var Hi=nn.i,si=(Xr=1,bn=nn.$/_r,Mn=nn.$%_r,Er=nn.m,ci=nn.s,nn.$),Ki=_r*Hi,Gi=_r*Ie,yo=ci.wc,oo=si<Gi?ac(ci,Mn,bn):null;z(si<=Ki),z(Ie<=Hi),z(df(ci));t:for(;;){for(;!Er.h&&si<Gi;){if(Mn&yo||(oo=ac(ci,Mn,bn)),z(oo!=null),ei(Er),256>(Hi=cA(oo.G[0],oo.H[0],Er)))hn[Un+si]=Hi,++si,++Mn>=_r&&(Mn=0,++bn<=Ie&&!(bn%16)&&ff(nn,bn));else{if(!(280>Hi)){Xr=0;break t}Hi=jd(Hi-256,Er);var Ha,Ba=cA(oo.G[4],oo.H[4],Er);if(ei(Er),!(si>=(Ba=Hd(_r,Ba=jd(Ba,Er)))&&Ki-si>=Hi)){Xr=0;break t}for(Ha=0;Ha<Hi;++Ha)hn[Un+si+Ha]=hn[Un+si+Ha-Ba];for(si+=Hi,Mn+=Hi;Mn>=_r;)Mn-=_r,++bn<=Ie&&!(bn%16)&&ff(nn,bn);si<Gi&&Mn&yo&&(oo=ac(ci,Mn,bn))}z(Er.h==br(Er))}ff(nn,bn>Ie?Ie:bn);break t}!Xr||Er.h&&si<Ki?(Xr=0,nn.a=Er.h?5:3):nn.$=si,Ie=Xr}else Ie=hf(nn,nn.V,nn.Ba,nn.c,nn.i,Ie,rg);if(!Ie){xt=0;break e}}rt+xt>=qt&&(ge.Cc=1),xt=1}if(!xt)return null;if(ge.Cc&&((xt=ge.ga)!=null&&(xt.mc=null),ge.ga=null,0<ge.Ga))return alert("todo:WebPDequantizeLevels"),null}return ge.nb+rt*Qt}function jA(ge,Ie,rt,xt,Qt,qt){for(;0<Qt--;){var nn,hn=ge,bn=Ie+(rt?1:0),Mn=ge,Er=Ie+(rt?0:3);for(nn=0;nn<xt;++nn){var ci=Mn[Er+4*nn];ci!=255&&(ci*=32897,hn[bn+4*nn+0]=hn[bn+4*nn+0]*ci>>23,hn[bn+4*nn+1]=hn[bn+4*nn+1]*ci>>23,hn[bn+4*nn+2]=hn[bn+4*nn+2]*ci>>23)}Ie+=qt}}function OA(ge,Ie,rt,xt,Qt){for(;0<xt--;){var qt;for(qt=0;qt<rt;++qt){var nn=ge[Ie+2*qt+0],hn=15&(Mn=ge[Ie+2*qt+1]),bn=4369*hn,Mn=(240&Mn|Mn>>4)*bn>>16;ge[Ie+2*qt+0]=(240&nn|nn>>4)*bn>>16&240|(15&nn|nn<<4)*bn>>16>>4&15,ge[Ie+2*qt+1]=240&Mn|hn}Ie+=Qt}}function sc(ge,Ie,rt,xt,Qt,qt,nn,hn){var bn,Mn,Er=255;for(Mn=0;Mn<Qt;++Mn){for(bn=0;bn<xt;++bn){var ci=ge[Ie+bn];qt[nn+4*bn]=ci,Er&=ci}Ie+=rt,nn+=hn}return Er!=255}function Sh(ge,Ie,rt,xt,Qt){var qt;for(qt=0;qt<Qt;++qt)rt[xt+qt]=ge[Ie+qt]>>8}function gf(){Wg=jA,Y0=OA,J0=sc,q0=Sh}function Fh(ge,Ie,rt){Gn[ge]=function(xt,Qt,qt,nn,hn,bn,Mn,Er,ci,Un,_r,Xr,Hi,si,Ki,Gi,yo){var oo,Ha=yo-1>>1,Ba=hn[bn+0]|Mn[Er+0]<<16,Ks=ci[Un+0]|_r[Xr+0]<<16;z(xt!=null);var Na=3*Ba+Ks+131074>>2;for(Ie(xt[Qt+0],255&Na,Na>>16,Hi,si),qt!=null&&(Na=3*Ks+Ba+131074>>2,Ie(qt[nn+0],255&Na,Na>>16,Ki,Gi)),oo=1;oo<=Ha;++oo){var Cl=hn[bn+oo]|Mn[Er+oo]<<16,QA=ci[Un+oo]|_r[Xr+oo]<<16,Zs=Ba+Cl+Ks+QA+524296,Oa=Zs+2*(Cl+Ks)>>3;Na=Oa+Ba>>1,Ba=(Zs=Zs+2*(Ba+QA)>>3)+Cl>>1,Ie(xt[Qt+2*oo-1],255&Na,Na>>16,Hi,si+(2*oo-1)*rt),Ie(xt[Qt+2*oo-0],255&Ba,Ba>>16,Hi,si+(2*oo-0)*rt),qt!=null&&(Na=Zs+Ks>>1,Ba=Oa+QA>>1,Ie(qt[nn+2*oo-1],255&Na,Na>>16,Ki,Gi+(2*oo-1)*rt),Ie(qt[nn+2*oo+0],255&Ba,Ba>>16,Ki,Gi+(2*oo+0)*rt)),Ba=Cl,Ks=QA}1&yo||(Na=3*Ba+Ks+131074>>2,Ie(xt[Qt+yo-1],255&Na,Na>>16,Hi,si+(yo-1)*rt),qt!=null&&(Na=3*Ks+Ba+131074>>2,Ie(qt[nn+yo-1],255&Na,Na>>16,Ki,Gi+(yo-1)*rt)))}}function Tg(){Gd[Em]=d1,Gd[Sm]=Av,Gd[ov]=f1,Gd[Fm]=cv,Gd[Im]=dv,Gd[c0]=fv,Gd[av]=h1,Gd[d0]=Av,Gd[f0]=cv,Gd[Lm]=dv,Gd[h0]=fv}function cg(ge){return ge&~p1?0>ge?0:255:ge>>hv}function Gh(ge,Ie){return cg((19077*ge>>8)+(26149*Ie>>8)-14234)}function Tp(ge,Ie,rt){return cg((19077*ge>>8)-(6419*Ie>>8)-(13320*rt>>8)+8708)}function kp(ge,Ie){return cg((19077*ge>>8)+(33050*Ie>>8)-17685)}function Vh(ge,Ie,rt,xt,Qt){xt[Qt+0]=Gh(ge,rt),xt[Qt+1]=Tp(ge,Ie,rt),xt[Qt+2]=kp(ge,Ie)}function lc(ge,Ie,rt,xt,Qt){xt[Qt+0]=kp(ge,Ie),xt[Qt+1]=Tp(ge,Ie,rt),xt[Qt+2]=Gh(ge,rt)}function Mp(ge,Ie,rt,xt,Qt){var qt=Tp(ge,Ie,rt);Ie=qt<<3&224|kp(ge,Ie)>>3,xt[Qt+0]=248&Gh(ge,rt)|qt>>5,xt[Qt+1]=Ie}function Up(ge,Ie,rt,xt,Qt){var qt=240&kp(ge,Ie)|15;xt[Qt+0]=240&Gh(ge,rt)|Tp(ge,Ie,rt)>>4,xt[Qt+1]=qt}function kg(ge,Ie,rt,xt,Qt){xt[Qt+0]=255,Vh(ge,Ie,rt,xt,Qt+1)}function Mg(ge,Ie,rt,xt,Qt){lc(ge,Ie,rt,xt,Qt),xt[Qt+3]=255}function jc(ge,Ie,rt,xt,Qt){Vh(ge,Ie,rt,xt,Qt),xt[Qt+3]=255}function Ih(ge,Ie,rt){Gn[ge]=function(xt,Qt,qt,nn,hn,bn,Mn,Er,ci){for(var Un=Er+(-2&ci)*rt;Er!=Un;)Ie(xt[Qt+0],qt[nn+0],hn[bn+0],Mn,Er),Ie(xt[Qt+1],qt[nn+0],hn[bn+0],Mn,Er+rt),Qt+=2,++nn,++bn,Er+=2*rt;1&ci&&Ie(xt[Qt+0],qt[nn+0],hn[bn+0],Mn,Er)}}function dg(ge,Ie,rt){return rt==0?ge==0?Ie==0?6:5:Ie==0?4:0:rt}function bm(ge,Ie,rt,xt,Qt){switch(ge>>>30){case 3:Qp(Ie,rt,xt,Qt,0);break;case 2:Wd(Ie,rt,xt,Qt);break;case 1:ou(Ie,rt,xt,Qt)}}function Zd(ge,Ie){var rt,xt,Qt=Ie.M,qt=Ie.Nb,nn=ge.oc,hn=ge.pc+40,bn=ge.oc,Mn=ge.pc+584,Er=ge.oc,ci=ge.pc+600;for(rt=0;16>rt;++rt)nn[hn+32*rt-1]=129;for(rt=0;8>rt;++rt)bn[Mn+32*rt-1]=129,Er[ci+32*rt-1]=129;for(0<Qt?nn[hn-1-32]=bn[Mn-1-32]=Er[ci-1-32]=129:(Ae(nn,hn-32-1,127,21),Ae(bn,Mn-32-1,127,9),Ae(Er,ci-32-1,127,9)),xt=0;xt<ge.za;++xt){var Un=Ie.ya[Ie.aa+xt];if(0<xt){for(rt=-1;16>rt;++rt)re(nn,hn+32*rt-4,nn,hn+32*rt+12,4);for(rt=-1;8>rt;++rt)re(bn,Mn+32*rt-4,bn,Mn+32*rt+4,4),re(Er,ci+32*rt-4,Er,ci+32*rt+4,4)}var _r=ge.Gd,Xr=ge.Hd+xt,Hi=Un.ad,si=Un.Hc;if(0<Qt&&(re(nn,hn-32,_r[Xr].y,0,16),re(bn,Mn-32,_r[Xr].f,0,8),re(Er,ci-32,_r[Xr].ea,0,8)),Un.Za){var Ki=nn,Gi=hn-32+16;for(0<Qt&&(xt>=ge.za-1?Ae(Ki,Gi,_r[Xr].y[15],4):re(Ki,Gi,_r[Xr+1].y,0,4)),rt=0;4>rt;rt++)Ki[Gi+128+rt]=Ki[Gi+256+rt]=Ki[Gi+384+rt]=Ki[Gi+0+rt];for(rt=0;16>rt;++rt,si<<=2)Ki=nn,Gi=hn+gv[rt],mf[Un.Ob[rt]](Ki,Gi),bm(si,Hi,16*+rt,Ki,Gi)}else if(Ki=dg(xt,Qt,Un.Ob[0]),rp[Ki](nn,hn),si!=0)for(rt=0;16>rt;++rt,si<<=2)bm(si,Hi,16*+rt,nn,hn+gv[rt]);for(rt=Un.Gc,Ki=dg(xt,Qt,Un.Dd),Nh[Ki](bn,Mn),Nh[Ki](Er,ci),si=Hi,Ki=bn,Gi=Mn,255&(Un=0|rt)&&(170&Un?Yf(si,256,Ki,Gi):yu(si,256,Ki,Gi)),Un=Er,si=ci,255&(rt>>=8)&&(170&rt?Yf(Hi,320,Un,si):yu(Hi,320,Un,si)),Qt<ge.Ub-1&&(re(_r[Xr].y,0,nn,hn+480,16),re(_r[Xr].f,0,bn,Mn+224,8),re(_r[Xr].ea,0,Er,ci+224,8)),rt=8*qt*ge.B,_r=ge.sa,Xr=ge.ta+16*xt+16*qt*ge.R,Hi=ge.qa,Un=ge.ra+8*xt+rt,si=ge.Ha,Ki=ge.Ia+8*xt+rt,rt=0;16>rt;++rt)re(_r,Xr+rt*ge.R,nn,hn+32*rt,16);for(rt=0;8>rt;++rt)re(Hi,Un+rt*ge.B,bn,Mn+32*rt,8),re(si,Ki+rt*ge.B,Er,ci+32*rt,8)}}function Rp(ge,Ie,rt,xt,Qt,qt,nn,hn,bn){var Mn=[0],Er=[0],ci=0,Un=bn!=null?bn.kd:0,_r=bn!=null?bn:new io;if(ge==null||12>rt)return 7;_r.data=ge,_r.w=Ie,_r.ha=rt,Ie=[Ie],rt=[rt],_r.gb=[_r.gb];e:{var Xr=Ie,Hi=rt,si=_r.gb;if(z(ge!=null),z(Hi!=null),z(si!=null),si[0]=0,12<=Hi[0]&&!E(ge,Xr[0],"RIFF")){if(E(ge,Xr[0]+8,"WEBP")){si=3;break e}var Ki=Ga(ge,Xr[0]+4);if(12>Ki||4294967286<Ki){si=3;break e}if(Un&&Ki>Hi[0]-8){si=7;break e}si[0]=Ki,Xr[0]+=12,Hi[0]-=12}si=0}if(si!=0)return si;for(Ki=0<_r.gb[0],rt=rt[0];;){e:{var Gi=ge;Hi=Ie,si=rt;var yo=Mn,oo=Er,Ha=Xr=[0];if((Na=ci=[ci])[0]=0,8>si[0])si=7;else{if(!E(Gi,Hi[0],"VP8X")){if(Ga(Gi,Hi[0]+4)!=10){si=3;break e}if(18>si[0]){si=7;break e}var Ba=Ga(Gi,Hi[0]+8),Ks=1+ua(Gi,Hi[0]+12);if(2147483648<=Ks*(Gi=1+ua(Gi,Hi[0]+15))){si=3;break e}Ha!=null&&(Ha[0]=Ba),yo!=null&&(yo[0]=Ks),oo!=null&&(oo[0]=Gi),Hi[0]+=18,si[0]-=18,Na[0]=1}si=0}}if(ci=ci[0],Xr=Xr[0],si!=0)return si;if(Hi=!!(2&Xr),!Ki&&ci)return 3;if(qt!=null&&(qt[0]=!!(16&Xr)),nn!=null&&(nn[0]=Hi),hn!=null&&(hn[0]=0),nn=Mn[0],Xr=Er[0],ci&&Hi&&bn==null){si=0;break}if(4>rt){si=7;break}if(Ki&&ci||!Ki&&!ci&&!E(ge,Ie[0],"ALPH")){rt=[rt],_r.na=[_r.na],_r.P=[_r.P],_r.Sa=[_r.Sa];e:{Ba=ge,si=Ie,Ki=rt;var Na=_r.gb;yo=_r.na,oo=_r.P,Ha=_r.Sa,Ks=22,z(Ba!=null),z(Ki!=null),Gi=si[0];var Cl=Ki[0];for(z(yo!=null),z(Ha!=null),yo[0]=null,oo[0]=null,Ha[0]=0;;){if(si[0]=Gi,Ki[0]=Cl,8>Cl){si=7;break e}var QA=Ga(Ba,Gi+4);if(4294967286<QA){si=3;break e}var Zs=8+QA+1&-2;if(Ks+=Zs,0<Na&&Ks>Na){si=3;break e}if(!E(Ba,Gi,"VP8 ")||!E(Ba,Gi,"VP8L")){si=0;break e}if(Cl[0]<Zs){si=7;break e}E(Ba,Gi,"ALPH")||(yo[0]=Ba,oo[0]=Gi+8,Ha[0]=QA),Gi+=Zs,Cl-=Zs}}if(rt=rt[0],_r.na=_r.na[0],_r.P=_r.P[0],_r.Sa=_r.Sa[0],si!=0)break}rt=[rt],_r.Ja=[_r.Ja],_r.xa=[_r.xa];e:if(Na=ge,si=Ie,Ki=rt,yo=_r.gb[0],oo=_r.Ja,Ha=_r.xa,Ba=si[0],Gi=!E(Na,Ba,"VP8 "),Ks=!E(Na,Ba,"VP8L"),z(Na!=null),z(Ki!=null),z(oo!=null),z(Ha!=null),8>Ki[0])si=7;else{if(Gi||Ks){if(Na=Ga(Na,Ba+4),12<=yo&&Na>yo-12){si=3;break e}if(Un&&Na>Ki[0]-8){si=7;break e}oo[0]=Na,si[0]+=8,Ki[0]-=8,Ha[0]=Ks}else Ha[0]=5<=Ki[0]&&Na[Ba+0]==47&&!(Na[Ba+4]>>5),oo[0]=Ki[0];si=0}if(rt=rt[0],_r.Ja=_r.Ja[0],_r.xa=_r.xa[0],Ie=Ie[0],si!=0)break;if(4294967286<_r.Ja)return 3;if(hn==null||Hi||(hn[0]=_r.xa?2:1),nn=[nn],Xr=[Xr],_r.xa){if(5>rt){si=7;break}hn=nn,Un=Xr,Hi=qt,ge==null||5>rt?ge=0:5<=rt&&ge[Ie+0]==47&&!(ge[Ie+4]>>5)?(Ki=[0],Na=[0],yo=[0],_i(oo=new zn,ge,Ie,rt),vh(oo,Ki,Na,yo)?(hn!=null&&(hn[0]=Ki[0]),Un!=null&&(Un[0]=Na[0]),Hi!=null&&(Hi[0]=yo[0]),ge=1):ge=0):ge=0}else{if(10>rt){si=7;break}hn=Xr,ge==null||10>rt||!Am(ge,Ie+3,rt-3)?ge=0:(Un=ge[Ie+0]|ge[Ie+1]<<8|ge[Ie+2]<<16,Hi=16383&(ge[Ie+7]<<8|ge[Ie+6]),ge=16383&(ge[Ie+9]<<8|ge[Ie+8]),1&Un||3<(Un>>1&7)||!(Un>>4&1)||Un>>5>=_r.Ja||!Hi||!ge?ge=0:(nn&&(nn[0]=Hi),hn&&(hn[0]=ge),ge=1))}if(!ge||(nn=nn[0],Xr=Xr[0],ci&&(Mn[0]!=nn||Er[0]!=Xr)))return 3;bn!=null&&(bn[0]=_r,bn.offset=Ie-bn.w,z(4294967286>Ie-bn.w),z(bn.offset==bn.ha-rt));break}return si==0||si==7&&ci&&bn==null?(qt!=null&&(qt[0]|=_r.na!=null&&0<_r.na.length),xt!=null&&(xt[0]=nn),Qt!=null&&(Qt[0]=Xr),0):si}function Ug(ge,Ie,rt){var xt=Ie.width,Qt=Ie.height,qt=0,nn=0,hn=xt,bn=Qt;if(Ie.Da=ge!=null&&0<ge.Da,Ie.Da&&(hn=ge.cd,bn=ge.bd,qt=ge.v,nn=ge.j,11>rt||(qt&=-2,nn&=-2),0>qt||0>nn||0>=hn||0>=bn||qt+hn>xt||nn+bn>Qt))return 0;if(Ie.v=qt,Ie.j=nn,Ie.va=qt+hn,Ie.o=nn+bn,Ie.U=hn,Ie.T=bn,Ie.da=ge!=null&&0<ge.da,Ie.da){if(!is(hn,bn,rt=[ge.ib],qt=[ge.hb]))return 0;Ie.ib=rt[0],Ie.hb=qt[0]}return Ie.ob=ge!=null&&ge.ob,Ie.Kb=ge==null||!ge.Sd,Ie.da&&(Ie.ob=Ie.ib<3*xt/4&&Ie.hb<3*Qt/4,Ie.Kb=0),1}function Rg(ge){if(ge==null)return 2;if(11>ge.S){var Ie=ge.f.RGBA;Ie.fb+=(ge.height-1)*Ie.A,Ie.A=-Ie.A}else Ie=ge.f.kb,ge=ge.height,Ie.O+=(ge-1)*Ie.fa,Ie.fa=-Ie.fa,Ie.N+=(ge-1>>1)*Ie.Ab,Ie.Ab=-Ie.Ab,Ie.W+=(ge-1>>1)*Ie.Db,Ie.Db=-Ie.Db,Ie.F!=null&&(Ie.J+=(ge-1)*Ie.lb,Ie.lb=-Ie.lb);return 0}function Xh(ge,Ie,rt,xt){if(xt==null||0>=ge||0>=Ie)return 2;if(rt!=null){if(rt.Da){var Qt=rt.cd,qt=rt.bd,nn=-2&rt.v,hn=-2&rt.j;if(0>nn||0>hn||0>=Qt||0>=qt||nn+Qt>ge||hn+qt>Ie)return 2;ge=Qt,Ie=qt}if(rt.da){if(!is(ge,Ie,Qt=[rt.ib],qt=[rt.hb]))return 2;ge=Qt[0],Ie=qt[0]}}xt.width=ge,xt.height=Ie;e:{var bn=xt.width,Mn=xt.height;if(ge=xt.S,0>=bn||0>=Mn||!(ge>=Em&&13>ge))ge=2;else{if(0>=xt.Rd&&xt.sd==null){nn=qt=Qt=Ie=0;var Er=(hn=bn*mv[ge])*Mn;if(11>ge||(qt=(Mn+1)/2*(Ie=(bn+1)/2),ge==12&&(nn=(Qt=bn)*Mn)),(Mn=he(Er+2*qt+nn))==null){ge=1;break e}xt.sd=Mn,11>ge?((bn=xt.f.RGBA).eb=Mn,bn.fb=0,bn.A=hn,bn.size=Er):((bn=xt.f.kb).y=Mn,bn.O=0,bn.fa=hn,bn.Fd=Er,bn.f=Mn,bn.N=0+Er,bn.Ab=Ie,bn.Cd=qt,bn.ea=Mn,bn.W=0+Er+qt,bn.Db=Ie,bn.Ed=qt,ge==12&&(bn.F=Mn,bn.J=0+Er+2*qt),bn.Tc=nn,bn.lb=Qt)}if(Ie=1,Qt=xt.S,qt=xt.width,nn=xt.height,Qt>=Em&&13>Qt)if(11>Qt)ge=xt.f.RGBA,Ie&=(hn=Math.abs(ge.A))*(nn-1)+qt<=ge.size,Ie&=hn>=qt*mv[Qt],Ie&=ge.eb!=null;else{ge=xt.f.kb,hn=(qt+1)/2,Er=(nn+1)/2,bn=Math.abs(ge.fa),Mn=Math.abs(ge.Ab);var ci=Math.abs(ge.Db),Un=Math.abs(ge.lb),_r=Un*(nn-1)+qt;Ie&=bn*(nn-1)+qt<=ge.Fd,Ie&=Mn*(Er-1)+hn<=ge.Cd,Ie=(Ie&=ci*(Er-1)+hn<=ge.Ed)&bn>=qt&Mn>=hn&ci>=hn,Ie&=ge.y!=null,Ie&=ge.f!=null,Ie&=ge.ea!=null,Qt==12&&(Ie&=Un>=qt,Ie&=_r<=ge.Tc,Ie&=ge.F!=null)}else Ie=0;ge=Ie?0:2}}return ge!=0||rt!=null&&rt.fd&&(ge=Rg(xt)),ge}var jp=64,md=[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],vd=24,Yh=32,Lh=8,Jh=[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];Ea("Predictor0","PredictorAdd0"),Gn.Predictor0=function(){return 4278190080},Gn.Predictor1=function(ge){return ge},Gn.Predictor2=function(ge,Ie,rt){return Ie[rt+0]},Gn.Predictor3=function(ge,Ie,rt){return Ie[rt+1]},Gn.Predictor4=function(ge,Ie,rt){return Ie[rt-1]},Gn.Predictor5=function(ge,Ie,rt){return Xa(Xa(ge,Ie[rt+1]),Ie[rt+0])},Gn.Predictor6=function(ge,Ie,rt){return Xa(ge,Ie[rt-1])},Gn.Predictor7=function(ge,Ie,rt){return Xa(ge,Ie[rt+0])},Gn.Predictor8=function(ge,Ie,rt){return Xa(Ie[rt-1],Ie[rt+0])},Gn.Predictor9=function(ge,Ie,rt){return Xa(Ie[rt+0],Ie[rt+1])},Gn.Predictor10=function(ge,Ie,rt){return Xa(Xa(ge,Ie[rt-1]),Xa(Ie[rt+0],Ie[rt+1]))},Gn.Predictor11=function(ge,Ie,rt){var xt=Ie[rt+0];return 0>=_s(xt>>24&255,ge>>24&255,(Ie=Ie[rt-1])>>24&255)+_s(xt>>16&255,ge>>16&255,Ie>>16&255)+_s(xt>>8&255,ge>>8&255,Ie>>8&255)+_s(255&xt,255&ge,255&Ie)?xt:ge},Gn.Predictor12=function(ge,Ie,rt){var xt=Ie[rt+0];return(ru((ge>>24&255)+(xt>>24&255)-((Ie=Ie[rt-1])>>24&255))<<24|ru((ge>>16&255)+(xt>>16&255)-(Ie>>16&255))<<16|ru((ge>>8&255)+(xt>>8&255)-(Ie>>8&255))<<8|ru((255&ge)+(255&xt)-(255&Ie)))>>>0},Gn.Predictor13=function(ge,Ie,rt){var xt=Ie[rt-1];return(hl((ge=Xa(ge,Ie[rt+0]))>>24&255,xt>>24&255)<<24|hl(ge>>16&255,xt>>16&255)<<16|hl(ge>>8&255,xt>>8&255)<<8|hl(255&ge,255&xt))>>>0};var jg=Gn.PredictorAdd0;Gn.PredictorAdd1=bl,Ea("Predictor2","PredictorAdd2"),Ea("Predictor3","PredictorAdd3"),Ea("Predictor4","PredictorAdd4"),Ea("Predictor5","PredictorAdd5"),Ea("Predictor6","PredictorAdd6"),Ea("Predictor7","PredictorAdd7"),Ea("Predictor8","PredictorAdd8"),Ea("Predictor9","PredictorAdd9"),Ea("Predictor10","PredictorAdd10"),Ea("Predictor11","PredictorAdd11"),Ea("Predictor12","PredictorAdd12"),Ea("Predictor13","PredictorAdd13");var fg=Gn.PredictorAdd2;Qa("ColorIndexInverseTransform","MapARGB","32b",function(ge){return ge>>8&255},function(ge){return ge}),Qa("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(ge){return ge},function(ge){return ge>>8&255});var CA,Cm=Gn.ColorIndexInverseTransform,Vf=Gn.MapARGB,Xf=Gn.VP8LColorIndexInverseTransformAlpha,Hg=Gn.MapAlpha,Qg=Gn.VP8LPredictorsAdd=[];Qg.length=16,(Gn.VP8LPredictors=[]).length=16,(Gn.VP8LPredictorsAdd_C=[]).length=16,(Gn.VP8LPredictors_C=[]).length=16;var zg,Kg,qh,ep,tp,Hp,np,Qp,Wd,Yf,ou,yu,xA,HA,Dh,Zg,hg,xm,Z0,W0,$0,G0,V0,X0,Wg,Y0,J0,q0,ev=he(511),tv=he(2041),nv=he(225),rv=he(767),iv=0,A0=tv,Bm=nv,yd=rv,$d=ev,Em=0,Sm=1,ov=2,Fm=3,Im=4,c0=5,av=6,d0=7,f0=8,Lm=9,h0=10,Jv=[2,3,7],qv=[3,3,11],sv=[280,256,256,256,40],e1=[0,1,1,1,0],t1=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],n1=[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],r1=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],i1=8,p0=[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],g0=[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],$g=null,o1=[[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]],a1=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],lv=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],s1=[[[[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]]]],l1=[[[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]]],u1=[[[[255,255,255,255,255,255,255,255,255,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]]]],A1=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],rp=[],mf=[],Nh=[],c1=1,uv=2,ip=[],Gd=[];Fh("UpsampleRgbLinePair",Vh,3),Fh("UpsampleBgrLinePair",lc,3),Fh("UpsampleRgbaLinePair",jc,4),Fh("UpsampleBgraLinePair",Mg,4),Fh("UpsampleArgbLinePair",kg,4),Fh("UpsampleRgba4444LinePair",Up,2),Fh("UpsampleRgb565LinePair",Mp,2);var d1=Gn.UpsampleRgbLinePair,f1=Gn.UpsampleBgrLinePair,Av=Gn.UpsampleRgbaLinePair,cv=Gn.UpsampleBgraLinePair,dv=Gn.UpsampleArgbLinePair,fv=Gn.UpsampleRgba4444LinePair,h1=Gn.UpsampleRgb565LinePair,Dm=16,Nm=1<<Dm-1,Gg=-227,m0=482,hv=6,p1=(256<<hv)-1,pv=0,g1=he(256),m1=he(256),v1=he(256),y1=he(256),w1=he(m0-Gg),b1=he(m0-Gg);Ih("YuvToRgbRow",Vh,3),Ih("YuvToBgrRow",lc,3),Ih("YuvToRgbaRow",jc,4),Ih("YuvToBgraRow",Mg,4),Ih("YuvToArgbRow",kg,4),Ih("YuvToRgba4444Row",Up,2),Ih("YuvToRgb565Row",Mp,2);var gv=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Om=[0,2,8],C1=[8,7,6,4,4,2,2,2,1,1,1,1],x1=1;this.WebPDecodeRGBA=function(ge,Ie,rt,xt,Qt){var qt=Sm,nn=new Wi,hn=new ol;nn.ba=hn,hn.S=qt,hn.width=[hn.width],hn.height=[hn.height];var bn=hn.width,Mn=hn.height,Er=new ls;if(Er==null||ge==null)var ci=2;else z(Er!=null),ci=Rp(ge,Ie,rt,Er.width,Er.height,Er.Pd,Er.Qd,Er.format,null);if(ci!=0?bn=0:(bn!=null&&(bn[0]=Er.width[0]),Mn!=null&&(Mn[0]=Er.height[0]),bn=1),bn){hn.width=hn.width[0],hn.height=hn.height[0],xt!=null&&(xt[0]=hn.width),Qt!=null&&(Qt[0]=hn.height);e:{if(xt=new ag,(Qt=new io).data=ge,Qt.w=Ie,Qt.ha=rt,Qt.kd=1,Ie=[0],z(Qt!=null),((ge=Rp(Qt.data,Qt.w,Qt.ha,null,null,null,Ie,null,Qt))==0||ge==7)&&Ie[0]&&(ge=4),(Ie=ge)==0){if(z(nn!=null),xt.data=Qt.data,xt.w=Qt.w+Qt.offset,xt.ha=Qt.ha-Qt.offset,xt.put=us,xt.ac=zf,xt.bc=mh,xt.ma=nn,Qt.xa){if((ge=Ip())==null){nn=1;break e}if(function(Un,_r){var Xr=[0],Hi=[0],si=[0];t:for(;;){if(Un==null)return 0;if(_r==null)return Un.a=2,0;if(Un.l=_r,Un.a=0,_i(Un.m,_r.data,_r.w,_r.ha),!vh(Un.m,Xr,Hi,si)){Un.a=3;break t}if(Un.xb=uv,_r.width=Xr[0],_r.height=Hi[0],!Zf(Xr[0],Hi[0],1,Un,null))break t;return 1}return z(Un.a!=0),0}(ge,xt)){if(xt=(Ie=Xh(xt.width,xt.height,nn.Oa,nn.ba))==0){t:{xt=ge;n:for(;;){if(xt==null){xt=0;break t}if(z(xt.s.yc!=null),z(xt.s.Ya!=null),z(0<xt.s.Wb),z((rt=xt.l)!=null),z((Qt=rt.ma)!=null),xt.xb!=0){if(xt.ca=Qt.ba,xt.tb=Qt.tb,z(xt.ca!=null),!Ug(Qt.Oa,rt,Fm)){xt.a=2;break n}if(!Lp(xt,rt.width)||rt.da)break n;if((rt.da||cs(xt.ca.S))&&gf(),11>xt.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),xt.ca.f.kb.F!=null&&gf()),xt.Pb&&0<xt.s.ua&&xt.s.vb.X==null&&!_n(xt.s.vb,xt.s.Wa.Xa)){xt.a=1;break n}xt.xb=0}if(!hf(xt,xt.V,xt.Ba,xt.c,xt.i,rt.o,$h))break n;Qt.Dc=xt.Ma,xt=1;break t}z(xt.a!=0),xt=0}xt=!xt}xt&&(Ie=ge.a)}else Ie=ge.a}else{if((ge=new Vm)==null){nn=1;break e}if(ge.Fa=Qt.na,ge.P=Qt.P,ge.qc=Qt.Sa,$f(ge,xt)){if((Ie=Xh(xt.width,xt.height,nn.Oa,nn.ba))==0){if(ge.Aa=0,rt=nn.Oa,z((Qt=ge)!=null),rt!=null){if(0<(bn=0>(bn=rt.Md)?0:100<bn?255:255*bn/100)){for(Mn=Er=0;4>Mn;++Mn)12>(ci=Qt.pb[Mn]).lc&&(ci.ia=bn*C1[0>ci.lc?0:ci.lc]>>3),Er|=ci.ia;Er&&(alert("todo:VP8InitRandom"),Qt.ia=1)}Qt.Ga=rt.Id,100<Qt.Ga?Qt.Ga=100:0>Qt.Ga&&(Qt.Ga=0)}(function(Un,_r){if(Un==null)return 0;if(_r==null)return DA(Un,2,"NULL VP8Io parameter in VP8Decode().");if(!Un.cb&&!$f(Un,_r))return 0;if(z(Un.cb),_r.ac==null||_r.ac(_r)){_r.ob&&(Un.L=0);var Xr=Om[Un.L];if(Un.L==2?(Un.yb=0,Un.zb=0):(Un.yb=_r.v-Xr>>4,Un.zb=_r.j-Xr>>4,0>Un.yb&&(Un.yb=0),0>Un.zb&&(Un.zb=0)),Un.Va=_r.o+15+Xr>>4,Un.Hb=_r.va+15+Xr>>4,Un.Hb>Un.za&&(Un.Hb=Un.za),Un.Va>Un.Ub&&(Un.Va=Un.Ub),0<Un.L){var Hi=Un.ed;for(Xr=0;4>Xr;++Xr){var si;if(Un.Qa.Cb){var Ki=Un.Qa.Lb[Xr];Un.Qa.Fb||(Ki+=Hi.Tb)}else Ki=Hi.Tb;for(si=0;1>=si;++si){var Gi=Un.gd[Xr][si],yo=Ki;if(Hi.Pc&&(yo+=Hi.vd[0],si&&(yo+=Hi.od[0])),0<(yo=0>yo?0:63<yo?63:yo)){var oo=yo;0<Hi.wb&&(oo=4<Hi.wb?oo>>2:oo>>1)>9-Hi.wb&&(oo=9-Hi.wb),1>oo&&(oo=1),Gi.dd=oo,Gi.tc=2*yo+oo,Gi.ld=40<=yo?2:15<=yo?1:0}else Gi.tc=0;Gi.La=si}}}Xr=0}else DA(Un,6,"Frame setup failed"),Xr=Un.a;if(Xr=Xr==0){if(Xr){Un.$c=0,0<Un.Aa||(Un.Ic=x1);t:{Xr=Un.Ic,Hi=4*(oo=Un.za);var Ha=32*oo,Ba=oo+1,Ks=0<Un.L?oo*(0<Un.Aa?2:1):0,Na=(Un.Aa==2?2:1)*oo;if((Gi=Hi+832+(si=3*(16*Xr+Om[Un.L])/2*Ha)+(Ki=Un.Fa!=null&&0<Un.Fa.length?Un.Kc.c*Un.Kc.i:0))!=Gi)Xr=0;else{if(Gi>Un.Vb){if(Un.Vb=0,Un.Ec=he(Gi),Un.Fc=0,Un.Ec==null){Xr=DA(Un,1,"no memory during frame initialization.");break t}Un.Vb=Gi}Gi=Un.Ec,yo=Un.Fc,Un.Ac=Gi,Un.Bc=yo,yo+=Hi,Un.Gd=Ze(Ha,lm),Un.Hd=0,Un.rb=Ze(Ba+1,Eg),Un.sb=1,Un.wa=Ks?Ze(Ks,zd):null,Un.Y=0,Un.D.Nb=0,Un.D.wa=Un.wa,Un.D.Y=Un.Y,0<Un.Aa&&(Un.D.Y+=oo),z(!0),Un.oc=Gi,Un.pc=yo,yo+=832,Un.ya=Ze(Na,Sg),Un.aa=0,Un.D.ya=Un.ya,Un.D.aa=Un.aa,Un.Aa==2&&(Un.D.aa+=oo),Un.R=16*oo,Un.B=8*oo,oo=(Ha=Om[Un.L])*Un.R,Ha=Ha/2*Un.B,Un.sa=Gi,Un.ta=yo+oo,Un.qa=Un.sa,Un.ra=Un.ta+16*Xr*Un.R+Ha,Un.Ha=Un.qa,Un.Ia=Un.ra+8*Xr*Un.B+Ha,Un.$c=0,yo+=si,Un.mb=Ki?Gi:null,Un.nb=Ki?yo:null,z(yo+Ki<=Un.Fc+Un.Vb),cm(Un),Ae(Un.Ac,Un.Bc,0,Hi),Xr=1}}if(Xr){if(_r.ka=0,_r.y=Un.sa,_r.O=Un.ta,_r.f=Un.qa,_r.N=Un.ra,_r.ea=Un.Ha,_r.Vd=Un.Ia,_r.fa=Un.R,_r.Rc=Un.B,_r.F=null,_r.J=0,!iv){for(Xr=-255;255>=Xr;++Xr)ev[255+Xr]=0>Xr?-Xr:Xr;for(Xr=-1020;1020>=Xr;++Xr)tv[1020+Xr]=-128>Xr?-128:127<Xr?127:Xr;for(Xr=-112;112>=Xr;++Xr)nv[112+Xr]=-16>Xr?-16:15<Xr?15:Xr;for(Xr=-255;510>=Xr;++Xr)rv[255+Xr]=0>Xr?0:255<Xr?255:Xr;iv=1}np=lg,Qp=Ym,Yf=Gf,ou=fm,yu=hm,Wd=Xm,xA=ym,HA=_p,Dh=Ht,Zg=jn,hg=wm,xm=Xe,Z0=hr,W0=$r,$0=Pp,G0=_g,V0=mm,X0=vm,mf[0]=o0,mf[1]=Jm,mf[2]=r0,mf[3]=i0,mf[4]=wh,mf[5]=a0,mf[6]=bh,mf[7]=s0,mf[8]=Lg,mf[9]=ug,rp[0]=t0,rp[1]=e0,rp[2]=Fg,rp[3]=pm,rp[4]=Np,rp[5]=Ig,rp[6]=n0,Nh[0]=u0,Nh[1]=qm,Nh[2]=Op,Nh[3]=l0,Nh[4]=Ng,Nh[5]=Dg,Nh[6]=gm,Xr=1}else Xr=0}Xr&&(Xr=function(Cl,QA){for(Cl.M=0;Cl.M<Cl.Va;++Cl.M){var Zs,Oa=Cl.Jc[Cl.M&Cl.Xb],Xo=Cl.m,BA=Cl;for(Zs=0;Zs<BA.za;++Zs){var ks=Xo,Ll=BA,Tu=Ll.Ac,uc=Ll.Bc+4*Zs,Hc=Ll.zc,dA=Ll.ya[Ll.aa+Zs];if(Ll.Qa.Bb?dA.$b=Xi(ks,Ll.Pa.jb[0])?2+Xi(ks,Ll.Pa.jb[2]):Xi(ks,Ll.Pa.jb[1]):dA.$b=0,Ll.kc&&(dA.Ad=Xi(ks,Ll.Bd)),dA.Za=!Xi(ks,145)+0,dA.Za){var Dc=dA.Ob,Qc=0;for(Ll=0;4>Ll;++Ll){var zA,Ol=Hc[0+Ll];for(zA=0;4>zA;++zA){Ol=l1[Tu[uc+zA]][Ol];for(var lu=lv[Xi(ks,Ol[0])];0<lu;)lu=lv[2*lu+Xi(ks,Ol[lu])];Ol=-lu,Tu[uc+zA]=Ol}re(Dc,Qc,Tu,uc,4),Qc+=4,Hc[0+Ll]=Ol}}else Ol=Xi(ks,156)?Xi(ks,128)?1:3:Xi(ks,163)?2:0,dA.Ob[0]=Ol,Ae(Tu,uc,Ol,4),Ae(Hc,0,Ol,4);dA.Dd=Xi(ks,142)?Xi(ks,114)?Xi(ks,183)?1:3:2:0}if(BA.m.Ka)return DA(Cl,7,"Premature end-of-partition0 encountered.");for(;Cl.ja<Cl.za;++Cl.ja){if(BA=Oa,ks=(Xo=Cl).rb[Xo.sb-1],Tu=Xo.rb[Xo.sb+Xo.ja],Zs=Xo.ya[Xo.aa+Xo.ja],uc=Xo.kc?Zs.Ad:0)ks.la=Tu.la=0,Zs.Za||(ks.Na=Tu.Na=0),Zs.Hc=0,Zs.Gc=0,Zs.ia=0;else{var fA,uu;if(ks=Tu,Tu=BA,uc=Xo.Pa.Xc,Hc=Xo.ya[Xo.aa+Xo.ja],dA=Xo.pb[Hc.$b],Ll=Hc.ad,Dc=0,Qc=Xo.rb[Xo.sb-1],Ol=zA=0,Ae(Ll,Dc,0,384),Hc.Za)var Ac=0,vf=uc[3];else{lu=he(16);var EA=ks.Na+Qc.Na;if(EA=$g(Tu,uc[1],EA,dA.Eb,0,lu,0),ks.Na=Qc.Na=(0<EA)+0,1<EA)np(lu,0,Ll,Dc);else{var qc=lu[0]+3>>3;for(lu=0;256>lu;lu+=16)Ll[Dc+lu]=qc}Ac=1,vf=uc[0]}var wu=15&ks.la,KA=15&Qc.la;for(lu=0;4>lu;++lu){var wd=1&KA;for(qc=uu=0;4>qc;++qc)wu=wu>>1|(wd=(EA=$g(Tu,vf,EA=wd+(1&wu),dA.Sc,Ac,Ll,Dc))>Ac)<<7,uu=uu<<2|(3<EA?3:1<EA?2:Ll[Dc+0]!=0),Dc+=16;wu>>=4,KA=KA>>1|wd<<7,zA=(zA<<8|uu)>>>0}for(vf=wu,Ac=KA>>4,fA=0;4>fA;fA+=2){for(uu=0,wu=ks.la>>4+fA,KA=Qc.la>>4+fA,lu=0;2>lu;++lu){for(wd=1&KA,qc=0;2>qc;++qc)EA=wd+(1&wu),wu=wu>>1|(wd=0<(EA=$g(Tu,uc[2],EA,dA.Qc,0,Ll,Dc)))<<3,uu=uu<<2|(3<EA?3:1<EA?2:Ll[Dc+0]!=0),Dc+=16;wu>>=2,KA=KA>>1|wd<<5}Ol|=uu<<4*fA,vf|=wu<<4<<fA,Ac|=(240&KA)<<fA}ks.la=vf,Qc.la=Ac,Hc.Hc=zA,Hc.Gc=Ol,Hc.ia=43690&Ol?0:dA.ia,uc=!(zA|Ol)}if(0<Xo.L&&(Xo.wa[Xo.Y+Xo.ja]=Xo.gd[Zs.$b][Zs.Za],Xo.wa[Xo.Y+Xo.ja].La|=!uc),BA.Ka)return DA(Cl,7,"Premature end-of-file encountered.")}if(cm(Cl),Xo=QA,BA=1,Zs=(Oa=Cl).D,ks=0<Oa.L&&Oa.M>=Oa.zb&&Oa.M<=Oa.Va,Oa.Aa==0)t:{if(Zs.M=Oa.M,Zs.uc=ks,Zd(Oa,Zs),BA=1,Zs=(uu=Oa.D).Nb,ks=(Ol=Om[Oa.L])*Oa.R,Tu=Ol/2*Oa.B,lu=16*Zs*Oa.R,qc=8*Zs*Oa.B,uc=Oa.sa,Hc=Oa.ta-ks+lu,dA=Oa.qa,Ll=Oa.ra-Tu+qc,Dc=Oa.Ha,Qc=Oa.Ia-Tu+qc,KA=(wu=uu.M)==0,zA=wu>=Oa.Va-1,Oa.Aa==2&&Zd(Oa,uu),uu.uc)for(wd=(EA=Oa).D.M,z(EA.D.uc),uu=EA.yb;uu<EA.Hb;++uu){Ac=uu,vf=wd;var zc=(bd=(cc=EA).D).Nb;fA=cc.R;var bd=bd.wa[bd.Y+Ac],Cd=cc.sa,ed=cc.ta+16*zc*fA+16*Ac,xd=bd.dd,Fu=bd.tc;if(Fu!=0)if(z(3<=Fu),cc.L==1)0<Ac&&G0(Cd,ed,fA,Fu+4),bd.La&&X0(Cd,ed,fA,Fu),0<vf&&$0(Cd,ed,fA,Fu+4),bd.La&&V0(Cd,ed,fA,Fu);else{var Bd=cc.B,yf=cc.qa,zp=cc.ra+8*zc*Bd+8*Ac,Oh=cc.Ha,cc=cc.Ia+8*zc*Bd+8*Ac;zc=bd.ld,0<Ac&&(HA(Cd,ed,fA,Fu+4,xd,zc),Zg(yf,zp,Oh,cc,Bd,Fu+4,xd,zc)),bd.La&&(xm(Cd,ed,fA,Fu,xd,zc),W0(yf,zp,Oh,cc,Bd,Fu,xd,zc)),0<vf&&(xA(Cd,ed,fA,Fu+4,xd,zc),Dh(yf,zp,Oh,cc,Bd,Fu+4,xd,zc)),bd.La&&(hg(Cd,ed,fA,Fu,xd,zc),Z0(yf,zp,Oh,cc,Bd,Fu,xd,zc))}}if(Oa.ia&&alert("todo:DitherRow"),Xo.put!=null){if(uu=16*wu,wu=16*(wu+1),KA?(Xo.y=Oa.sa,Xo.O=Oa.ta+lu,Xo.f=Oa.qa,Xo.N=Oa.ra+qc,Xo.ea=Oa.Ha,Xo.W=Oa.Ia+qc):(uu-=Ol,Xo.y=uc,Xo.O=Hc,Xo.f=dA,Xo.N=Ll,Xo.ea=Dc,Xo.W=Qc),zA||(wu-=Ol),wu>Xo.o&&(wu=Xo.o),Xo.F=null,Xo.J=null,Oa.Fa!=null&&0<Oa.Fa.length&&uu<wu&&(Xo.J=Su(Oa,Xo,uu,wu-uu),Xo.F=Oa.mb,Xo.F==null&&Xo.F.length==0)){BA=DA(Oa,3,"Could not decode alpha data.");break t}uu<Xo.j&&(Ol=Xo.j-uu,uu=Xo.j,z(!(1&Ol)),Xo.O+=Oa.R*Ol,Xo.N+=Oa.B*(Ol>>1),Xo.W+=Oa.B*(Ol>>1),Xo.F!=null&&(Xo.J+=Xo.width*Ol)),uu<wu&&(Xo.O+=Xo.v,Xo.N+=Xo.v>>1,Xo.W+=Xo.v>>1,Xo.F!=null&&(Xo.J+=Xo.v),Xo.ka=uu-Xo.j,Xo.U=Xo.va-Xo.v,Xo.T=wu-uu,BA=Xo.put(Xo))}Zs+1!=Oa.Ic||zA||(re(Oa.sa,Oa.ta-ks,uc,Hc+16*Oa.R,ks),re(Oa.qa,Oa.ra-Tu,dA,Ll+8*Oa.B,Tu),re(Oa.Ha,Oa.Ia-Tu,Dc,Qc+8*Oa.B,Tu))}if(!BA)return DA(Cl,6,"Output aborted.")}return 1}(Un,_r)),_r.bc!=null&&_r.bc(_r),Xr&=1}return Xr?(Un.cb=0,Xr):0})(ge,xt)||(Ie=ge.a)}}else Ie=ge.a}Ie==0&&nn.Oa!=null&&nn.Oa.fd&&(Ie=Rg(nn.ba))}nn=Ie}qt=nn!=0?null:11>qt?hn.f.RGBA.eb:hn.f.kb.y}else qt=null;return qt};var mv=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function Ye(Gn,Gr){for(var An="",Pn=0;Pn<4;Pn++)An+=String.fromCharCode(Gn[Gr++]);return An}function dt(Gn,Gr){return Gn[Gr+0]|Gn[Gr+1]<<8}function Tt(Gn,Gr){return(Gn[Gr+0]|Gn[Gr+1]<<8|Gn[Gr+2]<<16)>>>0}function Jt(Gn,Gr){return(Gn[Gr+0]|Gn[Gr+1]<<8|Gn[Gr+2]<<16|Gn[Gr+3]<<24)>>>0}new Ve;var At=[0],In=[0],xn=[],Nn=new Ve,dn=y,yr=function(Gn,Gr){var An={},Pn=0,pr=!1,cr=0,vi=0;if(An.frames=[],!function(on,zn){for(var ir=0;ir<4;ir++)if(on[zn+ir]!="RIFF".charCodeAt(ir))return!0;return!1}(Gn,Gr)){for(Jt(Gn,Gr+=4),Gr+=8;Gr<Gn.length;){var Fi=Ye(Gn,Gr),Oi=Jt(Gn,Gr+=4);Gr+=4;var Ai=Oi+(1&Oi);switch(Fi){case"VP8 ":case"VP8L":An.frames[Pn]===void 0&&(An.frames[Pn]={}),(ro=An.frames[Pn]).src_off=pr?vi:Gr-8,ro.src_size=cr+Oi+8,Pn++,pr&&(pr=!1,cr=0,vi=0);break;case"VP8X":(ro=An.header={}).feature_flags=Gn[Gr];var _i=Gr+4;ro.canvas_width=1+Tt(Gn,_i),_i+=3,ro.canvas_height=1+Tt(Gn,_i),_i+=3;break;case"ALPH":pr=!0,cr=Ai+8,vi=Gr-8;break;case"ANIM":(ro=An.header).bgcolor=Jt(Gn,Gr),_i=Gr+4,ro.loop_count=dt(Gn,_i),_i+=2;break;case"ANMF":var Po,ro;(ro=An.frames[Pn]={}).offset_x=2*Tt(Gn,Gr),Gr+=3,ro.offset_y=2*Tt(Gn,Gr),Gr+=3,ro.width=1+Tt(Gn,Gr),Gr+=3,ro.height=1+Tt(Gn,Gr),Gr+=3,ro.duration=Tt(Gn,Gr),Gr+=3,Po=Gn[Gr++],ro.dispose=1&Po,ro.blend=Po>>1&1}Fi!="ANMF"&&(Gr+=Ai)}return An}}(dn,0);yr.response=dn,yr.rgbaoutput=!0,yr.dataurl=!1;var lr=yr.header?yr.header:null,Zn=yr.frames?yr.frames:null;if(lr){lr.loop_counter=lr.loop_count,At=[lr.canvas_height],In=[lr.canvas_width];for(var fi=0;fi<Zn.length&&Zn[fi].blend!=0;fi++);}var zi=Zn[0],Ii=Nn.WebPDecodeRGBA(dn,zi.src_off,zi.src_size,In,At);zi.rgba=Ii,zi.imgwidth=In[0],zi.imgheight=At[0];for(var Ir=0;Ir<In[0]*At[0]*4;Ir++)xn[Ir]=Ii[Ir];return this.width=In,this.height=At,this.data=xn,this}(function(y){var z,E,re,Ae,he,Ze,Pe,Ve,Ye,dt=function(on){return on=on||{},this.isStrokeTransparent=on.isStrokeTransparent||!1,this.strokeOpacity=on.strokeOpacity||1,this.strokeStyle=on.strokeStyle||"#000000",this.fillStyle=on.fillStyle||"#000000",this.isFillTransparent=on.isFillTransparent||!1,this.fillOpacity=on.fillOpacity||1,this.font=on.font||"10px sans-serif",this.textBaseline=on.textBaseline||"alphabetic",this.textAlign=on.textAlign||"left",this.lineWidth=on.lineWidth||1,this.lineJoin=on.lineJoin||"miter",this.lineCap=on.lineCap||"butt",this.path=on.path||[],this.transform=on.transform!==void 0?on.transform.clone():new Ve,this.globalCompositeOperation=on.globalCompositeOperation||"normal",this.globalAlpha=on.globalAlpha||1,this.clip_path=on.clip_path||[],this.currentPoint=on.currentPoint||new Ze,this.miterLimit=on.miterLimit||10,this.lastPoint=on.lastPoint||new Ze,this.lineDashOffset=on.lineDashOffset||0,this.lineDash=on.lineDash||[],this.margin=on.margin||[0,0,0,0],this.prevPageLastElemOffset=on.prevPageLastElemOffset||0,this.ignoreClearRect=typeof on.ignoreClearRect!="boolean"||on.ignoreClearRect,this};y.events.push(["initialized",function(){this.context2d=new Tt(this),z=this.internal.f2,E=this.internal.getCoordinateString,re=this.internal.getVerticalCoordinateString,Ae=this.internal.getHorizontalCoordinate,he=this.internal.getVerticalCoordinate,Ze=this.internal.Point,Pe=this.internal.Rectangle,Ve=this.internal.Matrix,Ye=new dt}]);var Tt=function(on){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var zn=on;Object.defineProperty(this,"pdf",{get:function(){return zn}});var ir=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return ir},set:function(_n){ir=!!_n}});var br=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return br},set:function(_n){br=!!_n}});var Tr=0;Object.defineProperty(this,"posX",{get:function(){return Tr},set:function(_n){isNaN(_n)||(Tr=_n)}});var ei=0;Object.defineProperty(this,"posY",{get:function(){return ei},set:function(_n){isNaN(_n)||(ei=_n)}}),Object.defineProperty(this,"margin",{get:function(){return Ye.margin},set:function(_n){var da;typeof _n=="number"?da=[_n,_n,_n,_n]:((da=new Array(4))[0]=_n[0],da[1]=_n.length>=2?_n[1]:da[0],da[2]=_n.length>=3?_n[2]:da[0],da[3]=_n.length>=4?_n[3]:da[1]),Ye.margin=da}});var Li=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Li},set:function(_n){Li=_n}});var Pi=0;Object.defineProperty(this,"lastBreak",{get:function(){return Pi},set:function(_n){Pi=_n}});var Xi=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Xi},set:function(_n){Xi=_n}}),Object.defineProperty(this,"ctx",{get:function(){return Ye},set:function(_n){_n instanceof dt&&(Ye=_n)}}),Object.defineProperty(this,"path",{get:function(){return Ye.path},set:function(_n){Ye.path=_n}});var xo=[];Object.defineProperty(this,"ctxStack",{get:function(){return xo},set:function(_n){xo=_n}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(_n){var da;da=Jt(_n),this.ctx.fillStyle=da.style,this.ctx.isFillTransparent=da.a===0,this.ctx.fillOpacity=da.a,this.pdf.setFillColor(da.r,da.g,da.b,{a:da.a}),this.pdf.setTextColor(da.r,da.g,da.b,{a:da.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(_n){var da=Jt(_n);this.ctx.strokeStyle=da.style,this.ctx.isStrokeTransparent=da.a===0,this.ctx.strokeOpacity=da.a,da.a===0?this.pdf.setDrawColor(255,255,255):(da.a,this.pdf.setDrawColor(da.r,da.g,da.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(_n){["butt","round","square"].indexOf(_n)!==-1&&(this.ctx.lineCap=_n,this.pdf.setLineCap(_n))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(_n){isNaN(_n)||(this.ctx.lineWidth=_n,this.pdf.setLineWidth(_n))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(_n){["bevel","round","miter"].indexOf(_n)!==-1&&(this.ctx.lineJoin=_n,this.pdf.setLineJoin(_n))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(_n){isNaN(_n)||(this.ctx.miterLimit=_n,this.pdf.setMiterLimit(_n))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(_n){this.ctx.textBaseline=_n}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(_n){["right","end","center","left","start"].indexOf(_n)!==-1&&(this.ctx.textAlign=_n)}});var ca=null,ua=null,Ga=null;Object.defineProperty(this,"fontFaces",{get:function(){return Ga},set:function(_n){ca=null,ua=null,Ga=_n}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(_n){var da;if(this.ctx.font=_n,(da=/^\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-z0-9]+?)\s*$/i.exec(_n))!==null){var Vs=da[1];da[2];var is=da[3],po=da[4];da[5];var os=da[6],Ea=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(po)[2];po=Math.floor(Ea==="px"?parseFloat(po)*this.pdf.internal.scaleFactor:Ea==="em"?parseFloat(po)*this.pdf.getFontSize():parseFloat(po)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(po);var ns=function(Qa){var bA,Dl,Js=[],qs=Qa.trim();if(qs==="")return Zm;if(qs in Rf)return[Rf[qs]];for(;qs!=="";){switch(Dl=null,bA=(qs=jf(qs)).charAt(0)){case'"':case"'":Dl=uf(qs.substring(1),bA);break;default:Dl=Zh(qs)}if(Dl===null||(Js.push(Dl[0]),(qs=jf(Dl[1]))!==""&&qs.charAt(0)!==","))return Zm;qs=qs.replace(/^,/,"")}return Js}(os);if(this.fontFaces){var Xa=function(Qa,bA){var Dl=Qa.getFontList(),Js=JSON.stringify(Dl);if(ca===null||ua!==Js){var qs=function(Zu){var Ja=[];return Object.keys(Zu).forEach(function(Eu){Zu[Eu].forEach(function(cs){var Ts=null;switch(cs){case"bold":Ts={family:Eu,weight:"bold"};break;case"italic":Ts={family:Eu,style:"italic"};break;case"bolditalic":Ts={family:Eu,weight:"bold",style:"italic"};break;case"":case"normal":Ts={family:Eu}}Ts!==null&&(Ts.ref={name:Eu,style:cs},Ja.push(Ts))})}),Ja}(Dl);ca=function(Zu){for(var Ja={},Eu=0;Eu<Zu.length;++Eu){var cs=Jc(Zu[Eu]),Ts=cs.family,Wu=cs.stretch,ol=cs.style,ls=cs.weight;Ja[Ts]=Ja[Ts]||{},Ja[Ts][Wu]=Ja[Ts][Wu]||{},Ja[Ts][Wu][ol]=Ja[Ts][Wu][ol]||{},Ja[Ts][Wu][ol][ls]=cs}return Ja}(qs.concat(bA)),ua=Js}return ca}(this.pdf,this.fontFaces),ru=ns.map(function(Qa){return{family:Qa,stretch:"normal",weight:is,style:Vs}}),hl=function(Qa,bA,Dl){for(var Js=(Dl=Dl||{}).defaultFontFamily||"times",qs=Object.assign({},ph,Dl.genericFontFamilies||{}),Zu=null,Ja=null,Eu=0;Eu<bA.length;++Eu)if(qs[(Zu=Jc(bA[Eu])).family]&&(Zu.family=qs[Zu.family]),Qa.hasOwnProperty(Zu.family)){Ja=Qa[Zu.family];break}if(!(Ja=Ja||Qa[Js]))throw new Error("Could not find a font-family for the rule '"+Rd(Zu)+"' and default family '"+Js+"'.");if(Ja=function(cs,Ts){if(Ts[cs])return Ts[cs];var Wu=qA[cs],ol=Wu<=qA.normal?-1:1,ls=lf(Ts,sf,Wu,ol);if(!ls)throw new Error("Could not find a matching font-stretch value for "+cs);return ls}(Zu.stretch,Ja),Ja=function(cs,Ts){if(Ts[cs])return Ts[cs];for(var Wu=LA[cs],ol=0;ol<Wu.length;++ol)if(Ts[Wu[ol]])return Ts[Wu[ol]];throw new Error("Could not find a matching font-style for "+cs)}(Zu.style,Ja),!(Ja=function(cs,Ts){if(Ts[cs])return Ts[cs];if(cs===400&&Ts[500])return Ts[500];if(cs===500&&Ts[400])return Ts[400];var Wu=hh[cs],ol=lf(Ts,oc,Wu,cs<400?-1:1);if(!ol)throw new Error("Could not find a matching font-weight for value "+cs);return ol}(Zu.weight,Ja)))throw new Error("Failed to resolve a font for the rule '"+Rd(Zu)+"'.");return Ja}(Xa,ru);this.pdf.setFont(hl.ref.name,hl.ref.style)}else{var _s="";(is==="bold"||parseInt(is,10)>=700||Vs==="bold")&&(_s="bold"),Vs==="italic"&&(_s+="italic"),_s.length===0&&(_s="normal");for(var bl="",pl={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"},Ma=0;Ma<ns.length;Ma++){if(this.pdf.internal.getFont(ns[Ma],_s,{noFallback:!0,disableWarning:!0})!==void 0){bl=ns[Ma];break}if(_s==="bolditalic"&&this.pdf.internal.getFont(ns[Ma],"bold",{noFallback:!0,disableWarning:!0})!==void 0)bl=ns[Ma],_s="bold";else if(this.pdf.internal.getFont(ns[Ma],"normal",{noFallback:!0,disableWarning:!0})!==void 0){bl=ns[Ma],_s="normal";break}}if(bl===""){for(var Us=0;Us<ns.length;Us++)if(pl[ns[Us]]){bl=pl[ns[Us]];break}}bl=bl===""?"Times":bl,this.pdf.setFont(bl,_s)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(_n){this.ctx.globalCompositeOperation=_n}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(_n){this.ctx.globalAlpha=_n}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(_n){this.ctx.lineDashOffset=_n,ro.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(_n){this.ctx.lineDash=_n,ro.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(_n){this.ctx.ignoreClearRect=!!_n}})};Tt.prototype.setLineDash=function(on){this.lineDash=on},Tt.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},Tt.prototype.fill=function(){Zn.call(this,"fill",!1)},Tt.prototype.stroke=function(){Zn.call(this,"stroke",!1)},Tt.prototype.beginPath=function(){this.path=[{type:"begin"}]},Tt.prototype.moveTo=function(on,zn){if(isNaN(on)||isNaN(zn))throw dl.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var ir=this.ctx.transform.applyToPoint(new Ze(on,zn));this.path.push({type:"mt",x:ir.x,y:ir.y}),this.ctx.lastPoint=new Ze(on,zn)},Tt.prototype.closePath=function(){var on=new Ze(0,0),zn=0;for(zn=this.path.length-1;zn!==-1;zn--)if(this.path[zn].type==="begin"&&(0,x.Z)(this.path[zn+1])==="object"&&typeof this.path[zn+1].x=="number"){on=new Ze(this.path[zn+1].x,this.path[zn+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new Ze(on.x,on.y)},Tt.prototype.lineTo=function(on,zn){if(isNaN(on)||isNaN(zn))throw dl.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var ir=this.ctx.transform.applyToPoint(new Ze(on,zn));this.path.push({type:"lt",x:ir.x,y:ir.y}),this.ctx.lastPoint=new Ze(ir.x,ir.y)},Tt.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),Zn.call(this,null,!0)},Tt.prototype.quadraticCurveTo=function(on,zn,ir,br){if(isNaN(ir)||isNaN(br)||isNaN(on)||isNaN(zn))throw dl.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Tr=this.ctx.transform.applyToPoint(new Ze(ir,br)),ei=this.ctx.transform.applyToPoint(new Ze(on,zn));this.path.push({type:"qct",x1:ei.x,y1:ei.y,x:Tr.x,y:Tr.y}),this.ctx.lastPoint=new Ze(Tr.x,Tr.y)},Tt.prototype.bezierCurveTo=function(on,zn,ir,br,Tr,ei){if(isNaN(Tr)||isNaN(ei)||isNaN(on)||isNaN(zn)||isNaN(ir)||isNaN(br))throw dl.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Li=this.ctx.transform.applyToPoint(new Ze(Tr,ei)),Pi=this.ctx.transform.applyToPoint(new Ze(on,zn)),Xi=this.ctx.transform.applyToPoint(new Ze(ir,br));this.path.push({type:"bct",x1:Pi.x,y1:Pi.y,x2:Xi.x,y2:Xi.y,x:Li.x,y:Li.y}),this.ctx.lastPoint=new Ze(Li.x,Li.y)},Tt.prototype.arc=function(on,zn,ir,br,Tr,ei){if(isNaN(on)||isNaN(zn)||isNaN(ir)||isNaN(br)||isNaN(Tr))throw dl.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ei=!!ei,!this.ctx.transform.isIdentity){var Li=this.ctx.transform.applyToPoint(new Ze(on,zn));on=Li.x,zn=Li.y;var Pi=this.ctx.transform.applyToPoint(new Ze(0,ir)),Xi=this.ctx.transform.applyToPoint(new Ze(0,0));ir=Math.sqrt(Math.pow(Pi.x-Xi.x,2)+Math.pow(Pi.y-Xi.y,2))}Math.abs(Tr-br)>=2*Math.PI&&(br=0,Tr=2*Math.PI),this.path.push({type:"arc",x:on,y:zn,radius:ir,startAngle:br,endAngle:Tr,counterclockwise:ei})},Tt.prototype.arcTo=function(on,zn,ir,br,Tr){throw new Error("arcTo not implemented.")},Tt.prototype.rect=function(on,zn,ir,br){if(isNaN(on)||isNaN(zn)||isNaN(ir)||isNaN(br))throw dl.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(on,zn),this.lineTo(on+ir,zn),this.lineTo(on+ir,zn+br),this.lineTo(on,zn+br),this.lineTo(on,zn),this.lineTo(on+ir,zn),this.lineTo(on,zn)},Tt.prototype.fillRect=function(on,zn,ir,br){if(isNaN(on)||isNaN(zn)||isNaN(ir)||isNaN(br))throw dl.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!At.call(this)){var Tr={};this.lineCap!=="butt"&&(Tr.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Tr.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(on,zn,ir,br),this.fill(),Tr.hasOwnProperty("lineCap")&&(this.lineCap=Tr.lineCap),Tr.hasOwnProperty("lineJoin")&&(this.lineJoin=Tr.lineJoin)}},Tt.prototype.strokeRect=function(on,zn,ir,br){if(isNaN(on)||isNaN(zn)||isNaN(ir)||isNaN(br))throw dl.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");In.call(this)||(this.beginPath(),this.rect(on,zn,ir,br),this.stroke())},Tt.prototype.clearRect=function(on,zn,ir,br){if(isNaN(on)||isNaN(zn)||isNaN(ir)||isNaN(br))throw dl.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(on,zn,ir,br))},Tt.prototype.save=function(on){on=typeof on!="boolean"||on;for(var zn=this.pdf.internal.getCurrentPageInfo().pageNumber,ir=0;ir<this.pdf.internal.getNumberOfPages();ir++)this.pdf.setPage(ir+1),this.pdf.internal.out("q");if(this.pdf.setPage(zn),on){this.ctx.fontSize=this.pdf.internal.getFontSize();var br=new dt(this.ctx);this.ctxStack.push(this.ctx),this.ctx=br}},Tt.prototype.restore=function(on){on=typeof on!="boolean"||on;for(var zn=this.pdf.internal.getCurrentPageInfo().pageNumber,ir=0;ir<this.pdf.internal.getNumberOfPages();ir++)this.pdf.setPage(ir+1),this.pdf.internal.out("Q");this.pdf.setPage(zn),on&&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)},Tt.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var Jt=function(on){var zn,ir,br,Tr;if(on.isCanvasGradient===!0&&(on=on.getColor()),!on)return{r:0,g:0,b:0,a:0,style:on};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(on))zn=0,ir=0,br=0,Tr=0;else{var ei=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(on);if(ei!==null)zn=parseInt(ei[1]),ir=parseInt(ei[2]),br=parseInt(ei[3]),Tr=1;else if((ei=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(on))!==null)zn=parseInt(ei[1]),ir=parseInt(ei[2]),br=parseInt(ei[3]),Tr=parseFloat(ei[4]);else{if(Tr=1,typeof on=="string"&&on.charAt(0)!=="#"){var Li=new Jg(on);on=Li.ok?Li.toHex():"#000000"}on.length===4?(zn=on.substring(1,2),zn+=zn,ir=on.substring(2,3),ir+=ir,br=on.substring(3,4),br+=br):(zn=on.substring(1,3),ir=on.substring(3,5),br=on.substring(5,7)),zn=parseInt(zn,16),ir=parseInt(ir,16),br=parseInt(br,16)}}return{r:zn,g:ir,b:br,a:Tr,style:on}},At=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},In=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Tt.prototype.fillText=function(on,zn,ir,br){if(isNaN(zn)||isNaN(ir)||typeof on!="string")throw dl.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(br=isNaN(br)?void 0:br,!At.call(this)){var Tr=Ai(this.ctx.transform.rotation),ei=this.ctx.transform.scaleX;Pn.call(this,{text:on,x:zn,y:ir,scale:ei,angle:Tr,align:this.textAlign,maxWidth:br})}},Tt.prototype.strokeText=function(on,zn,ir,br){if(isNaN(zn)||isNaN(ir)||typeof on!="string")throw dl.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!In.call(this)){br=isNaN(br)?void 0:br;var Tr=Ai(this.ctx.transform.rotation),ei=this.ctx.transform.scaleX;Pn.call(this,{text:on,x:zn,y:ir,scale:ei,renderingMode:"stroke",angle:Tr,align:this.textAlign,maxWidth:br})}},Tt.prototype.measureText=function(on){if(typeof on!="string")throw dl.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var zn=this.pdf,ir=this.pdf.internal.scaleFactor,br=zn.internal.getFontSize(),Tr=zn.getStringUnitWidth(on)*br/zn.internal.scaleFactor;return new function(ei){var Li=(ei=ei||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Li}}),this}({width:Tr*=Math.round(96*ir/72*1e4)/1e4})},Tt.prototype.scale=function(on,zn){if(isNaN(on)||isNaN(zn))throw dl.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var ir=new Ve(on,0,0,zn,0,0);this.ctx.transform=this.ctx.transform.multiply(ir)},Tt.prototype.rotate=function(on){if(isNaN(on))throw dl.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var zn=new Ve(Math.cos(on),Math.sin(on),-Math.sin(on),Math.cos(on),0,0);this.ctx.transform=this.ctx.transform.multiply(zn)},Tt.prototype.translate=function(on,zn){if(isNaN(on)||isNaN(zn))throw dl.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var ir=new Ve(1,0,0,1,on,zn);this.ctx.transform=this.ctx.transform.multiply(ir)},Tt.prototype.transform=function(on,zn,ir,br,Tr,ei){if(isNaN(on)||isNaN(zn)||isNaN(ir)||isNaN(br)||isNaN(Tr)||isNaN(ei))throw dl.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Li=new Ve(on,zn,ir,br,Tr,ei);this.ctx.transform=this.ctx.transform.multiply(Li)},Tt.prototype.setTransform=function(on,zn,ir,br,Tr,ei){on=isNaN(on)?1:on,zn=isNaN(zn)?0:zn,ir=isNaN(ir)?0:ir,br=isNaN(br)?1:br,Tr=isNaN(Tr)?0:Tr,ei=isNaN(ei)?0:ei,this.ctx.transform=new Ve(on,zn,ir,br,Tr,ei)};var xn=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};Tt.prototype.drawImage=function(on,zn,ir,br,Tr,ei,Li,Pi,Xi){var xo=this.pdf.getImageProperties(on),ca=1,ua=1,Ga=1,_n=1;br!==void 0&&Pi!==void 0&&(Ga=Pi/br,_n=Xi/Tr,ca=xo.width/br*Pi/br,ua=xo.height/Tr*Xi/Tr),ei===void 0&&(ei=zn,Li=ir,zn=0,ir=0),br!==void 0&&Pi===void 0&&(Pi=br,Xi=Tr),br===void 0&&Pi===void 0&&(Pi=xo.width,Xi=xo.height);var da=this.ctx.transform.decompose(),Vs=Ai(da.rotate.shx),is=new Ve,po=(is=(is=(is=is.multiply(da.translate)).multiply(da.skew)).multiply(da.scale)).applyToRectangle(new Pe(ei-zn*Ga,Li-ir*_n,br*ca,Tr*ua));if(this.autoPaging){for(var os,Ea=Nn.call(this,po),ns=[],Xa=0;Xa<Ea.length;Xa+=1)ns.indexOf(Ea[Xa])===-1&&ns.push(Ea[Xa]);lr(ns);for(var ru=ns[0],hl=ns[ns.length-1],_s=ru;_s<hl+1;_s++){this.pdf.setPage(_s);var bl=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],pl=_s===1?this.posY+this.margin[0]:this.margin[0],Ma=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Us=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Qa=_s===1?0:Ma+(_s-2)*Us;if(this.ctx.clip_path.length!==0){var bA=this.path;os=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=yr(os,this.posX+this.margin[3],-Qa+pl+this.ctx.prevPageLastElemOffset),fi.call(this,"fill",!0),this.path=bA}var Dl=JSON.parse(JSON.stringify(po));Dl=yr([Dl],this.posX+this.margin[3],-Qa+pl+this.ctx.prevPageLastElemOffset)[0];var Js=(_s>ru||_s<hl)&&xn.call(this);Js&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],bl,Us,null).clip().discardPath()),this.pdf.addImage(on,"JPEG",Dl.x,Dl.y,Dl.w,Dl.h,null,null,Vs),Js&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(on,"JPEG",po.x,po.y,po.w,po.h,null,null,Vs)};var Nn=function(on,zn,ir){var br=[];zn=zn||this.pdf.internal.pageSize.width,ir=ir||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Tr=this.posY+this.ctx.prevPageLastElemOffset;switch(on.type){default:case"mt":case"lt":br.push(Math.floor((on.y+Tr)/ir)+1);break;case"arc":br.push(Math.floor((on.y+Tr-on.radius)/ir)+1),br.push(Math.floor((on.y+Tr+on.radius)/ir)+1);break;case"qct":var ei=_i(this.ctx.lastPoint.x,this.ctx.lastPoint.y,on.x1,on.y1,on.x,on.y);br.push(Math.floor((ei.y+Tr)/ir)+1),br.push(Math.floor((ei.y+ei.h+Tr)/ir)+1);break;case"bct":var Li=Po(this.ctx.lastPoint.x,this.ctx.lastPoint.y,on.x1,on.y1,on.x2,on.y2,on.x,on.y);br.push(Math.floor((Li.y+Tr)/ir)+1),br.push(Math.floor((Li.y+Li.h+Tr)/ir)+1);break;case"rect":br.push(Math.floor((on.y+Tr)/ir)+1),br.push(Math.floor((on.y+on.h+Tr)/ir)+1)}for(var Pi=0;Pi<br.length;Pi+=1)for(;this.pdf.internal.getNumberOfPages()<br[Pi];)dn.call(this);return br},dn=function(){var on=this.fillStyle,zn=this.strokeStyle,ir=this.font,br=this.lineCap,Tr=this.lineWidth,ei=this.lineJoin;this.pdf.addPage(),this.fillStyle=on,this.strokeStyle=zn,this.font=ir,this.lineCap=br,this.lineWidth=Tr,this.lineJoin=ei},yr=function(on,zn,ir){for(var br=0;br<on.length;br++)switch(on[br].type){case"bct":on[br].x2+=zn,on[br].y2+=ir;case"qct":on[br].x1+=zn,on[br].y1+=ir;default:on[br].x+=zn,on[br].y+=ir}return on},lr=function(on){return on.sort(function(zn,ir){return zn-ir})},Zn=function(on,zn){var ir=this.fillStyle,br=this.strokeStyle,Tr=this.lineCap,ei=this.lineWidth,Li=Math.abs(ei*this.ctx.transform.scaleX),Pi=this.lineJoin;if(this.autoPaging){for(var Xi,xo,ca=JSON.parse(JSON.stringify(this.path)),ua=JSON.parse(JSON.stringify(this.path)),Ga=[],_n=0;_n<ua.length;_n++)if(ua[_n].x!==void 0)for(var da=Nn.call(this,ua[_n]),Vs=0;Vs<da.length;Vs+=1)Ga.indexOf(da[Vs])===-1&&Ga.push(da[Vs]);for(var is=0;is<Ga.length;is++)for(;this.pdf.internal.getNumberOfPages()<Ga[is];)dn.call(this);lr(Ga);for(var po=Ga[0],os=Ga[Ga.length-1],Ea=po;Ea<os+1;Ea++){this.pdf.setPage(Ea),this.fillStyle=ir,this.strokeStyle=br,this.lineCap=Tr,this.lineWidth=Li,this.lineJoin=Pi;var ns=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Xa=Ea===1?this.posY+this.margin[0]:this.margin[0],ru=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],hl=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],_s=Ea===1?0:ru+(Ea-2)*hl;if(this.ctx.clip_path.length!==0){var bl=this.path;Xi=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=yr(Xi,this.posX+this.margin[3],-_s+Xa+this.ctx.prevPageLastElemOffset),fi.call(this,on,!0),this.path=bl}if(xo=JSON.parse(JSON.stringify(ca)),this.path=yr(xo,this.posX+this.margin[3],-_s+Xa+this.ctx.prevPageLastElemOffset),zn===!1||Ea===0){var pl=(Ea>po||Ea<os)&&xn.call(this);pl&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ns,hl,null).clip().discardPath()),fi.call(this,on,zn),pl&&this.pdf.restoreGraphicsState()}this.lineWidth=ei}this.path=ca}else this.lineWidth=Li,fi.call(this,on,zn),this.lineWidth=ei},fi=function(on,zn){if((on!=="stroke"||zn||!In.call(this))&&(on==="stroke"||zn||!At.call(this))){for(var ir,br,Tr=[],ei=this.path,Li=0;Li<ei.length;Li++){var Pi=ei[Li];switch(Pi.type){case"begin":Tr.push({begin:!0});break;case"close":Tr.push({close:!0});break;case"mt":Tr.push({start:Pi,deltas:[],abs:[]});break;case"lt":var Xi=Tr.length;if(ei[Li-1]&&!isNaN(ei[Li-1].x)&&(ir=[Pi.x-ei[Li-1].x,Pi.y-ei[Li-1].y],Xi>0)){for(;Xi>=0;Xi--)if(Tr[Xi-1].close!==!0&&Tr[Xi-1].begin!==!0){Tr[Xi-1].deltas.push(ir),Tr[Xi-1].abs.push(Pi);break}}break;case"bct":ir=[Pi.x1-ei[Li-1].x,Pi.y1-ei[Li-1].y,Pi.x2-ei[Li-1].x,Pi.y2-ei[Li-1].y,Pi.x-ei[Li-1].x,Pi.y-ei[Li-1].y],Tr[Tr.length-1].deltas.push(ir);break;case"qct":var xo=ei[Li-1].x+2/3*(Pi.x1-ei[Li-1].x),ca=ei[Li-1].y+2/3*(Pi.y1-ei[Li-1].y),ua=Pi.x+2/3*(Pi.x1-Pi.x),Ga=Pi.y+2/3*(Pi.y1-Pi.y),_n=Pi.x,da=Pi.y;ir=[xo-ei[Li-1].x,ca-ei[Li-1].y,ua-ei[Li-1].x,Ga-ei[Li-1].y,_n-ei[Li-1].x,da-ei[Li-1].y],Tr[Tr.length-1].deltas.push(ir);break;case"arc":Tr.push({deltas:[],abs:[],arc:!0}),Array.isArray(Tr[Tr.length-1].abs)&&Tr[Tr.length-1].abs.push(Pi)}}br=zn?null:on==="stroke"?"stroke":"fill";for(var Vs=!1,is=0;is<Tr.length;is++)if(Tr[is].arc)for(var po=Tr[is].abs,os=0;os<po.length;os++){var Ea=po[os];Ea.type==="arc"?Ir.call(this,Ea.x,Ea.y,Ea.radius,Ea.startAngle,Ea.endAngle,Ea.counterclockwise,void 0,zn,!Vs):pr.call(this,Ea.x,Ea.y),Vs=!0}else if(Tr[is].close===!0)this.pdf.internal.out("h"),Vs=!1;else if(Tr[is].begin!==!0){var ns=Tr[is].start.x,Xa=Tr[is].start.y;cr.call(this,Tr[is].deltas,ns,Xa),Vs=!0}br&&Gn.call(this,br),zn&&Gr.call(this)}},zi=function(on){var zn=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,ir=zn*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return on-ir;case"top":return on+zn-ir;case"hanging":return on+zn-2*ir;case"middle":return on+zn/2-ir;default:return on}},Ii=function(on){return on+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};Tt.prototype.createLinearGradient=function(){var on=function(){};return on.colorStops=[],on.addColorStop=function(zn,ir){this.colorStops.push([zn,ir])},on.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},on.isCanvasGradient=!0,on},Tt.prototype.createPattern=function(){return this.createLinearGradient()},Tt.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Ir=function(on,zn,ir,br,Tr,ei,Li,Pi,Xi){for(var xo=Fi.call(this,ir,br,Tr,ei),ca=0;ca<xo.length;ca++){var ua=xo[ca];ca===0&&(Xi?An.call(this,ua.x1+on,ua.y1+zn):pr.call(this,ua.x1+on,ua.y1+zn)),vi.call(this,on,zn,ua.x2,ua.y2,ua.x3,ua.y3,ua.x4,ua.y4)}Pi?Gr.call(this):Gn.call(this,Li)},Gn=function(on){switch(on){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Gr=function(){this.pdf.clip(),this.pdf.discardPath()},An=function(on,zn){this.pdf.internal.out(E(on)+" "+re(zn)+" m")},Pn=function(on){var zn;switch(on.align){case"right":case"end":zn="right";break;case"center":zn="center";break;default:zn="left"}var ir,br,Tr,ei=this.pdf.getTextDimensions(on.text),Li=zi.call(this,on.y),Pi=Ii.call(this,Li)-ei.h,Xi=this.ctx.transform.applyToPoint(new Ze(on.x,Li));if(this.autoPaging){var xo=this.ctx.transform.decompose(),ca=new Ve;ca=(ca=(ca=ca.multiply(xo.translate)).multiply(xo.skew)).multiply(xo.scale);for(var ua=this.ctx.transform.applyToRectangle(new Pe(on.x,Li,ei.w,ei.h)),Ga=ca.applyToRectangle(new Pe(on.x,Pi,ei.w,ei.h)),_n=Nn.call(this,Ga),da=[],Vs=0;Vs<_n.length;Vs+=1)da.indexOf(_n[Vs])===-1&&da.push(_n[Vs]);lr(da);for(var is=da[0],po=da[da.length-1],os=is;os<po+1;os++){this.pdf.setPage(os);var Ea=os===1?this.posY+this.margin[0]:this.margin[0],ns=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Xa=this.pdf.internal.pageSize.height-this.margin[2],ru=Xa-this.margin[0],hl=this.pdf.internal.pageSize.width-this.margin[1],_s=hl-this.margin[3],bl=os===1?0:ns+(os-2)*ru;if(this.ctx.clip_path.length!==0){var pl=this.path;ir=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=yr(ir,this.posX+this.margin[3],-1*bl+Ea),fi.call(this,"fill",!0),this.path=pl}var Ma=yr([JSON.parse(JSON.stringify(Ga))],this.posX+this.margin[3],-bl+Ea+this.ctx.prevPageLastElemOffset)[0];on.scale>=.01&&(br=this.pdf.internal.getFontSize(),this.pdf.setFontSize(br*on.scale),Tr=this.lineWidth,this.lineWidth=Tr*on.scale);var Us=this.autoPaging!=="text";if(Us||Ma.y+Ma.h<=Xa){if(Us||Ma.y>=Ea&&Ma.x<=hl){var Qa=Us?on.text:this.pdf.splitTextToSize(on.text,on.maxWidth||hl-Ma.x)[0],bA=yr([JSON.parse(JSON.stringify(ua))],this.posX+this.margin[3],-bl+Ea+this.ctx.prevPageLastElemOffset)[0],Dl=Us&&(os>is||os<po)&&xn.call(this);Dl&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],_s,ru,null).clip().discardPath()),this.pdf.text(Qa,bA.x,bA.y,{angle:on.angle,align:zn,renderingMode:on.renderingMode}),Dl&&this.pdf.restoreGraphicsState()}}else Ma.y<Xa&&(this.ctx.prevPageLastElemOffset+=Xa-Ma.y);on.scale>=.01&&(this.pdf.setFontSize(br),this.lineWidth=Tr)}}else on.scale>=.01&&(br=this.pdf.internal.getFontSize(),this.pdf.setFontSize(br*on.scale),Tr=this.lineWidth,this.lineWidth=Tr*on.scale),this.pdf.text(on.text,Xi.x+this.posX,Xi.y+this.posY,{angle:on.angle,align:zn,renderingMode:on.renderingMode,maxWidth:on.maxWidth}),on.scale>=.01&&(this.pdf.setFontSize(br),this.lineWidth=Tr)},pr=function(on,zn,ir,br){ir=ir||0,br=br||0,this.pdf.internal.out(E(on+ir)+" "+re(zn+br)+" l")},cr=function(on,zn,ir){return this.pdf.lines(on,zn,ir,null,null)},vi=function(on,zn,ir,br,Tr,ei,Li,Pi){this.pdf.internal.out([z(Ae(ir+on)),z(he(br+zn)),z(Ae(Tr+on)),z(he(ei+zn)),z(Ae(Li+on)),z(he(Pi+zn)),"c"].join(" "))},Fi=function(on,zn,ir,br){for(var Tr=2*Math.PI,ei=Math.PI/2;zn>ir;)zn-=Tr;var Li=Math.abs(ir-zn);Li<Tr&&br&&(Li=Tr-Li);for(var Pi=[],Xi=br?-1:1,xo=zn;Li>1e-5;){var ca=xo+Xi*Math.min(Li,ei);Pi.push(Oi.call(this,on,xo,ca)),Li-=Math.abs(ca-xo),xo=ca}return Pi},Oi=function(on,zn,ir){var br=(ir-zn)/2,Tr=on*Math.cos(br),ei=on*Math.sin(br),Li=Tr,Pi=-ei,Xi=Li*Li+Pi*Pi,xo=Xi+Li*Tr+Pi*ei,ca=4/3*(Math.sqrt(2*Xi*xo)-xo)/(Li*ei-Pi*Tr),ua=Li-ca*Pi,Ga=Pi+ca*Li,_n=ua,da=-Ga,Vs=br+zn,is=Math.cos(Vs),po=Math.sin(Vs);return{x1:on*Math.cos(zn),y1:on*Math.sin(zn),x2:ua*is-Ga*po,y2:ua*po+Ga*is,x3:_n*is-da*po,y3:_n*po+da*is,x4:on*Math.cos(ir),y4:on*Math.sin(ir)}},Ai=function(on){return 180*on/Math.PI},_i=function(on,zn,ir,br,Tr,ei){var Li=on+.5*(ir-on),Pi=zn+.5*(br-zn),Xi=Tr+.5*(ir-Tr),xo=ei+.5*(br-ei),ca=Math.min(on,Tr,Li,Xi),ua=Math.max(on,Tr,Li,Xi),Ga=Math.min(zn,ei,Pi,xo),_n=Math.max(zn,ei,Pi,xo);return new Pe(ca,Ga,ua-ca,_n-Ga)},Po=function(on,zn,ir,br,Tr,ei,Li,Pi){var Xi,xo,ca,ua,Ga,_n,da,Vs,is,po,os,Ea,ns,Xa,ru=ir-on,hl=br-zn,_s=Tr-ir,bl=ei-br,pl=Li-Tr,Ma=Pi-ei;for(xo=0;xo<41;xo++)is=(da=(ca=on+(Xi=xo/40)*ru)+Xi*((Ga=ir+Xi*_s)-ca))+Xi*(Ga+Xi*(Tr+Xi*pl-Ga)-da),po=(Vs=(ua=zn+Xi*hl)+Xi*((_n=br+Xi*bl)-ua))+Xi*(_n+Xi*(ei+Xi*Ma-_n)-Vs),xo==0?(os=is,Ea=po,ns=is,Xa=po):(os=Math.min(os,is),Ea=Math.min(Ea,po),ns=Math.max(ns,is),Xa=Math.max(Xa,po));return new Pe(Math.round(os),Math.round(Ea),Math.round(ns-os),Math.round(Xa-Ea))},ro=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var on,zn,ir=(on=this.ctx.lineDash,zn=this.ctx.lineDashOffset,JSON.stringify({lineDash:on,lineDashOffset:zn}));this.prevLineDash!==ir&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=ir)}}})(Da.API),function(y){var z=function(Ze){var Pe,Ve,Ye,dt,Tt,Jt,At,In,xn,Nn;for(/[^\x00-\xFF]/.test(Ze),Ve=[],Ye=0,dt=(Ze+=Pe="\0\0\0\0".slice(Ze.length%4||4)).length;dt>Ye;Ye+=4)(Tt=(Ze.charCodeAt(Ye)<<24)+(Ze.charCodeAt(Ye+1)<<16)+(Ze.charCodeAt(Ye+2)<<8)+Ze.charCodeAt(Ye+3))!==0?(Jt=(Tt=((Tt=((Tt=((Tt=(Tt-(Nn=Tt%85))/85)-(xn=Tt%85))/85)-(In=Tt%85))/85)-(At=Tt%85))/85)%85,Ve.push(Jt+33,At+33,In+33,xn+33,Nn+33)):Ve.push(122);return function(dn,yr){for(var lr=yr;lr>0;lr--)dn.pop()}(Ve,Pe.length),String.fromCharCode.apply(String,Ve)+"~>"},E=function(Ze){var Pe,Ve,Ye,dt,Tt,Jt=String,At="length",In=255,xn="charCodeAt",Nn="slice",dn="replace";for(Ze[Nn](-2),Ze=Ze[Nn](0,-2)[dn](/\s/g,"")[dn]("z","!!!!!"),Ye=[],dt=0,Tt=(Ze+=Pe="uuuuu"[Nn](Ze[At]%5||5))[At];Tt>dt;dt+=5)Ve=52200625*(Ze[xn](dt)-33)+614125*(Ze[xn](dt+1)-33)+7225*(Ze[xn](dt+2)-33)+85*(Ze[xn](dt+3)-33)+(Ze[xn](dt+4)-33),Ye.push(In&Ve>>24,In&Ve>>16,In&Ve>>8,In&Ve);return function(yr,lr){for(var Zn=lr;Zn>0;Zn--)yr.pop()}(Ye,Pe[At]),Jt.fromCharCode.apply(Jt,Ye)},re=function(Ze){return Ze.split("").map(function(Pe){return("0"+Pe.charCodeAt().toString(16)).slice(-2)}).join("")+">"},Ae=function(Ze){var Pe=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((Ze=Ze.replace(/\s/g,"")).indexOf(">")!==-1&&(Ze=Ze.substr(0,Ze.indexOf(">"))),Ze.length%2&&(Ze+="0"),Pe.test(Ze)===!1)return"";for(var Ve="",Ye=0;Ye<Ze.length;Ye+=2)Ve+=String.fromCharCode("0x"+(Ze[Ye]+Ze[Ye+1]));return Ve},he=function(Ze){for(var Pe=new Uint8Array(Ze.length),Ve=Ze.length;Ve--;)Pe[Ve]=Ze.charCodeAt(Ve);return(Pe=ii(Pe)).reduce(function(Ye,dt){return Ye+String.fromCharCode(dt)},"")};y.processDataByFilters=function(Ze,Pe){var Ve=0,Ye=Ze||"",dt=[];for(typeof(Pe=Pe||[])=="string"&&(Pe=[Pe]),Ve=0;Ve<Pe.length;Ve+=1)switch(Pe[Ve]){case"ASCII85Decode":case"/ASCII85Decode":Ye=E(Ye),dt.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":Ye=z(Ye),dt.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":Ye=Ae(Ye),dt.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":Ye=re(Ye),dt.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":Ye=he(Ye),dt.push("/FlateDecode");break;default:throw new Error('The filter: "'+Pe[Ve]+'" is not implemented')}return{data:Ye,reverseChain:dt.reverse().join(" ")}}}(Da.API),function(y){y.loadFile=function(z,E,re){return function(Ae,he,Ze){he=he!==!1,Ze=typeof Ze=="function"?Ze:function(){};var Pe=void 0;try{Pe=function(Ve,Ye,dt){var Tt=new XMLHttpRequest,Jt=0,At=function(In){var xn=In.length,Nn=[],dn=String.fromCharCode;for(Jt=0;Jt<xn;Jt+=1)Nn.push(dn(255&In.charCodeAt(Jt)));return Nn.join("")};if(Tt.open("GET",Ve,!Ye),Tt.overrideMimeType("text/plain; charset=x-user-defined"),Ye===!1&&(Tt.onload=function(){Tt.status===200?dt(At(this.responseText)):dt(void 0)}),Tt.send(null),Ye&&Tt.status===200)return At(Tt.responseText)}(Ae,he,Ze)}catch(Ve){}return Pe}(z,E,re)},y.loadImageFile=y.loadFile}(Da.API),function(y){function z(){return(ka.html2canvas?Promise.resolve(ka.html2canvas):Promise.resolve().then(ae.t.bind(ae,64270,23))).catch(function(Pe){return Promise.reject(new Error("Could not load html2canvas: "+Pe))}).then(function(Pe){return Pe.default?Pe.default:Pe})}function E(){return(ka.DOMPurify?Promise.resolve(ka.DOMPurify):ae.e(7573).then(ae.bind(ae,7573))).catch(function(Pe){return Promise.reject(new Error("Could not load dompurify: "+Pe))}).then(function(Pe){return Pe.default?Pe.default:Pe})}var re=function(Pe){var Ve=(0,x.Z)(Pe);return Ve==="undefined"?"undefined":Ve==="string"||Pe instanceof String?"string":Ve==="number"||Pe instanceof Number?"number":Ve==="function"||Pe instanceof Function?"function":Pe&&Pe.constructor===Array?"array":Pe&&Pe.nodeType===1?"element":Ve==="object"?"object":"unknown"},Ae=function(Pe,Ve){var Ye=document.createElement(Pe);for(var dt in Ve.className&&(Ye.className=Ve.className),Ve.innerHTML&&Ve.dompurify&&(Ye.innerHTML=Ve.dompurify.sanitize(Ve.innerHTML)),Ve.style)Ye.style[dt]=Ve.style[dt];return Ye},he=function Pe(Ve,Ye){for(var dt=Ve.nodeType===3?document.createTextNode(Ve.nodeValue):Ve.cloneNode(!1),Tt=Ve.firstChild;Tt;Tt=Tt.nextSibling)Ye!==!0&&Tt.nodeType===1&&Tt.nodeName==="SCRIPT"||dt.appendChild(Pe(Tt,Ye));return Ve.nodeType===1&&(Ve.nodeName==="CANVAS"?(dt.width=Ve.width,dt.height=Ve.height,dt.getContext("2d").drawImage(Ve,0,0)):Ve.nodeName!=="TEXTAREA"&&Ve.nodeName!=="SELECT"||(dt.value=Ve.value),dt.addEventListener("load",function(){dt.scrollTop=Ve.scrollTop,dt.scrollLeft=Ve.scrollLeft},!0)),dt},Ze=function Pe(Ve){var Ye=Object.assign(Pe.convert(Promise.resolve()),JSON.parse(JSON.stringify(Pe.template))),dt=Pe.convert(Promise.resolve(),Ye);return(dt=dt.setProgress(1,Pe,1,[Pe])).set(Ve)};(Ze.prototype=Object.create(Promise.prototype)).constructor=Ze,Ze.convert=function(Pe,Ve){return Pe.__proto__=Ve||Ze.prototype,Pe},Ze.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"}},Ze.prototype.from=function(Pe,Ve){return this.then(function(){switch(Ve=Ve||function(Ye){switch(re(Ye)){case"string":return"string";case"element":return Ye.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(Pe),Ve){case"string":return this.then(E).then(function(Ye){return this.set({src:Ae("div",{innerHTML:Pe,dompurify:Ye})})});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.")}})},Ze.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.")}},Ze.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 Pe={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},Ve=he(this.prop.src,this.opt.html2canvas.javascriptEnabled);Ve.tagName==="BODY"&&(Pe.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=Ae("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=Ae("div",{className:"html2pdf__container",style:Pe}),this.prop.container.appendChild(Ve),this.prop.container.firstChild.appendChild(Ae("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"})},Ze.prototype.toCanvas=function(){var Pe=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Pe).then(z).then(function(Ve){var Ye=Object.assign({},this.opt.html2canvas);return delete Ye.onrendered,Ve(this.prop.container,Ye)}).then(function(Ve){(this.opt.html2canvas.onrendered||function(){})(Ve),this.prop.canvas=Ve,document.body.removeChild(this.prop.overlay)})},Ze.prototype.toContext2d=function(){var Pe=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Pe).then(z).then(function(Ve){var Ye=this.opt.jsPDF,dt=this.opt.fontFaces,Tt=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,Jt=Object.assign({async:!0,allowTaint:!0,scale:Tt,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 Jt.onrendered,Ye.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,Ye.context2d.posX=this.opt.x,Ye.context2d.posY=this.opt.y,Ye.context2d.margin=this.opt.margin,Ye.context2d.fontFaces=dt,dt)for(var At=0;At<dt.length;++At){var In=dt[At],xn=In.src.find(function(Nn){return Nn.format==="truetype"});xn&&Ye.addFont(xn.url,In.ref.name,In.ref.style)}return Jt.windowHeight=Jt.windowHeight||0,Jt.windowHeight=Jt.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):Jt.windowHeight,Ye.context2d.save(!0),Ve(this.prop.container,Jt)}).then(function(Ve){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(Ve),this.prop.canvas=Ve,document.body.removeChild(this.prop.overlay)})},Ze.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var Pe=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=Pe})},Ze.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},Ze.prototype.output=function(Pe,Ve,Ye){return(Ye=Ye||"pdf").toLowerCase()==="img"||Ye.toLowerCase()==="image"?this.outputImg(Pe,Ve):this.outputPdf(Pe,Ve)},Ze.prototype.outputPdf=function(Pe,Ve){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(Pe,Ve)})},Ze.prototype.outputImg=function(Pe){return this.thenList([function(){return this.prop.img||this.toImg()}]).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.'}})},Ze.prototype.save=function(Pe){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(Pe?{filename:Pe}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},Ze.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},Ze.prototype.set=function(Pe){if(re(Pe)!=="object")return this;var Ve=Object.keys(Pe||{}).map(function(Ye){if(Ye in Ze.template.prop)return function(){this.prop[Ye]=Pe[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 function(){this.opt[Ye]=Pe[Ye]}}},this);return this.then(function(){return this.thenList(Ve)})},Ze.prototype.get=function(Pe,Ve){return this.then(function(){var Ye=Pe in Ze.template.prop?this.prop[Pe]:this.opt[Pe];return Ve?Ve(Ye):Ye})},Ze.prototype.setMargin=function(Pe){return this.then(function(){switch(re(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)},Ze.prototype.setPageSize=function(Pe){function Ve(Ye,dt){return Math.floor(Ye*dt/72*96)}return this.then(function(){(Pe=Pe||Da.getPageSize(this.opt.jsPDF)).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:Ve(Pe.inner.width,Pe.k),height:Ve(Pe.inner.height,Pe.k)},Pe.inner.ratio=Pe.inner.height/Pe.inner.width),this.prop.pageSize=Pe})},Ze.prototype.setProgress=function(Pe,Ve,Ye,dt){return Pe!=null&&(this.progress.val=Pe),Ve!=null&&(this.progress.state=Ve),Ye!=null&&(this.progress.n=Ye),dt!=null&&(this.progress.stack=dt),this.progress.ratio=this.progress.val/this.progress.state,this},Ze.prototype.updateProgress=function(Pe,Ve,Ye,dt){return this.setProgress(Pe?this.progress.val+Pe:null,Ve||null,Ye?this.progress.n+Ye:null,dt?this.progress.stack.concat(dt):null)},Ze.prototype.then=function(Pe,Ve){var Ye=this;return this.thenCore(Pe,Ve,function(dt,Tt){return Ye.updateProgress(null,null,1,[dt]),Promise.prototype.then.call(this,function(Jt){return Ye.updateProgress(null,dt),Jt}).then(dt,Tt).then(function(Jt){return Ye.updateProgress(1),Jt})})},Ze.prototype.thenCore=function(Pe,Ve,Ye){Ye=Ye||Promise.prototype.then;var dt=this;Pe&&(Pe=Pe.bind(dt)),Ve&&(Ve=Ve.bind(dt));var Tt=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?dt:Ze.convert(Object.assign({},dt),Promise.prototype),Jt=Ye.call(Tt,Pe,Ve);return Ze.convert(Jt,dt.__proto__)},Ze.prototype.thenExternal=function(Pe,Ve){return Promise.prototype.then.call(this,Pe,Ve)},Ze.prototype.thenList=function(Pe){var Ve=this;return Pe.forEach(function(Ye){Ve=Ve.thenCore(Ye)}),Ve},Ze.prototype.catch=function(Pe){Pe&&(Pe=Pe.bind(this));var Ve=Promise.prototype.catch.call(this,Pe);return Ze.convert(Ve,this)},Ze.prototype.catchExternal=function(Pe){return Promise.prototype.catch.call(this,Pe)},Ze.prototype.error=function(Pe){return this.then(function(){throw new Error(Pe)})},Ze.prototype.using=Ze.prototype.set,Ze.prototype.saveAs=Ze.prototype.save,Ze.prototype.export=Ze.prototype.output,Ze.prototype.run=Ze.prototype.then,Da.getPageSize=function(Pe,Ve,Ye){if((0,x.Z)(Pe)==="object"){var dt=Pe;Pe=dt.orientation,Ve=dt.unit||Ve,Ye=dt.format||Ye}Ve=Ve||"mm",Ye=Ye||"a4",Pe=(""+(Pe||"P")).toLowerCase();var Tt,Jt=(""+Ye).toLowerCase(),At={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(Ve){case"pt":Tt=1;break;case"mm":Tt=72/25.4;break;case"cm":Tt=72/2.54;break;case"in":Tt=72;break;case"px":Tt=.75;break;case"pc":case"em":Tt=12;break;case"ex":Tt=6;break;default:throw"Invalid unit: "+Ve}var In,xn=0,Nn=0;if(At.hasOwnProperty(Jt))xn=At[Jt][1]/Tt,Nn=At[Jt][0]/Tt;else try{xn=Ye[1],Nn=Ye[0]}catch(dn){throw new Error("Invalid format: "+Ye)}if(Pe==="p"||Pe==="portrait")Pe="p",Nn>xn&&(In=Nn,Nn=xn,xn=In);else{if(Pe!=="l"&&Pe!=="landscape")throw"Invalid orientation: "+Pe;Pe="l",xn>Nn&&(In=Nn,Nn=xn,xn=In)}return{width:Nn,height:xn,unit:Ve,k:Tt,orientation:Pe}},y.html=function(Pe,Ve){(Ve=Ve||{}).callback=Ve.callback||function(){},Ve.html2canvas=Ve.html2canvas||{},Ve.html2canvas.canvas=Ve.html2canvas.canvas||this.canvas,Ve.jsPDF=Ve.jsPDF||this,Ve.fontFaces=Ve.fontFaces?Ve.fontFaces.map(Jc):null;var Ye=new Ze(Ve);return Ve.worker?Ye:Ye.from(Pe).doCallback()}}(Da.API),Da.API.addJS=function(y){return L0=y,this.internal.events.subscribe("postPutResources",function(){Hf=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Hf+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),I0=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+L0+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Hf!==void 0&&I0!==void 0&&this.internal.out("/Names <</JavaScript "+Hf+" 0 R>>")}),this},function(y){var z;y.events.push(["postPutResources",function(){var E=this,re=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var Ae=E.outline.render().split(/\r\n/),he=0;he<Ae.length;he++){var Ze=Ae[he],Pe=re.exec(Ze);if(Pe!=null){var Ve=Pe[1];E.internal.newObjectDeferredBegin(Ve,!1)}E.internal.write(Ze)}if(this.outline.createNamedDestinations){var Ye=this.internal.pages.length,dt=[];for(he=0;he<Ye;he++){var Tt=E.internal.newObject();dt.push(Tt);var Jt=E.internal.getPageInfo(he+1);E.internal.write("<< /D["+Jt.objId+" 0 R /XYZ null null null]>> endobj")}var At=E.internal.newObject();for(E.internal.write("<< /Names [ "),he=0;he<dt.length;he++)E.internal.write("(page_"+(he+1)+")"+dt[he]+" 0 R");E.internal.write(" ] >>","endobj"),z=E.internal.newObject(),E.internal.write("<< /Dests "+At+" 0 R"),E.internal.write(">>","endobj")}}]),y.events.push(["putCatalog",function(){var E=this;E.outline.root.children.length>0&&(E.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&E.internal.write("/Names "+z+" 0 R"))}]),y.events.push(["initialized",function(){var E=this;E.outline={createNamedDestinations:!1,root:{children:[]}},E.outline.add=function(re,Ae,he){var Ze={title:Ae,options:he,children:[]};return re==null&&(re=this.root),re.children.push(Ze),Ze},E.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=E,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},E.outline.genIds_r=function(re){re.id=E.internal.newObjectDeferred();for(var Ae=0;Ae<re.children.length;Ae++)this.genIds_r(re.children[Ae])},E.outline.renderRoot=function(re){this.objStart(re),this.line("/Type /Outlines"),re.children.length>0&&(this.line("/First "+this.makeRef(re.children[0])),this.line("/Last "+this.makeRef(re.children[re.children.length-1]))),this.line("/Count "+this.count_r({count:0},re)),this.objEnd()},E.outline.renderItems=function(re){for(var Ae=this.ctx.pdf.internal.getVerticalCoordinateString,he=0;he<re.children.length;he++){var Ze=re.children[he];this.objStart(Ze),this.line("/Title "+this.makeString(Ze.title)),this.line("/Parent "+this.makeRef(re)),he>0&&this.line("/Prev "+this.makeRef(re.children[he-1])),he<re.children.length-1&&this.line("/Next "+this.makeRef(re.children[he+1])),Ze.children.length>0&&(this.line("/First "+this.makeRef(Ze.children[0])),this.line("/Last "+this.makeRef(Ze.children[Ze.children.length-1])));var Pe=this.count=this.count_r({count:0},Ze);if(Pe>0&&this.line("/Count "+Pe),Ze.options&&Ze.options.pageNumber){var Ve=E.internal.getPageInfo(Ze.options.pageNumber);this.line("/Dest ["+Ve.objId+" 0 R /XYZ 0 "+Ae(0)+" 0]")}this.objEnd()}for(var Ye=0;Ye<re.children.length;Ye++)this.renderItems(re.children[Ye])},E.outline.line=function(re){this.ctx.val+=re+`\r
`},E.outline.makeRef=function(re){return re.id+" 0 R"},E.outline.makeString=function(re){return"("+E.internal.pdfEscape(re)+")"},E.outline.objStart=function(re){this.ctx.val+=`\r
`+re.id+` 0 obj\r
<<\r
`},E.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},E.outline.count_r=function(re,Ae){for(var he=0;he<Ae.children.length;he++)re.count++,this.count_r(re,Ae.children[he]);return re.count}}])}(Da.API),function(y){var z=[192,193,194,195,196,197,198,199];y.processJPEG=function(E,re,Ae,he,Ze,Pe){var Ve,Ye=this.decode.DCT_DECODE,dt=null;if(typeof E=="string"||this.__addimage__.isArrayBuffer(E)||this.__addimage__.isArrayBufferView(E)){switch(E=Ze||E,E=this.__addimage__.isArrayBuffer(E)?new Uint8Array(E):E,Ve=function(Tt){for(var Jt,At=256*Tt.charCodeAt(4)+Tt.charCodeAt(5),In=Tt.length,xn={width:0,height:0,numcomponents:1},Nn=4;Nn<In;Nn+=2){if(Nn+=At,z.indexOf(Tt.charCodeAt(Nn+1))!==-1){Jt=256*Tt.charCodeAt(Nn+5)+Tt.charCodeAt(Nn+6),xn={width:256*Tt.charCodeAt(Nn+7)+Tt.charCodeAt(Nn+8),height:Jt,numcomponents:Tt.charCodeAt(Nn+9)};break}At=256*Tt.charCodeAt(Nn+2)+Tt.charCodeAt(Nn+3)}return xn}(E=this.__addimage__.isArrayBufferView(E)?this.__addimage__.arrayBufferToBinaryString(E):E),Ve.numcomponents){case 1:Pe=this.color_spaces.DEVICE_GRAY;break;case 4:Pe=this.color_spaces.DEVICE_CMYK;break;case 3:Pe=this.color_spaces.DEVICE_RGB}dt={data:E,width:Ve.width,height:Ve.height,colorSpace:Pe,bitsPerComponent:8,filter:Ye,index:re,alias:Ae}}return dt}}(Da.API),Da.API.processPNG=function(y,z,E,re){if(this.__addimage__.isArrayBuffer(y)&&(y=new Uint8Array(y)),this.__addimage__.isArrayBufferView(y)){var Ae,he=ic(y,{checkCrc:!0}),Ze=he.width,Pe=he.height,Ve=he.channels,Ye=he.palette,dt=he.depth;Ae=Ye&&Ve===1?function(Ir){for(var Gn=Ir.width,Gr=Ir.height,An=Ir.data,Pn=Ir.palette,pr=Ir.depth,cr=!1,vi=[],Fi=[],Oi=void 0,Ai=!1,_i=0,Po=0;Po<Pn.length;Po++){var ro=(0,Si.Z)(Pn[Po],4),on=ro[0],zn=ro[1],ir=ro[2],br=ro[3];vi.push(on,zn,ir),br!=null&&(br===0?(_i++,Fi.length<1&&Fi.push(Po)):br<255&&(Ai=!0))}if(Ai||_i>1){cr=!0,Fi=void 0;var Tr=Gn*Gr;Oi=new Uint8Array(Tr);for(var ei=new DataView(An.buffer),Li=0;Li<Tr;Li++){var Pi=Wm(ei,Li,pr),Xi=(0,Si.Z)(Pn[Pi],4)[3];Oi[Li]=Xi}}else _i===0&&(Fi=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:cr?8:void 0,colorBytes:An,alphaBytes:Oi,needSMask:cr,palette:vi,mask:Fi}}(he):Ve===2||Ve===4?function(Ir){for(var Gn=Ir.data,Gr=Ir.width,An=Ir.height,Pn=Ir.channels,pr=Ir.depth,cr=Pn===2?"DeviceGray":"DeviceRGB",vi=Pn-1,Fi=Gr*An,Oi=vi,Ai=Fi*Oi,_i=1*Fi,Po=Math.ceil(Ai*pr/8),ro=Math.ceil(_i*pr/8),on=new Uint8Array(Po),zn=new Uint8Array(ro),ir=new DataView(Gn.buffer),br=new DataView(on.buffer),Tr=new DataView(zn.buffer),ei=!1,Li=0;Li<Fi;Li++){for(var Pi=Li*Pn,Xi=0;Xi<Oi;Xi++)U0(br,Wm(ir,Pi+Xi,pr),Li*Oi+Xi,pr);var xo=Wm(ir,Pi+Oi,pr);xo<(1<<pr)-1&&(ei=!0),U0(Tr,xo,1*Li,pr)}return{colorSpace:cr,colorsPerPixel:vi,sMaskBitsPerComponent:ei?pr:void 0,colorBytes:on,alphaBytes:zn,needSMask:ei}}(he):function(Ir){var Gn=Ir.data,Gr=Ir.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:Gr,colorsPerPixel:Gr==="DeviceGray"?1:3,colorBytes:Gn instanceof Uint16Array?function(An){for(var Pn=An.length,pr=new Uint8Array(2*Pn),cr=new DataView(pr.buffer,pr.byteOffset,pr.byteLength),vi=0;vi<Pn;vi++)cr.setUint16(2*vi,An[vi],!1);return pr}(Gn):Gn,needSMask:!1}}(he);var Tt,Jt,At,In=Ae,xn=In.colorSpace,Nn=In.colorsPerPixel,dn=In.sMaskBitsPerComponent,yr=In.colorBytes,lr=In.alphaBytes,Zn=In.needSMask,fi=In.palette,zi=In.mask,Ii=null;return re!==Da.API.image_compression.NONE&&typeof ii=="function"?(Ii=function(Ir){var Gn;switch(Ir){case Da.API.image_compression.FAST:Gn=11;break;case Da.API.image_compression.MEDIUM:Gn=13;break;case Da.API.image_compression.SLOW:Gn=14;break;default:Gn=12}return Gn}(re),Tt=this.decode.FLATE_DECODE,Jt="/Predictor ".concat(Ii," /Colors ").concat(Nn," /BitsPerComponent ").concat(dt," /Columns ").concat(Ze),y=P0(yr,Math.ceil(Ze*Nn*dt/8),Nn,dt,re),Zn&&(At=P0(lr,Math.ceil(Ze*dn/8),1,dn,re))):(Tt=void 0,Jt=void 0,y=yr,Zn&&(At=lr)),(this.__addimage__.isArrayBuffer(y)||this.__addimage__.isArrayBufferView(y))&&(y=this.__addimage__.arrayBufferToBinaryString(y)),(At&&this.__addimage__.isArrayBuffer(At)||this.__addimage__.isArrayBufferView(At))&&(At=this.__addimage__.arrayBufferToBinaryString(At)),{alias:E,data:y,index:z,filter:Tt,decodeParameters:Jt,transparency:zi,palette:fi,sMask:At,predictor:Ii,width:Ze,height:Pe,bitsPerComponent:dt,sMaskBitsPerComponent:dn,colorSpace:xn}}},function(y){y.processGIF89A=function(z,E,re,Ae){var he=new kv(z),Ze=he.width,Pe=he.height,Ve=[];he.decodeAndBlitFrameRGBA(0,Ve);var Ye={data:Ve,width:Ze,height:Pe},dt=new $m(100).encode(Ye,100);return y.processJPEG.call(this,dt,E,re,Ae)},y.processGIF87A=y.processGIF89A}(Da.API),Af.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 y=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(y);for(var z=0;z<y;z++){var E=this.datav.getUint8(this.pos++,!0),re=this.datav.getUint8(this.pos++,!0),Ae=this.datav.getUint8(this.pos++,!0),he=this.datav.getUint8(this.pos++,!0);this.palette[z]={red:Ae,green:re,blue:E,quad:he}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Af.prototype.parseBGR=function(){this.pos=this.offset;try{var y="bit"+this.bitPP,z=this.width*this.height*4;this.data=new Uint8Array(z),this[y]()}catch(E){dl.log("bit decode error:"+E)}},Af.prototype.bit1=function(){var y,z=Math.ceil(this.width/8),E=z%4;for(y=this.height-1;y>=0;y--){for(var re=this.bottom_up?y:this.height-1-y,Ae=0;Ae<z;Ae++)for(var he=this.datav.getUint8(this.pos++,!0),Ze=re*this.width*4+8*Ae*4,Pe=0;Pe<8&&8*Ae+Pe<this.width;Pe++){var Ve=this.palette[he>>7-Pe&1];this.data[Ze+4*Pe]=Ve.blue,this.data[Ze+4*Pe+1]=Ve.green,this.data[Ze+4*Pe+2]=Ve.red,this.data[Ze+4*Pe+3]=255}E!==0&&(this.pos+=4-E)}},Af.prototype.bit4=function(){for(var y=Math.ceil(this.width/2),z=y%4,E=this.height-1;E>=0;E--){for(var re=this.bottom_up?E:this.height-1-E,Ae=0;Ae<y;Ae++){var he=this.datav.getUint8(this.pos++,!0),Ze=re*this.width*4+2*Ae*4,Pe=he>>4,Ve=15&he,Ye=this.palette[Pe];if(this.data[Ze]=Ye.blue,this.data[Ze+1]=Ye.green,this.data[Ze+2]=Ye.red,this.data[Ze+3]=255,2*Ae+1>=this.width)break;Ye=this.palette[Ve],this.data[Ze+4]=Ye.blue,this.data[Ze+4+1]=Ye.green,this.data[Ze+4+2]=Ye.red,this.data[Ze+4+3]=255}z!==0&&(this.pos+=4-z)}},Af.prototype.bit8=function(){for(var y=this.width%4,z=this.height-1;z>=0;z--){for(var E=this.bottom_up?z:this.height-1-z,re=0;re<this.width;re++){var Ae=this.datav.getUint8(this.pos++,!0),he=E*this.width*4+4*re;if(Ae<this.palette.length){var Ze=this.palette[Ae];this.data[he]=Ze.red,this.data[he+1]=Ze.green,this.data[he+2]=Ze.blue,this.data[he+3]=255}else this.data[he]=255,this.data[he+1]=255,this.data[he+2]=255,this.data[he+3]=255}y!==0&&(this.pos+=4-y)}},Af.prototype.bit15=function(){for(var y=this.width%3,z=parseInt("11111",2),E=this.height-1;E>=0;E--){for(var re=this.bottom_up?E:this.height-1-E,Ae=0;Ae<this.width;Ae++){var he=this.datav.getUint16(this.pos,!0);this.pos+=2;var Ze=(he&z)/z*255|0,Pe=(he>>5&z)/z*255|0,Ve=(he>>10&z)/z*255|0,Ye=he>>15?255:0,dt=re*this.width*4+4*Ae;this.data[dt]=Ve,this.data[dt+1]=Pe,this.data[dt+2]=Ze,this.data[dt+3]=Ye}this.pos+=y}},Af.prototype.bit16=function(){for(var y=this.width%3,z=parseInt("11111",2),E=parseInt("111111",2),re=this.height-1;re>=0;re--){for(var Ae=this.bottom_up?re:this.height-1-re,he=0;he<this.width;he++){var Ze=this.datav.getUint16(this.pos,!0);this.pos+=2;var Pe=(Ze&z)/z*255|0,Ve=(Ze>>5&E)/E*255|0,Ye=(Ze>>11)/z*255|0,dt=Ae*this.width*4+4*he;this.data[dt]=Ye,this.data[dt+1]=Ve,this.data[dt+2]=Pe,this.data[dt+3]=255}this.pos+=y}},Af.prototype.bit24=function(){for(var y=this.height-1;y>=0;y--){for(var z=this.bottom_up?y:this.height-1-y,E=0;E<this.width;E++){var re=this.datav.getUint8(this.pos++,!0),Ae=this.datav.getUint8(this.pos++,!0),he=this.datav.getUint8(this.pos++,!0),Ze=z*this.width*4+4*E;this.data[Ze]=he,this.data[Ze+1]=Ae,this.data[Ze+2]=re,this.data[Ze+3]=255}this.pos+=this.width%4}},Af.prototype.bit32=function(){for(var y=this.height-1;y>=0;y--)for(var z=this.bottom_up?y:this.height-1-y,E=0;E<this.width;E++){var re=this.datav.getUint8(this.pos++,!0),Ae=this.datav.getUint8(this.pos++,!0),he=this.datav.getUint8(this.pos++,!0),Ze=this.datav.getUint8(this.pos++,!0),Pe=z*this.width*4+4*E;this.data[Pe]=he,this.data[Pe+1]=Ae,this.data[Pe+2]=re,this.data[Pe+3]=Ze}},Af.prototype.getData=function(){return this.data},function(y){y.processBMP=function(z,E,re,Ae){var he=new Af(z,!1),Ze=he.width,Pe=he.height,Ve={data:he.getData(),width:Ze,height:Pe},Ye=new $m(100).encode(Ve,100);return y.processJPEG.call(this,Ye,E,re,Ae)}}(Da.API),H0.prototype.getData=function(){return this.data},function(y){y.processWEBP=function(z,E,re,Ae){var he=new H0(z),Ze=he.width,Pe=he.height,Ve={data:he.getData(),width:Ze,height:Pe},Ye=new $m(100).encode(Ve,100);return y.processJPEG.call(this,Ye,E,re,Ae)}}(Da.API),Da.API.processRGBA=function(y,z,E){for(var re=y.data,Ae=re.length,he=new Uint8Array(Ae/4*3),Ze=new Uint8Array(Ae/4),Pe=0,Ve=0,Ye=0;Ye<Ae;Ye+=4){var dt=re[Ye],Tt=re[Ye+1],Jt=re[Ye+2],At=re[Ye+3];he[Pe++]=dt,he[Pe++]=Tt,he[Pe++]=Jt,Ze[Ve++]=At}var In=this.__addimage__.arrayBufferToBinaryString(he);return{alpha:this.__addimage__.arrayBufferToBinaryString(Ze),data:In,index:z,alias:E,colorSpace:"DeviceRGB",bitsPerComponent:8,width:y.width,height:y.height}},Da.API.setLanguage=function(y){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"}[y]!==void 0&&(this.internal.languageSettings.languageCode=y,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},ng=Da.API,rm=ng.getCharWidthsArray=function(y,z){var E,re,Ae=(z=z||{}).font||this.internal.getFont(),he=z.fontSize||this.internal.getFontSize(),Ze=z.charSpace||this.internal.getCharSpace(),Pe=z.widths?z.widths:Ae.metadata.Unicode.widths,Ve=Pe.fof?Pe.fof:1,Ye=z.kerning?z.kerning:Ae.metadata.Unicode.kerning,dt=Ye.fof?Ye.fof:1,Tt=z.doKerning!==!1,Jt=0,At=y.length,In=0,xn=Pe[0]||Ve,Nn=[];for(E=0;E<At;E++)re=y.charCodeAt(E),typeof Ae.metadata.widthOfString=="function"?Nn.push((Ae.metadata.widthOfGlyph(Ae.metadata.characterToGlyph(re))+Ze*(1e3/he)||0)/1e3):(Jt=Tt&&(0,x.Z)(Ye[re])==="object"&&!isNaN(parseInt(Ye[re][In],10))?Ye[re][In]/dt:0,Nn.push((Pe[re]||xn)/Ve+Jt)),In=re;return Nn},D0=ng.getStringUnitWidth=function(y,z){var E=(z=z||{}).fontSize||this.internal.getFontSize(),re=z.font||this.internal.getFont(),Ae=z.charSpace||this.internal.getCharSpace();return ng.processArabic&&(y=ng.processArabic(y)),typeof re.metadata.widthOfString=="function"?re.metadata.widthOfString(y,E,Ae)/E:rm.apply(this,arguments).reduce(function(he,Ze){return he+Ze},0)},N0=function(y,z,E,re){for(var Ae=[],he=0,Ze=y.length,Pe=0;he!==Ze&&Pe+z[he]<E;)Pe+=z[he],he++;Ae.push(y.slice(0,he));var Ve=he;for(Pe=0;he!==Ze;)Pe+z[he]>re&&(Ae.push(y.slice(Ve,he)),Pe=0,Ve=he),Pe+=z[he],he++;return Ve!==he&&Ae.push(y.slice(Ve,he)),Ae},O0=function(y,z,E){E||(E={});var re,Ae,he,Ze,Pe,Ve,Ye,dt=[],Tt=[dt],Jt=E.textIndent||0,At=0,In=0,xn=y.split(" "),Nn=rm.apply(this,[" ",E])[0];if(Ve=E.lineIndent===-1?xn[0].length+2:E.lineIndent||0){var dn=Array(Ve).join(" "),yr=[];xn.map(function(Zn){(Zn=Zn.split(/\s*\n/)).length>1?yr=yr.concat(Zn.map(function(fi,zi){return(zi&&fi.length?`
`:"")+fi})):yr.push(Zn[0])}),xn=yr,Ve=D0.apply(this,[dn,E])}for(he=0,Ze=xn.length;he<Ze;he++){var lr=0;if(re=xn[he],Ve&&re[0]==`
`&&(re=re.substr(1),lr=1),Jt+At+(In=(Ae=rm.apply(this,[re,E])).reduce(function(Zn,fi){return Zn+fi},0))>z||lr){if(In>z){for(Pe=N0.apply(this,[re,Ae,z-(Jt+At),z]),dt.push(Pe.shift()),dt=[Pe.pop()];Pe.length;)Tt.push([Pe.shift()]);In=Ae.slice(re.length-(dt[0]?dt[0].length:0)).reduce(function(Zn,fi){return Zn+fi},0)}else dt=[re];Tt.push(dt),Jt=In+Ve,At=Nn}else dt.push(re),Jt+=At+In,At=Nn}return Ye=Ve?function(Zn,fi){return(fi?dn:"")+Zn.join(" ")}:function(Zn){return Zn.join(" ")},Tt.map(Ye)},ng.splitTextToSize=function(y,z,E){var re,Ae=(E=E||{}).fontSize||this.internal.getFontSize(),he=function(dt){if(dt.widths&&dt.kerning)return{widths:dt.widths,kerning:dt.kerning};var Tt=this.internal.getFont(dt.fontName,dt.fontStyle),Jt="Unicode";return Tt.metadata[Jt]?{widths:Tt.metadata[Jt].widths||{0:1},kerning:Tt.metadata[Jt].kerning||{}}:{font:Tt.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,E);re=Array.isArray(y)?y:String(y).split(/\r?\n/);var Ze=1*this.internal.scaleFactor*z/Ae;he.textIndent=E.textIndent?1*E.textIndent*this.internal.scaleFactor/Ae:0,he.lineIndent=E.lineIndent;var Pe,Ve,Ye=[];for(Pe=0,Ve=re.length;Pe<Ve;Pe++)Ye=Ye.concat(O0.apply(this,[re[Pe],Ze,he]));return Ye},function(y){y.__fontmetrics__=y.__fontmetrics__||{};for(var z="0123456789abcdef",E="klmnopqrstuvwxyz",re={},Ae={},he=0;he<16;he++)re[E[he]]=z[he],Ae[z[he]]=E[he];var Ze=function(Jt){return"0x"+parseInt(Jt,10).toString(16)},Pe=y.__fontmetrics__.compress=function(Jt){var At,In,xn,Nn,dn=["{"];for(var yr in Jt){if(At=Jt[yr],isNaN(parseInt(yr,10))?In="'"+yr+"'":(yr=parseInt(yr,10),In=(In=Ze(yr).slice(2)).slice(0,-1)+Ae[In.slice(-1)]),typeof At=="number")At<0?(xn=Ze(At).slice(3),Nn="-"):(xn=Ze(At).slice(2),Nn=""),xn=Nn+xn.slice(0,-1)+Ae[xn.slice(-1)];else{if((0,x.Z)(At)!=="object")throw new Error("Don't know what to do with value type "+(0,x.Z)(At)+".");xn=Pe(At)}dn.push(In+xn)}return dn.push("}"),dn.join("")},Ve=y.__fontmetrics__.uncompress=function(Jt){if(typeof Jt!="string")throw new Error("Invalid argument passed to uncompress.");for(var At,In,xn,Nn,dn={},yr=1,lr=dn,Zn=[],fi="",zi="",Ii=Jt.length-1,Ir=1;Ir<Ii;Ir+=1)(Nn=Jt[Ir])=="'"?At?(xn=At.join(""),At=void 0):At=[]:At?At.push(Nn):Nn=="{"?(Zn.push([lr,xn]),lr={},xn=void 0):Nn=="}"?((In=Zn.pop())[0][In[1]]=lr,xn=void 0,lr=In[0]):Nn=="-"?yr=-1:xn===void 0?re.hasOwnProperty(Nn)?(fi+=re[Nn],xn=parseInt(fi,16)*yr,yr=1,fi=""):fi+=Nn:re.hasOwnProperty(Nn)?(zi+=re[Nn],lr[xn]=parseInt(zi,16)*yr,yr=1,xn=void 0,zi=""):zi+=Nn;return dn},Ye={codePages:["WinAnsiEncoding"],WinAnsiEncoding:Ve("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},dt={Unicode:{Courier:Ye,"Courier-Bold":Ye,"Courier-BoldOblique":Ye,"Courier-Oblique":Ye,Helvetica:Ye,"Helvetica-Bold":Ye,"Helvetica-BoldOblique":Ye,"Helvetica-Oblique":Ye,"Times-Roman":Ye,"Times-Bold":Ye,"Times-BoldItalic":Ye,"Times-Italic":Ye}},Tt={Unicode:{"Courier-Oblique":Ve("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":Ve("{'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":Ve("{'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:Ve("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":Ve("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":Ve("{'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:Ve("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:Ve("{'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":Ve("{'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:Ve("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":Ve("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":Ve("{'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":Ve("{'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":Ve("{'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}}}")}};y.events.push(["addFont",function(Jt){var At=Jt.font,In=Tt.Unicode[At.postScriptName];In&&(At.metadata.Unicode={},At.metadata.Unicode.widths=In.widths,At.metadata.Unicode.kerning=In.kerning);var xn=dt.Unicode[At.postScriptName];xn&&(At.metadata.Unicode.encoding=xn,At.encoding=xn.codePages[0])}])}(Da.API),function(y){var z=function(E){for(var re=E.length,Ae=new Uint8Array(re),he=0;he<re;he++)Ae[he]=E.charCodeAt(he);return Ae};y.API.events.push(["addFont",function(E){var re=void 0,Ae=E.font,he=E.instance;if(!Ae.isStandardFont){if(he===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+Ae.postScriptName+"').");if(typeof(re=he.existsFileInVFS(Ae.postScriptName)===!1?he.loadFile(Ae.postScriptName):he.getFileFromVFS(Ae.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+Ae.postScriptName+"').");(function(Ze,Pe){Pe=/^\x00\x01\x00\x00/.test(Pe)?z(Pe):z(bp(Pe)),Ze.metadata=y.API.TTFFont.open(Pe),Ze.metadata.Unicode=Ze.metadata.Unicode||{encoding:{},kerning:{},widths:[]},Ze.metadata.glyIdsUsed=[0]})(Ae,re)}}])}(Da),Da.API.addSvgAsImage=function(y,z,E,re,Ae,he,Ze,Pe){if(isNaN(z)||isNaN(E))throw dl.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(re)||isNaN(Ae))throw dl.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var Ve=document.createElement("canvas");Ve.width=re,Ve.height=Ae;var Ye=Ve.getContext("2d");Ye.fillStyle="#fff",Ye.fillRect(0,0,Ve.width,Ve.height);var dt={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Tt=this;return(ka.canvg?Promise.resolve(ka.canvg):ae.e(3754).then(ae.bind(ae,63754))).catch(function(Jt){return Promise.reject(new Error("Could not load canvg: "+Jt))}).then(function(Jt){return Jt.default?Jt.default:Jt}).then(function(Jt){return Jt.fromString(Ye,y,dt)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(Jt){return Jt.render(dt)}).then(function(){Tt.addImage(Ve.toDataURL("image/jpeg",1),z,E,re,Ae,Ze,Pe)})},Da.API.putTotalPages=function(y){var z,E=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(z=new RegExp(y,"g"),E=this.internal.getNumberOfPages()):(z=new RegExp(this.pdfEscape16(y,this.internal.getFont()),"g"),E=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var re=1;re<=this.internal.getNumberOfPages();re++)for(var Ae=0;Ae<this.internal.pages[re].length;Ae++)this.internal.pages[re][Ae]=this.internal.pages[re][Ae].replace(z,E);return this},Da.API.viewerPreferences=function(y,z){var E;y=y||{},z=z||!1;var re,Ae,he,Ze={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}},Pe=Object.keys(Ze),Ve=[],Ye=0,dt=0,Tt=0;function Jt(In,xn){var Nn,dn=!1;for(Nn=0;Nn<In.length;Nn+=1)In[Nn]===xn&&(dn=!0);return dn}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(Ze)),this.internal.viewerpreferences.isSubscribed=!1),E=this.internal.viewerpreferences.configuration,y==="reset"||z===!0){var At=Pe.length;for(Tt=0;Tt<At;Tt+=1)E[Pe[Tt]].value=E[Pe[Tt]].defaultValue,E[Pe[Tt]].explicitSet=!1}if((0,x.Z)(y)==="object"){for(Ae in y)if(he=y[Ae],Jt(Pe,Ae)&&he!==void 0){if(E[Ae].type==="boolean"&&typeof he=="boolean")E[Ae].value=he;else if(E[Ae].type==="name"&&Jt(E[Ae].valueSet,he))E[Ae].value=he;else if(E[Ae].type==="integer"&&Number.isInteger(he))E[Ae].value=he;else if(E[Ae].type==="array"){for(Ye=0;Ye<he.length;Ye+=1)if(re=!0,he[Ye].length===1&&typeof he[Ye][0]=="number")Ve.push(String(he[Ye]-1));else if(he[Ye].length>1){for(dt=0;dt<he[Ye].length;dt+=1)typeof he[Ye][dt]!="number"&&(re=!1);re===!0&&Ve.push([he[Ye][0]-1,he[Ye][1]-1].join(" "))}E[Ae].value="["+Ve.join(" ")+"]"}else E[Ae].value=E[Ae].defaultValue;E[Ae].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var In,xn=[];for(In in E)E[In].explicitSet===!0&&(E[In].type==="name"?xn.push("/"+In+" /"+E[In].value):xn.push("/"+In+" "+E[In].value));xn.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+xn.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=E,this},function(y){var z=function(){var re='<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>',Ae=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),he=unescape(encodeURIComponent(re)),Ze=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),Pe=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),Ve=unescape(encodeURIComponent("</x:xmpmeta>")),Ye=he.length+Ze.length+Pe.length+Ae.length+Ve.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Ye+" >>"),this.internal.write("stream"),this.internal.write(Ae+he+Ze+Pe+Ve),this.internal.write("endstream"),this.internal.write("endobj")},E=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};y.addMetadata=function(re,Ae){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:re,namespaceuri:Ae||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",E),this.internal.events.subscribe("postPutResources",z)),this}}(Da.API),function(y){var z=y.API,E=z.pdfEscape16=function(he,Ze){for(var Pe,Ve=Ze.metadata.Unicode.widths,Ye=["","0","00","000","0000"],dt=[""],Tt=0,Jt=he.length;Tt<Jt;++Tt){if(Pe=Ze.metadata.characterToGlyph(he.charCodeAt(Tt)),Ze.metadata.glyIdsUsed.push(Pe),Ze.metadata.toUnicode[Pe]=he.charCodeAt(Tt),Ve.indexOf(Pe)==-1&&(Ve.push(Pe),Ve.push([parseInt(Ze.metadata.widthOfGlyph(Pe),10)])),Pe=="0")return dt.join("");Pe=Pe.toString(16),dt.push(Ye[4-Pe.length],Pe)}return dt.join("")},re=function(he){var Ze,Pe,Ve,Ye,dt,Tt,Jt;for(dt=`/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`,Ve=[],Tt=0,Jt=(Pe=Object.keys(he).sort(function(At,In){return At-In})).length;Tt<Jt;Tt++)Ze=Pe[Tt],Ve.length>=100&&(dt+=`
`+Ve.length+` beginbfchar
`+Ve.join(`
`)+`
endbfchar`,Ve=[]),he[Ze]!==void 0&&he[Ze]!==null&&typeof he[Ze].toString=="function"&&(Ye=("0000"+he[Ze].toString(16)).slice(-4),Ze=("0000"+(+Ze).toString(16)).slice(-4),Ve.push("<"+Ze+"><"+Ye+">"));return Ve.length&&(dt+=`
`+Ve.length+` beginbfchar
`+Ve.join(`
`)+`
endbfchar
`),dt+`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};z.events.push(["putFont",function(he){(function(Ze){var Pe=Ze.font,Ve=Ze.out,Ye=Ze.newObject,dt=Ze.putStream;if(Pe.metadata instanceof y.API.TTFFont&&Pe.encoding==="Identity-H"){for(var Tt=Pe.metadata.Unicode.widths,Jt=Pe.metadata.subset.encode(Pe.metadata.glyIdsUsed,1),At="",In=0;In<Jt.length;In++)At+=String.fromCharCode(Jt[In]);var xn=Ye();dt({data:At,addLength1:!0,objectId:xn}),Ve("endobj");var Nn=Ye();dt({data:re(Pe.metadata.toUnicode),addLength1:!0,objectId:Nn}),Ve("endobj");var dn=Ye();Ve("<<"),Ve("/Type /FontDescriptor"),Ve("/FontName /"+gd(Pe.fontName)),Ve("/FontFile2 "+xn+" 0 R"),Ve("/FontBBox "+y.API.PDFObject.convert(Pe.metadata.bbox)),Ve("/Flags "+Pe.metadata.flags),Ve("/StemV "+Pe.metadata.stemV),Ve("/ItalicAngle "+Pe.metadata.italicAngle),Ve("/Ascent "+Pe.metadata.ascender),Ve("/Descent "+Pe.metadata.decender),Ve("/CapHeight "+Pe.metadata.capHeight),Ve(">>"),Ve("endobj");var yr=Ye();Ve("<<"),Ve("/Type /Font"),Ve("/BaseFont /"+gd(Pe.fontName)),Ve("/FontDescriptor "+dn+" 0 R"),Ve("/W "+y.API.PDFObject.convert(Tt)),Ve("/CIDToGIDMap /Identity"),Ve("/DW 1000"),Ve("/Subtype /CIDFontType2"),Ve("/CIDSystemInfo"),Ve("<<"),Ve("/Supplement 0"),Ve("/Registry (Adobe)"),Ve("/Ordering ("+Pe.encoding+")"),Ve(">>"),Ve(">>"),Ve("endobj"),Pe.objectNumber=Ye(),Ve("<<"),Ve("/Type /Font"),Ve("/Subtype /Type0"),Ve("/ToUnicode "+Nn+" 0 R"),Ve("/BaseFont /"+gd(Pe.fontName)),Ve("/Encoding /"+Pe.encoding),Ve("/DescendantFonts ["+yr+" 0 R]"),Ve(">>"),Ve("endobj"),Pe.isAlreadyPutted=!0}})(he)}]),z.events.push(["putFont",function(he){(function(Ze){var Pe=Ze.font,Ve=Ze.out,Ye=Ze.newObject,dt=Ze.putStream;if(Pe.metadata instanceof y.API.TTFFont&&Pe.encoding==="WinAnsiEncoding"){for(var Tt=Pe.metadata.rawData,Jt="",At=0;At<Tt.length;At++)Jt+=String.fromCharCode(Tt[At]);var In=Ye();dt({data:Jt,addLength1:!0,objectId:In}),Ve("endobj");var xn=Ye();dt({data:re(Pe.metadata.toUnicode),addLength1:!0,objectId:xn}),Ve("endobj");var Nn=Ye();Ve("<<"),Ve("/Descent "+Pe.metadata.decender),Ve("/CapHeight "+Pe.metadata.capHeight),Ve("/StemV "+Pe.metadata.stemV),Ve("/Type /FontDescriptor"),Ve("/FontFile2 "+In+" 0 R"),Ve("/Flags 96"),Ve("/FontBBox "+y.API.PDFObject.convert(Pe.metadata.bbox)),Ve("/FontName /"+gd(Pe.fontName)),Ve("/ItalicAngle "+Pe.metadata.italicAngle),Ve("/Ascent "+Pe.metadata.ascender),Ve(">>"),Ve("endobj"),Pe.objectNumber=Ye();for(var dn=0;dn<Pe.metadata.hmtx.widths.length;dn++)Pe.metadata.hmtx.widths[dn]=parseInt(Pe.metadata.hmtx.widths[dn]*(1e3/Pe.metadata.head.unitsPerEm));Ve("<</Subtype/TrueType/Type/Font/ToUnicode "+xn+" 0 R/BaseFont/"+gd(Pe.fontName)+"/FontDescriptor "+Nn+" 0 R/Encoding/"+Pe.encoding+" /FirstChar 29 /LastChar 255 /Widths "+y.API.PDFObject.convert(Pe.metadata.hmtx.widths)+">>"),Ve("endobj"),Pe.isAlreadyPutted=!0}})(he)}]);var Ae=function(he){var Ze,Pe=he.text||"",Ve=he.x,Ye=he.y,dt=he.options||{},Tt=he.mutex||{},Jt=Tt.pdfEscape,At=Tt.activeFontKey,In=Tt.fonts,xn=At,Nn="",dn=0,yr="",lr=In[xn].encoding;if(In[xn].encoding!=="Identity-H")return{text:Pe,x:Ve,y:Ye,options:dt,mutex:Tt};for(yr=Pe,xn=At,Array.isArray(Pe)&&(yr=Pe[0]),dn=0;dn<yr.length;dn+=1)In[xn].metadata.hasOwnProperty("cmap")&&(Ze=In[xn].metadata.cmap.unicode.codeMap[yr[dn].charCodeAt(0)]),Ze||yr[dn].charCodeAt(0)<256&&In[xn].metadata.hasOwnProperty("Unicode")?Nn+=yr[dn]:Nn+="";var Zn="";return parseInt(xn.slice(1))<14||lr==="WinAnsiEncoding"?Zn=Jt(Nn,xn).split("").map(function(fi){return fi.charCodeAt(0).toString(16)}).join(""):lr==="Identity-H"&&(Zn=E(Nn,In[xn])),Tt.isHex=!0,{text:Zn,x:Ve,y:Ye,options:dt,mutex:Tt}};z.events.push(["postProcessText",function(he){var Ze=he.text||"",Pe=[],Ve={text:Ze,x:he.x,y:he.y,options:he.options,mutex:he.mutex};if(Array.isArray(Ze)){var Ye=0;for(Ye=0;Ye<Ze.length;Ye+=1)Array.isArray(Ze[Ye])&&Ze[Ye].length===3?Pe.push([Ae(Object.assign({},Ve,{text:Ze[Ye][0]})).text,Ze[Ye][1],Ze[Ye][2]]):Pe.push(Ae(Object.assign({},Ve,{text:Ze[Ye]})).text);he.text=Pe}else he.text=Ae(Object.assign({},Ve,{text:Ze})).text}])}(Da),function(y){var z=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};y.existsFileInVFS=function(E){return z.call(this),this.internal.vFS[E]!==void 0},y.addFileToVFS=function(E,re){return z.call(this),this.internal.vFS[E]=re,this},y.getFileFromVFS=function(E){return z.call(this),this.internal.vFS[E]!==void 0?this.internal.vFS[E]:null}}(Da.API),function(y){y.__bidiEngine__=y.prototype.__bidiEngine__=function(re){var Ae,he,Ze,Pe,Ve,Ye,dt,Tt=z,Jt=[[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]],At=[[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]],In={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},xn={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},Nn=["(",")","(","<",">","<","[","]","[","{","}","{","\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"],dn=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)$/),yr=!1,lr=0;this.__bidiEngine__={};var Zn=function(An){var Pn=An.charCodeAt(),pr=Pn>>8,cr=xn[pr];return cr!==void 0?Tt[256*cr+(255&Pn)]:pr===252||pr===253?"AL":dn.test(pr)?"L":pr===8?"R":"N"},fi=function(An){for(var Pn,pr=0;pr<An.length;pr++){if((Pn=Zn(An.charAt(pr)))==="L")return!1;if(Pn==="R")return!0}return!1},zi=function(An,Pn,pr,cr){var vi,Fi,Oi,Ai,_i=Pn[cr];switch(_i){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":yr=!1;break;case"N":case"AN":break;case"EN":yr&&(_i="AN");break;case"AL":yr=!0,_i="R";break;case"WS":case"BN":_i="N";break;case"CS":cr<1||cr+1>=Pn.length||(vi=pr[cr-1])!=="EN"&&vi!=="AN"||(Fi=Pn[cr+1])!=="EN"&&Fi!=="AN"?_i="N":yr&&(Fi="AN"),_i=Fi===vi?Fi:"N";break;case"ES":_i=(vi=cr>0?pr[cr-1]:"B")==="EN"&&cr+1<Pn.length&&Pn[cr+1]==="EN"?"EN":"N";break;case"ET":if(cr>0&&pr[cr-1]==="EN"){_i="EN";break}if(yr){_i="N";break}for(Oi=cr+1,Ai=Pn.length;Oi<Ai&&Pn[Oi]==="ET";)Oi++;_i=Oi<Ai&&Pn[Oi]==="EN"?"EN":"N";break;case"NSM":if(Ze&&!Pe){for(Ai=Pn.length,Oi=cr+1;Oi<Ai&&Pn[Oi]==="NSM";)Oi++;if(Oi<Ai){var Po=An[cr],ro=Po>=1425&&Po<=2303||Po===64286;if(vi=Pn[Oi],ro&&(vi==="R"||vi==="AL")){_i="R";break}}}_i=cr<1||(vi=Pn[cr-1])==="B"?"N":pr[cr-1];break;case"B":yr=!1,Ae=!0,_i=lr;break;case"S":he=!0,_i="N"}return _i},Ii=function(An,Pn,pr){var cr=An.split("");return pr&&Ir(cr,pr,{hiLevel:lr}),cr.reverse(),Pn&&Pn.reverse(),cr.join("")},Ir=function(An,Pn,pr){var cr,vi,Fi,Oi,Ai,_i=-1,Po=An.length,ro=0,on=[],zn=lr?At:Jt,ir=[];for(yr=!1,Ae=!1,he=!1,vi=0;vi<Po;vi++)ir[vi]=Zn(An[vi]);for(Fi=0;Fi<Po;Fi++){if(Ai=ro,on[Fi]=zi(An,ir,on,Fi),cr=240&(ro=zn[Ai][In[on[Fi]]]),ro&=15,Pn[Fi]=Oi=zn[ro][5],cr>0)if(cr===16){for(vi=_i;vi<Fi;vi++)Pn[vi]=1;_i=-1}else _i=-1;if(zn[ro][6])_i===-1&&(_i=Fi);else if(_i>-1){for(vi=_i;vi<Fi;vi++)Pn[vi]=Oi;_i=-1}ir[Fi]==="B"&&(Pn[Fi]=0),pr.hiLevel|=Oi}he&&function(br,Tr,ei){for(var Li=0;Li<ei;Li++)if(br[Li]==="S"){Tr[Li]=lr;for(var Pi=Li-1;Pi>=0&&br[Pi]==="WS";Pi--)Tr[Pi]=lr}}(ir,Pn,Po)},Gn=function(An,Pn,pr,cr,vi){if(!(vi.hiLevel<An)){if(An===1&&lr===1&&!Ae)return Pn.reverse(),void(pr&&pr.reverse());for(var Fi,Oi,Ai,_i,Po=Pn.length,ro=0;ro<Po;){if(cr[ro]>=An){for(Ai=ro+1;Ai<Po&&cr[Ai]>=An;)Ai++;for(_i=ro,Oi=Ai-1;_i<Oi;_i++,Oi--)Fi=Pn[_i],Pn[_i]=Pn[Oi],Pn[Oi]=Fi,pr&&(Fi=pr[_i],pr[_i]=pr[Oi],pr[Oi]=Fi);ro=Ai}ro++}}},Gr=function(An,Pn,pr){var cr=An.split(""),vi={hiLevel:lr};return pr||(pr=[]),Ir(cr,pr,vi),function(Fi,Oi,Ai){if(Ai.hiLevel!==0&&dt)for(var _i,Po=0;Po<Fi.length;Po++)Oi[Po]===1&&(_i=Nn.indexOf(Fi[Po]))>=0&&(Fi[Po]=Nn[_i+1])}(cr,pr,vi),Gn(2,cr,Pn,pr,vi),Gn(1,cr,Pn,pr,vi),cr.join("")};return this.__bidiEngine__.doBidiReorder=function(An,Pn,pr){if(function(vi,Fi){if(Fi)for(var Oi=0;Oi<vi.length;Oi++)Fi[Oi]=Oi;Pe===void 0&&(Pe=fi(vi)),Ye===void 0&&(Ye=fi(vi))}(An,Pn),Ze||!Ve||Ye)if(Ze&&Ve&&Pe^Ye)lr=Pe?1:0,An=Ii(An,Pn,pr);else if(!Ze&&Ve&&Ye)lr=Pe?1:0,An=Gr(An,Pn,pr),An=Ii(An,Pn);else if(!Ze||Pe||Ve||Ye){if(Ze&&!Ve&&Pe^Ye)An=Ii(An,Pn),Pe?(lr=0,An=Gr(An,Pn,pr)):(lr=1,An=Gr(An,Pn,pr),An=Ii(An,Pn));else if(Ze&&Pe&&!Ve&&Ye)lr=1,An=Gr(An,Pn,pr),An=Ii(An,Pn);else if(!Ze&&!Ve&&Pe^Ye){var cr=dt;Pe?(lr=1,An=Gr(An,Pn,pr),lr=0,dt=!1,An=Gr(An,Pn,pr),dt=cr):(lr=0,An=Gr(An,Pn,pr),An=Ii(An,Pn),lr=1,dt=!1,An=Gr(An,Pn,pr),dt=cr,An=Ii(An,Pn))}}else lr=0,An=Gr(An,Pn,pr);else lr=Pe?1:0,An=Gr(An,Pn,pr);return An},this.__bidiEngine__.setOptions=function(An){An&&(Ze=An.isInputVisual,Ve=An.isOutputVisual,Pe=An.isInputRtl,Ye=An.isOutputRtl,dt=An.isSymmetricSwapping)},this.__bidiEngine__.setOptions(re),this.__bidiEngine__};var z=["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"],E=new y.__bidiEngine__({isInputVisual:!0});y.API.events.push(["postProcessText",function(re){var Ae=re.text;re.x,re.y;var he=re.options||{};re.mutex,he.lang;var Ze=[];if(he.isInputVisual=typeof he.isInputVisual!="boolean"||he.isInputVisual,E.setOptions(he),Object.prototype.toString.call(Ae)==="[object Array]"){var Pe=0;for(Ze=[],Pe=0;Pe<Ae.length;Pe+=1)Object.prototype.toString.call(Ae[Pe])==="[object Array]"?Ze.push([E.doBidiReorder(Ae[Pe][0]),Ae[Pe][1],Ae[Pe][2]]):Ze.push([E.doBidiReorder(Ae[Pe])]);re.text=Ze}else re.text=E.doBidiReorder(Ae);E.setOptions({isInputVisual:!0})}])}(Da),Da.API.TTFFont=function(){function y(z){var E;if(this.rawData=z,E=this.contents=new Wh(z),this.contents.pos=4,E.readString(4)==="ttcf")throw new Error("TTCF not supported.");E.pos=0,this.parse(),this.subset=new Yv(this),this.registerTTF()}return y.open=function(z){return new y(z)},y.prototype.parse=function(){return this.directory=new Mv(this.contents),this.head=new Rv(this),this.name=new Kv(this),this.cmap=new z0(this),this.toUnicode={},this.hhea=new jv(this),this.maxp=new Zv(this),this.hmtx=new Wv(this),this.post=new Qv(this),this.os2=new Hv(this),this.loca=new Xv(this),this.glyf=new $v(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]},y.prototype.registerTTF=function(){var z,E,re,Ae,he;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var Ze,Pe,Ve,Ye;for(Ye=[],Ze=0,Pe=(Ve=this.bbox).length;Ze<Pe;Ze++)z=Ve[Ze],Ye.push(Math.round(z*this.scaleFactor));return Ye}.call(this),this.stemV=0,this.post.exists?(re=255&(Ae=this.post.italic_angle),32768&(E=Ae>>16)&&(E=-(1+(65535^E))),this.italicAngle=+(E+"."+re)):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=(he=this.familyClass)===1||he===2||he===3||he===4||he===5||he===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")},y.prototype.characterToGlyph=function(z){var E;return((E=this.cmap.unicode)!=null?E.codeMap[z]:void 0)||0},y.prototype.widthOfGlyph=function(z){var E;return E=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(z).advance*E},y.prototype.widthOfString=function(z,E,re){var Ae,he,Ze,Pe;for(Ze=0,he=0,Pe=(z=""+z).length;0<=Pe?he<Pe:he>Pe;he=0<=Pe?++he:--he)Ae=z.charCodeAt(he),Ze+=this.widthOfGlyph(this.characterToGlyph(Ae))+re*(1e3/E)||0;return Ze*(E/1e3)},y.prototype.lineHeight=function(z,E){var re;return E==null&&(E=!1),re=E?this.lineGap:0,(this.ascender+re-this.decender)/1e3*z},y}();var cf,Wh=function(){function y(z){this.data=z!=null?z:[],this.pos=0,this.length=this.data.length}return y.prototype.readByte=function(){return this.data[this.pos++]},y.prototype.writeByte=function(z){return this.data[this.pos++]=z},y.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},y.prototype.writeUInt32=function(z){return this.writeByte(z>>>24&255),this.writeByte(z>>16&255),this.writeByte(z>>8&255),this.writeByte(255&z)},y.prototype.readInt32=function(){var z;return(z=this.readUInt32())>=2147483648?z-4294967296:z},y.prototype.writeInt32=function(z){return z<0&&(z+=4294967296),this.writeUInt32(z)},y.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},y.prototype.writeUInt16=function(z){return this.writeByte(z>>8&255),this.writeByte(255&z)},y.prototype.readInt16=function(){var z;return(z=this.readUInt16())>=32768?z-65536:z},y.prototype.writeInt16=function(z){return z<0&&(z+=65536),this.writeUInt16(z)},y.prototype.readString=function(z){var E,re;for(re=[],E=0;0<=z?E<z:E>z;E=0<=z?++E:--E)re[E]=String.fromCharCode(this.readByte());return re.join("")},y.prototype.writeString=function(z){var E,re,Ae;for(Ae=[],E=0,re=z.length;0<=re?E<re:E>re;E=0<=re?++E:--E)Ae.push(this.writeByte(z.charCodeAt(E)));return Ae},y.prototype.readShort=function(){return this.readInt16()},y.prototype.writeShort=function(z){return this.writeInt16(z)},y.prototype.readLongLong=function(){var z,E,re,Ae,he,Ze,Pe,Ve;return z=this.readByte(),E=this.readByte(),re=this.readByte(),Ae=this.readByte(),he=this.readByte(),Ze=this.readByte(),Pe=this.readByte(),Ve=this.readByte(),128&z?-1*(72057594037927940*(255^z)+281474976710656*(255^E)+1099511627776*(255^re)+4294967296*(255^Ae)+16777216*(255^he)+65536*(255^Ze)+256*(255^Pe)+(255^Ve)+1):72057594037927940*z+281474976710656*E+1099511627776*re+4294967296*Ae+16777216*he+65536*Ze+256*Pe+Ve},y.prototype.writeLongLong=function(z){var E,re;return E=Math.floor(z/4294967296),re=4294967295&z,this.writeByte(E>>24&255),this.writeByte(E>>16&255),this.writeByte(E>>8&255),this.writeByte(255&E),this.writeByte(re>>24&255),this.writeByte(re>>16&255),this.writeByte(re>>8&255),this.writeByte(255&re)},y.prototype.readInt=function(){return this.readInt32()},y.prototype.writeInt=function(z){return this.writeInt32(z)},y.prototype.read=function(z){var E,re;for(E=[],re=0;0<=z?re<z:re>z;re=0<=z?++re:--re)E.push(this.readByte());return E},y.prototype.write=function(z){var E,re,Ae,he;for(he=[],re=0,Ae=z.length;re<Ae;re++)E=z[re],he.push(this.writeByte(E));return he},y}(),Mv=function(){var y;function z(E){var re,Ae,he;for(this.scalarType=E.readInt(),this.tableCount=E.readShort(),this.searchRange=E.readShort(),this.entrySelector=E.readShort(),this.rangeShift=E.readShort(),this.tables={},Ae=0,he=this.tableCount;0<=he?Ae<he:Ae>he;Ae=0<=he?++Ae:--Ae)re={tag:E.readString(4),checksum:E.readInt(),offset:E.readInt(),length:E.readInt()},this.tables[re.tag]=re}return z.prototype.encode=function(E){var re,Ae,he,Ze,Pe,Ve,Ye,dt,Tt,Jt,At,In,xn;for(xn in At=Object.keys(E).length,Ve=Math.log(2),Tt=16*Math.floor(Math.log(At)/Ve),Ze=Math.floor(Tt/Ve),dt=16*At-Tt,(Ae=new Wh).writeInt(this.scalarType),Ae.writeShort(At),Ae.writeShort(Tt),Ae.writeShort(Ze),Ae.writeShort(dt),he=16*At,Ye=Ae.pos+he,Pe=null,In=[],E)for(Jt=E[xn],Ae.writeString(xn),Ae.writeInt(y(Jt)),Ae.writeInt(Ye),Ae.writeInt(Jt.length),In=In.concat(Jt),xn==="head"&&(Pe=Ye),Ye+=Jt.length;Ye%4;)In.push(0),Ye++;return Ae.write(In),re=2981146554-y(Ae.data),Ae.pos=Pe+8,Ae.writeUInt32(re),Ae.data},y=function(E){var re,Ae,he,Ze;for(E=K0.call(E);E.length%4;)E.push(0);for(he=new Wh(E),Ae=0,re=0,Ze=E.length;re<Ze;re=re+=4)Ae+=he.readUInt32();return 4294967295&Ae},z}(),Uv={}.hasOwnProperty,Qf=function(y,z){for(var E in z)Uv.call(z,E)&&(y[E]=z[E]);function re(){this.constructor=y}return re.prototype=z.prototype,y.prototype=new re,y.__super__=z.prototype,y};cf=function(){function y(z){var E;this.file=z,E=this.file.directory.tables[this.tag],this.exists=!!E,E&&(this.offset=E.offset,this.length=E.length,this.parse(this.file.contents))}return y.prototype.parse=function(){},y.prototype.encode=function(){},y.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},y}();var Rv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Qf(y,cf),y.prototype.tag="head",y.prototype.parse=function(z){return z.pos=this.offset,this.version=z.readInt(),this.revision=z.readInt(),this.checkSumAdjustment=z.readInt(),this.magicNumber=z.readInt(),this.flags=z.readShort(),this.unitsPerEm=z.readShort(),this.created=z.readLongLong(),this.modified=z.readLongLong(),this.xMin=z.readShort(),this.yMin=z.readShort(),this.xMax=z.readShort(),this.yMax=z.readShort(),this.macStyle=z.readShort(),this.lowestRecPPEM=z.readShort(),this.fontDirectionHint=z.readShort(),this.indexToLocFormat=z.readShort(),this.glyphDataFormat=z.readShort()},y.prototype.encode=function(z){var E;return(E=new Wh).writeInt(this.version),E.writeInt(this.revision),E.writeInt(this.checkSumAdjustment),E.writeInt(this.magicNumber),E.writeShort(this.flags),E.writeShort(this.unitsPerEm),E.writeLongLong(this.created),E.writeLongLong(this.modified),E.writeShort(this.xMin),E.writeShort(this.yMin),E.writeShort(this.xMax),E.writeShort(this.yMax),E.writeShort(this.macStyle),E.writeShort(this.lowestRecPPEM),E.writeShort(this.fontDirectionHint),E.writeShort(z),E.writeShort(this.glyphDataFormat),E.data},y}(),Q0=function(){function y(z,E){var re,Ae,he,Ze,Pe,Ve,Ye,dt,Tt,Jt,At,In,xn,Nn,dn,yr,lr;switch(this.platformID=z.readUInt16(),this.encodingID=z.readShort(),this.offset=E+z.readInt(),Tt=z.pos,z.pos=this.offset,this.format=z.readUInt16(),this.length=z.readUInt16(),this.language=z.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(Ve=0;Ve<256;++Ve)this.codeMap[Ve]=z.readByte();break;case 4:for(At=z.readUInt16(),Jt=At/2,z.pos+=6,he=function(){var Zn,fi;for(fi=[],Ve=Zn=0;0<=Jt?Zn<Jt:Zn>Jt;Ve=0<=Jt?++Zn:--Zn)fi.push(z.readUInt16());return fi}(),z.pos+=2,xn=function(){var Zn,fi;for(fi=[],Ve=Zn=0;0<=Jt?Zn<Jt:Zn>Jt;Ve=0<=Jt?++Zn:--Zn)fi.push(z.readUInt16());return fi}(),Ye=function(){var Zn,fi;for(fi=[],Ve=Zn=0;0<=Jt?Zn<Jt:Zn>Jt;Ve=0<=Jt?++Zn:--Zn)fi.push(z.readUInt16());return fi}(),dt=function(){var Zn,fi;for(fi=[],Ve=Zn=0;0<=Jt?Zn<Jt:Zn>Jt;Ve=0<=Jt?++Zn:--Zn)fi.push(z.readUInt16());return fi}(),Ae=(this.length-z.pos+this.offset)/2,Pe=function(){var Zn,fi;for(fi=[],Ve=Zn=0;0<=Ae?Zn<Ae:Zn>Ae;Ve=0<=Ae?++Zn:--Zn)fi.push(z.readUInt16());return fi}(),Ve=dn=0,lr=he.length;dn<lr;Ve=++dn)for(Nn=he[Ve],re=yr=In=xn[Ve];In<=Nn?yr<=Nn:yr>=Nn;re=In<=Nn?++yr:--yr)dt[Ve]===0?Ze=re+Ye[Ve]:(Ze=Pe[dt[Ve]/2+(re-In)-(Jt-Ve)]||0)!==0&&(Ze+=Ye[Ve]),this.codeMap[re]=65535&Ze}z.pos=Tt}return y.encode=function(z,E){var re,Ae,he,Ze,Pe,Ve,Ye,dt,Tt,Jt,At,In,xn,Nn,dn,yr,lr,Zn,fi,zi,Ii,Ir,Gn,Gr,An,Pn,pr,cr,vi,Fi,Oi,Ai,_i,Po,ro,on,zn,ir,br,Tr,ei,Li,Pi,Xi,xo,ca;switch(cr=new Wh,Ze=Object.keys(z).sort(function(ua,Ga){return ua-Ga}),E){case"macroman":for(xn=0,Nn=function(){var ua=[];for(In=0;In<256;++In)ua.push(0);return ua}(),yr={0:0},he={},vi=0,_i=Ze.length;vi<_i;vi++)yr[Pi=z[Ae=Ze[vi]]]==null&&(yr[Pi]=++xn),he[Ae]={old:z[Ae],new:yr[z[Ae]]},Nn[Ae]=yr[z[Ae]];return cr.writeUInt16(1),cr.writeUInt16(0),cr.writeUInt32(12),cr.writeUInt16(0),cr.writeUInt16(262),cr.writeUInt16(0),cr.write(Nn),{charMap:he,subtable:cr.data,maxGlyphID:xn+1};case"unicode":for(Pn=[],Tt=[],lr=0,yr={},re={},dn=Ye=null,Fi=0,Po=Ze.length;Fi<Po;Fi++)yr[fi=z[Ae=Ze[Fi]]]==null&&(yr[fi]=++lr),re[Ae]={old:fi,new:yr[fi]},Pe=yr[fi]-Ae,dn!=null&&Pe===Ye||(dn&&Tt.push(dn),Pn.push(Ae),Ye=Pe),dn=Ae;for(dn&&Tt.push(dn),Tt.push(65535),Pn.push(65535),Gr=2*(Gn=Pn.length),Ir=2*Math.pow(Math.log(Gn)/Math.LN2,2),Jt=Math.log(Ir/2)/Math.LN2,Ii=2*Gn-Ir,Ve=[],zi=[],At=[],In=Oi=0,ro=Pn.length;Oi<ro;In=++Oi){if(An=Pn[In],dt=Tt[In],An===65535){Ve.push(0),zi.push(0);break}if(An-(pr=re[An].new)>=32768)for(Ve.push(0),zi.push(2*(At.length+Gn-In)),Ae=Ai=An;An<=dt?Ai<=dt:Ai>=dt;Ae=An<=dt?++Ai:--Ai)At.push(re[Ae].new);else Ve.push(pr-An),zi.push(0)}for(cr.writeUInt16(3),cr.writeUInt16(1),cr.writeUInt32(12),cr.writeUInt16(4),cr.writeUInt16(16+8*Gn+2*At.length),cr.writeUInt16(0),cr.writeUInt16(Gr),cr.writeUInt16(Ir),cr.writeUInt16(Jt),cr.writeUInt16(Ii),ei=0,on=Tt.length;ei<on;ei++)Ae=Tt[ei],cr.writeUInt16(Ae);for(cr.writeUInt16(0),Li=0,zn=Pn.length;Li<zn;Li++)Ae=Pn[Li],cr.writeUInt16(Ae);for(Xi=0,ir=Ve.length;Xi<ir;Xi++)Pe=Ve[Xi],cr.writeUInt16(Pe);for(xo=0,br=zi.length;xo<br;xo++)Zn=zi[xo],cr.writeUInt16(Zn);for(ca=0,Tr=At.length;ca<Tr;ca++)xn=At[ca],cr.writeUInt16(xn);return{charMap:re,subtable:cr.data,maxGlyphID:lr+1}}},y}(),z0=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Qf(y,cf),y.prototype.tag="cmap",y.prototype.parse=function(z){var E,re,Ae;for(z.pos=this.offset,this.version=z.readUInt16(),Ae=z.readUInt16(),this.tables=[],this.unicode=null,re=0;0<=Ae?re<Ae:re>Ae;re=0<=Ae?++re:--re)E=new Q0(z,this.offset),this.tables.push(E),E.isUnicode&&this.unicode==null&&(this.unicode=E);return!0},y.encode=function(z,E){var re,Ae;return E==null&&(E="macroman"),re=Q0.encode(z,E),(Ae=new Wh).writeUInt16(0),Ae.writeUInt16(1),re.table=Ae.data.concat(re.subtable),re},y}(),jv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Qf(y,cf),y.prototype.tag="hhea",y.prototype.parse=function(z){return z.pos=this.offset,this.version=z.readInt(),this.ascender=z.readShort(),this.decender=z.readShort(),this.lineGap=z.readShort(),this.advanceWidthMax=z.readShort(),this.minLeftSideBearing=z.readShort(),this.minRightSideBearing=z.readShort(),this.xMaxExtent=z.readShort(),this.caretSlopeRise=z.readShort(),this.caretSlopeRun=z.readShort(),this.caretOffset=z.readShort(),z.pos+=8,this.metricDataFormat=z.readShort(),this.numberOfMetrics=z.readUInt16()},y}(),Hv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Qf(y,cf),y.prototype.tag="OS/2",y.prototype.parse=function(z){if(z.pos=this.offset,this.version=z.readUInt16(),this.averageCharWidth=z.readShort(),this.weightClass=z.readUInt16(),this.widthClass=z.readUInt16(),this.type=z.readShort(),this.ySubscriptXSize=z.readShort(),this.ySubscriptYSize=z.readShort(),this.ySubscriptXOffset=z.readShort(),this.ySubscriptYOffset=z.readShort(),this.ySuperscriptXSize=z.readShort(),this.ySuperscriptYSize=z.readShort(),this.ySuperscriptXOffset=z.readShort(),this.ySuperscriptYOffset=z.readShort(),this.yStrikeoutSize=z.readShort(),this.yStrikeoutPosition=z.readShort(),this.familyClass=z.readShort(),this.panose=function(){var E,re;for(re=[],E=0;E<10;++E)re.push(z.readByte());return re}(),this.charRange=function(){var E,re;for(re=[],E=0;E<4;++E)re.push(z.readInt());return re}(),this.vendorID=z.readString(4),this.selection=z.readShort(),this.firstCharIndex=z.readShort(),this.lastCharIndex=z.readShort(),this.version>0&&(this.ascent=z.readShort(),this.descent=z.readShort(),this.lineGap=z.readShort(),this.winAscent=z.readShort(),this.winDescent=z.readShort(),this.codePageRange=function(){var E,re;for(re=[],E=0;E<2;E=++E)re.push(z.readInt());return re}(),this.version>1))return this.xHeight=z.readShort(),this.capHeight=z.readShort(),this.defaultChar=z.readShort(),this.breakChar=z.readShort(),this.maxContext=z.readShort()},y}(),Qv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Qf(y,cf),y.prototype.tag="post",y.prototype.parse=function(z){var E,re,Ae;switch(z.pos=this.offset,this.format=z.readInt(),this.italicAngle=z.readInt(),this.underlinePosition=z.readShort(),this.underlineThickness=z.readShort(),this.isFixedPitch=z.readInt(),this.minMemType42=z.readInt(),this.maxMemType42=z.readInt(),this.minMemType1=z.readInt(),this.maxMemType1=z.readInt(),this.format){case 65536:case 196608:break;case 131072:var he;for(re=z.readUInt16(),this.glyphNameIndex=[],he=0;0<=re?he<re:he>re;he=0<=re?++he:--he)this.glyphNameIndex.push(z.readUInt16());for(this.names=[],Ae=[];z.pos<this.offset+this.length;)E=z.readByte(),Ae.push(this.names.push(z.readString(E)));return Ae;case 151552:return re=z.readUInt16(),this.offsets=z.read(re);case 262144:return this.map=function(){var Ze,Pe,Ve;for(Ve=[],he=Ze=0,Pe=this.file.maxp.numGlyphs;0<=Pe?Ze<Pe:Ze>Pe;he=0<=Pe?++Ze:--Ze)Ve.push(z.readUInt32());return Ve}.call(this)}},y}(),zv=function(y,z){this.raw=y,this.length=y.length,this.platformID=z.platformID,this.encodingID=z.encodingID,this.languageID=z.languageID},Kv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Qf(y,cf),y.prototype.tag="name",y.prototype.parse=function(z){var E,re,Ae,he,Ze,Pe,Ve,Ye,dt,Tt,Jt;for(z.pos=this.offset,z.readShort(),E=z.readShort(),Pe=z.readShort(),re=[],he=0;0<=E?he<E:he>E;he=0<=E?++he:--he)re.push({platformID:z.readShort(),encodingID:z.readShort(),languageID:z.readShort(),nameID:z.readShort(),length:z.readShort(),offset:this.offset+Pe+z.readShort()});for(Ve={},he=dt=0,Tt=re.length;dt<Tt;he=++dt)Ae=re[he],z.pos=Ae.offset,Ye=z.readString(Ae.length),Ze=new zv(Ye,Ae),Ve[Jt=Ae.nameID]==null&&(Ve[Jt]=[]),Ve[Ae.nameID].push(Ze);this.strings=Ve,this.copyright=Ve[0],this.fontFamily=Ve[1],this.fontSubfamily=Ve[2],this.uniqueSubfamily=Ve[3],this.fontName=Ve[4],this.version=Ve[5];try{this.postscriptName=Ve[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(At){this.postscriptName=Ve[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=Ve[7],this.manufacturer=Ve[8],this.designer=Ve[9],this.description=Ve[10],this.vendorUrl=Ve[11],this.designerUrl=Ve[12],this.license=Ve[13],this.licenseUrl=Ve[14],this.preferredFamily=Ve[15],this.preferredSubfamily=Ve[17],this.compatibleFull=Ve[18],this.sampleText=Ve[19]},y}(),Zv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Qf(y,cf),y.prototype.tag="maxp",y.prototype.parse=function(z){return z.pos=this.offset,this.version=z.readInt(),this.numGlyphs=z.readUInt16(),this.maxPoints=z.readUInt16(),this.maxContours=z.readUInt16(),this.maxCompositePoints=z.readUInt16(),this.maxComponentContours=z.readUInt16(),this.maxZones=z.readUInt16(),this.maxTwilightPoints=z.readUInt16(),this.maxStorage=z.readUInt16(),this.maxFunctionDefs=z.readUInt16(),this.maxInstructionDefs=z.readUInt16(),this.maxStackElements=z.readUInt16(),this.maxSizeOfInstructions=z.readUInt16(),this.maxComponentElements=z.readUInt16(),this.maxComponentDepth=z.readUInt16()},y}(),Wv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Qf(y,cf),y.prototype.tag="hmtx",y.prototype.parse=function(z){var E,re,Ae,he,Ze,Pe,Ve;for(z.pos=this.offset,this.metrics=[],E=0,Pe=this.file.hhea.numberOfMetrics;0<=Pe?E<Pe:E>Pe;E=0<=Pe?++E:--E)this.metrics.push({advance:z.readUInt16(),lsb:z.readInt16()});for(Ae=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var Ye,dt;for(dt=[],E=Ye=0;0<=Ae?Ye<Ae:Ye>Ae;E=0<=Ae?++Ye:--Ye)dt.push(z.readInt16());return dt}(),this.widths=function(){var Ye,dt,Tt,Jt;for(Jt=[],Ye=0,dt=(Tt=this.metrics).length;Ye<dt;Ye++)he=Tt[Ye],Jt.push(he.advance);return Jt}.call(this),re=this.widths[this.widths.length-1],Ve=[],E=Ze=0;0<=Ae?Ze<Ae:Ze>Ae;E=0<=Ae?++Ze:--Ze)Ve.push(this.widths.push(re));return Ve},y.prototype.forGlyph=function(z){return z in this.metrics?this.metrics[z]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[z-this.metrics.length]}},y}(),K0=[].slice,$v=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Qf(y,cf),y.prototype.tag="glyf",y.prototype.parse=function(){return this.cache={}},y.prototype.glyphFor=function(z){var E,re,Ae,he,Ze,Pe,Ve,Ye,dt,Tt;return z in this.cache?this.cache[z]:(he=this.file.loca,E=this.file.contents,re=he.indexOf(z),(Ae=he.lengthOf(z))===0?this.cache[z]=null:(E.pos=this.offset+re,Ze=(Pe=new Wh(E.read(Ae))).readShort(),Ye=Pe.readShort(),Tt=Pe.readShort(),Ve=Pe.readShort(),dt=Pe.readShort(),this.cache[z]=Ze===-1?new Vv(Pe,Ye,Tt,Ve,dt):new Gv(Pe,Ze,Ye,Tt,Ve,dt),this.cache[z]))},y.prototype.encode=function(z,E,re){var Ae,he,Ze,Pe,Ve;for(Ze=[],he=[],Pe=0,Ve=E.length;Pe<Ve;Pe++)Ae=z[E[Pe]],he.push(Ze.length),Ae&&(Ze=Ze.concat(Ae.encode(re)));return he.push(Ze.length),{table:Ze,offsets:he}},y}(),Gv=function(){function y(z,E,re,Ae,he,Ze){this.raw=z,this.numberOfContours=E,this.xMin=re,this.yMin=Ae,this.xMax=he,this.yMax=Ze,this.compound=!1}return y.prototype.encode=function(){return this.raw.data},y}(),Vv=function(){function y(z,E,re,Ae,he){var Ze,Pe;for(this.raw=z,this.xMin=E,this.yMin=re,this.xMax=Ae,this.yMax=he,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],Ze=this.raw;Pe=Ze.readShort(),this.glyphOffsets.push(Ze.pos),this.glyphIDs.push(Ze.readUInt16()),32&Pe;)Ze.pos+=1&Pe?4:2,128&Pe?Ze.pos+=8:64&Pe?Ze.pos+=4:8&Pe&&(Ze.pos+=2)}return y.prototype.encode=function(){var z,E,re;for(E=new Wh(K0.call(this.raw.data)),z=0,re=this.glyphIDs.length;z<re;++z)E.pos=this.glyphOffsets[z];return E.data},y}(),Xv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Qf(y,cf),y.prototype.tag="loca",y.prototype.parse=function(z){var E,re;return z.pos=this.offset,E=this.file.head.indexToLocFormat,this.offsets=E===0?function(){var Ae,he;for(he=[],re=0,Ae=this.length;re<Ae;re+=2)he.push(2*z.readUInt16());return he}.call(this):function(){var Ae,he;for(he=[],re=0,Ae=this.length;re<Ae;re+=4)he.push(z.readUInt32());return he}.call(this)},y.prototype.indexOf=function(z){return this.offsets[z]},y.prototype.lengthOf=function(z){return this.offsets[z+1]-this.offsets[z]},y.prototype.encode=function(z,E){for(var re=new Uint32Array(this.offsets.length),Ae=0,he=0,Ze=0;Ze<re.length;++Ze)if(re[Ze]=Ae,he<E.length&&E[he]==Ze){++he,re[Ze]=Ae;var Pe=this.offsets[Ze],Ve=this.offsets[Ze+1]-Pe;Ve>0&&(Ae+=Ve)}for(var Ye=new Array(4*re.length),dt=0;dt<re.length;++dt)Ye[4*dt+3]=255&re[dt],Ye[4*dt+2]=(65280&re[dt])>>8,Ye[4*dt+1]=(16711680&re[dt])>>16,Ye[4*dt]=(4278190080&re[dt])>>24;return Ye},y}(),Yv=function(){function y(z){this.font=z,this.subset={},this.unicodes={},this.next=33}return y.prototype.generateCmap=function(){var z,E,re,Ae,he;for(E in Ae=this.font.cmap.tables[0].codeMap,z={},he=this.subset)re=he[E],z[E]=Ae[re];return z},y.prototype.glyphsFor=function(z){var E,re,Ae,he,Ze,Pe,Ve;for(Ae={},Ze=0,Pe=z.length;Ze<Pe;Ze++)Ae[he=z[Ze]]=this.font.glyf.glyphFor(he);for(he in E=[],Ae)(re=Ae[he])!=null&&re.compound&&E.push.apply(E,re.glyphIDs);if(E.length>0)for(he in Ve=this.glyphsFor(E))re=Ve[he],Ae[he]=re;return Ae},y.prototype.encode=function(z,E){var re,Ae,he,Ze,Pe,Ve,Ye,dt,Tt,Jt,At,In,xn,Nn,dn;for(Ae in re=z0.encode(this.generateCmap(),"unicode"),Ze=this.glyphsFor(z),At={0:0},dn=re.charMap)At[(Ve=dn[Ae]).old]=Ve.new;for(In in Jt=re.maxGlyphID,Ze)In in At||(At[In]=Jt++);return dt=function(yr){var lr,Zn;for(lr in Zn={},yr)Zn[yr[lr]]=lr;return Zn}(At),Tt=Object.keys(dt).sort(function(yr,lr){return yr-lr}),xn=function(){var yr,lr,Zn;for(Zn=[],yr=0,lr=Tt.length;yr<lr;yr++)Pe=Tt[yr],Zn.push(dt[Pe]);return Zn}(),he=this.font.glyf.encode(Ze,xn,At),Ye=this.font.loca.encode(he.offsets,xn),Nn={cmap:this.font.cmap.raw(),glyf:he.table,loca:Ye,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(E)},this.font.os2.exists&&(Nn["OS/2"]=this.font.os2.raw()),this.font.directory.encode(Nn)},y}();Da.API.PDFObject=function(){var y;function z(){}return y=function(E,re){return(Array(re+1).join("0")+E).slice(-re)},z.convert=function(E){var re,Ae,he,Ze;if(Array.isArray(E))return"["+function(){var Pe,Ve,Ye;for(Ye=[],Pe=0,Ve=E.length;Pe<Ve;Pe++)re=E[Pe],Ye.push(z.convert(re));return Ye}().join(" ")+"]";if(typeof E=="string")return"/"+E;if(E!=null&&E.isString)return"("+E+")";if(E instanceof Date)return"(D:"+y(E.getUTCFullYear(),4)+y(E.getUTCMonth(),2)+y(E.getUTCDate(),2)+y(E.getUTCHours(),2)+y(E.getUTCMinutes(),2)+y(E.getUTCSeconds(),2)+"Z)";if({}.toString.call(E)==="[object Object]"){for(Ae in he=["<<"],E)Ze=E[Ae],he.push("/"+Ae+" "+z.convert(Ze));return he.push(">>"),he.join(`
`)}return""+E},z}()},86129:function(Vn,Mt,ae){var x=ae(19208).lW,ct=ae(97671);(function(Le){Vn.exports=Le()})(function(){return function Le(Je,ze,Se){function Ue(oe,Oe){if(!ze[oe]){if(!Je[oe]){var ve=void 0;if(!Oe&&ve)return require(oe,!0);if(fe)return fe(oe,!0);var Me=new Error("Cannot find module '"+oe+"'");throw Me.code="MODULE_NOT_FOUND",Me}var Fe=ze[oe]={exports:{}};Je[oe][0].call(Fe.exports,function(Te){var ye=Je[oe][1][Te];return Ue(ye||Te)},Fe,Fe.exports,Le,Je,ze,Se)}return ze[oe].exports}for(var fe=void 0,Ce=0;Ce<Se.length;Ce++)Ue(Se[Ce]);return Ue}({1:[function(Le,Je,ze){"use strict";var Se=Le("./utils"),Ue=Le("./support"),fe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";ze.encode=function(Ce){for(var oe,Oe,ve,Me,Fe,Te,ye,xe=[],Ee=0,ke=Ce.length,Ke=ke,Qe=Se.getTypeOf(Ce)!=="string";Ee<Ce.length;)Ke=ke-Ee,ve=Qe?(oe=Ce[Ee++],Oe=Ee<ke?Ce[Ee++]:0,Ee<ke?Ce[Ee++]:0):(oe=Ce.charCodeAt(Ee++),Oe=Ee<ke?Ce.charCodeAt(Ee++):0,Ee<ke?Ce.charCodeAt(Ee++):0),Me=oe>>2,Fe=(3&oe)<<4|Oe>>4,Te=1<Ke?(15&Oe)<<2|ve>>6:64,ye=2<Ke?63&ve:64,xe.push(fe.charAt(Me)+fe.charAt(Fe)+fe.charAt(Te)+fe.charAt(ye));return xe.join("")},ze.decode=function(Ce){var oe,Oe,ve,Me,Fe,Te,ye=0,xe=0,Ee="data:";if(Ce.substr(0,Ee.length)===Ee)throw new Error("Invalid base64 input, it looks like a data url.");var ke,Ke=3*(Ce=Ce.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(Ce.charAt(Ce.length-1)===fe.charAt(64)&&Ke--,Ce.charAt(Ce.length-2)===fe.charAt(64)&&Ke--,Ke%1!=0)throw new Error("Invalid base64 input, bad content length.");for(ke=Ue.uint8array?new Uint8Array(0|Ke):new Array(0|Ke);ye<Ce.length;)oe=fe.indexOf(Ce.charAt(ye++))<<2|(Me=fe.indexOf(Ce.charAt(ye++)))>>4,Oe=(15&Me)<<4|(Fe=fe.indexOf(Ce.charAt(ye++)))>>2,ve=(3&Fe)<<6|(Te=fe.indexOf(Ce.charAt(ye++))),ke[xe++]=oe,Fe!==64&&(ke[xe++]=Oe),Te!==64&&(ke[xe++]=ve);return ke}},{"./support":30,"./utils":32}],2:[function(Le,Je,ze){"use strict";var Se=Le("./external"),Ue=Le("./stream/DataWorker"),fe=Le("./stream/Crc32Probe"),Ce=Le("./stream/DataLengthProbe");function oe(Oe,ve,Me,Fe,Te){this.compressedSize=Oe,this.uncompressedSize=ve,this.crc32=Me,this.compression=Fe,this.compressedContent=Te}oe.prototype={getContentWorker:function(){var Oe=new Ue(Se.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new Ce("data_length")),ve=this;return Oe.on("end",function(){if(this.streamInfo.data_length!==ve.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),Oe},getCompressedWorker:function(){return new Ue(Se.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},oe.createWorkerFrom=function(Oe,ve,Me){return Oe.pipe(new fe).pipe(new Ce("uncompressedSize")).pipe(ve.compressWorker(Me)).pipe(new Ce("compressedSize")).withStreamInfo("compression",ve)},Je.exports=oe},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(Le,Je,ze){"use strict";var Se=Le("./stream/GenericWorker");ze.STORE={magic:"\0\0",compressWorker:function(){return new Se("STORE compression")},uncompressWorker:function(){return new Se("STORE decompression")}},ze.DEFLATE=Le("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(Le,Je,ze){"use strict";var Se=Le("./utils"),Ue=function(){for(var fe,Ce=[],oe=0;oe<256;oe++){fe=oe;for(var Oe=0;Oe<8;Oe++)fe=1&fe?3988292384^fe>>>1:fe>>>1;Ce[oe]=fe}return Ce}();Je.exports=function(fe,Ce){return fe!==void 0&&fe.length?Se.getTypeOf(fe)!=="string"?function(oe,Oe,ve,Me){var Fe=Ue,Te=Me+ve;oe^=-1;for(var ye=Me;ye<Te;ye++)oe=oe>>>8^Fe[255&(oe^Oe[ye])];return-1^oe}(0|Ce,fe,fe.length,0):function(oe,Oe,ve,Me){var Fe=Ue,Te=Me+ve;oe^=-1;for(var ye=Me;ye<Te;ye++)oe=oe>>>8^Fe[255&(oe^Oe.charCodeAt(ye))];return-1^oe}(0|Ce,fe,fe.length,0):0}},{"./utils":32}],5:[function(Le,Je,ze){"use strict";ze.base64=!1,ze.binary=!1,ze.dir=!1,ze.createFolders=!0,ze.date=null,ze.compression=null,ze.compressionOptions=null,ze.comment=null,ze.unixPermissions=null,ze.dosPermissions=null},{}],6:[function(Le,Je,ze){"use strict";var Se=null;Se=typeof Promise!="undefined"?Promise:Le("lie"),Je.exports={Promise:Se}},{lie:37}],7:[function(Le,Je,ze){"use strict";var Se=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",Ue=Le("pako"),fe=Le("./utils"),Ce=Le("./stream/GenericWorker"),oe=Se?"uint8array":"array";function Oe(ve,Me){Ce.call(this,"FlateWorker/"+ve),this._pako=null,this._pakoAction=ve,this._pakoOptions=Me,this.meta={}}ze.magic="\b\0",fe.inherits(Oe,Ce),Oe.prototype.processChunk=function(ve){this.meta=ve.meta,this._pako===null&&this._createPako(),this._pako.push(fe.transformTo(oe,ve.data),!1)},Oe.prototype.flush=function(){Ce.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},Oe.prototype.cleanUp=function(){Ce.prototype.cleanUp.call(this),this._pako=null},Oe.prototype._createPako=function(){this._pako=new Ue[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var ve=this;this._pako.onData=function(Me){ve.push({data:Me,meta:ve.meta})}},ze.compressWorker=function(ve){return new Oe("Deflate",ve)},ze.uncompressWorker=function(){return new Oe("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(Le,Je,ze){"use strict";function Se(Fe,Te){var ye,xe="";for(ye=0;ye<Te;ye++)xe+=String.fromCharCode(255&Fe),Fe>>>=8;return xe}function Ue(Fe,Te,ye,xe,Ee,ke){var Ke,Qe,Re=Fe.file,et=Fe.compression,Ge=ke!==oe.utf8encode,ut=fe.transformTo("string",ke(Re.name)),at=fe.transformTo("string",oe.utf8encode(Re.name)),ft=Re.comment,bt=fe.transformTo("string",ke(ft)),He=fe.transformTo("string",oe.utf8encode(ft)),pt=at.length!==Re.name.length,Ne=He.length!==ft.length,je="",Ot="",it="",ht=Re.dir,Bt=Re.date,We={crc32:0,compressedSize:0,uncompressedSize:0};Te&&!ye||(We.crc32=Fe.crc32,We.compressedSize=Fe.compressedSize,We.uncompressedSize=Fe.uncompressedSize);var _e=0;Te&&(_e|=8),Ge||!pt&&!Ne||(_e|=2048);var ot=0,Zt=0;ht&&(ot|=16),Ee==="UNIX"?(Zt=798,ot|=function(tt,Nt){var Ut=tt;return tt||(Ut=Nt?16893:33204),(65535&Ut)<<16}(Re.unixPermissions,ht)):(Zt=20,ot|=function(tt){return 63&(tt||0)}(Re.dosPermissions)),Ke=Bt.getUTCHours(),Ke<<=6,Ke|=Bt.getUTCMinutes(),Ke<<=5,Ke|=Bt.getUTCSeconds()/2,Qe=Bt.getUTCFullYear()-1980,Qe<<=4,Qe|=Bt.getUTCMonth()+1,Qe<<=5,Qe|=Bt.getUTCDate(),pt&&(Ot=Se(1,1)+Se(Oe(ut),4)+at,je+="up"+Se(Ot.length,2)+Ot),Ne&&(it=Se(1,1)+Se(Oe(bt),4)+He,je+="uc"+Se(it.length,2)+it);var zt="";return zt+=`
\0`,zt+=Se(_e,2),zt+=et.magic,zt+=Se(Ke,2),zt+=Se(Qe,2),zt+=Se(We.crc32,4),zt+=Se(We.compressedSize,4),zt+=Se(We.uncompressedSize,4),zt+=Se(ut.length,2),zt+=Se(je.length,2),{fileRecord:ve.LOCAL_FILE_HEADER+zt+ut+je,dirRecord:ve.CENTRAL_FILE_HEADER+Se(Zt,2)+zt+Se(bt.length,2)+"\0\0\0\0"+Se(ot,4)+Se(xe,4)+ut+je+bt}}var fe=Le("../utils"),Ce=Le("../stream/GenericWorker"),oe=Le("../utf8"),Oe=Le("../crc32"),ve=Le("../signature");function Me(Fe,Te,ye,xe){Ce.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=Te,this.zipPlatform=ye,this.encodeFileName=xe,this.streamFiles=Fe,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}fe.inherits(Me,Ce),Me.prototype.push=function(Fe){var Te=Fe.meta.percent||0,ye=this.entriesCount,xe=this._sources.length;this.accumulate?this.contentBuffer.push(Fe):(this.bytesWritten+=Fe.data.length,Ce.prototype.push.call(this,{data:Fe.data,meta:{currentFile:this.currentFile,percent:ye?(Te+100*(ye-xe-1))/ye:100}}))},Me.prototype.openedSource=function(Fe){this.currentSourceOffset=this.bytesWritten,this.currentFile=Fe.file.name;var Te=this.streamFiles&&!Fe.file.dir;if(Te){var ye=Ue(Fe,Te,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:ye.fileRecord,meta:{percent:0}})}else this.accumulate=!0},Me.prototype.closedSource=function(Fe){this.accumulate=!1;var Te=this.streamFiles&&!Fe.file.dir,ye=Ue(Fe,Te,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(ye.dirRecord),Te)this.push({data:function(xe){return ve.DATA_DESCRIPTOR+Se(xe.crc32,4)+Se(xe.compressedSize,4)+Se(xe.uncompressedSize,4)}(Fe),meta:{percent:100}});else for(this.push({data:ye.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},Me.prototype.flush=function(){for(var Fe=this.bytesWritten,Te=0;Te<this.dirRecords.length;Te++)this.push({data:this.dirRecords[Te],meta:{percent:100}});var ye=this.bytesWritten-Fe,xe=function(Ee,ke,Ke,Qe,Re){var et=fe.transformTo("string",Re(Qe));return ve.CENTRAL_DIRECTORY_END+"\0\0\0\0"+Se(Ee,2)+Se(Ee,2)+Se(ke,4)+Se(Ke,4)+Se(et.length,2)+et}(this.dirRecords.length,ye,Fe,this.zipComment,this.encodeFileName);this.push({data:xe,meta:{percent:100}})},Me.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},Me.prototype.registerPrevious=function(Fe){this._sources.push(Fe);var Te=this;return Fe.on("data",function(ye){Te.processChunk(ye)}),Fe.on("end",function(){Te.closedSource(Te.previous.streamInfo),Te._sources.length?Te.prepareNextSource():Te.end()}),Fe.on("error",function(ye){Te.error(ye)}),this},Me.prototype.resume=function(){return!!Ce.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},Me.prototype.error=function(Fe){var Te=this._sources;if(!Ce.prototype.error.call(this,Fe))return!1;for(var ye=0;ye<Te.length;ye++)try{Te[ye].error(Fe)}catch(xe){}return!0},Me.prototype.lock=function(){Ce.prototype.lock.call(this);for(var Fe=this._sources,Te=0;Te<Fe.length;Te++)Fe[Te].lock()},Je.exports=Me},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(Le,Je,ze){"use strict";var Se=Le("../compressions"),Ue=Le("./ZipFileWorker");ze.generateWorker=function(fe,Ce,oe){var Oe=new Ue(Ce.streamFiles,oe,Ce.platform,Ce.encodeFileName),ve=0;try{fe.forEach(function(Me,Fe){ve++;var Te=function(ke,Ke){var Qe=ke||Ke,Re=Se[Qe];if(!Re)throw new Error(Qe+" is not a valid compression method !");return Re}(Fe.options.compression,Ce.compression),ye=Fe.options.compressionOptions||Ce.compressionOptions||{},xe=Fe.dir,Ee=Fe.date;Fe._compressWorker(Te,ye).withStreamInfo("file",{name:Me,dir:xe,date:Ee,comment:Fe.comment||"",unixPermissions:Fe.unixPermissions,dosPermissions:Fe.dosPermissions}).pipe(Oe)}),Oe.entriesCount=ve}catch(Me){Oe.error(Me)}return Oe}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(Le,Je,ze){"use strict";function Se(){if(!(this instanceof Se))return new Se;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 Ue=new Se;for(var fe in this)typeof this[fe]!="function"&&(Ue[fe]=this[fe]);return Ue}}(Se.prototype=Le("./object")).loadAsync=Le("./load"),Se.support=Le("./support"),Se.defaults=Le("./defaults"),Se.version="3.10.1",Se.loadAsync=function(Ue,fe){return new Se().loadAsync(Ue,fe)},Se.external=Le("./external"),Je.exports=Se},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(Le,Je,ze){"use strict";var Se=Le("./utils"),Ue=Le("./external"),fe=Le("./utf8"),Ce=Le("./zipEntries"),oe=Le("./stream/Crc32Probe"),Oe=Le("./nodejsUtils");function ve(Me){return new Ue.Promise(function(Fe,Te){var ye=Me.decompressed.getContentWorker().pipe(new oe);ye.on("error",function(xe){Te(xe)}).on("end",function(){ye.streamInfo.crc32!==Me.decompressed.crc32?Te(new Error("Corrupted zip : CRC32 mismatch")):Fe()}).resume()})}Je.exports=function(Me,Fe){var Te=this;return Fe=Se.extend(Fe||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:fe.utf8decode}),Oe.isNode&&Oe.isStream(Me)?Ue.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):Se.prepareContent("the loaded zip file",Me,!0,Fe.optimizedBinaryString,Fe.base64).then(function(ye){var xe=new Ce(Fe);return xe.load(ye),xe}).then(function(ye){var xe=[Ue.Promise.resolve(ye)],Ee=ye.files;if(Fe.checkCRC32)for(var ke=0;ke<Ee.length;ke++)xe.push(ve(Ee[ke]));return Ue.Promise.all(xe)}).then(function(ye){for(var xe=ye.shift(),Ee=xe.files,ke=0;ke<Ee.length;ke++){var Ke=Ee[ke],Qe=Ke.fileNameStr,Re=Se.resolve(Ke.fileNameStr);Te.file(Re,Ke.decompressed,{binary:!0,optimizedBinaryString:!0,date:Ke.date,dir:Ke.dir,comment:Ke.fileCommentStr.length?Ke.fileCommentStr:null,unixPermissions:Ke.unixPermissions,dosPermissions:Ke.dosPermissions,createFolders:Fe.createFolders}),Ke.dir||(Te.file(Re).unsafeOriginalName=Qe)}return xe.zipComment.length&&(Te.comment=xe.zipComment),Te})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(Le,Je,ze){"use strict";var Se=Le("../utils"),Ue=Le("../stream/GenericWorker");function fe(Ce,oe){Ue.call(this,"Nodejs stream input adapter for "+Ce),this._upstreamEnded=!1,this._bindStream(oe)}Se.inherits(fe,Ue),fe.prototype._bindStream=function(Ce){var oe=this;(this._stream=Ce).pause(),Ce.on("data",function(Oe){oe.push({data:Oe,meta:{percent:0}})}).on("error",function(Oe){oe.isPaused?this.generatedError=Oe:oe.error(Oe)}).on("end",function(){oe.isPaused?oe._upstreamEnded=!0:oe.end()})},fe.prototype.pause=function(){return!!Ue.prototype.pause.call(this)&&(this._stream.pause(),!0)},fe.prototype.resume=function(){return!!Ue.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},Je.exports=fe},{"../stream/GenericWorker":28,"../utils":32}],13:[function(Le,Je,ze){"use strict";var Se=Le("readable-stream").Readable;function Ue(fe,Ce,oe){Se.call(this,Ce),this._helper=fe;var Oe=this;fe.on("data",function(ve,Me){Oe.push(ve)||Oe._helper.pause(),oe&&oe(Me)}).on("error",function(ve){Oe.emit("error",ve)}).on("end",function(){Oe.push(null)})}Le("../utils").inherits(Ue,Se),Ue.prototype._read=function(){this._helper.resume()},Je.exports=Ue},{"../utils":32,"readable-stream":16}],14:[function(Le,Je,ze){"use strict";Je.exports={isNode:typeof x!="undefined",newBufferFrom:function(Se,Ue){if(x.from&&x.from!==Uint8Array.from)return x.from(Se,Ue);if(typeof Se=="number")throw new Error('The "data" argument must not be a number');return new x(Se,Ue)},allocBuffer:function(Se){if(x.alloc)return x.alloc(Se);var Ue=new x(Se);return Ue.fill(0),Ue},isBuffer:function(Se){return x.isBuffer(Se)},isStream:function(Se){return Se&&typeof Se.on=="function"&&typeof Se.pause=="function"&&typeof Se.resume=="function"}}},{}],15:[function(Le,Je,ze){"use strict";function Se(Re,et,Ge){var ut,at=fe.getTypeOf(et),ft=fe.extend(Ge||{},Oe);ft.date=ft.date||new Date,ft.compression!==null&&(ft.compression=ft.compression.toUpperCase()),typeof ft.unixPermissions=="string"&&(ft.unixPermissions=parseInt(ft.unixPermissions,8)),ft.unixPermissions&&16384&ft.unixPermissions&&(ft.dir=!0),ft.dosPermissions&&16&ft.dosPermissions&&(ft.dir=!0),ft.dir&&(Re=Ee(Re)),ft.createFolders&&(ut=xe(Re))&&ke.call(this,ut,!0);var bt=at==="string"&&ft.binary===!1&&ft.base64===!1;Ge&&Ge.binary!==void 0||(ft.binary=!bt),(et instanceof ve&&et.uncompressedSize===0||ft.dir||!et||et.length===0)&&(ft.base64=!1,ft.binary=!0,et="",ft.compression="STORE",at="string");var He=null;He=et instanceof ve||et instanceof Ce?et:Te.isNode&&Te.isStream(et)?new ye(Re,et):fe.prepareContent(Re,et,ft.binary,ft.optimizedBinaryString,ft.base64);var pt=new Me(Re,He,ft);this.files[Re]=pt}var Ue=Le("./utf8"),fe=Le("./utils"),Ce=Le("./stream/GenericWorker"),oe=Le("./stream/StreamHelper"),Oe=Le("./defaults"),ve=Le("./compressedObject"),Me=Le("./zipObject"),Fe=Le("./generate"),Te=Le("./nodejsUtils"),ye=Le("./nodejs/NodejsStreamInputAdapter"),xe=function(Re){Re.slice(-1)==="/"&&(Re=Re.substring(0,Re.length-1));var et=Re.lastIndexOf("/");return 0<et?Re.substring(0,et):""},Ee=function(Re){return Re.slice(-1)!=="/"&&(Re+="/"),Re},ke=function(Re,et){return et=et!==void 0?et:Oe.createFolders,Re=Ee(Re),this.files[Re]||Se.call(this,Re,null,{dir:!0,createFolders:et}),this.files[Re]};function Ke(Re){return Object.prototype.toString.call(Re)==="[object RegExp]"}var Qe={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(Re){var et,Ge,ut;for(et in this.files)ut=this.files[et],(Ge=et.slice(this.root.length,et.length))&&et.slice(0,this.root.length)===this.root&&Re(Ge,ut)},filter:function(Re){var et=[];return this.forEach(function(Ge,ut){Re(Ge,ut)&&et.push(ut)}),et},file:function(Re,et,Ge){if(arguments.length!==1)return Re=this.root+Re,Se.call(this,Re,et,Ge),this;if(Ke(Re)){var ut=Re;return this.filter(function(ft,bt){return!bt.dir&&ut.test(ft)})}var at=this.files[this.root+Re];return at&&!at.dir?at:null},folder:function(Re){if(!Re)return this;if(Ke(Re))return this.filter(function(at,ft){return ft.dir&&Re.test(at)});var et=this.root+Re,Ge=ke.call(this,et),ut=this.clone();return ut.root=Ge.name,ut},remove:function(Re){Re=this.root+Re;var et=this.files[Re];if(et||(Re.slice(-1)!=="/"&&(Re+="/"),et=this.files[Re]),et&&!et.dir)delete this.files[Re];else for(var Ge=this.filter(function(at,ft){return ft.name.slice(0,Re.length)===Re}),ut=0;ut<Ge.length;ut++)delete this.files[Ge[ut].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(Re){var et,Ge={};try{if((Ge=fe.extend(Re||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:Ue.utf8encode})).type=Ge.type.toLowerCase(),Ge.compression=Ge.compression.toUpperCase(),Ge.type==="binarystring"&&(Ge.type="string"),!Ge.type)throw new Error("No output type specified.");fe.checkSupport(Ge.type),Ge.platform!=="darwin"&&Ge.platform!=="freebsd"&&Ge.platform!=="linux"&&Ge.platform!=="sunos"||(Ge.platform="UNIX"),Ge.platform==="win32"&&(Ge.platform="DOS");var ut=Ge.comment||this.comment||"";et=Fe.generateWorker(this,Ge,ut)}catch(at){(et=new Ce("error")).error(at)}return new oe(et,Ge.type||"string",Ge.mimeType)},generateAsync:function(Re,et){return this.generateInternalStream(Re).accumulate(et)},generateNodeStream:function(Re,et){return(Re=Re||{}).type||(Re.type="nodebuffer"),this.generateInternalStream(Re).toNodejsStream(et)}};Je.exports=Qe},{"./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(Le,Je,ze){"use strict";Je.exports=Le("stream")},{stream:void 0}],17:[function(Le,Je,ze){"use strict";var Se=Le("./DataReader");function Ue(fe){Se.call(this,fe);for(var Ce=0;Ce<this.data.length;Ce++)fe[Ce]=255&fe[Ce]}Le("../utils").inherits(Ue,Se),Ue.prototype.byteAt=function(fe){return this.data[this.zero+fe]},Ue.prototype.lastIndexOfSignature=function(fe){for(var Ce=fe.charCodeAt(0),oe=fe.charCodeAt(1),Oe=fe.charCodeAt(2),ve=fe.charCodeAt(3),Me=this.length-4;0<=Me;--Me)if(this.data[Me]===Ce&&this.data[Me+1]===oe&&this.data[Me+2]===Oe&&this.data[Me+3]===ve)return Me-this.zero;return-1},Ue.prototype.readAndCheckSignature=function(fe){var Ce=fe.charCodeAt(0),oe=fe.charCodeAt(1),Oe=fe.charCodeAt(2),ve=fe.charCodeAt(3),Me=this.readData(4);return Ce===Me[0]&&oe===Me[1]&&Oe===Me[2]&&ve===Me[3]},Ue.prototype.readData=function(fe){if(this.checkOffset(fe),fe===0)return[];var Ce=this.data.slice(this.zero+this.index,this.zero+this.index+fe);return this.index+=fe,Ce},Je.exports=Ue},{"../utils":32,"./DataReader":18}],18:[function(Le,Je,ze){"use strict";var Se=Le("../utils");function Ue(fe){this.data=fe,this.length=fe.length,this.index=0,this.zero=0}Ue.prototype={checkOffset:function(fe){this.checkIndex(this.index+fe)},checkIndex:function(fe){if(this.length<this.zero+fe||fe<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+fe+"). Corrupted zip ?")},setIndex:function(fe){this.checkIndex(fe),this.index=fe},skip:function(fe){this.setIndex(this.index+fe)},byteAt:function(){},readInt:function(fe){var Ce,oe=0;for(this.checkOffset(fe),Ce=this.index+fe-1;Ce>=this.index;Ce--)oe=(oe<<8)+this.byteAt(Ce);return this.index+=fe,oe},readString:function(fe){return Se.transformTo("string",this.readData(fe))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var fe=this.readInt(4);return new Date(Date.UTC(1980+(fe>>25&127),(fe>>21&15)-1,fe>>16&31,fe>>11&31,fe>>5&63,(31&fe)<<1))}},Je.exports=Ue},{"../utils":32}],19:[function(Le,Je,ze){"use strict";var Se=Le("./Uint8ArrayReader");function Ue(fe){Se.call(this,fe)}Le("../utils").inherits(Ue,Se),Ue.prototype.readData=function(fe){this.checkOffset(fe);var Ce=this.data.slice(this.zero+this.index,this.zero+this.index+fe);return this.index+=fe,Ce},Je.exports=Ue},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(Le,Je,ze){"use strict";var Se=Le("./DataReader");function Ue(fe){Se.call(this,fe)}Le("../utils").inherits(Ue,Se),Ue.prototype.byteAt=function(fe){return this.data.charCodeAt(this.zero+fe)},Ue.prototype.lastIndexOfSignature=function(fe){return this.data.lastIndexOf(fe)-this.zero},Ue.prototype.readAndCheckSignature=function(fe){return fe===this.readData(4)},Ue.prototype.readData=function(fe){this.checkOffset(fe);var Ce=this.data.slice(this.zero+this.index,this.zero+this.index+fe);return this.index+=fe,Ce},Je.exports=Ue},{"../utils":32,"./DataReader":18}],21:[function(Le,Je,ze){"use strict";var Se=Le("./ArrayReader");function Ue(fe){Se.call(this,fe)}Le("../utils").inherits(Ue,Se),Ue.prototype.readData=function(fe){if(this.checkOffset(fe),fe===0)return new Uint8Array(0);var Ce=this.data.subarray(this.zero+this.index,this.zero+this.index+fe);return this.index+=fe,Ce},Je.exports=Ue},{"../utils":32,"./ArrayReader":17}],22:[function(Le,Je,ze){"use strict";var Se=Le("../utils"),Ue=Le("../support"),fe=Le("./ArrayReader"),Ce=Le("./StringReader"),oe=Le("./NodeBufferReader"),Oe=Le("./Uint8ArrayReader");Je.exports=function(ve){var Me=Se.getTypeOf(ve);return Se.checkSupport(Me),Me!=="string"||Ue.uint8array?Me==="nodebuffer"?new oe(ve):Ue.uint8array?new Oe(Se.transformTo("uint8array",ve)):new fe(Se.transformTo("array",ve)):new Ce(ve)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(Le,Je,ze){"use strict";ze.LOCAL_FILE_HEADER="PK",ze.CENTRAL_FILE_HEADER="PK",ze.CENTRAL_DIRECTORY_END="PK",ze.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",ze.ZIP64_CENTRAL_DIRECTORY_END="PK",ze.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(Le,Je,ze){"use strict";var Se=Le("./GenericWorker"),Ue=Le("../utils");function fe(Ce){Se.call(this,"ConvertWorker to "+Ce),this.destType=Ce}Ue.inherits(fe,Se),fe.prototype.processChunk=function(Ce){this.push({data:Ue.transformTo(this.destType,Ce.data),meta:Ce.meta})},Je.exports=fe},{"../utils":32,"./GenericWorker":28}],25:[function(Le,Je,ze){"use strict";var Se=Le("./GenericWorker"),Ue=Le("../crc32");function fe(){Se.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}Le("../utils").inherits(fe,Se),fe.prototype.processChunk=function(Ce){this.streamInfo.crc32=Ue(Ce.data,this.streamInfo.crc32||0),this.push(Ce)},Je.exports=fe},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(Le,Je,ze){"use strict";var Se=Le("../utils"),Ue=Le("./GenericWorker");function fe(Ce){Ue.call(this,"DataLengthProbe for "+Ce),this.propName=Ce,this.withStreamInfo(Ce,0)}Se.inherits(fe,Ue),fe.prototype.processChunk=function(Ce){if(Ce){var oe=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=oe+Ce.data.length}Ue.prototype.processChunk.call(this,Ce)},Je.exports=fe},{"../utils":32,"./GenericWorker":28}],27:[function(Le,Je,ze){"use strict";var Se=Le("../utils"),Ue=Le("./GenericWorker");function fe(Ce){Ue.call(this,"DataWorker");var oe=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,Ce.then(function(Oe){oe.dataIsReady=!0,oe.data=Oe,oe.max=Oe&&Oe.length||0,oe.type=Se.getTypeOf(Oe),oe.isPaused||oe._tickAndRepeat()},function(Oe){oe.error(Oe)})}Se.inherits(fe,Ue),fe.prototype.cleanUp=function(){Ue.prototype.cleanUp.call(this),this.data=null},fe.prototype.resume=function(){return!!Ue.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,Se.delay(this._tickAndRepeat,[],this)),!0)},fe.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(Se.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},fe.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var Ce=null,oe=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":Ce=this.data.substring(this.index,oe);break;case"uint8array":Ce=this.data.subarray(this.index,oe);break;case"array":case"nodebuffer":Ce=this.data.slice(this.index,oe)}return this.index=oe,this.push({data:Ce,meta:{percent:this.max?this.index/this.max*100:0}})},Je.exports=fe},{"../utils":32,"./GenericWorker":28}],28:[function(Le,Je,ze){"use strict";function Se(Ue){this.name=Ue||"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}Se.prototype={push:function(Ue){this.emit("data",Ue)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(Ue){this.emit("error",Ue)}return!0},error:function(Ue){return!this.isFinished&&(this.isPaused?this.generatedError=Ue:(this.isFinished=!0,this.emit("error",Ue),this.previous&&this.previous.error(Ue),this.cleanUp()),!0)},on:function(Ue,fe){return this._listeners[Ue].push(fe),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(Ue,fe){if(this._listeners[Ue])for(var Ce=0;Ce<this._listeners[Ue].length;Ce++)this._listeners[Ue][Ce].call(this,fe)},pipe:function(Ue){return Ue.registerPrevious(this)},registerPrevious:function(Ue){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=Ue.streamInfo,this.mergeStreamInfo(),this.previous=Ue;var fe=this;return Ue.on("data",function(Ce){fe.processChunk(Ce)}),Ue.on("end",function(){fe.end()}),Ue.on("error",function(Ce){fe.error(Ce)}),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 Ue=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),Ue=!0),this.previous&&this.previous.resume(),!Ue},flush:function(){},processChunk:function(Ue){this.push(Ue)},withStreamInfo:function(Ue,fe){return this.extraStreamInfo[Ue]=fe,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var Ue in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,Ue)&&(this.streamInfo[Ue]=this.extraStreamInfo[Ue])},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 Ue="Worker "+this.name;return this.previous?this.previous+" -> "+Ue:Ue}},Je.exports=Se},{}],29:[function(Le,Je,ze){"use strict";var Se=Le("../utils"),Ue=Le("./ConvertWorker"),fe=Le("./GenericWorker"),Ce=Le("../base64"),oe=Le("../support"),Oe=Le("../external"),ve=null;if(oe.nodestream)try{ve=Le("../nodejs/NodejsStreamOutputAdapter")}catch(Te){}function Me(Te,ye){return new Oe.Promise(function(xe,Ee){var ke=[],Ke=Te._internalType,Qe=Te._outputType,Re=Te._mimeType;Te.on("data",function(et,Ge){ke.push(et),ye&&ye(Ge)}).on("error",function(et){ke=[],Ee(et)}).on("end",function(){try{var et=function(Ge,ut,at){switch(Ge){case"blob":return Se.newBlob(Se.transformTo("arraybuffer",ut),at);case"base64":return Ce.encode(ut);default:return Se.transformTo(Ge,ut)}}(Qe,function(Ge,ut){var at,ft=0,bt=null,He=0;for(at=0;at<ut.length;at++)He+=ut[at].length;switch(Ge){case"string":return ut.join("");case"array":return Array.prototype.concat.apply([],ut);case"uint8array":for(bt=new Uint8Array(He),at=0;at<ut.length;at++)bt.set(ut[at],ft),ft+=ut[at].length;return bt;case"nodebuffer":return x.concat(ut);default:throw new Error("concat : unsupported type '"+Ge+"'")}}(Ke,ke),Re);xe(et)}catch(Ge){Ee(Ge)}ke=[]}).resume()})}function Fe(Te,ye,xe){var Ee=ye;switch(ye){case"blob":case"arraybuffer":Ee="uint8array";break;case"base64":Ee="string"}try{this._internalType=Ee,this._outputType=ye,this._mimeType=xe,Se.checkSupport(Ee),this._worker=Te.pipe(new Ue(Ee)),Te.lock()}catch(ke){this._worker=new fe("error"),this._worker.error(ke)}}Fe.prototype={accumulate:function(Te){return Me(this,Te)},on:function(Te,ye){var xe=this;return Te==="data"?this._worker.on(Te,function(Ee){ye.call(xe,Ee.data,Ee.meta)}):this._worker.on(Te,function(){Se.delay(ye,arguments,xe)}),this},resume:function(){return Se.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(Te){if(Se.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new ve(this,{objectMode:this._outputType!=="nodebuffer"},Te)}},Je.exports=Fe},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(Le,Je,ze){"use strict";if(ze.base64=!0,ze.array=!0,ze.string=!0,ze.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",ze.nodebuffer=typeof x!="undefined",ze.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")ze.blob=!1;else{var Se=new ArrayBuffer(0);try{ze.blob=new Blob([Se],{type:"application/zip"}).size===0}catch(fe){try{var Ue=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);Ue.append(Se),ze.blob=Ue.getBlob("application/zip").size===0}catch(Ce){ze.blob=!1}}}try{ze.nodestream=!!Le("readable-stream").Readable}catch(fe){ze.nodestream=!1}},{"readable-stream":16}],31:[function(Le,Je,ze){"use strict";for(var Se=Le("./utils"),Ue=Le("./support"),fe=Le("./nodejsUtils"),Ce=Le("./stream/GenericWorker"),oe=new Array(256),Oe=0;Oe<256;Oe++)oe[Oe]=252<=Oe?6:248<=Oe?5:240<=Oe?4:224<=Oe?3:192<=Oe?2:1;oe[254]=oe[254]=1;function ve(){Ce.call(this,"utf-8 decode"),this.leftOver=null}function Me(){Ce.call(this,"utf-8 encode")}ze.utf8encode=function(Fe){return Ue.nodebuffer?fe.newBufferFrom(Fe,"utf-8"):function(Te){var ye,xe,Ee,ke,Ke,Qe=Te.length,Re=0;for(ke=0;ke<Qe;ke++)(64512&(xe=Te.charCodeAt(ke)))==55296&&ke+1<Qe&&(64512&(Ee=Te.charCodeAt(ke+1)))==56320&&(xe=65536+(xe-55296<<10)+(Ee-56320),ke++),Re+=xe<128?1:xe<2048?2:xe<65536?3:4;for(ye=Ue.uint8array?new Uint8Array(Re):new Array(Re),ke=Ke=0;Ke<Re;ke++)(64512&(xe=Te.charCodeAt(ke)))==55296&&ke+1<Qe&&(64512&(Ee=Te.charCodeAt(ke+1)))==56320&&(xe=65536+(xe-55296<<10)+(Ee-56320),ke++),xe<128?ye[Ke++]=xe:(xe<2048?ye[Ke++]=192|xe>>>6:(xe<65536?ye[Ke++]=224|xe>>>12:(ye[Ke++]=240|xe>>>18,ye[Ke++]=128|xe>>>12&63),ye[Ke++]=128|xe>>>6&63),ye[Ke++]=128|63&xe);return ye}(Fe)},ze.utf8decode=function(Fe){return Ue.nodebuffer?Se.transformTo("nodebuffer",Fe).toString("utf-8"):function(Te){var ye,xe,Ee,ke,Ke=Te.length,Qe=new Array(2*Ke);for(ye=xe=0;ye<Ke;)if((Ee=Te[ye++])<128)Qe[xe++]=Ee;else if(4<(ke=oe[Ee]))Qe[xe++]=65533,ye+=ke-1;else{for(Ee&=ke===2?31:ke===3?15:7;1<ke&&ye<Ke;)Ee=Ee<<6|63&Te[ye++],ke--;1<ke?Qe[xe++]=65533:Ee<65536?Qe[xe++]=Ee:(Ee-=65536,Qe[xe++]=55296|Ee>>10&1023,Qe[xe++]=56320|1023&Ee)}return Qe.length!==xe&&(Qe.subarray?Qe=Qe.subarray(0,xe):Qe.length=xe),Se.applyFromCharCode(Qe)}(Fe=Se.transformTo(Ue.uint8array?"uint8array":"array",Fe))},Se.inherits(ve,Ce),ve.prototype.processChunk=function(Fe){var Te=Se.transformTo(Ue.uint8array?"uint8array":"array",Fe.data);if(this.leftOver&&this.leftOver.length){if(Ue.uint8array){var ye=Te;(Te=new Uint8Array(ye.length+this.leftOver.length)).set(this.leftOver,0),Te.set(ye,this.leftOver.length)}else Te=this.leftOver.concat(Te);this.leftOver=null}var xe=function(ke,Ke){var Qe;for((Ke=Ke||ke.length)>ke.length&&(Ke=ke.length),Qe=Ke-1;0<=Qe&&(192&ke[Qe])==128;)Qe--;return Qe<0||Qe===0?Ke:Qe+oe[ke[Qe]]>Ke?Qe:Ke}(Te),Ee=Te;xe!==Te.length&&(Ue.uint8array?(Ee=Te.subarray(0,xe),this.leftOver=Te.subarray(xe,Te.length)):(Ee=Te.slice(0,xe),this.leftOver=Te.slice(xe,Te.length))),this.push({data:ze.utf8decode(Ee),meta:Fe.meta})},ve.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:ze.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},ze.Utf8DecodeWorker=ve,Se.inherits(Me,Ce),Me.prototype.processChunk=function(Fe){this.push({data:ze.utf8encode(Fe.data),meta:Fe.meta})},ze.Utf8EncodeWorker=Me},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(Le,Je,ze){"use strict";var Se=Le("./support"),Ue=Le("./base64"),fe=Le("./nodejsUtils"),Ce=Le("./external");function oe(ye){return ye}function Oe(ye,xe){for(var Ee=0;Ee<ye.length;++Ee)xe[Ee]=255&ye.charCodeAt(Ee);return xe}Le("setimmediate"),ze.newBlob=function(ye,xe){ze.checkSupport("blob");try{return new Blob([ye],{type:xe})}catch(ke){try{var Ee=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return Ee.append(ye),Ee.getBlob(xe)}catch(Ke){throw new Error("Bug : can't construct the Blob.")}}};var ve={stringifyByChunk:function(ye,xe,Ee){var ke=[],Ke=0,Qe=ye.length;if(Qe<=Ee)return String.fromCharCode.apply(null,ye);for(;Ke<Qe;)xe==="array"||xe==="nodebuffer"?ke.push(String.fromCharCode.apply(null,ye.slice(Ke,Math.min(Ke+Ee,Qe)))):ke.push(String.fromCharCode.apply(null,ye.subarray(Ke,Math.min(Ke+Ee,Qe)))),Ke+=Ee;return ke.join("")},stringifyByChar:function(ye){for(var xe="",Ee=0;Ee<ye.length;Ee++)xe+=String.fromCharCode(ye[Ee]);return xe},applyCanBeUsed:{uint8array:function(){try{return Se.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(ye){return!1}}(),nodebuffer:function(){try{return Se.nodebuffer&&String.fromCharCode.apply(null,fe.allocBuffer(1)).length===1}catch(ye){return!1}}()}};function Me(ye){var xe=65536,Ee=ze.getTypeOf(ye),ke=!0;if(Ee==="uint8array"?ke=ve.applyCanBeUsed.uint8array:Ee==="nodebuffer"&&(ke=ve.applyCanBeUsed.nodebuffer),ke)for(;1<xe;)try{return ve.stringifyByChunk(ye,Ee,xe)}catch(Ke){xe=Math.floor(xe/2)}return ve.stringifyByChar(ye)}function Fe(ye,xe){for(var Ee=0;Ee<ye.length;Ee++)xe[Ee]=ye[Ee];return xe}ze.applyFromCharCode=Me;var Te={};Te.string={string:oe,array:function(ye){return Oe(ye,new Array(ye.length))},arraybuffer:function(ye){return Te.string.uint8array(ye).buffer},uint8array:function(ye){return Oe(ye,new Uint8Array(ye.length))},nodebuffer:function(ye){return Oe(ye,fe.allocBuffer(ye.length))}},Te.array={string:Me,array:oe,arraybuffer:function(ye){return new Uint8Array(ye).buffer},uint8array:function(ye){return new Uint8Array(ye)},nodebuffer:function(ye){return fe.newBufferFrom(ye)}},Te.arraybuffer={string:function(ye){return Me(new Uint8Array(ye))},array:function(ye){return Fe(new Uint8Array(ye),new Array(ye.byteLength))},arraybuffer:oe,uint8array:function(ye){return new Uint8Array(ye)},nodebuffer:function(ye){return fe.newBufferFrom(new Uint8Array(ye))}},Te.uint8array={string:Me,array:function(ye){return Fe(ye,new Array(ye.length))},arraybuffer:function(ye){return ye.buffer},uint8array:oe,nodebuffer:function(ye){return fe.newBufferFrom(ye)}},Te.nodebuffer={string:Me,array:function(ye){return Fe(ye,new Array(ye.length))},arraybuffer:function(ye){return Te.nodebuffer.uint8array(ye).buffer},uint8array:function(ye){return Fe(ye,new Uint8Array(ye.length))},nodebuffer:oe},ze.transformTo=function(ye,xe){if(xe=xe||"",!ye)return xe;ze.checkSupport(ye);var Ee=ze.getTypeOf(xe);return Te[Ee][ye](xe)},ze.resolve=function(ye){for(var xe=ye.split("/"),Ee=[],ke=0;ke<xe.length;ke++){var Ke=xe[ke];Ke==="."||Ke===""&&ke!==0&&ke!==xe.length-1||(Ke===".."?Ee.pop():Ee.push(Ke))}return Ee.join("/")},ze.getTypeOf=function(ye){return typeof ye=="string"?"string":Object.prototype.toString.call(ye)==="[object Array]"?"array":Se.nodebuffer&&fe.isBuffer(ye)?"nodebuffer":Se.uint8array&&ye instanceof Uint8Array?"uint8array":Se.arraybuffer&&ye instanceof ArrayBuffer?"arraybuffer":void 0},ze.checkSupport=function(ye){if(!Se[ye.toLowerCase()])throw new Error(ye+" is not supported by this platform")},ze.MAX_VALUE_16BITS=65535,ze.MAX_VALUE_32BITS=-1,ze.pretty=function(ye){var xe,Ee,ke="";for(Ee=0;Ee<(ye||"").length;Ee++)ke+="\\x"+((xe=ye.charCodeAt(Ee))<16?"0":"")+xe.toString(16).toUpperCase();return ke},ze.delay=function(ye,xe,Ee){setImmediate(function(){ye.apply(Ee||null,xe||[])})},ze.inherits=function(ye,xe){function Ee(){}Ee.prototype=xe.prototype,ye.prototype=new Ee},ze.extend=function(){var ye,xe,Ee={};for(ye=0;ye<arguments.length;ye++)for(xe in arguments[ye])Object.prototype.hasOwnProperty.call(arguments[ye],xe)&&Ee[xe]===void 0&&(Ee[xe]=arguments[ye][xe]);return Ee},ze.prepareContent=function(ye,xe,Ee,ke,Ke){return Ce.Promise.resolve(xe).then(function(Qe){return Se.blob&&(Qe instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(Qe))!==-1)&&typeof FileReader!="undefined"?new Ce.Promise(function(Re,et){var Ge=new FileReader;Ge.onload=function(ut){Re(ut.target.result)},Ge.onerror=function(ut){et(ut.target.error)},Ge.readAsArrayBuffer(Qe)}):Qe}).then(function(Qe){var Re=ze.getTypeOf(Qe);return Re?(Re==="arraybuffer"?Qe=ze.transformTo("uint8array",Qe):Re==="string"&&(Ke?Qe=Ue.decode(Qe):Ee&&ke!==!0&&(Qe=function(et){return Oe(et,Se.uint8array?new Uint8Array(et.length):new Array(et.length))}(Qe))),Qe):Ce.Promise.reject(new Error("Can't read the data of '"+ye+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(Le,Je,ze){"use strict";var Se=Le("./reader/readerFor"),Ue=Le("./utils"),fe=Le("./signature"),Ce=Le("./zipEntry"),oe=Le("./support");function Oe(ve){this.files=[],this.loadOptions=ve}Oe.prototype={checkSignature:function(ve){if(!this.reader.readAndCheckSignature(ve)){this.reader.index-=4;var Me=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+Ue.pretty(Me)+", expected "+Ue.pretty(ve)+")")}},isSignature:function(ve,Me){var Fe=this.reader.index;this.reader.setIndex(ve);var Te=this.reader.readString(4)===Me;return this.reader.setIndex(Fe),Te},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 ve=this.reader.readData(this.zipCommentLength),Me=oe.uint8array?"uint8array":"array",Fe=Ue.transformTo(Me,ve);this.zipComment=this.loadOptions.decodeFileName(Fe)},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 ve,Me,Fe,Te=this.zip64EndOfCentralSize-44;0<Te;)ve=this.reader.readInt(2),Me=this.reader.readInt(4),Fe=this.reader.readData(Me),this.zip64ExtensibleData[ve]={id:ve,length:Me,value:Fe}},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 ve,Me;for(ve=0;ve<this.files.length;ve++)Me=this.files[ve],this.reader.setIndex(Me.localHeaderOffset),this.checkSignature(fe.LOCAL_FILE_HEADER),Me.readLocalPart(this.reader),Me.handleUTF8(),Me.processAttributes()},readCentralDir:function(){var ve;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(fe.CENTRAL_FILE_HEADER);)(ve=new Ce({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(ve);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 ve=this.reader.lastIndexOfSignature(fe.CENTRAL_DIRECTORY_END);if(ve<0)throw this.isSignature(0,fe.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(ve);var Me=ve;if(this.checkSignature(fe.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===Ue.MAX_VALUE_16BITS||this.diskWithCentralDirStart===Ue.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===Ue.MAX_VALUE_16BITS||this.centralDirRecords===Ue.MAX_VALUE_16BITS||this.centralDirSize===Ue.MAX_VALUE_32BITS||this.centralDirOffset===Ue.MAX_VALUE_32BITS){if(this.zip64=!0,(ve=this.reader.lastIndexOfSignature(fe.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(ve),this.checkSignature(fe.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,fe.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(fe.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(fe.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var Fe=this.centralDirOffset+this.centralDirSize;this.zip64&&(Fe+=20,Fe+=12+this.zip64EndOfCentralSize);var Te=Me-Fe;if(0<Te)this.isSignature(Me,fe.CENTRAL_FILE_HEADER)||(this.reader.zero=Te);else if(Te<0)throw new Error("Corrupted zip: missing "+Math.abs(Te)+" bytes.")},prepareReader:function(ve){this.reader=Se(ve)},load:function(ve){this.prepareReader(ve),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},Je.exports=Oe},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(Le,Je,ze){"use strict";var Se=Le("./reader/readerFor"),Ue=Le("./utils"),fe=Le("./compressedObject"),Ce=Le("./crc32"),oe=Le("./utf8"),Oe=Le("./compressions"),ve=Le("./support");function Me(Fe,Te){this.options=Fe,this.loadOptions=Te}Me.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(Fe){var Te,ye;if(Fe.skip(22),this.fileNameLength=Fe.readInt(2),ye=Fe.readInt(2),this.fileName=Fe.readData(this.fileNameLength),Fe.skip(ye),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((Te=function(xe){for(var Ee in Oe)if(Object.prototype.hasOwnProperty.call(Oe,Ee)&&Oe[Ee].magic===xe)return Oe[Ee];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+Ue.pretty(this.compressionMethod)+" unknown (inner file : "+Ue.transformTo("string",this.fileName)+")");this.decompressed=new fe(this.compressedSize,this.uncompressedSize,this.crc32,Te,Fe.readData(this.compressedSize))},readCentralPart:function(Fe){this.versionMadeBy=Fe.readInt(2),Fe.skip(2),this.bitFlag=Fe.readInt(2),this.compressionMethod=Fe.readString(2),this.date=Fe.readDate(),this.crc32=Fe.readInt(4),this.compressedSize=Fe.readInt(4),this.uncompressedSize=Fe.readInt(4);var Te=Fe.readInt(2);if(this.extraFieldsLength=Fe.readInt(2),this.fileCommentLength=Fe.readInt(2),this.diskNumberStart=Fe.readInt(2),this.internalFileAttributes=Fe.readInt(2),this.externalFileAttributes=Fe.readInt(4),this.localHeaderOffset=Fe.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");Fe.skip(Te),this.readExtraFields(Fe),this.parseZIP64ExtraField(Fe),this.fileComment=Fe.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var Fe=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),Fe==0&&(this.dosPermissions=63&this.externalFileAttributes),Fe==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var Fe=Se(this.extraFields[1].value);this.uncompressedSize===Ue.MAX_VALUE_32BITS&&(this.uncompressedSize=Fe.readInt(8)),this.compressedSize===Ue.MAX_VALUE_32BITS&&(this.compressedSize=Fe.readInt(8)),this.localHeaderOffset===Ue.MAX_VALUE_32BITS&&(this.localHeaderOffset=Fe.readInt(8)),this.diskNumberStart===Ue.MAX_VALUE_32BITS&&(this.diskNumberStart=Fe.readInt(4))}},readExtraFields:function(Fe){var Te,ye,xe,Ee=Fe.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});Fe.index+4<Ee;)Te=Fe.readInt(2),ye=Fe.readInt(2),xe=Fe.readData(ye),this.extraFields[Te]={id:Te,length:ye,value:xe};Fe.setIndex(Ee)},handleUTF8:function(){var Fe=ve.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=oe.utf8decode(this.fileName),this.fileCommentStr=oe.utf8decode(this.fileComment);else{var Te=this.findExtraFieldUnicodePath();if(Te!==null)this.fileNameStr=Te;else{var ye=Ue.transformTo(Fe,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(ye)}var xe=this.findExtraFieldUnicodeComment();if(xe!==null)this.fileCommentStr=xe;else{var Ee=Ue.transformTo(Fe,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(Ee)}}},findExtraFieldUnicodePath:function(){var Fe=this.extraFields[28789];if(Fe){var Te=Se(Fe.value);return Te.readInt(1)!==1||Ce(this.fileName)!==Te.readInt(4)?null:oe.utf8decode(Te.readData(Fe.length-5))}return null},findExtraFieldUnicodeComment:function(){var Fe=this.extraFields[25461];if(Fe){var Te=Se(Fe.value);return Te.readInt(1)!==1||Ce(this.fileComment)!==Te.readInt(4)?null:oe.utf8decode(Te.readData(Fe.length-5))}return null}},Je.exports=Me},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(Le,Je,ze){"use strict";function Se(Te,ye,xe){this.name=Te,this.dir=xe.dir,this.date=xe.date,this.comment=xe.comment,this.unixPermissions=xe.unixPermissions,this.dosPermissions=xe.dosPermissions,this._data=ye,this._dataBinary=xe.binary,this.options={compression:xe.compression,compressionOptions:xe.compressionOptions}}var Ue=Le("./stream/StreamHelper"),fe=Le("./stream/DataWorker"),Ce=Le("./utf8"),oe=Le("./compressedObject"),Oe=Le("./stream/GenericWorker");Se.prototype={internalStream:function(Te){var ye=null,xe="string";try{if(!Te)throw new Error("No output type specified.");var Ee=(xe=Te.toLowerCase())==="string"||xe==="text";xe!=="binarystring"&&xe!=="text"||(xe="string"),ye=this._decompressWorker();var ke=!this._dataBinary;ke&&!Ee&&(ye=ye.pipe(new Ce.Utf8EncodeWorker)),!ke&&Ee&&(ye=ye.pipe(new Ce.Utf8DecodeWorker))}catch(Ke){(ye=new Oe("error")).error(Ke)}return new Ue(ye,xe,"")},async:function(Te,ye){return this.internalStream(Te).accumulate(ye)},nodeStream:function(Te,ye){return this.internalStream(Te||"nodebuffer").toNodejsStream(ye)},_compressWorker:function(Te,ye){if(this._data instanceof oe&&this._data.compression.magic===Te.magic)return this._data.getCompressedWorker();var xe=this._decompressWorker();return this._dataBinary||(xe=xe.pipe(new Ce.Utf8EncodeWorker)),oe.createWorkerFrom(xe,Te,ye)},_decompressWorker:function(){return this._data instanceof oe?this._data.getContentWorker():this._data instanceof Oe?this._data:new fe(this._data)}};for(var ve=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],Me=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},Fe=0;Fe<ve.length;Fe++)Se.prototype[ve[Fe]]=Me;Je.exports=Se},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(Le,Je,ze){(function(Se){"use strict";var Ue,fe,Ce=Se.MutationObserver||Se.WebKitMutationObserver;if(Ce){var oe=0,Oe=new Ce(Te),ve=Se.document.createTextNode("");Oe.observe(ve,{characterData:!0}),Ue=function(){ve.data=oe=++oe%2}}else if(Se.setImmediate||Se.MessageChannel===void 0)Ue="document"in Se&&"onreadystatechange"in Se.document.createElement("script")?function(){var ye=Se.document.createElement("script");ye.onreadystatechange=function(){Te(),ye.onreadystatechange=null,ye.parentNode.removeChild(ye),ye=null},Se.document.documentElement.appendChild(ye)}:function(){setTimeout(Te,0)};else{var Me=new Se.MessageChannel;Me.port1.onmessage=Te,Ue=function(){Me.port2.postMessage(0)}}var Fe=[];function Te(){var ye,xe;fe=!0;for(var Ee=Fe.length;Ee;){for(xe=Fe,Fe=[],ye=-1;++ye<Ee;)xe[ye]();Ee=Fe.length}fe=!1}Je.exports=function(ye){Fe.push(ye)!==1||fe||Ue()}}).call(this,typeof ae.g!="undefined"?ae.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(Le,Je,ze){"use strict";var Se=Le("immediate");function Ue(){}var fe={},Ce=["REJECTED"],oe=["FULFILLED"],Oe=["PENDING"];function ve(Ee){if(typeof Ee!="function")throw new TypeError("resolver must be a function");this.state=Oe,this.queue=[],this.outcome=void 0,Ee!==Ue&&ye(this,Ee)}function Me(Ee,ke,Ke){this.promise=Ee,typeof ke=="function"&&(this.onFulfilled=ke,this.callFulfilled=this.otherCallFulfilled),typeof Ke=="function"&&(this.onRejected=Ke,this.callRejected=this.otherCallRejected)}function Fe(Ee,ke,Ke){Se(function(){var Qe;try{Qe=ke(Ke)}catch(Re){return fe.reject(Ee,Re)}Qe===Ee?fe.reject(Ee,new TypeError("Cannot resolve promise with itself")):fe.resolve(Ee,Qe)})}function Te(Ee){var ke=Ee&&Ee.then;if(Ee&&(typeof Ee=="object"||typeof Ee=="function")&&typeof ke=="function")return function(){ke.apply(Ee,arguments)}}function ye(Ee,ke){var Ke=!1;function Qe(Ge){Ke||(Ke=!0,fe.reject(Ee,Ge))}function Re(Ge){Ke||(Ke=!0,fe.resolve(Ee,Ge))}var et=xe(function(){ke(Re,Qe)});et.status==="error"&&Qe(et.value)}function xe(Ee,ke){var Ke={};try{Ke.value=Ee(ke),Ke.status="success"}catch(Qe){Ke.status="error",Ke.value=Qe}return Ke}(Je.exports=ve).prototype.finally=function(Ee){if(typeof Ee!="function")return this;var ke=this.constructor;return this.then(function(Ke){return ke.resolve(Ee()).then(function(){return Ke})},function(Ke){return ke.resolve(Ee()).then(function(){throw Ke})})},ve.prototype.catch=function(Ee){return this.then(null,Ee)},ve.prototype.then=function(Ee,ke){if(typeof Ee!="function"&&this.state===oe||typeof ke!="function"&&this.state===Ce)return this;var Ke=new this.constructor(Ue);return this.state!==Oe?Fe(Ke,this.state===oe?Ee:ke,this.outcome):this.queue.push(new Me(Ke,Ee,ke)),Ke},Me.prototype.callFulfilled=function(Ee){fe.resolve(this.promise,Ee)},Me.prototype.otherCallFulfilled=function(Ee){Fe(this.promise,this.onFulfilled,Ee)},Me.prototype.callRejected=function(Ee){fe.reject(this.promise,Ee)},Me.prototype.otherCallRejected=function(Ee){Fe(this.promise,this.onRejected,Ee)},fe.resolve=function(Ee,ke){var Ke=xe(Te,ke);if(Ke.status==="error")return fe.reject(Ee,Ke.value);var Qe=Ke.value;if(Qe)ye(Ee,Qe);else{Ee.state=oe,Ee.outcome=ke;for(var Re=-1,et=Ee.queue.length;++Re<et;)Ee.queue[Re].callFulfilled(ke)}return Ee},fe.reject=function(Ee,ke){Ee.state=Ce,Ee.outcome=ke;for(var Ke=-1,Qe=Ee.queue.length;++Ke<Qe;)Ee.queue[Ke].callRejected(ke);return Ee},ve.resolve=function(Ee){return Ee instanceof this?Ee:fe.resolve(new this(Ue),Ee)},ve.reject=function(Ee){var ke=new this(Ue);return fe.reject(ke,Ee)},ve.all=function(Ee){var ke=this;if(Object.prototype.toString.call(Ee)!=="[object Array]")return this.reject(new TypeError("must be an array"));var Ke=Ee.length,Qe=!1;if(!Ke)return this.resolve([]);for(var Re=new Array(Ke),et=0,Ge=-1,ut=new this(Ue);++Ge<Ke;)at(Ee[Ge],Ge);return ut;function at(ft,bt){ke.resolve(ft).then(function(He){Re[bt]=He,++et!==Ke||Qe||(Qe=!0,fe.resolve(ut,Re))},function(He){Qe||(Qe=!0,fe.reject(ut,He))})}},ve.race=function(Ee){var ke=this;if(Object.prototype.toString.call(Ee)!=="[object Array]")return this.reject(new TypeError("must be an array"));var Ke=Ee.length,Qe=!1;if(!Ke)return this.resolve([]);for(var Re=-1,et=new this(Ue);++Re<Ke;)Ge=Ee[Re],ke.resolve(Ge).then(function(ut){Qe||(Qe=!0,fe.resolve(et,ut))},function(ut){Qe||(Qe=!0,fe.reject(et,ut))});var Ge;return et}},{immediate:36}],38:[function(Le,Je,ze){"use strict";var Se={};(0,Le("./lib/utils/common").assign)(Se,Le("./lib/deflate"),Le("./lib/inflate"),Le("./lib/zlib/constants")),Je.exports=Se},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(Le,Je,ze){"use strict";var Se=Le("./zlib/deflate"),Ue=Le("./utils/common"),fe=Le("./utils/strings"),Ce=Le("./zlib/messages"),oe=Le("./zlib/zstream"),Oe=Object.prototype.toString,ve=0,Me=-1,Fe=0,Te=8;function ye(Ee){if(!(this instanceof ye))return new ye(Ee);this.options=Ue.assign({level:Me,method:Te,chunkSize:16384,windowBits:15,memLevel:8,strategy:Fe,to:""},Ee||{});var ke=this.options;ke.raw&&0<ke.windowBits?ke.windowBits=-ke.windowBits:ke.gzip&&0<ke.windowBits&&ke.windowBits<16&&(ke.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new oe,this.strm.avail_out=0;var Ke=Se.deflateInit2(this.strm,ke.level,ke.method,ke.windowBits,ke.memLevel,ke.strategy);if(Ke!==ve)throw new Error(Ce[Ke]);if(ke.header&&Se.deflateSetHeader(this.strm,ke.header),ke.dictionary){var Qe;if(Qe=typeof ke.dictionary=="string"?fe.string2buf(ke.dictionary):Oe.call(ke.dictionary)==="[object ArrayBuffer]"?new Uint8Array(ke.dictionary):ke.dictionary,(Ke=Se.deflateSetDictionary(this.strm,Qe))!==ve)throw new Error(Ce[Ke]);this._dict_set=!0}}function xe(Ee,ke){var Ke=new ye(ke);if(Ke.push(Ee,!0),Ke.err)throw Ke.msg||Ce[Ke.err];return Ke.result}ye.prototype.push=function(Ee,ke){var Ke,Qe,Re=this.strm,et=this.options.chunkSize;if(this.ended)return!1;Qe=ke===~~ke?ke:ke===!0?4:0,typeof Ee=="string"?Re.input=fe.string2buf(Ee):Oe.call(Ee)==="[object ArrayBuffer]"?Re.input=new Uint8Array(Ee):Re.input=Ee,Re.next_in=0,Re.avail_in=Re.input.length;do{if(Re.avail_out===0&&(Re.output=new Ue.Buf8(et),Re.next_out=0,Re.avail_out=et),(Ke=Se.deflate(Re,Qe))!==1&&Ke!==ve)return this.onEnd(Ke),!(this.ended=!0);Re.avail_out!==0&&(Re.avail_in!==0||Qe!==4&&Qe!==2)||(this.options.to==="string"?this.onData(fe.buf2binstring(Ue.shrinkBuf(Re.output,Re.next_out))):this.onData(Ue.shrinkBuf(Re.output,Re.next_out)))}while((0<Re.avail_in||Re.avail_out===0)&&Ke!==1);return Qe===4?(Ke=Se.deflateEnd(this.strm),this.onEnd(Ke),this.ended=!0,Ke===ve):Qe!==2||(this.onEnd(ve),!(Re.avail_out=0))},ye.prototype.onData=function(Ee){this.chunks.push(Ee)},ye.prototype.onEnd=function(Ee){Ee===ve&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Ue.flattenChunks(this.chunks)),this.chunks=[],this.err=Ee,this.msg=this.strm.msg},ze.Deflate=ye,ze.deflate=xe,ze.deflateRaw=function(Ee,ke){return(ke=ke||{}).raw=!0,xe(Ee,ke)},ze.gzip=function(Ee,ke){return(ke=ke||{}).gzip=!0,xe(Ee,ke)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(Le,Je,ze){"use strict";var Se=Le("./zlib/inflate"),Ue=Le("./utils/common"),fe=Le("./utils/strings"),Ce=Le("./zlib/constants"),oe=Le("./zlib/messages"),Oe=Le("./zlib/zstream"),ve=Le("./zlib/gzheader"),Me=Object.prototype.toString;function Fe(ye){if(!(this instanceof Fe))return new Fe(ye);this.options=Ue.assign({chunkSize:16384,windowBits:0,to:""},ye||{});var xe=this.options;xe.raw&&0<=xe.windowBits&&xe.windowBits<16&&(xe.windowBits=-xe.windowBits,xe.windowBits===0&&(xe.windowBits=-15)),!(0<=xe.windowBits&&xe.windowBits<16)||ye&&ye.windowBits||(xe.windowBits+=32),15<xe.windowBits&&xe.windowBits<48&&!(15&xe.windowBits)&&(xe.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Oe,this.strm.avail_out=0;var Ee=Se.inflateInit2(this.strm,xe.windowBits);if(Ee!==Ce.Z_OK)throw new Error(oe[Ee]);this.header=new ve,Se.inflateGetHeader(this.strm,this.header)}function Te(ye,xe){var Ee=new Fe(xe);if(Ee.push(ye,!0),Ee.err)throw Ee.msg||oe[Ee.err];return Ee.result}Fe.prototype.push=function(ye,xe){var Ee,ke,Ke,Qe,Re,et,Ge=this.strm,ut=this.options.chunkSize,at=this.options.dictionary,ft=!1;if(this.ended)return!1;ke=xe===~~xe?xe:xe===!0?Ce.Z_FINISH:Ce.Z_NO_FLUSH,typeof ye=="string"?Ge.input=fe.binstring2buf(ye):Me.call(ye)==="[object ArrayBuffer]"?Ge.input=new Uint8Array(ye):Ge.input=ye,Ge.next_in=0,Ge.avail_in=Ge.input.length;do{if(Ge.avail_out===0&&(Ge.output=new Ue.Buf8(ut),Ge.next_out=0,Ge.avail_out=ut),(Ee=Se.inflate(Ge,Ce.Z_NO_FLUSH))===Ce.Z_NEED_DICT&&at&&(et=typeof at=="string"?fe.string2buf(at):Me.call(at)==="[object ArrayBuffer]"?new Uint8Array(at):at,Ee=Se.inflateSetDictionary(this.strm,et)),Ee===Ce.Z_BUF_ERROR&&ft===!0&&(Ee=Ce.Z_OK,ft=!1),Ee!==Ce.Z_STREAM_END&&Ee!==Ce.Z_OK)return this.onEnd(Ee),!(this.ended=!0);Ge.next_out&&(Ge.avail_out!==0&&Ee!==Ce.Z_STREAM_END&&(Ge.avail_in!==0||ke!==Ce.Z_FINISH&&ke!==Ce.Z_SYNC_FLUSH)||(this.options.to==="string"?(Ke=fe.utf8border(Ge.output,Ge.next_out),Qe=Ge.next_out-Ke,Re=fe.buf2string(Ge.output,Ke),Ge.next_out=Qe,Ge.avail_out=ut-Qe,Qe&&Ue.arraySet(Ge.output,Ge.output,Ke,Qe,0),this.onData(Re)):this.onData(Ue.shrinkBuf(Ge.output,Ge.next_out)))),Ge.avail_in===0&&Ge.avail_out===0&&(ft=!0)}while((0<Ge.avail_in||Ge.avail_out===0)&&Ee!==Ce.Z_STREAM_END);return Ee===Ce.Z_STREAM_END&&(ke=Ce.Z_FINISH),ke===Ce.Z_FINISH?(Ee=Se.inflateEnd(this.strm),this.onEnd(Ee),this.ended=!0,Ee===Ce.Z_OK):ke!==Ce.Z_SYNC_FLUSH||(this.onEnd(Ce.Z_OK),!(Ge.avail_out=0))},Fe.prototype.onData=function(ye){this.chunks.push(ye)},Fe.prototype.onEnd=function(ye){ye===Ce.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Ue.flattenChunks(this.chunks)),this.chunks=[],this.err=ye,this.msg=this.strm.msg},ze.Inflate=Fe,ze.inflate=Te,ze.inflateRaw=function(ye,xe){return(xe=xe||{}).raw=!0,Te(ye,xe)},ze.ungzip=Te},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(Le,Je,ze){"use strict";var Se=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";ze.assign=function(Ce){for(var oe=Array.prototype.slice.call(arguments,1);oe.length;){var Oe=oe.shift();if(Oe){if(typeof Oe!="object")throw new TypeError(Oe+"must be non-object");for(var ve in Oe)Oe.hasOwnProperty(ve)&&(Ce[ve]=Oe[ve])}}return Ce},ze.shrinkBuf=function(Ce,oe){return Ce.length===oe?Ce:Ce.subarray?Ce.subarray(0,oe):(Ce.length=oe,Ce)};var Ue={arraySet:function(Ce,oe,Oe,ve,Me){if(oe.subarray&&Ce.subarray)Ce.set(oe.subarray(Oe,Oe+ve),Me);else for(var Fe=0;Fe<ve;Fe++)Ce[Me+Fe]=oe[Oe+Fe]},flattenChunks:function(Ce){var oe,Oe,ve,Me,Fe,Te;for(oe=ve=0,Oe=Ce.length;oe<Oe;oe++)ve+=Ce[oe].length;for(Te=new Uint8Array(ve),oe=Me=0,Oe=Ce.length;oe<Oe;oe++)Fe=Ce[oe],Te.set(Fe,Me),Me+=Fe.length;return Te}},fe={arraySet:function(Ce,oe,Oe,ve,Me){for(var Fe=0;Fe<ve;Fe++)Ce[Me+Fe]=oe[Oe+Fe]},flattenChunks:function(Ce){return[].concat.apply([],Ce)}};ze.setTyped=function(Ce){Ce?(ze.Buf8=Uint8Array,ze.Buf16=Uint16Array,ze.Buf32=Int32Array,ze.assign(ze,Ue)):(ze.Buf8=Array,ze.Buf16=Array,ze.Buf32=Array,ze.assign(ze,fe))},ze.setTyped(Se)},{}],42:[function(Le,Je,ze){"use strict";var Se=Le("./common"),Ue=!0,fe=!0;try{String.fromCharCode.apply(null,[0])}catch(ve){Ue=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(ve){fe=!1}for(var Ce=new Se.Buf8(256),oe=0;oe<256;oe++)Ce[oe]=252<=oe?6:248<=oe?5:240<=oe?4:224<=oe?3:192<=oe?2:1;function Oe(ve,Me){if(Me<65537&&(ve.subarray&&fe||!ve.subarray&&Ue))return String.fromCharCode.apply(null,Se.shrinkBuf(ve,Me));for(var Fe="",Te=0;Te<Me;Te++)Fe+=String.fromCharCode(ve[Te]);return Fe}Ce[254]=Ce[254]=1,ze.string2buf=function(ve){var Me,Fe,Te,ye,xe,Ee=ve.length,ke=0;for(ye=0;ye<Ee;ye++)(64512&(Fe=ve.charCodeAt(ye)))==55296&&ye+1<Ee&&(64512&(Te=ve.charCodeAt(ye+1)))==56320&&(Fe=65536+(Fe-55296<<10)+(Te-56320),ye++),ke+=Fe<128?1:Fe<2048?2:Fe<65536?3:4;for(Me=new Se.Buf8(ke),ye=xe=0;xe<ke;ye++)(64512&(Fe=ve.charCodeAt(ye)))==55296&&ye+1<Ee&&(64512&(Te=ve.charCodeAt(ye+1)))==56320&&(Fe=65536+(Fe-55296<<10)+(Te-56320),ye++),Fe<128?Me[xe++]=Fe:(Fe<2048?Me[xe++]=192|Fe>>>6:(Fe<65536?Me[xe++]=224|Fe>>>12:(Me[xe++]=240|Fe>>>18,Me[xe++]=128|Fe>>>12&63),Me[xe++]=128|Fe>>>6&63),Me[xe++]=128|63&Fe);return Me},ze.buf2binstring=function(ve){return Oe(ve,ve.length)},ze.binstring2buf=function(ve){for(var Me=new Se.Buf8(ve.length),Fe=0,Te=Me.length;Fe<Te;Fe++)Me[Fe]=ve.charCodeAt(Fe);return Me},ze.buf2string=function(ve,Me){var Fe,Te,ye,xe,Ee=Me||ve.length,ke=new Array(2*Ee);for(Fe=Te=0;Fe<Ee;)if((ye=ve[Fe++])<128)ke[Te++]=ye;else if(4<(xe=Ce[ye]))ke[Te++]=65533,Fe+=xe-1;else{for(ye&=xe===2?31:xe===3?15:7;1<xe&&Fe<Ee;)ye=ye<<6|63&ve[Fe++],xe--;1<xe?ke[Te++]=65533:ye<65536?ke[Te++]=ye:(ye-=65536,ke[Te++]=55296|ye>>10&1023,ke[Te++]=56320|1023&ye)}return Oe(ke,Te)},ze.utf8border=function(ve,Me){var Fe;for((Me=Me||ve.length)>ve.length&&(Me=ve.length),Fe=Me-1;0<=Fe&&(192&ve[Fe])==128;)Fe--;return Fe<0||Fe===0?Me:Fe+Ce[ve[Fe]]>Me?Fe:Me}},{"./common":41}],43:[function(Le,Je,ze){"use strict";Je.exports=function(Se,Ue,fe,Ce){for(var oe=65535&Se|0,Oe=Se>>>16&65535|0,ve=0;fe!==0;){for(fe-=ve=2e3<fe?2e3:fe;Oe=Oe+(oe=oe+Ue[Ce++]|0)|0,--ve;);oe%=65521,Oe%=65521}return oe|Oe<<16|0}},{}],44:[function(Le,Je,ze){"use strict";Je.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(Le,Je,ze){"use strict";var Se=function(){for(var Ue,fe=[],Ce=0;Ce<256;Ce++){Ue=Ce;for(var oe=0;oe<8;oe++)Ue=1&Ue?3988292384^Ue>>>1:Ue>>>1;fe[Ce]=Ue}return fe}();Je.exports=function(Ue,fe,Ce,oe){var Oe=Se,ve=oe+Ce;Ue^=-1;for(var Me=oe;Me<ve;Me++)Ue=Ue>>>8^Oe[255&(Ue^fe[Me])];return-1^Ue}},{}],46:[function(Le,Je,ze){"use strict";var Se,Ue=Le("../utils/common"),fe=Le("./trees"),Ce=Le("./adler32"),oe=Le("./crc32"),Oe=Le("./messages"),ve=0,Me=4,Fe=0,Te=-2,ye=-1,xe=4,Ee=2,ke=8,Ke=9,Qe=286,Re=30,et=19,Ge=2*Qe+1,ut=15,at=3,ft=258,bt=ft+at+1,He=42,pt=113,Ne=1,je=2,Ot=3,it=4;function ht(de,pe){return de.msg=Oe[pe],pe}function Bt(de){return(de<<1)-(4<de?9:0)}function We(de){for(var pe=de.length;0<=--pe;)de[pe]=0}function _e(de){var pe=de.state,ie=pe.pending;ie>de.avail_out&&(ie=de.avail_out),ie!==0&&(Ue.arraySet(de.output,pe.pending_buf,pe.pending_out,ie,de.next_out),de.next_out+=ie,pe.pending_out+=ie,de.total_out+=ie,de.avail_out-=ie,pe.pending-=ie,pe.pending===0&&(pe.pending_out=0))}function ot(de,pe){fe._tr_flush_block(de,0<=de.block_start?de.block_start:-1,de.strstart-de.block_start,pe),de.block_start=de.strstart,_e(de.strm)}function Zt(de,pe){de.pending_buf[de.pending++]=pe}function zt(de,pe){de.pending_buf[de.pending++]=pe>>>8&255,de.pending_buf[de.pending++]=255&pe}function tt(de,pe){var ie,ee,se=de.max_chain_length,le=de.strstart,Be=de.prev_length,$e=de.nice_match,st=de.strstart>de.w_size-bt?de.strstart-(de.w_size-bt):0,gt=de.window,mt=de.w_mask,Et=de.prev,Lt=de.strstart+ft,jt=gt[le+Be-1],Ct=gt[le+Be];de.prev_length>=de.good_match&&(se>>=2),$e>de.lookahead&&($e=de.lookahead);do if(gt[(ie=pe)+Be]===Ct&&gt[ie+Be-1]===jt&&gt[ie]===gt[le]&&gt[++ie]===gt[le+1]){le+=2,ie++;do;while(gt[++le]===gt[++ie]&&gt[++le]===gt[++ie]&&gt[++le]===gt[++ie]&&gt[++le]===gt[++ie]&&gt[++le]===gt[++ie]&&gt[++le]===gt[++ie]&&gt[++le]===gt[++ie]&&gt[++le]===gt[++ie]&&le<Lt);if(ee=ft-(Lt-le),le=Lt-ft,Be<ee){if(de.match_start=pe,$e<=(Be=ee))break;jt=gt[le+Be-1],Ct=gt[le+Be]}}while((pe=Et[pe&mt])>st&&--se!=0);return Be<=de.lookahead?Be:de.lookahead}function Nt(de){var pe,ie,ee,se,le,Be,$e,st,gt,mt,Et=de.w_size;do{if(se=de.window_size-de.lookahead-de.strstart,de.strstart>=Et+(Et-bt)){for(Ue.arraySet(de.window,de.window,Et,Et,0),de.match_start-=Et,de.strstart-=Et,de.block_start-=Et,pe=ie=de.hash_size;ee=de.head[--pe],de.head[pe]=Et<=ee?ee-Et:0,--ie;);for(pe=ie=Et;ee=de.prev[--pe],de.prev[pe]=Et<=ee?ee-Et:0,--ie;);se+=Et}if(de.strm.avail_in===0)break;if(Be=de.strm,$e=de.window,st=de.strstart+de.lookahead,gt=se,mt=void 0,mt=Be.avail_in,gt<mt&&(mt=gt),ie=mt===0?0:(Be.avail_in-=mt,Ue.arraySet($e,Be.input,Be.next_in,mt,st),Be.state.wrap===1?Be.adler=Ce(Be.adler,$e,mt,st):Be.state.wrap===2&&(Be.adler=oe(Be.adler,$e,mt,st)),Be.next_in+=mt,Be.total_in+=mt,mt),de.lookahead+=ie,de.lookahead+de.insert>=at)for(le=de.strstart-de.insert,de.ins_h=de.window[le],de.ins_h=(de.ins_h<<de.hash_shift^de.window[le+1])&de.hash_mask;de.insert&&(de.ins_h=(de.ins_h<<de.hash_shift^de.window[le+at-1])&de.hash_mask,de.prev[le&de.w_mask]=de.head[de.ins_h],de.head[de.ins_h]=le,le++,de.insert--,!(de.lookahead+de.insert<at)););}while(de.lookahead<bt&&de.strm.avail_in!==0)}function Ut(de,pe){for(var ie,ee;;){if(de.lookahead<bt){if(Nt(de),de.lookahead<bt&&pe===ve)return Ne;if(de.lookahead===0)break}if(ie=0,de.lookahead>=at&&(de.ins_h=(de.ins_h<<de.hash_shift^de.window[de.strstart+at-1])&de.hash_mask,ie=de.prev[de.strstart&de.w_mask]=de.head[de.ins_h],de.head[de.ins_h]=de.strstart),ie!==0&&de.strstart-ie<=de.w_size-bt&&(de.match_length=tt(de,ie)),de.match_length>=at)if(ee=fe._tr_tally(de,de.strstart-de.match_start,de.match_length-at),de.lookahead-=de.match_length,de.match_length<=de.max_lazy_match&&de.lookahead>=at){for(de.match_length--;de.strstart++,de.ins_h=(de.ins_h<<de.hash_shift^de.window[de.strstart+at-1])&de.hash_mask,ie=de.prev[de.strstart&de.w_mask]=de.head[de.ins_h],de.head[de.ins_h]=de.strstart,--de.match_length!=0;);de.strstart++}else de.strstart+=de.match_length,de.match_length=0,de.ins_h=de.window[de.strstart],de.ins_h=(de.ins_h<<de.hash_shift^de.window[de.strstart+1])&de.hash_mask;else ee=fe._tr_tally(de,0,de.window[de.strstart]),de.lookahead--,de.strstart++;if(ee&&(ot(de,!1),de.strm.avail_out===0))return Ne}return de.insert=de.strstart<at-1?de.strstart:at-1,pe===Me?(ot(de,!0),de.strm.avail_out===0?Ot:it):de.last_lit&&(ot(de,!1),de.strm.avail_out===0)?Ne:je}function pn(de,pe){for(var ie,ee,se;;){if(de.lookahead<bt){if(Nt(de),de.lookahead<bt&&pe===ve)return Ne;if(de.lookahead===0)break}if(ie=0,de.lookahead>=at&&(de.ins_h=(de.ins_h<<de.hash_shift^de.window[de.strstart+at-1])&de.hash_mask,ie=de.prev[de.strstart&de.w_mask]=de.head[de.ins_h],de.head[de.ins_h]=de.strstart),de.prev_length=de.match_length,de.prev_match=de.match_start,de.match_length=at-1,ie!==0&&de.prev_length<de.max_lazy_match&&de.strstart-ie<=de.w_size-bt&&(de.match_length=tt(de,ie),de.match_length<=5&&(de.strategy===1||de.match_length===at&&4096<de.strstart-de.match_start)&&(de.match_length=at-1)),de.prev_length>=at&&de.match_length<=de.prev_length){for(se=de.strstart+de.lookahead-at,ee=fe._tr_tally(de,de.strstart-1-de.prev_match,de.prev_length-at),de.lookahead-=de.prev_length-1,de.prev_length-=2;++de.strstart<=se&&(de.ins_h=(de.ins_h<<de.hash_shift^de.window[de.strstart+at-1])&de.hash_mask,ie=de.prev[de.strstart&de.w_mask]=de.head[de.ins_h],de.head[de.ins_h]=de.strstart),--de.prev_length!=0;);if(de.match_available=0,de.match_length=at-1,de.strstart++,ee&&(ot(de,!1),de.strm.avail_out===0))return Ne}else if(de.match_available){if((ee=fe._tr_tally(de,0,de.window[de.strstart-1]))&&ot(de,!1),de.strstart++,de.lookahead--,de.strm.avail_out===0)return Ne}else de.match_available=1,de.strstart++,de.lookahead--}return de.match_available&&(ee=fe._tr_tally(de,0,de.window[de.strstart-1]),de.match_available=0),de.insert=de.strstart<at-1?de.strstart:at-1,pe===Me?(ot(de,!0),de.strm.avail_out===0?Ot:it):de.last_lit&&(ot(de,!1),de.strm.avail_out===0)?Ne:je}function kt(de,pe,ie,ee,se){this.good_length=de,this.max_lazy=pe,this.nice_length=ie,this.max_chain=ee,this.func=se}function mn(){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=ke,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 Ue.Buf16(2*Ge),this.dyn_dtree=new Ue.Buf16(2*(2*Re+1)),this.bl_tree=new Ue.Buf16(2*(2*et+1)),We(this.dyn_ltree),We(this.dyn_dtree),We(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Ue.Buf16(ut+1),this.heap=new Ue.Buf16(2*Qe+1),We(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Ue.Buf16(2*Qe+1),We(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 _t(de){var pe;return de&&de.state?(de.total_in=de.total_out=0,de.data_type=Ee,(pe=de.state).pending=0,pe.pending_out=0,pe.wrap<0&&(pe.wrap=-pe.wrap),pe.status=pe.wrap?He:pt,de.adler=pe.wrap===2?0:1,pe.last_flush=ve,fe._tr_init(pe),Fe):ht(de,Te)}function Cn(de){var pe=_t(de);return pe===Fe&&function(ie){ie.window_size=2*ie.w_size,We(ie.head),ie.max_lazy_match=Se[ie.level].max_lazy,ie.good_match=Se[ie.level].good_length,ie.nice_match=Se[ie.level].nice_length,ie.max_chain_length=Se[ie.level].max_chain,ie.strstart=0,ie.block_start=0,ie.lookahead=0,ie.insert=0,ie.match_length=ie.prev_length=at-1,ie.match_available=0,ie.ins_h=0}(de.state),pe}function an(de,pe,ie,ee,se,le){if(!de)return Te;var Be=1;if(pe===ye&&(pe=6),ee<0?(Be=0,ee=-ee):15<ee&&(Be=2,ee-=16),se<1||Ke<se||ie!==ke||ee<8||15<ee||pe<0||9<pe||le<0||xe<le)return ht(de,Te);ee===8&&(ee=9);var $e=new mn;return(de.state=$e).strm=de,$e.wrap=Be,$e.gzhead=null,$e.w_bits=ee,$e.w_size=1<<$e.w_bits,$e.w_mask=$e.w_size-1,$e.hash_bits=se+7,$e.hash_size=1<<$e.hash_bits,$e.hash_mask=$e.hash_size-1,$e.hash_shift=~~(($e.hash_bits+at-1)/at),$e.window=new Ue.Buf8(2*$e.w_size),$e.head=new Ue.Buf16($e.hash_size),$e.prev=new Ue.Buf16($e.w_size),$e.lit_bufsize=1<<se+6,$e.pending_buf_size=4*$e.lit_bufsize,$e.pending_buf=new Ue.Buf8($e.pending_buf_size),$e.d_buf=1*$e.lit_bufsize,$e.l_buf=3*$e.lit_bufsize,$e.level=pe,$e.strategy=le,$e.method=ie,Cn(de)}Se=[new kt(0,0,0,0,function(de,pe){var ie=65535;for(ie>de.pending_buf_size-5&&(ie=de.pending_buf_size-5);;){if(de.lookahead<=1){if(Nt(de),de.lookahead===0&&pe===ve)return Ne;if(de.lookahead===0)break}de.strstart+=de.lookahead,de.lookahead=0;var ee=de.block_start+ie;if((de.strstart===0||de.strstart>=ee)&&(de.lookahead=de.strstart-ee,de.strstart=ee,ot(de,!1),de.strm.avail_out===0)||de.strstart-de.block_start>=de.w_size-bt&&(ot(de,!1),de.strm.avail_out===0))return Ne}return de.insert=0,pe===Me?(ot(de,!0),de.strm.avail_out===0?Ot:it):(de.strstart>de.block_start&&(ot(de,!1),de.strm.avail_out),Ne)}),new kt(4,4,8,4,Ut),new kt(4,5,16,8,Ut),new kt(4,6,32,32,Ut),new kt(4,4,16,16,pn),new kt(8,16,32,32,pn),new kt(8,16,128,128,pn),new kt(8,32,128,256,pn),new kt(32,128,258,1024,pn),new kt(32,258,258,4096,pn)],ze.deflateInit=function(de,pe){return an(de,pe,ke,15,8,0)},ze.deflateInit2=an,ze.deflateReset=Cn,ze.deflateResetKeep=_t,ze.deflateSetHeader=function(de,pe){return de&&de.state?de.state.wrap!==2?Te:(de.state.gzhead=pe,Fe):Te},ze.deflate=function(de,pe){var ie,ee,se,le;if(!de||!de.state||5<pe||pe<0)return de?ht(de,Te):Te;if(ee=de.state,!de.output||!de.input&&de.avail_in!==0||ee.status===666&&pe!==Me)return ht(de,de.avail_out===0?-5:Te);if(ee.strm=de,ie=ee.last_flush,ee.last_flush=pe,ee.status===He)if(ee.wrap===2)de.adler=0,Zt(ee,31),Zt(ee,139),Zt(ee,8),ee.gzhead?(Zt(ee,(ee.gzhead.text?1:0)+(ee.gzhead.hcrc?2:0)+(ee.gzhead.extra?4:0)+(ee.gzhead.name?8:0)+(ee.gzhead.comment?16:0)),Zt(ee,255&ee.gzhead.time),Zt(ee,ee.gzhead.time>>8&255),Zt(ee,ee.gzhead.time>>16&255),Zt(ee,ee.gzhead.time>>24&255),Zt(ee,ee.level===9?2:2<=ee.strategy||ee.level<2?4:0),Zt(ee,255&ee.gzhead.os),ee.gzhead.extra&&ee.gzhead.extra.length&&(Zt(ee,255&ee.gzhead.extra.length),Zt(ee,ee.gzhead.extra.length>>8&255)),ee.gzhead.hcrc&&(de.adler=oe(de.adler,ee.pending_buf,ee.pending,0)),ee.gzindex=0,ee.status=69):(Zt(ee,0),Zt(ee,0),Zt(ee,0),Zt(ee,0),Zt(ee,0),Zt(ee,ee.level===9?2:2<=ee.strategy||ee.level<2?4:0),Zt(ee,3),ee.status=pt);else{var Be=ke+(ee.w_bits-8<<4)<<8;Be|=(2<=ee.strategy||ee.level<2?0:ee.level<6?1:ee.level===6?2:3)<<6,ee.strstart!==0&&(Be|=32),Be+=31-Be%31,ee.status=pt,zt(ee,Be),ee.strstart!==0&&(zt(ee,de.adler>>>16),zt(ee,65535&de.adler)),de.adler=1}if(ee.status===69)if(ee.gzhead.extra){for(se=ee.pending;ee.gzindex<(65535&ee.gzhead.extra.length)&&(ee.pending!==ee.pending_buf_size||(ee.gzhead.hcrc&&ee.pending>se&&(de.adler=oe(de.adler,ee.pending_buf,ee.pending-se,se)),_e(de),se=ee.pending,ee.pending!==ee.pending_buf_size));)Zt(ee,255&ee.gzhead.extra[ee.gzindex]),ee.gzindex++;ee.gzhead.hcrc&&ee.pending>se&&(de.adler=oe(de.adler,ee.pending_buf,ee.pending-se,se)),ee.gzindex===ee.gzhead.extra.length&&(ee.gzindex=0,ee.status=73)}else ee.status=73;if(ee.status===73)if(ee.gzhead.name){se=ee.pending;do{if(ee.pending===ee.pending_buf_size&&(ee.gzhead.hcrc&&ee.pending>se&&(de.adler=oe(de.adler,ee.pending_buf,ee.pending-se,se)),_e(de),se=ee.pending,ee.pending===ee.pending_buf_size)){le=1;break}le=ee.gzindex<ee.gzhead.name.length?255&ee.gzhead.name.charCodeAt(ee.gzindex++):0,Zt(ee,le)}while(le!==0);ee.gzhead.hcrc&&ee.pending>se&&(de.adler=oe(de.adler,ee.pending_buf,ee.pending-se,se)),le===0&&(ee.gzindex=0,ee.status=91)}else ee.status=91;if(ee.status===91)if(ee.gzhead.comment){se=ee.pending;do{if(ee.pending===ee.pending_buf_size&&(ee.gzhead.hcrc&&ee.pending>se&&(de.adler=oe(de.adler,ee.pending_buf,ee.pending-se,se)),_e(de),se=ee.pending,ee.pending===ee.pending_buf_size)){le=1;break}le=ee.gzindex<ee.gzhead.comment.length?255&ee.gzhead.comment.charCodeAt(ee.gzindex++):0,Zt(ee,le)}while(le!==0);ee.gzhead.hcrc&&ee.pending>se&&(de.adler=oe(de.adler,ee.pending_buf,ee.pending-se,se)),le===0&&(ee.status=103)}else ee.status=103;if(ee.status===103&&(ee.gzhead.hcrc?(ee.pending+2>ee.pending_buf_size&&_e(de),ee.pending+2<=ee.pending_buf_size&&(Zt(ee,255&de.adler),Zt(ee,de.adler>>8&255),de.adler=0,ee.status=pt)):ee.status=pt),ee.pending!==0){if(_e(de),de.avail_out===0)return ee.last_flush=-1,Fe}else if(de.avail_in===0&&Bt(pe)<=Bt(ie)&&pe!==Me)return ht(de,-5);if(ee.status===666&&de.avail_in!==0)return ht(de,-5);if(de.avail_in!==0||ee.lookahead!==0||pe!==ve&&ee.status!==666){var $e=ee.strategy===2?function(st,gt){for(var mt;;){if(st.lookahead===0&&(Nt(st),st.lookahead===0)){if(gt===ve)return Ne;break}if(st.match_length=0,mt=fe._tr_tally(st,0,st.window[st.strstart]),st.lookahead--,st.strstart++,mt&&(ot(st,!1),st.strm.avail_out===0))return Ne}return st.insert=0,gt===Me?(ot(st,!0),st.strm.avail_out===0?Ot:it):st.last_lit&&(ot(st,!1),st.strm.avail_out===0)?Ne:je}(ee,pe):ee.strategy===3?function(st,gt){for(var mt,Et,Lt,jt,Ct=st.window;;){if(st.lookahead<=ft){if(Nt(st),st.lookahead<=ft&&gt===ve)return Ne;if(st.lookahead===0)break}if(st.match_length=0,st.lookahead>=at&&0<st.strstart&&(Et=Ct[Lt=st.strstart-1])===Ct[++Lt]&&Et===Ct[++Lt]&&Et===Ct[++Lt]){jt=st.strstart+ft;do;while(Et===Ct[++Lt]&&Et===Ct[++Lt]&&Et===Ct[++Lt]&&Et===Ct[++Lt]&&Et===Ct[++Lt]&&Et===Ct[++Lt]&&Et===Ct[++Lt]&&Et===Ct[++Lt]&&Lt<jt);st.match_length=ft-(jt-Lt),st.match_length>st.lookahead&&(st.match_length=st.lookahead)}if(st.match_length>=at?(mt=fe._tr_tally(st,1,st.match_length-at),st.lookahead-=st.match_length,st.strstart+=st.match_length,st.match_length=0):(mt=fe._tr_tally(st,0,st.window[st.strstart]),st.lookahead--,st.strstart++),mt&&(ot(st,!1),st.strm.avail_out===0))return Ne}return st.insert=0,gt===Me?(ot(st,!0),st.strm.avail_out===0?Ot:it):st.last_lit&&(ot(st,!1),st.strm.avail_out===0)?Ne:je}(ee,pe):Se[ee.level].func(ee,pe);if($e!==Ot&&$e!==it||(ee.status=666),$e===Ne||$e===Ot)return de.avail_out===0&&(ee.last_flush=-1),Fe;if($e===je&&(pe===1?fe._tr_align(ee):pe!==5&&(fe._tr_stored_block(ee,0,0,!1),pe===3&&(We(ee.head),ee.lookahead===0&&(ee.strstart=0,ee.block_start=0,ee.insert=0))),_e(de),de.avail_out===0))return ee.last_flush=-1,Fe}return pe!==Me?Fe:ee.wrap<=0?1:(ee.wrap===2?(Zt(ee,255&de.adler),Zt(ee,de.adler>>8&255),Zt(ee,de.adler>>16&255),Zt(ee,de.adler>>24&255),Zt(ee,255&de.total_in),Zt(ee,de.total_in>>8&255),Zt(ee,de.total_in>>16&255),Zt(ee,de.total_in>>24&255)):(zt(ee,de.adler>>>16),zt(ee,65535&de.adler)),_e(de),0<ee.wrap&&(ee.wrap=-ee.wrap),ee.pending!==0?Fe:1)},ze.deflateEnd=function(de){var pe;return de&&de.state?(pe=de.state.status)!==He&&pe!==69&&pe!==73&&pe!==91&&pe!==103&&pe!==pt&&pe!==666?ht(de,Te):(de.state=null,pe===pt?ht(de,-3):Fe):Te},ze.deflateSetDictionary=function(de,pe){var ie,ee,se,le,Be,$e,st,gt,mt=pe.length;if(!de||!de.state||(le=(ie=de.state).wrap)===2||le===1&&ie.status!==He||ie.lookahead)return Te;for(le===1&&(de.adler=Ce(de.adler,pe,mt,0)),ie.wrap=0,mt>=ie.w_size&&(le===0&&(We(ie.head),ie.strstart=0,ie.block_start=0,ie.insert=0),gt=new Ue.Buf8(ie.w_size),Ue.arraySet(gt,pe,mt-ie.w_size,ie.w_size,0),pe=gt,mt=ie.w_size),Be=de.avail_in,$e=de.next_in,st=de.input,de.avail_in=mt,de.next_in=0,de.input=pe,Nt(ie);ie.lookahead>=at;){for(ee=ie.strstart,se=ie.lookahead-(at-1);ie.ins_h=(ie.ins_h<<ie.hash_shift^ie.window[ee+at-1])&ie.hash_mask,ie.prev[ee&ie.w_mask]=ie.head[ie.ins_h],ie.head[ie.ins_h]=ee,ee++,--se;);ie.strstart=ee,ie.lookahead=at-1,Nt(ie)}return ie.strstart+=ie.lookahead,ie.block_start=ie.strstart,ie.insert=ie.lookahead,ie.lookahead=0,ie.match_length=ie.prev_length=at-1,ie.match_available=0,de.next_in=$e,de.input=st,de.avail_in=Be,ie.wrap=le,Fe},ze.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(Le,Je,ze){"use strict";Je.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(Le,Je,ze){"use strict";Je.exports=function(Se,Ue){var fe,Ce,oe,Oe,ve,Me,Fe,Te,ye,xe,Ee,ke,Ke,Qe,Re,et,Ge,ut,at,ft,bt,He,pt,Ne,je;fe=Se.state,Ce=Se.next_in,Ne=Se.input,oe=Ce+(Se.avail_in-5),Oe=Se.next_out,je=Se.output,ve=Oe-(Ue-Se.avail_out),Me=Oe+(Se.avail_out-257),Fe=fe.dmax,Te=fe.wsize,ye=fe.whave,xe=fe.wnext,Ee=fe.window,ke=fe.hold,Ke=fe.bits,Qe=fe.lencode,Re=fe.distcode,et=(1<<fe.lenbits)-1,Ge=(1<<fe.distbits)-1;e:do{Ke<15&&(ke+=Ne[Ce++]<<Ke,Ke+=8,ke+=Ne[Ce++]<<Ke,Ke+=8),ut=Qe[ke&et];t:for(;;){if(ke>>>=at=ut>>>24,Ke-=at,(at=ut>>>16&255)===0)je[Oe++]=65535&ut;else{if(!(16&at)){if(!(64&at)){ut=Qe[(65535&ut)+(ke&(1<<at)-1)];continue t}if(32&at){fe.mode=12;break e}Se.msg="invalid literal/length code",fe.mode=30;break e}ft=65535&ut,(at&=15)&&(Ke<at&&(ke+=Ne[Ce++]<<Ke,Ke+=8),ft+=ke&(1<<at)-1,ke>>>=at,Ke-=at),Ke<15&&(ke+=Ne[Ce++]<<Ke,Ke+=8,ke+=Ne[Ce++]<<Ke,Ke+=8),ut=Re[ke&Ge];n:for(;;){if(ke>>>=at=ut>>>24,Ke-=at,!(16&(at=ut>>>16&255))){if(!(64&at)){ut=Re[(65535&ut)+(ke&(1<<at)-1)];continue n}Se.msg="invalid distance code",fe.mode=30;break e}if(bt=65535&ut,Ke<(at&=15)&&(ke+=Ne[Ce++]<<Ke,(Ke+=8)<at&&(ke+=Ne[Ce++]<<Ke,Ke+=8)),Fe<(bt+=ke&(1<<at)-1)){Se.msg="invalid distance too far back",fe.mode=30;break e}if(ke>>>=at,Ke-=at,(at=Oe-ve)<bt){if(ye<(at=bt-at)&&fe.sane){Se.msg="invalid distance too far back",fe.mode=30;break e}if(pt=Ee,(He=0)===xe){if(He+=Te-at,at<ft){for(ft-=at;je[Oe++]=Ee[He++],--at;);He=Oe-bt,pt=je}}else if(xe<at){if(He+=Te+xe-at,(at-=xe)<ft){for(ft-=at;je[Oe++]=Ee[He++],--at;);if(He=0,xe<ft){for(ft-=at=xe;je[Oe++]=Ee[He++],--at;);He=Oe-bt,pt=je}}}else if(He+=xe-at,at<ft){for(ft-=at;je[Oe++]=Ee[He++],--at;);He=Oe-bt,pt=je}for(;2<ft;)je[Oe++]=pt[He++],je[Oe++]=pt[He++],je[Oe++]=pt[He++],ft-=3;ft&&(je[Oe++]=pt[He++],1<ft&&(je[Oe++]=pt[He++]))}else{for(He=Oe-bt;je[Oe++]=je[He++],je[Oe++]=je[He++],je[Oe++]=je[He++],2<(ft-=3););ft&&(je[Oe++]=je[He++],1<ft&&(je[Oe++]=je[He++]))}break}}break}}while(Ce<oe&&Oe<Me);Ce-=ft=Ke>>3,ke&=(1<<(Ke-=ft<<3))-1,Se.next_in=Ce,Se.next_out=Oe,Se.avail_in=Ce<oe?oe-Ce+5:5-(Ce-oe),Se.avail_out=Oe<Me?Me-Oe+257:257-(Oe-Me),fe.hold=ke,fe.bits=Ke}},{}],49:[function(Le,Je,ze){"use strict";var Se=Le("../utils/common"),Ue=Le("./adler32"),fe=Le("./crc32"),Ce=Le("./inffast"),oe=Le("./inftrees"),Oe=1,ve=2,Me=0,Fe=-2,Te=1,ye=852,xe=592;function Ee(He){return(He>>>24&255)+(He>>>8&65280)+((65280&He)<<8)+((255&He)<<24)}function ke(){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 Se.Buf16(320),this.work=new Se.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Ke(He){var pt;return He&&He.state?(pt=He.state,He.total_in=He.total_out=pt.total=0,He.msg="",pt.wrap&&(He.adler=1&pt.wrap),pt.mode=Te,pt.last=0,pt.havedict=0,pt.dmax=32768,pt.head=null,pt.hold=0,pt.bits=0,pt.lencode=pt.lendyn=new Se.Buf32(ye),pt.distcode=pt.distdyn=new Se.Buf32(xe),pt.sane=1,pt.back=-1,Me):Fe}function Qe(He){var pt;return He&&He.state?((pt=He.state).wsize=0,pt.whave=0,pt.wnext=0,Ke(He)):Fe}function Re(He,pt){var Ne,je;return He&&He.state?(je=He.state,pt<0?(Ne=0,pt=-pt):(Ne=1+(pt>>4),pt<48&&(pt&=15)),pt&&(pt<8||15<pt)?Fe:(je.window!==null&&je.wbits!==pt&&(je.window=null),je.wrap=Ne,je.wbits=pt,Qe(He))):Fe}function et(He,pt){var Ne,je;return He?(je=new ke,(He.state=je).window=null,(Ne=Re(He,pt))!==Me&&(He.state=null),Ne):Fe}var Ge,ut,at=!0;function ft(He){if(at){var pt;for(Ge=new Se.Buf32(512),ut=new Se.Buf32(32),pt=0;pt<144;)He.lens[pt++]=8;for(;pt<256;)He.lens[pt++]=9;for(;pt<280;)He.lens[pt++]=7;for(;pt<288;)He.lens[pt++]=8;for(oe(Oe,He.lens,0,288,Ge,0,He.work,{bits:9}),pt=0;pt<32;)He.lens[pt++]=5;oe(ve,He.lens,0,32,ut,0,He.work,{bits:5}),at=!1}He.lencode=Ge,He.lenbits=9,He.distcode=ut,He.distbits=5}function bt(He,pt,Ne,je){var Ot,it=He.state;return it.window===null&&(it.wsize=1<<it.wbits,it.wnext=0,it.whave=0,it.window=new Se.Buf8(it.wsize)),je>=it.wsize?(Se.arraySet(it.window,pt,Ne-it.wsize,it.wsize,0),it.wnext=0,it.whave=it.wsize):(je<(Ot=it.wsize-it.wnext)&&(Ot=je),Se.arraySet(it.window,pt,Ne-je,Ot,it.wnext),(je-=Ot)?(Se.arraySet(it.window,pt,Ne-je,je,0),it.wnext=je,it.whave=it.wsize):(it.wnext+=Ot,it.wnext===it.wsize&&(it.wnext=0),it.whave<it.wsize&&(it.whave+=Ot))),0}ze.inflateReset=Qe,ze.inflateReset2=Re,ze.inflateResetKeep=Ke,ze.inflateInit=function(He){return et(He,15)},ze.inflateInit2=et,ze.inflate=function(He,pt){var Ne,je,Ot,it,ht,Bt,We,_e,ot,Zt,zt,tt,Nt,Ut,pn,kt,mn,_t,Cn,an,de,pe,ie,ee,se=0,le=new Se.Buf8(4),Be=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!He||!He.state||!He.output||!He.input&&He.avail_in!==0)return Fe;(Ne=He.state).mode===12&&(Ne.mode=13),ht=He.next_out,Ot=He.output,We=He.avail_out,it=He.next_in,je=He.input,Bt=He.avail_in,_e=Ne.hold,ot=Ne.bits,Zt=Bt,zt=We,pe=Me;e:for(;;)switch(Ne.mode){case Te:if(Ne.wrap===0){Ne.mode=13;break}for(;ot<16;){if(Bt===0)break e;Bt--,_e+=je[it++]<<ot,ot+=8}if(2&Ne.wrap&&_e===35615){le[Ne.check=0]=255&_e,le[1]=_e>>>8&255,Ne.check=fe(Ne.check,le,2,0),ot=_e=0,Ne.mode=2;break}if(Ne.flags=0,Ne.head&&(Ne.head.done=!1),!(1&Ne.wrap)||(((255&_e)<<8)+(_e>>8))%31){He.msg="incorrect header check",Ne.mode=30;break}if((15&_e)!=8){He.msg="unknown compression method",Ne.mode=30;break}if(ot-=4,de=8+(15&(_e>>>=4)),Ne.wbits===0)Ne.wbits=de;else if(de>Ne.wbits){He.msg="invalid window size",Ne.mode=30;break}Ne.dmax=1<<de,He.adler=Ne.check=1,Ne.mode=512&_e?10:12,ot=_e=0;break;case 2:for(;ot<16;){if(Bt===0)break e;Bt--,_e+=je[it++]<<ot,ot+=8}if(Ne.flags=_e,(255&Ne.flags)!=8){He.msg="unknown compression method",Ne.mode=30;break}if(57344&Ne.flags){He.msg="unknown header flags set",Ne.mode=30;break}Ne.head&&(Ne.head.text=_e>>8&1),512&Ne.flags&&(le[0]=255&_e,le[1]=_e>>>8&255,Ne.check=fe(Ne.check,le,2,0)),ot=_e=0,Ne.mode=3;case 3:for(;ot<32;){if(Bt===0)break e;Bt--,_e+=je[it++]<<ot,ot+=8}Ne.head&&(Ne.head.time=_e),512&Ne.flags&&(le[0]=255&_e,le[1]=_e>>>8&255,le[2]=_e>>>16&255,le[3]=_e>>>24&255,Ne.check=fe(Ne.check,le,4,0)),ot=_e=0,Ne.mode=4;case 4:for(;ot<16;){if(Bt===0)break e;Bt--,_e+=je[it++]<<ot,ot+=8}Ne.head&&(Ne.head.xflags=255&_e,Ne.head.os=_e>>8),512&Ne.flags&&(le[0]=255&_e,le[1]=_e>>>8&255,Ne.check=fe(Ne.check,le,2,0)),ot=_e=0,Ne.mode=5;case 5:if(1024&Ne.flags){for(;ot<16;){if(Bt===0)break e;Bt--,_e+=je[it++]<<ot,ot+=8}Ne.length=_e,Ne.head&&(Ne.head.extra_len=_e),512&Ne.flags&&(le[0]=255&_e,le[1]=_e>>>8&255,Ne.check=fe(Ne.check,le,2,0)),ot=_e=0}else Ne.head&&(Ne.head.extra=null);Ne.mode=6;case 6:if(1024&Ne.flags&&(Bt<(tt=Ne.length)&&(tt=Bt),tt&&(Ne.head&&(de=Ne.head.extra_len-Ne.length,Ne.head.extra||(Ne.head.extra=new Array(Ne.head.extra_len)),Se.arraySet(Ne.head.extra,je,it,tt,de)),512&Ne.flags&&(Ne.check=fe(Ne.check,je,tt,it)),Bt-=tt,it+=tt,Ne.length-=tt),Ne.length))break e;Ne.length=0,Ne.mode=7;case 7:if(2048&Ne.flags){if(Bt===0)break e;for(tt=0;de=je[it+tt++],Ne.head&&de&&Ne.length<65536&&(Ne.head.name+=String.fromCharCode(de)),de&&tt<Bt;);if(512&Ne.flags&&(Ne.check=fe(Ne.check,je,tt,it)),Bt-=tt,it+=tt,de)break e}else Ne.head&&(Ne.head.name=null);Ne.length=0,Ne.mode=8;case 8:if(4096&Ne.flags){if(Bt===0)break e;for(tt=0;de=je[it+tt++],Ne.head&&de&&Ne.length<65536&&(Ne.head.comment+=String.fromCharCode(de)),de&&tt<Bt;);if(512&Ne.flags&&(Ne.check=fe(Ne.check,je,tt,it)),Bt-=tt,it+=tt,de)break e}else Ne.head&&(Ne.head.comment=null);Ne.mode=9;case 9:if(512&Ne.flags){for(;ot<16;){if(Bt===0)break e;Bt--,_e+=je[it++]<<ot,ot+=8}if(_e!==(65535&Ne.check)){He.msg="header crc mismatch",Ne.mode=30;break}ot=_e=0}Ne.head&&(Ne.head.hcrc=Ne.flags>>9&1,Ne.head.done=!0),He.adler=Ne.check=0,Ne.mode=12;break;case 10:for(;ot<32;){if(Bt===0)break e;Bt--,_e+=je[it++]<<ot,ot+=8}He.adler=Ne.check=Ee(_e),ot=_e=0,Ne.mode=11;case 11:if(Ne.havedict===0)return He.next_out=ht,He.avail_out=We,He.next_in=it,He.avail_in=Bt,Ne.hold=_e,Ne.bits=ot,2;He.adler=Ne.check=1,Ne.mode=12;case 12:if(pt===5||pt===6)break e;case 13:if(Ne.last){_e>>>=7&ot,ot-=7&ot,Ne.mode=27;break}for(;ot<3;){if(Bt===0)break e;Bt--,_e+=je[it++]<<ot,ot+=8}switch(Ne.last=1&_e,ot-=1,3&(_e>>>=1)){case 0:Ne.mode=14;break;case 1:if(ft(Ne),Ne.mode=20,pt!==6)break;_e>>>=2,ot-=2;break e;case 2:Ne.mode=17;break;case 3:He.msg="invalid block type",Ne.mode=30}_e>>>=2,ot-=2;break;case 14:for(_e>>>=7&ot,ot-=7&ot;ot<32;){if(Bt===0)break e;Bt--,_e+=je[it++]<<ot,ot+=8}if((65535&_e)!=(_e>>>16^65535)){He.msg="invalid stored block lengths",Ne.mode=30;break}if(Ne.length=65535&_e,ot=_e=0,Ne.mode=15,pt===6)break e;case 15:Ne.mode=16;case 16:if(tt=Ne.length){if(Bt<tt&&(tt=Bt),We<tt&&(tt=We),tt===0)break e;Se.arraySet(Ot,je,it,tt,ht),Bt-=tt,it+=tt,We-=tt,ht+=tt,Ne.length-=tt;break}Ne.mode=12;break;case 17:for(;ot<14;){if(Bt===0)break e;Bt--,_e+=je[it++]<<ot,ot+=8}if(Ne.nlen=257+(31&_e),_e>>>=5,ot-=5,Ne.ndist=1+(31&_e),_e>>>=5,ot-=5,Ne.ncode=4+(15&_e),_e>>>=4,ot-=4,286<Ne.nlen||30<Ne.ndist){He.msg="too many length or distance symbols",Ne.mode=30;break}Ne.have=0,Ne.mode=18;case 18:for(;Ne.have<Ne.ncode;){for(;ot<3;){if(Bt===0)break e;Bt--,_e+=je[it++]<<ot,ot+=8}Ne.lens[Be[Ne.have++]]=7&_e,_e>>>=3,ot-=3}for(;Ne.have<19;)Ne.lens[Be[Ne.have++]]=0;if(Ne.lencode=Ne.lendyn,Ne.lenbits=7,ie={bits:Ne.lenbits},pe=oe(0,Ne.lens,0,19,Ne.lencode,0,Ne.work,ie),Ne.lenbits=ie.bits,pe){He.msg="invalid code lengths set",Ne.mode=30;break}Ne.have=0,Ne.mode=19;case 19:for(;Ne.have<Ne.nlen+Ne.ndist;){for(;kt=(se=Ne.lencode[_e&(1<<Ne.lenbits)-1])>>>16&255,mn=65535&se,!((pn=se>>>24)<=ot);){if(Bt===0)break e;Bt--,_e+=je[it++]<<ot,ot+=8}if(mn<16)_e>>>=pn,ot-=pn,Ne.lens[Ne.have++]=mn;else{if(mn===16){for(ee=pn+2;ot<ee;){if(Bt===0)break e;Bt--,_e+=je[it++]<<ot,ot+=8}if(_e>>>=pn,ot-=pn,Ne.have===0){He.msg="invalid bit length repeat",Ne.mode=30;break}de=Ne.lens[Ne.have-1],tt=3+(3&_e),_e>>>=2,ot-=2}else if(mn===17){for(ee=pn+3;ot<ee;){if(Bt===0)break e;Bt--,_e+=je[it++]<<ot,ot+=8}ot-=pn,de=0,tt=3+(7&(_e>>>=pn)),_e>>>=3,ot-=3}else{for(ee=pn+7;ot<ee;){if(Bt===0)break e;Bt--,_e+=je[it++]<<ot,ot+=8}ot-=pn,de=0,tt=11+(127&(_e>>>=pn)),_e>>>=7,ot-=7}if(Ne.have+tt>Ne.nlen+Ne.ndist){He.msg="invalid bit length repeat",Ne.mode=30;break}for(;tt--;)Ne.lens[Ne.have++]=de}}if(Ne.mode===30)break;if(Ne.lens[256]===0){He.msg="invalid code -- missing end-of-block",Ne.mode=30;break}if(Ne.lenbits=9,ie={bits:Ne.lenbits},pe=oe(Oe,Ne.lens,0,Ne.nlen,Ne.lencode,0,Ne.work,ie),Ne.lenbits=ie.bits,pe){He.msg="invalid literal/lengths set",Ne.mode=30;break}if(Ne.distbits=6,Ne.distcode=Ne.distdyn,ie={bits:Ne.distbits},pe=oe(ve,Ne.lens,Ne.nlen,Ne.ndist,Ne.distcode,0,Ne.work,ie),Ne.distbits=ie.bits,pe){He.msg="invalid distances set",Ne.mode=30;break}if(Ne.mode=20,pt===6)break e;case 20:Ne.mode=21;case 21:if(6<=Bt&&258<=We){He.next_out=ht,He.avail_out=We,He.next_in=it,He.avail_in=Bt,Ne.hold=_e,Ne.bits=ot,Ce(He,zt),ht=He.next_out,Ot=He.output,We=He.avail_out,it=He.next_in,je=He.input,Bt=He.avail_in,_e=Ne.hold,ot=Ne.bits,Ne.mode===12&&(Ne.back=-1);break}for(Ne.back=0;kt=(se=Ne.lencode[_e&(1<<Ne.lenbits)-1])>>>16&255,mn=65535&se,!((pn=se>>>24)<=ot);){if(Bt===0)break e;Bt--,_e+=je[it++]<<ot,ot+=8}if(kt&&!(240&kt)){for(_t=pn,Cn=kt,an=mn;kt=(se=Ne.lencode[an+((_e&(1<<_t+Cn)-1)>>_t)])>>>16&255,mn=65535&se,!(_t+(pn=se>>>24)<=ot);){if(Bt===0)break e;Bt--,_e+=je[it++]<<ot,ot+=8}_e>>>=_t,ot-=_t,Ne.back+=_t}if(_e>>>=pn,ot-=pn,Ne.back+=pn,Ne.length=mn,kt===0){Ne.mode=26;break}if(32&kt){Ne.back=-1,Ne.mode=12;break}if(64&kt){He.msg="invalid literal/length code",Ne.mode=30;break}Ne.extra=15&kt,Ne.mode=22;case 22:if(Ne.extra){for(ee=Ne.extra;ot<ee;){if(Bt===0)break e;Bt--,_e+=je[it++]<<ot,ot+=8}Ne.length+=_e&(1<<Ne.extra)-1,_e>>>=Ne.extra,ot-=Ne.extra,Ne.back+=Ne.extra}Ne.was=Ne.length,Ne.mode=23;case 23:for(;kt=(se=Ne.distcode[_e&(1<<Ne.distbits)-1])>>>16&255,mn=65535&se,!((pn=se>>>24)<=ot);){if(Bt===0)break e;Bt--,_e+=je[it++]<<ot,ot+=8}if(!(240&kt)){for(_t=pn,Cn=kt,an=mn;kt=(se=Ne.distcode[an+((_e&(1<<_t+Cn)-1)>>_t)])>>>16&255,mn=65535&se,!(_t+(pn=se>>>24)<=ot);){if(Bt===0)break e;Bt--,_e+=je[it++]<<ot,ot+=8}_e>>>=_t,ot-=_t,Ne.back+=_t}if(_e>>>=pn,ot-=pn,Ne.back+=pn,64&kt){He.msg="invalid distance code",Ne.mode=30;break}Ne.offset=mn,Ne.extra=15&kt,Ne.mode=24;case 24:if(Ne.extra){for(ee=Ne.extra;ot<ee;){if(Bt===0)break e;Bt--,_e+=je[it++]<<ot,ot+=8}Ne.offset+=_e&(1<<Ne.extra)-1,_e>>>=Ne.extra,ot-=Ne.extra,Ne.back+=Ne.extra}if(Ne.offset>Ne.dmax){He.msg="invalid distance too far back",Ne.mode=30;break}Ne.mode=25;case 25:if(We===0)break e;if(tt=zt-We,Ne.offset>tt){if((tt=Ne.offset-tt)>Ne.whave&&Ne.sane){He.msg="invalid distance too far back",Ne.mode=30;break}Nt=tt>Ne.wnext?(tt-=Ne.wnext,Ne.wsize-tt):Ne.wnext-tt,tt>Ne.length&&(tt=Ne.length),Ut=Ne.window}else Ut=Ot,Nt=ht-Ne.offset,tt=Ne.length;for(We<tt&&(tt=We),We-=tt,Ne.length-=tt;Ot[ht++]=Ut[Nt++],--tt;);Ne.length===0&&(Ne.mode=21);break;case 26:if(We===0)break e;Ot[ht++]=Ne.length,We--,Ne.mode=21;break;case 27:if(Ne.wrap){for(;ot<32;){if(Bt===0)break e;Bt--,_e|=je[it++]<<ot,ot+=8}if(zt-=We,He.total_out+=zt,Ne.total+=zt,zt&&(He.adler=Ne.check=Ne.flags?fe(Ne.check,Ot,zt,ht-zt):Ue(Ne.check,Ot,zt,ht-zt)),zt=We,(Ne.flags?_e:Ee(_e))!==Ne.check){He.msg="incorrect data check",Ne.mode=30;break}ot=_e=0}Ne.mode=28;case 28:if(Ne.wrap&&Ne.flags){for(;ot<32;){if(Bt===0)break e;Bt--,_e+=je[it++]<<ot,ot+=8}if(_e!==(4294967295&Ne.total)){He.msg="incorrect length check",Ne.mode=30;break}ot=_e=0}Ne.mode=29;case 29:pe=1;break e;case 30:pe=-3;break e;case 31:return-4;case 32:default:return Fe}return He.next_out=ht,He.avail_out=We,He.next_in=it,He.avail_in=Bt,Ne.hold=_e,Ne.bits=ot,(Ne.wsize||zt!==He.avail_out&&Ne.mode<30&&(Ne.mode<27||pt!==4))&&bt(He,He.output,He.next_out,zt-He.avail_out)?(Ne.mode=31,-4):(Zt-=He.avail_in,zt-=He.avail_out,He.total_in+=Zt,He.total_out+=zt,Ne.total+=zt,Ne.wrap&&zt&&(He.adler=Ne.check=Ne.flags?fe(Ne.check,Ot,zt,He.next_out-zt):Ue(Ne.check,Ot,zt,He.next_out-zt)),He.data_type=Ne.bits+(Ne.last?64:0)+(Ne.mode===12?128:0)+(Ne.mode===20||Ne.mode===15?256:0),(Zt==0&&zt===0||pt===4)&&pe===Me&&(pe=-5),pe)},ze.inflateEnd=function(He){if(!He||!He.state)return Fe;var pt=He.state;return pt.window&&(pt.window=null),He.state=null,Me},ze.inflateGetHeader=function(He,pt){var Ne;return He&&He.state&&2&(Ne=He.state).wrap?((Ne.head=pt).done=!1,Me):Fe},ze.inflateSetDictionary=function(He,pt){var Ne,je=pt.length;return He&&He.state?(Ne=He.state).wrap!==0&&Ne.mode!==11?Fe:Ne.mode===11&&Ue(1,pt,je,0)!==Ne.check?-3:bt(He,pt,je,je)?(Ne.mode=31,-4):(Ne.havedict=1,Me):Fe},ze.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(Le,Je,ze){"use strict";var Se=Le("../utils/common"),Ue=[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],fe=[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],Ce=[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],oe=[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];Je.exports=function(Oe,ve,Me,Fe,Te,ye,xe,Ee){var ke,Ke,Qe,Re,et,Ge,ut,at,ft,bt=Ee.bits,He=0,pt=0,Ne=0,je=0,Ot=0,it=0,ht=0,Bt=0,We=0,_e=0,ot=null,Zt=0,zt=new Se.Buf16(16),tt=new Se.Buf16(16),Nt=null,Ut=0;for(He=0;He<=15;He++)zt[He]=0;for(pt=0;pt<Fe;pt++)zt[ve[Me+pt]]++;for(Ot=bt,je=15;1<=je&&zt[je]===0;je--);if(je<Ot&&(Ot=je),je===0)return Te[ye++]=20971520,Te[ye++]=20971520,Ee.bits=1,0;for(Ne=1;Ne<je&&zt[Ne]===0;Ne++);for(Ot<Ne&&(Ot=Ne),He=Bt=1;He<=15;He++)if(Bt<<=1,(Bt-=zt[He])<0)return-1;if(0<Bt&&(Oe===0||je!==1))return-1;for(tt[1]=0,He=1;He<15;He++)tt[He+1]=tt[He]+zt[He];for(pt=0;pt<Fe;pt++)ve[Me+pt]!==0&&(xe[tt[ve[Me+pt]]++]=pt);if(Ge=Oe===0?(ot=Nt=xe,19):Oe===1?(ot=Ue,Zt-=257,Nt=fe,Ut-=257,256):(ot=Ce,Nt=oe,-1),He=Ne,et=ye,ht=pt=_e=0,Qe=-1,Re=(We=1<<(it=Ot))-1,Oe===1&&852<We||Oe===2&&592<We)return 1;for(;;){for(ut=He-ht,ft=xe[pt]<Ge?(at=0,xe[pt]):xe[pt]>Ge?(at=Nt[Ut+xe[pt]],ot[Zt+xe[pt]]):(at=96,0),ke=1<<He-ht,Ne=Ke=1<<it;Te[et+(_e>>ht)+(Ke-=ke)]=ut<<24|at<<16|ft|0,Ke!==0;);for(ke=1<<He-1;_e&ke;)ke>>=1;if(ke!==0?(_e&=ke-1,_e+=ke):_e=0,pt++,--zt[He]==0){if(He===je)break;He=ve[Me+xe[pt]]}if(Ot<He&&(_e&Re)!==Qe){for(ht===0&&(ht=Ot),et+=Ne,Bt=1<<(it=He-ht);it+ht<je&&!((Bt-=zt[it+ht])<=0);)it++,Bt<<=1;if(We+=1<<it,Oe===1&&852<We||Oe===2&&592<We)return 1;Te[Qe=_e&Re]=Ot<<24|it<<16|et-ye|0}}return _e!==0&&(Te[et+_e]=He-ht<<24|64<<16|0),Ee.bits=Ot,0}},{"../utils/common":41}],51:[function(Le,Je,ze){"use strict";Je.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(Le,Je,ze){"use strict";var Se=Le("../utils/common"),Ue=0,fe=1;function Ce(se){for(var le=se.length;0<=--le;)se[le]=0}var oe=0,Oe=29,ve=256,Me=ve+1+Oe,Fe=30,Te=19,ye=2*Me+1,xe=15,Ee=16,ke=7,Ke=256,Qe=16,Re=17,et=18,Ge=[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],ut=[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],at=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ft=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],bt=new Array(2*(Me+2));Ce(bt);var He=new Array(2*Fe);Ce(He);var pt=new Array(512);Ce(pt);var Ne=new Array(256);Ce(Ne);var je=new Array(Oe);Ce(je);var Ot,it,ht,Bt=new Array(Fe);function We(se,le,Be,$e,st){this.static_tree=se,this.extra_bits=le,this.extra_base=Be,this.elems=$e,this.max_length=st,this.has_stree=se&&se.length}function _e(se,le){this.dyn_tree=se,this.max_code=0,this.stat_desc=le}function ot(se){return se<256?pt[se]:pt[256+(se>>>7)]}function Zt(se,le){se.pending_buf[se.pending++]=255&le,se.pending_buf[se.pending++]=le>>>8&255}function zt(se,le,Be){se.bi_valid>Ee-Be?(se.bi_buf|=le<<se.bi_valid&65535,Zt(se,se.bi_buf),se.bi_buf=le>>Ee-se.bi_valid,se.bi_valid+=Be-Ee):(se.bi_buf|=le<<se.bi_valid&65535,se.bi_valid+=Be)}function tt(se,le,Be){zt(se,Be[2*le],Be[2*le+1])}function Nt(se,le){for(var Be=0;Be|=1&se,se>>>=1,Be<<=1,0<--le;);return Be>>>1}function Ut(se,le,Be){var $e,st,gt=new Array(xe+1),mt=0;for($e=1;$e<=xe;$e++)gt[$e]=mt=mt+Be[$e-1]<<1;for(st=0;st<=le;st++){var Et=se[2*st+1];Et!==0&&(se[2*st]=Nt(gt[Et]++,Et))}}function pn(se){var le;for(le=0;le<Me;le++)se.dyn_ltree[2*le]=0;for(le=0;le<Fe;le++)se.dyn_dtree[2*le]=0;for(le=0;le<Te;le++)se.bl_tree[2*le]=0;se.dyn_ltree[2*Ke]=1,se.opt_len=se.static_len=0,se.last_lit=se.matches=0}function kt(se){8<se.bi_valid?Zt(se,se.bi_buf):0<se.bi_valid&&(se.pending_buf[se.pending++]=se.bi_buf),se.bi_buf=0,se.bi_valid=0}function mn(se,le,Be,$e){var st=2*le,gt=2*Be;return se[st]<se[gt]||se[st]===se[gt]&&$e[le]<=$e[Be]}function _t(se,le,Be){for(var $e=se.heap[Be],st=Be<<1;st<=se.heap_len&&(st<se.heap_len&&mn(le,se.heap[st+1],se.heap[st],se.depth)&&st++,!mn(le,$e,se.heap[st],se.depth));)se.heap[Be]=se.heap[st],Be=st,st<<=1;se.heap[Be]=$e}function Cn(se,le,Be){var $e,st,gt,mt,Et=0;if(se.last_lit!==0)for(;$e=se.pending_buf[se.d_buf+2*Et]<<8|se.pending_buf[se.d_buf+2*Et+1],st=se.pending_buf[se.l_buf+Et],Et++,$e===0?tt(se,st,le):(tt(se,(gt=Ne[st])+ve+1,le),(mt=Ge[gt])!==0&&zt(se,st-=je[gt],mt),tt(se,gt=ot(--$e),Be),(mt=ut[gt])!==0&&zt(se,$e-=Bt[gt],mt)),Et<se.last_lit;);tt(se,Ke,le)}function an(se,le){var Be,$e,st,gt=le.dyn_tree,mt=le.stat_desc.static_tree,Et=le.stat_desc.has_stree,Lt=le.stat_desc.elems,jt=-1;for(se.heap_len=0,se.heap_max=ye,Be=0;Be<Lt;Be++)gt[2*Be]!==0?(se.heap[++se.heap_len]=jt=Be,se.depth[Be]=0):gt[2*Be+1]=0;for(;se.heap_len<2;)gt[2*(st=se.heap[++se.heap_len]=jt<2?++jt:0)]=1,se.depth[st]=0,se.opt_len--,Et&&(se.static_len-=mt[2*st+1]);for(le.max_code=jt,Be=se.heap_len>>1;1<=Be;Be--)_t(se,gt,Be);for(st=Lt;Be=se.heap[1],se.heap[1]=se.heap[se.heap_len--],_t(se,gt,1),$e=se.heap[1],se.heap[--se.heap_max]=Be,se.heap[--se.heap_max]=$e,gt[2*st]=gt[2*Be]+gt[2*$e],se.depth[st]=(se.depth[Be]>=se.depth[$e]?se.depth[Be]:se.depth[$e])+1,gt[2*Be+1]=gt[2*$e+1]=st,se.heap[1]=st++,_t(se,gt,1),2<=se.heap_len;);se.heap[--se.heap_max]=se.heap[1],function(Ct,lt){var $t,Wt,wn,ln,tn,Qn,En=lt.dyn_tree,Rt=lt.max_code,un=lt.stat_desc.static_tree,Dn=lt.stat_desc.has_stree,Wn=lt.stat_desc.extra_bits,It=lt.stat_desc.extra_base,Gt=lt.stat_desc.max_length,sn=0;for(ln=0;ln<=xe;ln++)Ct.bl_count[ln]=0;for(En[2*Ct.heap[Ct.heap_max]+1]=0,$t=Ct.heap_max+1;$t<ye;$t++)Gt<(ln=En[2*En[2*(Wt=Ct.heap[$t])+1]+1]+1)&&(ln=Gt,sn++),En[2*Wt+1]=ln,Rt<Wt||(Ct.bl_count[ln]++,tn=0,It<=Wt&&(tn=Wn[Wt-It]),Qn=En[2*Wt],Ct.opt_len+=Qn*(ln+tn),Dn&&(Ct.static_len+=Qn*(un[2*Wt+1]+tn)));if(sn!==0){do{for(ln=Gt-1;Ct.bl_count[ln]===0;)ln--;Ct.bl_count[ln]--,Ct.bl_count[ln+1]+=2,Ct.bl_count[Gt]--,sn-=2}while(0<sn);for(ln=Gt;ln!==0;ln--)for(Wt=Ct.bl_count[ln];Wt!==0;)Rt<(wn=Ct.heap[--$t])||(En[2*wn+1]!==ln&&(Ct.opt_len+=(ln-En[2*wn+1])*En[2*wn],En[2*wn+1]=ln),Wt--)}}(se,le),Ut(gt,jt,se.bl_count)}function de(se,le,Be){var $e,st,gt=-1,mt=le[1],Et=0,Lt=7,jt=4;for(mt===0&&(Lt=138,jt=3),le[2*(Be+1)+1]=65535,$e=0;$e<=Be;$e++)st=mt,mt=le[2*($e+1)+1],++Et<Lt&&st===mt||(Et<jt?se.bl_tree[2*st]+=Et:st!==0?(st!==gt&&se.bl_tree[2*st]++,se.bl_tree[2*Qe]++):Et<=10?se.bl_tree[2*Re]++:se.bl_tree[2*et]++,gt=st,jt=(Et=0)===mt?(Lt=138,3):st===mt?(Lt=6,3):(Lt=7,4))}function pe(se,le,Be){var $e,st,gt=-1,mt=le[1],Et=0,Lt=7,jt=4;for(mt===0&&(Lt=138,jt=3),$e=0;$e<=Be;$e++)if(st=mt,mt=le[2*($e+1)+1],!(++Et<Lt&&st===mt)){if(Et<jt)for(;tt(se,st,se.bl_tree),--Et!=0;);else st!==0?(st!==gt&&(tt(se,st,se.bl_tree),Et--),tt(se,Qe,se.bl_tree),zt(se,Et-3,2)):Et<=10?(tt(se,Re,se.bl_tree),zt(se,Et-3,3)):(tt(se,et,se.bl_tree),zt(se,Et-11,7));gt=st,jt=(Et=0)===mt?(Lt=138,3):st===mt?(Lt=6,3):(Lt=7,4)}}Ce(Bt);var ie=!1;function ee(se,le,Be,$e){zt(se,(oe<<1)+($e?1:0),3),function(st,gt,mt,Et){kt(st),Et&&(Zt(st,mt),Zt(st,~mt)),Se.arraySet(st.pending_buf,st.window,gt,mt,st.pending),st.pending+=mt}(se,le,Be,!0)}ze._tr_init=function(se){ie||(function(){var le,Be,$e,st,gt,mt=new Array(xe+1);for(st=$e=0;st<Oe-1;st++)for(je[st]=$e,le=0;le<1<<Ge[st];le++)Ne[$e++]=st;for(Ne[$e-1]=st,st=gt=0;st<16;st++)for(Bt[st]=gt,le=0;le<1<<ut[st];le++)pt[gt++]=st;for(gt>>=7;st<Fe;st++)for(Bt[st]=gt<<7,le=0;le<1<<ut[st]-7;le++)pt[256+gt++]=st;for(Be=0;Be<=xe;Be++)mt[Be]=0;for(le=0;le<=143;)bt[2*le+1]=8,le++,mt[8]++;for(;le<=255;)bt[2*le+1]=9,le++,mt[9]++;for(;le<=279;)bt[2*le+1]=7,le++,mt[7]++;for(;le<=287;)bt[2*le+1]=8,le++,mt[8]++;for(Ut(bt,Me+1,mt),le=0;le<Fe;le++)He[2*le+1]=5,He[2*le]=Nt(le,5);Ot=new We(bt,Ge,ve+1,Me,xe),it=new We(He,ut,0,Fe,xe),ht=new We(new Array(0),at,0,Te,ke)}(),ie=!0),se.l_desc=new _e(se.dyn_ltree,Ot),se.d_desc=new _e(se.dyn_dtree,it),se.bl_desc=new _e(se.bl_tree,ht),se.bi_buf=0,se.bi_valid=0,pn(se)},ze._tr_stored_block=ee,ze._tr_flush_block=function(se,le,Be,$e){var st,gt,mt=0;0<se.level?(se.strm.data_type===2&&(se.strm.data_type=function(Et){var Lt,jt=4093624447;for(Lt=0;Lt<=31;Lt++,jt>>>=1)if(1&jt&&Et.dyn_ltree[2*Lt]!==0)return Ue;if(Et.dyn_ltree[18]!==0||Et.dyn_ltree[20]!==0||Et.dyn_ltree[26]!==0)return fe;for(Lt=32;Lt<ve;Lt++)if(Et.dyn_ltree[2*Lt]!==0)return fe;return Ue}(se)),an(se,se.l_desc),an(se,se.d_desc),mt=function(Et){var Lt;for(de(Et,Et.dyn_ltree,Et.l_desc.max_code),de(Et,Et.dyn_dtree,Et.d_desc.max_code),an(Et,Et.bl_desc),Lt=Te-1;3<=Lt&&Et.bl_tree[2*ft[Lt]+1]===0;Lt--);return Et.opt_len+=3*(Lt+1)+5+5+4,Lt}(se),st=se.opt_len+3+7>>>3,(gt=se.static_len+3+7>>>3)<=st&&(st=gt)):st=gt=Be+5,Be+4<=st&&le!==-1?ee(se,le,Be,$e):se.strategy===4||gt===st?(zt(se,2+($e?1:0),3),Cn(se,bt,He)):(zt(se,4+($e?1:0),3),function(Et,Lt,jt,Ct){var lt;for(zt(Et,Lt-257,5),zt(Et,jt-1,5),zt(Et,Ct-4,4),lt=0;lt<Ct;lt++)zt(Et,Et.bl_tree[2*ft[lt]+1],3);pe(Et,Et.dyn_ltree,Lt-1),pe(Et,Et.dyn_dtree,jt-1)}(se,se.l_desc.max_code+1,se.d_desc.max_code+1,mt+1),Cn(se,se.dyn_ltree,se.dyn_dtree)),pn(se),$e&&kt(se)},ze._tr_tally=function(se,le,Be){return se.pending_buf[se.d_buf+2*se.last_lit]=le>>>8&255,se.pending_buf[se.d_buf+2*se.last_lit+1]=255&le,se.pending_buf[se.l_buf+se.last_lit]=255&Be,se.last_lit++,le===0?se.dyn_ltree[2*Be]++:(se.matches++,le--,se.dyn_ltree[2*(Ne[Be]+ve+1)]++,se.dyn_dtree[2*ot(le)]++),se.last_lit===se.lit_bufsize-1},ze._tr_align=function(se){zt(se,2,3),tt(se,Ke,bt),function(le){le.bi_valid===16?(Zt(le,le.bi_buf),le.bi_buf=0,le.bi_valid=0):8<=le.bi_valid&&(le.pending_buf[le.pending++]=255&le.bi_buf,le.bi_buf>>=8,le.bi_valid-=8)}(se)}},{"../utils/common":41}],53:[function(Le,Je,ze){"use strict";Je.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(Le,Je,ze){(function(Se){(function(Ue,fe){"use strict";if(!Ue.setImmediate){var Ce,oe,Oe,ve,Me=1,Fe={},Te=!1,ye=Ue.document,xe=Object.getPrototypeOf&&Object.getPrototypeOf(Ue);xe=xe&&xe.setTimeout?xe:Ue,Ce={}.toString.call(Ue.process)==="[object process]"?function(Qe){ct.nextTick(function(){ke(Qe)})}:function(){if(Ue.postMessage&&!Ue.importScripts){var Qe=!0,Re=Ue.onmessage;return Ue.onmessage=function(){Qe=!1},Ue.postMessage("","*"),Ue.onmessage=Re,Qe}}()?(ve="setImmediate$"+Math.random()+"$",Ue.addEventListener?Ue.addEventListener("message",Ke,!1):Ue.attachEvent("onmessage",Ke),function(Qe){Ue.postMessage(ve+Qe,"*")}):Ue.MessageChannel?((Oe=new MessageChannel).port1.onmessage=function(Qe){ke(Qe.data)},function(Qe){Oe.port2.postMessage(Qe)}):ye&&"onreadystatechange"in ye.createElement("script")?(oe=ye.documentElement,function(Qe){var Re=ye.createElement("script");Re.onreadystatechange=function(){ke(Qe),Re.onreadystatechange=null,oe.removeChild(Re),Re=null},oe.appendChild(Re)}):function(Qe){setTimeout(ke,0,Qe)},xe.setImmediate=function(Qe){typeof Qe!="function"&&(Qe=new Function(""+Qe));for(var Re=new Array(arguments.length-1),et=0;et<Re.length;et++)Re[et]=arguments[et+1];var Ge={callback:Qe,args:Re};return Fe[Me]=Ge,Ce(Me),Me++},xe.clearImmediate=Ee}function Ee(Qe){delete Fe[Qe]}function ke(Qe){if(Te)setTimeout(ke,0,Qe);else{var Re=Fe[Qe];if(Re){Te=!0;try{(function(et){var Ge=et.callback,ut=et.args;switch(ut.length){case 0:Ge();break;case 1:Ge(ut[0]);break;case 2:Ge(ut[0],ut[1]);break;case 3:Ge(ut[0],ut[1],ut[2]);break;default:Ge.apply(fe,ut)}})(Re)}finally{Ee(Qe),Te=!1}}}}function Ke(Qe){Qe.source===Ue&&typeof Qe.data=="string"&&Qe.data.indexOf(ve)===0&&ke(+Qe.data.slice(ve.length))}})(typeof self=="undefined"?Se===void 0?this:Se:self)}).call(this,typeof ae.g!="undefined"?ae.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})},2859:function(Vn,Mt,ae){"use strict";ae.d(Mt,{hP:function(){return an}});var x=function(de,pe){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,ee){ie.__proto__=ee}||function(ie,ee){for(var se in ee)Object.prototype.hasOwnProperty.call(ee,se)&&(ie[se]=ee[se])})(de,pe)};function ct(de,pe){function ie(){this.constructor=de}x(de,pe),de.prototype=pe===null?Object.create(pe):(ie.prototype=pe.prototype,new ie)}function Le(de,pe,ie,ee){return new(ie||(ie=Promise))(function(se,le){function Be(gt){try{st(ee.next(gt))}catch(mt){le(mt)}}function $e(gt){try{st(ee.throw(gt))}catch(mt){le(mt)}}function st(gt){var mt;gt.done?se(gt.value):(mt=gt.value,mt instanceof ie?mt:new ie(function(Et){Et(mt)})).then(Be,$e)}st((ee=ee.apply(de,pe||[])).next())})}function Je(de,pe){var ie,ee,se,le,Be={label:0,sent:function(){if(1&se[0])throw se[1];return se[1]},trys:[],ops:[]};return le={next:$e(0),throw:$e(1),return:$e(2)},typeof Symbol=="function"&&(le[Symbol.iterator]=function(){return this}),le;function $e(st){return function(gt){return function(mt){if(ie)throw new TypeError("Generator is already executing.");for(;Be;)try{if(ie=1,ee&&(se=2&mt[0]?ee.return:mt[0]?ee.throw||((se=ee.return)&&se.call(ee),0):ee.next)&&!(se=se.call(ee,mt[1])).done)return se;switch(ee=0,se&&(mt=[2&mt[0],se.value]),mt[0]){case 0:case 1:se=mt;break;case 4:return Be.label++,{value:mt[1],done:!1};case 5:Be.label++,ee=mt[1],mt=[0];continue;case 7:mt=Be.ops.pop(),Be.trys.pop();continue;default:if(se=Be.trys,!((se=se.length>0&&se[se.length-1])||mt[0]!==6&&mt[0]!==2)){Be=0;continue}if(mt[0]===3&&(!se||mt[1]>se[0]&&mt[1]<se[3])){Be.label=mt[1];break}if(mt[0]===6&&Be.label<se[1]){Be.label=se[1],se=mt;break}if(se&&Be.label<se[2]){Be.label=se[2],Be.ops.push(mt);break}se[2]&&Be.ops.pop(),Be.trys.pop();continue}mt=pe.call(de,Be)}catch(Et){mt=[6,Et],ee=0}finally{ie=se=0}if(5&mt[0])throw mt[1];return{value:mt[0]?mt[1]:void 0,done:!0}}([st,gt])}}}function ze(){for(var de=0,pe=0,ie=arguments.length;pe<ie;pe++)de+=arguments[pe].length;var ee=Array(de),se=0;for(pe=0;pe<ie;pe++)for(var le=arguments[pe],Be=0,$e=le.length;Be<$e;Be++,se++)ee[se]=le[Be];return ee}var Se=function(){function de(){}return de.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},de.setAttributes=function(pe,ie){for(var ee=0,se=ie;ee<se.length;ee++){var le=se[ee],Be=le[0],$e=le[1];pe.setAttribute(Be,$e)}},de.createRect=function(pe,ie,ee){var se=document.createElementNS("http://www.w3.org/2000/svg","rect");return se.setAttribute("width",pe.toString()),se.setAttribute("height",ie.toString()),ee&&de.setAttributes(se,ee),se},de.createLine=function(pe,ie,ee,se,le){var Be=document.createElementNS("http://www.w3.org/2000/svg","line");return Be.setAttribute("x1",pe.toString()),Be.setAttribute("y1",ie.toString()),Be.setAttribute("x2",ee.toString()),Be.setAttribute("y2",se.toString()),le&&de.setAttributes(Be,le),Be},de.createPolygon=function(pe,ie){var ee=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ee.setAttribute("points",pe),ie&&de.setAttributes(ee,ie),ee},de.createCircle=function(pe,ie){var ee=document.createElementNS("http://www.w3.org/2000/svg","circle");return ee.setAttribute("cx",(pe/2).toString()),ee.setAttribute("cy",(pe/2).toString()),ee.setAttribute("r",pe.toString()),ie&&de.setAttributes(ee,ie),ee},de.createEllipse=function(pe,ie,ee){var se=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return se.setAttribute("cx",(pe/2).toString()),se.setAttribute("cy",(ie/2).toString()),se.setAttribute("rx",(pe/2).toString()),se.setAttribute("ry",(ie/2).toString()),ee&&de.setAttributes(se,ee),se},de.createGroup=function(pe){var ie=document.createElementNS("http://www.w3.org/2000/svg","g");return pe&&de.setAttributes(ie,pe),ie},de.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},de.createMarker=function(pe,ie,ee,se,le,Be,$e){var st=document.createElementNS("http://www.w3.org/2000/svg","marker");return de.setAttributes(st,[["id",pe],["orient",ie],["markerWidth",ee.toString()],["markerHeight",se.toString()],["refX",le.toString()],["refY",Be.toString()]]),st.appendChild($e),st},de.createText=function(pe){var ie=document.createElementNS("http://www.w3.org/2000/svg","text");return ie.setAttribute("x","0"),ie.setAttribute("y","0"),pe&&de.setAttributes(ie,pe),ie},de.createTSpan=function(pe,ie){var ee=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ee.textContent=pe,ie&&de.setAttributes(ee,ie),ee},de.createImage=function(pe){var ie=document.createElementNS("http://www.w3.org/2000/svg","image");return pe&&de.setAttributes(ie,pe),ie},de.createPoint=function(pe,ie){var ee=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ee.x=pe,ee.y=ie,ee},de.createPath=function(pe,ie){var ee=document.createElementNS("http://www.w3.org/2000/svg","path");return ee.setAttribute("d",pe),ie&&de.setAttributes(ee,ie),ee},de}(),Ue=function(){function de(){}return de.addKey=function(pe){de.key=pe},Object.defineProperty(de,"isLicensed",{get:function(){return!!de.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(de.key)},enumerable:!1,configurable:!0}),de}(),fe=function(){function de(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return de.prototype.rasterize=function(pe,ie,ee){var se=this;return new Promise(function(le){var Be=ee!==void 0?ee:document.createElement("canvas");pe===null&&(se.markersOnly=!0,se.naturalSize=!1);var $e=document.createElementNS("http://www.w3.org/2000/svg","svg");$e.setAttribute("xmlns","http://www.w3.org/2000/svg"),$e.setAttribute("width",ie.width.baseVal.valueAsString),$e.setAttribute("height",ie.height.baseVal.valueAsString),$e.setAttribute("viewBox","0 0 "+ie.viewBox.baseVal.width.toString()+" "+ie.viewBox.baseVal.height.toString()),$e.innerHTML=ie.innerHTML,se.naturalSize===!0?($e.width.baseVal.value=pe.naturalWidth,$e.height.baseVal.value=pe.naturalHeight):se.width!==void 0&&se.height!==void 0&&($e.width.baseVal.value=se.width,$e.height.baseVal.value=se.height),Be.width=$e.width.baseVal.value,Be.height=$e.height.baseVal.value;var st=$e.outerHTML,gt=Be.getContext("2d");se.markersOnly!==!0&&gt.drawImage(pe,0,0,Be.width,Be.height);var mt=window.URL,Et=new Image(Be.width,Be.height);Et.setAttribute("crossOrigin","anonymous");var Lt=new Blob([st],{type:"image/svg+xml"}),jt=mt.createObjectURL(Lt);Et.onload=function(){gt.drawImage(Et,0,0),mt.revokeObjectURL(jt);var Ct=Be.toDataURL(se.imageType,se.imageQuality);le(Ct)},Et.src=jt})},de}(),Ce=function(){},oe=function(){function de(pe){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+pe+"_"}return Object.defineProperty(de.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),de.prototype.addClass=function(pe){return this.styleSheet===void 0&&this.addStyleSheet(),pe.name=""+this.classNamePrefix+pe.localName,this.classes.push(pe),this.styleSheet.sheet.insertRule("."+pe.name+" {"+pe.style+"}",this.styleSheet.sheet.cssRules.length),pe},de.prototype.addRule=function(pe){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(pe),this.styleSheet.sheet.insertRule(pe.selector+" {"+pe.style+"}",this.styleSheet.sheet.cssRules.length)},de.prototype.addStyleSheet=function(){var pe;this.styleSheet=document.createElement("style"),((pe=this.styleSheetRoot)!==null&&pe!==void 0?pe:document.head).appendChild(this.styleSheet),this.addRule(new Oe("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Oe("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new Oe("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new ve("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new ve("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},de.prototype.removeStyleSheet=function(){var pe;this.styleSheet&&(((pe=this.styleSheetRoot)!==null&&pe!==void 0?pe:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},de}(),Oe=function(de,pe){this.selector=de,this.style=pe},ve=function(de,pe){this.localName=de,this.style=pe},Me=function(){function de(pe,ie,ee,se,le){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=pe,this.displayMode=ie,this.markerItems=ee,this.uiStyleSettings=se,this.styles=le,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return de.prototype.show=function(pe){var ie=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=pe,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var ee=document.createElement("div");ee.className=this.toolbarBlockStyleClass.name,ee.style.whiteSpace="nowrap",this.uiContainer.appendChild(ee),this.addActionButton(ee,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(ee,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(ee,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(ee,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(ee,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(ee,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(ee,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(ee,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(le){var Be=document.createElement("div");Be.className=""+ie.toolbarButtonStyleClass.name,Be.setAttribute("data-type-name",le.typeName),Be.innerHTML=le.icon,Be.addEventListener("click",function(){ie.markerToolbarButtonClicked(Be,le)}),ie.buttons.push(Be),ie.markerButtons.push(Be)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var se=document.createElement("div");se.className=this.toolbarBlockStyleClass.name,se.style.whiteSpace="nowrap",se.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(se),this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},de.prototype.addButtonClickListener=function(pe){this.buttonClickListeners.push(pe)},de.prototype.removeButtonClickListener=function(pe){this.buttonClickListeners.indexOf(pe)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(pe),1)},de.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},de.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var pe=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ie=0;ie<this.markerButtons.length;ie++)ie<pe||ie===pe&&this.markerButtons.length-1===pe?this.markerButtonBlock.appendChild(this.markerButtons[ie]):(ie===pe&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[ie]))}},de.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},de.prototype.resetButtonStyles=function(){var pe=this;this.buttons.forEach(function(ie){ie.className=ie.className.replace(pe.uiStyleSettings.toolbarButtonStyleColorsClassName?pe.uiStyleSettings.toolbarButtonStyleColorsClassName:pe.toolbarButtonStyleColorsClass.name,"").trim(),ie.className=ie.className.replace(pe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?pe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:pe.toolbarActiveButtonStyleColorsClass.name,"").trim(),ie.className+=" "+(pe.uiStyleSettings.toolbarButtonStyleColorsClassName?pe.uiStyleSettings.toolbarButtonStyleColorsClassName:pe.toolbarButtonStyleColorsClass.name)})},de.prototype.addActionButton=function(pe,ie,ee){var se=this,le=document.createElement("div");switch(le.className=""+this.toolbarButtonStyleClass.name,le.innerHTML=ie,le.setAttribute("data-action",ee),le.addEventListener("click",function(){se.actionToolbarButtonClicked(le,ee)}),ee){case"select":le.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":le.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":le.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":le.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":le.style.fill=this.uiStyleSettings.closeButtonColor}pe.appendChild(le),this.buttons.push(le)},de.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ve("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new ve("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ve("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ve("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new ve("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var pe=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ve("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*pe)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*pe)+`px;
padding: `+pe+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ve("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ve("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Oe("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new Oe("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},de.prototype.markerToolbarButtonClicked=function(pe,ie){this.setActiveButton(pe),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ee){return ee("marker",ie)}),this.markerButtonOverflowBlock.style.display="none"},de.prototype.actionToolbarButtonClicked=function(pe,ie){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ee){return ee("action",ie)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},de.prototype.setActiveButton=function(pe){this.resetButtonStyles(),pe.className=pe.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),pe.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},de.prototype.setActiveMarkerButton=function(pe){var ie=this.markerButtons.find(function(ee){return ee.getAttribute("data-type-name")===pe});ie&&this.setActiveButton(ie)},de.prototype.setCurrentMarker=function(pe){var ie=this;this.currentMarker=pe,this.buttons.filter(function(ee){return/delete|notes/.test(ee.getAttribute("data-action"))}).forEach(function(ee){ie.currentMarker===void 0?(ee.style.fillOpacity="0.4",ee.style.pointerEvents="none"):(ee.style.fillOpacity="1",ee.style.pointerEvents="all")})},de}(),Fe=function(){function de(pe,ie,ee,se){this.panels=[],this.panelButtons=[],this.markerjsContainer=pe,this.displayMode=ie,this.uiStyleSettings=ee,this.styles=se,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return de.prototype.addStyles=function(){var pe;this.toolboxStyleClass=this.styles.addClass(new ve("toolbox",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
box-sizing: content-box;
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolboxStyleColorsClass=this.styles.addClass(new ve("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var ie=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ve("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ve("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ve("toolbox-panel-row",`
display: flex;
`+(this.displayMode==="inline"?"position: absolute;":"")+`
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
cursor: default;
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
`+(this.displayMode==="inline"?"width: 100%;":"")+`
box-sizing: content-box;
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new ve("toolbox-panel-row_colors",`
background-color: `+((pe=this.uiStyleSettings.toolboxBackgroundColor)!==null&&pe!==void 0?pe:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ve("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*ie)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*ie)+`px;
padding: `+ie+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ve("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ve("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new Oe("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Oe("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},de.prototype.show=function(pe){var ie;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=pe,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ie=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ie!==void 0?ie:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},de.prototype.setPanelButtons=function(pe){var ie,ee,se=this;this.panels=pe,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ie=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ie!==void 0?ie:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(le){var Be;le.uiStyleSettings=se.uiStyleSettings;var $e=document.createElement("div");$e.className=se.toolboxButtonStyleClass.name+" "+((Be=se.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Be!==void 0?Be:se.toolboxButtonStyleColorsClass.name),$e.innerHTML=le.icon,$e.title=le.title,$e.addEventListener("click",function(){se.panelButtonClick(le)}),se.panelButtons.push($e),se.buttonRow.appendChild($e)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},de.prototype.panelButtonClick=function(pe){var ie=this,ee=-1;if(pe!==this.activePanel){ee=this.panels.indexOf(pe),this.panelRow.innerHTML="";var se=pe.getUi();se.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(se),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=pe}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ie.displayMode==="inline"?ie.panelRow.style.display="none":ie.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(le,Be){var $e,st;le.className=ie.toolboxButtonStyleClass.name+" "+(Be===ee?""+(($e=ie.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&$e!==void 0?$e:ie.toolboxActiveButtonStyleColorsClass.name):""+((st=ie.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&st!==void 0?st:ie.toolboxButtonStyleColorsClass.name))})},de}(),Te=function(de,pe){this.title=de,this.icon=pe},ye=function(de){function pe(ie,ee,se,le){var Be=de.call(this,ie,le||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return Be.colors=[],Be.addTransparent=!1,Be.colorBoxes=[],Be.colors=ee,Be.currentColor=se,Be.setCurrentColor=Be.setCurrentColor.bind(Be),Be.getColorBox=Be.getColorBox.bind(Be),Be}return ct(pe,de),pe.prototype.getUi=function(){var ie=this,ee=document.createElement("div");return ee.style.overflow="hidden",ee.style.whiteSpace="nowrap",this.colors.forEach(function(se){var le=ie.getColorBox(se);ee.appendChild(le),ie.colorBoxes.push(le)}),ee},pe.prototype.getColorBox=function(ie){var ee=this,se=this.uiStyleSettings.toolbarHeight/4,le=this.uiStyleSettings.toolbarHeight-se,Be=document.createElement("div");Be.style.display="inline-block",Be.style.boxSizing="content-box",Be.style.width=le-2+"px",Be.style.height=le-2+"px",Be.style.padding="1px",Be.style.marginRight="2px",Be.style.marginBottom="2px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.borderRadius=(le+2)/2+"px",Be.style.borderColor=ie===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){ee.setCurrentColor(ie,Be)});var $e=document.createElement("div");return $e.style.display="inline-block",$e.style.width=le-2+"px",$e.style.height=le-2+"px",$e.style.backgroundColor=ie,$e.style.borderRadius=le/2+"px",ie==="transparent"&&($e.style.fill=this.uiStyleSettings.toolboxAccentColor,$e.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),Be.appendChild($e),Be},pe.prototype.setCurrentColor=function(ie,ee){var se=this;this.currentColor=ie,this.colorBoxes.forEach(function(le){le.style.borderColor=le===ee?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ie)},pe}(Te),xe=function(){function de(pe,ie,ee){this._state="new",this._isSelected=!1,this._container=pe,this._overlayContainer=ie,this.globalSettings=ee,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(de.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),de.prototype.ownsTarget=function(pe){return!1},Object.defineProperty(de.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),de.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},de.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},de.prototype.pointerDown=function(pe,ie){},de.prototype.dblClick=function(pe,ie){},de.prototype.manipulate=function(pe){},de.prototype.pointerUp=function(pe){this.stateChanged()},de.prototype.dispose=function(){},de.prototype.addMarkerVisualToContainer=function(pe){this.container.childNodes.length>0?this.container.insertBefore(pe,this.container.childNodes[0]):this.container.appendChild(pe)},de.prototype.getState=function(){return{typeName:de.typeName,state:this.state,notes:this.notes}},de.prototype.restoreState=function(pe){this._state=pe.state,this.notes=pe.notes},de.prototype.scale=function(pe,ie){},de.prototype.colorChanged=function(pe){this.onColorChanged&&this.onColorChanged(pe),this.stateChanged()},de.prototype.fillColorChanged=function(pe){this.onFillColorChanged&&this.onFillColorChanged(pe),this.stateChanged()},de.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var pe=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),pe.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(pe)&&this.onStateChanged(this)}},de.typeName="MarkerBase",de}(),Ee=function(){function de(){this.findGripByVisual=this.findGripByVisual.bind(this)}return de.prototype.findGripByVisual=function(pe){return this.topLeft.ownsTarget(pe)?this.topLeft:this.topCenter.ownsTarget(pe)?this.topCenter:this.topRight.ownsTarget(pe)?this.topRight:this.centerLeft.ownsTarget(pe)?this.centerLeft:this.centerRight.ownsTarget(pe)?this.centerRight:this.bottomLeft.ownsTarget(pe)?this.bottomLeft:this.bottomCenter.ownsTarget(pe)?this.bottomCenter:this.bottomRight.ownsTarget(pe)?this.bottomRight:void 0},de}(),ke=function(){function de(){this.GRIP_SIZE=10,this.visual=Se.createGroup(),this.visual.appendChild(Se.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Se.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return de.prototype.ownsTarget=function(pe){return pe===this.visual||pe===this.visual.childNodes[0]||pe===this.visual.childNodes[1]},de}(),Ke=function(){function de(){}return de.toITransformMatrix=function(pe){return{a:pe.a,b:pe.b,c:pe.c,d:pe.d,e:pe.e,f:pe.f}},de.toSVGMatrix=function(pe,ie){return pe.a=ie.a,pe.b=ie.b,pe.c=ie.c,pe.d=ie.d,pe.e=ie.e,pe.f=ie.f,pe},de}(),Qe=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.left=0,le.top=0,le.width=0,le.height=0,le.defaultSize={x:50,y:20},le.offsetX=0,le.offsetY=0,le.rotationAngle=0,le.CB_DISTANCE=10,le._suppressMarkerCreateEvent=!1,le.container.transform.baseVal.appendItem(Se.createTransform()),le.setupControlBox(),le}return ct(pe,de),Object.defineProperty(pe.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"visual",{get:function(){return this._visual},set:function(ie){this._visual=ie;var ee=Se.createTransform();this._visual.transform.baseVal.appendItem(ee)},enumerable:!1,configurable:!0}),pe.prototype.ownsTarget=function(ie){return!!de.prototype.ownsTarget.call(this,ie)||!!(this.controlGrips.findGripByVisual(ie)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ie))},pe.prototype.pointerDown=function(ie,ee){de.prototype.pointerDown.call(this,ie,ee),this.state==="new"&&(this.left=ie.x,this.top=ie.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var se=this.unrotatePoint(ie);if(this.manipulationStartX=se.x,this.manipulationStartY=se.y,this.offsetX=se.x-this.left,this.offsetY=se.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ee),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ee)){this.activeGrip=this.rotatorGrip;var le=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=le.x-this.width/2,this.top=le.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Be=this.container.transform.baseVal.getItem(0);Be.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Be,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},pe.prototype.pointerUp=function(ie){var ee=this.state;de.prototype.pointerUp.call(this,ie),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ie),this._state="select",ee==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},pe.prototype.moveVisual=function(ie){this.visual.style.transform="translate("+ie.x+"px, "+ie.y+"px)"},pe.prototype.manipulate=function(ie){var ee=this.unrotatePoint(ie);this.state==="creating"?this.resize(ie):this.state==="move"?(this.left=this.manipulationStartLeft+(ee.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ee.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ee):this.state==="rotate"&&this.rotate(ie)},pe.prototype.resize=function(ie){var ee=this.manipulationStartLeft,se=this.manipulationStartWidth,le=this.manipulationStartTop,Be=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ee=this.manipulationStartLeft+ie.x-this.manipulationStartX,se=this.manipulationStartWidth+this.manipulationStartLeft-ee;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:se=this.manipulationStartWidth+ie.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:le=this.manipulationStartTop+ie.y-this.manipulationStartY,Be=this.manipulationStartHeight+this.manipulationStartTop-le;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Be=this.manipulationStartHeight+ie.y-this.manipulationStartY}se>=0?(this.left=ee,this.width=se):(this.left=ee+se,this.width=-se),Be>=0?(this.top=le,this.height=Be):(this.top=le+Be,this.height=-Be),this.setSize()},pe.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},pe.prototype.rotate=function(ie){if(Math.abs(ie.x-this.centerX)>.1){var ee=Math.sign(ie.x-this.centerX);this.rotationAngle=180*Math.atan((ie.y-this.centerY)/(ie.x-this.centerX))/Math.PI+90*ee,this.applyRotation()}},pe.prototype.applyRotation=function(){var ie=this.container.transform.baseVal.getItem(0);ie.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ie,0)},pe.prototype.rotatePoint=function(ie){if(this.rotationAngle===0)return ie;var ee=this.container.getCTM(),se=Se.createPoint(ie.x,ie.y);return{x:(se=se.matrixTransform(ee)).x,y:se.y}},pe.prototype.unrotatePoint=function(ie){if(this.rotationAngle===0)return ie;var ee=this.container.getCTM();ee=ee.inverse();var se=Se.createPoint(ie.x,ie.y);return{x:(se=se.matrixTransform(ee)).x,y:se.y}},pe.prototype.select=function(){de.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},pe.prototype.deselect=function(){de.prototype.deselect.call(this),this.controlBox.style.display="none"},pe.prototype.setupControlBox=function(){this.controlBox=Se.createGroup();var ie=Se.createTransform();ie.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ie),this.container.appendChild(this.controlBox),this.controlRect=Se.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=Se.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Ee,this.addControlGrips(),this.controlBox.style.display="none"},pe.prototype.adjustControlBox=function(){var ie=this.controlBox.transform.baseVal.getItem(0);ie.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ie,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},pe.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},pe.prototype.createGrip=function(){var ie=new ke;return ie.visual.transform.baseVal.appendItem(Se.createTransform()),this.controlBox.appendChild(ie.visual),ie},pe.prototype.positionGrips=function(){var ie=this.controlGrips.topLeft.GRIP_SIZE,ee=-ie/2,se=ee,le=(this.width+this.CB_DISTANCE)/2-ie/2,Be=(this.height+this.CB_DISTANCE)/2-ie/2,$e=this.height+this.CB_DISTANCE-ie/2,st=this.width+this.CB_DISTANCE-ie/2;this.positionGrip(this.controlGrips.topLeft.visual,ee,se),this.positionGrip(this.controlGrips.topCenter.visual,le,se),this.positionGrip(this.controlGrips.topRight.visual,st,se),this.positionGrip(this.controlGrips.centerLeft.visual,ee,Be),this.positionGrip(this.controlGrips.centerRight.visual,st,Be),this.positionGrip(this.controlGrips.bottomLeft.visual,ee,$e),this.positionGrip(this.controlGrips.bottomCenter.visual,le,$e),this.positionGrip(this.controlGrips.bottomRight.visual,st,$e),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,le,se-3*this.CB_DISTANCE)},pe.prototype.positionGrip=function(ie,ee,se){var le=ie.transform.baseVal.getItem(0);le.setTranslate(ee,se),ie.transform.baseVal.replaceItem(le,0)},pe.prototype.hideControlBox=function(){this.controlBox.style.display="none"},pe.prototype.showControlBox=function(){this.controlBox.style.display=""},pe.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Ke.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Ke.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},de.prototype.getState.call(this))},pe.prototype.restoreState=function(ie){de.prototype.restoreState.call(this,ie);var ee=ie;this.left=ee.left,this.top=ee.top,this.width=ee.width,this.height=ee.height,this.rotationAngle=ee.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Ke.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ee.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Ke.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ee.containerTransformMatrix))},pe.prototype.scale=function(ie,ee){de.prototype.scale.call(this,ie,ee);var se=this.rotatePoint({x:this.left,y:this.top}),le=this.unrotatePoint({x:se.x*ie,y:se.y*ee});this.left=le.x,this.top=le.y,this.width=this.width*ie,this.height=this.height*ee,this.adjustControlBox()},pe}(xe),Re=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.opacity=1,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le}return ct(pe,de),pe.prototype.ownsTarget=function(ie){return!(!de.prototype.ownsTarget.call(this,ie)&&ie!==this.visual)},pe.prototype.createVisual=function(){this.visual=Se.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},pe.prototype.pointerDown=function(ie,ee){de.prototype.pointerDown.call(this,ie,ee),this.state==="new"&&(this.createVisual(),this.moveVisual(ie),this._state="creating")},pe.prototype.manipulate=function(ie){de.prototype.manipulate.call(this,ie)},pe.prototype.resize=function(ie){de.prototype.resize.call(this,ie),this.setSize()},pe.prototype.setSize=function(){de.prototype.setSize.call(this),Se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},pe.prototype.pointerUp=function(ie){de.prototype.pointerUp.call(this,ie),this.setSize()},pe.prototype.setStrokeColor=function(ie){this.strokeColor=ie,this.visual&&Se.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ie),this.stateChanged()},pe.prototype.setFillColor=function(ie){this.fillColor=ie,this.visual&&Se.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},pe.prototype.setStrokeWidth=function(ie){this.strokeWidth=ie,this.visual&&Se.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},pe.prototype.setStrokeDasharray=function(ie){this.strokeDasharray=ie,this.visual&&Se.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},pe.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},de.prototype.getState.call(this))},pe.prototype.restoreState=function(ie){var ee=ie;this.fillColor=ee.fillColor,this.strokeColor=ee.strokeColor,this.strokeWidth=ee.strokeWidth,this.strokeDasharray=ee.strokeDasharray,this.opacity=ee.opacity,this.createVisual(),de.prototype.restoreState.call(this,ie),this.setSize()},pe.prototype.scale=function(ie,ee){de.prototype.scale.call(this,ie,ee),this.setSize()},pe.title="Rectangle marker",pe}(Qe),et=function(de){function pe(ie,ee,se,le){var Be=de.call(this,ie,le||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Be.widths=[],Be.widthBoxes=[],Be.widths=ee,Be.currentWidth=se,Be.setCurrentWidth=Be.setCurrentWidth.bind(Be),Be}return ct(pe,de),pe.prototype.getUi=function(){var ie=this,ee=document.createElement("div");return ee.style.display="flex",ee.style.overflow="hidden",ee.style.flexGrow="2",this.widths.forEach(function(se){var le=document.createElement("div");le.style.display="flex",le.style.flexGrow="2",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=se===ie.currentWidth?ie.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ie.setCurrentWidth(se,le)}),ee.appendChild(le);var Be=document.createElement("div");Be.innerText=se.toString(),Be.style.marginRight="5px",le.appendChild(Be);var $e=document.createElement("div");$e.style.minHeight="20px",$e.style.flexGrow="2",$e.style.display="flex",$e.style.alignItems="center";var st=document.createElement("hr");st.style.minWidth="20px",st.style.border="0px",st.style.borderTop=se+"px solid "+ie.uiStyleSettings.toolboxColor,st.style.flexGrow="2",$e.appendChild(st),le.appendChild($e),ie.widthBoxes.push(le)}),ee},pe.prototype.setCurrentWidth=function(ie,ee){var se=this;this.currentWidth=ie,this.widthBoxes.forEach(function(le){le.style.borderColor=le===ee?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},pe}(Te),Ge=function(de){function pe(ie,ee,se,le){var Be=de.call(this,ie,le||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return Be.styles=[],Be.styleBoxes=[],Be.styles=ee,Be.currentStyle=se,Be.setCurrentStyle=Be.setCurrentStyle.bind(Be),Be}return ct(pe,de),pe.prototype.getUi=function(){var ie=this,ee=document.createElement("div");return ee.style.display="flex",ee.style.overflow="hidden",ee.style.flexGrow="2",this.styles.forEach(function(se){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/ie.styles.length-5+"%",le.style.borderColor=se===ie.currentStyle?ie.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ie.setCurrentStyle(se,le)}),ee.appendChild(le);var Be=document.createElement("div");Be.style.minHeight="20px",Be.style.flexGrow="2",Be.style.overflow="hidden";var $e=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ie.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(se!==""?'stroke-dasharray="'+se+'"':"")+` />
</svg>`;Be.innerHTML=$e,le.appendChild(Be),ie.styleBoxes.push(le)}),ee},pe.prototype.setCurrentStyle=function(ie,ee){var se=this;this.currentStyle=ie,this.styleBoxes.forEach(function(le){le.style.borderColor=le===ee?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},pe}(Te),ut=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.strokeColor=se.defaultColor,le.strokeWidth=se.defaultStrokeWidth,le.strokeDasharray=se.defaultStrokeDasharray,le.strokePanel=new ye("Line color",se.defaultColorSet,se.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new et("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ge("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return ct(pe,de),Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=de.prototype.getState.call(this);return ie.typeName=pe.typeName,ie},pe.typeName="FrameMarker",pe.title="Frame marker",pe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',pe}(Re),at=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},ft=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.x1=0,le.y1=0,le.x2=0,le.y2=0,le.defaultLength=50,le.manipulationStartX=0,le.manipulationStartY=0,le.manipulationStartX1=0,le.manipulationStartY1=0,le.manipulationStartX2=0,le.manipulationStartY2=0,le.setupControlBox(),le}return ct(pe,de),pe.prototype.ownsTarget=function(ie){return!!de.prototype.ownsTarget.call(this,ie)||!(!this.grip1.ownsTarget(ie)&&!this.grip2.ownsTarget(ie))},pe.prototype.pointerDown=function(ie,ee){de.prototype.pointerDown.call(this,ie,ee),this.manipulationStartX=ie.x,this.manipulationStartY=ie.y,this.state==="new"&&(this.x1=ie.x,this.y1=ie.y,this.x2=ie.x,this.y2=ie.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(ee)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ee)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},pe.prototype.pointerUp=function(ie){var ee=this.state;de.prototype.pointerUp.call(this,ie),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(ie),this._state="select",ee==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},pe.prototype.adjustVisual=function(){},pe.prototype.manipulate=function(ie){this.state==="creating"?this.resize(ie):this.state==="move"?(this.x1=this.manipulationStartX1+ie.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ie.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ie.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ie.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ie)},pe.prototype.resize=function(ie){switch(this.activeGrip){case this.grip1:this.x1=ie.x,this.y1=ie.y;break;case this.grip2:case void 0:this.x2=ie.x,this.y2=ie.y}this.adjustVisual(),this.adjustControlBox()},pe.prototype.select=function(){de.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},pe.prototype.deselect=function(){de.prototype.deselect.call(this),this.controlBox.style.display="none"},pe.prototype.setupControlBox=function(){this.controlBox=Se.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},pe.prototype.adjustControlBox=function(){this.positionGrips()},pe.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},pe.prototype.createGrip=function(){var ie=new ke;return ie.visual.transform.baseVal.appendItem(Se.createTransform()),this.controlBox.appendChild(ie.visual),ie},pe.prototype.positionGrips=function(){var ie=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ie/2,this.y1-ie/2),this.positionGrip(this.grip2.visual,this.x2-ie/2,this.y2-ie/2)},pe.prototype.positionGrip=function(ie,ee,se){var le=ie.transform.baseVal.getItem(0);le.setTranslate(ee,se),ie.transform.baseVal.replaceItem(le,0)},pe.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},de.prototype.getState.call(this))},pe.prototype.restoreState=function(ie){de.prototype.restoreState.call(this,ie);var ee=ie;this.x1=ee.x1,this.y1=ee.y1,this.x2=ee.x2,this.y2=ee.y2},pe.prototype.scale=function(ie,ee){de.prototype.scale.call(this,ie,ee),this.x1=this.x1*ie,this.y1=this.y1*ee,this.x2=this.x2*ie,this.y2=this.y2*ee,this.adjustVisual(),this.adjustControlBox()},pe}(xe),bt=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.strokeColor=se.defaultColor,le.strokeWidth=se.defaultStrokeWidth,le.strokeDasharray=se.defaultStrokeDasharray,le.strokePanel=new ye("Line color",se.defaultColorSet,se.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new et("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ge("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return ct(pe,de),pe.prototype.ownsTarget=function(ie){return!(!de.prototype.ownsTarget.call(this,ie)&&ie!==this.visual&&ie!==this.selectorLine&&ie!==this.visibleLine)},pe.prototype.createVisual=function(){this.visual=Se.createGroup(),this.selectorLine=Se.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Se.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},pe.prototype.pointerDown=function(ie,ee){de.prototype.pointerDown.call(this,ie,ee),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},pe.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Se.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Se.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Se.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},pe.prototype.setStrokeColor=function(ie){this.strokeColor=ie,this.adjustVisual(),this.colorChanged(ie)},pe.prototype.setStrokeWidth=function(ie){this.strokeWidth=ie,this.adjustVisual()},pe.prototype.setStrokeDasharray=function(ie){this.strokeDasharray=ie,this.adjustVisual(),this.stateChanged()},Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},de.prototype.getState.call(this));return ie.typeName=pe.typeName,ie},pe.prototype.restoreState=function(ie){de.prototype.restoreState.call(this,ie);var ee=ie;this.strokeColor=ee.strokeColor,this.strokeWidth=ee.strokeWidth,this.strokeDasharray=ee.strokeDasharray,this.createVisual(),this.adjustVisual()},pe.typeName="LineMarker",pe.title="Line marker",pe.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',pe}(ft),He=function(de){function pe(ie,ee,se,le){var Be=de.call(this,ie,le||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return Be.fonts=[],Be.fontBoxes=[],Be.fonts=ee,Be.currentFont=se,Be.setCurrentFont=Be.setCurrentFont.bind(Be),Be}return ct(pe,de),pe.prototype.getUi=function(){var ie=this,ee=document.createElement("div");return ee.style.overflow="hidden",ee.style.flexGrow="2",this.fonts.forEach(function(se){var le=document.createElement("div");le.style.display="inline-block",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/ie.fonts.length-5+"%",le.style.borderColor=se===ie.currentFont?ie.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ie.setCurrentFont(se,le)}),ee.appendChild(le);var Be=document.createElement("div");Be.style.display="flex",Be.style.minHeight="20px",Be.style.flexGrow="2",Be.style.fontFamily=se,Be.style.overflow="hidden";var $e=document.createElement("div");$e.style.whiteSpace="nowrap",$e.style.overflow="hidden",$e.style.textOverflow="ellipsis",$e.innerHTML="The quick brown fox jumps over the lazy dog",Be.appendChild($e),le.appendChild(Be),ie.fontBoxes.push(le)}),ee},pe.prototype.setCurrentFont=function(ie,ee){var se=this;this.currentFont=ie,this.fontBoxes.forEach(function(le){le.style.borderColor=le===ee?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},pe}(Te),pt=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.color="transparent",le.padding=5,le.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",le.text=le.DEFAULT_TEXT,le.isMoved=!1,le.color=se.defaultColor,le.fontFamily=se.defaultFontFamily,le.defaultSize={x:100,y:30},le.setColor=le.setColor.bind(le),le.setFont=le.setFont.bind(le),le.renderText=le.renderText.bind(le),le.sizeText=le.sizeText.bind(le),le.textEditDivClicked=le.textEditDivClicked.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.setSize=le.setSize.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.colorPanel=new ye("Color",se.defaultColorSet,se.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.fontFamilyPanel=new He("Font",se.defaultFontFamilies,se.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le}return ct(pe,de),pe.prototype.ownsTarget=function(ie){if(de.prototype.ownsTarget.call(this,ie)||ie===this.visual||ie===this.textElement||ie===this.bgRectangle)return!0;var ee=!1;return this.textElement.childNodes.forEach(function(se){se===ie&&(ee=!0)}),ee},pe.prototype.createVisual=function(){this.visual=Se.createGroup(),this.bgRectangle=Se.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Se.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Se.createTransform()),this.textElement.transform.baseVal.appendItem(Se.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},pe.prototype.pointerDown=function(ie,ee){de.prototype.pointerDown.call(this,ie,ee),this.isMoved=!1,this.pointerDownPoint=ie,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ie),this._state="creating")},pe.prototype.renderText=function(){var ie=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(ee){ie.textElement.appendChild(Se.createTSpan(ee.trim()===""?" ":ee.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},pe.prototype.getTextScale=function(){var ie=this.textElement.getBBox(),ee=1;if(ie.width>0&&ie.height>0){var se=(1*this.width-this.width*this.padding*2/100)/ie.width,le=(1*this.height-this.height*this.padding*2/100)/ie.height;ee=Math.min(se,le)}return ee},pe.prototype.getTextPosition=function(ie){var ee=this.textElement.getBBox(),se=0,le=0;return ee.width>0&&ee.height>0&&(se=(this.width-ee.width*ie)/2,le=this.height/2-ee.height*ie/2),{x:se,y:le}},pe.prototype.sizeText=function(){var ie=this.textElement.getBBox(),ee=this.getTextScale(),se=this.getTextPosition(ee);se.y-=ie.y*ee,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+se.x+"px, "+se.y+"px) scale("+ee+", "+ee+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(se.x,se.y),this.textElement.transform.baseVal.getItem(1).setScale(ee,ee))},pe.prototype.manipulate=function(ie){de.prototype.manipulate.call(this,ie),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ie.x-this.pointerDownPoint.x)>5||Math.abs(ie.y-this.pointerDownPoint.y)>5)},pe.prototype.resize=function(ie){de.prototype.resize.call(this,ie),this.isMoved=!0,this.setSize(),this.sizeText()},pe.prototype.setSize=function(){de.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Se.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},pe.prototype.pointerUp=function(ie){var ee=this.state;ee==="creating"&&(this._suppressMarkerCreateEvent=!0),de.prototype.pointerUp.call(this,ie),this.setSize(),(ee==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},pe.prototype.showTextEditor=function(){var ie=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(ee){ee.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ee=Number.parseFloat(ie.textEditor.style.fontSize);ie.textEditor.clientWidth>=Number.parseInt(ie.textEditor.style.maxWidth)&&ee>.9;)ee-=.1,ie.textEditor.style.fontSize=Math.max(ee,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ee){ee.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ee){if(ee.clipboardData){var se=ee.clipboardData.getData("text"),le=window.getSelection();if(!le.rangeCount)return!1;le.deleteFromDocument(),le.getRangeAt(0).insertNode(document.createTextNode(se)),ee.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ie.textEditDivClicked(ie.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},pe.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ie=this.getTextScale(),ee=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),se=this.textElement.getBBox(),le={x:se.width*ie,y:se.height*ie};ee.x-=le.x/2,ee.y-=le.y/2,this.textEditor.style.top=ee.y+"px",this.textEditor.style.left=ee.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ee.x+"px",this.textEditor.style.fontSize=Math.max(16*ie,12)+"px",this.textElement.style.display="none"}},pe.prototype.textEditDivClicked=function(ie){this.text=ie.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},pe.prototype.select=function(){de.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},pe.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),de.prototype.deselect.call(this)},pe.prototype.dblClick=function(ie,ee){de.prototype.dblClick.call(this,ie,ee),this.showTextEditor()},pe.prototype.setColor=function(ie){this.textElement&&Se.setAttributes(this.textElement,[["fill",ie]]),this.color=ie,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ie)},pe.prototype.setFont=function(ie){this.textElement&&Se.setAttributes(this.textElement,[["font-family",ie]]),this.fontFamily=ie,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},pe.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},pe.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},de.prototype.getState.call(this));return ie.typeName=pe.typeName,ie},pe.prototype.restoreState=function(ie){var ee=ie;this.color=ee.color,this.fontFamily=ee.fontFamily,this.padding=ee.padding,this.text=ee.text,this.createVisual(),de.prototype.restoreState.call(this,ie),this.setSize()},pe.prototype.scale=function(ie,ee){de.prototype.scale.call(this,ie,ee),this.setSize(),this.sizeText(),this.positionTextEditor()},pe.typeName="TextMarker",pe.title="Text marker",pe.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',pe}(Qe),Ne=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.color="transparent",le.lineWidth=3,le.drawing=!1,le.pixelRatio=1,le.color=se.defaultColor,le.lineWidth=se.defaultStrokeWidth,le.pixelRatio=se.freehandPixelRatio,le.setColor=le.setColor.bind(le),le.addCanvas=le.addCanvas.bind(le),le.finishCreation=le.finishCreation.bind(le),le.setLineWidth=le.setLineWidth.bind(le),le.colorPanel=new ye("Color",se.defaultColorSet,se.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.lineWidthPanel=new et("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),le.lineWidthPanel.onWidthChanged=le.setLineWidth,le}return ct(pe,de),pe.prototype.ownsTarget=function(ie){return!(!de.prototype.ownsTarget.call(this,ie)&&ie!==this.visual&&ie!==this.drawingImage)},pe.prototype.createVisual=function(){this.visual=Se.createGroup(),this.drawingImage=Se.createImage(),this.visual.appendChild(this.drawingImage);var ie=Se.createTransform();this.visual.transform.baseVal.appendItem(ie),this.addMarkerVisualToContainer(this.visual)},pe.prototype.pointerDown=function(ie,ee){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(ie.x,ie.y),this.drawing=!0):de.prototype.pointerDown.call(this,ie,ee)},pe.prototype.manipulate=function(ie){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ie.x,ie.y),this.canvasContext.stroke()):de.prototype.manipulate.call(this,ie)},pe.prototype.resize=function(ie){de.prototype.resize.call(this,ie),Se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Se.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},pe.prototype.pointerUp=function(ie){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):de.prototype.pointerUp.call(this,ie)},pe.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},pe.prototype.select=function(){this.state==="creating"&&this.finishCreation(),de.prototype.select.call(this)},pe.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),de.prototype.deselect.call(this)},pe.prototype.finishCreation=function(){for(var ie=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ee=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],se=ee[0],le=ee[1],Be=ee[2],$e=ee[3],st=!1,gt=0;gt<this.canvasElement.height;gt++)for(var mt=0;mt<this.canvasElement.width;mt++)ie.data[gt*this.canvasElement.width*4+4*mt+3]>0&&(st=!0,gt<le&&(le=gt),mt<se&&(se=mt),gt>$e&&($e=gt),mt>Be&&(Be=mt));if(st){this.left=se/this.pixelRatio,this.top=le/this.pixelRatio,this.width=(Be-se)/this.pixelRatio,this.height=($e-le)/this.pixelRatio;var Et=document.createElement("canvas");Et.width=Be-se,Et.height=$e-le,Et.getContext("2d").putImageData(this.canvasContext.getImageData(se,le,Be-se,$e-le),0,0),this.drawingImgUrl=Et.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},pe.prototype.setDrawingImage=function(){Se.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Se.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},pe.prototype.setColor=function(ie){this.color=ie,this.colorChanged(ie)},pe.prototype.setLineWidth=function(ie){this.lineWidth=ie},Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=Object.assign({drawingImgUrl:this.drawingImgUrl},de.prototype.getState.call(this));return ie.typeName=pe.typeName,ie},pe.prototype.restoreState=function(ie){this.createVisual(),de.prototype.restoreState.call(this,ie),this.drawingImgUrl=ie.drawingImgUrl,this.setDrawingImage()},pe.prototype.scale=function(ie,ee){de.prototype.scale.call(this,ie,ee),this.setDrawingImage()},pe.typeName="FreehandMarker",pe.title="Freehand marker",pe.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',pe}(Qe),je=function(de){function pe(ie,ee,se){var le=de.call(this,ie,se||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return le.typeBoxes=[],le.currentType=ee,le.setCurrentType=le.setCurrentType.bind(le),le}return ct(pe,de),pe.prototype.getUi=function(){var ie=this,ee=document.createElement("div");ee.style.display="flex",ee.style.overflow="hidden",ee.style.flexGrow="2";for(var se=function($e){var st="both";switch($e){case 0:st="both";break;case 1:st="start";break;case 2:st="end";break;case 3:st="none"}var gt=document.createElement("div");if(gt.style.display="flex",gt.style.flexGrow="2",gt.style.alignItems="center",gt.style.justifyContent="space-between",gt.style.padding="5px",gt.style.borderWidth="2px",gt.style.borderStyle="solid",gt.style.borderColor=st===le.currentType?le.uiStyleSettings.toolboxAccentColor:"transparent",gt.addEventListener("click",function(){ie.setCurrentType(st,gt)}),ee.appendChild(gt),st==="both"||st==="start"){var mt=document.createElement("div");mt.style.display="flex",mt.style.alignItems="center",mt.style.minHeight="20px",mt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,mt.style.marginLeft="5px",gt.appendChild(mt)}var Et=document.createElement("div");Et.style.display="flex",Et.style.alignItems="center",Et.style.minHeight="20px",Et.style.flexGrow="2";var Lt=document.createElement("hr");if(Lt.style.minWidth="20px",Lt.style.border="0px",Lt.style.borderTop="3px solid "+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee"),Lt.style.flexGrow="2",Et.appendChild(Lt),gt.appendChild(Et),st==="both"||st==="end"){var jt=document.createElement("div");jt.style.display="flex",jt.style.alignItems="center",jt.style.minHeight="20px",jt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,jt.style.marginRight="5px",gt.appendChild(jt)}le.typeBoxes.push(gt)},le=this,Be=0;Be<4;Be++)se(Be);return ee},pe.prototype.setCurrentType=function(ie,ee){var se=this;this.currentType=ie,this.typeBoxes.forEach(function(le){le.style.borderColor=le===ee?se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},pe}(Te),Ot=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.arrowType="end",le.arrowBaseHeight=10,le.arrowBaseWidth=10,le.getArrowPoints=le.getArrowPoints.bind(le),le.setArrowType=le.setArrowType.bind(le),le.arrowTypePanel=new je("Arrow type","end"),le.arrowTypePanel.onArrowTypeChanged=le.setArrowType,le}return ct(pe,de),pe.prototype.ownsTarget=function(ie){return!(!de.prototype.ownsTarget.call(this,ie)&&ie!==this.arrow1&&ie!==this.arrow2)},pe.prototype.getArrowPoints=function(ie,ee){var se=this.arrowBaseWidth+2*this.strokeWidth,le=this.arrowBaseHeight+2*this.strokeWidth;return ie-se/2+","+(ee+le/2)+" "+ie+","+(ee-le/2)+" "+(ie+se/2)+","+(ee+le/2)},pe.prototype.createTips=function(){this.arrow1=Se.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Se.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Se.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Se.createTransform()),this.visual.appendChild(this.arrow2)},pe.prototype.pointerDown=function(ie,ee){de.prototype.pointerDown.call(this,ie,ee),this.state==="creating"&&this.createTips()},pe.prototype.adjustVisual=function(){if(de.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",Se.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Se.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ie=0;Math.abs(this.x1-this.x2)>.1&&(ie=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var ee=this.arrow1.transform.baseVal.getItem(0);ee.setRotate(ie,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ee,0);var se=this.arrow2.transform.baseVal.getItem(0);se.setRotate(ie+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(se,0)}},pe.prototype.setArrowType=function(ie){this.arrowType=ie,this.adjustVisual(),this.stateChanged()},Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=Object.assign({arrowType:this.arrowType},de.prototype.getState.call(this));return ie.typeName=pe.typeName,ie},pe.prototype.restoreState=function(ie){de.prototype.restoreState.call(this,ie);var ee=ie;this.arrowType=ee.arrowType,this.createTips(),this.adjustVisual()},pe.typeName="ArrowMarker",pe.title="Arrow marker",pe.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',pe}(bt),it=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.fillColor=se.defaultFillColor,le.strokeWidth=0,le.fillPanel=new ye("Color",se.defaultColorSet,se.defaultFillColor),le.fillPanel.onColorChanged=le.setFillColor,le}return ct(pe,de),Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=de.prototype.getState.call(this);return ie.typeName=pe.typeName,ie},pe.typeName="CoverMarker",pe.title="Cover marker",pe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',pe}(Re),ht=function(de){function pe(ie,ee,se,le){var Be=de.call(this,ie,le||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return Be.opacities=[],Be.opacityBoxes=[],Be.opacities=ee,Be.currentOpacity=se,Be.setCurrentOpacity=Be.setCurrentOpacity.bind(Be),Be}return ct(pe,de),pe.prototype.getUi=function(){var ie=this,ee=document.createElement("div");return ee.style.display="flex",ee.style.overflow="hidden",ee.style.flexGrow="2",ee.style.justifyContent="space-between",this.opacities.forEach(function(se){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="center",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=se===ie.currentOpacity?ie.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ie.setCurrentOpacity(se,le)}),ee.appendChild(le);var Be=document.createElement("div");Be.innerText=100*se+"%",le.appendChild(Be),ie.opacityBoxes.push(le)}),ee},pe.prototype.setCurrentOpacity=function(ie,ee){var se=this;this.currentOpacity=ie,this.opacityBoxes.forEach(function(le){le.style.borderColor=le===ee?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},pe}(Te),Bt=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.setOpacity=le.setOpacity.bind(le),le.fillColor=se.defaultHighlightColor,le.strokeWidth=0,le.opacity=se.defaultHighlightOpacity,le.fillPanel=new ye("Color",se.defaultColorSet,le.fillColor),le.fillPanel.onColorChanged=le.setFillColor,le.opacityPanel=new ht("Opacity",se.defaultOpacitySteps,le.opacity),le.opacityPanel.onOpacityChanged=le.setOpacity,le}return ct(pe,de),pe.prototype.setOpacity=function(ie){this.opacity=ie,this.visual&&Se.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=de.prototype.getState.call(this);return ie.typeName=pe.typeName,ie},pe.typeName="HighlightMarker",pe.title="Highlight marker",pe.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',pe}(it),We='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',_e='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',ot=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.bgColor="transparent",le.tipPosition={x:0,y:0},le.tipBase1Position={x:0,y:0},le.tipBase2Position={x:0,y:0},le.tipMoving=!1,le.color=se.defaultStrokeColor,le.bgColor=se.defaultFillColor,le.fontFamily=se.defaultFontFamily,le.defaultSize={x:100,y:30},le.setBgColor=le.setBgColor.bind(le),le.getTipPoints=le.getTipPoints.bind(le),le.positionTip=le.positionTip.bind(le),le.setTipPoints=le.setTipPoints.bind(le),le.colorPanel=new ye("Text color",se.defaultColorSet,le.color,We),le.colorPanel.onColorChanged=le.setColor,le.bgColorPanel=new ye("Fill color",se.defaultColorSet,le.bgColor,_e),le.bgColorPanel.onColorChanged=le.setBgColor,le.fontFamilyPanel=new He("Font",se.defaultFontFamilies,se.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.tipGrip=new ke,le.tipGrip.visual.transform.baseVal.appendItem(Se.createTransform()),le.controlBox.appendChild(le.tipGrip.visual),le}return ct(pe,de),pe.prototype.ownsTarget=function(ie){return de.prototype.ownsTarget.call(this,ie)||this.tipGrip.ownsTarget(ie)||this.tip===ie},pe.prototype.createTip=function(){Se.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Se.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},pe.prototype.pointerDown=function(ie,ee){this.state==="new"&&de.prototype.pointerDown.call(this,ie,ee),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ee)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):de.prototype.pointerDown.call(this,ie,ee)},pe.prototype.pointerUp=function(ie){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,de.prototype.pointerUp.call(this,ie);else{var ee=this.state==="creating";de.prototype.pointerUp.call(this,ie),this.setTipPoints(ee),this.positionTip()}},pe.prototype.manipulate=function(ie){if(this.tipMoving){var ee=this.unrotatePoint(ie);this.tipPosition={x:ee.x-this.manipulationStartLeft,y:ee.y-this.manipulationStartTop},this.positionTip()}else de.prototype.manipulate.call(this,ie)},pe.prototype.setBgColor=function(ie){this.bgRectangle&&this.tip&&(Se.setAttributes(this.bgRectangle,[["fill",ie]]),Se.setAttributes(this.tip,[["fill",ie]])),this.bgColor=ie,this.fillColorChanged(ie)},pe.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},pe.prototype.setTipPoints=function(ie){ie===void 0&&(ie=!1);var ee=Math.min(this.height/2,15),se=this.height/5;ie&&(this.tipPosition={x:ee+se/2,y:this.height+20});var le=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?le<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(se=this.width/5,ee=Math.min(this.width/2,15),this.tipBase1Position={x:ee,y:0},this.tipBase2Position={x:ee+se,y:0}):(this.tipBase1Position={x:0,y:ee},this.tipBase2Position={x:0,y:ee+se}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?le<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(se=this.width/5,ee=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ee-se,y:0},this.tipBase2Position={x:this.width-ee,y:0}):(this.tipBase1Position={x:this.width,y:ee},this.tipBase2Position={x:this.width,y:ee+se}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?le<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(se=this.width/5,ee=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ee-se,y:this.height},this.tipBase2Position={x:this.width-ee,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-ee-se},this.tipBase2Position={x:this.width,y:this.height-ee}):le<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(se=this.width/5,ee=Math.min(this.width/2,15),this.tipBase1Position={x:ee,y:this.height},this.tipBase2Position={x:ee+se,y:this.height}):(this.tipBase1Position={x:0,y:this.height-ee},this.tipBase2Position={x:0,y:this.height-ee-se})},pe.prototype.resize=function(ie){de.prototype.resize.call(this,ie),this.positionTip()},pe.prototype.positionTip=function(){Se.setAttributes(this.tip,[["points",this.getTipPoints()]]);var ie=this.tipGrip.visual.transform.baseVal.getItem(0);ie.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(ie,0)},Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),pe.prototype.select=function(){this.positionTip(),de.prototype.select.call(this)},pe.prototype.getState=function(){var ie=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},de.prototype.getState.call(this));return ie.typeName=pe.typeName,ie},pe.prototype.restoreState=function(ie){var ee=ie;this.bgColor=ee.bgColor,this.tipPosition=ee.tipPosition,de.prototype.restoreState.call(this,ie),this.createTip(),this.setTipPoints()},pe.prototype.scale=function(ie,ee){de.prototype.scale.call(this,ie,ee),this.tipPosition={x:this.tipPosition.x*ie,y:this.tipPosition.y*ee},this.positionTip()},pe.typeName="CalloutMarker",pe.title="Callout marker",pe.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',pe}(pt),Zt=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.opacity=1,le.strokeColor=se.defaultColor,le.strokeWidth=se.defaultStrokeWidth,le.strokeDasharray=se.defaultStrokeDasharray,le.fillColor=se.defaultFillColor,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.setOpacity=le.setOpacity.bind(le),le.createVisual=le.createVisual.bind(le),le.strokePanel=new ye("Line color",ze(se.defaultColorSet,["transparent"]),se.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.fillPanel=new ye("Fill color",ze(se.defaultColorSet,["transparent"]),le.fillColor,_e),le.fillPanel.onColorChanged=le.setFillColor,le.strokeWidthPanel=new et("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ge("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le.opacityPanel=new ht("Opacity",se.defaultOpacitySteps,le.opacity),le.opacityPanel.onOpacityChanged=le.setOpacity,le}return ct(pe,de),pe.prototype.ownsTarget=function(ie){return!(!de.prototype.ownsTarget.call(this,ie)&&ie!==this.visual)},pe.prototype.createVisual=function(){this.visual=Se.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},pe.prototype.pointerDown=function(ie,ee){de.prototype.pointerDown.call(this,ie,ee),this.state==="new"&&(this.createVisual(),this.moveVisual(ie),this._state="creating")},pe.prototype.manipulate=function(ie){de.prototype.manipulate.call(this,ie)},pe.prototype.resize=function(ie){de.prototype.resize.call(this,ie),this.setSize()},pe.prototype.setSize=function(){de.prototype.setSize.call(this),Se.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},pe.prototype.pointerUp=function(ie){de.prototype.pointerUp.call(this,ie),this.setSize()},pe.prototype.setStrokeColor=function(ie){this.strokeColor=ie,this.visual&&Se.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ie),this.stateChanged()},pe.prototype.setFillColor=function(ie){this.fillColor=ie,this.visual&&Se.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ie),this.stateChanged()},pe.prototype.setStrokeWidth=function(ie){this.strokeWidth=ie,this.visual&&Se.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},pe.prototype.setStrokeDasharray=function(ie){this.strokeDasharray=ie,this.visual&&Se.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},pe.prototype.setOpacity=function(ie){this.opacity=ie,this.visual&&Se.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},de.prototype.getState.call(this));return ie.typeName=pe.typeName,ie},pe.prototype.restoreState=function(ie){var ee=ie;this.fillColor=ee.fillColor,this.strokeColor=ee.strokeColor,this.strokeWidth=ee.strokeWidth,this.strokeDasharray=ee.strokeDasharray,this.opacity=ee.opacity,this.createVisual(),de.prototype.restoreState.call(this,ie),this.setSize()},pe.prototype.scale=function(ie,ee){de.prototype.scale.call(this,ie,ee),this.setSize()},pe.typeName="EllipseMarker",pe.title="Ellipse marker",pe.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',pe}(Qe),zt=function(de){function pe(ie,ee,se){return de.call(this,ie,ee,se)||this}return ct(pe,de),Object.defineProperty(pe.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),pe.prototype.ownsTarget=function(ie){return!(!de.prototype.ownsTarget.call(this,ie)&&ie!==this.tip1&&ie!==this.tip2)},pe.prototype.createTips=function(){this.tip1=Se.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(Se.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Se.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(Se.createTransform()),this.visual.appendChild(this.tip2)},pe.prototype.pointerDown=function(ie,ee){de.prototype.pointerDown.call(this,ie,ee),this.state==="creating"&&this.createTips()},pe.prototype.adjustVisual=function(){if(de.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Se.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Se.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var ie=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ee=this.tip1.transform.baseVal.getItem(0);ee.setRotate(ie,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ee,0);var se=this.tip2.transform.baseVal.getItem(0);se.setRotate(ie+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(se,0)}},Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=de.prototype.getState.call(this);return ie.typeName=pe.typeName,ie},pe.prototype.restoreState=function(ie){de.prototype.restoreState.call(this,ie),this.createTips(),this.adjustVisual()},pe.typeName="MeasurementMarker",pe.title="Measurement marker",pe.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',pe}(bt),tt=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.strokePanel.colors=se.defaultColorSet,le.fillColor="transparent",le}return ct(pe,de),Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=de.prototype.getState.call(this);return ie.typeName=pe.typeName,ie},pe.typeName="EllipseFrameMarker",pe.title="Ellipse frame marker",pe.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',pe}(Zt),Nt=function(){function de(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(de.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),de.prototype.addUndoStep=function(pe){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(pe)||(this.undoStack.push(pe),JSON.stringify(this.lastRedoStep)!==JSON.stringify(pe)&&this.redoStack.splice(0,this.redoStack.length))},de.prototype.replaceLastUndoStep=function(pe){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=pe)},de.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},de.prototype.undo=function(){if(this.undoStack.length>1){var pe=this.undoStack.pop();return pe!==void 0&&this.redoStack.push(pe),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},de.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},de}(),Ut=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.curveX=0,le.curveY=0,le.manipulationStartCurveX=0,le.manipulationStartCurveY=0,le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.positionGrips=le.positionGrips.bind(le),le.addControlGrips=le.addControlGrips.bind(le),le.adjustVisual=le.adjustVisual.bind(le),le.setupControlBox=le.setupControlBox.bind(le),le.resize=le.resize.bind(le),le.strokeColor=se.defaultColor,le.strokeWidth=se.defaultStrokeWidth,le.strokeDasharray=se.defaultStrokeDasharray,le.strokePanel=new ye("Line color",se.defaultColorSet,se.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new et("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ge("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return ct(pe,de),pe.prototype.ownsTarget=function(ie){return!(!de.prototype.ownsTarget.call(this,ie)&&ie!==this.visual&&ie!==this.selectorCurve&&ie!==this.visibleCurve&&!this.curveGrip.ownsTarget(ie))},pe.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},pe.prototype.createVisual=function(){this.visual=Se.createGroup(),this.selectorCurve=Se.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Se.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},pe.prototype.pointerDown=function(ie,ee){de.prototype.pointerDown.call(this,ie,ee),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ie.x,this.curveY=ie.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ee)&&(this.activeGrip=this.curveGrip,this._state="resize")},pe.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Se.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Se.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Se.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},pe.prototype.setupControlBox=function(){de.prototype.setupControlBox.call(this),this.curveControlLine1=Se.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Se.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},pe.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,de.prototype.addControlGrips.call(this)},pe.prototype.positionGrips=function(){de.prototype.positionGrips.call(this);var ie=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ie/2,this.curveY-ie/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},pe.prototype.manipulate=function(ie){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ie.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ie.y-this.manipulationStartY),de.prototype.manipulate.call(this,ie)},pe.prototype.resize=function(ie){this.activeGrip===this.curveGrip&&(this.curveX=ie.x,this.curveY=ie.y),de.prototype.resize.call(this,ie),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},pe.prototype.setStrokeColor=function(ie){this.strokeColor=ie,this.adjustVisual(),this.colorChanged(ie)},pe.prototype.setStrokeWidth=function(ie){this.strokeWidth=ie,this.adjustVisual()},pe.prototype.setStrokeDasharray=function(ie){this.strokeDasharray=ie,this.adjustVisual()},pe.prototype.scale=function(ie,ee){this.curveX=this.curveX*ie,this.curveY=this.curveY*ee,de.prototype.scale.call(this,ie,ee)},Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},de.prototype.getState.call(this));return ie.typeName=pe.typeName,ie},pe.prototype.restoreState=function(ie){de.prototype.restoreState.call(this,ie);var ee=ie;this.strokeColor=ee.strokeColor,this.strokeWidth=ee.strokeWidth,this.strokeDasharray=ee.strokeDasharray,this.curveX=ee.curveX,this.curveY=ee.curveY,this.createVisual(),this.adjustVisual()},pe.typeName="CurveMarker",pe.title="Curve marker",pe.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',pe}(ft),pn=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.textColor="transparent",le.fontSize="1rem",le.isMoved=!1,le.captionText="Caption",le.PADDING=5,le.captionBoxWidth=0,le.captionBoxHeight=0,le.strokeColor=se.defaultColor,le.strokeWidth=se.defaultStrokeWidth,le.strokeDasharray=se.defaultStrokeDasharray,le.fillColor=se.defaultFillColor,le.textColor=se.defaultStrokeColor,le.fontFamily=se.defaultFontFamily,le.fontSize=se.defaultCaptionFontSize,le.captionText=se.defaultCaptionText,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le.sizeCaption=le.sizeCaption.bind(le),le.setCaptionText=le.setCaptionText.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.finishTextEditing=le.finishTextEditing.bind(le),le.setFont=le.setFont.bind(le),le.setTextColor=le.setTextColor.bind(le),le.strokePanel=new ye("Line color",ze(se.defaultColorSet,["transparent"]),le.strokeColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.fillPanel=new ye("Fill color",ze(se.defaultColorSet,["transparent"]),le.fillColor,_e),le.fillPanel.onColorChanged=le.setFillColor,le.strokeWidthPanel=new et("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ge("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le.fontFamilyPanel=new He("Font",se.defaultFontFamilies,se.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.textColorPanel=new ye("Text color",se.defaultColorSet,le.textColor,We),le.textColorPanel.onColorChanged=le.setTextColor,le}return ct(pe,de),pe.prototype.ownsTarget=function(ie){return!(!de.prototype.ownsTarget.call(this,ie)&&ie!==this.visual&&ie!==this.frame&&ie!==this.captionBg&&ie!==this.captionElement)},pe.prototype.createVisual=function(){this.visual=Se.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Se.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Se.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=Se.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},pe.prototype.setCaptionText=function(ie){this.captionText=ie,this.captionElement.textContent=this.captionText,this.sizeCaption()},pe.prototype.pointerDown=function(ie,ee){de.prototype.pointerDown.call(this,ie,ee),this.isMoved=!1,this.pointerDownPoint=ie,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ie),this._state="creating")},pe.prototype.manipulate=function(ie){de.prototype.manipulate.call(this,ie),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ie.x-this.pointerDownPoint.x)>5||Math.abs(ie.y-this.pointerDownPoint.y)>5)},pe.prototype.resize=function(ie){de.prototype.resize.call(this,ie),this.setSize()},pe.prototype.sizeCaption=function(){var ie=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ie.width+2*this.PADDING,this.captionBoxHeight=ie.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Se.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),Se.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},pe.prototype.showTextEditor=function(){var ie=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(ee){ee.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(ee){ee.key==="Enter"&&ie.finishTextEditing(ie.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(ee){ee.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ie.finishTextEditing(ie.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ie.finishTextEditing(ie.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},pe.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},pe.prototype.finishTextEditing=function(ie){this.setCaptionText(ie.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},pe.prototype.setFont=function(ie){this.captionElement&&Se.setAttributes(this.captionElement,[["font-family",ie]]),this.fontFamily=ie,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},pe.prototype.setTextColor=function(ie){this.captionElement&&Se.setAttributes(this.captionElement,[["fill",ie]]),this.textColor=ie,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},pe.prototype.setSize=function(){de.prototype.setSize.call(this),Se.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},pe.prototype.pointerUp=function(ie){de.prototype.pointerUp.call(this,ie),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},pe.prototype.dblClick=function(ie,ee){de.prototype.dblClick.call(this,ie,ee),this.showTextEditor()},pe.prototype.setStrokeColor=function(ie){this.strokeColor=ie,this.frame&&Se.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ie),this.stateChanged()},pe.prototype.setFillColor=function(ie){this.fillColor=ie,this.captionBg&&Se.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ie),this.stateChanged()},pe.prototype.setStrokeWidth=function(ie){this.strokeWidth=ie,this.frame&&Se.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},pe.prototype.setStrokeDasharray=function(ie){this.strokeDasharray=ie,this.frame&&Se.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},de.prototype.getState.call(this));return ie.typeName=this.typeName,ie},pe.prototype.restoreState=function(ie){var ee=ie;this.fillColor=ee.fillColor,this.strokeColor=ee.strokeColor,this.strokeWidth=ee.strokeWidth,this.strokeDasharray=ee.strokeDasharray,this.textColor=ee.textColor,this.fontFamily=ee.fontFamily,this.captionText=ee.captionText,this.fontSize=ee.fontSize,this.createVisual(),de.prototype.restoreState.call(this,ie),this.setSize()},pe.prototype.scale=function(ie,ee){de.prototype.scale.call(this,ie,ee),this.setSize()},pe.typeName="CaptionFrameMarker",pe.title="Caption frame marker",pe.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',pe}(Qe),kt=function(){function de(pe,ie){ie===void 0&&(ie=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=pe,this.cancelable=ie}return Object.defineProperty(de.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),de.prototype.preventDefault=function(){this._defaultPrevented=!0},de}(),mn=function(de){function pe(ie,ee,se){var le=de.call(this,ie,!1)||this;return le.dataUrl=ee,le.state=se,le}return ct(pe,de),pe}(kt),_t=function(de){function pe(ie,ee,se){se===void 0&&(se=!1);var le=de.call(this,ie,se)||this;return le.marker=ee,le}return ct(pe,de),pe}(kt),Cn=function(){function de(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return de.prototype.addEventListener=function(pe,ie){this[pe].push(ie)},de.prototype.removeEventListener=function(pe,ie){var ee=this[pe].indexOf(ie);ee>-1&&this[pe].splice(ee,1)},de}(),an=function(){function de(pe){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new at,this._isOpen=!1,this.undoRedoManager=new Nt,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Cn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=de.instanceCounter++,this.styles=new oe(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=pe,this.targetRoot=document.body,this.width=pe.clientWidth,this.height=pe.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(de.prototype,"ALL_MARKER_TYPES",{get:function(){return[ut,Ne,Ot,pt,tt,Zt,Bt,ot,zt,it,bt,Ut,pn]},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ut,Ne,Ot,pt,Zt,Bt,ot]},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ut,Ne,Ot,pt,Bt]},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(pe){var ie=this;this._availableMarkerTypes.splice(0),pe.forEach(function(ee){if(typeof ee=="string"){var se=ie.ALL_MARKER_TYPES.find(function(le){return le.typeName===ee});se!==void 0&&ie._availableMarkerTypes.push(se)}else ie._availableMarkerTypes.push(ee)})},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(pe){this._zoomLevel=pe,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),de.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ue.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},de.prototype.show=function(){var pe=this;this.styles.styleSheetRoot===void 0&&Ce.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ce.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ie){return ie(new kt(pe))})},de.prototype.render=function(){return Le(this,void 0,void 0,function(){var pe;return Je(this,function(ie){switch(ie.label){case 0:return this.setCurrentMarker(),(pe=new fe).naturalSize=this.renderAtNaturalSize,pe.imageType=this.renderImageType,pe.imageQuality=this.renderImageQuality,pe.markersOnly=this.renderMarkersOnly,pe.width=this.renderWidth,pe.height=this.renderHeight,[4,pe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ie.sent(),[4,pe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ie.sent()]}})})},de.prototype.close=function(pe){var ie=this;if(pe===void 0&&(pe=!1),this.isOpen){var ee=!1;pe||this.eventListeners.beforeclose.forEach(function(se){var le=new kt(ie,!0);se(le),le.defaultPrevented&&(ee=!0)}),ee||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(se){return se(new kt(ie))}),this.detachEvents(),this._isOpen=!1)}},de.prototype.addMarkersToToolbar=function(){for(var pe,ie=[],ee=0;ee<arguments.length;ee++)ie[ee]=arguments[ee];(pe=this._availableMarkerTypes).push.apply(pe,ie)},de.prototype.addRenderEventListener=function(pe){this.addEventListener("render",function(ie){pe(ie.dataUrl,ie.state)})},de.prototype.removeRenderEventListener=function(pe){},de.prototype.addCloseEventListener=function(pe){this.addEventListener("close",function(){pe()})},de.prototype.removeCloseEventListener=function(pe){},de.prototype.setupResizeObserver=function(){var pe=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){pe.resize(pe.target.clientWidth,pe.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return pe.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},de.prototype.onPopupTargetResize=function(){var pe=1*this.target.clientWidth/this.target.clientHeight,ie=this.editorCanvas.clientWidth/pe>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*pe:this.editorCanvas.clientWidth,ee=ie<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/pe;this.resize(ie,ee)},de.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},de.prototype.resize=function(pe,ie){this._isResizing=!0;var ee=pe/this.imageWidth,se=ie/this.imageHeight;this.imageWidth=Math.round(pe),this.imageHeight=Math.round(ie),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(ee,se),this._isResizing=!1},de.prototype.scaleMarkers=function(pe,ie){var ee,se=this;this._currentMarker&&this._currentMarker instanceof pt?this._currentMarker.scale(pe,ie):(ee=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(le){le!==se._currentMarker&&le.scale(pe,ie)}),ee!==void 0&&this.setCurrentMarker(ee)},de.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},de.prototype.setTopLeft=function(){var pe=this.editingTarget.getBoundingClientRect(),ie=this.editorCanvas.getBoundingClientRect();this.left=pe.left-ie.left,this.top=pe.top-ie.top},de.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},de.prototype.addDefs=function(){for(var pe,ie=[],ee=0;ee<arguments.length;ee++)ie[ee]=arguments[ee];this.defs=Se.createDefs(),this.addDefsToImage(),(pe=this.defs).append.apply(pe,ie)},de.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},de.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},de.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},de.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},de.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},de.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},de.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},de.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var pe=document.createElement("a");pe.href="https://markerjs.com/",pe.target="_blank",pe.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',pe.title="Powered by marker.js",pe.style.display="grid",pe.style.alignItems="center",pe.style.justifyItems="center",pe.style.padding="3px",pe.style.width="20px",pe.style.height="20px",this.logoUI.appendChild(pe),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},de.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},de.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},de.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},de.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var pe=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=pe+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new Me(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new Fe(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},de.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},de.prototype.removeMarker=function(pe){this.markerImage.removeChild(pe.container),this.markers.indexOf(pe)>-1&&this.markers.splice(this.markers.indexOf(pe),1),pe.dispose()},de.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},de.prototype.toolbarButtonClicked=function(pe,ie){if(pe==="marker"&&ie!==void 0)this.createNewMarker(ie);else if(pe==="action")switch(ie){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},de.prototype.deleteSelectedMarker=function(){var pe=this;if(this._currentMarker!==void 0){var ie=!1;if(this.eventListeners.markerbeforedelete.forEach(function(se){var le=new _t(pe,pe._currentMarker,!0);se(le),le.defaultPrevented&&(ie=!0)}),!ie){var ee=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(se){return se(new _t(pe,ee))})}}},de.prototype.clear=function(){var pe=this,ie=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Be){var $e=new _t(pe,void 0,!0);Be($e),$e.defaultPrevented&&(ie=!0)}),!ie)){this.setCurrentMarker();for(var ee=function(Be){var $e=se.markers[Be];se.setCurrentMarker(se.markers[Be]),se._currentMarker.dispose(),se.markerImage.removeChild(se._currentMarker.container),se.markers.splice(se.markers.indexOf(se._currentMarker),1),se.eventListeners.markerdelete.forEach(function(st){return st(new _t(pe,$e))})},se=this,le=this.markers.length-1;le>=0;le--)ee(le);this.addUndoStep()}},Object.defineProperty(de.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),de.prototype.showNotesEditor=function(){var pe;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(pe=this._currentMarker.notes)!==null&&pe!==void 0?pe:"",this.overlayContainer.appendChild(this.notesArea))},de.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},de.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},de.prototype.addUndoStep=function(){var pe=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ie=this.getState(),ee=this.undoRedoManager.getLastUndoStep();if(!ee||ee.width===ie.width&&ee.height===ie.height){var se=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ie),se<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(le){return le(new kt(pe))})}else this.undoRedoManager.replaceLastUndoStep(ie),this.eventListeners.statechange.forEach(function(le){return le(new kt(pe))})}},de.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},de.prototype.undoStep=function(){var pe=this,ie=this.undoRedoManager.undo();ie!==void 0&&(this.restoreState(ie),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ee){return ee(new kt(pe))}))},de.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},de.prototype.redoStep=function(){var pe=this,ie=this.undoRedoManager.redo();ie!==void 0&&(this.restoreState(ie),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ee){return ee(new kt(pe))}))},de.prototype.stepZoom=function(){var pe=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=pe<this.zoomSteps.length-1?this.zoomSteps[pe+1]:this.zoomSteps[0]},de.prototype.panTo=function(pe){this.contentDiv.scrollBy({left:this.prevPanPoint.x-pe.x,top:this.prevPanPoint.y-pe.y}),this.prevPanPoint=pe},de.prototype.startRenderAndClose=function(){return Le(this,void 0,void 0,function(){var pe,ie,ee=this;return Je(this,function(se){switch(se.label){case 0:return[4,this.render()];case 1:return pe=se.sent(),ie=this.getState(),this.eventListeners.render.forEach(function(le){return le(new mn(ee,pe,ie))}),this.close(!0),[2]}})})},de.prototype.getState=function(pe){pe===!0&&this.setCurrentMarker();var ie={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(ee){return ie.markers.push(ee.getState())}),ie},de.prototype.restoreState=function(pe){var ie=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);pe.markers.forEach(function(ee){var se=ie._availableMarkerTypes.find(function(Be){return Be.typeName===ee.typeName});if(se!==void 0){var le=ie.addNewMarker(se);le.restoreState(ee),ie.markers.push(le)}}),pe.width&&pe.height&&(pe.width!==this.imageWidth||pe.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/pe.width,this.imageHeight/pe.height),this.eventListeners.restorestate.forEach(function(ee){return ee(new kt(ie))})},de.prototype.addNewMarker=function(pe){var ie=Se.createGroup();return this.markerImage.appendChild(ie),new pe(ie,this.overlayContainer,this.settings)},de.prototype.createNewMarker=function(pe){var ie,ee=this;(ie=typeof pe=="string"?this._availableMarkerTypes.find(function(se){return se.typeName===pe}):pe)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(ie),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(ie.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(se){return se(new _t(ee,ee._currentMarker))}))},de.prototype.markerCreated=function(pe){var ie=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(pe),this.setCurrentMarker(pe),pe instanceof Ne&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ne):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(ee){return ee(new _t(ie,ie._currentMarker))})},de.prototype.colorChanged=function(pe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=pe,this.settings.defaultStrokeColor=pe)},de.prototype.fillColorChanged=function(pe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=pe)},de.prototype.markerStateChanged=function(pe){var ie=this;this.eventListeners.markerchange.forEach(function(ee){return ee(new _t(ie,pe))})},de.prototype.setCurrentMarker=function(pe){var ie=this;this._currentMarker!==pe&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(ee){return ee(new _t(ie,ie._currentMarker))})),this._currentMarker=pe,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(ee){return ee(new _t(ie,ie._currentMarker))}))},de.prototype.onPointerDown=function(pe){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||pe.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var ie=this.markers.find(function(ee){return ee.ownsTarget(pe.target)});ie!==void 0?(this.setCurrentMarker(ie),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(pe.clientX,pe.clientY),pe.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:pe.clientX,y:pe.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(pe.clientX,pe.clientY))},de.prototype.onDblClick=function(pe){if(this._isFocused||this.focus(),this.mode==="select"){var ie=this.markers.find(function(ee){return ee.ownsTarget(pe.target)});ie!==void 0&&ie!==this._currentMarker&&this.setCurrentMarker(ie),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(pe.clientX,pe.clientY),pe.target):this.setCurrentMarker()}},de.prototype.onPointerMove=function(pe){this.touchPoints!==1&&pe.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||pe.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(pe.clientX,pe.clientY)):this.zoomLevel>1&&this.panTo({x:pe.clientX,y:pe.clientY}))},de.prototype.onPointerUp=function(pe){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(pe.clientX,pe.clientY)),this.isDragging=!1,this.addUndoStep()},de.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},de.prototype.onKeyUp=function(pe){this._currentMarker===void 0||this.notesArea!==void 0||pe.key!=="Delete"&&pe.key!=="Backspace"||this.deleteSelectedMarker()},de.prototype.clientToLocalCoordinates=function(pe,ie){var ee=this.markerImage.getBoundingClientRect();return{x:(pe-ee.left)/this.zoomLevel,y:(ie-ee.top)/this.zoomLevel}},de.prototype.onWindowResize=function(){this.positionUI()},de.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var pe=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=pe+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},de.prototype.addLicenseKey=function(pe){Ue.addKey(pe)},de.prototype.addEventListener=function(pe,ie){this.eventListeners.addEventListener(pe,ie)},de.prototype.removeEventListener=function(pe,ie){this.eventListeners.removeEventListener(pe,ie)},de.prototype.renderState=function(pe){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(pe),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(de.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),de.prototype.focus=function(){var pe=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ie){return ie(new kt(pe))}))},de.prototype.blur=function(){var pe=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ie){return ie(new kt(pe))}))},de.instanceCounter=0,de}()},6551:function(Vn,Mt,ae){"use strict";ae.d(Mt,{ZP:function(){return Ue}});var x=ae(42978),ct=ae(59301),Le=ae(47273),Je=0,ze=(0,Le.Z)();function Se(){var fe;return ze?(fe=Je,Je+=1):fe="TEST_OR_SSR",fe}function Ue(fe){var Ce=ct.useState(),oe=(0,x.Z)(Ce,2),Oe=oe[0],ve=oe[1];return ct.useEffect(function(){ve("rc_select_".concat(Se()))},[]),fe||Oe}},37463:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Ac:function(){return tn},Xo:function(){return En},Wx:function(){return un},ZP:function(){return Yt},lk:function(){return Ke}});var x=ae(54476),ct=ae(94480),Le=ae(20068),Je=ae(33885),ze=ae(42978),Se=ae(75931),Ue=ae(76190),fe=ae(18929),Ce=ae(48736),oe=ae(59301),Oe=ae(92310),ve=ae.n(Oe),Me=ae(34280),Fe=ae(49658),Te=ae(8654),ye=function(fn){var Pt=fn.className,en=fn.customizeIcon,Kt=fn.customizeIconProps,gn=fn.children,On=fn.onMouseDown,Nr=fn.onClick,Yr=typeof en=="function"?en(Kt):en;return oe.createElement("span",{className:Pt,onMouseDown:function(rr){rr.preventDefault(),On==null||On(rr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Nr,"aria-hidden":!0},Yr!==void 0?Yr:oe.createElement("span",{className:ve()(Pt.split(/\s+/).map(function(hi){return"".concat(hi,"-icon")}))},gn))},xe=ye,Ee=function(fn,Pt,en,Kt,gn){var On=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Nr=arguments.length>6?arguments[6]:void 0,Yr=arguments.length>7?arguments[7]:void 0,hi=oe.useMemo(function(){if((0,Ue.Z)(Kt)==="object")return Kt.clearIcon;if(gn)return gn},[Kt,gn]),rr=oe.useMemo(function(){return!!(!On&&Kt&&(en.length||Nr)&&!(Yr==="combobox"&&Nr===""))},[Kt,On,en.length,Nr,Yr]);return{allowClear:rr,clearIcon:oe.createElement(xe,{className:"".concat(fn,"-clear"),onMouseDown:Pt,customizeIcon:hi},"\xD7")}},ke=oe.createContext(null);function Ke(){return oe.useContext(ke)}function Qe(){var rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,fn=oe.useState(!1),Pt=(0,ze.Z)(fn,2),en=Pt[0],Kt=Pt[1],gn=oe.useRef(null),On=function(){window.clearTimeout(gn.current)};oe.useEffect(function(){return On},[]);var Nr=function(hi,rr){On(),gn.current=window.setTimeout(function(){Kt(hi),rr&&rr()},rn)};return[en,Nr,On]}function Re(){var rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,fn=oe.useRef(null),Pt=oe.useRef(null);oe.useEffect(function(){return function(){window.clearTimeout(Pt.current)}},[]);function en(Kt){(Kt||fn.current===null)&&(fn.current=Kt),window.clearTimeout(Pt.current),Pt.current=window.setTimeout(function(){fn.current=null},rn)}return[function(){return fn.current},en]}function et(rn,fn,Pt,en){var Kt=oe.useRef(null);Kt.current={open:fn,triggerOpen:Pt,customizedTrigger:en},oe.useEffect(function(){function gn(On){var Nr;if(!((Nr=Kt.current)!==null&&Nr!==void 0&&Nr.customizedTrigger)){var Yr=On.target;Yr.shadowRoot&&On.composed&&(Yr=On.composedPath()[0]||Yr),Kt.current.open&&rn().filter(function(hi){return hi}).every(function(hi){return!hi.contains(Yr)&&hi!==Yr})&&Kt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",gn),function(){return window.removeEventListener("mousedown",gn)}},[])}var Ge=ae(10228);function ut(rn){return rn&&![Ge.Z.ESC,Ge.Z.SHIFT,Ge.Z.BACKSPACE,Ge.Z.TAB,Ge.Z.WIN_KEY,Ge.Z.ALT,Ge.Z.META,Ge.Z.WIN_KEY_RIGHT,Ge.Z.CTRL,Ge.Z.SEMICOLON,Ge.Z.EQUALS,Ge.Z.CAPS_LOCK,Ge.Z.CONTEXT_MENU,Ge.Z.F1,Ge.Z.F2,Ge.Z.F3,Ge.Z.F4,Ge.Z.F5,Ge.Z.F6,Ge.Z.F7,Ge.Z.F8,Ge.Z.F9,Ge.Z.F10,Ge.Z.F11,Ge.Z.F12].includes(rn)}var at=ae(26112),ft=ae(83836);function bt(rn,fn,Pt){var en=(0,Je.Z)((0,Je.Z)({},rn),Pt?fn:{});return Object.keys(fn).forEach(function(Kt){var gn=fn[Kt];typeof gn=="function"&&(en[Kt]=function(){for(var On,Nr=arguments.length,Yr=new Array(Nr),hi=0;hi<Nr;hi++)Yr[hi]=arguments[hi];return gn.apply(void 0,Yr),(On=rn[Kt])===null||On===void 0?void 0:On.call.apply(On,[rn].concat(Yr))})}),en}var He=bt,pt=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Ne=function(fn,Pt){var en=fn.prefixCls,Kt=fn.id,gn=fn.inputElement,On=fn.autoFocus,Nr=fn.autoComplete,Yr=fn.editable,hi=fn.activeDescendantId,rr=fn.value,ur=fn.open,sr=fn.attrs,ni=(0,Se.Z)(fn,pt),er=gn||oe.createElement("input",null),Rn=er,Ar=Rn.ref,Ei=Rn.props;return(0,Ce.Kp)(!("maxLength"in er.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),er=oe.cloneElement(er,(0,Je.Z)((0,Je.Z)((0,Je.Z)({type:"search"},He(ni,Ei,!0)),{},{id:Kt,ref:(0,Te.sQ)(Pt,Ar),autoComplete:Nr||"off",autoFocus:On,className:ve()("".concat(en,"-selection-search-input"),Ei==null?void 0:Ei.className),role:"combobox","aria-expanded":ur||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Kt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Kt,"_list"),"aria-activedescendant":ur?hi:void 0},sr),{},{value:Yr?rr:"",readOnly:!Yr,unselectable:Yr?null:"on",style:(0,Je.Z)((0,Je.Z)({},Ei.style),{},{opacity:Yr?null:0})})),er},je=oe.forwardRef(Ne),Ot=je;function it(rn){return Array.isArray(rn)?rn:rn!==void 0?[rn]:[]}var ht=typeof window!="undefined"&&window.document&&window.document.documentElement,Bt=ht;function We(rn){return rn!=null}function _e(rn){return!rn&&rn!==0}function ot(rn){return["string","number"].includes((0,Ue.Z)(rn))}function Zt(rn){var fn=void 0;return rn&&(ot(rn.title)?fn=rn.title.toString():ot(rn.label)&&(fn=rn.label.toString())),fn}function zt(rn,fn){Bt?oe.useLayoutEffect(rn,fn):oe.useEffect(rn,fn)}function tt(rn){var fn;return(fn=rn.key)!==null&&fn!==void 0?fn:rn.value}var Nt=function(fn){fn.preventDefault(),fn.stopPropagation()},Ut=function(fn){var Pt=fn.id,en=fn.prefixCls,Kt=fn.values,gn=fn.open,On=fn.searchValue,Nr=fn.autoClearSearchValue,Yr=fn.inputRef,hi=fn.placeholder,rr=fn.disabled,ur=fn.mode,sr=fn.showSearch,ni=fn.autoFocus,er=fn.autoComplete,Rn=fn.activeDescendantId,Ar=fn.tabIndex,Ei=fn.removeIcon,Kn=fn.maxTagCount,vn=fn.maxTagTextLength,$n=fn.maxTagPlaceholder,nr=$n===void 0?function(ri){return"+ ".concat(ri.length," ...")}:$n,fr=fn.tagRender,zr=fn.onToggleOpen,Ni=fn.onRemove,gi=fn.onInputChange,Di=fn.onInputPaste,mi=fn.onInputKeyDown,Si=fn.onInputMouseDown,wi=fn.onInputCompositionStart,Ci=fn.onInputCompositionEnd,yi=fn.onInputBlur,Mi=oe.useRef(null),eo=(0,oe.useState)(0),mo=(0,ze.Z)(eo,2),Yi=mo[0],Io=mo[1],Ri=(0,oe.useState)(!1),ko=(0,ze.Z)(Ri,2),uo=ko[0],Vo=ko[1],wo="".concat(en,"-selection"),to=gn||ur==="multiple"&&Nr===!1||ur==="tags"?On:"",bo=ur==="tags"||ur==="multiple"&&Nr===!1||sr&&(gn||uo);zt(function(){Io(Mi.current.scrollWidth)},[to]);var Go=function(Wr,Qi,no,Kr,ui){return oe.createElement("span",{title:Zt(Wr),className:ve()("".concat(wo,"-item"),(0,Le.Z)({},"".concat(wo,"-item-disabled"),no))},oe.createElement("span",{className:"".concat(wo,"-item-content")},Qi),Kr&&oe.createElement(xe,{className:"".concat(wo,"-item-remove"),onMouseDown:Nt,onClick:ui,customizeIcon:Ei},"\xD7"))},Tn=function(Wr,Qi,no,Kr,ui,vr){var qr=function(Yo){Nt(Yo),zr(!gn)};return oe.createElement("span",{onMouseDown:qr},fr({label:Qi,value:Wr,disabled:no,closable:Kr,onClose:ui,isMaxTag:!!vr}))},Lo=function(Wr){var Qi=Wr.disabled,no=Wr.label,Kr=Wr.value,ui=!rr&&!Qi,vr=no;if(typeof vn=="number"&&(typeof no=="string"||typeof no=="number")){var qr=String(vr);qr.length>vn&&(vr="".concat(qr.slice(0,vn),"..."))}var Ao=function(Do){Do&&Do.stopPropagation(),Ni(Wr)};return typeof fr=="function"?Tn(Kr,vr,Qi,ui,Ao):Go(Wr,vr,Qi,ui,Ao)},Vi=function(Wr){if(!Kt.length)return null;var Qi=typeof nr=="function"?nr(Wr):nr;return typeof fr=="function"?Tn(void 0,Qi,!1,!1,void 0,!0):Go({title:Qi},Qi,!1)},Mr=oe.createElement("div",{className:"".concat(wo,"-search"),style:{width:Yi},onFocus:function(){Vo(!0)},onBlur:function(){Vo(!1)}},oe.createElement(Ot,{ref:Yr,open:gn,prefixCls:en,id:Pt,inputElement:null,disabled:rr,autoFocus:ni,autoComplete:er,editable:bo,activeDescendantId:Rn,value:to,onKeyDown:mi,onMouseDown:Si,onChange:gi,onPaste:Di,onCompositionStart:wi,onCompositionEnd:Ci,onBlur:yi,tabIndex:Ar,attrs:(0,at.Z)(fn,!0)}),oe.createElement("span",{ref:Mi,className:"".concat(wo,"-search-mirror"),"aria-hidden":!0},to,"\xA0")),Jr=oe.createElement(ft.Z,{prefixCls:"".concat(wo,"-overflow"),data:Kt,renderItem:Lo,renderRest:Vi,suffix:Mr,itemKey:tt,maxCount:Kn});return oe.createElement("span",{className:"".concat(wo,"-wrap")},Jr,!Kt.length&&!to&&oe.createElement("span",{className:"".concat(wo,"-placeholder")},hi))},pn=Ut,kt=function(fn){var Pt=fn.inputElement,en=fn.prefixCls,Kt=fn.id,gn=fn.inputRef,On=fn.disabled,Nr=fn.autoFocus,Yr=fn.autoComplete,hi=fn.activeDescendantId,rr=fn.mode,ur=fn.open,sr=fn.values,ni=fn.placeholder,er=fn.tabIndex,Rn=fn.showSearch,Ar=fn.searchValue,Ei=fn.activeValue,Kn=fn.maxLength,vn=fn.onInputKeyDown,$n=fn.onInputMouseDown,nr=fn.onInputChange,fr=fn.onInputPaste,zr=fn.onInputCompositionStart,Ni=fn.onInputCompositionEnd,gi=fn.onInputBlur,Di=fn.title,mi=oe.useState(!1),Si=(0,ze.Z)(mi,2),wi=Si[0],Ci=Si[1],yi=rr==="combobox",Mi=yi||Rn,eo=sr[0],mo=Ar||"";yi&&Ei&&!wi&&(mo=Ei),oe.useEffect(function(){yi&&Ci(!1)},[yi,Ei]);var Yi=rr!=="combobox"&&!ur&&!Rn?!1:!!mo,Io=Di===void 0?Zt(eo):Di,Ri=oe.useMemo(function(){return eo?null:oe.createElement("span",{className:"".concat(en,"-selection-placeholder"),style:Yi?{visibility:"hidden"}:void 0},ni)},[eo,Yi,ni,en]);return oe.createElement("span",{className:"".concat(en,"-selection-wrap")},oe.createElement("span",{className:"".concat(en,"-selection-search")},oe.createElement(Ot,{ref:gn,prefixCls:en,id:Kt,open:ur,inputElement:Pt,disabled:On,autoFocus:Nr,autoComplete:Yr,editable:Mi,activeDescendantId:hi,value:mo,onKeyDown:vn,onMouseDown:$n,onChange:function(uo){Ci(!0),nr(uo)},onPaste:fr,onCompositionStart:zr,onCompositionEnd:Ni,onBlur:gi,tabIndex:er,attrs:(0,at.Z)(fn,!0),maxLength:yi?Kn:void 0})),!yi&&eo?oe.createElement("span",{className:"".concat(en,"-selection-item"),title:Io,style:Yi?{visibility:"hidden"}:void 0},eo.label):null,Ri)},mn=kt,_t=function(fn,Pt){var en=(0,oe.useRef)(null),Kt=(0,oe.useRef)(!1),gn=fn.prefixCls,On=fn.open,Nr=fn.mode,Yr=fn.showSearch,hi=fn.tokenWithEnter,rr=fn.disabled,ur=fn.prefix,sr=fn.autoClearSearchValue,ni=fn.onSearch,er=fn.onSearchSubmit,Rn=fn.onToggleOpen,Ar=fn.onInputKeyDown,Ei=fn.onInputBlur,Kn=fn.domRef;oe.useImperativeHandle(Pt,function(){return{focus:function(Io){en.current.focus(Io)},blur:function(){en.current.blur()}}});var vn=Re(0),$n=(0,ze.Z)(vn,2),nr=$n[0],fr=$n[1],zr=function(Io){var Ri=Io.which,ko=en.current instanceof HTMLTextAreaElement;!ko&&On&&(Ri===Ge.Z.UP||Ri===Ge.Z.DOWN)&&Io.preventDefault(),Ar&&Ar(Io),Ri===Ge.Z.ENTER&&Nr==="tags"&&!Kt.current&&!On&&(er==null||er(Io.target.value)),!(ko&&!On&&~[Ge.Z.UP,Ge.Z.DOWN,Ge.Z.LEFT,Ge.Z.RIGHT].indexOf(Ri))&&ut(Ri)&&Rn(!0)},Ni=function(){fr(!0)},gi=(0,oe.useRef)(null),Di=function(Io){ni(Io,!0,Kt.current)!==!1&&Rn(!0)},mi=function(){Kt.current=!0},Si=function(Io){Kt.current=!1,Nr!=="combobox"&&Di(Io.target.value)},wi=function(Io){var Ri=Io.target.value;if(hi&&gi.current&&/[\r\n]/.test(gi.current)){var ko=gi.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Ri=Ri.replace(ko,gi.current)}gi.current=null,Di(Ri)},Ci=function(Io){var Ri=Io.clipboardData,ko=Ri==null?void 0:Ri.getData("text");gi.current=ko||""},yi=function(Io){var Ri=Io.target;if(Ri!==en.current){var ko=document.body.style.msTouchAction!==void 0;ko?setTimeout(function(){en.current.focus()}):en.current.focus()}},Mi=function(Io){var Ri=nr();Io.target!==en.current&&!Ri&&!(Nr==="combobox"&&rr)&&Io.preventDefault(),(Nr!=="combobox"&&(!Yr||!Ri)||!On)&&(On&&sr!==!1&&ni("",!0,!1),Rn())},eo={inputRef:en,onInputKeyDown:zr,onInputMouseDown:Ni,onInputChange:wi,onInputPaste:Ci,onInputCompositionStart:mi,onInputCompositionEnd:Si,onInputBlur:Ei},mo=Nr==="multiple"||Nr==="tags"?oe.createElement(pn,(0,x.Z)({},fn,eo)):oe.createElement(mn,(0,x.Z)({},fn,eo));return oe.createElement("div",{ref:Kn,className:"".concat(gn,"-selector"),onClick:yi,onMouseDown:Mi},ur&&oe.createElement("div",{className:"".concat(gn,"-prefix")},ur),mo)},Cn=oe.forwardRef(_t),an=Cn,de=ae(65030),pe=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ie=function(fn){var Pt=fn===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Pt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Pt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Pt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Pt,adjustY:1},htmlRegion:"scroll"}}},ee=function(fn,Pt){var en=fn.prefixCls,Kt=fn.disabled,gn=fn.visible,On=fn.children,Nr=fn.popupElement,Yr=fn.animation,hi=fn.transitionName,rr=fn.dropdownStyle,ur=fn.dropdownClassName,sr=fn.direction,ni=sr===void 0?"ltr":sr,er=fn.placement,Rn=fn.builtinPlacements,Ar=fn.dropdownMatchSelectWidth,Ei=fn.dropdownRender,Kn=fn.dropdownAlign,vn=fn.getPopupContainer,$n=fn.empty,nr=fn.getTriggerDOMNode,fr=fn.onPopupVisibleChange,zr=fn.onPopupMouseEnter,Ni=(0,Se.Z)(fn,pe),gi="".concat(en,"-dropdown"),Di=Nr;Ei&&(Di=Ei(Nr));var mi=oe.useMemo(function(){return Rn||ie(Ar)},[Rn,Ar]),Si=Yr?"".concat(gi,"-").concat(Yr):hi,wi=typeof Ar=="number",Ci=oe.useMemo(function(){return wi?null:Ar===!1?"minWidth":"width"},[Ar,wi]),yi=rr;wi&&(yi=(0,Je.Z)((0,Je.Z)({},yi),{},{width:Ar}));var Mi=oe.useRef(null);return oe.useImperativeHandle(Pt,function(){return{getPopupElement:function(){var mo;return(mo=Mi.current)===null||mo===void 0?void 0:mo.popupElement}}}),oe.createElement(de.Z,(0,x.Z)({},Ni,{showAction:fr?["click"]:[],hideAction:fr?["click"]:[],popupPlacement:er||(ni==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:mi,prefixCls:gi,popupTransitionName:Si,popup:oe.createElement("div",{onMouseEnter:zr},Di),ref:Mi,stretch:Ci,popupAlign:Kn,popupVisible:gn,getPopupContainer:vn,popupClassName:ve()(ur,(0,Le.Z)({},"".concat(gi,"-empty"),$n)),popupStyle:yi,getTriggerDOMNode:nr,onPopupVisibleChange:fr}),On)},se=oe.forwardRef(ee),le=se,Be=ae(66712);function $e(rn,fn){var Pt=rn.key,en;return"value"in rn&&(en=rn.value),Pt!=null?Pt:en!==void 0?en:"rc-index-key-".concat(fn)}function st(rn){return typeof rn!="undefined"&&!Number.isNaN(rn)}function gt(rn,fn){var Pt=rn||{},en=Pt.label,Kt=Pt.value,gn=Pt.options,On=Pt.groupLabel,Nr=en||(fn?"children":"label");return{label:Nr,value:Kt||"value",options:gn||"options",groupLabel:On||Nr}}function mt(rn){var fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pt=fn.fieldNames,en=fn.childrenAsData,Kt=[],gn=gt(Pt,!1),On=gn.label,Nr=gn.value,Yr=gn.options,hi=gn.groupLabel;function rr(ur,sr){Array.isArray(ur)&&ur.forEach(function(ni){if(sr||!(Yr in ni)){var er=ni[Nr];Kt.push({key:$e(ni,Kt.length),groupOption:sr,data:ni,label:ni[On],value:er})}else{var Rn=ni[hi];Rn===void 0&&en&&(Rn=ni.label),Kt.push({key:$e(ni,Kt.length),group:!0,data:ni,label:Rn}),rr(ni[Yr],!0)}})}return rr(rn,!1),Kt}function Et(rn){var fn=(0,Je.Z)({},rn);return"props"in fn||Object.defineProperty(fn,"props",{get:function(){return(0,Ce.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),fn}}),fn}var Lt=function(fn,Pt,en){if(!Pt||!Pt.length)return null;var Kt=!1,gn=function Nr(Yr,hi){var rr=(0,Be.Z)(hi),ur=rr[0],sr=rr.slice(1);if(!ur)return[Yr];var ni=Yr.split(ur);return Kt=Kt||ni.length>1,ni.reduce(function(er,Rn){return[].concat((0,ct.Z)(er),(0,ct.Z)(Nr(Rn,sr)))},[]).filter(Boolean)},On=gn(fn,Pt);return Kt?typeof en!="undefined"?On.slice(0,en):On:null},jt=oe.createContext(null),Ct=jt;function lt(rn){var fn=rn.visible,Pt=rn.values;if(!fn)return null;var en=50;return oe.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Pt.slice(0,en).map(function(Kt){var gn=Kt.label,On=Kt.value;return["number","string"].includes((0,Ue.Z)(gn))?gn:On}).join(", ")),Pt.length>en?", ...":null)}var $t=["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","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Wt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],wn=function(fn){return fn==="tags"||fn==="multiple"},ln=oe.forwardRef(function(rn,fn){var Pt,en=rn.id,Kt=rn.prefixCls,gn=rn.className,On=rn.showSearch,Nr=rn.tagRender,Yr=rn.direction,hi=rn.omitDomProps,rr=rn.displayValues,ur=rn.onDisplayValuesChange,sr=rn.emptyOptions,ni=rn.notFoundContent,er=ni===void 0?"Not Found":ni,Rn=rn.onClear,Ar=rn.mode,Ei=rn.disabled,Kn=rn.loading,vn=rn.getInputElement,$n=rn.getRawInputElement,nr=rn.open,fr=rn.defaultOpen,zr=rn.onDropdownVisibleChange,Ni=rn.activeValue,gi=rn.onActiveValueChange,Di=rn.activeDescendantId,mi=rn.searchValue,Si=rn.autoClearSearchValue,wi=rn.onSearch,Ci=rn.onSearchSplit,yi=rn.tokenSeparators,Mi=rn.allowClear,eo=rn.prefix,mo=rn.suffixIcon,Yi=rn.clearIcon,Io=rn.OptionList,Ri=rn.animation,ko=rn.transitionName,uo=rn.dropdownStyle,Vo=rn.dropdownClassName,wo=rn.dropdownMatchSelectWidth,to=rn.dropdownRender,bo=rn.dropdownAlign,Go=rn.placement,Tn=rn.builtinPlacements,Lo=rn.getPopupContainer,Vi=rn.showAction,Mr=Vi===void 0?[]:Vi,Jr=rn.onFocus,ri=rn.onBlur,Wr=rn.onKeyUp,Qi=rn.onKeyDown,no=rn.onMouseDown,Kr=(0,Se.Z)(rn,$t),ui=wn(Ar),vr=(On!==void 0?On:ui)||Ar==="combobox",qr=(0,Je.Z)({},Kr);Wt.forEach(function(Pa){delete qr[Pa]}),hi==null||hi.forEach(function(Pa){delete qr[Pa]});var Ao=oe.useState(!1),Yo=(0,ze.Z)(Ao,2),Do=Yo[0],ga=Yo[1];oe.useEffect(function(){ga((0,Fe.Z)())},[]);var No=oe.useRef(null),Jo=oe.useRef(null),Ro=oe.useRef(null),oa=oe.useRef(null),fa=oe.useRef(null),Wa=oe.useRef(!1),Ds=Qe(),js=(0,ze.Z)(Ds,3),as=js[0],ds=js[1],Mo=js[2];oe.useImperativeHandle(fn,function(){var Pa,Ra;return{focus:(Pa=oa.current)===null||Pa===void 0?void 0:Pa.focus,blur:(Ra=oa.current)===null||Ra===void 0?void 0:Ra.blur,scrollTo:function(nA){var Xl;return(Xl=fa.current)===null||Xl===void 0?void 0:Xl.scrollTo(nA)},nativeElement:No.current||Jo.current}});var go=oe.useMemo(function(){var Pa;if(Ar!=="combobox")return mi;var Ra=(Pa=rr[0])===null||Pa===void 0?void 0:Pa.value;return typeof Ra=="string"||typeof Ra=="number"?String(Ra):""},[mi,Ar,rr]),Fa=Ar==="combobox"&&typeof vn=="function"&&vn()||null,gs=typeof $n=="function"&&$n(),el=(0,Te.x1)(Jo,gs==null||(Pt=gs.props)===null||Pt===void 0?void 0:Pt.ref),tl=oe.useState(!1),nl=(0,ze.Z)(tl,2),gl=nl[0],Au=nl[1];(0,Me.Z)(function(){Au(!0)},[]);var Xs=(0,fe.Z)(!1,{defaultValue:fr,value:nr}),Zl=(0,ze.Z)(Xs,2),Wl=Zl[0],Iu=Zl[1],fl=gl?Wl:!1,SA=!er&&sr;(Ei||SA&&fl&&Ar==="combobox")&&(fl=!1);var hA=SA?!1:fl,pa=oe.useCallback(function(Pa){var Ra=Pa!==void 0?Pa:!fl;Ei||(Iu(Ra),fl!==Ra&&(zr==null||zr(Ra)))},[Ei,fl,Iu,zr]),Ia=oe.useMemo(function(){return(yi||[]).some(function(Pa){return[`
`,`\r
`].includes(Pa)})},[yi]),ma=oe.useContext(Ct)||{},ba=ma.maxCount,qa=ma.rawValues,Va=function(Ra,Ms,nA){if(!(ui&&st(ba)&&(qa==null?void 0:qa.size)>=ba)){var Xl=!0,du=Ra;gi==null||gi(null);var ZA=Lt(Ra,yi,st(ba)?ba-qa.size:void 0),gA=nA?null:ZA;return Ar!=="combobox"&&gA&&(du="",Ci==null||Ci(gA),pa(!1),Xl=!1),wi&&go!==du&&wi(du,{source:Ms?"typing":"effect"}),Xl}},za=function(Ra){!Ra||!Ra.trim()||wi(Ra,{source:"submit"})};oe.useEffect(function(){!fl&&!ui&&Ar!=="combobox"&&Va("",!1,!1)},[fl]),oe.useEffect(function(){Wl&&Ei&&Iu(!1),Ei&&!Wa.current&&ds(!1)},[Ei]);var $l=Re(),cu=(0,ze.Z)($l,2),Ui=cu[0],ta=cu[1],Ta=oe.useRef(!1),au=function(Ra){var Ms=Ui(),nA=Ra.key,Xl=nA==="Enter";if(Xl&&(Ar!=="combobox"&&Ra.preventDefault(),fl||pa(!0)),ta(!!go),nA==="Backspace"&&!Ms&&ui&&!go&&rr.length){for(var du=(0,ct.Z)(rr),ZA=null,gA=du.length-1;gA>=0;gA-=1){var fc=du[gA];if(!fc.disabled){du.splice(gA,1),ZA=fc;break}}ZA&&ur(du,{type:"remove",values:[ZA]})}for(var Yl=arguments.length,mA=new Array(Yl>1?Yl-1:0),tc=1;tc<Yl;tc++)mA[tc-1]=arguments[tc];if(fl&&(!Xl||!Ta.current)){var nc;Xl&&(Ta.current=!0),(nc=fa.current)===null||nc===void 0||nc.onKeyDown.apply(nc,[Ra].concat(mA))}Qi==null||Qi.apply(void 0,[Ra].concat(mA))},Ml=function(Ra){for(var Ms=arguments.length,nA=new Array(Ms>1?Ms-1:0),Xl=1;Xl<Ms;Xl++)nA[Xl-1]=arguments[Xl];if(fl){var du;(du=fa.current)===null||du===void 0||du.onKeyUp.apply(du,[Ra].concat(nA))}Ra.key==="Enter"&&(Ta.current=!1),Wr==null||Wr.apply(void 0,[Ra].concat(nA))},ms=function(Ra){var Ms=rr.filter(function(nA){return nA!==Ra});ur(Ms,{type:"remove",values:[Ra]})},bu=function(){Ta.current=!1},ml=oe.useRef(!1),Kc=function(){ds(!0),Ei||(Jr&&!ml.current&&Jr.apply(void 0,arguments),Mr.includes("focus")&&pa(!0)),ml.current=!0},FA=function(){Wa.current=!0,ds(!1,function(){ml.current=!1,Wa.current=!1,pa(!1)}),!Ei&&(go&&(Ar==="tags"?wi(go,{source:"submit"}):Ar==="multiple"&&wi("",{source:"blur"})),ri&&ri.apply(void 0,arguments))},Cu=[];oe.useEffect(function(){return function(){Cu.forEach(function(Pa){return clearTimeout(Pa)}),Cu.splice(0,Cu.length)}},[]);var aa=function(Ra){var Ms,nA=Ra.target,Xl=(Ms=Ro.current)===null||Ms===void 0?void 0:Ms.getPopupElement();if(Xl&&Xl.contains(nA)){var du=setTimeout(function(){var Yl=Cu.indexOf(du);if(Yl!==-1&&Cu.splice(Yl,1),Mo(),!Do&&!Xl.contains(document.activeElement)){var mA;(mA=oa.current)===null||mA===void 0||mA.focus()}});Cu.push(du)}for(var ZA=arguments.length,gA=new Array(ZA>1?ZA-1:0),fc=1;fc<ZA;fc++)gA[fc-1]=arguments[fc];no==null||no.apply(void 0,[Ra].concat(gA))},$u=oe.useState({}),dc=(0,ze.Z)($u,2),ku=dc[1];function Ns(){ku({})}var tA;gs&&(tA=function(Ra){pa(Ra)}),et(function(){var Pa;return[No.current,(Pa=Ro.current)===null||Pa===void 0?void 0:Pa.getPopupElement()]},hA,pa,!!gs);var pA=oe.useMemo(function(){return(0,Je.Z)((0,Je.Z)({},rn),{},{notFoundContent:er,open:fl,triggerOpen:hA,id:en,showSearch:vr,multiple:ui,toggleOpen:pa})},[rn,er,hA,fl,en,vr,ui,pa]),PA=!!mo||Kn,xl;PA&&(xl=oe.createElement(xe,{className:ve()("".concat(Kt,"-arrow"),(0,Le.Z)({},"".concat(Kt,"-arrow-loading"),Kn)),customizeIcon:mo,customizeIconProps:{loading:Kn,searchValue:go,open:fl,focused:as,showSearch:vr}}));var Bl=function(){var Ra;Rn==null||Rn(),(Ra=oa.current)===null||Ra===void 0||Ra.focus(),ur([],{type:"clear",values:rr}),Va("",!1,!1)},rl=Ee(Kt,Bl,rr,Mi,Yi,Ei,go,Ar),Gl=rl.allowClear,Vl=rl.clearIcon,Nc=oe.createElement(Io,{ref:fa}),td=ve()(Kt,gn,(0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)({},"".concat(Kt,"-focused"),as),"".concat(Kt,"-multiple"),ui),"".concat(Kt,"-single"),!ui),"".concat(Kt,"-allow-clear"),Mi),"".concat(Kt,"-show-arrow"),PA),"".concat(Kt,"-disabled"),Ei),"".concat(Kt,"-loading"),Kn),"".concat(Kt,"-open"),fl),"".concat(Kt,"-customize-input"),Fa),"".concat(Kt,"-show-search"),vr)),Ul=oe.createElement(le,{ref:Ro,disabled:Ei,prefixCls:Kt,visible:hA,popupElement:Nc,animation:Ri,transitionName:ko,dropdownStyle:uo,dropdownClassName:Vo,direction:Yr,dropdownMatchSelectWidth:wo,dropdownRender:to,dropdownAlign:bo,placement:Go,builtinPlacements:Tn,getPopupContainer:Lo,empty:sr,getTriggerDOMNode:function(Ra){return Jo.current||Ra},onPopupVisibleChange:tA,onPopupMouseEnter:Ns},gs?oe.cloneElement(gs,{ref:el}):oe.createElement(an,(0,x.Z)({},rn,{domRef:Jo,prefixCls:Kt,inputElement:Fa,ref:oa,id:en,prefix:eo,showSearch:vr,autoClearSearchValue:Si,mode:Ar,activeDescendantId:Di,tagRender:Nr,values:rr,open:fl,onToggleOpen:pa,activeValue:Ni,searchValue:go,onSearch:Va,onSearchSubmit:za,onRemove:ms,tokenWithEnter:Ia,onInputBlur:bu}))),Mu;return gs?Mu=Ul:Mu=oe.createElement("div",(0,x.Z)({className:td},qr,{ref:No,onMouseDown:aa,onKeyDown:au,onKeyUp:Ml,onFocus:Kc,onBlur:FA}),oe.createElement(lt,{visible:as&&!fl,values:rr}),Ul,xl,Gl&&Vl),oe.createElement(ke.Provider,{value:pA},Mu)}),tn=ln,Qn=function(){return null};Qn.isSelectOptGroup=!0;var En=Qn,Rt=function(){return null};Rt.isSelectOption=!0;var un=Rt,Dn=ae(80547),Wn=ae(2738),It=ae(48911);function Gt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var sn=["disabled","title","children","style","className"];function yn(rn){return typeof rn=="string"||typeof rn=="number"}var Yn=function(fn,Pt){var en=Ke(),Kt=en.prefixCls,gn=en.id,On=en.open,Nr=en.multiple,Yr=en.mode,hi=en.searchValue,rr=en.toggleOpen,ur=en.notFoundContent,sr=en.onPopupScroll,ni=oe.useContext(Ct),er=ni.maxCount,Rn=ni.flattenOptions,Ar=ni.onActiveValue,Ei=ni.defaultActiveFirstOption,Kn=ni.onSelect,vn=ni.menuItemSelectedIcon,$n=ni.rawValues,nr=ni.fieldNames,fr=ni.virtual,zr=ni.direction,Ni=ni.listHeight,gi=ni.listItemHeight,Di=ni.optionRender,mi="".concat(Kt,"-item"),Si=(0,Dn.Z)(function(){return Rn},[On,Rn],function(Vi,Mr){return Mr[0]&&Vi[1]!==Mr[1]}),wi=oe.useRef(null),Ci=oe.useMemo(function(){return Nr&&st(er)&&($n==null?void 0:$n.size)>=er},[Nr,er,$n==null?void 0:$n.size]),yi=function(Mr){Mr.preventDefault()},Mi=function(Mr){var Jr;(Jr=wi.current)===null||Jr===void 0||Jr.scrollTo(typeof Mr=="number"?{index:Mr}:Mr)},eo=oe.useCallback(function(Vi){return Yr==="combobox"?!1:$n.has(Vi)},[Yr,(0,ct.Z)($n).toString(),$n.size]),mo=function(Mr){for(var Jr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ri=Si.length,Wr=0;Wr<ri;Wr+=1){var Qi=(Mr+Wr*Jr+ri)%ri,no=Si[Qi]||{},Kr=no.group,ui=no.data;if(!Kr&&!(ui!=null&&ui.disabled)&&(eo(ui.value)||!Ci))return Qi}return-1},Yi=oe.useState(function(){return mo(0)}),Io=(0,ze.Z)(Yi,2),Ri=Io[0],ko=Io[1],uo=function(Mr){var Jr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ko(Mr);var ri={source:Jr?"keyboard":"mouse"},Wr=Si[Mr];if(!Wr){Ar(null,-1,ri);return}Ar(Wr.value,Mr,ri)};(0,oe.useEffect)(function(){uo(Ei!==!1?mo(0):-1)},[Si.length,hi]);var Vo=oe.useCallback(function(Vi){return Yr==="combobox"?String(Vi).toLowerCase()===hi.toLowerCase():$n.has(Vi)},[Yr,hi,(0,ct.Z)($n).toString(),$n.size]);(0,oe.useEffect)(function(){var Vi=setTimeout(function(){if(!Nr&&On&&$n.size===1){var Jr=Array.from($n)[0],ri=Si.findIndex(function(Wr){var Qi=Wr.data;return hi?String(Qi.value).startsWith(hi):Qi.value===Jr});ri!==-1&&(uo(ri),Mi(ri))}});if(On){var Mr;(Mr=wi.current)===null||Mr===void 0||Mr.scrollTo(void 0)}return function(){return clearTimeout(Vi)}},[On,hi]);var wo=function(Mr){Mr!==void 0&&Kn(Mr,{selected:!$n.has(Mr)}),Nr||rr(!1)};if(oe.useImperativeHandle(Pt,function(){return{onKeyDown:function(Mr){var Jr=Mr.which,ri=Mr.ctrlKey;switch(Jr){case Ge.Z.N:case Ge.Z.P:case Ge.Z.UP:case Ge.Z.DOWN:{var Wr=0;if(Jr===Ge.Z.UP?Wr=-1:Jr===Ge.Z.DOWN?Wr=1:Gt()&&ri&&(Jr===Ge.Z.N?Wr=1:Jr===Ge.Z.P&&(Wr=-1)),Wr!==0){var Qi=mo(Ri+Wr,Wr);Mi(Qi),uo(Qi,!0)}break}case Ge.Z.TAB:case Ge.Z.ENTER:{var no,Kr=Si[Ri];Kr&&!(Kr!=null&&(no=Kr.data)!==null&&no!==void 0&&no.disabled)&&!Ci?wo(Kr.value):wo(void 0),On&&Mr.preventDefault();break}case Ge.Z.ESC:rr(!1),On&&Mr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Mr){Mi(Mr)}}}),Si.length===0)return oe.createElement("div",{role:"listbox",id:"".concat(gn,"_list"),className:"".concat(mi,"-empty"),onMouseDown:yi},ur);var to=Object.keys(nr).map(function(Vi){return nr[Vi]}),bo=function(Mr){return Mr.label};function Go(Vi,Mr){var Jr=Vi.group;return{role:Jr?"presentation":"option",id:"".concat(gn,"_list_").concat(Mr)}}var Tn=function(Mr){var Jr=Si[Mr];if(!Jr)return null;var ri=Jr.data||{},Wr=ri.value,Qi=Jr.group,no=(0,at.Z)(ri,!0),Kr=bo(Jr);return Jr?oe.createElement("div",(0,x.Z)({"aria-label":typeof Kr=="string"&&!Qi?Kr:null},no,{key:Mr},Go(Jr,Mr),{"aria-selected":Vo(Wr)}),Wr):null},Lo={role:"listbox",id:"".concat(gn,"_list")};return oe.createElement(oe.Fragment,null,fr&&oe.createElement("div",(0,x.Z)({},Lo,{style:{height:0,width:0,overflow:"hidden"}}),Tn(Ri-1),Tn(Ri),Tn(Ri+1)),oe.createElement(It.Z,{itemKey:"key",ref:wi,data:Si,height:Ni,itemHeight:gi,fullHeight:!1,onMouseDown:yi,onScroll:sr,virtual:fr,direction:zr,innerProps:fr?null:Lo},function(Vi,Mr){var Jr=Vi.group,ri=Vi.groupOption,Wr=Vi.data,Qi=Vi.label,no=Vi.value,Kr=Wr.key;if(Jr){var ui,vr=(ui=Wr.title)!==null&&ui!==void 0?ui:yn(Qi)?Qi.toString():void 0;return oe.createElement("div",{className:ve()(mi,"".concat(mi,"-group"),Wr.className),title:vr},Qi!==void 0?Qi:Kr)}var qr=Wr.disabled,Ao=Wr.title,Yo=Wr.children,Do=Wr.style,ga=Wr.className,No=(0,Se.Z)(Wr,sn),Jo=(0,Wn.Z)(No,to),Ro=eo(no),oa=qr||!Ro&&Ci,fa="".concat(mi,"-option"),Wa=ve()(mi,fa,ga,(0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)({},"".concat(fa,"-grouped"),ri),"".concat(fa,"-active"),Ri===Mr&&!oa),"".concat(fa,"-disabled"),oa),"".concat(fa,"-selected"),Ro)),Ds=bo(Vi),js=!vn||typeof vn=="function"||Ro,as=typeof Ds=="number"?Ds:Ds||no,ds=yn(as)?as.toString():void 0;return Ao!==void 0&&(ds=Ao),oe.createElement("div",(0,x.Z)({},(0,at.Z)(Jo),fr?{}:Go(Vi,Mr),{"aria-selected":Vo(no),className:Wa,title:ds,onMouseMove:function(){Ri===Mr||oa||uo(Mr)},onClick:function(){oa||wo(no)},style:Do}),oe.createElement("div",{className:"".concat(fa,"-content")},typeof Di=="function"?Di(Vi,{index:Mr}):as),oe.isValidElement(vn)||Ro,js&&oe.createElement(xe,{className:"".concat(mi,"-option-state"),customizeIcon:vn,customizeIconProps:{value:no,disabled:oa,isSelected:Ro}},Ro?"\u2713":null))}))},Br=oe.forwardRef(Yn),ti=Br,Ur=function(rn,fn){var Pt=oe.useRef({values:new Map,options:new Map}),en=oe.useMemo(function(){var gn=Pt.current,On=gn.values,Nr=gn.options,Yr=rn.map(function(ur){if(ur.label===void 0){var sr;return(0,Je.Z)((0,Je.Z)({},ur),{},{label:(sr=On.get(ur.value))===null||sr===void 0?void 0:sr.label})}return ur}),hi=new Map,rr=new Map;return Yr.forEach(function(ur){hi.set(ur.value,ur),rr.set(ur.value,fn.get(ur.value)||Nr.get(ur.value))}),Pt.current.values=hi,Pt.current.options=rr,Yr},[rn,fn]),Kt=oe.useCallback(function(gn){return fn.get(gn)||Pt.current.options.get(gn)},[fn]);return[en,Kt]};function Sr(rn,fn){return it(rn).join("").toUpperCase().includes(fn)}var Jn=function(rn,fn,Pt,en,Kt){return oe.useMemo(function(){if(!Pt||en===!1)return rn;var gn=fn.options,On=fn.label,Nr=fn.value,Yr=[],hi=typeof en=="function",rr=Pt.toUpperCase(),ur=hi?en:function(ni,er){return Kt?Sr(er[Kt],rr):er[gn]?Sr(er[On!=="children"?On:"label"],rr):Sr(er[Nr],rr)},sr=hi?function(ni){return Et(ni)}:function(ni){return ni};return rn.forEach(function(ni){if(ni[gn]){var er=ur(Pt,sr(ni));if(er)Yr.push(ni);else{var Rn=ni[gn].filter(function(Ar){return ur(Pt,sr(Ar))});Rn.length&&Yr.push((0,Je.Z)((0,Je.Z)({},ni),{},(0,Le.Z)({},gn,Rn)))}return}ur(Pt,sr(ni))&&Yr.push(ni)}),Yr},[rn,en,Kt,Pt,fn])},gr=ae(6551),kr=ae(11592),Vr=["children","value"],pi=["children"];function Lr(rn){var fn=rn,Pt=fn.key,en=fn.props,Kt=en.children,gn=en.value,On=(0,Se.Z)(en,Vr);return(0,Je.Z)({key:Pt,value:gn!==void 0?gn:Pt,children:Kt},On)}function tr(rn){var fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,kr.Z)(rn).map(function(Pt,en){if(!oe.isValidElement(Pt)||!Pt.type)return null;var Kt=Pt,gn=Kt.type.isSelectOptGroup,On=Kt.key,Nr=Kt.props,Yr=Nr.children,hi=(0,Se.Z)(Nr,pi);return fn||!gn?Lr(Pt):(0,Je.Z)((0,Je.Z)({key:"__RC_SELECT_GRP__".concat(On===null?en:On,"__"),label:On},hi),{},{options:tr(Yr)})}).filter(function(Pt){return Pt})}var Xn=function(fn,Pt,en,Kt,gn){return oe.useMemo(function(){var On=fn,Nr=!fn;Nr&&(On=tr(Pt));var Yr=new Map,hi=new Map,rr=function(ni,er,Rn){Rn&&typeof Rn=="string"&&ni.set(er[Rn],er)},ur=function sr(ni){for(var er=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Rn=0;Rn<ni.length;Rn+=1){var Ar=ni[Rn];!Ar[en.options]||er?(Yr.set(Ar[en.value],Ar),rr(hi,Ar,en.label),rr(hi,Ar,Kt),rr(hi,Ar,gn)):sr(Ar[en.options],!0)}};return ur(On),{options:On,valueOptions:Yr,labelOptions:hi}},[fn,Pt,en,Kt,gn])},mr=Xn;function Qr(rn){var fn=oe.useRef();fn.current=rn;var Pt=oe.useCallback(function(){return fn.current.apply(fn,arguments)},[]);return Pt}function ii(rn){var fn=rn.mode,Pt=rn.options,en=rn.children,Kt=rn.backfill,gn=rn.allowClear,On=rn.placeholder,Nr=rn.getInputElement,Yr=rn.showSearch,hi=rn.onSearch,rr=rn.defaultOpen,ur=rn.autoFocus,sr=rn.labelInValue,ni=rn.value,er=rn.inputValue,Rn=rn.optionLabelProp,Ar=isMultiple(fn),Ei=Yr!==void 0?Yr:Ar||fn==="combobox",Kn=Pt||convertChildrenToData(en);if(warning(fn!=="tags"||Kn.every(function(fr){return!fr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),fn==="tags"||fn==="combobox"){var vn=Kn.some(function(fr){return fr.options?fr.options.some(function(zr){return typeof("value"in zr?zr.value:zr.key)=="number"}):typeof("value"in fr?fr.value:fr.key)=="number"});warning(!vn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(fn!=="combobox"||!Rn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(fn==="combobox"||!Kt,"`backfill` only works with `combobox` mode."),warning(fn==="combobox"||!Nr,"`getInputElement` only work with `combobox` mode."),noteOnce(fn!=="combobox"||!Nr||!gn||!On,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),hi&&!Ei&&fn!=="combobox"&&fn!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!rr||ur,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ni!=null){var $n=toArray(ni);warning(!sr||$n.every(function(fr){return _typeof(fr)==="object"&&("key"in fr||"value"in fr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Ar||Array.isArray(ni),"`value` should be array when `mode` is `multiple` or `tags`")}if(en){var nr=null;toNodeArray(en).some(function(fr){if(!React.isValidElement(fr)||!fr.type)return!1;var zr=fr,Ni=zr.type;if(Ni.isSelectOption)return!1;if(Ni.isSelectOptGroup){var gi=toNodeArray(fr.props.children).every(function(Di){return!React.isValidElement(Di)||!fr.type||Di.type.isSelectOption?!0:(nr=Di.type,!1)});return!gi}return nr=Ni,!0}),nr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(nr.displayName||nr.name||nr,"`.")),warning(er===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function ai(rn,fn){if(rn){var Pt=function en(Kt){for(var gn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,On=0;On<Kt.length;On++){var Nr=Kt[On];if(Nr[fn==null?void 0:fn.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!gn&&Array.isArray(Nr[fn==null?void 0:fn.options])&&en(Nr[fn==null?void 0:fn.options],!0))break}};Pt(rn)}}var oi=null,li=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],ji=["inputValue"];function ki(rn){return!rn||(0,Ue.Z)(rn)!=="object"}var or=oe.forwardRef(function(rn,fn){var Pt=rn.id,en=rn.mode,Kt=rn.prefixCls,gn=Kt===void 0?"rc-select":Kt,On=rn.backfill,Nr=rn.fieldNames,Yr=rn.inputValue,hi=rn.searchValue,rr=rn.onSearch,ur=rn.autoClearSearchValue,sr=ur===void 0?!0:ur,ni=rn.onSelect,er=rn.onDeselect,Rn=rn.dropdownMatchSelectWidth,Ar=Rn===void 0?!0:Rn,Ei=rn.filterOption,Kn=rn.filterSort,vn=rn.optionFilterProp,$n=rn.optionLabelProp,nr=rn.options,fr=rn.optionRender,zr=rn.children,Ni=rn.defaultActiveFirstOption,gi=rn.menuItemSelectedIcon,Di=rn.virtual,mi=rn.direction,Si=rn.listHeight,wi=Si===void 0?200:Si,Ci=rn.listItemHeight,yi=Ci===void 0?20:Ci,Mi=rn.labelRender,eo=rn.value,mo=rn.defaultValue,Yi=rn.labelInValue,Io=rn.onChange,Ri=rn.maxCount,ko=(0,Se.Z)(rn,li),uo=(0,gr.ZP)(Pt),Vo=wn(en),wo=!!(!nr&&zr),to=oe.useMemo(function(){return Ei===void 0&&en==="combobox"?!1:Ei},[Ei,en]),bo=oe.useMemo(function(){return gt(Nr,wo)},[JSON.stringify(Nr),wo]),Go=(0,fe.Z)("",{value:hi!==void 0?hi:Yr,postState:function(Ia){return Ia||""}}),Tn=(0,ze.Z)(Go,2),Lo=Tn[0],Vi=Tn[1],Mr=mr(nr,zr,bo,vn,$n),Jr=Mr.valueOptions,ri=Mr.labelOptions,Wr=Mr.options,Qi=oe.useCallback(function(pa){var Ia=it(pa);return Ia.map(function(ma){var ba,qa,Va,za,$l;if(ki(ma))ba=ma;else{var cu;Va=ma.key,qa=ma.label,ba=(cu=ma.value)!==null&&cu!==void 0?cu:Va}var Ui=Jr.get(ba);if(Ui){var ta;if(qa===void 0&&(qa=Ui==null?void 0:Ui[$n||bo.label]),Va===void 0&&(Va=(ta=Ui==null?void 0:Ui.key)!==null&&ta!==void 0?ta:ba),za=Ui==null?void 0:Ui.disabled,$l=Ui==null?void 0:Ui.title,0)var Ta}return{label:qa,value:ba,key:Va,disabled:za,title:$l}})},[bo,$n,Jr]),no=(0,fe.Z)(mo,{value:eo}),Kr=(0,ze.Z)(no,2),ui=Kr[0],vr=Kr[1],qr=oe.useMemo(function(){var pa,Ia=Vo&&ui===null?[]:ui,ma=Qi(Ia);return en==="combobox"&&_e((pa=ma[0])===null||pa===void 0?void 0:pa.value)?[]:ma},[ui,Qi,en,Vo]),Ao=Ur(qr,Jr),Yo=(0,ze.Z)(Ao,2),Do=Yo[0],ga=Yo[1],No=oe.useMemo(function(){if(!en&&Do.length===1){var pa=Do[0];if(pa.value===null&&(pa.label===null||pa.label===void 0))return[]}return Do.map(function(Ia){var ma;return(0,Je.Z)((0,Je.Z)({},Ia),{},{label:(ma=typeof Mi=="function"?Mi(Ia):Ia.label)!==null&&ma!==void 0?ma:Ia.value})})},[en,Do,Mi]),Jo=oe.useMemo(function(){return new Set(Do.map(function(pa){return pa.value}))},[Do]);oe.useEffect(function(){if(en==="combobox"){var pa,Ia=(pa=Do[0])===null||pa===void 0?void 0:pa.value;Vi(We(Ia)?String(Ia):"")}},[Do]);var Ro=Qr(function(pa,Ia){var ma=Ia!=null?Ia:pa;return(0,Le.Z)((0,Le.Z)({},bo.value,pa),bo.label,ma)}),oa=oe.useMemo(function(){if(en!=="tags")return Wr;var pa=(0,ct.Z)(Wr),Ia=function(ba){return Jr.has(ba)};return(0,ct.Z)(Do).sort(function(ma,ba){return ma.value<ba.value?-1:1}).forEach(function(ma){var ba=ma.value;Ia(ba)||pa.push(Ro(ba,ma.label))}),pa},[Ro,Wr,Jr,Do,en]),fa=Jn(oa,bo,Lo,to,vn),Wa=oe.useMemo(function(){return en!=="tags"||!Lo||fa.some(function(pa){return pa[vn||"value"]===Lo})||fa.some(function(pa){return pa[bo.value]===Lo})?fa:[Ro(Lo)].concat((0,ct.Z)(fa))},[Ro,vn,en,fa,Lo,bo]),Ds=function pa(Ia){var ma=(0,ct.Z)(Ia).sort(function(ba,qa){return Kn(ba,qa,{searchValue:Lo})});return ma.map(function(ba){return Array.isArray(ba.options)?(0,Je.Z)((0,Je.Z)({},ba),{},{options:ba.options.length>0?pa(ba.options):ba.options}):ba})},js=oe.useMemo(function(){return Kn?Ds(Wa):Wa},[Wa,Kn,Lo]),as=oe.useMemo(function(){return mt(js,{fieldNames:bo,childrenAsData:wo})},[js,bo,wo]),ds=function(Ia){var ma=Qi(Ia);if(vr(ma),Io&&(ma.length!==Do.length||ma.some(function(Va,za){var $l;return(($l=Do[za])===null||$l===void 0?void 0:$l.value)!==(Va==null?void 0:Va.value)}))){var ba=Yi?ma:ma.map(function(Va){return Va.value}),qa=ma.map(function(Va){return Et(ga(Va.value))});Io(Vo?ba:ba[0],Vo?qa:qa[0])}},Mo=oe.useState(null),go=(0,ze.Z)(Mo,2),Fa=go[0],gs=go[1],el=oe.useState(0),tl=(0,ze.Z)(el,2),nl=tl[0],gl=tl[1],Au=Ni!==void 0?Ni:en!=="combobox",Xs=oe.useCallback(function(pa,Ia){var ma=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ba=ma.source,qa=ba===void 0?"keyboard":ba;gl(Ia),On&&en==="combobox"&&pa!==null&&qa==="keyboard"&&gs(String(pa))},[On,en]),Zl=function(Ia,ma,ba){var qa=function(){var ms,bu=ga(Ia);return[Yi?{label:bu==null?void 0:bu[bo.label],value:Ia,key:(ms=bu==null?void 0:bu.key)!==null&&ms!==void 0?ms:Ia}:Ia,Et(bu)]};if(ma&&ni){var Va=qa(),za=(0,ze.Z)(Va,2),$l=za[0],cu=za[1];ni($l,cu)}else if(!ma&&er&&ba!=="clear"){var Ui=qa(),ta=(0,ze.Z)(Ui,2),Ta=ta[0],au=ta[1];er(Ta,au)}},Wl=Qr(function(pa,Ia){var ma,ba=Vo?Ia.selected:!0;ba?ma=Vo?[].concat((0,ct.Z)(Do),[pa]):[pa]:ma=Do.filter(function(qa){return qa.value!==pa}),ds(ma),Zl(pa,ba),en==="combobox"?gs(""):(!wn||sr)&&(Vi(""),gs(""))}),Iu=function(Ia,ma){ds(Ia);var ba=ma.type,qa=ma.values;(ba==="remove"||ba==="clear")&&qa.forEach(function(Va){Zl(Va.value,!1,ba)})},fl=function(Ia,ma){if(Vi(Ia),gs(null),ma.source==="submit"){var ba=(Ia||"").trim();if(ba){var qa=Array.from(new Set([].concat((0,ct.Z)(Jo),[ba])));ds(qa),Zl(ba,!0),Vi("")}return}ma.source!=="blur"&&(en==="combobox"&&ds(Ia),rr==null||rr(Ia))},SA=function(Ia){var ma=Ia;en!=="tags"&&(ma=Ia.map(function(qa){var Va=ri.get(qa);return Va==null?void 0:Va.value}).filter(function(qa){return qa!==void 0}));var ba=Array.from(new Set([].concat((0,ct.Z)(Jo),(0,ct.Z)(ma))));ds(ba),ba.forEach(function(qa){Zl(qa,!0)})},hA=oe.useMemo(function(){var pa=Di!==!1&&Ar!==!1;return(0,Je.Z)((0,Je.Z)({},Mr),{},{flattenOptions:as,onActiveValue:Xs,defaultActiveFirstOption:Au,onSelect:Wl,menuItemSelectedIcon:gi,rawValues:Jo,fieldNames:bo,virtual:pa,direction:mi,listHeight:wi,listItemHeight:yi,childrenAsData:wo,maxCount:Ri,optionRender:fr})},[Ri,Mr,as,Xs,Au,Wl,gi,Jo,bo,Di,Ar,mi,wi,yi,wo,fr]);return oe.createElement(Ct.Provider,{value:hA},oe.createElement(tn,(0,x.Z)({},ko,{id:uo,prefixCls:gn,ref:fn,omitDomProps:ji,mode:en,displayValues:No,onDisplayValuesChange:Iu,direction:mi,searchValue:Lo,onSearch:fl,autoClearSearchValue:sr,onSearchSplit:SA,dropdownMatchSelectWidth:Ar,OptionList:ti,emptyOptions:!as.length,activeValue:Fa,activeDescendantId:"".concat(uo,"_list_").concat(nl)})))}),Hr=or;Hr.Option=un,Hr.OptGroup=En;var Bi=Hr,Yt=Bi},22711:function(Vn,Mt,ae){"use strict";ae.r(Mt),ae.d(Mt,{ResizableTextArea:function(){return He},default:function(){return Ot}});var x=ae(54476),ct=ae(20068),Le=ae(33885),Je=ae(94480),ze=ae(42978),Se=ae(75931),Ue=ae(92310),fe=ae.n(Ue),Ce=ae(36901),oe=ae(66003),Oe=ae(30292),ve=ae(18929),Me=ae(59301),Fe=ae(76190),Te=ae(29301),ye=ae(34280),xe=ae(16089),Ee=`
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;
`,ke=["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"],Ke={},Qe;function Re(it){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Bt=it.getAttribute("id")||it.getAttribute("data-reactid")||it.getAttribute("name");if(ht&&Ke[Bt])return Ke[Bt];var We=window.getComputedStyle(it),_e=We.getPropertyValue("box-sizing")||We.getPropertyValue("-moz-box-sizing")||We.getPropertyValue("-webkit-box-sizing"),ot=parseFloat(We.getPropertyValue("padding-bottom"))+parseFloat(We.getPropertyValue("padding-top")),Zt=parseFloat(We.getPropertyValue("border-bottom-width"))+parseFloat(We.getPropertyValue("border-top-width")),zt=ke.map(function(Nt){return"".concat(Nt,":").concat(We.getPropertyValue(Nt))}).join(";"),tt={sizingStyle:zt,paddingSize:ot,borderSize:Zt,boxSizing:_e};return ht&&Bt&&(Ke[Bt]=tt),tt}function et(it){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Bt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,We=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Qe||(Qe=document.createElement("textarea"),Qe.setAttribute("tab-index","-1"),Qe.setAttribute("aria-hidden","true"),Qe.setAttribute("name","hiddenTextarea"),document.body.appendChild(Qe)),it.getAttribute("wrap")?Qe.setAttribute("wrap",it.getAttribute("wrap")):Qe.removeAttribute("wrap");var _e=Re(it,ht),ot=_e.paddingSize,Zt=_e.borderSize,zt=_e.boxSizing,tt=_e.sizingStyle;Qe.setAttribute("style","".concat(tt,";").concat(Ee)),Qe.value=it.value||it.placeholder||"";var Nt=void 0,Ut=void 0,pn,kt=Qe.scrollHeight;if(zt==="border-box"?kt+=Zt:zt==="content-box"&&(kt-=ot),Bt!==null||We!==null){Qe.value=" ";var mn=Qe.scrollHeight-ot;Bt!==null&&(Nt=mn*Bt,zt==="border-box"&&(Nt=Nt+ot+Zt),kt=Math.max(Nt,kt)),We!==null&&(Ut=mn*We,zt==="border-box"&&(Ut=Ut+ot+Zt),pn=kt>Ut?"":"hidden",kt=Math.min(Ut,kt))}var _t={height:kt,overflowY:pn,resize:"none"};return Nt&&(_t.minHeight=Nt),Ut&&(_t.maxHeight=Ut),_t}var Ge=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ut=0,at=1,ft=2,bt=Me.forwardRef(function(it,ht){var Bt=it,We=Bt.prefixCls,_e=Bt.defaultValue,ot=Bt.value,Zt=Bt.autoSize,zt=Bt.onResize,tt=Bt.className,Nt=Bt.style,Ut=Bt.disabled,pn=Bt.onChange,kt=Bt.onInternalAutoSize,mn=(0,Se.Z)(Bt,Ge),_t=(0,ve.Z)(_e,{value:ot,postState:function(un){return un!=null?un:""}}),Cn=(0,ze.Z)(_t,2),an=Cn[0],de=Cn[1],pe=function(un){de(un.target.value),pn==null||pn(un)},ie=Me.useRef();Me.useImperativeHandle(ht,function(){return{textArea:ie.current}});var ee=Me.useMemo(function(){return Zt&&(0,Fe.Z)(Zt)==="object"?[Zt.minRows,Zt.maxRows]:[]},[Zt]),se=(0,ze.Z)(ee,2),le=se[0],Be=se[1],$e=!!Zt,st=function(){try{if(document.activeElement===ie.current){var un=ie.current,Dn=un.selectionStart,Wn=un.selectionEnd,It=un.scrollTop;ie.current.setSelectionRange(Dn,Wn),ie.current.scrollTop=It}}catch(Gt){}},gt=Me.useState(ft),mt=(0,ze.Z)(gt,2),Et=mt[0],Lt=mt[1],jt=Me.useState(),Ct=(0,ze.Z)(jt,2),lt=Ct[0],$t=Ct[1],Wt=function(){Lt(ut)};(0,ye.Z)(function(){$e&&Wt()},[ot,le,Be,$e]),(0,ye.Z)(function(){if(Et===ut)Lt(at);else if(Et===at){var Rt=et(ie.current,!1,le,Be);Lt(ft),$t(Rt)}else st()},[Et]);var wn=Me.useRef(),ln=function(){xe.Z.cancel(wn.current)},tn=function(un){Et===ft&&(zt==null||zt(un),Zt&&(ln(),wn.current=(0,xe.Z)(function(){Wt()})))};Me.useEffect(function(){return ln},[]);var Qn=$e?lt:null,En=(0,Le.Z)((0,Le.Z)({},Nt),Qn);return(Et===ut||Et===at)&&(En.overflowY="hidden",En.overflowX="hidden"),Me.createElement(Te.Z,{onResize:tn,disabled:!(Zt||zt)},Me.createElement("textarea",(0,x.Z)({},mn,{ref:ie,style:En,className:fe()(We,tt,(0,ct.Z)({},"".concat(We,"-disabled"),Ut)),disabled:Ut,value:an,onChange:pe})))}),He=bt,pt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Ne=Me.forwardRef(function(it,ht){var Bt,We=it.defaultValue,_e=it.value,ot=it.onFocus,Zt=it.onBlur,zt=it.onChange,tt=it.allowClear,Nt=it.maxLength,Ut=it.onCompositionStart,pn=it.onCompositionEnd,kt=it.suffix,mn=it.prefixCls,_t=mn===void 0?"rc-textarea":mn,Cn=it.showCount,an=it.count,de=it.className,pe=it.style,ie=it.disabled,ee=it.hidden,se=it.classNames,le=it.styles,Be=it.onResize,$e=it.onClear,st=it.onPressEnter,gt=it.readOnly,mt=it.autoSize,Et=it.onKeyDown,Lt=(0,Se.Z)(it,pt),jt=(0,ve.Z)(We,{value:_e,defaultValue:We}),Ct=(0,ze.Z)(jt,2),lt=Ct[0],$t=Ct[1],Wt=lt==null?"":String(lt),wn=Me.useState(!1),ln=(0,ze.Z)(wn,2),tn=ln[0],Qn=ln[1],En=Me.useRef(!1),Rt=Me.useState(null),un=(0,ze.Z)(Rt,2),Dn=un[0],Wn=un[1],It=(0,Me.useRef)(null),Gt=(0,Me.useRef)(null),sn=function(){var Hr;return(Hr=Gt.current)===null||Hr===void 0?void 0:Hr.textArea},yn=function(){sn().focus()};(0,Me.useImperativeHandle)(ht,function(){var or;return{resizableTextArea:Gt.current,focus:yn,blur:function(){sn().blur()},nativeElement:((or=It.current)===null||or===void 0?void 0:or.nativeElement)||sn()}}),(0,Me.useEffect)(function(){Qn(function(or){return!ie&&or})},[ie]);var Yn=Me.useState(null),Br=(0,ze.Z)(Yn,2),ti=Br[0],Ur=Br[1];Me.useEffect(function(){if(ti){var or;(or=sn()).setSelectionRange.apply(or,(0,Je.Z)(ti))}},[ti]);var Sr=(0,oe.Z)(an,Cn),Jn=(Bt=Sr.max)!==null&&Bt!==void 0?Bt:Nt,gr=Number(Jn)>0,kr=Sr.strategy(Wt),Vr=!!Jn&&kr>Jn,pi=function(Hr,Bi){var Yt=Bi;!En.current&&Sr.exceedFormatter&&Sr.max&&Sr.strategy(Bi)>Sr.max&&(Yt=Sr.exceedFormatter(Bi,{max:Sr.max}),Bi!==Yt&&Ur([sn().selectionStart||0,sn().selectionEnd||0])),$t(Yt),(0,Oe.rJ)(Hr.currentTarget,Hr,zt,Yt)},Lr=function(Hr){En.current=!0,Ut==null||Ut(Hr)},tr=function(Hr){En.current=!1,pi(Hr,Hr.currentTarget.value),pn==null||pn(Hr)},Xn=function(Hr){pi(Hr,Hr.target.value)},mr=function(Hr){Hr.key==="Enter"&&st&&st(Hr),Et==null||Et(Hr)},Qr=function(Hr){Qn(!0),ot==null||ot(Hr)},ii=function(Hr){Qn(!1),Zt==null||Zt(Hr)},ai=function(Hr){$t(""),yn(),(0,Oe.rJ)(sn(),Hr,zt)},oi=kt,li;Sr.show&&(Sr.showFormatter?li=Sr.showFormatter({value:Wt,count:kr,maxLength:Jn}):li="".concat(kr).concat(gr?" / ".concat(Jn):""),oi=Me.createElement(Me.Fragment,null,oi,Me.createElement("span",{className:fe()("".concat(_t,"-data-count"),se==null?void 0:se.count),style:le==null?void 0:le.count},li)));var ji=function(Hr){var Bi;Be==null||Be(Hr),(Bi=sn())!==null&&Bi!==void 0&&Bi.style.height&&Wn(!0)},ki=!mt&&!Cn&&!tt;return Me.createElement(Ce.BaseInput,{ref:It,value:Wt,allowClear:tt,handleReset:ai,suffix:oi,prefixCls:_t,classNames:(0,Le.Z)((0,Le.Z)({},se),{},{affixWrapper:fe()(se==null?void 0:se.affixWrapper,(0,ct.Z)((0,ct.Z)({},"".concat(_t,"-show-count"),Cn),"".concat(_t,"-textarea-allow-clear"),tt))}),disabled:ie,focused:tn,className:fe()(de,Vr&&"".concat(_t,"-out-of-range")),style:(0,Le.Z)((0,Le.Z)({},pe),Dn&&!ki?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof li=="string"?li:void 0}},hidden:ee,readOnly:gt,onClear:$e},Me.createElement(He,(0,x.Z)({},Lt,{autoSize:mt,maxLength:Nt,onKeyDown:mr,onChange:Xn,onFocus:Qr,onBlur:ii,onCompositionStart:Lr,onCompositionEnd:tr,className:fe()(se==null?void 0:se.textarea),style:(0,Le.Z)((0,Le.Z)({},le==null?void 0:le.textarea),{},{resize:pe==null?void 0:pe.resize}),disabled:ie,prefixCls:_t,onResize:ji,ref:Gt,readOnly:gt})))}),je=Ne,Ot=je},639:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Ke}});var x=ae(54476),ct=ae(20068),Le=ae(33885),Je=ae(42978),ze=ae(75931),Se=ae(59301),Ue=ae(92310),fe=ae.n(Ue),Ce=ae(26112),oe=ae(30699),Oe=function(Re){for(var et=Re.prefixCls,Ge=Re.level,ut=Re.isStart,at=Re.isEnd,ft="".concat(et,"-indent-unit"),bt=[],He=0;He<Ge;He+=1)bt.push(Se.createElement("span",{key:He,className:fe()(ft,(0,ct.Z)((0,ct.Z)({},"".concat(ft,"-start"),ut[He]),"".concat(ft,"-end"),at[He]))}));return Se.createElement("span",{"aria-hidden":"true",className:"".concat(et,"-indent")},bt)},ve=Se.memo(Oe),Me=ae(65065),Fe=ae(34061),Te=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ye="open",xe="close",Ee="---",ke=function(Re){var et,Ge,ut,at=Re.eventKey,ft=Re.className,bt=Re.style,He=Re.dragOver,pt=Re.dragOverGapTop,Ne=Re.dragOverGapBottom,je=Re.isLeaf,Ot=Re.isStart,it=Re.isEnd,ht=Re.expanded,Bt=Re.selected,We=Re.checked,_e=Re.halfChecked,ot=Re.loading,Zt=Re.domRef,zt=Re.active,tt=Re.data,Nt=Re.onMouseMove,Ut=Re.selectable,pn=(0,ze.Z)(Re,Te),kt=Se.useContext(oe.k),mn=Se.useContext(oe.y),_t=Se.useRef(null),Cn=Se.useState(!1),an=(0,Je.Z)(Cn,2),de=an[0],pe=an[1],ie=!!(kt.disabled||Re.disabled||(et=mn.nodeDisabled)!==null&&et!==void 0&&et.call(mn,tt)),ee=Se.useMemo(function(){return!kt.checkable||Re.checkable===!1?!1:kt.checkable},[kt.checkable,Re.checkable]),se=function(kr){ie||kt.onNodeSelect(kr,(0,Fe.F)(Re))},le=function(kr){ie||!ee||Re.disableCheckbox||kt.onNodeCheck(kr,(0,Fe.F)(Re),!We)},Be=Se.useMemo(function(){return typeof Ut=="boolean"?Ut:kt.selectable},[Ut,kt.selectable]),$e=function(kr){kt.onNodeClick(kr,(0,Fe.F)(Re)),Be?se(kr):le(kr)},st=function(kr){kt.onNodeDoubleClick(kr,(0,Fe.F)(Re))},gt=function(kr){kt.onNodeMouseEnter(kr,(0,Fe.F)(Re))},mt=function(kr){kt.onNodeMouseLeave(kr,(0,Fe.F)(Re))},Et=function(kr){kt.onNodeContextMenu(kr,(0,Fe.F)(Re))},Lt=Se.useMemo(function(){return!!(kt.draggable&&(!kt.draggable.nodeDraggable||kt.draggable.nodeDraggable(tt)))},[kt.draggable,tt]),jt=function(kr){kr.stopPropagation(),pe(!0),kt.onNodeDragStart(kr,Re);try{kr.dataTransfer.setData("text/plain","")}catch(Vr){}},Ct=function(kr){kr.preventDefault(),kr.stopPropagation(),kt.onNodeDragEnter(kr,Re)},lt=function(kr){kr.preventDefault(),kr.stopPropagation(),kt.onNodeDragOver(kr,Re)},$t=function(kr){kr.stopPropagation(),kt.onNodeDragLeave(kr,Re)},Wt=function(kr){kr.stopPropagation(),pe(!1),kt.onNodeDragEnd(kr,Re)},wn=function(kr){kr.preventDefault(),kr.stopPropagation(),pe(!1),kt.onNodeDrop(kr,Re)},ln=function(kr){ot||kt.onNodeExpand(kr,(0,Fe.F)(Re))},tn=Se.useMemo(function(){var gr=(0,Me.Z)(kt.keyEntities,at)||{},kr=gr.children;return!!(kr||[]).length},[kt.keyEntities,at]),Qn=Se.useMemo(function(){return je===!1?!1:je||!kt.loadData&&!tn||kt.loadData&&Re.loaded&&!tn},[je,kt.loadData,tn,Re.loaded]);Se.useEffect(function(){ot||typeof kt.loadData=="function"&&ht&&!Qn&&!Re.loaded&&kt.onNodeLoad((0,Fe.F)(Re))},[ot,kt.loadData,kt.onNodeLoad,ht,Qn,Re]);var En=Se.useMemo(function(){var gr;return(gr=kt.draggable)!==null&&gr!==void 0&&gr.icon?Se.createElement("span",{className:"".concat(kt.prefixCls,"-draggable-icon")},kt.draggable.icon):null},[kt.draggable]),Rt=function(kr){var Vr=Re.switcherIcon||kt.switcherIcon;return typeof Vr=="function"?Vr((0,Le.Z)((0,Le.Z)({},Re),{},{isLeaf:kr})):Vr},un=function(){if(Qn){var kr=Rt(!0);return kr!==!1?Se.createElement("span",{className:fe()("".concat(kt.prefixCls,"-switcher"),"".concat(kt.prefixCls,"-switcher-noop"))},kr):null}var Vr=Rt(!1);return Vr!==!1?Se.createElement("span",{onClick:ln,className:fe()("".concat(kt.prefixCls,"-switcher"),"".concat(kt.prefixCls,"-switcher_").concat(ht?ye:xe))},Vr):null},Dn=Se.useMemo(function(){if(!ee)return null;var gr=typeof ee!="boolean"?ee:null;return Se.createElement("span",{className:fe()("".concat(kt.prefixCls,"-checkbox"),(0,ct.Z)((0,ct.Z)((0,ct.Z)({},"".concat(kt.prefixCls,"-checkbox-checked"),We),"".concat(kt.prefixCls,"-checkbox-indeterminate"),!We&&_e),"".concat(kt.prefixCls,"-checkbox-disabled"),ie||Re.disableCheckbox)),onClick:le,role:"checkbox","aria-checked":_e?"mixed":We,"aria-disabled":ie||Re.disableCheckbox,"aria-label":"Select ".concat(typeof Re.title=="string"?Re.title:"tree node")},gr)},[ee,We,_e,ie,Re.disableCheckbox,Re.title]),Wn=Se.useMemo(function(){return Qn?null:ht?ye:xe},[Qn,ht]),It=Se.useMemo(function(){return Se.createElement("span",{className:fe()("".concat(kt.prefixCls,"-iconEle"),"".concat(kt.prefixCls,"-icon__").concat(Wn||"docu"),(0,ct.Z)({},"".concat(kt.prefixCls,"-icon_loading"),ot))})},[kt.prefixCls,Wn,ot]),Gt=Se.useMemo(function(){var gr=!!kt.draggable,kr=!Re.disabled&&gr&&kt.dragOverNodeKey===at;return kr?kt.dropIndicatorRender({dropPosition:kt.dropPosition,dropLevelOffset:kt.dropLevelOffset,indent:kt.indent,prefixCls:kt.prefixCls,direction:kt.direction}):null},[kt.dropPosition,kt.dropLevelOffset,kt.indent,kt.prefixCls,kt.direction,kt.draggable,kt.dragOverNodeKey,kt.dropIndicatorRender]),sn=Se.useMemo(function(){var gr=Re.title,kr=gr===void 0?Ee:gr,Vr="".concat(kt.prefixCls,"-node-content-wrapper"),pi;if(kt.showIcon){var Lr=Re.icon||kt.icon;pi=Lr?Se.createElement("span",{className:fe()("".concat(kt.prefixCls,"-iconEle"),"".concat(kt.prefixCls,"-icon__customize"))},typeof Lr=="function"?Lr(Re):Lr):It}else kt.loadData&&ot&&(pi=It);var tr;return typeof kr=="function"?tr=kr(tt):kt.titleRender?tr=kt.titleRender(tt):tr=kr,Se.createElement("span",{ref:_t,title:typeof kr=="string"?kr:"",className:fe()(Vr,"".concat(Vr,"-").concat(Wn||"normal"),(0,ct.Z)({},"".concat(kt.prefixCls,"-node-selected"),!ie&&(Bt||de))),onMouseEnter:gt,onMouseLeave:mt,onContextMenu:Et,onClick:$e,onDoubleClick:st},pi,Se.createElement("span",{className:"".concat(kt.prefixCls,"-title")},tr),Gt)},[kt.prefixCls,kt.showIcon,Re,kt.icon,It,kt.titleRender,tt,Wn,gt,mt,Et,$e,st]),yn=(0,Ce.Z)(pn,{aria:!0,data:!0}),Yn=(0,Me.Z)(kt.keyEntities,at)||{},Br=Yn.level,ti=it[it.length-1],Ur=!ie&&Lt,Sr=kt.draggingNodeKey===at,Jn=Ut!==void 0?{"aria-selected":!!Ut}:void 0;return Se.createElement("div",(0,x.Z)({ref:Zt,role:"treeitem","aria-expanded":je?void 0:ht,className:fe()(ft,"".concat(kt.prefixCls,"-treenode"),(ut={},(0,ct.Z)((0,ct.Z)((0,ct.Z)((0,ct.Z)((0,ct.Z)((0,ct.Z)((0,ct.Z)((0,ct.Z)((0,ct.Z)((0,ct.Z)(ut,"".concat(kt.prefixCls,"-treenode-disabled"),ie),"".concat(kt.prefixCls,"-treenode-switcher-").concat(ht?"open":"close"),!je),"".concat(kt.prefixCls,"-treenode-checkbox-checked"),We),"".concat(kt.prefixCls,"-treenode-checkbox-indeterminate"),_e),"".concat(kt.prefixCls,"-treenode-selected"),Bt),"".concat(kt.prefixCls,"-treenode-loading"),ot),"".concat(kt.prefixCls,"-treenode-active"),zt),"".concat(kt.prefixCls,"-treenode-leaf-last"),ti),"".concat(kt.prefixCls,"-treenode-draggable"),Lt),"dragging",Sr),(0,ct.Z)((0,ct.Z)((0,ct.Z)((0,ct.Z)((0,ct.Z)((0,ct.Z)((0,ct.Z)(ut,"drop-target",kt.dropTargetKey===at),"drop-container",kt.dropContainerKey===at),"drag-over",!ie&&He),"drag-over-gap-top",!ie&&pt),"drag-over-gap-bottom",!ie&&Ne),"filter-node",(Ge=kt.filterTreeNode)===null||Ge===void 0?void 0:Ge.call(kt,(0,Fe.F)(Re))),"".concat(kt.prefixCls,"-treenode-leaf"),Qn))),style:bt,draggable:Ur,onDragStart:Ur?jt:void 0,onDragEnter:Lt?Ct:void 0,onDragOver:Lt?lt:void 0,onDragLeave:Lt?$t:void 0,onDrop:Lt?wn:void 0,onDragEnd:Lt?Wt:void 0,onMouseMove:Nt},Jn,yn),Se.createElement(ve,{prefixCls:kt.prefixCls,level:Br,isStart:Ot,isEnd:it}),En,un(),Dn,sn)};ke.isTreeNode=1;var Ke=ke},30699:function(Vn,Mt,ae){"use strict";ae.d(Mt,{k:function(){return ct},y:function(){return Le}});var x=ae(59301),ct=x.createContext(null),Le=x.createContext({})},3741:function(Vn,Mt,ae){"use strict";ae.d(Mt,{OF:function(){return at.Z},y6:function(){return xe.y},ZP:function(){return ie}});var x=ae(54476),ct=ae(76190),Le=ae(33885),Je=ae(94480),ze=ae(67732),Se=ae(83652),Ue=ae(31226),fe=ae(42403),Ce=ae(158),oe=ae(20068),Oe=ae(92310),ve=ae.n(Oe),Me=ae(10228),Fe=ae(26112),Te=ae(48736),ye=ae(59301),xe=ae(30699),Ee=function(se){var le=se.dropPosition,Be=se.dropLevelOffset,$e=se.indent,st={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(le){case-1:st.top=0,st.left=-Be*$e;break;case 1:st.bottom=0,st.left=-Be*$e;break;case 0:st.bottom=0,st.left=$e;break}return ye.createElement("div",{style:st})},ke=Ee;function Ke(ee){if(ee==null)throw new TypeError("Cannot destructure "+ee)}var Qe=ae(42978),Re=ae(75931),et=ae(34280),Ge=ae(48911),ut=ae(77900),at=ae(639);function ft(ee,se){var le=ye.useState(!1),Be=(0,Qe.Z)(le,2),$e=Be[0],st=Be[1];(0,et.Z)(function(){if($e)return ee(),function(){se()}},[$e]),(0,et.Z)(function(){return st(!0),function(){st(!1)}},[])}var bt=ft,He=ae(34061),pt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Ne=ye.forwardRef(function(ee,se){var le=ee.className,Be=ee.style,$e=ee.motion,st=ee.motionNodes,gt=ee.motionType,mt=ee.onMotionStart,Et=ee.onMotionEnd,Lt=ee.active,jt=ee.treeNodeRequiredProps,Ct=(0,Re.Z)(ee,pt),lt=ye.useState(!0),$t=(0,Qe.Z)(lt,2),Wt=$t[0],wn=$t[1],ln=ye.useContext(xe.k),tn=ln.prefixCls,Qn=st&&gt!=="hide";(0,et.Z)(function(){st&&Qn!==Wt&&wn(Qn)},[st]);var En=function(){st&&mt()},Rt=ye.useRef(!1),un=function(){st&&!Rt.current&&(Rt.current=!0,Et())};bt(En,un);var Dn=function(It){Qn===It&&un()};return st?ye.createElement(ut.default,(0,x.Z)({ref:se,visible:Wt},$e,{motionAppear:gt==="show",onVisibleChanged:Dn}),function(Wn,It){var Gt=Wn.className,sn=Wn.style;return ye.createElement("div",{ref:It,className:ve()("".concat(tn,"-treenode-motion"),Gt),style:sn},st.map(function(yn){var Yn=Object.assign({},(Ke(yn.data),yn.data)),Br=yn.title,ti=yn.key,Ur=yn.isStart,Sr=yn.isEnd;delete Yn.children;var Jn=(0,He.H8)(ti,jt);return ye.createElement(at.Z,(0,x.Z)({},Yn,Jn,{title:Br,active:Lt,data:yn.data,key:ti,isStart:Ur,isEnd:Sr}))}))}):ye.createElement(at.Z,(0,x.Z)({domRef:se,className:le,style:Be},Ct,{active:Lt}))}),je=Ne;function Ot(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],le=ee.length,Be=se.length;if(Math.abs(le-Be)!==1)return{add:!1,key:null};function $e(st,gt){var mt=new Map;st.forEach(function(Lt){mt.set(Lt,!0)});var Et=gt.filter(function(Lt){return!mt.has(Lt)});return Et.length===1?Et[0]:null}return le<Be?{add:!0,key:$e(ee,se)}:{add:!1,key:$e(se,ee)}}function it(ee,se,le){var Be=ee.findIndex(function(mt){return mt.key===le}),$e=ee[Be+1],st=se.findIndex(function(mt){return mt.key===le});if($e){var gt=se.findIndex(function(mt){return mt.key===$e.key});return se.slice(st+1,gt)}return se.slice(st+1)}var ht=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Bt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},We=function(){},_e="RC_TREE_MOTION_".concat(Math.random()),ot={key:_e},Zt={key:_e,level:0,index:0,pos:"0",node:ot,nodes:[ot]},zt={parent:null,children:[],pos:Zt.pos,data:ot,title:null,key:_e,isStart:[],isEnd:[]};function tt(ee,se,le,Be){return se===!1||!le?ee:ee.slice(0,Math.ceil(le/Be)+1)}function Nt(ee){var se=ee.key,le=ee.pos;return(0,He.km)(se,le)}function Ut(ee){for(var se=String(ee.data.key),le=ee;le.parent;)le=le.parent,se="".concat(le.data.key," > ").concat(se);return se}var pn=ye.forwardRef(function(ee,se){var le=ee.prefixCls,Be=ee.data,$e=ee.selectable,st=ee.checkable,gt=ee.expandedKeys,mt=ee.selectedKeys,Et=ee.checkedKeys,Lt=ee.loadedKeys,jt=ee.loadingKeys,Ct=ee.halfCheckedKeys,lt=ee.keyEntities,$t=ee.disabled,Wt=ee.dragging,wn=ee.dragOverNodeKey,ln=ee.dropPosition,tn=ee.motion,Qn=ee.height,En=ee.itemHeight,Rt=ee.virtual,un=ee.scrollWidth,Dn=ee.focusable,Wn=ee.activeItem,It=ee.focused,Gt=ee.tabIndex,sn=ee.onKeyDown,yn=ee.onFocus,Yn=ee.onBlur,Br=ee.onActiveChange,ti=ee.onListChangeStart,Ur=ee.onListChangeEnd,Sr=(0,Re.Z)(ee,ht),Jn=ye.useRef(null),gr=ye.useRef(null);ye.useImperativeHandle(se,function(){return{scrollTo:function(Nr){Jn.current.scrollTo(Nr)},getIndentWidth:function(){return gr.current.offsetWidth}}});var kr=ye.useState(gt),Vr=(0,Qe.Z)(kr,2),pi=Vr[0],Lr=Vr[1],tr=ye.useState(Be),Xn=(0,Qe.Z)(tr,2),mr=Xn[0],Qr=Xn[1],ii=ye.useState(Be),ai=(0,Qe.Z)(ii,2),oi=ai[0],li=ai[1],ji=ye.useState([]),ki=(0,Qe.Z)(ji,2),or=ki[0],Hr=ki[1],Bi=ye.useState(null),Yt=(0,Qe.Z)(Bi,2),rn=Yt[0],fn=Yt[1],Pt=ye.useRef(Be);Pt.current=Be;function en(){var On=Pt.current;Qr(On),li(On),Hr([]),fn(null),Ur()}(0,et.Z)(function(){Lr(gt);var On=Ot(pi,gt);if(On.key!==null)if(On.add){var Nr=mr.findIndex(function(ni){var er=ni.key;return er===On.key}),Yr=tt(it(mr,Be,On.key),Rt,Qn,En),hi=mr.slice();hi.splice(Nr+1,0,zt),li(hi),Hr(Yr),fn("show")}else{var rr=Be.findIndex(function(ni){var er=ni.key;return er===On.key}),ur=tt(it(Be,mr,On.key),Rt,Qn,En),sr=Be.slice();sr.splice(rr+1,0,zt),li(sr),Hr(ur),fn("hide")}else mr!==Be&&(Qr(Be),li(Be))},[gt,Be]),ye.useEffect(function(){Wt||en()},[Wt]);var Kt=tn?oi:Be,gn={expandedKeys:gt,selectedKeys:mt,loadedKeys:Lt,loadingKeys:jt,checkedKeys:Et,halfCheckedKeys:Ct,dragOverNodeKey:wn,dropPosition:ln,keyEntities:lt};return ye.createElement(ye.Fragment,null,It&&Wn&&ye.createElement("span",{style:Bt,"aria-live":"assertive"},Ut(Wn)),ye.createElement("div",null,ye.createElement("input",{style:Bt,disabled:Dn===!1||$t,tabIndex:Dn!==!1?Gt:null,onKeyDown:sn,onFocus:yn,onBlur:Yn,value:"",onChange:We,"aria-label":"for screen reader"})),ye.createElement("div",{className:"".concat(le,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ye.createElement("div",{className:"".concat(le,"-indent")},ye.createElement("div",{ref:gr,className:"".concat(le,"-indent-unit")}))),ye.createElement(Ge.Z,(0,x.Z)({},Sr,{data:Kt,itemKey:Nt,height:Qn,fullHeight:!1,virtual:Rt,itemHeight:En,scrollWidth:un,prefixCls:"".concat(le,"-list"),ref:Jn,role:"tree",onVisibleChange:function(Nr){Nr.every(function(Yr){return Nt(Yr)!==_e})&&en()}}),function(On){var Nr=On.pos,Yr=Object.assign({},(Ke(On.data),On.data)),hi=On.title,rr=On.key,ur=On.isStart,sr=On.isEnd,ni=(0,He.km)(rr,Nr);delete Yr.key,delete Yr.children;var er=(0,He.H8)(ni,gn);return ye.createElement(je,(0,x.Z)({},Yr,er,{title:hi,active:!!Wn&&rr===Wn.key,pos:Nr,data:On.data,isStart:ur,isEnd:sr,motion:tn,motionNodes:rr===_e?or:null,motionType:rn,onMotionStart:ti,onMotionEnd:en,treeNodeRequiredProps:gn,onMouseMove:function(){Br(null)}}))}))}),kt=pn,mn=ae(82661),_t=ae(34643),Cn=ae(65065),an=10,de=function(ee){(0,fe.Z)(le,ee);var se=(0,Ce.Z)(le);function le(){var Be;(0,ze.Z)(this,le);for(var $e=arguments.length,st=new Array($e),gt=0;gt<$e;gt++)st[gt]=arguments[gt];return Be=se.call.apply(se,[this].concat(st)),(0,oe.Z)((0,Ue.Z)(Be),"destroyed",!1),(0,oe.Z)((0,Ue.Z)(Be),"delayedDragEnterLogic",void 0),(0,oe.Z)((0,Ue.Z)(Be),"loadingRetryTimes",{}),(0,oe.Z)((0,Ue.Z)(Be),"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,He.w$)()}),(0,oe.Z)((0,Ue.Z)(Be),"dragStartMousePosition",null),(0,oe.Z)((0,Ue.Z)(Be),"dragNodeProps",null),(0,oe.Z)((0,Ue.Z)(Be),"currentMouseOverDroppableNodeKey",null),(0,oe.Z)((0,Ue.Z)(Be),"listRef",ye.createRef()),(0,oe.Z)((0,Ue.Z)(Be),"onNodeDragStart",function(mt,Et){var Lt=Be.state,jt=Lt.expandedKeys,Ct=Lt.keyEntities,lt=Be.props.onDragStart,$t=Et.eventKey;Be.dragNodeProps=Et,Be.dragStartMousePosition={x:mt.clientX,y:mt.clientY};var Wt=(0,mn._5)(jt,$t);Be.setState({draggingNodeKey:$t,dragChildrenKeys:(0,mn.wA)($t,Ct),indent:Be.listRef.current.getIndentWidth()}),Be.setExpandedKeys(Wt),window.addEventListener("dragend",Be.onWindowDragEnd),lt==null||lt({event:mt,node:(0,He.F)(Et)})}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeDragEnter",function(mt,Et){var Lt=Be.state,jt=Lt.expandedKeys,Ct=Lt.keyEntities,lt=Lt.dragChildrenKeys,$t=Lt.flattenNodes,Wt=Lt.indent,wn=Be.props,ln=wn.onDragEnter,tn=wn.onExpand,Qn=wn.allowDrop,En=wn.direction,Rt=Et.pos,un=Et.eventKey;if(Be.currentMouseOverDroppableNodeKey!==un&&(Be.currentMouseOverDroppableNodeKey=un),!Be.dragNodeProps){Be.resetDragState();return}var Dn=(0,mn.OM)(mt,Be.dragNodeProps,Et,Wt,Be.dragStartMousePosition,Qn,$t,Ct,jt,En),Wn=Dn.dropPosition,It=Dn.dropLevelOffset,Gt=Dn.dropTargetKey,sn=Dn.dropContainerKey,yn=Dn.dropTargetPos,Yn=Dn.dropAllowed,Br=Dn.dragOverNodeKey;if(lt.includes(Gt)||!Yn){Be.resetDragState();return}if(Be.delayedDragEnterLogic||(Be.delayedDragEnterLogic={}),Object.keys(Be.delayedDragEnterLogic).forEach(function(ti){clearTimeout(Be.delayedDragEnterLogic[ti])}),Be.dragNodeProps.eventKey!==Et.eventKey&&(mt.persist(),Be.delayedDragEnterLogic[Rt]=window.setTimeout(function(){if(Be.state.draggingNodeKey!==null){var ti=(0,Je.Z)(jt),Ur=(0,Cn.Z)(Ct,Et.eventKey);Ur&&(Ur.children||[]).length&&(ti=(0,mn.L0)(jt,Et.eventKey)),Be.props.hasOwnProperty("expandedKeys")||Be.setExpandedKeys(ti),tn==null||tn(ti,{node:(0,He.F)(Et),expanded:!0,nativeEvent:mt.nativeEvent})}},800)),Be.dragNodeProps.eventKey===Gt&&It===0){Be.resetDragState();return}Be.setState({dragOverNodeKey:Br,dropPosition:Wn,dropLevelOffset:It,dropTargetKey:Gt,dropContainerKey:sn,dropTargetPos:yn,dropAllowed:Yn}),ln==null||ln({event:mt,node:(0,He.F)(Et),expandedKeys:jt})}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeDragOver",function(mt,Et){var Lt=Be.state,jt=Lt.dragChildrenKeys,Ct=Lt.flattenNodes,lt=Lt.keyEntities,$t=Lt.expandedKeys,Wt=Lt.indent,wn=Be.props,ln=wn.onDragOver,tn=wn.allowDrop,Qn=wn.direction;if(Be.dragNodeProps){var En=(0,mn.OM)(mt,Be.dragNodeProps,Et,Wt,Be.dragStartMousePosition,tn,Ct,lt,$t,Qn),Rt=En.dropPosition,un=En.dropLevelOffset,Dn=En.dropTargetKey,Wn=En.dropContainerKey,It=En.dropTargetPos,Gt=En.dropAllowed,sn=En.dragOverNodeKey;jt.includes(Dn)||!Gt||(Be.dragNodeProps.eventKey===Dn&&un===0?Be.state.dropPosition===null&&Be.state.dropLevelOffset===null&&Be.state.dropTargetKey===null&&Be.state.dropContainerKey===null&&Be.state.dropTargetPos===null&&Be.state.dropAllowed===!1&&Be.state.dragOverNodeKey===null||Be.resetDragState():Rt===Be.state.dropPosition&&un===Be.state.dropLevelOffset&&Dn===Be.state.dropTargetKey&&Wn===Be.state.dropContainerKey&&It===Be.state.dropTargetPos&&Gt===Be.state.dropAllowed&&sn===Be.state.dragOverNodeKey||Be.setState({dropPosition:Rt,dropLevelOffset:un,dropTargetKey:Dn,dropContainerKey:Wn,dropTargetPos:It,dropAllowed:Gt,dragOverNodeKey:sn}),ln==null||ln({event:mt,node:(0,He.F)(Et)}))}}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeDragLeave",function(mt,Et){Be.currentMouseOverDroppableNodeKey===Et.eventKey&&!mt.currentTarget.contains(mt.relatedTarget)&&(Be.resetDragState(),Be.currentMouseOverDroppableNodeKey=null);var Lt=Be.props.onDragLeave;Lt==null||Lt({event:mt,node:(0,He.F)(Et)})}),(0,oe.Z)((0,Ue.Z)(Be),"onWindowDragEnd",function(mt){Be.onNodeDragEnd(mt,null,!0),window.removeEventListener("dragend",Be.onWindowDragEnd)}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeDragEnd",function(mt,Et){var Lt=Be.props.onDragEnd;Be.setState({dragOverNodeKey:null}),Be.cleanDragState(),Lt==null||Lt({event:mt,node:(0,He.F)(Et)}),Be.dragNodeProps=null,window.removeEventListener("dragend",Be.onWindowDragEnd)}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeDrop",function(mt,Et){var Lt,jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ct=Be.state,lt=Ct.dragChildrenKeys,$t=Ct.dropPosition,Wt=Ct.dropTargetKey,wn=Ct.dropTargetPos,ln=Ct.dropAllowed;if(ln){var tn=Be.props.onDrop;if(Be.setState({dragOverNodeKey:null}),Be.cleanDragState(),Wt!==null){var Qn=(0,Le.Z)((0,Le.Z)({},(0,He.H8)(Wt,Be.getTreeNodeRequiredProps())),{},{active:((Lt=Be.getActiveItem())===null||Lt===void 0?void 0:Lt.key)===Wt,data:(0,Cn.Z)(Be.state.keyEntities,Wt).node}),En=lt.includes(Wt);(0,Te.ZP)(!En,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Rt=(0,mn.yx)(wn),un={event:mt,node:(0,He.F)(Qn),dragNode:Be.dragNodeProps?(0,He.F)(Be.dragNodeProps):null,dragNodesKeys:[Be.dragNodeProps.eventKey].concat(lt),dropToGap:$t!==0,dropPosition:$t+Number(Rt[Rt.length-1])};jt||tn==null||tn(un),Be.dragNodeProps=null}}}),(0,oe.Z)((0,Ue.Z)(Be),"cleanDragState",function(){var mt=Be.state.draggingNodeKey;mt!==null&&Be.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Be.dragStartMousePosition=null,Be.currentMouseOverDroppableNodeKey=null}),(0,oe.Z)((0,Ue.Z)(Be),"triggerExpandActionExpand",function(mt,Et){var Lt=Be.state,jt=Lt.expandedKeys,Ct=Lt.flattenNodes,lt=Et.expanded,$t=Et.key,Wt=Et.isLeaf;if(!(Wt||mt.shiftKey||mt.metaKey||mt.ctrlKey)){var wn=Ct.filter(function(tn){return tn.key===$t})[0],ln=(0,He.F)((0,Le.Z)((0,Le.Z)({},(0,He.H8)($t,Be.getTreeNodeRequiredProps())),{},{data:wn.data}));Be.setExpandedKeys(lt?(0,mn._5)(jt,$t):(0,mn.L0)(jt,$t)),Be.onNodeExpand(mt,ln)}}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeClick",function(mt,Et){var Lt=Be.props,jt=Lt.onClick,Ct=Lt.expandAction;Ct==="click"&&Be.triggerExpandActionExpand(mt,Et),jt==null||jt(mt,Et)}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeDoubleClick",function(mt,Et){var Lt=Be.props,jt=Lt.onDoubleClick,Ct=Lt.expandAction;Ct==="doubleClick"&&Be.triggerExpandActionExpand(mt,Et),jt==null||jt(mt,Et)}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeSelect",function(mt,Et){var Lt=Be.state.selectedKeys,jt=Be.state,Ct=jt.keyEntities,lt=jt.fieldNames,$t=Be.props,Wt=$t.onSelect,wn=$t.multiple,ln=Et.selected,tn=Et[lt.key],Qn=!ln;Qn?wn?Lt=(0,mn.L0)(Lt,tn):Lt=[tn]:Lt=(0,mn._5)(Lt,tn);var En=Lt.map(function(Rt){var un=(0,Cn.Z)(Ct,Rt);return un?un.node:null}).filter(Boolean);Be.setUncontrolledState({selectedKeys:Lt}),Wt==null||Wt(Lt,{event:"select",selected:Qn,node:Et,selectedNodes:En,nativeEvent:mt.nativeEvent})}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeCheck",function(mt,Et,Lt){var jt=Be.state,Ct=jt.keyEntities,lt=jt.checkedKeys,$t=jt.halfCheckedKeys,Wt=Be.props,wn=Wt.checkStrictly,ln=Wt.onCheck,tn=Et.key,Qn,En={event:"check",node:Et,checked:Lt,nativeEvent:mt.nativeEvent};if(wn){var Rt=Lt?(0,mn.L0)(lt,tn):(0,mn._5)(lt,tn),un=(0,mn._5)($t,tn);Qn={checked:Rt,halfChecked:un},En.checkedNodes=Rt.map(function(yn){return(0,Cn.Z)(Ct,yn)}).filter(Boolean).map(function(yn){return yn.node}),Be.setUncontrolledState({checkedKeys:Rt})}else{var Dn=(0,_t.S)([].concat((0,Je.Z)(lt),[tn]),!0,Ct),Wn=Dn.checkedKeys,It=Dn.halfCheckedKeys;if(!Lt){var Gt=new Set(Wn);Gt.delete(tn);var sn=(0,_t.S)(Array.from(Gt),{checked:!1,halfCheckedKeys:It},Ct);Wn=sn.checkedKeys,It=sn.halfCheckedKeys}Qn=Wn,En.checkedNodes=[],En.checkedNodesPositions=[],En.halfCheckedKeys=It,Wn.forEach(function(yn){var Yn=(0,Cn.Z)(Ct,yn);if(Yn){var Br=Yn.node,ti=Yn.pos;En.checkedNodes.push(Br),En.checkedNodesPositions.push({node:Br,pos:ti})}}),Be.setUncontrolledState({checkedKeys:Wn},!1,{halfCheckedKeys:It})}ln==null||ln(Qn,En)}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeLoad",function(mt){var Et,Lt=mt.key,jt=Be.state.keyEntities,Ct=(0,Cn.Z)(jt,Lt);if(!(Ct!=null&&(Et=Ct.children)!==null&&Et!==void 0&&Et.length)){var lt=new Promise(function($t,Wt){Be.setState(function(wn){var ln=wn.loadedKeys,tn=ln===void 0?[]:ln,Qn=wn.loadingKeys,En=Qn===void 0?[]:Qn,Rt=Be.props,un=Rt.loadData,Dn=Rt.onLoad;if(!un||tn.includes(Lt)||En.includes(Lt))return null;var Wn=un(mt);return Wn.then(function(){var It=Be.state.loadedKeys,Gt=(0,mn.L0)(It,Lt);Dn==null||Dn(Gt,{event:"load",node:mt}),Be.setUncontrolledState({loadedKeys:Gt}),Be.setState(function(sn){return{loadingKeys:(0,mn._5)(sn.loadingKeys,Lt)}}),$t()}).catch(function(It){if(Be.setState(function(sn){return{loadingKeys:(0,mn._5)(sn.loadingKeys,Lt)}}),Be.loadingRetryTimes[Lt]=(Be.loadingRetryTimes[Lt]||0)+1,Be.loadingRetryTimes[Lt]>=an){var Gt=Be.state.loadedKeys;(0,Te.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Be.setUncontrolledState({loadedKeys:(0,mn.L0)(Gt,Lt)}),$t()}Wt(It)}),{loadingKeys:(0,mn.L0)(En,Lt)}})});return lt.catch(function(){}),lt}}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeMouseEnter",function(mt,Et){var Lt=Be.props.onMouseEnter;Lt==null||Lt({event:mt,node:Et})}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeMouseLeave",function(mt,Et){var Lt=Be.props.onMouseLeave;Lt==null||Lt({event:mt,node:Et})}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeContextMenu",function(mt,Et){var Lt=Be.props.onRightClick;Lt&&(mt.preventDefault(),Lt({event:mt,node:Et}))}),(0,oe.Z)((0,Ue.Z)(Be),"onFocus",function(){var mt=Be.props.onFocus;Be.setState({focused:!0});for(var Et=arguments.length,Lt=new Array(Et),jt=0;jt<Et;jt++)Lt[jt]=arguments[jt];mt==null||mt.apply(void 0,Lt)}),(0,oe.Z)((0,Ue.Z)(Be),"onBlur",function(){var mt=Be.props.onBlur;Be.setState({focused:!1}),Be.onActiveChange(null);for(var Et=arguments.length,Lt=new Array(Et),jt=0;jt<Et;jt++)Lt[jt]=arguments[jt];mt==null||mt.apply(void 0,Lt)}),(0,oe.Z)((0,Ue.Z)(Be),"getTreeNodeRequiredProps",function(){var mt=Be.state,Et=mt.expandedKeys,Lt=mt.selectedKeys,jt=mt.loadedKeys,Ct=mt.loadingKeys,lt=mt.checkedKeys,$t=mt.halfCheckedKeys,Wt=mt.dragOverNodeKey,wn=mt.dropPosition,ln=mt.keyEntities;return{expandedKeys:Et||[],selectedKeys:Lt||[],loadedKeys:jt||[],loadingKeys:Ct||[],checkedKeys:lt||[],halfCheckedKeys:$t||[],dragOverNodeKey:Wt,dropPosition:wn,keyEntities:ln}}),(0,oe.Z)((0,Ue.Z)(Be),"setExpandedKeys",function(mt){var Et=Be.state,Lt=Et.treeData,jt=Et.fieldNames,Ct=(0,He.oH)(Lt,mt,jt);Be.setUncontrolledState({expandedKeys:mt,flattenNodes:Ct},!0)}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeExpand",function(mt,Et){var Lt=Be.state.expandedKeys,jt=Be.state,Ct=jt.listChanging,lt=jt.fieldNames,$t=Be.props,Wt=$t.onExpand,wn=$t.loadData,ln=Et.expanded,tn=Et[lt.key];if(!Ct){var Qn=Lt.includes(tn),En=!ln;if((0,Te.ZP)(ln&&Qn||!ln&&!Qn,"Expand state not sync with index check"),Lt=En?(0,mn.L0)(Lt,tn):(0,mn._5)(Lt,tn),Be.setExpandedKeys(Lt),Wt==null||Wt(Lt,{node:Et,expanded:En,nativeEvent:mt.nativeEvent}),En&&wn){var Rt=Be.onNodeLoad(Et);Rt&&Rt.then(function(){var un=(0,He.oH)(Be.state.treeData,Lt,lt);Be.setUncontrolledState({flattenNodes:un})}).catch(function(){var un=Be.state.expandedKeys,Dn=(0,mn._5)(un,tn);Be.setExpandedKeys(Dn)})}}}),(0,oe.Z)((0,Ue.Z)(Be),"onListChangeStart",function(){Be.setUncontrolledState({listChanging:!0})}),(0,oe.Z)((0,Ue.Z)(Be),"onListChangeEnd",function(){setTimeout(function(){Be.setUncontrolledState({listChanging:!1})})}),(0,oe.Z)((0,Ue.Z)(Be),"onActiveChange",function(mt){var Et=Be.state.activeKey,Lt=Be.props,jt=Lt.onActiveChange,Ct=Lt.itemScrollOffset,lt=Ct===void 0?0:Ct;Et!==mt&&(Be.setState({activeKey:mt}),mt!==null&&Be.scrollTo({key:mt,offset:lt}),jt==null||jt(mt))}),(0,oe.Z)((0,Ue.Z)(Be),"getActiveItem",function(){var mt=Be.state,Et=mt.activeKey,Lt=mt.flattenNodes;return Et===null?null:Lt.find(function(jt){var Ct=jt.key;return Ct===Et})||null}),(0,oe.Z)((0,Ue.Z)(Be),"offsetActiveKey",function(mt){var Et=Be.state,Lt=Et.flattenNodes,jt=Et.activeKey,Ct=Lt.findIndex(function(Wt){var wn=Wt.key;return wn===jt});Ct===-1&&mt<0&&(Ct=Lt.length),Ct=(Ct+mt+Lt.length)%Lt.length;var lt=Lt[Ct];if(lt){var $t=lt.key;Be.onActiveChange($t)}else Be.onActiveChange(null)}),(0,oe.Z)((0,Ue.Z)(Be),"onKeyDown",function(mt){var Et=Be.state,Lt=Et.activeKey,jt=Et.expandedKeys,Ct=Et.checkedKeys,lt=Et.fieldNames,$t=Be.props,Wt=$t.onKeyDown,wn=$t.checkable,ln=$t.selectable;switch(mt.which){case Me.Z.UP:{Be.offsetActiveKey(-1),mt.preventDefault();break}case Me.Z.DOWN:{Be.offsetActiveKey(1),mt.preventDefault();break}}var tn=Be.getActiveItem();if(tn&&tn.data){var Qn=Be.getTreeNodeRequiredProps(),En=tn.data.isLeaf===!1||!!(tn.data[lt.children]||[]).length,Rt=(0,He.F)((0,Le.Z)((0,Le.Z)({},(0,He.H8)(Lt,Qn)),{},{data:tn.data,active:!0}));switch(mt.which){case Me.Z.LEFT:{En&&jt.includes(Lt)?Be.onNodeExpand({},Rt):tn.parent&&Be.onActiveChange(tn.parent.key),mt.preventDefault();break}case Me.Z.RIGHT:{En&&!jt.includes(Lt)?Be.onNodeExpand({},Rt):tn.children&&tn.children.length&&Be.onActiveChange(tn.children[0].key),mt.preventDefault();break}case Me.Z.ENTER:case Me.Z.SPACE:{wn&&!Rt.disabled&&Rt.checkable!==!1&&!Rt.disableCheckbox?Be.onNodeCheck({},Rt,!Ct.includes(Lt)):!wn&&ln&&!Rt.disabled&&Rt.selectable!==!1&&Be.onNodeSelect({},Rt);break}}}Wt==null||Wt(mt)}),(0,oe.Z)((0,Ue.Z)(Be),"setUncontrolledState",function(mt){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Be.destroyed){var jt=!1,Ct=!0,lt={};Object.keys(mt).forEach(function($t){if(Be.props.hasOwnProperty($t)){Ct=!1;return}jt=!0,lt[$t]=mt[$t]}),jt&&(!Et||Ct)&&Be.setState((0,Le.Z)((0,Le.Z)({},lt),Lt))}}),(0,oe.Z)((0,Ue.Z)(Be),"scrollTo",function(mt){Be.listRef.current.scrollTo(mt)}),Be}return(0,Se.Z)(le,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var $e=this.props,st=$e.activeKey,gt=$e.itemScrollOffset,mt=gt===void 0?0:gt;st!==void 0&&st!==this.state.activeKey&&(this.setState({activeKey:st}),st!==null&&this.scrollTo({key:st,offset:mt}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var $e=this.state,st=$e.focused,gt=$e.flattenNodes,mt=$e.keyEntities,Et=$e.draggingNodeKey,Lt=$e.activeKey,jt=$e.dropLevelOffset,Ct=$e.dropContainerKey,lt=$e.dropTargetKey,$t=$e.dropPosition,Wt=$e.dragOverNodeKey,wn=$e.indent,ln=this.props,tn=ln.prefixCls,Qn=ln.className,En=ln.style,Rt=ln.showLine,un=ln.focusable,Dn=ln.tabIndex,Wn=Dn===void 0?0:Dn,It=ln.selectable,Gt=ln.showIcon,sn=ln.icon,yn=ln.switcherIcon,Yn=ln.draggable,Br=ln.checkable,ti=ln.checkStrictly,Ur=ln.disabled,Sr=ln.motion,Jn=ln.loadData,gr=ln.filterTreeNode,kr=ln.height,Vr=ln.itemHeight,pi=ln.scrollWidth,Lr=ln.virtual,tr=ln.titleRender,Xn=ln.dropIndicatorRender,mr=ln.onContextMenu,Qr=ln.onScroll,ii=ln.direction,ai=ln.rootClassName,oi=ln.rootStyle,li=(0,Fe.Z)(this.props,{aria:!0,data:!0}),ji;Yn&&((0,ct.Z)(Yn)==="object"?ji=Yn:typeof Yn=="function"?ji={nodeDraggable:Yn}:ji={});var ki={prefixCls:tn,selectable:It,showIcon:Gt,icon:sn,switcherIcon:yn,draggable:ji,draggingNodeKey:Et,checkable:Br,checkStrictly:ti,disabled:Ur,keyEntities:mt,dropLevelOffset:jt,dropContainerKey:Ct,dropTargetKey:lt,dropPosition:$t,dragOverNodeKey:Wt,indent:wn,direction:ii,dropIndicatorRender:Xn,loadData:Jn,filterTreeNode:gr,titleRender:tr,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};return ye.createElement(xe.k.Provider,{value:ki},ye.createElement("div",{className:ve()(tn,Qn,ai,(0,oe.Z)((0,oe.Z)((0,oe.Z)({},"".concat(tn,"-show-line"),Rt),"".concat(tn,"-focused"),st),"".concat(tn,"-active-focused"),Lt!==null)),style:oi},ye.createElement(kt,(0,x.Z)({ref:this.listRef,prefixCls:tn,style:En,data:gt,disabled:Ur,selectable:It,checkable:!!Br,motion:Sr,dragging:Et!==null,height:kr,itemHeight:Vr,virtual:Lr,focusable:un,focused:st,tabIndex:Wn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:mr,onScroll:Qr,scrollWidth:pi},this.getTreeNodeRequiredProps(),li))))}}],[{key:"getDerivedStateFromProps",value:function($e,st){var gt=st.prevProps,mt={prevProps:$e};function Et(Wn){return!gt&&$e.hasOwnProperty(Wn)||gt&&gt[Wn]!==$e[Wn]}var Lt,jt=st.fieldNames;if(Et("fieldNames")&&(jt=(0,He.w$)($e.fieldNames),mt.fieldNames=jt),Et("treeData")?Lt=$e.treeData:Et("children")&&((0,Te.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Lt=(0,He.zn)($e.children)),Lt){mt.treeData=Lt;var Ct=(0,He.I8)(Lt,{fieldNames:jt});mt.keyEntities=(0,Le.Z)((0,oe.Z)({},_e,Zt),Ct.keyEntities)}var lt=mt.keyEntities||st.keyEntities;if(Et("expandedKeys")||gt&&Et("autoExpandParent"))mt.expandedKeys=$e.autoExpandParent||!gt&&$e.defaultExpandParent?(0,mn.r7)($e.expandedKeys,lt):$e.expandedKeys;else if(!gt&&$e.defaultExpandAll){var $t=(0,Le.Z)({},lt);delete $t[_e];var Wt=[];Object.keys($t).forEach(function(Wn){var It=$t[Wn];It.children&&It.children.length&&Wt.push(It.key)}),mt.expandedKeys=Wt}else!gt&&$e.defaultExpandedKeys&&(mt.expandedKeys=$e.autoExpandParent||$e.defaultExpandParent?(0,mn.r7)($e.defaultExpandedKeys,lt):$e.defaultExpandedKeys);if(mt.expandedKeys||delete mt.expandedKeys,Lt||mt.expandedKeys){var wn=(0,He.oH)(Lt||st.treeData,mt.expandedKeys||st.expandedKeys,jt);mt.flattenNodes=wn}if($e.selectable&&(Et("selectedKeys")?mt.selectedKeys=(0,mn.BT)($e.selectedKeys,$e):!gt&&$e.defaultSelectedKeys&&(mt.selectedKeys=(0,mn.BT)($e.defaultSelectedKeys,$e))),$e.checkable){var ln;if(Et("checkedKeys")?ln=(0,mn.E6)($e.checkedKeys)||{}:!gt&&$e.defaultCheckedKeys?ln=(0,mn.E6)($e.defaultCheckedKeys)||{}:Lt&&(ln=(0,mn.E6)($e.checkedKeys)||{checkedKeys:st.checkedKeys,halfCheckedKeys:st.halfCheckedKeys}),ln){var tn=ln,Qn=tn.checkedKeys,En=Qn===void 0?[]:Qn,Rt=tn.halfCheckedKeys,un=Rt===void 0?[]:Rt;if(!$e.checkStrictly){var Dn=(0,_t.S)(En,!0,lt);En=Dn.checkedKeys,un=Dn.halfCheckedKeys}mt.checkedKeys=En,mt.halfCheckedKeys=un}}return Et("loadedKeys")&&(mt.loadedKeys=$e.loadedKeys),mt}}]),le}(ye.Component);(0,oe.Z)(de,"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:ke,allowDrop:function(){return!0},expandAction:!1}),(0,oe.Z)(de,"TreeNode",at.Z);var pe=de,ie=pe},82661:function(Vn,Mt,ae){"use strict";ae.d(Mt,{BT:function(){return ye},E6:function(){return ke},L0:function(){return oe},OM:function(){return Te},_5:function(){return Ce},r7:function(){return Ke},wA:function(){return ve},yx:function(){return Oe}});var x=ae(94480),ct=ae(76190),Le=ae(48736),Je=ae(59301),ze=ae(639),Se=ae(65065),Ue=ae(34061),fe=null;function Ce(Qe,Re){if(!Qe)return[];var et=Qe.slice(),Ge=et.indexOf(Re);return Ge>=0&&et.splice(Ge,1),et}function oe(Qe,Re){var et=(Qe||[]).slice();return et.indexOf(Re)===-1&&et.push(Re),et}function Oe(Qe){return Qe.split("-")}function ve(Qe,Re){var et=[],Ge=(0,Se.Z)(Re,Qe);function ut(){var at=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];at.forEach(function(ft){var bt=ft.key,He=ft.children;et.push(bt),ut(He)})}return ut(Ge.children),et}function Me(Qe){if(Qe.parent){var Re=Oe(Qe.pos);return Number(Re[Re.length-1])===Qe.parent.children.length-1}return!1}function Fe(Qe){var Re=Oe(Qe.pos);return Number(Re[Re.length-1])===0}function Te(Qe,Re,et,Ge,ut,at,ft,bt,He,pt){var Ne,je=Qe.clientX,Ot=Qe.clientY,it=Qe.target.getBoundingClientRect(),ht=it.top,Bt=it.height,We=(pt==="rtl"?-1:1)*(((ut==null?void 0:ut.x)||0)-je),_e=(We-12)/Ge,ot=He.filter(function(ie){var ee;return(ee=bt[ie])===null||ee===void 0||(ee=ee.children)===null||ee===void 0?void 0:ee.length}),Zt=(0,Se.Z)(bt,et.eventKey);if(Ot<ht+Bt/2){var zt=ft.findIndex(function(ie){return ie.key===Zt.key}),tt=zt<=0?0:zt-1,Nt=ft[tt].key;Zt=(0,Se.Z)(bt,Nt)}var Ut=Zt.key,pn=Zt,kt=Zt.key,mn=0,_t=0;if(!ot.includes(Ut))for(var Cn=0;Cn<_e&&Me(Zt);Cn+=1)Zt=Zt.parent,_t+=1;var an=Re.data,de=Zt.node,pe=!0;return Fe(Zt)&&Zt.level===0&&Ot<ht+Bt/2&&at({dragNode:an,dropNode:de,dropPosition:-1})&&Zt.key===et.eventKey?mn=-1:(pn.children||[]).length&&ot.includes(kt)?at({dragNode:an,dropNode:de,dropPosition:0})?mn=0:pe=!1:_t===0?_e>-1.5?at({dragNode:an,dropNode:de,dropPosition:1})?mn=1:pe=!1:at({dragNode:an,dropNode:de,dropPosition:0})?mn=0:at({dragNode:an,dropNode:de,dropPosition:1})?mn=1:pe=!1:at({dragNode:an,dropNode:de,dropPosition:1})?mn=1:pe=!1,{dropPosition:mn,dropLevelOffset:_t,dropTargetKey:Zt.key,dropTargetPos:Zt.pos,dragOverNodeKey:kt,dropContainerKey:mn===0?null:((Ne=Zt.parent)===null||Ne===void 0?void 0:Ne.key)||null,dropAllowed:pe}}function ye(Qe,Re){if(Qe){var et=Re.multiple;return et?Qe.slice():Qe.length?[Qe[0]]:Qe}}var xe=function(Re){return Re};function Ee(Qe,Re){if(!Qe)return[];var et=Re||{},Ge=et.processProps,ut=Ge===void 0?xe:Ge,at=Array.isArray(Qe)?Qe:[Qe];return at.map(function(ft){var bt=ft.children,He=_objectWithoutProperties(ft,fe),pt=Ee(bt,Re);return React.createElement(TreeNode,_extends({key:He.key},ut(He)),pt)})}function ke(Qe){if(!Qe)return null;var Re;if(Array.isArray(Qe))Re={checkedKeys:Qe,halfCheckedKeys:void 0};else if((0,ct.Z)(Qe)==="object")Re={checkedKeys:Qe.checked||void 0,halfCheckedKeys:Qe.halfChecked||void 0};else return(0,Le.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Re}function Ke(Qe,Re){var et=new Set;function Ge(ut){if(!et.has(ut)){var at=(0,Se.Z)(Re,ut);if(at){et.add(ut);var ft=at.parent,bt=at.node;bt.disabled||ft&&Ge(ft.key)}}}return(Qe||[]).forEach(function(ut){Ge(ut)}),(0,x.Z)(et)}},34643:function(Vn,Mt,ae){"use strict";ae.d(Mt,{S:function(){return Ue}});var x=ae(48736),ct=ae(65065);function Le(fe,Ce){var oe=new Set;return fe.forEach(function(Oe){Ce.has(Oe)||oe.add(Oe)}),oe}function Je(fe){var Ce=fe||{},oe=Ce.disabled,Oe=Ce.disableCheckbox,ve=Ce.checkable;return!!(oe||Oe)||ve===!1}function ze(fe,Ce,oe,Oe){for(var ve=new Set(fe),Me=new Set,Fe=0;Fe<=oe;Fe+=1){var Te=Ce.get(Fe)||new Set;Te.forEach(function(ke){var Ke=ke.key,Qe=ke.node,Re=ke.children,et=Re===void 0?[]:Re;ve.has(Ke)&&!Oe(Qe)&&et.filter(function(Ge){return!Oe(Ge.node)}).forEach(function(Ge){ve.add(Ge.key)})})}for(var ye=new Set,xe=oe;xe>=0;xe-=1){var Ee=Ce.get(xe)||new Set;Ee.forEach(function(ke){var Ke=ke.parent,Qe=ke.node;if(!(Oe(Qe)||!ke.parent||ye.has(ke.parent.key))){if(Oe(ke.parent.node)){ye.add(Ke.key);return}var Re=!0,et=!1;(Ke.children||[]).filter(function(Ge){return!Oe(Ge.node)}).forEach(function(Ge){var ut=Ge.key,at=ve.has(ut);Re&&!at&&(Re=!1),!et&&(at||Me.has(ut))&&(et=!0)}),Re&&ve.add(Ke.key),et&&Me.add(Ke.key),ye.add(Ke.key)}})}return{checkedKeys:Array.from(ve),halfCheckedKeys:Array.from(Le(Me,ve))}}function Se(fe,Ce,oe,Oe,ve){for(var Me=new Set(fe),Fe=new Set(Ce),Te=0;Te<=Oe;Te+=1){var ye=oe.get(Te)||new Set;ye.forEach(function(Ke){var Qe=Ke.key,Re=Ke.node,et=Ke.children,Ge=et===void 0?[]:et;!Me.has(Qe)&&!Fe.has(Qe)&&!ve(Re)&&Ge.filter(function(ut){return!ve(ut.node)}).forEach(function(ut){Me.delete(ut.key)})})}Fe=new Set;for(var xe=new Set,Ee=Oe;Ee>=0;Ee-=1){var ke=oe.get(Ee)||new Set;ke.forEach(function(Ke){var Qe=Ke.parent,Re=Ke.node;if(!(ve(Re)||!Ke.parent||xe.has(Ke.parent.key))){if(ve(Ke.parent.node)){xe.add(Qe.key);return}var et=!0,Ge=!1;(Qe.children||[]).filter(function(ut){return!ve(ut.node)}).forEach(function(ut){var at=ut.key,ft=Me.has(at);et&&!ft&&(et=!1),!Ge&&(ft||Fe.has(at))&&(Ge=!0)}),et||Me.delete(Qe.key),Ge&&Fe.add(Qe.key),xe.add(Qe.key)}})}return{checkedKeys:Array.from(Me),halfCheckedKeys:Array.from(Le(Fe,Me))}}function Ue(fe,Ce,oe,Oe){var ve=[],Me;Oe?Me=Oe:Me=Je;var Fe=new Set(fe.filter(function(Ee){var ke=!!(0,ct.Z)(oe,Ee);return ke||ve.push(Ee),ke})),Te=new Map,ye=0;Object.keys(oe).forEach(function(Ee){var ke=oe[Ee],Ke=ke.level,Qe=Te.get(Ke);Qe||(Qe=new Set,Te.set(Ke,Qe)),Qe.add(ke),ye=Math.max(ye,Ke)}),(0,x.ZP)(!ve.length,"Tree missing follow keys: ".concat(ve.slice(0,100).map(function(Ee){return"'".concat(Ee,"'")}).join(", ")));var xe;return Ce===!0?xe=ze(Fe,Te,ye,Me):xe=Se(Fe,Ce.halfCheckedKeys,Te,ye,Me),xe}},65065:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return x}});function x(ct,Le){return ct[Le]}},34061:function(Vn,Mt,ae){"use strict";ae.d(Mt,{F:function(){return Ke},H8:function(){return ke},I8:function(){return Ee},km:function(){return ve},oH:function(){return ye},w$:function(){return Me},zn:function(){return Te}});var x=ae(76190),ct=ae(94480),Le=ae(33885),Je=ae(75931),ze=ae(11592),Se=ae(2738),Ue=ae(48736),fe=ae(65065),Ce=["children"];function oe(Qe,Re){return"".concat(Qe,"-").concat(Re)}function Oe(Qe){return Qe&&Qe.type&&Qe.type.isTreeNode}function ve(Qe,Re){return Qe!=null?Qe:Re}function Me(Qe){var Re=Qe||{},et=Re.title,Ge=Re._title,ut=Re.key,at=Re.children,ft=et||"title";return{title:ft,_title:Ge||[ft],key:ut||"key",children:at||"children"}}function Fe(Qe,Re){var et=new Map;function Ge(ut){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ut||[]).forEach(function(ft){var bt=ft[Re.key],He=ft[Re.children];warning(bt!=null,"Tree node must have a certain key: [".concat(at).concat(bt,"]"));var pt=String(bt);warning(!et.has(pt)||bt===null||bt===void 0,"Same 'key' exist in the Tree: ".concat(pt)),et.set(pt,!0),Ge(He,"".concat(at).concat(pt," > "))})}Ge(Qe)}function Te(Qe){function Re(et){var Ge=(0,ze.Z)(et);return Ge.map(function(ut){if(!Oe(ut))return(0,Ue.ZP)(!ut,"Tree/TreeNode can only accept TreeNode as children."),null;var at=ut.key,ft=ut.props,bt=ft.children,He=(0,Je.Z)(ft,Ce),pt=(0,Le.Z)({key:at},He),Ne=Re(bt);return Ne.length&&(pt.children=Ne),pt}).filter(function(ut){return ut})}return Re(Qe)}function ye(Qe,Re,et){var Ge=Me(et),ut=Ge._title,at=Ge.key,ft=Ge.children,bt=new Set(Re===!0?[]:Re),He=[];function pt(Ne){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ne.map(function(Ot,it){for(var ht=oe(je?je.pos:"0",it),Bt=ve(Ot[at],ht),We,_e=0;_e<ut.length;_e+=1){var ot=ut[_e];if(Ot[ot]!==void 0){We=Ot[ot];break}}var Zt=Object.assign((0,Se.Z)(Ot,[].concat((0,ct.Z)(ut),[at,ft])),{title:We,key:Bt,parent:je,pos:ht,children:null,data:Ot,isStart:[].concat((0,ct.Z)(je?je.isStart:[]),[it===0]),isEnd:[].concat((0,ct.Z)(je?je.isEnd:[]),[it===Ne.length-1])});return He.push(Zt),Re===!0||bt.has(Bt)?Zt.children=pt(Ot[ft]||[],Zt):Zt.children=[],Zt})}return pt(Qe),He}function xe(Qe,Re,et){var Ge={};(0,x.Z)(et)==="object"?Ge=et:Ge={externalGetKey:et},Ge=Ge||{};var ut=Ge,at=ut.childrenPropName,ft=ut.externalGetKey,bt=ut.fieldNames,He=Me(bt),pt=He.key,Ne=He.children,je=at||Ne,Ot;ft?typeof ft=="string"?Ot=function(Bt){return Bt[ft]}:typeof ft=="function"&&(Ot=function(Bt){return ft(Bt)}):Ot=function(Bt,We){return ve(Bt[pt],We)};function it(ht,Bt,We,_e){var ot=ht?ht[je]:Qe,Zt=ht?oe(We.pos,Bt):"0",zt=ht?[].concat((0,ct.Z)(_e),[ht]):[];if(ht){var tt=Ot(ht,Zt),Nt={node:ht,index:Bt,pos:Zt,key:tt,parentPos:We.node?We.pos:null,level:We.level+1,nodes:zt};Re(Nt)}ot&&ot.forEach(function(Ut,pn){it(Ut,pn,{node:ht,pos:Zt,level:We?We.level+1:-1},zt)})}it(null)}function Ee(Qe){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},et=Re.initWrapper,Ge=Re.processEntity,ut=Re.onProcessFinished,at=Re.externalGetKey,ft=Re.childrenPropName,bt=Re.fieldNames,He=arguments.length>2?arguments[2]:void 0,pt=at||He,Ne={},je={},Ot={posEntities:Ne,keyEntities:je};return et&&(Ot=et(Ot)||Ot),xe(Qe,function(it){var ht=it.node,Bt=it.index,We=it.pos,_e=it.key,ot=it.parentPos,Zt=it.level,zt=it.nodes,tt={node:ht,nodes:zt,index:Bt,key:_e,pos:We,level:Zt},Nt=ve(_e,We);Ne[We]=tt,je[Nt]=tt,tt.parent=Ne[ot],tt.parent&&(tt.parent.children=tt.parent.children||[],tt.parent.children.push(tt)),Ge&&Ge(tt,Ot)},{externalGetKey:pt,childrenPropName:ft,fieldNames:bt}),ut&&ut(Ot),Ot}function ke(Qe,Re){var et=Re.expandedKeys,Ge=Re.selectedKeys,ut=Re.loadedKeys,at=Re.loadingKeys,ft=Re.checkedKeys,bt=Re.halfCheckedKeys,He=Re.dragOverNodeKey,pt=Re.dropPosition,Ne=Re.keyEntities,je=(0,fe.Z)(Ne,Qe),Ot={eventKey:Qe,expanded:et.indexOf(Qe)!==-1,selected:Ge.indexOf(Qe)!==-1,loaded:ut.indexOf(Qe)!==-1,loading:at.indexOf(Qe)!==-1,checked:ft.indexOf(Qe)!==-1,halfChecked:bt.indexOf(Qe)!==-1,pos:String(je?je.pos:""),dragOver:He===Qe&&pt===0,dragOverGapTop:He===Qe&&pt===-1,dragOverGapBottom:He===Qe&&pt===1};return Ot}function Ke(Qe){var Re=Qe.data,et=Qe.expanded,Ge=Qe.selected,ut=Qe.checked,at=Qe.loaded,ft=Qe.loading,bt=Qe.halfChecked,He=Qe.dragOver,pt=Qe.dragOverGapTop,Ne=Qe.dragOverGapBottom,je=Qe.pos,Ot=Qe.active,it=Qe.eventKey,ht=(0,Le.Z)((0,Le.Z)({},Re),{},{expanded:et,selected:Ge,checked:ut,loaded:at,loading:ft,halfChecked:bt,dragOver:He,dragOverGapTop:pt,dragOverGapBottom:Ne,pos:je,active:Ot,key:it});return"props"in ht||Object.defineProperty(ht,"props",{get:function(){return(0,Ue.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Qe}}),ht}},8224:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return ct}});var x=ae(4676);function ct(Le,Je,ze,Se){var Ue=x.unstable_batchedUpdates?function(Ce){x.unstable_batchedUpdates(ze,Ce)}:ze;return Le!=null&&Le.addEventListener&&Le.addEventListener(Je,Ue,Se),{remove:function(){Le!=null&&Le.removeEventListener&&Le.removeEventListener(Je,Ue,Se)}}}},3465:function(Vn,Mt,ae){"use strict";ae.d(Mt,{G:function(){return Je}});var x=ae(47273),ct=function(Se){if((0,x.Z)()&&window.document.documentElement){var Ue=Array.isArray(Se)?Se:[Se],fe=window.document.documentElement;return Ue.some(function(Ce){return Ce in fe.style})}return!1},Le=function(Se,Ue){if(!ct(Se))return!1;var fe=document.createElement("div"),Ce=fe.style[Se];return fe.style[Se]=Ue,fe.style[Se]!==Ce};function Je(ze,Se){return!Array.isArray(ze)&&Se!==void 0?Le(ze,Se):ct(ze)}},48911:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return an}});var x=ae(54476),ct=ae(76190),Le=ae(33885),Je=ae(20068),ze=ae(42978),Se=ae(75931),Ue=ae(92310),fe=ae.n(Ue),Ce=ae(29301),oe=ae(70425),Oe=ae(34280),ve=ae(59301),Me=ae(4676),Fe=ve.forwardRef(function(de,pe){var ie=de.height,ee=de.offsetY,se=de.offsetX,le=de.children,Be=de.prefixCls,$e=de.onInnerResize,st=de.innerProps,gt=de.rtl,mt=de.extra,Et={},Lt={display:"flex",flexDirection:"column"};return ee!==void 0&&(Et={height:ie,position:"relative",overflow:"hidden"},Lt=(0,Le.Z)((0,Le.Z)({},Lt),{},(0,Je.Z)((0,Je.Z)((0,Je.Z)((0,Je.Z)((0,Je.Z)({transform:"translateY(".concat(ee,"px)")},gt?"marginRight":"marginLeft",-se),"position","absolute"),"left",0),"right",0),"top",0))),ve.createElement("div",{style:Et},ve.createElement(Ce.Z,{onResize:function(Ct){var lt=Ct.offsetHeight;lt&&$e&&$e()}},ve.createElement("div",(0,x.Z)({style:Lt,className:fe()((0,Je.Z)({},"".concat(Be,"-holder-inner"),Be)),ref:pe},st),le,mt)))});Fe.displayName="Filler";var Te=Fe;function ye(de){var pe=de.children,ie=de.setRef,ee=ve.useCallback(function(se){ie(se)},[]);return ve.cloneElement(pe,{ref:ee})}function xe(de,pe,ie,ee,se,le,Be,$e){var st=$e.getKey;return de.slice(pe,ie+1).map(function(gt,mt){var Et=pe+mt,Lt=Be(gt,Et,{style:{width:ee},offsetX:se}),jt=st(gt);return ve.createElement(ye,{key:jt,setRef:function(lt){return le(gt,lt)}},Lt)})}function Ee(de,pe,ie,ee){var se=ie-de,le=pe-ie,Be=Math.min(se,le)*2;if(ee<=Be){var $e=Math.floor(ee/2);return ee%2?ie+$e+1:ie-$e}return se>le?ie-(ee-le):ie+(ee-se)}function ke(de,pe,ie){var ee=de.length,se=pe.length,le,Be;if(ee===0&&se===0)return null;ee<se?(le=de,Be=pe):(le=pe,Be=de);var $e={__EMPTY_ITEM__:!0};function st(Ct){return Ct!==void 0?ie(Ct):$e}for(var gt=null,mt=Math.abs(ee-se)!==1,Et=0;Et<Be.length;Et+=1){var Lt=st(le[Et]),jt=st(Be[Et]);if(Lt!==jt){gt=Et,mt=mt||Lt!==st(Be[Et+1]);break}}return gt===null?null:{index:gt,multiple:mt}}function Ke(de,pe,ie){var ee=ve.useState(de),se=(0,ze.Z)(ee,2),le=se[0],Be=se[1],$e=ve.useState(null),st=(0,ze.Z)($e,2),gt=st[0],mt=st[1];return ve.useEffect(function(){var Et=ke(le||[],de||[],pe);(Et==null?void 0:Et.index)!==void 0&&(ie==null||ie(Et.index),mt(de[Et.index])),Be(de)},[de]),[gt]}var Qe=ae(16089),Re=(typeof navigator=="undefined"?"undefined":(0,ct.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),et=Re,Ge=function(de,pe,ie,ee){var se=(0,ve.useRef)(!1),le=(0,ve.useRef)(null);function Be(){clearTimeout(le.current),se.current=!0,le.current=setTimeout(function(){se.current=!1},50)}var $e=(0,ve.useRef)({top:de,bottom:pe,left:ie,right:ee});return $e.current.top=de,$e.current.bottom=pe,$e.current.left=ie,$e.current.right=ee,function(st,gt){var mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Et=st?gt<0&&$e.current.left||gt>0&&$e.current.right:gt<0&&$e.current.top||gt>0&&$e.current.bottom;return mt&&Et?(clearTimeout(le.current),se.current=!1):(!Et||se.current)&&Be(),!se.current&&Et}};function ut(de,pe,ie,ee,se,le,Be){var $e=(0,ve.useRef)(0),st=(0,ve.useRef)(null),gt=(0,ve.useRef)(null),mt=(0,ve.useRef)(!1),Et=Ge(pe,ie,ee,se);function Lt(wn,ln){if(Qe.Z.cancel(st.current),!Et(!1,ln)){var tn=wn;if(!tn._virtualHandled)tn._virtualHandled=!0;else return;$e.current+=ln,gt.current=ln,et||tn.preventDefault(),st.current=(0,Qe.Z)(function(){var Qn=mt.current?10:1;Be($e.current*Qn,!1),$e.current=0})}}function jt(wn,ln){Be(ln,!0),et||wn.preventDefault()}var Ct=(0,ve.useRef)(null),lt=(0,ve.useRef)(null);function $t(wn){if(de){Qe.Z.cancel(lt.current),lt.current=(0,Qe.Z)(function(){Ct.current=null},2);var ln=wn.deltaX,tn=wn.deltaY,Qn=wn.shiftKey,En=ln,Rt=tn;(Ct.current==="sx"||!Ct.current&&Qn&&tn&&!ln)&&(En=tn,Rt=0,Ct.current="sx");var un=Math.abs(En),Dn=Math.abs(Rt);Ct.current===null&&(Ct.current=le&&un>Dn?"x":"y"),Ct.current==="y"?Lt(wn,Rt):jt(wn,En)}}function Wt(wn){de&&(mt.current=wn.detail===gt.current)}return[$t,Wt]}function at(de,pe,ie,ee){var se=ve.useMemo(function(){return[new Map,[]]},[de,ie.id,ee]),le=(0,ze.Z)(se,2),Be=le[0],$e=le[1],st=function(mt){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mt,Lt=Be.get(mt),jt=Be.get(Et);if(Lt===void 0||jt===void 0)for(var Ct=de.length,lt=$e.length;lt<Ct;lt+=1){var $t,Wt=de[lt],wn=pe(Wt);Be.set(wn,lt);var ln=($t=ie.get(wn))!==null&&$t!==void 0?$t:ee;if($e[lt]=($e[lt-1]||0)+ln,wn===mt&&(Lt=lt),wn===Et&&(jt=lt),Lt!==void 0&&jt!==void 0)break}return{top:$e[Lt-1]||0,bottom:$e[jt]}};return st}var ft=ae(67732),bt=ae(83652),He=function(){function de(){(0,ft.Z)(this,de),(0,Je.Z)(this,"maps",void 0),(0,Je.Z)(this,"id",0),(0,Je.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,bt.Z)(de,[{key:"set",value:function(ie,ee){this.diffRecords.set(ie,this.maps[ie]),this.maps[ie]=ee,this.id+=1}},{key:"get",value:function(ie){return this.maps[ie]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),de}(),pt=He;function Ne(de){var pe=parseFloat(de);return isNaN(pe)?0:pe}function je(de,pe,ie){var ee=ve.useState(0),se=(0,ze.Z)(ee,2),le=se[0],Be=se[1],$e=(0,ve.useRef)(new Map),st=(0,ve.useRef)(new pt),gt=(0,ve.useRef)(0);function mt(){gt.current+=1}function Et(){var jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;mt();var Ct=function(){var Wt=!1;$e.current.forEach(function(wn,ln){if(wn&&wn.offsetParent){var tn=wn.offsetHeight,Qn=getComputedStyle(wn),En=Qn.marginTop,Rt=Qn.marginBottom,un=Ne(En),Dn=Ne(Rt),Wn=tn+un+Dn;st.current.get(ln)!==Wn&&(st.current.set(ln,Wn),Wt=!0)}}),Wt&&Be(function(wn){return wn+1})};if(jt)Ct();else{gt.current+=1;var lt=gt.current;Promise.resolve().then(function(){lt===gt.current&&Ct()})}}function Lt(jt,Ct){var lt=de(jt),$t=$e.current.get(lt);Ct?($e.current.set(lt,Ct),Et()):$e.current.delete(lt),!$t!=!Ct&&(Ct?pe==null||pe(jt):ie==null||ie(jt))}return(0,ve.useEffect)(function(){return mt},[]),[Lt,Et,st.current,le]}var Ot=14/15;function it(de,pe,ie){var ee=(0,ve.useRef)(!1),se=(0,ve.useRef)(0),le=(0,ve.useRef)(0),Be=(0,ve.useRef)(null),$e=(0,ve.useRef)(null),st,gt=function(jt){if(ee.current){var Ct=Math.ceil(jt.touches[0].pageX),lt=Math.ceil(jt.touches[0].pageY),$t=se.current-Ct,Wt=le.current-lt,wn=Math.abs($t)>Math.abs(Wt);wn?se.current=Ct:le.current=lt;var ln=ie(wn,wn?$t:Wt,!1,jt);ln&&jt.preventDefault(),clearInterval($e.current),ln&&($e.current=setInterval(function(){wn?$t*=Ot:Wt*=Ot;var tn=Math.floor(wn?$t:Wt);(!ie(wn,tn,!0)||Math.abs(tn)<=.1)&&clearInterval($e.current)},16))}},mt=function(){ee.current=!1,st()},Et=function(jt){st(),jt.touches.length===1&&!ee.current&&(ee.current=!0,se.current=Math.ceil(jt.touches[0].pageX),le.current=Math.ceil(jt.touches[0].pageY),Be.current=jt.target,Be.current.addEventListener("touchmove",gt,{passive:!1}),Be.current.addEventListener("touchend",mt,{passive:!0}))};st=function(){Be.current&&(Be.current.removeEventListener("touchmove",gt),Be.current.removeEventListener("touchend",mt))},(0,Oe.Z)(function(){return de&&pe.current.addEventListener("touchstart",Et,{passive:!0}),function(){var Lt;(Lt=pe.current)===null||Lt===void 0||Lt.removeEventListener("touchstart",Et),st(),clearInterval($e.current)}},[de])}function ht(de){return Math.floor(Math.pow(de,.5))}function Bt(de,pe){var ie="touches"in de?de.touches[0]:de;return ie[pe?"pageX":"pageY"]-window[pe?"scrollX":"scrollY"]}function We(de,pe,ie){ve.useEffect(function(){var ee=pe.current;if(de&&ee){var se=!1,le,Be,$e=function(){Qe.Z.cancel(le)},st=function Lt(){$e(),le=(0,Qe.Z)(function(){ie(Be),Lt()})},gt=function(){se=!1,$e()},mt=function(jt){if(!(jt.target.draggable||jt.button!==0)){var Ct=jt;Ct._virtualHandled||(Ct._virtualHandled=!0,se=!0)}},Et=function(jt){if(se){var Ct=Bt(jt,!1),lt=ee.getBoundingClientRect(),$t=lt.top,Wt=lt.bottom;if(Ct<=$t){var wn=$t-Ct;Be=-ht(wn),st()}else if(Ct>=Wt){var ln=Ct-Wt;Be=ht(ln),st()}else $e()}};return ee.addEventListener("mousedown",mt),ee.ownerDocument.addEventListener("mouseup",gt),ee.ownerDocument.addEventListener("mousemove",Et),ee.ownerDocument.addEventListener("dragend",gt),function(){ee.removeEventListener("mousedown",mt),ee.ownerDocument.removeEventListener("mouseup",gt),ee.ownerDocument.removeEventListener("mousemove",Et),ee.ownerDocument.removeEventListener("dragend",gt),$e()}}},[de])}var _e=10;function ot(de,pe,ie,ee,se,le,Be,$e){var st=ve.useRef(),gt=ve.useState(null),mt=(0,ze.Z)(gt,2),Et=mt[0],Lt=mt[1];return(0,Oe.Z)(function(){if(Et&&Et.times<_e){if(!de.current){Lt(function(Sr){return(0,Le.Z)({},Sr)});return}le();var jt=Et.targetAlign,Ct=Et.originAlign,lt=Et.index,$t=Et.offset,Wt=de.current.clientHeight,wn=!1,ln=jt,tn=null;if(Wt){for(var Qn=jt||Ct,En=0,Rt=0,un=0,Dn=Math.min(pe.length-1,lt),Wn=0;Wn<=Dn;Wn+=1){var It=se(pe[Wn]);Rt=En;var Gt=ie.get(It);un=Rt+(Gt===void 0?ee:Gt),En=un}for(var sn=Qn==="top"?$t:Wt-$t,yn=Dn;yn>=0;yn-=1){var Yn=se(pe[yn]),Br=ie.get(Yn);if(Br===void 0){wn=!0;break}if(sn-=Br,sn<=0)break}switch(Qn){case"top":tn=Rt-$t;break;case"bottom":tn=un-Wt+$t;break;default:{var ti=de.current.scrollTop,Ur=ti+Wt;Rt<ti?ln="top":un>Ur&&(ln="bottom")}}tn!==null&&Be(tn),tn!==Et.lastTop&&(wn=!0)}wn&&Lt((0,Le.Z)((0,Le.Z)({},Et),{},{times:Et.times+1,targetAlign:ln,lastTop:tn}))}},[Et,de.current]),function(jt){if(jt==null){$e();return}if(Qe.Z.cancel(st.current),typeof jt=="number")Be(jt);else if(jt&&(0,ct.Z)(jt)==="object"){var Ct,lt=jt.align;"index"in jt?Ct=jt.index:Ct=pe.findIndex(function(wn){return se(wn)===jt.key});var $t=jt.offset,Wt=$t===void 0?0:$t;Lt({times:0,index:Ct,offset:Wt,originAlign:lt})}}}var Zt=ve.forwardRef(function(de,pe){var ie=de.prefixCls,ee=de.rtl,se=de.scrollOffset,le=de.scrollRange,Be=de.onStartMove,$e=de.onStopMove,st=de.onScroll,gt=de.horizontal,mt=de.spinSize,Et=de.containerSize,Lt=de.style,jt=de.thumbStyle,Ct=de.showScrollBar,lt=ve.useState(!1),$t=(0,ze.Z)(lt,2),Wt=$t[0],wn=$t[1],ln=ve.useState(null),tn=(0,ze.Z)(ln,2),Qn=tn[0],En=tn[1],Rt=ve.useState(null),un=(0,ze.Z)(Rt,2),Dn=un[0],Wn=un[1],It=!ee,Gt=ve.useRef(),sn=ve.useRef(),yn=ve.useState(Ct),Yn=(0,ze.Z)(yn,2),Br=Yn[0],ti=Yn[1],Ur=ve.useRef(),Sr=function(){Ct===!0||Ct===!1||(clearTimeout(Ur.current),ti(!0),Ur.current=setTimeout(function(){ti(!1)},3e3))},Jn=le-Et||0,gr=Et-mt||0,kr=ve.useMemo(function(){if(se===0||Jn===0)return 0;var ai=se/Jn;return ai*gr},[se,Jn,gr]),Vr=function(oi){oi.stopPropagation(),oi.preventDefault()},pi=ve.useRef({top:kr,dragging:Wt,pageY:Qn,startTop:Dn});pi.current={top:kr,dragging:Wt,pageY:Qn,startTop:Dn};var Lr=function(oi){wn(!0),En(Bt(oi,gt)),Wn(pi.current.top),Be(),oi.stopPropagation(),oi.preventDefault()};ve.useEffect(function(){var ai=function(ki){ki.preventDefault()},oi=Gt.current,li=sn.current;return oi.addEventListener("touchstart",ai,{passive:!1}),li.addEventListener("touchstart",Lr,{passive:!1}),function(){oi.removeEventListener("touchstart",ai),li.removeEventListener("touchstart",Lr)}},[]);var tr=ve.useRef();tr.current=Jn;var Xn=ve.useRef();Xn.current=gr,ve.useEffect(function(){if(Wt){var ai,oi=function(ki){var or=pi.current,Hr=or.dragging,Bi=or.pageY,Yt=or.startTop;Qe.Z.cancel(ai);var rn=Gt.current.getBoundingClientRect(),fn=Et/(gt?rn.width:rn.height);if(Hr){var Pt=(Bt(ki,gt)-Bi)*fn,en=Yt;!It&&gt?en-=Pt:en+=Pt;var Kt=tr.current,gn=Xn.current,On=gn?en/gn:0,Nr=Math.ceil(On*Kt);Nr=Math.max(Nr,0),Nr=Math.min(Nr,Kt),ai=(0,Qe.Z)(function(){st(Nr,gt)})}},li=function(){wn(!1),$e()};return window.addEventListener("mousemove",oi,{passive:!0}),window.addEventListener("touchmove",oi,{passive:!0}),window.addEventListener("mouseup",li,{passive:!0}),window.addEventListener("touchend",li,{passive:!0}),function(){window.removeEventListener("mousemove",oi),window.removeEventListener("touchmove",oi),window.removeEventListener("mouseup",li),window.removeEventListener("touchend",li),Qe.Z.cancel(ai)}}},[Wt]),ve.useEffect(function(){return Sr(),function(){clearTimeout(Ur.current)}},[se]),ve.useImperativeHandle(pe,function(){return{delayHidden:Sr}});var mr="".concat(ie,"-scrollbar"),Qr={position:"absolute",visibility:Br?null:"hidden"},ii={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return gt?(Object.assign(Qr,{height:8,left:0,right:0,bottom:0}),Object.assign(ii,(0,Je.Z)({height:"100%",width:mt},It?"left":"right",kr))):(Object.assign(Qr,(0,Je.Z)({width:8,top:0,bottom:0},It?"right":"left",0)),Object.assign(ii,{width:"100%",height:mt,top:kr})),ve.createElement("div",{ref:Gt,className:fe()(mr,(0,Je.Z)((0,Je.Z)((0,Je.Z)({},"".concat(mr,"-horizontal"),gt),"".concat(mr,"-vertical"),!gt),"".concat(mr,"-visible"),Br)),style:(0,Le.Z)((0,Le.Z)({},Qr),Lt),onMouseDown:Vr,onMouseMove:Sr},ve.createElement("div",{ref:sn,className:fe()("".concat(mr,"-thumb"),(0,Je.Z)({},"".concat(mr,"-thumb-moving"),Wt)),style:(0,Le.Z)((0,Le.Z)({},ii),jt),onMouseDown:Lr}))}),zt=Zt,tt=20;function Nt(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ie=de/pe*de;return isNaN(ie)&&(ie=0),ie=Math.max(ie,tt),Math.floor(ie)}var Ut=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],pn=[],kt={overflowY:"auto",overflowAnchor:"none"};function mn(de,pe){var ie=de.prefixCls,ee=ie===void 0?"rc-virtual-list":ie,se=de.className,le=de.height,Be=de.itemHeight,$e=de.fullHeight,st=$e===void 0?!0:$e,gt=de.style,mt=de.data,Et=de.children,Lt=de.itemKey,jt=de.virtual,Ct=de.direction,lt=de.scrollWidth,$t=de.component,Wt=$t===void 0?"div":$t,wn=de.onScroll,ln=de.onVirtualScroll,tn=de.onVisibleChange,Qn=de.innerProps,En=de.extraRender,Rt=de.styles,un=de.showScrollBar,Dn=un===void 0?"optional":un,Wn=(0,Se.Z)(de,Ut),It=ve.useCallback(function(Mr){return typeof Lt=="function"?Lt(Mr):Mr==null?void 0:Mr[Lt]},[Lt]),Gt=je(It,null,null),sn=(0,ze.Z)(Gt,4),yn=sn[0],Yn=sn[1],Br=sn[2],ti=sn[3],Ur=!!(jt!==!1&&le&&Be),Sr=ve.useMemo(function(){return Object.values(Br.maps).reduce(function(Mr,Jr){return Mr+Jr},0)},[Br.id,Br.maps]),Jn=Ur&&mt&&(Math.max(Be*mt.length,Sr)>le||!!lt),gr=Ct==="rtl",kr=fe()(ee,(0,Je.Z)({},"".concat(ee,"-rtl"),gr),se),Vr=mt||pn,pi=(0,ve.useRef)(),Lr=(0,ve.useRef)(),tr=(0,ve.useRef)(),Xn=(0,ve.useState)(0),mr=(0,ze.Z)(Xn,2),Qr=mr[0],ii=mr[1],ai=(0,ve.useState)(0),oi=(0,ze.Z)(ai,2),li=oi[0],ji=oi[1],ki=(0,ve.useState)(!1),or=(0,ze.Z)(ki,2),Hr=or[0],Bi=or[1],Yt=function(){Bi(!0)},rn=function(){Bi(!1)},fn={getKey:It};function Pt(Mr){ii(function(Jr){var ri;typeof Mr=="function"?ri=Mr(Jr):ri=Mr;var Wr=Ni(ri);return pi.current.scrollTop=Wr,Wr})}var en=(0,ve.useRef)({start:0,end:Vr.length}),Kt=(0,ve.useRef)(),gn=Ke(Vr,It),On=(0,ze.Z)(gn,1),Nr=On[0];Kt.current=Nr;var Yr=ve.useMemo(function(){if(!Ur)return{scrollHeight:void 0,start:0,end:Vr.length-1,offset:void 0};if(!Jn){var Mr;return{scrollHeight:((Mr=Lr.current)===null||Mr===void 0?void 0:Mr.offsetHeight)||0,start:0,end:Vr.length-1,offset:void 0}}for(var Jr=0,ri,Wr,Qi,no=Vr.length,Kr=0;Kr<no;Kr+=1){var ui=Vr[Kr],vr=It(ui),qr=Br.get(vr),Ao=Jr+(qr===void 0?Be:qr);Ao>=Qr&&ri===void 0&&(ri=Kr,Wr=Jr),Ao>Qr+le&&Qi===void 0&&(Qi=Kr),Jr=Ao}return ri===void 0&&(ri=0,Wr=0,Qi=Math.ceil(le/Be)),Qi===void 0&&(Qi=Vr.length-1),Qi=Math.min(Qi+1,Vr.length-1),{scrollHeight:Jr,start:ri,end:Qi,offset:Wr}},[Jn,Ur,Qr,Vr,ti,le]),hi=Yr.scrollHeight,rr=Yr.start,ur=Yr.end,sr=Yr.offset;en.current.start=rr,en.current.end=ur,ve.useLayoutEffect(function(){var Mr=Br.getRecord();if(Mr.size===1){var Jr=Array.from(Mr.keys())[0],ri=Mr.get(Jr),Wr=Vr[rr];if(Wr&&ri===void 0){var Qi=It(Wr);if(Qi===Jr){var no=Br.get(Jr),Kr=no-Be;Pt(function(ui){return ui+Kr})}}}Br.resetRecord()},[hi]);var ni=ve.useState({width:0,height:le}),er=(0,ze.Z)(ni,2),Rn=er[0],Ar=er[1],Ei=function(Jr){Ar({width:Jr.offsetWidth,height:Jr.offsetHeight})},Kn=(0,ve.useRef)(),vn=(0,ve.useRef)(),$n=ve.useMemo(function(){return Nt(Rn.width,lt)},[Rn.width,lt]),nr=ve.useMemo(function(){return Nt(Rn.height,hi)},[Rn.height,hi]),fr=hi-le,zr=(0,ve.useRef)(fr);zr.current=fr;function Ni(Mr){var Jr=Mr;return Number.isNaN(zr.current)||(Jr=Math.min(Jr,zr.current)),Jr=Math.max(Jr,0),Jr}var gi=Qr<=0,Di=Qr>=fr,mi=li<=0,Si=li>=lt,wi=Ge(gi,Di,mi,Si),Ci=function(){return{x:gr?-li:li,y:Qr}},yi=(0,ve.useRef)(Ci()),Mi=(0,oe.zX)(function(Mr){if(ln){var Jr=(0,Le.Z)((0,Le.Z)({},Ci()),Mr);(yi.current.x!==Jr.x||yi.current.y!==Jr.y)&&(ln(Jr),yi.current=Jr)}});function eo(Mr,Jr){var ri=Mr;Jr?((0,Me.flushSync)(function(){ji(ri)}),Mi()):Pt(ri)}function mo(Mr){var Jr=Mr.currentTarget.scrollTop;Jr!==Qr&&Pt(Jr),wn==null||wn(Mr),Mi()}var Yi=function(Jr){var ri=Jr,Wr=lt?lt-Rn.width:0;return ri=Math.max(ri,0),ri=Math.min(ri,Wr),ri},Io=(0,oe.zX)(function(Mr,Jr){Jr?((0,Me.flushSync)(function(){ji(function(ri){var Wr=ri+(gr?-Mr:Mr);return Yi(Wr)})}),Mi()):Pt(function(ri){var Wr=ri+Mr;return Wr})}),Ri=ut(Ur,gi,Di,mi,Si,!!lt,Io),ko=(0,ze.Z)(Ri,2),uo=ko[0],Vo=ko[1];it(Ur,pi,function(Mr,Jr,ri,Wr){var Qi=Wr;return wi(Mr,Jr,ri)?!1:!Qi||!Qi._virtualHandled?(Qi&&(Qi._virtualHandled=!0),uo({preventDefault:function(){},deltaX:Mr?Jr:0,deltaY:Mr?0:Jr}),!0):!1}),We(Jn,pi,function(Mr){Pt(function(Jr){return Jr+Mr})}),(0,Oe.Z)(function(){function Mr(ri){var Wr=gi&&ri.detail<0,Qi=Di&&ri.detail>0;Ur&&!Wr&&!Qi&&ri.preventDefault()}var Jr=pi.current;return Jr.addEventListener("wheel",uo,{passive:!1}),Jr.addEventListener("DOMMouseScroll",Vo,{passive:!0}),Jr.addEventListener("MozMousePixelScroll",Mr,{passive:!1}),function(){Jr.removeEventListener("wheel",uo),Jr.removeEventListener("DOMMouseScroll",Vo),Jr.removeEventListener("MozMousePixelScroll",Mr)}},[Ur,gi,Di]),(0,Oe.Z)(function(){if(lt){var Mr=Yi(li);ji(Mr),Mi({x:Mr})}},[Rn.width,lt]);var wo=function(){var Jr,ri;(Jr=Kn.current)===null||Jr===void 0||Jr.delayHidden(),(ri=vn.current)===null||ri===void 0||ri.delayHidden()},to=ot(pi,Vr,Br,Be,It,function(){return Yn(!0)},Pt,wo);ve.useImperativeHandle(pe,function(){return{nativeElement:tr.current,getScrollInfo:Ci,scrollTo:function(Jr){function ri(Wr){return Wr&&(0,ct.Z)(Wr)==="object"&&("left"in Wr||"top"in Wr)}ri(Jr)?(Jr.left!==void 0&&ji(Yi(Jr.left)),to(Jr.top)):to(Jr)}}}),(0,Oe.Z)(function(){if(tn){var Mr=Vr.slice(rr,ur+1);tn(Mr,Vr)}},[rr,ur,Vr]);var bo=at(Vr,It,Br,Be),Go=En==null?void 0:En({start:rr,end:ur,virtual:Jn,offsetX:li,offsetY:sr,rtl:gr,getSize:bo}),Tn=xe(Vr,rr,ur,lt,li,yn,Et,fn),Lo=null;le&&(Lo=(0,Le.Z)((0,Je.Z)({},st?"height":"maxHeight",le),kt),Ur&&(Lo.overflowY="hidden",lt&&(Lo.overflowX="hidden"),Hr&&(Lo.pointerEvents="none")));var Vi={};return gr&&(Vi.dir="rtl"),ve.createElement("div",(0,x.Z)({ref:tr,style:(0,Le.Z)((0,Le.Z)({},gt),{},{position:"relative"}),className:kr},Vi,Wn),ve.createElement(Ce.Z,{onResize:Ei},ve.createElement(Wt,{className:"".concat(ee,"-holder"),style:Lo,ref:pi,onScroll:mo,onMouseEnter:wo},ve.createElement(Te,{prefixCls:ee,height:hi,offsetX:li,offsetY:sr,scrollWidth:lt,onInnerResize:Yn,ref:Lr,innerProps:Qn,rtl:gr,extra:Go},Tn))),Jn&&hi>le&&ve.createElement(zt,{ref:Kn,prefixCls:ee,scrollOffset:Qr,scrollRange:hi,rtl:gr,onScroll:eo,onStartMove:Yt,onStopMove:rn,spinSize:nr,containerSize:Rn.height,style:Rt==null?void 0:Rt.verticalScrollBar,thumbStyle:Rt==null?void 0:Rt.verticalScrollBarThumb,showScrollBar:Dn}),Jn&&lt>Rn.width&&ve.createElement(zt,{ref:vn,prefixCls:ee,scrollOffset:li,scrollRange:lt,rtl:gr,onScroll:eo,onStartMove:Yt,onStopMove:rn,spinSize:$n,containerSize:Rn.width,horizontal:!0,style:Rt==null?void 0:Rt.horizontalScrollBar,thumbStyle:Rt==null?void 0:Rt.horizontalScrollBarThumb,showScrollBar:Dn}))}var _t=ve.forwardRef(mn);_t.displayName="List";var Cn=_t,an=Cn},51353:function(Vn,Mt,ae){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Object.defineProperty(Mt,"DraggableCore",{enumerable:!0,get:function(){return fe.default}}),Mt.default=void 0;var x=Oe(ae(59301)),ct=oe(ae(12708)),Le=oe(ae(4676)),Je=ae(14625),ze=ae(77026),Se=ae(22013),Ue=ae(80217),fe=oe(ae(68555)),Ce=oe(ae(97510));function oe(xe){return xe&&xe.__esModule?xe:{default:xe}}function Oe(xe,Ee){if(typeof WeakMap=="function")var ke=new WeakMap,Ke=new WeakMap;return(Oe=function(Qe,Re){if(!Re&&Qe&&Qe.__esModule)return Qe;var et,Ge,ut={__proto__:null,default:Qe};if(Qe===null||typeof Qe!="object"&&typeof Qe!="function")return ut;if(et=Re?Ke:ke){if(et.has(Qe))return et.get(Qe);et.set(Qe,ut)}for(const at in Qe)at!=="default"&&{}.hasOwnProperty.call(Qe,at)&&((Ge=(et=Object.defineProperty)&&Object.getOwnPropertyDescriptor(Qe,at))&&(Ge.get||Ge.set)?et(ut,at,Ge):ut[at]=Qe[at]);return ut})(xe,Ee)}function ve(){return ve=Object.assign?Object.assign.bind():function(xe){for(var Ee=1;Ee<arguments.length;Ee++){var ke=arguments[Ee];for(var Ke in ke)({}).hasOwnProperty.call(ke,Ke)&&(xe[Ke]=ke[Ke])}return xe},ve.apply(null,arguments)}function Me(xe,Ee,ke){return(Ee=Fe(Ee))in xe?Object.defineProperty(xe,Ee,{value:ke,enumerable:!0,configurable:!0,writable:!0}):xe[Ee]=ke,xe}function Fe(xe){var Ee=Te(xe,"string");return typeof Ee=="symbol"?Ee:Ee+""}function Te(xe,Ee){if(typeof xe!="object"||!xe)return xe;var ke=xe[Symbol.toPrimitive];if(ke!==void 0){var Ke=ke.call(xe,Ee||"default");if(typeof Ke!="object")return Ke;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ee==="string"?String:Number)(xe)}class ye extends x.Component{static getDerivedStateFromProps(Ee,ke){let{position:Ke}=Ee,{prevPropsPosition:Qe}=ke;return Ke&&(!Qe||Ke.x!==Qe.x||Ke.y!==Qe.y)?((0,Ce.default)("Draggable: getDerivedStateFromProps %j",{position:Ke,prevPropsPosition:Qe}),{x:Ke.x,y:Ke.y,prevPropsPosition:wf({},Ke)}):null}constructor(Ee){super(Ee),Me(this,"onDragStart",(ke,Ke)=>{if((0,Ce.default)("Draggable: onDragStart: %j",Ke),this.props.onStart(ke,(0,Se.createDraggableData)(this,Ke))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),Me(this,"onDrag",(ke,Ke)=>{if(!this.state.dragging)return!1;(0,Ce.default)("Draggable: onDrag: %j",Ke);const Qe=(0,Se.createDraggableData)(this,Ke),Re={x:Qe.x,y:Qe.y,slackX:0,slackY:0};if(this.props.bounds){const{x:Ge,y:ut}=Re;Re.x+=this.state.slackX,Re.y+=this.state.slackY;const[at,ft]=(0,Se.getBoundPosition)(this,Re.x,Re.y);Re.x=at,Re.y=ft,Re.slackX=this.state.slackX+(Ge-Re.x),Re.slackY=this.state.slackY+(ut-Re.y),Qe.x=Re.x,Qe.y=Re.y,Qe.deltaX=Re.x-this.state.x,Qe.deltaY=Re.y-this.state.y}if(this.props.onDrag(ke,Qe)===!1)return!1;this.setState(Re)}),Me(this,"onDragStop",(ke,Ke)=>{if(!this.state.dragging||this.props.onStop(ke,(0,Se.createDraggableData)(this,Ke))===!1)return!1;(0,Ce.default)("Draggable: onDragStop: %j",Ke);const Re={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:Ge,y:ut}=this.props.position;Re.x=Ge,Re.y=ut}this.setState(Re)}),this.state={dragging:!1,dragged:!1,x:Ee.position?Ee.position.x:Ee.defaultPosition.x,y:Ee.position?Ee.position.y:Ee.defaultPosition.y,prevPropsPosition:wf({},Ee.position),slackX:0,slackY:0,isElementSVG:!1},Ee.position&&!(Ee.onDrag||Ee.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var Ee,ke,Ke;return(Ke=(ke=(Ee=this.props)==null?void 0:Ee.nodeRef)==null?void 0:ke.current)!=null?Ke:Le.default.findDOMNode(this)}render(){const Bt=this.props,{axis:Ee,bounds:ke,children:Ke,defaultPosition:Qe,defaultClassName:Re,defaultClassNameDragging:et,defaultClassNameDragged:Ge,position:ut,positionOffset:at,scale:ft}=Bt,bt=Nv(Bt,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let He={},pt=null;const je=!!!ut||this.state.dragging,Ot=ut||Qe,it={x:(0,Se.canDragX)(this)&&je?this.state.x:Ot.x,y:(0,Se.canDragY)(this)&&je?this.state.y:Ot.y};this.state.isElementSVG?pt=(0,ze.createSVGTransform)(it,at):He=(0,ze.createCSSTransform)(it,at);const ht=(0,Je.clsx)(Ke.props.className||"",Re,{[et]:this.state.dragging,[Ge]:this.state.dragged});return x.createElement(fe.default,ve({},bt,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),x.cloneElement(x.Children.only(Ke),{className:ht,style:wf(wf({},Ke.props.style),He),transform:pt}))}}Mt.default=ye,Me(ye,"displayName","Draggable"),Me(ye,"propTypes",F0(wf({},fe.default.propTypes),{axis:ct.default.oneOf(["both","x","y","none"]),bounds:ct.default.oneOfType([ct.default.shape({left:ct.default.number,right:ct.default.number,top:ct.default.number,bottom:ct.default.number}),ct.default.string,ct.default.oneOf([!1])]),defaultClassName:ct.default.string,defaultClassNameDragging:ct.default.string,defaultClassNameDragged:ct.default.string,defaultPosition:ct.default.shape({x:ct.default.number,y:ct.default.number}),positionOffset:ct.default.shape({x:ct.default.oneOfType([ct.default.number,ct.default.string]),y:ct.default.oneOfType([ct.default.number,ct.default.string])}),position:ct.default.shape({x:ct.default.number,y:ct.default.number}),className:Ue.dontSetMe,style:Ue.dontSetMe,transform:Ue.dontSetMe})),Me(ye,"defaultProps",F0(wf({},fe.default.defaultProps),{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},68555:function(Vn,Mt,ae){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.default=void 0;var x=Ce(ae(59301)),ct=fe(ae(12708)),Le=fe(ae(4676)),Je=ae(77026),ze=ae(22013),Se=ae(80217),Ue=fe(ae(97510));function fe(ye){return ye&&ye.__esModule?ye:{default:ye}}function Ce(ye,xe){if(typeof WeakMap=="function")var Ee=new WeakMap,ke=new WeakMap;return(Ce=function(Ke,Qe){if(!Qe&&Ke&&Ke.__esModule)return Ke;var Re,et,Ge={__proto__:null,default:Ke};if(Ke===null||typeof Ke!="object"&&typeof Ke!="function")return Ge;if(Re=Qe?ke:Ee){if(Re.has(Ke))return Re.get(Ke);Re.set(Ke,Ge)}for(const ut in Ke)ut!=="default"&&{}.hasOwnProperty.call(Ke,ut)&&((et=(Re=Object.defineProperty)&&Object.getOwnPropertyDescriptor(Ke,ut))&&(et.get||et.set)?Re(Ge,ut,et):Ge[ut]=Ke[ut]);return Ge})(ye,xe)}function oe(ye,xe,Ee){return(xe=Oe(xe))in ye?Object.defineProperty(ye,xe,{value:Ee,enumerable:!0,configurable:!0,writable:!0}):ye[xe]=Ee,ye}function Oe(ye){var xe=ve(ye,"string");return typeof xe=="symbol"?xe:xe+""}function ve(ye,xe){if(typeof ye!="object"||!ye)return ye;var Ee=ye[Symbol.toPrimitive];if(Ee!==void 0){var ke=Ee.call(ye,xe||"default");if(typeof ke!="object")return ke;throw new TypeError("@@toPrimitive must return a primitive value.")}return(xe==="string"?String:Number)(ye)}const Me={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let Fe=Me.mouse;class Te extends x.Component{constructor(){super(...arguments),oe(this,"dragging",!1),oe(this,"lastX",NaN),oe(this,"lastY",NaN),oe(this,"touchIdentifier",null),oe(this,"mounted",!1),oe(this,"handleDragStart",xe=>{if(this.props.onMouseDown(xe),!this.props.allowAnyClick&&typeof xe.button=="number"&&xe.button!==0)return!1;const Ee=this.findDOMNode();if(!Ee||!Ee.ownerDocument||!Ee.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:ke}=Ee;if(this.props.disabled||!(xe.target instanceof ke.defaultView.Node)||this.props.handle&&!(0,Je.matchesSelectorAndParentsTo)(xe.target,this.props.handle,Ee)||this.props.cancel&&(0,Je.matchesSelectorAndParentsTo)(xe.target,this.props.cancel,Ee))return;xe.type==="touchstart"&&!this.props.allowMobileScroll&&xe.preventDefault();const Ke=(0,Je.getTouchIdentifier)(xe);this.touchIdentifier=Ke;const Qe=(0,ze.getControlPosition)(xe,Ke,this);if(Qe==null)return;const{x:Re,y:et}=Qe,Ge=(0,ze.createCoreData)(this,Re,et);(0,Ue.default)("DraggableCore: handleDragStart: %j",Ge),(0,Ue.default)("calling",this.props.onStart),!(this.props.onStart(xe,Ge)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,Je.addUserSelectStyles)(ke),this.dragging=!0,this.lastX=Re,this.lastY=et,(0,Je.addEvent)(ke,Fe.move,this.handleDrag),(0,Je.addEvent)(ke,Fe.stop,this.handleDragStop))}),oe(this,"handleDrag",xe=>{const Ee=(0,ze.getControlPosition)(xe,this.touchIdentifier,this);if(Ee==null)return;let{x:ke,y:Ke}=Ee;if(Array.isArray(this.props.grid)){let et=ke-this.lastX,Ge=Ke-this.lastY;if([et,Ge]=(0,ze.snapToGrid)(this.props.grid,et,Ge),!et&&!Ge)return;ke=this.lastX+et,Ke=this.lastY+Ge}const Qe=(0,ze.createCoreData)(this,ke,Ke);if((0,Ue.default)("DraggableCore: handleDrag: %j",Qe),this.props.onDrag(xe,Qe)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(et){const Ge=document.createEvent("MouseEvents");Ge.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(Ge)}return}this.lastX=ke,this.lastY=Ke}),oe(this,"handleDragStop",xe=>{if(!this.dragging)return;const Ee=(0,ze.getControlPosition)(xe,this.touchIdentifier,this);if(Ee==null)return;let{x:ke,y:Ke}=Ee;if(Array.isArray(this.props.grid)){let Ge=ke-this.lastX||0,ut=Ke-this.lastY||0;[Ge,ut]=(0,ze.snapToGrid)(this.props.grid,Ge,ut),ke=this.lastX+Ge,Ke=this.lastY+ut}const Qe=(0,ze.createCoreData)(this,ke,Ke);if(this.props.onStop(xe,Qe)===!1||this.mounted===!1)return!1;const et=this.findDOMNode();et&&this.props.enableUserSelectHack&&(0,Je.scheduleRemoveUserSelectStyles)(et.ownerDocument),(0,Ue.default)("DraggableCore: handleDragStop: %j",Qe),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,et&&((0,Ue.default)("DraggableCore: Removing handlers"),(0,Je.removeEvent)(et.ownerDocument,Fe.move,this.handleDrag),(0,Je.removeEvent)(et.ownerDocument,Fe.stop,this.handleDragStop))}),oe(this,"onMouseDown",xe=>(Fe=Me.mouse,this.handleDragStart(xe))),oe(this,"onMouseUp",xe=>(Fe=Me.mouse,this.handleDragStop(xe))),oe(this,"onTouchStart",xe=>(Fe=Me.touch,this.handleDragStart(xe))),oe(this,"onTouchEnd",xe=>(Fe=Me.touch,this.handleDragStop(xe)))}componentDidMount(){this.mounted=!0;const xe=this.findDOMNode();xe&&(0,Je.addEvent)(xe,Me.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const xe=this.findDOMNode();if(xe){const{ownerDocument:Ee}=xe;(0,Je.removeEvent)(Ee,Me.mouse.move,this.handleDrag),(0,Je.removeEvent)(Ee,Me.touch.move,this.handleDrag),(0,Je.removeEvent)(Ee,Me.mouse.stop,this.handleDragStop),(0,Je.removeEvent)(Ee,Me.touch.stop,this.handleDragStop),(0,Je.removeEvent)(xe,Me.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,Je.scheduleRemoveUserSelectStyles)(Ee)}}findDOMNode(){var xe,Ee,ke;return(xe=this.props)!=null&&xe.nodeRef?(ke=(Ee=this.props)==null?void 0:Ee.nodeRef)==null?void 0:ke.current:Le.default.findDOMNode(this)}render(){return x.cloneElement(x.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}Mt.default=Te,oe(Te,"displayName","DraggableCore"),oe(Te,"propTypes",{allowAnyClick:ct.default.bool,allowMobileScroll:ct.default.bool,children:ct.default.node.isRequired,disabled:ct.default.bool,enableUserSelectHack:ct.default.bool,offsetParent:function(ye,xe){if(ye[xe]&&ye[xe].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:ct.default.arrayOf(ct.default.number),handle:ct.default.string,cancel:ct.default.string,nodeRef:ct.default.object,onStart:ct.default.func,onDrag:ct.default.func,onStop:ct.default.func,onMouseDown:ct.default.func,scale:ct.default.number,className:Se.dontSetMe,style:Se.dontSetMe,transform:Se.dontSetMe}),oe(Te,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},96249:function(Vn,Mt,ae){"use strict";const{default:x,DraggableCore:ct}=ae(51353);Vn.exports=x,Vn.exports.default=x,Vn.exports.DraggableCore=ct},77026:function(Vn,Mt,ae){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.addClassName=Re,Mt.addEvent=Ue,Mt.addUserSelectStyles=ke,Mt.createCSSTransform=Fe,Mt.createSVGTransform=Te,Mt.getTouch=xe,Mt.getTouchIdentifier=Ee,Mt.getTranslation=ye,Mt.innerHeight=Oe,Mt.innerWidth=ve,Mt.matchesSelector=ze,Mt.matchesSelectorAndParentsTo=Se,Mt.offsetXYFromParent=Me,Mt.outerHeight=Ce,Mt.outerWidth=oe,Mt.removeClassName=et,Mt.removeEvent=fe,Mt.scheduleRemoveUserSelectStyles=Ke;var x=ae(80217),ct=Le(ae(76172));function Le(Ge,ut){if(typeof WeakMap=="function")var at=new WeakMap,ft=new WeakMap;return(Le=function(bt,He){if(!He&&bt&&bt.__esModule)return bt;var pt,Ne,je={__proto__:null,default:bt};if(bt===null||typeof bt!="object"&&typeof bt!="function")return je;if(pt=He?ft:at){if(pt.has(bt))return pt.get(bt);pt.set(bt,je)}for(const Ot in bt)Ot!=="default"&&{}.hasOwnProperty.call(bt,Ot)&&((Ne=(pt=Object.defineProperty)&&Object.getOwnPropertyDescriptor(bt,Ot))&&(Ne.get||Ne.set)?pt(je,Ot,Ne):je[Ot]=bt[Ot]);return je})(Ge,ut)}let Je="";function ze(Ge,ut){return Je||(Je=(0,x.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(at){return(0,x.isFunction)(Ge[at])})),(0,x.isFunction)(Ge[Je])?Ge[Je](ut):!1}function Se(Ge,ut,at){let ft=Ge;do{if(ze(ft,ut))return!0;if(ft===at)return!1;ft=ft.parentNode}while(ft);return!1}function Ue(Ge,ut,at,ft){if(!Ge)return;const bt=wf({capture:!0},ft);Ge.addEventListener?Ge.addEventListener(ut,at,bt):Ge.attachEvent?Ge.attachEvent("on"+ut,at):Ge["on"+ut]=at}function fe(Ge,ut,at,ft){if(!Ge)return;const bt=wf({capture:!0},ft);Ge.removeEventListener?Ge.removeEventListener(ut,at,bt):Ge.detachEvent?Ge.detachEvent("on"+ut,at):Ge["on"+ut]=null}function Ce(Ge){let ut=Ge.clientHeight;const at=Ge.ownerDocument.defaultView.getComputedStyle(Ge);return ut+=(0,x.int)(at.borderTopWidth),ut+=(0,x.int)(at.borderBottomWidth),ut}function oe(Ge){let ut=Ge.clientWidth;const at=Ge.ownerDocument.defaultView.getComputedStyle(Ge);return ut+=(0,x.int)(at.borderLeftWidth),ut+=(0,x.int)(at.borderRightWidth),ut}function Oe(Ge){let ut=Ge.clientHeight;const at=Ge.ownerDocument.defaultView.getComputedStyle(Ge);return ut-=(0,x.int)(at.paddingTop),ut-=(0,x.int)(at.paddingBottom),ut}function ve(Ge){let ut=Ge.clientWidth;const at=Ge.ownerDocument.defaultView.getComputedStyle(Ge);return ut-=(0,x.int)(at.paddingLeft),ut-=(0,x.int)(at.paddingRight),ut}function Me(Ge,ut,at){const bt=ut===ut.ownerDocument.body?{left:0,top:0}:ut.getBoundingClientRect(),He=(Ge.clientX+ut.scrollLeft-bt.left)/at,pt=(Ge.clientY+ut.scrollTop-bt.top)/at;return{x:He,y:pt}}function Fe(Ge,ut){const at=ye(Ge,ut,"px");return{[(0,ct.browserPrefixToKey)("transform",ct.default)]:at}}function Te(Ge,ut){return ye(Ge,ut,"")}function ye(Ge,ut,at){let{x:ft,y:bt}=Ge,He=`translate(${ft}${at},${bt}${at})`;if(ut){const pt=`${typeof ut.x=="string"?ut.x:ut.x+at}`,Ne=`${typeof ut.y=="string"?ut.y:ut.y+at}`;He=`translate(${pt}, ${Ne})`+He}return He}function xe(Ge,ut){return Ge.targetTouches&&(0,x.findInArray)(Ge.targetTouches,at=>ut===at.identifier)||Ge.changedTouches&&(0,x.findInArray)(Ge.changedTouches,at=>ut===at.identifier)}function Ee(Ge){if(Ge.targetTouches&&Ge.targetTouches[0])return Ge.targetTouches[0].identifier;if(Ge.changedTouches&&Ge.changedTouches[0])return Ge.changedTouches[0].identifier}function ke(Ge){if(!Ge)return;let ut=Ge.getElementById("react-draggable-style-el");ut||(ut=Ge.createElement("style"),ut.type="text/css",ut.id="react-draggable-style-el",ut.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
`,ut.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
`,Ge.getElementsByTagName("head")[0].appendChild(ut)),Ge.body&&Re(Ge.body,"react-draggable-transparent-selection")}function Ke(Ge){window.requestAnimationFrame?window.requestAnimationFrame(()=>{Qe(Ge)}):Qe(Ge)}function Qe(Ge){if(Ge)try{if(Ge.body&&et(Ge.body,"react-draggable-transparent-selection"),Ge.selection)Ge.selection.empty();else{const ut=(Ge.defaultView||window).getSelection();ut&&ut.type!=="Caret"&&ut.removeAllRanges()}}catch(ut){}}function Re(Ge,ut){Ge.classList?Ge.classList.add(ut):Ge.className.match(new RegExp(`(?:^|\\s)${ut}(?!\\S)`))||(Ge.className+=` ${ut}`)}function et(Ge,ut){Ge.classList?Ge.classList.remove(ut):Ge.className=Ge.className.replace(new RegExp(`(?:^|\\s)${ut}(?!\\S)`,"g"),"")}},76172:function(Vn,Mt){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.browserPrefixToKey=ct,Mt.browserPrefixToStyle=Le,Mt.default=void 0,Mt.getPrefix=x;const ae=["Moz","Webkit","O","ms"];function x(){var fe,Ce;let Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const Ue=(Ce=(fe=window.document)==null?void 0:fe.documentElement)==null?void 0:Ce.style;if(!Ue||Se in Ue)return"";for(let oe=0;oe<ae.length;oe++)if(ct(Se,ae[oe])in Ue)return ae[oe];return""}function ct(Se,Ue){return Ue?`${Ue}${Je(Se)}`:Se}function Le(Se,Ue){return Ue?`-${Ue.toLowerCase()}-${Se}`:Se}function Je(Se){let Ue="",fe=!0;for(let Ce=0;Ce<Se.length;Ce++)fe?(Ue+=Se[Ce].toUpperCase(),fe=!1):Se[Ce]==="-"?fe=!0:Ue+=Se[Ce];return Ue}var ze=Mt.default=x()},97510:function(Vn,Mt){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.default=ae;function ae(){}},22013:function(Vn,Mt,ae){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.canDragX=ze,Mt.canDragY=Se,Mt.createCoreData=fe,Mt.createDraggableData=Ce,Mt.getBoundPosition=Le,Mt.getControlPosition=Ue,Mt.snapToGrid=Je;var x=ae(80217),ct=ae(77026);function Le(ve,Me,Fe){if(!ve.props.bounds)return[Me,Fe];let{bounds:Te}=ve.props;Te=typeof Te=="string"?Te:oe(Te);const ye=Oe(ve);if(typeof Te=="string"){const{ownerDocument:xe}=ye,Ee=xe.defaultView;let ke;if(Te==="parent"?ke=ye.parentNode:ke=ye.getRootNode().querySelector(Te),!(ke instanceof Ee.HTMLElement))throw new Error('Bounds selector "'+Te+'" could not find an element.');const Ke=ke,Qe=Ee.getComputedStyle(ye),Re=Ee.getComputedStyle(Ke);Te={left:-ye.offsetLeft+(0,x.int)(Re.paddingLeft)+(0,x.int)(Qe.marginLeft),top:-ye.offsetTop+(0,x.int)(Re.paddingTop)+(0,x.int)(Qe.marginTop),right:(0,ct.innerWidth)(Ke)-(0,ct.outerWidth)(ye)-ye.offsetLeft+(0,x.int)(Re.paddingRight)-(0,x.int)(Qe.marginRight),bottom:(0,ct.innerHeight)(Ke)-(0,ct.outerHeight)(ye)-ye.offsetTop+(0,x.int)(Re.paddingBottom)-(0,x.int)(Qe.marginBottom)}}return(0,x.isNum)(Te.right)&&(Me=Math.min(Me,Te.right)),(0,x.isNum)(Te.bottom)&&(Fe=Math.min(Fe,Te.bottom)),(0,x.isNum)(Te.left)&&(Me=Math.max(Me,Te.left)),(0,x.isNum)(Te.top)&&(Fe=Math.max(Fe,Te.top)),[Me,Fe]}function Je(ve,Me,Fe){const Te=Math.round(Me/ve[0])*ve[0],ye=Math.round(Fe/ve[1])*ve[1];return[Te,ye]}function ze(ve){return ve.props.axis==="both"||ve.props.axis==="x"}function Se(ve){return ve.props.axis==="both"||ve.props.axis==="y"}function Ue(ve,Me,Fe){const Te=typeof Me=="number"?(0,ct.getTouch)(ve,Me):null;if(typeof Me=="number"&&!Te)return null;const ye=Oe(Fe),xe=Fe.props.offsetParent||ye.offsetParent||ye.ownerDocument.body;return(0,ct.offsetXYFromParent)(Te||ve,xe,Fe.props.scale)}function fe(ve,Me,Fe){const Te=!(0,x.isNum)(ve.lastX),ye=Oe(ve);return Te?{node:ye,deltaX:0,deltaY:0,lastX:Me,lastY:Fe,x:Me,y:Fe}:{node:ye,deltaX:Me-ve.lastX,deltaY:Fe-ve.lastY,lastX:ve.lastX,lastY:ve.lastY,x:Me,y:Fe}}function Ce(ve,Me){const Fe=ve.props.scale;return{node:Me.node,x:ve.state.x+Me.deltaX/Fe,y:ve.state.y+Me.deltaY/Fe,deltaX:Me.deltaX/Fe,deltaY:Me.deltaY/Fe,lastX:ve.state.x,lastY:ve.state.y}}function oe(ve){return{left:ve.left,top:ve.top,right:ve.right,bottom:ve.bottom}}function Oe(ve){const Me=ve.findDOMNode();if(!Me)throw new Error("<DraggableCore>: Unmounted during event!");return Me}},80217:function(Vn,Mt){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.dontSetMe=Je,Mt.findInArray=ae,Mt.int=Le,Mt.isFunction=x,Mt.isNum=ct;function ae(ze,Se){for(let Ue=0,fe=ze.length;Ue<fe;Ue++)if(Se.apply(Se,[ze[Ue],Ue,ze]))return ze[Ue]}function x(ze){return typeof ze=="function"||Object.prototype.toString.call(ze)==="[object Function]"}function ct(ze){return typeof ze=="number"&&!isNaN(ze)}function Le(ze){return parseInt(ze,10)}function Je(ze,Se,Ue){if(ze[Se])return new Error(`Invalid prop ${Se} passed to ${Ue} - do not set this, set it on the child.`)}},27774:function(Vn,Mt){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.SizeSensorId=Mt.SensorTabIndex=Mt.SensorClassName=void 0;var ae="size-sensor-id";Mt.SizeSensorId=ae;var x="size-sensor-object";Mt.SensorClassName=x;var ct="-1";Mt.SensorTabIndex=ct},79301:function(Vn,Mt){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.default=void 0;var ae=function(ct){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,Je=null;return function(){for(var ze=this,Se=arguments.length,Ue=new Array(Se),fe=0;fe<Se;fe++)Ue[fe]=arguments[fe];clearTimeout(Je),Je=setTimeout(function(){ct.apply(ze,Ue)},Le)}};Mt.default=ae},79789:function(Vn,Mt){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.default=void 0;var ae=1,x=function(){return"".concat(ae++)};Mt.default=x},47242:function(Vn,Mt,ae){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.ver=Mt.clear=Mt.bind=void 0;var x=ae(95270),ct=function(Se,Ue){var fe=(0,x.getSensor)(Se);return fe.bind(Ue),function(){fe.unbind(Ue)}};Mt.bind=ct;var Le=function(Se){var Ue=(0,x.getSensor)(Se);(0,x.removeSensor)(Ue)};Mt.clear=Le;var Je="1.0.2";Mt.ver=Je},95270:function(Vn,Mt,ae){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.removeSensor=Mt.getSensor=Mt.Sensors=void 0;var x=Je(ae(79789)),ct=ae(57829),Le=ae(27774);function Je(Ce){return Ce&&Ce.__esModule?Ce:{default:Ce}}var ze={};Mt.Sensors=ze;function Se(Ce){Ce&&ze[Ce]&&delete ze[Ce]}var Ue=function(oe){var Oe=oe.getAttribute(Le.SizeSensorId);if(Oe&&ze[Oe])return ze[Oe];var ve=(0,x.default)();oe.setAttribute(Le.SizeSensorId,ve);var Me=(0,ct.createSensor)(oe,function(){return Se(ve)});return ze[ve]=Me,Me};Mt.getSensor=Ue;var fe=function(oe){var Oe=oe.element.getAttribute(Le.SizeSensorId);oe.destroy(),Se(Oe)};Mt.removeSensor=fe},57829:function(Vn,Mt,ae){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.createSensor=void 0;var x=ae(20953),ct=ae(55202),Le=typeof ResizeObserver!="undefined"?ct.createSensor:x.createSensor;Mt.createSensor=Le},20953:function(Vn,Mt,ae){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.createSensor=void 0;var x=Le(ae(79301)),ct=ae(27774);function Le(ze){return ze&&ze.__esModule?ze:{default:ze}}var Je=function(Se,Ue){var fe=void 0,Ce=[],oe=function(){getComputedStyle(Se).position==="static"&&(Se.style.position="relative");var ye=document.createElement("object");return ye.onload=function(){ye.contentDocument.defaultView.addEventListener("resize",Oe),Oe()},ye.style.display="block",ye.style.position="absolute",ye.style.top="0",ye.style.left="0",ye.style.height="100%",ye.style.width="100%",ye.style.overflow="hidden",ye.style.pointerEvents="none",ye.style.zIndex="-1",ye.style.opacity="0",ye.setAttribute("class",ct.SensorClassName),ye.setAttribute("tabindex",ct.SensorTabIndex),ye.type="text/html",Se.appendChild(ye),ye.data="about:blank",ye},Oe=(0,x.default)(function(){Ce.forEach(function(Te){Te(Se)})}),ve=function(ye){fe||(fe=oe()),Ce.indexOf(ye)===-1&&Ce.push(ye)},Me=function(){fe&&fe.parentNode&&(fe.contentDocument&&fe.contentDocument.defaultView.removeEventListener("resize",Oe),fe.parentNode.removeChild(fe),Se.removeAttribute(ct.SizeSensorId),fe=void 0,Ce=[],Ue&&Ue())},Fe=function(ye){var xe=Ce.indexOf(ye);xe!==-1&&Ce.splice(xe,1),Ce.length===0&&fe&&Me()};return{element:Se,bind:ve,destroy:Me,unbind:Fe}};Mt.createSensor=Je},55202:function(Vn,Mt,ae){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.createSensor=void 0;var x=ae(27774),ct=Le(ae(79301));function Le(ze){return ze&&ze.__esModule?ze:{default:ze}}var Je=function(Se,Ue){var fe=void 0,Ce=[],oe=(0,ct.default)(function(){Ce.forEach(function(Te){Te(Se)})}),Oe=function(){var ye=new ResizeObserver(oe);return ye.observe(Se),oe(),ye},ve=function(ye){fe||(fe=Oe()),Ce.indexOf(ye)===-1&&Ce.push(ye)},Me=function(){fe.disconnect(),Ce=[],fe=void 0,Se.removeAttribute(x.SizeSensorId),Ue&&Ue()},Fe=function(ye){var xe=Ce.indexOf(ye);xe!==-1&&Ce.splice(xe,1),Ce.length===0&&fe&&Me()};return{element:Se,bind:ve,destroy:Me,unbind:Fe}};Mt.createSensor=Je},93314:function(Vn){"use strict";Vn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},96908:function(Vn){"use strict";Vn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13ANnJBk9YdSm9YVg6+tB0NC2ZtqZ6dn/1P+rKirwqaRqrknVuSM9mZ8J0FD2CetmJ1MipO74WkPXn0VOg72CvY1ZRuJU9uRvQPW4ZLes0jdszlvG3+CoRWroDyERZPtH1Dk1HH56B5vHQWFvJzrUf42lrUaMlPJ4BMxOxtnQAmWhgJLL+3gPQR5+E1qsPDdXl5G9YjUdipIreGpzGFUOfpb4zVXQA2ZnW7op1paSiH30qWlIqdVWlFGz6Al1ipmqkXH0wnD0ym8bOUt0BZGdZuivXk9IH/ajJaK4Uasr3UJizUQX/Fb2WOZ7LtfniosefHEDG38bdo4bUvuijJqG5XFQU5VOSv22/3hr8NTObWzqjIQ4gO8PK3aWO3v3RR57gHR13blpHQ121FZTTM7N5Od5NcQAZbwt3N/mDjvDu8jQ11rHj6/XoskevqKxXMuOPfZHyeDbJAWQ8rdsdZct2zYjj0VJS2bu7gLLiXdZRMiszmx/Hs1kOIONp3e4qO60/+rBx6O5WdmzeRHOTz8lO0pg2fhkr4tU0B5Dxsmx3lytTd99B1FZVUZC31dqanMzxTNDmsz9gGcumOoCMpTV7kixXEvrwCV4HZ1vuZlqamqytu2VCNn+NR3MdQMbDqj1Epj5wBFqfgVSU7qWkWB3CENKgEhibme39jCklBpCysf/H3aohrY1w64CYNqrLCJOziRJg1hN+qqtjJklJQx88xrudmJuzBY+cVveBcmlmNr/qmODQpRIHyPuKlVYtjXBL/1i3K7HyDh4Gp94IU2+Ee0+A+pgPJJ3WPn3QEWgpvSkpKaaiosJabxsuJk7IYksslXEAGUtrmrIW5sHAkerb7UO6NSBJ6wcDhnvXkFu354HlDK8GKzOzOS+WJnQAGUtrmrIW5atXCHoCIDXwDDwSlyuJvIICGhran7OIdRjIAaQDyIgW0PsNRkvtR2l5OaXlAcuPmIaBuh4gp1wP/QYrI338ODRUBRpM0+Cc36p0OVT6nwd9PIcdAydcqr7nroL8NXDi5TBmKoyepPgL16n0dS+3dzgGjoaTjY0If7n+Wow+GdK/p1Jr9sC+Ihg1SX0X3Xob6+K3F0FLg0r/egUUbWovSRy8SdNh5PEw4jho2Ae71sOuDbDhVaWvP1nbWLIZvvo3TLwQvjtDvdQlaf+eB2Uxeuu1V2/oP4yGhnryCn3etqmWS+PmjGUsiYhsGwxdD5C/WwsjJirV7xkX3KjyPvZSY+poqoXbBvqaetzF8HPjDMAbc2HIWDjlp8FNsfldePIaH+iTU2FxIRxkyHvgu5D3afCyM5dDprF8emuBN4jM6TPDm/zZG+HTf/l4xpwG1z/nXaMFpYIv4fHpUGVEJEwmaxu/eBFyP4Br/t5exMPnwZb3bUDADouGPmiU9+3FnLxC3BZvW0rHMgzUswEpI5O8Q9LaDAVroHgzDE2H0SdB6kGqJyryYdFJ0GicbLnsfjjLOGn1yT/ghRmBPSajmgBXLg+Qwwd3j4WzboXTDV4J95jkPZxghH2e+xl89ozKEVDdlKVu8RAq/lqNikm91Eg++GiVXlsGD52tRr1ggCz+BgaPAXk/20oxBSTo/YagJfdiV8lequuMEd9SnwYxCQP1bECKwerK4ZELQUYbk2RbbNZbMOQYlbJyMSy/Wz3LdDjvG/XcWAN3Hg6t7XYp4IxZ8CNjmSCj7NJp7cEQyamRH8m8zT7H54WZ8MkTPhlyO4ZM+xcvUGkb3oDHLw8OSDP1m3fgw0ehtlSBWUb2ysL2eh3It7T+iMddVV1LUVnQMFZMwkA9H5CPXQqb3gzsChlVBBSyHm2uh7ljFHiFbn4Pjj1DPT/1U5Bp0Uq/XQ1HnKxSnrgC1r8aHSAvnAfn3aXKfPYsPHN9cKiYywIJrC+a5Ft/WqfsSDIOBITWsnJjRr/DaG1pIbewJKjUWISBejYgZTqeOzZ0l9zyPhxzusp/7BLY9JZ6FifjhhfUc85/YckPfDKsI6iMRnNGq3t+rBRphJyzBuQgrNBD34etHwTXcfLVcN3TKu/d++H136lnKyDlx3TXkcGdv1iB0ZTT7zDv0/aiMppaWoNKP9AwUM8G5Fdvwt8MjzuY+ab/Bc40dr+yfw2rDEdRRgMBlXSArAFl9KwyzgVaR7f3HoDX5gRKjgTIh6rV2lZow+uBSwJTojhX489R32QUltHYH5A7P4P7T4s19ILLk2k7JY3SqhpK99WFqvOAwkA9G5Af/R1emhW6s865HS5ZpPJXLYXsW328Fy+EH9yhvi+/B1YafH/YCoceqdLnZUBpu6NZKj0cICVgLvnRkoSCFk8OBOSXy+DJq6OV1jH+5F6Q1p/G5mZ2lAQJxxlSDyQMFHtATpgGR56iVNvyHmz7KLDxstcrXqpQUx3cdoiPJ5ZhnzUvwNPXhjb+tLth2lyV/86f4I3f+3jF8Zmfq+6SLNsB96TDUVPgNx8qHmnXg2cFlx0OkDIyPrhPrV2FJNbqe8MvtK4S3go2Zcv6Vta5nUGicp9B3vuBcooraXMHfxHxQMJAsQfkRQvg3DuVeazeq9Vgo06EOz9XKXu3wvwMX651fbXgeCgxPF5reQlgLzSCvuHikOJpSiwxFF3zBEy5TuU+exN8aqzXTP5fvgkZxvrxz2fC5CvhtJ+p3KevgzXPRw9IKWHd6w41yoYDmH8csrMAKTql9vWGqoqr6qisaw6pZUfDQLEH5Hd+Atc+qRRdmw3/vCpQaStPzn9gybk+nl+8BhMvUN+XXgCb3wksf+1T8J1rVHo4QMoux7xxwcMfElwXUJt7zg+cDnmr29clux+/MDxoGW0zzlVBc9lNmTMy9Nov0hpy1goY/31Vl3/Ix6rB8ZfACT9UKRJe+vw59ZxIQMq0nZJGbUMzBRVhL7XoUBgo9oCUoPMdxu6GBKQXTIByy4VaKWnwm4/VVpnQf5fAy7/2dcP0B+FMY90XbMo9fCLM+UJNpZEAKflfZqndGH8SZ0acGiEJSC82wjhWPokH3pvnA62ZJ/G+rJsDZZop1nWmePni7VvpuIvg56+oFNlynJ8JzX5OgswCd63zbUH+5Xuw/ePEA1KWGvIOt9vNlr21eDyhz3p2JAwUe0CKyWavhHRjfVVXoUAni38x8ik/geHGFC33yMgIZu2wcWfDr972dZ/slnz+PNTuhaNPhUvuVd6vSeFGSPGQBbjrXoH3/gxl22BIOpz0I593LXIevQi+ttRpBc/5c+ECI2hupt8rMcGvQgPSGk6SsFHO+2rPXLxyk2a8DrLeFirdrtaHEryXy0ZlmTD5Kt9uzTcrVXDfpESOkKKD7G3rOruqmqhuCv9qjcvF+RlZhDBuoAnjA0iJ1ckoaR4wCNV1794HrxsBYivPze/CsWcGLyUgWz5XAVMoHCAFiEInXhZcloBkxQKQvehQJFP6wh2+Lb78L+C+KaH5JUeWE7Ks8KdZaeqqZaFDRsCMN3z79qEk7t4IMjo21XQdQLpSvP8QoKaxlcJ9odeRorCmsSVjHBPtvhQWH0CKJtKRVz3mO4BgNXhFgQrHyC8/GMmhUNlTPvWG9rnVJarcphX2DleIByrOxxVL1Mhsxv5EqkyVWbNh4/Lw4JLc2e/4TvbI3raM2pFo6k1wxkwYPNa3z2wFpJSXeOf5v1d751bdJE/WqfJDkeWBf+A90SOkTNtJvdA9bWwpa8ET4RWNaMJA8QOk2WF9DlEHGmS6FhDszVX7rXao76EwdJy6yF2OjJXLieUIFKqzpPMlHCWjdsFadWTMDglQFhVAnwFqi/HOEYHrPTtywvFIBx96FAzPVODbk6PW3XbCQQdad0fLiz11D7urW9nXHP4eqmjCQPEHZEcb3NFysR49JMxz5SNKm9VPgZzYcQjE4ZOzKy1u8qtt3Jmv8fCEZcyOZDoHkJEsNHcjDBuvuO6bCvlG/DRSuW9Dvly74tHZUumOOG3LUWo7L4U5gAwHHHGsxMESkvOKC40DEd8GsEXRxqI6D1VNka+P1ODtzGzOD7t66XGX3sdyypaguATHhbJvg1UPR9FN3x7WxjbYsc/ezSqRwkA9b4QclqE8aiEJeH/5UseQITs5F81X/+tQSPa6g73f0zHpPaqUhMa3VrppDRMkNxscKQzU8wDZo7q6+zSmtFGntN6GcwOECwM5gOw+fd6lNW31QG6lADLytTHhwkAOILt0N3cv5XZWe6gXZNqhEGEgB5B2jOfw2LLAvmad3bX2pu1QYSAHkLZM7TDZsYD4NDn2YpJeccHCQA4g7Vja4bFtgeJ6D5WNNqdtcXD8TgM5gLRtaofRjgWa3LC9yl5M0jtK+p0GcgBpx8oOT1QWyKt209Aa2ds2hbpczM7Iwrvr4AAyKlM7zHYsEKVz0+5uIAeQdizs8Ni2gIyL8icxSbeNnZv9go0wkANI26Z2GKOxwJ56D+VRODdmGMgBZDRWdnhtW6C6WWeX/Zjk/jDQ/wHkSLPJ/mcrgQAAAABJRU5ErkJggg=="},57177:function(Vn){"use strict";Vn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAAA8CAYAAAAeyZT3AAAAAXNSR0IArs4c6QAAEpJJREFUeF7tXQeYFdUV/mcbS1F6UUEsoLC7IGKNJWpERbEgSoxGo7HEQFDRWCAGgdASNBbEhglqsC1rAxVBNGg0qNgLsJRddmFhe3vby3uT7393ZmfeezOv7M57W3LP9/EtM3Pn3DPn3n/uvf85c58CKdID0gOOeUBxTJNUJD0gPQAJKNkJpAcc9EALoNRpCaqt3rh4QIkDvH/jxV/zuZZjrVy8uRzvSzDdrx3HxWnnEnz1eevhOf/79HpNdrAs6wrQr9VvtiMc+/kc0HSan9Nrq8Uzt9hquuZjv8kPev26r8x16X5VPYDHDYT7Vy/L8vo94d7P8u5mcV+w+1U34GEZ7a+5Tg/vV31tbrmu36ff23JcB9VdBo9a5v2rekq14/1wN30GNXGzctPKKgf7eExVKUGBpJsSEkgWYPMHXEuH0sHlB5iW8jrAtE6sd9AW8GidVD9mR/fvxDrAzJ3Yp/ObAGL3srC1XweJnf0awHUQWgGJ52i3P+D9OyOP/QHSAjYT8Lwd3gRGH3Bp5dza34D7LUDsD04vmPzuN9cZGkSAF3xm4JttNoFWdasNlRVNta4SV21l6YHakvyPGurrNivA12kZ2B1TdLSisvAA1QrF8hbpAUsP8EWVkAwkdgMSugHxiUB8EpDcC+g1AOjeG+BciSBWPXA3NaA8Pxel+7LRXF+bCwXpShxeTX0V33ZED0tAdcRW+X+2iaN3j35Ar/7iX/e+XnCpbg9cZfkozctBrauci/9tioIlKSpeUTLg7iguk4DqKC0h7bD2QPJBQP/hUHsNhsIVv+qBq7QI+7O2w93USGDtUoEFaavxoqJ4x7Z2FQmodnW/rDxsD3Ba2PcwqL0PhaLEobmxAXnZmaiuKPOqUBRsSlBx06gM7AlbZxQKSkBFwalSZRQ9kJAEDD4GSD7Yyz6WFu5HQV4uVI+Ho1W1ouCe1NV4OooWBFUtAdVenpf1ts0DfQ6F2mcoOMurq6nCnp2Z8DAMwNEKWJEKTG+PtZUEVNuaVd7dnh5I6gF1wFFQEpJQW+1CTtYueBgeEPLuwGRcNWQVamJpogRULL0t63LeA/GJUAeNhBKXgOpqF3Kzs6Ey3iVGqs29gQnDMlDnfMXWGiWgYuVpWU/0PBCfBHXQ0VCUeLgqK7B3b67I4BDyZloKrlTmQ6AsyiIBFWUHS/Ux8kBCMtT+w70MYGlJMfILCloqVoDH0jIwMxaWSEDFwsuyjth4IKk71D7DGKzCnj05qK0zZnoKMDUtA69F2xAJqGh7WOqPrQeYvtSjL+rr65C1JxeqMfUrTkpAyrGvoCSaBklARdO7UnfsPaAAat/DocTFo7C4FMWlIvBLUYD0tAz8KppGSUBF07tSd/t4ILE71N5DoHrcyMrJQ0NjY4sd8QompazGumgZJgEVLc9Kve3rgZ79gW49UVVdg9wDhWZbMtNSMEaZDxEFdlgkoBx2qFTXQTygxHnz/gAPdu3NR2Njk9mwmWMy8Fg0LJWAioZXpU7DA/0OB479hTguyQZ2/Sdm3lF79IWS2B2llVXILylvqVcBuLAamZbh/euotA+geg0E/ponHqSpDrizj6MP1WGU8WM671eq7fhVweTFwIQ/Cpe8PRfY8NfYuue4y4BbNbb6y1eA534Tu/rjEqEeNAAejxs7cgvg4VfGmijA8rQM3Oa0Me0HqKUHxLM01gEzD3b6udpXX+9DgNNvBs64GVh0PFDj+Isw/Oe7fAlw3t2i/NoHgPVLwr/XiZLtCShGpHr29zJ++aWVKHX5pPU1Iw5jx6RjuxOP2QLUsPaUcLJG6uII1ZUBtTAb6McAI4B7BktAtdcIRf/zM/vkg9HY3IydeQxBGbMFBVifloELnezecoRy0pu6rsU5QJ/DJKDogXYeoWiCp2c/7mWF7MJy1Nb7kBNwmkaXgJKAioYHDJ0dAFBqt55Q4ruhyFWDooqArzkcpdE7HqBOuxE4aKBokE9WALUGO9PSStxc4Px7xWFzI/DhI0YDDjoGOP5ycbxjE5CzBRh/JTDiDGD4CaL83m/E+W9e8yUM+g0HTtIC6f56/bvd8JOAURp75SoAKvYDh58gStG27tq68L3FQGOtOP/TOmD/j76aOP09YSowbBww9DigtgLY9y2w7zvguzeEvf5ifsb8bcAPbwNjLwF+Pg3oPQTgubfnAcW7ASfXUAOOBH52PTB0nKiHn6UXZwFFu4DPVwEFFssRK0BRz7gpwn/0U+7XQM6XwFfpYrsxpyUhEUjqhdqGJmQXVgRoj1NwR+pqLHOi2o4HqD99DQwdK55t7mjRKfyF++4t1xIf66uAu/oZJcwNuGYOMHgkcKoNs7TtfWDltQZoOd9eshfoqel76OdA9mfWfp6+FkjTpt/vLhA79Jw1PXibrLoZ+OwFo8yIM4EbXwT6MF5iIblfASumAuUaI6oX8e+kOz4Crn3GV8HjFwLbP3AOUJfMBybO9m7eYCnuJmDjQ4L4MIu/rR8+Bty2zvCxuezuT4AVVwHVxU70bR8dao8+XsY1c38F3Ca2j4WcpNG7NqA4MiT1AJoagNwtwIFtwJBRwPATvVF0r5TmAItPBOoqxfEVDwLnapn+n/4DeHlaYONyVCHw4hPErqoPjATOvRM4Syvr3RVWE2/jaQvhF38HfP4vcYEd7ZZ0sWsu5cBPYlTiW58j6cCjxfmqYuDRCWLU0cXcSQ9sBQaOEPvcmcVJQF08F7joz4b2sr3iRcOX2eHjxT9dVl4HfPWqta0cnRmX4r58WZ8CRbsD24Mvj8UnOE7kqN16eT/t2FdWjcrawFHfKRq9awOKzVpdAjxxCcC3vS79jwBmvCs2+6CQStbfrJxOzdsqzte5gFmHAU31vp317BnAL7VpJke55ZN8r4ciJQjyedsM4uLl6cCnzxo6uDcdp42XLRDnvlsDrLjSupPqZ7duAD5+EqgqEmBkh2fHb+uUjy+eJXliI0rK6/f6TrF5ji+TK5aK65wCzh1lbyvb48nJQM4XRpkBRwHT3gIOGS3Obfw78OYsX5+29YgvnLgklNc0YH+FNgX31ekIjd71AfXU5cCP7wQ2B9/q7NScwjTUAHNGCPBR7tgIHHu2+D8DkQxImuXezcARJ4kzz14FfPuG7/VQgLpkHnDh/eIerj3+daN1d9GnlQwM862tr7/MI1QoHW0FFNdLE+8ToQ6uFTlFtpJFe4C+Q8WVmb2NdaO/rS/cCHyxyro95m4Ve9ozNsn24MvBKeHW10nd0dTsxo5C663TnaDRuzagOJ2bM9K+SWZ+ABxzlrj+1GTgx3fF/0kS3PSy+H/mv4FlFxg6zCMYG3z28MCFdChAzd4CDDte6Hz0PGDnR9Y2nvxr4IbnxbX3HwTe+pP4v7mT8mVw/5HW5A3LthVQ4XboO94Hjj1HlF403hr8ZfsEULQ9HwJUz1gHpJwnTj89RZAtTgpHW9WD3cU1qG+y/iK+rTR61wbUD+8AT2uMn1XDTH0YOEfLPsn4I7BJI3q43zZBcdAgsUZiJyjfJzSYRxcuwt+cHag5FKAerRRrO8p3bwVOKXWNJEdSzhdHHAU5GvoDas/nwINn2nc7JwHF2NrxUwCydP2PFEQMiRzulcdjfV1Ke2iXv61b14vpt52Y169v3Ad88LCTcBJ2KvEoqmpAUbUFeypqaxON3rUB9Z9ngFdn2DfK+fcAzHWjbFoOZNxplL1sIXDBfeJ47VxgvVbuLztFh6LMSwWKdgbqDwYodkpej1RIpS85ObCTfrUaWPnr6AKKDNlVy4DxUwURE0rsABWqPZhzOEXLNfz4KSD99lA1RXbd+1NCiahrdCOrzH4jpLbQ6M4Daswk4MhTxYNu32idXcxcN7JklPpq4K6+hmOcpM23vAw8f7290yc9AEyaI65v+BuwxsRkkbiYv0PM6fWF9lGnAXd/LMoza/qRc611BwMUR6ZHKgz6mbE2uymQWTsZNaspX6iE07aOUInJwO0bgKNPM9qL8bHCXUBVoRhdmxuAibOMaawdoL54EXjht/btYR791y0E3pkfGWBClSbjH0c21IPM4no0e6yTlttCozsPqEsXCOdSzOyZ+WFJs87SWJ7CncD8VOOqeX2xYByQrzFu5vsZgF2oxaeCxaHIdDGWZCfXPgucdoO4uuoW4DNtvaKX/8M7QKq2fvr7OcDJVwNn/k5cff4GYMtLkQOKd5hz/exGuWCdI5Lsg7YCimzj5EXCmrzvBYXP4LO/zPrcCGzbASrYS4j6rvuHCBxT7MiLUKAJdZ3Teag44GpCWZ39j3a0lkZ3HlCnXAdcv1I81tcZwD+vCXxEc5nMD4FlE40yv38TGHuxOF5+MbBtQ+D91z8HnKKxTcEAxSyDeaMFfewvDA4TlHrO3UNnAdmbfUsx++D3GoPH0S51oghIskPNHma/9gm1hjIvvv0pc7MF4yaLNQuF9Dzf8JRYAop0NmcdlGeuBL5fE+hL/qbT0gJjOmgHKLbHn48CXD5f0Ap9bA/67eDB4njp6SKbxWnRfjmzqr4ZuZVBszJaRaM7DygGTe/TsgsYUF0wBigx/SACpxB3fyJSbSj/Xga8pn2vw+OpjwDnaOseqynbYWOB2V+KqRglGKB4neksVlQvyQiSEhQGVJdoNLi5ARkPWpRtgE6/xnhP+h32TW1eZ5FlJNtoluMuBW59XZxhytL8NKCh2rcMR+H7vzFSmB7+BcBMAkosAWWegvPlyJekv5hBx2t2gOK1/64EXro1UMeEu4ApfxPnmYa0VJti2nu59Vfi4r27y24vaYYnyLdqraHRnQcUH/P29cAobX1RXSpAw8U7O8mp1wGHalM8bu7OEcTc4UZPAG57z3AWsxW+eEnM148+XUw/yL7pEgxQZOgIvG9eF8HC4l3A4FHAib802D3qefJS4CdTneamumgOcLFfOs0ixoR+sG9QMx1P2j3zA5EzSFZQF3MnZMYA10cMPvOzbU4zT77GyJbwZ8daCyjq58sjHPlhrfDJb1aKNqMU7gBemgZk/VdkeHCtfPliY82s6w0GKJYhkULSgdN5Zq4wTKGzrbzOGQtnLtES9gmPB/uqPKhsCL6hbFwcLkpNh03nCDQwOoBirIajlJ4gaueY95cCb2kBTnMZc0zD/16CZO0cY14fDFAEEmX8FdYWsJOvWwAwF89OOCVcmGWkCIXz9uR0lNNSf5mRLH6rlsIg6LQ1Rt6iXf1ct3B0qncZJVoLqEg6qM5sWrUlM0hIruiM386PBdj09aUdoLZtFOSGTq8HtK1bZKywX0RVvL/cBlejir2u4D9+qCjYnjoaY8Pd1CU6gKIz2BGvecpIIDU7qDRX0Nl881oJf7WOMYnTb/K9Wpkv7vtxXXjJsWTASB6Q8uVbVo/9UCunWqRlv18buunIcumZ5czt46gZSs64BTh7OjBwpJFnZwYU7+cCmTlyzB0028ZrXKcR6Jxe+mdgxxJQtOWIU4CrHzdYPP3Z2Y7fvi5GV+b7MXmWYgcopi0xiM2g+aARvh7kfhP0LUf0GAk5vu2l7qDTPpoSCY0ePUDpTunRVwzrnO6xE/NNFm5KCXcBHTJaLFT5yQWdHkrsOhs7L6co+ucCTKMJR9jRF+cCjMUwK2HW0MD1Tjh6gpVh+hPz2Q5NE+ApyBTrznDo9LbWHe79tHFIigACaXJOH/VUrXB1mMuxTbne1j+nqSltjZY235NX5UFFiGlfJDR69AHV5keOUEEkb+9wVHMac/UTouTm5wBmjEvpMh6oblKRUxnGb14reHzMaoSMNEtAheoac74HDkkRpZae4ZslHepeeb3De4DL6O1load9/JQ1nE1dJKCCNTmTPUmQUPi90kItobXDdxNpYCQe2F/tQXl96J+PUoD30jJwUdDZe7vsehTJ00Za1skpH4O6DO5SMu4CNj0eqTWyfCfwQF0zkFUR3qf3oWj0rjdCHZJqxE0YczF/PRpJ4zJyf+l8b3ayV5jrZ7W/RSQ6ZdkO6QGyfTvL3Giyye0zGx2KRu96gOqQTSaN6ugeKKpTUVQTBjkRgkaXgOroLS3ti4kH+L3hjjICKvS22cFodAmomDSXrKQzeGBPpQc1Nl/yBthvQ6NLQHWGlpY2xsQDFQ0q8qrCm/bZ0egSUDFpKllJZ/AAOYnM8GJS3sexotEloDpDS0sbY+aBAzUelNWFjknpBvnT6BJQMWsqWVFn8EC9G9hdHl5MyjtK+WWjS0B1hlaWNsbUA9mVbtQ2hWb7TKPU7anp8Eb9JaBi2lSyss7ggQjJCZ+90SWgOkMLSxtj5gGOS/zHmJQ7jMyJFsM0Gl0CKmZNJSvqTB4oqPGgJAJyQqfRJaA6UytLW2PmgcoGFfvCj0m10Oj/A9jGm+feuyEMAAAAAElFTkSuQmCC"},81378:function(Vn){"use strict";Vn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA8CAYAAADGxTD9AAAAAXNSR0IArs4c6QAAFoFJREFUeF7tXQl4k1W6fv8sTbqvlJa2tJSy74ugsiMqq4AKIlDUueNwR2dGHR0XdLwixW3uuF6Xq3O9o15nxuUiIIsCsijK1pa20NJ937eke5tmmec7f/40TfInaUNK6+R7nj5Jk7Of93z/t55w8JBnBYbwCnBDeOyeoXtWAB4Ae0AwpFeA+1SWbbA1A07KQSID6JWT0ivAyThIpBwgBSQy4+fCq0T4jANnrEdlWFkpjK/0ndAetd/znpMaTO0LZcz74tsxti0xjqVXfeNYZcZyxvHSuK3GbDYX03iMbbLy5nOz+pzGbGDrwpfj52DQG2DQAwad8Gcwvudf9ToDQN/pDdBrDYBFWfqMry/UAytP9fjPjJ/rYVHf2L7Qph4GaA0tOj1UnBYqvd6gMugMKr0OKoOOq+UMhhQ5DGfHPRNWMaSRaxy8bQBzPGAZAI3AFMAoAIJtnBnA2WaagdlU39iOAKKeje85FKY2TYDkwWh+APi2ebD0AJ8HMn/AzAHFA4x9Jxwss7bN5yXUpbnwB4SvY3Nu9LmwLr36NIKWAEhA1BlMgOUBCAZYBtJe761Byx+A3vV54Av1efDrtUawm4G+N+D5MfUcHH5s7H890KnqNjRWNGkaqlXqhgp1VV1JwxkOSJUAqUB0xk4s0Q4FgIty4KEweM8Yba+ARCmBzBuQeksgVXKQKugVkAdIoRwhhU+EHJycg0GrNz01Whs6UJhegtLsCmi7tI0GYC8H7osYTPhuO2Z3D9a19gB4sO6Mm8flFSKBd4QcyuFS+MbKIfOWMM6v69KjIq8WhVlFaKpvAQeuFsCr/gh45wmsbXHzsPrcvAfAfV6yn18FjgN8YmUInKiAd4TMJObUlNQj42wWutq7SNtXA9zrIVC88nts7Bgsq+AB8GDZiUEyDrm/BAFj5PBLUAASniNnpeSgvLCSjZADl8dBev8ubD41GIbsAfBg2IVBOAaSnUNnK6GM5DlyQ5UKmSlZ6GjvJBiT5epdGRSP7MRGzbUcvgfA13L1h0DfPtFyBE9VMKuMVqNH2rl0NNapBG78vQ98b9+B2xuu1VQ8AL5WKz+E+pV6cQiaqoAyXAp9tx5pyZfQUNdoBDEKAG5VEhJzrsWUPAC+Fqs+RPsMnOgF3xg5dBod0i9eRmM9D2IAFYB03m5sKRnoqXkAPNArPsT7CxingE+UFDqdHpfSMtHYYJIecn2hnL8DG+sGcooeAA/kav9M+gpIkEMZJYdBq0PqxXS0NDcLMvEFKRTzB1Kx8wD4ZwKqgZ6G/2g5vCPlaGttR+rFZMaRiSSQvLILW58YqPF4ADxQK/1z64cDs05IlByqqiqRX5gvKHV6gLspCYknB2LKHgAPxCr/TPuQ+XAImOQFzsDh0pVLUDcJ5jWUSaGcuBMbW9099WsOYDKYU8Qbi5zqshnZ6e41uGrtSxScU3NQhErR1UBhae4hstkaBiiWzDtSykSJri4NLmYmQ6s1dfz6bmx7xD0z7Gn1mgN4bX48CyapP9eBI/NLXZ5v3JYAzHlnOGvnyMJSqNO7TG36xMjYe41KB22r+GGR+nC48aNIVrb4780o2+OYkYTOVWLRnijk/JcKee+qoVHzMqE5zXlvOGLW+0MRIsXBGUVouuweJ9bys7HwjpJBldaJk2vcH/brP9aLRb1V11aisLzAKEpwWimks3Zic4bLm2qngUED4K5GHWpOttuda+U3bSj83ya7ZeLvCcD1f+HBd3hOMVQXeQDL/DhsVI1l71MerUXOm/zjzhYRV1lfmsC+Sn28FtmviZcV6t/wUSRGbQ5g/575RRWKPuE1c3Ma8+sgXPcmf7gynqvH5d3OO7DkARIowigzwDEtPxcLryApmrK7cGqtYwB31evQ3Wx94Bz3xJcgOThwrBd0Wj1Ssi6gW8sfTA44swuJ8zje9ewWGjQAdmZ2OW+rkPIwRfeJ09UAsH+CHGuuxLNOzj9Yjfz37R8axTAp1hWPBnmsOuu02BtXCL3Ges8IhOvLRkPmI0FjSie+ud55u//YB4Iw+w0e/Febkh+qQe47apea9Y2VQeYrQXlNGcpqeubFQfKrJGz9wKXG7VQeNADuqNKi6FNrrmU+9rqfOlDxtf3HudMAfkuFmPV+iN0QgMyXG6BK6xE1gqYpsDI5jnX9071VKHYwrklPhWDa88NY+csvNiDj2XrRJZ/7fgRG3xfIvv8qrgAdFc4Jq4MdwHQoCcQkA6fmXIBOz8v4HNAog2zcc9gsviguoNutAKZHsdRHYnd4y76LgU+UHKr0TvxwFx+y54iIu7WX9Ww8SwGS8/mp8YkBmPNuBHv/7fwSHph6A0jBshQhVqbGIWiKAgUfqnFue42p22HzvHHzyZHs/+83VKB8r/ihoRQjkuMp6IVShvYlFGLyjlCEzVXanIZXiJS5Y4laizSij+78/2lisrRA8kAJCz53RKO2BLL+ic5tr0btaftiGZXrrNGhu6n/IoQwJt+RMrbOJTVFqG4030vJX3dj632Oxt6f790K4CWHohF5s29/xmW3DoH98Oyex9TY3wRh9mvij1f15S4cWVBiBWCBW2vb9fhqZIFpEyNv9sGSQzFsDCdWlqHqqDgIiIsv+DyKlS39/xac3lSJpd9EI+Im1+Z9+YUGZPyHbaYVMlOB0DneNtdo5J3+GL7Ih31HcraYtYPmXPSx/SdeXzeORAifETJ0dnYivTgFBoMgRpEMLF24G5tP97VNR+WHJIBL97TgtBm37i+AJV4c1hbEsywEc8XOHJRHl5Si7rTtBASZLwfi4n7xXmydT60rR8XBNkx/IQwhM3s4cMgsJVOqCDT1Z5xLZij6W7MowMxFFkcbLPZ9R7UWX8XwFoOrSd4jOUilMuRWZkHdZq78cpdliJ5xtZNFBwTAxAW+u7nMap1uOhbDTEo1p9qR8oh95Ywe9YJp68fESpT8oyc9K+x6JUas8GPtB09TIGoV/55Eg45qHTprtSj8qMmmFWLKs6GY8scwNOdqcGBSEas3KjEAN3xotGRcV9xLPjafBJnFEv4tyPTRsZtKUfu9NUBJTApf6NOrD1dAYw7gikOt0Hc7r+SHTFcys6W7AOwVLIFXoBQ16iqU1BdaTvOJ3dj2iitzt6w7IADuqNHiq2jr0357xWgow2UoP9CK8/9eDZ8YOXxjZPAZaXyNkcN7uBRHF5dh7gcRGH1vIHQaA/ZE5ovKjk4rcUYzmt9oOW7L5i0Ox28tQ/Xxdkz+YyimPhvGPvsyPA8albV8GLXaF4u+iu61nqIAPhGD8Pk+aM7R4MBk/pC4QuYA3juqAJo+yK/XvRUOkpPdBWB6qpHuo9F0I73sgsU0uTYZFOShc93gb2x5wAD89YQiDLteyUBKDgVSZGI3+bOUb0e0L6EAEx8PRfQaP6gyOnFytbhts68Apr5vOT0SYXO9Uba3BT9sqMSNn0QiblMAOuu12BNpffDIbLYqLY4dPnMSA/CKlFgET1UyRdVcdnc0b7HvB7MIQWP2jiJlk8OVqgy0a6wU4H27sW1df+d+zTjwiRXlTF60R6TFd1Rq0VbSjbYyLdpLu9FW2s2UoxG3+qK1RIumzC67GnN/AEwmqmlJw5D3ngppO+pBjgCSYet+bGfc35IW7olih4mIQK4M44EsBuC1hfHswDYkd+LECuv2zNunC0wcORXMAaxR060nzsNB6ith9mp3cWAaiVewFBQnUaEqRVVzudXgOEjWJGHrAedHLV5ywDjw/rGFWF86Gu2lWrSV8cCM3xbIjPoElB+3VjHw0gbaIsHlXPyPZvyUWCU6I0sAtxV3Y/QvApH332pRTxx56TgJZwLOBtUYyP0kKPhrE87dX92rL6k3hzvrEtiTgwBZ+HGTybsmBuCN6jHMyO8M0eElU5w9MgfwF2F5fTKBCXZodwKY3MoE4rauVmTX2vQkF4dCOfFqpOcPGIBtycArLsQieLoS3a16ZL/WaFOWkyo4hN3gjejVPMdLe7oOWa+YUlms9tkcwAR2Uuh0HXrsH1folCuZYgjWF4/m+9pRh6w/Wfe1+EAUgiYp8M0NJezJILiubQGYAmvu7hjnDHZZmeY8DQ5MtC8nmwOY5Gq6b81Z8o6UMYuIOwFM3gvv4TLGjDJqkqHVWcd8SICXdmHbU86OW6zcNQWwI/OX5aAJ6IdnFqO1yPZNR8RJJz8dhomPhfSqShz/4NQipwAcscwHSw/zNuDv76hA+X5rJwYFDJFtmQKFzA+MLQCbx1VUHmlD9bE2m3sx/qFg5tBRZ3bh0PRipzlwfwHgVgADkAdL2F1zZc1FqG/v/RQzjrmbg9e0JGy60t85UD23AniZUfsmj9P+sdZchTRWAgxxMb943jtli7Tt5HnrRsnnLWg4T/cS9KaEXwZi5EZ/pulLjB45KkHyYe7bauS8pWIXdDgTzDPrtXCM+00w62BPTD46q+2HPToCcNQqXyzay1srLM1/5rNYkRyL4GlKNKZ24pu59mMkzDnwoZnF0DQ5H5o546VhzH3ubgBLlRLI/Tk0dzQjX51pc185cCeTkLhk0AL4ttxR8BvlxdyZx5bwygu5Q8l1KRDJpxTk0pKnYU4Aoti7/EEu1/Zyba/YB3Kn2nJ5Lvh8BAtTtKRvbyxBwwUe8M5Go60rjudd2xmdODzLcbCNIwBPfT4Mk5/iXbv2QihXpsUxsaTuTAeOLrRvZTIHcOmXLcy06CyRJYgcL+4GMF1XJQ+RsvvWLjcmQ0fXadogCbh7diHxY2fHb1nOrRz4rtYxTNkp+byZhQ7OejUc4Yt9cHBKEVryeDFAUM7MvWurMuIQOEGB6hNtOH4Lr8WS6eq23HhUHm5F+tP1vcSIcb8NwqQdoaDNNHQD437Lc1BnwinZ3b7G8xS+0BvLvuNjILLfaETqY44TbB0BeOmRaEQs8WXOhs8CckUDzVdfHoWAcV6oOtYGstjYo8FuRhPGToyJ4lRKW4rQ2NUTa2I+N7o8UAq/cTuxvl/hcG4DMGUd3FHNx9ReebWRKV7ktiVtPPcdFZIf4j1vzgJ4WlIYJj0RCl0nKWRFzGIhELl0dZ383bt9MaORy3j6i8NwfHk5yFohgI3abS3U4OCMYuja7XM3ewCmw3Fn3RjQfWP15ztwZJ44Z70tLx5+cXKTLdpZAP90TxW0rc4H4ox9MAgRS33dzoFp/BTYQ0p4i6YZha1Z9qb03m5s+3V/uLDbAEw3uaxM4e2+KY/VIucNFWb+aRjGPxzCrA57YwuY2coZAFMg9205o9j9tln/2Yi0p8Q5oxiAzZUpciuTB45kZqLkR2qgvtSFZcd47isQZVc4cnHbA/DIDf6Y/7cRrDlH1hMyMZKFoOj/mnDmvt5KD3FmWk+BYtb5IXYjHzx/9pdVIB3BWRqzPYgF+5B+cP6BHq6ozuhinsKrSSRGyPwl7B7izJZU6ETynDhAL4X0hp3Ycr6v/bsNwObKy+m7K9njnUxUxIVJO039Qy2yX1c5BeDrP4xAfGIgU1b2jym06doVJi4GYOK0ltYJqlN9vA2Xkhow+9VwZtKjCKqa4+0smozeH1taJhrMQ/XtAfjmUyMx7EY+auzriYUmscnWJt1Zn8BiCLLfVCH10d5xIRMeDcaMl8L7urd9Kn/xyVpc+bPjzJM+NUpc2FsCCQeUdRRA1S3OeDjg4lQor9uIjc5rpO60Qlz39nCM+RUf6GKuTC3aH4WoFX4sFpZEgbV5fE6cmAx8OanBJJemP1uHzBfFbcCWgBJkYP8xcqzJ4uMdiAiYFBif+VIjU/JINhfk5rz31YzDr8kZxTxsZJc9NKNYNFlTDMAhsxRYfpZ/AjnjQt7UOZYd7LRn6pD1cu85DmUAc3L6SQgJ2rXNKOiwK0ZQbu9Du7Dtzb4cErdwYDLe316eAJKDyQa7L77HsxS9zg8Lv4hC7Q/tOL25EreejrULYJKdKZWGLBDkzeuLTGquxJFiSMmHJZ+1IOvlBjRl8Y9LYTz0XrAXU8KneQaEvYMjBmDzWGjhCSS2MaSg3lHJ6wskEhR+ZB2nS8qQJUUs8wVF01Ecx8Wn6pD9qu3DPeU53hJCQVXkkcx/X42uut6MTswD2hcwiZUlzxz9NkduZxq6DeJiCgeu2RsY/zTsuFotOnELgEes9MXifbzt0zLFhsBNFgaSOYmckYFJGfIf44XmbMcy2vTdYSzwh+jgtCITUClIvTmvmylrAo1Y7osFX45glhLiyidXlZuC16nPVem8ZYBk9q8nFNq0CdsCsLmVwBnuO/EPIZj+Ap+SRFkkDeesbd3CmAkMI1b4ghwfw+bxMjwRJcSeWF1u/aTggDlvDwc5X8htT0Q28eK/tzD7OMm+7ibBNl+tKUO9zn7WDQd8loRtm5wdk1sALERz0SBI9qOYh/GP8KYtSxKi0djPTxnjWsnBwXEcA5Wt5Ehq48y91UyuJgpf5I15n4xgSiEBjoiSK/dEFYgGukTe4ouFe3rAe+GBGuT/pXfyprkcbysugvqxBDB9tvRIDBMHaPxkEqv+js/oGLbAGzNfCYeuXQ9dFz9fUlDDjNkVFAdB4ZZkUbEkGi/FKUet9mNxGgK1FGhw8ck6u2lPVJZMWgRicvpQZJwJ+KfaWYZ2OeUaOq8LOosvVo7iTCgxuVuvQW53msO6UnC3PI/Eow4LuksGnvnncIz/XTDqz3bgyIJSZqqypUA5M0CxMj9urWTiABFpuhvqE/iFMpKjDGaSUZedGMnuM7jwYA3yP7CdeXzT0RgMX+xjU7myBWAy7y0+EA3/0V649Hw9Lu3qSZ2nQKA7ahLYD6pYEkXiHVtSivqztrmv5RqSKzv/AzX70/fxN4ToYFL0XdBk3rJBThvy/rnzMhT62TNyahTpMtFhsO1OF9aEfsYgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},16722:function(Vn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return fe}});const x=Ce=>typeof Ce=="object"&&Ce!=null&&Ce.nodeType===1,ct=(Ce,oe)=>(!oe||Ce!=="hidden")&&Ce!=="visible"&&Ce!=="clip",Le=(Ce,oe)=>{if(Ce.clientHeight<Ce.scrollHeight||Ce.clientWidth<Ce.scrollWidth){const Oe=getComputedStyle(Ce,null);return ct(Oe.overflowY,oe)||ct(Oe.overflowX,oe)||(ve=>{const Me=(Fe=>{if(!Fe.ownerDocument||!Fe.ownerDocument.defaultView)return null;try{return Fe.ownerDocument.defaultView.frameElement}catch(Te){return null}})(ve);return!!Me&&(Me.clientHeight<ve.scrollHeight||Me.clientWidth<ve.scrollWidth)})(Ce)}return!1},Je=(Ce,oe,Oe,ve,Me,Fe,Te,ye)=>Fe<Ce&&Te>oe||Fe>Ce&&Te<oe?0:Fe<=Ce&&ye<=Oe||Te>=oe&&ye>=Oe?Fe-Ce-ve:Te>oe&&ye<Oe||Fe<Ce&&ye>Oe?Te-oe+Me:0,ze=Ce=>{const oe=Ce.parentElement;return oe==null?Ce.getRootNode().host||null:oe},Se=(Ce,oe)=>{var Oe,ve,Me,Fe;if(typeof document=="undefined")return[];const{scrollMode:Te,block:ye,inline:xe,boundary:Ee,skipOverflowHiddenElements:ke}=oe,Ke=typeof Ee=="function"?Ee:zt=>zt!==Ee;if(!x(Ce))throw new TypeError("Invalid target");const Qe=document.scrollingElement||document.documentElement,Re=[];let et=Ce;for(;x(et)&&Ke(et);){if(et=ze(et),et===Qe){Re.push(et);break}et!=null&&et===document.body&&Le(et)&&!Le(document.documentElement)||et!=null&&Le(et,ke)&&Re.push(et)}const Ge=(ve=(Oe=window.visualViewport)==null?void 0:Oe.width)!=null?ve:innerWidth,ut=(Fe=(Me=window.visualViewport)==null?void 0:Me.height)!=null?Fe:innerHeight,{scrollX:at,scrollY:ft}=window,{height:bt,width:He,top:pt,right:Ne,bottom:je,left:Ot}=Ce.getBoundingClientRect(),{top:it,right:ht,bottom:Bt,left:We}=(zt=>{const tt=window.getComputedStyle(zt);return{top:parseFloat(tt.scrollMarginTop)||0,right:parseFloat(tt.scrollMarginRight)||0,bottom:parseFloat(tt.scrollMarginBottom)||0,left:parseFloat(tt.scrollMarginLeft)||0}})(Ce);let _e=ye==="start"||ye==="nearest"?pt-it:ye==="end"?je+Bt:pt+bt/2-it+Bt,ot=xe==="center"?Ot+He/2-We+ht:xe==="end"?Ne+ht:Ot-We;const Zt=[];for(let zt=0;zt<Re.length;zt++){const tt=Re[zt],{height:Nt,width:Ut,top:pn,right:kt,bottom:mn,left:_t}=tt.getBoundingClientRect();if(Te==="if-needed"&&pt>=0&&Ot>=0&&je<=ut&&Ne<=Ge&&(tt===Qe&&!Le(tt)||pt>=pn&&je<=mn&&Ot>=_t&&Ne<=kt))return Zt;const Cn=getComputedStyle(tt),an=parseInt(Cn.borderLeftWidth,10),de=parseInt(Cn.borderTopWidth,10),pe=parseInt(Cn.borderRightWidth,10),ie=parseInt(Cn.borderBottomWidth,10);let ee=0,se=0;const le="offsetWidth"in tt?tt.offsetWidth-tt.clientWidth-an-pe:0,Be="offsetHeight"in tt?tt.offsetHeight-tt.clientHeight-de-ie:0,$e="offsetWidth"in tt?tt.offsetWidth===0?0:Ut/tt.offsetWidth:0,st="offsetHeight"in tt?tt.offsetHeight===0?0:Nt/tt.offsetHeight:0;if(Qe===tt)ee=ye==="start"?_e:ye==="end"?_e-ut:ye==="nearest"?Je(ft,ft+ut,ut,de,ie,ft+_e,ft+_e+bt,bt):_e-ut/2,se=xe==="start"?ot:xe==="center"?ot-Ge/2:xe==="end"?ot-Ge:Je(at,at+Ge,Ge,an,pe,at+ot,at+ot+He,He),ee=Math.max(0,ee+ft),se=Math.max(0,se+at);else{ee=ye==="start"?_e-pn-de:ye==="end"?_e-mn+ie+Be:ye==="nearest"?Je(pn,mn,Nt,de,ie+Be,_e,_e+bt,bt):_e-(pn+Nt/2)+Be/2,se=xe==="start"?ot-_t-an:xe==="center"?ot-(_t+Ut/2)+le/2:xe==="end"?ot-kt+pe+le:Je(_t,kt,Ut,an,pe+le,ot,ot+He,He);const{scrollLeft:gt,scrollTop:mt}=tt;ee=st===0?0:Math.max(0,Math.min(mt+ee/st,tt.scrollHeight-Nt/st+Be)),se=$e===0?0:Math.max(0,Math.min(gt+se/$e,tt.scrollWidth-Ut/$e+le)),_e+=mt-ee,ot+=gt-se}Zt.push({el:tt,top:ee,left:se})}return Zt},Ue=Ce=>Ce===!1?{block:"end",inline:"nearest"}:(oe=>oe===Object(oe)&&Object.keys(oe).length!==0)(Ce)?Ce:{block:"start",inline:"nearest"};function fe(Ce,oe){if(!Ce.isConnected||!(Me=>{let Fe=Me;for(;Fe&&Fe.parentNode;){if(Fe.parentNode===document)return!0;Fe=Fe.parentNode instanceof ShadowRoot?Fe.parentNode.host:Fe.parentNode}return!1})(Ce))return;const Oe=(Me=>{const Fe=window.getComputedStyle(Me);return{top:parseFloat(Fe.scrollMarginTop)||0,right:parseFloat(Fe.scrollMarginRight)||0,bottom:parseFloat(Fe.scrollMarginBottom)||0,left:parseFloat(Fe.scrollMarginLeft)||0}})(Ce);if((Me=>typeof Me=="object"&&typeof Me.behavior=="function")(oe))return oe.behavior(Se(Ce,oe));const ve=typeof oe=="boolean"||oe==null?void 0:oe.behavior;for(const{el:Me,top:Fe,left:Te}of Se(Ce,Ue(oe))){const ye=Fe-Oe.top+Oe.bottom,xe=Te-Oe.left+Oe.right;Me.scroll({top:ye,left:xe,behavior:ve})}}}}]);
}());