|
|
(self.webpackChunk=self.webpackChunk||[]).push([[5724],{89489:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},59477:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},40001:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},26227:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},49198:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},41464:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},73331:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},15277:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},52671:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},8657:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},56082:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},33853:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},15075:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},43531:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},61485:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},47472:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},87395:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(Yn,en){"use strict";en.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},39967:function(Yn,en){"use strict";en.Z={flex_box_center:"flex_box_center___vG4eV",flex_space_between:"flex_space_between___qVVxe",flex_box_vertical_center:"flex_box_vertical_center___P8Z8s",flex_box_center_end:"flex_box_center_end___VMme3",flex_box_column:"flex_box_column___VMHwm",dropdownmenus:"dropdownmenus___oVzoj",popupClassNames:"popupClassNames___OcZq7",selectdown:"selectdown___mmcA8"}},31355:function(Yn,en){"use strict";en.Z={ChangeBut:"ChangeBut___VMCUO",DefaultDiv:"DefaultDiv___diOnG",DefaultDivItemActive:"DefaultDivItemActive___p8PnJ",DefaultDivItem:"DefaultDivItem___BkCuW",TableStyle:"TableStyle___DOsaq",ProgressStyle:"ProgressStyle___Mbw5z",ProgressStyle2:"ProgressStyle2___w9DG9",RankingDiv:"RankingDiv___RCXlB",NavBgTwo:"NavBgTwo___KU7t1",NavBgTwoActive:"NavBgTwoActive___hkC0h",NavBgItem:"NavBgItem___TBfQf",InputStyle:"InputStyle___BAYzG",TableMyHeader:"TableMyHeader___nZel6",TableMyDiv:"TableMyDiv___F4fkZ",CollapseStyle:"CollapseStyle___VkVMr",Item:"Item___pqPqX",SituationItem:"SituationItem___MzguO",waveDom:"waveDom___N1Yew",wave:"wave___UTqsO",select:"select___Yd9qe",selectWrap:"selectWrap___ddND4",masteryList:"masteryList___jQNpd",row:"row___h3q8Q",masteryHead:"masteryHead___B6Wcy",masteryBody:"masteryBody___DZSiT",dot:"dot___ZZ043"}},59435:function(Yn,en,Ce){"use strict";var te=Ce(59301),Ye=Object.defineProperty,Me=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,ve=(he,le,ae)=>le in he?Ye(he,le,{enumerable:!0,configurable:!0,writable:!0,value:ae}):he[le]=ae,ue=(he,le)=>{for(var ae in le||(le={}))pe.call(le,ae)&&ve(he,ae,le[ae]);if(Me)for(var ae of Me(le))Oe.call(le,ae)&&ve(he,ae,le[ae]);return he};const fe=he=>React.createElement("svg",ue({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},he),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143z",fill:"#98BDF7"}),React.createElement("path",{d:"m248.686 803.182-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#145DFF"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#98BDF7"}));en.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},77264:function(Yn,en,Ce){"use strict";var te=Ce(59301),Ye=Object.defineProperty,Me=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,ve=(he,le,ae)=>le in he?Ye(he,le,{enumerable:!0,configurable:!0,writable:!0,value:ae}):he[le]=ae,ue=(he,le)=>{for(var ae in le||(le={}))pe.call(le,ae)&&ve(he,ae,le[ae]);if(Me)for(var ae of Me(le))Oe.call(le,ae)&&ve(he,ae,le[ae]);return he};const fe=he=>React.createElement("svg",ue({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},he),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143zM248.686 803.182l-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#98BDF7"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#145DFF"}));en.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},84915: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 Yn={},en="5.0",Ce={},te=null,Ye=!1,Me=!1,pe=null,Oe=!1,ve=null,ue=null,fe=0;fe<arguments.length;fe++){var he=arguments[fe];if(he!==null)switch(typeof he){case"number":en=he.toFixed(1);break;case"string":he.match(new RegExp("^[0-9]\\.[0-9]+$"))?en=he:pe=he;break;case"object":typeof he.is3D!="undefined"?te=he:Ce=he;break;case"boolean":Ye=he,Me=!0;break}}te===null&&(te={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Ce.material_id!==void 0&&!Me&&(Ye=!0)),pe!==null&&Ce.id===void 0&&(Ce.id=pe);var le="",ae="",ie=!1,me=null,E=null,b=null,z=!1,ne=null,oe=null,se=null,de=null,a=null;Ce.height!==void 0&&(Ce.height=Math.round(Ce.height)),Ce.width!==void 0&&(Ce.width=Math.round(Ce.width));var x=function(Qe){return parseFloat(Qe)>4?parseFloat(Qe):5};Yn.setHTML5Codebase=function(Qe,rt){ue=Qe,$e(Qe,rt)},Yn.setJavaCodebase=Yn.setJavaCodebaseVersion=Yn.isCompiledInstalled=Yn.setPreCompiledScriptPath=Yn.setPreCompiledResourcePath=function(){},Yn.setHTML5CodebaseVersion=function(Qe,rt){var pt=parseFloat(Qe);if(pt!==NaN&&pt<5){console.log("The GeoGebra HTML5 codebase version "+pt+" is deprecated. Using version latest instead.");return}ve=Qe,Re(Qe,rt)},Yn.getHTML5CodebaseVersion=function(){return E},Yn.getParameters=function(){return Ce},Yn.setFontsCSSURL=function(Qe){de=Qe},Yn.setGiacJSURL=function(Qe){},Yn.setJNLPFile=function(Qe){le=Qe},Yn.setJNLPBaseDir=function(Qe){},Yn.inject=function(){function Qe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var rt="auto",pt=Ce.id,At,gt=!1,Ft=0;Ft<arguments.length;Ft++){var Ct=arguments[Ft];typeof Ct=="string"?(Ct=Ct.toLowerCase(),Ct.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?rt=Ct:pt=arguments[Ft]):typeof Ct=="boolean"?gt=Ct:Ct instanceof HTMLElement&&(At=Ct)}Yt();function Yt(){if(!Oe){setTimeout(Yt,200);return}rt=Ke(rt);var zt=At||document.getElementById(pt);if(!zt){console.log("possibly bug on ajax loading? ");return}if(Yn.removeExistingApplet(zt,!1),Ce.width===void 0&&zt.clientWidth&&(Ce.width=zt.clientWidth),Ce.height===void 0&&zt.clientHeight&&(Ce.height=zt.clientHeight),!(Ce.width&&Ce.height)&&rt==="html5"&&(delete Ce.width,delete Ce.height),me=rt,rt==="screenshot")Ae(zt,Ce);else{var Xe=!1;Ce.hasOwnProperty("playButton")&&Ce.playButton||Ce.hasOwnProperty("clickToLoad")&&Ce.clickToLoad?Xe=!0:Ce.hasOwnProperty("playButtonAutoDecide")&&Ce.playButtonAutoDecide&&(Xe=(!re()||Qe())&&ce()),Xe?(me="screenshot",Ue(zt,Ce,gt,rt)):Be(zt,Ce,gt)}}};function re(){try{return window.self!==window.top}catch(Qe){return!0}}function ce(){return Ce.hasOwnProperty("screenshotGenerator")&&Ce.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Yn.getViews=function(){return te},Yn.isJavaInstalled=function(){return!1};var ge=function(Qe){var rt=function(Ft){var Ct=JSON.parse(Ft),Yt=function(Fe){return Fe.type=="G"||Fe.type=="E"},zt=Ct.elements?Ct.elements.filter(Yt)[0]:Ct;if(!zt||!zt.url){pt();return}Ce.fileName=zt.url,_e(zt.settings||{}),te.is3D=!0;var Xe="https://www.geogebra.org/images/";Yn.setPreviewImage(ne||zt.previewUrl,Xe+"GeoGebra_loading.png",Xe+"applet_play.png"),Qe()},pt=function(){Ce.onError&&Ce.onError(),nt("Error: Fetching material (id "+Ce.material_id+") failed.",Ce)},At=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",gt="/materials/"+Ce.material_id+"?scope=basic";ye("https://"+At+"/api/proxy.php?path="+encodeURIComponent(gt),rt,pt)};function _e(Qe){var rt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(pt){Qe[pt]=!!Qe[pt]}),rt.forEach(function(pt){Ce[pt]===void 0&&Qe[pt]!==void 0&&(Ce[pt]=Qe[pt])}),Ce.showToolBarHelp===void 0&&(Ce.showToolBarHelp=Ce.showToolBar)}function ye(Qe,rt,pt){var At=new XMLHttpRequest;At.open("GET",Qe),At.onload=function(){rt(At.responseText)},At.onerror=pt,At.send()}Yn.isHTML5Installed=function(){return!0},Yn.getLoadedAppletType=function(){return me},Yn.setPreviewImage=function(Qe,rt,pt){ne=Qe,oe=rt,se=pt},Yn.removeExistingApplet=function(Qe,rt){var pt;typeof Qe=="string"&&(Qe=document.getElementById(Qe)),me=null;var At=null;for(pt=0;pt<Qe.childNodes.length;pt++){var gt=Qe.childNodes[pt],Ft=gt.className;Ft==="applet_screenshot"?rt?(gt.style.display="block",me="screenshot"):gt.style.display="none":Ft!=="applet_scaler prerender"&&(Qe.removeChild(gt),At=Ft&&Ft.indexOf("appletParameters")!=-1?gt.id:null,pt--)}var Ct=Ce.id!==void 0?Ce.id:At,Yt=window[Ct];Yt&&typeof Yt.getBase64=="function"&&(Yt.remove(),window[Ct]=null)},Yn.refreshHitPoints=function(){if(x(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Qe=Yn.getAppletObject();return Qe&&typeof Qe.recalculateEnvironments=="function"?(Qe.recalculateEnvironments(),!0):!1},Yn.startAnimation=function(){var Qe=Yn.getAppletObject();return Qe&&typeof Qe.startAnimation=="function"?(Qe.startAnimation(),!0):!1},Yn.stopAnimation=function(){var Qe=Yn.getAppletObject();return Qe&&typeof Qe.stopAnimation=="function"?(Qe.stopAnimation(),!0):!1},Yn.getAppletObject=function(){var Qe=Ce.id!==void 0?Ce.id:"ggbApplet";return window[Qe]},Yn.resize=function(){};var be=function(Qe,rt,pt){var At=document.createElement("param");At.setAttribute("name",rt),At.setAttribute("value",pt),Qe.appendChild(At)},Se=function(Qe){return Qe&&Qe!=="false"},Be=function(Qe,rt,pt){x(E)<=4.2&&(pt=!0);var At=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==E||ggbHTML5LoadedCodebaseIsWebSimple&&!z)&&(At=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var gt=document.createElement("div");gt.classList.add("appletParameters","notranslate");var Ft=rt.width,Ct=rt.height;if(rt.disableAutoScale=rt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():rt.disableAutoScale,rt.width!==void 0)if(x(E)<=4.4)Se(rt.showToolBar)&&(rt.height-=7),Se(rt.showAlgebraInput)&&(rt.height-=37),rt.width<605&&Se(rt.showToolBar)&&(rt.width=605,Ft=605);else{var Yt=100;(Se(rt.showToolBar)||Se(rt.showMenuBar))&&(rt.hasOwnProperty("customToolBar")&&(rt.customToolbar=rt.customToolBar),Yt=Se(rt.showMenuBar)?245:155),Ft<Yt&&(rt.width=Yt,Ft=Yt)}gt.style.border="none",gt.style.display="inline-block";for(var zt in rt)rt.hasOwnProperty(zt)&&zt!=="appletOnLoad"&>.setAttribute("data-param-"+zt,rt[zt]);de&>.setAttribute("data-param-fontscssurl",de),Yn.resize=function(){GGBAppletUtils.responsiveResize(Qe,rt)},window.addEventListener("resize",function(mt){Yn.resize()});var Xe=typeof rt.appletOnLoad=="function"?rt.appletOnLoad:function(){};if(!pt&&rt.width!==void 0){rt.hasOwnProperty("showSplash")||gt.setAttribute("data-param-showSplash","false");var Fe=Qe.querySelector(".applet_scaler.prerender"),Le=Fe!==null;if(Le)var Ze=Fe.querySelector(".ggb_preview");else{var Ze=ze(Ft,Ct,rt.borderColor,!1);Fe=document.createElement("div"),Fe.className="applet_scaler",Fe.style.position="relative",Fe.style.display="block",Fe.style.width=Ft+"px",Fe.style.height=Ct+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Fe,"66%"),x(E)>=5?(rt.appletOnLoad=function(mt){var Lt=Qe.querySelector(".ggb_preview");Lt&&Lt.parentNode.removeChild(Lt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Fe),window.GGBT_wsf_view&&$(window).trigger("resize"),Xe(mt)},Le||Fe.appendChild(Ze)):gt.appendChild(Ze),Fe.appendChild(gt),Le||Qe.appendChild(Fe),setTimeout(function(){Yn.resize()},1)}else{var et=document.createElement("div");et.className="applet_scaler",et.style.position="relative",et.style.display="block",et.appendChild(gt),Qe.appendChild(et),rt.appletOnLoad=function(mt){Yn.resize(),Xe(mt)}}function He(mt,Lt){Lt&&typeof Lt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(mt,Lt.appletOnLoad):renderGGBElement(mt),nt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Lt)}function We(mt,Lt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:mt,params:Lt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(ft){He(ft.article,ft.params)}),html5AppletsToProcess=null)},x(E)<5&&(mt.className+=" geogebraweb")):He(mt,Lt)}if(At){scriptLoadStarted=!0;for(var tt=0;tt<gt.childNodes.length;tt++){var at=gt.childNodes[tt].tagName;at==="TABLE"&&(gt.removeChild(gt.childNodes[tt]),tt--)}if(ggbHTML5LoadedScript!==null){var ot=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');ot!=null&&ot.parentNode.removeChild(ot)}var ct=document.createElement("script"),lt=function(){We(gt,rt)};ct.src=ae+b,ggbHTML5LoadedCodebaseIsWebSimple=z,ggbHTML5LoadedCodebaseVersion=E,ggbHTML5LoadedScript=ct.src,nt("GeoGebra HTML5 codebase loaded: '"+ae+"'.",rt),!ue&&(!ve||ve=="5.0")?(z?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),lt()):ae.requirejs?__webpack_require__.e(4510).then(function(){var mt=[__webpack_require__(4510)];lt.apply(null,mt)}.bind(this)).catch(__webpack_require__.oe):(ct.onload=lt,Qe.appendChild(ct))}else We(gt,rt);rt.height=Ct,rt.width=Ft},Ae=function(Qe,rt,pt){var At=ze(rt.width,rt.height,rt.borderColor,pt),gt=document.createElement("div");gt.style.position="relative",gt.style.display="block",gt.style.width=rt.width+"px",gt.style.height=rt.height+"px",gt.className="applet_screenshot applet_scaler"+(pt?" applet_screenshot_play":""),gt.appendChild(At);var Ft=GGBAppletUtils.getScale(rt,Qe,pt);pt?(Qe.appendChild(Pe()),window.GGBT_wsf_view||(Qe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(gt,"66%"),Qe.appendChild(gt),Ft!==1&&!isNaN(Ft)&&(GGBAppletUtils.scaleElement(gt,Ft),gt.style.width=rt.width+"px",gt.style.height=rt.height+"px",gt.parentNode.style.width=rt.width*Ft+"px",gt.parentNode.style.height=rt.height*Ft+"px"),Yn.resize=function(){we(Qe,At,gt,pt)},window.addEventListener("resize",function(Ct){Yn.resize()}),Yn.resize()};function we(Qe,rt,pt,At){if(Qe.contains(rt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Qe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Qe)}var gt=GGBAppletUtils.getScale(Ce,Qe,At);pt.parentNode!==null&&(!isNaN(gt)&>!==1?(GGBAppletUtils.scaleElement(pt,gt),pt.parentNode.style.width=Ce.width*gt+"px",pt.parentNode.style.height=Ce.height*gt+"px"):(GGBAppletUtils.scaleElement(pt,1),pt.parentNode.style.width=Ce.width+"px",pt.parentNode.style.height=Ce.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Qe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Yn.onExitFullscreen=function(Qe,rt){rt.appendChild(Qe)};var Ue=function(Qe,rt,pt,At){Ae(Qe,rt,!0);for(var gt=function(){var Yt=[];for(Ct=0;Ct<Qe.childNodes.length;Ct++)Yt.push(Qe.childNodes[Ct]);if(window.GGBT_wsf_view){var zt=window.GGBT_wsf_view.renderFullScreen(Qe,rt.id),Xe=document.getElementById("fullscreencontainer"),Fe=jQuery(Qe).find(".fullscreencontent");Fe.length>0?(zt.remove(),Fe.attr("id","fullscreencontent").show(),jQuery(Xe).append(Fe),window.dispatchEvent(new Event("resize"))):Be(zt,rt,!1),window.GGBT_wsf_view.launchFullScreen(Xe)}else me=At,Be(Qe,rt,!1);if(!window.GGBT_wsf_view)for(Ct=0;Ct<Yt.length;Ct++)Qe.removeChild(Yt[Ct])},Ft=Qe.getElementsByClassName("ggb_preview_play"),Ct=0;Ct<Ft.length;Ct++)Ft[Ct].addEventListener("click",gt,!1),Ft[Ct].addEventListener("ontouchstart",gt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Qe),ce()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Pe=function(){var Qe=document.createElement("div");if(Qe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var rt='.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");}',pt=document.createElement("style");pt.styleSheet?pt.styleSheet.cssText=rt:pt.appendChild(document.createTextNode(rt)),document.getElementsByTagName("head")[0].appendChild(pt)}return Qe},ze=function(Qe,rt,pt,At){var gt=document.createElement("div");gt.className="ggb_preview",gt.style.position="absolute",gt.style.zIndex="90",gt.style.width=Qe-2+"px",gt.style.height=rt-2+"px",gt.style.top="0px",gt.style.left="0px",gt.style.overflow="hidden",gt.style.backgroundColor="white";var Ft="lightgrey";pt!==void 0&&(pt==="none"?Ft="transparent":Ft=pt),gt.style.border="1px solid "+Ft;var Ct=document.createElement("img");if(Ct.style.position="relative",Ct.style.zIndex="1000",Ct.style.top="-1px",Ct.style.left="-1px",ne!==null&&Ct.setAttribute("src",ne),Ct.style.opacity=.7,oe!==null){var Yt,zt,Xe;if(!At){Yt=document.createElement("img"),Yt.style.position="absolute",Yt.style.zIndex="1001",Yt.style.opacity=1,Ct.style.opacity=.3,zt=360,zt>Qe/4*3&&(zt=Qe/4*3),Xe=zt/5.8,Yt.setAttribute("src",oe),Yt.setAttribute("width",zt),Yt.setAttribute("height",Xe);var Fe=(Qe-zt)/2,Le=(rt-Xe)/2;Yt.style.left=Fe+"px",Yt.style.top=Le+"px",gt.appendChild(Yt)}}return gt.appendChild(Ct),gt},Ke=function(Qe){return Qe=Qe.toLowerCase(),Qe==="html5"||Qe==="screenshot"?Qe:"html5"},Ne=["web","webSimple","web3d","tablet","tablet3d","phone"],Re=function(Qe,rt){if(E=Qe,rt){$e(E,!0);return}var pt=!Ye;if(pt){var At=x(E);!isNaN(At)&&At<4.4&&(pt=!1)}var gt,Ft;window.location.protocol.substr(0,4)==="http"?gt=window.location.protocol:gt="http:";var Ct=E.indexOf("//");Ct>0?Ft=E:Ct===0?Ft=gt+E:Ft="https://www.geogebra.org/apps/5.2.814.0/";for(var Yt in Ne)if(E.slice(Ne[Yt].length*-1)===Ne[Yt]||E.slice((Ne[Yt].length+1)*-1)===Ne[Yt]+"/"){$e(Ft,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&pt&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!Se(Ce.showToolBar)&&!Se(Ce.showMenuBar)&&!Se(Ce.showAlgebraInput)&&!Se(Ce.enableRightClick)&&(!Ce.appName||Ce.appName=="classic")?Ft+="webSimple/":Ft+="web3d/",$e(Ft,!1)},$e=function(Qe,rt){if(Qe.requirejs){ae=Qe;return}Qe.slice(-1)!=="/"&&(Qe+="/"),ae=Qe,rt===null&&(rt=Qe.indexOf("http")===-1),ie=rt,b="web.nocache.js",z=!1;var pt=ae.split("/");pt.length>1&&(!rt&&pt[pt.length-2]==="webSimple"?(b="webSimple.nocache.js",z=!0):Ne.indexOf(pt[pt.length-2])>=0&&(b=pt[pt.length-2]+".nocache.js")),pt=Qe.split("/"),E=pt[pt.length-3],E.substr(0,4)==="test"?E=E.substr(4,1)+"."+E.substr(5,1):(E.substr(0,3)==="war"||E.substr(0,4)==="beta")&&(E="5.0");var At=parseFloat(E);At!==NaN&&At<5&&Qe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+At+" is deprecated. Using version latest instead."),Re("5.0",rt))},nt=function(Qe,rt){window.console&&window.console.log&&(!rt||typeof rt.showLogging=="undefined"||rt.showLogging&&rt.showLogging!=="false")&&console.log(Qe)};Ce.material_id!==void 0?ge(ut):ut();function ut(){var Qe=en;ve!==null?Qe=ve:parseFloat(Qe)<5&&(Qe="5.0"),Re(Qe,!1),ue!==null&&$e(ue,ie),Oe=!0}return Yn},GGBAppletUtils=function(){"use strict";function Yn(){return window.GGBT_wsf_edit!==void 0}function en(Oe,ve){ve!=1?(Oe.style.transformOrigin="0% 0% 0px",Oe.style.webkitTransformOrigin="0% 0% 0px",Oe.style.transform="scale("+ve+","+ve+")",Oe.style.webkitTransform="scale("+ve+","+ve+")",Oe.style.maxWidth="initial",Oe.querySelector(".ggb_preview")!==null&&(Oe.querySelector(".ggb_preview").style.maxWidth="initial"),Oe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Oe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Oe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Oe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Oe.style.transform="none",Oe.style.webkitTransform="none")}function Ce(Oe,ve,ue,fe,he,le){var ae=null;if(le!=null&&le!="")for(var ie=Oe.parentNode;ie!=null;)if((" "+ie.className+" ").indexOf(" "+le+" ")>-1){ae=ie;break}else ie=ie.parentNode;var me=0,E=0,b=0,z=0,ne=0,oe=0,se=0;if(ae)me=ae.offsetWidth,E=Math.max(fe?ae.offsetWidth:0,ae.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(me=Math.min(window.innerWidth,document.documentElement.clientWidth),E=Math.min(window.innerHeight,document.documentElement.clientHeight),b=me):(me=window.innerWidth,E=window.innerHeight,b=window.innerWidth),Oe){var de=Oe.getBoundingClientRect();de.left>0&&de.left<=me&&(he===void 0||!he)&&(document.dir==="rtl"?(ne=me-de.width-de.left,oe=b<=480?10:30):(oe=de.left,ne=b<=480?10:30),z=oe+ne)}if(Oe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var a=Oe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(z=40,se=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(z=0,se=40)}}return Oe&&((ue===void 0||!ue)&&ve>0&&ve+z<me?me=ve:me-=z,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ue===void 0||!ue)&&(E-=se)),{width:me,height:E}}function te(Oe,ve,ue,fe,he){if(Oe.isScreenshoGenerator)return 1;var le=fe!==void 0&&fe,ae=Oe.noScaleMargin!=null&&Oe.noScaleMargin,ie=function(a){return a&&a!=="false"},me=ie(Oe.autoHeight),E=Ce(ve,Oe.width,ue,me,le&&window.GGBT_wsf_view||ae,he),b=parseInt(E.width),z=Oe.width,ne=Oe.height;if(z===void 0){var oe=ve.querySelector(".appletParameters");oe&&(z=oe.offsetWidth,ne=oe.offsetHeight)}var se=b/z,de=le?1:E.height/ne;return ue!==void 0&&!ue&&(se=Math.min(1,se),de=Math.min(1,de)),Math.min(se,de)}function Ye(Oe,ve,ue){var fe=1,he,le=!1;if(Oe.hasOwnProperty("allowUpscale")&&(le=Oe.allowUpscale),Oe.hasOwnProperty("scale")&&(fe=parseFloat(Oe.scale),(isNaN(fe)||fe===null||fe===0)&&(fe=1),fe>1&&(le=!0)),ve&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(le=!0),!(Oe.hasOwnProperty("disableAutoScale")&&Oe.disableAutoScale))he=te(Oe,ve,le,ue,Oe.scaleContainerClass);else return fe;return le&&(!Oe.hasOwnProperty("scale")||fe===1)?he:Math.min(fe,he)}function Me(Oe){var ve=Math.min(window.innerWidth,document.documentElement.clientWidth),ue=Math.min(window.innerHeight,document.documentElement.clientHeight),fe=Oe.getBoundingClientRect(),he=(ve-fe.width)/2,le=(ue-fe.height)/2;le<0&&(le=0),Oe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(he<40?Oe.style.left="40px":Oe.style.left=he+"px",Oe.style.top=le+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(le<40?Oe.style.top="40px":Oe.style.top=le+"px",Oe.style.left=he+"px")}function pe(Oe,ve){var ue=Oe.querySelector(".appletParameters");if(ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ve.id!==ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Oe)}if(ue.parentElement&&/fullscreen/.test(ue.parentElement.className))return;var fe=Ye(ve,Oe);Yn()&&ue.setAttribute("data-param-scale",fe);for(var he=null,le=0;le<Oe.childNodes.length;le++)if(Oe.childNodes[le].className!==void 0&&Oe.childNodes[le].className.match(/^applet_scaler/)){he=Oe.childNodes[le];break}if(he!==null&&he.querySelector(".noscale")!==null)return;var ae=ve.id!==void 0?ve.id:"ggbApplet",ie=window[ae];(ie==null||!ie.recalculateEnvironments)&&he!==null&&!he.className.match(/fullscreen/)&&(he.parentNode.style.transform="",!isNaN(fe)&&fe!==1?(he.parentNode.style.width=ve.width*fe+"px",he.parentNode.style.height=ve.height*fe+"px",en(he,fe)):(en(he,1),he.parentNode.style.width=ve.width+"px",he.parentNode.style.height=ve.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Me(Oe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ue).parents(".content-added-content"))}}return{responsiveResize:pe,isFlexibleWorksheetEditor:Yn,positionCenter:Me,getScale:Ye,scaleElement:en}}();__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 Yn=n.location.search;return Yn.indexOf(J)!=-1||Yn.indexOf(K)!=-1}function q(Yn,en){}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(Yn){var en=s[L].bindings;s[L].bindings=function(){for(var Ce=en?en():{},te=Yn[webModule.__softPermutationId],Ye=O;Ye<te.length;Ye++){var Me=te[Ye];Ce[Me[O]]=Me[P]}return Ce}};var t;function u(){return v(),t}function v(){if(!t){var Yn=o.createElement(Q);if(Yn.id=L,Yn.style.cssText=R+S,Yn.tabIndex=-1,o.body.appendChild(Yn),t=Yn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var en=document.compatMode==U?V:W;t.write(en+X),t.close()}}}function w(Yn){function en(te){function Ye(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Me=Ye();if(Me){te();return}function pe(){if(!Me){if(!Ye())return;Me=!0,te(),o.removeEventListener&&o.removeEventListener(Z,pe,!1),Oe&&clearInterval(Oe)}}o.addEventListener&&o.addEventListener(Z,pe,!1);var Oe=setInterval(function(){pe()},$)}function Ce(te){var Ye=u(),Me=Ye.body,pe=Ye.createElement(_);pe.language=ab,pe.crossOrigin=W,pe.src=te,webModule.__errFn&&(pe.onerror=function(){webModule.__errFn(L,new Error(bb+te))}),Me.appendChild(pe)}en(function(){Ce(Yn)})}webModule.__startLoadingFragment=function(Yn){return C(Yn)},webModule.__installRunAsyncCode=function(Yn){var en=u(),Ce=en.body,te=en.createElement(_);te.language=ab,te.text=Yn,Ce.appendChild(te),Ce.removeChild(te)};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(Yn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Yn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Yn){var en=c[Yn];return en==null?null:en},r=d,webModule.__errFn=e}function B(){function Yn(Oe){var ve=Oe.lastIndexOf(rb);ve==-1&&(ve=Oe.length);var ue=Oe.indexOf(sb);ue==-1&&(ue=Oe.length);var fe=Oe.lastIndexOf(tb,Math.min(ue,ve));return fe>=O?Oe.substring(O,fe+P):W}function en(Oe){if(!Oe.match(/^\w+:\/\//)){var ve=o.createElement(ub);ve.src=Oe+vb,Oe=Yn(ve.src)}return Oe}function Ce(){var Oe=__gwt_getMetaProperty(wb);return Oe!=null?Oe:W}function te(){for(var Oe=o.getElementsByTagName(_),ve=O;ve<Oe.length;++ve)if(Oe[ve].src.indexOf(xb)!=-1)return Yn(Oe[ve].src);return W}function Ye(){var Oe=o.getElementsByTagName(yb);return Oe.length>O?Oe[Oe.length-P].href:W}function Me(){var Oe=o.location;return Oe.href==Oe.protocol+zb+Oe.host+Oe.pathname+Oe.search+Oe.hash}var pe=Ce();return pe==W&&(pe=te()),pe==W&&(pe=Ye()),pe==W&&Me()&&(pe=Yn(o.location.href)),pe=en(pe),pe}function C(Yn){return Yn.match(/^\//)||Yn.match(/^[a-zA-Z]+:\/\//)?Yn:webModule.__moduleBase+Yn}function D(){var Yn=[],en=O,Ce=[],te=[];function Ye(Oe){var ve=te[Oe](),ue=Ce[Oe];if(ve in ue)return ve;var fe=[];for(var he in ue)fe[ue[he]]=he;throw r&&r(Oe,fe,ve),null}if(__gwt_isKnownPropertyValue=function(Oe,ve){return ve in Ce[Oe]},webModule.__getPropMap=function(){var Oe={};for(var ve in Ce)Ce.hasOwnProperty(ve)&&(Oe[ve]=Ye(ve));return Oe},webModule.__computePropValue=Ye,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Me;try{Me=Cb;var pe=Me.indexOf(Db);pe!=-1&&(en=parseInt(Me.substring(pe+P),$),Me=Me.substring(O,pe))}catch(Oe){}return webModule.__softPermutationId=en,C(Me+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})()},43065:function(Yn,en){var Ce=(te,Ye,Me)=>new Promise((pe,Oe)=>{var ve=he=>{try{fe(Me.next(he))}catch(le){Oe(le)}},ue=he=>{try{fe(Me.throw(he))}catch(le){Oe(le)}},fe=he=>he.done?pe(he.value):Promise.resolve(he.value).then(ve,ue);fe((Me=Me.apply(te,Ye)).next())});(function(te,Ye){Ye(en)})(this,function(te){"use strict";var Ye={value:()=>{}};function Me(){for(var De,ke=0,Ve=arguments.length,qe={};ke<Ve;++ke){if(!(De=arguments[ke]+"")||De in qe||/[\s.]/.test(De))throw new Error("illegal type: "+De);qe[De]=[]}return new pe(qe)}function pe(De){this._=De}function Oe(De,ke){return De.trim().split(/^|\s+/).map(function(Ve){var qe="",it=Ve.indexOf(".");if(it>=0&&(qe=Ve.slice(it+1),Ve=Ve.slice(0,it)),Ve&&!ke.hasOwnProperty(Ve))throw new Error("unknown type: "+Ve);return{type:Ve,name:qe}})}function ve(De,ke){for(var Ve,qe=0,it=De.length;qe<it;++qe)if((Ve=De[qe]).name===ke)return Ve.value}function ue(De,ke,Ve){for(var qe=0,it=De.length;qe<it;++qe)if(De[qe].name===ke){De[qe]=Ye,De=De.slice(0,qe).concat(De.slice(qe+1));break}return Ve!=null&&De.push({name:ke,value:Ve}),De}pe.prototype=Me.prototype={constructor:pe,on:function(De,ke){var Ve,qe=this._,it=Oe(De+"",qe),dt=-1,bt=it.length;if(!(arguments.length<2)){if(ke!=null&&typeof ke!="function")throw new Error("invalid callback: "+ke);for(;++dt<bt;)if(Ve=(De=it[dt]).type)qe[Ve]=ue(qe[Ve],De.name,ke);else if(ke==null)for(Ve in qe)qe[Ve]=ue(qe[Ve],De.name,null);return this}for(;++dt<bt;)if((Ve=(De=it[dt]).type)&&(Ve=ve(qe[Ve],De.name)))return Ve},copy:function(){var De={},ke=this._;for(var Ve in ke)De[Ve]=ke[Ve].slice();return new pe(De)},call:function(De,ke){if((Ve=arguments.length-2)>0)for(var Ve,qe,it=new Array(Ve),dt=0;dt<Ve;++dt)it[dt]=arguments[dt+2];if(!this._.hasOwnProperty(De))throw new Error("unknown type: "+De);for(dt=0,Ve=(qe=this._[De]).length;dt<Ve;++dt)qe[dt].value.apply(ke,it)},apply:function(De,ke,Ve){if(!this._.hasOwnProperty(De))throw new Error("unknown type: "+De);for(var qe=this._[De],it=0,dt=qe.length;it<dt;++it)qe[it].value.apply(ke,Ve)}};var fe="http://www.w3.org/1999/xhtml",he={svg:"http://www.w3.org/2000/svg",xhtml:fe,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function le(De){var ke=De+="",Ve=ke.indexOf(":");return Ve>=0&&(ke=De.slice(0,Ve))!=="xmlns"&&(De=De.slice(Ve+1)),he.hasOwnProperty(ke)?{space:he[ke],local:De}:De}function ae(De){return function(){var ke=this.ownerDocument,Ve=this.namespaceURI;return Ve===fe&&ke.documentElement.namespaceURI===fe?ke.createElement(De):ke.createElementNS(Ve,De)}}function ie(De){return function(){return this.ownerDocument.createElementNS(De.space,De.local)}}function me(De){var ke=le(De);return(ke.local?ie:ae)(ke)}function E(){}function b(De){return De==null?E:function(){return this.querySelector(De)}}function z(De){return De==null?[]:Array.isArray(De)?De:Array.from(De)}function ne(){return[]}function oe(De){return De==null?ne:function(){return this.querySelectorAll(De)}}function se(De){return function(){return this.matches(De)}}function de(De){return function(ke){return ke.matches(De)}}var a=Array.prototype.find;function x(){return this.firstElementChild}var re=Array.prototype.filter;function ce(){return Array.from(this.children)}function ge(De){return new Array(De.length)}function _e(De,ke){this.ownerDocument=De.ownerDocument,this.namespaceURI=De.namespaceURI,this._next=null,this._parent=De,this.__data__=ke}function ye(De){return function(){return De}}function be(De,ke,Ve,qe,it,dt){for(var bt,vt=0,Nt=ke.length,Pt=dt.length;vt<Pt;++vt)(bt=ke[vt])?(bt.__data__=dt[vt],qe[vt]=bt):Ve[vt]=new _e(De,dt[vt]);for(;vt<Nt;++vt)(bt=ke[vt])&&(it[vt]=bt)}function Se(De,ke,Ve,qe,it,dt,bt){var vt,Nt,Pt,Ht=new Map,$t=ke.length,hn=dt.length,Pn=new Array($t);for(vt=0;vt<$t;++vt)(Nt=ke[vt])&&(Pn[vt]=Pt=bt.call(Nt,Nt.__data__,vt,ke)+"",Ht.has(Pt)?it[vt]=Nt:Ht.set(Pt,Nt));for(vt=0;vt<hn;++vt)Pt=bt.call(De,dt[vt],vt,dt)+"",(Nt=Ht.get(Pt))?(qe[vt]=Nt,Nt.__data__=dt[vt],Ht.delete(Pt)):Ve[vt]=new _e(De,dt[vt]);for(vt=0;vt<$t;++vt)(Nt=ke[vt])&&Ht.get(Pn[vt])===Nt&&(it[vt]=Nt)}function Be(De){return De.__data__}function Ae(De){return typeof De=="object"&&"length"in De?De:Array.from(De)}function we(De,ke){return De<ke?-1:De>ke?1:De>=ke?0:NaN}function Ue(De){return function(){this.removeAttribute(De)}}function Pe(De){return function(){this.removeAttributeNS(De.space,De.local)}}function ze(De,ke){return function(){this.setAttribute(De,ke)}}function Ke(De,ke){return function(){this.setAttributeNS(De.space,De.local,ke)}}function Ne(De,ke){return function(){var Ve=ke.apply(this,arguments);Ve==null?this.removeAttribute(De):this.setAttribute(De,Ve)}}function Re(De,ke){return function(){var Ve=ke.apply(this,arguments);Ve==null?this.removeAttributeNS(De.space,De.local):this.setAttributeNS(De.space,De.local,Ve)}}function $e(De){return De.ownerDocument&&De.ownerDocument.defaultView||De.document&&De||De.defaultView}function nt(De){return function(){this.style.removeProperty(De)}}function ut(De,ke,Ve){return function(){this.style.setProperty(De,ke,Ve)}}function Qe(De,ke,Ve){return function(){var qe=ke.apply(this,arguments);qe==null?this.style.removeProperty(De):this.style.setProperty(De,qe,Ve)}}function rt(De,ke){return De.style.getPropertyValue(ke)||$e(De).getComputedStyle(De,null).getPropertyValue(ke)}function pt(De){return function(){delete this[De]}}function At(De,ke){return function(){this[De]=ke}}function gt(De,ke){return function(){var Ve=ke.apply(this,arguments);Ve==null?delete this[De]:this[De]=Ve}}function Ft(De){return De.trim().split(/^|\s+/)}function Ct(De){return De.classList||new Yt(De)}function Yt(De){this._node=De,this._names=Ft(De.getAttribute("class")||"")}function zt(De,ke){for(var Ve=Ct(De),qe=-1,it=ke.length;++qe<it;)Ve.add(ke[qe])}function Xe(De,ke){for(var Ve=Ct(De),qe=-1,it=ke.length;++qe<it;)Ve.remove(ke[qe])}function Fe(De){return function(){zt(this,De)}}function Le(De){return function(){Xe(this,De)}}function Ze(De,ke){return function(){(ke.apply(this,arguments)?zt:Xe)(this,De)}}function et(){this.textContent=""}function He(De){return function(){this.textContent=De}}function We(De){return function(){var ke=De.apply(this,arguments);this.textContent=ke==null?"":ke}}function tt(){this.innerHTML=""}function at(De){return function(){this.innerHTML=De}}function ot(De){return function(){var ke=De.apply(this,arguments);this.innerHTML=ke==null?"":ke}}function ct(){this.nextSibling&&this.parentNode.appendChild(this)}function lt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function mt(){return null}function Lt(){var De=this.parentNode;De&&De.removeChild(this)}function ft(){var De=this.cloneNode(!1),ke=this.parentNode;return ke?ke.insertBefore(De,this.nextSibling):De}function St(){var De=this.cloneNode(!0),ke=this.parentNode;return ke?ke.insertBefore(De,this.nextSibling):De}function nn(De){return De.trim().split(/^|\s+/).map(function(ke){var Ve="",qe=ke.indexOf(".");return qe>=0&&(Ve=ke.slice(qe+1),ke=ke.slice(0,qe)),{type:ke,name:Ve}})}function on(De){return function(){var ke=this.__on;if(ke){for(var Ve,qe=0,it=-1,dt=ke.length;qe<dt;++qe)Ve=ke[qe],De.type&&Ve.type!==De.type||Ve.name!==De.name?ke[++it]=Ve:this.removeEventListener(Ve.type,Ve.listener,Ve.options);++it?ke.length=it:delete this.__on}}}function yn(De,ke,Ve){return function(){var qe,it=this.__on,dt=function(Nt){return function(Pt){Nt.call(this,Pt,this.__data__)}}(ke);if(it){for(var bt=0,vt=it.length;bt<vt;++bt)if((qe=it[bt]).type===De.type&&qe.name===De.name)return this.removeEventListener(qe.type,qe.listener,qe.options),this.addEventListener(qe.type,qe.listener=dt,qe.options=Ve),void(qe.value=ke)}this.addEventListener(De.type,dt,Ve),qe={type:De.type,name:De.name,value:ke,listener:dt,options:Ve},it?it.push(qe):this.__on=[qe]}}function xn(De,ke,Ve){var qe=$e(De),it=qe.CustomEvent;typeof it=="function"?it=new it(ke,Ve):(it=qe.document.createEvent("Event"),Ve?(it.initEvent(ke,Ve.bubbles,Ve.cancelable),it.detail=Ve.detail):it.initEvent(ke,!1,!1)),De.dispatchEvent(it)}function an(De,ke){return function(){return xn(this,De,ke)}}function An(De,ke){return function(){return xn(this,De,ke.apply(this,arguments))}}_e.prototype={constructor:_e,appendChild:function(De){return this._parent.insertBefore(De,this._next)},insertBefore:function(De,ke){return this._parent.insertBefore(De,ke)},querySelector:function(De){return this._parent.querySelector(De)},querySelectorAll:function(De){return this._parent.querySelectorAll(De)}},Yt.prototype={add:function(De){this._names.indexOf(De)<0&&(this._names.push(De),this._node.setAttribute("class",this._names.join(" ")))},remove:function(De){var ke=this._names.indexOf(De);ke>=0&&(this._names.splice(ke,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(De){return this._names.indexOf(De)>=0}};var Jt=[null];function Ut(De,ke){this._groups=De,this._parents=ke}function rn(){return new Ut([[document.documentElement]],Jt)}function _n(De){return typeof De=="string"?new Ut([[document.querySelector(De)]],[document.documentElement]):new Ut([[De]],Jt)}function Bn(De,ke){if(De=function(dt){let bt;for(;bt=dt.sourceEvent;)dt=bt;return dt}(De),ke===void 0&&(ke=De.currentTarget),ke){var Ve=ke.ownerSVGElement||ke;if(Ve.createSVGPoint){var qe=Ve.createSVGPoint();return qe.x=De.clientX,qe.y=De.clientY,[(qe=qe.matrixTransform(ke.getScreenCTM().inverse())).x,qe.y]}if(ke.getBoundingClientRect){var it=ke.getBoundingClientRect();return[De.clientX-it.left-ke.clientLeft,De.clientY-it.top-ke.clientTop]}}return[De.pageX,De.pageY]}Ut.prototype=rn.prototype={constructor:Ut,select:function(De){typeof De!="function"&&(De=b(De));for(var ke=this._groups,Ve=ke.length,qe=new Array(Ve),it=0;it<Ve;++it)for(var dt,bt,vt=ke[it],Nt=vt.length,Pt=qe[it]=new Array(Nt),Ht=0;Ht<Nt;++Ht)(dt=vt[Ht])&&(bt=De.call(dt,dt.__data__,Ht,vt))&&("__data__"in dt&&(bt.__data__=dt.__data__),Pt[Ht]=bt);return new Ut(qe,this._parents)},selectAll:function(De){De=typeof De=="function"?function(Ht){return function(){return z(Ht.apply(this,arguments))}}(De):oe(De);for(var ke=this._groups,Ve=ke.length,qe=[],it=[],dt=0;dt<Ve;++dt)for(var bt,vt=ke[dt],Nt=vt.length,Pt=0;Pt<Nt;++Pt)(bt=vt[Pt])&&(qe.push(De.call(bt,bt.__data__,Pt,vt)),it.push(bt));return new Ut(qe,it)},selectChild:function(De){return this.select(De==null?x:function(ke){return function(){return a.call(this.children,ke)}}(typeof De=="function"?De:de(De)))},selectChildren:function(De){return this.selectAll(De==null?ce:function(ke){return function(){return re.call(this.children,ke)}}(typeof De=="function"?De:de(De)))},filter:function(De){typeof De!="function"&&(De=se(De));for(var ke=this._groups,Ve=ke.length,qe=new Array(Ve),it=0;it<Ve;++it)for(var dt,bt=ke[it],vt=bt.length,Nt=qe[it]=[],Pt=0;Pt<vt;++Pt)(dt=bt[Pt])&&De.call(dt,dt.__data__,Pt,bt)&&Nt.push(dt);return new Ut(qe,this._parents)},data:function(De,ke){if(!arguments.length)return Array.from(this,Be);var Ve=ke?Se:be,qe=this._parents,it=this._groups;typeof De!="function"&&(De=ye(De));for(var dt=it.length,bt=new Array(dt),vt=new Array(dt),Nt=new Array(dt),Pt=0;Pt<dt;++Pt){var Ht=qe[Pt],$t=it[Pt],hn=$t.length,Pn=Ae(De.call(Ht,Ht&&Ht.__data__,Pt,qe)),Dn=Pn.length,pn=vt[Pt]=new Array(Dn),bn=bt[Pt]=new Array(Dn),Gn=Nt[Pt]=new Array(hn);Ve(Ht,$t,pn,bn,Gn,Pn,ke);for(var Un,sr,cr=0,ni=0;cr<Dn;++cr)if(Un=pn[cr]){for(cr>=ni&&(ni=cr+1);!(sr=bn[ni])&&++ni<Dn;);Un._next=sr||null}}return(bt=new Ut(bt,qe))._enter=vt,bt._exit=Nt,bt},enter:function(){return new Ut(this._enter||this._groups.map(ge),this._parents)},exit:function(){return new Ut(this._exit||this._groups.map(ge),this._parents)},join:function(De,ke,Ve){var qe=this.enter(),it=this,dt=this.exit();return typeof De=="function"?(qe=De(qe))&&(qe=qe.selection()):qe=qe.append(De+""),ke!=null&&(it=ke(it))&&(it=it.selection()),Ve==null?dt.remove():Ve(dt),qe&&it?qe.merge(it).order():it},merge:function(De){for(var ke=De.selection?De.selection():De,Ve=this._groups,qe=ke._groups,it=Ve.length,dt=qe.length,bt=Math.min(it,dt),vt=new Array(it),Nt=0;Nt<bt;++Nt)for(var Pt,Ht=Ve[Nt],$t=qe[Nt],hn=Ht.length,Pn=vt[Nt]=new Array(hn),Dn=0;Dn<hn;++Dn)(Pt=Ht[Dn]||$t[Dn])&&(Pn[Dn]=Pt);for(;Nt<it;++Nt)vt[Nt]=Ve[Nt];return new Ut(vt,this._parents)},selection:function(){return this},order:function(){for(var De=this._groups,ke=-1,Ve=De.length;++ke<Ve;)for(var qe,it=De[ke],dt=it.length-1,bt=it[dt];--dt>=0;)(qe=it[dt])&&(bt&&4^qe.compareDocumentPosition(bt)&&bt.parentNode.insertBefore(qe,bt),bt=qe);return this},sort:function(De){function ke($t,hn){return $t&&hn?De($t.__data__,hn.__data__):!$t-!hn}De||(De=we);for(var Ve=this._groups,qe=Ve.length,it=new Array(qe),dt=0;dt<qe;++dt){for(var bt,vt=Ve[dt],Nt=vt.length,Pt=it[dt]=new Array(Nt),Ht=0;Ht<Nt;++Ht)(bt=vt[Ht])&&(Pt[Ht]=bt);Pt.sort(ke)}return new Ut(it,this._parents).order()},call:function(){var De=arguments[0];return arguments[0]=this,De.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var De=this._groups,ke=0,Ve=De.length;ke<Ve;++ke)for(var qe=De[ke],it=0,dt=qe.length;it<dt;++it){var bt=qe[it];if(bt)return bt}return null},size:function(){let De=0;for(const ke of this)++De;return De},empty:function(){return!this.node()},each:function(De){for(var ke=this._groups,Ve=0,qe=ke.length;Ve<qe;++Ve)for(var it,dt=ke[Ve],bt=0,vt=dt.length;bt<vt;++bt)(it=dt[bt])&&De.call(it,it.__data__,bt,dt);return this},attr:function(De,ke){var Ve=le(De);if(arguments.length<2){var qe=this.node();return Ve.local?qe.getAttributeNS(Ve.space,Ve.local):qe.getAttribute(Ve)}return this.each((ke==null?Ve.local?Pe:Ue:typeof ke=="function"?Ve.local?Re:Ne:Ve.local?Ke:ze)(Ve,ke))},style:function(De,ke,Ve){return arguments.length>1?this.each((ke==null?nt:typeof ke=="function"?Qe:ut)(De,ke,Ve==null?"":Ve)):rt(this.node(),De)},property:function(De,ke){return arguments.length>1?this.each((ke==null?pt:typeof ke=="function"?gt:At)(De,ke)):this.node()[De]},classed:function(De,ke){var Ve=Ft(De+"");if(arguments.length<2){for(var qe=Ct(this.node()),it=-1,dt=Ve.length;++it<dt;)if(!qe.contains(Ve[it]))return!1;return!0}return this.each((typeof ke=="function"?Ze:ke?Fe:Le)(Ve,ke))},text:function(De){return arguments.length?this.each(De==null?et:(typeof De=="function"?We:He)(De)):this.node().textContent},html:function(De){return arguments.length?this.each(De==null?tt:(typeof De=="function"?ot:at)(De)):this.node().innerHTML},raise:function(){return this.each(ct)},lower:function(){return this.each(lt)},append:function(De){var ke=typeof De=="function"?De:me(De);return this.select(function(){return this.appendChild(ke.apply(this,arguments))})},insert:function(De,ke){var Ve=typeof De=="function"?De:me(De),qe=ke==null?mt:typeof ke=="function"?ke:b(ke);return this.select(function(){return this.insertBefore(Ve.apply(this,arguments),qe.apply(this,arguments)||null)})},remove:function(){return this.each(Lt)},clone:function(De){return this.select(De?St:ft)},datum:function(De){return arguments.length?this.property("__data__",De):this.node().__data__},on:function(De,ke,Ve){var qe,it,dt=nn(De+""),bt=dt.length;if(!(arguments.length<2)){for(vt=ke?yn:on,qe=0;qe<bt;++qe)this.each(vt(dt[qe],ke,Ve));return this}var vt=this.node().__on;if(vt){for(var Nt,Pt=0,Ht=vt.length;Pt<Ht;++Pt)for(qe=0,Nt=vt[Pt];qe<bt;++qe)if((it=dt[qe]).type===Nt.type&&it.name===Nt.name)return Nt.value}},dispatch:function(De,ke){return this.each((typeof ke=="function"?An:an)(De,ke))},[Symbol.iterator]:function*(){for(var De=this._groups,ke=0,Ve=De.length;ke<Ve;++ke)for(var qe,it=De[ke],dt=0,bt=it.length;dt<bt;++dt)(qe=it[dt])&&(yield qe)}};const kt={passive:!1},ln={capture:!0,passive:!1};function Cn(De){De.stopImmediatePropagation()}function Mn(De){De.preventDefault(),De.stopImmediatePropagation()}function Qn(De){var ke=De.document.documentElement,Ve=_n(De).on("dragstart.drag",Mn,ln);"onselectstart"in ke?Ve.on("selectstart.drag",Mn,ln):(ke.__noselect=ke.style.MozUserSelect,ke.style.MozUserSelect="none")}function mr(De,ke){var Ve=De.document.documentElement,qe=_n(De).on("dragstart.drag",null);ke&&(qe.on("click.drag",Mn,ln),setTimeout(function(){qe.on("click.drag",null)},0)),"onselectstart"in Ve?qe.on("selectstart.drag",null):(Ve.style.MozUserSelect=Ve.__noselect,delete Ve.__noselect)}var lr=De=>()=>De;function Cr(De,{sourceEvent:ke,subject:Ve,target:qe,identifier:it,active:dt,x:bt,y:vt,dx:Nt,dy:Pt,dispatch:Ht}){Object.defineProperties(this,{type:{value:De,enumerable:!0,configurable:!0},sourceEvent:{value:ke,enumerable:!0,configurable:!0},subject:{value:Ve,enumerable:!0,configurable:!0},target:{value:qe,enumerable:!0,configurable:!0},identifier:{value:it,enumerable:!0,configurable:!0},active:{value:dt,enumerable:!0,configurable:!0},x:{value:bt,enumerable:!0,configurable:!0},y:{value:vt,enumerable:!0,configurable:!0},dx:{value:Nt,enumerable:!0,configurable:!0},dy:{value:Pt,enumerable:!0,configurable:!0},_:{value:Ht}})}function nr(De){return!De.ctrlKey&&!De.button}function ur(){return this.parentNode}function Nn(De,ke){return ke==null?{x:De.x,y:De.y}:ke}function In(){return navigator.maxTouchPoints||"ontouchstart"in this}function Wn(De,ke,Ve){De.prototype=ke.prototype=Ve,Ve.constructor=De}function Kn(De,ke){var Ve=Object.create(De.prototype);for(var qe in ke)Ve[qe]=ke[qe];return Ve}function Ln(){}Cr.prototype.on=function(){var De=this._.on.apply(this._,arguments);return De===this._?this:De};var $n=.7,ar=1/$n,dn="\\s*([+-]?\\d+)\\s*",Ie="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",je="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Je=/^#([0-9a-f]{3,8})$/,ht=new RegExp(`^rgb\\(${dn},${dn},${dn}\\)$`),Et=new RegExp(`^rgb\\(${je},${je},${je}\\)$`),Qt=new RegExp(`^rgba\\(${dn},${dn},${dn},${Ie}\\)$`),fn=new RegExp(`^rgba\\(${je},${je},${je},${Ie}\\)$`),sn=new RegExp(`^hsl\\(${Ie},${je},${je}\\)$`),mn=new RegExp(`^hsla\\(${Ie},${je},${je},${Ie}\\)$`),Zn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function tr(){return this.rgb().formatHex()}function Vt(){return this.rgb().formatRgb()}function Gt(De){var ke,Ve;return De=(De+"").trim().toLowerCase(),(ke=Je.exec(De))?(Ve=ke[1].length,ke=parseInt(ke[1],16),Ve===6?Rt(ke):Ve===3?new yt(ke>>8&15|ke>>4&240,ke>>4&15|240&ke,(15&ke)<<4|15&ke,1):Ve===8?jt(ke>>24&255,ke>>16&255,ke>>8&255,(255&ke)/255):Ve===4?jt(ke>>12&15|ke>>8&240,ke>>8&15|ke>>4&240,ke>>4&15|240&ke,((15&ke)<<4|15&ke)/255):null):(ke=ht.exec(De))?new yt(ke[1],ke[2],ke[3],1):(ke=Et.exec(De))?new yt(255*ke[1]/100,255*ke[2]/100,255*ke[3]/100,1):(ke=Qt.exec(De))?jt(ke[1],ke[2],ke[3],ke[4]):(ke=fn.exec(De))?jt(255*ke[1]/100,255*ke[2]/100,255*ke[3]/100,ke[4]):(ke=sn.exec(De))?Bt(ke[1],ke[2]/100,ke[3]/100,1):(ke=mn.exec(De))?Bt(ke[1],ke[2]/100,ke[3]/100,ke[4]):Zn.hasOwnProperty(De)?Rt(Zn[De]):De==="transparent"?new yt(NaN,NaN,NaN,0):null}function Rt(De){return new yt(De>>16&255,De>>8&255,255&De,1)}function jt(De,ke,Ve,qe){return qe<=0&&(De=ke=Ve=NaN),new yt(De,ke,Ve,qe)}function Mt(De){return De instanceof Ln||(De=Gt(De)),De?new yt((De=De.rgb()).r,De.g,De.b,De.opacity):new yt}function Kt(De,ke,Ve,qe){return arguments.length===1?Mt(De):new yt(De,ke,Ve,qe==null?1:qe)}function yt(De,ke,Ve,qe){this.r=+De,this.g=+ke,this.b=+Ve,this.opacity=+qe}function qt(){return`#${Dt(this.r)}${Dt(this.g)}${Dt(this.b)}`}function vn(){const De=Tt(this.opacity);return`${De===1?"rgb(":"rgba("}${It(this.r)}, ${It(this.g)}, ${It(this.b)}${De===1?")":`, ${De})`}`}function Tt(De){return isNaN(De)?1:Math.max(0,Math.min(1,De))}function It(De){return Math.max(0,Math.min(255,Math.round(De)||0))}function Dt(De){return((De=It(De))<16?"0":"")+De.toString(16)}function Bt(De,ke,Ve,qe){return qe<=0?De=ke=Ve=NaN:Ve<=0||Ve>=1?De=ke=NaN:ke<=0&&(De=NaN),new tn(De,ke,Ve,qe)}function Zt(De){if(De instanceof tn)return new tn(De.h,De.s,De.l,De.opacity);if(De instanceof Ln||(De=Gt(De)),!De)return new tn;if(De instanceof tn)return De;var ke=(De=De.rgb()).r/255,Ve=De.g/255,qe=De.b/255,it=Math.min(ke,Ve,qe),dt=Math.max(ke,Ve,qe),bt=NaN,vt=dt-it,Nt=(dt+it)/2;return vt?(bt=ke===dt?(Ve-qe)/vt+6*(Ve<qe):Ve===dt?(qe-ke)/vt+2:(ke-Ve)/vt+4,vt/=Nt<.5?dt+it:2-dt-it,bt*=60):vt=Nt>0&&Nt<1?0:bt,new tn(bt,vt,Nt,De.opacity)}function tn(De,ke,Ve,qe){this.h=+De,this.s=+ke,this.l=+Ve,this.opacity=+qe}function Tn(De){return(De=(De||0)%360)<0?De+360:De}function Fn(De){return Math.max(0,Math.min(1,De||0))}function dr(De,ke,Ve){return 255*(De<60?ke+(Ve-ke)*De/60:De<180?Ve:De<240?ke+(Ve-ke)*(240-De)/60:ke)}Wn(Ln,Gt,{copy(De){return Object.assign(new this.constructor,this,De)},displayable(){return this.rgb().displayable()},hex:tr,formatHex:tr,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Zt(this).formatHsl()},formatRgb:Vt,toString:Vt}),Wn(yt,Kt,Kn(Ln,{brighter(De){return De=De==null?ar:Math.pow(ar,De),new yt(this.r*De,this.g*De,this.b*De,this.opacity)},darker(De){return De=De==null?$n:Math.pow($n,De),new yt(this.r*De,this.g*De,this.b*De,this.opacity)},rgb(){return this},clamp(){return new yt(It(this.r),It(this.g),It(this.b),Tt(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:qt,formatHex:qt,formatHex8:function(){return`#${Dt(this.r)}${Dt(this.g)}${Dt(this.b)}${Dt(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:vn,toString:vn})),Wn(tn,function(De,ke,Ve,qe){return arguments.length===1?Zt(De):new tn(De,ke,Ve,qe==null?1:qe)},Kn(Ln,{brighter(De){return De=De==null?ar:Math.pow(ar,De),new tn(this.h,this.s,this.l*De,this.opacity)},darker(De){return De=De==null?$n:Math.pow($n,De),new tn(this.h,this.s,this.l*De,this.opacity)},rgb(){var De=this.h%360+360*(this.h<0),ke=isNaN(De)||isNaN(this.s)?0:this.s,Ve=this.l,qe=Ve+(Ve<.5?Ve:1-Ve)*ke,it=2*Ve-qe;return new yt(dr(De>=240?De-240:De+120,it,qe),dr(De,it,qe),dr(De<120?De+240:De-120,it,qe),this.opacity)},clamp(){return new tn(Tn(this.h),Fn(this.s),Fn(this.l),Tt(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const De=Tt(this.opacity);return`${De===1?"hsl(":"hsla("}${Tn(this.h)}, ${100*Fn(this.s)}%, ${100*Fn(this.l)}%${De===1?")":`, ${De})`}`}}));var _r=De=>()=>De;function Kr(De){return(De=+De)==1?Sr:function(ke,Ve){return Ve-ke?function(qe,it,dt){return qe=Math.pow(qe,dt),it=Math.pow(it,dt)-qe,dt=1/dt,function(bt){return Math.pow(qe+bt*it,dt)}}(ke,Ve,De):_r(isNaN(ke)?Ve:ke)}}function Sr(De,ke){var Ve=ke-De;return Ve?function(qe,it){return function(dt){return qe+dt*it}}(De,Ve):_r(isNaN(De)?ke:De)}var hr=function De(ke){var Ve=Kr(ke);function qe(it,dt){var bt=Ve((it=Kt(it)).r,(dt=Kt(dt)).r),vt=Ve(it.g,dt.g),Nt=Ve(it.b,dt.b),Pt=Sr(it.opacity,dt.opacity);return function(Ht){return it.r=bt(Ht),it.g=vt(Ht),it.b=Nt(Ht),it.opacity=Pt(Ht),it+""}}return qe.gamma=De,qe}(1);function Mr(De,ke){ke||(ke=[]);var Ve,qe=De?Math.min(ke.length,De.length):0,it=ke.slice();return function(dt){for(Ve=0;Ve<qe;++Ve)it[Ve]=De[Ve]*(1-dt)+ke[Ve]*dt;return it}}function Br(De,ke){var Ve,qe=ke?ke.length:0,it=De?Math.min(qe,De.length):0,dt=new Array(it),bt=new Array(qe);for(Ve=0;Ve<it;++Ve)dt[Ve]=Li(De[Ve],ke[Ve]);for(;Ve<qe;++Ve)bt[Ve]=ke[Ve];return function(vt){for(Ve=0;Ve<it;++Ve)bt[Ve]=dt[Ve](vt);return bt}}function Wr(De,ke){var Ve=new Date;return De=+De,ke=+ke,function(qe){return Ve.setTime(De*(1-qe)+ke*qe),Ve}}function Jn(De,ke){return De=+De,ke=+ke,function(Ve){return De*(1-Ve)+ke*Ve}}function ii(De,ke){var Ve,qe={},it={};for(Ve in De!==null&&typeof De=="object"||(De={}),ke!==null&&typeof ke=="object"||(ke={}),ke)Ve in De?qe[Ve]=Li(De[Ve],ke[Ve]):it[Ve]=ke[Ve];return function(dt){for(Ve in qe)it[Ve]=qe[Ve](dt);return it}}var Ur=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Gr=new RegExp(Ur.source,"g");function qr(De,ke){var Ve,qe,it,dt=Ur.lastIndex=Gr.lastIndex=0,bt=-1,vt=[],Nt=[];for(De+="",ke+="";(Ve=Ur.exec(De))&&(qe=Gr.exec(ke));)(it=qe.index)>dt&&(it=ke.slice(dt,it),vt[bt]?vt[bt]+=it:vt[++bt]=it),(Ve=Ve[0])===(qe=qe[0])?vt[bt]?vt[bt]+=qe:vt[++bt]=qe:(vt[++bt]=null,Nt.push({i:bt,x:Jn(Ve,qe)})),dt=Gr.lastIndex;return dt<ke.length&&(it=ke.slice(dt),vt[bt]?vt[bt]+=it:vt[++bt]=it),vt.length<2?Nt[0]?function(Pt){return function(Ht){return Pt(Ht)+""}}(Nt[0].x):function(Pt){return function(){return Pt}}(ke):(ke=Nt.length,function(Pt){for(var Ht,$t=0;$t<ke;++$t)vt[(Ht=Nt[$t]).i]=Ht.x(Pt);return vt.join("")})}function Li(De,ke){var Ve,qe=typeof ke;return ke==null||qe==="boolean"?_r(ke):(qe==="number"?Jn:qe==="string"?(Ve=Gt(ke))?(ke=Ve,hr):qr:ke instanceof Gt?hr:ke instanceof Date?Wr:function(it){return ArrayBuffer.isView(it)&&!(it instanceof DataView)}(ke)?Mr:Array.isArray(ke)?Br:typeof ke.valueOf!="function"&&typeof ke.toString!="function"||isNaN(ke)?ii:Jn)(De,ke)}var wi,ui=180/Math.PI,Qr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Di(De,ke,Ve,qe,it,dt){var bt,vt,Nt;return(bt=Math.sqrt(De*De+ke*ke))&&(De/=bt,ke/=bt),(Nt=De*Ve+ke*qe)&&(Ve-=De*Nt,qe-=ke*Nt),(vt=Math.sqrt(Ve*Ve+qe*qe))&&(Ve/=vt,qe/=vt,Nt/=vt),De*qe<ke*Ve&&(De=-De,ke=-ke,Nt=-Nt,bt=-bt),{translateX:it,translateY:dt,rotate:Math.atan2(ke,De)*ui,skewX:Math.atan(Nt)*ui,scaleX:bt,scaleY:vt}}function oi(De,ke,Ve,qe){function it(dt){return dt.length?dt.pop()+" ":""}return function(dt,bt){var vt=[],Nt=[];return dt=De(dt),bt=De(bt),function(Pt,Ht,$t,hn,Pn,Dn){if(Pt!==$t||Ht!==hn){var pn=Pn.push("translate(",null,ke,null,Ve);Dn.push({i:pn-4,x:Jn(Pt,$t)},{i:pn-2,x:Jn(Ht,hn)})}else($t||hn)&&Pn.push("translate("+$t+ke+hn+Ve)}(dt.translateX,dt.translateY,bt.translateX,bt.translateY,vt,Nt),function(Pt,Ht,$t,hn){Pt!==Ht?(Pt-Ht>180?Ht+=360:Ht-Pt>180&&(Pt+=360),hn.push({i:$t.push(it($t)+"rotate(",null,qe)-2,x:Jn(Pt,Ht)})):Ht&&$t.push(it($t)+"rotate("+Ht+qe)}(dt.rotate,bt.rotate,vt,Nt),function(Pt,Ht,$t,hn){Pt!==Ht?hn.push({i:$t.push(it($t)+"skewX(",null,qe)-2,x:Jn(Pt,Ht)}):Ht&&$t.push(it($t)+"skewX("+Ht+qe)}(dt.skewX,bt.skewX,vt,Nt),function(Pt,Ht,$t,hn,Pn,Dn){if(Pt!==$t||Ht!==hn){var pn=Pn.push(it(Pn)+"scale(",null,",",null,")");Dn.push({i:pn-4,x:Jn(Pt,$t)},{i:pn-2,x:Jn(Ht,hn)})}else $t===1&&hn===1||Pn.push(it(Pn)+"scale("+$t+","+hn+")")}(dt.scaleX,dt.scaleY,bt.scaleX,bt.scaleY,vt,Nt),dt=bt=null,function(Pt){for(var Ht,$t=-1,hn=Nt.length;++$t<hn;)vt[(Ht=Nt[$t]).i]=Ht.x(Pt);return vt.join("")}}}var di=oi(function(De){const ke=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(De+"");return ke.isIdentity?Qr:Di(ke.a,ke.b,ke.c,ke.d,ke.e,ke.f)},"px, ","px)","deg)"),ci=oi(function(De){return De==null?Qr:(wi||(wi=document.createElementNS("http://www.w3.org/2000/svg","g")),wi.setAttribute("transform",De),(De=wi.transform.baseVal.consolidate())?Di((De=De.matrix).a,De.b,De.c,De.d,De.e,De.f):Qr)},", ",")",")");function ki(De){return((De=Math.exp(De))+1/De)/2}var Ki,ua,kn=function De(ke,Ve,qe){function it(dt,bt){var vt,Nt,Pt=dt[0],Ht=dt[1],$t=dt[2],hn=bt[0],Pn=bt[1],Dn=bt[2],pn=hn-Pt,bn=Pn-Ht,Gn=pn*pn+bn*bn;if(Gn<1e-12)Nt=Math.log(Dn/$t)/ke,vt=function(Si){return[Pt+Si*pn,Ht+Si*bn,$t*Math.exp(ke*Si*Nt)]};else{var Un=Math.sqrt(Gn),sr=(Dn*Dn-$t*$t+qe*Gn)/(2*$t*Ve*Un),cr=(Dn*Dn-$t*$t-qe*Gn)/(2*Dn*Ve*Un),ni=Math.log(Math.sqrt(sr*sr+1)-sr),Tr=Math.log(Math.sqrt(cr*cr+1)-cr);Nt=(Tr-ni)/ke,vt=function(Si){var Ui=Si*Nt,Fi=ki(ni),jr=$t/(Ve*Un)*(Fi*function(Vr){return((Vr=Math.exp(2*Vr))-1)/(Vr+1)}(ke*Ui+ni)-function(Vr){return((Vr=Math.exp(Vr))-1/Vr)/2}(ni));return[Pt+jr*pn,Ht+jr*bn,$t*Fi/ki(ke*Ui+ni)]}}return vt.duration=1e3*Nt*ke/Math.SQRT2,vt}return it.rho=function(dt){var bt=Math.max(.001,+dt),vt=bt*bt;return De(bt,vt,vt*vt)},it}(Math.SQRT2,2,4),qi=0,Qi=0,ra=0,_i=0,Ti=0,Xr=0,rr=typeof performance=="object"&&performance.now?performance:Date,Dr=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(De){setTimeout(De,17)};function Fr(){return Ti||(Dr(or),Ti=rr.now()+Xr)}function or(){Ti=0}function ei(){this._call=this._time=this._next=null}function si(De,ke,Ve){var qe=new ei;return qe.restart(De,ke,Ve),qe}function wr(){Ti=(_i=rr.now())+Xr,qi=Qi=0;try{(function(){Fr(),++qi;for(var De,ke=Ki;ke;)(De=Ti-ke._time)>=0&&ke._call.call(void 0,De),ke=ke._next;--qi})()}finally{qi=0,function(){for(var De,ke,Ve=Ki,qe=1/0;Ve;)Ve._call?(qe>Ve._time&&(qe=Ve._time),De=Ve,Ve=Ve._next):(ke=Ve._next,Ve._next=null,Ve=De?De._next=ke:Ki=ke);ua=De,Hr(qe)}(),Ti=0}}function Ir(){var De=rr.now(),ke=De-_i;ke>1e3&&(Xr-=ke,_i=De)}function Hr(De){qi||(Qi&&(Qi=clearTimeout(Qi)),De-Ti>24?(De<1/0&&(Qi=setTimeout(wr,De-rr.now()-Xr)),ra&&(ra=clearInterval(ra))):(ra||(_i=rr.now(),ra=setInterval(Ir,1e3)),qi=1,Dr(wr)))}function ri(De,ke,Ve){var qe=new ei;return ke=ke==null?0:+ke,qe.restart(it=>{qe.stop(),De(it+ke)},ke,Ve),qe}ei.prototype=si.prototype={constructor:ei,restart:function(De,ke,Ve){if(typeof De!="function")throw new TypeError("callback is not a function");Ve=(Ve==null?Fr():+Ve)+(ke==null?0:+ke),this._next||ua===this||(ua?ua._next=this:Ki=this,ua=this),this._call=De,this._time=Ve,Hr()},stop:function(){this._call&&(this._call=null,this._time=1/0,Hr())}};var un=Me("start","end","cancel","interrupt"),Vn=[];function Sn(De,ke,Ve,qe,it,dt){var bt=De.__transition;if(bt){if(Ve in bt)return}else De.__transition={};(function(vt,Nt,Pt){var Ht,$t=vt.__transition;function hn(bn){Pt.state=1,Pt.timer.restart(Pn,Pt.delay,Pt.time),Pt.delay<=bn&&Pn(bn-Pt.delay)}function Pn(bn){var Gn,Un,sr,cr;if(Pt.state!==1)return pn();for(Gn in $t)if((cr=$t[Gn]).name===Pt.name){if(cr.state===3)return ri(Pn);cr.state===4?(cr.state=6,cr.timer.stop(),cr.on.call("interrupt",vt,vt.__data__,cr.index,cr.group),delete $t[Gn]):+Gn<Nt&&(cr.state=6,cr.timer.stop(),cr.on.call("cancel",vt,vt.__data__,cr.index,cr.group),delete $t[Gn])}if(ri(function(){Pt.state===3&&(Pt.state=4,Pt.timer.restart(Dn,Pt.delay,Pt.time),Dn(bn))}),Pt.state=2,Pt.on.call("start",vt,vt.__data__,Pt.index,Pt.group),Pt.state===2){for(Pt.state=3,Ht=new Array(sr=Pt.tween.length),Gn=0,Un=-1;Gn<sr;++Gn)(cr=Pt.tween[Gn].value.call(vt,vt.__data__,Pt.index,Pt.group))&&(Ht[++Un]=cr);Ht.length=Un+1}}function Dn(bn){for(var Gn=bn<Pt.duration?Pt.ease.call(null,bn/Pt.duration):(Pt.timer.restart(pn),Pt.state=5,1),Un=-1,sr=Ht.length;++Un<sr;)Ht[Un].call(vt,Gn);Pt.state===5&&(Pt.on.call("end",vt,vt.__data__,Pt.index,Pt.group),pn())}function pn(){for(var bn in Pt.state=6,Pt.timer.stop(),delete $t[Nt],$t)return;delete vt.__transition}$t[Nt]=Pt,Pt.timer=si(hn,0,Pt.time)})(De,Ve,{name:ke,index:qe,group:it,on:un,tween:Vn,time:dt.time,delay:dt.delay,duration:dt.duration,ease:dt.ease,timer:null,state:0})}function Rr(De,ke){var Ve=gn(De,ke);if(Ve.state>0)throw new Error("too late; already scheduled");return Ve}function ti(De,ke){var Ve=gn(De,ke);if(Ve.state>3)throw new Error("too late; already running");return Ve}function gn(De,ke){var Ve=De.__transition;if(!Ve||!(Ve=Ve[ke]))throw new Error("transition not found");return Ve}function mi(De,ke){var Ve,qe,it,dt=De.__transition,bt=!0;if(dt){for(it in ke=ke==null?null:ke+"",dt)(Ve=dt[it]).name===ke?(qe=Ve.state>2&&Ve.state<5,Ve.state=6,Ve.timer.stop(),Ve.on.call(qe?"interrupt":"cancel",De,De.__data__,Ve.index,Ve.group),delete dt[it]):bt=!1;bt&&delete De.__transition}}function Nr(De,ke){var Ve,qe;return function(){var it=ti(this,De),dt=it.tween;if(dt!==Ve){for(var bt=0,vt=(qe=Ve=dt).length;bt<vt;++bt)if(qe[bt].name===ke){(qe=qe.slice()).splice(bt,1);break}}it.tween=qe}}function Ar(De,ke,Ve){var qe,it;if(typeof Ve!="function")throw new Error;return function(){var dt=ti(this,De),bt=dt.tween;if(bt!==qe){it=(qe=bt).slice();for(var vt={name:ke,value:Ve},Nt=0,Pt=it.length;Nt<Pt;++Nt)if(it[Nt].name===ke){it[Nt]=vt;break}Nt===Pt&&it.push(vt)}dt.tween=it}}function pi(De,ke,Ve){var qe=De._id;return De.each(function(){var it=ti(this,qe);(it.value||(it.value={}))[ke]=Ve.apply(this,arguments)}),function(it){return gn(it,qe).value[ke]}}function Gi(De,ke){var Ve;return(typeof ke=="number"?Jn:ke instanceof Gt?hr:(Ve=Gt(ke))?(ke=Ve,hr):qr)(De,ke)}function gi(De){return function(){this.removeAttribute(De)}}function Wi(De){return function(){this.removeAttributeNS(De.space,De.local)}}function Jr(De,ke,Ve){var qe,it,dt=Ve+"";return function(){var bt=this.getAttribute(De);return bt===dt?null:bt===qe?it:it=ke(qe=bt,Ve)}}function li(De,ke,Ve){var qe,it,dt=Ve+"";return function(){var bt=this.getAttributeNS(De.space,De.local);return bt===dt?null:bt===qe?it:it=ke(qe=bt,Ve)}}function Zr(De,ke,Ve){var qe,it,dt;return function(){var bt,vt,Nt=Ve(this);if(Nt!=null)return(bt=this.getAttribute(De))===(vt=Nt+"")?null:bt===qe&&vt===it?dt:(it=vt,dt=ke(qe=bt,Nt));this.removeAttribute(De)}}function Vi(De,ke,Ve){var qe,it,dt;return function(){var bt,vt,Nt=Ve(this);if(Nt!=null)return(bt=this.getAttributeNS(De.space,De.local))===(vt=Nt+"")?null:bt===qe&&vt===it?dt:(it=vt,dt=ke(qe=bt,Nt));this.removeAttributeNS(De.space,De.local)}}function sa(De,ke){return function(Ve){this.setAttribute(De,ke.call(this,Ve))}}function vi(De,ke){return function(Ve){this.setAttributeNS(De.space,De.local,ke.call(this,Ve))}}function Ni(De,ke){var Ve,qe;function it(){var dt=ke.apply(this,arguments);return dt!==qe&&(Ve=(qe=dt)&&vi(De,dt)),Ve}return it._value=ke,it}function Ii(De,ke){var Ve,qe;function it(){var dt=ke.apply(this,arguments);return dt!==qe&&(Ve=(qe=dt)&&sa(De,dt)),Ve}return it._value=ke,it}function Mi(De,ke){return function(){Rr(this,De).delay=+ke.apply(this,arguments)}}function fa(De,ke){return ke=+ke,function(){Rr(this,De).delay=ke}}function ca(De,ke){return function(){ti(this,De).duration=+ke.apply(this,arguments)}}function la(De,ke){return ke=+ke,function(){ti(this,De).duration=ke}}function zi(De,ke){if(typeof ke!="function")throw new Error;return function(){ti(this,De).ease=ke}}function Da(De,ke,Ve){var qe,it,dt=function(bt){return(bt+"").trim().split(/^|\s+/).every(function(vt){var Nt=vt.indexOf(".");return Nt>=0&&(vt=vt.slice(0,Nt)),!vt||vt==="start"})}(ke)?Rr:ti;return function(){var bt=dt(this,De),vt=bt.on;vt!==qe&&(it=(qe=vt).copy()).on(ke,Ve),bt.on=it}}var Ca=rn.prototype.constructor;function Ra(De){return function(){this.style.removeProperty(De)}}function to(De,ke,Ve){return function(qe){this.style.setProperty(De,ke.call(this,qe),Ve)}}function bi(De,ke,Ve){var qe,it;function dt(){var bt=ke.apply(this,arguments);return bt!==it&&(qe=(it=bt)&&to(De,bt,Ve)),qe}return dt._value=ke,dt}function Yi(De){return function(ke){this.textContent=De.call(this,ke)}}function Ei(De){var ke,Ve;function qe(){var it=De.apply(this,arguments);return it!==Ve&&(ke=(Ve=it)&&Yi(it)),ke}return qe._value=De,qe}var Ci=0;function kr(De,ke,Ve,qe){this._groups=De,this._parents=ke,this._name=Ve,this._id=qe}function Zi(){return++Ci}var ma=rn.prototype;kr.prototype={constructor:kr,select:function(De){var ke=this._name,Ve=this._id;typeof De!="function"&&(De=b(De));for(var qe=this._groups,it=qe.length,dt=new Array(it),bt=0;bt<it;++bt)for(var vt,Nt,Pt=qe[bt],Ht=Pt.length,$t=dt[bt]=new Array(Ht),hn=0;hn<Ht;++hn)(vt=Pt[hn])&&(Nt=De.call(vt,vt.__data__,hn,Pt))&&("__data__"in vt&&(Nt.__data__=vt.__data__),$t[hn]=Nt,Sn($t[hn],ke,Ve,hn,$t,gn(vt,Ve)));return new kr(dt,this._parents,ke,Ve)},selectAll:function(De){var ke=this._name,Ve=this._id;typeof De!="function"&&(De=oe(De));for(var qe=this._groups,it=qe.length,dt=[],bt=[],vt=0;vt<it;++vt)for(var Nt,Pt=qe[vt],Ht=Pt.length,$t=0;$t<Ht;++$t)if(Nt=Pt[$t]){for(var hn,Pn=De.call(Nt,Nt.__data__,$t,Pt),Dn=gn(Nt,Ve),pn=0,bn=Pn.length;pn<bn;++pn)(hn=Pn[pn])&&Sn(hn,ke,Ve,pn,Pn,Dn);dt.push(Pn),bt.push(Nt)}return new kr(dt,bt,ke,Ve)},selectChild:ma.selectChild,selectChildren:ma.selectChildren,filter:function(De){typeof De!="function"&&(De=se(De));for(var ke=this._groups,Ve=ke.length,qe=new Array(Ve),it=0;it<Ve;++it)for(var dt,bt=ke[it],vt=bt.length,Nt=qe[it]=[],Pt=0;Pt<vt;++Pt)(dt=bt[Pt])&&De.call(dt,dt.__data__,Pt,bt)&&Nt.push(dt);return new kr(qe,this._parents,this._name,this._id)},merge:function(De){if(De._id!==this._id)throw new Error;for(var ke=this._groups,Ve=De._groups,qe=ke.length,it=Ve.length,dt=Math.min(qe,it),bt=new Array(qe),vt=0;vt<dt;++vt)for(var Nt,Pt=ke[vt],Ht=Ve[vt],$t=Pt.length,hn=bt[vt]=new Array($t),Pn=0;Pn<$t;++Pn)(Nt=Pt[Pn]||Ht[Pn])&&(hn[Pn]=Nt);for(;vt<qe;++vt)bt[vt]=ke[vt];return new kr(bt,this._parents,this._name,this._id)},selection:function(){return new Ca(this._groups,this._parents)},transition:function(){for(var De=this._name,ke=this._id,Ve=Zi(),qe=this._groups,it=qe.length,dt=0;dt<it;++dt)for(var bt,vt=qe[dt],Nt=vt.length,Pt=0;Pt<Nt;++Pt)if(bt=vt[Pt]){var Ht=gn(bt,ke);Sn(bt,De,Ve,Pt,vt,{time:Ht.time+Ht.delay+Ht.duration,delay:0,duration:Ht.duration,ease:Ht.ease})}return new kr(qe,this._parents,De,Ve)},call:ma.call,nodes:ma.nodes,node:ma.node,size:ma.size,empty:ma.empty,each:ma.each,on:function(De,ke){var Ve=this._id;return arguments.length<2?gn(this.node(),Ve).on.on(De):this.each(Da(Ve,De,ke))},attr:function(De,ke){var Ve=le(De),qe=Ve==="transform"?ci:Gi;return this.attrTween(De,typeof ke=="function"?(Ve.local?Vi:Zr)(Ve,qe,pi(this,"attr."+De,ke)):ke==null?(Ve.local?Wi:gi)(Ve):(Ve.local?li:Jr)(Ve,qe,ke))},attrTween:function(De,ke){var Ve="attr."+De;if(arguments.length<2)return(Ve=this.tween(Ve))&&Ve._value;if(ke==null)return this.tween(Ve,null);if(typeof ke!="function")throw new Error;var qe=le(De);return this.tween(Ve,(qe.local?Ni:Ii)(qe,ke))},style:function(De,ke,Ve){var qe=(De+="")=="transform"?di:Gi;return ke==null?this.styleTween(De,function(it,dt){var bt,vt,Nt;return function(){var Pt=rt(this,it),Ht=(this.style.removeProperty(it),rt(this,it));return Pt===Ht?null:Pt===bt&&Ht===vt?Nt:Nt=dt(bt=Pt,vt=Ht)}}(De,qe)).on("end.style."+De,Ra(De)):typeof ke=="function"?this.styleTween(De,function(it,dt,bt){var vt,Nt,Pt;return function(){var Ht=rt(this,it),$t=bt(this),hn=$t+"";return $t==null&&(this.style.removeProperty(it),hn=$t=rt(this,it)),Ht===hn?null:Ht===vt&&hn===Nt?Pt:(Nt=hn,Pt=dt(vt=Ht,$t))}}(De,qe,pi(this,"style."+De,ke))).each(function(it,dt){var bt,vt,Nt,Pt,Ht="style."+dt,$t="end."+Ht;return function(){var hn=ti(this,it),Pn=hn.on,Dn=hn.value[Ht]==null?Pt||(Pt=Ra(dt)):void 0;Pn===bt&&Nt===Dn||(vt=(bt=Pn).copy()).on($t,Nt=Dn),hn.on=vt}}(this._id,De)):this.styleTween(De,function(it,dt,bt){var vt,Nt,Pt=bt+"";return function(){var Ht=rt(this,it);return Ht===Pt?null:Ht===vt?Nt:Nt=dt(vt=Ht,bt)}}(De,qe,ke),Ve).on("end.style."+De,null)},styleTween:function(De,ke,Ve){var qe="style."+(De+="");if(arguments.length<2)return(qe=this.tween(qe))&&qe._value;if(ke==null)return this.tween(qe,null);if(typeof ke!="function")throw new Error;return this.tween(qe,bi(De,ke,Ve==null?"":Ve))},text:function(De){return this.tween("text",typeof De=="function"?function(ke){return function(){var Ve=ke(this);this.textContent=Ve==null?"":Ve}}(pi(this,"text",De)):function(ke){return function(){this.textContent=ke}}(De==null?"":De+""))},textTween:function(De){var ke="text";if(arguments.length<1)return(ke=this.tween(ke))&&ke._value;if(De==null)return this.tween(ke,null);if(typeof De!="function")throw new Error;return this.tween(ke,Ei(De))},remove:function(){return this.on("end.remove",function(De){return function(){var ke=this.parentNode;for(var Ve in this.__transition)if(+Ve!==De)return;ke&&ke.removeChild(this)}}(this._id))},tween:function(De,ke){var Ve=this._id;if(De+="",arguments.length<2){for(var qe,it=gn(this.node(),Ve).tween,dt=0,bt=it.length;dt<bt;++dt)if((qe=it[dt]).name===De)return qe.value;return null}return this.each((ke==null?Nr:Ar)(Ve,De,ke))},delay:function(De){var ke=this._id;return arguments.length?this.each((typeof De=="function"?Mi:fa)(ke,De)):gn(this.node(),ke).delay},duration:function(De){var ke=this._id;return arguments.length?this.each((typeof De=="function"?ca:la)(ke,De)):gn(this.node(),ke).duration},ease:function(De){var ke=this._id;return arguments.length?this.each(zi(ke,De)):gn(this.node(),ke).ease},easeVarying:function(De){if(typeof De!="function")throw new Error;return this.each(function(ke,Ve){return function(){var qe=Ve.apply(this,arguments);if(typeof qe!="function")throw new Error;ti(this,ke).ease=qe}}(this._id,De))},end:function(){var De,ke,Ve=this,qe=Ve._id,it=Ve.size();return new Promise(function(dt,bt){var vt={value:bt},Nt={value:function(){--it==0&&dt()}};Ve.each(function(){var Pt=ti(this,qe),Ht=Pt.on;Ht!==De&&((ke=(De=Ht).copy())._.cancel.push(vt),ke._.interrupt.push(vt),ke._.end.push(Nt)),Pt.on=ke}),it===0&&dt()})},[Symbol.iterator]:ma[Symbol.iterator]};var ba={time:null,delay:0,duration:250,ease:function(De){return((De*=2)<=1?De*De*De:(De-=2)*De*De+2)/2}};function ir(De,ke){for(var Ve;!(Ve=De.__transition)||!(Ve=Ve[ke]);)if(!(De=De.parentNode))throw new Error(`transition ${ke} not found`);return Ve}rn.prototype.interrupt=function(De){return this.each(function(){mi(this,De)})},rn.prototype.transition=function(De){var ke,Ve;De instanceof kr?(ke=De._id,De=De._name):(ke=Zi(),(Ve=ba).time=Fr(),De=De==null?null:De+"");for(var qe=this._groups,it=qe.length,dt=0;dt<it;++dt)for(var bt,vt=qe[dt],Nt=vt.length,Pt=0;Pt<Nt;++Pt)(bt=vt[Pt])&&Sn(bt,De,ke,Pt,vt,Ve||ir(bt,ke));return new kr(qe,this._parents,De,ke)};const Ji=Math.PI,Va=2*Ji,no=1e-6,Ya=Va-no;function xi(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function pa(){return new xi}function _a(De,ke,Ve,qe){if(isNaN(ke)||isNaN(Ve))return De;var it,dt,bt,vt,Nt,Pt,Ht,$t,hn,Pn=De._root,Dn={data:qe},pn=De._x0,bn=De._y0,Gn=De._x1,Un=De._y1;if(!Pn)return De._root=Dn,De;for(;Pn.length;)if((Pt=ke>=(dt=(pn+Gn)/2))?pn=dt:Gn=dt,(Ht=Ve>=(bt=(bn+Un)/2))?bn=bt:Un=bt,it=Pn,!(Pn=Pn[$t=Ht<<1|Pt]))return it[$t]=Dn,De;if(vt=+De._x.call(null,Pn.data),Nt=+De._y.call(null,Pn.data),ke===vt&&Ve===Nt)return Dn.next=Pn,it?it[$t]=Dn:De._root=Dn,De;do it=it?it[$t]=new Array(4):De._root=new Array(4),(Pt=ke>=(dt=(pn+Gn)/2))?pn=dt:Gn=dt,(Ht=Ve>=(bt=(bn+Un)/2))?bn=bt:Un=bt;while(($t=Ht<<1|Pt)==(hn=(Nt>=bt)<<1|vt>=dt));return it[hn]=Pn,it[$t]=Dn,De}function oa(De,ke,Ve,qe,it){this.node=De,this.x0=ke,this.y0=Ve,this.x1=qe,this.y1=it}function Wa(De){return De[0]}function Ka(De){return De[1]}function fo(De,ke,Ve){var qe=new Eo(ke==null?Wa:ke,Ve==null?Ka:Ve,NaN,NaN,NaN,NaN);return De==null?qe:qe.addAll(De)}function Eo(De,ke,Ve,qe,it,dt){this._x=De,this._y=ke,this._x0=Ve,this._y0=qe,this._x1=it,this._y1=dt,this._root=void 0}function io(De){for(var ke={data:De.data},Ve=ke;De=De.next;)Ve=Ve.next={data:De.data};return ke}xi.prototype=pa.prototype={constructor:xi,moveTo:function(De,ke){this._+="M"+(this._x0=this._x1=+De)+","+(this._y0=this._y1=+ke)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(De,ke){this._+="L"+(this._x1=+De)+","+(this._y1=+ke)},quadraticCurveTo:function(De,ke,Ve,qe){this._+="Q"+ +De+","+ +ke+","+(this._x1=+Ve)+","+(this._y1=+qe)},bezierCurveTo:function(De,ke,Ve,qe,it,dt){this._+="C"+ +De+","+ +ke+","+ +Ve+","+ +qe+","+(this._x1=+it)+","+(this._y1=+dt)},arcTo:function(De,ke,Ve,qe,it){De=+De,ke=+ke,Ve=+Ve,qe=+qe,it=+it;var dt=this._x1,bt=this._y1,vt=Ve-De,Nt=qe-ke,Pt=dt-De,Ht=bt-ke,$t=Pt*Pt+Ht*Ht;if(it<0)throw new Error("negative radius: "+it);if(this._x1===null)this._+="M"+(this._x1=De)+","+(this._y1=ke);else if($t>no)if(Math.abs(Ht*vt-Nt*Pt)>no&&it){var hn=Ve-dt,Pn=qe-bt,Dn=vt*vt+Nt*Nt,pn=hn*hn+Pn*Pn,bn=Math.sqrt(Dn),Gn=Math.sqrt($t),Un=it*Math.tan((Ji-Math.acos((Dn+$t-pn)/(2*bn*Gn)))/2),sr=Un/Gn,cr=Un/bn;Math.abs(sr-1)>no&&(this._+="L"+(De+sr*Pt)+","+(ke+sr*Ht)),this._+="A"+it+","+it+",0,0,"+ +(Ht*hn>Pt*Pn)+","+(this._x1=De+cr*vt)+","+(this._y1=ke+cr*Nt)}else this._+="L"+(this._x1=De)+","+(this._y1=ke)},arc:function(De,ke,Ve,qe,it,dt){De=+De,ke=+ke,dt=!!dt;var bt=(Ve=+Ve)*Math.cos(qe),vt=Ve*Math.sin(qe),Nt=De+bt,Pt=ke+vt,Ht=1^dt,$t=dt?qe-it:it-qe;if(Ve<0)throw new Error("negative radius: "+Ve);this._x1===null?this._+="M"+Nt+","+Pt:(Math.abs(this._x1-Nt)>no||Math.abs(this._y1-Pt)>no)&&(this._+="L"+Nt+","+Pt),Ve&&($t<0&&($t=$t%Va+Va),$t>Ya?this._+="A"+Ve+","+Ve+",0,1,"+Ht+","+(De-bt)+","+(ke-vt)+"A"+Ve+","+Ve+",0,1,"+Ht+","+(this._x1=Nt)+","+(this._y1=Pt):$t>no&&(this._+="A"+Ve+","+Ve+",0,"+ +($t>=Ji)+","+Ht+","+(this._x1=De+Ve*Math.cos(it))+","+(this._y1=ke+Ve*Math.sin(it))))},rect:function(De,ke,Ve,qe){this._+="M"+(this._x0=this._x1=+De)+","+(this._y0=this._y1=+ke)+"h"+ +Ve+"v"+ +qe+"h"+-Ve+"Z"},toString:function(){return this._}};var ao=fo.prototype=Eo.prototype;function Ba(De){return function(){return De}}function Fa(De){return 1e-6*(De()-.5)}function Wo(De){return De.x+De.vx}function Ta(De){return De.y+De.vy}function Oo(De){return De.index}function Do(De,ke){var Ve=De.get(ke);if(!Ve)throw new Error("node not found: "+ke);return Ve}function Xi(De){var ke,Ve,qe,it,dt,bt,vt=Oo,Nt=function(pn){return 1/Math.min(it[pn.source.index],it[pn.target.index])},Pt=Ba(30),Ht=1;function $t(pn){for(var bn=0,Gn=De.length;bn<Ht;++bn)for(var Un,sr,cr,ni,Tr,Si,Ui,Fi=0;Fi<Gn;++Fi)sr=(Un=De[Fi]).source,ni=(cr=Un.target).x+cr.vx-sr.x-sr.vx||Fa(bt),Tr=cr.y+cr.vy-sr.y-sr.vy||Fa(bt),ni*=Si=((Si=Math.sqrt(ni*ni+Tr*Tr))-Ve[Fi])/Si*pn*ke[Fi],Tr*=Si,cr.vx-=ni*(Ui=dt[Fi]),cr.vy-=Tr*Ui,sr.vx+=ni*(Ui=1-Ui),sr.vy+=Tr*Ui}function hn(){if(qe){var pn,bn,Gn=qe.length,Un=De.length,sr=new Map(qe.map((cr,ni)=>[vt(cr,ni,qe),cr]));for(pn=0,it=new Array(Gn);pn<Un;++pn)(bn=De[pn]).index=pn,typeof bn.source!="object"&&(bn.source=Do(sr,bn.source)),typeof bn.target!="object"&&(bn.target=Do(sr,bn.target)),it[bn.source.index]=(it[bn.source.index]||0)+1,it[bn.target.index]=(it[bn.target.index]||0)+1;for(pn=0,dt=new Array(Un);pn<Un;++pn)bn=De[pn],dt[pn]=it[bn.source.index]/(it[bn.source.index]+it[bn.target.index]);ke=new Array(Un),Pn(),Ve=new Array(Un),Dn()}}function Pn(){if(qe)for(var pn=0,bn=De.length;pn<bn;++pn)ke[pn]=+Nt(De[pn],pn,De)}function Dn(){if(qe)for(var pn=0,bn=De.length;pn<bn;++pn)Ve[pn]=+Pt(De[pn],pn,De)}return De==null&&(De=[]),$t.initialize=function(pn,bn){qe=pn,bt=bn,hn()},$t.links=function(pn){return arguments.length?(De=pn,hn(),$t):De},$t.id=function(pn){return arguments.length?(vt=pn,$t):vt},$t.iterations=function(pn){return arguments.length?(Ht=+pn,$t):Ht},$t.strength=function(pn){return arguments.length?(Nt=typeof pn=="function"?pn:Ba(+pn),Pn(),$t):Nt},$t.distance=function(pn){return arguments.length?(Pt=typeof pn=="function"?pn:Ba(+pn),Dn(),$t):Pt},$t}ao.copy=function(){var De,ke,Ve=new Eo(this._x,this._y,this._x0,this._y0,this._x1,this._y1),qe=this._root;if(!qe)return Ve;if(!qe.length)return Ve._root=io(qe),Ve;for(De=[{source:qe,target:Ve._root=new Array(4)}];qe=De.pop();)for(var it=0;it<4;++it)(ke=qe.source[it])&&(ke.length?De.push({source:ke,target:qe.target[it]=new Array(4)}):qe.target[it]=io(ke));return Ve},ao.add=function(De){const ke=+this._x.call(null,De),Ve=+this._y.call(null,De);return _a(this.cover(ke,Ve),ke,Ve,De)},ao.addAll=function(De){var ke,Ve,qe,it,dt=De.length,bt=new Array(dt),vt=new Array(dt),Nt=1/0,Pt=1/0,Ht=-1/0,$t=-1/0;for(Ve=0;Ve<dt;++Ve)isNaN(qe=+this._x.call(null,ke=De[Ve]))||isNaN(it=+this._y.call(null,ke))||(bt[Ve]=qe,vt[Ve]=it,qe<Nt&&(Nt=qe),qe>Ht&&(Ht=qe),it<Pt&&(Pt=it),it>$t&&($t=it));if(Nt>Ht||Pt>$t)return this;for(this.cover(Nt,Pt).cover(Ht,$t),Ve=0;Ve<dt;++Ve)_a(this,bt[Ve],vt[Ve],De[Ve]);return this},ao.cover=function(De,ke){if(isNaN(De=+De)||isNaN(ke=+ke))return this;var Ve=this._x0,qe=this._y0,it=this._x1,dt=this._y1;if(isNaN(Ve))it=(Ve=Math.floor(De))+1,dt=(qe=Math.floor(ke))+1;else{for(var bt,vt,Nt=it-Ve||1,Pt=this._root;Ve>De||De>=it||qe>ke||ke>=dt;)switch(vt=(ke<qe)<<1|De<Ve,(bt=new Array(4))[vt]=Pt,Pt=bt,Nt*=2,vt){case 0:it=Ve+Nt,dt=qe+Nt;break;case 1:Ve=it-Nt,dt=qe+Nt;break;case 2:it=Ve+Nt,qe=dt-Nt;break;case 3:Ve=it-Nt,qe=dt-Nt}this._root&&this._root.length&&(this._root=Pt)}return this._x0=Ve,this._y0=qe,this._x1=it,this._y1=dt,this},ao.data=function(){var De=[];return this.visit(function(ke){if(!ke.length)do De.push(ke.data);while(ke=ke.next)}),De},ao.extent=function(De){return arguments.length?this.cover(+De[0][0],+De[0][1]).cover(+De[1][0],+De[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},ao.find=function(De,ke,Ve){var qe,it,dt,bt,vt,Nt,Pt,Ht=this._x0,$t=this._y0,hn=this._x1,Pn=this._y1,Dn=[],pn=this._root;for(pn&&Dn.push(new oa(pn,Ht,$t,hn,Pn)),Ve==null?Ve=1/0:(Ht=De-Ve,$t=ke-Ve,hn=De+Ve,Pn=ke+Ve,Ve*=Ve);Nt=Dn.pop();)if(!(!(pn=Nt.node)||(it=Nt.x0)>hn||(dt=Nt.y0)>Pn||(bt=Nt.x1)<Ht||(vt=Nt.y1)<$t))if(pn.length){var bn=(it+bt)/2,Gn=(dt+vt)/2;Dn.push(new oa(pn[3],bn,Gn,bt,vt),new oa(pn[2],it,Gn,bn,vt),new oa(pn[1],bn,dt,bt,Gn),new oa(pn[0],it,dt,bn,Gn)),(Pt=(ke>=Gn)<<1|De>=bn)&&(Nt=Dn[Dn.length-1],Dn[Dn.length-1]=Dn[Dn.length-1-Pt],Dn[Dn.length-1-Pt]=Nt)}else{var Un=De-+this._x.call(null,pn.data),sr=ke-+this._y.call(null,pn.data),cr=Un*Un+sr*sr;if(cr<Ve){var ni=Math.sqrt(Ve=cr);Ht=De-ni,$t=ke-ni,hn=De+ni,Pn=ke+ni,qe=pn.data}}return qe},ao.remove=function(De){if(isNaN(dt=+this._x.call(null,De))||isNaN(bt=+this._y.call(null,De)))return this;var ke,Ve,qe,it,dt,bt,vt,Nt,Pt,Ht,$t,hn,Pn=this._root,Dn=this._x0,pn=this._y0,bn=this._x1,Gn=this._y1;if(!Pn)return this;if(Pn.length)for(;;){if((Pt=dt>=(vt=(Dn+bn)/2))?Dn=vt:bn=vt,(Ht=bt>=(Nt=(pn+Gn)/2))?pn=Nt:Gn=Nt,ke=Pn,!(Pn=Pn[$t=Ht<<1|Pt]))return this;if(!Pn.length)break;(ke[$t+1&3]||ke[$t+2&3]||ke[$t+3&3])&&(Ve=ke,hn=$t)}for(;Pn.data!==De;)if(qe=Pn,!(Pn=Pn.next))return this;return(it=Pn.next)&&delete Pn.next,qe?(it?qe.next=it:delete qe.next,this):ke?(it?ke[$t]=it:delete ke[$t],(Pn=ke[0]||ke[1]||ke[2]||ke[3])&&Pn===(ke[3]||ke[2]||ke[1]||ke[0])&&!Pn.length&&(Ve?Ve[hn]=Pn:this._root=Pn),this):(this._root=it,this)},ao.removeAll=function(De){for(var ke=0,Ve=De.length;ke<Ve;++ke)this.remove(De[ke]);return this},ao.root=function(){return this._root},ao.size=function(){var De=0;return this.visit(function(ke){if(!ke.length)do++De;while(ke=ke.next)}),De},ao.visit=function(De){var ke,Ve,qe,it,dt,bt,vt=[],Nt=this._root;for(Nt&&vt.push(new oa(Nt,this._x0,this._y0,this._x1,this._y1));ke=vt.pop();)if(!De(Nt=ke.node,qe=ke.x0,it=ke.y0,dt=ke.x1,bt=ke.y1)&&Nt.length){var Pt=(qe+dt)/2,Ht=(it+bt)/2;(Ve=Nt[3])&&vt.push(new oa(Ve,Pt,Ht,dt,bt)),(Ve=Nt[2])&&vt.push(new oa(Ve,qe,Ht,Pt,bt)),(Ve=Nt[1])&&vt.push(new oa(Ve,Pt,it,dt,Ht)),(Ve=Nt[0])&&vt.push(new oa(Ve,qe,it,Pt,Ht))}return this},ao.visitAfter=function(De){var ke,Ve=[],qe=[];for(this._root&&Ve.push(new oa(this._root,this._x0,this._y0,this._x1,this._y1));ke=Ve.pop();){var it=ke.node;if(it.length){var dt,bt=ke.x0,vt=ke.y0,Nt=ke.x1,Pt=ke.y1,Ht=(bt+Nt)/2,$t=(vt+Pt)/2;(dt=it[0])&&Ve.push(new oa(dt,bt,vt,Ht,$t)),(dt=it[1])&&Ve.push(new oa(dt,Ht,vt,Nt,$t)),(dt=it[2])&&Ve.push(new oa(dt,bt,$t,Ht,Pt)),(dt=it[3])&&Ve.push(new oa(dt,Ht,$t,Nt,Pt))}qe.push(ke)}for(;ke=qe.pop();)De(ke.node,ke.x0,ke.y0,ke.x1,ke.y1);return this},ao.x=function(De){return arguments.length?(this._x=De,this):this._x},ao.y=function(De){return arguments.length?(this._y=De,this):this._y};const Pi=4294967296;function lo(De){return De.x}function Qa(De){return De.y}var Ja=Math.PI*(3-Math.sqrt(5));function zr(De){var ke,Ve=1,qe=.001,it=1-Math.pow(qe,1/300),dt=0,bt=.6,vt=new Map,Nt=si($t),Pt=Me("tick","end"),Ht=function(){let pn=1;return()=>(pn=(1664525*pn+1013904223)%Pi)/Pi}();function $t(){hn(),Pt.call("tick",ke),Ve<qe&&(Nt.stop(),Pt.call("end",ke))}function hn(pn){var bn,Gn,Un=De.length;pn===void 0&&(pn=1);for(var sr=0;sr<pn;++sr)for(Ve+=(dt-Ve)*it,vt.forEach(function(cr){cr(Ve)}),bn=0;bn<Un;++bn)(Gn=De[bn]).fx==null?Gn.x+=Gn.vx*=bt:(Gn.x=Gn.fx,Gn.vx=0),Gn.fy==null?Gn.y+=Gn.vy*=bt:(Gn.y=Gn.fy,Gn.vy=0);return ke}function Pn(){for(var pn,bn=0,Gn=De.length;bn<Gn;++bn){if((pn=De[bn]).index=bn,pn.fx!=null&&(pn.x=pn.fx),pn.fy!=null&&(pn.y=pn.fy),isNaN(pn.x)||isNaN(pn.y)){var Un=10*Math.sqrt(.5+bn),sr=bn*Ja;pn.x=Un*Math.cos(sr),pn.y=Un*Math.sin(sr)}(isNaN(pn.vx)||isNaN(pn.vy))&&(pn.vx=pn.vy=0)}}function Dn(pn){return pn.initialize&&pn.initialize(De,Ht),pn}return De==null&&(De=[]),Pn(),ke={tick:hn,restart:function(){return Nt.restart($t),ke},stop:function(){return Nt.stop(),ke},nodes:function(pn){return arguments.length?(De=pn,Pn(),vt.forEach(Dn),ke):De},alpha:function(pn){return arguments.length?(Ve=+pn,ke):Ve},alphaMin:function(pn){return arguments.length?(qe=+pn,ke):qe},alphaDecay:function(pn){return arguments.length?(it=+pn,ke):+it},alphaTarget:function(pn){return arguments.length?(dt=+pn,ke):dt},velocityDecay:function(pn){return arguments.length?(bt=1-pn,ke):1-bt},randomSource:function(pn){return arguments.length?(Ht=pn,vt.forEach(Dn),ke):Ht},force:function(pn,bn){return arguments.length>1?(bn==null?vt.delete(pn):vt.set(pn,Dn(bn)),ke):vt.get(pn)},find:function(pn,bn,Gn){var Un,sr,cr,ni,Tr,Si=0,Ui=De.length;for(Gn==null?Gn=1/0:Gn*=Gn,Si=0;Si<Ui;++Si)(cr=(Un=pn-(ni=De[Si]).x)*Un+(sr=bn-ni.y)*sr)<Gn&&(Tr=ni,Gn=cr);return Tr},on:function(pn,bn){return arguments.length>1?(Pt.on(pn,bn),ke):Pt.on(pn)}}}function fi(De){return function(){return De}}const Sa=Math.abs,Ri=Math.atan2,hi=Math.cos,wa=Math.max,za=Math.min,ga=Math.sin,ro=Math.sqrt,ka=1e-12,Co=Math.PI,Qo=Co/2,Ro=2*Co;function Jo(De){return De>1?0:De<-1?Co:Math.acos(De)}function wo(De){return De>=1?Qo:De<=-1?-Qo:Math.asin(De)}function Ns(De){return De.innerRadius}function uo(De){return De.outerRadius}function As(De){return De.startAngle}function Ds(De){return De.endAngle}function _s(De){return De&&De.padAngle}function xs(De,ke,Ve,qe,it,dt,bt,vt){var Nt=Ve-De,Pt=qe-ke,Ht=bt-it,$t=vt-dt,hn=$t*Nt-Ht*Pt;if(!(hn*hn<ka))return[De+(hn=(Ht*(ke-dt)-$t*(De-it))/hn)*Nt,ke+hn*Pt]}function To(De,ke,Ve,qe,it,dt,bt){var vt=De-Ve,Nt=ke-qe,Pt=(bt?dt:-dt)/ro(vt*vt+Nt*Nt),Ht=Pt*Nt,$t=-Pt*vt,hn=De+Ht,Pn=ke+$t,Dn=Ve+Ht,pn=qe+$t,bn=(hn+Dn)/2,Gn=(Pn+pn)/2,Un=Dn-hn,sr=pn-Pn,cr=Un*Un+sr*sr,ni=it-dt,Tr=hn*pn-Dn*Pn,Si=(sr<0?-1:1)*ro(wa(0,ni*ni*cr-Tr*Tr)),Ui=(Tr*sr-Un*Si)/cr,Fi=(-Tr*Un-sr*Si)/cr,jr=(Tr*sr+Un*Si)/cr,Vr=(-Tr*Un+sr*Si)/cr,yi=Ui-bn,zn=Fi-Gn,fr=jr-bn,$r=Vr-Gn;return yi*yi+zn*zn>fr*fr+$r*$r&&(Ui=jr,Fi=Vr),{cx:Ui,cy:Fi,x01:-Ht,y01:-$t,x11:Ui*(it/ni-1),y11:Fi*(it/ni-1)}}function Ts(){var De=Ns,ke=uo,Ve=fi(0),qe=null,it=As,dt=Ds,bt=_s,vt=null;function Nt(){var Pt,Ht,$t=+De.apply(this,arguments),hn=+ke.apply(this,arguments),Pn=it.apply(this,arguments)-Qo,Dn=dt.apply(this,arguments)-Qo,pn=Sa(Dn-Pn),bn=Dn>Pn;if(vt||(vt=P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Un.y01,Un.x01),!bn):(vt.arc(Gn.cx,Gn.cy,zn,Ri(Gn.y01,Gn.x01),Ri(Gn.y11,Gn.x11),!bn),vt.arc(0,0,hn,Ri(Gn.cy+Gn.y11,Gn.cx+Gn.x11),Ri(Un.cy+Un.y11,Un.cx+Un.x11),!bn),vt.arc(Un.cx,Un.cy,zn,Ri(Un.y11,Un.x11),Ri(Un.y01,Un.x01),!bn))):(vt.moveTo(xr,Yr),vt.arc(0,0,hn,sr,cr,!bn)):vt.moveTo(xr,Yr),$t>ka&&Si>ka?yi>ka?(Gn=To(Lr,Or,na,Oi,$t,-yi,bn),Un=To(xr,Yr,Ea,Ma,$t,-yi,bn),vt.lineTo(Gn.cx+Gn.x01,Gn.cy+Gn.y01),yi<Vr?vt.arc(Gn.cx,Gn.cy,yi,Ri(Gn.y01,Gn.x01),Ri(Un.y01,Un.x01),!bn):(vt.arc(Gn.cx,Gn.cy,yi,Ri(Gn.y01,Gn.x01),Ri(Gn.y11,Gn.x11),!bn),vt.arc(0,0,$t,Ri(Gn.cy+Gn.y11,Gn.cx+Gn.x11),Ri(Un.cy+Un.y11,Un.cx+Un.x11),bn),vt.arc(Un.cx,Un.cy,yi,Ri(Un.y11,Un.x11),Ri(Un.y01,Un.x01),!bn))):vt.arc(0,0,$t,Tr,ni,bn):vt.lineTo(Lr,Or)}else vt.moveTo(0,0);if(vt.closePath(),Pt)return vt=null,Pt+""||null}return Nt.centroid=function(){var Pt=(+De.apply(this,arguments)+ +ke.apply(this,arguments))/2,Ht=(+it.apply(this,arguments)+ +dt.apply(this,arguments))/2-Co/2;return[hi(Ht)*Pt,ga(Ht)*Pt]},Nt.innerRadius=function(Pt){return arguments.length?(De=typeof Pt=="function"?Pt:fi(+Pt),Nt):De},Nt.outerRadius=function(Pt){return arguments.length?(ke=typeof Pt=="function"?Pt:fi(+Pt),Nt):ke},Nt.cornerRadius=function(Pt){return arguments.length?(Ve=typeof Pt=="function"?Pt:fi(+Pt),Nt):Ve},Nt.padRadius=function(Pt){return arguments.length?(qe=Pt==null?null:typeof Pt=="function"?Pt:fi(+Pt),Nt):qe},Nt.startAngle=function(Pt){return arguments.length?(it=typeof Pt=="function"?Pt:fi(+Pt),Nt):it},Nt.endAngle=function(Pt){return arguments.length?(dt=typeof Pt=="function"?Pt:fi(+Pt),Nt):dt},Nt.padAngle=function(Pt){return arguments.length?(bt=typeof Pt=="function"?Pt:fi(+Pt),Nt):bt},Nt.context=function(Pt){return arguments.length?(vt=Pt==null?null:Pt,Nt):vt},Nt}function ls(De){return typeof De=="object"&&"length"in De?De:Array.from(De)}function Qs(De,ke){return ke<De?-1:ke>De?1:ke>=De?0:NaN}function wl(De){return De}function Js(){var De=wl,ke=Qs,Ve=null,qe=fi(0),it=fi(Ro),dt=fi(0);function bt(vt){var Nt,Pt,Ht,$t,hn,Pn=(vt=ls(vt)).length,Dn=0,pn=new Array(Pn),bn=new Array(Pn),Gn=+qe.apply(this,arguments),Un=Math.min(Ro,Math.max(-Ro,it.apply(this,arguments)-Gn)),sr=Math.min(Math.abs(Un)/Pn,dt.apply(this,arguments)),cr=sr*(Un<0?-1:1);for(Nt=0;Nt<Pn;++Nt)(hn=bn[pn[Nt]=Nt]=+De(vt[Nt],Nt,vt))>0&&(Dn+=hn);for(ke!=null?pn.sort(function(ni,Tr){return ke(bn[ni],bn[Tr])}):Ve!=null&&pn.sort(function(ni,Tr){return Ve(vt[ni],vt[Tr])}),Nt=0,Ht=Dn?(Un-Pn*cr)/Dn:0;Nt<Pn;++Nt,Gn=$t)Pt=pn[Nt],$t=Gn+((hn=bn[Pt])>0?hn*Ht:0)+cr,bn[Pt]={data:vt[Pt],index:Nt,value:hn,startAngle:Gn,endAngle:$t,padAngle:sr};return bn}return bt.value=function(vt){return arguments.length?(De=typeof vt=="function"?vt:fi(+vt),bt):De},bt.sortValues=function(vt){return arguments.length?(ke=vt,Ve=null,bt):ke},bt.sort=function(vt){return arguments.length?(Ve=vt,ke=null,bt):Ve},bt.startAngle=function(vt){return arguments.length?(qe=typeof vt=="function"?vt:fi(+vt),bt):qe},bt.endAngle=function(vt){return arguments.length?(it=typeof vt=="function"?vt:fi(+vt),bt):it},bt.padAngle=function(vt){return arguments.length?(dt=typeof vt=="function"?vt:fi(+vt),bt):dt},bt}var Es=De=>()=>De;function pl(De,{sourceEvent:ke,target:Ve,transform:qe,dispatch:it}){Object.defineProperties(this,{type:{value:De,enumerable:!0,configurable:!0},sourceEvent:{value:ke,enumerable:!0,configurable:!0},target:{value:Ve,enumerable:!0,configurable:!0},transform:{value:qe,enumerable:!0,configurable:!0},_:{value:it}})}function Cs(De,ke,Ve){this.k=De,this.x=ke,this.y=Ve}Cs.prototype={constructor:Cs,scale:function(De){return De===1?this:new Cs(this.k*De,this.x,this.y)},translate:function(De,ke){return De===0&ke===0?this:new Cs(this.k,this.x+this.k*De,this.y+this.k*ke)},apply:function(De){return[De[0]*this.k+this.x,De[1]*this.k+this.y]},applyX:function(De){return De*this.k+this.x},applyY:function(De){return De*this.k+this.y},invert:function(De){return[(De[0]-this.x)/this.k,(De[1]-this.y)/this.k]},invertX:function(De){return(De-this.x)/this.k},invertY:function(De){return(De-this.y)/this.k},rescaleX:function(De){return De.copy().domain(De.range().map(this.invertX,this).map(De.invert,De))},rescaleY:function(De){return De.copy().domain(De.range().map(this.invertY,this).map(De.invert,De))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var $s=new Cs(1,0,0);function qs(De){De.stopImmediatePropagation()}function Ms(De){De.preventDefault(),De.stopImmediatePropagation()}function Vo(De){return!(De.ctrlKey&&De.type!=="wheel"||De.button)}function fs(){var De=this;return De instanceof SVGElement?(De=De.ownerSVGElement||De).hasAttribute("viewBox")?[[(De=De.viewBox.baseVal).x,De.y],[De.x+De.width,De.y+De.height]]:[[0,0],[De.width.baseVal.value,De.height.baseVal.value]]:[[0,0],[De.clientWidth,De.clientHeight]]}function ul(){return this.__zoom||$s}function Fs(De){return-De.deltaY*(De.deltaMode===1?.05:De.deltaMode?1:.002)*(De.ctrlKey?10:1)}function xa(){return navigator.maxTouchPoints||"ontouchstart"in this}function ol(De,ke,Ve){var qe=De.invertX(ke[0][0])-Ve[0][0],it=De.invertX(ke[1][0])-Ve[1][0],dt=De.invertY(ke[0][1])-Ve[0][1],bt=De.invertY(ke[1][1])-Ve[1][1];return De.translate(it>qe?(qe+it)/2:Math.min(0,qe)||Math.max(0,it),bt>dt?(dt+bt)/2:Math.min(0,dt)||Math.max(0,bt))}function ks(){var De,ke,Ve,qe=Vo,it=fs,dt=ol,bt=Fs,vt=xa,Nt=[0,1/0],Pt=[[-1/0,-1/0],[1/0,1/0]],Ht=250,$t=kn,hn=Me("start","zoom","end"),Pn=500,Dn=0,pn=10;function bn(zn){zn.property("__zoom",ul).on("wheel.zoom",Si,{passive:!1}).on("mousedown.zoom",Ui).on("dblclick.zoom",Fi).filter(vt).on("touchstart.zoom",jr).on("touchmove.zoom",Vr).on("touchend.zoom touchcancel.zoom",yi).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function Gn(zn,fr){return(fr=Math.max(Nt[0],Math.min(Nt[1],fr)))===zn.k?zn:new Cs(fr,zn.x,zn.y)}function Un(zn,fr,$r){var xr=fr[0]-$r[0]*zn.k,Yr=fr[1]-$r[1]*zn.k;return xr===zn.x&&Yr===zn.y?zn:new Cs(zn.k,xr,Yr)}function sr(zn){return[(+zn[0][0]+ +zn[1][0])/2,(+zn[0][1]+ +zn[1][1])/2]}function cr(zn,fr,$r,xr){zn.on("start.zoom",function(){ni(this,arguments).event(xr).start()}).on("interrupt.zoom end.zoom",function(){ni(this,arguments).event(xr).end()}).tween("zoom",function(){var Yr=this,Lr=arguments,Or=ni(Yr,Lr).event(xr),Bi=it.apply(Yr,Lr),na=$r==null?sr(Bi):typeof $r=="function"?$r.apply(Yr,Lr):$r,Oi=Math.max(Bi[1][0]-Bi[0][0],Bi[1][1]-Bi[0][1]),Ea=Yr.__zoom,Ma=typeof fr=="function"?fr.apply(Yr,Lr):fr,Na=$t(Ea.invert(na).concat(Oi/Ea.k),Ma.invert(na).concat(Oi/Ma.k));return function(ji){if(ji===1)ji=Ma;else{var aa=Na(ji),Ua=Oi/aa[2];ji=new Cs(Ua,na[0]-aa[0]*Ua,na[1]-aa[1]*Ua)}Or.zoom(null,ji)}})}function ni(zn,fr,$r){return!$r&&zn.__zooming||new Tr(zn,fr)}function Tr(zn,fr){this.that=zn,this.args=fr,this.active=0,this.sourceEvent=null,this.extent=it.apply(zn,fr),this.taps=0}function Si(zn,...fr){if(qe.apply(this,arguments)){var $r=ni(this,fr).event(zn),xr=this.__zoom,Yr=Math.max(Nt[0],Math.min(Nt[1],xr.k*Math.pow(2,bt.apply(this,arguments)))),Lr=Bn(zn);if($r.wheel)$r.mouse[0][0]===Lr[0]&&$r.mouse[0][1]===Lr[1]||($r.mouse[1]=xr.invert($r.mouse[0]=Lr)),clearTimeout($r.wheel);else{if(xr.k===Yr)return;$r.mouse=[Lr,xr.invert(Lr)],mi(this),$r.start()}Ms(zn),$r.wheel=setTimeout(Or,150),$r.zoom("mouse",dt(Un(Gn(xr,Yr),$r.mouse[0],$r.mouse[1]),$r.extent,Pt))}function Or(){$r.wheel=null,$r.end()}}function Ui(zn,...fr){if(!Ve&&qe.apply(this,arguments)){var $r=zn.currentTarget,xr=ni(this,fr,!0).event(zn),Yr=_n(zn.view).on("mousemove.zoom",na,!0).on("mouseup.zoom",Oi,!0),Lr=Bn(zn,$r),Or=zn.clientX,Bi=zn.clientY;Qn(zn.view),qs(zn),xr.mouse=[Lr,this.__zoom.invert(Lr)],mi(this),xr.start()}function na(Ea){if(Ms(Ea),!xr.moved){var Ma=Ea.clientX-Or,Na=Ea.clientY-Bi;xr.moved=Ma*Ma+Na*Na>Dn}xr.event(Ea).zoom("mouse",dt(Un(xr.that.__zoom,xr.mouse[0]=Bn(Ea,$r),xr.mouse[1]),xr.extent,Pt))}function Oi(Ea){Yr.on("mousemove.zoom mouseup.zoom",null),mr(Ea.view,xr.moved),Ms(Ea),xr.event(Ea).end()}}function Fi(zn,...fr){if(qe.apply(this,arguments)){var $r=this.__zoom,xr=Bn(zn.changedTouches?zn.changedTouches[0]:zn,this),Yr=$r.invert(xr),Lr=$r.k*(zn.shiftKey?.5:2),Or=dt(Un(Gn($r,Lr),xr,Yr),it.apply(this,fr),Pt);Ms(zn),Ht>0?_n(this).transition().duration(Ht).call(cr,Or,xr,zn):_n(this).call(bn.transform,Or,xr,zn)}}function jr(zn,...fr){if(qe.apply(this,arguments)){var $r,xr,Yr,Lr,Or=zn.touches,Bi=Or.length,na=ni(this,fr,zn.changedTouches.length===Bi).event(zn);for(qs(zn),xr=0;xr<Bi;++xr)Lr=[Lr=Bn(Yr=Or[xr],this),this.__zoom.invert(Lr),Yr.identifier],na.touch0?na.touch1||na.touch0[2]===Lr[2]||(na.touch1=Lr,na.taps=0):(na.touch0=Lr,$r=!0,na.taps=1+!!De);De&&(De=clearTimeout(De)),$r&&(na.taps<2&&(ke=Lr[0],De=setTimeout(function(){De=null},Pn)),mi(this),na.start())}}function Vr(zn,...fr){if(this.__zooming){var $r,xr,Yr,Lr,Or=ni(this,fr).event(zn),Bi=zn.changedTouches,na=Bi.length;for(Ms(zn),$r=0;$r<na;++$r)Yr=Bn(xr=Bi[$r],this),Or.touch0&&Or.touch0[2]===xr.identifier?Or.touch0[0]=Yr:Or.touch1&&Or.touch1[2]===xr.identifier&&(Or.touch1[0]=Yr);if(xr=Or.that.__zoom,Or.touch1){var Oi=Or.touch0[0],Ea=Or.touch0[1],Ma=Or.touch1[0],Na=Or.touch1[1],ji=(ji=Ma[0]-Oi[0])*ji+(ji=Ma[1]-Oi[1])*ji,aa=(aa=Na[0]-Ea[0])*aa+(aa=Na[1]-Ea[1])*aa;xr=Gn(xr,Math.sqrt(ji/aa)),Yr=[(Oi[0]+Ma[0])/2,(Oi[1]+Ma[1])/2],Lr=[(Ea[0]+Na[0])/2,(Ea[1]+Na[1])/2]}else{if(!Or.touch0)return;Yr=Or.touch0[0],Lr=Or.touch0[1]}Or.zoom("touch",dt(Un(xr,Yr,Lr),Or.extent,Pt))}}function yi(zn,...fr){if(this.__zooming){var $r,xr,Yr=ni(this,fr).event(zn),Lr=zn.changedTouches,Or=Lr.length;for(qs(zn),Ve&&clearTimeout(Ve),Ve=setTimeout(function(){Ve=null},Pn),$r=0;$r<Or;++$r)xr=Lr[$r],Yr.touch0&&Yr.touch0[2]===xr.identifier?delete Yr.touch0:Yr.touch1&&Yr.touch1[2]===xr.identifier&&delete Yr.touch1;if(Yr.touch1&&!Yr.touch0&&(Yr.touch0=Yr.touch1,delete Yr.touch1),Yr.touch0)Yr.touch0[1]=this.__zoom.invert(Yr.touch0[0]);else if(Yr.end(),Yr.taps===2&&(xr=Bn(xr,this),Math.hypot(ke[0]-xr[0],ke[1]-xr[1])<pn)){var Bi=_n(this).on("dblclick.zoom");Bi&&Bi.apply(this,arguments)}}}return bn.transform=function(zn,fr,$r,xr){var Yr=zn.selection?zn.selection():zn;Yr.property("__zoom",ul),zn!==Yr?cr(zn,fr,$r,xr):Yr.interrupt().each(function(){ni(this,arguments).event(xr).start().zoom(null,typeof fr=="function"?fr.apply(this,arguments):fr).end()})},bn.scaleBy=function(zn,fr,$r,xr){bn.scaleTo(zn,function(){var Yr=this.__zoom.k,Lr=typeof fr=="function"?fr.apply(this,arguments):fr;return Yr*Lr},$r,xr)},bn.scaleTo=function(zn,fr,$r,xr){bn.transform(zn,function(){var Yr=it.apply(this,arguments),Lr=this.__zoom,Or=$r==null?sr(Yr):typeof $r=="function"?$r.apply(this,arguments):$r,Bi=Lr.invert(Or),na=typeof fr=="function"?fr.apply(this,arguments):fr;return dt(Un(Gn(Lr,na),Or,Bi),Yr,Pt)},$r,xr)},bn.translateBy=function(zn,fr,$r,xr){bn.transform(zn,function(){return dt(this.__zoom.translate(typeof fr=="function"?fr.apply(this,arguments):fr,typeof $r=="function"?$r.apply(this,arguments):$r),it.apply(this,arguments),Pt)},null,xr)},bn.translateTo=function(zn,fr,$r,xr,Yr){bn.transform(zn,function(){var Lr=it.apply(this,arguments),Or=this.__zoom,Bi=xr==null?sr(Lr):typeof xr=="function"?xr.apply(this,arguments):xr;return dt($s.translate(Bi[0],Bi[1]).scale(Or.k).translate(typeof fr=="function"?-fr.apply(this,arguments):-fr,typeof $r=="function"?-$r.apply(this,arguments):-$r),Lr,Pt)},xr,Yr)},Tr.prototype={event:function(zn){return zn&&(this.sourceEvent=zn),this},start:function(){return++this.active==1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(zn,fr){return this.mouse&&zn!=="mouse"&&(this.mouse[1]=fr.invert(this.mouse[0])),this.touch0&&zn!=="touch"&&(this.touch0[1]=fr.invert(this.touch0[0])),this.touch1&&zn!=="touch"&&(this.touch1[1]=fr.invert(this.touch1[0])),this.that.__zoom=fr,this.emit("zoom"),this},end:function(){return--this.active==0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(zn){var fr=_n(this.that).datum();hn.call(zn,this.that,new pl(zn,{sourceEvent:this.sourceEvent,target:bn,type:zn,transform:this.that.__zoom,dispatch:hn}),fr)}},bn.wheelDelta=function(zn){return arguments.length?(bt=typeof zn=="function"?zn:Es(+zn),bn):bt},bn.filter=function(zn){return arguments.length?(qe=typeof zn=="function"?zn:Es(!!zn),bn):qe},bn.touchable=function(zn){return arguments.length?(vt=typeof zn=="function"?zn:Es(!!zn),bn):vt},bn.extent=function(zn){return arguments.length?(it=typeof zn=="function"?zn:Es([[+zn[0][0],+zn[0][1]],[+zn[1][0],+zn[1][1]]]),bn):it},bn.scaleExtent=function(zn){return arguments.length?(Nt[0]=+zn[0],Nt[1]=+zn[1],bn):[Nt[0],Nt[1]]},bn.translateExtent=function(zn){return arguments.length?(Pt[0][0]=+zn[0][0],Pt[1][0]=+zn[1][0],Pt[0][1]=+zn[0][1],Pt[1][1]=+zn[1][1],bn):[[Pt[0][0],Pt[0][1]],[Pt[1][0],Pt[1][1]]]},bn.constrain=function(zn){return arguments.length?(dt=zn,bn):dt},bn.duration=function(zn){return arguments.length?(Ht=+zn,bn):Ht},bn.interpolate=function(zn){return arguments.length?($t=zn,bn):$t},bn.on=function(){var zn=hn.on.apply(hn,arguments);return zn===hn?bn:zn},bn.clickDistance=function(zn){return arguments.length?(Dn=(zn=+zn)*zn,bn):Math.sqrt(Dn)},bn.tapDistance=function(zn){return arguments.length?(pn=+zn,bn):pn},bn}function bs(){bs=function(){return De};var De={},ke=Object.prototype,Ve=ke.hasOwnProperty,qe=typeof Symbol=="function"?Symbol:{},it=qe.iterator||"@@iterator",dt=qe.asyncIterator||"@@asyncIterator",bt=qe.toStringTag||"@@toStringTag";function vt(jr,Vr,yi){return Object.defineProperty(jr,Vr,{value:yi,enumerable:!0,configurable:!0,writable:!0}),jr[Vr]}try{vt({},"")}catch(jr){vt=function(Vr,yi,zn){return Vr[yi]=zn}}function Nt(jr,Vr,yi,zn){var fr=Vr&&Vr.prototype instanceof $t?Vr:$t,$r=Object.create(fr.prototype),xr=new Si(zn||[]);return $r._invoke=function(Yr,Lr,Or){var Bi="suspendedStart";return function(na,Oi){if(Bi==="executing")throw new Error("Generator is already running");if(Bi==="completed"){if(na==="throw")throw Oi;return Fi()}for(Or.method=na,Or.arg=Oi;;){var Ea=Or.delegate;if(Ea){var Ma=cr(Ea,Or);if(Ma){if(Ma===Ht)continue;return Ma}}if(Or.method==="next")Or.sent=Or._sent=Or.arg;else if(Or.method==="throw"){if(Bi==="suspendedStart")throw Bi="completed",Or.arg;Or.dispatchException(Or.arg)}else Or.method==="return"&&Or.abrupt("return",Or.arg);Bi="executing";var Na=Pt(Yr,Lr,Or);if(Na.type==="normal"){if(Bi=Or.done?"completed":"suspendedYield",Na.arg===Ht)continue;return{value:Na.arg,done:Or.done}}Na.type==="throw"&&(Bi="completed",Or.method="throw",Or.arg=Na.arg)}}}(jr,yi,xr),$r}function Pt(jr,Vr,yi){try{return{type:"normal",arg:jr.call(Vr,yi)}}catch(zn){return{type:"throw",arg:zn}}}De.wrap=Nt;var Ht={};function $t(){}function hn(){}function Pn(){}var Dn={};vt(Dn,it,function(){return this});var pn=Object.getPrototypeOf,bn=pn&&pn(pn(Ui([])));bn&&bn!==ke&&Ve.call(bn,it)&&(Dn=bn);var Gn=Pn.prototype=$t.prototype=Object.create(Dn);function Un(jr){["next","throw","return"].forEach(function(Vr){vt(jr,Vr,function(yi){return this._invoke(Vr,yi)})})}function sr(jr,Vr){function yi(fr,$r,xr,Yr){var Lr=Pt(jr[fr],jr,$r);if(Lr.type!=="throw"){var Or=Lr.arg,Bi=Or.value;return Bi&&typeof Bi=="object"&&Ve.call(Bi,"__await")?Vr.resolve(Bi.__await).then(function(na){yi("next",na,xr,Yr)},function(na){yi("throw",na,xr,Yr)}):Vr.resolve(Bi).then(function(na){Or.value=na,xr(Or)},function(na){return yi("throw",na,xr,Yr)})}Yr(Lr.arg)}var zn;this._invoke=function(fr,$r){function xr(){return new Vr(function(Yr,Lr){yi(fr,$r,Yr,Lr)})}return zn=zn?zn.then(xr,xr):xr()}}function cr(jr,Vr){var yi=jr.iterator[Vr.method];if(yi===void 0){if(Vr.delegate=null,Vr.method==="throw"){if(jr.iterator.return&&(Vr.method="return",Vr.arg=void 0,cr(jr,Vr),Vr.method==="throw"))return Ht;Vr.method="throw",Vr.arg=new TypeError("The iterator does not provide a 'throw' method")}return Ht}var zn=Pt(yi,jr.iterator,Vr.arg);if(zn.type==="throw")return Vr.method="throw",Vr.arg=zn.arg,Vr.delegate=null,Ht;var fr=zn.arg;return fr?fr.done?(Vr[jr.resultName]=fr.value,Vr.next=jr.nextLoc,Vr.method!=="return"&&(Vr.method="next",Vr.arg=void 0),Vr.delegate=null,Ht):fr:(Vr.method="throw",Vr.arg=new TypeError("iterator result is not an object"),Vr.delegate=null,Ht)}function ni(jr){var Vr={tryLoc:jr[0]};1 in jr&&(Vr.catchLoc=jr[1]),2 in jr&&(Vr.finallyLoc=jr[2],Vr.afterLoc=jr[3]),this.tryEntries.push(Vr)}function Tr(jr){var Vr=jr.completion||{};Vr.type="normal",delete Vr.arg,jr.completion=Vr}function Si(jr){this.tryEntries=[{tryLoc:"root"}],jr.forEach(ni,this),this.reset(!0)}function Ui(jr){if(jr){var Vr=jr[it];if(Vr)return Vr.call(jr);if(typeof jr.next=="function")return jr;if(!isNaN(jr.length)){var yi=-1,zn=function fr(){for(;++yi<jr.length;)if(Ve.call(jr,yi))return fr.value=jr[yi],fr.done=!1,fr;return fr.value=void 0,fr.done=!0,fr};return zn.next=zn}}return{next:Fi}}function Fi(){return{value:void 0,done:!0}}return hn.prototype=Pn,vt(Gn,"constructor",Pn),vt(Pn,"constructor",hn),hn.displayName=vt(Pn,bt,"GeneratorFunction"),De.isGeneratorFunction=function(jr){var Vr=typeof jr=="function"&&jr.constructor;return!!Vr&&(Vr===hn||(Vr.displayName||Vr.name)==="GeneratorFunction")},De.mark=function(jr){return Object.setPrototypeOf?Object.setPrototypeOf(jr,Pn):(jr.__proto__=Pn,vt(jr,bt,"GeneratorFunction")),jr.prototype=Object.create(Gn),jr},De.awrap=function(jr){return{__await:jr}},Un(sr.prototype),vt(sr.prototype,dt,function(){return this}),De.AsyncIterator=sr,De.async=function(jr,Vr,yi,zn,fr){fr===void 0&&(fr=Promise);var $r=new sr(Nt(jr,Vr,yi,zn),fr);return De.isGeneratorFunction(Vr)?$r:$r.next().then(function(xr){return xr.done?xr.value:$r.next()})},Un(Gn),vt(Gn,bt,"Generator"),vt(Gn,it,function(){return this}),vt(Gn,"toString",function(){return"[object Generator]"}),De.keys=function(jr){var Vr=[];for(var yi in jr)Vr.push(yi);return Vr.reverse(),function zn(){for(;Vr.length;){var fr=Vr.pop();if(fr in jr)return zn.value=fr,zn.done=!1,zn}return zn.done=!0,zn}},De.values=Ui,Si.prototype={constructor:Si,reset:function(jr){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(Tr),!jr)for(var Vr in this)Vr.charAt(0)==="t"&&Ve.call(this,Vr)&&!isNaN(+Vr.slice(1))&&(this[Vr]=void 0)},stop:function(){this.done=!0;var jr=this.tryEntries[0].completion;if(jr.type==="throw")throw jr.arg;return this.rval},dispatchException:function(jr){if(this.done)throw jr;var Vr=this;function yi(Lr,Or){return $r.type="throw",$r.arg=jr,Vr.next=Lr,Or&&(Vr.method="next",Vr.arg=void 0),!!Or}for(var zn=this.tryEntries.length-1;zn>=0;--zn){var fr=this.tryEntries[zn],$r=fr.completion;if(fr.tryLoc==="root")return yi("end");if(fr.tryLoc<=this.prev){var xr=Ve.call(fr,"catchLoc"),Yr=Ve.call(fr,"finallyLoc");if(xr&&Yr){if(this.prev<fr.catchLoc)return yi(fr.catchLoc,!0);if(this.prev<fr.finallyLoc)return yi(fr.finallyLoc)}else if(xr){if(this.prev<fr.catchLoc)return yi(fr.catchLoc,!0)}else{if(!Yr)throw new Error("try statement without catch or finally");if(this.prev<fr.finallyLoc)return yi(fr.finallyLoc)}}}},abrupt:function(jr,Vr){for(var yi=this.tryEntries.length-1;yi>=0;--yi){var zn=this.tryEntries[yi];if(zn.tryLoc<=this.prev&&Ve.call(zn,"finallyLoc")&&this.prev<zn.finallyLoc){var fr=zn;break}}fr&&(jr==="break"||jr==="continue")&&fr.tryLoc<=Vr&&Vr<=fr.finallyLoc&&(fr=null);var $r=fr?fr.completion:{};return $r.type=jr,$r.arg=Vr,fr?(this.method="next",this.next=fr.finallyLoc,Ht):this.complete($r)},complete:function(jr,Vr){if(jr.type==="throw")throw jr.arg;return jr.type==="break"||jr.type==="continue"?this.next=jr.arg:jr.type==="return"?(this.rval=this.arg=jr.arg,this.method="return",this.next="end"):jr.type==="normal"&&Vr&&(this.next=Vr),Ht},finish:function(jr){for(var Vr=this.tryEntries.length-1;Vr>=0;--Vr){var yi=this.tryEntries[Vr];if(yi.finallyLoc===jr)return this.complete(yi.completion,yi.afterLoc),Tr(yi),Ht}},catch:function(jr){for(var Vr=this.tryEntries.length-1;Vr>=0;--Vr){var yi=this.tryEntries[Vr];if(yi.tryLoc===jr){var zn=yi.completion;if(zn.type==="throw"){var fr=zn.arg;Tr(yi)}return fr}}throw new Error("illegal catch attempt")},delegateYield:function(jr,Vr,yi){return this.delegate={iterator:Ui(jr),resultName:Vr,nextLoc:yi},this.method==="next"&&(this.arg=void 0),Ht}},De}function cl(De){return cl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ke){return typeof ke}:function(ke){return ke&&typeof Symbol=="function"&&ke.constructor===Symbol&&ke!==Symbol.prototype?"symbol":typeof ke},cl(De)}function Al(De,ke,Ve,qe,it,dt,bt){try{var vt=De[dt](bt),Nt=vt.value}catch(Pt){return void Ve(Pt)}vt.done?ke(Nt):Promise.resolve(Nt).then(qe,it)}function Vs(De){return function(){var ke=this,Ve=arguments;return new Promise(function(qe,it){var dt=De.apply(ke,Ve);function bt(Nt){Al(dt,qe,it,bt,vt,"next",Nt)}function vt(Nt){Al(dt,qe,it,bt,vt,"throw",Nt)}bt(void 0)})}}function Zs(De,ke){if(!(De instanceof ke))throw new TypeError("Cannot call a class as a function")}function Us(De,ke){for(var Ve=0;Ve<ke.length;Ve++){var qe=ke[Ve];qe.enumerable=qe.enumerable||!1,qe.configurable=!0,"value"in qe&&(qe.writable=!0),Object.defineProperty(De,qe.key,qe)}}function Ws(De,ke,Ve){return ke&&Us(De.prototype,ke),Ve&&Us(De,Ve),Object.defineProperty(De,"prototype",{writable:!1}),De}function Ll(De,ke){return function(Ve){if(Array.isArray(Ve))return Ve}(De)||function(Ve,qe){var it=Ve==null?null:typeof Symbol!="undefined"&&Ve[Symbol.iterator]||Ve["@@iterator"];if(it!=null){var dt,bt,vt=[],Nt=!0,Pt=!1;try{for(it=it.call(Ve);!(Nt=(dt=it.next()).done)&&(vt.push(dt.value),!qe||vt.length!==qe);Nt=!0);}catch(Ht){Pt=!0,bt=Ht}finally{try{Nt||it.return==null||it.return()}finally{if(Pt)throw bt}}return vt}}(De,ke)||$o(De,ke)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function $o(De,ke){if(De){if(typeof De=="string")return dl(De,ke);var Ve=Object.prototype.toString.call(De).slice(8,-1);return Ve==="Object"&&De.constructor&&(Ve=De.constructor.name),Ve==="Map"||Ve==="Set"?Array.from(De):Ve==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ve)?dl(De,ke):void 0}}function dl(De,ke){(ke==null||ke>De.length)&&(ke=De.length);for(var Ve=0,qe=new Array(ke);Ve<ke;Ve++)qe[Ve]=De[Ve];return qe}function el(De,ke){var Ve=typeof Symbol!="undefined"&&De[Symbol.iterator]||De["@@iterator"];if(!Ve){if(Array.isArray(De)||(Ve=$o(De))||ke&&De&&typeof De.length=="number"){Ve&&(De=Ve);var qe=0,it=function(){};return{s:it,n:function(){return qe>=De.length?{done:!0}:{done:!1,value:De[qe++]}},e:function(Nt){throw Nt},f:it}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var dt,bt=!0,vt=!1;return{s:function(){Ve=Ve.call(De)},n:function(){var Nt=Ve.next();return bt=Nt.done,Nt},e:function(Nt){vt=!0,dt=Nt},f:function(){try{bt||Ve.return==null||Ve.return()}finally{if(vt)throw dt}}}}function gl(De){var ke=32;switch(De){case 0:ke=23;break;case 1:ke=26;break;case 2:default:ke=32;break;case 3:ke=38}return ke}function zs(De){De=De.sort();for(var ke=[],Ve=0;Ve<De.length;Ve++)De[Ve]!==De[Ve-1]&&ke.push(De[Ve]);return ke}function tl(De,ke){var Ve=0,qe=[],it=[];return De&&function(){var dt,bt=(De+="").split(""),vt=0;for(vt=0;vt<bt.length;vt++)dt=bt[vt],/(?:[\u3400-\u4DB5\u4E00-\u9FEA\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA1F\uFA21\uFA23\uFA24\uFA27-\uFA29]|[\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0])/.test(dt)?new Array(10).fill(1).forEach(function(){(Ve===ke||Ve===2*ke||Ve===3*ke)&&qe.push(vt),Ve+=1}):new Array(5).fill(1).forEach(function(){(Ve===ke||Ve===2*ke||Ve===3*ke)&&qe.push(vt),Ve+=1});vt===De.length&&(Ve<ke||!qe.length||Ve>ke&&Ve<2*ke||Ve>ke&&Ve<3*ke)&&qe.push(De.length);var Nt=qe.length;Nt===1?it.push({text:De,x:0,y:0}):Nt===2?qe.forEach(function(Pt,Ht){Ht===0?it.push({text:De.substring(0,Pt),x:0,y:-7}):it.push({text:De.substring(qe[0],Pt),x:0,y:7})}):qe.forEach(function(Pt,Ht){Ht===0?it.push({text:De.substring(0,Pt),x:0,y:-12}):Ht===1?it.push({text:De.substring(qe[0],Pt+1),x:0,y:4}):De.length>Pt?(()=>{var $t=it.reduce((hn,Pn)=>hn+Pn.text.length,0);it.push({text:De.substring($t,$t+2)+(De.length-($t+2)>0?"...":""),x:0,y:16})})():it.push({text:De.substring(qe[1]+1,Pt),x:0,y:16})})}(),it}Cs.prototype;var Gs=["circle","rect","ellipse"],nl=["url(#radialGradient-1)","url(#radialGradient-2)","url(#radialGradient-3)"],hs=["url(#lines1)","url(#lines2)","url(#lines3)"];function yl(De,ke,Ve){return De.selectAll(".node-circle").remove(),De.selectAll(".node-circle").data(ke,function(qe){return qe.id}).enter().append(function(qe){return Gs.includes(qe.shape)?document.createElementNS("http://www.w3.org/2000/svg",qe.shape):document.createElementNS("http://www.w3.org/2000/svg","circle")}).style("display",function(qe){return qe.hide?"none":"block"}).style("opacity",function(qe){return qe.hide?"0":"1"}).attr("r",function(qe){return qe.shape=="circle"?Hs(qe.size):null}).attr("rx",function(qe){return qe.shape=="ellipse"?Hs(qe.size)+10:qe.shape=="rect"?10:null}).attr("ry",function(qe){return qe.shape=="ellipse"?Hs(qe.size)+10:qe.shape=="rect"?10:null}).attr("width",function(qe){return qe.shape=="rect"?3*(Hs(qe.size)-6):2*(Hs(qe.size)-6)}).attr("height",function(qe){return qe.shape=="rect"?1.5*(Hs(qe.size)-6):2*(Hs(qe.size)-6)}).attr("fill",function(qe){return qe.colorType?nl[qe.colorType-1]:qe.color||"url(#radialGradient-1)"}).attr("color",function(qe){return qe.color||"#2E8B57"}).attr("class",function(qe){return"node-circle node-circle-".concat(qe.id," transition-opacity duration-500")}).attr("id",function(qe){return"node-circle".concat(qe.id)}).style("cursor","pointer").on("mouseover",function(qe,it){var dt=it.activeColor||"#008FFF";qe.target.setAttribute("stroke",dt),qe.target.setAttribute("stroke-width","8")}).on("mouseout",function(qe){qe.target.setAttribute("stroke-width","0")}).append("title").text(function(qe){return qe.name}),De.selectAll(".node-circle")}function Hs(De){var ke=32;switch(De){case 0:ke=23;break;case 1:ke=26;break;case 2:default:ke=32;break;case 3:ke=38}return ke}function _l(De,ke){return De.selectAll("text").remove(),De.selectAll("text").data(ke,function(Ve){return Ve.id}).enter().append("text").attr("dy",".35em").attr("text-anchor","middle").attr("pointer-events","none").style("fill","#fff").style("font-size","10px").style("text-anchor","middle").attr("class",function(Ve){return"node-text node-circle node-circle--text-".concat(Ve.id," node-text-").concat(Ve.id," transition-opacity duration-500")}).style("cursor","pointer").append("svg:title").text(function(Ve){return Ve.name}),De.selectAll("text").style("display",function(Ve){return Ve.hide?"none":"block"}),De.selectAll("text").attr("d",function(Ve){Ve.shape=="rect"?_n(".node-circle--text-".concat(Ve.id)).append("tspan").style("cursor","pointer").append("tspan").text(function(qe){return qe.name}):tl(Ve.name,Hs(Ve.size)).forEach(function(qe,it){_n(".node-circle--text-".concat(Ve.id)).append("tspan").style("cursor","pointer").attr("class",function(dt){return"node-circle--tspan-".concat(dt.id,"-").concat(it)}).attr("x",qe.x).attr("y",qe.y).text(function(){return qe.text})})}),De.selectAll("text")}function Ss(De){var ke=arguments.length>1&&arguments[1]!==void 0&&arguments[1],Ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],qe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},it=qe._ops,dt=_n("body"),bt=[];if(ke&&it.isShowBatchOperation)return Ve.push(De.id),_n("".concat(it.containerName)).style("background","#5e5e5e"),Ve.forEach(function($t){bt.push(dt.select("".concat(it.containerName," .node-circle-").concat($t)).attr("color"))}),dt.selectAll("".concat(it.containerName," .node-circle")).attr("fill","#3c3b3b"),Ve.forEach(function($t,hn){dt.select("".concat(it.containerName," .node-circle-").concat($t)).attr("fill",bt[hn])}),void _n(".graph-bath").style("display","block");if(it.isShowMask){var vt=[],Nt=[];it.links.map(function($t){$t.source.id==De.id&&(vt.push($t.target.id),Nt.push($t.source.id+$t.target.id)),$t.target.id==De.id&&(vt.push($t.source.id),Nt.push($t.source.id+$t.target.id))});var Pt=zs(vt),Ht=zs(Nt);Pt.push(De.id),dt.selectAll("".concat(it.containerName," .line-item")).style("display","none"),_n("".concat(it.containerName)).style("background","#5e5e5e"),Pt.forEach(function($t){bt.push(dt.select("".concat(it.containerName," .node-circle-").concat($t)).attr("color"))}),dt.selectAll("".concat(it.containerName," .node-circle")).attr("fill","#3c3b3b"),Pt.forEach(function($t,hn){dt.select("".concat(it.containerName," .node-circle-").concat($t)).attr("fill",bt[hn])}),Ht.forEach(function($t){dt.selectAll("".concat(it.containerName," .line-item-").concat($t)).style("display",function(hn){return hn.hide?"none":"block"})})}}var vs=[],ha={addPath:function(De){De.forEach(function(ke){var Ve=vs.indexOf(ke);Ve!=-1&&vs.splice(Ve,1),vs.unshift(ke)})},getPath:function(){return vs},clearPath:function(){vs.length=0}};function ts(De,ke,Ve,qe){return Dl.apply(this,arguments)}function Dl(){return Dl=Vs(bs().mark(function De(ke,Ve,qe,it){var dt;return bs().wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return dt=qe._ops,bt.delegateYield(bs().mark(function vt(){var Nt,Pt,Ht,$t,hn,Pn,Dn,pn,bn,Gn,Un,sr,cr,ni,Tr,Si,Ui,Fi,jr,Vr,yi,zn,fr,$r,xr,Yr,Lr,Or,Bi,na;return bs().wrap(function(Oi){for(;;)switch(Oi.prev=Oi.next){case 0:Oi.t0=ke,Oi.next=Oi.t0==="remove"?3:Oi.t0==="hide"?19:Oi.t0==="contraction"?22:Oi.t0==="extend"?42:Oi.t0==="editSize"?62:Oi.t0==="editColor"?71:Oi.t0==="editShape"?79:Oi.t0==="extend-path"?87:Oi.t0==="contraction-path"?96:100;break;case 3:Nt=0;case 4:if(!(Nt<Ve.length)){Oi.next=17;break}Pt=0;case 6:if(!(Pt<dt.nodes.length)){Oi.next=13;break}if(dt.nodes[Pt].id!=Ve[Nt]){Oi.next=10;break}return dt.nodes.splice(Pt,1),Oi.abrupt("break",13);case 10:Pt++,Oi.next=6;break;case 13:for(Ht=0;Ht<dt.links.length;Ht++)dt.links[Ht].source.id!=Ve[Nt]&&dt.links[Ht].target.id!=Ve[Nt]||(dt.links.splice(Ht,1),Ht--);case 14:Nt++,Oi.next=4;break;case 17:return qe.update(),Oi.abrupt("break",100);case 19:for($t=0;$t<Ve.length;$t++){for(hn=0;hn<dt.nodes.length;hn++)dt.nodes[hn].id==Ve[$t]&&(dt.nodes[hn].hide=!0);for(Pn=0;Pn<dt.links.length;Pn++)dt.links[Pn].source.id!=Ve[$t]&&dt.links[Pn].target.id!=Ve[$t]||(dt.links[Pn].hide=!0)}return qe.update(),Oi.abrupt("break",100);case 22:for(Dn=[],pn=function(Ea){dt.links.map(function(Ma){if(Ma.source.id==Ve[Ea]){Ma.hide=!0;for(var Na=!1,ji=0;ji<dt.links.length;ji++)(dt.links[ji].source.id==Ma.target.id||dt.links[ji].target.id==Ma.target.id&&dt.links[ji].source.id!=Ve[Ea])&&(Na=!0);Na||Dn.push(Ma.target.id)}})},bn=0;bn<Ve.length;bn++)pn(bn);Gn=0;case 26:if(!(Gn<dt.nodes.length)){Oi.next=40;break}Un=0;case 28:if(!(Un<Dn.length)){Oi.next=37;break}if(dt.nodes[Gn].id!=Dn[Un]){Oi.next=34;break}return dt.nodes[Gn].hide=!0,Dn.splice(Un,1),Un--,Oi.abrupt("break",37);case 34:Un++,Oi.next=28;break;case 37:Gn++,Oi.next=26;break;case 40:return qe.update(),Oi.abrupt("break",100);case 42:for(sr=[],cr=function(Ea){dt.links.map(function(Ma){Ma.source.id==Ve[Ea]&&(Ma.hide=!1,sr.push(Ma.target.id))})},ni=0;ni<Ve.length;ni++)cr(ni);Tr=0;case 46:if(!(Tr<dt.nodes.length)){Oi.next=60;break}Si=0;case 48:if(!(Si<sr.length)){Oi.next=57;break}if(dt.nodes[Tr].id!=sr[Si]){Oi.next=54;break}return dt.nodes[Tr].hide=!1,sr.splice(Si,1),Si--,Oi.abrupt("break",57);case 54:Si++,Oi.next=48;break;case 57:Tr++,Oi.next=46;break;case 60:return qe.update(),Oi.abrupt("break",100);case 62:if(Ui=0,!it){Oi.next=70;break}return Oi.next=66,it();case 66:for((Ui=Oi.sent)<=24&&(Ui=24),Fi=0;Fi<Ve.length;Fi++)for(jr=0;jr<dt.nodes.length;jr++)dt.nodes[jr].id==Ve[Fi]&&(dt.nodes[jr].size=Ui);qe.update();case 70:return Oi.abrupt("break",100);case 71:if(Vr=0,!it){Oi.next=78;break}return Oi.next=75,it();case 75:for(Vr=Oi.sent,yi=0;yi<Ve.length;yi++)for(zn=0;zn<dt.nodes.length;zn++)dt.nodes[zn].id==Ve[yi]&&(dt.nodes[zn].color=Vr);qe.update();case 78:return Oi.abrupt("break",100);case 79:if(fr="circle",!it){Oi.next=86;break}return Oi.next=83,it();case 83:for(fr=Oi.sent,$r=0;$r<Ve.length;$r++)for(xr=0;xr<dt.nodes.length;xr++)dt.nodes[xr].id==Ve[$r]&&(dt.nodes[xr].shape=fr);qe.update();case 86:return Oi.abrupt("break",100);case 87:return Yr=Ve[0],Lr=ha.getPath(),(Or=Lr.length>1?Lr[1]:null)&&ns.contractionPath(Or,Lr,qe),ns.extendPath(Yr,qe),ns.previousStep.id=Yr,ns.previousStep.operate="extend",qe.update(),Oi.abrupt("break",100);case 96:return Bi=Ve[0],(na=ha.getPath()).indexOf(Bi)!=-1&&(ns.contractionPath(Bi,na,qe),ns.previousStep.operate=="extend"&&ns.previousStep.id!=Bi?(ns.extendPath(ns.previousStep.id,qe),ns.previousStep.operate="extend"):(ns.previousStep.id=Bi,ns.previousStep.operate="contraction"),qe.update()),Oi.abrupt("break",100);case 100:case"end":return Oi.stop()}},vt)})(),"t0",2);case 2:_n(dt.containerName).style("background",dt.background);case 3:case"end":return bt.stop()}},De)})),Dl.apply(this,arguments)}var xl,ns={extendPath:function(De,ke){for(var Ve=ke._ops,qe=Ve.nodes,it=Ve.links,dt=[],bt=[],vt=0;vt<it.length;vt++)it[vt].source.id==De&&it[vt].target.id!=De&&(Ve.links[vt].hide=!1,dt.push(it[vt].target.id)),it[vt].source.id!=De&&it[vt].target.id==De&&(Ve.links[vt].hide=!1,dt.push(it[vt].source.id));if(dt.length){for(var Nt=0;Nt<qe.length;Nt++)for(var Pt=0;Pt<dt.length;Pt++)if(qe[Nt].id==dt[Pt]){Ve.nodes[Nt].hide=!1,dt.splice(Pt,1),Pt--;break}if(qe.map(function(Pn){Pn.hide&&bt.push(Pn.id)}),bt.length>0)for(var Ht=0;Ht<it.length;Ht++)for(var $t=0;$t<bt.length;$t++)it[Ht].source.id!=bt[$t]&&it[Ht].target.id!=bt[$t]||(it[Ht].hide=!0),bt.includes(it[Ht].source.id)||bt.includes(it[Ht].target.id)||(it[Ht].hide=!1);else for(var hn=0;hn<it.length;hn++)it[hn].hide=!1}},contractionPath:function(De,ke,Ve){for(var qe=Ve._ops,it=qe.nodes,dt=qe.links,bt=[],vt=[],Nt=!1,Pt=0;Pt<it.length;Pt++)if(it[Pt].id==De){Nt=!!it[Pt].isExtendedState;break}if(Nt&&(dt.forEach(function(Dn,pn){Dn.source.id==De&&ns.filterEvery(ke,Dn.target.id)&&(qe.links[pn].hide=!0,bt.push(Dn.target.id)),Dn.target.id==De&&ns.filterEvery(ke,Dn.source.id)&&(qe.links[pn].hide=!0,bt.push(Dn.source.id))}),bt.length)){for(var Ht=0;Ht<it.length;Ht++)for(var $t=0;$t<bt.length;$t++)if(it[Ht].id==bt[$t]){qe.nodes[Ht].hide=!0,vt.push(qe.nodes[Ht].id),bt.splice($t,1),$t--;break}for(var hn=0;hn<dt.length;hn++)for(var Pn=0;Pn<vt.length;Pn++)dt[hn].source.id!=vt[Pn]&&dt[hn].target.id!=vt[Pn]||(dt[hn].hide=!0)}},filterEvery:function(De,ke){return De.every(function(Ve){return Ve!=ke})},previousStep:{id:"0",operate:"undefined"}};function Rl(De,ke,Ve){var qe=De.selectAll(".line-item");return(qe=qe.data(ke,function(it){return"".concat(it.source.id,"_").concat(it.target.id)})).exit().remove(),(qe=qe.enter().append("g")).append("path").style("fill",function(it){return it.colorType?hs[it.colorType-1]:it.color||"url(#lines1)"}).attr("stroke-width",function(it){return Math.sqrt(it.value)}).attr("stroke","none").style("cursor","pointer").attr("class",function(it,dt){return"line-item-inner line-item-inner-".concat(dt)}).on("click",function(it,dt){Ve._ops.linkClick(dt)}).on("mouseover",function(it,dt){Bl(De,dt,"in",Ve)}).on("mouseout",function(it,dt){Bl(De,dt,"out",Ve)}),qe.attr("class",function(it){return"line-item line-item-".concat(it.source.id).concat(it.target.id)}).append("text").attr("class",function(it,dt){return"line-text-item line-text-item-".concat(dt)}).attr("stroke","none").style("pointer-events","none").style("text-anchor","middle").style("fill","rgba(184, 191, 204, 1)").style("font-size","10px"),De.selectAll(".line-item").style("display",function(it){return it.hide?"none":"block"}).style("opacity",function(it){return it.hide?"0":"1"}).attr("class",function(it,dt){return"line-item line-item-".concat(it.source.id).concat(it.target.id," line-item-index-").concat(dt," transition-opacity duration-500")}),[De.selectAll(".line-item"),De.selectAll(".line-item-inner"),De.selectAll(".line-text-item")]}function Bl(De,ke,Ve,qe){Ve==="in"?(De.select(".line-item-inner-".concat(ke.index)).style("fill",function(it){return it.colorType?hs[it.colorType-1]:it.color||hs[0]}),De.select(".line-item-inner-".concat(ke.index)).attr("stroke-width","3"),De.select(".line-item-inner-".concat(ke.index)).attr("stroke",function(it){return it.colorType?hs[it.colorType-1]:it.color||hs[0]}),De.select(".line-text-item-".concat(ke.index)).style("fill","rgba(184, 191, 204, 1)"),De.select(".line-text-item-".concat(ke.index)).style("font-size","14px")):(De.select(".line-item-inner-".concat(ke.index)).style("fill",function(it){return it.colorType?hs[it.colorType-1]:it.color||hs[0]}),De.select(".line-item-inner-".concat(ke.index)).attr("stroke-width",Math.sqrt(ke.value)),De.select(".line-item-inner-".concat(ke.index)).attr("stroke","none"),De.select(".line-text-item-".concat(ke.index)).style("fill","rgba(184, 191, 204, 1)"),De.select(".line-text-item-".concat(ke.index)).style("font-size","10px"))}function Zo(De){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};xl=De,ke._linkContainer.selectAll(".connect-item")._groups[0].length||ke._linkContainer.append("g").attr("class","connect-item").append("path").attr("stroke-width",2).attr("stroke","#5e5ef0").attr("class","connect-item-inner"),_n("".concat(ke._ops.containerName)).on("mousemove",function(Ve){yo(Ve,ke)})}function yo(De,ke){var Ve,qe,it,dt=(Ve=ke._linkContainer._groups[0][0].parentNode.attributes.transform,{translate:(it=(qe=Ve)&&/translate/.test(qe.value)&&/scale/.test(qe.value)&&qe.value.match(/translate\(([^\)]+)\)\s?scale\(([^\)]+)/))&&it[1].split(",")||[0,0],scale:it&&it[2]||1}),bt=dt.translate,vt=dt.scale;ke._linkContainer.selectAll(".connect-item-inner").attr("d",function(){return"M".concat(xl.x,", ").concat(xl.y," L").concat(De.offsetX/vt-bt[0]/vt,", ").concat(De.offsetY/vt-bt[1]/vt)})}function zo(De){return Array.isArray(De[0])?{message:"success",done:function(ke){for(var Ve=0;Ve<De.length;Ve++){var qe={hide:!1,label:De[Ve][2]?De[Ve][2].name:"",source:De[Ve][0][ke._ops.benchmark],target:De[Ve][1][ke._ops.benchmark],props:De[Ve][3]?De[Ve][3].name:[],sourceRadius:32,targetRadius:32,value:1,sh:1,relation:1};ke._ops.links.push(qe)}Mo(ke),ke.update()}}:{message:"error",done:Mo}}function Mo(De){_n("".concat(De._ops.containerName)).on("mousemove",null),De._linkContainer.selectAll(".connect-item-inner").attr("d",null)}function Xs(De){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"order",Ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,qe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,it=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,dt=!0;return qe==1&&De.length%2==0&&(dt=!1),De.map(function(bt,vt){bt._level=qe,bt._value=qe==1?vt+1:vt+1+(Ve-1)*De.length,bt._parent=qe==2?1:it,bt._site=qe!=1||dt?ke:vt<De.length/2?"right":"left",bt.children&&bt.children.length&&Xs(bt.children,bt._site,bt._value,qe+1,De.length)}),De}var jn,$i,va,ia=!1,$a=[],La=!1,Pa=[],co=["arc-item","pie-item","pie-icon","operation-item","node-circle"],Bo=function(){function De(ke){var Ve=this;Zs(this,De),this._example=ke,this._operationContainer=ke.operationContainer,this._operationContainer.addElement(this.initPie,this),this.containerSize=0,_n(this._example._ops.containerName).on("click",function(qe){if(!(qe.target.classList&&qe.target.classList[0]&&co.includes(qe.target.classList[0]))&&Ve._example._ops.isCustomClick){var it=Ve;jn=null,_t(Ve._operationContainer),_n(it._example._ops.containerName).selectAll(".node-circle").attr("fill",function(dt){return dt.colorType?nl[dt.colorType-1]:dt.color||"url(#radialGradient-1)"}),_n(it._example._ops.containerName).selectAll(".line-item").style("display",function(dt){return dt.hide?"none":"block"}),_n(Ve._example._ops.containerName).style("background",Ve._example._ops.background),_n(".graph-bath").style("display","none"),$a=[]}}),document.addEventListener("keyup",function(qe){qe.keyCode==27&&La&&(_n("".concat(Ve._example._ops.containerName)).on("mousemove",null),_n(".graph-container").on("mousemove",null),Ve._example._linkContainer.selectAll(".connect-item-inner").attr("d",null),Pa.length=0)})}return Ws(De,[{key:"initPie",value:function(ke,Ve){Ve._toolbarData=Xs(Ve._example._ops.toolbarData),Ve._symbolIcon=ke.append("g").attr("class","icons")}},{key:"showPie",value:function(ke,Ve){if(ke){var qe=this._example._ops;if(this.containerSize=function(dt){var bt=32;switch(dt){case 1:bt=26;break;case 2:default:bt=32;break;case 3:bt=38}return bt}(ke.size)+8,La)(function(dt,bt){cn.apply(this,arguments)})(ke,this._example);else if(Ss(ke,Ve.shiftKey,$a,this._example),this._toolbarData.length&&(_t(this._operationContainer),!Ve.shiftKey&&!$a.length))if(jn!=Ve.target.id){jn=Ve.target.id,this._operationContainer.attr("transform",function(){return"translate("+ke.x+" "+ke.y+")"}).attr("data-node",JSON.stringify(ke)).style("display","block");var it={code:"root",name:"\u6839",_level:0,_parent:1,_value:1,children:this._toolbarData};ia=!0,$i=ke,this._operationContainer.selectAll(".operation-item-root")._groups[0].length?this.drawPie("".concat(qe.containerName," .operation-item-root"),it):this.createArc(it)}else jn=null}else _t(this._operationContainer)}},{key:"createArc",value:function(ke){var Ve=this._example._ops,qe=this,it=this._operationContainer.selectAll("".concat(Ve.containerName," .operation-item-").concat(ke.code)).data(ke.children).enter().append("a").style("color",Ve.arcColor).attr("class","operation-item-".concat(ke.code," arc-item"));this._symbolIcon.selectAll(".icons-symbol").data(ke.children).enter().append("symbol").attr("class",function(dt,bt){return"icons-symbol-".concat(dt.code).concat(bt)}).attr("id",function(dt,bt){return"icons-symbol-".concat(dt.code).concat(bt)}).append("path").attr("class","icon").attr("d",function(dt){return dt.icon}),it.append("path").attr("fill",Ve.pieFill).attr("class","pie-item").on("mouseover",function(dt){dt.target.setAttribute("fill",Ve.activePieFill)}).on("mouseout",function(dt){dt.target.setAttribute("fill",Ve.pieFill)}).on("click",function(dt,bt){if(!bt.click&&bt.children&&bt.code&&(qe._operationContainer.selectAll("".concat(Ve.containerName," .operation-item-").concat(bt.code))._groups[0].length?qe.drawPie("".concat(Ve.containerName," .operation-item-").concat(bt.code),bt):qe.createArc(bt)),bt.click){if(!(bt.click({verify:!0})instanceof Promise))throw _t(qe._operationContainer),new Error("the click function does not return a promise");va=bt,function(vt,Nt,Pt){Xt.apply(this,arguments)}(bt,$i,qe)}}).append("title").text(function(dt){return dt.name}),it.append("svg").attr("class","pie-icon").style("display","none").attr("width",18).attr("height",18).attr("viewBox","0 0 1024 1024").append("use").attr("xlink:href",function(dt,bt){return"#icons-symbol-".concat(dt.code).concat(bt)}).style("pointer-events","none"),this.drawPie("".concat(Ve.containerName," .operation-item-").concat(ke.code),ke)}},{key:"drawPie",value:function(ke,Ve){var qe=this;if(!this._operationContainer.selectAll("".concat(ke," .pie-item")).attr("d")){var it=document.querySelectorAll("".concat(ke," .pie-icon"));this._operationContainer.selectAll(".arc-item").style("color",qe._example._ops.arcColor),this._operationContainer.selectAll("".concat(ke," .pie-item")).attr("fill",qe._example._ops.pieFill).transition().duration(500).attrTween("d",function(dt,bt){var vt=function(Pt,Ht,$t){var hn=[];if(Ht._site=="order"){var Pn=Pt._num||1,Dn=Js()(new Array(Pt.children.length*Pn).fill(1));return Ht._num=Dn.length,hn=wn(Dn,Dn.length/Pt._num)[Pt._value-1],Pt._level==0&&(hn=Dn),hn}var pn,bn=0,Gn=[];Pt._level==0?(bn=Pt.children.length,pn=Js()(new Array(bn).fill(1)).map(function(sr,cr){if(cr>=bn/2){var ni=sr.startAngle;sr.startAngle=sr.endAngle,sr.endAngle=ni}return sr})):(bn=Pt._level==1?Pt.children.length*$t._toolbarData.length:Pt.children.length*Pt._num,pn=Js()(new Array(bn).fill(1)).map(function(sr){if(Pt._site=="left"){var cr=sr.startAngle;sr.startAngle=sr.endAngle,sr.endAngle=cr}return sr})),Ht._num=pn.length;var Un=Pt._value;return Ht._site=="left"?(Gn=pn.slice(pn.length/2,pn.length),Un=Pt._value-Pt._num/2):Gn=pn.slice(0,pn.length/2),hn=wn(Gn,Gn.length/(Pt._num/2))[Un-1],Pt._level==0&&(hn=pn),hn}(Ve,dt,qe),Nt=Li(vt[bt].startAngle,vt[bt].endAngle);return function(Pt){return ia?function(Ht,$t,hn,Pn,Dn,pn,bn,Gn){var Un=xt(hn[bn].startAngle,$t(Ht),Dn._level+1,Dn._level+2,Gn),sr=Un.centroid(hn[bn]);return Pn[bn].setAttribute("x",sr[0]-6),Pn[bn].setAttribute("y",sr[1]-6),Gn._operationContainer.selectAll("".concat(pn," .pie-icon")).transition().delay(150).styleTween("display",function(){return qr("none",ia?"block":"none")}),Un()}(Pt,Nt,vt,it,Ve,ke,bt,qe):""}})}}}]),De}();function _t(De){De.selectAll(".arc-item .pie-item").interrupt().attr("d",null),De.selectAll(".arc-item .pie-icon").interrupt().style("display","none"),De.style("display","none"),De.selectAll(".operation-item").attr("transform",function(){return"rotate(0)"}),ia=!1}var xt=function(De,ke){var Ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,qe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:2,it=arguments.length>4?arguments[4]:void 0;return Ts().innerRadius(Ve*it.containerSize+2).outerRadius(qe*it.containerSize).padAngle(.02).startAngle(De).endAngle(ke)};function Xt(){return Xt=Vs(bs().mark(function De(ke,Ve,qe){var it,dt,bt;return bs().wrap(function(vt){for(;;)switch(vt.prev=vt.next){case 0:vt.t0=ke.type,vt.next=vt.t0==="connect"?3:vt.t0==="unlocked"?8:33;break;case 3:return Pa.length=0,La=!0,Pa.push(Ve),Zo(Ve,qe._example),vt.abrupt("break",36);case 8:dt=el(qe._example._ops.nodes),vt.prev=9,dt.s();case 11:if((bt=dt.n()).done){vt.next=19;break}if((it=bt.value).id!=Ve.id){vt.next=17;break}return it.fx=null,it.fy=null,vt.abrupt("break",19);case 17:vt.next=11;break;case 19:vt.next=24;break;case 21:vt.prev=21,vt.t1=vt.catch(9),dt.e(vt.t1);case 24:return vt.prev=24,dt.f(),vt.finish(24);case 27:return qe._example._simulation._simulation.nodes(qe._example._ops.nodes),qe._example._simulation._simulation.alphaTarget(.08).restart(),setTimeout(function(){qe._example._simulation._simulation.alphaTarget(0)},300),vt.next=32,ke.click(Ve);case 32:return vt.abrupt("break",36);case 33:return vt.next=35,ke.click({node:Ve});case 35:ts(ke.type,[Ve.id],qe._example);case 36:jn=null,_t(qe._operationContainer);case 38:case"end":return vt.stop()}},De,null,[[9,21,24,27]])})),Xt.apply(this,arguments)}function cn(){return(cn=Vs(bs().mark(function De(ke,Ve){var qe,it,dt;return bs().wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return _n(".graph-container").on("mousemove",null),La=!1,Pa.push(ke),it={node:ke,connects:(qe=[]).concat.apply(qe,Pa)},bt.next=6,va.click(it);case 6:dt=bt.sent,zo(dt||[Pa.splice(0)]).done(Ve),Ss(it.connects[0],!1,[],Ve),Pa.length=0;case 11:case"end":return bt.stop()}},De)}))).apply(this,arguments)}function wn(De,ke){for(var Ve=[],qe=0;qe<De.length;)Ve.push(De.slice(qe,qe+=ke));return Ve}function Rn(De,ke,Ve,qe){var it=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,dt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:7,bt=arguments.length>6&&arguments[6]!==void 0?arguments[6]:7;this.deflection=qe;var vt=function(Lr){return Lr*Lr},Nt=this.deflection*Math.PI/180,Pt={x:Math.cos(Nt)*De,y:Math.sin(Nt)*De},Ht=De/(ke+bt),$t=-Ve*Ht/(1-Ht),hn=function(Lr,Or,Bi,na){var Oi=Lr.y/(Lr.x-$t),Ea=Lr.y-Oi*Lr.x,Ma=1+vt(Oi),Na=2*(Oi*Ea-Bi),ji=vt(Ea)+vt(Bi)-vt(Or),aa={x:(-Na+na*Math.sqrt(vt(Na)-4*Ma*ji))/(2*Ma)};return aa.y=(aa.x-$t)*Oi,aa},Pn=hn(Pt,ke+bt,Ve,-1),Dn=-Pt.x/Pt.y,pn=Pt.y+vt(Pt.x)/Pt.y,bn=-(Pn.x-Ve)/Pn.y,Gn=Pn.y+(Pn.x-Ve)*Pn.x/Pn.y,Un=(pn-Gn)/(bn-Dn),sr=Dn*Un+pn,cr=Math.sqrt(vt(Un-Pt.x)+vt(sr-Pt.y)),ni=Math.atan2(Pt.x-Un,sr-Pt.y),Tr=Math.atan2(Pn.x-Un,sr-Pn.y),Si=(ni+Tr)/2;this.deflection>0&&(Si+=Math.PI);var Ui=Tr-ni;this.deflection>0&&(Ui=2*Math.PI-Ui),this.shaftLength=Ui*cr,ni>Tr&&(this.shaftLength=0),this.midShaftPoint={x:Un+cr*Math.sin(Si),y:sr-cr*Math.cos(Si)};var Fi=function(Lr){var Or=(Lr<0?1:-1)*Math.sqrt(vt(Lr)/(1+vt(Dn))),Bi=Dn*Or;return{x:Pt.x+Or,y:Pt.y+Bi}},jr=function(Lr){var Or=(Lr<0?-1:1)*Math.sqrt(vt(Lr)/(1+vt(bn))),Bi=bn*Or;return{x:Pn.x+Or,y:Pn.y+Bi}},Vr=function(Lr,Or){return{x:Un+(cr+Or)*Math.sin(Lr),y:sr-(cr+Or)*Math.cos(Lr)}},yi=function(Lr){var Or=(Lr<0?-1:1)*Math.sqrt(vt(Lr)/(1+vt(1/bn))),Bi=Or/bn;return{x:Pn.x+Or,y:Pn.y-Bi}},zn=function(Lr){return Lr.x+","+Lr.y},fr=it/2,$r=dt/2,xr=Pt.y>0?0:1,Yr=Pt.y<0?0:1;this.outline=function(){if(ni>Tr)return["M",zn(jr(-$r)),"L",zn(yi(bt)),"L",zn(jr($r)),"Z"].join(" ");var Lr=Si-0,Or=Si+0;return["M",zn(Fi(fr)),"L",zn(Fi(-fr)),"A",cr-fr,cr-fr,0,0,xr,zn(Vr(Lr,-fr)),"L",zn(Vr(Lr,fr)),"A",cr+fr,cr+fr,0,0,Yr,zn(Fi(fr)),"Z","M",zn(Vr(Or,fr)),"L",zn(Vr(Or,-fr)),"A",cr-fr,cr-fr,0,0,xr,zn(jr(-fr)),"L",zn(jr(-$r)),"L",zn(yi(bt)),"L",zn(jr($r)),"L",zn(jr(fr)),"A",cr+fr,cr+fr,0,0,Yr,zn(Vr(Or,fr))].join(" ")}}function qn(De,ke,Ve){var qe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:8,it=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,dt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:7,bt=arguments.length>6&&arguments[6]!==void 0?arguments[6]:7,vt=Ve*Math.PI/180,Nt=De,Pt=De+bt,Ht=De+ke,$t=Ht*Math.tan(vt/2),hn=it/2;function Pn(Un,sr){return Un+","+sr}this.shaftLength=3*$t+it;var Dn=function(Un,sr,cr){var ni=sr*Math.tan(vt/2),Tr=sr/Math.cos(vt/2);return Pn((ni+cr)*Math.sin(Un),Tr+(ni+cr)*Math.cos(Un))},pn=function(){var Un=Dn(0,Ht,hn+qe/2+2).split(",");return{x:Un[0],y:Un[1]}};this.midShaftPoint=pn();var bn=function(Un,sr){return Dn((Math.PI+vt)/2,Un,sr)},Gn=function(Un,sr){return Dn(-(Math.PI+vt)/2,Un,sr)};this.outline=function(){var Un=$t-hn,sr=$t+hn;return["M",bn(Nt,hn),"L",bn(Ht,hn),"A",sr,sr,0,1,1,Gn(Ht,hn),"L",Gn(Pt,hn),"L",Gn(Pt,-dt/2),"L",Gn(Nt,0),"L",Gn(Pt,dt/2),"L",Gn(Pt,-hn),"L",Gn(Ht,-hn),"A",Un,Un,0,1,0,bn(Ht,-hn),"L",bn(Nt,-hn),"Z"].join(" ")}}function En(De,ke,Ve){var qe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,it=arguments.length>4&&arguments[4]!==void 0?arguments[4]:7,dt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:7;this.length=Ve-(De+ke),this.shaftLength=this.length-dt;var bt=De,vt=bt+this.shaftLength,Nt=bt+this.length,Pt=qe/2,Ht=it/2;this.midShaftPoint={x:bt+this.shaftLength/2,y:0},this.outline=function(){var $t=0,hn=0;return["M",bt,Pt,"L",$t,Pt,"L",$t,-Pt,"L",bt,-Pt,"Z","M",hn,Pt,"L",vt,Pt,"L",vt,Ht,"L",Nt,0,"L",vt,-Ht,"L",vt,-Pt,"L",hn,-Pt,"Z"].join(" ")}}function er(){}var Xn=new er;function Pr(De,ke){this.relationships=[],De.id<ke.id?(this.nodeA=De,this.nodeB=ke):(this.nodeA=ke,this.nodeB=De)}er.prototype.computeGeometryForNonLoopArrows=function(De){for(var ke,Ve=function(hn){return hn*hn},qe=0,it=Array.from(De);qe<it.length;qe++)for(var dt=(ke=it[qe]).nodeA.x-ke.nodeB.x,bt=ke.nodeA.y-ke.nodeB.y,vt=(Math.atan2(bt,dt)/Math.PI*180+360)%360,Nt=Math.sqrt(Ve(dt)+Ve(bt)),Pt=void 0,Ht=0,$t=Array.from(ke.relationships);Ht<$t.length;Ht++)(Pt=$t[Ht]).naturalAngle=Pt.target.id===ke.nodeA.id?(vt+180)%360:vt,Pt.centreDistance=Nt},er.prototype.shortenCaption=function(De,ke){for(var Ve=De,qe=12*Ve.length;;){if(ke>qe)return Ve;var it=Math.ceil((qe-ke)/12);return Ve.length-it<=0?"":Ve.substr(0,Ve.length-it)+"\u2026"}},er.prototype.distributeAnglesForLoopArrows=function(De,ke){for(var Ve,qe=0,it=Array.from(De);qe<it.length;qe++)if((Ve=it[qe]).isLoop()){for(var dt=void 0,bt=void 0,vt=[],Nt=Ve.nodeA,Pt=void 0,Ht=0,$t=Array.from(ke);Ht<$t.length;Ht++)(Pt=$t[Ht]).isLoop||(Pt.source.id===Nt.id&&vt.push(Pt.naturalAngle),Pt.target.id===Nt.id&&vt.push(Pt.naturalAngle+180));if(vt=vt.map(function(pn){return(pn+360)%360}).sort(function(pn,bn){return pn-bn}),vt.length>0){var hn=void 0,Pn=void 0,Dn={start:0,end:0};for(dt=0;dt<vt.length;dt++)Pn=vt[dt],(hn=dt===vt.length-1?vt[0]+360:vt[dt+1])-Pn>Dn.end-Dn.start&&(Dn.start=Pn,Dn.end=hn);for(bt=(Dn.end-Dn.start)/(Ve.relationships.length+1),dt=0;dt<Ve.relationships.length;dt++)(Pt=Ve.relationships[dt]).naturalAngle=(Dn.start+(dt+1)*bt-90)%360}else for(bt=360/Ve.relationships.length,dt=0;dt<Ve.relationships.length;dt++)(Pt=Ve.relationships[dt]).naturalAngle=dt*bt}},er.prototype.layoutRelationships=function(De){var ke,Ve,qe=function(Pn){for(var Dn,pn={},bn=0,Gn=Array.from(Pn);bn<Gn.length;bn++){var Un=new Pr((Dn=Gn[bn]).source,Dn.target);(Un=pn[Un]!=null?pn[Un]:Un).relationships.push(Dn),pn[Un]=Un}return function(){var sr=[];for(var cr in pn){var ni=pn[cr];sr.push(ni)}return sr}()}(De);this.computeGeometryForNonLoopArrows(qe),this.distributeAnglesForLoopArrows(qe,De);for(var it=0,dt=Array.from(qe);it<dt.length;it++){Ve=dt[it];for(var bt=0,vt=Array.from(Ve.relationships);bt<vt.length;bt++)delete(ke=vt[bt]).arrow;for(var Nt=(Ve.relationships.length-1)/2,Pt=Ve.relationships.length-1,Ht=30*Pt>150?150/Pt:30,$t=0;$t<Ve.relationships.length;$t++){if(ke=Ve.relationships[$t],Ve.isLoop())ke.arrow=new qn(ke.sourceRadius,40,30);else if($t===Nt)ke.arrow=new En(ke.sourceRadius,ke.targetRadius,ke.centreDistance);else{var hn=Ht*($t-Nt);Ve.nodeA.id!==ke.source.id&&(hn*=-1),ke.arrow=new Rn(ke.sourceRadius,ke.targetRadius,ke.centreDistance,hn)}ke.shortCaption=this.shortenCaption(ke.label,ke.arrow.shaftLength)}}},er.prototype.layoutNodes=function(De){var ke=De.width,Ve=De.height,qe=De.layout,it=De.nodes;(function(){var dt=99999999,bt=-99999999,vt=99999999,Nt=-99999999,Pt=-9999999;it.forEach(function(hn){dt>hn.x&&(dt=hn.x),bt<hn.x&&(bt=hn.x),vt>hn.y&&(vt=hn.y),Nt<hn.y&&(Nt=hn.y),Pt<hn.size&&(Pt=12)});var Ht=(ke-qe.x-Pt)/(bt-dt),$t=(Ve-qe.y-Pt)/(Nt-vt);it.forEach(function(hn){hn.x=(hn.x-dt)*Ht+qe.x/2,hn.y=(hn.y-vt)*$t+qe.y/2})})()},Pr.prototype.toString=function(){return this.nodeA.id+""+this.nodeB.id},Pr.prototype.isLoop=function(){return this.nodeA.id===this.nodeB.id};var yr=function(){function De(ke){Zs(this,De);var Ve=ke.operationContainer,qe=ke._ops,it=qe.width,dt=qe.height,bt=qe.layout;this._root=ke._ops,this._rootComponent=Ve,this.init(it,dt,bt)}return Ws(De,[{key:"init",value:function(ke,Ve,qe){console.log(ke,"width");var it=qe.simulation?qe.simulation:.01;this._simulation=zr([]).force("center",function(dt,bt){var vt,Nt=1;function Pt(){var Ht,$t,hn=vt.length,Pn=0,Dn=0;for(Ht=0;Ht<hn;++Ht)Pn+=($t=vt[Ht]).x,Dn+=$t.y;for(Pn=(Pn/hn-dt)*Nt,Dn=(Dn/hn-bt)*Nt,Ht=0;Ht<hn;++Ht)($t=vt[Ht]).x-=Pn,$t.y-=Dn}return dt==null&&(dt=0),bt==null&&(bt=0),Pt.initialize=function(Ht){vt=Ht},Pt.x=function(Ht){return arguments.length?(dt=+Ht,Pt):dt},Pt.y=function(Ht){return arguments.length?(bt=+Ht,Pt):bt},Pt.strength=function(Ht){return arguments.length?(Nt=+Ht,Pt):Nt},Pt}(ke/2,Ve/2).strength(.03)).force("charge",function(){var dt,bt,vt,Nt,Pt,Ht=Ba(-30),$t=1,hn=1/0,Pn=.81;function Dn(Un){var sr,cr=dt.length,ni=fo(dt,lo,Qa).visitAfter(bn);for(Nt=Un,sr=0;sr<cr;++sr)bt=dt[sr],ni.visit(Gn)}function pn(){if(dt){var Un,sr,cr=dt.length;for(Pt=new Array(cr),Un=0;Un<cr;++Un)sr=dt[Un],Pt[sr.index]=+Ht(sr,Un,dt)}}function bn(Un){var sr,cr,ni,Tr,Si,Ui=0,Fi=0;if(Un.length){for(ni=Tr=Si=0;Si<4;++Si)(sr=Un[Si])&&(cr=Math.abs(sr.value))&&(Ui+=sr.value,Fi+=cr,ni+=cr*sr.x,Tr+=cr*sr.y);Un.x=ni/Fi,Un.y=Tr/Fi}else{(sr=Un).x=sr.data.x,sr.y=sr.data.y;do Ui+=Pt[sr.data.index];while(sr=sr.next)}Un.value=Ui}function Gn(Un,sr,cr,ni){if(!Un.value)return!0;var Tr=Un.x-bt.x,Si=Un.y-bt.y,Ui=ni-sr,Fi=Tr*Tr+Si*Si;if(Ui*Ui/Pn<Fi)return Fi<hn&&(Tr===0&&(Fi+=(Tr=Fa(vt))*Tr),Si===0&&(Fi+=(Si=Fa(vt))*Si),Fi<$t&&(Fi=Math.sqrt($t*Fi)),bt.vx+=Tr*Un.value*Nt/Fi,bt.vy+=Si*Un.value*Nt/Fi),!0;if(!(Un.length||Fi>=hn)){(Un.data!==bt||Un.next)&&(Tr===0&&(Fi+=(Tr=Fa(vt))*Tr),Si===0&&(Fi+=(Si=Fa(vt))*Si),Fi<$t&&(Fi=Math.sqrt($t*Fi)));do Un.data!==bt&&(Ui=Pt[Un.data.index]*Nt/Fi,bt.vx+=Tr*Ui,bt.vy+=Si*Ui);while(Un=Un.next)}}return Dn.initialize=function(Un,sr){dt=Un,vt=sr,pn()},Dn.strength=function(Un){return arguments.length?(Ht=typeof Un=="function"?Un:Ba(+Un),pn(),Dn):Ht},Dn.distanceMin=function(Un){return arguments.length?($t=Un*Un,Dn):Math.sqrt($t)},Dn.distanceMax=function(Un){return arguments.length?(hn=Un*Un,Dn):Math.sqrt(hn)},Dn.theta=function(Un){return arguments.length?(Pn=Un*Un,Dn):Math.sqrt(Pn)},Dn}().strength(-350)).force("collide",function(dt){var bt,vt,Nt,Pt=1,Ht=1;function $t(){for(var Dn,pn,bn,Gn,Un,sr,cr,ni=bt.length,Tr=0;Tr<Ht;++Tr)for(pn=fo(bt,Wo,Ta).visitAfter(hn),Dn=0;Dn<ni;++Dn)bn=bt[Dn],sr=vt[bn.index],cr=sr*sr,Gn=bn.x+bn.vx,Un=bn.y+bn.vy,pn.visit(Si);function Si(Ui,Fi,jr,Vr,yi){var zn=Ui.data,fr=Ui.r,$r=sr+fr;if(!zn)return Fi>Gn+$r||Vr<Gn-$r||jr>Un+$r||yi<Un-$r;if(zn.index>bn.index){var xr=Gn-zn.x-zn.vx,Yr=Un-zn.y-zn.vy,Lr=xr*xr+Yr*Yr;Lr<$r*$r&&(xr===0&&(Lr+=(xr=Fa(Nt))*xr),Yr===0&&(Lr+=(Yr=Fa(Nt))*Yr),Lr=($r-(Lr=Math.sqrt(Lr)))/Lr*Pt,bn.vx+=(xr*=Lr)*($r=(fr*=fr)/(cr+fr)),bn.vy+=(Yr*=Lr)*$r,zn.vx-=xr*($r=1-$r),zn.vy-=Yr*$r)}}}function hn(Dn){if(Dn.data)return Dn.r=vt[Dn.data.index];for(var pn=Dn.r=0;pn<4;++pn)Dn[pn]&&Dn[pn].r>Dn.r&&(Dn.r=Dn[pn].r)}function Pn(){if(bt){var Dn,pn,bn=bt.length;for(vt=new Array(bn),Dn=0;Dn<bn;++Dn)pn=bt[Dn],vt[pn.index]=+dt(pn,Dn,bt)}}return typeof dt!="function"&&(dt=Ba(dt==null?1:+dt)),$t.initialize=function(Dn,pn){bt=Dn,Nt=pn,Pn()},$t.iterations=function(Dn){return arguments.length?(Ht=+Dn,$t):Ht},$t.strength=function(Dn){return arguments.length?(Pt=+Dn,$t):Pt},$t.radius=function(Dn){return arguments.length?(dt=typeof Dn=="function"?Dn:Ba(+Dn),Pn(),$t):dt},$t}(40)).force("x",function(dt){var bt,vt,Nt,Pt=Ba(.1);function Ht(hn){for(var Pn,Dn=0,pn=bt.length;Dn<pn;++Dn)(Pn=bt[Dn]).vx+=(Nt[Dn]-Pn.x)*vt[Dn]*hn}function $t(){if(bt){var hn,Pn=bt.length;for(vt=new Array(Pn),Nt=new Array(Pn),hn=0;hn<Pn;++hn)vt[hn]=isNaN(Nt[hn]=+dt(bt[hn],hn,bt))?0:+Pt(bt[hn],hn,bt)}}return typeof dt!="function"&&(dt=Ba(dt==null?0:+dt)),Ht.initialize=function(hn){bt=hn,$t()},Ht.strength=function(hn){return arguments.length?(Pt=typeof hn=="function"?hn:Ba(+hn),$t(),Ht):Pt},Ht.x=function(hn){return arguments.length?(dt=typeof hn=="function"?hn:Ba(+hn),$t(),Ht):dt},Ht}(ke/2).strength(.01)).force("y",function(dt){var bt,vt,Nt,Pt=Ba(.1);function Ht(hn){for(var Pn,Dn=0,pn=bt.length;Dn<pn;++Dn)(Pn=bt[Dn]).vy+=(Nt[Dn]-Pn.y)*vt[Dn]*hn}function $t(){if(bt){var hn,Pn=bt.length;for(vt=new Array(Pn),Nt=new Array(Pn),hn=0;hn<Pn;++hn)vt[hn]=isNaN(Nt[hn]=+dt(bt[hn],hn,bt))?0:+Pt(bt[hn],hn,bt)}}return typeof dt!="function"&&(dt=Ba(dt==null?0:+dt)),Ht.initialize=function(hn){bt=hn,$t()},Ht.strength=function(hn){return arguments.length?(Pt=typeof hn=="function"?hn:Ba(+hn),$t(),Ht):Pt},Ht.y=function(hn){return arguments.length?(dt=typeof hn=="function"?hn:Ba(+hn),$t(),Ht):dt},Ht}(Ve/2).strength(it))}},{key:"updateSimulation",value:function(ke,Ve,qe){var it=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,dt=qe.benchmark,bt=qe.height,vt=qe.width,Nt=qe.isResize,Pt=qe.layout,Ht=Pt.distance?Pt.distance:Math.min(bt,vt)/2-80,$t=Xi(Ve).iterations(.05).id(function(hn){return hn[dt]}).distance(function(){return Ve.length<=5&&Nt?100:Ve.length<=20&&Nt?Ht:Ve.length<=60?180:230});this._simulation.nodes(ke).force("link",$t).velocityDecay(.2).alpha(it).alphaDecay(.08),this._simulation.restart()}},{key:"addSimulationEvent",value:function(ke,Ve,qe,it){var dt=this,bt=Ll(ke,3),vt=bt[0],Nt=bt[1],Pt=bt[2];this._simulation.on("tick",function(){return Xn.layoutRelationships(it),dt._root.layout.force&&Xn.layoutNodes(dt._root),vt.attr("transform",function(Ht){return"translate("+Ht.source.x+" "+Ht.source.y+") rotate("+(Ht.naturalAngle-180)+")"}),Nt.attr("d",function(Ht){return Ht.arrow.outline(Ht)}),Pt.attr("x",function(Ht){return Ht.arrow.midShaftPoint.x}).attr("y",function(Ht){return Ht.arrow.midShaftPoint.y+13}).attr("transform",function(Ht){return Ht.naturalAngle<90||Ht.naturalAngle>270?"rotate(180 "+Ht.arrow.midShaftPoint.x+" "+Ht.arrow.midShaftPoint.y+")":null}).text(function(Ht){return Ht.shortCaption}),Ve.attr("cx",function(Ht){return Ht.x}).attr("cy",function(Ht){return Ht.y}).attr("x",function(Ht){return Ht.shape=="rect"?Ht.x-gl(Ht.size):Ht.x-Ht.size+6}).attr("y",function(Ht){return Ht.shape=="rect"?Ht.y-gl(Ht.size)/1.5:Ht.y-Ht.size+6}),void qe.attr("x",function(Ht){return tl(Ht.name,gl(Ht.size)).forEach(function($t,hn){_n(".node-circle--tspan-".concat(Ht.id,"-").concat(hn)).attr("x",Ht.x).attr("y",$t.y+Ht.y)}),Ht.x}).attr("y",function(Ht){return Ht.y})})}},{key:"drag",value:function(){var ke=this;return function(){var Ve,qe,it,dt,bt=nr,vt=ur,Nt=Nn,Pt=In,Ht={},$t=Me("start","drag","end"),hn=0,Pn=0;function Dn(Tr){Tr.on("mousedown.drag",pn).filter(Pt).on("touchstart.drag",Un).on("touchmove.drag",sr,kt).on("touchend.drag touchcancel.drag",cr).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function pn(Tr,Si){if(!dt&&bt.call(this,Tr,Si)){var Ui=ni(this,vt.call(this,Tr,Si),Tr,Si,"mouse");Ui&&(_n(Tr.view).on("mousemove.drag",bn,ln).on("mouseup.drag",Gn,ln),Qn(Tr.view),Cn(Tr),it=!1,Ve=Tr.clientX,qe=Tr.clientY,Ui("start",Tr))}}function bn(Tr){if(Mn(Tr),!it){var Si=Tr.clientX-Ve,Ui=Tr.clientY-qe;it=Si*Si+Ui*Ui>Pn}Ht.mouse("drag",Tr)}function Gn(Tr){_n(Tr.view).on("mousemove.drag mouseup.drag",null),mr(Tr.view,it),Mn(Tr),Ht.mouse("end",Tr)}function Un(Tr,Si){if(bt.call(this,Tr,Si)){var Ui,Fi,jr=Tr.changedTouches,Vr=vt.call(this,Tr,Si),yi=jr.length;for(Ui=0;Ui<yi;++Ui)(Fi=ni(this,Vr,Tr,Si,jr[Ui].identifier,jr[Ui]))&&(Cn(Tr),Fi("start",Tr,jr[Ui]))}}function sr(Tr){var Si,Ui,Fi=Tr.changedTouches,jr=Fi.length;for(Si=0;Si<jr;++Si)(Ui=Ht[Fi[Si].identifier])&&(Mn(Tr),Ui("drag",Tr,Fi[Si]))}function cr(Tr){var Si,Ui,Fi=Tr.changedTouches,jr=Fi.length;for(dt&&clearTimeout(dt),dt=setTimeout(function(){dt=null},500),Si=0;Si<jr;++Si)(Ui=Ht[Fi[Si].identifier])&&(Cn(Tr),Ui("end",Tr,Fi[Si]))}function ni(Tr,Si,Ui,Fi,jr,Vr){var yi,zn,fr,$r=$t.copy(),xr=Bn(Vr||Ui,Si);if((fr=Nt.call(Tr,new Cr("beforestart",{sourceEvent:Ui,target:Dn,identifier:jr,active:hn,x:xr[0],y:xr[1],dx:0,dy:0,dispatch:$r}),Fi))!=null)return yi=fr.x-xr[0]||0,zn=fr.y-xr[1]||0,function Yr(Lr,Or,Bi){var na,Oi=xr;switch(Lr){case"start":Ht[jr]=Yr,na=hn++;break;case"end":delete Ht[jr],--hn;case"drag":xr=Bn(Bi||Or,Si),na=hn}$r.call(Lr,Tr,new Cr(Lr,{sourceEvent:Or,subject:fr,target:Dn,identifier:jr,active:na,x:xr[0]+yi,y:xr[1]+zn,dx:xr[0]-Oi[0],dy:xr[1]-Oi[1],dispatch:$r}),Fi)}}return Dn.filter=function(Tr){return arguments.length?(bt=typeof Tr=="function"?Tr:lr(!!Tr),Dn):bt},Dn.container=function(Tr){return arguments.length?(vt=typeof Tr=="function"?Tr:lr(Tr),Dn):vt},Dn.subject=function(Tr){return arguments.length?(Nt=typeof Tr=="function"?Tr:lr(Tr),Dn):Nt},Dn.touchable=function(Tr){return arguments.length?(Pt=typeof Tr=="function"?Tr:lr(!!Tr),Dn):Pt},Dn.on=function(){var Tr=$t.on.apply($t,arguments);return Tr===$t?Dn:Tr},Dn.clickDistance=function(Tr){return arguments.length?(Pn=(Tr=+Tr)*Tr,Dn):Math.sqrt(Pn)},Dn}().on("start",function(Ve){var qe=Ve.subject;Ve.active||ke._simulation.alphaTarget(.08).restart(),qe.fx=qe.x,qe.fy=qe.y}).on("drag",function(Ve){_t(ke._rootComponent),Ve.subject.fx=Ve.x,Ve.subject.fy=Ve.y,Ve.subject.drag=!0,ke._simulation.force("center",null),ke._root.nodeMove(Ve)}).on("end",function(Ve){Ve.active||ke._simulation.alphaTarget(0)})}}]),De}();function br(De,ke,Ve){var qe=document.createElement("ul");qe.className="graph-bath",ke.forEach(function(it){var dt=document.createElement("li");if(dt.innerText=it.name,dt.className="graph-bath-item",it.click){if(!(it.click()instanceof Promise))throw new Error("the click function does not return a promise");dt.onclick=function(){ts(it.type,$a,Ve,it.click)}}else dt.onclick=function(){ts(it.type,$a,Ve)};qe.appendChild(dt)}),qe.style.position="fixed",qe.style.top="100px",qe.style.right="0",qe.style.display="none",document.querySelector(Ve._ops.containerName).append(qe)}var gr={width:1e3,height:1e3,containerName:"#graph",benchmark:"id",background:"#F7FAFC",pieFill:"#dddde1",activePieFill:"#b5b5bd",arcColor:"#000",isShowMask:!0,isResize:!1,isCustomClick:!0,isCustomMouse:!1,isShowBatchOperation:!1,clickToggle:!1,nodes:[],links:[],nodeSize:32,nodeClick:function(){},nodeMouseover:function(){},nodeMouseout:function(){},nodeMove:function(){},linkClick:function(){},zoomOptions:{minScale:.5,maxScale:1.5},linkOps:{stroke:"#999","stroke-opacity":.6},layout:{simulation:0,distance:0,force:!1,x:10,y:10},colors:["rgba(42, 134, 246, 1)","rgba(9, 179, 222, 1)","rgba(253, 141, 60, 1)","rgba(255, 71, 81, 1)","rgba(120, 152, 210, 1)","rgba(110, 184, 201, 1)","rgba(245, 174, 42, 1)","rgba(254, 126, 133, 1)"],activeColors:["rgba(42, 134, 246, .6)","rgba(9, 179, 222, .6)","rgba(253, 141, 60, .6)","rgba(255, 71, 81, .6)","rgba(120, 152, 210, .6)","rgba(110, 184, 201, .6)","rgba(245, 174, 42, .6)","rgba(254, 126, 133, .6)"],batchOperation:[{name:"\u5220\u9664",type:"remove"},{name:"\u9690\u85CF",type:"hide"},{name:"\u5C55\u5F00",type:"extend"},{name:"\u6536\u8D77",type:"contraction"},{name:"\u4FEE\u6539\u989C\u8272",type:"editColor"},{name:"\u4FEE\u6539\u5927\u5C0F",type:"editSize"},{name:"\u4FEE\u6539\u5F62\u72B6",type:"editShape"}],toolbarData:[{name:"\u5C55\u5F00",code:"extend",icon:"M512 426.666667c93.866667 0 170.666667-76.8 170.666667-170.666667 0-93.866667-76.8-170.666667-170.666667-170.666667C418.133333 85.333333 341.333333 162.133333 341.333333 256 341.333333 349.866667 418.133333 426.666667 512 426.666667zM512 170.666667c46.933333 0 85.333333 38.4 85.333333 85.333333 0 46.933333-38.4 85.333333-85.333333 85.333333-46.933333 0-85.333333-38.4-85.333333-85.333333C426.666667 209.066667 465.066667 170.666667 512 170.666667zM256 554.666667c-93.866667 0-170.666667 76.8-170.666667 170.666667 0 93.866667 76.8 170.666667 170.666667 170.666667 93.866667 0 170.666667-76.8 170.666667-170.666667C426.666667 631.466667 349.866667 554.666667 256 554.666667zM256 810.666667c-46.933333 0-85.333333-38.4-85.333333-85.333333 0-46.933333 38.4-85.333333 85.333333-85.333333 46.933333 0 85.333333 38.4 85.333333 85.333333C341.333333 772.266667 302.933333 810.666667 256 810.666667zM512 473.6c-42.666667 0-81.066667 38.4-81.066667 81.066667s38.4 81.066667 81.066667 81.066667c42.666667 0 81.066667-38.4 81.066667-81.066667S554.666667 473.6 512 473.6zM768 554.666667c-93.866667 0-170.666667 76.8-170.666667 170.666667 0 93.866667 76.8 170.666667 170.666667 170.666667 93.866667 0 170.666667-76.8 170.666667-170.666667C938.666667 631.466667 861.866667 554.666667 768 554.666667zM768 810.666667c-46.933333 0-85.333333-38.4-85.333333-85.333333 0-46.933333 38.4-85.333333 85.333333-85.333333 46.933333 0 85.333333 38.4 85.333333 85.333333C853.333333 772.266667 814.933333 810.666667 768 810.666667z",type:"extend",click:function(){return new Promise(function(De){De(!1)})}},{name:"\u9690\u85CF",code:"hide",icon:"M906.688 126.976a48 48 0 0 1 3.84 62.528l-4.736 5.376-104.96 101.952a1013.12 1013.12 0 0 1 130.24 112.128c53.952 54.336 56.512 140.352 7.68 197.76l-7.68 8.32-17.92 17.728C775.872 765.568 642.176 832 512 832c-67.584 0-136.064-17.92-205.568-53.696l-117.76 114.56a48 48 0 0 1-71.68-63.488l4.8-5.312L222.08 726.4a1015.04 1015.04 0 0 1-129.152-111.36 146.304 146.304 0 0 1-7.68-197.76l7.68-8.32 17.92-17.728C248.128 258.432 381.824 192 512 192c67.2 0 135.36 17.728 204.416 53.12l122.368-119.04a48 48 0 0 1 67.84 0.896z m-208 269.44L626.944 466.304a123.584 123.584 0 0 1-163.584 159.296l-71.872 69.952a219.584 219.584 0 0 0 307.264-299.2zM512 292.416A219.584 219.584 0 0 0 324.608 626.56l72.064-70.08a123.584 123.584 0 0 1 162.88-158.592l72-70.144A218.56 218.56 0 0 0 512 292.48z",type:"hide",click:function(){return new Promise(function(De){De(!1)})}},{name:"\u89E3\u9501",code:"unlocked",icon:"M553.55 601.87v209.1c0 21.74-17.63 39.36-39.36 39.36-21.74 0-39.36-17.62-39.36-39.36v-209.1c0-21.74 17.63-39.36 39.36-39.36 21.74 0 39.36 17.62 39.36 39.36zM929.8 497.94v412.04c0 62.06-50.48 112.54-112.54 112.54h-611.3c-62.06 0-112.54-50.48-112.54-112.54V497.94c0-62.06 50.48-112.54 112.54-112.54h5.45c0.18-134.05 31.06-235.21 91.82-300.66 27.43-29.55 60.84-51.69 99.31-65.79C435.89 6.72 473.17 0.52 513.31 0.52c78.95 0 140.72 17.26 188.82 52.76 27.18 20.06 49.94 46.2 67.64 77.69 17.86 31.77 31.11 70.05 39.39 113.76 4.04 21.35-9.99 41.94-31.34 45.98-21.35 4.05-41.94-9.98-45.98-31.34-23.91-126.28-89.27-180.16-218.53-180.16-64.75 0-116.03 19.88-152.42 59.07-46.83 50.44-70.64 133.58-70.81 247.12h527.17c62.06 0 112.55 50.48 112.55 112.54z m-78.72 0c0-18.65-15.18-33.82-33.82-33.82h-611.3c-18.65 0-33.82 15.17-33.82 33.82v412.04c0 18.65 15.18 33.82 33.82 33.82h611.3c18.65 0 33.82-15.18 33.82-33.82V497.94z",type:"unlocked",click:function(){return new Promise(function(De){De(!1)})}},{name:"\u6536\u8D77",code:"contraction",icon:"M890.2 115H133.8c-20.9 0-37.8 16.9-37.8 37.8v37.8c0 20.9 16.9 37.8 37.8 37.8h756.4c20.9 0 37.8-16.9 37.8-37.8v-37.8c0-20.9-16.9-37.8-37.8-37.8zM890.2 455.3H398.5c-20.9 0-37.8 16.9-37.8 37.8v37.8c0 20.9 16.9 37.8 37.8 37.8h491.6c20.9 0 37.8-16.9 37.8-37.8v-37.8c0.1-20.9-16.8-37.8-37.7-37.8zM890.2 795.6H133.8c-20.9 0-37.8 16.9-37.8 37.8v37.8c0 20.9 16.9 37.8 37.8 37.8h756.4c20.9 0 37.8-16.9 37.8-37.8v-37.8c0-20.9-16.9-37.8-37.8-37.8zM266.2 600.7V423.3c0-22-29.2-33.1-46.2-17.5l-97.1 88.7c-10.6 9.7-10.6 25.3 0 35l97.1 88.7c17 15.5 46.2 4.5 46.2-17.5z",type:"contraction",click:function(){return new Promise(function(De){De(!1)})}},{name:"\u5220\u9664",code:"remove",icon:"M597.333333 128h-170.666666a42.666667 42.666667 0 0 0-42.666667 42.666667v42.666666h256V170.666667a42.666667 42.666667 0 0 0-37.674667-42.368L597.333333 128z m0 298.666667a42.666667 42.666667 0 0 1 42.666667 42.666666v256a42.666667 42.666667 0 0 1-85.333333 0v-256a42.666667 42.666667 0 0 1 42.666666-42.666666z m-170.666666 0a42.666667 42.666667 0 0 1 42.666666 42.666666v256a42.666667 42.666667 0 0 1-85.333333 0v-256a42.666667 42.666667 0 0 1 42.666667-42.666666z m341.333333-128H256v554.666666a42.666667 42.666667 0 0 0 37.674667 42.368L298.666667 896h426.666666a42.666667 42.666667 0 0 0 42.666667-42.666667V298.666667z m-170.666667-256a128 128 0 0 1 128 128v42.666666h170.666667a42.666667 42.666667 0 0 1 42.368 37.674667L938.666667 256a42.666667 42.666667 0 0 1-42.666667 42.666667h-42.666667v554.666666a128 128 0 0 1-120.490666 127.786667L725.333333 981.333333H298.666667a128 128 0 0 1-128-128V298.666667H128a42.666667 42.666667 0 0 1-42.368-37.674667L85.333333 256a42.666667 42.666667 0 0 1 42.666667-42.666667h170.666667V170.666667a128 128 0 0 1 120.490666-127.786667L426.666667 42.666667h170.666666z",type:"remove",click:function(){return new Promise(function(De){De(!1)})}},{name:"\u8FDE\u7EBF",icon:"M922.00324 771.5L712.90324 892.2c-2.7 1.5-6-0.4-6-3.5V816c0-8.8-7.2-16-16-16H208.00324c-42.5 0-82.6-16.7-113-47-30.3-30.3-47-70.4-47-113s16.7-82.6 47-113c30.3-30.3 70.5-47 113-47h576c53.3 0 96.5-43.6 96-97-0.5-52.8-44.4-95-97.2-95h-519c-6.8 0-12.8 4.3-15.1 10.7-17.6 49.7-65 85.3-120.7 85.3C57.00324 384-0.49676 326.2 0.00324 255.1c0.5-71 59.4-128.3 130.4-127.1 54.7 1 101.1 36.4 118.4 85.4 2.2 6.4 8.3 10.6 15 10.6H784.00324c42.5 0 82.6 16.7 113 47 30.3 30.3 47 70.5 47 113s-16.7 82.6-47 113c-30.3 30.3-70.5 47-113 47H208.00324c-53.3 0-96.5 43.6-96 97 0.5 52.8 44.4 95 97.2 95h481.7c8.8 0 16-7.2 16-16v-72.7c0-3.1 3.3-5 6-3.5L922.00324 764.5c2.7 1.6 2.7 5.4 0 7z",code:"connect",type:"connect",click:function(){return new Promise(function(De){De(!1)})}}]},pr=`
|
|
|
<svg width="300" height="200" viewBox="0 0 300 200" xmlns="http://www.w3.org/2000/svg">
|
|
|
<defs>
|
|
|
<radialGradient id="grad1" cx="64%" cy="41%" r="64%" fx="64%" fy="41%">
|
|
|
<stop offset="0%" stop-color="#ffcdca"/>
|
|
|
<stop offset="15%" stop-color="#f8a8af"/>
|
|
|
<stop offset="36%" stop-color="#f486bd"/>
|
|
|
<stop offset="64%" stop-color="#f15acb"/>
|
|
|
<stop offset="100%" stop-color="#dc48be"/>
|
|
|
</radialGradient>
|
|
|
<radialGradient cx="62.7929688%" cy="38.7660435%" fx="62.7929688%" fy="38.7660435%" r="69.6171323%" id="radialGradient-1">
|
|
|
<stop stop-color="#FF938E" offset="0%"></stop>
|
|
|
<stop stop-color="#F3629B" offset="27.7958615%"></stop>
|
|
|
<stop stop-color="#F25B98" offset="61.0231575%"></stop>
|
|
|
<stop stop-color="#D45C9F" offset="79.1889024%"></stop>
|
|
|
<stop stop-color="#FB94DC" offset="100%"></stop>
|
|
|
</radialGradient>
|
|
|
<radialGradient cx="64.4599781%" cy="41.4199561%" fx="64.4599781%" fy="41.4199561%" r="66.0105958%" gradientTransform="translate(0.644600,0.414200),scale(1.000000,0.982143),rotate(135.557584),translate(-0.644600,-0.414200)" id="radialGradient-2">
|
|
|
<stop stop-color="#9C4BFF" offset="0%"></stop>
|
|
|
<stop stop-color="#7D2FE3" offset="22.2365921%"></stop>
|
|
|
<stop stop-color="#7F29E3" offset="53.5499367%"></stop>
|
|
|
<stop stop-color="#9635DB" offset="82.281989%"></stop>
|
|
|
<stop stop-color="#C47AF8" offset="100%"></stop>
|
|
|
</radialGradient>
|
|
|
<radialGradient cx="64.4599781%" cy="41.4199561%" fx="64.4599781%" fy="41.4199561%" r="65.4353394%" id="radialGradient-3">
|
|
|
<stop stop-color="#6F99FF" offset="0%"></stop>
|
|
|
<stop stop-color="#2465E0" offset="15.3761414%"></stop>
|
|
|
<stop stop-color="#3047D6" offset="35.5277535%"></stop>
|
|
|
<stop stop-color="#3435D9" offset="79.4914212%"></stop>
|
|
|
<stop stop-color="#5D58F2" offset="100%"></stop>
|
|
|
</radialGradient>
|
|
|
<linearGradient x1="0%" y1="50.0019531%" x2="100%" y2="50%" id="lines1">
|
|
|
<stop stop-color="#F763AF" offset="0%"></stop>
|
|
|
<stop stop-color="#7328E5" offset="100%"></stop>
|
|
|
</linearGradient>
|
|
|
<linearGradient x1="-5.45107057%" y1="49.9980469%" x2="100%" y2="50.0019531%" id="linearGradient-1">
|
|
|
<stop stop-color="#862FF3" offset="0%"></stop>
|
|
|
<stop stop-color="#4531E9" offset="100%"></stop>
|
|
|
</linearGradient>
|
|
|
<linearGradient x1="-5.45107057%" y1="49.9980469%" x2="100%" y2="50.0019531%" id="linearGradient-1">
|
|
|
<stop stop-color="#862FF3" offset="0%"></stop>
|
|
|
<stop stop-color="#4531E9" offset="100%"></stop>
|
|
|
</linearGradient>
|
|
|
</defs>
|
|
|
</svg>
|
|
|
`;te.createContainer=class{constructor(De){var ke=["style","innerHTML","body","absolute","append","defsvg","div","createElement","zIndex"],Ve=function(vt,Nt){vt=vt-0;var Pt=ke[vt];return Pt};if(!document.getElementById("defsvg")){var qe=document[Ve("0x7")](Ve("0x6"));qe.id=Ve("0x5"),qe[Ve("0x1")]=pr,qe[Ve("0x0")].position=Ve("0x3"),qe.style.top="-10000px",qe[Ve("0x0")][Ve("0x8")]=-1,document[Ve("0x2")][Ve("0x4")](qe)}rn.prototype.addElement=function(vt){for(var Nt=arguments.length,Pt=new Array(Nt>1?Nt-1:0),Ht=1;Ht<Nt;Ht++)Pt[Ht-1]=arguments[Ht];return vt.apply(void 0,[this].concat(Pt))},rn.prototype.attrs=function(vt){return function(Nt,Pt){for(var Ht in Pt)Nt.attr(Ht,Pt[Ht]);return Nt}(this,vt)},rn.prototype.addElements=function(vt,Nt){return this.data(vt).exit().remove(),this.data(vt).enter().append(Nt)},this._ops=function(vt,Nt){var Pt={};for(var Ht in vt)Pt[Ht]=Nt[Ht]!=null?Nt[Ht]:vt[Ht];return Pt}(gr,De);const it=_n(this._ops.containerName);var dt,bt=this;it.node()||(dt="\u627E\u4E0D\u5230\u8981\u6302\u8F7D\u7684\u8282\u70B9",console.warn("\u3010graph error\u3011:"+dt)),function(vt,Nt){const{_ops:Pt}=Nt,Ht=vt.append("svg").attr("viewBox",[0,0,Pt.width,Pt.height]).attr("class",`${Pt.containerName}-graph-container`),$t=Ht.append("g").attr("class","graph-box");vt.style("background",Pt.background),Nt._linkContainer=$t.append("g").attr("class",`${Pt.containerName}-link-container`),Nt._nodeContainer=$t.append("g").attr("class",`${Pt.containerName}-node-container`),Nt._textContainer=$t.append("g").attr("class",`${Pt.containerName}-text-container`),vt.addElement(br,Pt.batchOperation,Nt),Nt.operationContainer=$t.append("g").attr("class",`${Pt.containerName}-operation-container`),Nt._linkContainer.attrs(Pt.link_ops),Nt.operationContainer.style("display","none"),function(hn,Pn){var Dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:.1,pn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:15,bn=ks().scaleExtent([Dn,pn]).on("zoom",function(Gn){Pn.attr("transform",Gn.transform)});bt.zoom=bn,hn.call(bn),Pn.on("dblclick.zoom",null),hn.on("dblclick.zoom",null)}(Ht,$t,Pt.zoomOptions.minScale,Pt.zoomOptions.maxScale)}(it,this),this._simulation=new yr(this),this._pie=new Bo(this),this.update()}addNode(De){(function(ke,Ve){Ve._ops.nodes.push(ke),Ve.update()})(De,this)}zoomIn(){_n(this._ops.containerName).select("svg").transition().duration(750).call(this.zoom.scaleBy,1.2)}zoomOut(){_n(this._ops.containerName).select("svg").transition().duration(750).call(this.zoom.scaleBy,.8)}toggleNode(De){if(!this._ops.clickToggle)return;var ke=this._ops.nodes,Ve=this._ops.links;De.isExtendedState=!De.isExtendedState;var qe=!De.isExtendedState,it=[De.id];function dt(bt,vt,Nt){Nt.forEach(Pt=>{if(Pt.source.id===bt){Pt.hide=qe;const Ht=vt.find($t=>$t.id===Pt.target.id);Ht&&(Ht.hide=qe,it.push(Ht.id),dt(Ht.id,vt,Nt))}})}setTimeout(()=>{it.forEach(bt=>{Ve.forEach(vt=>{(vt.source.id===bt||vt.target.id===bt)&&vt.target.id!==De.id&&(vt.hide=qe)})}),this.update()},100),dt(De.id,ke,Ve)}showAllNodes(){this._ops.nodes.forEach(De=>{De.hide=!1}),this._ops.links.forEach(De=>{De.hide=!1}),this.update()}deleteNode(De){(function(ke,Ve){Ve._ops.nodes=Ve._ops.nodes.filter(function(qe){return qe.id!==ke.id}),Ve._ops.links=Ve._ops.links.filter(function(qe){return qe.source.id!==ke.id&&qe.target.id!==ke.id}),Ve.update(),_t(Ve.operationContainer)})(De,this)}scrollToNode(De){const Ve=document.querySelector(this._ops.containerName+" svg").querySelector("g.graph-box"),qe=this._ops.nodes.find(Ht=>Ht.id===De);if(!qe)return;const it=qe.x,dt=qe.y,bt=1287,vt=596,Nt=bt/2-it,Pt=vt/2-dt;Ve.setAttribute("transform",`translate(${Nt}, ${Pt})`)}selectToNode(De){const ke=document.querySelector(this._ops.containerName+" svg");document.body.querySelectorAll("circle.node-circle").forEach(Ve=>{Ve.classList.remove("highlightNode")}),De&&ke.querySelector(".node-circle-"+De).classList.add("highlightNode")}update(De=!0,ke={}){var Ve,qe;this._pie.showPie("");const it=this._ops.nodes,dt=this._ops.links,bt=this._nodeContainer.addElement(yl,it,this),vt=this._linkContainer.addElement(Rl,dt,this),Nt=this._textContainer.addElement(_l,it);bt.on("click",(hn,Pn)=>Ce(this,null,function*(){this.toggleNode(Pn);const Dn=yield this._ops.nodeClick(Pn);if(Dn){const{type:pn,id:bn}=Dn;ts(pn,bn,this)}})),this._ops.isCustomMouse&&(bt.on("mouseover",(hn,Pn)=>Ce(this,null,function*(){yield this._ops.nodeMouseover(Pn)})),bt.on("mouseout",()=>Ce(this,null,function*(){yield this._ops.nodeMouseout()}))),bt.on("contextmenu",(hn,Pn)=>{hn.preventDefault(),this._pie.showPie(Pn,hn)}),bt.call(this._simulation.drag());const Pt=(Ve=document.querySelector(this._ops.containerName))===null||Ve===void 0?void 0:Ve.clientWidth,Ht=(qe=document.querySelector(this._ops.containerName))===null||qe===void 0?void 0:qe.clientHeight,$t=document.getElementsByClassName(`${this._ops.containerName}-graph-container`)[0];$t&&Pt&&Ht&&(this._ops.width=Pt,this._ops.height=Ht,$t.setAttribute("viewBox",`0 0 ${Pt} ${Ht}`)),De?this._simulation.updateSimulation(it,dt,this._ops):this._simulation.updateSimulation(it,dt,this._ops,.1),this._simulation.addSimulationEvent(vt,bt,Nt,dt),function(hn,Pn){var Dn=["object","function","undefined"];if(cl(Pn)!=="object")return hn;for(var pn in Pn)Dn.indexOf(cl(Pn[pn]))===-1&&(hn[pn]=Pn[pn])}(this._ops,ke),Object.getOwnPropertyNames(ke).length&&this._updateBaseTheme()}_updateBaseTheme(){_n(this._ops.containerName).style("background",this._ops.background)}},te.storage=ha,Object.defineProperty(te,"__esModule",{value:!0})})},23216:function(Yn,en,Ce){"use strict";Ce.d(en,{Ax:function(){return pe},Ds:function(){return Oe},KI:function(){return ue},SI:function(){return Me},f1:function(){return Ye}});var te=Ce(14185);function Ye(fe){let he=!0;if(fe.length>0){for(let le=0;le<fe.length;le++)if(fe[le].compile_success==0||!fe[le].compile_success){he=!1;break}}else he=!1;return he}function Me(fe,he=""){let le=[];for(let ae=0;ae<fe.length;ae++){let ie=fe[ae],me=he?`${he}/${ie.name}`:`${ie.name}`;le.push({title:ie.name,type:ie.type,isLeaf:ie.type!=="tree",key:me})}return le}function pe(fe,he,le){for(let ae=0;ae<fe.length;ae++){let ie=fe[ae];if(ie.key===he){ie.children=le;break}ie.children&&pe(ie.children,he,le)}return fe}function Oe(fe,he,le){let ae;return function(){let ie=this,me=arguments,E=function(){ae=null,le||fe.apply(ie,me)},b=le&&!ae;clearTimeout(ae),ae=setTimeout(E,he),b&&fe.apply(ie,me)}}const ve=!0,ue=te.Z.API_SERVER},44240:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return ve}});var te=Ce(37639),Ye={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},Me=Ce(32637),pe=Ce(59301),ve=({type:ue,style:fe})=>{const he=pe.createElement("div",{className:Ye.wrap,onClick:le=>{le.preventDefault(),le.stopPropagation()}},pe.createElement("p",null,ue==="shixun"||ue==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",pe.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",ue==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),pe.createElement("div",{className:Ye.contact},pe.createElement("div",{className:Ye.img},pe.createElement("img",{src:Me,width:"124px",height:"124px"})),pe.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return pe.createElement(te.Z,{content:he},pe.createElement("span",{className:Ye.text,style:fe},"\u9AD8\u6D88\u8017"))}},40254:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return ae}});var te=Ce(59301),Ye={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Me=Ce(92310),pe=Ce.n(Me),Oe=Ce(29787),ve=Ce(2859),ue=Ce(49317),fe=Ce(76406),he=(ie,me,E)=>new Promise((b,z)=>{var ne=de=>{try{se(E.next(de))}catch(a){z(a)}},oe=de=>{try{se(E.throw(de))}catch(a){z(a)}},se=de=>de.done?b(de.value):Promise.resolve(de.value).then(ne,oe);se((E=E.apply(ie,me)).next())}),ae=({data:ie,className:me,fullWidth:E,style:b={},onClose:z,onOk:ne,showFullTools:oe,noAssociationId:se})=>{const de=(0,te.useRef)(null),a=(0,te.useRef)(null),x=(0,te.useRef)(null),re=(0,te.useRef)(null),[ce,ge]=(0,te.useState)(!1),[_e,ye]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>(x.current||(x.current=document.createElement("style"),document.head.appendChild(x.current)),ie!=null&&ie.visible?(document.body.setAttribute("data-custom","y-hidden"),x.current.innerHTML=" html { overflow-y: hidden; }",ie!=null&&ie.src&&be()):(document.body.removeAttribute("data-custom"),x.current&&(document.head.removeChild(x.current),x.current=null)),()=>{document.body.removeAttribute("data-custom"),x.current&&(document.head.removeChild(x.current),x.current=null)}),[ie==null?void 0:ie.visible]);const be=()=>he(void 0,null,function*(){ge(!0),ye("\u6B63\u5728\u52A0\u8F7D\u4E2D");const we=yield(0,fe.ZJ)(ie==null?void 0:ie.src);de.current.src="",de.current.src=we,de.current.onload=function(){Ae()},ge(!1),ye("")}),Se=we=>he(void 0,null,function*(){ge(!0),ye("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ue=yield(0,ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ie.title,file:we.dataUrl}});Ue!=null&&Ue.id&&!se?(yield(0,ue.ZP)(`/api/attachments/${ie.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ue==null?void 0:Ue.id,settings:JSON.stringify(we.state)}})).status===0&&ne():Ue!=null&&Ue.id&&ne(Ue),ge(!1),ye("")}),Be=()=>{const we=document.querySelector('a[href="https://markerjs.com/"]');we&&we.parentNode&&(we.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(Pe=>{const ze=document.querySelector(Pe.name);ze&&ze.setAttribute("title",Pe.title)})},Ae=()=>{a.current=new ve.hP(de.current),a.current.targetRoot=re.current,a.current.addEventListener("render",Se),a.current.addEventListener("beforeclose",z),oe&&(a.current.availableMarkerTypes=a.current.ALL_MARKER_TYPES,a.current.uiStyleSettings.redoButtonVisible=!0,a.current.uiStyleSettings.notesButtonVisible=!0,a.current.uiStyleSettings.zoomButtonVisible=!0,a.current.uiStyleSettings.zoomOutButtonVisible=!0,a.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=a.current.uiStyleSettings,a.current.show(),ie!=null&&ie.snapshotData&&a.current.restoreState(ie.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Be()},300)};return te.createElement(te.Fragment,null,(ie==null?void 0:ie.visible)&&te.createElement(Oe.Z,{spinning:ce,tip:_e,style:{position:"absolute",width:"100vw"}},te.createElement("div",{ref:re,className:pe()(Ye.imageDimensions,me,E?Ye.fullWidth:""),style:b},te.createElement("img",{className:Ye.img,ref:de}))))}},9057:function(Yn,en,Ce){"use strict";var te=Ce(59301),Ye=Ce(77019),Me=Ce(5269),pe=Ce(31691),Oe=Ce(7939),ve=Ce(35883),ue=Ce(74501),fe=Ce(48136),he=Ce(59301);const le=(0,te.forwardRef)(({callback:ae,showSaveButton:ie,value:me=""},E)=>{const b=(0,te.useRef)(),z=[{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 "}]}]}],ne=[{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}`}]}]}],oe=a=>{b.current.setValue(b.current.getValue()+" "+a.value+" ")},se=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:he.createElement(Ye.Z,{className:ue.Z.lists,gutter:[10,10]},z.map((a,x)=>he.createElement(Me.Z,{flex:"110px",className:ue.Z.item},he.createElement("div",null,he.createElement(ve.Z,{value:`$$${a.value}$$`}),a.name),he.createElement("div",{className:ue.Z.children},a.children.map((re,ce)=>he.createElement("div",{key:ce},he.createElement("h1",null,re.name),he.createElement(Ye.Z,{gutter:[10,10]},re.data.map((ge,_e)=>he.createElement(Me.Z,{key:_e,onClick:()=>oe(ge),className:ue.Z.diamond},he.createElement(ve.Z,{value:"`$$"+ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:he.createElement(Ye.Z,{className:ue.Z.lists,gutter:[10,10]},ne.map((a,x)=>he.createElement(Me.Z,{flex:"110px",className:ue.Z.item},he.createElement("div",null,he.createElement(ve.Z,{value:"`$$"+a.value+"$$`"}),a.name),he.createElement("div",{className:ue.Z.children},a.children.map((re,ce)=>he.createElement("div",{key:ce},re.name&&he.createElement("h1",null,re.name),he.createElement(Ye.Z,{gutter:[10,10]},re.data.map((ge,_e)=>he.createElement(Me.Z,{key:_e,onClick:()=>oe(ge),className:ue.Z.diamond},he.createElement(ve.Z,{value:"`$$"+ge.value+"$$`"}))))))))))}],de=()=>{var a=document.createElement("div");a.innerHTML=b.current.getValue();var x=a.innerText;return ae&&ae(x),x};return(0,te.useImperativeHandle)(E,()=>({getData:de})),he.createElement("div",{className:ue.Z.mathWrap},he.createElement(pe.default,{defaultActiveKey:"1",items:se}),he.createElement("math-field",{locale:"zh_cn",className:ue.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:b,style:{width:800,marginTop:30,fontSize:18}},me||""),ie&&he.createElement("div",{className:ue.Z.button},he.createElement(Oe.ZP,{size:"large",onClick:de,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});en.Z=le},90736:function(Yn,en,Ce){"use strict";var te=Ce(59301),Ye=Ce(4977),Me=Ce(7939),pe=Object.defineProperty,Oe=Object.defineProperties,ve=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,le=(E,b,z)=>b in E?pe(E,b,{enumerable:!0,configurable:!0,writable:!0,value:z}):E[b]=z,ae=(E,b)=>{for(var z in b||(b={}))fe.call(b,z)&&le(E,z,b[z]);if(ue)for(var z of ue(b))he.call(b,z)&&le(E,z,b[z]);return E},ie=(E,b)=>Oe(E,ve(b));const me=({img:E,buttonProps:b={},styles:z={},customText:ne,ButtonText:oe,ButtonClick:se,Buttonclass:de,ButtonTwo:a,imgStyles:x,loading:re=!1,className:ce=""})=>te.createElement("section",{className:`tc animated fadeIn ${ce}`,style:ae({color:"#999",margin:"100px auto",visibility:re?"hidden":"visible"},z)},te.createElement("img",{src:E||Ye,style:ie(ae({},x),{pointerEvents:"none",userSelect:"none"})}),te.createElement("p",{className:"mt20 font14"},ne||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),oe&&te.createElement(Me.ZP,ae({className:de,onClick:se},b),oe),a&&a);en.Z=me},86974:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return de}});var te=Ce(59301),Ye={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},Me=Ce(7939),pe=Ce(70557),Oe=Ce(34728),ve=Ce(25399),ue=Ce(76406),fe=Ce(84849),he=Ce(90736),le=Ce(14185),ae=Ce(52078),ie=Ce(59301),me=Object.defineProperty,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ne=(a,x,re)=>x in a?me(a,x,{enumerable:!0,configurable:!0,writable:!0,value:re}):a[x]=re,oe=(a,x)=>{for(var re in x||(x={}))b.call(x,re)&&ne(a,re,x[re]);if(E)for(var re of E(x))z.call(x,re)&&ne(a,re,x[re]);return a},se=(a,x,re)=>new Promise((ce,ge)=>{var _e=Se=>{try{be(re.next(Se))}catch(Be){ge(Be)}},ye=Se=>{try{be(re.throw(Se))}catch(Be){ge(Be)}},be=Se=>Se.done?ce(Se.value):Promise.resolve(Se.value).then(_e,ye);be((re=re.apply(a,x)).next())}),de=({editOffice:a="view",data:x,issaver:re,onSaver:ce,theme:ge,type:_e,filename:ye,monacoEditor:be,className:Se,style:Be,close:Ae,onClose:we,hasMask:Ue,disabledDownload:Pe,onImgDimensions:ze,showNodata:Ke,recordInfo:Ne})=>{const[Re,$e]=(0,te.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[nt,ut]=(0,te.useState)(""),[Qe,rt]=(0,te.useState)(),pt=window.ENV==="build"?"/react/build":"",At=location.host.startsWith("localhost")?le.Z.PROXY_SERVER:le.Z.API_SERVER,Ft=10*(1024*1024),Ct=(0,te.useRef)();x!=null&&x.startsWith("/api")&&_e!=="txt"&&(x=le.Z.API_SERVER+x);const Yt=et=>et.substring(et.lastIndexOf("/")+1).split(".").pop();ye&&be&&(be.filename=ye),(0,te.useEffect)(()=>{var et,He;const We=(He=(et=document.cookie)==null?void 0:et.replace(/\s/g,""))==null?void 0:He.split(";");We==null||We.map(tt=>{let at=tt.split("=");at[0]==="_educoder_session"&&ut(at[1])})},[]),(0,te.useEffect)(()=>{_e==="office"&&(x.indexOf("bigfilescdn.")>-1||x.indexOf("bigfiles1")>-1?rt({url:x,fileType:Yt(x),model:x.indexOf("model=edit")?"edit":"view"}):x.indexOf("coze")>-1?rt({url:x,fileType:"doc",model:"view"}):Xe())},[_e,x]);function zt(et){return se(this,null,function*(){et.data.type==="pdfdata"&&(ce(et.data.data),window.removeEventListener("message",zt,!1)),console.log("mess---:",et.data)})}const Xe=()=>se(void 0,null,function*(){console.log("data:",x);let et=x;x.startsWith("http")||(et=location.origin+et);let He=new URL(et).pathname.split("/").pop();const We=yield(0,fe.gJ)({attachment_id:He});We.url=At+We.url,rt(We)}),Fe=()=>{if(x.startsWith("http")||x.startsWith("blob:")){Le();return}(0,ue.Sv)(ye||"educoder",x,ye)},Le=()=>{Ne&&(0,ae.fc)({id:Ne==null?void 0:Ne.id,watch_type:1,course_id:Ne==null?void 0:Ne.course_id}),(0,ue.Nd)(ye||"educoder",decodeURIComponent(x))};(0,te.useEffect)(()=>(window.addEventListener("message",Ze),()=>{window.removeEventListener("message",Ze)}),[]);const Ze=et=>{var He;((He=et==null?void 0:et.data)==null?void 0:He.type)==="closePop"&&we()};return ie.createElement("div",{style:oe({},Be||{}),className:`${Ue&&Ye.bgBlack} ${_e?Ye.wrp:"hide"}`},!!_e&&Ae&&ie.createElement("div",{id:"closePop",className:Ye.close,ref:Ct},!!ze&&ie.createElement(ve.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Ct.current},ie.createElement("span",{onClick:()=>{we(),ze()}},ie.createElement("i",{className:"icon-yulanpizhu"}))),!Pe&&window.parent===window&&ie.createElement(ve.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Ct.current},ie.createElement("span",{onClick:Le},ie.createElement("i",{className:"icon-quxiaozhiding"}))),re&&ie.createElement(ve.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Ct.current},ie.createElement("span",{className:"",onClick:()=>{const et=document.getElementById("pdfiframe");window.addEventListener("message",zt,!1),setTimeout(()=>{et.contentWindow.postMessage("getData","*")},300)}},ie.createElement("i",{className:"icon-baocun"}))),ie.createElement(ve.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Ct.current},ie.createElement("span",{className:"",onClick:()=>{we()}},ie.createElement("i",{className:"icon-guanbi1"})))),ie.createElement("div",{className:`${Ye[Se]} ${Se} ${Ye.monaco} ${_e==="txt"?"show":"hide"}`},_e==="txt"&&ie.createElement(ie.Fragment,null,ie.createElement(Oe.ZP,oe({},be)))),_e==="audio"&&ie.createElement("audio",{controls:!0,src:`${(x==null?void 0:x.indexOf("http://"))>-1||(x==null?void 0:x.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${x}`,autoPlay:!0}),_e==="video"&&ie.createElement(ie.Fragment,null,(x==null?void 0:x.indexOf("http"))>-1?ie.createElement("video",{controls:!0,src:`${x}`,autoPlay:!0}):ie.createElement("video",{controls:!0,src:`data:video/mp4;base64,${x}`,autoPlay:!0})),_e==="office"&&Qe&&ie.createElement("iframe",{src:`${pt}/office.html?key=${Qe.key}&url=${btoa(Qe.url)}&callbackUrl=${At+(Qe.callbackUrl||"")}&fileType=${Qe.fileType}&title=${Qe.title||""}&model=${a}&officeServer=${le.Z.ONLYOFFICE}&disabledDownload=${!!Pe}`}),_e==="html"&&ie.createElement("iframe",{src:x+"&disposition=inline"}),_e==="pdf"&&ie.createElement("iframe",{id:"pdfiframe",src:`${pt}/js/pdf/index.html?filename=${ye||"educoder.pdf"}&url=${encodeURIComponent(x)}&disabledDownload=${!!Pe}&model=${a}`}),_e==="image"&&ie.createElement("img",{src:`${(x==null?void 0:x.indexOf("http://"))>-1||(x==null?void 0:x.indexOf("https://"))>-1?"":"data:image/png;base64,"}${x}`}),(_e==="other"||_e==="download")&&ie.createElement(ie.Fragment,null,Ke?ie.createElement(he.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ie.createElement(Me.ZP,{icon:ie.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Fe,disabled:Pe},"\u4E0B\u8F7D")}):ie.createElement(Me.ZP,{type:"primary",size:"middle",onClick:Fe,disabled:Pe},ie.createElement(pe.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),_e==="flowChart"&&ie.createElement("div",{className:"embed"},ie.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${x||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},31034:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return ue}});var te=Ce(36237),Ye=Ce(60840),pe={token:{colorPrimary:"#1B8565",colorInfo:"#1B8565",colorLink:"#1B8565",borderRadius:2,fontSizeLG:14},components:{Radio:{radioSize:16,dotSize:6},Modal:{titleFontSize:16,titleColor:"#000"}}},Oe=Ce(59301),ue=({children:fe,prefixCls:he="knowledgeGraph"})=>document.documentElement.style.fontSize!==""?Oe.createElement(te.StyleProvider,{transformers:[(0,te.px2remTransformer)({rootValue:1})]},Oe.createElement(Ye.ZP,{prefixCls:he,theme:pe},fe)):Oe.createElement(Oe.Fragment,null,fe)},35883:function(Yn,en,Ce){"use strict";Ce.d(en,{z:function(){return be},Z:function(){return Se}});var te=Ce(59301),Ye=Ce(46214),Me=Ce(20047),pe=Ce(64018),Oe=Ce(16471),ve=Ce(14185),ue=Ce(76406),fe=Ce(15342),he=Ce(44104),le=Ce(7939),ae=Ce(1012),ie=Ce(86974),me=Ce(59301),b=({html:Be})=>{const Ae=(0,te.useRef)(null),we=(0,te.useRef)(null),Ue=`.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,te.useEffect)(()=>{const Pe=Ae.current.attachShadow({mode:"open"});we.current=document.createElement("div"),we.current.className="markdown-body",we.current.innerHTML=Be,Pe.appendChild(we.current);const ze=document.createElement("style");return ze.textContent=Ue,Pe.appendChild(ze),()=>{Pe.innerHTML=""}},[]),(0,te.useEffect)(()=>{we.current&&(we.current.innerHTML=Be)},[Be]),me.createElement("div",{ref:Ae})};function z(Be){const Ae=["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"],we=new RegExp(`\\b(${Ae.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),Ue=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return Be.replace(we,"").replace(Ue,"").trim()}var ne={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},oe=Object.defineProperty,se=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,x=(Be,Ae,we)=>Ae in Be?oe(Be,Ae,{enumerable:!0,configurable:!0,writable:!0,value:we}):Be[Ae]=we,re=(Be,Ae)=>{for(var we in Ae||(Ae={}))de.call(Ae,we)&&x(Be,we,Ae[we]);if(se)for(var we of se(Ae))a.call(Ae,we)&&x(Be,we,Ae[we]);return Be};const ce="@\u2581\u2581@",ge="@\u2581@",_e=/<pre[^>]*>/g;function ye(Be){let Ae=document.createElement("div");return Ae.innerHTML=Be,Ae.childNodes.length===0?"":Ae.childNodes[0].nodeValue}const be=(Be,Ae)=>{Be=Be||"";const we=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ue=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Pe=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ze=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ae?Be.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(we,(Ke,Ne,Re,$e,nt,ut,Qe)=>{const rt=Ne||$e||ut,pt=Re||nt||Qe||"?";return ve.Z.API_SERVER+"/api/attachments/"+rt+pt+"&t="+(0,ue.Jn)(rt,Date.now())+(Ke.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Be=Be.replace(ze,(Ke,Ne,Re,$e,nt,ut,Qe)=>{const rt=Ne||$e||ut,pt=Re||nt||Qe||"?";return ve.Z.API_SERVER+"/attachments/download/"+rt+pt+"&t="+(0,ue.Jn)(rt,Date.now())+(Ke.indexOf(")")>-1?")":"&")}).replace(we,(Ke,Ne,Re,$e,nt,ut,Qe)=>{const rt=Ne||$e||ut,pt=Re||nt||Qe||"?";return ve.Z.API_SERVER+"/api/attachments/"+rt+pt+"&t="+(0,ue.Jn)(rt,Date.now())+(Ke.indexOf(")")>-1?")":"&")}).replace(Ue,(Ke,Ne,Re,$e,nt)=>{const ut=Ne||$e,Qe=Re||nt||"";return'"'+ve.Z.API_SERVER+"/api/attachments/"+ut+Qe+ut+Qe+"&t="+(0,ue.Jn)(ut,Date.now())}).replace(Pe,(Ke,Ne,Re,$e,nt)=>{const ut=Ne||$e,Qe=Re||nt||"";return"("+ve.Z.API_SERVER+"/files/uploads/"+ut+Qe+ut+Qe+"&t="+(0,ue.Jn)(ut,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`),Be)};var Se=({value:Be="",edit:Ae=!1,className:we,showTextOnly:Ue,showLines:Pe,style:ze={},stylesPrev:Ke={},highlightKeywords:Ne,showProgramFill:Re,isProgramFill:$e,disabledFill:nt=!1,programFillValue:ut,openEditor:Qe=()=>{},onFillChange:rt=gt=>{},onFillBlur:pt=()=>{},onFillFocus:At=()=>{}})=>{let gt=z(String(Be||""));const Ft=(0,te.useRef)(),Ct=(0,te.useRef)(),[Yt,zt]=(0,te.useState)(""),[Xe,Fe]=(0,te.useState)("office"),[Le,Ze]=(0,te.useState)([]),et=(0,te.useRef)("a"+(0,ae.Z)()),He={},We=an=>/<style[\s\S]*?>/i.test(an||""),tt=(an,An,Jt)=>{const Ut=document.createElement(an===ge?"input":"textarea");Ut.style.width="100%",Ut.style.height=an===ge?"40px":"151px",Ut.rows=5,Ut.spellcheck=!1,Ut.name="edu-program-fill",Ut.placeholder="\u8BF7\u8F93\u5165",Ut.dataset.id=An;const rn=Object.keys(He).length;return He[rn]=Ut,`<span class="edu-program-fill-wrap ${an===ge?"":"show"}" style="width:${an===ge?"600px":"100%"}" title=${Jt||""}><span>${Ut.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function at(an){return an=an.replace(/!\[.*?\]\(.*?\)/g,""),an=an.replace(/\[.*?\]\(.*?\)/g,""),an=an.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),an=an.replace(/<embed.*?>/g,""),an=an.replace(/<img.*?>/g,""),an=an.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),an=an.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),an=an.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),an=an.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),an}const ot=an=>!Ue&&We(gt)?an:an.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(An,Jt){let Ut=Jt.replace(/(\n|\r)/g,"").split("}"),rn=[];return Ut.map(_n=>{_n!=""&&rn.push(`.${et.current} ${_n}`)}),`<style>${rn.join("}")}</style>`}),ct=(0,te.useMemo)(()=>{(0,Me.Iy)();try{const Ut=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,rn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,_n=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Bn=/\(\/attachments\/download\//g;gt=gt.replace(Bn,"("+ve.Z.API_SERVER+"/attachments/download/").replace(Ut,"("+ve.Z.API_SERVER+"/api/attachments/").replace(rn,'"'+ve.Z.API_SERVER+"/api/attachments/").replace(_n,'"'+ve.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,`
|
|
|
`),Ft.current.style.display="none"}catch(Ut){}if(Re){let Ut=-1;return gt=gt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(rn,_n,Bn){var kt;return++Ut,tt(rn,Ut,(kt=ut==null?void 0:ut[Ut])==null?void 0:kt.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${ot(gt||"")}</pre>`}let an=ot(gt);an=(0,Me.ZP)(an);const An=(0,Me.ez)();gt.match(/\[TOC\]/)&&(an=an.replace("<p>[TOC]</p>",(0,Me.Qv)()),(0,Me.Iy)()),an=an.replace(/(__special_katext_id_\d+__)/g,(Ut,rn)=>{const{type:_n,expression:Bn}=An[rn];return(0,fe.renderToString)(ye(Bn)||"",{displayMode:_n==="block",throwOnError:!1,output:"html"})}),an=an.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Me.AL)();const Jt=document.createElement("div");if(Jt.innerHTML=an,Ue)return Jt.innerText;if(Ne){const Ut=Ne.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return ft(Jt,Ut),Jt.innerHTML}return setTimeout(()=>on(),500),Jt.innerHTML},[gt,Ne]);(0,te.useEffect)(()=>{St.current&&St.current.querySelectorAll(["input","textarea"]).forEach(An=>{An.oninput=lt,An.onblur=mt,An.onfocus=Lt})},[Le]),(0,te.useEffect)(()=>{var an,An,Jt,Ut,rn;if(ut!=null&&ut.length)try{const _n=St.current.querySelectorAll(".edu-program-fill-score"),Bn=St.current.querySelectorAll('[name="edu-program-fill"]');for(const[kt,ln]of Bn.entries())ln.value=((an=ut==null?void 0:ut[kt])==null?void 0:an.value)||"",((An=ut==null?void 0:ut[kt])==null?void 0:An.type)==="warning"?ln.className="program-fill-warning":((Jt=ut==null?void 0:ut[kt])==null?void 0:Jt.type)==="success"?ln.className="program-fill-success":ln.className="";for(const[kt,ln]of _n.entries())ln.innerHTML=(Ut=ut==null?void 0:ut[kt])!=null&&Ut.score?`${(rn=ut==null?void 0:ut[kt])==null?void 0:rn.score}\u5206`:"";Ze(ut)}catch(_n){console.log(_n,"error")}},[ut]);const lt=an=>{Le[an.target.dataset.id]=Le[an.target.dataset.id]||{},Le[an.target.dataset.id].value=an.target.value,Ze([...Le]),rt(Le,an.target.dataset.id)},mt=an=>{Le[an.target.dataset.id]=Le[an.target.dataset.id]||{},Le[an.target.dataset.id].value=an.target.value,Ze([...Le]),pt(Le,an.target.dataset.id)},Lt=an=>{Le[an.target.dataset.id]=Le[an.target.dataset.id]||{},Le[an.target.dataset.id].value=an.target.value,Ze([...Le]),At(Le,an.target.dataset.id)};function ft(an,An){return an.childNodes.forEach(Jt=>{var Ut;if(Jt.childNodes.length>0)ft(Jt,An);else if(Jt.nodeName!=="IMG")if(Jt.innerHTML)Jt.innerHTML=(Ut=Jt.innerHTML)==null?void 0:Ut.replace(new RegExp(An,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const rn=document.createElement("span");rn.innerHTML=Jt.textContent.replace(new RegExp(An,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Jt.replaceWith(rn)}})}const St=(0,te.useRef)();Me.jb.WebkitLineClamp=Pe,Pe&&(ze=re(re({},ze),Me.jb));function nn(an){let An=an.target;if(An.tagName.toUpperCase()==="A"){let Jt=An.getAttribute("href");if(Jt.indexOf("office")>-1)an.preventDefault(),zt(Jt),Fe("office");else if(Jt.indexOf("application/pdf")>-1)an.preventDefault(),zt(Jt),Fe("pdf");else if(Jt.indexOf("text/html")>-1)an.preventDefault(),zt(Jt),Fe("html");else if(Jt.startsWith("#")){an.preventDefault();let Ut=document.getElementById(Jt.replace("#",""));Ut&&Ut.scrollIntoView(!0)}}}const on=()=>{var an;const An=(an=St.current)==null?void 0:an.querySelectorAll("video");An==null||An.forEach(Jt=>{if(Jt.oncontextmenu=()=>!1,Jt.src.indexOf(".m3u8")>-1&&!Jt.canPlayType("application/vnd.apple.mpegurl")){if(Oe.ZP.isSupported()){var Ut=new Oe.ZP;Ut.loadSource(Jt.src),Ut.attachMedia(Jt)}}})};(0,te.useEffect)(()=>{if(St.current&&ct&&ct.match(_e)&&window.PR.prettyPrint(),St.current)return St.current.addEventListener("click",nn),()=>{var an;(an=St.current)==null||an.removeEventListener("click",nn),(0,Me.AL)(),(0,Me.Iy)()}},[ct,St.current,nn]);const yn=an=>{an.target.nodeName==="IMG"&&an.target.className.indexOf("draw-flowchart")>-1?(Ft.current.style.zIndex=1,Ft.current.style.display="flex",Ft.current.style.width=an.target.clientWidth+"px",Ft.current.style.height=an.target.clientHeight+"px",Ft.current.style.top=an.target.offsetTop+"px",Ft.current.style.left=an.target.offsetLeft+"px",an.target.id&&(Ct.current=an.target.id)):Ft.current.style.display="none"},xn=()=>{Ft.current.style.display="none"};return(0,te.useEffect)(()=>{var an;const An=Jt=>{Jt.preventDefault(),Jt.clipboardData.setData("text",window.getSelection().toString())};return(an=St.current)==null||an.addEventListener("copy",An),()=>{var Jt;(Jt=St.current)==null||Jt.removeEventListener("copy",An)}},[St.current]),te.createElement("div",{style:{position:"relative"},onMouseLeave:xn},Ue&&te.createElement("div",{ref:St,className:`${ne.mdBody} `},ct),!Ue&&!We(ct)&&te.createElement("div",{ref:St,style:re({},ze),onMouseOver:yn,className:`${we||""} ${nt?"disabled-fill":""} markdown-body ${ne.mdBody} ${et.current}`,dangerouslySetInnerHTML:{__html:ct}}),!Ue&&We(ct)&&te.createElement(b,{html:ct}),te.createElement("div",{ref:Ft,className:`${ne.button} ${Ae?"":ne.previewFlowChart}`},te.createElement(he.Z,null,te.createElement(le.ZP,{onClick:()=>{Ae?Qe(Ct.current):(zt(Ct.current),Fe("flowChart"))}},Ae?"\u7F16\u8F91":"\u9884\u89C8"))),te.createElement(ie.Z,{close:!0,data:Yt,type:Yt!=null&&Yt.length?Xe:"",style:re({},Ke),onClose:()=>zt("")}))}},93328:function(Yn,en,Ce){"use strict";var te=Ce(59301),Ye=Ce(28284),Me=Ce(77019),pe=Ce(82326),Oe=Ce(37568),ve=Ce(1560),ue=Ce(7939),fe=Ce(62673),he=Ce(25399),le=Ce(6767),ae=Ce(70858),ie=Ce(44283),me=Ce(66649),E=Ce.n(me),b=Ce(26724),z=Ce.n(b),ne=Ce(58143),oe=Ce(77996),se=Ce(70467),de=Ce(39967),a=Ce(59301),x=Object.defineProperty,re=Object.defineProperties,ce=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,be=(Ne,Re,$e)=>Re in Ne?x(Ne,Re,{enumerable:!0,configurable:!0,writable:!0,value:$e}):Ne[Re]=$e,Se=(Ne,Re)=>{for(var $e in Re||(Re={}))_e.call(Re,$e)&&be(Ne,$e,Re[$e]);if(ge)for(var $e of ge(Re))ye.call(Re,$e)&&be(Ne,$e,Re[$e]);return Ne},Be=(Ne,Re)=>re(Ne,ce(Re)),Ae=(Ne,Re,$e)=>new Promise((nt,ut)=>{var Qe=At=>{try{pt($e.next(At))}catch(gt){ut(gt)}},rt=At=>{try{pt($e.throw(At))}catch(gt){ut(gt)}},pt=At=>At.done?nt(At.value):Promise.resolve(At.value).then(Qe,rt);pt(($e=$e.apply(Ne,Re)).next())});const we=[];function Ue({onSearch:Ne,schools:Re}){return a.createElement(Ye.default,{colon:!1,layout:"horizontal",onFinish:Ne,initialValues:{keyword:"",school_name:"",search_type:"1"}},a.createElement(Me.Z,{style:{flexWrap:"nowrap"}},a.createElement(Ye.default.Item,{name:"search_type",label:"\u641C\u7D22\u7C7B\u578B"},a.createElement(pe.default,{popupClassName:de.Z.selectdown,style:{width:106}},a.createElement(pe.default.Option,{value:"1"},"\u59D3\u540D"),a.createElement(pe.default.Option,{value:"2"},"\u624B\u673A\u53F7"),a.createElement(pe.default.Option,{value:"3"},"\u90AE\u7BB1"))),a.createElement(Ye.default.Item,{style:{marginLeft:20},label:"\u641C\u7D22\u5185\u5BB9",name:"keyword",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9"}]},a.createElement(Oe.default,{allowClear:!0,style:{width:300},size:"middle"})),a.createElement(Ye.default.Item,{style:{marginLeft:20},label:"\u5355\u4F4D",name:"school_name"},a.createElement(ve.Z,{options:Re,style:{width:300},size:"middle",showSearch:!0,filterOption:($e,nt)=>nt.value.toUpperCase().indexOf($e.toUpperCase())!==-1,placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0"})),a.createElement(ue.ZP,{type:"primary",style:{background:"#F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%)",boxShadow:"0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255,255,255,0.5)",borderRadius:16,color:"#165DFF",marginLeft:40,border:"1px solid #BACFFE"},htmlType:"submit"},"\u641C\u7D22")))}var Pe=(Ne=>(Ne[Ne.INITDATA=0]="INITDATA",Ne[Ne.INITSCHOOLS=1]="INITSCHOOLS",Ne[Ne.SHOWLOADING=2]="SHOWLOADING",Ne[Ne.SELECTEDIDS=3]="SELECTEDIDS",Ne[Ne.SETQUERY=4]="SETQUERY",Ne[Ne.SETPAGE=5]="SETPAGE",Ne))(Pe||{});function ze(Ne,Re){switch(Re.type){case 0:return Se(Se({},Ne),Re.payload);case 4:return Se(Se({},Ne),Re.payload);case 5:return Be(Se({},Ne),{page:Re.payload,reload:!1});case 2:return Be(Se({},Ne),{loading:Re.payload});case 1:return Be(Se({},Ne),{schools:Re.payload});case 3:return Be(Se({},Ne),{selectedIds:Re.payload});default:throw new Error}}const Ke={data:[],schools:[],loading:!1,selectedIds:[],query:null,page:1,count:0,reload:!1};en.Z=({onSelect:Ne,onCancel:Re,container_id:$e,container_type:nt})=>{const[ut,Qe]=(0,te.useReducer)(ze,Ke),{data:rt,schools:pt,loading:At,selectedIds:gt,page:Ft,count:Ct,query:Yt,reload:zt}=ut;(0,te.useEffect)(()=>{function We(){return Ae(this,null,function*(){const{users:tt,user_count:at}=yield(0,oe.nQ)(Be(Se({},Yt),{page:Ft,container_type:nt,container_id:$e,display_aliases:!0}));Qe({type:0,payload:{data:zt?tt:[...rt,...tt],count:at}})})}Yt&&We()},[Ft,Yt,zt,$e,nt]),(0,te.useEffect)(()=>{function We(){return Ae(this,null,function*(){const{school_names:tt}=yield(0,oe.K$)({display_aliases:!0});Qe({type:1,payload:tt.map(at=>({value:at}))})})}We()},[]);const Xe=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:(We,tt)=>a.createElement(fe.default,{value:tt.numid,checked:gt.includes(tt.numid),disabled:!!We})},{title:"\u59D3\u540D",width:100,ellipsis:!0,align:"left",dataIndex:"username",render:(We,tt)=>a.createElement("div",null,a.createElement(he.Z,{placement:"bottom",title:We},a.createElement(ie.Link,{style:{color:"#000000"},className:"bold c-black",to:`/users/${tt.login}`,target:"_blank"},We||"--")))},{title:"\u624B\u673A",width:100,dataIndex:"phone",ellipsis:!0,render:We=>a.createElement(he.Z,{placement:"bottom",title:We},a.createElement("span",{style:{color:"#000000"}},We||"--"))},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:We=>a.createElement(he.Z,{placement:"bottom",title:We},a.createElement("span",{style:{color:"#000000"}},We||"--"))},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:We=>a.createElement(he.Z,{placement:"bottom",title:We},a.createElement("span",{style:{color:"#000000"}},We||"--"))},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:We=>a.createElement(he.Z,{placement:"bottom",title:We},a.createElement("span",{style:{color:"#000000"}},We||"--"))},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:We=>a.createElement(he.Z,{placement:"bottom",title:We},a.createElement("span",{style:{color:"#000000"}},We||"--"))},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"auth",width:100,render:We=>a.createElement("span",{style:{color:"#000000"}},We?"\u662F":"\u5426")},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:We=>a.createElement(he.Z,{placement:"bottom",title:We},a.createElement("span",{style:{color:"#000000"}},E()(We).format("YYYY-MM-DD HH:mm")))},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:We=>{if(We===1)return a.createElement("span",{style:{color:"#000000"}},"\u5DF2\u6DFB\u52A0")}}];function Fe(We){Qe({type:4,payload:{page:1,reload:!0,query:We}})}function Le(We){Qe({type:5,payload:We})}function Ze(We){let tt=gt.indexOf(We);tt>=0?gt.splice(tt,1):gt.push(We),Qe({type:3,payload:[...gt]})}function et(){gt.length===0?le.ZP.warning("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"):(Ne(gt,$e),Qe({type:0,payload:{data:[],count:0,page:1,selectedIds:[],query:null,reload:!1}}))}const He=Ct>Ft*10;return a.createElement("div",{className:"select-user-container",style:{paddingBottom:20}},a.createElement(Ue,{onSearch:Fe,schools:pt}),Yt?a.createElement(a.Fragment,null,a.createElement("div",{className:"flexd-table-header mt20"},a.createElement(se.Gi,null,a.createElement(ae.default,{pagination:!1,dataSource:we,columns:Xe}))),a.createElement("div",{style:{maxHeight:260,overflow:"auto",marginBottom:20}},a.createElement(z(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:Le,hasMore:He,useWindow:!1},a.createElement(se.Gi,null,a.createElement(ae.default,{loading:At,showHeader:!1,pagination:!1,dataSource:rt,columns:Xe,onRow:We=>({onClick:tt=>{We.added!==1&&Ze(We.numid)}})})))),a.createElement("div",{className:"flex-container flex-end"},a.createElement(ue.ZP,{type:"ghost",style:{marginRight:10,border:"1px solid #C3CFE0",color:"#464F66"},onClick:Re},"\u53D6\u6D88"),a.createElement(ue.ZP,{style:{background:"#F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%)",boxShadow:"0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255,255,255,0.5)",borderRadius:2,color:"#165DFF",border:"1px solid #BACFFE"},type:"primary",onClick:et},"\u786E\u5B9A"))):a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},a.createElement("img",{src:ne,width:"100",alt:""}),a.createElement("br",null),a.createElement("p",{className:"mt20"},"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458")))}},42972:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return b}});var te=Ce(59301),Ye=Ce(6767),Me=Ce(75727),pe=Ce(72790),Oe=Ce(16471),ve=Ce(15267),ue=Ce(56102),fe=Ce(67195),he={watermark:"watermark___hNYlv",videovideo:"videovideo___ovOkV",animate__loop:"animate__loop___mvL6s",upDown:"upDown___SlgHv",container:"container___g1WYG","video-container":"video-container___XPkWR","video-controls":"video-controls___to0Zq",hide:"hide___NA3DV","video-progress":"video-progress___gqHsd",seek:"seek___iZHBm","seek-tooltip":"seek-tooltip___uWyXx","bottom-controls":"bottom-controls___uoIBm","left-controls":"left-controls___mBEx4","right-controls":"right-controls___e9L6r",rateOverlay:"rateOverlay___HHBWe",controlText:"controlText___M_BWR","volume-controls":"volume-controls___fa3mE","fullscreen-button":"fullscreen-button___ur0es","fullscreen-button1":"fullscreen-button1___rfaXm","pip-button":"pip-button___GFO8W","playback-animation":"playback-animation___ndURq",volume:"volume___OTmpP",hidden:"hidden___o7GkT"},le=(z,ne,oe)=>new Promise((se,de)=>{var a=ce=>{try{re(oe.next(ce))}catch(ge){de(ge)}},x=ce=>{try{re(oe.throw(ce))}catch(ge){de(ge)}},re=ce=>ce.done?se(ce.value):Promise.resolve(ce.value).then(a,x);re((oe=oe.apply(z,ne)).next())});function ae(z){if(isNaN(z))return{minutes:"00",seconds:"00"};const ne=new Date(z*1e3).toISOString().substr(11,8);return{hour:ne.substr(0,2),minutes:ne.substr(3,2),seconds:ne.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function ie(z,ne){return z-ne}function me(z){z.sort(ie);let ne=0;for(let oe=0;oe<z.length-1;oe++){let se=Math.abs(z[oe+1]-z[oe]);se<21&&(ne+=se)}return ne}const E=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;var b=(0,te.forwardRef)(({allow_skip:z,src:ne,toLog:oe,videoId:se,logWatchHistory:de,courseId:a=null,startTime:x,handlePause:re=()=>{},handlePlay:ce=()=>{},handlePlayEnded:ge=()=>{},autoPlay:_e=!1,onPlayEnded:ye=()=>{},isShowWaterMark:be=!0},Se)=>{var Be;ne=ne==null?void 0:ne.replace("http://","https://");const we=((Be=ne==null?void 0:ne.split("."))==null?void 0:Be.pop())==="flv",Ue=(0,te.useRef)(),Pe=(0,te.useRef)(),ze=(0,te.useRef)(),Ke=(0,te.useRef)(),Ne=(0,te.useRef)(),Re=(0,te.useRef)(),$e=(0,te.useRef)(),nt=(0,te.useRef)(),ut=(0,te.useRef)(),Qe=(0,te.useRef)(),rt=(0,te.useRef)(),pt=(0,te.useRef)(),At=(0,te.useRef)(),gt=(0,te.useRef)(),Ft=navigator.userAgent.toLowerCase().match(E),Ct=Ft?Ft[0]:"pc",Yt=(0,te.useRef)(!1),zt=(0,ve.eY)();let Xe=0,Fe=0,Le=0,Ze=null,et=!1,He=20,We=1,tt=!1,at=!1,ot=[];(0,te.useImperativeHandle)(Se,()=>({getLastUpdatedTime:()=>Ue.current.currentTime,getDuration:()=>Ue.current.duration})),Ye.ZP.config({maxCount:1,getContainer:()=>ze.current});const ct=(0,te.useCallback)((on,yn=!1)=>{let xn={point:Ue.current.currentTime};Ze?(xn.log_id=Ze,xn.watch_duration=me(ot),xn.total_duration=Fe):(a?(xn.video_id=parseInt(se,10),xn.course_id=a):xn.video_id=se,xn.duration=Xe,xn.device=Ct),yn&&(xn.ed="1");function an(){return le(this,null,function*(){tt=!0,Ze=yield de==null?void 0:de(xn),tt=!1,on&&on()})}an()},[se,a]);(0,te.useEffect)(()=>{Ue.current&&(Ke.current.style.display="none",Ne.current.style.display="block"),Ye.ZP.destroy();let on=null;return pe.Z.isSupported&&we&&ne&&(ne==null?void 0:ne.indexOf(".m3u8"))<0?(on=pe.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:ne,muted:!1}),Ue.current&&(on.attachMediaElement(Ue.current),on.load())):Ue.current.setAttribute("src",ne),mt(),()=>{on&&(on.unload(),on.pause(),on.destroy(),on=null)}},[Ue,we,ne]);function lt(){Ue.current.paused?(Ke.current.style.display="none",Ne.current.style.display="block"):(Ke.current.style.display="block",Ne.current.style.display="none")}function mt(){rt.current.style.display="none",At.current.style.display="none",pt.current.style.display="none",Ue.current.muted||Ue.current.volume===0?rt.current.style.display="block":Ue.current.volume>0&&Ue.current.volume<=.5?At.current.style.display="block":pt.current.style.display="block"}(0,te.useEffect)(()=>{const on=document.getElementById("play"),yn=document.querySelectorAll(".playback-icons use");function xn(){ce(),x&&!Yt.current&&(Ue.current.currentTime=x),Yt.current=!0,ot.push(Ue.current.currentTime),et||(et=!0,oe&&ct())}function an(){return le(this,null,function*(){lt(),ot.push(Ue.current.currentTime),oe&&ct(()=>{Ze=null,Le=0,et=!1,tt=!1,at=!1,ot=[],Fe=0,We=1},!0),ye()})}function An(){Re.current.value=Math.round(Ue.current.currentTime),$e.current.value=Math.round(Ue.current.currentTime)}function Jt(){const lr=ae(Math.round(Ue.current.currentTime));ut.current.innerText=`${lr.hour>0?lr.hour+":":""}${lr.minutes}:${lr.seconds}`,ut.current.setAttribute("datetime",`${lr.hour>0?" "+lr.hour+" ":""}${lr.minutes}m ${lr.seconds}s`)}function Ut(){var lr,Cr,nr,ur,Nn,In,Wn;const Kn=Math.round((lr=Ue.current)==null?void 0:lr.duration);(nr=(Cr=Re.current)==null?void 0:Cr.setAttribute)==null||nr.call(Cr,"max",Kn),(Nn=(ur=$e.current)==null?void 0:ur.setAttribute)==null||Nn.call(ur,"max",Kn);const Ln=ae(Kn);nt.current&&(nt.current.innerText=`${Ln.hour>0?Ln.hour+":":""}${Ln.minutes}:${Ln.seconds}`,(Wn=(In=nt.current).setAttribute)==null||Wn.call(In,"datetime",`${Ln.hour>0?" "+Ln.hour+" ":""}${Ln.minutes}m ${Ln.seconds}s`))}function rn(){try{const lr=Math.round(Ue.current.duration);Re.current.setAttribute("max",lr),$e.current.setAttribute("max",lr);const Cr=ae(lr);nt.current.innerText=`${Cr.hour>0?Cr.hour+":":""}${Cr.minutes}:${Cr.seconds}`,nt.current.setAttribute("datetime",`${Cr.hour>0?" "+Cr.hour+" ":""}${Cr.minutes}m ${Cr.seconds}s`),An(),Jt();const{width:nr,height:ur,x:Nn,y:In}=Pe.current.getBoundingClientRect();if(Nn<0||In<0,!at){let Wn=Ue.current.currentTime,Kn=Wn-Le;Math.abs(Kn)<10?(Fe+=Math.abs(Kn),Le=Wn,tt||Fe-We*He>=0&&(We++,ot.push(Le),oe&&ct())):(Le=Wn,oe&&ct())}}catch(lr){console.log("videoplaying:",lr)}}function _n(){at=!0}function Bn(){Ue.current.playing&&ot.push(Ue.current.currentTime,Le),Le=Ue.current.currentTime,at=!1}function kt(){Xe=Ue.current.duration,Xe<=20&&(He=Xe/3),Ue.current.addEventListener("play",xn)}function ln(lr){lr.preventDefault(),(0,fe.vp)()?(Ue.current.style.width="100%",Ue.current.style.height="100%"):Ue.current.style.cssText=""}function Cn(){re()}function Mn(lr){if(!z){Ye.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const Cr=lr.target.dataset.seek?lr.target.dataset.seek:lr.target.value;Ue.current.currentTime=Cr,$e.current.value=Cr,Re.current.value=Cr}function Qn(lr){const Cr=Math.round(lr.offsetX/lr.target.clientWidth*parseInt(lr.target.getAttribute("max"),10));Re.current.setAttribute("data-seek",Cr);const nr=ae(Cr);Qe.current.textContent=`${nr.hour>0?nr.hour+":":""}${nr.minutes}:${nr.seconds}`;const ur=Ue.current.getBoundingClientRect();Qe.current.style.left=`${lr.pageX-ur.left}px`}function mr(lr){switch(lr.code){case"Space":lr.preventDefault(),St();break;case"ArrowRight":if(lr.preventDefault(),!z){Ye.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(Ue.current.currentTime>=Ue.current.duration)break;Ue.current.currentTime=parseInt(Ue.current.currentTime)+5,An();break;case"ArrowLeft":if(lr.preventDefault(),!z){Ye.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(Ue.current.currentTime===0)break;Ue.current.currentTime=parseInt(Ue.current.currentTime)-5,An();break;case"ArrowUp":lr.preventDefault(),Ue.current.volume<1&&(Ue.current.volume=(parseInt(Ue.current.volume*10)+1)/10);break;case"ArrowDown":lr.preventDefault(),Ue.current.volume>0&&(Ue.current.volume=(parseInt(Ue.current.volume*10)-1)/10);break}}return ze.current.addEventListener((0,fe.gH)(),ln),Ue.current.addEventListener("canplay",kt),Ue.current.addEventListener("ended",an),Ue.current.addEventListener("seeking",_n),Ue.current.addEventListener("seeked",Bn),Ue.current.addEventListener("loadedmetadata",Ut),Re.current.addEventListener("mousemove",Qn),Re.current.addEventListener("input",Mn),Ue.current.addEventListener("timeupdate",rn),Ue.current.addEventListener("pause",Cn),Ue.current.addEventListener("volumechange",mt),document.addEventListener("keydown",mr),()=>{var lr,Cr,nr,ur,Nn,In,Wn,Kn,Ln,$n,ar,dn;(lr=Ue.current)==null||lr.removeEventListener("canplay",kt),(Cr=Ue.current)==null||Cr.removeEventListener("play",xn),(nr=Ue.current)==null||nr.removeEventListener("ended",an),(ur=Ue.current)==null||ur.removeEventListener("seeking",_n),(Nn=Ue.current)==null||Nn.removeEventListener("seeked",Bn),(In=Re.current)==null||In.removeEventListener("mousemove",Qn),(Wn=Re.current)==null||Wn.removeEventListener("input",Mn),(Kn=Ue.current)==null||Kn.removeEventListener("timeupdate",rn),(Ln=Ue.current)==null||Ln.removeEventListener("pause",Cn),($n=Ue.current)==null||$n.removeEventListener("loadedmetadata",Ut),(ar=Ue.current)==null||ar.removeEventListener("volumechange",mt),document.removeEventListener("keydown",mr),(dn=Ue.current)!=null&&dn.playing&&(ot.push(Le,Ue.current.currentTime),oe&&ct())}},[Ue,ne]),(0,te.useEffect)(()=>{if(Ue.current.onended=()=>{ge(Ue)},Ue.current.oncontextmenu=()=>!1,(ne==null?void 0:ne.indexOf(".m3u8"))>-1){if(Ue.current.canPlayType("application/vnd.apple.mpegurl"))Ue.current.src=ne;else if(Oe.ZP.isSupported()){var on=new Oe.ZP;on.loadSource(ne),on.attachMedia(Ue.current)}}},[ne]);const[Lt,ft]=(0,te.useState)(1),St=()=>{Ue.current.paused||Ue.current.ended?Ue.current.play():Ue.current.pause(),lt()};function nn(){Ue.current.muted=!Ue.current.muted,Ue.current.muted?(gt.current.setAttribute("data-volume",volume.value),gt.current.value=0):gt.current.value=gt.current.dataset.volume}return te.createElement("div",{style:{position:"relative"},ref:ze},te.createElement("div",{ref:Pe,className:`${he.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${he.animate__loop}`},be&&zt?zt.login:" "),te.createElement("div",{className:he.container},te.createElement("div",{className:he["video-container"],id:"video-container"},te.createElement("div",{className:he["playback-animation"],id:"playback-animation"},te.createElement("svg",{className:he["playback-icons"]},te.createElement("use",{className:"hidden",href:"#play-icon"}),te.createElement("use",{href:"#pause"}))),te.createElement("video",{className:he.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:Ue,autoPlay:_e}),te.createElement("div",{className:`${he["video-controls"]} `,id:"video-controls"},te.createElement("div",{className:he["bottom-controls"]},te.createElement("div",{className:he["left-controls"]},te.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:St},te.createElement("svg",{className:he["playback-icons"]},te.createElement("use",{ref:Ne,href:"#play-icon"}),te.createElement("use",{ref:Ke,style:{display:"none"},href:"#pause"}))),te.createElement("div",{className:he.time},te.createElement("time",{id:"time-elapsed",ref:ut},"00:00"),te.createElement("span",null," / "),te.createElement("time",{id:"duration",ref:nt},"00:00"))),te.createElement("div",{className:he["right-controls"]},z&&te.createElement(Me.Z,{placement:"top",overlayClassName:he.rateOverlay,getPopupContainer:on=>on.parentNode,menu:{items:[{key:"1",label:te.createElement("span",{onClick:()=>{ft(1),Ue.current.playbackRate=1}},"1.0x")},{key:"2",label:te.createElement("span",{onClick:()=>{ft(1.5),Ue.current.playbackRate=1.5}},"1.5x")},{key:"3",label:te.createElement("span",{onClick:()=>{ft(2),Ue.current.playbackRate=2}},"2.0x")}]}},te.createElement("div",{className:`${he.controlText} mr5`},"\u500D\u901F")),te.createElement(ue.CopyToClipboard,{text:ne,onCopy:()=>Ye.ZP.success("\u590D\u5236\u6210\u529F")},te.createElement("button",{"data-title":"\u590D\u5236\u94FE\u63A5"},te.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),te.createElement("div",{className:he["volume-controls"]},te.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:he["volume-button"],id:"volume-button",onClick:nn},te.createElement("i",{ref:rt,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),te.createElement("i",{ref:At,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),te.createElement("i",{ref:pt,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),te.createElement("input",{className:he.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:gt,style:{display:"none"},onClick:mt})),te.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:he["fullscreen-button"],onClick:()=>{(0,fe.vp)()?(0,fe.BU)():(0,fe.Dj)(ze.current)}},te.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),te.createElement("div",{className:he["video-progress"]},te.createElement("progress",{ref:$e,value:"0",min:"0"}),te.createElement("input",{className:he.seek,ref:Re,value:"0",min:"0",type:"range",step:"1"}),te.createElement("div",{className:he["seek-tooltip"],ref:Qe,id:"seek-tooltip"},"00:00"))))),te.createElement("svg",{style:{display:"none"}},te.createElement("defs",null,te.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},te.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),te.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},te.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),te.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},te.createElement("path",{d:"M14.016 3.234q3.047 0.656 5.016 3.117t1.969 5.648-1.969 5.648-5.016 3.117v-2.063q2.203-0.656 3.586-2.484t1.383-4.219-1.383-4.219-3.586-2.484v-2.063zM16.5 12q0 2.813-2.484 4.031v-8.063q1.031 0.516 1.758 1.688t0.727 2.344zM3 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6z"})),te.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},te.createElement("path",{d:"M5.016 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6zM18.516 12q0 2.766-2.531 4.031v-8.063q1.031 0.516 1.781 1.711t0.75 2.32z"})),te.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},te.createElement("path",{d:"M12 3.984v4.219l-2.109-2.109zM4.266 3l16.734 16.734-1.266 1.266-2.063-2.063q-1.547 1.313-3.656 1.828v-2.063q1.172-0.328 2.25-1.172l-4.266-4.266v6.75l-5.016-5.016h-3.984v-6h4.734l-4.734-4.734zM18.984 12q0-2.391-1.383-4.219t-3.586-2.484v-2.063q3.047 0.656 5.016 3.117t1.969 5.648q0 2.203-1.031 4.172l-1.5-1.547q0.516-1.266 0.516-2.625zM16.5 12q0 0.422-0.047 0.609l-2.438-2.438v-2.203q1.031 0.516 1.758 1.688t0.727 2.344z"})),te.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},te.createElement("path",{d:"M14.016 5.016h4.969v4.969h-1.969v-3h-3v-1.969zM17.016 17.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 9.984v-4.969h4.969v1.969h-3v3h-1.969zM6.984 14.016v3h3v1.969h-4.969v-4.969h1.969z"})),te.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},te.createElement("path",{d:"M15.984 8.016h3v1.969h-4.969v-4.969h1.969v3zM14.016 18.984v-4.969h4.969v1.969h-3v3h-1.969zM8.016 8.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 15.984v-1.969h4.969v4.969h-1.969v-3h-3z"})),te.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},te.createElement("path",{d:"M21 19.031v-14.063h-18v14.063h18zM23.016 18.984q0 0.797-0.609 1.406t-1.406 0.609h-18q-0.797 0-1.406-0.609t-0.609-1.406v-14.016q0-0.797 0.609-1.383t1.406-0.586h18q0.797 0 1.406 0.586t0.609 1.383v14.016zM18.984 11.016v6h-7.969v-6h7.969z"})))))})},28267:function(Yn,en,Ce){"use strict";Ce.d(en,{h:function(){return a}});var te=Ce(59301),Ye=Ce(82326),Me=Ce(28284),pe=Ce(7939),Oe=Ce(89780),ve=Ce.n(Oe),ue=Ce(88319),fe=Ce(94896),he=Object.defineProperty,le=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,ie=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(x,re,ce)=>re in x?he(x,re,{enumerable:!0,configurable:!0,writable:!0,value:ce}):x[re]=ce,z=(x,re)=>{for(var ce in re||(re={}))me.call(re,ce)&&b(x,ce,re[ce]);if(ie)for(var ce of ie(re))E.call(re,ce)&&b(x,ce,re[ce]);return x},ne=(x,re)=>le(x,ae(re));const oe=Ye.default.Option,se={labelCol:{span:4},wrapperCol:{span:20}},de={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"]};en.Z=({callback:x,onCancel:re})=>{const[ce,ge]=(0,te.useState)("python");function _e(be){ge(de[be][1])}function ye(be){x(be)}return te.createElement(Me.default,ne(z({},se),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ye,style:{width:500}}),te.createElement(Me.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},te.createElement(Ye.default,{getPopupContainer:be=>be.parentNode,onChange:_e},Object.keys(de).map(be=>te.createElement(oe,{key:be,value:be},de[be][0])))),te.createElement(Me.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},te.createElement(a,{mode:ce})),te.createElement("div",{className:"flex-container flex-end"},te.createElement(pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(pe.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))};function a({value:x,onChange:re,mode:ce,options:ge={}}){const _e=(0,te.useRef)(),[ye,be]=(0,te.useState)();return(0,te.useEffect)(()=>{if(ye){let Se=function(Be){const Ae=Be.getValue();re&&re(Ae)};return ye.on("change",Se),()=>{ye.off("change",Se)}}},[ye,re]),(0,te.useEffect)(()=>{ye&&ye.setOption("mode",ce)},[ye,ce]),(0,te.useEffect)(()=>{ye&&(x!==ye.getValue()||x==="")&&setTimeout(()=>{ye.setValue(x||"")},300)},[ye,x]),(0,te.useEffect)(()=>{if(_e.current&&!ye){const Se=ve().fromTextArea(_e.current,z({mode:ce,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ge));be(Se)}},[_e.current,ye]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:_e}))}},39116:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return Kn}});var te=Ce(59301),Ye=Ce(44283),Me=Ce(89780),pe=Ce.n(Me),Oe=Ce(76374),ve=Ce(88319),ue=Ce(6313),fe=Ce(25717),he=Ce(99498),le=Ce(25419),ae=Ce(67549),ie=Ce(35883),me=({value:Ln="",className:$n,showTextOnly:ar,showLines:dn,style:Ie={}})=>{const je=(0,te.useMemo)(()=>"",[Ln]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:je}}))},E=Object.defineProperty,b=Object.defineProperties,z=Object.getOwnPropertyDescriptors,ne=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,de=(Ln,$n,ar)=>$n in Ln?E(Ln,$n,{enumerable:!0,configurable:!0,writable:!0,value:ar}):Ln[$n]=ar,a=(Ln,$n)=>{for(var ar in $n||($n={}))oe.call($n,ar)&&de(Ln,ar,$n[ar]);if(ne)for(var ar of ne($n))se.call($n,ar)&&de(Ln,ar,$n[ar]);return Ln},x=(Ln,$n)=>b(Ln,z($n));let re=[{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 ce({onActionCallback:Ln,title:$n,icon:ar,actionName:dn,className:Ie="",children:je}){function Je(){Ln(dn)}return te.createElement("a",{title:$n,className:Ie,onClick:Je},te.createElement("i",{className:`${ar}`}),je)}var ge=({watch:Ln,showNullButton:$n,showNullProgramButton:ar,onActionCallback:dn,fullScreen:Ie,insertTemp:je,hidetoolBar:Je,extraUse:ht})=>{const Et=[...re,{title:`${Ln?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Ln?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return te.createElement("ul",{className:"markdown-toolbar-container"},!Je&&Et.map((Qt,fn)=>te.createElement("li",{key:fn},Qt.actionName?te.createElement(ce,x(a({},Qt),{onActionCallback:dn})):te.createElement("span",{className:"v-line"}))),$n?te.createElement("li",null,te.createElement(ce,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:dn},te.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,ar?te.createElement(te.Fragment,null,te.createElement("li",null,te.createElement(ce,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:dn},te.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),te.createElement("li",null,te.createElement(ce,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:dn},te.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,je&&te.createElement("li",null,te.createElement(ce,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${je}`,onActionCallback:dn},te.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),ht&&te.createElement("li",null,ht),te.createElement("li",{className:"btn-full-screen"},te.createElement(ce,{icon:`${Ie?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Ie?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:dn})))},_e=Ce(88487),ye=Ce(28284),be=Ce(37568),Se=Ce(7939),Be=Object.defineProperty,Ae=Object.defineProperties,we=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,Ke=(Ln,$n,ar)=>$n in Ln?Be(Ln,$n,{enumerable:!0,configurable:!0,writable:!0,value:ar}):Ln[$n]=ar,Ne=(Ln,$n)=>{for(var ar in $n||($n={}))Pe.call($n,ar)&&Ke(Ln,ar,$n[ar]);if(Ue)for(var ar of Ue($n))ze.call($n,ar)&&Ke(Ln,ar,$n[ar]);return Ln},Re=(Ln,$n)=>Ae(Ln,we($n));const $e={labelCol:{span:4},wrapperCol:{span:20}};var nt=({callback:Ln,onCancel:$n})=>{function ar(dn){Ln(dn)}return te.createElement(ye.default,Re(Ne({},$e),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ar,style:{width:500}}),te.createElement(ye.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},te.createElement(be.default,null)),te.createElement(ye.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},te.createElement(be.default,null)),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Se.ZP,{type:"ghost",onClick:$n},"\u53D6\u6D88")))},ut=Ce(28267),Qe=Ce(53332),rt=Ce(62957),pt=Ce(77019),At=Ce(40254),gt=Ce(59301),Ft=({callback:Ln,onCancel:$n})=>{const ar=document.createElement("canvas"),dn=ar.getContext("2d");ar.width=1e3,ar.height=800,dn.fillStyle="#ffffff",dn.fillRect(0,0,ar.width,ar.height);const Ie=ar.toDataURL("image/png");return gt.createElement(rt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},gt.createElement(pt.Z,{style:{height:"100vh"}},gt.createElement(At.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Ie,visible:!0,title:String(Date.now())},onOk:je=>{Ln({src:je.url})},onClose:$n})))},Ct=Ce(36207),Yt=Ce(5269),zt=Ce(6767),Xe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},Fe=Ce(59301),Ze=(0,te.forwardRef)(({onCancel:Ln,editImgId:$n,callback:ar},dn)=>{let Ie=(0,te.useRef)(),je=(0,te.useRef)(),Je=(0,te.useRef)(),ht=(0,te.useRef)(!1);const Et=(0,te.useRef)(!1);console.log("ref:",dn);const[Qt,fn]=(0,te.useState)(0),[sn,mn]=(0,te.useState)("100vh");return(0,te.useEffect)(()=>{fn(1)},[]),(0,te.useImperativeHandle)(dn,()=>({setHeight:mn})),Fe.createElement("div",{ref:Et,className:"body-overflow-initial"},Fe.createElement(Ct.Z,{width:"100vw",height:sn,footer:null,closable:!0,placement:"bottom",open:!!Qt,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${Xe.drawerWrap}`,onClose:()=>{window.saveDrawData(Zn=>{ar({src:`/api/attachments/${Zn}`,id:Zn})})},title:Fe.createElement(pt.Z,{align:"middle"},Fe.createElement(Yt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Fe.createElement(Yt.Z,{onClick:()=>{mn(sn==="60px"?"100vh":"60px")}},Fe.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),Fe.createElement(Yt.Z,{onClick:()=>{window.saveDrawData(Zn=>{if(Zn===null){zt.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}zt.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),ar({src:`/api/attachments/${Zn}`,id:Zn,disabledClose:!0})})}},Fe.createElement(Se.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},Fe.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${$n||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:je})))}),et=Ce(14185),He=Ce(47889),We=Ce(4875);const tt=He.ZP.Group,at={margin:"0 8px"};var ot=({callback:Ln,onCancel:$n})=>{function ar(dn){Ln(dn)}return te.createElement(ye.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ar},te.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},te.createElement("span",{style:at},"\u5355\u5143\u683C\u6570\uFF1A"),te.createElement("span",{style:at},"\u884C\u6570"),te.createElement(ye.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},te.createElement(We.Z,null)),te.createElement("span",{style:at},"\u5217\u6570"),te.createElement(ye.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},te.createElement(We.Z,null))),te.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},te.createElement("span",{style:at},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),te.createElement(ye.default.Item,{name:"align"},te.createElement(tt,null,te.createElement(He.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(He.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(He.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(He.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Se.ZP,{type:"ghost",onClick:$n},"\u53D6\u6D88")))},ct=Ce(58755),lt=Ce(84915),mt=Ce.n(lt),ft=(0,te.forwardRef)(({use3d:Ln,width:$n,height:ar,callback:dn,showSaveButton:Ie},je)=>{const Je=(0,te.useRef)(),ht=(0,te.useRef)(),[Et,Qt]=(0,te.useState)(!1),fn=(0,te.useRef)({id:Je,appName:"graphing",width:$n||1e3,height:ar||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,te.useEffect)(()=>{ht.current=new(mt())(fn.current,!0),window.onload=function(){ht.current.inject("applet_container")}},[]);const sn=()=>{var mn=window.ggbApplet.getPNGBase64(1,!0,72);return dn&&dn(mn),mn};return(0,te.useEffect)(()=>{fn.current.appName=Et?"3D":"graphing",ht.current.inject("applet_container")},[Et]),(0,te.useEffect)(()=>{Qt(Ln)},[Ln]),(0,te.useImperativeHandle)(je,()=>({getImgData:sn})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Je}),te.createElement(pt.Z,{align:"middle"},te.createElement(Yt.Z,{flex:1},te.createElement(ct.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Et,onChange:mn=>Qt(mn)})),te.createElement(Yt.Z,null,te.createElement(Se.ZP,{size:"large",onClick:sn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),St=Ce(9057);const nn="link",on="upload-image",yn="add-flowchart",xn="draw-image",an="add-flowchart",An="code-block",Jt="add-table",Ut="------------",rn={default:Ut,left:`:${Ut}`,center:`:${Ut}:`,right:`${Ut}:`};var _n=Ce(79006),Bn=Ce(76406);function kt(){}let ln=0;const Cn=1e4,Mn="\u2581",Qn="@\u2581\u2581@",mr="@\u2581@",lr=`
|
|
|
**\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`,Cr=["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 nr(Ln){return/^\d+$/.test(Ln)?`${Ln}px`:Ln}const Nn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",In={[Nn+"-B"]:"bold",[Nn+"-I"]:"italic"},Wn={[nn]:"\u6DFB\u52A0\u94FE\u63A5",[An]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[on]:"\u6DFB\u52A0\u56FE\u7247",[xn]:"\u6DFB\u52A0\u753B\u56FE",[yn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Jt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Kn=({defaultValue:Ln="",onChange:$n,width:ar="100%",height:dn=400,miniToolbar:Ie=!1,isFocus:je=!1,watch:Je,insertTemp:ht,mode:Et="markdown",id:Qt="markdown-editor-id",showResizeBar:fn=!1,noStorage:sn=!1,showNullButton:mn=!1,showNullProgramButton:Zn=!1,hidetoolBar:tr=!1,fullScreen:Vt=!1,onBlur:Gt,onCMBeforeChange:Rt,onFullScreen:jt,className:Mt="",disablePaste:Kt=!1,disabled:yt=!1,disabledFill:qt=!1,placeholder:vn="",values:Tt="",extraUse:It,onAddBlank:Dt})=>{const[Bt,Zt]=(0,te.useState)(null),[tn,Tn]=(0,te.useState)(Ln),[Fn,dr]=(0,te.useState)(Je),[_r,Kr]=(0,te.useState)(Vt),[Sr,hr]=(0,te.useState)(""),[Mr,Br]=(0,te.useState)(0),[Wr,Jn]=(0,te.useState)(dn),[ii,Ur]=(0,te.useState)(!1),[Gr,qr]=(0,te.useState)(0),[Li,wi]=(0,te.useState)(0),ui=(0,te.useRef)(),Qr=(0,te.useRef)(),Di=(0,te.useRef)(),oi=(0,te.useRef)(),di=(0,te.useRef)(),ci=(0,te.useRef)(),ki=(0,Ye.useDispatch)();(0,te.useEffect)(()=>{const wr=window.scrollY||window.pageYOffset;Tn(Tt),Bt==null||Bt.setValue(Tt),window.scrollTo(0,wr)},[Tt]),(0,te.useEffect)(()=>{jt==null||jt(_r)},[_r]),(0,te.useEffect)(()=>{if(ui.current){let wr=function(Hr,ri){var un;if(Kt){ri.preventDefault();return}const Vn=ri.clipboardData;if(Vn){const Sn=Vn.types.toString(),Rr=Vn.items;if(Sn==="Files"||Vn.types.indexOf("Files")>-1){if(ri.preventDefault(),Et=="stex")return;try{let ti=Rr[1];((un=Rr[0])==null?void 0:un.kind)==="file"&&(ti=Rr[0]);const gn=ti.getAsFile(),mi=gn.name.split(".").pop();(0,Qe.I)(gn,Nr=>{var Ar,pi,Gi;Nr.id?((Ar=gn==null?void 0:gn.type)==null?void 0:Ar.indexOf("image"))>-1?Ir.replaceSelection(`<img width="100%" src="/api/attachments/${Nr.id}?type=${Nr.content_type})" alt="" />`):((pi=gn==null?void 0:gn.type)==null?void 0:pi.indexOf("video"))>-1?Ir.replaceSelection(`<video width="100%" controls src="/api/attachments/${Nr.id}"></video>`):((Gi=gn==null?void 0:gn.type)==null?void 0:Gi.indexOf("pdf"))>-1?Ir.replaceSelection(`<a href="/api/attachments/${Nr.id}?type=${gn.type}&disposition=inline" target="_blank">${gn.name}</a>`):Cr.includes(mi)?Ir.replaceSelection(`<a href="/api/attachments/${Nr.id}?type=office&disposition=inline" target="_blank">${gn.name}</a>`):Ir.replaceSelection(`[${gn.name}](/api/attachments/${Nr.id}?type=${Nr.content_type})`):(Nr==null?void 0:Nr.status)===401&&(document.location.href="/user/login")})}catch(ti){zt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Ir=pe().fromTextArea(ui.current,{mode:Et,lineNumbers:!Ie,lineWrapping:!0,value:Ln,autoCloseTags:!0,autoCloseBrackets:!0});return Ir.on("keyup",function(Hr,ri){ri.keyCode===8&&(Hr.getValue()==""?Ir.setOption("placeholder",vn):Ir.setOption("placeholder",null))}),Ir.on("keydown",function(Hr,ri){if(ri.keyCode===8){var un=ua(Hr);un&&ri.preventDefault()}}),je&&Ir.focus(),Ir.on("paste",wr),yt&&Ir.on("beforeChange",function(Hr,ri){(ri.origin==="paste"||ri.origin==="+input")&&ri.cancel()}),Zt(Ir),()=>{Ir.off("paste",wr)}}},[]);const Ki=(0,te.useCallback)(()=>{if(Qr.current)try{}catch(wr){console.log(wr,"---- to set md editor body height")}},[Wr,Qr,_r]);(0,te.useEffect)(()=>{function wr(){let Ir=new Oe.Z(Hr=>{for(let ri of Hr)(ri.target.offsetHeight>0||ri.target.offsetWidth>0)&&(Ki(),Bt.setSize("100%","100%"),Bt.refresh())});return Ir.observe(ui.current.parentElement),Ir}if(Bt){const Ir=wr();return()=>{var Hr,ri;(Hr=ui.current)!=null&&Hr.parentElement&&Ir.unobserve((ri=ui.current)==null?void 0:ri.parentElement)}}},[Bt,Ki]),(0,te.useEffect)(()=>{if(Bt){let wr=[];for(const[Ir,Hr]of Object.entries(In)){let ri={[Ir]:()=>{kn(Hr)}};wr.push(ri),Bt.addKeyMap(ri)}return()=>{for(let Ir of wr)Bt.removeKeyMap(Ir)}}},[Bt]),(0,te.useEffect)(()=>{Vt!==_r&&Kr(Vt)},[Vt]),(0,_n.Z)(()=>{if(!sn&&Mr>0){let wr=new Date().getTime(),Ir=window.sessionStorage.getItem(Qt);wr>=Mr+Cn&&(!Ir||Ir!==tn)&&(window.sessionStorage.setItem(Qt,tn),Ur(!0))}},Cn),(0,te.useEffect)(()=>{dr(Je)},[Bt,Je]),(0,te.useEffect)(()=>{Bt&&je&&Bt.focus()},[Bt,je]),(0,te.useEffect)(()=>{if(Fn&&Bt){let wr=function(Hr){let ri=Hr.target;if(oi.current){let un=ri.scrollTop/ri.scrollHeight;oi.current.scrollTop=oi.current.scrollHeight*un}};const Ir=Bt.getScrollerElement();return Ir.addEventListener("scroll",wr),()=>{Ir.removeEventListener("scroll",wr)}}},[Bt,Fn]),(0,te.useEffect)(()=>{if(Bt&&Rt){let wr=function(Ir,Hr){Rt(Ir,Hr)};return Bt.on("beforeChange",wr),()=>{Bt.off("beforeChange",wr)}}},[Bt,Rt]),(0,te.useEffect)(()=>{if(Bt&&Gt){let wr=function(){Gt(Bt.getValue())};return Bt.on("blur",wr),()=>{Bt.off("blur",wr)}}},[Bt,Gt]);function ua(wr,Ir){var Hr=wr.getDoc(),ri=Hr.getCursor(),un=Hr.getLine(ri.line),Vn=un.charAt(ri.ch-1),Sn=un.lastIndexOf("@\u2581@",ri.ch),Rr=un.lastIndexOf("@\u2581\u2581@",ri.ch),ti=Sn>Rr?Sn:Rr,gn=Sn>Rr?3:4;if(Qn.indexOf(Vn)===-1)return null;if(console.log("change1:",Ir,wr,un,ri,ti,Sn,Rr,Vn),ti>=0&&ri.ch-ti<5){var mi=ti+gn;return Hr.replaceRange("",{line:ri.line,ch:ti},{line:ri.line,ch:mi}),{line:ri.line,ch:mi}}return null}(0,te.useEffect)(()=>{if(Bt){let wr=function(Ir,Hr){const ri=Ir.getValue();Tn(ri),Br(new Date().getTime()),Ir.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),$n&&(Zn?$n(ri,Dr(ri)):$n(ri))};return Bt.on("change",wr),()=>{Bt.off("change",wr)}}},[Bt,$n]),(0,te.useEffect)(()=>{if(Bt)if(Ln==null)Bt.setValue(""),Tn("");else{const wr=window.scrollY||window.pageYOffset;Ln!==Bt.getValue()&&(Bt.setValue(Ln),Tn(Ln),Bt.setCursor(yt?1:Bt.lineCount(),0),window.scrollTo(0,wr))}},[Bt,Ln]);const kn=(0,te.useCallback)(wr=>{const Ir=Bt.getCursor(),Hr=Bt.getSelection();let ri=Hr.split(`
|
|
|
`);switch(wr){case"bold":return Bt.replaceSelection("**"+Hr+"**"),Hr===""&&Bt.setCursor(Ir.line,Ir.ch+2),Bt.focus();case"italic":return Bt.replaceSelection("*"+Hr+"*"),Hr===""&&Bt.setCursor(Ir.line,Ir.ch+1),Bt.focus();case"code":return Bt.replaceSelection("`"+Hr+"`"),Hr===""&&Bt.setCursor(Ir.line,Ir.ch+1),Bt.focus();case"inline-latex":return(0,Bn.Ye)(ki)?void 0:(hr("inline-latex"),Bt.focus());case"latex":return Bt.replaceSelection("```latex\n"+Hr+"\n```"),Bt.setCursor(Ir.line+1,Hr.length+1),Bt.focus();case"line-break":return Bt.replaceSelection(`<br/>
|
|
|
`),Bt.focus();case"list-ul":return Hr===""?Bt.replaceSelection("- "+Hr):Bt.replaceSelection(ri.map(un=>un===""?"":`- ${un}`).join(`
|
|
|
`)),Bt.focus();case"list-ol":return Hr===""?Bt.replaceSelection("1. "+Hr):Bt.replaceSelection(ri.map((un,Vn)=>un===""?"":`${Vn+1}. ${un}`).join(`
|
|
|
`)),Bt.focus();case"add-null-ch":Dt==null||Dt();return;case"add-signal":return Hr===""&&Bt.setCursor(Ir.line,Ir.ch),Bt.replaceSelection(mr),Bt.focus();case"add-multiple":return Hr===""&&Bt.setCursor(Ir.line,Ir.ch),Bt.replaceSelection(Qn),Bt.focus();case"inster-template-1":return Hr===""&&Bt.setCursor(Ir.line,Ir.ch),Bt.replaceSelection(lr),Bt.focus();case"eraser":return Bt.setValue(""),Bt.focus();case"trigger-watch":return dr(!Fn),Bt.focus();case"trigger-full-screen":return Kr(!_r),Bt.focus();case nn:hr(nn);return;case An:hr(An);return;case on:hr(on);return;case xn:hr(xn);return;case"maths-latex":if((0,Bn.Ye)(ki))return;hr("maths-latex");return;case yn:di.current="",sessionStorage.removeItem("file_id"),hr(yn);return;case Jt:hr(Jt);return;default:throw new Error}},[Bt,Fn,_r]),qi=(0,te.useCallback)((wr,Ir)=>{var Hr,ri,un,Vn,Sn,Rr;wr!=null&&wr.disabledClose||hr("");const{src:ti,alt:gn,id:mi}=wr||{};switch(Sr){case nn:const{title:gi,link:Wi}=wr;return Bt.replaceSelection(`[${gi}](${Wi})`),Bt.focus();case An:const{language:Jr,content:li}=wr;return Bt.replaceSelection(["```"+Jr,li,"```"].join(`
|
|
|
`)),Bt.focus();case"maths-latex":for(var Nr=atob(wr),Ar=new Uint8Array(Nr.length),pi=0;pi<Nr.length;pi++)Ar[pi]=Nr.charCodeAt(pi);var Gi=new Blob([Ar],{type:"image/png"});return(0,Qe.I)(Gi,Mi=>{Mi.id?Bt.replaceSelection(``):(Mi==null?void 0:Mi.status)===401&&(document.location.href="/user/login")}),Bt.focus();case"inline-latex":return(0,Bn.Ye)(ki)?void 0:(Bt.replaceSelection("`$$"+wr+"$$`"),Bt.focus());case an:return mi?(Bt.getValue().indexOf(ti)===-1?Bt.replaceSelection(`<center><img id="${mi}" width="80%" src="${ti}" class="draw-flowchart" alt="${gn||""}" /></center>`):document.getElementById(mi).src=et.Z.API_SERVER+ti+"?t="+Date.now(),Bt.focus()):void 0;case on:case xn:const Zr=Ir,Vi=(un=(ri=(Hr=Zr==null?void 0:Zr.name)==null?void 0:Hr.split("."))==null?void 0:ri.pop)==null?void 0:un.call(ri);return((Vn=Zr==null?void 0:Zr.type)==null?void 0:Vn.indexOf("image"))>-1||!(Zr!=null&&Zr.type)?Zr!=null&&Zr.align||Zr!=null&&Zr.width?Bt.replaceSelection(`<p style="text-align:${Zr.align||"initial"}"><img width="${Zr.width?Zr.width+"%":"initial"}" src="${ti}" alt="${gn||""}" /></p>`):Bt.replaceSelection(`<img width="100%" src="${ti}" alt="${gn||""}" />`):((Sn=Zr==null?void 0:Zr.type)==null?void 0:Sn.indexOf("video"))>-1?Bt.replaceSelection(`<video width="100%" controls src="${ti}"></video>`):((Rr=Zr==null?void 0:Zr.type)==null?void 0:Rr.indexOf("pdf"))>-1?Bt.replaceSelection(`<a href="${ti}?type=${Zr.type}&disposition=inline" target="_blank">${Zr.name}</a>`):Cr.includes(Vi)?Bt.replaceSelection(`<a href="${ti}?type=office&disposition=inline" target="_blank">${Zr.name}</a>`):Bt.replaceSelection(`[${Zr.name}](${ti})`),Bt.focus();case Jt:const{row:sa,col:vi,align:Ni}=wr;let Ii=`
|
|
|
`;for(let Mi=0;Mi<sa;Mi++){let fa=[],ca=[];for(let la=0;la<vi;la++)Mi===1&&ca.push(rn[Ni]),fa.push(" ");Mi===1&&(Ii+=`| ${ca.join(" | ")} |
|
|
|
`),Ii+=`| ${fa.join(vi===1?"":" | ")} |
|
|
|
`}return Bt.replaceSelection(Ii+`
|
|
|
`),Bt.focus();default:throw new Error}},[Bt,Sr]),Qi=(0,te.useMemo)(()=>{switch(Sr){case nn:return te.createElement(nt,{callback:qi,onCancel:ra});case An:return te.createElement(ut.Z,{callback:qi,onCancel:ra});case on:return te.createElement(Qe.Z,{callback:qi,onCancel:ra});case yn:return te.createElement(Ze,{editImgId:di.current,callback:qi,onCancel:ra});case Jt:return te.createElement(ot,{callback:qi,onCancel:ra});case"maths-latex":return te.createElement(ft,{showSaveButton:!0,callback:qi});case"inline-latex":return te.createElement(St.Z,{showSaveButton:!0,callback:qi});default:return null}},[Sr]);function ra(){hr("")}(0,te.useEffect)(()=>{if(Di.current){let wr=function(Sn){un=!0,Vn=Sn.pageY},Ir=function(){un=!1},Hr=function(Sn){if(un){let Rr=Sn.pageY-Vn;Rr<0&&(Rr=0),Rr>300&&(Rr=300);let ti=dn+Rr+"px";Jn(ti)}},ri=Di.current,un=!1,Vn=0;return ri.addEventListener("mousedown",wr),document.addEventListener("mousemove",Hr),document.addEventListener("mouseup",Ir),()=>{ri.removeEventListener("mousedown",wr),document.removeEventListener("mousemove",Hr),document.removeEventListener("mouseup",Ir)}}},[Bt,Di]),(0,te.useEffect)(()=>{Jn(dn)},[dn]);const _i=nr(ar),Ti=nr(Wr),Xr={width:_i,height:Ti},rr=(0,te.useMemo)(()=>{if(Mr){let wr=new Date(Mr),Ir=wr.getHours(),Hr=wr.getMinutes(),ri=wr.getSeconds();return Ir=Ir<10?"0"+Ir:Ir,Hr=Hr<10?"0"+Hr:Hr,ri=ri<10?"0"+ri:ri,`${Ir}:${Hr}:${ri}`}return 0},[Mr]),Dr=wr=>{const Ir=[];if(Zn){let Hr=-1;wr=wr.replace(/(@▁▁@|@▁@)/g,function(ri,un,Vn){Ir.push({multiLine:ri!==mr})})}return Ir};function Fr(){window.sessionStorage.removeItem(Qt),Ur(!1),Br(0)}function or(){Ur(!1),Br(0),Bt.setValue(window.sessionStorage.getItem(Qt))}(0,te.useEffect)(()=>{Wn[Sr]&&Sr!==xn&&Sr!==yn&&setTimeout(()=>{const wr=document.getElementsByClassName("markdown-popup-form")[0],Ir=window.innerWidth/2-wr.offsetWidth/2,Hr=window.innerHeight/2-wr.offsetHeight/2;qr(Ir),wi(Hr)},0)},[Sr]);const ei=wr=>{wr.preventDefault();const Ir=wr.clientX-Gr,Hr=wr.clientY-Li;document.body.onmousemove=ri=>{let un=ri.clientX-Ir,Vn=ri.clientY-Hr;const Sn=document.getElementsByClassName("markdown-popup-form")[0],Rr=window.innerWidth-Sn.offsetWidth,ti=window.innerHeight-Sn.offsetHeight;un=Math.max(0,Math.min(un,Rr)),Vn=Math.max(0,Math.min(Vn,ti)),si(ri.clientX,ri.clientY,Ir,Hr)&&(qr(un),wi(Vn))},document.body.onmouseup=function(){document.body.onmousemove=null}},si=(wr,Ir,Hr,ri)=>{const un=document.body.clientHeight,Vn=document.body.clientWidth;return wr<20&&Hr>wr||wr>Vn-20&&Hr<wr||Ir<20&&ri>Ir||Ir>un-20&&ri<Ir?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return te.createElement(te.Fragment,null,te.createElement("div",{className:"markdown-editor-wrapper",ref:Qr},te.createElement("div",{className:`markdown-editor-container ${Mt} ${Fn?"on-preview":""} ${Ie?"mini":""} ${_r?"full-screen":""}`,style:Xr},te.createElement(ge,{insertTemp:ht,watch:Fn,fullScreen:_r,showNullButton:mn,showNullProgramButton:Zn,onActionCallback:kn,hidetoolBar:tr,extraUse:It}),te.createElement("div",{className:"markdown-editor-body"},te.createElement("div",{className:"codemirror-container"},te.createElement("textarea",{ref:ui,placeholder:vn})),Fn?te.createElement("div",{ref:oi,className:"preview-container"},Et==="stex"&&te.createElement(me,{value:tn}),Et!=="stex"&&te.createElement(ie.Z,{edit:!0,disabledFill:qt,showProgramFill:Zn,value:tn,openEditor:wr=>{var Ir;di.current=wr,(Ir=ci.current)==null||Ir.setHeight("100vh"),setTimeout(()=>{hr("add-flowchart")},150)}})):null))),fn?te.createElement("a",{ref:Di,className:"editor-resize"}):null,Sr===xn&&te.createElement(Ft,{callback:qi,onCancel:ra}),Sr===yn&&te.createElement(Ze,{ref:ci,editImgId:di.current,callback:qi,onCancel:ra}),te.createElement(_e.Z,null,Wn[Sr]&&Sr!==xn&&Sr!==yn?te.createElement(rt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Gr,top:Li},title:te.createElement("div",{style:{cursor:"move"},onMouseDown:ei},Wn[Sr]),open:!0,onCancel:ra,footer:null,destroyOnClose:!0,width:Sr===yn?"1200px":null,height:Sr===yn?"80vh":null,className:"markdown-popup-form"},Qi):null))}},53332:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return re},I:function(){return ge}});var te=Ce(28284),Ye=Ce(6767),Me=Ce(37568),pe=Ce(44104),Oe=Ce(4875),ve=Ce(47889),ue=Ce(7939),fe=Ce(23216),he=Ce(59301),le=Ce(59301),ae=Object.defineProperty,ie=Object.defineProperties,me=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ne=(_e,ye,be)=>ye in _e?ae(_e,ye,{enumerable:!0,configurable:!0,writable:!0,value:be}):_e[ye]=be,oe=(_e,ye)=>{for(var be in ye||(ye={}))b.call(ye,be)&&ne(_e,be,ye[be]);if(E)for(var be of E(ye))z.call(ye,be)&&ne(_e,be,ye[be]);return _e},se=(_e,ye)=>ie(_e,me(ye));const{useForm:de}=te.default,a={width:280,marginRight:10},x={labelCol:{span:5},wrapperCol:{span:19}};var re=({callback:_e,onCancel:ye})=>{const[be]=de();let Se=(0,he.useRef)();function Be(Ue){Se.current.width=be.getFieldValue("width"),Se.current.align=be.getFieldValue("align"),_e(Ue,Se.current)}function Ae(Ue,Pe){if(Ue.status===-1){Ye.ZP.error(Ue.message);return}be.setFieldsValue({src:`/api/attachments/${Ue.id}`,type:Pe.type})}function we(Ue){let Pe=Ue.target.files[0];Se.current=Pe,ge(Pe,Ae)}return le.createElement(te.default,se(oe({form:be},x),{className:"upload-image-panel",onFinish:Be,style:{width:470,overflow:"hidden"}}),le.createElement(te.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},le.createElement("div",{className:"flex-container"},le.createElement(te.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},le.createElement(Me.default,{style:a})),le.createElement(ce,{onFileChange:we}))),le.createElement(te.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},le.createElement(Me.default,{style:{width:264}})),le.createElement(te.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},le.createElement(pe.Z,null,le.createElement(te.default.Item,{name:"width",style:{margin:0}},le.createElement(Oe.Z,{style:{width:264}})),le.createElement("span",{className:"ml8"},"%"))),le.createElement(te.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},le.createElement(ve.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"}]})),le.createElement("aside",null,le.createElement(te.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},le.createElement(ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),le.createElement(ue.ZP,{type:"default",onClick:ye},"\u53D6\u6D88"))))};function ce({onFileChange:_e}){return le.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",le.createElement("input",{type:"file",onChange:_e}))}function ge(_e,ye){if(!_e)throw new String("\u6CA1\u6709\u6587\u4EF6");let be=new FormData;be.append("editormd-image-file",_e),be.append("file_param_name","editormd-image-file"),be.append("byxhr","true");var Se=new window.XMLHttpRequest;Se.withCredentials=!0,Se.addEventListener("load",function(Be){ye(JSON.parse(Be.target.responseText),_e)},!1),Se.addEventListener("error",function(Be){console.error(Be)},!1),Se.open("POST",`${fe.KI}/api/attachments.json`),Se.send(be)}},88487:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return Me}});var te=Ce(59301),Ye=Ce(4676);class Me extends te.Component{constructor(Oe){super(Oe);const ve=window.document;this.node=ve.createElement("div"),ve.body.appendChild(this.node)}render(){const{children:Oe}=this.props;return(0,Ye.createPortal)(Oe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(Yn,en,Ce){"use strict";Ce.d(en,{SV:function(){return Ft},ZP:function(){return gt}});var te=Ce(59301),Ye=Ce(76374);const Me={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"]},pe={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"]},Oe={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(`
|
|
|
`)}]},ve={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=Ce(53184),he=Ce.n(fe),le=(Ct,Yt,zt)=>new Promise((Xe,Fe)=>{var Le=He=>{try{et(zt.next(He))}catch(We){Fe(We)}},Ze=He=>{try{et(zt.throw(He))}catch(We){Fe(We)}},et=He=>He.done?Xe(He.value):Promise.resolve(He.value).then(Le,Ze);et((zt=zt.apply(Ct,Yt)).next())});const ae={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"]}},ie=(Ct,Yt,zt,Xe)=>{const Fe=Yt.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:zt.lineNumber,endColumn:zt.column});return Array.from(new Set(Fe.match(/\b\w{2,}\b/g)||[])).map(Ze=>({label:Ze,kind:Ct.languages.CompletionItemKind.Text,insertText:Ze,range:Xe}))},me=(Ct,Yt,zt,Xe)=>{Ct.languages.registerCompletionItemProvider(Yt,{provideCompletionItems(Fe,Le){const Ze=Fe.getWordUntilPosition(Le),et={startLineNumber:Le.lineNumber,endLineNumber:Le.lineNumber,startColumn:Ze.startColumn,endColumn:Ze.endColumn},He=Fe.getLineContent(Le.lineNumber).substring(Ze.startColumn-2,Ze.endColumn);return{suggestions:[...ie(Ct,Fe,Le,et),...zt.map(tt=>({label:tt,kind:Ct.languages.CompletionItemKind.Keyword,documentation:tt,insertText:tt,insertTextRules:Ct.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:et})),...Xe.map(tt=>({label:tt.label,kind:Ct.languages.CompletionItemKind.Snippet,documentation:tt.content,insertText:He.startsWith("#")?tt.content.replace(/#/,""):tt.content,insertTextRules:Ct.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:et}))]}}})};var E=Ct=>{ae.languages.forEach(Yt=>{Ct.languages.registerDocumentFormattingEditProvider(Yt,{provideDocumentFormattingEdits(zt){return le(this,null,function*(){const Xe=he()(zt.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:zt.getFullModelRange(),text:Xe}]})}})}),me(Ct,"java",pe.keywords,pe.quickKey),me(Ct,"cpp",Oe.keywords,Oe.quickKey),me(Ct,"c",Me.keywords,[]),me(Ct,"python",ve.keywords,ve.quickKey),me(Ct,"scala",ue.keywords,ue.quickKey)};const b="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var z=Object.defineProperty,ne=(Ct,Yt,zt)=>Yt in Ct?z(Ct,Yt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):Ct[Yt]=zt,oe=(Ct,Yt,zt)=>ne(Ct,typeof Yt!="symbol"?Yt+"":Yt,zt);const se=class zu{constructor(Yt,zt,Xe){this.placeholder=Yt,this.editor=zt,this.monaco=Xe,zt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return zu.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)}};oe(se,"ID","editor.widget.placeholderHint");var a=se,x=Ce(96236),re=Ce(6767),ce=Ce(25399),ge=Ce(78267),_e=Ce(33156),ye=Ce(56102),be=Object.defineProperty,Se=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,Pe=(Ct,Yt,zt)=>Yt in Ct?be(Ct,Yt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):Ct[Yt]=zt,ze=(Ct,Yt)=>{for(var zt in Yt||(Yt={}))we.call(Yt,zt)&&Pe(Ct,zt,Yt[zt]);if(Ae)for(var zt of Ae(Yt))Ue.call(Yt,zt)&&Pe(Ct,zt,Yt[zt]);return Ct},Ke=(Ct,Yt)=>Se(Ct,Be(Yt)),Ne=(Ct,Yt)=>{var zt={};for(var Xe in Ct)we.call(Ct,Xe)&&Yt.indexOf(Xe)<0&&(zt[Xe]=Ct[Xe]);if(Ct!=null&&Ae)for(var Xe of Ae(Ct))Yt.indexOf(Xe)<0&&Ue.call(Ct,Xe)&&(zt[Xe]=Ct[Xe]);return zt},Re=(Ct,Yt,zt)=>new Promise((Xe,Fe)=>{var Le=He=>{try{et(zt.next(He))}catch(We){Fe(We)}},Ze=He=>{try{et(zt.throw(He))}catch(We){Fe(We)}},et=He=>He.done?Xe(He.value):Promise.resolve(He.value).then(Le,Ze);et((zt=zt.apply(Ct,Yt)).next())});function $e(Ct){return/^\d+$/.test(Ct)?`${Ct}px`:Ct}function nt(){}let ut=!1;const Qe={"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 rt(Ct=[]){let Yt=Ct;if(Array.isArray(Ct)){for(let zt=0;zt<Ct.length;zt++){let Xe=Qe[Ct[zt]];if(Xe)return Xe}return Yt[0]}return Qe[Yt]||Yt}let pt=null;const At=()=>Re(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Ct){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Ct)}});var gt=Ct=>{var Yt=Ct,{width:zt="100%",height:Xe="100%",value:Fe,language:Le="javascript",style:Ze={},options:et={},overrideServices:He={},theme:We="vs-dark",onEditBlur:tt,isCopy:at=!1,onSave:ot,autoHeight:ct=!1,forbidCopy:lt=!1,forbidCopyTips:mt,onChange:Lt=nt,editorDidMount:ft=nt,onFocus:St=nt,onBreakPoint:nn=nt,breakPointValue:on=[],filename:yn="educoder.txt",errorLine:xn,errorContent:an="",highlightLine:An,openBreakPoint:Jt=!1,placeholder:Ut="",showMiniMap:rn=!0}=Yt,_n=Ne(Yt,["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 Bn=(0,te.useRef)(),kt=(0,te.useRef)({}),ln=(0,te.useRef)(),Cn=(0,te.useRef)(),Mn=(0,te.useRef)([]),Qn=(0,te.useRef)(!1),mr=(0,te.useRef)(),lr=(0,te.useRef)(),Cr=(0,te.useRef)(!1),[nr,ur]=(0,te.useState)(!1);function Nn(){let sn;return Bn.current&&(sn=new Ye.Z(mn=>{for(let Zn of mn)(Zn.target.offsetHeight>0||Zn.target.offsetWidth>0)&&kt.current.instance.layout()}),sn.observe(Bn.current)),sn}function In(){re.ZP.warning({content:decodeURIComponent(mt||b),key:"monaco-editor-tip"})}const Wn=()=>{let sn=kt.current.instance;if(Fe!=null&&sn&&nr){const mn=sn.getModel();mn&&Fe!==mn.getValue()&&(ut=!0,mn.setValue(Fe),sn.layout(),ut=!1)}};(0,te.useEffect)(()=>{const sn=_e.Z.subscribe("formatDocument",mn=>{var Zn;let tr=kt.current.instance;(Zn=tr==null?void 0:tr.getAction)==null||Zn.call(tr,"editor.action.formatDocument").run()});return window.updateMonacoValue=mn=>{Lt(mn)},sn},[]),(0,te.useEffect)(()=>{var sn;let mn=kt.current.instance;Cn.current&&clearTimeout(Cn.current),Cn.current=setTimeout(()=>{Wn()},500),Fe&&(Fe!=null&&Fe.length)&&((sn=mn==null?void 0:mn.updateOptions)==null||sn.call(mn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Fe.split(/\r\n|\r|\n/g).length))+3,5)}))},[Fe,nr,kt.current]),(0,te.useEffect)(()=>{if(xn&&kt.current&&kt.current.instance){let mn=kt.current.instance;mn.changeViewZones(function(Zn){var tr=document.createElement("div");tr.style.padding="10px 20px",tr.style.width="calc(100% - 20px)",tr.className="my-error-line-wrp",tr.innerHTML=an,Zn.addZone({afterLineNumber:xn||11,heightInLines:3,domNode:tr})});var sn={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}};mn.addOverlayWidget(sn),mn.revealPositionInCenter({lineNumber:20,column:1})}},[xn,kt.current,nr]);const Kn=(sn="",mn)=>{if(!sn||sn.trim()==="")return!0;const tr=kt.current.instance.getModel().getLineTokens(mn);let Vt=!1;for(let Gt=0;Gt<2;Gt++)tr.getStandardTokenType(Gt)===1&&(Vt=!0);return Vt};(0,te.useEffect)(()=>{var sn;const mn=(sn=kt.current)==null?void 0:sn.instance;if(mn&&nr&<){const Zn=mn.onDidBlurEditorWidget(()=>{Cr.current=!1}),tr=mn.onDidFocusEditorText(()=>{Cr.current=!0});return()=>{Zn.dispose(),tr.dispose()}}},[kt.current,nr,lt]),(0,te.useEffect)(()=>{var sn;if((sn=kt.current)!=null&&sn.instance&&nr&&Jt){let mn=kt.current.instance,Zn=mn.getModel();if(!Zn)return;(()=>{var It;let Dt=[],Bt=[];const Zt=Zn.getAllDecorations();for(let Tn of Zt)Tn.options.className==="highlighted-line"&&(Dt.push((It=Tn==null?void 0:Tn.range)==null?void 0:It.startLineNumber),Bt.push(Tn==null?void 0:Tn.id));if(An===Dt[0])return;Zn.deltaDecorations(Bt,[]);const tn=Zn.getLineCount();An&&An<=tn&&(mn.deltaDecorations([],[{range:new pt.Range(An,1,An,Zn.getLineMaxColumn(An)),options:{isWholeLine:!0,className:"highlighted-line"}}]),mn.revealLineInCenter(An))})();const Vt=(It=!1)=>{var Dt;let Bt=[],Zt=[];const tn=Zn.getAllDecorations();for(let Tn of tn)Tn.options.linesDecorationsClassName==="breakpoints-select"&&(Bt.push((Dt=Tn==null?void 0:Tn.range)==null?void 0:Dt.startLineNumber),Zt.push(Tn==null?void 0:Tn.id));if(It)return{lines:Bt,ids:Zt};nn(Bt)},Gt=It=>Re(void 0,null,function*(){let Dt={range:new pt.Range(It,1,It,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Zn.deltaDecorations([],[Dt]),Vt()}),Rt=It=>Re(void 0,null,function*(){let Dt=[];const Bt=mn.getLineDecorations(It);for(let Zt of Bt)Zt.options.linesDecorationsClassName==="breakpoints-select"&&Dt.push(Zt.id);yield Zn.deltaDecorations(Dt,[]),Vt()}),jt=It=>{let Dt=mn.getLineDecorations(It);for(let Bt of Dt)if(Bt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,ge.isEqual)(on,Vt(!0).lines)){Zn.deltaDecorations(Vt(!0).ids,[]);const It=on.map(Dt=>({range:new pt.Range(Dt,1,Dt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Zn.deltaDecorations([],It)}const Mt=mn.onDidChangeModelContent(It=>{let Dt=mn.getPosition();if(Dt){let Bt=Dt.lineNumber;clearTimeout(lr.current),lr.current=setTimeout(()=>{Kn(Zn.getLineContent(Bt),Bt)?Rt(Bt):jt(Bt)?(Rt(Bt),Gt(Bt)):Vt()},100)}}),Kt=mn.onMouseDown(It=>{var Dt,Bt,Zt;if(It.target.detail&&((Zt=(Bt=(Dt=It.target)==null?void 0:Dt.element)==null?void 0:Bt.className)!=null&&Zt.includes("line-numbers"))){let tn=It.target.position.lineNumber;if(Kn(Zn.getLineContent(tn),tn))return;jt(tn)?Rt(tn):Gt(tn)}}),yt=It=>{let Dt={range:new pt.Range(It,1,It,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Mn.current=mn.deltaDecorations(Mn.current,[Dt])},qt=()=>{Mn.current=mn.deltaDecorations(Mn.current,[])},vn=mn.onMouseMove(It=>{var Dt,Bt,Zt;if(qt(),It.target.detail&&((Zt=(Bt=(Dt=It.target)==null?void 0:Dt.element)==null?void 0:Bt.className)!=null&&Zt.includes("line-numbers"))){let tn=It.target.position.lineNumber;if(Kn(Zn.getLineContent(tn),tn))return;yt(tn)}}),Tt=mn.onMouseLeave(()=>{qt()});return()=>{Mt.dispose(),Kt.dispose(),vn.dispose(),Tt.dispose()}}},[kt.current,nr,on,An,Jt,Le]),(0,te.useEffect)(()=>{var sn;(sn=kt.current)!=null&&sn.instance&&Jt&&kt.current.instance.setPosition({lineNumber:0,column:0})},[An]);function Ln(){let sn=kt.current.instance;if(sn){const mn=sn.getSelection(),Zn=kt.current.pastePos||{},tr=new pt.Range(Zn.startLineNumber||mn.endLineNumber,Zn.startColumn||mn.endColumn,Zn.endLineNumber||mn.endLineNumber,Zn.endColumn||mn.endColumn);setTimeout(()=>{sn.executeEdits("",[{range:tr,text:""}])},300)}}function $n(sn){(window.navigator.platform.match("Mac")?sn.metaKey:sn.ctrlKey)&&sn.keyCode==83&&(sn.preventDefault(),ot())}const ar=()=>{if(ct&&kt.current.instance){const sn=kt.current.instance.getContentHeight();Qt(sn<Xe?Xe:sn)}else Qt(Xe)};function dn(sn){var mn=document.createEvent("MouseEvents");mn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),sn.dispatchEvent(mn)}const Ie=sn=>{if(!Cr.current)return;const{keyCode:mn,ctrlKey:Zn,metaKey:tr,target:Vt,type:Gt}=sn;return(Gt==="paste"||(mn===67||mn===86)&&(tr||Zn))&&Vt.nodeName==="TEXTAREA"&&(In(),sn.preventDefault()),!1};function je(sn,mn){var Zn=window.URL||window.webkitURL||window,tr=new Blob([mn]),Vt=document.createElementNS("http://www.w3.org/1999/xhtml","a");Vt.href=Zn.createObjectURL(tr),Vt.download=sn,dn(Vt)}(0,te.useEffect)(()=>{ar()},[ar]),(0,te.useEffect)(()=>{Bn.current&&!nr&&Promise.all([Ce.e(8909),Ce.e(5977)]).then(Ce.bind(Ce,71448)).then(sn=>{try{pt=sn,kt.current.instance=pt.editor.create(Bn.current,{value:Fe,language:rt(Le),theme:We,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:rn||!1}},He);const mn=kt.current.instance;let Vt=[...x.BH._menuItems].find(Mt=>Mt[0]._debugName=="EditorContext")[1],Gt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Rt=(Mt,Kt)=>{var yt,qt;let vn=Mt._first;do Kt.includes((qt=(yt=vn.element)==null?void 0:yt.command)==null?void 0:qt.id)&&Mt._remove(vn);while(vn=vn.next)};if(ft(mn,pt),setTimeout(()=>{ar(),kt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{je(yn||"educoder.txt",mn.getValue())}})},500),kt.current.subscription=mn.onDidChangeModelContent(Mt=>{Qn.current?clearTimeout(mr.current):(ar(),Lt(mn.getValue(),Mt)),mr.current=setTimeout(()=>{Qn.current=!1},500)}),window.Monaco||E(pt,rt(Le)),lt&&(Rt(Vt,Gt),Bn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Ie),window.removeEventListener("paste",Ie),window.addEventListener("keydown",Ie),window.addEventListener("paste",Ie)),window.Monaco=pt,tt&&mn.onDidBlurEditorWidget(()=>{tt(mn.getValue())}),St&&mn.onDidFocusEditorText(()=>{lt&&At(),St(mn.getValue())}),lt){At();try{mn.onDidPaste(Mt=>{const Kt=mn.getSelection(),yt=kt.current.pastePos||{},qt=new pt.Range(yt.startLineNumber||Kt.endLineNumber,yt.startColumn||Kt.endColumn,yt.endLineNumber||Kt.endLineNumber,yt.endColumn||Kt.endColumn);mn.executeEdits("",[{range:Mt.range,text:""}])})}catch(Mt){}}let jt=Nn();return Ut&&typeof Ut=="string"&&new a(Ut,mn,pt),ur(!0),()=>{const Mt=kt.current.instance;Mt.dispose();const Kt=Mt.getModel();Kt&&Kt.dispose(),kt.current.subscription&&kt.current.subscription.dispose(),jt.unobserve(Bn.current)}}catch(mn){}})},[]),(0,te.useEffect)(()=>{if(kt.current.instance&&nr)return document.addEventListener("keydown",$n,!1),()=>{document.removeEventListener("keydown",$n)}},[ot,nr]),(0,te.useEffect)(()=>{let sn=kt.current.instance;if(sn&&nr){let mn=rt(Le);pt.editor.setModelLanguage(sn.getModel(),mn)}},[Le,nr]),(0,te.useEffect)(()=>{kt.current.instance&&nr&&pt.editor.setTheme(We)},[We,nr]),(0,te.useEffect)(()=>{let sn=kt.current.instance;ln.current=et,sn&&nr&&(sn.updateOptions(ze({},et)),setTimeout(()=>{sn.getModel().updateOptions(ze({},et))},200))},[JSON.stringify(et),nr]),(0,te.useEffect)(()=>{let sn=kt.current.instance;sn&&nr&&sn.layout()},[zt,Xe,nr]);const[Je,ht]=(0,te.useState)($e(zt)),[Et,Qt]=(0,te.useState)($e(Xe)),fn=Ke(ze({},Ze),{width:Je,height:Et,position:"relative"});return te.createElement("div",{className:"my-monaco-editor",ref:Bn,style:fn,onFocus:()=>{lt&&At()}},at&&te.createElement(ye.CopyToClipboard,{text:Fe,onCopy:()=>re.ZP.success("\u590D\u5236\u6210\u529F")},te.createElement(ce.Z,{title:"\u590D\u5236\u4EE3\u7801"},te.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},te.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Ft({width:Ct="100%",height:Yt="100%",original:zt,modified:Xe,language:Fe,options:Le={}}){const Ze=(0,te.useRef)(),[et,He]=(0,te.useState)(null);function We(ct){let lt;return Ze.current&&(lt=new Ye.Z(mt=>{for(let Lt of mt)(Lt.target.offsetHeight>0||Lt.target.offsetWidth>0)&&ct.layout()}),lt.observe(Ze.current)),lt}(0,te.useEffect)(()=>(Ze.current&&Promise.all([Ce.e(8909),Ce.e(9404)]).then(Ce.bind(Ce,2550)).then(ct=>{pt=ct;const lt=pt.editor.createDiffEditor(Ze.current,Ke(ze({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},Le),{wordWrap:!0}));He(lt);let mt=We(lt);return()=>{lt.dispose();const Lt=lt.getModel();Lt&&Lt.dispose(),mt.unobserve(Ze.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,te.useEffect)(()=>{et&&et.setModel({original:pt.editor.createModel(zt,Fe),modified:pt.editor.createModel(Xe,Fe)})},[zt,Xe,Fe,et]);const tt=$e(Ct),at=$e(Yt),ot={width:tt,height:at};return te.createElement("div",{className:"my-diff-editor",ref:Ze,style:ot})}},54077:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return ae}});var te={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"},Ye=Ce(29787),Me=Ce(25399),pe=Ce(89787),Oe=Ce(92310),ve=Ce.n(Oe),ue=Ce(76406),fe=Ce(90736),he=Ce(59301),ae=({className:ie,dataSource:me=[],col:E=4,right:b,bottom:z=23,precision:ne=0,wrapWidth:oe=1200,trackEventItems:se,loading:de,onRemove:a=()=>{},isCurrent:x=!0,showProgress:re=!1,showAlias:ce=!1,category:ge="notDisplay",hiddenClick:_e=()=>{}})=>{const ye=Math.floor((oe-(E-1)*b)/E),be=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png",ptclass:"sprite-70",swclass:"sprite-68"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png",ptclass:"sprite-60",swclass:"sprite-65"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png",ptclass:"sprite-58",swclass:"sprite-63"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png",ptclass:"sprite-62",swclass:"sprite-67"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png",ptclass:"sprite-61",swclass:"sprite-66"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png",ptclass:"sprite-59",swclass:"sprite-64"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png",ptclass:"sprite-71",swclass:"sprite-69"}];return he.createElement(Ye.Z,{spinning:de},he.createElement("div",{className:ve()(te.list,ie)},!!(me!=null&&me.length)&&(me==null?void 0:me.map((Se,Be)=>{var Ae,we,Ue,Pe,ze,Ke,Ne;const{name:Re,id:$e,identifier:nt,featured:ut,school_name:Qe,image_url:rt,excellent:pt,is_plan:At}=Se;return he.createElement("div",{key:$e,className:x&&re?te.wrapisCurrent:te.wrap,style:{width:ye,marginRight:(1+Be)%E===0?0:b+ne,marginBottom:z}},he.createElement("a",{className:te.li,onClick:gt=>{gt.preventDefault(),gt.stopPropagation(),se&&(0,ue.L9)([se]),(0,ue.xg)(`/paths/${nt}`)}},he.createElement("div",{className:te.img},he.createElement("img",{className:te.cover,src:`${rt}`}),(Ae=Se==null?void 0:Se.subject_tags)==null?void 0:Ae.map((gt,Ft)=>{var Ct,Yt;if(Ft===0){const Xe=(Ct=be.find(Fe=>Fe.name==gt))==null?void 0:Ct.swclass;return he.createElement("span",{className:`sprite ${Xe} ${te.sign}`,style:{left:"-4px"}})}const zt=(Yt=be.find(Xe=>Xe.name==gt))==null?void 0:Yt.ptclass;return he.createElement("span",{className:`sprite ${zt} ${te.sign}`,style:{left:`${48+52*(Ft-1)+2*Ft}px`}})}),he.createElement("div",{className:te.tagsDom},he.createElement("div",{className:"flex flex-wrap item-center",style:{gap:"0 6px"}},(Se==null?void 0:Se.excellent)&&he.createElement("div",{className:te.bq},"\u5F00\u653E\u8BFE\u7A0B"),((we=Se==null?void 0:Se.custom_tags)==null?void 0:we.length)>0&&(Se==null?void 0:Se.custom_tags.map((gt,Ft)=>{var Ct;return he.createElement(Me.Z,{title:gt==null?void 0:gt.tag_name,key:Ft},he.createElement("div",{className:"font12 rounded-2px c-white flex item-center",style:{height:22,padding:"0 6px",maxWidth:((Ct=Se==null?void 0:Se.custom_tags)==null?void 0:Ct.length)>2?"60px":"71px",background:"rgba(48, 97, 208, .6)",border:"1px solid #8FAFF8"}},he.createElement("span",{className:"multi-llipsis1e"},gt==null?void 0:gt.tag_name)))})))),ge=="hide"&&(Se==null?void 0:Se.studying)&&x&&he.createElement("div",{className:`${te.movebq} user-path-items`,onClick:gt=>{gt.stopPropagation(),a(Se)}},he.createElement("i",{className:"iconfont icon-yichu1 font12"}),he.createElement("span",null,"\u79FB\u9664")),!["notDisplay","collect","payed"].includes(ge)&&x&&he.createElement("div",{className:`${te.hiddenbq} user-path-items`,onClick:gt=>{gt.stopPropagation(),_e(Se)}},he.createElement("i",{className:`iconfont ${ge=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),he.createElement("span",null,ge=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),he.createElement("div",{className:te.name},he.createElement(Me.Z,{title:ce&&(Se!=null&&Se.excellent_alias_name)?he.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Re}`,he.createElement("br",null),he.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Se==null?void 0:Se.excellent_alias_name}`)):Re},he.createElement("span",{className:te.e},ce&&(Se==null?void 0:Se.excellent_alias_name)||Re))),x&&re&&((Ue=Se==null?void 0:Se.progress)==null?void 0:Ue.all_score)!=0&&he.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},he.createElement(pe.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Pe=Se==null?void 0:Se.progress)==null?void 0:Pe.my_score)/((ze=Se==null?void 0:Se.progress)==null?void 0:ze.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Ke=Se==null?void 0:Se.progress)==null?void 0:Ke.my_score,"/",(Ne=Se==null?void 0:Se.progress)==null?void 0:Ne.all_score),(!x||!re)&&he.createElement(Me.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Qe}`},he.createElement("div",{className:te.unit},he.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Qe)),(!x||!re)&&he.createElement("div",{className:te.tags},he.createElement("div",null,he.createElement(Me.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},he.createElement("span",null,he.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),he.createElement("span",null,Se.stages_count))),he.createElement(Me.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},he.createElement("span",null,he.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),he.createElement("span",null,Se.members_count)))))))})),!me.length&&he.createElement(fe.Z,null)))}},70467:function(Yn,en,Ce){"use strict";Ce.d(en,{jL:function(){return pe},w9:function(){return Re},QD:function(){return on},cQ:function(){return Be.Z},op:function(){return lt},O5:function(){return Nn},_b:function(){return Ut},t7:function(){return ne},Gi:function(){return pt},YG:function(){return Qe},qp:function(){return le},vr:function(){return an},qE:function(){return ft},Je:function(){return de},wb:function(){return Se},cq:function(){return zt},tp:function(){return me}});var te=Ce(59301),Ye={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"},pe=({dataSource:In=[],img:Wn,imgWidth:Kn=346,title:Ln,sunTitle:$n,bannerExtraContent:ar})=>te.createElement("div",{className:Ye.banner},te.createElement("div",{className:Ye.content},te.createElement("aside",null,te.createElement("p",null,te.createElement("b",null,Ln),te.createElement("span",null,$n)),In.length>0&&te.createElement("div",{className:Ye.btns},In.map((dn,Ie)=>te.createElement("div",{key:Ie,onClick:dn.click},dn.name,dn.sign?te.createElement("span",{className:"sprite sprite-33"}):null))),ar),Wn&&te.createElement("img",{style:{marginTop:33,marginRight:38},src:Wn,width:Kn}))),Oe={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"},ve=Ce(92310),ue=Ce.n(ve),fe=Ce(78267),le=({dataSource:In=[],value:Wn,onChange:Kn,onTitleChange:Ln,className:$n,title:ar,titleWidth:dn=41,style:Ie={},fontColor:je="#6A7283",showCount:Je})=>{const[ht,Et]=(0,te.useState)(1),[Qt,fn]=(0,te.useState)(!1),sn=(0,te.useRef)(null),mn=(0,te.useRef)(null);return(0,te.useEffect)(()=>{var Zn;In.length!==0&&(((Zn=sn==null?void 0:sn.current)==null?void 0:Zn.clientHeight)>97?Et(1):Et(0)),In.length===0&&Et(0),fn(!1)},[In]),te.createElement("div",{className:ue()(Oe.row,$n,"fadeIn","animated"),style:Ie},te.createElement("div",{onClick:(0,fe.throttle)(()=>Ln==null?void 0:Ln(),2e3),style:{width:dn,marginTop:Qt?12:4},className:`${Oe.title} ${Ln?"current":""}`},ar),te.createElement("div",{className:Qt?`${Oe.tagsWrap} ${Oe.tagsBorderWrap}`:Oe.tagsWrap},te.createElement("div",{className:Oe.bar,ref:mn,style:ht>0?{height:ht===1?97:"auto",overflow:ht===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},te.createElement("div",{className:Oe.tag,ref:sn},In==null?void 0:In.map(Zn=>te.createElement("span",{onClick:()=>Kn(Zn.id),key:Zn.id,style:{color:je},className:Wn===Zn.id?Oe.active:""},te.createElement("span",{title:Zn.name,className:Oe.name},Zn.name),!!Je&&te.createElement("span",{className:Oe.num},Zn.count))))),!!ht&&te.createElement(te.Fragment,null,ht===1?te.createElement("div",{onClick:()=>{var Zn;Et(2),((Zn=sn==null?void 0:sn.current)==null?void 0:Zn.clientHeight)>245?fn(!0):fn(!1)},className:Oe.action},"\u5C55\u5F00",te.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):te.createElement("div",{onClick:()=>{mn.current.scrollTop=0,Et(1),fn(!1)},className:Oe.action},"\u6536\u8D77",te.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},ae={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"},me=({dataSource:In=[],value:Wn,onChange:Kn,className:Ln,style:$n={}})=>te.createElement("div",{style:$n,className:ue()(ae.tabs,Ln)},In.map(ar=>te.createElement("span",{onClick:()=>Kn(ar.id),className:Wn===ar.id?ae.active:"",key:ar.id},ar.name))),E={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"},b=Ce(37568),ne=({dataSource:In=[],value:Wn="",onChange:Kn,onInputChange:Ln=()=>{},className:$n,style:ar={},placeholder:dn,allowClear:Ie=!1})=>{var je;const[Je,ht]=(0,te.useState)(""),[Et,Qt]=(0,te.useState)("");(0,te.useEffect)(()=>{var mn;let Zn=Wn;(mn=JSON.stringify(Wn))!=null&&mn.includes("{")&&(ht(Wn.id),Zn=Wn.value||"");try{Qt(decodeURIComponent(Zn||""))}catch(tr){Qt(decodeURIComponent(Zn||""))}},[Wn]);const fn=()=>{Kn(encodeURIComponent(Et),Je||null)},sn=mn=>{mn!==Je&&(ht(mn),Kn(encodeURIComponent(Et),mn))};return te.createElement("div",{className:ue()(E.input,$n),style:ar},!!In.length&&te.createElement("div",{className:E.dropdown},te.createElement("div",{className:E.text},(je=In.find(mn=>mn.id===Je))==null?void 0:je.name,te.createElement("i",{className:"iconfont icon-zhankai4"}),te.createElement("b",{className:E.b1}),te.createElement("b",{className:E.b2})),te.createElement("div",{className:E.menu},In.map((mn,Zn)=>te.createElement("div",{key:Zn,onClick:()=>sn(mn.id)},mn.name)))),te.createElement(b.default,{onPressEnter:fn,value:Et,onChange:mn=>{Qt(mn.target.value),Ln(encodeURIComponent(mn.target.value),Je||null)},placeholder:dn,variant:"borderless",allowClear:Ie,onClear:()=>Kn("",Je||null)}),te.createElement("i",{onClick:fn,className:"iconfont icon-sousuo9 font14 current"}))},oe={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"},de=({value:In,onChange:Wn,className:Kn,total:Ln,pageSize:$n,style:ar={}})=>{const dn=In<2,Ie=In>=Math.ceil(Ln/$n);return Ln<=$n?te.createElement(te.Fragment,null):te.createElement("div",{className:ue()(oe.quickPager,Kn),style:ar},te.createElement("div",{onClick:()=>{dn||Wn(In-1,"prev")},className:dn?oe.disabled:""},"\u4E0A\u4E00\u9875"),te.createElement("div",{onClick:()=>{Ie||Wn(In+1,"next")},className:Ie?oe.disabled:""},"\u4E0B\u4E00\u9875"))},a={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"},x=Ce(29787),re=Ce(25399),ce=Ce(63139),ge=Ce(14185),_e=Ce(76406),ye=Ce(90736),Se=({className:In,dataSource:Wn=[],col:Kn=4,right:Ln,bottom:$n=23,precision:ar=0,wrapWidth:dn=1200,trackEventItems:Ie,loading:je})=>{const Je=Math.floor((dn-(Kn-1)*Ln)/Kn);return te.createElement(x.Z,{spinning:je},te.createElement("div",{className:ue()(a.list,In)},!!Wn.length&&Wn.map((ht,Et)=>{const{name:Qt,id:fn,identifier:sn,power:mn,cover_image_id:Zn,pic:tr}=ht;return te.createElement("div",{className:a.wrap,key:fn,style:{width:Je,marginRight:(1+Et)%Kn===0?0:Ln+ar,marginBottom:$n}},te.createElement("a",{target:"_blank",href:`/shixuns/${sn}/challenges`,className:a.li,onClick:Vt=>{Vt.preventDefault(),Ie&&(0,_e.L9)([Ie]),mn&&(0,_e.xg)(`/shixuns/${sn}/challenges`)}},te.createElement("div",{className:a.img},te.createElement("img",{className:a.cover,src:`${tr}`}),ht.is_jupyter&&te.createElement("span",{className:`sprite sprite-43 ${a.sign}`}),ht.is_jupyter_lab&&te.createElement("span",{className:`sprite sprite-42 ${a.sign}`}),ht.is_unity_3d&&te.createElement("span",{className:`sprite sprite-44 ${a.sign}`})),te.createElement("div",{className:a.name},te.createElement(re.Z,{title:Qt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},te.createElement("span",{className:a.e},Qt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),te.createElement("div",{className:a.tags},te.createElement(re.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},te.createElement("span",null,te.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),te.createElement("span",null,ht.challenges_count))),!!ht.myshixuns_count&&te.createElement(re.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},te.createElement("span",null,te.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),te.createElement("span",null,ht.myshixuns_count))),te.createElement(re.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},te.createElement("span",null,te.createElement("span",null,ht.level))),te.createElement("div",{className:a.rate},te.createElement(ce.Z,{allowHalf:!0,disabled:!0,defaultValue:ht.score_info}),te.createElement("span",null,"\xA0",ht.score_info?`${ht.score_info}\u5206`:"5\u5206")))),!mn&&te.createElement("div",{className:a.lockWrap},te.createElement("img",{src:`${ge.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),te.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Wn.length&&te.createElement(ye.Z,null)))},Be=Ce(54077),Ae={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"},we=Ce(62957),Ue=Ce(96599),Pe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXr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iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",ze=Ce(59301),Ke=(In,Wn,Kn)=>new Promise((Ln,$n)=>{var ar=je=>{try{Ie(Kn.next(je))}catch(Je){$n(Je)}},dn=je=>{try{Ie(Kn.throw(je))}catch(Je){$n(Je)}},Ie=je=>je.done?Ln(je.value):Promise.resolve(je.value).then(ar,dn);Ie((Kn=Kn.apply(In,Wn)).next())}),Re=({className:In,dataSource:Wn=[],col:Kn=4,right:Ln,bottom:$n=23,precision:ar=0,wrapWidth:dn=1200,trackEventItems:Ie,loading:je,category:Je,hiddenClick:ht,handleVery:Et=()=>!0,isCurrent:Qt})=>{const[fn,sn]=we.default.useModal(),mn=Math.floor((dn-(Kn-1)*Ln)/Kn),Zn=tr=>Ke(void 0,null,function*(){fn.confirm({title:"\u7F6E\u9876",width:500,content:ze.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",ze.createElement("span",{className:"c-blue"},"\u201C",tr.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return ze.createElement(x.Z,{spinning:je},sn,ze.createElement("div",{className:ue()(Ae.list,In)},!!Wn.length&&Wn.map((tr,Vt)=>{const{subject_identifier:Gt,id:Rt,identifier:jt,power:Mt}=tr,Kt=tr.is_public!=0&&tr.is_public;return ze.createElement("div",{className:Ae.wrap,key:Rt,style:{width:mn,marginRight:(1+Vt)%Kn===0?0:Ln+ar,marginBottom:$n}},tr.homepage_show&&ze.createElement("div",{className:Ae.btnsTop},ze.createElement(Ue.default,{color:"red"},"\u7F6E\u9876")),ze.createElement("a",{className:Ae.li,onClick:yt=>{yt.preventDefault(),Et(tr==null?void 0:tr.first_category_url)&&(Ie&&(0,_e.L9)([Ie]),(0,_e.xg)(tr.first_category_url))}},ze.createElement("div",{className:Ae.top},ze.createElement(re.Z,{title:tr.name},ze.createElement("div",{className:Ae.name},tr.name)),ze.createElement("img",{className:Ae.img,src:ge.Z.IMG_SERVER+"/images/"+tr.avatar_url}),ze.createElement("div",{className:Ae.text,title:tr.creator},tr.creator),Gt&&ze.createElement("div",{className:Ae.btns},ze.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ze.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Kt&&ze.createElement("div",{className:Ae.sign},"\u516C\u5F00"),Qt&&ze.createElement("div",{className:Ae.hidden,onClick:yt=>{yt.stopPropagation(),ht(tr)}},ze.createElement("i",{className:`iconfont ${Je=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Je=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),ze.createElement("div",{className:Ae.bottom},tr.visits>0&&ze.createElement(re.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},ze.createElement("span",null,ze.createElement("i",{className:"iconfont icon-liulanyan"}),ze.createElement("span",null,tr.visits))),tr.course_members_count>0&&ze.createElement(re.Z,{title:"\u6210\u5458",placement:"bottom"},ze.createElement("span",null,ze.createElement("i",{className:"iconfont icon-chengyuan"}),tr.course_members_count)),tr.tasks_count>0&&ze.createElement(re.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},ze.createElement("span",null,ze.createElement("i",{className:"iconfont icon-zuoye"}),tr.tasks_count)),tr.is_end?ze.createElement("div",{style:{color:"#6B758B"}}):ze.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!tr.is_accessible&&ze.createElement("div",{className:Ae.lockWrap},ze.createElement("img",{src:`${ge.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ze.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Wn.length&&ze.createElement(ye.Z,null)))},$e={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"},nt=Ce(44283),Qe=({dataSource:In=[],value:Wn,onChange:Kn,className:Ln,style:$n={},tabBarExtraContent:ar})=>te.createElement("div",{className:ue()($e.tabs,Ln),style:$n},te.createElement("div",{className:$e.tabsWrap},In.map((dn,Ie)=>!(dn!=null&&dn.hide)&&te.createElement("aside",{className:$e.tab,onClick:()=>{Kn(dn.id),dn.link&&nt.history.push(dn.link)},key:Ie},te.createElement("div",{className:Wn===dn.id?$e.active:""},dn.name),(dn==null?void 0:dn.resetCount)==null&&(dn==null?void 0:dn.total)!==void 0&&te.createElement("span",null,"\uFF08",dn==null?void 0:dn.total,"\uFF09"),(dn==null?void 0:dn.resetCount)!==void 0&&(dn==null?void 0:dn.total)!==void 0&&te.createElement(re.Z,{title:(dn==null?void 0:dn.tip)!=null?dn==null?void 0:dn.tip:""},te.createElement("span",{style:{color:"#9096A3"}},"\uFF08",te.createElement("span",{style:{color:"#000"}},dn==null?void 0:dn.resetCount),"/",te.createElement("span",null,dn==null?void 0:dn.total),"\uFF09"))))),te.createElement("div",{className:$e.tabBar},ar)),pt=({className:In,style:Wn={},children:Kn})=>te.createElement("div",{className:ue()(In),style:Wn},Kn),At={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"},gt=Ce(75727),Ft=Ce(93041);const Ct=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var zt=({sortValue:In,dropValue:Wn,className:Kn,onSort:Ln,onDrop:$n,dataSource:ar=Ct})=>{var dn;return te.createElement("div",{className:ue()(At.orderWrap,Kn)},te.createElement(gt.Z,{dropdownRender:()=>te.createElement(Ft.default,null,ar.map((Ie,je)=>te.createElement(Ft.default.Item,{key:je,onClick:()=>$n(Ie.id)},Ie.name)))},te.createElement("span",{className:At.orderTextWrap},(dn=ar.find(Ie=>Wn===Ie.id))==null?void 0:dn.name)),te.createElement("span",{className:At.orderIconWrap},te.createElement("span",{className:At.orderAsc},te.createElement("i",{className:In==="asc"?`iconfont icon-sanjiaoxing-up font12 ${At.cursorPointer} ${At.active}`:`iconfont icon-sanjiaoxing-up font12 ${At.cursorPointer}`,onClick:()=>Ln(In==="asc"?"desc":"asc")})),te.createElement("span",{className:At.orderDesc},te.createElement("i",{className:In==="desc"?`iconfont icon-sanjiaoxing-down font12 ${At.cursorPointer} ${At.active}`:`iconfont icon-sanjiaoxing-down font12 ${At.cursorPointer}`,onClick:()=>Ln(In==="asc"?"desc":"asc")}))))},Xe={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"},Fe=Ce(7939),Le=Object.defineProperty,Ze=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,We=(In,Wn,Kn)=>Wn in In?Le(In,Wn,{enumerable:!0,configurable:!0,writable:!0,value:Kn}):In[Wn]=Kn,tt=(In,Wn)=>{for(var Kn in Wn||(Wn={}))et.call(Wn,Kn)&&We(In,Kn,Wn[Kn]);if(Ze)for(var Kn of Ze(Wn))He.call(Wn,Kn)&&We(In,Kn,Wn[Kn]);return In},at=(In,Wn)=>{var Kn={};for(var Ln in In)et.call(In,Ln)&&Wn.indexOf(Ln)<0&&(Kn[Ln]=In[Ln]);if(In!=null&&Ze)for(var Ln of Ze(In))Wn.indexOf(Ln)<0&&He.call(In,Ln)&&(Kn[Ln]=In[Ln]);return Kn},ot=(In,Wn,Kn)=>new Promise((Ln,$n)=>{var ar=je=>{try{Ie(Kn.next(je))}catch(Je){$n(Je)}},dn=je=>{try{Ie(Kn.throw(je))}catch(Je){$n(Je)}},Ie=je=>je.done?Ln(je.value):Promise.resolve(je.value).then(ar,dn);Ie((Kn=Kn.apply(In,Wn)).next())}),lt=In=>{var Wn=In,{className:Kn,style:Ln,children:$n,loading:ar=!1,openLoading:dn,onClick:Ie=()=>{},size:je="middle",shape:Je="round"}=Wn,ht=at(Wn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Et,Qt]=(0,te.useState)(!1);return te.createElement(Fe.ZP,tt({onClick:(0,fe.throttle)(fn=>ot(void 0,null,function*(){dn&&Qt(!0);try{yield Ie(fn)}catch(sn){console.log("error",sn)}dn&&Qt(!1)}),2e3,{leading:!0,trailing:!1}),className:ue()(Xe.btn,Xe[`${je}-${Je}`],Kn),style:Ln,size:je,shape:Je,loading:Et||ar},ht),$n)},mt={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"},ft=({className:In,style:Wn,children:Kn=null,onClick:Ln,title:$n})=>te.createElement("div",{className:ue()(mt.head,In),style:Wn},te.createElement("span",{className:"primary-hover",onClick:Ln},te.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),te.createElement("b",{title:$n},$n),te.createElement("div",{className:mt.node},Kn)),St={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"},on=({confirmShow:In=!0,confirmTitle:Wn,confirmClick:Kn,cancelShow:Ln=!0,cancelTitle:$n,cancelClick:ar,className:dn,style:Ie,confirmLoading:je=!1})=>te.createElement("div",{className:ue()(St.btns,dn),style:Ie},In&&te.createElement(Fe.ZP,{loading:je,onClick:Kn,type:"primary",className:St.confirm},Wn),Ln&&te.createElement(Fe.ZP,{onClick:ar,className:St.cancel},$n)),yn={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"},an=({className:In,style:Wn={},LeftContent:Kn,children:Ln,RightContent:$n})=>te.createElement("div",{className:ue()(yn.fixedBottom,In),style:Wn},te.createElement("div",{className:yn.wrap},te.createElement("div",{className:yn.left},Kn),te.createElement("div",{className:yn.center},Ln),te.createElement("div",{className:yn.right},$n))),An={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"},Ut=({className:In,style:Wn={},dataSource:Kn=[]})=>te.createElement("div",{className:ue()(An.crumbs,In),style:Wn},Kn.map((Ln,$n)=>$n<Kn.length-1?te.createElement(te.Fragment,{key:$n},Ln.path||Ln.onClick?te.createElement("span",{className:An.hover,onClick:Ln!=null&&Ln.onClick?Ln.onClick:()=>nt.history.push(Ln.path)},Ln.name):te.createElement("span",null,Ln.name),te.createElement("span",null,"\xA0",">","\xA0")):te.createElement("span",{key:$n,style:{color:"#5F6368"}},Ln.name))),rn=Ce(11938),_n=Object.defineProperty,Bn=Object.defineProperties,kt=Object.getOwnPropertyDescriptors,ln=Object.getOwnPropertySymbols,Cn=Object.prototype.hasOwnProperty,Mn=Object.prototype.propertyIsEnumerable,Qn=(In,Wn,Kn)=>Wn in In?_n(In,Wn,{enumerable:!0,configurable:!0,writable:!0,value:Kn}):In[Wn]=Kn,mr=(In,Wn)=>{for(var Kn in Wn||(Wn={}))Cn.call(Wn,Kn)&&Qn(In,Kn,Wn[Kn]);if(ln)for(var Kn of ln(Wn))Mn.call(Wn,Kn)&&Qn(In,Kn,Wn[Kn]);return In},lr=(In,Wn)=>Bn(In,kt(Wn)),Cr=(In,Wn)=>{var Kn={};for(var Ln in In)Cn.call(In,Ln)&&Wn.indexOf(Ln)<0&&(Kn[Ln]=In[Ln]);if(In!=null&&ln)for(var Ln of ln(In))Wn.indexOf(Ln)<0&&Mn.call(In,Ln)&&(Kn[Ln]=In[Ln]);return Kn};const{Countdown:nr}=rn.default;var Nn=In=>{var Wn=In,{onChange:Kn}=Wn,Ln=Cr(Wn,["onChange"]);const[$n,ar]=(0,te.useState)(null);(0,te.useEffect)(()=>{typeof $n=="number"&&$n>=0&&Kn($n)},[$n]);const dn=Ie=>{const je=Math.floor(Ie/1e3);ar(je)};return te.createElement(nr,lr(mr({},Ln),{onChange:dn}))}},79006:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return Ye}});var te=Ce(59301);function Ye(Me,pe){const Oe=(0,te.useRef)();(0,te.useEffect)(()=>{Oe.current=Me}),(0,te.useEffect)(()=>{function ve(){Oe.current()}if(pe!==null){let ue=setInterval(ve,pe);return()=>clearInterval(ue)}},[pe])}},52148:function(Yn,en,Ce){"use strict";Ce.r(en),Ce.d(en,{NoData:function(){return Xe},default:function(){return He}});var te=Ce(59301),Ye=Ce(7939),Me=Ce(62957),pe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAIwCAYAAABawRXrAADVaUlEQVR42uydCXhcdbn/RRAEURGvC4LgAsJFUVQUQWRRQdkLBUoXREVRLgh6BUG40KJA7ZK0EAiZ2z+VpWy9rbGltHSBdCHJNG1o2iQ0bdIsTRqStplmn+2c5/d/v+ecX3JycmbmzMyZJZP3+zzvM13TmXOm8/vkXb7vhz7EYrFYrLjl2SqOmVMefCivXLlm7nviFL4iLBaLxWKxWEkqryz8k7nekAeRV6HewVeExWKxWCwWKymJw+aWB/8uAWtehTibrwmLxWKxWCxWEprlFScNZa82h/IAXHxVWCwWi8VisZLQnPLA1RKwKJM1la8Ii8VisVgsVhKaXiKOnbs59CcDsJ7Orwh+na8Ki8VisVgsVhKaV+7/0tzycL5WHvQGH35is/g0XxUWi8VisVisJJRXHrjGXB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NnyhLjg/L2+pk4wACIK3KIscQQWeI7S37vHofLkBEIBCKxBOxsefkqlxh+S7woSw+8oTlDvuBjSSoA4S/rzJHXyfDAyp+Il+RuvIHye5AzUkfhVQmBQCCSN+PFvV3fkT0dP5UHwMNyRw5fdj0V5UYAQq5CeJ0YJcv0v5ITfNfItSynIyOFQCAQCG1f1wlykvE0eSWQPvP1ivzpHNkukEpZqWnEqzITxd8L35ffG6fJ75UT5PcOMlMIBAKBCEvETpJLC39M3EP8TvZ7vSXLjpOliM3AlUEgDpktn5v8HJ0in7Nvyb4ofi7/Wt41ehkLFL7jEQgEAhFr8fqWbNi9RJZJbpTrJX4jp6Oeklvs39StmUA2DEQi6zRTiv6bcjpvpHwODpbPyZ/K5+glskcRk3oIBAKBSEj5OkaumOByysnEt2WPCl8u+z15N9o9shTJKyfGy3vTIAwg0J16b8vnCpfu7iVukTvj+Dl1hnyO8XPtRPncQz8UAoFAIBC6rBhPXl0p10/8QmbEHpXNxa/Iex3flqWeSbJBP1Nesj1DTnblIlsW86xSrvxazJBfm0z5tZosp+7elqU67nf6g5TtwfJr/iP5HMBeKAQCgUAgoiRhx8pmYy5PXkxcITMZ18tS0ADZnMxZjgdkqegxWbJ8VpYtX5Fj9e9IScuQEjAbYnaEKM3WCdIk+ZiNk4/hGPmYPiUf4+HyMb9XTqoOkF+T6+XX6Er5NTtbfg1xGTECgUAgEAkoY0dLITtelo64hHSqnAg7U0raOXJKjC/LvUius+gne3Zu8JG2/5VZlofk/ZHcJP20zK6NlsLxqhznHy95VzZXT5EZnGxZ8tKTZ1B2pvthqu7vf1f3cV+Xn8sYWVobJT/X38mM4FB5WfA98t82QK4d4H/z/8jH4DvyMblAPkbn/P9Bw0wIGoa8aNNyoLBmGk15o2AUjCwAAJpj3XJMmgW8AAAAAElFTkSuQmCC",Oe=Ce(49317);function ve(){return(0,Oe.U2)("teach_groups.json")}function ue(We){return(0,Oe.v_)("teach_groups.json",We)}function fe(We,tt){return(0,Oe.gz)(`teach_groups/${We}.json`,tt)}function he(We){return(0,Oe.v_)("teach_group_members.json",We)}function le(We){return(0,Oe.IV)(`teach_group_members/${We}.json`)}function ae(We,tt){return(0,Oe.gz)(`teach_groups/${We}/change_admin.json`,{member_id:tt})}function ie(We,tt){return(0,Oe.IV)(`teach_groups/${We}/del_member.json`,{member_id:tt})}function me(We){return(0,Oe.IV)(`teach_groups/${We}.json`)}function E(We){return(0,Oe.U2)(`teach_groups/${We}/show_permission.json`)}function b(We){return(0,Oe.gz)(`teach_groups/${We==null?void 0:We.id}/update_permission.json`,We)}var z=Ce(28284),ne=Ce(37568),oe=Ce(39967),se=({callback:We,visible:tt,onCancel:at,id:ot,name:ct})=>{function lt(Lt){We(Lt)}const[mt]=z.default.useForm();return(0,te.useEffect)(()=>{mt.setFieldsValue({name:ct})},[ct]),te.createElement(Me.default,{centered:!0,title:ot?"\u4FEE\u6539\u540D\u79F0":"\u65B0\u5EFA",open:tt,onCancel:at,onOk:()=>{mt.submit()},wrapClassName:oe.Z.CustomCss},te.createElement(z.default,{form:mt,initialValues:{name:ct},onFinish:lt},te.createElement(z.default.Item,{label:"\u6559\u7814\u56E2\u961F\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u540D\u79F0"}]},te.createElement(ne.default,{placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u540D\u79F0",maxLength:20}))))},de=Ce(62673),a=Ce(75727),x=Ce(93041),re=Ce(70858),ce=Ce(6767),ge=Ce(47889),_e=Object.defineProperty,ye=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Be=(We,tt,at)=>tt in We?_e(We,tt,{enumerable:!0,configurable:!0,writable:!0,value:at}):We[tt]=at,Ae=(We,tt)=>{for(var at in tt||(tt={}))be.call(tt,at)&&Be(We,at,tt[at]);if(ye)for(var at of ye(tt))Se.call(tt,at)&&Be(We,at,tt[at]);return We};const we=We=>React.createElement("svg",Ae({className:"cjz_svg__icon",viewBox:"0 0 3194 1024",xmlns:"http://www.w3.org/2000/svg",width:623.828,height:200},We),React.createElement("path",{d:"M512 0h2170.88c282.624 0 512 229.376 512 512s-229.376 512-512 512H512C229.376 1024 0 794.624 0 512S229.376 0 512 0z",fill:"#EBEEFD"}),React.createElement("path",{d:"M1638.4 741.376c28.672 0 40.96-16.384 40.96-45.056V294.912h-36.864v393.216c0 16.384-8.192 20.48-20.48 20.48-24.576 0-45.056 0-73.728-4.096l8.192 32.768h81.92zm-372.736-258.048c49.152-45.056 90.112-94.208 126.976-147.456 32.768 32.768 69.632 77.824 110.592 135.168l24.576-24.576c-40.96-49.152-81.92-98.304-122.88-143.36h-24.576c-40.96 57.344-81.92 110.592-131.072 155.648l16.384 24.576zm323.584 159.744V339.968h-32.768v307.2h32.768zm-131.072 94.208c24.576 0 36.864-4.096 45.056-12.288s16.384-36.864 20.48-77.824l-32.768-12.288c0 28.672-4.096 45.056-8.192 53.248s-16.384 12.288-32.768 12.288h-98.304c-12.288 0-20.48-4.096-20.48-16.384v-204.8h106.496v94.208c0 12.288-8.192 20.48-20.48 20.48-16.384 0-32.768 0-49.152-4.096l8.192 32.768h53.248c28.672 0 40.96-16.384 40.96-40.96V450.56h-176.128v245.76c0 24.576 12.288 36.864 40.96 36.864h122.88zm585.728-53.248V634.88h131.072v-28.672h-131.072v-40.96h114.688v-28.672h-114.688v-40.96H2150.4v-69.632h32.768v-28.672H2150.4V327.68h-106.496v-32.768h-32.768v32.768h-86.016v28.672h86.016v36.864h-110.592v28.672h110.592v40.96h-86.016v28.672h86.016v40.96h-98.304v28.672h98.304v40.96h-110.592v28.672h110.592v49.152h32.768zm-270.336 57.344c24.576-16.384 40.96-36.864 57.344-61.44 4.096 4.096 12.288 8.192 16.384 12.288 36.864 24.576 102.4 36.864 188.416 36.864h147.456l4.096-32.768c-57.344 0-110.592 4.096-167.936 4.096-65.536 0-118.784-12.288-151.552-28.672-8.192-4.096-16.384-12.288-24.576-20.48 24.576-45.056 36.864-98.304 36.864-163.84v-20.48h-77.824c24.576-32.768 49.152-73.728 73.728-118.784v-28.672H1761.28v32.768h81.92c-24.576 40.96-49.152 81.92-77.824 118.784v28.672h90.112c-4.096 45.056-12.288 86.016-28.672 122.88-12.288-20.48-24.576-49.152-32.768-86.016l-32.768 12.288c12.288 40.96 28.672 77.824 45.056 106.496-16.384 24.576-36.864 40.96-57.344 57.344l24.576 28.672zm339.968-344.064h-69.632v-36.864h69.632v36.864zm0 69.632h-69.632v-40.96h69.632v40.96zm253.952 278.528v-20.48h212.992v20.48h36.864V524.288h-184.32c28.672-12.288 53.248-24.576 77.824-40.96l20.48-12.288h151.552v-32.768h-106.496c32.768-24.576 65.536-57.344 94.208-90.112l-32.768-20.48c-36.864 40.96-73.728 77.824-122.88 110.592h-61.44v-61.44h114.688v-32.768h-114.688v-49.152h-36.864v53.248h-135.168v32.768h135.168v57.344h-180.224v32.768h225.28c-69.632 40.96-147.456 69.632-229.376 90.112l16.384 32.768c28.672-8.192 57.344-20.48 81.92-28.672v180.224h36.864zm212.992-139.264h-212.992v-49.152h212.992v49.152zm0 86.016h-212.992v-53.248h212.992v53.248z",fill:"#165DFF"}),React.createElement("path",{d:"M573.44 204.8h327.68c90.112 0 163.84 73.728 163.84 163.84v327.68c0 90.112-73.728 163.84-163.84 163.84H573.44c-90.112 0-163.84-73.728-163.84-163.84V368.64c0-90.112 73.728-163.84 163.84-163.84z",fill:"#C2D0FF"}),React.createElement("path",{d:"M868.352 581.632c4.096 24.576 12.288 49.152 16.384 69.632 0 8.192 4.096 16.384 4.096 24.576s4.096 16.384 4.096 24.576 4.096 12.288 4.096 16.384v8.192c0 8.192 0 12.288-4.096 12.288-4.096 4.096-8.192 4.096-12.288 4.096h-8.192c-4.096 0-4.096 0-8.192-4.096L737.28 667.648c-24.576 12.288-45.056 24.576-61.44 36.864L651.264 716.8c-8.192 4.096-16.384 8.192-20.48 12.288-8.192 4.096-16.384 8.192-20.48 12.288s-8.192 4.096-8.192 4.096c-4.096 0-8.192 4.096-8.192 0-4.096 0-8.192 0-8.192-4.096-4.096 0-4.096-4.096-4.096-8.192v-8.192s0-4.096 4.096-8.192c0-4.096 4.096-12.288 4.096-16.384 0-8.192 4.096-16.384 4.096-24.576s4.096-16.384 8.192-24.576c4.096-20.48 12.288-45.056 16.384-69.632-24.576-16.384-45.056-28.672-57.344-45.056-8.192-4.096-16.384-8.192-20.48-16.384s-12.288-8.192-16.384-12.288S512 499.712 512 495.616c-4.096-4.096-8.192-4.096-8.192-4.096-4.096-4.096-4.096-8.192-8.192-12.288s-4.096-8.192-4.096-12.288 4.096-8.192 4.096-12.288c4.096 0 8.192-4.096 12.288-4.096l151.552-12.288L716.8 307.2c0-4.096 4.096-8.192 8.192-12.288 0-8.192 8.192-8.192 12.288-8.192s4.096 0 8.192 4.096c4.096 0 4.096 4.096 4.096 4.096l4.096 4.096s0 4.096 4.096 4.096l53.248 131.072 155.648 16.384c8.192 0 12.288 4.096 12.288 4.096 4.096 4.096 4.096 8.192 4.096 12.288s0 8.192-4.096 12.288l-12.288 12.288-98.304 90.112z",fill:"#2E5BEC"}));var Ue="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDMxOTQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iNjIzLjgyOCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik01MTIgMGgyMTcwLjg4YzI4Mi42MjQgMCA1MTIgMjI5LjM3NiA1MTIgNTEycy0yMjkuMzc2IDUxMi01MTIgNTEySDUxMkMyMjkuMzc2IDEwMjQgMCA3OTQuNjI0IDAgNTEyUzIyOS4zNzYgMCA1MTIgMHoiIGZpbGw9IiNFQkVFRkQiLz48cGF0aCBkPSJNMTYzOC40IDc0MS4zNzZjMjguNjcyIDAgNDAuOTYtMTYuMzg0IDQwLjk2L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ZnPg==",Pe=Ce(70467),ze=(We,tt,at)=>new Promise((ot,ct)=>{var lt=ft=>{try{Lt(at.next(ft))}catch(St){ct(St)}},mt=ft=>{try{Lt(at.throw(ft))}catch(St){ct(St)}},Lt=ft=>ft.done?ot(ft.value):Promise.resolve(ft.value).then(lt,mt);Lt((at=at.apply(We,tt)).next())});const Ke=50;var Ne=({data:We,isAdminOrTeacher:tt,onDelGroup:at,onChangeGroupName:ot,onPlusMember:ct,onDelMember:lt,onExitGroup:mt,Transferteams:Lt})=>{var ft,St;const[nn,on]=(0,te.useState)(0),[yn,xn]=(0,te.useState)(0);let[an,An]=(0,te.useState)(),[Jt,Ut]=(0,te.useState)(),[rn,_n]=(0,te.useState)(!1),[Bn,kt]=(0,te.useState)(),[ln,Cn]=(0,te.useState)(),[Mn,Qn]=(0,te.useState)(!1),[mr,lr]=(0,te.useState)(!1),[Cr,nr]=(0,te.useState)("");function ur(dn){let Ie=parseInt(dn.key,10);nr(Ie),lr(!0)}function Nn(dn){let Ie=parseInt(dn.key,10);Me.default.confirm({title:"\u9000\u51FA\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:"\u9000\u51FA\u5C06\u5BF9\u60A8\u4E0E\u7EC4\u5185\u6210\u5458\u5171\u540C\u5F00\u5C55\u6559\u7814\u6D3B\u52A8\u9020\u6210\u4E0D\u4FBF\u3002\u60A8\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F",onOk:()=>{mt(Ie)}})}function In(dn){let Ie=parseInt(dn,10);Me.default.confirm({title:"\u9000\u51FA\u63D0\u793A",okText:"\u786E\u5B9A",icon:!1,className:oe.Z.CustomTipsModalCss,cancelText:"\u53D6\u6D88",content:"\u9000\u51FA\u5C06\u5BF9\u60A8\u4E0E\u7EC4\u5185\u6210\u5458\u5171\u540C\u5F00\u5C55\u6559\u7814\u6D3B\u52A8\u9020\u6210\u4E0D\u4FBF\u3002\u60A8\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F",onOk:()=>{mt(Ie)}})}function Wn(dn,Ie){Me.default.confirm({title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u7EC4\u5458\u5417?",icon:!1,className:oe.Z.CustomTipsModalCss,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>{lt(dn,Ie)}})}const Kn={display:"block",height:"30px",lineHeight:"30px"};function Ln(dn){Cn(dn),kt(dn==null?void 0:dn.id),Qn(!0)}const $n=[{title:"\u6210\u5458\u540D\u79F0",dataIndex:"name",width:150},{title:"\u4F7F\u7528\u5171\u4EAB\u8BD5\u9898",dataIndex:"item_bank",align:"center",width:150,render:(dn,Ie,je)=>te.createElement(de.default,{disabled:Ie==null?void 0:Ie.is_creator,defaultChecked:dn,onChange:Je=>{b({id:Bn,member_id:Ie.id,clazz:"item_bank",enable:Je.target.checked})}})},{title:"\u7F16\u8F91\u5171\u4EAB\u8BD5\u9898",dataIndex:"edit_item_bank",align:"center",width:150,render:(dn,Ie,je)=>te.createElement(de.default,{disabled:Ie==null?void 0:Ie.is_creator,defaultChecked:dn,onChange:Je=>{b({id:Bn,member_id:Ie.id,clazz:"edit_item_bank",enable:Je.target.checked})}})},{title:"\u4F7F\u7528\u5171\u4EAB\u8BD5\u5377",dataIndex:"exercise",align:"center",render:(dn,Ie,je)=>te.createElement(de.default,{disabled:Ie==null?void 0:Ie.is_creator,defaultChecked:dn,onChange:Je=>{b({id:Bn,member_id:Ie.id,clazz:"exercise",enable:Je.target.checked})}})}];function ar(dn){return ze(this,null,function*(){const Ie=yield E(dn==null?void 0:dn.id);kt(dn==null?void 0:dn.id),Ut(Ie),_n(!0)})}return te.createElement("ul",{className:"teaching-lists"},We.map((dn,Ie)=>te.createElement("li",{key:dn.id,style:{marginTop:Ie===0?30:16},onClick:()=>on(Ie)},te.createElement("div",{className:"item-group"},te.createElement("span",{style:{color:"#000000",fontSize:16,fontWeight:600}},dn.name,"\u7684\u6559\u7814\u56E2\u961F"),te.createElement("div",{className:"action-group"})),te.createElement("div",{style:{display:"flex"}},te.createElement("span",{style:{marginTop:29,marginLeft:24,color:"#5F6367"}},"\u56E2\u961F\u6210\u5458\uFF1A"),te.createElement("ul",{className:"info",style:{flex:1}},dn.memers.map(je=>{var Je;return te.createElement("li",{key:je.id||je.name,onClick:()=>{xn(je.id)},className:"directionItemWrap"},te.createElement("div",{className:"hovename",style:{display:"flex",alignItems:"center",justifyContent:"center",fontWeight:400,fontSize:14,color:je!=null&&je.is_creater?"#000000":"#5F6367"}},((Je=je.name)==null?void 0:Je.length)>6?je.name.substr(0,6)+"....":je.name,te.createElement("img",{src:Ue,style:{marginLeft:5,display:!(je!=null&&je.is_creater)&&"none",height:25,width:78}})),dn.is_creat?te.createElement("div",{className:"groupActionWrap",style:{display:!(je!=null&&je.id)&&"none"}},te.createElement("a",{className:"btn-del",onClick:ht=>{ht.preventDefault(),ht.stopPropagation(),Wn(dn.id,je.id)}},"x")):null)})),dn.is_creat||tt?te.createElement(a.Z,{overlayClassName:"dropdowns",dropdownRender:()=>te.createElement(x.default,null,te.createElement(x.default.Item,{onClick:()=>{ot(dn)}},"\u4FEE\u6539\u540D\u79F0"),te.createElement(x.default.Item,{disabled:dn.memers.length>=50,onClick:()=>{ct(dn)}},"\u6DFB\u52A0\u6210\u5458"),dn.is_creat&&te.createElement(x.default.Item,{onClick:()=>ar(dn)},"\u6743\u9650\u914D\u7F6E"),dn.is_creat&&te.createElement(x.default.Item,{onClick:()=>Ln(dn)},"\u8F6C\u8BA9\u56E2\u961F"),te.createElement(x.default.Item,{key:dn.id+"",onClick:dn.is_creat?ur:Nn},dn.is_creat?"\u89E3\u6563":"\u9000\u51FA"))},te.createElement("span",{style:{marginTop:30,marginRight:24,color:"#165DFF",fontSize:14,height:20}},"\u8BBE\u7F6E",te.createElement("i",{style:{marginLeft:5,color:"#979797"},className:"iconfont icon-a-bianzu11"}))):te.createElement("span",{key:dn.id+"",style:{marginTop:30,marginRight:24,color:"#165DFF",fontSize:14,height:20},className:"c-grey-c",onClick:()=>In(dn.id)},"\u9000\u51FA")))),te.createElement(Me.default,{width:700,wrapClassName:oe.Z.CustomCss,title:"\u6743\u9650\u914D\u7F6E",footer:null,open:rn,onCancel:()=>_n(!1)},te.createElement(Pe.Gi,null,te.createElement(re.default,{dataSource:Jt==null?void 0:Jt.members,columns:$n,pagination:!1,scroll:{y:240}})),te.createElement("p",{style:{color:"#FF9D18",marginTop:5}},"*\u9009\u4E2D\u4EE3\u8868\u8BE5\u6210\u5458\u53EF\u4EE5\u4F7F\u7528\u56E2\u961F\u5185\u6240\u6709\u6210\u5458\u5171\u4EAB\u7684\u8D44\u6E90\uFF0C\u5426\u5219\u4E0D\u53EF\u4EE5")),te.createElement(Me.default,{title:"\u89E3\u6563\u63D0\u793A",wrapClassName:oe.Z.CustomCss,onOk:()=>{at(Cr),lr(!1)},open:mr,onCancel:()=>lr(!1)},te.createElement("p",null,"\u89E3\u6563\u6559\u7814\u56E2\u961F\u5C06\u5BF9\u56E2\u961F\u6210\u5458\u4E4B\u95F4\u5171\u4EAB\u5B9E\u8BAD\u3001\u8BD5\u5377\u7B49\u529F\u80FD\u9020\u6210\u4E0D\u4FBF\u3002"),te.createElement("p",null,"\u60A8\u786E\u5B9A\u8981\u89E3\u6563\u672C\u6559\u7814\u56E2\u961F\u5417\uFF1F")),te.createElement(Me.default,{wrapClassName:oe.Z.CustomCss,title:"\u8F6C\u8BA9\u56E2\u961F",onOk:()=>{if(!an){ce.ZP.info("\u521B\u5EFA\u4EBA\u4E0D\u80FD\u4E3A\u7A7A");return}Lt(Bn,an),Qn(!1),an=""},open:Mn,onCancel:()=>{Qn(!1),an=""}},te.createElement("p",{style:{textAlign:"left"}},"\u9009\u4E2D\u7684\u6210\u5458\u5C06\u4F1A\u4EE5\u65B0\u7684\u521B\u5EFA\u4EBA\u8EAB\u4EFD\u63A5\u7BA1\u56E2\u4F53 ",te.createElement("br",null)," \u60A8\u5C06\u4E0D\u518D\u62E5\u6709\u521B\u5EFA\u4EBA\u7684\u8EAB\u4EFD\u548C\u6743\u9650\uFF0C\u4F46\u60A8\u4ECD\u662F\u56E2\u961F\u4E2D\u7684\u4E00\u5458"),te.createElement("div",null,te.createElement(ge.ZP.Group,{defaultValue:[],onChange:dn=>{an=dn.target.value,An(dn.target.value)}},(St=(ft=ln==null?void 0:ln.memers)==null?void 0:ft.filter(dn=>dn.is_teacher))==null?void 0:St.map((dn,Ie)=>te.createElement(ge.ZP,{style:Kn,value:dn==null?void 0:dn.id},dn==null?void 0:dn.name))))))},Re=Ce(76406),$e=Ce(44283),nt=Ce(93328),ut=Object.defineProperty,Qe=Object.defineProperties,rt=Object.getOwnPropertyDescriptors,pt=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,Ft=(We,tt,at)=>tt in We?ut(We,tt,{enumerable:!0,configurable:!0,writable:!0,value:at}):We[tt]=at,Ct=(We,tt)=>{for(var at in tt||(tt={}))At.call(tt,at)&&Ft(We,at,tt[at]);if(pt)for(var at of pt(tt))gt.call(tt,at)&&Ft(We,at,tt[at]);return We},Yt=(We,tt)=>Qe(We,rt(tt)),zt=(We,tt,at)=>new Promise((ot,ct)=>{var lt=ft=>{try{Lt(at.next(ft))}catch(St){ct(St)}},mt=ft=>{try{Lt(at.throw(ft))}catch(St){ct(St)}},Lt=ft=>ft.done?ot(ft.value):Promise.resolve(ft.value).then(lt,mt);Lt((at=at.apply(We,tt)).next())});function Xe({children:We}){return te.createElement("div",{className:"no-data"},te.createElement("img",{src:pe,alt:"no-data",width:300}),We)}const Fe={data:[],loading:!0,selectedGroup:{},showFormPanel:!1,showMemberPanel:!1,index:0};var Le=(We=>(We[We.INITDATA=0]="INITDATA",We[We.SHOWLOADING=1]="SHOWLOADING",We[We.SHOWFORMPANEL=2]="SHOWFORMPANEL",We[We.SHOWMEMBERPANEL=3]="SHOWMEMBERPANEL",We[We.SELECTGROUP=4]="SELECTGROUP",We[We.SETINDEX=5]="SETINDEX",We))(Le||{});function Ze(We,tt){switch(tt.type){case 0:return Ct(Ct({},We),tt.payload);case 1:return Yt(Ct({},We),{loading:tt.payload});case 5:return Yt(Ct({},We),{index:tt.payload});case 2:return Ct(Ct({},We),tt.payload);case 3:return Ct(Ct({},We),tt.payload);case 4:return Yt(Ct({},We),{selectedGroup:tt.payload,showFormPanel:!0});default:throw new Error}}function et({user:We}){var tt;const at=(0,$e.useLocation)(),[ot]=(0,$e.useSearchParams)(),[ct,lt]=(0,te.useReducer)(Ze,Fe),{data:mt,index:Lt,loading:ft,showFormPanel:St,selectedGroup:nn,showMemberPanel:on}=ct,yn=(tt=We.userInfo)==null?void 0:tt.role,[xn,an]=(0,te.useState)(ot.get("category")||"0"),An=(0,te.useMemo)(()=>{let ur=[],Nn=[];if(mt){for(let In of mt)In.is_creat?ur.push(In):Nn.push(In);return[ur,Nn]}},[mt]);(0,te.useEffect)(()=>{yn===15&<({type:5,payload:1})},[yn]);function Jt(){return zt(this,null,function*(){const ur=yield ve();(ur==null?void 0:ur.status)!==401&<({type:0,payload:{loading:!1,showFormPanel:!1,data:ur.groups,index:ot.get("category")||0}})})}(0,te.useEffect)(()=>{Jt()},[]);function Ut(ur){return zt(this,null,function*(){nn.id?yield fe(nn.id,ur):yield ue(ur),Jt()})}function rn(){lt({type:2,payload:{showFormPanel:!0,selectedGroup:{}}})}function _n(ur){lt({type:4,payload:ur})}function Bn(){lt({type:2,payload:{showFormPanel:!1}})}function kt(){lt({type:3,payload:{showMemberPanel:!1,selectedGroup:{}}})}function ln(ur){lt({type:3,payload:{showMemberPanel:!0,selectedGroup:ur}})}function Cn(ur,Nn){return zt(this,null,function*(){yield ie(ur,Nn),Jt()})}function Mn(ur){return zt(this,null,function*(){yield me(ur),Jt()})}function Qn(ur){return zt(this,null,function*(){yield le(ur),Jt()})}function mr(ur,Nn){return zt(this,null,function*(){yield ae(ur,Nn),Jt()})}function lr(ur){lt({type:5,payload:parseInt(ur.target.id,10)})}function Cr(ur,Nn){return zt(this,null,function*(){kt(),yield he({user_ids:ur,group_id:Nn}),Jt()})}const nr=[{id:"0",name:"\u6211\u521B\u5EFA\u7684"},{id:"1",name:"\u6211\u52A0\u5165\u7684"}];return te.createElement(te.Fragment,null,te.createElement("div",{className:"teaching-circling-container",style:{paddingLeft:45,paddingTop:22}},te.createElement("div",{className:"teaching-circling-body"},yn===15?null:te.createElement(Pe.YG,{value:xn,onChange:ur=>{var Nn;(Nn=window.location.href.toString())!=null&&Nn.includes("category")?(0,Re.jz)("category",ur):window.history.replaceState(null,"",window.location.href.indexOf("?")>-1?window.location.href+`&category=${ur}`:`?category=${ur}`),an(ur),lt({type:5,payload:parseInt(ur,10)})},tabBarExtraContent:te.createElement(Ye.ZP,{type:"primary",disabled:mt.length>=50,style:{width:60,height:32,borderRadius:16,border:"1px solid #BACFFE",background:"#F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%)",boxShadow:"0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255,255,255,0.5)",color:"#3061D0"},title:mt.length>=50?"\u60A8\u52A0\u5165\u7684\u6559\u7814\u7EC4\u5DF2\u8FBE\u4E0A\u9650":"",onClick:rn},"\u65B0\u5EFA"),className:"mb25",dataSource:nr}),te.createElement("div",{className:An[Lt].length===0?"nodata-content":"main-content"},An[Lt].length===0?te.createElement(Xe,null,yn<=12?te.createElement(te.Fragment,null," ",te.createElement("p",null,"\u6559\u7814\u56E2\u961F\u6709\u52A9\u4E8E\u4F60\u548C\u4F60\u7684\u4F19\u4F34\u4EEC\u4E00\u8D77\u521B\u5EFA\u5B9E\u8BAD\u3001\u534F\u540C\u6559\u5B66\uFF0C\u6216\u5F00\u5C55\u5176\u4ED6\u6559\u7814\u6D3B\u52A8\u3002")," ",te.createElement("p",null,"\u5F53\u524D\u60A8\u5C1A\u672A\u7EC4\u5EFA\u5C5E\u4E8E\u81EA\u5DF1\u6559\u7814\u56E2\u961F\uFF0C\u5FEB\u53BB\u7EC4\u5EFA\u5427\uFF01")," "):te.createElement("p",null," \u60A8\u5C1A\u672A\u52A0\u5165\u4EFB\u4F55\u6559\u7814\u5C0F\u7EC4\uFF0C\u8BF7\u7B49\u5F85\u8001\u5E08\u7684\u53EC\u5524\u5427\uFF01 ")):te.createElement(Ne,{onExitGroup:Qn,Transferteams:mr,onPlusMember:ln,onDelMember:Cn,onDelGroup:Mn,isAdminOrTeacher:yn<=12,onChangeGroupName:_n,data:An[Lt]})))),te.createElement(se,{callback:Ut,visible:St,onCancel:Bn,id:nn.id,name:nn.name}),te.createElement(Me.default,{centered:!0,title:"\u6DFB\u52A0\u6210\u5458",open:on,onCancel:kt,footer:null,width:1150,bodyStyle:{minHeight:200},wrapClassName:oe.Z.CustomCss},te.createElement(nt.Z,{container_id:nn.id,container_type:4,onSelect:Cr,onCancel:kt})))}var He=(0,$e.connect)(({user:We})=>({user:We}))(et)},20813:function(Yn,en,Ce){"use strict";var te=Ce(59301),Ye=Ce(76411),Me=Ce.n(Ye),pe=Ce(48961),Oe=Ce.n(pe),ve=Ce(59301),ue=Object.defineProperty,fe=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,ae=(E,b,z)=>b in E?ue(E,b,{enumerable:!0,configurable:!0,writable:!0,value:z}):E[b]=z,ie=(E,b)=>{for(var z in b||(b={}))he.call(b,z)&&ae(E,z,b[z]);if(fe)for(var z of fe(b))le.call(b,z)&&ae(E,z,b[z]);return E};const me=({dataSource:E,height:b,labelTextColor:z,legend:ne={}})=>{console.log("dataSource:",E);const oe=(0,te.useRef)(null),se=(0,te.useRef)(null),[de,a]=(0,te.useState)({}),[x,re]=(0,te.useState)(""),[ce,ge]=(0,te.useState)(""),_e=E||[{name:"\u638C\u63E1\u738780%~100%",value:1,itemStyle:{color:"rgb(223,209,38)"}},{name:"\u638C\u63D0\u738760%~79%",value:2,itemStyle:{color:"rgb(6,234,230)"}},{name:"\u638C\u63A8\u738759%\u4EE5\u4E0B",value:3,itemStyle:{color:"rgb(6,110,247)"}}];(0,te.useEffect)(()=>(be(),window.addEventListener("resize",ye),()=>{window.removeEventListener("resize",ye)}),[]),(0,te.useEffect)(()=>{E!=null&&E.length&&ye()},[E]);const ye=()=>{var Pe,ze;const Ke=Se(_e,.8);(Pe=se.current)==null||Pe.setOption(Ke),(ze=se.current)==null||ze.resize()},be=()=>{const Pe=oe.current;se.current=Ye.init(Pe);const ze=Se(_e,.8);a(ze),se.current.setOption(ze),se.current.getZr().off("mousewheel"),ze.series.push({name:"\u638C\u63E1\u7387",type:"pie",labelLine:{length:10,length2:10},startAngle:-20,clockwise:!1,radius:["20%","50%"],center:["50%","50%"],data:_e,itemStyle:{opacity:0}}),se.current.setOption(ze),Ue(se.current)},Se=(Pe,ze)=>{let Ke,Ne=[],Re=0,$e=0,nt=0,ut=[],Qe=[],rt=1-ze;Pe.sort((At,gt)=>gt.value-At.value);for(let At=0;At<Pe.length;At++){Re+=Pe[At].value;let gt={name:typeof Pe[At].name=="undefined"?`series${At}`:Pe[At].name,type:"surface",parametric:!0,wireframe:{show:!1},pieData:Pe[At],pieStatus:{selected:!1,hovered:!1,k:rt},center:["10%","50%"]};if(typeof Pe[At].itemStyle!="undefined"){let Ft={};typeof Pe[At].itemStyle.color!="undefined"&&(Ft.color=Pe[At].itemStyle.color),typeof Pe[At].itemStyle.opacity!="undefined"&&(Ft.opacity=Pe[At].itemStyle.opacity),gt.itemStyle=Ft}Ne.push(gt)}ut=[],Qe=[];for(let At=0;At<Ne.length;At++){nt=$e+Ne[At].pieData.value,Ne[At].pieData.startRatio=$e/Re,Ne[At].pieData.endRatio=nt/Re,Ne[At].parametricEquation=Ae(Ne[At].pieData.startRatio,Ne[At].pieData.endRatio,!1,!1,rt,Ne[At].pieData.value),$e=nt;let gt=we(Ne[At].pieData.value/Re,4);ut.push({name:Ne[At].name,value:gt}),Qe.push({name:Ne[At].name,value:gt})}let pt=Be(Ne,26);return{legend:ie({data:ut,orient:"horizontal",left:10,top:10,itemGap:10,textStyle:{color:"#A1E2FF"},show:!0,icon:"circle",formatter:function(At){let gt=Qe.filter(Ct=>Ct.name===At)[0],Ft=we(gt.value*100,2)+"%";return`${gt.name} ${Ft}`}},ne),labelLine:{show:!0,lineStyle:{color:"#7BC0CB"}},label:{show:!0,position:"outside",rich:{b:{color:z||"#FFF",fontSize:12,lineHeight:20},c:{fontSize:16,lineHeight:24,color:z||"#FFF"}},formatter:`{b|{b}
|
|
|
}{c|{c}}{b|}`},xAxis3D:{min:-1,max:1},yAxis3D:{min:-1,max:1},zAxis3D:{min:-1,max:1},grid3D:{show:!1,boxHeight:pt,viewControl:{alpha:40,distance:300,rotateSensitivity:0,zoomSensitivity:0,panSensitivity:0,autoRotate:!1}},series:Ne}},Be=(Pe,ze)=>(Pe.sort((Ke,Ne)=>Ne.pieData.value-Ke.pieData.value),ze*25/Pe[0].pieData.value),Ae=(Pe,ze,Ke,Ne,Re,$e)=>{let nt=(Pe+ze)/2,ut=Pe*Math.PI*2,Qe=ze*Math.PI*2,rt=nt*Math.PI*2;Pe===0&&ze===1&&(Ke=!1),Re=typeof Re!="undefined"?Re:1/3;let pt=Ke?Math.cos(rt)*.1:0,At=Ke?Math.sin(rt)*.1:0,gt=Ne?1.05:1;return{u:{min:-Math.PI,max:Math.PI*3,step:Math.PI/32},v:{min:0,max:Math.PI*2,step:Math.PI/20},x:function(Ft,Ct){return Ft<ut?pt+Math.cos(ut)*(1+Math.cos(Ct)*Re)*gt:Ft>Qe?pt+Math.cos(Qe)*(1+Math.cos(Ct)*Re)*gt:pt+Math.cos(Ft)*(1+Math.cos(Ct)*Re)*gt},y:function(Ft,Ct){return Ft<ut?At+Math.sin(ut)*(1+Math.cos(Ct)*Re)*gt:Ft>Qe?At+Math.sin(Qe)*(1+Math.cos(Ct)*Re)*gt:At+Math.sin(Ft)*(1+Math.cos(Ct)*Re)*gt},z:function(Ft,Ct){return Ft<-Math.PI*.5?Math.sin(Ft):Ft>Math.PI*2.5?Math.sin(Ft)*$e*.1:Math.sin(Ct)>0?1*$e*.1:-1}}},we=(Pe,ze)=>{let Ke=parseFloat(Pe);if(isNaN(Ke))return!1;Ke=Math.round(Pe*Math.pow(10,ze))/Math.pow(10,ze);let Ne=Ke.toString();(Ne==null?void 0:Ne.indexOf("."))<0&&(Ne+=".");for(let $e=Ne.length-(Ne==null?void 0:Ne.indexOf("."));$e<=ze;$e++)Ne+="0";return Ne},Ue=()=>{se.current.on("click",function(Pe){if(Pe.seriesName==="pie2d"){re(Pe.dataIndex);let ze=se.current.getWidth()/2,Ke=se.current.getHeight()/2;se.current.dispatchAction({type:"pieSelect",seriesIndex:0,dataIndex:Pe.dataIndex})}}),se.current.on("mousemove",function(Pe){}),se.current.on("mouseout",function(){se.current.dispatchAction({type:"pieUnSelect",seriesIndex:0,dataIndex:ce}),ge("")})};return ve.createElement("div",{ref:oe,style:{width:"100%",height:b||"500rem"}})};en.Z=me},855:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return ri}});var te=Ce(59301),Ye=Ce(44283),Me=Ce(28284),pe=Ce(6767),Oe=Ce(94968),ve=Ce(36207),ue=Ce(7939),fe=Ce(62957),he=Ce(37568),le=Ce(37285),ae=Ce(25399),ie=Ce(31691),me=Ce(29787),E=Ce(47889),b=Ce(18287),z={flex_box_center:"flex_box_center___bAhU8",flex_space_between:"flex_space_between___fGcUL",flex_box_vertical_center:"flex_box_vertical_center___hqbFm",flex_box_center_end:"flex_box_center_end___h8cjt",flex_box_column:"flex_box_column___jkfSL",detailmodal:"detailmodal___KEy8k",title:"title___M0Bdn",button:"button___oEMiZ",drawer:"drawer___Pwq6m",tabstyle:"tabstyle___hGelr",items:"items___RrF7L",itemsactivite:"itemsactivite____kVzF",nodetitle:"nodetitle___UgLxl",nodeboyd:"nodeboyd___R1M87",listitem:"listitem___CjR4j",Tabs:"Tabs___gAkar",addmodal:"addmodal___KHvV4",gxcoent:"gxcoent___B8UeJ",gxtitle:"gxtitle___Ezw1C",Colortitle:"Colortitle___kChPm",gxbody:"gxbody___HmZPk",tag:"tag___b2Gak",form:"form___wY8YH",radioform:"radioform___RW7Fy",settingmodal:"settingmodal___LgbSA",body:"body___KaaXx",left:"left___BbRKH",header:"header___E8vej",treenode:"treenode___XViAn",hudong:"hudong___MzZbW",colortitle:"colortitle___PgqHg",right:"right___jzXCF",multiple:"multiple___GQEEM",settingtag:"settingtag___XVMCI",tree:"tree___zz_WU",select:"select___HL7_r",input:"input___reuVt",DetailStatistics:"DetailStatistics___v31Uq",xxrs:"xxrs___Q156g",xxrscount:"xxrscount___OdU60",righttop:"righttop___dnIBD",rightbottom:"rightbottom___B0s8j",gllist:"gllist___JZ9mz",gltag:"gltag___RF_cu"},ne=Ce(99267),oe=Ce(43531),se=Ce(15075),de=Ce(84105),a=Ce(87395),x={tag:"tag___aXy_L",active:"active___kZOMC",tagsModal:"tagsModal___wsl_M",btn:"btn___S2nL4",modal:"modal___r3iAS",mHead:"mHead___imW9A",body:"body___fZUhx",add:"add___QHMDJ",error:"error___aJzBo"},re=Ce(92310),ce=Ce.n(re),ge=Ce(49317),_e=Ce(59301),ye=Object.defineProperty,be=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,Ae=(un,Vn,Sn)=>Vn in un?ye(un,Vn,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):un[Vn]=Sn,we=(un,Vn)=>{for(var Sn in Vn||(Vn={}))Se.call(Vn,Sn)&&Ae(un,Sn,Vn[Sn]);if(be)for(var Sn of be(Vn))Be.call(Vn,Sn)&&Ae(un,Sn,Vn[Sn]);return un},Ue=(un,Vn,Sn)=>new Promise((Rr,ti)=>{var gn=Ar=>{try{Nr(Sn.next(Ar))}catch(pi){ti(pi)}},mi=Ar=>{try{Nr(Sn.throw(Ar))}catch(pi){ti(pi)}},Nr=Ar=>Ar.done?Rr(Ar.value):Promise.resolve(Ar.value).then(gn,mi);Nr((Sn=Sn.apply(un,Vn)).next())});let Pe=[{name:"\u4F5C\u4E1A",id:"zy",item_type:2},{name:"\u5B9E\u8BAD",id:"sx",item_type:2},{name:"\u6559\u6750",id:"jc",item_type:2},{name:"\u89C6\u9891",id:"sp",item_type:2},{name:"\u8BFE\u4EF6",id:"kj",item_type:2},{name:"\u8BD5\u5377",id:"sj",item_type:2},{name:"\u9898\u96C6",id:"tj",item_type:2},{name:"\u8BD5\u9898",id:"st",item_type:2}],ze=[{name:"\u7AE0\u8282",id:"zj",item_type:1},{name:"\u77E5\u8BC6\u70B9",id:"zsd",item_type:1}];var Ne=({value:un=[],onChange:Vn,type:Sn,dataSources:Rr=[],pathsDetail:ti={},showmodal:gn,containerRef:mi})=>{const Nr=(0,Ye.useParams)(),[Ar,pi]=(0,te.useState)(!1),[Gi,gi]=(0,te.useState)([]),[Wi,Jr]=(0,te.useState)(),[li,Zr]=(0,te.useState)(""),[Vi,sa]=(0,te.useState)(""),[vi,Ni]=(0,te.useState)(""),[Ii,Mi]=(0,te.useState)(!1),[fa,ca]=(0,te.useState)(!1),[la,zi]=(0,te.useState)([]),[Da,Ca]=(0,te.useState)("");(0,te.useEffect)(()=>{Ar&&Ra()},[Ar]);function Ra(){return Ue(this,null,function*(){let kr=yield(0,ge.ZP)("/api/knowledge_items.json",{method:"get",params:{item_type:Sn,subject_id:Nr==null?void 0:Nr.pathId}});(kr==null?void 0:kr.status)===0&&(Sn===3?gi(kr==null?void 0:kr.data):(gi([...ze,...kr==null?void 0:kr.data]),zi([...Pe,...kr==null?void 0:kr.data2])))})}const to=[{background:"#6236FF",borderColor:"#9D82FF"},{background:"#6DB9FF",borderColor:"#6DB9FF"},{background:"rgba(27,175,234,0.8)",borderColor:"#68D5FF"},{background:"#C1AC15",borderColor:"#DCC51C"},{background:"#E07E37",borderColor:"#F79046"},{background:"rgba(29,94,255,0.8)",borderColor:"#6D97FE"},{background:"#E75454",borderColor:"#FE8383"},{background:"#A557D8",borderColor:"#C57AF6"},{background:"#2CA768",borderColor:"#43CC86"},{background:"#1F9269",borderColor:"#38B588"},{background:"#CA7720",borderColor:"#E99338"},{background:"rgba(224,32,32,0.8)",borderColor:"#E02020"},{background:"rgba(255,126,15,0.8)",borderColor:"#FF7E0F"},{background:"rgba(29,94,255,0.8)",borderColor:"#1D5EFF"},{background:"#2BAC8E",borderColor:"#30CB9D"},{background:"#EE5D5D",borderColor:"#FF8181"},{background:"#7E5AFE",borderColor:"#9173FA"},{background:"#3ABCEF",borderColor:"#6FD6FF"},{background:"#B132C2",borderColor:"#C57AF6"},{background:"#46A4FB",borderColor:"#72BBFF"},{background:"#C1AC15",borderColor:"#DCC51C"},{background:"#E07E37",borderColor:"#F79046"},{background:"#1D5EFF",borderColor:"#6D97FE"},{background:"#2CA768",borderColor:"#43CC86"},{background:"#A557D8",borderColor:"#C57AF6"},{background:"#1F9269",borderColor:"#38B588"},{background:"#CA7720",borderColor:"#E99338"}],bi="\u6807\u7B7E";(0,te.useEffect)(()=>{gi(Rr)},[]),(0,te.useEffect)(()=>{Ar&&Jr(un)},[Ar]);const Yi=({title:kr="",style:Zi={},values:ma="",showDelete:ba=!0,modal:ir=!1,active:Ji=!1})=>{const no=(pa=>pa.split("").reduce((_a,oa)=>_a+oa.charCodeAt(0),0))(kr)%to.length,{background:Ya,borderColor:xi}=to[no];return _e.createElement("div",{className:ce()(x.tag,Ji?x.active:""),onClick:()=>{var pa;if(ir){if(Ar===1){let _a=[...Gi,...la];Jr([..._a.filter(oa=>(oa==null?void 0:oa.id)===ma)])}Ar===2&&((pa=Wi==null?void 0:Wi.map(_a=>_a.id))!=null&&pa.includes(ma)?Jr(Wi.filter(_a=>_a.id!==ma)):Jr([...Wi,...Gi.filter(_a=>(_a==null?void 0:_a.id)===ma)]))}},style:we({background:Ya,borderColor:xi},Zi)},_e.createElement("span",null,kr),ba&&_e.createElement("i",{onClick:pa=>Ue(void 0,null,function*(){var _a;if(pa.stopPropagation(),ir){gi(Gi.filter(Wa=>Wa.name!==kr)),gi(Gi.filter(Wa=>Wa.name!==kr));let oa=yield(0,ge.ZP)(`/api/knowledge_items/${ma}.json`,{method:"delete",body:{id:ma,subject_id:(_a=ti==null?void 0:ti.detail)==null?void 0:_a.id}});(oa==null?void 0:oa.status)===0&&Ra()}else Vn(un.filter(oa=>oa.id!==ma))}),className:"iconfont icon-shanchu5"}))},Ei=()=>{Vn(Wi),pi(!1)},Ci=kr=>Ue(void 0,null,function*(){if(!li.replace(/\s+/g,"")&&kr===1){Ni(`${bi}\u4E0D\u80FD\u4E3A\u7A7A`);return}if(!Vi.replace(/\s+/g,"")&&kr===2){Ca("\u8D44\u6E90\u4E0D\u80FD\u4E3A\u7A7A");return}if((Gi.map(ma=>ma.name).includes(li)||la.map(ma=>ma.name).includes(li))&&kr===1){Ni(`\u8BE5${bi}\u5DF2\u5B58\u5728\uFF0C\u8BF7\u52FF\u91CD\u590D\u6DFB\u52A0\uFF01`);return}if((la.map(ma=>ma.name).includes(Vi)||Gi.map(ma=>ma.name).includes(Vi))&&kr===2){Ca("\u8BE5\u8D44\u6E90\u5DF2\u5B58\u5728\uFF0C\u8BF7\u52FF\u91CD\u590D\u6DFB\u52A0\uFF01");return}let Zi=yield(0,ge.ZP)("/api/knowledge_items.json",{method:"post",body:{item_type:Sn===3?3:kr,name:Sn===3||kr===1?li:Vi,subject_id:Nr==null?void 0:Nr.pathId}});(Zi==null?void 0:Zi.status)===0&&Ra(),kr===1&&Mi(!1),kr===2&&ca(!1)});return _e.createElement("div",{className:x.tagsModal},Sn===5&&_e.createElement(_e.Fragment,null,un==null?void 0:un.map((kr,Zi)=>_e.createElement(Yi,{values:kr.id,key:Zi,title:kr.name,showDelete:!1,style:{marginRight:"20rem",marginBottom:0}})),gn&&_e.createElement("div",{onClick:()=>pi(1),style:{marginBottom:"0rem"},className:x.btn},_e.createElement("i",{className:"iconfont icon-genghuanguanliyuan1"}),un!=null&&un.length?"\u66F4\u6362":"\u9009\u62E9","\u7C7B\u578B")),Sn===3&&_e.createElement(_e.Fragment,null,un==null?void 0:un.map((kr,Zi)=>_e.createElement(Yi,{values:kr.id,key:Zi,title:kr.name})),gn&&_e.createElement("div",{onClick:()=>pi(2),className:x.btn,style:{marginBottom:"10rem"}},_e.createElement("i",{className:"iconfont icon-tianjiatixing"}),un!=null&&un.length?"\u66F4\u6362":"\u9009\u62E9","\u6807\u7B7E")),_e.createElement(fe.default,{open:!!Ar,centered:!0,width:"1000rem",okText:"\u4FDD\u5B58",getContainer:()=>mi.current,onCancel:()=>pi(!1),cancelText:"\u53D6\u6D88",afterClose:()=>{Mi(!1),ca(!1),Ni(""),Zr("")},onOk:Ei,title:`\u9009\u62E9${bi}`},_e.createElement("div",{className:x.modal},_e.createElement("div",{className:x.mHead},_e.createElement("b",null),_e.createElement("span",null,`${bi}`,"\uFF08",Gi.length,"\uFF09"),_e.createElement("div",{onClick:()=>{Mi(!0),Ni(""),Zr("")},className:x.btn},_e.createElement("i",{className:"iconfont icon-tianjiatixing"}),"\u6DFB\u52A0")),_e.createElement("div",{className:x.body},Gi==null?void 0:Gi.map((kr,Zi)=>{var ma,ba,ir;return _e.createElement(Yi,{showDelete:Sn===3?!((ma=Wi==null?void 0:Wi.map(Ji=>Ji==null?void 0:Ji.id))!=null&&ma.includes(kr==null?void 0:kr.id)):!((ba=Wi==null?void 0:Wi.map(Ji=>Ji==null?void 0:Ji.id))!=null&&ba.includes(kr==null?void 0:kr.id))&&!((ir=ze.map(Ji=>Ji.name))!=null&&ir.includes(kr.name)),modal:!0,style:{cursor:"pointer"},active:Wi==null?void 0:Wi.map(Ji=>Ji==null?void 0:Ji.id).includes(kr==null?void 0:kr.id),key:kr==null?void 0:kr.id,values:kr==null?void 0:kr.id,title:kr==null?void 0:kr.name})}),Ii&&_e.createElement("div",{className:x.add},_e.createElement(he.default,{style:{width:"rem"},size:"large",value:li,onChange:kr=>{Ni(""),Zr(kr.target.value)}}),_e.createElement("i",{onClick:()=>Ci(1),className:"iconfont icon-dui",style:{color:"#1B8565"}}),_e.createElement("i",{onClick:()=>Mi(!1),className:"iconfont icon-shanchu10",style:{color:"#9096A3"}}),!!vi&&_e.createElement("div",{className:x.error},vi)))),Sn===5&&_e.createElement("div",{className:x.modal},_e.createElement("div",{className:x.mHead},_e.createElement("b",null),_e.createElement("span",null,"\u8D44\u6E90","\uFF08",la.length,"\uFF09"),_e.createElement("div",{onClick:()=>{ca(!0),Ca(""),sa("")},className:x.btn},_e.createElement("i",{className:"iconfont icon-tianjiatixing"}),"\u6DFB\u52A0")),_e.createElement("div",{className:x.body},la==null?void 0:la.map((kr,Zi)=>{var ma,ba;return _e.createElement(Yi,{showDelete:!((ma=Wi==null?void 0:Wi.map(ir=>ir==null?void 0:ir.id))!=null&&ma.includes(kr==null?void 0:kr.id))&&!((ba=Pe.map(ir=>ir.name))!=null&&ba.includes(kr.name)),modal:!0,style:{cursor:"pointer"},active:Wi==null?void 0:Wi.map(ir=>ir==null?void 0:ir.id).includes(kr==null?void 0:kr.id),key:kr==null?void 0:kr.id,values:kr==null?void 0:kr.id,title:kr==null?void 0:kr.name})}),fa&&_e.createElement("div",{className:x.add},_e.createElement(he.default,{style:{width:"rem"},size:"large",value:Vi,onChange:kr=>{Ca(""),sa(kr.target.value)}}),_e.createElement("i",{onClick:()=>Ci(2),className:"iconfont icon-dui",style:{color:"#1B8565"}}),_e.createElement("i",{onClick:()=>ca(!1),className:"iconfont icon-shanchu10",style:{color:"#9096A3"}}),!!Da&&_e.createElement("div",{className:x.error},Da))))))},Re=Ce(14185),$e=Ce(82326),nt=Ce(70858),ut=Ce(31709),Qe=Ce(42972),rt=Ce(59301),pt=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,Ft=(un,Vn)=>{var Sn={};for(var Rr in un)At.call(un,Rr)&&Vn.indexOf(Rr)<0&&(Sn[Rr]=un[Rr]);if(un!=null&&pt)for(var Rr of pt(un))Vn.indexOf(Rr)<0&>.call(un,Rr)&&(Sn[Rr]=un[Rr]);return Sn},Ct=(un,Vn,Sn)=>new Promise((Rr,ti)=>{var gn=Ar=>{try{Nr(Sn.next(Ar))}catch(pi){ti(pi)}},mi=Ar=>{try{Nr(Sn.throw(Ar))}catch(pi){ti(pi)}},Nr=Ar=>Ar.done?Rr(Ar.value):Promise.resolve(Ar.value).then(gn,mi);Nr((Sn=Sn.apply(un,Vn)).next())});let Yt=[{label:"\u5B9E\u8BAD",key:"1"},{label:"\u89C6\u9891",key:"2"},{label:"\u8BFE\u4EF6",key:"3"},{label:"\u8BD5\u5377",key:"4"}];const zt=un=>{var Vn=un,{types:Sn,globalSetting:Rr,loading:ti,dispatch:gn,pathsDetail:mi,onChange:Nr,ktzykey:Ar,getother:pi}=Vn,Gi=Ft(Vn,["types","globalSetting","loading","dispatch","pathsDetail","onChange","ktzykey","getother"]),gi,Wi,Jr,li;let[Zr,Vi]=(0,te.useState)({page:1,limit:10,type:Sn,keyword:"",select_type:1,subject_id:"",course_id:""});const[sa,vi]=(0,te.useState)([]);(0,te.useEffect)(()=>{Ni()},[Sn]);function Ni(){return Ct(this,null,function*(){Zr.select_type===3&&(Zr.subject_id="",Zr.course_id=""),Zr.select_type===2&&(Zr.subject_id=""),Zr.select_type===1&&(Zr.course_id="");let Ii=yield(0,ge.ZP)("/api/paths/search_all.json",{method:"get",params:Zr});(Ii==null?void 0:Ii.status)===0&&vi(Ii)})}return rt.createElement("div",{style:{padding:"10rem 20rem"}},rt.createElement("div",{style:{display:"flex"}},rt.createElement("div",null,Sn==="1"&&rt.createElement(he.default,{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",style:{width:"992rem",marginRight:"10rem",height:"40rem"},onChange:Ii=>{Zr.keyword=Ii.target.value,Zr.page=1,Zr.limit=10,Vi(Zr)}}),Sn!=="1"&&rt.createElement("div",{style:{display:"flex"}},rt.createElement("div",{style:{width:"223rem",alignItems:"center",display:"flex",height:"40rem"}},rt.createElement("span",{style:{width:"92rem",border:"1rem solid #DCDCDC",borderRightStyle:"none",background:"#F6F7F9",height:"40rem",display:"flex",alignItems:"center",justifyContent:"center",lineHeight:"40rem",fontSize:"16rem",color:"#666666"}},"\u6240\u5728\u4F4D\u7F6E"),rt.createElement($e.default,{value:Zr.select_type,onChange:Ii=>{Zr.select_type=Ii,Zr.page=1,Zr.limit=10,Vi(Zr),Ni()},className:z.select,style:{width:"131rem",height:"40rem"}},rt.createElement($e.default.Option,{value:1},"\u5B9E\u8DF5\u8BFE\u7A0B"),rt.createElement($e.default.Option,{value:2},"\u6559\u5B66\u8BFE\u5802"),rt.createElement($e.default.Option,{value:3},"\u4E2A\u4EBA\u4E2D\u5FC3"))),Zr.select_type!==3&&rt.createElement($e.default,{value:Zr.subject_id||Zr.course_id,onChange:Ii=>{Zr.course_id=Ii,Zr.subject_id=Ii,Zr.page=1,Zr.limit=10,Vi(Zr),Ni()},className:z.select,style:{width:"270rem",marginLeft:"8rem"}},Zr.select_type===1&&((gi=sa==null?void 0:sa.subjects)==null?void 0:gi.map(Ii=>rt.createElement($e.default.Option,{value:Ii.id},Ii.name))),Zr.select_type===2&&((Wi=sa==null?void 0:sa.courses)==null?void 0:Wi.map(Ii=>rt.createElement($e.default.Option,{value:Ii.id},Ii.name)))),rt.createElement(he.default,{onChange:Ii=>{Zr.keyword=Ii.target.value,Zr.page=1,Zr.limit=10,Vi(Zr)},addonBefore:((Jr=Yt==null?void 0:Yt.find(Ii=>Ii.key===Sn))==null?void 0:Jr.label)+"\u540D\u79F0",className:z.input,style:{marginLeft:"10rem",width:"486rem",height:"40rem"}}))),rt.createElement(ue.ZP,{type:"primary",style:{height:"40rem",fontSize:"14rem",boxShadow:"none",lineHeight:"40rem",width:"108rem",padding:"0",marginLeft:"10rem"},onClick:()=>{Ni()}},"\u67E5\u8BE2")),rt.createElement(nt.default,{style:{marginTop:"10rem"},dataSource:sa==null?void 0:sa.data,pagination:!1,rowKey:Ii=>Ii.id,scroll:{y:"400rem"},columns:[{title:((li=Yt==null?void 0:Yt.find(Ii=>Ii.key===Sn))==null?void 0:li.label)+"\u540D\u79F0",dataIndex:"name",ellipsis:!0,key:"name"},{title:Sn==="1"?"\u5408\u4F5C\u8005":"\u6240\u5C5E\u6A21\u5757",dataIndex:"name",key:"name",ellipsis:!0,render:(Ii,Mi)=>rt.createElement("span",null,Sn==="1"?Mi==null?void 0:Mi.user_names:Mi==null?void 0:Mi.model)},{title:Sn==="1"?"\u6700\u8FD1\u4FEE\u6539\u65F6\u95F4":"\u6240\u5728\u4F4D\u7F6E",dataIndex:"updated_at",ellipsis:!0,render:(Ii,Mi)=>rt.createElement("span",null,Sn==="1"?Mi==null?void 0:Mi.updated_at:Mi==null?void 0:Mi.stage_name)},{title:"\u64CD\u4F5C",dataIndex:"url",width:"100rem",render:(Ii,Mi)=>rt.createElement("a",{onClick:()=>{(Mi==null?void 0:Mi.container_type)==="Video"?fe.default.confirm({icon:null,title:"\u89C6\u9891\u64AD\u653E",centered:!0,closable:!0,footer:!1,width:600,content:rt.createElement(Qe.Z,{allow_skip:!0,src:Ii})}):Sn==="3"?pi(Ii):window.open(Ii)}},"\u67E5\u770B")}],rowSelection:{type:"radio",onChange(Ii,Mi){Nr(Mi)}}}),rt.createElement(ut.Z,{hideOnSinglePage:!0,style:{marginTop:"20rem"},total:sa==null?void 0:sa.total_count,current:Zr==null?void 0:Zr.page,pageSize:Zr==null?void 0:Zr.limit,onChange:(Ii,Mi)=>{Zr.page=Ii,Zr.limit=Mi,Vi(Zr),Ni()}}))};var Xe=(0,Ye.connect)(({pathsDetail:un,user:Vn,loading:Sn,globalSetting:Rr})=>({pathsDetail:un,user:Vn,globalSetting:Rr,loading:Sn.models.index}))(zt),Fe=Ce(76406),Le=Ce(59301),Ze=Object.defineProperty,et=Object.defineProperties,He=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,ot=(un,Vn,Sn)=>Vn in un?Ze(un,Vn,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):un[Vn]=Sn,ct=(un,Vn)=>{for(var Sn in Vn||(Vn={}))tt.call(Vn,Sn)&&ot(un,Sn,Vn[Sn]);if(We)for(var Sn of We(Vn))at.call(Vn,Sn)&&ot(un,Sn,Vn[Sn]);return un},lt=(un,Vn)=>et(un,He(Vn)),mt=(un,Vn)=>{var Sn={};for(var Rr in un)tt.call(un,Rr)&&Vn.indexOf(Rr)<0&&(Sn[Rr]=un[Rr]);if(un!=null&&We)for(var Rr of We(un))Vn.indexOf(Rr)<0&&at.call(un,Rr)&&(Sn[Rr]=un[Rr]);return Sn},Lt=(un,Vn,Sn)=>new Promise((Rr,ti)=>{var gn=Ar=>{try{Nr(Sn.next(Ar))}catch(pi){ti(pi)}},mi=Ar=>{try{Nr(Sn.throw(Ar))}catch(pi){ti(pi)}},Nr=Ar=>Ar.done?Rr(Ar.value):Promise.resolve(Ar.value).then(gn,mi);Nr((Sn=Sn.apply(un,Vn)).next())});const ft=un=>{var Vn=un,{typesdata:Sn,globalSetting:Rr,loading:ti,dispatch:gn,pathsDetail:mi,onChange:Nr,uuid:Ar,itemsuuid:pi}=Vn,Gi=mt(Vn,["typesdata","globalSetting","loading","dispatch","pathsDetail","onChange","uuid","itemsuuid"]),gi,Wi,Jr,li,Zr,Vi,sa,vi,Ni,Ii,Mi,fa;const ca=(0,Ye.useParams)();let[la,zi]=(0,te.useState)([]),[Da,Ca]=(0,te.useState)(!1);const[Ra,to]=(0,te.useState)([]),[bi,Yi]=(0,te.useState)(""),[Ei,Ci]=(0,te.useState)(""),[kr,Zi]=(0,te.useState)([]),[ma,ba]=(0,te.useState)(!1);let[ir,Ji]=(0,te.useState)({bh:[],qx:[],hx:[],gl:[]});(0,te.useEffect)(()=>{Va()},[Ar]),(0,te.useEffect)(()=>{if(Sn){let xi=JSON.parse(sessionStorage.getItem("typesdatajsoncopy"));Ji(xi)}return()=>{}},[Sn]);function Va(){return Lt(this,null,function*(){var xi,pa,_a,oa,Wa;Ca(!0);let Ka=yield(0,ge.ZP)("/api/knowledge/v2/get_node.json",{method:"get",params:{nodeUuid:Ar,subject_id:ca==null?void 0:ca.pathId,depth:-1,relationshipFilter:"\u5305\u542B>"}});if(Ca(!1),(Ka==null?void 0:Ka.status)===0){to(Ka==null?void 0:Ka.data);const Eo=[...(0,Fe.fX)((pa=(xi=Ka==null?void 0:Ka.data)==null?void 0:xi.nodes)==null?void 0:pa.map((io,ao)=>{var Ba,Fa;return lt(ct({},io),{key:(Ba=io==null?void 0:io.properties)==null?void 0:Ba.uuid,title:(Fa=io==null?void 0:io.properties)==null?void 0:Fa.name})}),(Wa=(oa=(_a=Ka==null?void 0:Ka.data)==null?void 0:_a.relationships)==null?void 0:oa.filter(io=>io.type==="\u5305\u542B"||io.type==="\u524D\u5E8F"))==null?void 0:Wa.filter((io,ao,Ba)=>ao===Ba.findIndex(Fa=>Fa.endNodeUuid===io.endNodeUuid))).children||[]];la=Eo,Ci(JSON.stringify(Eo)),zi(Eo)}})}(0,te.useEffect)(()=>{Nr(ir)},[ir]);function no(xi,pa,_a){for(let oa of xi)oa!=null&&oa.title.includes(pa)&&_a.push(oa),oa.children&&oa.children.length>0&&(no(oa.children,pa,_a),Ya(oa.children,pa,_a)&&_a.push(oa))}function Ya(xi,pa,_a){for(let oa of xi)if(oa!=null&&oa.title.includes(pa))return!0}return Le.createElement(me.Z,{spinning:Da},Le.createElement("div",{className:z.body},Le.createElement("div",{className:z.left},Le.createElement("div",{className:z.header},Le.createElement("div",null,"\u5171",Le.createElement("span",{style:{color:"#1B8565"}},((Wi=(gi=Ra==null?void 0:Ra.metricCounters)==null?void 0:gi[0])==null?void 0:Wi.count)||0),"\u4E2A\u6807\u7B7E\u8282\u70B9\uFF0C",Le.createElement("span",{style:{color:"#1B8565"}},((li=(Jr=Ra==null?void 0:Ra.metricCounters)==null?void 0:Jr[1])==null?void 0:li.count)||0),"\u4E2A\u77E5\u8BC6\u8282\u70B9"),Le.createElement(he.default.Search,{style:{width:"350rem",borderRadius:"50%"},onChange:xi=>{var pa,_a,oa,Wa;const{value:Ka}=xi.target;Yi(Ka);let fo=[];no(JSON.parse(Ei),Ka,fo),fo.push((pa=Ra==null?void 0:Ra.nodes)==null?void 0:pa[0]);const Eo=(_a=Ra==null?void 0:Ra.nodes)==null?void 0:_a.filter(Ba=>{var Fa,Wo;return((Wo=(Fa=Ba==null?void 0:Ba.properties)==null?void 0:Fa.name)==null?void 0:Wo.indexOf(Ka))>-1}).map(Ba=>{var Fa;return(Fa=Ba==null?void 0:Ba.properties)==null?void 0:Fa.uuid});Zi(Eo);const ao=[...(0,Fe.fX)(fo,(Wa=(oa=Ra==null?void 0:Ra.relationships)==null?void 0:oa.filter(Ba=>Ba.type==="\u5305\u542B"||Ba.type==="\u524D\u5E8F"))==null?void 0:Wa.filter((Ba,Fa,Wo)=>Fa===Wo.findIndex(Ta=>Ta.endNodeUuid===Ba.endNodeUuid)).filter(Ba=>(fo==null?void 0:fo.map(Fa=>Fa==null?void 0:Fa.key).includes(Ba.endNodeUuid))||(fo==null?void 0:fo.map(Fa=>Fa==null?void 0:Fa.key).includes(Ba.startNodeUuid)))).children||[]];la=ao,zi(ao),ba(!0)},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22"})),Le.createElement(b.default,{style:{marginTop:"30rem",maxHeight:"320rem",overflow:"auto"},showLine:!0,treeData:la,className:z.tree,expandedKeys:kr,onExpand:xi=>{Zi(xi),ba(!1)},autoExpandParent:ma,blockNode:!0,switcherIcon:Le.createElement(de.Z,null),titleRender:xi=>{var pa,_a,oa,Wa,Ka,fo,Eo,io,ao,Ba,Fa,Wo,Ta,Oo,Do;return Le.createElement("div",{className:z.treenode,key:(pa=xi==null?void 0:xi.properties)==null?void 0:pa.uuid},Le.createElement("div",{style:{width:"50%",display:"flex",alignItems:"center"}},((_a=ir==null?void 0:ir.bh)==null?void 0:_a.find(Xi=>{var Pi;return(Xi==null?void 0:Xi.uuid)===((Pi=xi==null?void 0:xi.properties)==null?void 0:Pi.uuid)}))&&Le.createElement("span",{className:z.settingtag,style:{background:"#6236ff"}},"\u5305\u542B"),((oa=ir==null?void 0:ir.qx)==null?void 0:oa.find(Xi=>{var Pi;return(Xi==null?void 0:Xi.uuid)===((Pi=xi==null?void 0:xi.properties)==null?void 0:Pi.uuid)}))&&Le.createElement("span",{className:z.settingtag,style:{background:"#24A881"}},"\u524D\u7F6E"),((Wa=ir==null?void 0:ir.hx)==null?void 0:Wa.find(Xi=>{var Pi;return(Xi==null?void 0:Xi.uuid)===((Pi=xi==null?void 0:xi.properties)==null?void 0:Pi.uuid)}))&&Le.createElement("span",{className:z.settingtag,style:{background:"#EC8657"}},"\u540E\u7F6E"),((Ka=ir==null?void 0:ir.gl)==null?void 0:Ka.find(Xi=>{var Pi;return(Xi==null?void 0:Xi.uuid)===((Pi=xi==null?void 0:xi.properties)==null?void 0:Pi.uuid)}))&&Le.createElement("span",{className:z.settingtag,style:{background:"#497DFF"}},"\u5173\u8054"),Le.createElement("div",{className:z.multiple,title:xi==null?void 0:xi.title,dangerouslySetInnerHTML:{__html:(fo=xi==null?void 0:xi.title)==null?void 0:fo.replaceAll(bi,`<span style= "color: #00B187" >${bi}</span>`)},style:{width:"100%",fontSize:"14rem",color:"#000",fontWeight:400}})),Le.createElement("div",{className:z.hudong},!((Eo=ir==null?void 0:ir.qx)!=null&&Eo.find(Xi=>{var Pi;return(Xi==null?void 0:Xi.uuid)===((Pi=xi==null?void 0:xi.properties)==null?void 0:Pi.uuid)})||(io=ir==null?void 0:ir.bh)!=null&&io.find(Xi=>{var Pi;return(Xi==null?void 0:Xi.uuid)===((Pi=xi==null?void 0:xi.properties)==null?void 0:Pi.uuid)})||(ao=ir==null?void 0:ir.hx)!=null&&ao.find(Xi=>{var Pi;return(Xi==null?void 0:Xi.uuid)===((Pi=xi==null?void 0:xi.properties)==null?void 0:Pi.uuid)})||(Ba=ir==null?void 0:ir.gl)!=null&&Ba.find(Xi=>{var Pi;return(Xi==null?void 0:Xi.uuid)===((Pi=xi==null?void 0:xi.properties)==null?void 0:Pi.uuid)}))&&pi!==((Fa=xi==null?void 0:xi.properties)==null?void 0:Fa.uuid)&&Le.createElement("div",null,Le.createElement("span",{onClick:()=>{var Xi,Pi,lo,Qa;if(!(((Pi=(Xi=ir==null?void 0:ir.bh)==null?void 0:Xi.filter(Ja=>{var zr;return(Ja==null?void 0:Ja.uuid)===((zr=xi==null?void 0:xi.properties)==null?void 0:zr.uuid)}))==null?void 0:Pi.length)>0)){let Ja=[];Ja.push({name:(lo=xi==null?void 0:xi.properties)==null?void 0:lo.name,uuid:(Qa=xi==null?void 0:xi.properties)==null?void 0:Qa.uuid}),Ji({bh:[...Ja,...ir==null?void 0:ir.bh],qx:ir==null?void 0:ir.qx,hx:ir==null?void 0:ir.hx,gl:ir==null?void 0:ir.gl})}},className:z.colortitle,style:{marginRight:"20rem"}},"\u8BBE\u4E3A\u5305\u542B"),Le.createElement("span",{onClick:()=>{var Xi,Pi,lo,Qa;if(!(((Pi=(Xi=ir==null?void 0:ir.qx)==null?void 0:Xi.filter(Ja=>{var zr;return(Ja==null?void 0:Ja.uuid)===((zr=xi==null?void 0:xi.properties)==null?void 0:zr.uuid)}))==null?void 0:Pi.length)>0)){let Ja=[];Ja.push({name:(lo=xi==null?void 0:xi.properties)==null?void 0:lo.name,uuid:(Qa=xi==null?void 0:xi.properties)==null?void 0:Qa.uuid}),Ji({qx:[...Ja,...ir==null?void 0:ir.qx],hx:ir==null?void 0:ir.hx,bh:ir==null?void 0:ir.bh,gl:ir==null?void 0:ir.gl})}},className:z.colortitle},"\u8BBE\u4E3A\u524D\u7F6E"),Le.createElement("span",{onClick:()=>{var Xi,Pi,lo,Qa;if(!(((Pi=(Xi=ir==null?void 0:ir.hx)==null?void 0:Xi.filter(Ja=>{var zr;return(Ja==null?void 0:Ja.uuid)===((zr=xi==null?void 0:xi.properties)==null?void 0:zr.uuid)}))==null?void 0:Pi.length)>0)){let Ja=[];Ja.push({name:(lo=xi==null?void 0:xi.properties)==null?void 0:lo.name,uuid:(Qa=xi==null?void 0:xi.properties)==null?void 0:Qa.uuid}),Ji({qx:ir==null?void 0:ir.qx,hx:[...Ja,...ir==null?void 0:ir.hx],bh:ir==null?void 0:ir.bh,gl:ir==null?void 0:ir.gl})}},style:{margin:"0rem 20rem"},className:z.colortitle},"\u8BBE\u4E3A\u540E\u7F6E"),Le.createElement("span",{onClick:()=>{var Xi,Pi,lo,Qa;if(!(((Pi=(Xi=ir==null?void 0:ir.gl)==null?void 0:Xi.filter(Ja=>{var zr;return(Ja==null?void 0:Ja.uuid)===((zr=xi==null?void 0:xi.properties)==null?void 0:zr.uuid)}))==null?void 0:Pi.length)>0)){let Ja=[];Ja.push({name:(lo=xi==null?void 0:xi.properties)==null?void 0:lo.name,uuid:(Qa=xi==null?void 0:xi.properties)==null?void 0:Qa.uuid}),Ji({qx:ir==null?void 0:ir.qx,hx:ir==null?void 0:ir.hx,gl:[...Ja,...ir==null?void 0:ir.gl],bh:ir==null?void 0:ir.bh})}},className:z.colortitle},"\u8BBE\u4E3A\u5173\u8054")),Le.createElement("span",{onClick:()=>{var Xi;let Pi=(Xi=ir==null?void 0:ir.bh)==null?void 0:Xi.filter(lo=>{var Qa;return lo.uuid!==((Qa=xi==null?void 0:xi.properties)==null?void 0:Qa.uuid)});Ji({bh:Pi,hx:ir==null?void 0:ir.hx,qx:ir==null?void 0:ir.qx,gl:ir==null?void 0:ir.gl})}},((Wo=ir==null?void 0:ir.bh)==null?void 0:Wo.find(Xi=>{var Pi;return(Xi==null?void 0:Xi.uuid)===((Pi=xi==null?void 0:xi.properties)==null?void 0:Pi.uuid)}))&&"\u53D6\u6D88\u5305\u542B"),Le.createElement("span",{onClick:()=>{var Xi;let Pi=(Xi=ir==null?void 0:ir.qx)==null?void 0:Xi.filter(lo=>{var Qa;return lo.uuid!==((Qa=xi==null?void 0:xi.properties)==null?void 0:Qa.uuid)});Ji({qx:Pi,hx:ir==null?void 0:ir.hx,bh:ir==null?void 0:ir.bh,gl:ir==null?void 0:ir.gl})}},((Ta=ir==null?void 0:ir.qx)==null?void 0:Ta.find(Xi=>{var Pi;return(Xi==null?void 0:Xi.uuid)===((Pi=xi==null?void 0:xi.properties)==null?void 0:Pi.uuid)}))&&"\u53D6\u6D88\u524D\u7F6E"),Le.createElement("span",{onClick:()=>{var Xi;let Pi=(Xi=ir==null?void 0:ir.hx)==null?void 0:Xi.filter(lo=>{var Qa;return lo.uuid!==((Qa=xi==null?void 0:xi.properties)==null?void 0:Qa.uuid)});Ji({qx:ir==null?void 0:ir.qx,hx:Pi,bh:ir==null?void 0:ir.bh,gl:ir==null?void 0:ir.gl})}},((Oo=ir==null?void 0:ir.hx)==null?void 0:Oo.find(Xi=>{var Pi;return(Xi==null?void 0:Xi.uuid)===((Pi=xi==null?void 0:xi.properties)==null?void 0:Pi.uuid)}))&&"\u53D6\u6D88\u540E\u7F6E"),Le.createElement("span",{onClick:()=>{var Xi;let Pi=(Xi=ir==null?void 0:ir.gl)==null?void 0:Xi.filter(lo=>{var Qa;return lo.uuid!==((Qa=xi==null?void 0:xi.properties)==null?void 0:Qa.uuid)});Ji({qx:ir==null?void 0:ir.qx,hx:ir==null?void 0:ir.hx,bh:ir==null?void 0:ir.bh,gl:Pi})}},((Do=ir==null?void 0:ir.gl)==null?void 0:Do.find(Xi=>{var Pi;return(Xi==null?void 0:Xi.uuid)===((Pi=xi==null?void 0:xi.properties)==null?void 0:Pi.uuid)}))&&"\u53D6\u6D88\u5173\u8054")))}})),Le.createElement("div",{className:z.right},Le.createElement("div",{className:z.title},"\u5DF2\u5173\u8054\u5173\u7CFB"),Le.createElement("div",{style:{padding:"20rem 25rem"}},Le.createElement("div",{className:z.gxtitle},Le.createElement("div",{className:z.Colortitle,style:{background:"#6236ff"}}),Le.createElement("div",null,"\u88AB\u5305\u542B\uFF08",(Zr=ir.bh)==null?void 0:Zr.length,"\uFF09")),Le.createElement("div",{className:z.gxbody},(Vi=ir==null?void 0:ir.bh)==null?void 0:Vi.map(xi=>Le.createElement("div",{className:z.tag,style:{background:"#6236ff"}},Le.createElement("span",{style:{marginRight:"10rem"}},xi==null?void 0:xi.name)," ",Le.createElement(ne.Z,{onClick:()=>{var pa;let _a=(pa=ir==null?void 0:ir.bh)==null?void 0:pa.filter(oa=>oa.uuid!==xi.uuid);Ji({bh:_a,hx:ir==null?void 0:ir.hx,qx:ir==null?void 0:ir.qx,gl:ir==null?void 0:ir.gl})}})))),Le.createElement("div",{className:z.gxtitle,style:{marginTop:"30rem"}},Le.createElement("div",{className:z.Colortitle,style:{background:"#24A881"}}),Le.createElement("div",null,"\u524D\u5E8F\uFF08",(sa=ir.qx)==null?void 0:sa.length,"\uFF09")),Le.createElement("div",{className:z.gxbody},(vi=ir==null?void 0:ir.qx)==null?void 0:vi.map(xi=>Le.createElement("div",{className:z.tag,style:{background:"#24A881"}},Le.createElement("span",{style:{marginRight:"10rem"}},xi==null?void 0:xi.name)," ",Le.createElement(ne.Z,{onClick:()=>{var pa;let _a=(pa=ir==null?void 0:ir.qx)==null?void 0:pa.filter(oa=>oa.uuid!==xi.uuid);Ji({qx:_a,hx:ir==null?void 0:ir.hx,bh:ir==null?void 0:ir.bh,gl:ir==null?void 0:ir.gl})}})))),Le.createElement("div",{className:z.gxtitle,style:{marginTop:"30rem"}},Le.createElement("div",{className:z.Colortitle,style:{background:"#EC8657"}}),Le.createElement("div",null,"\u540E\u5E8F\uFF08",(Ni=ir.hx)==null?void 0:Ni.length,"\uFF09")),Le.createElement("div",{className:z.gxbody},(Ii=ir==null?void 0:ir.hx)==null?void 0:Ii.map(xi=>Le.createElement("div",{className:z.tag,style:{background:"#EC8657"}},Le.createElement("span",{style:{marginRight:"10rem"}},xi==null?void 0:xi.name)," ",Le.createElement(ne.Z,{onClick:()=>{var pa;let _a=(pa=ir==null?void 0:ir.hx)==null?void 0:pa.filter(oa=>oa.uuid!==xi.uuid);Ji({qx:ir==null?void 0:ir.qx,bh:ir==null?void 0:ir.bh,hx:_a,gl:ir==null?void 0:ir.gl})}})))),Le.createElement("div",{className:z.gxtitle,style:{marginTop:"30rem"}},Le.createElement("div",{className:z.Colortitle,style:{background:"#497DFF"}}),Le.createElement("div",null,"\u5173\u8054\uFF08",(Mi=ir.gl)==null?void 0:Mi.length,"\uFF09")),Le.createElement("div",{className:z.gxbody},(fa=ir==null?void 0:ir.gl)==null?void 0:fa.map(xi=>Le.createElement("div",{className:z.tag,style:{background:"#497DFF"}},Le.createElement("span",{style:{marginRight:"10rem"}},xi==null?void 0:xi.name)," ",Le.createElement(ne.Z,{onClick:()=>{var pa;let _a=(pa=ir==null?void 0:ir.gl)==null?void 0:pa.filter(oa=>oa.uuid!==xi.uuid);Ji({qx:ir==null?void 0:ir.qx,bh:ir==null?void 0:ir.bh,hx:ir==null?void 0:ir.hx,gl:_a})}}))))))))};var St=(0,Ye.connect)(({pathsDetail:un,user:Vn,loading:Sn,globalSetting:Rr})=>({pathsDetail:un,user:Vn,globalSetting:Rr,loading:Sn.models.index}))(ft),nn=Ce(78267),on=Ce(15267),yn=Ce(43065),xn=Ce(59301),an=Object.getOwnPropertySymbols,An=Object.prototype.hasOwnProperty,Jt=Object.prototype.propertyIsEnumerable,Ut=(un,Vn)=>{var Sn={};for(var Rr in un)An.call(un,Rr)&&Vn.indexOf(Rr)<0&&(Sn[Rr]=un[Rr]);if(un!=null&&an)for(var Rr of an(un))Vn.indexOf(Rr)<0&&Jt.call(un,Rr)&&(Sn[Rr]=un[Rr]);return Sn},rn=(un,Vn,Sn)=>new Promise((Rr,ti)=>{var gn=Ar=>{try{Nr(Sn.next(Ar))}catch(pi){ti(pi)}},mi=Ar=>{try{Nr(Sn.throw(Ar))}catch(pi){ti(pi)}},Nr=Ar=>Ar.done?Rr(Ar.value):Promise.resolve(Ar.value).then(gn,mi);Nr((Sn=Sn.apply(un,Vn)).next())});const _n=[3,2,1];let Bn=null;const kt=un=>{var Vn=un,{pathsDetail:Sn,user:Rr,globalSetting:ti,loading:gn,dispatch:mi,datas:Nr,items:Ar}=Vn,pi=Ut(Vn,["pathsDetail","user","globalSetting","loading","dispatch","datas","items"]);const Gi=(0,te.useRef)(),gi=(0,te.useRef)(),Wi=(0,te.useRef)(null);(0,te.useEffect)(()=>{li()},[Nr]),(0,te.useEffect)(()=>(window.addEventListener("resize",Jr),()=>{window.removeEventListener("resize",Jr)}),[]);function Jr(){var Zr,Vi;(Vi=(Zr=Gi.current)==null?void 0:Zr.update)==null||Vi.call(Zr)}function li(){return rn(this,null,function*(){var Zr,Vi,sa,vi,Ni,Ii,Mi,fa;if(((Zr=Nr==null?void 0:Nr.nodes)==null?void 0:Zr.length)>0){let ca=(Vi=Nr==null?void 0:Nr.nodes)==null?void 0:Vi.filter(zi=>{var Da;return Ar==null?void 0:Ar.includes((Da=zi==null?void 0:zi.properties)==null?void 0:Da.uuid)}).map(zi=>{var Da,Ca,Ra,to,bi,Yi,Ei,Ci,kr,Zi,ma,ba;return{rootNodeUuid:(Da=zi==null?void 0:zi.properties)==null?void 0:Da.rootNodeUuid,id:((Ca=zi==null?void 0:zi.properties)==null?void 0:Ca.uuid)+"_",name:(Ra=zi==null?void 0:zi.properties)==null?void 0:Ra.name,description:(to=zi==null?void 0:zi.properties)==null?void 0:to.description,nodeType:(bi=zi==null?void 0:zi.properties)==null?void 0:bi.nodeType,tags:((Yi=zi==null?void 0:zi.properties)==null?void 0:Yi.tags)&&((kr=(Ci=(Ei=zi==null?void 0:zi.properties)==null?void 0:Ei.tags)==null?void 0:Ci.split("\uFF0C"))==null?void 0:kr.map(ir=>({name:ir}))),colorType:parseInt((Zi=zi==null?void 0:zi.properties)==null?void 0:Zi.color)>3?"3":(ma=zi==null?void 0:zi.properties)==null?void 0:ma.color,activeColor:"#FA6400",size:_n[((ba=zi==null?void 0:zi.properties)==null?void 0:ba.color)-1]||1,shape:"circle",hide:!1,isExtendedState:!0}}),la=(Ii=(Ni=(vi=(sa=Nr==null?void 0:Nr.relationships)==null?void 0:sa.filter(zi=>{var Da,Ca,Ra,to,bi,Yi;return zi.endNodeUuid!==((Ra=(Ca=(Da=Nr==null?void 0:Nr.nodes)==null?void 0:Da[0])==null?void 0:Ca.properties)==null?void 0:Ra.rootNodeUuid)&&zi.startNodeUuid!==((Yi=(bi=(to=Nr==null?void 0:Nr.nodes)==null?void 0:to[0])==null?void 0:bi.properties)==null?void 0:Yi.rootNodeUuid)}))==null?void 0:vi.filter(zi=>(Ar==null?void 0:Ar.includes(zi.startNodeUuid))&&(Ar==null?void 0:Ar.includes(zi.endNodeUuid))))==null?void 0:Ni.filter(zi=>zi.type==="\u5305\u542B"||zi.type==="\u524D\u5E8F"||zi.type==="\u5173\u8054"))==null?void 0:Ii.map(zi=>({hide:!1,id:(zi==null?void 0:zi.endNodeUuid)+"_",label:zi==null?void 0:zi.type,props:[],colorType:1,sourceRadius:32,targetRadius:32,source:(zi==null?void 0:zi.startNodeUuid)+"_",target:(zi==null?void 0:zi.endNodeUuid)+"_",value:10}));Gi.current=null,gi.current.innerHTML="",Gi.current=new yn.createContainer({containerName:"#graphRefs",width:((Mi=gi==null?void 0:gi.current)==null?void 0:Mi.clientWidth)||0,height:((fa=gi==null?void 0:gi.current)==null?void 0:fa.clientHeight)||0,toolbarData:[],clickToggle:!1,background:"#fff",isShowMask:!1,nodes:ca,links:la,zoomOptions:{minScale:.2,maxScale:5},nodeMouseover:function(zi){return zi},nodeClick:function(zi){var Da;return(Da=Gi==null?void 0:Gi.current)==null||Da.selectToNode(zi.id),zi},layout:{force:!1,x:20,y:60}}),Gi.current.zoomOut()}})}return xn.createElement("div",{ref:Wi,style:{background:"#fff",height:"455rem"}},xn.createElement("div",{style:{width:"100%",height:"455rem"},ref:gi,id:"graphRefs"}))};var ln=(0,Ye.connect)(({pathsDetail:un,user:Vn,loading:Sn,globalSetting:Rr})=>({pathsDetail:un,user:Vn,globalSetting:Rr,loading:Sn.models.index}))(kt),Cn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAO4AAADICAYAAADvG90JAAA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3xhZqqpwNz2jsHet3kyULn0KkVYAR8pEmH1kOaSnlUb22QNvslWjrYehw4lYN1NG1bM2plfZ0YAb8DG8G5OZObS3NTzaqiANBDqnAk2zhGzchziKuKyzYySeDDAVI88G9C4+TzUEhGAX66FsCXfL7CI9R1N69dM1PTxU83E+bQT8jnmZwt/NwDT3nalabS/lI6Mv/3EDxZFx3x5PT0lPLa2lpXQ+e492NTIw9XVC7bfYKtB19G6lgXJ4m9Xyq3nzj6IKW7CmhA6MHT3hjtS7hud0GK+gswh1dID3IWATM4JwKuZfOyntaemzu/Ph/hmcvB4Yn7npreUa+vmfuKtx08BUEBu4nBbdX3zl76aw7XqWreY6nfLAtHhjyMz/KmZAk7UVqy9LLXtAINKuX5cbfuPyd5m2XDt02jHvuaFKecSskKov/XYDzdRvL63F1xUJsPfpPl+6gOglo7Vra8vIpSYsGMPRMAI9mQv/60BrDKTXu+OKbiW9lOxXbxu0JeSXYHu7gz0IVGkNuo1vop3kFz0mehWkow109b4epMHxVGfvw3v+ov6Bl6g3AVBMp/gnhovgnhDOZ9fixh/TozD3p4/MHTK4mFfq1Wa2rZ1DZ8NFgbOCvI0f2BGX69QMX3DjyWe7xPyKs1GfgpVEuAAAAAElFTkSuQmCC",lr=Ce(42441),Cr=Ce(20813);const nr=un=>({tooltip:{trigger:"item"},legend:{top:"0%",left:"center"},series:[{name:"\u5B8C\u6210\u5360\u6BD4\u60C5\u51B5",type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:2},label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:14,fontWeight:"bold"}},labelLine:{show:!1},data:un}]});var ur=Ce(52148),Nn=Ce(59301),In=Object.defineProperty,Wn=Object.getOwnPropertySymbols,Kn=Object.prototype.hasOwnProperty,Ln=Object.prototype.propertyIsEnumerable,$n=(un,Vn,Sn)=>Vn in un?In(un,Vn,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):un[Vn]=Sn,ar=(un,Vn)=>{for(var Sn in Vn||(Vn={}))Kn.call(Vn,Sn)&&$n(un,Sn,Vn[Sn]);if(Wn)for(var Sn of Wn(Vn))Ln.call(Vn,Sn)&&$n(un,Sn,Vn[Sn]);return un},dn=(un,Vn)=>{var Sn={};for(var Rr in un)Kn.call(un,Rr)&&Vn.indexOf(Rr)<0&&(Sn[Rr]=un[Rr]);if(un!=null&&Wn)for(var Rr of Wn(un))Vn.indexOf(Rr)<0&&Ln.call(un,Rr)&&(Sn[Rr]=un[Rr]);return Sn},Ie=(un,Vn,Sn)=>new Promise((Rr,ti)=>{var gn=Ar=>{try{Nr(Sn.next(Ar))}catch(pi){ti(pi)}},mi=Ar=>{try{Nr(Sn.throw(Ar))}catch(pi){ti(pi)}},Nr=Ar=>Ar.done?Rr(Ar.value):Promise.resolve(Ar.value).then(gn,mi);Nr((Sn=Sn.apply(un,Vn)).next())});const je=[{name:"",value:0,itemStyle:{color:"rgb(223,209,38)"}},{name:"",value:0,itemStyle:{color:"rgb(6,234,230)"}},{name:"",value:0,itemStyle:{color:"rgb(6,110,247)"}}],Je=un=>{var Vn=un,{pathsDetail:Sn,user:Rr,globalSetting:ti,loading:gn,dispatch:mi,uuid:Nr}=Vn,Ar=dn(Vn,["pathsDetail","user","globalSetting","loading","dispatch","uuid"]),pi,Gi,gi,Wi;const Jr=(0,Ye.useParams)();let[li,Zr]=(0,te.useState)({subject_id:Jr==null?void 0:Jr.pathId,course_id:"",parentNodeUuid:Nr,type:1});const[Vi,sa]=(0,te.useState)(),[vi,Ni]=(0,te.useState)([]),[Ii,Mi]=(0,te.useState)([]),[fa]=(0,Ye.useSearchParams)();(0,te.useEffect)(()=>{ca()},[Nr]);function ca(){return Ie(this,null,function*(){var la,zi,Da;let Ca=yield(0,ge.ZP)("/api/knowledge/v2/knowledge_statistics.json",{method:"get",params:li});sa(Ca);let Ra=Object.entries((la=Ca==null?void 0:Ca.data)==null?void 0:la.study_grasp_hash).map(([bi,Yi],Ei)=>({name:bi,value:Yi,itemStyle:je[Ei].itemStyle})),to=Object.entries((zi=Ca==null?void 0:Ca.data)==null?void 0:zi.study_complete_hash).map(([bi,Yi],Ei)=>({name:bi,value:Yi}));Mi(to),((Da=Ra==null?void 0:Ra.filter(bi=>(bi==null?void 0:bi.value)>0))==null?void 0:Da.length)===0?Ni([]):Ni(Ra)})}return Nn.createElement("div",{className:z.DetailStatistics},fa.get("type")!=="classrooms"&&Nn.createElement("div",{className:z.header},Nn.createElement("span",{className:z.title},"\u7EDF\u8BA1\u8303\u56F4"),Nn.createElement(E.ZP.Group,{onChange:la=>{li.type=la.target.value,Zr(ar({},li)),ca()},value:li.type},Nn.createElement(E.ZP,{value:1},"\u5168\u90E8"),Nn.createElement(E.ZP,{value:2},"\u81EA\u4E3B\u5B66\u4E60"),Nn.createElement(E.ZP,{value:3},"\u8BFE\u5802\u5B66\u4E60")),(li==null?void 0:li.type)===3&&Nn.createElement($e.default,{onChange:la=>{li.course_id=la,Zr(ar({},li)),ca()},style:{marginLeft:"-15rem",width:"148rem",height:"36rem"}},(pi=Vi==null?void 0:Vi.courses)==null?void 0:pi.map(la=>Nn.createElement($e.default.Option,{value:la==null?void 0:la.id},la==null?void 0:la.name)))),Nn.createElement("div",{style:{marginTop:"16rem",display:"flex"}},Nn.createElement("div",{className:z.left,style:{backgroundImage:`url(${Cn}),linear-gradient(180deg, rgba(221, 233, 241, 0.4) 0%, rgba(255, 255, 255, 0.49) 100%)`}},Nn.createElement("img",{src:Mn}),Nn.createElement("div",{style:{marginTop:"20rem"}},Nn.createElement("div",{className:z.xxrs},"\u5B66\u4E60\u4EBA\u6570"),Nn.createElement("div",{className:z.xxrscount},(Gi=Vi==null?void 0:Vi.data)==null?void 0:Gi.study_count))),Nn.createElement("div",{className:z.right},Nn.createElement("div",{className:z.righttop},Nn.createElement("img",{src:Qn}),Nn.createElement("div",null,Nn.createElement("div",{className:z.xxrs},"\u5B66\u4E60\u5B8C\u6210\u7387"),Nn.createElement("div",{className:z.xxrscount},(gi=Vi==null?void 0:Vi.data)==null?void 0:gi.study_complete_rate,"%"))),Nn.createElement("div",{className:z.rightbottom},Nn.createElement("img",{src:mr}),Nn.createElement("div",null,Nn.createElement("div",{className:z.xxrs},"\u5B66\u4E60\u638C\u63E1\u7387"),Nn.createElement("div",{className:z.xxrscount},(Wi=Vi==null?void 0:Vi.data)==null?void 0:Wi.study_grasp_rate,"%"))))),Nn.createElement(le.Z,{variant:"dashed",style:{borderColor:"#333333"},dashed:!0},"\u5B8C\u6210\u5360\u6BD4\u60C5\u51B5"),Nn.createElement(lr.Z,{option:nr(Ii),style:{height:300,width:400},opts:{renderer:"svg"}}),Nn.createElement(le.Z,{variant:"dashed",style:{borderColor:"#333333"},dashed:!0},"\u638C\u63A7\u7387"),(vi==null?void 0:vi.length)>0?Nn.createElement(Cr.Z,{labelTextColor:"#333",dataSource:vi}):Nn.createElement(ur.NoData,{children:Nn.createElement("div",{style:{textAlign:"center",fontSize:"14rem"}},"\u6682\u65E0\u638C\u63A7\u7387\u6570\u636E")}))};var ht=(0,Ye.connect)(({pathsDetail:un,user:Vn,loading:Sn,globalSetting:Rr})=>({pathsDetail:un,user:Vn,globalSetting:Rr,loading:Sn.models.index}))(Je),Et=Ce(90736),Qt=Ce(59301),fn=Object.defineProperty,sn=Object.getOwnPropertySymbols,mn=Object.prototype.hasOwnProperty,Zn=Object.prototype.propertyIsEnumerable,tr=(un,Vn,Sn)=>Vn in un?fn(un,Vn,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):un[Vn]=Sn,Vt=(un,Vn)=>{for(var Sn in Vn||(Vn={}))mn.call(Vn,Sn)&&tr(un,Sn,Vn[Sn]);if(sn)for(var Sn of sn(Vn))Zn.call(Vn,Sn)&&tr(un,Sn,Vn[Sn]);return un},Gt=(un,Vn)=>{var Sn={};for(var Rr in un)mn.call(un,Rr)&&Vn.indexOf(Rr)<0&&(Sn[Rr]=un[Rr]);if(un!=null&&sn)for(var Rr of sn(un))Vn.indexOf(Rr)<0&&Zn.call(un,Rr)&&(Sn[Rr]=un[Rr]);return Sn},Rt=(un,Vn,Sn)=>new Promise((Rr,ti)=>{var gn=Ar=>{try{Nr(Sn.next(Ar))}catch(pi){ti(pi)}},mi=Ar=>{try{Nr(Sn.throw(Ar))}catch(pi){ti(pi)}},Nr=Ar=>Ar.done?Rr(Ar.value):Promise.resolve(Ar.value).then(gn,mi);Nr((Sn=Sn.apply(un,Vn)).next())});const jt=[{name:"",value:0,itemStyle:{color:"rgb(223,209,38)"}},{name:"",value:0,itemStyle:{color:"rgb(6,234,230)"}},{name:"",value:0,itemStyle:{color:"rgb(6,110,247)"}}],Mt=un=>{var Vn=un,{pathsDetail:Sn,user:Rr,globalSetting:ti,loading:gn,dispatch:mi,uuid:Nr}=Vn,Ar=Gt(Vn,["pathsDetail","user","globalSetting","loading","dispatch","uuid"]),pi,Gi,gi,Wi;const Jr=(0,Ye.useParams)();let[li,Zr]=(0,te.useState)({subject_id:Jr==null?void 0:Jr.pathId,course_id:"",parentNodeUuid:Nr,type:1});const[Vi,sa]=(0,te.useState)(),[vi,Ni]=(0,te.useState)([]),[Ii]=(0,Ye.useSearchParams)(),[Mi,fa]=(0,te.useState)([]);(0,te.useEffect)(()=>{ca()},[Nr]);function ca(){return Rt(this,null,function*(){var la,zi,Da;let Ca=yield(0,ge.ZP)("/api/knowledge/v2/knowledge_statistics.json",{method:"get",params:li});sa(Ca);let Ra=Object.entries((la=Ca==null?void 0:Ca.data)==null?void 0:la.study_grasp_hash).map(([bi,Yi],Ei)=>({name:bi,value:Yi,itemStyle:jt[Ei].itemStyle})),to=Object.entries((zi=Ca==null?void 0:Ca.data)==null?void 0:zi.study_complete_hash).map(([bi,Yi],Ei)=>({name:bi,value:Yi}));fa(to),((Da=Ra==null?void 0:Ra.filter(bi=>(bi==null?void 0:bi.value)>0))==null?void 0:Da.length)===0?Ni([]):Ni(Ra)})}return Qt.createElement("div",{className:z.DetailStatistics},Ii.get("type")!=="classrooms"&&Qt.createElement("div",{className:z.header},Qt.createElement("span",{className:z.title},"\u7EDF\u8BA1\u8303\u56F4"),Qt.createElement(E.ZP.Group,{onChange:la=>{li.type=la.target.value,Zr(Vt({},li)),ca()},value:li.type},Qt.createElement(E.ZP,{value:1},"\u5168\u90E8"),Qt.createElement(E.ZP,{value:2},"\u81EA\u4E3B\u5B66\u4E60"),Qt.createElement(E.ZP,{value:3},"\u8BFE\u5802\u5B66\u4E60")),(li==null?void 0:li.type)===3&&Qt.createElement($e.default,{onChange:la=>{li.course_id=la,Zr(Vt({},li)),ca()},style:{marginLeft:"-15rem",width:"148rem",height:"36rem"}},(pi=Vi==null?void 0:Vi.courses)==null?void 0:pi.map(la=>Qt.createElement($e.default.Option,{value:la==null?void 0:la.id},la==null?void 0:la.name)))),Qt.createElement("div",{style:{marginTop:"16rem",display:"flex"}},Qt.createElement("div",{className:z.left,style:{backgroundImage:`url(${Cn}),linear-gradient(180deg, rgba(221, 233, 241, 0.4) 0%, rgba(255, 255, 255, 0.49) 100%)`}},Qt.createElement("img",{src:Mn}),Qt.createElement("div",{style:{marginTop:"20rem"}},Qt.createElement("div",{className:z.xxrs},"\u5B66\u4E60\u4EBA\u6570"),Qt.createElement("div",{className:z.xxrscount},(Gi=Vi==null?void 0:Vi.data)==null?void 0:Gi.study_count))),Qt.createElement("div",{className:z.right},Qt.createElement("div",{className:z.righttop},Qt.createElement("img",{src:Qn}),Qt.createElement("div",null,Qt.createElement("div",{className:z.xxrs},"\u5B66\u4E60\u5B8C\u6210\u7387"),Qt.createElement("div",{className:z.xxrscount},(gi=Vi==null?void 0:Vi.data)==null?void 0:gi.study_complete_rate,"%"))),Qt.createElement("div",{className:z.rightbottom},Qt.createElement("img",{src:mr}),Qt.createElement("div",null,Qt.createElement("div",{className:z.xxrs},"\u5B66\u4E60\u638C\u63E1\u7387"),Qt.createElement("div",{className:z.xxrscount},(Wi=Vi==null?void 0:Vi.data)==null?void 0:Wi.study_grasp_rate,"%"))))),Qt.createElement(le.Z,{variant:"dashed",style:{borderColor:"#333333"},dashed:!0},"\u5B8C\u6210\u5360\u6BD4\u60C5\u51B5"),Qt.createElement(lr.Z,{option:nr(Mi),style:{height:300,width:400},opts:{renderer:"svg"}}),Qt.createElement(le.Z,{variant:"dashed",style:{borderColor:"#333333"},dashed:!0},"\u638C\u63A7\u7387"),(vi==null?void 0:vi.length)>0?Qt.createElement(Cr.Z,{labelTextColor:"#333",dataSource:vi}):Qt.createElement(Et.Z,{children:Qt.createElement("div",{style:{textAlign:"center",fontSize:"14rem"}},"\u6682\u65E0\u638C\u63A7\u7387\u6570\u636E")}))};var Kt=(0,Ye.connect)(({pathsDetail:un,user:Vn,loading:Sn,globalSetting:Rr})=>({pathsDetail:un,user:Vn,globalSetting:Rr,loading:Sn.models.index}))(Mt),yt=Ce(86974),qt=Ce(31034),vn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAXlJREFUOE/VlD1Lw1AUhp+YmkGQSnFR8AcUoSJ+LiKCqINQqIODbk51ETpaVHTyD6h/QQddXMRNRal1qLaDOhSFQicdiiKUNrkSmzQxH6WCg2a6Iec+7z3ve24kIYTMLz7SPwSmozPI2h6InroTkqQvywjOQNlm4PDczyV3yxfDT4AFa97fAmhxN/C0u9o8w6wUtYUkFdzAk1CVyC4E+x3cr7YBY7NTtZSB7DLewKF9Xa4xwAnUfU7P+wBHjjy6dgqY77a2r2MG8GV9CaQdhAhYJI8NnuYqEBgFqQ1SswawmEiCttnQIxfMdmKlD5QIXE0ZwMJKGPUjV0uqyYzNbPR6OQTBRbgct3mYX7hDiN46zr7BHq6fYGccUlEb8GFuDaFuuKbCNwtDURgFHdOQTdqA97Ewlfec75xZ99DbE6ULno8dY5MZs9r2mV/fbPQPr3kH8GZwFVXd+lE4doXyW/H7TbmdaKf0eIBWmQRamszbLNOQWxN//wf7CYUnn95U81GtAAAAAElFTkSuQmCC",Tt=Ce(84849),It=Ce(79939),Dt=Ce(53420),Bt={flex_box_center:"flex_box_center___wU4bP",flex_space_between:"flex_space_between___ryVxe",flex_box_vertical_center:"flex_box_vertical_center___J64e0",flex_box_center_end:"flex_box_center_end___ZQTrR",flex_box_column:"flex_box_column___qYlzG",scoremodal:"scoremodal___g_fYu",selectWrapper:"selectWrapper___wbF8t",selectWrappers:"selectWrappers___bAt3m",allqingchu:"allqingchu___IczWP",title:"title___cJxdu",score:"score___W6O3r",close:"close___rZaaH",content:"content___I6bh1",items:"items___NS5if",bottom:"bottom___zStfh",yes:"yes___dvYz0",no:"no___BqowM",titlecount:"titlecount___cx4fQ",add:"add___Vazpd",search:"search___kg8ng",searchIcon:"searchIcon___CaGo3",tabWrap:"tabWrap___CAndG",previewModal:"previewModal___Ms_9O",q_title:"q_title___WfJKh"},Zt=Ce(44192),tn={flex_box_center:"flex_box_center___nswYj",flex_space_between:"flex_space_between___fOVoM",flex_box_vertical_center:"flex_box_vertical_center___Q25Hr",flex_box_center_end:"flex_box_center_end___e8x5w",flex_box_column:"flex_box_column___TkKrN",warp:"warp___CyVTN",shixunbutton:"shixunbutton___5A5Bl",redio:"redio____F59s",redioitem:"redioitem___lpnfs",redioitemyes:"redioitemyes___LJh0a",title:"title___pmJ_X",titleyes:"titleyes___xpcjY",yestag:"yestag___DZcUj",qcount:"qcount___N4pNO",score:"score___aNTPQ",qtitle:"qtitle___E_ClM",checkbox:"checkbox___T6Xdo",checkboxitem:"checkboxitem___dfyKW",checkboxitemyes:"checkboxitemyes___Uh2au",bottom:"bottom___uZhfZ",bottomitem:"bottomitem___NElKx",left:"left___CG1Ne",right:"right___iBXmO",completion:"completion___xvAyY",content:"content___Tf9bM",items:"items___zogcz",simple:"simple___zY1bm",shixun:"shixun___AAIlJ",combination:"combination___c7Ghw",program:"program___sXFp_"},Tn=Ce(35883),Fn=Ce(24334);const dr=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"];var Kr=({qitem:un})=>{var Vn,Sn,Rr,ti,gn,mi,Nr,Ar,pi,Gi;return te.createElement("div",{className:tn.warp},te.createElement("div",{className:tn.mainPart},te.createElement("div",{className:tn.qcount},(un==null?void 0:un.question_type)===8&&te.createElement(Tn.Z,{className:tn.content,showProgramFill:!0,value:(Vn=un==null?void 0:un.program_attr)==null?void 0:Vn.description}),(un==null?void 0:un.question_type)!=8&&te.createElement(Tn.Z,{className:tn.qtitle,value:(un==null?void 0:un.name)||(un==null?void 0:un.title)})),((un==null?void 0:un.question_type)===0||(un==null?void 0:un.question_type)===2)&&te.createElement("div",null,(Sn=un==null?void 0:un.choices)==null?void 0:Sn.map((gi,Wi)=>te.createElement("div",{className:tn.redio},!(gi!=null&&gi.is_answer)&&te.createElement("span",{className:tn.redioitem}),(gi==null?void 0:gi.is_answer)&&te.createElement("i",{className:`${tn.redioitemyes} icon-duigou1`}),te.createElement(Tn.Z,{className:gi!=null&&gi.is_answer?tn.titleyes:tn.title,value:dr[Wi]+(gi==null?void 0:gi.choice_text)}),(gi==null?void 0:gi.is_answer)&&te.createElement("div",{className:tn.yestag},"\u6B63\u786E\u7B54\u6848")))),(un==null?void 0:un.question_type)===1&&te.createElement("div",null,(Rr=un==null?void 0:un.choices)==null?void 0:Rr.map((gi,Wi)=>te.createElement("div",{className:tn.checkbox},!(gi!=null&&gi.is_answer)&&te.createElement("span",{className:tn.checkboxitem}),(gi==null?void 0:gi.is_answer)&&te.createElement("i",{className:`${tn.checkboxitemyes} icon-duigou1`}),te.createElement(Tn.Z,{className:gi!=null&&gi.is_answer?tn.titleyes:tn.title,value:dr[Wi]+(gi==null?void 0:gi.choice_text)}),(gi==null?void 0:gi.is_answer)&&te.createElement("div",{className:tn.yestag},"\u6B63\u786E\u7B54\u6848")))),(un==null?void 0:un.question_type)===3&&te.createElement("div",{className:tn.completion},(ti=un==null?void 0:un.standard_answer)==null?void 0:ti.map((gi,Wi)=>{var Jr;return te.createElement("div",{style:{display:"flex"}},te.createElement("span",{className:tn.title},"\u586B\u7A7A\u9879",Wi+1),te.createElement("div",{className:tn.content},(Jr=gi==null?void 0:gi.answer_text)==null?void 0:Jr.map((li,Zr)=>te.createElement("div",{className:tn.items},li))))})),(un==null?void 0:un.question_type)===4&&te.createElement("div",{className:tn.simple},te.createElement("div",{className:tn.title},"\u53C2\u8003\u7B54\u6848"),te.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(gn=un==null?void 0:un.answer_texts)!=null&&gn[0]?te.createElement(Tn.Z,{className:tn.content,value:(mi=un==null?void 0:un.answer_texts)==null?void 0:mi[0]}):te.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(un==null?void 0:un.question_type)===5&&((Nr=un==null?void 0:un.challenge_names)==null?void 0:Nr.map((gi,Wi)=>te.createElement("div",{className:tn.shixun},te.createElement("span",{className:tn.qtitle},te.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,Fe.EM)(Wi+1),"\u9898"),gi)))),(un==null?void 0:un.question_type)===6&&te.createElement("div",{className:tn.program},te.createElement(Tn.Z,{className:tn.content,value:((Ar=un==null?void 0:un.program_attr)==null?void 0:Ar.description)||"- -"})),(un==null?void 0:un.question_type)===7&&((pi=un==null?void 0:un.sub_item_banks)==null?void 0:pi.map((gi,Wi)=>{var Jr,li,Zr,Vi,sa;return te.createElement("div",null,te.createElement("div",{className:tn.combination},te.createElement("span",{className:tn.qtitle},gi==null?void 0:gi.name)),te.createElement("div",{className:tn.warp,style:{padding:"0px",paddingTop:20}},te.createElement("div",null,((gi==null?void 0:gi.item_type)=="SINGLE"||(gi==null?void 0:gi.item_type)=="JUDGMENT")&&((Jr=gi==null?void 0:gi.choices)==null?void 0:Jr.map((vi,Ni)=>te.createElement("div",{className:tn.redio},!(vi!=null&&vi.is_answer)&&te.createElement("span",{className:tn.redioitem}),(vi==null?void 0:vi.is_answer)&&te.createElement("i",{className:`${tn.redioitemyes} icon-duigou1`}),te.createElement(Tn.Z,{className:vi!=null&&vi.is_answer?tn.titleyes:tn.title,value:dr[Ni]+(vi==null?void 0:vi.choice_text)}),(vi==null?void 0:vi.is_answer)&&te.createElement("div",{className:tn.yestag},"\u6B63\u786E\u7B54\u6848")))),(gi==null?void 0:gi.item_type)=="MULTIPLE"&&((li=gi==null?void 0:gi.choices)==null?void 0:li.map((vi,Ni)=>te.createElement("div",{className:tn.checkbox},!(vi!=null&&vi.is_answer)&&te.createElement("span",{className:tn.checkboxitem}),(vi==null?void 0:vi.is_answer)&&te.createElement("i",{className:`${tn.checkboxitemyes} icon-duigou1`}),te.createElement(Tn.Z,{className:vi!=null&&vi.is_answer?tn.titleyes:tn.title,value:dr[Ni]+(vi==null?void 0:vi.choice_text)}),(vi==null?void 0:vi.is_answer)&&te.createElement("div",{className:tn.yestag},"\u6B63\u786E\u7B54\u6848")))),(gi==null?void 0:gi.item_type)=="COMPLETION"&&te.createElement("div",{className:tn.completion},(Zr=gi==null?void 0:gi.standard_answer)==null?void 0:Zr.map((vi,Ni)=>{var Ii;return te.createElement("div",{style:{display:"flex"}},te.createElement("span",{className:tn.title},"\u586B\u7A7A\u9879",Ni+1),te.createElement("div",{className:tn.content},(Ii=vi==null?void 0:vi.answer_text)==null?void 0:Ii.map((Mi,fa)=>te.createElement("div",{className:tn.items},Mi))))})),(gi==null?void 0:gi.item_type)=="SUBJECTIVE"&&te.createElement("div",{className:tn.simple},te.createElement("div",{className:tn.title},"\u53C2\u8003\u7B54\u6848"),te.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Vi=gi==null?void 0:gi.answer_texts)!=null&&Vi[0]?te.createElement(Tn.Z,{className:tn.content,value:(sa=gi==null?void 0:gi.answer_texts)==null?void 0:sa[0]}):te.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(un==null?void 0:un.question_type)===8&&te.createElement("div",null,te.createElement(Tn.Z,{disabledFill:!0,className:tn.content,showProgramFill:!0,value:Fn.Base64.decode(((Gi=un==null?void 0:un.program_attr)==null?void 0:Gi.code)||"")})),(un==null?void 0:un.question_type)===5&&te.createElement("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"}},te.createElement("div",{style:{flex:1,alignItems:"center",display:"flex"}},te.createElement("div",{style:{marginRight:30}},te.createElement("span",{style:{marginRight:10}},"\u521B\u5EFA\u8005"),te.createElement("span",{style:{color:"#000000"}},(un==null?void 0:un.author_name)||"- -")),te.createElement("div",{style:{marginRight:30}},te.createElement("span",{style:{marginRight:10}},"\u6240\u5C5E\u5355\u4F4D"),te.createElement("span",{style:{color:"#000000"}},(un==null?void 0:un.author_school_name)||"- -")),te.createElement("div",{style:{marginRight:30}},te.createElement("span",{style:{marginRight:10}},"\u5B66\u4E60\u4EBA\u6570"),te.createElement("span",{style:{color:"#000000"}},(un==null?void 0:un.study_count)||"0"))),te.createElement("a",{className:tn.shixunbutton,href:`/shixuns/${un==null?void 0:un.identifier}/challenges?exercise=true`,target:"_blank"},te.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((un==null?void 0:un.question_type)<=4||[6,8].includes(un==null?void 0:un.question_type))&&te.createElement("div",{className:tn.bottom},te.createElement("div",{className:tn.bottomitem},te.createElement("span",{className:tn.left},"\u89E3\u6790"),te.createElement("span",{className:tn.right},un!=null&&un.analysis?te.createElement(Tn.Z,{value:un==null?void 0:un.analysis}):te.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),te.createElement("div",{className:tn.bottomitem},te.createElement("span",{className:tn.left},"\u96BE\u5EA6"),te.createElement("span",{className:tn.right},(un==null?void 0:un.difficulty)===1?"\u7B80\u5355":(un==null?void 0:un.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),te.createElement("div",{className:tn.bottomitem},te.createElement("span",{className:tn.left},"\u77E5\u8BC6\u70B9"),te.createElement("span",{className:tn.right},un!=null&&un.tag_discipline?un==null?void 0:un.tag_discipline:te.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},Sr=Ce(77264),hr=Ce(59435),Mr=Ce(61485),Br=Ce(44240),Wr=Ce(46861),Jn=Ce(59301),ii=Object.defineProperty,Ur=Object.defineProperties,Gr=Object.getOwnPropertyDescriptors,qr=Object.getOwnPropertySymbols,Li=Object.prototype.hasOwnProperty,wi=Object.prototype.propertyIsEnumerable,ui=(un,Vn,Sn)=>Vn in un?ii(un,Vn,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):un[Vn]=Sn,Qr=(un,Vn)=>{for(var Sn in Vn||(Vn={}))Li.call(Vn,Sn)&&ui(un,Sn,Vn[Sn]);if(qr)for(var Sn of qr(Vn))wi.call(Vn,Sn)&&ui(un,Sn,Vn[Sn]);return un},Di=(un,Vn)=>Ur(un,Gr(Vn)),oi=(un,Vn,Sn)=>new Promise((Rr,ti)=>{var gn=Ar=>{try{Nr(Sn.next(Ar))}catch(pi){ti(pi)}},mi=Ar=>{try{Nr(Sn.throw(Ar))}catch(pi){ti(pi)}},Nr=Ar=>Ar.done?Rr(Ar.value):Promise.resolve(Ar.value).then(gn,mi);Nr((Sn=Sn.apply(un,Vn)).next())});const di=({setScoreShow:un,ScoreShow:Vn,listitem:Sn,onOk:Rr,isshixuns:ti,isloadings:gn,dispatch:mi,isIntelligentAssistant:Nr=!1,ispptModal:Ar=!1,isChangeQuestion:pi=!1,newExercisePaper:Gi,shixunsDetail:gi})=>{var Wi;let[Jr,li]=(0,te.useState)({type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,bigmodel:Nr,is_smart_plan:Ar,group_id:[]}),[Zr,Vi]=(0,te.useState)([]),[sa,vi]=(0,te.useState)([]),[Ni,Ii]=(0,te.useState)([]),[Mi,fa]=(0,te.useState)([]);const[ca,la]=(0,te.useState)(!1),[zi]=Me.default.useForm(),[Da,Ca]=(0,te.useState)(),[Ra,to]=(0,te.useState)(!1);let[bi,Yi]=(0,te.useState)(ti);const[Ei,Ci]=(0,te.useState)([]),[kr,Zi]=(0,te.useState)(0),[ma,ba]=(0,te.useState)(!0),[ir,Ji]=(0,te.useState)([]),[Va,no]=(0,te.useState)([]),Ya=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE",question_type:4},{name:"\u5B9E\u8BAD\u9898",value:"SHIXUN",question_type:5},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7EC4\u5408\u9898",value:"COMBINATION",question_type:7},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}],xi=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6}];let[pa,_a]=(0,te.useState)({gg:{type:"1",page:1,updated_at:"",quotes:"",item_type:null,courseid:"",per_page:10,tag_discipline_id:null,difficulty:null,keyword:null},ttgx:{type:"3",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},scj:{type:"2",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null},wcjd:{type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},yx:{type:"5",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:null}});const oa=(0,te.useRef)(new Set),Wa=(0,te.useRef)(new Set),Ka=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],fo=[{name:"\u521D\u7EA7",value:1},{name:"\u4E2D\u7EA7",value:2},{name:"\u4E2D\u9AD8\u7EA7",value:3},{name:"\u9AD8\u7EA7",value:4}],Eo=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[io,ao]=(0,te.useState)(!1),Ba=()=>{zi.resetFields(),bi=!1,Yi(!1),ao(!1),zi.submit()};(0,te.useEffect)(()=>{var zr,fi;(((zr=Sn==null?void 0:Sn.questionIdArr)==null?void 0:zr.length)>0||((fi=Sn==null?void 0:Sn.shixun_ids)==null?void 0:fi.length)>0)&&(vi([...Sn==null?void 0:Sn.questionIdArr,...Sn==null?void 0:Sn.shixun_ids]),Ii([...Sn==null?void 0:Sn.questionIdArr,...Sn==null?void 0:Sn.shixun_ids]),Ci([...Sn==null?void 0:Sn.shixun_ids]),Wa.current=new Set([...Sn==null?void 0:Sn.questionIdArr]),oa.current=new Set([...Sn==null?void 0:Sn.shixun_ids]))},[Sn]),(0,te.useEffect)(()=>{Vn&&(zi.setFieldsValue({item_type:"",courseid:"",tag_discipline_id:null,difficulty:null,keyword:null}),ma&&bi&&(zi.setFieldsValue({item_type:"SHIXUN"}),Jr.item_type="SHIXUN",li(Qr({},Jr)),ba(!1)),Fa(Jr),Wo(),Ta({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}))},[Vn]),(0,te.useEffect)(()=>{kr>0&&setTimeout(()=>{Zi(0)},2e3)},[kr]);function Fa(zr){return oi(this,null,function*(){var fi,Sa,Ri;if(la(!0),li(Qr({},zr)),(Ni==null?void 0:Ni.length)<=0&&zr.type==="5"){fa([]),la(!1);return}let hi=zr.type==="5"?Ni==null?void 0:Ni.filter(ga=>!Ei.includes(ga)):null,wa=zr.type==="5"?Ni==null?void 0:Ni.filter(ga=>Ei.includes(ga)):null,za=yield(0,ge.ZP)("/api/item_banks.json",{method:"get",params:Di(Qr({},zr),{discipline_id:((fi=zr==null?void 0:zr.courseid)==null?void 0:fi[0])||null,sub_discipline_id:((Sa=zr==null?void 0:zr.courseid)==null?void 0:Sa[1])||null,ids:hi,shixun_ids:wa,include_shixuns:!Nr,group_id:((Ri=zr.group_id)==null?void 0:Ri.map(ga=>ga==null?void 0:ga.value))||null,keyword:zr.keyword?encodeURIComponent(zr.keyword):zr.keyword,type:zr.type==="5"?null:zr.type,clazz:zr.type==="3"?"ItemBanksGroup":null,bigmodel:Nr,is_smart_plan:Ar})});fa(za),la(!1)})}function Wo(){return oi(this,null,function*(){let zr=yield(0,ge.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:Jr.type==="5"?null:Jr.type,clazz:"ItemBanksGroup"}});Vi((0,Zt.L)(zr==null?void 0:zr.disciplines))})}function Ta(zr){return oi(this,null,function*(){var fi;let Sa=yield(0,ge.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:zr}),Ri=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(fi=Sa==null?void 0:Sa.data)==null?void 0:fi.map(hi=>({title:hi.name,id:hi.id,pid:hi.id,value:hi.id,key:hi.id,isLeaf:!hi.have_child}))}];Ji(Ri)})}function Oo(zr){return oi(this,null,function*(){var fi,Sa,Ri,hi;la(!0);let wa=(fi=zr.list)==null?void 0:fi.filter(ro=>!Ei.includes(ro)),za=(Sa=zr.list)==null?void 0:Sa.filter(ro=>Ei.includes(ro));if(wa.length===0&&za.length===0){la(!1),fa([]);return}let ga=yield(0,ge.ZP)("/api/item_banks.json",{method:"get",params:Di(Qr({},zr),{discipline_id:((Ri=zr==null?void 0:zr.courseid)==null?void 0:Ri[0])||null,sub_discipline_id:((hi=zr==null?void 0:zr.courseid)==null?void 0:hi[1])||null,ids:wa,shixun_ids:za,type:zr.type==="5"?null:zr.type,clazz:zr.type==="3"?"ItemBanksGroup":null})});la(!1),fa(ga)})}const Do=zr=>oi(void 0,null,function*(){const fi=yield mi({type:"shixunsDetail/release",payload:{id:zr}});let Sa=fi==null?void 0:fi.tag_position,Ri=(fi==null?void 0:fi.evaluation_set_position)||[],hi=fi.status;return hi===0?(pe.ZP.success("\u53D1\u5E03\u6210\u529F"),Fa(Jr),!0):(hi===2?pe.ZP.error(`\u7B2C${Ri.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):hi===3?pe.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${Sa.join(",")}\u5173\u5C1A\u672A\u8BBE\u7F6E\u6280\u80FD\u6807\u7B7E\uFF0C\u8BF7\u8865\u5145`):pe.ZP.error("\u5C1A\u672A\u521B\u5EFA\u4EFB\u52A1\u7684\u5B9E\u8BAD\uFF0C\u4E0D\u80FD\u7533\u8BF7\u53D1\u5E03"),!1)}),Xi=zr=>(zr==null?void 0:zr.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",Pi=(zr,fi,Sa)=>zr.map(Ri=>Ri.key===fi?Qr(Qr({},Ri),Sa):Ri.children?Di(Qr({},Ri),{children:Pi(Ri.children,fi,Sa)}):Ri),lo=zr=>oi(void 0,null,function*(){const{key:fi}=zr;let Sa=Jr.type;const Ri=yield(0,Wr.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(fi),type:Sa}),{data:hi,total_count:wa}=Ri||{};wa>0&&Ji(za=>Pi(za,fi,{children:hi.map(ga=>({title:ga.name,id:ga.id,pid:ga.id,value:ga.id,key:ga.id,isLeaf:!ga.have_child}))}))});function Qa(zr){console.log("----",Jr),zr==="1"&&(pa.gg=Qr({},Jr)),zr==="2"&&(pa.scj=Qr({},Jr)),zr==="3"&&(pa.ttgx=Qr({},Jr)),zr==="0"&&(pa.wcjd=Qr({},Jr)),zr==="5"&&(pa.yx=Qr({},Jr)),_a(Qr({},pa))}function Ja(){Jr.type==="1"&&(Jr=pa.gg),Jr.type==="2"&&(Jr=pa.scj),Jr.type==="3"&&(Jr=pa.ttgx),Jr.type==="0"&&(Jr=pa.wcjd),Jr.type==="5"&&(Jr=pa.yx),(Jr==null?void 0:Jr.item_type)==="SHIXUN"?(bi=!0,Yi(!0)):(bi=!1,Yi(!1)),zi.setFieldsValue(Qr({},Jr)),li(Qr({},Jr)),Fa(Qr({},Jr))}return Jn.createElement("div",null,Jn.createElement(fe.default,{title:!1,footer:!1,open:Vn,width:1200,centered:!0,className:Bt.scoremodal,onCancel:()=>{un(!1)}},Jn.createElement("div",{style:{display:"flex",alignItems:"center"}},Jn.createElement("div",{className:Bt.title},Nr?"\u4EE5\u9898\u6362\u9898":"\u9898\u5E93\u9009\u9898")),Nr&&Jn.createElement("div",{style:{padding:10,background:"#F6F7F9",borderRadius:4,marginTop:14}},"\u6839\u636E\u73B0\u6709\u8BD5\u9898\u7684\u9898\u578B\u3001\u65B9\u5411\u3001\u77E5\u8BC6\u70B9\u3001\u96BE\u6613\u5EA6\uFF0C\u5FEB\u901F\u751F\u6210\u65B0\u7684\u8BD5\u9898\uFF0C\u589E\u52A0\u8BD5\u9898\u7684\u4E30\u5BCC\u5EA6"),Jn.createElement(ie.default,{className:Bt.tabWrap,activeKey:Jr.type,onChange:zr=>{zr==="3"?(Jr.show_all_share=!0,Ta({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"3"})):Jr.show_all_share=null,zr==="0"&&Ta({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),Qa(Jr.type),Jr.type=zr,(Jr==null?void 0:Jr.item_type)==="SHIXUN"&&Jr.type!=="5"&&(bi=!0,Yi(!0)),ao(!1),Jr.type==="5"&&(bi=!1,Yi(!1)),Ja(),Wo()},items:[{label:"\u56E2\u961F\u5171\u4EAB",key:"3"},{label:"\u6536\u85CF\u5939",key:"2"},{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:Jn.createElement("div",null,"\u5DF2\u9009",Ni.length>0&&Jn.createElement("span",{className:Bt.titlecount},Ni.length),kr>0&&Jn.createElement("span",{className:Bt.add},"+",kr)),key:"5"}]}),Jn.createElement(Me.default,{layout:"inline",form:zi,onValuesChange:(zr,fi)=>{const Sa=Object.values(fi).some(hi=>hi!==null&&hi!==""&&hi!==void 0),Ri=fi.keyword==="";if(ao(Sa||!Ri),Jr.page=1,(fi==null?void 0:fi.item_type)==="SHIXUN"){if(Jr.type==="5"?Yi(!1):Yi(!0),zr.keyword||zr.keyword==="")return;zi.submit()}else{if(zr!=null&&zr.courseid&&zi.setFieldsValue({tag_discipline_id:""}),Yi(!1),zr.keyword||zr.keyword==="")return;zi.submit()}},onFinish:zr=>{var fi;Jr.type==="3"&&(!zr.group_id||((fi=zr==null?void 0:zr.group_id)==null?void 0:fi.length)===0)?Jr.show_all_share=!0:Jr.show_all_share=null,li(Qr(Qr({},Jr),zr)),Fa(Qr(Qr({},Jr),zr))}},Jn.createElement(Me.default.Item,{name:"item_type"},Jn.createElement($e.default,{className:Bt.selectWrapper,placeholder:"\u9898\u578B",style:{width:110},size:"middle"},(Ar?xi:Nr?Ya==null?void 0:Ya.filter(zr=>zr.question_type!==5):Ya).map(zr=>Jn.createElement($e.default.Option,{key:zr.value},zr.name)))),Jn.createElement(Me.default.Item,{name:"courseid"},Jn.createElement(It.Z,{className:Bt.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:Zr})),!bi&&Jn.createElement(Me.default.Item,{name:"tag_discipline_id"},Jn.createElement($e.default,{className:Bt.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(Wi=Mi==null?void 0:Mi.tag_disciplines)==null?void 0:Wi.map(zr=>Jn.createElement($e.default.Option,{key:zr.id},zr.name)))),Jn.createElement(Me.default.Item,{name:bi?"diff":"difficulty"},Jn.createElement($e.default,{className:Bt.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0},Ka.map(zr=>Jn.createElement($e.default.Option,{key:zr.value},zr.name)))),bi&&Jn.createElement(Me.default.Item,{name:"shixun_publish_status"},Jn.createElement($e.default,{className:Bt.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},Eo.map(zr=>Jn.createElement($e.default.Option,{key:zr.value},zr.name)))),(Jr.type==="3"||Jr.type==="0")&&!bi&&Jn.createElement(Me.default.Item,{name:"group_id"},Jn.createElement(Dt.default,{treeDataSimpleMode:!0,style:{width:118},className:Bt.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(zr,fi)=>fi.title.toUpperCase().indexOf(zr.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:lo,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:ir})),io&&Jn.createElement("span",{className:Bt.allqingchu,onClick:Ba},Jn.createElement("i",{className:"iconfont icon-guanbi4"}),Jn.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),Jn.createElement(Me.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},Jn.createElement(he.default.Search,{className:Bt.search,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:Jn.createElement("i",{className:`iconfont icon-sousuo9 font14 ${Bt.searchIcon}`,onClick:()=>zi.submit()}),onSearch:zr=>{zi.submit()}}))),Jn.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},Jn.createElement("div",{onClick:()=>{Jr.updated_at==="asc"?Jr.updated_at="desc":Jr.updated_at="asc",li(Di(Qr({},Jr),{page:1})),Fa(Di(Qr({},Jr),{page:1}))}}," ",Jr.updated_at?Jn.createElement("img",{src:Jr.updated_at==="asc"?Sr.Z:hr.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Jn.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),Jn.createElement("div",{onClick:()=>{Jr.quotes==="asc"?Jr.quotes="desc":Jr.quotes="asc",li(Di(Qr({},Jr),{page:1})),Fa(Di(Qr({},Jr),{page:1}))},style:{marginLeft:20}}," ",Jr.quotes?Jn.createElement("img",{src:Jr.quotes==="asc"?Sr.Z:hr.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Jn.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),Jn.createElement(nt.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(Mi==null?void 0:Mi.items)||(Mi==null?void 0:Mi.shixun_list),pagination:!1,loading:ca,rowKey:zr=>zr.id,rowSelection:{type:Nr||pi?"radio":"checkbox",selectedRowKeys:sa,getCheckboxProps:zr=>({disabled:zr.shixun_tag_num===1||(Va==null?void 0:Va.find(fi=>zr.id===fi))}),onSelect(zr,fi,Sa){if(Nr||pi){vi([zr.id]),Wa.current=new Set([zr.id]),Zi(1),Ii([zr.id]);return}if(fi)(bi||zr!=null&&zr.challenge_names)&&Ci([...Ei,zr.id]),vi([...sa,zr.id]),zr.identifier?oa.current.add(zr.id):Wa.current.add(zr.id),Zi(1),Ii([...Ni,zr.id]);else{zr.identifier?oa.current.delete(zr.id):Wa.current.delete(zr.id);let Ri=Ni.filter(hi=>hi!==zr.id);if(vi(Ri),Ii(Ri),bi||zr!=null&&zr.challenge_names){let hi=Ei.filter(wa=>wa!==zr.id);Ci([...hi])}if(Jr.type==="5"){Oo(Di(Qr({},Jr),{list:[...Ri]}));return}}},onSelectAll(zr,fi,Sa){var Ri,hi;if(zr){const wa=Sa.map(ga=>ga.id),za=(hi=Sa==null?void 0:Sa.filter(ga=>ga==null?void 0:ga.challenge_names))==null?void 0:hi.map(ga=>ga.id);Ci([...Ei,...za]),vi([...sa,...wa]),Ii([...Ni,...wa]);for(const ga of Sa)ga.identifier?oa.current.add(ga.id):Wa.current.add(ga.id)}else{const wa=Sa.map(ka=>ka.id),za=sa.filter(ka=>!wa.some(Co=>Co===ka)),ga=(Ri=Sa==null?void 0:Sa.filter(ka=>ka==null?void 0:ka.challenge_names))==null?void 0:Ri.map(ka=>ka.id);vi([...za]),Ii([...za]);let ro=Ei.filter(ka=>!ga.some(Co=>Co===ka.id));Ci([...ro]),Jr.type==="5"&&Oo(Di(Qr({},Jr),{list:[...za]}));for(const ka of wa)ka.identifier?oa.current.delete(ka):Wa.current.delete(ka)}}},columns:[{title:"\u9898\u578B",dataIndex:"item_type",key:"item_type",render:(zr,fi,Sa)=>{var Ri,hi;return Jn.createElement(ae.Z,{title:Xi(fi)},Jn.createElement("div",null,bi||fi!=null&&fi.challenge_names?"\u5B9E\u8BAD\u9898":(hi=(Ri=Ya==null?void 0:Ya.filter(wa=>wa.value===zr))==null?void 0:Ri[0])==null?void 0:hi.name))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:bi?"30%":"60%",key:"name",render:(zr,fi,Sa)=>{var Ri;return Jn.createElement("div",{style:{display:"flex",alignItems:"center"}},Jn.createElement(ae.Z,{title:Xi(fi)},Jn.createElement("div",{className:fi!=null&&fi.high_resources_consume?Bt.q_title:""},Jn.createElement(Tn.Z,{key:1,showLines:1,showTextOnly:!0,value:bi||fi!=null&&fi.challenge_names?fi!=null&&fi.title||zr===null?"--":zr:(fi==null?void 0:fi.item_type)=="BPROGRAM"?(Ri=fi==null?void 0:fi.program_attr)==null?void 0:Ri.description:zr}))),(fi==null?void 0:fi.high_resources_consume)&&Jn.createElement(Br.Z,{type:"shixun",style:{marginLeft:10}}))}},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!bi,render:(zr,fi,Sa)=>{var Ri;return Jn.createElement(ae.Z,{title:Xi(fi)},Jn.createElement("span",null,zr?(Ri=zr==null?void 0:zr.split("\u3001"))==null?void 0:Ri[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!bi,render:(zr,fi,Sa)=>Jn.createElement(ae.Z,{title:Xi(fi)},Jn.createElement("span",null,zr||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",render:(zr,fi,Sa)=>{var Ri,hi,wa,za;return Jn.createElement(ae.Z,{title:Xi(fi)},Jn.createElement("div",null,bi||fi!=null&&fi.challenge_names?(fi==null?void 0:fi.level)||((hi=(Ri=Ka==null?void 0:Ka.filter(ga=>ga.value===zr))==null?void 0:Ri[0])==null?void 0:hi.name):(za=(wa=Ka==null?void 0:Ka.filter(ga=>ga.value===zr))==null?void 0:wa[0])==null?void 0:za.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!bi,render:(zr,fi,Sa)=>Jn.createElement(ae.Z,{title:Xi(fi)},Jn.createElement("div",null,zr||"- -"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",render:(zr,fi,Sa)=>Jn.createElement(ae.Z,{title:Xi(fi)},Jn.createElement("div",null,bi||fi!=null&&fi.challenge_names?(fi==null?void 0:fi.study_count)||(fi==null?void 0:fi.stu_num):zr))},{title:Jn.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",Jn.createElement(ae.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},Jn.createElement(Mr.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!bi,render:(zr,fi,Sa)=>Jn.createElement(ae.Z,{title:Xi(fi)},Jn.createElement("div",null,zr||"- -"))},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",render:(zr,fi,Sa)=>Jn.createElement(ae.Z,{title:Xi(fi)},Jn.createElement("div",{style:{flex:1,textAlign:"start"}},Jn.createElement("a",{onClick:()=>{var Ri,hi;Ca(Di(Qr({},fi),{question_type:bi||fi!=null&&fi.challenge_names?5:(hi=(Ri=Ya==null?void 0:Ya.filter(wa=>wa.value===(fi==null?void 0:fi.item_type)))==null?void 0:Ri[0])==null?void 0:hi.question_type})),to(!0)}},"\u67E5\u770B"),(fi==null?void 0:fi.shixun_tag_num)===1&&Jn.createElement("a",{style:{marginLeft:10},onClick:()=>{fe.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:Jn.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",Jn.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${fi==null?void 0:fi.identifier}/challenges`)}},(fi==null?void 0:fi.shixun_name)||"--"),"\uFF1F"),onOk:()=>oi(void 0,null,function*(){if(!Do(fi==null?void 0:fi.identifier))return new Promise((Ri,hi)=>{hi()})})})}},"\u53D1\u5E03")))}].filter(zr=>!zr.hidden)}),Jn.createElement(ut.Z,{current:Jr.page,total:(Mi==null?void 0:Mi.items_count)||(Mi==null?void 0:Mi.shixuns_count),style:{marginBottom:20},defaultPageSize:Jr.per_page,showTotal:zr=>Jn.createElement("span",null,"\u5171\xA0",Jn.createElement("span",{style:{color:"#165DFF"}},zr),"\xA0\u6761\u6570\u636E"),pageSize:Jr.per_page,onChange:(zr,fi)=>{Jr.page=zr,Jr.per_page=fi,li(Qr({},Jr)),Fa(Qr({},Jr))}}),Jn.createElement("div",{className:Bt.bottom},Jn.createElement(ue.ZP,{className:Bt.no,onClick:()=>{un(!1)}},"\u53D6\u6D88"),Jn.createElement(ue.ZP,{loading:gn,style:{width:gn&&75},className:Bt.yes,onClick:()=>oi(void 0,null,function*(){if((Ni==null?void 0:Ni.length)<=0){pe.ZP.info(Nr||pi?"\u8BF7\u9009\u62E9\u4E00\u9053\u8BD5\u9898":"\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}console.log("----",Wa.current,oa.current),Rr([...Wa.current],[...oa.current],!0,Ni==null?void 0:Ni.length)})},Nr?"\u5F00\u59CB\u6362\u9898":"\u786E\u8BA4"))),Jn.createElement(fe.default,{open:Ra,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:Bt.previewModal,width:1e3,centered:!0,onCancel:()=>{to(!1)},onOk:()=>{to(!1)}},Jn.createElement(Kr,{qitem:Da})))};var ci=(0,Ye.connect)(({shixunsDetail:un,newExercisePaper:Vn})=>({shixunsDetail:un,newExercisePaper:Vn}))(di),ki=Ce(77722),Ki=Ce(33156),ua=Ce(39116),kn=Ce(59301),qi=Object.defineProperty,Qi=Object.defineProperties,ra=Object.getOwnPropertyDescriptors,_i=Object.getOwnPropertySymbols,Ti=Object.prototype.hasOwnProperty,Xr=Object.prototype.propertyIsEnumerable,rr=(un,Vn,Sn)=>Vn in un?qi(un,Vn,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):un[Vn]=Sn,Dr=(un,Vn)=>{for(var Sn in Vn||(Vn={}))Ti.call(Vn,Sn)&&rr(un,Sn,Vn[Sn]);if(_i)for(var Sn of _i(Vn))Xr.call(Vn,Sn)&&rr(un,Sn,Vn[Sn]);return un},Fr=(un,Vn)=>Qi(un,ra(Vn)),or=(un,Vn,Sn)=>new Promise((Rr,ti)=>{var gn=Ar=>{try{Nr(Sn.next(Ar))}catch(pi){ti(pi)}},mi=Ar=>{try{Nr(Sn.throw(Ar))}catch(pi){ti(pi)}},Nr=Ar=>Ar.done?Rr(Ar.value):Promise.resolve(Ar.value).then(gn,mi);Nr((Sn=Sn.apply(un,Vn)).next())});let ei=[{name:"\u6839\u8282\u70B9",src:"/images/one.svg",color:"#CC7CF5",bordercolor:"#A150CB",img:"/images/gjd.svg"},{name:"\u8BFE\u7A0B",src:"/images/kc.svg",color:"#3241F7",bordercolor:"#3437D9",img:"/images/kcjd.svg"},{name:"\u7AE0\u8282",src:"/images/zj.svg",color:"#5e54e7",bordercolor:"#7f77f9",img:"/images/zjjd.svg"},{name:"\u77E5\u8BC6\u70B9",src:"/images/zsd.svg",color:"#FFDF55",bordercolor:"#FFD60F",img:"/images/zsdjd.svg"},{name:"\u5B9E\u8BAD",src:"/images/sx.svg",color:"#4E9DFF",bordercolor:"#0882FB",img:"/images/sxjd.svg"},{name:"\u4F5C\u4E1A",src:"/images/zy.svg",color:"#445DF3",bordercolor:"#3149D5",img:"/images/zyjd.svg"},{name:"\u89C6\u9891",src:"/images/sp.svg",color:"#6BC4DE",bordercolor:"#339DC4",img:"/images/spjd.svg"},{name:"\u8BFE\u4EF6",src:"/images/fj.svg",color:"#6BDE73",bordercolor:"#33C448",img:"/images/kjjd.svg"},{name:"\u8BD5\u5377",src:"/images/sj.svg",color:"#2D9534",bordercolor:"#077A04",img:"/images/sjjd.svg"},{name:"\u5176\u4ED6",src:"/images/qt.svg",color:"#2D947C",bordercolor:"#157660",img:"/images/qtjd.svg"}];const si=[{name:"\u57FA\u672C\u4FE1\u606F",key:1},{name:"\u5173\u8054\u8D44\u6E90",key:4},{name:"\u5B66\u4E60\u7EDF\u8BA1",key:3}];let wr=[{name:"\u4F5C\u4E1A",id:"zy",item_type:2},{name:"\u5B9E\u8BAD",id:"sx",item_type:2},{name:"\u6559\u6750",id:"jc",item_type:2},{name:"\u89C6\u9891",id:"sp",item_type:2},{name:"\u8BFE\u4EF6",id:"kj",item_type:2},{name:"\u8BD5\u5377",id:"sj",item_type:2},{name:"\u9898\u96C6",id:"tj",item_type:2},{name:"\u8BD5\u9898",id:"st",item_type:2}],Ir=[{name:"\u7AE0\u8282",id:"zj",item_type:1},{name:"\u77E5\u8BC6\u70B9",id:"zsd",item_type:1}];const Hr=({pathsDetail:un,user:Vn,globalSetting:Sn,loading:Rr,dispatch:ti,items:gn,showdetail:mi,setshowdetail:Nr,containerRef:Ar,getData:pi,setshow:Gi,Tabsdatas:gi,uuid:Wi,tpacti:Jr,initdata:li,routeData:Zr={}})=>{var Vi,sa,vi,Ni,Ii,Mi,fa,ca,la,zi,Da,Ca,Ra,to,bi,Yi,Ei,Ci,kr,Zi,ma,ba,ir,Ji,Va,no,Ya,xi,pa,_a,oa,Wa,Ka,fo,Eo,io,ao,Ba,Fa,Wo;const Ta=(0,Ye.useParams)(),[Oo,Do]=(0,te.useState)(0),[Xi]=Me.default.useForm(),[Pi,lo]=(0,te.useState)({});let[Qa,Ja]=(0,te.useState)(!1);const[zr,fi]=(0,te.useState)(!1),[Sa,Ri]=(0,te.useState)("1"),[hi,wa]=(0,te.useState)([]),[za,ga]=(0,te.useState)(1),[ro,ka]=(0,te.useState)(2),[Co,Qo]=(0,te.useState)(2),[Ro,Jo]=(0,te.useState)(),[wo,Ns]=(0,te.useState)();let[uo,As]=(0,te.useState)([]);const[Ds,_s]=(0,te.useState)({}),[xs,To]=(0,te.useState)(!1),[Ts,ls]=(0,te.useState)(""),[Qs,wl]=(0,te.useState)([]),[Js]=(0,Ye.useSearchParams)(),[Es,pl]=(0,te.useState)(!1),[Cs,$s]=(0,te.useState)([]),[qs,Ms]=(0,te.useState)([]),[Vo,fs]=(0,te.useState)([]),[ul,Fs]=(0,te.useState)(!1),[xa,ol]=(0,te.useState)(!1),[ks,bs]=(0,te.useState)(!1),[cl,Al]=(0,te.useState)(!1),Vs=(0,te.useRef)(),[Zs,Us]=(0,te.useState)(!0),[Ws,Ll]=(0,te.useState)([]);let[$o,dl]=(0,te.useState)({tags:[],tagszy:[],tagslx:[]});const[el,gl]=(0,te.useState)([{label:"\u5B9E\u8BAD",children:kn.createElement(Xe,{getother:yo,types:"1",ktzykey:Sa,onChange:jn=>{wa(jn)}}),key:"1"},{label:"\u89C6\u9891",children:kn.createElement(Xe,{getother:yo,types:"2",ktzykey:Sa,onChange:jn=>{wa(jn)}}),key:"2"},{label:"\u8BFE\u4EF6",children:kn.createElement(Xe,{getother:yo,types:"3",ktzykey:Sa,onChange:jn=>{wa(jn)}}),key:"3"},{label:"\u8BD5\u5377",children:kn.createElement(Xe,{getother:yo,types:"4",ktzykey:Sa,onChange:jn=>{console.log("----",jn),wa(jn)}}),key:"4"}].filter(jn=>!!jn));let[zs,tl]=(0,te.useState)([]),[Gs,nl]=(0,te.useState)([]);const[hs,yl]=(0,te.useState)(0),[Hs,_l]=(0,te.useState)(0),[Ss,vs]=(0,te.useState)([]),[ha,ts]=(0,te.useState)({bh:[],qx:[],hx:[],gl:[]}),Dl=jn=>{var $i,va;return(0,ge.ZP)("/api/subject_knowledge/create_study.json",{method:"post",body:{subject_id:Ta==null?void 0:Ta.pathId,uuid:(($i=jn==null?void 0:jn.items)==null?void 0:$i.uuid)||((va=jn==null?void 0:jn.items)==null?void 0:va.id)}}),ti({type:"userDetail/logWatchHistory",payload:Dr({},jn)})},xl=jn=>((0,ge.ZP)("/api/subject_knowledge/create_study.json",{method:"post",body:{subject_id:Ta==null?void 0:Ta.pathId,uuid:Wi}}),ti({type:"userDetail/logWatchHistory",payload:Dr({},jn)}));function ns(){return or(this,null,function*(){Al(!0);let jn=yield(0,ge.ZP)("/api/knowledge/v2/knowledge_resources.json",{method:"get",params:Dr({subject_id:Ta==null?void 0:Ta.pathId,uuid:(gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id)},Zr)});Al(!1),(jn==null?void 0:jn.status)===0&&Ll(jn==null?void 0:jn.data)})}const Rl={maxCount:1,fileList:uo,accept:((sa=(Vi=Pi==null?void 0:Pi.label)==null?void 0:Vi[0])==null?void 0:sa.name)==="\u89C6\u9891"?".mp4":"",withCredentials:!0,beforeUpload:jn=>{var $i,va;if(!(jn.type==="video/mp4")&&((va=($i=Pi==null?void 0:Pi.label)==null?void 0:$i[0])==null?void 0:va.name)==="\u89C6\u9891")return pe.ZP.error("\u53EA\u80FD\u4E0A\u4F20\u89C6\u9891"),Oe.default.LIST_IGNORE},action:`${Re.Z.API_SERVER}/api/attachments.json`,onChange:jn=>{As(jn==null?void 0:jn.fileList)}};function Bl(){return or(this,null,function*(){var jn,$i,va,ia,$a;let La=yield(0,ge.ZP)("/api/knowledge/v2/get_node.json",{method:"get",params:{depth:1,subject_id:Ta==null?void 0:Ta.pathId}});if((La==null?void 0:La.status)===0){yl(Wi);const Pa=[...($a=(ia=(jn=La==null?void 0:La.data)==null?void 0:jn.nodes)==null?void 0:ia.splice(1,(va=($i=La==null?void 0:La.data)==null?void 0:$i.nodes)==null?void 0:va.length))==null?void 0:$a.map(co=>{var Bo,_t,xt;return Dr({label:(Bo=co==null?void 0:co.properties)==null?void 0:Bo.name,children:kn.createElement(St,{onChange:Xt=>{sessionStorage.setItem("typesdatajsoncopy",JSON.stringify(Xt))},itemsuuid:gn==null?void 0:gn.uuid,uuid:(_t=co==null?void 0:co.properties)==null?void 0:_t.uuid,typesdata:ha}),key:(xt=co==null?void 0:co.properties)==null?void 0:xt.uuid},co)})];zs=Pa,tl(Pa),sessionStorage.setItem("typesdatajson",JSON.stringify(ha)),sessionStorage.setItem("typesdatajsoncopy",JSON.stringify(ha)),Ja(!0)}})}function Zo(){return or(this,null,function*(){var jn;let $i=yield(0,ge.ZP)("/api/knowledge_items.json",{method:"get",params:{item_type:3,subject_id:Ta==null?void 0:Ta.pathId}});($i==null?void 0:$i.status)===0&&($o.tags=$i==null?void 0:$i.data,dl(Dr({},$o)));let va=yield(0,ge.ZP)("/api/knowledge_items.json",{method:"get",params:{item_type:5,subject_id:Ta==null?void 0:Ta.pathId}});(va==null?void 0:va.status)===0&&($o.tagszy=[...wr,...va==null?void 0:va.data2],$o.tagslx=[...Ir,...va==null?void 0:va.data],dl(Dr({},$o)));let ia=yield(0,ge.ZP)("/api/knowledge/v2/get_container_type.json",{method:"get",params:{url:gn==null?void 0:gn.resourceUrl,item_banks_group_ids:gn==null?void 0:gn.itemBanksGroupIds}});if(ls(""),fs([]),localStorage.setItem("container_type_tupu",ia==null?void 0:ia.container_type),(gn==null?void 0:gn.nodeType)==="\u89C6\u9891"&&(((jn=ia==null?void 0:ia.attachment)==null?void 0:jn.file_type)==="video"||(ia==null?void 0:ia.container_type)==="video")&&ls(ia==null?void 0:ia.id),(gn==null?void 0:gn.resourceOrigin)===1&&(gn==null?void 0:gn.nodeType)!=="\u9898\u96C6"){let $a={url:gn==null?void 0:gn.resourceUrl,name:ia==null?void 0:ia.name,id:ia==null?void 0:ia.examination_bank_id,questionIdArr:ia==null?void 0:ia.item_bank_ids,shixun_ids:ia==null?void 0:ia.shixun_ids};wa([$a])}(gn==null?void 0:gn.resourceOrigin)===1&&(gn==null?void 0:gn.nodeType)==="\u9898\u96C6"&&fs(ia==null?void 0:ia.item_banks_groups),(gn==null?void 0:gn.resourceOrigin)===2&&As([{uid:"123",name:ia==null?void 0:ia.name,response:{id:"123",url:gn==null?void 0:gn.resourceUrl}}])})}function yo(jn){return or(this,null,function*(){var $i,va;let ia=yield(0,ge.ZP)("/api/knowledge/v2/get_container_type.json",{method:"get",params:{url:jn}});(ia==null?void 0:ia.status)===0&&((ia==null?void 0:ia.container_type)==="att"?_s({url:Re.Z.API_SERVER+(($i=ia==null?void 0:ia.attachment)==null?void 0:$i.url),file_type:(va=ia==null?void 0:ia.attachment)==null?void 0:va.file_type}):window.open(jn))})}function zo(){return or(this,null,function*(){let jn=yield(0,ge.ZP)("/api/knowledge/v2/item_bank_groups.json",{method:"get",params:{subject_id:Ta==null?void 0:Ta.pathId}});(jn==null?void 0:jn.status)===0&&$s(jn==null?void 0:jn.data)})}function Mo(){return or(this,null,function*(){var jn,$i,va,ia,$a,La;ga(1);let Pa=yield(0,ge.ZP)("/api/knowledge/v2/get_node_detail.json",{method:"get",params:{nodeUuid:(gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id),parentNodeUuids:gi==null?void 0:gi.map(co=>co==null?void 0:co.uuid).join(),depth:1,relationshipFilter:">",subgraphDepth:"-1",subgraphRelationshipFilter:"\u5305\u542B>",subject_id:Ta==null?void 0:Ta.pathId}});if((Pa==null?void 0:Pa.status)===0){vs((jn=Pa==null?void 0:Pa.data)==null?void 0:jn.nodes),Jo((va=($i=Pa==null?void 0:Pa.data)==null?void 0:$i.nodes)==null?void 0:va.filter(Bo=>{var _t;return((_t=Bo==null?void 0:Bo.properties)==null?void 0:_t.uuid)===(gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id)})),Ns((ia=Pa==null?void 0:Pa.data)==null?void 0:ia.relationships);const co=[...(La=($a=Pa==null?void 0:Pa.data)==null?void 0:$a.graphNodeMappings)==null?void 0:La.map((Bo,_t)=>{var xt;return{label:`${Bo==null?void 0:Bo.parentNodeName}\uFF08${(xt=Bo==null?void 0:Bo.childNodeUuids)==null?void 0:xt.length}\uFF09`,children:kn.createElement(ln,{datas:Pa==null?void 0:Pa.data,items:Bo==null?void 0:Bo.childNodeUuids}),key:_t}})];_l(0),Gs=co,nl(co)}})}(0,te.useEffect)(()=>{mi&&(Mo(),Zo())},[mi,gn]);const Xs=(...jn)=>or(void 0,[...jn],function*($i={}){return yield ti({type:"pathsDetail/getKnowledgeGraphs",payload:Dr({graphable_type:Js.get("type")==="classrooms"?"course":"subject",graphable_id:Ta==null?void 0:Ta.pathId},$i)})});return kn.createElement(qt.Z,null,kn.createElement("div",null,mi&&kn.createElement(ve.Z,{open:mi,width:"700rem",maskStyle:{background:"#000",opacity:"0.1"},keyboard:!0,maskClosable:!0,closable:!1,rootClassName:z.drawer,getContainer:()=>Ar.current,onClose:()=>{Us(!0),Nr(!1),ls("")}},kn.createElement("div",{className:z.detailmodal},kn.createElement("div",null,kn.createElement("span",{className:z.title},"\u8282\u70B9\u8BE6\u60C5"),((vi=un==null?void 0:un.detail)==null?void 0:vi.can_managed)&&Wi!=="\u5B66\u4E60\u8DEF\u5F84"&&kn.createElement("i",{className:"iconfont icon-bianji-moren",onClick:()=>or(void 0,null,function*(){var jn,$i,va,ia,$a,La,Pa,co,Bo,_t;let xt=(jn=wo==null?void 0:wo.filter(En=>(En==null?void 0:En.type)==="\u88AB\u5305\u542B"&&(En==null?void 0:En.startNodeUuid)===((gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id))))==null?void 0:jn.map(En=>{var er,Xn;return{uuid:En==null?void 0:En.endNodeUuid,name:(Xn=(er=Ss==null?void 0:Ss.find(Pr=>{var yr;return((yr=Pr==null?void 0:Pr.properties)==null?void 0:yr.uuid)===(En==null?void 0:En.endNodeUuid)}))==null?void 0:er.properties)==null?void 0:Xn.name}}),Xt=($i=wo==null?void 0:wo.filter(En=>(En==null?void 0:En.type)==="\u5305\u542B"&&(En==null?void 0:En.startNodeUuid)===((gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id))))==null?void 0:$i.map(En=>{var er,Xn;return{uuid:En==null?void 0:En.endNodeUuid,name:(Xn=(er=Ss==null?void 0:Ss.find(Pr=>{var yr;return((yr=Pr==null?void 0:Pr.properties)==null?void 0:yr.uuid)===(En==null?void 0:En.endNodeUuid)}))==null?void 0:er.properties)==null?void 0:Xn.name}});wl(Xt);let cn=(va=wo==null?void 0:wo.filter(En=>(En==null?void 0:En.type)==="\u524D\u5E8F"&&(En==null?void 0:En.startNodeUuid)===((gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id))))==null?void 0:va.map(En=>{var er,Xn;return{uuid:En==null?void 0:En.endNodeUuid,name:(Xn=(er=Ss==null?void 0:Ss.find(Pr=>{var yr;return((yr=Pr==null?void 0:Pr.properties)==null?void 0:yr.uuid)===(En==null?void 0:En.endNodeUuid)}))==null?void 0:er.properties)==null?void 0:Xn.name}}),wn=(ia=wo==null?void 0:wo.filter(En=>(En==null?void 0:En.type)==="\u540E\u5E8F"&&(En==null?void 0:En.startNodeUuid)===((gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id))))==null?void 0:ia.map(En=>{var er,Xn;return{uuid:En==null?void 0:En.endNodeUuid,name:(Xn=(er=Ss==null?void 0:Ss.find(Pr=>{var yr;return((yr=Pr==null?void 0:Pr.properties)==null?void 0:yr.uuid)===(En==null?void 0:En.endNodeUuid)}))==null?void 0:er.properties)==null?void 0:Xn.name}}),Rn=($a=wo==null?void 0:wo.filter(En=>((En==null?void 0:En.type)==="\u5173\u8054"||(En==null?void 0:En.type)==="\u88AB\u5173\u8054")&&(En==null?void 0:En.startNodeUuid)===((gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id))))==null?void 0:$a.map(En=>{var er,Xn;return{uuid:En==null?void 0:En.endNodeUuid,name:(Xn=(er=Ss==null?void 0:Ss.find(Pr=>{var yr;return((yr=Pr==null?void 0:Pr.properties)==null?void 0:yr.uuid)===(En==null?void 0:En.endNodeUuid)}))==null?void 0:er.properties)==null?void 0:Xn.name}});if(ts({bh:xt,qx:cn,hx:wn,gl:Rn}),(gn==null?void 0:gn.colorType)=="1"){Ki.Z.publish("update_a_knowledge_map",{name:gn.name,description:gn.description,nodeType:gn==null?void 0:gn.nodeType,settingbh:Xt,typesdata:{bh:xt,qx:cn,hx:wn,gl:Rn},items:gn});return}Do(3),Nr(!1);let qn={name:gn.name,description:gn.description,label:((Pa=(La=Ro==null?void 0:Ro[0])==null?void 0:La.labels)==null?void 0:Pa[1])==="\u8D44\u6E90"?(co=$o==null?void 0:$o.tagszy)==null?void 0:co.filter(En=>(En==null?void 0:En.name)===(gn==null?void 0:gn.nodeType)):(Bo=$o==null?void 0:$o.tagslx)==null?void 0:Bo.filter(En=>(En==null?void 0:En.name)===(gn==null?void 0:gn.nodeType)),tag:(_t=$o==null?void 0:$o.tags)==null?void 0:_t.filter(En=>{var er,Xn;return(Xn=(er=gn==null?void 0:gn.tags)==null?void 0:er.map(Pr=>Pr==null?void 0:Pr.name))==null?void 0:Xn.includes(En==null?void 0:En.name)}),resourceOrigin:gn.resourceOrigin,url:(gn==null?void 0:gn.resourceOrigin)===3?gn==null?void 0:gn.resourceUrl:""};Xi.setFieldsValue(qn),lo(qn)}),style:{color:"#1B8565",marginLeft:10,cursor:"pointer"}})),kn.createElement("div",{style:{display:"flex",alignItems:"center"}},(gn==null?void 0:gn.colorType)!=="1"&&((Ni=un==null?void 0:un.detail)==null?void 0:Ni.can_managed)&&Wi!=="\u5B66\u4E60\u8DEF\u5F84"&&kn.createElement(ue.ZP,{type:"primary",className:z.button,onClick:(0,nn.debounce)(()=>or(void 0,null,function*(){var jn,$i;let va=yield(0,ge.ZP)("/api/knowledge/v2/get_node.json",{method:"get",params:{nodeUuid:(gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id),subject_id:Ta==null?void 0:Ta.pathId,depth:1,relationshipFilter:"\u88AB\u5305\u542B>"}});if((va==null?void 0:va.status)===0){let ia=($i=(jn=va==null?void 0:va.data)==null?void 0:jn.nodes)==null?void 0:$i.filter(La=>{var Pa;return((Pa=La==null?void 0:La.properties)==null?void 0:Pa.uuid)!==((gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id))}),$a=ia==null?void 0:ia.map(La=>{var Pa,co;return{name:(Pa=La==null?void 0:La.properties)==null?void 0:Pa.name,uuid:(co=La==null?void 0:La.properties)==null?void 0:co.uuid}});ha.bh=$a,ts(ha),Do(1),Nr(!1),wa([]),fs([]),As([])}}),500)},"\u589E\u52A0\u540C\u7EA7\u8282\u70B9"),((Ii=un==null?void 0:un.detail)==null?void 0:Ii.can_managed)&&Wi!=="\u5B66\u4E60\u8DEF\u5F84"&&kn.createElement(ue.ZP,{type:"primary",className:z.button,onClick:()=>{var jn,$i;(($i=(jn=ha==null?void 0:ha.bh)==null?void 0:jn.filter(va=>(va==null?void 0:va.uuid)===(gn==null?void 0:gn.id)))==null?void 0:$i.length)>0||ha.bh.push({name:gn==null?void 0:gn.name,uuid:(gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id)}),Do(2),Nr(!1),wa([]),fs([]),As([])}},"\u589E\u52A0\u5B50\u7EA7\u8282\u70B9"),((Mi=un==null?void 0:un.detail)==null?void 0:Mi.can_managed)&&Wi!=="\u5B66\u4E60\u8DEF\u5F84"&&kn.createElement(ue.ZP,{className:z.button,onClick:()=>{let jn="";fe.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,getContainer:Ar.current,content:kn.createElement("div",null,kn.createElement("p",null,"\u5220\u9664\u8282\u70B9\u4F1A\u540C\u6B65\u5220\u9664\u5F53\u524D\u8282\u70B9\u7684\u5B50\u7EA7\u8282\u70B9\uFF0C\u8BF7\u5728\u4E0B\u65B9\u8F93\u5165\u6846\u8F93\u5165",kn.createElement("span",{style:{color:"red"}},"\u201C\u786E\u8BA4\u5220\u9664\u201D")),kn.createElement(he.default,{onChange:$i=>{jn=$i.target.value}})),onOk:()=>or(void 0,null,function*(){if(jn!=="\u786E\u8BA4\u5220\u9664")return pe.ZP.info("\u8BF7\u8F93\u5165\u786E\u8BA4\u5220\u9664"),Promise.reject();if(jn==="\u786E\u8BA4\u5220\u9664"){let $i=yield(0,ge.ZP)("/api/knowledge/v2/del_node.json",{method:"post",body:{uuid:(gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id),subject_id:Ta==null?void 0:Ta.pathId}});($i==null?void 0:$i.status)===0&&(pe.ZP.info("\u5220\u9664\u6210\u529F"),Xs({graphable_id:Ta==null?void 0:Ta.pathId}),(gn==null?void 0:gn.colorType)!=="1"?(Gi(!1),pi()):li(),Nr(!1))}})})}},"\u5220\u9664\u8282\u70B9"),((fa=un==null?void 0:un.detail)==null?void 0:fa.can_managed)&&Wi==="\u5B66\u4E60\u8DEF\u5F84"&&Js.get("type")==="classrooms"&&kn.createElement(ue.ZP,{type:"primary",className:z.button,onClick:()=>{fe.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,getContainer:Ar.current,okText:"\u786E\u8BA4\u540C\u6B65",content:kn.createElement("div",null,"\u8BE5\u8282\u70B9\u4E0B\u5171",kn.createElement("span",{className:"c-light-primary"},gn==null?void 0:gn.currentResourceTotal),"\u4E2A\u8D44\u6E90\uFF0C\u786E\u8BA4\u540C\u6B65\u540E\uFF0C\u8FD9\u4E9B\u8D44\u6E90\u5C06\u6309\u7167\u7C7B\u578B\u5206\u522B\u53D1\u9001\u5230\u8BFE\u5802\u5B9E\u9A8C\u3001\u56FE\u6587\u4F5C\u4E1A\u3001\u5728\u7EBF\u8003\u8BD5\u3001\u89C6\u9891\u76F4\u64AD\u3001\u6559\u5B66\u8D44\u6599\u6A21\u5757\u4E2D\uFF0C\u53EF\u524D\u5F80\u5BF9\u5E94\u6A21\u5757\u8FDB\u884C\u8D44\u6E90\u53D1\u5E03\u7B49\u64CD\u4F5C\u3002"),onOk:()=>or(void 0,null,function*(){const jn=yield(0,ge.ZP)("/api/subject_knowledge/send_to_course",{method:"post",body:{id:gn==null?void 0:gn.resourceid,subject_id:Ta==null?void 0:Ta.pathId}});(jn==null?void 0:jn.status)===0&&pe.ZP.success("\u64CD\u4F5C\u6210\u529F")})})}},"\u540C\u6B65\u8D44\u6E90\u5230\u8BFE\u5802"),kn.createElement(ne.Z,{onClick:()=>{Nr(!1)},style:{marginLeft:"10rem",fontSize:"16rem",color:"#979797"}}))),kn.createElement("div",{className:z.tabstyle},si==null?void 0:si.map(jn=>kn.createElement("div",{onClick:()=>{ga(jn.key),jn.key===4&&ns()},className:za===(jn==null?void 0:jn.key)?z.itemsactivite:z.items},jn==null?void 0:jn.name))),za===1&&kn.createElement("div",null,kn.createElement("div",{className:z.nodetitle},ro===1&&kn.createElement(oe.Z,{onClick:()=>ka(2)}),ro===2&&kn.createElement(se.Z,{onClick:()=>ka(1)}),kn.createElement("span",{style:{marginLeft:"10rem",fontSize:"16rem",color:"#1B8565"}},"\u8282\u70B9\u5C5E\u6027")),ro===2&&kn.createElement("div",{className:z.nodeboyd},kn.createElement("div",{className:z.listitem,style:{marginTop:"0rem"}},kn.createElement("label",null,"\u8282\u70B9\u540D\u79F0"),kn.createElement("span",null,gn==null?void 0:gn.name)),kn.createElement("div",{className:z.listitem,style:{alignItems:"start"}},kn.createElement("label",null,"\u8282\u70B9\u7B80\u4ECB"),kn.createElement("div",{ref:Vs,style:{maxHeight:Zs?150:282,overflow:Zs?"hidden":"auto"}},kn.createElement(Tn.Z,{value:(gn==null?void 0:gn.description)||"\u6682\u65E0"}))),((ca=Vs==null?void 0:Vs.current)==null?void 0:ca.scrollHeight)>152&&kn.createElement("div",{className:z.tips,onClick:()=>Us(!Zs)},kn.createElement(le.Z,{dashed:!0,style:{borderColor:"#3061D0",paddingLeft:99}},kn.createElement("span",{style:{color:"#3061D0",cursor:"pointer"}},Zs?"\u5C55\u5F00":"\u6536\u8D77",Zs?kn.createElement(de.Z,{style:{marginBottom:"3px",marginLeft:"2px"}}):kn.createElement(a.Z,{style:{marginBottom:"3px",marginLeft:"2px"}})))),kn.createElement("div",{className:z.listitem},kn.createElement("label",null,"\u8282\u70B9\u7C7B\u578B"),kn.createElement("div",null,(gn==null?void 0:gn.nodeType)&&kn.createElement(Ne,{containerRef:Ar,type:5,value:[{name:gn==null?void 0:gn.nodeType}],pathsDetail:un,showmodal:!1,dataSources:[]})," ")),kn.createElement("div",{className:z.listitem},kn.createElement("label",null,"\u8282\u70B9\u6807\u7B7E"),kn.createElement("span",null,((la=gn==null?void 0:gn.tags)==null?void 0:la.length)>0&&kn.createElement(Ne,{containerRef:Ar,type:5,pathsDetail:un,value:gn==null?void 0:gn.tags,showmodal:!1,dataSources:[]}))),(gn==null?void 0:gn.nodeType)==="\u89C6\u9891"&&(gn==null?void 0:gn.resourceOrigin)!==3&&Ts&&kn.createElement("div",{style:{height:"300rem",marginTop:"20rem"}},kn.createElement(Qe.Z,{allow_skip:!0,videoId:Ts,toLog:!0,src:gn==null?void 0:gn.resourceUrl,logWatchHistory:jn=>Dl(Fr(Dr({},jn),{container_type:localStorage.getItem("container_type_tupu"),items:gn}))})),(gn==null?void 0:gn.resourceOrigin)===3&&kn.createElement("div",{style:{display:"flex",marginTop:"20rem",alignItems:"center"}},kn.createElement("span",{style:{color:"#1B8565",fontSize:"16rem"}},gn==null?void 0:gn.resourceUrl),kn.createElement(ue.ZP,{style:{height:"40rem",padding:"0rem 10rem",fontSize:"14rem",marginLeft:"10rem"},onClick:()=>or(void 0,null,function*(){let jn=yield(0,ge.ZP)("/api/subject_knowledge/create_study.json",{method:"post",body:{subject_id:Ta==null?void 0:Ta.pathId,uuid:gn==null?void 0:gn.uuid}});window.open(gn==null?void 0:gn.resourceUrl)}),type:"primary"},"\u524D\u5F80\u67E5\u770B")),(gn==null?void 0:gn.nodeType)==="\u9898\u96C6"&&(Vo==null?void 0:Vo.map(jn=>kn.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:"10rem"}},kn.createElement(ae.Z,{title:jn==null?void 0:jn.name},kn.createElement("span",{className:z.multiple,style:{color:"#1B8565",fontSize:"16rem",maxWidth:"80%"}},jn==null?void 0:jn.name)),kn.createElement("div",{style:{marginLeft:"10rem",padding:"0rem 10rem",fontSize:"12rem",background:"#F6F7F9",color:"#909D99",borderRadius:"20rem"}},"\u8BD5\u9898\u6570 ",jn==null?void 0:jn.count)))),(gn==null?void 0:gn.nodeType)!="\u89C6\u9891"&&(gn==null?void 0:gn.nodeType)!="\u9898\u96C6"&&(gn!=null&&gn.resourceOrigin)&&[1,2].includes(gn==null?void 0:gn.resourceOrigin)?kn.createElement("div",{style:{display:"flex",marginTop:"20rem",alignItems:"center"}},kn.createElement("span",{style:{color:"#1B8565",fontSize:"16rem"}},(gn==null?void 0:gn.resourceOrigin)===1?(zi=hi==null?void 0:hi[0])==null?void 0:zi.name:(Da=uo==null?void 0:uo[0])==null?void 0:Da.name),(0,on.JA)()&&((gn==null?void 0:gn.nodeType)==="\u8BD5\u5377"||(gn==null?void 0:gn.nodeType)==="\u8BD5\u9898")?"":kn.createElement(ue.ZP,{style:{height:"40rem",padding:"0rem 10rem",fontSize:"14rem",marginLeft:"10rem"},onClick:()=>or(void 0,null,function*(){yo(gn==null?void 0:gn.resourceUrl);let jn=yield(0,ge.ZP)("/api/subject_knowledge/create_study.json",{method:"post",body:{subject_id:Ta==null?void 0:Ta.pathId,uuid:gn==null?void 0:gn.uuid}})}),type:"primary"},"\u524D\u5F80\u67E5\u770B"),((gn==null?void 0:gn.nodeType)==="\u8BD5\u5377"||(gn==null?void 0:gn.nodeType)==="\u8BD5\u9898")&&(gn==null?void 0:gn.resourceOrigin)===1&&kn.createElement(ue.ZP,{style:{height:"40rem",padding:"0rem 10rem",fontSize:"14rem",marginLeft:"10rem"},onClick:()=>or(void 0,null,function*(){var jn,$i;const va=yield(0,Tt.Mb)({categoryId:(jn=hi==null?void 0:hi[0])==null?void 0:jn.id});va!=null&&va.exercise_id&&(0,Fe.xg)(`/classrooms/coursesId/exercise/${va.exercise_id}/${($i=Vn.userInfo)==null?void 0:$i.login}/initate_answer`)}),type:"primary"},"\u6A21\u62DF\u8003\u8BD5")):""),kn.createElement("div",{className:z.nodetitle},Co===1&&kn.createElement(oe.Z,{onClick:()=>Qo(2)}),Co===2&&kn.createElement(se.Z,{onClick:()=>Qo(1)}),kn.createElement("span",{style:{marginLeft:"10rem",fontSize:"16rem",color:"#1B8565"}},"\u8282\u70B9\u5173\u7CFB")),Co===2&&kn.createElement("div",{className:z.nodeboyd,style:{padding:0,minHeight:"530rem"}},kn.createElement(ie.default,{className:z.Tabs,activeKey:Hs,destroyInactiveTabPane:!0,onChange:jn=>{_l(parseInt(jn))},type:"card",items:Gs}))),za===4&&kn.createElement(me.Z,{spinning:cl},kn.createElement("div",null,(Ws==null?void 0:Ws.length)===0&&kn.createElement(ki.Z,{text:"\u5F53\u524D\u8282\u70B9\u4E0B\u6682\u65E0\u8D44\u6E90"}),Ws==null?void 0:Ws.map(jn=>{var $i;return kn.createElement("div",{className:z.gllist},kn.createElement("div",{style:{display:"flex",alignItems:"center"}},kn.createElement("div",{className:z.gltag,style:{background:(($i=ei==null?void 0:ei.find(va=>(va==null?void 0:va.name)==(jn==null?void 0:jn.nodeType)))==null?void 0:$i.color)||"#2D947C"}},jn==null?void 0:jn.nodeType),kn.createElement("div",{className:z.multiple,style:{flex:1}},jn==null?void 0:jn.name)),kn.createElement("div",{style:{marginTop:20,color:"#5F6368",display:"flex",alignItems:"center",justifyContent:"space-between"}},kn.createElement("div",{style:{flex:1}}),kn.createElement("div",null,(jn==null?void 0:jn.nodeType)==="\u89C6\u9891"&&(jn==null?void 0:jn.resourceOrigin)!==3&&kn.createElement(ue.ZP,{type:"primary",onClick:()=>or(void 0,null,function*(){var va;let ia=yield(0,ge.ZP)("/api/knowledge/v2/get_container_type.json",{method:"get",params:{url:jn==null?void 0:jn.resourceUrl,item_banks_group_ids:gn==null?void 0:gn.itemBanksGroupIds}});(((va=ia==null?void 0:ia.attachment)==null?void 0:va.file_type)==="video"||(ia==null?void 0:ia.container_type)==="video")&&fe.default.confirm({title:"\u64AD\u653E\u89C6\u9891",icon:null,closable:!0,footer:null,centered:!0,width:500,content:kn.createElement(Qe.Z,{allow_skip:!0,videoId:ia==null?void 0:ia.id,toLog:!0,src:jn==null?void 0:jn.resourceUrl,logWatchHistory:$a=>xl(Fr(Dr({},$a),{uuid:jn==null?void 0:jn.uuid,container_type:ia==null?void 0:ia.container_type,item:jn}))})})})},"\u64AD\u653E\u89C6\u9891"),(jn==null?void 0:jn.resourceOrigin)===3&&kn.createElement("div",{style:{display:"flex",marginTop:"20rem",alignItems:"center"}},kn.createElement(ue.ZP,{style:{height:"40rem",padding:"0rem 10rem",fontSize:"14rem",marginLeft:"10rem"},onClick:()=>or(void 0,null,function*(){let va=yield(0,ge.ZP)("/api/subject_knowledge/create_study.json",{method:"post",body:{subject_id:Ta==null?void 0:Ta.pathId,uuid:jn==null?void 0:jn.uuid}});window.open(jn==null?void 0:jn.resourceUrl)}),type:"primary"},"\u524D\u5F80\u67E5\u770B")),(jn==null?void 0:jn.nodeType)!="\u89C6\u9891"&&(jn==null?void 0:jn.nodeType)!="\u9898\u96C6"&&(jn!=null&&jn.resourceOrigin)&&[1,2].includes(jn==null?void 0:jn.resourceOrigin)?kn.createElement("div",{style:{display:"flex",marginTop:"20rem",alignItems:"center"}},(0,on.JA)()&&((jn==null?void 0:jn.nodeType)==="\u8BD5\u5377"||(jn==null?void 0:jn.nodeType)==="\u8BD5\u9898")?"":kn.createElement(ue.ZP,{style:{height:"40rem",padding:"0rem 10rem",fontSize:"14rem",marginLeft:"10rem"},onClick:()=>or(void 0,null,function*(){yo(jn==null?void 0:jn.resourceUrl);let va=yield(0,ge.ZP)("/api/subject_knowledge/create_study.json",{method:"post",body:{subject_id:Ta==null?void 0:Ta.pathId,uuid:jn==null?void 0:jn.uuid}})}),type:"primary"},"\u524D\u5F80\u67E5\u770B"),((jn==null?void 0:jn.nodeType)==="\u8BD5\u5377"||(jn==null?void 0:jn.nodeType)==="\u8BD5\u9898")&&(jn==null?void 0:jn.resourceOrigin)===1&&kn.createElement(ue.ZP,{style:{height:"40rem",padding:"0rem 10rem",fontSize:"14rem",marginLeft:"10rem"},onClick:()=>or(void 0,null,function*(){var va;let ia=yield(0,ge.ZP)("/api/knowledge/v2/get_container_type.json",{method:"get",params:{url:jn==null?void 0:jn.resourceUrl,item_banks_group_ids:gn==null?void 0:gn.itemBanksGroupIds}});if((jn==null?void 0:jn.resourceOrigin)===1&&(jn==null?void 0:jn.nodeType)!=="\u9898\u96C6"&&(ia==null?void 0:ia.status)===0){const $a=yield(0,Tt.Mb)({categoryId:ia==null?void 0:ia.examination_bank_id});$a!=null&&$a.exercise_id&&(0,Fe.xg)(`/classrooms/coursesId/exercise/${$a.exercise_id}/${(va=Vn.userInfo)==null?void 0:va.login}/initate_answer`)}}),type:"primary"},"\u6A21\u62DF\u8003\u8BD5")):"")))}))),za===3&&kn.createElement("div",null,(0,on.JA)()?kn.createElement(Kt,{uuid:(gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id)}):kn.createElement(ht,{uuid:(gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id)}))),kn.createElement(fe.default,{title:kn.createElement("span",{style:{fontSize:"18rem",color:"#000"}},Oo===3?"\u7F16\u8F91":"\u521B\u5EFA","\u8282\u70B9"),centered:!0,destroyOnClose:!0,width:"1200rem",open:Oo>0,getContainer:()=>Ar.current,onCancel:()=>{Do(0),Xi.resetFields(),ts({qx:[],bh:[],hx:[],gl:[]}),As([]),lo({}),wa([]),fs([])},okButtonProps:{loading:xs},onOk:()=>{Xi.submit()}},kn.createElement("div",{className:z.addmodal},kn.createElement("div",{className:z.title},"\u8282\u70B9\u5C5E\u6027"),kn.createElement(Me.default,{className:z.form,labelCol:{flex:"92rem"},layout:"horizontal",form:Xi,colon:!1,onValuesChange:(jn,$i)=>{var va,ia,$a,La;lo(Dr({},$i)),($i==null?void 0:$i.resourceOrigin)!==1&&wa([]),((ia=(va=$i==null?void 0:$i.label)==null?void 0:va[0])==null?void 0:ia.name)!=="\u9898\u96C6"&&fs([]),((La=($a=$i==null?void 0:$i.label)==null?void 0:$a[0])==null?void 0:La.item_type)!==2&&(wa([]),As([]),fs([]),Xi.setFieldsValue({resourceOrigin:0,url:""}))},onFinish:(0,nn.debounce)(jn=>or(void 0,null,function*(){var $i,va,ia,$a,La,Pa,co,Bo,_t,xt,Xt,cn,wn,Rn,qn,En,er,Xn,Pr,yr,br,gr,pr,De,ke,Ve,qe,it,dt,bt,vt,Nt,Pt,Ht,$t,hn,Pn,Dn,pn,bn,Gn,Un,sr,cr,ni,Tr,Si,Ui,Fi,jr;if((($i=ha==null?void 0:ha.bh)==null?void 0:$i.length)===0){pe.ZP.warning("\u8282\u70B9\u5305\u542B\u5173\u7CFB\u4E0D\u80FD\u4E3A\u7A7A");return}if((jn==null?void 0:jn.resourceOrigin)===0){pe.ZP.warning("\u8BF7\u9009\u62E9\u8D44\u6E90\u7C7B\u578B");return}if((jn==null?void 0:jn.resourceOrigin)===1&&(hi==null?void 0:hi.length)<=0&&((va=jn==null?void 0:jn.label[0])==null?void 0:va.name)!=="\u9898\u96C6"){pe.ZP.warning("\u8BF7\u9009\u62E9\u5BF9\u5E94\u8D44\u6E90");return}if((jn==null?void 0:jn.resourceOrigin)===1&&(Vo==null?void 0:Vo.length)<=0&&((ia=jn==null?void 0:jn.label[0])==null?void 0:ia.name)==="\u9898\u96C6"){pe.ZP.warning("\u8BF7\u9009\u62E9\u5BF9\u5E94\u8D44\u6E90");return}if((jn==null?void 0:jn.resourceOrigin)===2&&(uo==null?void 0:uo.length)===0){pe.ZP.warning("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}To(!0);let Vr=Oo===3?"/api/knowledge/v2/mod_node.json":"/api/knowledge/v2/add_node.json",yi=Oo===3?{subject_id:Ta==null?void 0:Ta.pathId,properties:{description:jn.description,rootNodeUuid:gn==null?void 0:gn.rootNodeUuid,name:jn.name,uuid:(gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id),nodeType:($a=jn==null?void 0:jn.label[0])==null?void 0:$a.name,tags:((Pa=(La=jn.tag)==null?void 0:La.map(fr=>fr==null?void 0:fr.name))==null?void 0:Pa.join("\uFF0C"))||"",color:gn==null?void 0:gn.color,resourceOrigin:jn.resourceOrigin,resourceUrl:jn.resourceOrigin===3?jn.url:jn.resourceOrigin===2?((_t=(Bo=(co=uo==null?void 0:uo[0])==null?void 0:co.response)==null?void 0:Bo.url)==null?void 0:_t.indexOf("educoder.net"))>-1?(Xt=(xt=uo==null?void 0:uo[0])==null?void 0:xt.response)==null?void 0:Xt.url:((cn=Sn==null?void 0:Sn.setting)==null?void 0:cn.public_bucket_host)+((Rn=(wn=uo==null?void 0:uo[0])==null?void 0:wn.response)==null?void 0:Rn.url):(qn=hi==null?void 0:hi[0])==null?void 0:qn.url,container_type:((En=jn==null?void 0:jn.label[0])==null?void 0:En.name)==="\u9898\u96C6"?"ItemBanksGroup":(jn.resourceOrigin===1||jn.resourceOrigin===2)&&((er=hi==null?void 0:hi[0])==null?void 0:er.container_type)||((Pr=(Xn=uo==null?void 0:uo[0])==null?void 0:Xn.response)==null?void 0:Pr.container_type),container_id:(jn.resourceOrigin===1||jn.resourceOrigin===2)&&((yr=hi==null?void 0:hi[0])==null?void 0:yr.container_id)||((gr=(br=uo==null?void 0:uo[0])==null?void 0:br.response)==null?void 0:gr.container_id),itemBanksGroupIds:Vo==null?void 0:Vo.map(fr=>fr==null?void 0:fr.group_id).toString()},subgraphNodeUuid:Jr,relationships:[...(pr=ha.bh)==null?void 0:pr.map(fr=>({startNodeUuid:fr.uuid,endNodeUuid:(gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id),type:"\u5305\u542B"})),...Qs==null?void 0:Qs.map(fr=>({endNodeUuid:fr.uuid,startNodeUuid:(gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id),type:"\u5305\u542B"})),...(De=ha.qx)==null?void 0:De.map(fr=>({endNodeUuid:fr.uuid,startNodeUuid:(gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id),type:"\u524D\u5E8F"})),...(ke=ha.hx)==null?void 0:ke.map(fr=>({endNodeUuid:fr.uuid,startNodeUuid:(gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id),type:"\u540E\u5E8F"})),...(Ve=ha.gl)==null?void 0:Ve.map(fr=>({startNodeUuid:fr.uuid,endNodeUuid:(gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id),type:"\u5173\u8054"}))]}:{label:((qe=jn==null?void 0:jn.label[0])==null?void 0:qe.item_type)===1?"\u6807\u7B7E":"\u8D44\u6E90",subject_id:Ta==null?void 0:Ta.pathId,properties:{description:jn.description,rootNodeUuid:gn==null?void 0:gn.rootNodeUuid,name:jn.name,nodeType:(it=jn==null?void 0:jn.label[0])==null?void 0:it.name,tags:((bt=(dt=jn.tag)==null?void 0:dt.map(fr=>fr==null?void 0:fr.name))==null?void 0:bt.join("\uFF0C"))||"",color:Oo===1?"2":parseInt(gn==null?void 0:gn.colorType)+1+"",resourceOrigin:jn.resourceOrigin,resourceUrl:jn.resourceOrigin===3?jn.url:jn.resourceOrigin===2?((Pt=(Nt=(vt=uo==null?void 0:uo[0])==null?void 0:vt.response)==null?void 0:Nt.url)==null?void 0:Pt.indexOf("educoder.net"))>-1?($t=(Ht=uo==null?void 0:uo[0])==null?void 0:Ht.response)==null?void 0:$t.url:((hn=Sn==null?void 0:Sn.setting)==null?void 0:hn.public_bucket_host)+((Dn=(Pn=uo==null?void 0:uo[0])==null?void 0:Pn.response)==null?void 0:Dn.url):(pn=hi==null?void 0:hi[0])==null?void 0:pn.url,container_type:((bn=jn==null?void 0:jn.label[0])==null?void 0:bn.name)==="\u9898\u96C6"?"ItemBanksGroup":(jn.resourceOrigin===1||jn.resourceOrigin===2)&&((Gn=hi==null?void 0:hi[0])==null?void 0:Gn.container_type)||((sr=(Un=uo==null?void 0:uo[0])==null?void 0:Un.response)==null?void 0:sr.container_type),container_id:(jn.resourceOrigin===1||jn.resourceOrigin===2)&&((cr=hi==null?void 0:hi[0])==null?void 0:cr.container_id)||((Tr=(ni=uo==null?void 0:uo[0])==null?void 0:ni.response)==null?void 0:Tr.container_id),itemBanksGroupIds:Vo==null?void 0:Vo.map(fr=>fr==null?void 0:fr.group_id).toString()},subgraphNodeUuid:Jr,relationships:[...(Si=ha.bh)==null?void 0:Si.map(fr=>({startNodeUuid:fr.uuid,type:"\u5305\u542B"})),...(Ui=ha.qx)==null?void 0:Ui.map(fr=>({startNodeUuid:fr.uuid,type:"\u524D\u5E8F"})),...(Fi=ha.hx)==null?void 0:Fi.map(fr=>({endNodeUuid:fr.uuid,type:"\u540E\u5E8F"})),...(jr=ha.gl)==null?void 0:jr.map(fr=>({startNodeUuid:fr.uuid,type:"\u5173\u8054"}))]};const zn=yield(0,ge.ZP)(Vr,{method:"POST",body:yi});To(!1),(zn==null?void 0:zn.status)===0&&(Xs({graphable_id:Ta==null?void 0:Ta.pathId}),pe.ZP.info(Oo===3?"\u7F16\u8F91\u6210\u529F":"\u521B\u5EFA\u6210\u529F"),Do(0),Gi(!1),pi(),Xi.resetFields(),As([]),lo({}),wa([]),fs([]),ts({qx:[],hx:[],bh:[],gl:[]}))}),500),size:"large"},kn.createElement(Me.default.Item,{label:"\u8282\u70B9\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8282\u70B9\u540D\u79F0"},{type:"string",max:200,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"},{type:"string",whitespace:!0,message:"\u5185\u5BB9\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C"}]},kn.createElement(he.default,{maxLength:200,showCount:!0,placeholder:"\u8BF7\u8F93\u5165"})),kn.createElement(Me.default.Item,{label:"\u8282\u70B9\u7B80\u4ECB",name:"description",rules:[{type:"string",max:5e3,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"},{type:"string",whitespace:!0,message:"\u5185\u5BB9\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C"}]},kn.createElement(ua.Z,{defaultValue:Oo===3?gn==null?void 0:gn.description:"",watch:!0,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5E16\u5B50\u8BE6\u60C5\uFF0C\u6700\u5927\u9650\u5236\u4E3A5000\u4E2A\u5B57\u7B26"})),kn.createElement(Me.default.Item,{label:"\u8282\u70B9\u7C7B\u578B",name:"label",style:{marginBottom:"0rem"},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8282\u70B9\u7C7B\u578B"}]},kn.createElement(Ne,{containerRef:Ar,type:5,pathsDetail:un,showmodal:Oo!==3,dataSources:[]})),((Ra=(Ca=Pi==null?void 0:Pi.label)==null?void 0:Ca[0])==null?void 0:Ra.item_type)===2&&kn.createElement(Me.default.Item,{label:" ",name:"resourceOrigin",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8D44\u6E90\u7C7B\u578B"}]},kn.createElement(E.ZP.Group,{className:z.radioform},kn.createElement(E.ZP,{value:1},"\u9009\u62E9\u5E73\u53F0\u8D44\u6E90"),((bi=(to=Pi==null?void 0:Pi.label)==null?void 0:to[0])==null?void 0:bi.name)!=="\u9898\u96C6"&&kn.createElement(E.ZP,{value:2},"\u4E0A\u4F20\u6587\u4EF6"),((Ei=(Yi=Pi==null?void 0:Pi.label)==null?void 0:Yi[0])==null?void 0:Ei.name)!=="\u9898\u96C6"&&kn.createElement(E.ZP,{value:3},"\u5916\u94FE"))),(Pi==null?void 0:Pi.resourceOrigin)===1&&((kr=(Ci=Pi==null?void 0:Pi.label)==null?void 0:Ci[0])==null?void 0:kr.item_type)===2&&kn.createElement(Me.default.Item,{label:" ",name:""},kn.createElement(ue.ZP,{onClick:()=>{var jn,$i,va,ia,$a,La,Pa,co;(($i=(jn=Pi==null?void 0:Pi.label)==null?void 0:jn[0])==null?void 0:$i.name)==="\u9898\u96C6"?(pl(!0),Ms(Vo),zo()):((ia=(va=Pi==null?void 0:Pi.label)==null?void 0:va[0])==null?void 0:ia.name)==="\u8BD5\u9898"?Fs(!0):(fi(!0),Ri(((La=($a=Pi==null?void 0:Pi.label)==null?void 0:$a[0])==null?void 0:La.name)==="\u89C6\u9891"?"2":((co=(Pa=Pi==null?void 0:Pi.label)==null?void 0:Pa[0])==null?void 0:co.name)==="\u8BD5\u5377"?"4":"1"))},type:"primary",style:{height:"40rem",lineHeight:"40rem",padding:"0rem 32rem",boxShadow:"none"}},((ma=(Zi=Pi==null?void 0:Pi.label)==null?void 0:Zi[0])==null?void 0:ma.name)==="\u9898\u96C6"?"\u9009\u62E9\u9898\u96C6":"\u9009\u62E9\u8D44\u6E90"),(hi==null?void 0:hi.length)>0&&kn.createElement("div",{style:{color:"#1B8565",marginTop:"5rem",fontSize:"16rem",display:"flex",alignItems:"center"}},kn.createElement("div",{className:z.multiple,title:(ba=hi==null?void 0:hi[0])==null?void 0:ba.name},((ir=hi==null?void 0:hi[0])==null?void 0:ir.name)||Xi.getFieldValue("name")+"\uFF08"+((Ji=hi==null?void 0:hi[0])==null?void 0:Ji.question_count)+"\uFF09"),kn.createElement("i",{style:{fontSize:"16rem",cursor:"pointer",marginLeft:"10rem"},onClick:()=>{wa([])},className:"iconfont icon-shanchu12"})," "),(Vo==null?void 0:Vo.length)>0&&(Vo==null?void 0:Vo.map(jn=>kn.createElement("div",{style:{color:"#1B8565",marginTop:"5rem",fontSize:"16rem",display:"flex",alignItems:"center"}},kn.createElement("div",{className:z.multiple,title:jn==null?void 0:jn.name},jn==null?void 0:jn.name),kn.createElement("i",{style:{fontSize:"16rem",cursor:"pointer",marginLeft:"10rem"},onClick:()=>{fs(Vo==null?void 0:Vo.filter($i=>($i==null?void 0:$i.group_id)!==(jn==null?void 0:jn.group_id)))},className:"iconfont icon-shanchu12"})," ")))),(Pi==null?void 0:Pi.resourceOrigin)===2&&((no=(Va=Pi==null?void 0:Pi.label)==null?void 0:Va[0])==null?void 0:no.item_type)===2&&kn.createElement(Me.default.Item,{label:" ",name:"file",shouldUpdate:!0},kn.createElement(Oe.default,Dr({},Rl),kn.createElement(ue.ZP,{type:"primary",style:{height:"40rem",lineHeight:"40rem",padding:"0rem 32rem",boxShadow:"none"}},"\u4E0A\u4F20\u6587\u4EF6"))),(Pi==null?void 0:Pi.resourceOrigin)===3&&((xi=(Ya=Pi==null?void 0:Pi.label)==null?void 0:Ya[0])==null?void 0:xi.item_type)===2&&kn.createElement(Me.default.Item,{label:" ",name:"url"},kn.createElement(Me.default.Item,{label:"\u5916\u94FE\u94FE\u63A5",name:"url",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5916\u94FE"}]},kn.createElement(he.default,{style:{height:"40rem"}}))),kn.createElement(Me.default.Item,{label:"\u8282\u70B9\u6807\u7B7E",name:"tag"},kn.createElement(Ne,{containerRef:Ar,type:3,pathsDetail:un,showmodal:!0,dataSources:[]})))),kn.createElement("div",{className:z.addmodal,style:{marginTop:"20rem"}},kn.createElement("div",{className:z.title},kn.createElement("span",null,"\u8282\u70B9\u5173\u7CFB"),kn.createElement("span",{style:{cursor:"pointer"},onClick:()=>{Bl()}},"\u5173\u7CFB\u8BBE\u7F6E")),kn.createElement("div",{className:z.gxcoent,style:{padding:"20rem 25rem"}},kn.createElement("div",{className:z.gxtitle},kn.createElement("div",{className:z.Colortitle,style:{background:"#6236ff"}}),kn.createElement("div",null,"\u88AB\u5305\u542B\uFF08",(pa=ha.bh)==null?void 0:pa.length,"\uFF09")),kn.createElement("div",{className:z.gxbody},(_a=ha==null?void 0:ha.bh)==null?void 0:_a.map(jn=>kn.createElement("div",{className:z.tag,style:{background:"#6236ff"}},kn.createElement("span",{style:{marginRight:"10rem"}},jn==null?void 0:jn.name)," ",kn.createElement(ne.Z,{onClick:()=>{var $i;let va=($i=ha==null?void 0:ha.bh)==null?void 0:$i.filter(ia=>ia.uuid!==jn.uuid);ts({bh:va,hx:ha==null?void 0:ha.hx,qx:ha==null?void 0:ha.qx,gl:ha==null?void 0:ha.gl})}})))),kn.createElement("div",{className:z.gxtitle,style:{marginTop:"30rem"}},kn.createElement("div",{className:z.Colortitle,style:{background:"#24A881"}}),kn.createElement("div",null,"\u524D\u5E8F\uFF08",(oa=ha.qx)==null?void 0:oa.length,"\uFF09")),kn.createElement("div",{className:z.gxbody},(Wa=ha==null?void 0:ha.qx)==null?void 0:Wa.map(jn=>kn.createElement("div",{className:z.tag,style:{background:"#24A881"}},kn.createElement("span",{style:{marginRight:"10rem"}},jn==null?void 0:jn.name)," ",kn.createElement(ne.Z,{onClick:()=>{var $i;let va=($i=ha==null?void 0:ha.qx)==null?void 0:$i.filter(ia=>ia.uuid!==jn.uuid);ts({qx:va,bh:ha==null?void 0:ha.bh,hx:ha==null?void 0:ha.hx,gl:ha==null?void 0:ha.gl})}})))),kn.createElement("div",{className:z.gxtitle,style:{marginTop:"30rem"}},kn.createElement("div",{className:z.Colortitle,style:{background:"#EC8657"}}),kn.createElement("div",null,"\u540E\u5E8F\uFF08",(Ka=ha.hx)==null?void 0:Ka.length,"\uFF09")),kn.createElement("div",{className:z.gxbody},(fo=ha==null?void 0:ha.hx)==null?void 0:fo.map(jn=>kn.createElement("div",{className:z.tag,style:{background:"#EC8657"}},kn.createElement("span",{style:{marginRight:"10rem"}},jn==null?void 0:jn.name)," ",kn.createElement(ne.Z,{onClick:()=>{var $i;let va=($i=ha==null?void 0:ha.hx)==null?void 0:$i.filter(ia=>ia.uuid!==jn.uuid);ts({qx:ha==null?void 0:ha.qx,bh:ha==null?void 0:ha.bh,hx:va,gl:ha==null?void 0:ha.gl})}})))),kn.createElement("div",{className:z.gxtitle,style:{marginTop:"30rem"}},kn.createElement("div",{className:z.Colortitle,style:{background:"#497DFF"}}),kn.createElement("div",null,"\u5173\u8054\uFF08",(Eo=ha.gl)==null?void 0:Eo.length,"\uFF09")),kn.createElement("div",{className:z.gxbody},(io=ha==null?void 0:ha.gl)==null?void 0:io.map(jn=>kn.createElement("div",{className:z.tag,style:{background:"#497DFF"}},kn.createElement("span",{style:{marginRight:"10rem"}},jn==null?void 0:jn.name)," ",kn.createElement(ne.Z,{onClick:()=>{var $i;let va=($i=ha==null?void 0:ha.gl)==null?void 0:$i.filter(ia=>ia.uuid!==jn.uuid);ts({qx:ha==null?void 0:ha.qx,hx:ha==null?void 0:ha.hx,bh:ha==null?void 0:ha.bh,gl:va})}}))))))),kn.createElement(fe.default,{title:"\u9009\u62E9\u9898\u96C6",open:Es,destroyOnClose:!0,centered:!0,getContainer:()=>Ar.current,width:"1200rem",onOk:()=>{if((qs==null?void 0:qs.length)<=0){pe.ZP.info("\u8BF7\u9009\u62E9\u9898\u96C6");return}fs(qs),pl(!1)},onCancel:()=>{Ms([]),pl(!1)}},kn.createElement(b.default,{checkable:!0,style:{margin:20,maxHeight:400,overflow:"auto"},blockNode:!0,checkStrictly:!0,checkedKeys:qs==null?void 0:qs.map(jn=>jn==null?void 0:jn.group_id),onCheck:(jn,$i)=>{Ms($i==null?void 0:$i.checkedNodes)},treeData:Cs,fieldNames:{key:"group_id",title:"name"},titleRender:jn=>kn.createElement("div",{style:{display:"flex",alignItems:"center",paddingRight:"14px"}},kn.createElement(ae.Z,{title:jn==null?void 0:jn.name},kn.createElement("div",{className:z.multiple,style:{display:"flex",alignItems:"center",maxWidth:"80%"}},kn.createElement("img",{src:vn,style:{marginRight:10}}),kn.createElement("span",null,jn==null?void 0:jn.name))),kn.createElement("div",{style:{padding:"0rem 10rem",fontSize:"12rem",background:"#F6F7F9",color:"#909D99",borderRadius:"20rem"}},"\u8BD5\u9898\u6570 ",jn==null?void 0:jn.count))})),kn.createElement(fe.default,{title:"\u9009\u62E9\u5E73\u53F0\u8D44\u6E90",open:zr,destroyOnClose:!0,centered:!0,getContainer:()=>Ar.current,width:"1200rem",onOk:()=>{fi(!1)},onCancel:()=>{fi(!1),Oo!==3&&wa([]),Ri("1")}},kn.createElement("div",{className:z.settingmodal},kn.createElement(ie.default,{className:z.Tabs,activeKey:Sa,destroyInactiveTabPane:!0,onChange:jn=>{Ri(jn)},type:"card",items:((Ba=(ao=Pi==null?void 0:Pi.label)==null?void 0:ao[0])==null?void 0:Ba.name)==="\u89C6\u9891"?el.filter(jn=>(jn==null?void 0:jn.label)==="\u89C6\u9891"):((Wo=(Fa=Pi==null?void 0:Pi.label)==null?void 0:Fa[0])==null?void 0:Wo.name)==="\u8BD5\u5377"?el.filter(jn=>(jn==null?void 0:jn.label)==="\u8BD5\u5377"):el.filter(jn=>(jn==null?void 0:jn.label)!=="\u89C6\u9891")}))),ul&&kn.createElement(ci,{setScoreShow:Fs,isshixuns:xa,ScoreShow:ul,listitem:hi==null?void 0:hi[0],isloadings:ks,onOk:(jn,$i,va,ia)=>or(void 0,null,function*(){bs(!0);let $a={item_bank_ids:jn,shixun_ids:$i,name:Xi.getFieldValue("name")+"\uFF08"+(parseInt(jn.length)+parseInt($i.length))+"\u9053\uFF09",subject_id:Ta==null?void 0:Ta.pathId};bs(!1);let La=yield(0,ge.ZP)("/api/knowledge/v2/create_by_knowledge.json",{method:"post",body:$a});if((La==null?void 0:La.status)===0){Fs(!1);let Pa={container_id:La==null?void 0:La.container_id,container_type:La==null?void 0:La.container_type,url:La==null?void 0:La.resourceUrl,question_count:La==null?void 0:La.question_count,questionIdArr:jn,shixun_ids:$i};wa([Pa])}})}),kn.createElement(yt.Z,{close:!0,style:{zIndex:1300,background:"rgba(1, 10, 35, 0.5)"},data:Ds==null?void 0:Ds.url,type:Ds==null?void 0:Ds.file_type,disabledDownload:!0,onClose:()=>_s({})}),kn.createElement(fe.default,{title:"\u5173\u7CFB\u8BBE\u7F6E",open:Qa,destroyOnClose:!0,centered:!0,getContainer:()=>Ar.current,width:"1200rem",onCancel:()=>{Ja(!1);let jn=JSON.parse(sessionStorage.getItem("typesdatajson"));ts(jn)},onOk:()=>{let jn=JSON.parse(sessionStorage.getItem("typesdatajsoncopy"));ts(jn),Ja(!1)}},kn.createElement("div",{className:z.settingmodal},kn.createElement(ie.default,{className:z.Tabs,activeKey:hs,destroyInactiveTabPane:!0,onChange:jn=>{yl(jn)},type:"card",items:zs})))))};var ri=(0,Ye.connect)(({pathsDetail:un,user:Vn,loading:Sn,globalSetting:Rr})=>({pathsDetail:un,user:Vn,globalSetting:Rr,loading:Sn.models.index}))(Hr)},77722:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return he}});var te={noData:"noData___Luxe1"},Ye=Ce(14006),Me=Ce(92310),pe=Ce.n(Me),Oe=Ce(25399),ve=Ce(61485),ue=Ce(59301),he=({style:le={},className:ae,text:ie="\u6682\u65E0\u6570\u636E",textColor:me="#666",buttonText:E,buttonTexttow:b,ontwoClick:z,onClick:ne})=>ue.createElement("div",{className:pe()(te.noData,ae),style:le},ue.createElement("img",{src:Ye}),!!ie&&ue.createElement("span",{style:{color:me}},ie),ue.createElement("span",{style:{display:"flex"}},!!E&&ue.createElement("div",{onClick:ne},E),!!b&&ue.createElement("div",{style:{marginLeft:"20rem",display:"flex",alignItems:"center",justifyContent:"center"},onClick:z},b," ",ue.createElement(Oe.Z,{title:"\u6839\u636E\u65E7\u7248\u77E5\u8BC6\u56FE\u8C31\u5185\u5BB9\u6216\u8BFE\u7A0B\u7AE0\u8282\u53CA\u8D44\u6E90\u5185\u5BB9\u81EA\u52A8\u751F\u6210\u77E5\u8BC6\u56FE\u8C31"},ue.createElement(ve.Z,{style:{color:"#fff",marginLeft:5,marginTop:0}})))))},67195:function(Yn,en,Ce){"use strict";Ce.d(en,{BU:function(){return Ye},Dj:function(){return te},gH:function(){return Me},vp:function(){return pe}});function te(Oe){try{Oe.mozRequestFullScreen?Oe.mozRequestFullScreen():Oe.webkitRequestFullScreen&&Oe.webkitRequestFullScreen()}catch(ve){console.log(ve,":e")}}function Ye(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}const Me=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function pe(){var Oe=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,ve=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",Oe),window.isFullScreen?window.isFullScreen:Oe!=null}},63392:function(Yn,en,Ce){"use strict";Ce.d(en,{U:function(){return he}});var te=Ce(59301),Ye=Object.defineProperty,Me=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,ve=(le,ae,ie)=>ae in le?Ye(le,ae,{enumerable:!0,configurable:!0,writable:!0,value:ie}):le[ae]=ie,ue=(le,ae)=>{for(var ie in ae||(ae={}))pe.call(ae,ie)&&ve(le,ie,ae[ie]);if(Me)for(var ie of Me(ae))Oe.call(ae,ie)&&ve(le,ie,ae[ie]);return le},fe=(le,ae,ie)=>new Promise((me,E)=>{var b=oe=>{try{ne(ie.next(oe))}catch(se){E(se)}},z=oe=>{try{ne(ie.throw(oe))}catch(se){E(se)}},ne=oe=>oe.done?me(oe.value):Promise.resolve(oe.value).then(b,z);ne((ie=ie.apply(le,ae)).next())});function he(le,ae){const[ie,me]=(0,te.useState)(ae),[E,b]=(0,te.useState)(!1),[z,ne]=(0,te.useState)();return[ie,E,(se,de=!1)=>fe(this,null,function*(){const a=de?ae:ue(ue({},ie),se);b(!0),me(a);const x=yield le(a);return b(!1),ne(x),x}),z,ne]}},20047:function(Yn,en,Ce){"use strict";Ce.d(en,{AL:function(){return a},Iy:function(){return ae},Qv:function(){return E},ez:function(){return de},jb:function(){return ie}});var te=Ce(32834),Ye=Ce.n(te),Me=Ce(11690),pe=Ce.n(Me);let Oe=1;function ve(_e,ye){const be=_e.match(/^(\s+)(?:```)/);if(be===null)return ye;const Se=be[1];return ye.split(`
|
|
|
`).map(Be=>{const Ae=Be.match(/^\s+/);if(Ae===null)return Be;const[we]=Ae;return we.length>=Se.length?Be.slice(Se.length):Be}).join(`
|
|
|
`)}let ue=[],fe=["<ul>"];const he=new(Ye()).Renderer,le=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function ae(){ue.length=0,fe=["<ul>"]}const ie={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function me(_e,ye,be,Se){if(ye>=_e.length||_e[ye].level<=be)return ye;var Be=_e[ye];Se.push("<li><a href='#"+Oe+Be.anchor+"'>"+Be.text+"</a>"),ye++;var Ae=[];return ye=me(_e,ye,Be.level,Ae),Ae.length>0&&(Se.push("<ul>"),Ae.forEach(function(we){Se.push(we)}),Se.push("</ul>")),Se.push("</li>"),ye=me(_e,ye,be,Se),ye}function E(){return me(ue,0,0,fe),fe.push("</ul>"),fe.join("")}const b={heading(_e){const ye=le.exec(_e);if(Oe+=1,ye)return{type:"heading",raw:ye[0],depth:ye[1].length,text:ye[2]}},fences(_e){const ye=this.rules.block.fences.exec(_e);if(ye){const be=ye[0];let Se=ve(be,ye[3]||"");const Be=ye[2]?ye[2].trim():ye[2];if(["latex","katex","math"].indexOf(Be)>=0){const Ae=oe(),we=Se;Se=Ae,se[Ae]={type:"block",expression:we}}return{type:"code",raw:be,lang:Be,text:Se}}}},z=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ne=0;const oe=()=>`__special_katext_id_${ne++}__`;let se={};function de(){return se}function a(){ne=0,se={}}function x(_e){return _e=_e.replace(z,(ye,be)=>{const Se=oe();return se[Se]={type:"inline",expression:be},Se}),_e}const re=he.listitem;he.listitem=function(_e){return re(x(_e))};const ce=he.paragraph;he.paragraph=function(_e){return ce(x(_e))};const ge=he.tablecell;he.tablecell=function(_e,ye){return ge(x(_e),ye)},he.code=function(_e,ye,be){const Se=(ye||"").match(/\S*/)[0];return Se?["latex","katex","math"].indexOf(Se)>=0?`<p class='editormd-tex'>${_e}</p>`:`<pre class="prettyprint linenums"><code class="language-${ye}">${be?_e:(0,Me.escape)(_e,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(be?_e:(0,Me.escape)(_e,!0))+"</code></pre>"},he.heading=function(_e,ye,be){let Se=this.options.headerPrefix+be.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ue.push({anchor:Se,level:ye,text:_e}),"<h"+ye+' id="'+Oe+Se+'">'+_e+"</h"+ye+">"},Ye().setOptions({silent:!0,gfm:!0,pedantic:!1}),Ye().use({tokenizer:b,renderer:he}),en.ZP=Ye()},72790:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return ar}});class te{static install(){Object.setPrototypeOf=Object.setPrototypeOf||function(Ie,je){return Ie.__proto__=je,Ie},Object.assign=Object.assign||function(Ie){if(Ie==null)throw new TypeError("Cannot convert undefined or null to object");let je=Object(Ie);for(let Je=1;Je<arguments.length;Je++){let ht=arguments[Je];if(ht!=null)for(let Et in ht)ht.hasOwnProperty(Et)&&(je[Et]=ht[Et])}return je},typeof self.Promise!="function"&&Ce(3867).polyfill()}}te.install();var Ye=te,Me=Ce(86204),pe=Ce.n(Me);class Oe{static e(Ie,je){(!Ie||Oe.FORCE_GLOBAL_TAG)&&(Ie=Oe.GLOBAL_TAG);let Je=`[${Ie}] > ${je}`;Oe.ENABLE_CALLBACK&&Oe.emitter.emit("log","error",Je),Oe.ENABLE_ERROR&&(console.error?console.error(Je):console.warn?console.warn(Je):console.log(Je))}static i(Ie,je){(!Ie||Oe.FORCE_GLOBAL_TAG)&&(Ie=Oe.GLOBAL_TAG);let Je=`[${Ie}] > ${je}`;Oe.ENABLE_CALLBACK&&Oe.emitter.emit("log","info",Je),Oe.ENABLE_INFO&&(console.info?console.info(Je):console.log(Je))}static w(Ie,je){(!Ie||Oe.FORCE_GLOBAL_TAG)&&(Ie=Oe.GLOBAL_TAG);let Je=`[${Ie}] > ${je}`;Oe.ENABLE_CALLBACK&&Oe.emitter.emit("log","warn",Je),Oe.ENABLE_WARN&&(console.warn?console.warn(Je):console.log(Je))}static d(Ie,je){(!Ie||Oe.FORCE_GLOBAL_TAG)&&(Ie=Oe.GLOBAL_TAG);let Je=`[${Ie}] > ${je}`;Oe.ENABLE_CALLBACK&&Oe.emitter.emit("log","debug",Je),Oe.ENABLE_DEBUG&&(console.debug?console.debug(Je):console.log(Je))}static v(Ie,je){(!Ie||Oe.FORCE_GLOBAL_TAG)&&(Ie=Oe.GLOBAL_TAG);let Je=`[${Ie}] > ${je}`;Oe.ENABLE_CALLBACK&&Oe.emitter.emit("log","verbose",Je),Oe.ENABLE_VERBOSE&&console.log(Je)}}Oe.GLOBAL_TAG="flv.js",Oe.FORCE_GLOBAL_TAG=!1,Oe.ENABLE_ERROR=!0,Oe.ENABLE_INFO=!0,Oe.ENABLE_WARN=!0,Oe.ENABLE_DEBUG=!0,Oe.ENABLE_VERBOSE=!0,Oe.ENABLE_CALLBACK=!1,Oe.emitter=new(pe());var ve=Oe;class ue{constructor(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}reset(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}addBytes(Ie){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=Ie,this._totalBytes+=Ie):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=Ie,this._totalBytes+=Ie):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=Ie,this._totalBytes+=Ie,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let Ie=(this._now()-this._lastCheckpoint)/1e3;return Ie==0&&(Ie=1),this._intervalBytes/Ie/1024}get lastSecondKBps(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let Ie=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/Ie/1024}}var fe=ue;class he{constructor(Ie){this._message=Ie}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class le extends he{constructor(Ie){super(Ie)}get name(){return"IllegalStateException"}}class ae extends he{constructor(Ie){super(Ie)}get name(){return"InvalidArgumentException"}}class ie extends he{constructor(Ie){super(Ie)}get name(){return"NotImplementedException"}}const me={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},E={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"};class b{constructor(Ie){this._type=Ie||"undefined",this._status=me.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=me.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===me.kConnecting||this._status===me.kBuffering}get type(){return this._type}get status(){return this._status}get needStashBuffer(){return this._needStash}get onContentLengthKnown(){return this._onContentLengthKnown}set onContentLengthKnown(Ie){this._onContentLengthKnown=Ie}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect(Ie){this._onURLRedirect=Ie}get onDataArrival(){return this._onDataArrival}set onDataArrival(Ie){this._onDataArrival=Ie}get onError(){return this._onError}set onError(Ie){this._onError=Ie}get onComplete(){return this._onComplete}set onComplete(Ie){this._onComplete=Ie}open(Ie,je){throw new ie("Unimplemented abstract function!")}abort(){throw new ie("Unimplemented abstract function!")}}let z={};function ne(){let dn=self.navigator.userAgent.toLowerCase(),Ie=/(edge)\/([\w.]+)/.exec(dn)||/(opr)[\/]([\w.]+)/.exec(dn)||/(chrome)[ \/]([\w.]+)/.exec(dn)||/(iemobile)[\/]([\w.]+)/.exec(dn)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(dn)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(dn)||/(webkit)[ \/]([\w.]+)/.exec(dn)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(dn)||/(msie) ([\w.]+)/.exec(dn)||dn.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(dn)||dn.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(dn)||[],je=/(ipad)/.exec(dn)||/(ipod)/.exec(dn)||/(windows phone)/.exec(dn)||/(iphone)/.exec(dn)||/(kindle)/.exec(dn)||/(android)/.exec(dn)||/(windows)/.exec(dn)||/(mac)/.exec(dn)||/(linux)/.exec(dn)||/(cros)/.exec(dn)||[],Je={browser:Ie[5]||Ie[3]||Ie[1]||"",version:Ie[2]||Ie[4]||"0",majorVersion:Ie[4]||Ie[2]||"0",platform:je[0]||""},ht={};if(Je.browser){ht[Je.browser]=!0;let Et=Je.majorVersion.split(".");ht.version={major:parseInt(Je.majorVersion,10),string:Je.version},Et.length>1&&(ht.version.minor=parseInt(Et[1],10)),Et.length>2&&(ht.version.build=parseInt(Et[2],10))}if(Je.platform&&(ht[Je.platform]=!0),(ht.chrome||ht.opr||ht.safari)&&(ht.webkit=!0),ht.rv||ht.iemobile){ht.rv&&delete ht.rv;let Et="msie";Je.browser=Et,ht[Et]=!0}if(ht.edge){delete ht.edge;let Et="msedge";Je.browser=Et,ht[Et]=!0}if(ht.opr){let Et="opera";Je.browser=Et,ht[Et]=!0}if(ht.safari&&ht.android){let Et="android";Je.browser=Et,ht[Et]=!0}ht.name=Je.browser,ht.platform=Je.platform;for(let Et in z)z.hasOwnProperty(Et)&&delete z[Et];Object.assign(z,ht)}ne();var oe=z;class se extends b{static isSupported(){try{let Ie=oe.msedge&&oe.version.minor>=15048,je=oe.msedge?Ie:!0;return self.fetch&&self.ReadableStream&&je}catch(Ie){return!1}}constructor(Ie,je){super("fetch-stream-loader"),this.TAG="FetchStreamLoader",this._seekHandler=Ie,this._config=je,this._needStash=!0,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),super.destroy()}open(Ie,je){this._dataSource=Ie,this._range=je;let Je=Ie.url;this._config.reuseRedirectedURL&&Ie.redirectedURL!=null&&(Je=Ie.redirectedURL);let ht=this._seekHandler.getConfig(Je,je),Et=new self.Headers;if(typeof ht.headers=="object"){let fn=ht.headers;for(let sn in fn)fn.hasOwnProperty(sn)&&Et.append(sn,fn[sn])}let Qt={method:"GET",headers:Et,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let fn in this._config.headers)Et.append(fn,this._config.headers[fn]);Ie.cors===!1&&(Qt.mode="same-origin"),Ie.withCredentials&&(Qt.credentials="include"),Ie.referrerPolicy&&(Qt.referrerPolicy=Ie.referrerPolicy),this._status=me.kConnecting,self.fetch(ht.url,Qt).then(fn=>{if(this._requestAbort){this._requestAbort=!1,this._status=me.kIdle;return}if(fn.ok&&fn.status>=200&&fn.status<=299){if(fn.url!==ht.url&&this._onURLRedirect){let mn=this._seekHandler.removeURLParameters(fn.url);this._onURLRedirect(mn)}let sn=fn.headers.get("Content-Length");return sn!=null&&(this._contentLength=parseInt(sn),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,fn.body.getReader())}else if(this._status=me.kError,this._onError)this._onError(E.HTTP_STATUS_CODE_INVALID,{code:fn.status,msg:fn.statusText});else throw new he("FetchStreamLoader: Http code invalid, "+fn.status+" "+fn.statusText)}).catch(fn=>{if(this._status=me.kError,this._onError)this._onError(E.EXCEPTION,{code:-1,msg:fn.message});else throw fn})}abort(){this._requestAbort=!0}_pump(Ie){return Ie.read().then(je=>{if(je.done)if(this._contentLength!==null&&this._receivedLength<this._contentLength){this._status=me.kError;let Je=E.EARLY_EOF,ht={code:-1,msg:"Fetch stream meet Early-EOF"};if(this._onError)this._onError(Je,ht);else throw new he(ht.msg)}else this._status=me.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1);else{if(this._requestAbort===!0)return this._requestAbort=!1,this._status=me.kComplete,Ie.cancel();this._status=me.kBuffering;let Je=je.value.buffer,ht=this._range.from+this._receivedLength;this._receivedLength+=Je.byteLength,this._onDataArrival&&this._onDataArrival(Je,ht,this._receivedLength),this._pump(Ie)}}).catch(je=>{if(je.code===11&&oe.msedge)return;this._status=me.kError;let Je=0,ht=null;if((je.code===19||je.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength<this._contentLength)?(Je=E.EARLY_EOF,ht={code:je.code,msg:"Fetch stream meet Early-EOF"}):(Je=E.EXCEPTION,ht={code:je.code,msg:je.message}),this._onError)this._onError(Je,ht);else throw new he(ht.msg)})}}var de=se;class a extends b{static isSupported(){try{let Ie=new XMLHttpRequest;return Ie.open("GET","https://example.com",!0),Ie.responseType="moz-chunked-arraybuffer",Ie.responseType==="moz-chunked-arraybuffer"}catch(Ie){return ve.w("MozChunkedLoader",Ie.message),!1}}constructor(Ie,je){super("xhr-moz-chunked-loader"),this.TAG="MozChunkedLoader",this._seekHandler=Ie,this._config=je,this._needStash=!0,this._xhr=null,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),super.destroy()}open(Ie,je){this._dataSource=Ie,this._range=je;let Je=Ie.url;this._config.reuseRedirectedURL&&Ie.redirectedURL!=null&&(Je=Ie.redirectedURL);let ht=this._seekHandler.getConfig(Je,je);this._requestURL=ht.url;let Et=this._xhr=new XMLHttpRequest;if(Et.open("GET",ht.url,!0),Et.responseType="moz-chunked-arraybuffer",Et.onreadystatechange=this._onReadyStateChange.bind(this),Et.onprogress=this._onProgress.bind(this),Et.onloadend=this._onLoadEnd.bind(this),Et.onerror=this._onXhrError.bind(this),Ie.withCredentials&&(Et.withCredentials=!0),typeof ht.headers=="object"){let Qt=ht.headers;for(let fn in Qt)Qt.hasOwnProperty(fn)&&Et.setRequestHeader(fn,Qt[fn])}if(typeof this._config.headers=="object"){let Qt=this._config.headers;for(let fn in Qt)Qt.hasOwnProperty(fn)&&Et.setRequestHeader(fn,Qt[fn])}this._status=me.kConnecting,Et.send()}abort(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=me.kComplete}_onReadyStateChange(Ie){let je=Ie.target;if(je.readyState===2){if(je.responseURL!=null&&je.responseURL!==this._requestURL&&this._onURLRedirect){let Je=this._seekHandler.removeURLParameters(je.responseURL);this._onURLRedirect(Je)}if(je.status!==0&&(je.status<200||je.status>299))if(this._status=me.kError,this._onError)this._onError(E.HTTP_STATUS_CODE_INVALID,{code:je.status,msg:je.statusText});else throw new he("MozChunkedLoader: Http code invalid, "+je.status+" "+je.statusText);else this._status=me.kBuffering}}_onProgress(Ie){if(this._status===me.kError)return;this._contentLength===null&&Ie.total!==null&&Ie.total!==0&&(this._contentLength=Ie.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));let je=Ie.target.response,Je=this._range.from+this._receivedLength;this._receivedLength+=je.byteLength,this._onDataArrival&&this._onDataArrival(je,Je,this._receivedLength)}_onLoadEnd(Ie){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===me.kError)return;this._status=me.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}_onXhrError(Ie){this._status=me.kError;let je=0,Je=null;if(this._contentLength&&Ie.loaded<this._contentLength?(je=E.EARLY_EOF,Je={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(je=E.EXCEPTION,Je={code:-1,msg:Ie.constructor.name+" "+Ie.type}),this._onError)this._onError(je,Je);else throw new he(Je.msg)}}var x=a;class re extends null{static isSupported(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;let Ie=new XMLHttpRequest;return Ie.open("GET","https://example.com",!0),Ie.responseType="ms-stream",Ie.responseType==="ms-stream"}catch(Ie){return Log.w("MSStreamLoader",Ie.message),!1}}constructor(Ie,je){super("xhr-msstream-loader"),this.TAG="MSStreamLoader",this._seekHandler=Ie,this._config=je,this._needStash=!0,this._xhr=null,this._reader=null,this._totalRange=null,this._currentRange=null,this._currentRequestURL=null,this._currentRedirectedURL=null,this._contentLength=null,this._receivedLength=0,this._bufferLimit=16*1024*1024,this._lastTimeBufferSize=0,this._isReconnecting=!1}destroy(){this.isWorking()&&this.abort(),this._reader&&(this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr=null),super.destroy()}open(Ie,je){this._internalOpen(Ie,je,!1)}_internalOpen(Ie,je,Je){this._dataSource=Ie,Je?this._currentRange=je:this._totalRange=je;let ht=Ie.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?ht=this._currentRedirectedURL:Ie.redirectedURL!=null&&(ht=Ie.redirectedURL));let Et=this._seekHandler.getConfig(ht,je);this._currentRequestURL=Et.url;let Qt=this._reader=new self.MSStreamReader;Qt.onprogress=this._msrOnProgress.bind(this),Qt.onload=this._msrOnLoad.bind(this),Qt.onerror=this._msrOnError.bind(this);let fn=this._xhr=new XMLHttpRequest;if(fn.open("GET",Et.url,!0),fn.responseType="ms-stream",fn.onreadystatechange=this._xhrOnReadyStateChange.bind(this),fn.onerror=this._xhrOnError.bind(this),Ie.withCredentials&&(fn.withCredentials=!0),typeof Et.headers=="object"){let sn=Et.headers;for(let mn in sn)sn.hasOwnProperty(mn)&&fn.setRequestHeader(mn,sn[mn])}if(typeof this._config.headers=="object"){let sn=this._config.headers;for(let mn in sn)sn.hasOwnProperty(mn)&&fn.setRequestHeader(mn,sn[mn])}this._isReconnecting?this._isReconnecting=!1:this._status=LoaderStatus.kConnecting,fn.send()}abort(){this._internalAbort(),this._status=LoaderStatus.kComplete}_internalAbort(){this._reader&&(this._reader.readyState===1&&this._reader.abort(),this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.abort(),this._xhr.onreadystatechange=null,this._xhr=null)}_xhrOnReadyStateChange(Ie){let je=Ie.target;if(je.readyState===2)if(je.status>=200&&je.status<=299){if(this._status=LoaderStatus.kBuffering,je.responseURL!=null){let ht=this._seekHandler.removeURLParameters(je.responseURL);je.responseURL!==this._currentRequestURL&&ht!==this._currentRedirectedURL&&(this._currentRedirectedURL=ht,this._onURLRedirect&&this._onURLRedirect(ht))}let Je=je.getResponseHeader("Content-Length");if(Je!=null&&this._contentLength==null){let ht=parseInt(Je);ht>0&&(this._contentLength=ht,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=LoaderStatus.kError,this._onError)this._onError(LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:je.status,msg:je.statusText});else throw new RuntimeException("MSStreamLoader: Http code invalid, "+je.status+" "+je.statusText);else if(je.readyState===3&&je.status>=200&&je.status<=299){this._status=LoaderStatus.kBuffering;let Je=je.response;this._reader.readAsArrayBuffer(Je)}}_xhrOnError(Ie){this._status=LoaderStatus.kError;let je=LoaderErrors.EXCEPTION,Je={code:-1,msg:Ie.constructor.name+" "+Ie.type};if(this._onError)this._onError(je,Je);else throw new RuntimeException(Je.msg)}_msrOnProgress(Ie){let Je=Ie.target.result;if(Je==null){this._doReconnectIfNeeded();return}let ht=Je.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=Je.byteLength;let Et=this._totalRange.from+this._receivedLength;this._receivedLength+=ht.byteLength,this._onDataArrival&&this._onDataArrival(ht,Et,this._receivedLength),Je.byteLength>=this._bufferLimit&&(Log.v(this.TAG,`MSStream buffer exceeded max size near ${Et+ht.byteLength}, reconnecting...`),this._doReconnectIfNeeded())}_doReconnectIfNeeded(){if(this._contentLength==null||this._receivedLength<this._contentLength){this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort();let Ie={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,Ie,!0)}}_msrOnLoad(Ie){this._status=LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}_msrOnError(Ie){this._status=LoaderStatus.kError;let je=0,Je=null;if(this._contentLength&&this._receivedLength<this._contentLength?(je=LoaderErrors.EARLY_EOF,Je={code:-1,msg:"MSStream meet Early-Eof"}):(je=LoaderErrors.EARLY_EOF,Je={code:-1,msg:Ie.constructor.name+" "+Ie.type}),this._onError)this._onError(je,Je);else throw new RuntimeException(Je.msg)}}var ce=null;class ge extends b{static isSupported(){try{let Ie=new XMLHttpRequest;return Ie.open("GET","https://example.com",!0),Ie.responseType="arraybuffer",Ie.responseType==="arraybuffer"}catch(Ie){return ve.w("RangeLoader",Ie.message),!1}}constructor(Ie,je){super("xhr-range-loader"),this.TAG="RangeLoader",this._seekHandler=Ie,this._config=je,this._needStash=!1,this._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],this._currentChunkSizeKB=384,this._currentSpeedNormalized=0,this._zeroSpeedChunkCount=0,this._xhr=null,this._speedSampler=new fe,this._requestAbort=!1,this._waitForTotalLength=!1,this._totalLengthReceived=!1,this._currentRequestURL=null,this._currentRedirectedURL=null,this._currentRequestRange=null,this._totalLength=null,this._contentLength=null,this._receivedLength=0,this._lastTimeLoaded=0}destroy(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),super.destroy()}get currentSpeed(){return this._speedSampler.lastSecondKBps}open(Ie,je){this._dataSource=Ie,this._range=je,this._status=me.kConnecting;let Je=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(Je=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!Je?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}_openSubRange(){let Ie=this._currentChunkSizeKB*1024,je=this._range.from+this._receivedLength,Je=je+Ie;this._contentLength!=null&&Je-this._range.from>=this._contentLength&&(Je=this._range.from+this._contentLength-1),this._currentRequestRange={from:je,to:Je},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(Ie,je){this._lastTimeLoaded=0;let Je=Ie.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Je=this._currentRedirectedURL:Ie.redirectedURL!=null&&(Je=Ie.redirectedURL));let ht=this._seekHandler.getConfig(Je,je);this._currentRequestURL=ht.url;let Et=this._xhr=new XMLHttpRequest;if(Et.open("GET",ht.url,!0),Et.responseType="arraybuffer",Et.onreadystatechange=this._onReadyStateChange.bind(this),Et.onprogress=this._onProgress.bind(this),Et.onload=this._onLoad.bind(this),Et.onerror=this._onXhrError.bind(this),Ie.withCredentials&&(Et.withCredentials=!0),typeof ht.headers=="object"){let Qt=ht.headers;for(let fn in Qt)Qt.hasOwnProperty(fn)&&Et.setRequestHeader(fn,Qt[fn])}if(typeof this._config.headers=="object"){let Qt=this._config.headers;for(let fn in Qt)Qt.hasOwnProperty(fn)&&Et.setRequestHeader(fn,Qt[fn])}Et.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=me.kComplete}_internalAbort(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}_onReadyStateChange(Ie){let je=Ie.target;if(je.readyState===2){if(je.responseURL!=null){let Je=this._seekHandler.removeURLParameters(je.responseURL);je.responseURL!==this._currentRequestURL&&Je!==this._currentRedirectedURL&&(this._currentRedirectedURL=Je,this._onURLRedirect&&this._onURLRedirect(Je))}if(je.status>=200&&je.status<=299){if(this._waitForTotalLength)return;this._status=me.kBuffering}else if(this._status=me.kError,this._onError)this._onError(E.HTTP_STATUS_CODE_INVALID,{code:je.status,msg:je.statusText});else throw new he("RangeLoader: Http code invalid, "+je.status+" "+je.statusText)}}_onProgress(Ie){if(this._status===me.kError)return;if(this._contentLength===null){let Je=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,Je=!0;let ht=Ie.total;this._internalAbort(),ht!=null&ht!==0&&(this._totalLength=ht)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,Je){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}let je=Ie.loaded-this._lastTimeLoaded;this._lastTimeLoaded=Ie.loaded,this._speedSampler.addBytes(je)}_normalizeSpeed(Ie){let je=this._chunkSizeKBList,Je=je.length-1,ht=0,Et=0,Qt=Je;if(Ie<je[0])return je[0];for(;Et<=Qt;){if(ht=Et+Math.floor((Qt-Et)/2),ht===Je||Ie>=je[ht]&&Ie<je[ht+1])return je[ht];je[ht]<Ie?Et=ht+1:Qt=ht-1}}_onLoad(Ie){if(this._status===me.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;let je=this._speedSampler.lastSecondKBps;if(je===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(je=this._speedSampler.currentKBps)),je!==0){let Qt=this._normalizeSpeed(je);this._currentSpeedNormalized!==Qt&&(this._currentSpeedNormalized=Qt,this._currentChunkSizeKB=Qt)}let Je=Ie.target.response,ht=this._range.from+this._receivedLength;this._receivedLength+=Je.byteLength;let Et=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():Et=!0,this._onDataArrival&&this._onDataArrival(Je,ht,this._receivedLength),Et&&(this._status=me.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}_onXhrError(Ie){this._status=me.kError;let je=0,Je=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(je=E.EARLY_EOF,Je={code:-1,msg:"RangeLoader meet Early-Eof"}):(je=E.EXCEPTION,Je={code:-1,msg:Ie.constructor.name+" "+Ie.type}),this._onError)this._onError(je,Je);else throw new he(Je.msg)}}var _e=ge;class ye extends b{static isSupported(){try{return typeof self.WebSocket!="undefined"}catch(Ie){return!1}}constructor(){super("websocket-loader"),this.TAG="WebSocketLoader",this._needStash=!0,this._ws=null,this._requestAbort=!1,this._receivedLength=0}destroy(){this._ws&&this.abort(),super.destroy()}open(Ie){try{let je=this._ws=new self.WebSocket(Ie.url);je.binaryType="arraybuffer",je.onopen=this._onWebSocketOpen.bind(this),je.onclose=this._onWebSocketClose.bind(this),je.onmessage=this._onWebSocketMessage.bind(this),je.onerror=this._onWebSocketError.bind(this),this._status=me.kConnecting}catch(je){this._status=me.kError;let Je={code:je.code,msg:je.message};if(this._onError)this._onError(E.EXCEPTION,Je);else throw new he(Je.msg)}}abort(){let Ie=this._ws;Ie&&(Ie.readyState===0||Ie.readyState===1)&&(this._requestAbort=!0,Ie.close()),this._ws=null,this._status=me.kComplete}_onWebSocketOpen(Ie){this._status=me.kBuffering}_onWebSocketClose(Ie){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=me.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}_onWebSocketMessage(Ie){if(Ie.data instanceof ArrayBuffer)this._dispatchArrayBuffer(Ie.data);else if(Ie.data instanceof Blob){let je=new FileReader;je.onload=()=>{this._dispatchArrayBuffer(je.result)},je.readAsArrayBuffer(Ie.data)}else{this._status=me.kError;let je={code:-1,msg:"Unsupported WebSocket message type: "+Ie.data.constructor.name};if(this._onError)this._onError(E.EXCEPTION,je);else throw new he(je.msg)}}_dispatchArrayBuffer(Ie){let je=Ie,Je=this._receivedLength;this._receivedLength+=je.byteLength,this._onDataArrival&&this._onDataArrival(je,Je,this._receivedLength)}_onWebSocketError(Ie){this._status=me.kError;let je={code:Ie.code,msg:Ie.message};if(this._onError)this._onError(E.EXCEPTION,je);else throw new he(je.msg)}}var be=ye;class Se{constructor(Ie){this._zeroStart=Ie||!1}getConfig(Ie,je){let Je={};if(je.from!==0||je.to!==-1){let ht;je.to!==-1?ht=`bytes=${je.from.toString()}-${je.to.toString()}`:ht=`bytes=${je.from.toString()}-`,Je.Range=ht}else this._zeroStart&&(Je.Range="bytes=0-");return{url:Ie,headers:Je}}removeURLParameters(Ie){return Ie}}var Be=Se;class Ae{constructor(Ie,je){this._startName=Ie,this._endName=je}getConfig(Ie,je){let Je=Ie;if(je.from!==0||je.to!==-1){let ht=!0;Je.indexOf("?")===-1&&(Je+="?",ht=!1),ht&&(Je+="&"),Je+=`${this._startName}=${je.from.toString()}`,je.to!==-1&&(Je+=`&${this._endName}=${je.to.toString()}`)}return{url:Je,headers:{}}}removeURLParameters(Ie){let je=Ie.split("?")[0],Je,ht=Ie.indexOf("?");ht!==-1&&(Je=Ie.substring(ht+1));let Et="";if(Je!=null&&Je.length>0){let Qt=Je.split("&");for(let fn=0;fn<Qt.length;fn++){let sn=Qt[fn].split("="),mn=fn>0;sn[0]!==this._startName&&sn[0]!==this._endName&&(mn&&(Et+="&"),Et+=Qt[fn])}}return Et.length===0?je:je+"?"+Et}}var we=Ae;class Ue{constructor(Ie,je,Je){this.TAG="IOController",this._config=je,this._extraData=Je,this._stashInitialSize=1024*384,je.stashInitialSize!=null&&je.stashInitialSize>0&&(this._stashInitialSize=je.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,je.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=Ie,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(Ie.url),this._refTotalLength=Ie.filesize?Ie.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new fe,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}destroy(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}isWorking(){return this._loader&&this._loader.isWorking()&&!this._paused}isPaused(){return this._paused}get status(){return this._loader.status}get extraData(){return this._extraData}set extraData(Ie){this._extraData=Ie}get onDataArrival(){return this._onDataArrival}set onDataArrival(Ie){this._onDataArrival=Ie}get onSeeked(){return this._onSeeked}set onSeeked(Ie){this._onSeeked=Ie}get onError(){return this._onError}set onError(Ie){this._onError=Ie}get onComplete(){return this._onComplete}set onComplete(Ie){this._onComplete=Ie}get onRedirect(){return this._onRedirect}set onRedirect(Ie){this._onRedirect=Ie}get onRecoveredEarlyEof(){return this._onRecoveredEarlyEof}set onRecoveredEarlyEof(Ie){this._onRecoveredEarlyEof=Ie}get currentURL(){return this._dataSource.url}get hasRedirect(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null}get currentRedirectedURL(){return this._redirectedURL||this._dataSource.redirectedURL}get currentSpeed(){return this._loaderClass===_e?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let Ie=this._config;if(Ie.seekType==="range")this._seekHandler=new Be(this._config.rangeLoadZeroStart);else if(Ie.seekType==="param"){let je=Ie.seekParamStart||"bstart",Je=Ie.seekParamEnd||"bend";this._seekHandler=new we(je,Je)}else if(Ie.seekType==="custom"){if(typeof Ie.customSeekHandler!="function")throw new ae("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new Ie.customSeekHandler}else throw new ae(`Invalid seekType in config: ${Ie.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=be;else if(de.isSupported())this._loaderClass=de;else if(x.isSupported())this._loaderClass=x;else if(_e.isSupported())this._loaderClass=_e;else throw new he("Your browser doesn't support xhr with arraybuffer responseType!")}_createLoader(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}open(Ie){this._currentRange={from:0,to:-1},Ie&&(this._currentRange.from=Ie),this._speedSampler.reset(),Ie||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}abort(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}pause(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}resume(){if(this._paused){this._paused=!1;let Ie=this._resumeFrom;this._resumeFrom=0,this._internalSeek(Ie,!0)}}seek(Ie){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(Ie,!0)}_internalSeek(Ie,je){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(je),this._loader.destroy(),this._loader=null;let Je={from:Ie,to:-1};this._currentRange={from:Je.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,Je),this._onSeeked&&this._onSeeked()}updateUrl(Ie){if(!Ie||typeof Ie!="string"||Ie.length===0)throw new ae("Url must be a non-empty string!");this._dataSource.url=Ie}_expandBuffer(Ie){let je=this._stashSize;for(;je+1024*1024*1<Ie;)je*=2;if(je+=1024*1024*1,je===this._bufferSize)return;let Je=new ArrayBuffer(je);if(this._stashUsed>0){let ht=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(Je,0,je).set(ht,0)}this._stashBuffer=Je,this._bufferSize=je}_normalizeSpeed(Ie){let je=this._speedNormalizeList,Je=je.length-1,ht=0,Et=0,Qt=Je;if(Ie<je[0])return je[0];for(;Et<=Qt;){if(ht=Et+Math.floor((Qt-Et)/2),ht===Je||Ie>=je[ht]&&Ie<je[ht+1])return je[ht];je[ht]<Ie?Et=ht+1:Qt=ht-1}}_adjustStashSize(Ie){let je=0;this._config.isLive||Ie<512?je=Ie:Ie>=512&&Ie<=1024?je=Math.floor(Ie*1.5):je=Ie*2,je>8192&&(je=8192);let Je=je*1024+1024*1024*1;this._bufferSize<Je&&this._expandBuffer(Je),this._stashSize=je*1024}_dispatchChunks(Ie,je){return this._currentRange.to=je+Ie.byteLength-1,this._onDataArrival(Ie,je)}_onURLRedirect(Ie){this._redirectedURL=Ie,this._onRedirect&&this._onRedirect(Ie)}_onContentLengthKnown(Ie){Ie&&this._fullRequestFlag&&(this._totalLength=Ie,this._fullRequestFlag=!1)}_onLoaderChunkArrival(Ie,je,Je){if(!this._onDataArrival)throw new le("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(Ie.byteLength);let ht=this._speedSampler.lastSecondKBps;if(ht!==0){let Et=this._normalizeSpeed(ht);this._speedNormalized!==Et&&(this._speedNormalized=Et,this._adjustStashSize(Et))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=je),this._stashUsed+Ie.byteLength<=this._stashSize)new Uint8Array(this._stashBuffer,0,this._stashSize).set(new Uint8Array(Ie),this._stashUsed),this._stashUsed+=Ie.byteLength;else{let Et=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){let Qt=this._stashBuffer.slice(0,this._stashUsed),fn=this._dispatchChunks(Qt,this._stashByteStart);if(fn<Qt.byteLength){if(fn>0){let sn=new Uint8Array(Qt,fn);Et.set(sn,0),this._stashUsed=sn.byteLength,this._stashByteStart+=fn}}else this._stashUsed=0,this._stashByteStart+=fn;this._stashUsed+Ie.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+Ie.byteLength),Et=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Et.set(new Uint8Array(Ie),this._stashUsed),this._stashUsed+=Ie.byteLength}else{let Qt=this._dispatchChunks(Ie,je);if(Qt<Ie.byteLength){let fn=Ie.byteLength-Qt;fn>this._bufferSize&&(this._expandBuffer(fn),Et=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Et.set(new Uint8Array(Ie,Qt),0),this._stashUsed+=fn,this._stashByteStart=je+Qt}}}else if(this._stashUsed===0){let Et=this._dispatchChunks(Ie,je);if(Et<Ie.byteLength){let Qt=Ie.byteLength-Et;Qt>this._bufferSize&&this._expandBuffer(Qt),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(Ie,Et),0),this._stashUsed+=Qt,this._stashByteStart=je+Et}}else{this._stashUsed+Ie.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+Ie.byteLength);let Et=new Uint8Array(this._stashBuffer,0,this._bufferSize);Et.set(new Uint8Array(Ie),this._stashUsed),this._stashUsed+=Ie.byteLength;let Qt=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(Qt<this._stashUsed&&Qt>0){let fn=new Uint8Array(this._stashBuffer,Qt);Et.set(fn,0)}this._stashUsed-=Qt,this._stashByteStart+=Qt}}_flushStashBuffer(Ie){if(this._stashUsed>0){let je=this._stashBuffer.slice(0,this._stashUsed),Je=this._dispatchChunks(je,this._stashByteStart),ht=je.byteLength-Je;if(Je<je.byteLength)if(Ie)ve.w(this.TAG,`${ht} bytes unconsumed data remain when flush buffer, dropped`);else{if(Je>0){let Et=new Uint8Array(this._stashBuffer,0,this._bufferSize),Qt=new Uint8Array(je,Je);Et.set(Qt,0),this._stashUsed=Qt.byteLength,this._stashByteStart+=Je}return 0}return this._stashUsed=0,this._stashByteStart=0,ht}return 0}_onLoaderComplete(Ie,je){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(Ie,je){switch(ve.e(this.TAG,`Loader error, code = ${je.code}, msg = ${je.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,Ie=E.UNRECOVERABLE_EARLY_EOF),Ie){case E.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let Je=this._currentRange.to+1;Je<this._totalLength&&(ve.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(Je,!1));return}Ie=E.UNRECOVERABLE_EARLY_EOF;break}case E.UNRECOVERABLE_EARLY_EOF:case E.CONNECTING_TIMEOUT:case E.HTTP_STATUS_CODE_INVALID:case E.EXCEPTION:break}if(this._onError)this._onError(Ie,je);else throw new he("IOException: "+je.msg)}}var Pe=Ue;const ze={enableWorker:!1,enableStashBuffer:!0,stashInitialSize:void 0,isLive:!1,lazyLoad:!0,lazyLoadMaxDuration:3*60,lazyLoadRecoverDuration:30,deferLoadAfterSourceOpen:!0,autoCleanupMaxBackwardDuration:3*60,autoCleanupMinBackwardDuration:2*60,statisticsInfoReportInterval:600,fixAudioTimestampGap:!0,accurateSeek:!1,seekType:"range",seekParamStart:"bstart",seekParamEnd:"bend",rangeLoadZeroStart:!1,customSeekHandler:void 0,reuseRedirectedURL:!1,headers:void 0,customLoader:void 0};function Ke(){return Object.assign({},ze)}class Ne{static supportMSEH264Playback(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}static supportNetworkStreamIO(){let Ie=new Pe({},Ke()),je=Ie.loaderType;return Ie.destroy(),je=="fetch-stream-loader"||je=="xhr-moz-chunked-loader"}static getNetworkLoaderTypeName(){let Ie=new Pe({},Ke()),je=Ie.loaderType;return Ie.destroy(),je}static supportNativeMediaPlayback(Ie){Ne.videoElement==null&&(Ne.videoElement=window.document.createElement("video"));let je=Ne.videoElement.canPlayType(Ie);return je==="probably"||je=="maybe"}static getFeatureList(){let Ie={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return Ie.mseFlvPlayback=Ne.supportMSEH264Playback(),Ie.networkStreamIO=Ne.supportNetworkStreamIO(),Ie.networkLoaderName=Ne.getNetworkLoaderTypeName(),Ie.mseLiveFlvPlayback=Ie.mseFlvPlayback&&Ie.networkStreamIO,Ie.nativeMP4H264Playback=Ne.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),Ie.nativeWebmVP8Playback=Ne.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),Ie.nativeWebmVP9Playback=Ne.supportNativeMediaPlayback('video/webm; codecs="vp9"'),Ie}}var Re=Ne,nt={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"};class ut{static get forceGlobalTag(){return ve.FORCE_GLOBAL_TAG}static set forceGlobalTag(Ie){ve.FORCE_GLOBAL_TAG=Ie,ut._notifyChange()}static get globalTag(){return ve.GLOBAL_TAG}static set globalTag(Ie){ve.GLOBAL_TAG=Ie,ut._notifyChange()}static get enableAll(){return ve.ENABLE_VERBOSE&&ve.ENABLE_DEBUG&&ve.ENABLE_INFO&&ve.ENABLE_WARN&&ve.ENABLE_ERROR}static set enableAll(Ie){ve.ENABLE_VERBOSE=Ie,ve.ENABLE_DEBUG=Ie,ve.ENABLE_INFO=Ie,ve.ENABLE_WARN=Ie,ve.ENABLE_ERROR=Ie,ut._notifyChange()}static get enableDebug(){return ve.ENABLE_DEBUG}static set enableDebug(Ie){ve.ENABLE_DEBUG=Ie,ut._notifyChange()}static get enableVerbose(){return ve.ENABLE_VERBOSE}static set enableVerbose(Ie){ve.ENABLE_VERBOSE=Ie,ut._notifyChange()}static get enableInfo(){return ve.ENABLE_INFO}static set enableInfo(Ie){ve.ENABLE_INFO=Ie,ut._notifyChange()}static get enableWarn(){return ve.ENABLE_WARN}static set enableWarn(Ie){ve.ENABLE_WARN=Ie,ut._notifyChange()}static get enableError(){return ve.ENABLE_ERROR}static set enableError(Ie){ve.ENABLE_ERROR=Ie,ut._notifyChange()}static getConfig(){return{globalTag:ve.GLOBAL_TAG,forceGlobalTag:ve.FORCE_GLOBAL_TAG,enableVerbose:ve.ENABLE_VERBOSE,enableDebug:ve.ENABLE_DEBUG,enableInfo:ve.ENABLE_INFO,enableWarn:ve.ENABLE_WARN,enableError:ve.ENABLE_ERROR,enableCallback:ve.ENABLE_CALLBACK}}static applyConfig(Ie){ve.GLOBAL_TAG=Ie.globalTag,ve.FORCE_GLOBAL_TAG=Ie.forceGlobalTag,ve.ENABLE_VERBOSE=Ie.enableVerbose,ve.ENABLE_DEBUG=Ie.enableDebug,ve.ENABLE_INFO=Ie.enableInfo,ve.ENABLE_WARN=Ie.enableWarn,ve.ENABLE_ERROR=Ie.enableError,ve.ENABLE_CALLBACK=Ie.enableCallback}static _notifyChange(){let Ie=ut.emitter;if(Ie.listenerCount("change")>0){let je=ut.getConfig();Ie.emit("change",je)}}static registerListener(Ie){ut.emitter.addListener("change",Ie)}static removeListener(Ie){ut.emitter.removeListener("change",Ie)}static addLogListener(Ie){ve.emitter.addListener("log",Ie),ve.emitter.listenerCount("log")>0&&(ve.ENABLE_CALLBACK=!0,ut._notifyChange())}static removeLogListener(Ie){ve.emitter.removeListener("log",Ie),ve.emitter.listenerCount("log")===0&&(ve.ENABLE_CALLBACK=!1,ut._notifyChange())}}ut.emitter=new(pe());var Qe=ut;class rt{constructor(){this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}isComplete(){let Ie=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,je=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&this.duration!=null&&this.metadata!=null&&this.hasKeyframesIndex!=null&&Ie&&je}isSeekable(){return this.hasKeyframesIndex===!0}getNearestKeyframe(Ie){if(this.keyframesIndex==null)return null;let je=this.keyframesIndex,Je=this._search(je.times,Ie);return{index:Je,milliseconds:je.times[Je],fileposition:je.filepositions[Je]}}_search(Ie,je){let Je=0,ht=Ie.length-1,Et=0,Qt=0,fn=ht;for(je<Ie[0]&&(Je=0,Qt=fn+1);Qt<=fn;)if(Et=Qt+Math.floor((fn-Qt)/2),Et===ht||je>=Ie[Et]&&je<Ie[Et+1]){Je=Et;break}else Ie[Et]<je?Qt=Et+1:fn=Et-1;return Je}}var pt=rt;function At(dn,Ie,je){let Je=dn;if(Ie+je<Je.length){for(;je--;)if((Je[++Ie]&192)!==128)return!1;return!0}else return!1}function gt(dn){let Ie=[],je=dn,Je=0,ht=dn.length;for(;Je<ht;){if(je[Je]<128){Ie.push(String.fromCharCode(je[Je])),++Je;continue}else if(!(je[Je]<192)){if(je[Je]<224){if(At(je,Je,1)){let Et=(je[Je]&31)<<6|je[Je+1]&63;if(Et>=128){Ie.push(String.fromCharCode(Et&65535)),Je+=2;continue}}}else if(je[Je]<240){if(At(je,Je,2)){let Et=(je[Je]&15)<<12|(je[Je+1]&63)<<6|je[Je+2]&63;if(Et>=2048&&(Et&63488)!==55296){Ie.push(String.fromCharCode(Et&65535)),Je+=3;continue}}}else if(je[Je]<248&&At(je,Je,3)){let Et=(je[Je]&7)<<18|(je[Je+1]&63)<<12|(je[Je+2]&63)<<6|je[Je+3]&63;if(Et>65536&&Et<1114112){Et-=65536,Ie.push(String.fromCharCode(Et>>>10|55296)),Ie.push(String.fromCharCode(Et&1023|56320)),Je+=4;continue}}}Ie.push("\uFFFD"),++Je}return Ie.join("")}var Ft=gt;let Ct=function(){let dn=new ArrayBuffer(2);return new DataView(dn).setInt16(0,256,!0),new Int16Array(dn)[0]===256}();class Yt{static parseScriptData(Ie,je,Je){let ht={};try{let Et=Yt.parseValue(Ie,je,Je),Qt=Yt.parseValue(Ie,je+Et.size,Je-Et.size);ht[Et.data]=Qt.data}catch(Et){ve.e("AMF",Et.toString())}return ht}static parseObject(Ie,je,Je){if(Je<3)throw new le("Data not enough when parse ScriptDataObject");let ht=Yt.parseString(Ie,je,Je),Et=Yt.parseValue(Ie,je+ht.size,Je-ht.size),Qt=Et.objectEnd;return{data:{name:ht.data,value:Et.data},size:ht.size+Et.size,objectEnd:Qt}}static parseVariable(Ie,je,Je){return Yt.parseObject(Ie,je,Je)}static parseString(Ie,je,Je){if(Je<2)throw new le("Data not enough when parse String");let Et=new DataView(Ie,je,Je).getUint16(0,!Ct),Qt;return Et>0?Qt=Ft(new Uint8Array(Ie,je+2,Et)):Qt="",{data:Qt,size:2+Et}}static parseLongString(Ie,je,Je){if(Je<4)throw new le("Data not enough when parse LongString");let Et=new DataView(Ie,je,Je).getUint32(0,!Ct),Qt;return Et>0?Qt=Ft(new Uint8Array(Ie,je+4,Et)):Qt="",{data:Qt,size:4+Et}}static parseDate(Ie,je,Je){if(Je<10)throw new le("Data size invalid when parse Date");let ht=new DataView(Ie,je,Je),Et=ht.getFloat64(0,!Ct),Qt=ht.getInt16(8,!Ct);return Et+=Qt*60*1e3,{data:new Date(Et),size:10}}static parseValue(Ie,je,Je){if(Je<1)throw new le("Data not enough when parse Value");let ht=new DataView(Ie,je,Je),Et=1,Qt=ht.getUint8(0),fn,sn=!1;try{switch(Qt){case 0:fn=ht.getFloat64(1,!Ct),Et+=8;break;case 1:{fn=!!ht.getUint8(1),Et+=1;break}case 2:{let mn=Yt.parseString(Ie,je+1,Je-1);fn=mn.data,Et+=mn.size;break}case 3:{fn={};let mn=0;for((ht.getUint32(Je-4,!Ct)&16777215)===9&&(mn=3);Et<Je-4;){let Zn=Yt.parseObject(Ie,je+Et,Je-Et-mn);if(Zn.objectEnd)break;fn[Zn.data.name]=Zn.data.value,Et+=Zn.size}Et<=Je-3&&(ht.getUint32(Et-1,!Ct)&16777215)===9&&(Et+=3);break}case 8:{fn={},Et+=4;let mn=0;for((ht.getUint32(Je-4,!Ct)&16777215)===9&&(mn=3);Et<Je-8;){let Zn=Yt.parseVariable(Ie,je+Et,Je-Et-mn);if(Zn.objectEnd)break;fn[Zn.data.name]=Zn.data.value,Et+=Zn.size}Et<=Je-3&&(ht.getUint32(Et-1,!Ct)&16777215)===9&&(Et+=3);break}case 9:fn=void 0,Et=1,sn=!0;break;case 10:{fn=[];let mn=ht.getUint32(1,!Ct);Et+=4;for(let Zn=0;Zn<mn;Zn++){let tr=Yt.parseValue(Ie,je+Et,Je-Et);fn.push(tr.data),Et+=tr.size}break}case 11:{let mn=Yt.parseDate(Ie,je+1,Je-1);fn=mn.data,Et+=mn.size;break}case 12:{let mn=Yt.parseString(Ie,je+1,Je-1);fn=mn.data,Et+=mn.size;break}default:Et=Je,ve.w("AMF","Unsupported AMF value type "+Qt)}}catch(mn){ve.e("AMF",mn.toString())}return{data:fn,size:Et,objectEnd:sn}}}var zt=Yt;class Xe{constructor(Ie){this.TAG="ExpGolomb",this._buffer=Ie,this._buffer_index=0,this._total_bytes=Ie.byteLength,this._total_bits=Ie.byteLength*8,this._current_word=0,this._current_word_bits_left=0}destroy(){this._buffer=null}_fillCurrentWord(){let Ie=this._total_bytes-this._buffer_index;if(Ie<=0)throw new le("ExpGolomb: _fillCurrentWord() but no bytes available");let je=Math.min(4,Ie),Je=new Uint8Array(4);Je.set(this._buffer.subarray(this._buffer_index,this._buffer_index+je)),this._current_word=new DataView(Je.buffer).getUint32(0,!1),this._buffer_index+=je,this._current_word_bits_left=je*8}readBits(Ie){if(Ie>32)throw new ae("ExpGolomb: readBits() bits exceeded max 32bits!");if(Ie<=this._current_word_bits_left){let Qt=this._current_word>>>32-Ie;return this._current_word<<=Ie,this._current_word_bits_left-=Ie,Qt}let je=this._current_word_bits_left?this._current_word:0;je=je>>>32-this._current_word_bits_left;let Je=Ie-this._current_word_bits_left;this._fillCurrentWord();let ht=Math.min(Je,this._current_word_bits_left),Et=this._current_word>>>32-ht;return this._current_word<<=ht,this._current_word_bits_left-=ht,je=je<<ht|Et,je}readBool(){return this.readBits(1)===1}readByte(){return this.readBits(8)}_skipLeadingZero(){let Ie;for(Ie=0;Ie<this._current_word_bits_left;Ie++)if(this._current_word&2147483648>>>Ie)return this._current_word<<=Ie,this._current_word_bits_left-=Ie,Ie;return this._fillCurrentWord(),Ie+this._skipLeadingZero()}readUEG(){let Ie=this._skipLeadingZero();return this.readBits(Ie+1)-1}readSEG(){let Ie=this.readUEG();return Ie&1?Ie+1>>>1:-1*(Ie>>>1)}}var Fe=Xe;class Le{static _ebsp2rbsp(Ie){let je=Ie,Je=je.byteLength,ht=new Uint8Array(Je),Et=0;for(let Qt=0;Qt<Je;Qt++)Qt>=2&&je[Qt]===3&&je[Qt-1]===0&&je[Qt-2]===0||(ht[Et]=je[Qt],Et++);return new Uint8Array(ht.buffer,0,Et)}static parseSPS(Ie){let je=Le._ebsp2rbsp(Ie),Je=new Fe(je);Je.readByte();let ht=Je.readByte();Je.readByte();let Et=Je.readByte();Je.readUEG();let Qt=Le.getProfileString(ht),fn=Le.getLevelString(Et),sn=1,mn=420,Zn=[0,420,422,444],tr=8;if((ht===100||ht===110||ht===122||ht===244||ht===44||ht===83||ht===86||ht===118||ht===128||ht===138||ht===144)&&(sn=Je.readUEG(),sn===3&&Je.readBits(1),sn<=3&&(mn=Zn[sn]),tr=Je.readUEG()+8,Je.readUEG(),Je.readBits(1),Je.readBool())){let Br=sn!==3?8:12;for(let Wr=0;Wr<Br;Wr++)Je.readBool()&&(Wr<6?Le._skipScalingList(Je,16):Le._skipScalingList(Je,64))}Je.readUEG();let Vt=Je.readUEG();if(Vt===0)Je.readUEG();else if(Vt===1){Je.readBits(1),Je.readSEG(),Je.readSEG();let Br=Je.readUEG();for(let Wr=0;Wr<Br;Wr++)Je.readSEG()}let Gt=Je.readUEG();Je.readBits(1);let Rt=Je.readUEG(),jt=Je.readUEG(),Mt=Je.readBits(1);Mt===0&&Je.readBits(1),Je.readBits(1);let Kt=0,yt=0,qt=0,vn=0;Je.readBool()&&(Kt=Je.readUEG(),yt=Je.readUEG(),qt=Je.readUEG(),vn=Je.readUEG());let It=1,Dt=1,Bt=0,Zt=!0,tn=0,Tn=0;if(Je.readBool()){if(Je.readBool()){let Br=Je.readByte(),Wr=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],Jn=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Br>0&&Br<16?(It=Wr[Br-1],Dt=Jn[Br-1]):Br===255&&(It=Je.readByte()<<8|Je.readByte(),Dt=Je.readByte()<<8|Je.readByte())}if(Je.readBool()&&Je.readBool(),Je.readBool()&&(Je.readBits(4),Je.readBool()&&Je.readBits(24)),Je.readBool()&&(Je.readUEG(),Je.readUEG()),Je.readBool()){let Br=Je.readBits(32),Wr=Je.readBits(32);Zt=Je.readBool(),tn=Wr,Tn=Br*2,Bt=tn/Tn}}let dr=1;(It!==1||Dt!==1)&&(dr=It/Dt);let _r=0,Kr=0;if(sn===0)_r=1,Kr=2-Mt;else{let Br=sn===3?1:2,Wr=sn===1?2:1;_r=Br,Kr=Wr*(2-Mt)}let Sr=(Rt+1)*16,hr=(2-Mt)*((jt+1)*16);Sr-=(Kt+yt)*_r,hr-=(qt+vn)*Kr;let Mr=Math.ceil(Sr*dr);return Je.destroy(),Je=null,{profile_string:Qt,level_string:fn,bit_depth:tr,ref_frames:Gt,chroma_format:mn,chroma_format_string:Le.getChromaFormatString(mn),frame_rate:{fixed:Zt,fps:Bt,fps_den:Tn,fps_num:tn},sar_ratio:{width:It,height:Dt},codec_size:{width:Sr,height:hr},present_size:{width:Mr,height:hr}}}static _skipScalingList(Ie,je){let Je=8,ht=8,Et=0;for(let Qt=0;Qt<je;Qt++)ht!==0&&(Et=Ie.readSEG(),ht=(Je+Et+256)%256),Je=ht===0?Je:ht}static getProfileString(Ie){switch(Ie){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}}static getLevelString(Ie){return(Ie/10).toFixed(1)}static getChromaFormatString(Ie){switch(Ie){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}var Ze=Le,He={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};function We(dn){return dn>>>8&255|(dn&255)<<8}function tt(dn){return(dn&4278190080)>>>24|(dn&16711680)>>>8|(dn&65280)<<8|(dn&255)<<24}function at(dn,Ie){return dn[Ie]<<24|dn[Ie+1]<<16|dn[Ie+2]<<8|dn[Ie+3]}class ot{constructor(Ie,je){this.TAG="FLVDemuxer",this._config=je,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=Ie.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=Ie.hasAudioTrack,this._hasVideo=Ie.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new pt,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){let Je=new ArrayBuffer(2);return new DataView(Je).setInt16(0,256,!0),new Int16Array(Je)[0]===256}()}destroy(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}static probe(Ie){let je=new Uint8Array(Ie),Je={match:!1};if(je[0]!==70||je[1]!==76||je[2]!==86||je[3]!==1)return Je;let ht=(je[4]&4)>>>2!==0,Et=(je[4]&1)!==0,Qt=at(je,5);return Qt<9?Je:{match:!0,consumed:Qt,dataOffset:Qt,hasAudioTrack:ht,hasVideoTrack:Et}}bindDataSource(Ie){return Ie.onDataArrival=this.parseChunks.bind(this),this}get onTrackMetadata(){return this._onTrackMetadata}set onTrackMetadata(Ie){this._onTrackMetadata=Ie}get onMediaInfo(){return this._onMediaInfo}set onMediaInfo(Ie){this._onMediaInfo=Ie}get onMetaDataArrived(){return this._onMetaDataArrived}set onMetaDataArrived(Ie){this._onMetaDataArrived=Ie}get onScriptDataArrived(){return this._onScriptDataArrived}set onScriptDataArrived(Ie){this._onScriptDataArrived=Ie}get onError(){return this._onError}set onError(Ie){this._onError=Ie}get onDataAvailable(){return this._onDataAvailable}set onDataAvailable(Ie){this._onDataAvailable=Ie}get timestampBase(){return this._timestampBase}set timestampBase(Ie){this._timestampBase=Ie}get overridedDuration(){return this._duration}set overridedDuration(Ie){this._durationOverrided=!0,this._duration=Ie,this._mediaInfo.duration=Ie}set overridedHasAudio(Ie){this._hasAudioFlagOverrided=!0,this._hasAudio=Ie,this._mediaInfo.hasAudio=Ie}set overridedHasVideo(Ie){this._hasVideoFlagOverrided=!0,this._hasVideo=Ie,this._mediaInfo.hasVideo=Ie}resetMediaInfo(){this._mediaInfo=new pt}_isInitialMetadataDispatched(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}parseChunks(Ie,je){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new le("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let Je=0,ht=this._littleEndian;if(je===0)if(Ie.byteLength>13)Je=ot.probe(Ie).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,je+Je!==this._dataOffset&&ve.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(Ie,Je).getUint32(0,!ht)!==0&&ve.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Je+=4);Je<Ie.byteLength;){this._dispatch=!0;let Et=new DataView(Ie,Je);if(Je+11+4>Ie.byteLength)break;let Qt=Et.getUint8(0),fn=Et.getUint32(0,!ht)&16777215;if(Je+11+fn+4>Ie.byteLength)break;if(Qt!==8&&Qt!==9&&Qt!==18){ve.w(this.TAG,`Unsupported tag type ${Qt}, skipped`),Je+=11+fn+4;continue}let sn=Et.getUint8(4),mn=Et.getUint8(5),Zn=Et.getUint8(6),tr=Et.getUint8(7),Vt=Zn|mn<<8|sn<<16|tr<<24;(Et.getUint32(7,!ht)&16777215)!==0&&ve.w(this.TAG,"Meet tag which has StreamID != 0!");let Rt=Je+11;switch(Qt){case 8:this._parseAudioData(Ie,Rt,fn,Vt);break;case 9:this._parseVideoData(Ie,Rt,fn,Vt,je+Je);break;case 18:this._parseScriptData(Ie,Rt,fn);break}let jt=Et.getUint32(11+fn,!ht);jt!==11+fn&&ve.w(this.TAG,`Invalid PrevTagSize ${jt}`),Je+=11+fn+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),Je}_parseScriptData(Ie,je,Je){let ht=zt.parseScriptData(Ie,je,Je);if(ht.hasOwnProperty("onMetaData")){if(ht.onMetaData==null||typeof ht.onMetaData!="object"){ve.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&ve.w(this.TAG,"Found another onMetaData tag!"),this._metadata=ht;let Et=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},Et)),typeof Et.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=Et.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof Et.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=Et.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof Et.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=Et.audiodatarate),typeof Et.videodatarate=="number"&&(this._mediaInfo.videoDataRate=Et.videodatarate),typeof Et.width=="number"&&(this._mediaInfo.width=Et.width),typeof Et.height=="number"&&(this._mediaInfo.height=Et.height),typeof Et.duration=="number"){if(!this._durationOverrided){let Qt=Math.floor(Et.duration*this._timescale);this._duration=Qt,this._mediaInfo.duration=Qt}}else this._mediaInfo.duration=0;if(typeof Et.framerate=="number"){let Qt=Math.floor(Et.framerate*1e3);if(Qt>0){let fn=Qt/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=fn,this._referenceFrameRate.fps_num=Qt,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=fn}}if(typeof Et.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let Qt=Et.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(Qt),Et.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=Et,ve.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(ht).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},ht))}_parseKeyframesIndex(Ie){let je=[],Je=[];for(let ht=1;ht<Ie.times.length;ht++){let Et=this._timestampBase+Math.floor(Ie.times[ht]*1e3);je.push(Et),Je.push(Ie.filepositions[ht])}return{times:je,filepositions:Je}}_parseAudioData(Ie,je,Je,ht){if(Je<=1){ve.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;let Et=this._littleEndian,fn=new DataView(Ie,je,Je).getUint8(0),sn=fn>>>4;if(sn!==2&&sn!==10){this._onError(He.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+sn);return}let mn=0,Zn=(fn&12)>>>2;if(Zn>=0&&Zn<=4)mn=this._flvSoundRateTable[Zn];else{this._onError(He.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+Zn);return}let tr=(fn&2)>>>1,Vt=fn&1,Gt=this._audioMetadata,Rt=this._audioTrack;if(Gt||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),Gt=this._audioMetadata={},Gt.type="audio",Gt.id=Rt.id,Gt.timescale=this._timescale,Gt.duration=this._duration,Gt.audioSampleRate=mn,Gt.channelCount=Vt===0?1:2),sn===10){let jt=this._parseAACAudioData(Ie,je+1,Je-1);if(jt==null)return;if(jt.packetType===0){Gt.config&&ve.w(this.TAG,"Found another AudioSpecificConfig!");let Mt=jt.data;Gt.audioSampleRate=Mt.samplingRate,Gt.channelCount=Mt.channelCount,Gt.codec=Mt.codec,Gt.originalCodec=Mt.originalCodec,Gt.config=Mt.config,Gt.refSampleDuration=1024/Gt.audioSampleRate*Gt.timescale,ve.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",Gt);let Kt=this._mediaInfo;Kt.audioCodec=Gt.originalCodec,Kt.audioSampleRate=Gt.audioSampleRate,Kt.audioChannelCount=Gt.channelCount,Kt.hasVideo?Kt.videoCodec!=null&&(Kt.mimeType='video/x-flv; codecs="'+Kt.videoCodec+","+Kt.audioCodec+'"'):Kt.mimeType='video/x-flv; codecs="'+Kt.audioCodec+'"',Kt.isComplete()&&this._onMediaInfo(Kt)}else if(jt.packetType===1){let Mt=this._timestampBase+ht,Kt={unit:jt.data,length:jt.data.byteLength,dts:Mt,pts:Mt};Rt.samples.push(Kt),Rt.length+=jt.data.length}else ve.e(this.TAG,`Flv: Unsupported AAC data type ${jt.packetType}`)}else if(sn===2){if(!Gt.codec){let yt=this._parseMP3AudioData(Ie,je+1,Je-1,!0);if(yt==null)return;Gt.audioSampleRate=yt.samplingRate,Gt.channelCount=yt.channelCount,Gt.codec=yt.codec,Gt.originalCodec=yt.originalCodec,Gt.refSampleDuration=1152/Gt.audioSampleRate*Gt.timescale,ve.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",Gt);let qt=this._mediaInfo;qt.audioCodec=Gt.codec,qt.audioSampleRate=Gt.audioSampleRate,qt.audioChannelCount=Gt.channelCount,qt.audioDataRate=yt.bitRate,qt.hasVideo?qt.videoCodec!=null&&(qt.mimeType='video/x-flv; codecs="'+qt.videoCodec+","+qt.audioCodec+'"'):qt.mimeType='video/x-flv; codecs="'+qt.audioCodec+'"',qt.isComplete()&&this._onMediaInfo(qt)}let jt=this._parseMP3AudioData(Ie,je+1,Je-1,!1);if(jt==null)return;let Mt=this._timestampBase+ht,Kt={unit:jt,length:jt.byteLength,dts:Mt,pts:Mt};Rt.samples.push(Kt),Rt.length+=jt.length}}_parseAACAudioData(Ie,je,Je){if(Je<=1){ve.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let ht={},Et=new Uint8Array(Ie,je,Je);return ht.packetType=Et[0],Et[0]===0?ht.data=this._parseAACAudioSpecificConfig(Ie,je+1,Je-1):ht.data=Et.subarray(1),ht}_parseAACAudioSpecificConfig(Ie,je,Je){let ht=new Uint8Array(Ie,je,Je),Et=null,Qt=0,fn=0,sn=null,mn=0,Zn=null;if(Qt=fn=ht[0]>>>3,mn=(ht[0]&7)<<1|ht[1]>>>7,mn<0||mn>=this._mpegSamplingRates.length){this._onError(He.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let tr=this._mpegSamplingRates[mn],Vt=(ht[1]&120)>>>3;if(Vt<0||Vt>=8){this._onError(He.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}Qt===5&&(Zn=(ht[1]&7)<<1|ht[2]>>>7,sn=(ht[2]&124)>>>2);let Gt=self.navigator.userAgent.toLowerCase();return Gt.indexOf("firefox")!==-1?mn>=6?(Qt=5,Et=new Array(4),Zn=mn-3):(Qt=2,Et=new Array(2),Zn=mn):Gt.indexOf("android")!==-1?(Qt=2,Et=new Array(2),Zn=mn):(Qt=5,Zn=mn,Et=new Array(4),mn>=6?Zn=mn-3:Vt===1&&(Qt=2,Et=new Array(2),Zn=mn)),Et[0]=Qt<<3,Et[0]|=(mn&15)>>>1,Et[1]=(mn&15)<<7,Et[1]|=(Vt&15)<<3,Qt===5&&(Et[1]|=(Zn&15)>>>1,Et[2]=(Zn&1)<<7,Et[2]|=8,Et[3]=0),{config:Et,samplingRate:tr,channelCount:Vt,codec:"mp4a.40."+Qt,originalCodec:"mp4a.40."+fn}}_parseMP3AudioData(Ie,je,Je,ht){if(Je<4){ve.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let Et=this._littleEndian,Qt=new Uint8Array(Ie,je,Je),fn=null;if(ht){if(Qt[0]!==255)return;let sn=Qt[1]>>>3&3,mn=(Qt[1]&6)>>1,Zn=(Qt[2]&240)>>>4,tr=(Qt[2]&12)>>>2,Gt=(Qt[3]>>>6&3)!==3?2:1,Rt=0,jt=0,Mt=34,Kt="mp3";switch(sn){case 0:Rt=this._mpegAudioV25SampleRateTable[tr];break;case 2:Rt=this._mpegAudioV20SampleRateTable[tr];break;case 3:Rt=this._mpegAudioV10SampleRateTable[tr];break}switch(mn){case 1:Mt=34,Zn<this._mpegAudioL3BitRateTable.length&&(jt=this._mpegAudioL3BitRateTable[Zn]);break;case 2:Mt=33,Zn<this._mpegAudioL2BitRateTable.length&&(jt=this._mpegAudioL2BitRateTable[Zn]);break;case 3:Mt=32,Zn<this._mpegAudioL1BitRateTable.length&&(jt=this._mpegAudioL1BitRateTable[Zn]);break}fn={bitRate:jt,samplingRate:Rt,channelCount:Gt,codec:Kt,originalCodec:Kt}}else fn=Qt;return fn}_parseVideoData(Ie,je,Je,ht,Et){if(Je<=1){ve.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;let Qt=new Uint8Array(Ie,je,Je)[0],fn=(Qt&240)>>>4,sn=Qt&15;if(sn!==7){this._onError(He.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${sn}`);return}this._parseAVCVideoPacket(Ie,je+1,Je-1,ht,Et,fn)}_parseAVCVideoPacket(Ie,je,Je,ht,Et,Qt){if(Je<4){ve.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let fn=this._littleEndian,sn=new DataView(Ie,je,Je),mn=sn.getUint8(0),tr=(sn.getUint32(0,!fn)&16777215)<<8>>8;if(mn===0)this._parseAVCDecoderConfigurationRecord(Ie,je+4,Je-4);else if(mn===1)this._parseAVCVideoData(Ie,je+4,Je-4,ht,Et,Qt,tr);else if(mn!==2){this._onError(He.FORMAT_ERROR,`Flv: Invalid video packet type ${mn}`);return}}_parseAVCDecoderConfigurationRecord(Ie,je,Je){if(Je<7){ve.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let ht=this._videoMetadata,Et=this._videoTrack,Qt=this._littleEndian,fn=new DataView(Ie,je,Je);ht?typeof ht.avcc!="undefined"&&ve.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),ht=this._videoMetadata={},ht.type="video",ht.id=Et.id,ht.timescale=this._timescale,ht.duration=this._duration);let sn=fn.getUint8(0),mn=fn.getUint8(1),Zn=fn.getUint8(2),tr=fn.getUint8(3);if(sn!==1||mn===0){this._onError(He.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(fn.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(He.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let Vt=fn.getUint8(5)&31;if(Vt===0){this._onError(He.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else Vt>1&&ve.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${Vt}`);let Gt=6;for(let jt=0;jt<Vt;jt++){let Mt=fn.getUint16(Gt,!Qt);if(Gt+=2,Mt===0)continue;let Kt=new Uint8Array(Ie,je+Gt,Mt);Gt+=Mt;let yt=Ze.parseSPS(Kt);if(jt!==0)continue;ht.codecWidth=yt.codec_size.width,ht.codecHeight=yt.codec_size.height,ht.presentWidth=yt.present_size.width,ht.presentHeight=yt.present_size.height,ht.profile=yt.profile_string,ht.level=yt.level_string,ht.bitDepth=yt.bit_depth,ht.chromaFormat=yt.chroma_format,ht.sarRatio=yt.sar_ratio,ht.frameRate=yt.frame_rate,(yt.frame_rate.fixed===!1||yt.frame_rate.fps_num===0||yt.frame_rate.fps_den===0)&&(ht.frameRate=this._referenceFrameRate);let qt=ht.frameRate.fps_den,vn=ht.frameRate.fps_num;ht.refSampleDuration=ht.timescale*(qt/vn);let Tt=Kt.subarray(1,4),It="avc1.";for(let Bt=0;Bt<3;Bt++){let Zt=Tt[Bt].toString(16);Zt.length<2&&(Zt="0"+Zt),It+=Zt}ht.codec=It;let Dt=this._mediaInfo;Dt.width=ht.codecWidth,Dt.height=ht.codecHeight,Dt.fps=ht.frameRate.fps,Dt.profile=ht.profile,Dt.level=ht.level,Dt.refFrames=yt.ref_frames,Dt.chromaFormat=yt.chroma_format_string,Dt.sarNum=ht.sarRatio.width,Dt.sarDen=ht.sarRatio.height,Dt.videoCodec=It,Dt.hasAudio?Dt.audioCodec!=null&&(Dt.mimeType='video/x-flv; codecs="'+Dt.videoCodec+","+Dt.audioCodec+'"'):Dt.mimeType='video/x-flv; codecs="'+Dt.videoCodec+'"',Dt.isComplete()&&this._onMediaInfo(Dt)}let Rt=fn.getUint8(Gt);if(Rt===0){this._onError(He.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else Rt>1&&ve.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${Rt}`);Gt++;for(let jt=0;jt<Rt;jt++){let Mt=fn.getUint16(Gt,!Qt);Gt+=2,Mt!==0&&(Gt+=Mt)}ht.avcc=new Uint8Array(Je),ht.avcc.set(new Uint8Array(Ie,je,Je),0),ve.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",ht)}_parseAVCVideoData(Ie,je,Je,ht,Et,Qt,fn){let sn=this._littleEndian,mn=new DataView(Ie,je,Je),Zn=[],tr=0,Vt=0;const Gt=this._naluLengthSize;let Rt=this._timestampBase+ht,jt=Qt===1;for(;Vt<Je;){if(Vt+4>=Je){ve.w(this.TAG,`Malformed Nalu near timestamp ${Rt}, offset = ${Vt}, dataSize = ${Je}`);break}let Mt=mn.getUint32(Vt,!sn);if(Gt===3&&(Mt>>>=8),Mt>Je-Gt){ve.w(this.TAG,`Malformed Nalus near timestamp ${Rt}, NaluSize > DataSize!`);return}let Kt=mn.getUint8(Vt+Gt)&31;Kt===5&&(jt=!0);let yt=new Uint8Array(Ie,je+Vt,Gt+Mt),qt={type:Kt,data:yt};Zn.push(qt),tr+=yt.byteLength,Vt+=Gt+Mt}if(Zn.length){let Mt=this._videoTrack,Kt={units:Zn,length:tr,isKeyframe:jt,dts:Rt,cts:fn,pts:Rt+fn};jt&&(Kt.fileposition=Et),Mt.samples.push(Kt),Mt.length+=tr}}}var ct=ot;class lt{static init(){lt.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(let je in lt.types)lt.types.hasOwnProperty(je)&&(lt.types[je]=[je.charCodeAt(0),je.charCodeAt(1),je.charCodeAt(2),je.charCodeAt(3)]);let Ie=lt.constants={};Ie.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),Ie.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),Ie.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),Ie.STSC=Ie.STCO=Ie.STTS,Ie.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Ie.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),Ie.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),Ie.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),Ie.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Ie.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static box(Ie){let je=8,Je=null,ht=Array.prototype.slice.call(arguments,1),Et=ht.length;for(let fn=0;fn<Et;fn++)je+=ht[fn].byteLength;Je=new Uint8Array(je),Je[0]=je>>>24&255,Je[1]=je>>>16&255,Je[2]=je>>>8&255,Je[3]=je&255,Je.set(Ie,4);let Qt=8;for(let fn=0;fn<Et;fn++)Je.set(ht[fn],Qt),Qt+=ht[fn].byteLength;return Je}static generateInitSegment(Ie){let je=lt.box(lt.types.ftyp,lt.constants.FTYP),Je=lt.moov(Ie),ht=new Uint8Array(je.byteLength+Je.byteLength);return ht.set(je,0),ht.set(Je,je.byteLength),ht}static moov(Ie){let je=lt.mvhd(Ie.timescale,Ie.duration),Je=lt.trak(Ie),ht=lt.mvex(Ie);return lt.box(lt.types.moov,je,Je,ht)}static mvhd(Ie,je){return lt.box(lt.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,Ie>>>24&255,Ie>>>16&255,Ie>>>8&255,Ie&255,je>>>24&255,je>>>16&255,je>>>8&255,je&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}static trak(Ie){return lt.box(lt.types.trak,lt.tkhd(Ie),lt.mdia(Ie))}static tkhd(Ie){let je=Ie.id,Je=Ie.duration,ht=Ie.presentWidth,Et=Ie.presentHeight;return lt.box(lt.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,je>>>24&255,je>>>16&255,je>>>8&255,je&255,0,0,0,0,Je>>>24&255,Je>>>16&255,Je>>>8&255,Je&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,ht>>>8&255,ht&255,0,0,Et>>>8&255,Et&255,0,0]))}static mdia(Ie){return lt.box(lt.types.mdia,lt.mdhd(Ie),lt.hdlr(Ie),lt.minf(Ie))}static mdhd(Ie){let je=Ie.timescale,Je=Ie.duration;return lt.box(lt.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,je>>>24&255,je>>>16&255,je>>>8&255,je&255,Je>>>24&255,Je>>>16&255,Je>>>8&255,Je&255,85,196,0,0]))}static hdlr(Ie){let je=null;return Ie.type==="audio"?je=lt.constants.HDLR_AUDIO:je=lt.constants.HDLR_VIDEO,lt.box(lt.types.hdlr,je)}static minf(Ie){let je=null;return Ie.type==="audio"?je=lt.box(lt.types.smhd,lt.constants.SMHD):je=lt.box(lt.types.vmhd,lt.constants.VMHD),lt.box(lt.types.minf,je,lt.dinf(),lt.stbl(Ie))}static dinf(){return lt.box(lt.types.dinf,lt.box(lt.types.dref,lt.constants.DREF))}static stbl(Ie){return lt.box(lt.types.stbl,lt.stsd(Ie),lt.box(lt.types.stts,lt.constants.STTS),lt.box(lt.types.stsc,lt.constants.STSC),lt.box(lt.types.stsz,lt.constants.STSZ),lt.box(lt.types.stco,lt.constants.STCO))}static stsd(Ie){return Ie.type==="audio"?Ie.codec==="mp3"?lt.box(lt.types.stsd,lt.constants.STSD_PREFIX,lt.mp3(Ie)):lt.box(lt.types.stsd,lt.constants.STSD_PREFIX,lt.mp4a(Ie)):lt.box(lt.types.stsd,lt.constants.STSD_PREFIX,lt.avc1(Ie))}static mp3(Ie){let je=Ie.channelCount,Je=Ie.audioSampleRate,ht=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,je,0,16,0,0,0,0,Je>>>8&255,Je&255,0,0]);return lt.box(lt.types[".mp3"],ht)}static mp4a(Ie){let je=Ie.channelCount,Je=Ie.audioSampleRate,ht=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,je,0,16,0,0,0,0,Je>>>8&255,Je&255,0,0]);return lt.box(lt.types.mp4a,ht,lt.esds(Ie))}static esds(Ie){let je=Ie.config||[],Je=je.length,ht=new Uint8Array([0,0,0,0,3,23+Je,0,1,0,4,15+Je,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([Je]).concat(je).concat([6,1,2]));return lt.box(lt.types.esds,ht)}static avc1(Ie){let je=Ie.avcc,Je=Ie.codecWidth,ht=Ie.codecHeight,Et=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,Je>>>8&255,Je&255,ht>>>8&255,ht&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return lt.box(lt.types.avc1,Et,lt.box(lt.types.avcC,je))}static mvex(Ie){return lt.box(lt.types.mvex,lt.trex(Ie))}static trex(Ie){let je=Ie.id,Je=new Uint8Array([0,0,0,0,je>>>24&255,je>>>16&255,je>>>8&255,je&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return lt.box(lt.types.trex,Je)}static moof(Ie,je){return lt.box(lt.types.moof,lt.mfhd(Ie.sequenceNumber),lt.traf(Ie,je))}static mfhd(Ie){let je=new Uint8Array([0,0,0,0,Ie>>>24&255,Ie>>>16&255,Ie>>>8&255,Ie&255]);return lt.box(lt.types.mfhd,je)}static traf(Ie,je){let Je=Ie.id,ht=lt.box(lt.types.tfhd,new Uint8Array([0,0,0,0,Je>>>24&255,Je>>>16&255,Je>>>8&255,Je&255])),Et=lt.box(lt.types.tfdt,new Uint8Array([0,0,0,0,je>>>24&255,je>>>16&255,je>>>8&255,je&255])),Qt=lt.sdtp(Ie),fn=lt.trun(Ie,Qt.byteLength+16+16+8+16+8+8);return lt.box(lt.types.traf,ht,Et,fn,Qt)}static sdtp(Ie){let je=Ie.samples||[],Je=je.length,ht=new Uint8Array(4+Je);for(let Et=0;Et<Je;Et++){let Qt=je[Et].flags;ht[Et+4]=Qt.isLeading<<6|Qt.dependsOn<<4|Qt.isDependedOn<<2|Qt.hasRedundancy}return lt.box(lt.types.sdtp,ht)}static trun(Ie,je){let Je=Ie.samples||[],ht=Je.length,Et=12+16*ht,Qt=new Uint8Array(Et);je+=8+Et,Qt.set([0,0,15,1,ht>>>24&255,ht>>>16&255,ht>>>8&255,ht&255,je>>>24&255,je>>>16&255,je>>>8&255,je&255],0);for(let fn=0;fn<ht;fn++){let sn=Je[fn].duration,mn=Je[fn].size,Zn=Je[fn].flags,tr=Je[fn].cts;Qt.set([sn>>>24&255,sn>>>16&255,sn>>>8&255,sn&255,mn>>>24&255,mn>>>16&255,mn>>>8&255,mn&255,Zn.isLeading<<2|Zn.dependsOn,Zn.isDependedOn<<6|Zn.hasRedundancy<<4|Zn.isNonSync,0,0,tr>>>24&255,tr>>>16&255,tr>>>8&255,tr&255],12+16*fn)}return lt.box(lt.types.trun,Qt)}static mdat(Ie){return lt.box(lt.types.mdat,Ie)}}lt.init();var mt=lt;class Lt{static getSilentFrame(Ie,je){if(Ie==="mp4a.40.2"){if(je===1)return new Uint8Array([0,200,0,128,35,128]);if(je===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(je===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(je===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(je===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(je===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(je===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(je===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(je===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}}var ft=Lt;class St{constructor(Ie,je,Je,ht,Et){this.dts=Ie,this.pts=je,this.duration=Je,this.originalDts=ht,this.isSyncPoint=Et,this.fileposition=null}}class nn{constructor(){this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}appendSyncPoint(Ie){Ie.isSyncPoint=!0,this.syncPoints.push(Ie)}}class on{constructor(){this._list=[]}clear(){this._list=[]}appendArray(Ie){let je=this._list;Ie.length!==0&&(je.length>0&&Ie[0].originalDts<je[je.length-1].originalDts&&this.clear(),Array.prototype.push.apply(je,Ie))}getLastSyncPointBeforeDts(Ie){if(this._list.length==0)return null;let je=this._list,Je=0,ht=je.length-1,Et=0,Qt=0,fn=ht;for(Ie<je[0].dts&&(Je=0,Qt=fn+1);Qt<=fn;)if(Et=Qt+Math.floor((fn-Qt)/2),Et===ht||Ie>=je[Et].dts&&Ie<je[Et+1].dts){Je=Et;break}else je[Et].dts<Ie?Qt=Et+1:fn=Et-1;return this._list[Je]}}class yn{constructor(Ie){this._type=Ie,this._list=[],this._lastAppendLocation=-1}get type(){return this._type}get length(){return this._list.length}isEmpty(){return this._list.length===0}clear(){this._list=[],this._lastAppendLocation=-1}_searchNearestSegmentBefore(Ie){let je=this._list;if(je.length===0)return-2;let Je=je.length-1,ht=0,Et=0,Qt=Je,fn=0;if(Ie<je[0].originalBeginDts)return fn=-1,fn;for(;Et<=Qt;)if(ht=Et+Math.floor((Qt-Et)/2),ht===Je||Ie>je[ht].lastSample.originalDts&&Ie<je[ht+1].originalBeginDts){fn=ht;break}else je[ht].originalBeginDts<Ie?Et=ht+1:Qt=ht-1;return fn}_searchNearestSegmentAfter(Ie){return this._searchNearestSegmentBefore(Ie)+1}append(Ie){let je=this._list,Je=Ie,ht=this._lastAppendLocation,Et=0;ht!==-1&&ht<je.length&&Je.originalBeginDts>=je[ht].lastSample.originalDts&&(ht===je.length-1||ht<je.length-1&&Je.originalBeginDts<je[ht+1].originalBeginDts)?Et=ht+1:je.length>0&&(Et=this._searchNearestSegmentBefore(Je.originalBeginDts)+1),this._lastAppendLocation=Et,this._list.splice(Et,0,Je)}getLastSegmentBefore(Ie){let je=this._searchNearestSegmentBefore(Ie);return je>=0?this._list[je]:null}getLastSampleBefore(Ie){let je=this.getLastSegmentBefore(Ie);return je!=null?je.lastSample:null}getLastSyncPointBefore(Ie){let je=this._searchNearestSegmentBefore(Ie),Je=this._list[je].syncPoints;for(;Je.length===0&&je>0;)je--,Je=this._list[je].syncPoints;return Je.length>0?Je[Je.length-1]:null}}class xn{constructor(Ie){this.TAG="MP4Remuxer",this._config=Ie,this._isLive=Ie.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new yn("audio"),this._videoSegmentInfoList=new yn("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(oe.chrome&&(oe.version.major<50||oe.version.major===50&&oe.version.build<2661)),this._fillSilentAfterSeek=oe.msedge||oe.msie,this._mp3UseMpegAudio=!oe.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}destroy(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}bindDataSource(Ie){return Ie.onDataAvailable=this.remux.bind(this),Ie.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}get onInitSegment(){return this._onInitSegment}set onInitSegment(Ie){this._onInitSegment=Ie}get onMediaSegment(){return this._onMediaSegment}set onMediaSegment(Ie){this._onMediaSegment=Ie}insertDiscontinuity(){this._audioNextDts=this._videoNextDts=void 0}seek(Ie){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}remux(Ie,je){if(!this._onMediaSegment)throw new le("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(Ie,je),this._remuxVideo(je),this._remuxAudio(Ie)}_onTrackMetadataReceived(Ie,je){let Je=null,ht="mp4",Et=je.codec;if(Ie==="audio")this._audioMeta=je,je.codec==="mp3"&&this._mp3UseMpegAudio?(ht="mpeg",Et="",Je=new Uint8Array):Je=mt.generateInitSegment(je);else if(Ie==="video")this._videoMeta=je,Je=mt.generateInitSegment(je);else return;if(!this._onInitSegment)throw new le("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(Ie,{type:Ie,data:Je.buffer,codec:Et,container:`${Ie}/${ht}`,mediaDuration:je.duration})}_calculateDtsBase(Ie,je){this._dtsBaseInited||(Ie.samples&&Ie.samples.length&&(this._audioDtsBase=Ie.samples[0].dts),je.samples&&je.samples.length&&(this._videoDtsBase=je.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}flushStashedSamples(){let Ie=this._videoStashedLastSample,je=this._audioStashedLastSample,Je={type:"video",id:1,sequenceNumber:0,samples:[],length:0};Ie!=null&&(Je.samples.push(Ie),Je.length=Ie.length);let ht={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};je!=null&&(ht.samples.push(je),ht.length=je.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(Je,!0),this._remuxAudio(ht,!0)}_remuxAudio(Ie,je){if(this._audioMeta==null)return;let Je=Ie,ht=Je.samples,Et,Qt=-1,fn=-1,sn=-1,mn=this._audioMeta.refSampleDuration,Zn=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,tr=this._dtsBaseInited&&this._audioNextDts===void 0,Vt=!1;if(!ht||ht.length===0||ht.length===1&&!je)return;let Gt=0,Rt=null,jt=0;Zn?(Gt=0,jt=Je.length):(Gt=8,jt=8+Je.length);let Mt=null;if(ht.length>1&&(Mt=ht.pop(),jt-=Mt.length),this._audioStashedLastSample!=null){let Dt=this._audioStashedLastSample;this._audioStashedLastSample=null,ht.unshift(Dt),jt+=Dt.length}Mt!=null&&(this._audioStashedLastSample=Mt);let Kt=ht[0].dts-this._dtsBase;if(this._audioNextDts)Et=Kt-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())Et=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(Vt=!0);else{let Dt=this._audioSegmentInfoList.getLastSampleBefore(Kt);if(Dt!=null){let Bt=Kt-(Dt.originalDts+Dt.duration);Bt<=3&&(Bt=0);let Zt=Dt.dts+Dt.duration+Bt;Et=Kt-Zt}else Et=0}if(Vt){let Dt=Kt-Et,Bt=this._videoSegmentInfoList.getLastSegmentBefore(Kt);if(Bt!=null&&Bt.beginDts<Dt){let Zt=ft.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(Zt){let tn=Bt.beginDts,Tn=Dt-Bt.beginDts;ve.v(this.TAG,`InsertPrefixSilentAudio: dts: ${tn}, duration: ${Tn}`),ht.unshift({unit:Zt,dts:tn,pts:tn}),jt+=Zt.byteLength}}else Vt=!1}let yt=[];for(let Dt=0;Dt<ht.length;Dt++){let Bt=ht[Dt],Zt=Bt.unit,tn=Bt.dts-this._dtsBase,Tn=tn-Et;Qt===-1&&(Qt=Tn);let Fn=0;Dt!==ht.length-1?Fn=ht[Dt+1].dts-this._dtsBase-Et-Tn:Mt!=null?Fn=Mt.dts-this._dtsBase-Et-Tn:yt.length>=1?Fn=yt[yt.length-1].duration:Fn=Math.floor(mn);let dr=!1,_r=null;if(Fn>mn*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!oe.safari){dr=!0;let Kr=Math.abs(Fn-mn),Sr=Math.ceil(Kr/mn),hr=Tn+mn;ve.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
|
|
|
dts: ${Tn+Fn} ms, expected: ${Tn+Math.round(mn)} ms, delta: ${Math.round(Kr)} ms, generate: ${Sr} frames`);let Mr=ft.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Mr==null&&(ve.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),Mr=Zt),_r=[];for(let Wr=0;Wr<Sr;Wr++){let Jn=Math.round(hr);if(_r.length>0){let Ur=_r[_r.length-1];Ur.duration=Jn-Ur.dts}let ii={dts:Jn,pts:Jn,cts:0,unit:Mr,size:Mr.byteLength,duration:0,originalDts:tn,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};_r.push(ii),jt+=ii.size,hr+=mn}let Br=_r[_r.length-1];Br.duration=Tn+Fn-Br.dts,Fn=Math.round(mn)}yt.push({dts:Tn,pts:Tn,cts:0,unit:Bt.unit,size:Bt.unit.byteLength,duration:Fn,originalDts:tn,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),dr&&yt.push.apply(yt,_r)}Zn?Rt=new Uint8Array(jt):(Rt=new Uint8Array(jt),Rt[0]=jt>>>24&255,Rt[1]=jt>>>16&255,Rt[2]=jt>>>8&255,Rt[3]=jt&255,Rt.set(mt.types.mdat,4));for(let Dt=0;Dt<yt.length;Dt++){let Bt=yt[Dt].unit;Rt.set(Bt,Gt),Gt+=Bt.byteLength}let qt=yt[yt.length-1];fn=qt.dts+qt.duration,this._audioNextDts=fn;let vn=new nn;vn.beginDts=Qt,vn.endDts=fn,vn.beginPts=Qt,vn.endPts=fn,vn.originalBeginDts=yt[0].originalDts,vn.originalEndDts=qt.originalDts+qt.duration,vn.firstSample=new St(yt[0].dts,yt[0].pts,yt[0].duration,yt[0].originalDts,!1),vn.lastSample=new St(qt.dts,qt.pts,qt.duration,qt.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(vn),Je.samples=yt,Je.sequenceNumber++;let Tt=null;Zn?Tt=new Uint8Array:Tt=mt.moof(Je,Qt),Je.samples=[],Je.length=0;let It={type:"audio",data:this._mergeBoxes(Tt,Rt).buffer,sampleCount:yt.length,info:vn};Zn&&tr&&(It.timestampOffset=Qt),this._onMediaSegment("audio",It)}_remuxVideo(Ie,je){if(this._videoMeta==null)return;let Je=Ie,ht=Je.samples,Et,Qt=-1,fn=-1,sn=-1,mn=-1;if(!ht||ht.length===0||ht.length===1&&!je)return;let Zn=8,tr=null,Vt=8+Ie.length,Gt=null;if(ht.length>1&&(Gt=ht.pop(),Vt-=Gt.length),this._videoStashedLastSample!=null){let qt=this._videoStashedLastSample;this._videoStashedLastSample=null,ht.unshift(qt),Vt+=qt.length}Gt!=null&&(this._videoStashedLastSample=Gt);let Rt=ht[0].dts-this._dtsBase;if(this._videoNextDts)Et=Rt-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())Et=0;else{let qt=this._videoSegmentInfoList.getLastSampleBefore(Rt);if(qt!=null){let vn=Rt-(qt.originalDts+qt.duration);vn<=3&&(vn=0);let Tt=qt.dts+qt.duration+vn;Et=Rt-Tt}else Et=0}let jt=new nn,Mt=[];for(let qt=0;qt<ht.length;qt++){let vn=ht[qt],Tt=vn.dts-this._dtsBase,It=vn.isKeyframe,Dt=Tt-Et,Bt=vn.cts,Zt=Dt+Bt;Qt===-1&&(Qt=Dt,sn=Zt);let tn=0;if(qt!==ht.length-1?tn=ht[qt+1].dts-this._dtsBase-Et-Dt:Gt!=null?tn=Gt.dts-this._dtsBase-Et-Dt:Mt.length>=1?tn=Mt[Mt.length-1].duration:tn=Math.floor(this._videoMeta.refSampleDuration),It){let Tn=new St(Dt,Zt,tn,vn.dts,!0);Tn.fileposition=vn.fileposition,jt.appendSyncPoint(Tn)}Mt.push({dts:Dt,pts:Zt,cts:Bt,units:vn.units,size:vn.length,isKeyframe:It,duration:tn,originalDts:Tt,flags:{isLeading:0,dependsOn:It?2:1,isDependedOn:It?1:0,hasRedundancy:0,isNonSync:It?0:1}})}tr=new Uint8Array(Vt),tr[0]=Vt>>>24&255,tr[1]=Vt>>>16&255,tr[2]=Vt>>>8&255,tr[3]=Vt&255,tr.set(mt.types.mdat,4);for(let qt=0;qt<Mt.length;qt++){let vn=Mt[qt].units;for(;vn.length;){let It=vn.shift().data;tr.set(It,Zn),Zn+=It.byteLength}}let Kt=Mt[Mt.length-1];if(fn=Kt.dts+Kt.duration,mn=Kt.pts+Kt.duration,this._videoNextDts=fn,jt.beginDts=Qt,jt.endDts=fn,jt.beginPts=sn,jt.endPts=mn,jt.originalBeginDts=Mt[0].originalDts,jt.originalEndDts=Kt.originalDts+Kt.duration,jt.firstSample=new St(Mt[0].dts,Mt[0].pts,Mt[0].duration,Mt[0].originalDts,Mt[0].isKeyframe),jt.lastSample=new St(Kt.dts,Kt.pts,Kt.duration,Kt.originalDts,Kt.isKeyframe),this._isLive||this._videoSegmentInfoList.append(jt),Je.samples=Mt,Je.sequenceNumber++,this._forceFirstIDR){let qt=Mt[0].flags;qt.dependsOn=2,qt.isNonSync=0}let yt=mt.moof(Je,Qt);Je.samples=[],Je.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(yt,tr).buffer,sampleCount:Mt.length,info:jt})}_mergeBoxes(Ie,je){let Je=new Uint8Array(Ie.byteLength+je.byteLength);return Je.set(Ie,0),Je.set(je,Ie.byteLength),Je}}var an=xn,Jt={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"};class Ut{constructor(Ie,je){this.TAG="TransmuxingController",this._emitter=new(pe()),this._config=je,Ie.segments||(Ie.segments=[{duration:Ie.duration,filesize:Ie.filesize,url:Ie.url}]),typeof Ie.cors!="boolean"&&(Ie.cors=!0),typeof Ie.withCredentials!="boolean"&&(Ie.withCredentials=!1),this._mediaDataSource=Ie,this._currentSegmentIndex=0;let Je=0;this._mediaDataSource.segments.forEach(ht=>{ht.timestampBase=Je,Je+=ht.duration,ht.cors=Ie.cors,ht.withCredentials=Ie.withCredentials,je.referrerPolicy&&(ht.referrerPolicy=je.referrerPolicy)}),!isNaN(Je)&&this._mediaDataSource.duration!==Je&&(this._mediaDataSource.duration=Je),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}destroy(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null}on(Ie,je){this._emitter.addListener(Ie,je)}off(Ie,je){this._emitter.removeListener(Ie,je)}start(){this._loadSegment(0),this._enableStatisticsReporter()}_loadSegment(Ie,je){this._currentSegmentIndex=Ie;let Je=this._mediaDataSource.segments[Ie],ht=this._ioctl=new Pe(Je,this._config,Ie);ht.onError=this._onIOException.bind(this),ht.onSeeked=this._onIOSeeked.bind(this),ht.onComplete=this._onIOComplete.bind(this),ht.onRedirect=this._onIORedirect.bind(this),ht.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),je?this._demuxer.bindDataSource(this._ioctl):ht.onDataArrival=this._onInitChunkArrival.bind(this),ht.open(je)}stop(){this._internalAbort(),this._disableStatisticsReporter()}_internalAbort(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}pause(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}resume(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}seek(Ie){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;let je=this._searchSegmentIndexContains(Ie);if(je===this._currentSegmentIndex){let Je=this._mediaInfo.segments[je];if(Je==null)this._pendingSeekTime=Ie;else{let ht=Je.getNearestKeyframe(Ie);this._remuxer.seek(ht.milliseconds),this._ioctl.seek(ht.fileposition),this._pendingResolveSeekPoint=ht.milliseconds}}else{let Je=this._mediaInfo.segments[je];if(Je==null)this._pendingSeekTime=Ie,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(je);else{let ht=Je.getNearestKeyframe(Ie);this._internalAbort(),this._remuxer.seek(Ie),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[je].timestampBase,this._loadSegment(je,ht.fileposition),this._pendingResolveSeekPoint=ht.milliseconds,this._reportSegmentMediaInfo(je)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(Ie){let je=this._mediaDataSource.segments,Je=je.length-1;for(let ht=0;ht<je.length;ht++)if(Ie<je[ht].timestampBase){Je=ht-1;break}return Je}_onInitChunkArrival(Ie,je){let Je=null,ht=0;if(je>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,ht=this._demuxer.parseChunks(Ie,je);else if((Je=ct.probe(Ie)).match){this._demuxer=new ct(Je,this._config),this._remuxer||(this._remuxer=new an(this._config));let Et=this._mediaDataSource;Et.duration!=null&&!isNaN(Et.duration)&&(this._demuxer.overridedDuration=Et.duration),typeof Et.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=Et.hasAudio),typeof Et.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=Et.hasVideo),this._demuxer.timestampBase=Et.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),ht=this._demuxer.parseChunks(Ie,je)}else Je=null,ve.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(Jt.DEMUX_ERROR,He.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),ht=0;return ht}_onMediaInfo(Ie){this._mediaInfo==null&&(this._mediaInfo=Object.assign({},Ie),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,pt.prototype));let je=Object.assign({},Ie);Object.setPrototypeOf(je,pt.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=je,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(()=>{let Je=this._pendingSeekTime;this._pendingSeekTime=null,this.seek(Je)})}_onMetaDataArrived(Ie){this._emitter.emit(Jt.METADATA_ARRIVED,Ie)}_onScriptDataArrived(Ie){this._emitter.emit(Jt.SCRIPTDATA_ARRIVED,Ie)}_onIOSeeked(){this._remuxer.insertDiscontinuity()}_onIOComplete(Ie){let Je=Ie+1;Je<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(Je)):(this._remuxer.flushStashedSamples(),this._emitter.emit(Jt.LOADING_COMPLETE),this._disableStatisticsReporter())}_onIORedirect(Ie){let je=this._ioctl.extraData;this._mediaDataSource.segments[je].redirectedURL=Ie}_onIORecoveredEarlyEof(){this._emitter.emit(Jt.RECOVERED_EARLY_EOF)}_onIOException(Ie,je){ve.e(this.TAG,`IOException: type = ${Ie}, code = ${je.code}, msg = ${je.msg}`),this._emitter.emit(Jt.IO_ERROR,Ie,je),this._disableStatisticsReporter()}_onDemuxException(Ie,je){ve.e(this.TAG,`DemuxException: type = ${Ie}, info = ${je}`),this._emitter.emit(Jt.DEMUX_ERROR,Ie,je)}_onRemuxerInitSegmentArrival(Ie,je){this._emitter.emit(Jt.INIT_SEGMENT,Ie,je)}_onRemuxerMediaSegmentArrival(Ie,je){if(this._pendingSeekTime==null&&(this._emitter.emit(Jt.MEDIA_SEGMENT,Ie,je),this._pendingResolveSeekPoint!=null&&Ie==="video")){let Je=je.info.syncPoints,ht=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,oe.safari&&Je.length>0&&Je[0].originalDts===ht&&(ht=Je[0].pts),this._emitter.emit(Jt.RECOMMEND_SEEKPOINT,ht)}}_enableStatisticsReporter(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}_disableStatisticsReporter(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}_reportSegmentMediaInfo(Ie){let je=this._mediaInfo.segments[Ie],Je=Object.assign({},je);Je.duration=this._mediaInfo.duration,Je.segmentCount=this._mediaInfo.segmentCount,delete Je.segments,delete Je.keyframesIndex,this._emitter.emit(Jt.MEDIA_INFO,Je)}_reportStatisticsInfo(){let Ie={};Ie.url=this._ioctl.currentURL,Ie.hasRedirect=this._ioctl.hasRedirect,Ie.hasRedirect&&(Ie.redirectedURL=this._ioctl.currentRedirectedURL),Ie.speed=this._ioctl.currentSpeed,Ie.loaderType=this._ioctl.loaderType,Ie.currentSegmentIndex=this._currentSegmentIndex,Ie.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(Jt.STATISTICS_INFO,Ie)}}var rn=Ut,Bn=function(dn){let Ie="TransmuxingWorker",je=null,Je=jt.bind(this);Ye.install(),dn.addEventListener("message",function(Mt){switch(Mt.data.cmd){case"init":je=new rn(Mt.data.param[0],Mt.data.param[1]),je.on(Jt.IO_ERROR,Vt.bind(this)),je.on(Jt.DEMUX_ERROR,Gt.bind(this)),je.on(Jt.INIT_SEGMENT,ht.bind(this)),je.on(Jt.MEDIA_SEGMENT,Et.bind(this)),je.on(Jt.LOADING_COMPLETE,Qt.bind(this)),je.on(Jt.RECOVERED_EARLY_EOF,fn.bind(this)),je.on(Jt.MEDIA_INFO,sn.bind(this)),je.on(Jt.METADATA_ARRIVED,mn.bind(this)),je.on(Jt.SCRIPTDATA_ARRIVED,Zn.bind(this)),je.on(Jt.STATISTICS_INFO,tr.bind(this)),je.on(Jt.RECOMMEND_SEEKPOINT,Rt.bind(this));break;case"destroy":je&&(je.destroy(),je=null),dn.postMessage({msg:"destroyed"});break;case"start":je.start();break;case"stop":je.stop();break;case"seek":je.seek(Mt.data.param);break;case"pause":je.pause();break;case"resume":je.resume();break;case"logging_config":{let Kt=Mt.data.param;Qe.applyConfig(Kt),Kt.enableCallback===!0?Qe.addLogListener(Je):Qe.removeLogListener(Je);break}}});function ht(Mt,Kt){let yt={msg:Jt.INIT_SEGMENT,data:{type:Mt,data:Kt}};dn.postMessage(yt,[Kt.data])}function Et(Mt,Kt){let yt={msg:Jt.MEDIA_SEGMENT,data:{type:Mt,data:Kt}};dn.postMessage(yt,[Kt.data])}function Qt(){let Mt={msg:Jt.LOADING_COMPLETE};dn.postMessage(Mt)}function fn(){let Mt={msg:Jt.RECOVERED_EARLY_EOF};dn.postMessage(Mt)}function sn(Mt){let Kt={msg:Jt.MEDIA_INFO,data:Mt};dn.postMessage(Kt)}function mn(Mt){let Kt={msg:Jt.METADATA_ARRIVED,data:Mt};dn.postMessage(Kt)}function Zn(Mt){let Kt={msg:Jt.SCRIPTDATA_ARRIVED,data:Mt};dn.postMessage(Kt)}function tr(Mt){let Kt={msg:Jt.STATISTICS_INFO,data:Mt};dn.postMessage(Kt)}function Vt(Mt,Kt){dn.postMessage({msg:Jt.IO_ERROR,data:{type:Mt,info:Kt}})}function Gt(Mt,Kt){dn.postMessage({msg:Jt.DEMUX_ERROR,data:{type:Mt,info:Kt}})}function Rt(Mt){dn.postMessage({msg:Jt.RECOMMEND_SEEKPOINT,data:Mt})}function jt(Mt,Kt){dn.postMessage({msg:"logcat_callback",data:{type:Mt,logcat:Kt}})}};class kt{constructor(Ie,je){if(this.TAG="Transmuxer",this._emitter=new(pe()),je.enableWorker&&typeof Worker!="undefined")try{let Je=Ce(82059);this._worker=Je(Bn),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[Ie,je]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},Qe.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:Qe.getConfig()})}catch(Je){ve.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new rn(Ie,je)}else this._controller=new rn(Ie,je);if(this._controller){let Je=this._controller;Je.on(Jt.IO_ERROR,this._onIOError.bind(this)),Je.on(Jt.DEMUX_ERROR,this._onDemuxError.bind(this)),Je.on(Jt.INIT_SEGMENT,this._onInitSegment.bind(this)),Je.on(Jt.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),Je.on(Jt.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),Je.on(Jt.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),Je.on(Jt.MEDIA_INFO,this._onMediaInfo.bind(this)),Je.on(Jt.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),Je.on(Jt.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),Je.on(Jt.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),Je.on(Jt.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}destroy(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),Qe.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}on(Ie,je){this._emitter.addListener(Ie,je)}off(Ie,je){this._emitter.removeListener(Ie,je)}hasWorker(){return this._worker!=null}open(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}close(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}seek(Ie){this._worker?this._worker.postMessage({cmd:"seek",param:Ie}):this._controller.seek(Ie)}pause(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}resume(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}_onInitSegment(Ie,je){Promise.resolve().then(()=>{this._emitter.emit(Jt.INIT_SEGMENT,Ie,je)})}_onMediaSegment(Ie,je){Promise.resolve().then(()=>{this._emitter.emit(Jt.MEDIA_SEGMENT,Ie,je)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(Jt.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(Jt.RECOVERED_EARLY_EOF)})}_onMediaInfo(Ie){Promise.resolve().then(()=>{this._emitter.emit(Jt.MEDIA_INFO,Ie)})}_onMetaDataArrived(Ie){Promise.resolve().then(()=>{this._emitter.emit(Jt.METADATA_ARRIVED,Ie)})}_onScriptDataArrived(Ie){Promise.resolve().then(()=>{this._emitter.emit(Jt.SCRIPTDATA_ARRIVED,Ie)})}_onStatisticsInfo(Ie){Promise.resolve().then(()=>{this._emitter.emit(Jt.STATISTICS_INFO,Ie)})}_onIOError(Ie,je){Promise.resolve().then(()=>{this._emitter.emit(Jt.IO_ERROR,Ie,je)})}_onDemuxError(Ie,je){Promise.resolve().then(()=>{this._emitter.emit(Jt.DEMUX_ERROR,Ie,je)})}_onRecommendSeekpoint(Ie){Promise.resolve().then(()=>{this._emitter.emit(Jt.RECOMMEND_SEEKPOINT,Ie)})}_onLoggingConfigChanged(Ie){this._worker&&this._worker.postMessage({cmd:"logging_config",param:Ie})}_onWorkerMessage(Ie){let je=Ie.data,Je=je.data;if(je.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(je.msg){case Jt.INIT_SEGMENT:case Jt.MEDIA_SEGMENT:this._emitter.emit(je.msg,Je.type,Je.data);break;case Jt.LOADING_COMPLETE:case Jt.RECOVERED_EARLY_EOF:this._emitter.emit(je.msg);break;case Jt.MEDIA_INFO:Object.setPrototypeOf(Je,pt.prototype),this._emitter.emit(je.msg,Je);break;case Jt.METADATA_ARRIVED:case Jt.SCRIPTDATA_ARRIVED:case Jt.STATISTICS_INFO:this._emitter.emit(je.msg,Je);break;case Jt.IO_ERROR:case Jt.DEMUX_ERROR:this._emitter.emit(je.msg,Je.type,Je.info);break;case Jt.RECOMMEND_SEEKPOINT:this._emitter.emit(je.msg,Je);break;case"logcat_callback":ve.emitter.emit("log",Je.type,Je.logcat);break;default:break}}}var ln=kt,Mn={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class Qn{constructor(Ie){this.TAG="MSEController",this._config=Ie,this._emitter=new(pe()),this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new on}destroy(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}on(Ie,je){this._emitter.addListener(Ie,je)}off(Ie,je){this._emitter.removeListener(Ie,je)}attachMediaElement(Ie){if(this._mediaSource)throw new le("MediaSource has been attached to an HTMLMediaElement!");let je=this._mediaSource=new window.MediaSource;je.addEventListener("sourceopen",this.e.onSourceOpen),je.addEventListener("sourceended",this.e.onSourceEnded),je.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=Ie,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),Ie.src=this._mediaSourceObjectURL}detachMediaElement(){if(this._mediaSource){let Ie=this._mediaSource;for(let je in this._sourceBuffers){let Je=this._pendingSegments[je];Je.splice(0,Je.length),this._pendingSegments[je]=null,this._pendingRemoveRanges[je]=null,this._lastInitSegments[je]=null;let ht=this._sourceBuffers[je];if(ht){if(Ie.readyState!=="closed"){try{Ie.removeSourceBuffer(ht)}catch(Et){ve.e(this.TAG,Et.message)}ht.removeEventListener("error",this.e.onSourceBufferError),ht.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[je]=null,this._sourceBuffers[je]=null}}if(Ie.readyState==="open")try{Ie.endOfStream()}catch(je){ve.e(this.TAG,je.message)}Ie.removeEventListener("sourceopen",this.e.onSourceOpen),Ie.removeEventListener("sourceended",this.e.onSourceEnded),Ie.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}appendInitSegment(Ie,je){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(Ie),this._pendingSegments[Ie.type].push(Ie);return}let Je=Ie,ht=`${Je.container}`;Je.codec&&Je.codec.length>0&&(ht+=`;codecs=${Je.codec}`);let Et=!1;if(ve.v(this.TAG,"Received Initialization Segment, mimeType: "+ht),this._lastInitSegments[Je.type]=Je,ht!==this._mimeTypes[Je.type]){if(this._mimeTypes[Je.type])ve.v(this.TAG,`Notice: ${Je.type} mimeType changed, origin: ${this._mimeTypes[Je.type]}, target: ${ht}`);else{Et=!0;try{let Qt=this._sourceBuffers[Je.type]=this._mediaSource.addSourceBuffer(ht);Qt.addEventListener("error",this.e.onSourceBufferError),Qt.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(Qt){ve.e(this.TAG,Qt.message),this._emitter.emit(Mn.ERROR,{code:Qt.code,msg:Qt.message});return}}this._mimeTypes[Je.type]=ht}je||this._pendingSegments[Je.type].push(Je),Et||this._sourceBuffers[Je.type]&&!this._sourceBuffers[Je.type].updating&&this._doAppendSegments(),oe.safari&&Je.container==="audio/mpeg"&&Je.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=Je.mediaDuration/1e3,this._updateMediaSourceDuration())}appendMediaSegment(Ie){let je=Ie;this._pendingSegments[je.type].push(je),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();let Je=this._sourceBuffers[je.type];Je&&!Je.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}seek(Ie){for(let je in this._sourceBuffers){if(!this._sourceBuffers[je])continue;let Je=this._sourceBuffers[je];if(this._mediaSource.readyState==="open")try{Je.abort()}catch(Et){ve.e(this.TAG,Et.message)}this._idrList.clear();let ht=this._pendingSegments[je];if(ht.splice(0,ht.length),this._mediaSource.readyState!=="closed"){for(let Et=0;Et<Je.buffered.length;Et++){let Qt=Je.buffered.start(Et),fn=Je.buffered.end(Et);this._pendingRemoveRanges[je].push({start:Qt,end:fn})}if(Je.updating||this._doRemoveRanges(),oe.safari){let Et=this._lastInitSegments[je];Et&&(this._pendingSegments[je].push(Et),Je.updating||this._doAppendSegments())}}}}endOfStream(){let Ie=this._mediaSource,je=this._sourceBuffers;if(!Ie||Ie.readyState!=="open"){Ie&&Ie.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}je.video&&je.video.updating||je.audio&&je.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,Ie.endOfStream())}getNearestKeyframe(Ie){return this._idrList.getLastSyncPointBeforeDts(Ie)}_needCleanupSourceBuffer(){if(!this._config.autoCleanupSourceBuffer)return!1;let Ie=this._mediaElement.currentTime;for(let je in this._sourceBuffers){let Je=this._sourceBuffers[je];if(Je){let ht=Je.buffered;if(ht.length>=1&&Ie-ht.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}_doCleanupSourceBuffer(){let Ie=this._mediaElement.currentTime;for(let je in this._sourceBuffers){let Je=this._sourceBuffers[je];if(Je){let ht=Je.buffered,Et=!1;for(let Qt=0;Qt<ht.length;Qt++){let fn=ht.start(Qt),sn=ht.end(Qt);if(fn<=Ie&&Ie<sn+3){if(Ie-fn>=this._config.autoCleanupMaxBackwardDuration){Et=!0;let mn=Ie-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[je].push({start:fn,end:mn})}}else sn<Ie&&(Et=!0,this._pendingRemoveRanges[je].push({start:fn,end:sn}))}Et&&!Je.updating&&this._doRemoveRanges()}}}_updateMediaSourceDuration(){let Ie=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open"||Ie.video&&Ie.video.updating||Ie.audio&&Ie.audio.updating)return;let je=this._mediaSource.duration,Je=this._pendingMediaDuration;Je>0&&(isNaN(je)||Je>je)&&(ve.v(this.TAG,`Update MediaSource duration from ${je} to ${Je}`),this._mediaSource.duration=Je),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}_doRemoveRanges(){for(let Ie in this._pendingRemoveRanges){if(!this._sourceBuffers[Ie]||this._sourceBuffers[Ie].updating)continue;let je=this._sourceBuffers[Ie],Je=this._pendingRemoveRanges[Ie];for(;Je.length&&!je.updating;){let ht=Je.shift();je.remove(ht.start,ht.end)}}}_doAppendSegments(){let Ie=this._pendingSegments;for(let je in Ie)if(!(!this._sourceBuffers[je]||this._sourceBuffers[je].updating)&&Ie[je].length>0){let Je=Ie[je].shift();if(Je.timestampOffset){let ht=this._sourceBuffers[je].timestampOffset,Et=Je.timestampOffset/1e3;Math.abs(ht-Et)>.1&&(ve.v(this.TAG,`Update MPEG audio timestampOffset from ${ht} to ${Et}`),this._sourceBuffers[je].timestampOffset=Et),delete Je.timestampOffset}if(!Je.data||Je.data.byteLength===0)continue;try{this._sourceBuffers[je].appendBuffer(Je.data),this._isBufferFull=!1,je==="video"&&Je.hasOwnProperty("info")&&this._idrList.appendArray(Je.info.syncPoints)}catch(ht){this._pendingSegments[je].unshift(Je),ht.code===22?(this._isBufferFull||this._emitter.emit(Mn.BUFFER_FULL),this._isBufferFull=!0):(ve.e(this.TAG,ht.message),this._emitter.emit(Mn.ERROR,{code:ht.code,msg:ht.message}))}}}_onSourceOpen(){if(ve.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0){let Ie=this._pendingSourceBufferInit;for(;Ie.length;){let je=Ie.shift();this.appendInitSegment(je,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(Mn.SOURCE_OPEN)}_onSourceEnded(){ve.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){ve.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}_hasPendingSegments(){let Ie=this._pendingSegments;return Ie.video.length>0||Ie.audio.length>0}_hasPendingRemoveRanges(){let Ie=this._pendingRemoveRanges;return Ie.video.length>0||Ie.audio.length>0}_onSourceBufferUpdateEnd(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(Mn.UPDATE_END)}_onSourceBufferError(Ie){ve.e(this.TAG,`SourceBuffer Error: ${Ie}`)}}var mr=Qn;const lr={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Cr={NETWORK_EXCEPTION:E.EXCEPTION,NETWORK_STATUS_CODE_INVALID:E.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:E.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:E.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:He.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:He.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:He.CODEC_UNSUPPORTED};class nr{constructor(Ie,je){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(pe()),this._config=Ke(),typeof je=="object"&&Object.assign(this._config,je),Ie.type.toLowerCase()!=="flv")throw new ae("FlvPlayer requires an flv MediaDataSource input!");Ie.isLive===!0&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=Ie,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;let Je=oe.chrome&&(oe.version.major<50||oe.version.major===50&&oe.version.build<2661);this._alwaysSeekKeyframe=!!(Je||oe.msedge||oe.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}destroy(){this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(Ie,je){Ie===nt.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(nt.MEDIA_INFO,this.mediaInfo)}):Ie===nt.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(nt.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(Ie,je)}off(Ie,je){this._emitter.removeListener(Ie,je)}attachMediaElement(Ie){if(this._mediaElement=Ie,Ie.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),Ie.addEventListener("seeking",this.e.onvSeeking),Ie.addEventListener("canplay",this.e.onvCanPlay),Ie.addEventListener("stalled",this.e.onvStalled),Ie.addEventListener("progress",this.e.onvProgress),this._msectl=new mr(this._config),this._msectl.on(Mn.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(Mn.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(Mn.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(Mn.ERROR,je=>{this._emitter.emit(nt.ERROR,lr.MEDIA_ERROR,Cr.MEDIA_MSE_ERROR,je)}),this._msectl.attachMediaElement(Ie),this._pendingSeekTime!=null)try{Ie.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(je){}}detachMediaElement(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}load(){if(!this._mediaElement)throw new le("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new le("FlvPlayer.load() has been called, please call unload() first!");if(!this._hasPendingLoad){if(this._config.deferLoadAfterSourceOpen&&this._mseSourceOpened===!1){this._hasPendingLoad=!0;return}this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new ln(this._mediaDataSource,this._config),this._transmuxer.on(Jt.INIT_SEGMENT,(Ie,je)=>{this._msectl.appendInitSegment(je)}),this._transmuxer.on(Jt.MEDIA_SEGMENT,(Ie,je)=>{if(this._msectl.appendMediaSegment(je),this._config.lazyLoad&&!this._config.isLive){let Je=this._mediaElement.currentTime;je.info.endDts>=(Je+this._config.lazyLoadMaxDuration)*1e3&&this._progressChecker==null&&(ve.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(Jt.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(nt.LOADING_COMPLETE)}),this._transmuxer.on(Jt.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(nt.RECOVERED_EARLY_EOF)}),this._transmuxer.on(Jt.IO_ERROR,(Ie,je)=>{this._emitter.emit(nt.ERROR,lr.NETWORK_ERROR,Ie,je)}),this._transmuxer.on(Jt.DEMUX_ERROR,(Ie,je)=>{this._emitter.emit(nt.ERROR,lr.MEDIA_ERROR,Ie,{code:-1,msg:je})}),this._transmuxer.on(Jt.MEDIA_INFO,Ie=>{this._mediaInfo=Ie,this._emitter.emit(nt.MEDIA_INFO,Object.assign({},Ie))}),this._transmuxer.on(Jt.METADATA_ARRIVED,Ie=>{this._emitter.emit(nt.METADATA_ARRIVED,Ie)}),this._transmuxer.on(Jt.SCRIPTDATA_ARRIVED,Ie=>{this._emitter.emit(nt.SCRIPTDATA_ARRIVED,Ie)}),this._transmuxer.on(Jt.STATISTICS_INFO,Ie=>{this._statisticsInfo=this._fillStatisticsInfo(Ie),this._emitter.emit(nt.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(Jt.RECOMMEND_SEEKPOINT,Ie=>{this._mediaElement&&!this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=Ie/1e3)}),this._transmuxer.open()}}unload(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(Ie){this._mediaElement.volume=Ie}get muted(){return this._mediaElement.muted}set muted(Ie){this._mediaElement.muted=Ie}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(Ie){this._mediaElement?this._internalSeek(Ie):this._pendingSeekTime=Ie}get mediaInfo(){return Object.assign({},this._mediaInfo)}get statisticsInfo(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}_fillStatisticsInfo(Ie){if(Ie.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return Ie;let je=!0,Je=0,ht=0;if(this._mediaElement.getVideoPlaybackQuality){let Et=this._mediaElement.getVideoPlaybackQuality();Je=Et.totalVideoFrames,ht=Et.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Je=this._mediaElement.webkitDecodedFrameCount,ht=this._mediaElement.webkitDroppedFrameCount):je=!1;return je&&(Ie.decodedFrames=Je,Ie.droppedFrames=ht),Ie}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let Ie=this._mediaElement.buffered,je=this._mediaElement.currentTime,Je=0,ht=0;for(let Et=0;Et<Ie.length;Et++){let Qt=Ie.start(Et),fn=Ie.end(Et);if(Qt<=je&&je<fn){Je=Qt,ht=fn;break}}ht>=je+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(ve.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){ve.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()}_suspendTransmuxer(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}_checkProgressAndResume(){let Ie=this._mediaElement.currentTime,je=this._mediaElement.buffered,Je=!1;for(let ht=0;ht<je.length;ht++){let Et=je.start(ht),Qt=je.end(ht);if(Ie>=Et&&Ie<Qt){Ie>=Qt-this._config.lazyLoadRecoverDuration&&(Je=!0);break}}Je&&(window.clearInterval(this._progressChecker),this._progressChecker=null,Je&&(ve.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered(Ie){let je=this._mediaElement.buffered;for(let Je=0;Je<je.length;Je++){let ht=je.start(Je),Et=je.end(Je);if(Ie>=ht&&Ie<Et)return!0}return!1}_internalSeek(Ie){let je=this._isTimepointBuffered(Ie),Je=!1,ht=0;if(Ie<1&&this._mediaElement.buffered.length>0){let Et=this._mediaElement.buffered.start(0);(Et<1&&Ie<Et||oe.safari)&&(Je=!0,ht=oe.safari?.1:Et)}if(Je)this._requestSetTime=!0,this._mediaElement.currentTime=ht;else if(je){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=Ie;else{let Et=this._msectl.getNearestKeyframe(Math.floor(Ie*1e3));this._requestSetTime=!0,Et!=null?this._mediaElement.currentTime=Et.dts/1e3:this._mediaElement.currentTime=Ie}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(Ie),this._transmuxer.seek(Math.floor(Ie*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=Ie)}_checkAndApplyUnbufferedSeekpoint(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){let Ie=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(Ie)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(Ie),this._transmuxer.seek(Math.floor(Ie*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=Ie))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_checkAndResumeStuckPlayback(Ie){let je=this._mediaElement;if(Ie||!this._receivedCanPlay||je.readyState<2){let Je=je.buffered;Je.length>0&&je.currentTime<Je.start(0)&&(ve.w(this.TAG,`Playback seems stuck at ${je.currentTime}, seek to ${Je.start(0)}`),this._requestSetTime=!0,this._mediaElement.currentTime=Je.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}_onvLoadedMetadata(Ie){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}_onvSeeking(Ie){let je=this._mediaElement.currentTime,Je=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(je<1&&Je.length>0){let ht=Je.start(0);if(ht<1&&je<ht||oe.safari){this._requestSetTime=!0,this._mediaElement.currentTime=oe.safari?.1:ht;return}}if(this._isTimepointBuffered(je)){if(this._alwaysSeekKeyframe){let ht=this._msectl.getNearestKeyframe(Math.floor(je*1e3));ht!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=ht.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:je,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_onvCanPlay(Ie){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}_onvStalled(Ie){this._checkAndResumeStuckPlayback(!0)}_onvProgress(Ie){this._checkAndResumeStuckPlayback()}}var ur=nr;class Nn{constructor(Ie,je){if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new(pe()),this._config=Ke(),typeof je=="object"&&Object.assign(this._config,je),Ie.type.toLowerCase()==="flv")throw new ae("NativePlayer does't support flv MediaDataSource input!");if(Ie.hasOwnProperty("segments"))throw new ae(`NativePlayer(${Ie.type}) doesn't support multipart playback!`);this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=Ie,this._mediaElement=null}destroy(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(Ie,je){Ie===nt.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(nt.MEDIA_INFO,this.mediaInfo)}):Ie===nt.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(nt.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(Ie,je)}off(Ie,je){this._emitter.removeListener(Ie,je)}attachMediaElement(Ie){if(this._mediaElement=Ie,Ie.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{Ie.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(je){}}detachMediaElement(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}load(){if(!this._mediaElement)throw new le("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}unload(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(Ie){this._mediaElement.volume=Ie}get muted(){return this._mediaElement.muted}set muted(Ie){this._mediaElement.muted=Ie}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(Ie){this._mediaElement?this._mediaElement.currentTime=Ie:this._pendingSeekTime=Ie}get mediaInfo(){let je={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(je.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(je.width=this._mediaElement.videoWidth,je.height=this._mediaElement.videoHeight)),je}get statisticsInfo(){let Ie={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return Ie;let je=!0,Je=0,ht=0;if(this._mediaElement.getVideoPlaybackQuality){let Et=this._mediaElement.getVideoPlaybackQuality();Je=Et.totalVideoFrames,ht=Et.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Je=this._mediaElement.webkitDecodedFrameCount,ht=this._mediaElement.webkitDroppedFrameCount):je=!1;return je&&(Ie.decodedFrames=Je,Ie.droppedFrames=ht),Ie}_onvLoadedMetadata(Ie){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(nt.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(nt.STATISTICS_INFO,this.statisticsInfo)}}var In=Nn;Ye.install();function Wn(dn,Ie){let je=dn;if(je==null||typeof je!="object")throw new ae("MediaDataSource must be an javascript object!");if(!je.hasOwnProperty("type"))throw new ae("MediaDataSource must has type field to indicate video file type!");switch(je.type){case"flv":return new ur(je,Ie);default:return new In(je,Ie)}}function Kn(){return Re.supportMSEH264Playback()}function Ln(){return Re.getFeatureList()}let $n={};$n.createPlayer=Wn,$n.isSupported=Kn,$n.getFeatureList=Ln,$n.BaseLoader=b,$n.LoaderStatus=me,$n.LoaderErrors=E,$n.Events=nt,$n.ErrorTypes=lr,$n.ErrorDetails=Cr,$n.FlvPlayer=ur,$n.NativePlayer=In,$n.LoggingControl=Qe,Object.defineProperty($n,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var ar=$n},9981:function(Yn,en){"use strict";const Ce=function(){const te=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Ye=1;Ye<arguments.length;Ye++){const Me=Ye<0||arguments.length<=Ye?void 0:arguments[Ye];Me&&Object.keys(Me).forEach(pe=>{const Oe=Me[pe];Oe!==void 0&&(te[pe]=Oe)})}return te};en.Z=Ce},86013:function(Yn,en,Ce){"use strict";var te=Ce(59301),Ye=Ce(19248);const Me=pe=>{let Oe;return typeof pe=="object"&&(pe!=null&&pe.clearIcon)?Oe=pe:pe&&(Oe={clearIcon:te.createElement(Ye.Z,null)}),Oe};en.Z=Me},54500:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return te}});const te=Ye=>Ye?typeof Ye=="function"?Ye():Ye:null},97224:function(Yn,en,Ce){"use strict";Ce.d(en,{F:function(){return te}});function te(Me){return Me!=null&&Me===Me.window}const Ye=Me=>{var pe,Oe;if(typeof window=="undefined")return 0;let ve=0;return te(Me)?ve=Me.pageYOffset:Me instanceof Document?ve=Me.documentElement.scrollTop:(Me instanceof HTMLElement||Me)&&(ve=Me.scrollTop),Me&&!te(Me)&&typeof ve!="number"&&(ve=(Oe=((pe=Me.ownerDocument)!==null&&pe!==void 0?pe:Me).documentElement)===null||Oe===void 0?void 0:Oe.scrollTop),ve};en.Z=Ye},83010:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return pe}});var te=Ce(16089);function Ye(Oe,ve,ue,fe){const he=ue-ve;return Oe/=fe/2,Oe<1?he/2*Oe*Oe*Oe+ve:he/2*((Oe-=2)*Oe*Oe+2)+ve}var Me=Ce(97224);function pe(Oe){let ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ue=()=>window,callback:fe,duration:he=450}=ve,le=ue(),ae=(0,Me.Z)(le),ie=Date.now(),me=()=>{const b=Date.now()-ie,z=Ye(b>he?he:b,ae,Oe,he);(0,Me.F)(le)?le.scrollTo(window.pageXOffset,z):le instanceof Document||le.constructor.name==="HTMLDocument"?le.documentElement.scrollTop=z:le.scrollTop=z,b<he?(0,te.Z)(me):typeof fe=="function"&&fe()};(0,te.Z)(me)}},1560:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return oe}});var te=Ce(2738),Ye=Ce(45915),Me=Ce(82326),pe=Ce(59301),Oe=Ce(92310),ve=Ce.n(Oe),ue=Ce(11592),fe=Ce(75030),he=Ce(48755);const{Option:le}=Me.default;function ae(se){return(se==null?void 0:se.type)&&(se.type.isSelectOption||se.type.isSelectOptGroup)}const ie=(se,de)=>{var a;const{prefixCls:x,className:re,popupClassName:ce,dropdownClassName:ge,children:_e,dataSource:ye}=se,be=(0,ue.Z)(_e);let Se;be.length===1&&pe.isValidElement(be[0])&&!ae(be[0])&&([Se]=be);const Be=Se?()=>Se:void 0;let Ae;be.length&&ae(be[0])?Ae=_e:Ae=ye?ye.map(ze=>{if(pe.isValidElement(ze))return ze;switch(typeof ze){case"string":return pe.createElement(le,{key:ze,value:ze},ze);case"object":{const{value:Ke}=ze;return pe.createElement(le,{key:Ke,value:Ke},ze.text)}default:return}}):[];const{getPrefixCls:we}=pe.useContext(he.E_),Ue=we("select",x),[Pe]=(0,fe.Cn)("SelectLike",(a=se.dropdownStyle)===null||a===void 0?void 0:a.zIndex);return pe.createElement(Me.default,Object.assign({ref:de,suffixIcon:null},(0,te.Z)(se,["dataSource","dropdownClassName"]),{prefixCls:Ue,popupClassName:ce||ge,dropdownStyle:Object.assign(Object.assign({},se.dropdownStyle),{zIndex:Pe}),className:ve()(`${Ue}-auto-complete`,re),mode:Me.default.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:Be}),Ae)};var E=pe.forwardRef(ie);const{Option:b}=Me.default,z=(0,Ye.Z)(E,"dropdownAlign",se=>(0,te.Z)(se,["visible"])),ne=E;ne.Option=b,ne._InternalPanelDoNotUseOrYouWillBeFired=z;var oe=ne},79939:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return vn}});var te=Ce(77654),Ye=Ce(59301),Me=Ce(92310),pe=Ce.n(Me),Oe=Ce(60499),ve=Ce(85899),ue=Ce(72190),fe=Ce(42244),he=Ce(37463),le=Ce(6551),ae=Ce(6089),ie=Ce(18929),me=Ye.createContext({}),E=me,b=Ce(43749),z=Ce(18642),ne="__rc_cascader_search_mark__",oe=function(It,Dt,Bt){var Zt=Bt.label,tn=Zt===void 0?"":Zt;return Dt.some(function(Tn){return String(Tn[tn]).toLowerCase().includes(It.toLowerCase())})},se=function(It,Dt,Bt,Zt){return Dt.map(function(tn){return tn[Zt.label]}).join(" / ")},de=function(It,Dt,Bt,Zt,tn,Tn){var Fn=tn.filter,dr=Fn===void 0?oe:Fn,_r=tn.render,Kr=_r===void 0?se:_r,Sr=tn.limit,hr=Sr===void 0?50:Sr,Mr=tn.sort;return Ye.useMemo(function(){var Br=[];if(!It)return[];function Wr(Jn,ii){var Ur=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Jn.forEach(function(Gr){if(!(!Mr&&hr!==!1&&hr>0&&Br.length>=hr)){var qr=[].concat((0,te.Z)(ii),[Gr]),Li=Gr[Bt.children],wi=Ur||Gr.disabled;if((!Li||Li.length===0||Tn)&&dr(It,qr,{label:Bt.label})){var ui;Br.push((0,ve.Z)((0,ve.Z)({},Gr),{},(ui={disabled:wi},(0,z.Z)(ui,Bt.label,Kr(It,qr,Zt,Bt)),(0,z.Z)(ui,ne,qr),(0,z.Z)(ui,Bt.children,void 0),ui)))}Li&&Wr(Gr[Bt.children],qr,wi)}})}return Wr(Dt,[]),Mr&&Br.sort(function(Jn,ii){return Mr(Jn[ne],ii[ne],It,Bt)}),hr!==!1&&hr>0?Br.slice(0,hr):Br},[It,Dt,Bt,Zt,Kr,Tn,dr,Mr,hr])},a=de,x="__RC_CASCADER_SPLIT__",re="SHOW_PARENT",ce="SHOW_CHILD";function ge(Tt){return Tt.join(x)}function _e(Tt){return Tt.map(ge)}function ye(Tt){return Tt.split(x)}function be(Tt){var It=Tt||{},Dt=It.label,Bt=It.value,Zt=It.children,tn=Bt||"value";return{label:Dt||"label",value:tn,key:tn,children:Zt||"children"}}function Se(Tt,It){var Dt,Bt;return(Dt=Tt.isLeaf)!==null&&Dt!==void 0?Dt:!((Bt=Tt[It.children])!==null&&Bt!==void 0&&Bt.length)}function Be(Tt){var It=Tt.parentElement;if(It){var Dt=Tt.offsetTop-It.offsetTop;Dt-It.scrollTop<0?It.scrollTo({top:Dt}):Dt+Tt.offsetHeight-It.scrollTop>It.offsetHeight&&It.scrollTo({top:Dt+Tt.offsetHeight-It.offsetHeight})}}function Ae(Tt,It){return Tt.map(function(Dt){var Bt;return(Bt=Dt[ne])===null||Bt===void 0?void 0:Bt.map(function(Zt){return Zt[It.value]})})}function we(Tt){return Array.isArray(Tt)&&Array.isArray(Tt[0])}function Ue(Tt){return Tt?we(Tt)?Tt:(Tt.length===0?[]:[Tt]).map(function(It){return Array.isArray(It)?It:[It]}):[]}function Pe(Tt,It,Dt){var Bt=new Set(Tt),Zt=It();return Tt.filter(function(tn){var Tn=Zt[tn],Fn=Tn?Tn.parent:null,dr=Tn?Tn.children:null;return Tn&&Tn.node.disabled?!0:Dt===ce?!(dr&&dr.some(function(_r){return _r.key&&Bt.has(_r.key)})):!(Fn&&!Fn.node.disabled&&Bt.has(Fn.key))})}function ze(Tt,It,Dt){for(var Bt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Zt=It,tn=[],Tn=function(){var _r,Kr,Sr,hr=Tt[Fn],Mr=(_r=Zt)===null||_r===void 0?void 0:_r.findIndex(function(Wr){var Jn=Wr[Dt.value];return Bt?String(Jn)===String(hr):Jn===hr}),Br=Mr!==-1?(Kr=Zt)===null||Kr===void 0?void 0:Kr[Mr]:null;tn.push({value:(Sr=Br==null?void 0:Br[Dt.value])!==null&&Sr!==void 0?Sr:hr,index:Mr,option:Br}),Zt=Br==null?void 0:Br[Dt.children]},Fn=0;Fn<Tt.length;Fn+=1)Tn();return tn}var Ke=function(Tt,It,Dt,Bt,Zt){return Ye.useMemo(function(){var tn=Zt||function(Tn){var Fn=Bt?Tn.slice(-1):Tn,dr=" / ";return Fn.every(function(_r){return["string","number"].includes((0,b.Z)(_r))})?Fn.join(dr):Fn.reduce(function(_r,Kr,Sr){var hr=Ye.isValidElement(Kr)?Ye.cloneElement(Kr,{key:Sr}):Kr;return Sr===0?[hr]:[].concat((0,te.Z)(_r),[dr,hr])},[])};return Tt.map(function(Tn){var Fn,dr=ze(Tn,It,Dt),_r=tn(dr.map(function(Sr){var hr,Mr=Sr.option,Br=Sr.value;return(hr=Mr==null?void 0:Mr[Dt.label])!==null&&hr!==void 0?hr:Br}),dr.map(function(Sr){var hr=Sr.option;return hr})),Kr=ge(Tn);return{label:_r,value:Kr,key:Kr,valueCells:Tn,disabled:(Fn=dr[dr.length-1])===null||Fn===void 0||(Fn=Fn.option)===null||Fn===void 0?void 0:Fn.disabled}})},[Tt,It,Dt,Zt,Bt])};function Ne(Tt,It){return Ye.useCallback(function(Dt){var Bt=[],Zt=[];return Dt.forEach(function(tn){var Tn=ze(tn,Tt,It);Tn.every(function(Fn){return Fn.option})?Zt.push(tn):Bt.push(tn)}),[Zt,Bt]},[Tt,It])}var Re=Ce(34061),$e=function(Tt,It){var Dt=Ye.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),Bt=Ye.useCallback(function(){return Dt.current.options!==Tt&&(Dt.current.options=Tt,Dt.current.info=(0,Re.I8)(Tt,{fieldNames:It,initWrapper:function(tn){return(0,ve.Z)((0,ve.Z)({},tn),{},{pathKeyEntities:{}})},processEntity:function(tn,Tn){var Fn=tn.nodes.map(function(dr){return dr[It.value]}).join(x);Tn.pathKeyEntities[Fn]=tn,tn.key=Fn}})),Dt.current.info.pathKeyEntities},[It,Tt]);return Bt};function nt(Tt,It){var Dt=Ye.useMemo(function(){return It||[]},[It]),Bt=$e(Dt,Tt),Zt=Ye.useCallback(function(tn){var Tn=Bt();return tn.map(function(Fn){var dr=Tn[Fn].nodes;return dr.map(function(_r){return _r[Tt.value]})})},[Bt,Tt]);return[Dt,Bt,Zt]}var ut=Ce(48736);function Qe(Tt){return Ye.useMemo(function(){if(!Tt)return[!1,{}];var It={matchInputWidth:!0,limit:50};return Tt&&(0,b.Z)(Tt)==="object"&&(It=(0,ve.Z)((0,ve.Z)({},It),Tt)),It.limit<=0&&(It.limit=!1),[!0,It]},[Tt])}var rt=Ce(34643);function pt(Tt,It,Dt,Bt,Zt,tn,Tn,Fn){return function(dr){if(!Tt)It(dr);else{var _r=ge(dr),Kr=_e(Dt),Sr=_e(Bt),hr=Kr.includes(_r),Mr=Zt.some(function(wi){return ge(wi)===_r}),Br=Dt,Wr=Zt;if(Mr&&!hr)Wr=Zt.filter(function(wi){return ge(wi)!==_r});else{var Jn=hr?Kr.filter(function(wi){return wi!==_r}):[].concat((0,te.Z)(Kr),[_r]),ii=tn(),Ur;if(hr){var Gr=(0,rt.S)(Jn,{checked:!1,halfCheckedKeys:Sr},ii);Ur=Gr.checkedKeys}else{var qr=(0,rt.S)(Jn,!0,ii);Ur=qr.checkedKeys}var Li=Pe(Ur,tn,Fn);Br=Tn(Li)}It([].concat((0,te.Z)(Wr),(0,te.Z)(Br)))}}}function At(Tt,It,Dt,Bt,Zt){return Ye.useMemo(function(){var tn=Zt(It),Tn=(0,ue.Z)(tn,2),Fn=Tn[0],dr=Tn[1];if(!Tt||!It.length)return[Fn,[],dr];var _r=_e(Fn),Kr=Dt(),Sr=(0,rt.S)(_r,!0,Kr),hr=Sr.checkedKeys,Mr=Sr.halfCheckedKeys;return[Bt(hr),Bt(Mr),dr]},[Tt,It,Dt,Bt,Zt])}var gt=Ye.memo(function(Tt){var It=Tt.children;return It},function(Tt,It){return!It.open}),Ft=gt;function Ct(Tt){var It,Dt=Tt.prefixCls,Bt=Tt.checked,Zt=Tt.halfChecked,tn=Tt.disabled,Tn=Tt.onClick,Fn=Tt.disableCheckbox,dr=Ye.useContext(E),_r=dr.checkable,Kr=typeof _r!="boolean"?_r:null;return Ye.createElement("span",{className:pe()("".concat(Dt),(It={},(0,z.Z)(It,"".concat(Dt,"-checked"),Bt),(0,z.Z)(It,"".concat(Dt,"-indeterminate"),!Bt&&Zt),(0,z.Z)(It,"".concat(Dt,"-disabled"),tn||Fn),It)),onClick:Tn},Kr)}var Yt="__cascader_fix_label__";function zt(Tt){var It=Tt.prefixCls,Dt=Tt.multiple,Bt=Tt.options,Zt=Tt.activeValue,tn=Tt.prevValuePath,Tn=Tt.onToggleOpen,Fn=Tt.onSelect,dr=Tt.onActive,_r=Tt.checkedSet,Kr=Tt.halfCheckedSet,Sr=Tt.loadingKeys,hr=Tt.isSelectable,Mr=Tt.disabled,Br="".concat(It,"-menu"),Wr="".concat(It,"-menu-item"),Jn=Ye.useContext(E),ii=Jn.fieldNames,Ur=Jn.changeOnSelect,Gr=Jn.expandTrigger,qr=Jn.expandIcon,Li=Jn.loadingIcon,wi=Jn.dropdownMenuColumnStyle,ui=Jn.optionRender,Qr=Gr==="hover",Di=function(ci){return Mr||ci},oi=Ye.useMemo(function(){return Bt.map(function(di){var ci,ki=di.disabled,Ki=di.disableCheckbox,ua=di[ne],kn=(ci=di[Yt])!==null&&ci!==void 0?ci:di[ii.label],qi=di[ii.value],Qi=Se(di,ii),ra=ua?ua.map(function(Dr){return Dr[ii.value]}):[].concat((0,te.Z)(tn),[qi]),_i=ge(ra),Ti=Sr.includes(_i),Xr=_r.has(_i),rr=Kr.has(_i);return{disabled:ki,label:kn,value:qi,isLeaf:Qi,isLoading:Ti,checked:Xr,halfChecked:rr,option:di,disableCheckbox:Ki,fullPath:ra,fullPathKey:_i}})},[Bt,_r,ii,Kr,Sr,tn]);return Ye.createElement("ul",{className:Br,role:"menu"},oi.map(function(di){var ci,ki=di.disabled,Ki=di.label,ua=di.value,kn=di.isLeaf,qi=di.isLoading,Qi=di.checked,ra=di.halfChecked,_i=di.option,Ti=di.fullPath,Xr=di.fullPathKey,rr=di.disableCheckbox,Dr=function(){if(!Di(ki)){var si=(0,te.Z)(Ti);Qr&&kn&&si.pop(),dr(si)}},Fr=function(){hr(_i)&&!Di(ki)&&Fn(Ti,kn)},or;return typeof _i.title=="string"?or=_i.title:typeof Ki=="string"&&(or=Ki),Ye.createElement("li",{key:Xr,className:pe()(Wr,(ci={},(0,z.Z)(ci,"".concat(Wr,"-expand"),!kn),(0,z.Z)(ci,"".concat(Wr,"-active"),Zt===ua||Zt===Xr),(0,z.Z)(ci,"".concat(Wr,"-disabled"),Di(ki)),(0,z.Z)(ci,"".concat(Wr,"-loading"),qi),ci)),style:wi,role:"menuitemcheckbox",title:or,"aria-checked":Qi,"data-path-key":Xr,onClick:function(){Dr(),!rr&&(!Dt||kn)&&Fr()},onDoubleClick:function(){Ur&&Tn(!1)},onMouseEnter:function(){Qr&&Dr()},onMouseDown:function(si){si.preventDefault()}},Dt&&Ye.createElement(Ct,{prefixCls:"".concat(It,"-checkbox"),checked:Qi,halfChecked:ra,disabled:Di(ki)||rr,disableCheckbox:rr,onClick:function(si){rr||(si.stopPropagation(),Fr())}}),Ye.createElement("div",{className:"".concat(Wr,"-content")},ui?ui(_i):Ki),!qi&&qr&&!kn&&Ye.createElement("div",{className:"".concat(Wr,"-expand-icon")},qr),qi&&Li&&Ye.createElement("div",{className:"".concat(Wr,"-loading-icon")},Li))}))}var Xe=function(It,Dt){var Bt=Ye.useContext(E),Zt=Bt.values,tn=Zt[0],Tn=Ye.useState([]),Fn=(0,ue.Z)(Tn,2),dr=Fn[0],_r=Fn[1];return Ye.useEffect(function(){It||_r(tn||[])},[Dt,tn]),[dr,_r]},Fe=Xe,Le=Ce(10228),Ze=function(Tt,It,Dt,Bt,Zt,tn,Tn){var Fn=Tn.direction,dr=Tn.searchValue,_r=Tn.toggleOpen,Kr=Tn.open,Sr=Fn==="rtl",hr=Ye.useMemo(function(){for(var wi=-1,ui=It,Qr=[],Di=[],oi=Bt.length,di=Ae(It,Dt),ci=function(qi){var Qi=ui.findIndex(function(ra,_i){return(di[_i]?ge(di[_i]):ra[Dt.value])===Bt[qi]});if(Qi===-1)return 1;wi=Qi,Qr.push(wi),Di.push(Bt[qi]),ui=ui[wi][Dt.children]},ki=0;ki<oi&&ui&&!ci(ki);ki+=1);for(var Ki=It,ua=0;ua<Qr.length-1;ua+=1)Ki=Ki[Qr[ua]][Dt.children];return[Di,wi,Ki,di]},[Bt,Dt,It]),Mr=(0,ue.Z)(hr,4),Br=Mr[0],Wr=Mr[1],Jn=Mr[2],ii=Mr[3],Ur=function(ui){Zt(ui)},Gr=function(ui){var Qr=Jn.length,Di=Wr;Di===-1&&ui<0&&(Di=Qr);for(var oi=0;oi<Qr;oi+=1){Di=(Di+ui+Qr)%Qr;var di=Jn[Di];if(di&&!di.disabled){var ci=Br.slice(0,-1).concat(ii[Di]?ge(ii[Di]):di[Dt.value]);Ur(ci);return}}},qr=function(){if(Br.length>1){var ui=Br.slice(0,-1);Ur(ui)}else _r(!1)},Li=function(){var ui,Qr=((ui=Jn[Wr])===null||ui===void 0?void 0:ui[Dt.children])||[],Di=Qr.find(function(di){return!di.disabled});if(Di){var oi=[].concat((0,te.Z)(Br),[Di[Dt.value]]);Ur(oi)}};Ye.useImperativeHandle(Tt,function(){return{onKeyDown:function(ui){var Qr=ui.which;switch(Qr){case Le.Z.UP:case Le.Z.DOWN:{var Di=0;Qr===Le.Z.UP?Di=-1:Qr===Le.Z.DOWN&&(Di=1),Di!==0&&Gr(Di);break}case Le.Z.LEFT:{if(dr)break;Sr?Li():qr();break}case Le.Z.RIGHT:{if(dr)break;Sr?qr():Li();break}case Le.Z.BACKSPACE:{dr||qr();break}case Le.Z.ENTER:{if(Br.length){var oi=Jn[Wr],di=(oi==null?void 0:oi[ne])||[];di.length?tn(di.map(function(ci){return ci[Dt.value]}),di[di.length-1]):tn(Br,Jn[Wr])}break}case Le.Z.ESC:_r(!1),Kr&&ui.stopPropagation()}},onKeyUp:function(){}}})},et=Ye.forwardRef(function(Tt,It){var Dt,Bt,Zt,tn=Tt.prefixCls,Tn=Tt.multiple,Fn=Tt.searchValue,dr=Tt.toggleOpen,_r=Tt.notFoundContent,Kr=Tt.direction,Sr=Tt.open,hr=Tt.disabled,Mr=Ye.useRef(null),Br=Kr==="rtl",Wr=Ye.useContext(E),Jn=Wr.options,ii=Wr.values,Ur=Wr.halfValues,Gr=Wr.fieldNames,qr=Wr.changeOnSelect,Li=Wr.onSelect,wi=Wr.searchOptions,ui=Wr.dropdownPrefixCls,Qr=Wr.loadData,Di=Wr.expandTrigger,oi=ui||tn,di=Ye.useState([]),ci=(0,ue.Z)(di,2),ki=ci[0],Ki=ci[1],ua=function(Vn){if(!(!Qr||Fn)){var Sn=ze(Vn,Jn,Gr),Rr=Sn.map(function(mi){var Nr=mi.option;return Nr}),ti=Rr[Rr.length-1];if(ti&&!Se(ti,Gr)){var gn=ge(Vn);Ki(function(mi){return[].concat((0,te.Z)(mi),[gn])}),Qr(Rr)}}};Ye.useEffect(function(){ki.length&&ki.forEach(function(un){var Vn=ye(un),Sn=ze(Vn,Jn,Gr,!0).map(function(ti){var gn=ti.option;return gn}),Rr=Sn[Sn.length-1];(!Rr||Rr[Gr.children]||Se(Rr,Gr))&&Ki(function(ti){return ti.filter(function(gn){return gn!==un})})})},[Jn,ki,Gr]);var kn=Ye.useMemo(function(){return new Set(_e(ii))},[ii]),qi=Ye.useMemo(function(){return new Set(_e(Ur))},[Ur]),Qi=Fe(Tn,Sr),ra=(0,ue.Z)(Qi,2),_i=ra[0],Ti=ra[1],Xr=function(Vn){Ti(Vn),ua(Vn)},rr=function(Vn){if(hr)return!1;var Sn=Vn.disabled,Rr=Se(Vn,Gr);return!Sn&&(Rr||qr||Tn)},Dr=function(Vn,Sn){var Rr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Li(Vn),!Tn&&(Sn||qr&&(Di==="hover"||Rr))&&dr(!1)},Fr=Ye.useMemo(function(){return Fn?wi:Jn},[Fn,wi,Jn]),or=Ye.useMemo(function(){for(var un=[{options:Fr}],Vn=Fr,Sn=Ae(Vn,Gr),Rr=function(){var mi=_i[ti],Nr=Vn.find(function(pi,Gi){return(Sn[Gi]?ge(Sn[Gi]):pi[Gr.value])===mi}),Ar=Nr==null?void 0:Nr[Gr.children];if(!(Ar!=null&&Ar.length))return 1;Vn=Ar,un.push({options:Ar})},ti=0;ti<_i.length&&!Rr();ti+=1);return un},[Fr,_i,Gr]),ei=function(Vn,Sn){rr(Sn)&&Dr(Vn,Se(Sn,Gr),!0)};Ze(It,Fr,Gr,_i,Xr,ei,{direction:Kr,searchValue:Fn,toggleOpen:dr,open:Sr}),Ye.useEffect(function(){if(!Fn)for(var un=0;un<_i.length;un+=1){var Vn,Sn=_i.slice(0,un+1),Rr=ge(Sn),ti=(Vn=Mr.current)===null||Vn===void 0?void 0:Vn.querySelector('li[data-path-key="'.concat(Rr.replace(/\\{0,2}"/g,'\\"'),'"]'));ti&&Be(ti)}},[_i,Fn]);var si=!((Dt=or[0])!==null&&Dt!==void 0&&(Dt=Dt.options)!==null&&Dt!==void 0&&Dt.length),wr=[(Bt={},(0,z.Z)(Bt,Gr.value,"__EMPTY__"),(0,z.Z)(Bt,Yt,_r),(0,z.Z)(Bt,"disabled",!0),Bt)],Ir=(0,ve.Z)((0,ve.Z)({},Tt),{},{multiple:!si&&Tn,onSelect:Dr,onActive:Xr,onToggleOpen:dr,checkedSet:kn,halfCheckedSet:qi,loadingKeys:ki,isSelectable:rr}),Hr=si?[{options:wr}]:or,ri=Hr.map(function(un,Vn){var Sn=_i.slice(0,Vn),Rr=_i[Vn];return Ye.createElement(zt,(0,Oe.Z)({key:Vn},Ir,{prefixCls:oi,options:un.options,prevValuePath:Sn,activeValue:Rr}))});return Ye.createElement(Ft,{open:Sr},Ye.createElement("div",{className:pe()("".concat(oi,"-menus"),(Zt={},(0,z.Z)(Zt,"".concat(oi,"-menu-empty"),si),(0,z.Z)(Zt,"".concat(oi,"-rtl"),Br),Zt)),ref:Mr},ri))}),He=et,We=Ye.forwardRef(function(Tt,It){var Dt=(0,he.lk)();return Ye.createElement(He,(0,Oe.Z)({},Tt,Dt,{ref:It}))}),tt=We,at=Ce(70425);function ot(){}function ct(Tt){var It,Dt=Tt,Bt=Dt.prefixCls,Zt=Bt===void 0?"rc-cascader":Bt,tn=Dt.style,Tn=Dt.className,Fn=Dt.options,dr=Dt.checkable,_r=Dt.defaultValue,Kr=Dt.value,Sr=Dt.fieldNames,hr=Dt.changeOnSelect,Mr=Dt.onChange,Br=Dt.showCheckedStrategy,Wr=Dt.loadData,Jn=Dt.expandTrigger,ii=Dt.expandIcon,Ur=ii===void 0?">":ii,Gr=Dt.loadingIcon,qr=Dt.direction,Li=Dt.notFoundContent,wi=Li===void 0?"Not Found":Li,ui=Dt.disabled,Qr=!!dr,Di=(0,at.C8)(_r,{value:Kr,postState:Ue}),oi=(0,ue.Z)(Di,2),di=oi[0],ci=oi[1],ki=Ye.useMemo(function(){return be(Sr)},[JSON.stringify(Sr)]),Ki=nt(ki,Fn),ua=(0,ue.Z)(Ki,3),kn=ua[0],qi=ua[1],Qi=ua[2],ra=Ne(kn,ki),_i=At(Qr,di,qi,Qi,ra),Ti=(0,ue.Z)(_i,3),Xr=Ti[0],rr=Ti[1],Dr=Ti[2],Fr=(0,at.zX)(function(Hr){if(ci(Hr),Mr){var ri=Ue(Hr),un=ri.map(function(Rr){return ze(Rr,kn,ki).map(function(ti){return ti.option})}),Vn=Qr?ri:ri[0],Sn=Qr?un:un[0];Mr(Vn,Sn)}}),or=pt(Qr,Fr,Xr,rr,Dr,qi,Qi,Br),ei=(0,at.zX)(function(Hr){or(Hr)}),si=Ye.useMemo(function(){return{options:kn,fieldNames:ki,values:Xr,halfValues:rr,changeOnSelect:hr,onSelect:ei,checkable:dr,searchOptions:[],dropdownPrefixCls:void 0,loadData:Wr,expandTrigger:Jn,expandIcon:Ur,loadingIcon:Gr,dropdownMenuColumnStyle:void 0}},[kn,ki,Xr,rr,hr,ei,dr,Wr,Jn,Ur,Gr]),wr="".concat(Zt,"-panel"),Ir=!kn.length;return Ye.createElement(E.Provider,{value:si},Ye.createElement("div",{className:pe()(wr,(It={},(0,z.Z)(It,"".concat(wr,"-rtl"),qr==="rtl"),(0,z.Z)(It,"".concat(wr,"-empty"),Ir),It),Tn),style:tn},Ir?wi:Ye.createElement(He,{prefixCls:Zt,searchValue:"",multiple:Qr,toggleOpen:ot,open:!0,direction:qr,disabled:ui})))}function lt(Tt){var It=Tt.onPopupVisibleChange,Dt=Tt.popupVisible,Bt=Tt.popupClassName,Zt=Tt.popupPlacement;warning(!It,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Dt===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Bt===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Zt===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function mt(Tt,It){if(Tt){var Dt=function Bt(Zt){for(var tn=0;tn<Zt.length;tn++){var Tn=Zt[tn];if(Tn[It==null?void 0:It.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(Tn[It==null?void 0:It.children])&&Bt(Tn[It==null?void 0:It.children]))return!0}};Dt(Tt)}}var Lt=null,ft=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],St=Ye.forwardRef(function(Tt,It){var Dt=Tt.id,Bt=Tt.prefixCls,Zt=Bt===void 0?"rc-cascader":Bt,tn=Tt.fieldNames,Tn=Tt.defaultValue,Fn=Tt.value,dr=Tt.changeOnSelect,_r=Tt.onChange,Kr=Tt.displayRender,Sr=Tt.checkable,hr=Tt.autoClearSearchValue,Mr=hr===void 0?!0:hr,Br=Tt.searchValue,Wr=Tt.onSearch,Jn=Tt.showSearch,ii=Tt.expandTrigger,Ur=Tt.options,Gr=Tt.dropdownPrefixCls,qr=Tt.loadData,Li=Tt.popupVisible,wi=Tt.open,ui=Tt.popupClassName,Qr=Tt.dropdownClassName,Di=Tt.dropdownMenuColumnStyle,oi=Tt.dropdownStyle,di=Tt.popupPlacement,ci=Tt.placement,ki=Tt.onDropdownVisibleChange,Ki=Tt.onPopupVisibleChange,ua=Tt.expandIcon,kn=ua===void 0?">":ua,qi=Tt.loadingIcon,Qi=Tt.children,ra=Tt.dropdownMatchSelectWidth,_i=ra===void 0?!1:ra,Ti=Tt.showCheckedStrategy,Xr=Ti===void 0?re:Ti,rr=Tt.optionRender,Dr=(0,fe.Z)(Tt,ft),Fr=(0,le.ZP)(Dt),or=!!Sr,ei=(0,ie.Z)(Tn,{value:Fn,postState:Ue}),si=(0,ue.Z)(ei,2),wr=si[0],Ir=si[1],Hr=Ye.useMemo(function(){return be(tn)},[JSON.stringify(tn)]),ri=nt(Hr,Ur),un=(0,ue.Z)(ri,3),Vn=un[0],Sn=un[1],Rr=un[2],ti=(0,ie.Z)("",{value:Br,postState:function(kr){return kr||""}}),gn=(0,ue.Z)(ti,2),mi=gn[0],Nr=gn[1],Ar=function(kr,Zi){Nr(kr),Zi.source!=="blur"&&Wr&&Wr(kr)},pi=Qe(Jn),Gi=(0,ue.Z)(pi,2),gi=Gi[0],Wi=Gi[1],Jr=a(mi,Vn,Hr,Gr||Zt,Wi,dr||or),li=Ne(Vn,Hr),Zr=At(or,wr,Sn,Rr,li),Vi=(0,ue.Z)(Zr,3),sa=Vi[0],vi=Vi[1],Ni=Vi[2],Ii=Ye.useMemo(function(){var Ci=_e(sa),kr=Pe(Ci,Sn,Xr);return[].concat((0,te.Z)(Ni),(0,te.Z)(Rr(kr)))},[sa,Sn,Rr,Ni,Xr]),Mi=Ke(Ii,Vn,Hr,or,Kr),fa=(0,ae.Z)(function(Ci){if(Ir(Ci),_r){var kr=Ue(Ci),Zi=kr.map(function(ir){return ze(ir,Vn,Hr).map(function(Ji){return Ji.option})}),ma=or?kr:kr[0],ba=or?Zi:Zi[0];_r(ma,ba)}}),ca=pt(or,fa,sa,vi,Ni,Sn,Rr,Xr),la=(0,ae.Z)(function(Ci){(!or||Mr)&&Nr(""),ca(Ci)}),zi=function(kr,Zi){if(Zi.type==="clear"){fa([]);return}var ma=Zi.values[0],ba=ma.valueCells;la(ba)},Da=wi!==void 0?wi:Li,Ca=Qr||ui,Ra=ci||di,to=function(kr){ki==null||ki(kr),Ki==null||Ki(kr)},bi=Ye.useMemo(function(){return{options:Vn,fieldNames:Hr,values:sa,halfValues:vi,changeOnSelect:dr,onSelect:la,checkable:Sr,searchOptions:Jr,dropdownPrefixCls:Gr,loadData:qr,expandTrigger:ii,expandIcon:kn,loadingIcon:qi,dropdownMenuColumnStyle:Di,optionRender:rr}},[Vn,Hr,sa,vi,dr,la,Sr,Jr,Gr,qr,ii,kn,qi,Di,rr]),Yi=!(mi?Jr:Vn).length,Ei=mi&&Wi.matchInputWidth||Yi?{}:{minWidth:"auto"};return Ye.createElement(E.Provider,{value:bi},Ye.createElement(he.Ac,(0,Oe.Z)({},Dr,{ref:It,id:Fr,prefixCls:Zt,autoClearSearchValue:Mr,dropdownMatchSelectWidth:_i,dropdownStyle:(0,ve.Z)((0,ve.Z)({},Ei),oi),displayValues:Mi,onDisplayValuesChange:zi,mode:or?"multiple":void 0,searchValue:mi,onSearch:Ar,showSearch:gi,OptionList:tt,emptyOptions:Yi,open:Da,dropdownClassName:Ca,placement:Ra,onDropdownVisibleChange:to,getRawInputElement:function(){return Qi}})))});St.SHOW_PARENT=re,St.SHOW_CHILD=ce,St.Panel=ct;var nn=St,on=nn,yn=Ce(2738),xn=Ce(75030),an=Ce(86641),An=Ce(45915),Jt=Ce(82855),Ut=Ce(48755),rn=Ce(38406),_n=Ce(2171),Bn=Ce(83397),kt=Ce(31756),ln=Ce(56553),Cn=Ce(24971),Mn=Ce(1722),Qn=Ce(90376),mr=Ce(68525),lr=Ce(90005),Cr=Ce(70045);function nr(Tt,It){const{getPrefixCls:Dt,direction:Bt,renderEmpty:Zt}=Ye.useContext(Ut.E_),tn=It||Bt,Tn=Dt("select",Tt),Fn=Dt("cascader",Tt);return[Tn,Fn,tn,Zt]}var ur=nr;function Nn(Tt,It){return Ye.useMemo(()=>It?Ye.createElement("span",{className:`${Tt}-checkbox-inner`}):!1,[It])}var In=Ce(33853),Wn=Ce(58617),Kn=Ce(38819),$n=(Tt,It,Dt)=>{let Bt=Dt;Dt||(Bt=It?Ye.createElement(In.Z,null):Ye.createElement(Kn.Z,null));const Zt=Ye.createElement("span",{className:`${Tt}-menu-item-loading-icon`},Ye.createElement(Wn.Z,{spin:!0}));return Ye.useMemo(()=>[Bt,Zt],[Bt])},ar=Ce(56119),dn=Ce(16931),Ie=Ce(36237),je=Ce(36170),Je=Ce(63356),Et=Tt=>{const{prefixCls:It,componentCls:Dt}=Tt,Bt=`${Dt}-menu-item`,Zt=`
|
|
|
&${Bt}-expand ${Bt}-expand-icon,
|
|
|
${Bt}-loading-icon
|
|
|
`;return[(0,je.C2)(`${It}-checkbox`,Tt),{[Dt]:{"&-checkbox":{top:0,marginInlineEnd:Tt.paddingXS,pointerEvents:"unset"},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Dt}-menu-empty`]:{[`${Dt}-menu`]:{width:"100%",height:"auto",[Bt]:{color:Tt.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:Tt.controlItemWidth,height:Tt.dropdownHeight,margin:0,padding:Tt.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${(0,Ie.unit)(Tt.lineWidth)} ${Tt.lineType} ${Tt.colorSplit}`},"&-item":Object.assign(Object.assign({},Je.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:Tt.optionPadding,lineHeight:Tt.lineHeight,cursor:"pointer",transition:`all ${Tt.motionDurationMid}`,borderRadius:Tt.borderRadiusSM,"&:hover":{background:Tt.controlItemBgHover},"&-disabled":{color:Tt.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Zt]:{color:Tt.colorTextDisabled}},[`&-active:not(${Bt}-disabled)`]:{"&, &:hover":{color:Tt.optionSelectedColor,fontWeight:Tt.optionSelectedFontWeight,backgroundColor:Tt.optionSelectedBg}},"&-content":{flex:"auto"},[Zt]:{marginInlineStart:Tt.paddingXXS,color:Tt.colorTextDescription,fontSize:Tt.fontSizeIcon},"&-keyword":{color:Tt.colorHighlight}})}}}]};const Qt=Tt=>{const{componentCls:It,antCls:Dt}=Tt;return[{[It]:{width:Tt.controlWidth}},{[`${It}-dropdown`]:[{[`&${Dt}-select-dropdown`]:{padding:0}},Et(Tt)]},{[`${It}-dropdown-rtl`]:{direction:"rtl"}},(0,ar.c)(Tt)]},fn=Tt=>{const It=Math.round((Tt.controlHeight-Tt.fontSize*Tt.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:Tt.controlItemBgActive,optionSelectedFontWeight:Tt.fontWeightStrong,optionPadding:`${It}px ${Tt.paddingSM}px`,menuPadding:Tt.paddingXXS,optionSelectedColor:Tt.colorText}};var sn=(0,dn.I$)("Cascader",Tt=>[Qt(Tt)],fn);const mn=Tt=>{const{componentCls:It}=Tt;return{[`${It}-panel`]:[Et(Tt),{display:"inline-flex",border:`${(0,Ie.unit)(Tt.lineWidth)} ${Tt.lineType} ${Tt.colorSplit}`,borderRadius:Tt.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${It}-menus`]:{alignItems:"stretch"},[`${It}-menu`]:{height:"auto"},"&-empty":{padding:Tt.paddingXXS}}]}};var Zn=(0,dn.A1)(["Cascader","Panel"],Tt=>mn(Tt),fn);function tr(Tt){const{prefixCls:It,className:Dt,multiple:Bt,rootClassName:Zt,notFoundContent:tn,direction:Tn,expandIcon:Fn,disabled:dr}=Tt,_r=Ye.useContext(_n.Z),Kr=dr!=null?dr:_r,[Sr,hr,Mr,Br]=ur(It,Tn),Wr=(0,Bn.Z)(hr),[Jn,ii,Ur]=sn(hr,Wr);Zn(hr);const Gr=Mr==="rtl",[qr,Li]=$n(Sr,Gr,Fn),wi=tn||(Br==null?void 0:Br("Cascader"))||Ye.createElement(rn.Z,{componentName:"Cascader"}),ui=Nn(hr,Bt);return Jn(Ye.createElement(ct,Object.assign({},Tt,{checkable:ui,prefixCls:hr,className:pe()(Dt,ii,Zt,Ur,Wr),notFoundContent:wi,direction:Mr,expandIcon:qr,loadingIcon:Li,disabled:Kr})))}var Vt=tr,Gt=function(Tt,It){var Dt={};for(var Bt in Tt)Object.prototype.hasOwnProperty.call(Tt,Bt)&&It.indexOf(Bt)<0&&(Dt[Bt]=Tt[Bt]);if(Tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,Bt=Object.getOwnPropertySymbols(Tt);Zt<Bt.length;Zt++)It.indexOf(Bt[Zt])<0&&Object.prototype.propertyIsEnumerable.call(Tt,Bt[Zt])&&(Dt[Bt[Zt]]=Tt[Bt[Zt]]);return Dt};const{SHOW_CHILD:Rt,SHOW_PARENT:jt}=on;function Mt(Tt,It,Dt){const Bt=Tt.toLowerCase().split(It).reduce((Tn,Fn,dr)=>dr===0?[Fn]:[].concat((0,te.Z)(Tn),[It,Fn]),[]),Zt=[];let tn=0;return Bt.forEach((Tn,Fn)=>{const dr=tn+Tn.length;let _r=Tt.slice(tn,dr);tn=dr,Fn%2===1&&(_r=Ye.createElement("span",{className:`${Dt}-menu-item-keyword`,key:`separator-${Fn}`},_r)),Zt.push(_r)}),Zt}const Kt=(Tt,It,Dt,Bt)=>{const Zt=[],tn=Tt.toLowerCase();return It.forEach((Tn,Fn)=>{Fn!==0&&Zt.push(" / ");let dr=Tn[Bt.label];const _r=typeof dr;(_r==="string"||_r==="number")&&(dr=Mt(String(dr),tn,Dt)),Zt.push(dr)}),Zt},yt=Ye.forwardRef((Tt,It)=>{var Dt;const{prefixCls:Bt,size:Zt,disabled:tn,className:Tn,rootClassName:Fn,multiple:dr,bordered:_r=!0,transitionName:Kr,choiceTransitionName:Sr="",popupClassName:hr,dropdownClassName:Mr,expandIcon:Br,placement:Wr,showSearch:Jn,allowClear:ii=!0,notFoundContent:Ur,direction:Gr,getPopupContainer:qr,status:Li,showArrow:wi,builtinPlacements:ui,style:Qr,variant:Di}=Tt,oi=Gt(Tt,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),di=(0,yn.Z)(oi,["suffixIcon"]),{getPrefixCls:ci,getPopupContainer:ki,className:Ki,style:ua}=(0,Ut.dj)("cascader"),{popupOverflow:kn}=Ye.useContext(Ut.E_),{status:qi,hasFeedback:Qi,isFormItemInput:ra,feedbackIcon:_i}=Ye.useContext(ln.aM),Ti=(0,Jt.F)(qi,Li),[Xr,rr,Dr,Fr]=ur(Bt,Gr),or=Dr==="rtl",ei=ci(),si=(0,Bn.Z)(Xr),[wr,Ir,Hr]=(0,Qn.Z)(Xr,si),ri=(0,Bn.Z)(rr),[un]=sn(rr,ri),{compactSize:Vn,compactItemClassnames:Sn}=(0,Cr.ri)(Xr,Gr),[Rr,ti]=(0,Cn.Z)("cascader",Di,_r),gn=Ur||(Fr==null?void 0:Fr("Cascader"))||Ye.createElement(rn.Z,{componentName:"Cascader"}),mi=pe()(hr||Mr,`${rr}-dropdown`,{[`${rr}-dropdown-rtl`]:Dr==="rtl"},Fn,si,ri,Ir,Hr),Nr=Ye.useMemo(()=>{if(!Jn)return Jn;let fa={render:Kt};return typeof Jn=="object"&&(fa=Object.assign(Object.assign({},fa),Jn)),fa},[Jn]),Ar=(0,kt.Z)(fa=>{var ca;return(ca=Zt!=null?Zt:Vn)!==null&&ca!==void 0?ca:fa}),pi=Ye.useContext(_n.Z),Gi=tn!=null?tn:pi,[gi,Wi]=$n(Xr,or,Br),Jr=Nn(rr,dr),li=(0,lr.Z)(Tt.suffixIcon,wi),{suffixIcon:Zr,removeIcon:Vi,clearIcon:sa}=(0,mr.Z)(Object.assign(Object.assign({},Tt),{hasFeedback:Qi,feedbackIcon:_i,showSuffixIcon:li,multiple:dr,prefixCls:Xr,componentName:"Cascader"})),vi=Ye.useMemo(()=>Wr!==void 0?Wr:or?"bottomRight":"bottomLeft",[Wr,or]),Ni=ii===!0?{clearIcon:sa}:ii,[Ii]=(0,xn.Cn)("SelectLike",(Dt=di.dropdownStyle)===null||Dt===void 0?void 0:Dt.zIndex),Mi=Ye.createElement(on,Object.assign({prefixCls:Xr,className:pe()(!Bt&&rr,{[`${Xr}-lg`]:Ar==="large",[`${Xr}-sm`]:Ar==="small",[`${Xr}-rtl`]:or,[`${Xr}-${Rr}`]:ti,[`${Xr}-in-form-item`]:ra},(0,Jt.Z)(Xr,Ti,Qi),Sn,Ki,Tn,Fn,si,ri,Ir,Hr),disabled:Gi,style:Object.assign(Object.assign({},ua),Qr)},di,{builtinPlacements:(0,Mn.Z)(ui,kn),direction:Dr,placement:vi,notFoundContent:gn,allowClear:Ni,showSearch:Nr,expandIcon:gi,suffixIcon:Zr,removeIcon:Vi,loadingIcon:Wi,checkable:Jr,dropdownClassName:mi,dropdownPrefixCls:Bt||rr,dropdownStyle:Object.assign(Object.assign({},di.dropdownStyle),{zIndex:Ii}),choiceTransitionName:(0,an.m)(ei,"",Sr),transitionName:(0,an.m)(ei,"slide-up",Kr),getPopupContainer:qr||ki,ref:It}));return un(wr(Mi))}),qt=(0,An.Z)(yt,"dropdownAlign",Tt=>(0,yn.Z)(Tt,["visible"]));yt.SHOW_PARENT=jt,yt.SHOW_CHILD=Rt,yt.Panel=Vt,yt._InternalPanelDoNotUseOrYouWillBeFired=qt;var vn=yt},62673:function(Yn,en,Ce){"use strict";Ce.d(en,{default:function(){return _e}});var te=Ce(59301),Ye=Ce(92310),Me=Ce.n(Ye),pe=Ce(16632),Oe=Ce(8654),ve=Ce(12919),ue=Ce(63872),fe=Ce(48755),he=Ce(2171),le=Ce(83397),ae=Ce(56553),me=te.createContext(null),E=Ce(36170),b=Ce(74632),z=function(ye,be){var Se={};for(var Be in ye)Object.prototype.hasOwnProperty.call(ye,Be)&&be.indexOf(Be)<0&&(Se[Be]=ye[Be]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Be=Object.getOwnPropertySymbols(ye);Ae<Be.length;Ae++)be.indexOf(Be[Ae])<0&&Object.prototype.propertyIsEnumerable.call(ye,Be[Ae])&&(Se[Be[Ae]]=ye[Be[Ae]]);return Se};const ne=(ye,be)=>{var Se;const{prefixCls:Be,className:Ae,rootClassName:we,children:Ue,indeterminate:Pe=!1,style:ze,onMouseEnter:Ke,onMouseLeave:Ne,skipGroup:Re=!1,disabled:$e}=ye,nt=z(ye,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:ut,direction:Qe,checkbox:rt}=te.useContext(fe.E_),pt=te.useContext(me),{isFormItemInput:At}=te.useContext(ae.aM),gt=te.useContext(he.Z),Ft=(Se=(pt==null?void 0:pt.disabled)||$e)!==null&&Se!==void 0?Se:gt,Ct=te.useRef(nt.value),Yt=te.useRef(null),zt=(0,Oe.sQ)(be,Yt);te.useEffect(()=>{pt==null||pt.registerValue(nt.value)},[]),te.useEffect(()=>{if(!Re)return nt.value!==Ct.current&&(pt==null||pt.cancelValue(Ct.current),pt==null||pt.registerValue(nt.value),Ct.current=nt.value),()=>pt==null?void 0:pt.cancelValue(nt.value)},[nt.value]),te.useEffect(()=>{var ct;!((ct=Yt.current)===null||ct===void 0)&&ct.input&&(Yt.current.input.indeterminate=Pe)},[Pe]);const Xe=ut("checkbox",Be),Fe=(0,le.Z)(Xe),[Le,Ze,et]=(0,E.ZP)(Xe,Fe),He=Object.assign({},nt);pt&&!Re&&(He.onChange=function(){nt.onChange&&nt.onChange.apply(nt,arguments),pt.toggleOption&&pt.toggleOption({label:Ue,value:nt.value})},He.name=pt.name,He.checked=pt.value.includes(nt.value));const We=Me()(`${Xe}-wrapper`,{[`${Xe}-rtl`]:Qe==="rtl",[`${Xe}-wrapper-checked`]:He.checked,[`${Xe}-wrapper-disabled`]:Ft,[`${Xe}-wrapper-in-form-item`]:At},rt==null?void 0:rt.className,Ae,we,et,Fe,Ze),tt=Me()({[`${Xe}-indeterminate`]:Pe},ue.A,Ze),[at,ot]=(0,b.Z)(He.onClick);return Le(te.createElement(ve.Z,{component:"Checkbox",disabled:Ft},te.createElement("label",{className:We,style:Object.assign(Object.assign({},rt==null?void 0:rt.style),ze),onMouseEnter:Ke,onMouseLeave:Ne,onClick:at},te.createElement(pe.Z,Object.assign({},He,{onClick:ot,prefixCls:Xe,className:tt,disabled:Ft,ref:zt})),Ue!==void 0&&te.createElement("span",{className:`${Xe}-label`},Ue))))};var se=te.forwardRef(ne),de=Ce(77654),a=Ce(2738),x=function(ye,be){var Se={};for(var Be in ye)Object.prototype.hasOwnProperty.call(ye,Be)&&be.indexOf(Be)<0&&(Se[Be]=ye[Be]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Be=Object.getOwnPropertySymbols(ye);Ae<Be.length;Ae++)be.indexOf(Be[Ae])<0&&Object.prototype.propertyIsEnumerable.call(ye,Be[Ae])&&(Se[Be[Ae]]=ye[Be[Ae]]);return Se},ce=te.forwardRef((ye,be)=>{const{defaultValue:Se,children:Be,options:Ae=[],prefixCls:we,className:Ue,rootClassName:Pe,style:ze,onChange:Ke}=ye,Ne=x(ye,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Re,direction:$e}=te.useContext(fe.E_),[nt,ut]=te.useState(Ne.value||Se||[]),[Qe,rt]=te.useState([]);te.useEffect(()=>{"value"in Ne&&ut(Ne.value||[])},[Ne.value]);const pt=te.useMemo(()=>Ae.map(tt=>typeof tt=="string"||typeof tt=="number"?{label:tt,value:tt}:tt),[Ae]),At=tt=>{rt(at=>at.filter(ot=>ot!==tt))},gt=tt=>{rt(at=>[].concat((0,de.Z)(at),[tt]))},Ft=tt=>{const at=nt.indexOf(tt.value),ot=(0,de.Z)(nt);at===-1?ot.push(tt.value):ot.splice(at,1),"value"in Ne||ut(ot),Ke==null||Ke(ot.filter(ct=>Qe.includes(ct)).sort((ct,lt)=>{const mt=pt.findIndex(ft=>ft.value===ct),Lt=pt.findIndex(ft=>ft.value===lt);return mt-Lt}))},Ct=Re("checkbox",we),Yt=`${Ct}-group`,zt=(0,le.Z)(Ct),[Xe,Fe,Le]=(0,E.ZP)(Ct,zt),Ze=(0,a.Z)(Ne,["value","disabled"]),et=Ae.length?pt.map(tt=>te.createElement(se,{prefixCls:Ct,key:tt.value.toString(),disabled:"disabled"in tt?tt.disabled:Ne.disabled,value:tt.value,checked:nt.includes(tt.value),onChange:tt.onChange,className:`${Yt}-item`,style:tt.style,title:tt.title,id:tt.id,required:tt.required},tt.label)):Be,He={toggleOption:Ft,value:nt,disabled:Ne.disabled,name:Ne.name,registerValue:gt,cancelValue:At},We=Me()(Yt,{[`${Yt}-rtl`]:$e==="rtl"},Ue,Pe,Le,zt,Fe);return Xe(te.createElement("div",Object.assign({className:We,style:ze},Ze,{ref:be}),te.createElement(me.Provider,{value:He},et)))});const ge=se;ge.Group=ce,ge.__ANT_CHECKBOX=!0;var _e=ge},36170:function(Yn,en,Ce){"use strict";Ce.d(en,{C2:function(){return ve}});var te=Ce(36237),Ye=Ce(63356),Me=Ce(51636),pe=Ce(16931);const Oe=ue=>{const{checkboxCls:fe}=ue,he=`${fe}-wrapper`;return[{[`${fe}-group`]:Object.assign(Object.assign({},(0,Ye.Wf)(ue)),{display:"inline-flex",flexWrap:"wrap",columnGap:ue.marginXS,[`> ${ue.antCls}-row`]:{flex:1}}),[he]:Object.assign(Object.assign({},(0,Ye.Wf)(ue)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${he}`]:{marginInlineStart:0},[`&${he}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[fe]:Object.assign(Object.assign({},(0,Ye.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,Ye.oN)(ue))},[`${fe}-inner`]:{boxSizing:"border-box",display:"block",width:ue.checkboxSize,height:ue.checkboxSize,direction:"ltr",backgroundColor:ue.colorBgContainer,border:`${(0,te.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,te.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}})},{[`
|
|
|
${he}:not(${he}-disabled),
|
|
|
${fe}:not(${fe}-disabled)
|
|
|
`]:{[`&:hover ${fe}-inner`]:{borderColor:ue.colorPrimary}},[`${he}:not(${he}-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}`}}},[`
|
|
|
${he}-checked:not(${he}-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`}}}},{[`${he}-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 ve(ue,fe){const he=(0,Me.mergeToken)(fe,{checkboxCls:`.${ue}`,checkboxSize:fe.controlInteractiveSize});return[Oe(he)]}en.ZP=(0,pe.I$)("Checkbox",(ue,fe)=>{let{prefixCls:he}=fe;return[ve(he,ue)]})},38406:function(Yn,en,Ce){"use strict";var te=Ce(59301),Ye=Ce(48755),Me=Ce(584);const pe=Oe=>{const{componentName:ve}=Oe,{getPrefixCls:ue}=(0,te.useContext)(Ye.E_),fe=ue("empty");switch(ve){case"Table":case"List":return te.createElement(Me.Z,{image:Me.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return te.createElement(Me.Z,{image:Me.Z.PRESENTED_IMAGE_SIMPLE,className:`${fe}-small`});case"Table.filter":return null;default:return te.createElement(Me.Z,null)}};en.Z=pe},37285:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return E}});var te=Ce(59301),Ye=Ce(92310),Me=Ce.n(Ye),pe=Ce(48755),Oe=Ce(36237),ve=Ce(63356),ue=Ce(16931),fe=Ce(51636);const he=b=>{const{componentCls:z,sizePaddingEdgeHorizontal:ne,colorSplit:oe,lineWidth:se,textPaddingInline:de,orientationMargin:a,verticalMarginInline:x}=b;return{[z]:Object.assign(Object.assign({},(0,ve.Wf)(b)),{borderBlockStart:`${(0,Oe.unit)(se)} solid ${oe}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:x,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,Oe.unit)(se)} solid ${oe}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,Oe.unit)(b.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${z}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,Oe.unit)(b.dividerHorizontalWithTextGutterMargin)} 0`,color:b.colorTextHeading,fontWeight:500,fontSize:b.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${oe}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,Oe.unit)(se)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${z}-with-text-start`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${z}-with-text-end`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${z}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:de},"&-dashed":{background:"none",borderColor:oe,borderStyle:"dashed",borderWidth:`${(0,Oe.unit)(se)} 0 0`},[`&-horizontal${z}-with-text${z}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${z}-dashed`]:{borderInlineStartWidth:se,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:oe,borderStyle:"dotted",borderWidth:`${(0,Oe.unit)(se)} 0 0`},[`&-horizontal${z}-with-text${z}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${z}-dotted`]:{borderInlineStartWidth:se,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${z}-with-text`]:{color:b.colorText,fontWeight:"normal",fontSize:b.fontSize},[`&-horizontal${z}-with-text-start${z}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${z}-inner-text`]:{paddingInlineStart:ne}},[`&-horizontal${z}-with-text-end${z}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${z}-inner-text`]:{paddingInlineEnd:ne}}})}},le=b=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:b.marginXS});var ae=(0,ue.I$)("Divider",b=>{const z=(0,fe.mergeToken)(b,{dividerHorizontalWithTextGutterMargin:b.margin,dividerHorizontalGutterMargin:b.marginLG,sizePaddingEdgeHorizontal:0});return[he(z)]},le,{unitless:{orientationMargin:!0}}),ie=function(b,z){var ne={};for(var oe in b)Object.prototype.hasOwnProperty.call(b,oe)&&z.indexOf(oe)<0&&(ne[oe]=b[oe]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,oe=Object.getOwnPropertySymbols(b);se<oe.length;se++)z.indexOf(oe[se])<0&&Object.prototype.propertyIsEnumerable.call(b,oe[se])&&(ne[oe[se]]=b[oe[se]]);return ne},E=b=>{const{getPrefixCls:z,direction:ne,className:oe,style:se}=(0,pe.dj)("divider"),{prefixCls:de,type:a="horizontal",orientation:x="center",orientationMargin:re,className:ce,rootClassName:ge,children:_e,dashed:ye,variant:be="solid",plain:Se,style:Be}=b,Ae=ie(b,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),we=z("divider",de),[Ue,Pe,ze]=ae(we),Ke=!!_e,Ne=te.useMemo(()=>x==="left"?ne==="rtl"?"end":"start":x==="right"?ne==="rtl"?"start":"end":x,[ne,x]),Re=Ne==="start"&&re!=null,$e=Ne==="end"&&re!=null,nt=Me()(we,oe,Pe,ze,`${we}-${a}`,{[`${we}-with-text`]:Ke,[`${we}-with-text-${Ne}`]:Ke,[`${we}-dashed`]:!!ye,[`${we}-${be}`]:be!=="solid",[`${we}-plain`]:!!Se,[`${we}-rtl`]:ne==="rtl",[`${we}-no-default-orientation-margin-start`]:Re,[`${we}-no-default-orientation-margin-end`]:$e},ce,ge),ut=te.useMemo(()=>typeof re=="number"?re:/^\d+$/.test(re)?Number(re):re,[re]),Qe={marginInlineStart:Re?ut:void 0,marginInlineEnd:$e?ut:void 0};return Ue(te.createElement("div",Object.assign({className:nt,style:Object.assign(Object.assign({},se),Be)},Ae,{role:"separator"}),_e&&a!=="vertical"&&te.createElement("span",{className:`${we}-inner-text`,style:Qe},_e)))}},36207:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return at}});var te=Ce(59301),Ye=Ce(92310),Me=Ce.n(Ye),pe=Ce(85899),Oe=Ce(72190),ve=Ce(43403),ue=Ce(34280),fe=te.createContext(null),he=te.createContext({}),le=fe,ae=Ce(18642),ie=Ce(60499),me=Ce(77900),E=Ce(10228),b=Ce(26112),z=Ce(42244),ne=Ce(8654),oe=["prefixCls","className","containerRef"],se=function(ct){var lt=ct.prefixCls,mt=ct.className,Lt=ct.containerRef,ft=(0,z.Z)(ct,oe),St=te.useContext(he),nn=St.panel,on=(0,ne.x1)(nn,Lt);return te.createElement("div",(0,ie.Z)({className:Me()("".concat(lt,"-content"),mt),role:"dialog",ref:on},(0,b.Z)(ct,{aria:!0}),{"aria-modal":"true"},ft))},de=se,a=Ce(48736);function x(ot){return typeof ot=="string"&&String(Number(ot))===ot?((0,a.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(ot)):ot}function re(ot){warning(!("wrapperClassName"in ot),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!ot.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var ce={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ge(ot,ct){var lt,mt,Lt,ft=ot.prefixCls,St=ot.open,nn=ot.placement,on=ot.inline,yn=ot.push,xn=ot.forceRender,an=ot.autoFocus,An=ot.keyboard,Jt=ot.classNames,Ut=ot.rootClassName,rn=ot.rootStyle,_n=ot.zIndex,Bn=ot.className,kt=ot.id,ln=ot.style,Cn=ot.motion,Mn=ot.width,Qn=ot.height,mr=ot.children,lr=ot.mask,Cr=ot.maskClosable,nr=ot.maskMotion,ur=ot.maskClassName,Nn=ot.maskStyle,In=ot.afterOpenChange,Wn=ot.onClose,Kn=ot.onMouseEnter,Ln=ot.onMouseOver,$n=ot.onMouseLeave,ar=ot.onClick,dn=ot.onKeyDown,Ie=ot.onKeyUp,je=ot.styles,Je=ot.drawerRender,ht=te.useRef(),Et=te.useRef(),Qt=te.useRef();te.useImperativeHandle(ct,function(){return ht.current});var fn=function(Dt){var Bt=Dt.keyCode,Zt=Dt.shiftKey;switch(Bt){case E.Z.TAB:{if(Bt===E.Z.TAB){if(!Zt&&document.activeElement===Qt.current){var tn;(tn=Et.current)===null||tn===void 0||tn.focus({preventScroll:!0})}else if(Zt&&document.activeElement===Et.current){var Tn;(Tn=Qt.current)===null||Tn===void 0||Tn.focus({preventScroll:!0})}}break}case E.Z.ESC:{Wn&&An&&(Dt.stopPropagation(),Wn(Dt));break}}};te.useEffect(function(){if(St&&an){var It;(It=ht.current)===null||It===void 0||It.focus({preventScroll:!0})}},[St]);var sn=te.useState(!1),mn=(0,Oe.Z)(sn,2),Zn=mn[0],tr=mn[1],Vt=te.useContext(le),Gt;typeof yn=="boolean"?Gt=yn?{}:{distance:0}:Gt=yn||{};var Rt=(lt=(mt=(Lt=Gt)===null||Lt===void 0?void 0:Lt.distance)!==null&&mt!==void 0?mt:Vt==null?void 0:Vt.pushDistance)!==null&<!==void 0?lt:180,jt=te.useMemo(function(){return{pushDistance:Rt,push:function(){tr(!0)},pull:function(){tr(!1)}}},[Rt]);te.useEffect(function(){if(St){var It;Vt==null||(It=Vt.push)===null||It===void 0||It.call(Vt)}else{var Dt;Vt==null||(Dt=Vt.pull)===null||Dt===void 0||Dt.call(Vt)}},[St]),te.useEffect(function(){return function(){var It;Vt==null||(It=Vt.pull)===null||It===void 0||It.call(Vt)}},[]);var Mt=lr&&te.createElement(me.default,(0,ie.Z)({key:"mask"},nr,{visible:St}),function(It,Dt){var Bt=It.className,Zt=It.style;return te.createElement("div",{className:Me()("".concat(ft,"-mask"),Bt,Jt==null?void 0:Jt.mask,ur),style:(0,pe.Z)((0,pe.Z)((0,pe.Z)({},Zt),Nn),je==null?void 0:je.mask),onClick:Cr&&St?Wn:void 0,ref:Dt})}),Kt=typeof Cn=="function"?Cn(nn):Cn,yt={};if(Zn&&Rt)switch(nn){case"top":yt.transform="translateY(".concat(Rt,"px)");break;case"bottom":yt.transform="translateY(".concat(-Rt,"px)");break;case"left":yt.transform="translateX(".concat(Rt,"px)");break;default:yt.transform="translateX(".concat(-Rt,"px)");break}nn==="left"||nn==="right"?yt.width=x(Mn):yt.height=x(Qn);var qt={onMouseEnter:Kn,onMouseOver:Ln,onMouseLeave:$n,onClick:ar,onKeyDown:dn,onKeyUp:Ie},vn=te.createElement(me.default,(0,ie.Z)({key:"panel"},Kt,{visible:St,forceRender:xn,onVisibleChanged:function(Dt){In==null||In(Dt)},removeOnLeave:!1,leavedClassName:"".concat(ft,"-content-wrapper-hidden")}),function(It,Dt){var Bt=It.className,Zt=It.style,tn=te.createElement(de,(0,ie.Z)({id:kt,containerRef:Dt,prefixCls:ft,className:Me()(Bn,Jt==null?void 0:Jt.content),style:(0,pe.Z)((0,pe.Z)({},ln),je==null?void 0:je.content)},(0,b.Z)(ot,{aria:!0}),qt),mr);return te.createElement("div",(0,ie.Z)({className:Me()("".concat(ft,"-content-wrapper"),Jt==null?void 0:Jt.wrapper,Bt),style:(0,pe.Z)((0,pe.Z)((0,pe.Z)({},yt),Zt),je==null?void 0:je.wrapper)},(0,b.Z)(ot,{data:!0})),Je?Je(tn):tn)}),Tt=(0,pe.Z)({},rn);return _n&&(Tt.zIndex=_n),te.createElement(le.Provider,{value:jt},te.createElement("div",{className:Me()(ft,"".concat(ft,"-").concat(nn),Ut,(0,ae.Z)((0,ae.Z)({},"".concat(ft,"-open"),St),"".concat(ft,"-inline"),on)),style:Tt,tabIndex:-1,ref:ht,onKeyDown:fn},Mt,te.createElement("div",{tabIndex:0,ref:Et,style:ce,"aria-hidden":"true","data-sentinel":"start"}),vn,te.createElement("div",{tabIndex:0,ref:Qt,style:ce,"aria-hidden":"true","data-sentinel":"end"})))}var _e=te.forwardRef(ge),ye=_e,be=function(ct){var lt=ct.open,mt=lt===void 0?!1:lt,Lt=ct.prefixCls,ft=Lt===void 0?"rc-drawer":Lt,St=ct.placement,nn=St===void 0?"right":St,on=ct.autoFocus,yn=on===void 0?!0:on,xn=ct.keyboard,an=xn===void 0?!0:xn,An=ct.width,Jt=An===void 0?378:An,Ut=ct.mask,rn=Ut===void 0?!0:Ut,_n=ct.maskClosable,Bn=_n===void 0?!0:_n,kt=ct.getContainer,ln=ct.forceRender,Cn=ct.afterOpenChange,Mn=ct.destroyOnClose,Qn=ct.onMouseEnter,mr=ct.onMouseOver,lr=ct.onMouseLeave,Cr=ct.onClick,nr=ct.onKeyDown,ur=ct.onKeyUp,Nn=ct.panelRef,In=te.useState(!1),Wn=(0,Oe.Z)(In,2),Kn=Wn[0],Ln=Wn[1],$n=te.useState(!1),ar=(0,Oe.Z)($n,2),dn=ar[0],Ie=ar[1];(0,ue.Z)(function(){Ie(!0)},[]);var je=dn?mt:!1,Je=te.useRef(),ht=te.useRef();(0,ue.Z)(function(){je&&(ht.current=document.activeElement)},[je]);var Et=function(Zn){var tr;if(Ln(Zn),Cn==null||Cn(Zn),!Zn&&ht.current&&!((tr=Je.current)!==null&&tr!==void 0&&tr.contains(ht.current))){var Vt;(Vt=ht.current)===null||Vt===void 0||Vt.focus({preventScroll:!0})}},Qt=te.useMemo(function(){return{panel:Nn}},[Nn]);if(!ln&&!Kn&&!je&&Mn)return null;var fn={onMouseEnter:Qn,onMouseOver:mr,onMouseLeave:lr,onClick:Cr,onKeyDown:nr,onKeyUp:ur},sn=(0,pe.Z)((0,pe.Z)({},ct),{},{open:je,prefixCls:ft,placement:nn,autoFocus:yn,keyboard:an,width:Jt,mask:rn,maskClosable:Bn,inline:kt===!1,afterOpenChange:Et,ref:Je},fn);return te.createElement(he.Provider,{value:Qt},te.createElement(ve.Z,{open:je||ln||Kn,autoDestroy:!1,getContainer:kt,autoLock:rn&&(je||Kn)},te.createElement(ye,sn)))},Se=be,Be=Se,Ae=Ce(62487),we=Ce(75030),Ue=Ce(86641),Pe=Ce(55743),ze=Ce(48755),Ke=Ce(91190),Ne=Ce(78776),Re=Ce(458),nt=ot=>{var ct,lt;const{prefixCls:mt,title:Lt,footer:ft,extra:St,loading:nn,onClose:on,headerStyle:yn,bodyStyle:xn,footerStyle:an,children:An,classNames:Jt,styles:Ut}=ot,rn=(0,ze.dj)("drawer"),_n=te.useCallback(Mn=>te.createElement("button",{type:"button",onClick:on,"aria-label":"Close",className:`${mt}-close`},Mn),[on]),[Bn,kt]=(0,Ne.Z)((0,Ne.w)(ot),(0,Ne.w)(rn),{closable:!0,closeIconRender:_n}),ln=te.useMemo(()=>{var Mn,Qn;return!Lt&&!Bn?null:te.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Mn=rn.styles)===null||Mn===void 0?void 0:Mn.header),yn),Ut==null?void 0:Ut.header),className:Me()(`${mt}-header`,{[`${mt}-header-close-only`]:Bn&&!Lt&&!St},(Qn=rn.classNames)===null||Qn===void 0?void 0:Qn.header,Jt==null?void 0:Jt.header)},te.createElement("div",{className:`${mt}-header-title`},kt,Lt&&te.createElement("div",{className:`${mt}-title`},Lt)),St&&te.createElement("div",{className:`${mt}-extra`},St))},[Bn,kt,St,yn,mt,Lt]),Cn=te.useMemo(()=>{var Mn,Qn;if(!ft)return null;const mr=`${mt}-footer`;return te.createElement("div",{className:Me()(mr,(Mn=rn.classNames)===null||Mn===void 0?void 0:Mn.footer,Jt==null?void 0:Jt.footer),style:Object.assign(Object.assign(Object.assign({},(Qn=rn.styles)===null||Qn===void 0?void 0:Qn.footer),an),Ut==null?void 0:Ut.footer)},ft)},[ft,an,mt]);return te.createElement(te.Fragment,null,ln,te.createElement("div",{className:Me()(`${mt}-body`,Jt==null?void 0:Jt.body,(ct=rn.classNames)===null||ct===void 0?void 0:ct.body),style:Object.assign(Object.assign(Object.assign({},(lt=rn.styles)===null||lt===void 0?void 0:lt.body),xn),Ut==null?void 0:Ut.body)},nn?te.createElement(Re.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${mt}-body-skeleton`}):An),Cn)},ut=Ce(36237),Qe=Ce(63356),rt=Ce(16931),pt=Ce(51636);const At=ot=>{const ct="100%";return{left:`translateX(-${ct})`,right:`translateX(${ct})`,top:`translateY(-${ct})`,bottom:`translateY(${ct})`}[ot]},gt=(ot,ct)=>({"&-enter, &-appear":Object.assign(Object.assign({},ot),{"&-active":ct}),"&-leave":Object.assign(Object.assign({},ct),{"&-active":ot})}),Ft=(ot,ct)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${ct}`}}},gt({opacity:ot},{opacity:1})),Ct=(ot,ct)=>[Ft(.7,ct),gt({transform:At(ot)},{transform:"none"})];var zt=ot=>{const{componentCls:ct,motionDurationSlow:lt}=ot;return{[ct]:{[`${ct}-mask-motion`]:Ft(0,lt),[`${ct}-panel-motion`]:["left","right","top","bottom"].reduce((mt,Lt)=>Object.assign(Object.assign({},mt),{[`&-${Lt}`]:Ct(Lt,lt)}),{})}}};const Xe=ot=>{const{borderRadiusSM:ct,componentCls:lt,zIndexPopup:mt,colorBgMask:Lt,colorBgElevated:ft,motionDurationSlow:St,motionDurationMid:nn,paddingXS:on,padding:yn,paddingLG:xn,fontSizeLG:an,lineHeightLG:An,lineWidth:Jt,lineType:Ut,colorSplit:rn,marginXS:_n,colorIcon:Bn,colorIconHover:kt,colorBgTextHover:ln,colorBgTextActive:Cn,colorText:Mn,fontWeightStrong:Qn,footerPaddingBlock:mr,footerPaddingInline:lr,calc:Cr}=ot,nr=`${lt}-content-wrapper`;return{[lt]:{position:"fixed",inset:0,zIndex:mt,pointerEvents:"none",color:Mn,"&-pure":{position:"relative",background:ft,display:"flex",flexDirection:"column",[`&${lt}-left`]:{boxShadow:ot.boxShadowDrawerLeft},[`&${lt}-right`]:{boxShadow:ot.boxShadowDrawerRight},[`&${lt}-top`]:{boxShadow:ot.boxShadowDrawerUp},[`&${lt}-bottom`]:{boxShadow:ot.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${lt}-mask`]:{position:"absolute",inset:0,zIndex:mt,background:Lt,pointerEvents:"auto"},[nr]:{position:"absolute",zIndex:mt,maxWidth:"100vw",transition:`all ${St}`,"&-hidden":{display:"none"}},[`&-left > ${nr}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:ot.boxShadowDrawerLeft},[`&-right > ${nr}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:ot.boxShadowDrawerRight},[`&-top > ${nr}`]:{top:0,insetInline:0,boxShadow:ot.boxShadowDrawerUp},[`&-bottom > ${nr}`]:{bottom:0,insetInline:0,boxShadow:ot.boxShadowDrawerDown},[`${lt}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:ft,pointerEvents:"auto"},[`${lt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,ut.unit)(yn)} ${(0,ut.unit)(xn)}`,fontSize:an,lineHeight:An,borderBottom:`${(0,ut.unit)(Jt)} ${Ut} ${rn}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${lt}-extra`]:{flex:"none"},[`${lt}-close`]:Object.assign({display:"inline-flex",width:Cr(an).add(on).equal(),height:Cr(an).add(on).equal(),borderRadius:ct,justifyContent:"center",alignItems:"center",marginInlineEnd:_n,color:Bn,fontWeight:Qn,fontSize:an,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${nn}`,textRendering:"auto","&:hover":{color:kt,backgroundColor:ln,textDecoration:"none"},"&:active":{backgroundColor:Cn}},(0,Qe.Qy)(ot)),[`${lt}-title`]:{flex:1,margin:0,fontWeight:ot.fontWeightStrong,fontSize:an,lineHeight:An},[`${lt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:xn,overflow:"auto",[`${lt}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${lt}-footer`]:{flexShrink:0,padding:`${(0,ut.unit)(mr)} ${(0,ut.unit)(lr)}`,borderTop:`${(0,ut.unit)(Jt)} ${Ut} ${rn}`},"&-rtl":{direction:"rtl"}}}},Fe=ot=>({zIndexPopup:ot.zIndexPopupBase,footerPaddingBlock:ot.paddingXS,footerPaddingInline:ot.padding});var Le=(0,rt.I$)("Drawer",ot=>{const ct=(0,pt.mergeToken)(ot,{});return[Xe(ct),zt(ct)]},Fe),Ze=function(ot,ct){var lt={};for(var mt in ot)Object.prototype.hasOwnProperty.call(ot,mt)&&ct.indexOf(mt)<0&&(lt[mt]=ot[mt]);if(ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,mt=Object.getOwnPropertySymbols(ot);Lt<mt.length;Lt++)ct.indexOf(mt[Lt])<0&&Object.prototype.propertyIsEnumerable.call(ot,mt[Lt])&&(lt[mt[Lt]]=ot[mt[Lt]]);return lt};const et=null,He={distance:180},We=ot=>{var ct;const{rootClassName:lt,width:mt,height:Lt,size:ft="default",mask:St=!0,push:nn=He,open:on,afterOpenChange:yn,onClose:xn,prefixCls:an,getContainer:An,style:Jt,className:Ut,visible:rn,afterVisibleChange:_n,maskStyle:Bn,drawerStyle:kt,contentWrapperStyle:ln}=ot,Cn=Ze(ot,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Mn,getPrefixCls:Qn,direction:mr,className:lr,style:Cr,classNames:nr,styles:ur}=(0,ze.dj)("drawer"),Nn=Qn("drawer",an),[In,Wn,Kn]=Le(Nn),Ln=An===void 0&&Mn?()=>Mn(document.body):An,$n=Me()({"no-mask":!St,[`${Nn}-rtl`]:mr==="rtl"},lt,Wn,Kn),ar=te.useMemo(()=>mt!=null?mt:ft==="large"?736:378,[mt,ft]),dn=te.useMemo(()=>Lt!=null?Lt:ft==="large"?736:378,[Lt,ft]),Ie={motionName:(0,Ue.m)(Nn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},je=sn=>({motionName:(0,Ue.m)(Nn,`panel-motion-${sn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Je=(0,Ke.H)(),[ht,Et]=(0,we.Cn)("Drawer",Cn.zIndex),{classNames:Qt={},styles:fn={}}=Cn;return In(te.createElement(Ae.Z,{form:!0,space:!0},te.createElement(Pe.Z.Provider,{value:Et},te.createElement(Be,Object.assign({prefixCls:Nn,onClose:xn,maskMotion:Ie,motion:je},Cn,{classNames:{mask:Me()(Qt.mask,nr.mask),content:Me()(Qt.content,nr.content),wrapper:Me()(Qt.wrapper,nr.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},fn.mask),Bn),ur.mask),content:Object.assign(Object.assign(Object.assign({},fn.content),kt),ur.content),wrapper:Object.assign(Object.assign(Object.assign({},fn.wrapper),ln),ur.wrapper)},open:on!=null?on:rn,mask:St,push:nn,width:ar,height:dn,style:Object.assign(Object.assign({},Cr),Jt),className:Me()(lr,Ut),rootClassName:$n,getContainer:Ln,afterOpenChange:yn!=null?yn:_n,panelRef:Je,zIndex:ht}),te.createElement(nt,Object.assign({prefixCls:Nn},Cn,{onClose:xn}))))))},tt=ot=>{const{prefixCls:ct,style:lt,className:mt,placement:Lt="right"}=ot,ft=Ze(ot,["prefixCls","style","className","placement"]),{getPrefixCls:St}=te.useContext(ze.E_),nn=St("drawer",ct),[on,yn,xn]=Le(nn),an=Me()(nn,`${nn}-pure`,`${nn}-${Lt}`,yn,xn,mt);return on(te.createElement("div",{className:an,style:lt},te.createElement(nt,Object.assign({prefixCls:nn},ft))))};We._InternalPanelDoNotUseOrYouWillBeFired=tt;var at=We},19563:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return ut}});var te=Ce(59301),Ye=Ce(33853),Me=Ce(38819),pe=Ce(92310),Oe=Ce.n(pe),ve=Ce(96478),ue=Ce(6089),fe=Ce(18929),he=Ce(2738),le=Ce(75030),ie=Qe=>typeof Qe!="object"&&typeof Qe!="function"||Qe===null,me=Ce(52838),E=Ce(45915),b=Ce(22703),z=Ce(32383),ne=Ce(55743),oe=Ce(48755),se=Ce(83397),de=Ce(93041),a=Ce(78857),x=Ce(57700),re=Ce(36237),ce=Ce(63356),ge=Ce(46e3),_e=Ce(93873),ye=Ce(34925),be=Ce(37645),Se=Ce(36305),Be=Ce(16931),Ae=Ce(51636),Ue=Qe=>{const{componentCls:rt,menuCls:pt,colorError:At,colorTextLightSolid:gt}=Qe,Ft=`${pt}-item`;return{[`${rt}, ${rt}-menu-submenu`]:{[`${pt} ${Ft}`]:{[`&${Ft}-danger:not(${Ft}-disabled)`]:{color:At,"&:hover":{color:gt,backgroundColor:At}}}}}};const Pe=Qe=>{const{componentCls:rt,menuCls:pt,zIndexPopup:At,dropdownArrowDistance:gt,sizePopupArrow:Ft,antCls:Ct,iconCls:Yt,motionDurationMid:zt,paddingBlock:Xe,fontSize:Fe,dropdownEdgeChildPadding:Le,colorTextDisabled:Ze,fontSizeIcon:et,controlPaddingHorizontal:He,colorBgElevated:We}=Qe;return[{[rt]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:At,display:"block","&::before":{position:"absolute",insetBlock:Qe.calc(Ft).div(2).sub(gt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${Ct}-btn`]:{[`& > ${Yt}-down, & > ${Ct}-btn-icon > ${Yt}-down`]:{fontSize:et}},[`${rt}-wrap`]:{position:"relative",[`${Ct}-btn > ${Yt}-down`]:{fontSize:et},[`${Yt}-down::before`]:{transition:`transform ${zt}`}},[`${rt}-wrap-open`]:{[`${Yt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${Ct}-slide-down-enter${Ct}-slide-down-enter-active${rt}-placement-bottomLeft,
|
|
|
&${Ct}-slide-down-appear${Ct}-slide-down-appear-active${rt}-placement-bottomLeft,
|
|
|
&${Ct}-slide-down-enter${Ct}-slide-down-enter-active${rt}-placement-bottom,
|
|
|
&${Ct}-slide-down-appear${Ct}-slide-down-appear-active${rt}-placement-bottom,
|
|
|
&${Ct}-slide-down-enter${Ct}-slide-down-enter-active${rt}-placement-bottomRight,
|
|
|
&${Ct}-slide-down-appear${Ct}-slide-down-appear-active${rt}-placement-bottomRight`]:{animationName:ge.fJ},[`&${Ct}-slide-up-enter${Ct}-slide-up-enter-active${rt}-placement-topLeft,
|
|
|
&${Ct}-slide-up-appear${Ct}-slide-up-appear-active${rt}-placement-topLeft,
|
|
|
&${Ct}-slide-up-enter${Ct}-slide-up-enter-active${rt}-placement-top,
|
|
|
&${Ct}-slide-up-appear${Ct}-slide-up-appear-active${rt}-placement-top,
|
|
|
&${Ct}-slide-up-enter${Ct}-slide-up-enter-active${rt}-placement-topRight,
|
|
|
&${Ct}-slide-up-appear${Ct}-slide-up-appear-active${rt}-placement-topRight`]:{animationName:ge.Qt},[`&${Ct}-slide-down-leave${Ct}-slide-down-leave-active${rt}-placement-bottomLeft,
|
|
|
&${Ct}-slide-down-leave${Ct}-slide-down-leave-active${rt}-placement-bottom,
|
|
|
&${Ct}-slide-down-leave${Ct}-slide-down-leave-active${rt}-placement-bottomRight`]:{animationName:ge.Uw},[`&${Ct}-slide-up-leave${Ct}-slide-up-leave-active${rt}-placement-topLeft,
|
|
|
&${Ct}-slide-up-leave${Ct}-slide-up-leave-active${rt}-placement-top,
|
|
|
&${Ct}-slide-up-leave${Ct}-slide-up-leave-active${rt}-placement-topRight`]:{animationName:ge.ly}}},(0,be.ZP)(Qe,We,{arrowPlacement:{top:!0,bottom:!0}}),{[`${rt} ${pt}`]:{position:"relative",margin:0},[`${pt}-submenu-popup`]:{position:"absolute",zIndex:At,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${rt}, ${rt}-menu-submenu`]:Object.assign(Object.assign({},(0,ce.Wf)(Qe)),{[pt]:Object.assign(Object.assign({padding:Le,listStyleType:"none",backgroundColor:We,backgroundClip:"padding-box",borderRadius:Qe.borderRadiusLG,outline:"none",boxShadow:Qe.boxShadowSecondary},(0,ce.Qy)(Qe)),{"&:empty":{padding:0,boxShadow:"none"},[`${pt}-item-group-title`]:{padding:`${(0,re.unit)(Xe)} ${(0,re.unit)(He)}`,color:Qe.colorTextDescription,transition:`all ${zt}`},[`${pt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${pt}-item-icon`]:{minWidth:Fe,marginInlineEnd:Qe.marginXS,fontSize:Qe.fontSizeSM},[`${pt}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${zt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${pt}-item-extra`]:{paddingInlineStart:Qe.padding,marginInlineStart:"auto",fontSize:Qe.fontSizeSM,color:Qe.colorTextDescription}},[`${pt}-item, ${pt}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,re.unit)(Xe)} ${(0,re.unit)(He)}`,color:Qe.colorText,fontWeight:"normal",fontSize:Fe,lineHeight:Qe.lineHeight,cursor:"pointer",transition:`all ${zt}`,borderRadius:Qe.borderRadiusSM,"&:hover, &-active":{backgroundColor:Qe.controlItemBgHover}},(0,ce.Qy)(Qe)),{"&-selected":{color:Qe.colorPrimary,backgroundColor:Qe.controlItemBgActive,"&:hover, &-active":{backgroundColor:Qe.controlItemBgActiveHover}},"&-disabled":{color:Ze,cursor:"not-allowed","&:hover":{color:Ze,backgroundColor:We,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,re.unit)(Qe.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:Qe.colorSplit},[`${rt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Qe.paddingXS,[`${rt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Qe.colorTextDescription,fontSize:et,fontStyle:"normal"}}}),[`${pt}-item-group-list`]:{margin:`0 ${(0,re.unit)(Qe.marginXS)}`,padding:0,listStyle:"none"},[`${pt}-submenu-title`]:{paddingInlineEnd:Qe.calc(He).add(Qe.fontSizeSM).equal()},[`${pt}-submenu-vertical`]:{position:"relative"},[`${pt}-submenu${pt}-submenu-disabled ${rt}-menu-submenu-title`]:{[`&, ${rt}-menu-submenu-arrow-icon`]:{color:Ze,backgroundColor:We,cursor:"not-allowed"}},[`${pt}-submenu-selected ${rt}-menu-submenu-title`]:{color:Qe.colorPrimary}})})},[(0,ge.oN)(Qe,"slide-up"),(0,ge.oN)(Qe,"slide-down"),(0,_e.Fm)(Qe,"move-up"),(0,_e.Fm)(Qe,"move-down"),(0,ye._y)(Qe,"zoom-big")]]},ze=Qe=>Object.assign(Object.assign({zIndexPopup:Qe.zIndexPopupBase+50,paddingBlock:(Qe.controlHeight-Qe.fontSize*Qe.lineHeight)/2},(0,be.wZ)({contentRadius:Qe.borderRadiusLG,limitVerticalRadius:!0})),(0,Se.w)(Qe));var Ke=(0,Be.I$)("Dropdown",Qe=>{const{marginXXS:rt,sizePopupArrow:pt,paddingXXS:At,componentCls:gt}=Qe,Ft=(0,Ae.mergeToken)(Qe,{menuCls:`${gt}-menu`,dropdownArrowDistance:Qe.calc(pt).div(2).add(rt).equal(),dropdownEdgeChildPadding:At});return[Pe(Ft),Ue(Ft)]},ze,{resetStyle:!1});const Ne=null,Re=Qe=>{var rt;const{menu:pt,arrow:At,prefixCls:gt,children:Ft,trigger:Ct,disabled:Yt,dropdownRender:zt,getPopupContainer:Xe,overlayClassName:Fe,rootClassName:Le,overlayStyle:Ze,open:et,onOpenChange:He,visible:We,onVisibleChange:tt,mouseEnterDelay:at=.15,mouseLeaveDelay:ot=.1,autoAdjustOverflow:ct=!0,placement:lt="",overlay:mt,transitionName:Lt}=Qe,{getPopupContainer:ft,getPrefixCls:St,direction:nn,dropdown:on}=te.useContext(oe.E_),yn=(0,z.ln)("Dropdown"),xn=te.useMemo(()=>{const Ln=St();return Lt!==void 0?Lt:lt.includes("top")?`${Ln}-slide-down`:`${Ln}-slide-up`},[St,lt,Lt]),an=te.useMemo(()=>lt?lt.includes("Center")?lt.slice(0,lt.indexOf("Center")):lt:nn==="rtl"?"bottomRight":"bottomLeft",[lt,nn]),An=St("dropdown",gt),Jt=(0,se.Z)(An),[Ut,rn,_n]=Ke(An,Jt),[,Bn]=(0,x.ZP)(),kt=te.Children.only(ie(Ft)?te.createElement("span",null,Ft):Ft),ln=(0,b.Tm)(kt,{className:Oe()(`${An}-trigger`,{[`${An}-rtl`]:nn==="rtl"},kt.props.className),disabled:(rt=kt.props.disabled)!==null&&rt!==void 0?rt:Yt}),Cn=Yt?[]:Ct,Mn=!!(Cn!=null&&Cn.includes("contextMenu")),[Qn,mr]=(0,fe.Z)(!1,{value:et!=null?et:We}),lr=(0,ue.Z)(Ln=>{He==null||He(Ln,{source:"trigger"}),tt==null||tt(Ln),mr(Ln)}),Cr=Oe()(Fe,Le,rn,_n,Jt,on==null?void 0:on.className,{[`${An}-rtl`]:nn==="rtl"}),nr=(0,me.Z)({arrowPointAtCenter:typeof At=="object"&&At.pointAtCenter,autoAdjustOverflow:ct,offset:Bn.marginXXS,arrowWidth:At?Bn.sizePopupArrow:0,borderRadius:Bn.borderRadius}),ur=te.useCallback(()=>{pt!=null&&pt.selectable&&(pt!=null&&pt.multiple)||(He==null||He(!1,{source:"menu"}),mr(!1))},[pt==null?void 0:pt.selectable,pt==null?void 0:pt.multiple]),Nn=()=>{let Ln;return pt!=null&&pt.items?Ln=te.createElement(de.default,Object.assign({},pt)):typeof mt=="function"?Ln=mt():Ln=mt,zt&&(Ln=zt(Ln)),Ln=te.Children.only(typeof Ln=="string"?te.createElement("span",null,Ln):Ln),te.createElement(a.J,{prefixCls:`${An}-menu`,rootClassName:Oe()(_n,Jt),expandIcon:te.createElement("span",{className:`${An}-menu-submenu-arrow`},nn==="rtl"?te.createElement(Ye.Z,{className:`${An}-menu-submenu-arrow-icon`}):te.createElement(Me.Z,{className:`${An}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ur,validator:$n=>{let{mode:ar}=$n}},Ln)},[In,Wn]=(0,le.Cn)("Dropdown",Ze==null?void 0:Ze.zIndex);let Kn=te.createElement(ve.Z,Object.assign({alignPoint:Mn},(0,he.Z)(Qe,["rootClassName"]),{mouseEnterDelay:at,mouseLeaveDelay:ot,visible:Qn,builtinPlacements:nr,arrow:!!At,overlayClassName:Cr,prefixCls:An,getPopupContainer:Xe||ft,transitionName:xn,trigger:Cn,overlay:Nn,placement:an,onVisibleChange:lr,overlayStyle:Object.assign(Object.assign(Object.assign({},on==null?void 0:on.style),Ze),{zIndex:In})}),ln);return In&&(Kn=te.createElement(ne.Z.Provider,{value:Wn},Kn)),Ut(Kn)},$e=(0,E.Z)(Re,"align",void 0,"dropdown",Qe=>Qe),nt=Qe=>te.createElement($e,Object.assign({},Qe),te.createElement("span",null));Re._InternalPanelDoNotUseOrYouWillBeFired=nt;var ut=Re},75727:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return E}});var te=Ce(19563),Ye=Ce(59301),Me=Ce(18785),pe=Ce(92310),Oe=Ce.n(pe),ve=Ce(7939),ue=Ce(48755),fe=Ce(44104),he=Ce(70045),le=function(b,z){var ne={};for(var oe in b)Object.prototype.hasOwnProperty.call(b,oe)&&z.indexOf(oe)<0&&(ne[oe]=b[oe]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,oe=Object.getOwnPropertySymbols(b);se<oe.length;se++)z.indexOf(oe[se])<0&&Object.prototype.propertyIsEnumerable.call(b,oe[se])&&(ne[oe[se]]=b[oe[se]]);return ne};const ae=b=>{const{getPopupContainer:z,getPrefixCls:ne,direction:oe}=Ye.useContext(ue.E_),{prefixCls:se,type:de="default",danger:a,disabled:x,loading:re,onClick:ce,htmlType:ge,children:_e,className:ye,menu:be,arrow:Se,autoFocus:Be,overlay:Ae,trigger:we,align:Ue,open:Pe,onOpenChange:ze,placement:Ke,getPopupContainer:Ne,href:Re,icon:$e=Ye.createElement(Me.Z,null),title:nt,buttonsRender:ut=at=>at,mouseEnterDelay:Qe,mouseLeaveDelay:rt,overlayClassName:pt,overlayStyle:At,destroyPopupOnHide:gt,dropdownRender:Ft}=b,Ct=le(b,["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"]),Yt=ne("dropdown",se),zt=`${Yt}-button`,Xe={menu:be,arrow:Se,autoFocus:Be,align:Ue,disabled:x,trigger:x?[]:we,onOpenChange:ze,getPopupContainer:Ne||z,mouseEnterDelay:Qe,mouseLeaveDelay:rt,overlayClassName:pt,overlayStyle:At,destroyPopupOnHide:gt,dropdownRender:Ft},{compactSize:Fe,compactItemClassnames:Le}=(0,he.ri)(Yt,oe),Ze=Oe()(zt,Le,ye);"overlay"in b&&(Xe.overlay=Ae),"open"in b&&(Xe.open=Pe),"placement"in b?Xe.placement=Ke:Xe.placement=oe==="rtl"?"bottomLeft":"bottomRight";const et=Ye.createElement(ve.ZP,{type:de,danger:a,disabled:x,loading:re,onClick:ce,htmlType:ge,href:Re,title:nt},_e),He=Ye.createElement(ve.ZP,{type:de,danger:a,icon:$e}),[We,tt]=ut([et,He]);return Ye.createElement(fe.Z.Compact,Object.assign({className:Ze,size:Fe,block:!0},Ct),We,Ye.createElement(te.Z,Object.assign({},Xe),tt))};ae.__ANT_BUTTON=!0;var ie=ae;const me=te.Z;me.Button=ie;var E=me},584:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return de}});var te=Ce(59301),Ye=Ce(92310),Me=Ce.n(Ye),pe=Ce(9017),Oe=Ce(17835),ve=Ce(57700),fe=()=>{const[,a]=(0,ve.ZP)(),[x]=(0,pe.Z)("Empty"),ce=new Oe.FastColor(a.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return te.createElement("svg",{style:ce,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},te.createElement("title",null,(x==null?void 0:x.description)||"Empty"),te.createElement("g",{fill:"none",fillRule:"evenodd"},te.createElement("g",{transform:"translate(24 31.67)"},te.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),te.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"}),te.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)"}),te.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"}),te.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"})),te.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"}),te.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},te.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),te.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},le=()=>{const[,a]=(0,ve.ZP)(),[x]=(0,pe.Z)("Empty"),{colorFill:re,colorFillTertiary:ce,colorFillQuaternary:ge,colorBgContainer:_e}=a,{borderColor:ye,shadowColor:be,contentColor:Se}=(0,te.useMemo)(()=>({borderColor:new Oe.FastColor(re).onBackground(_e).toHexString(),shadowColor:new Oe.FastColor(ce).onBackground(_e).toHexString(),contentColor:new Oe.FastColor(ge).onBackground(_e).toHexString()}),[re,ce,ge,_e]);return te.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},te.createElement("title",null,(x==null?void 0:x.description)||"Empty"),te.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},te.createElement("ellipse",{fill:be,cx:"32",cy:"33",rx:"32",ry:"7"}),te.createElement("g",{fillRule:"nonzero",stroke:ye},te.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"}),te.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:Se}))))},ae=Ce(16931),ie=Ce(51636);const me=a=>{const{componentCls:x,margin:re,marginXS:ce,marginXL:ge,fontSize:_e,lineHeight:ye}=a;return{[x]:{marginInline:ce,fontSize:_e,lineHeight:ye,textAlign:"center",[`${x}-image`]:{height:a.emptyImgHeight,marginBottom:ce,opacity:a.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${x}-description`]:{color:a.colorTextDescription},[`${x}-footer`]:{marginTop:re},"&-normal":{marginBlock:ge,color:a.colorTextDescription,[`${x}-description`]:{color:a.colorTextDescription},[`${x}-image`]:{height:a.emptyImgHeightMD}},"&-small":{marginBlock:ce,color:a.colorTextDescription,[`${x}-image`]:{height:a.emptyImgHeightSM}}}}};var E=(0,ae.I$)("Empty",a=>{const{componentCls:x,controlHeightLG:re,calc:ce}=a,ge=(0,ie.mergeToken)(a,{emptyImgCls:`${x}-img`,emptyImgHeight:ce(re).mul(2.5).equal(),emptyImgHeightMD:re,emptyImgHeightSM:ce(re).mul(.875).equal()});return[me(ge)]}),b=Ce(48755),z=function(a,x){var re={};for(var ce in a)Object.prototype.hasOwnProperty.call(a,ce)&&x.indexOf(ce)<0&&(re[ce]=a[ce]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,ce=Object.getOwnPropertySymbols(a);ge<ce.length;ge++)x.indexOf(ce[ge])<0&&Object.prototype.propertyIsEnumerable.call(a,ce[ge])&&(re[ce[ge]]=a[ce[ge]]);return re};const ne=te.createElement(fe,null),oe=te.createElement(le,null),se=a=>{const{className:x,rootClassName:re,prefixCls:ce,image:ge=ne,description:_e,children:ye,imageStyle:be,style:Se,classNames:Be,styles:Ae}=a,we=z(a,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Ue,direction:Pe,className:ze,style:Ke,classNames:Ne,styles:Re}=(0,b.dj)("empty"),$e=Ue("empty",ce),[nt,ut,Qe]=E($e),[rt]=(0,pe.Z)("Empty"),pt=typeof _e!="undefined"?_e:rt==null?void 0:rt.description,At=typeof pt=="string"?pt:"empty";let gt=null;return typeof ge=="string"?gt=te.createElement("img",{alt:At,src:ge}):gt=ge,nt(te.createElement("div",Object.assign({className:Me()(ut,Qe,$e,ze,{[`${$e}-normal`]:ge===oe,[`${$e}-rtl`]:Pe==="rtl"},x,re,Ne.root,Be==null?void 0:Be.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},Re.root),Ke),Ae==null?void 0:Ae.root),Se)},we),te.createElement("div",{className:Me()(`${$e}-image`,Ne.image,Be==null?void 0:Be.image),style:Object.assign(Object.assign(Object.assign({},be),Re.image),Ae==null?void 0:Ae.image)},gt),pt&&te.createElement("div",{className:Me()(`${$e}-description`,Ne.description,Be==null?void 0:Be.description),style:Object.assign(Object.assign({},Re.description),Ae==null?void 0:Ae.description)},pt),ye&&te.createElement("div",{className:Me()(`${$e}-footer`,Ne.footer,Be==null?void 0:Be.footer),style:Object.assign(Object.assign({},Re.footer),Ae==null?void 0:Ae.footer)},ye)))};se.PRESENTED_IMAGE_DEFAULT=ne,se.PRESENTED_IMAGE_SIMPLE=oe;var de=se},28284:function(Yn,en,Ce){"use strict";Ce.d(en,{default:function(){return Gt}});var te=Ce(56553),Ye=Ce(77654),Me=Ce(59301),pe=Ce(92310),Oe=Ce.n(pe),ve=Ce(77900),ue=Ce(86641),fe=Ce(83397);function he(Rt){const[jt,Mt]=Me.useState(Rt);return Me.useEffect(()=>{const Kt=setTimeout(()=>{Mt(Rt)},Rt.length?0:10);return()=>{clearTimeout(Kt)}},[Rt]),jt}var le=Ce(36237),ae=Ce(63356),ie=Ce(34925),me=Ce(34961),E=Ce(51636),b=Ce(16931),ne=Rt=>{const{componentCls:jt}=Rt,Mt=`${jt}-show-help`,Kt=`${jt}-show-help-item`;return{[Mt]:{transition:`opacity ${Rt.motionDurationFast} ${Rt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Kt]:{overflow:"hidden",transition:`height ${Rt.motionDurationFast} ${Rt.motionEaseInOut},
|
|
|
opacity ${Rt.motionDurationFast} ${Rt.motionEaseInOut},
|
|
|
transform ${Rt.motionDurationFast} ${Rt.motionEaseInOut} !important`,[`&${Kt}-appear, &${Kt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Kt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const oe=Rt=>({legend:{display:"block",width:"100%",marginBottom:Rt.marginLG,padding:0,color:Rt.colorTextDescription,fontSize:Rt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,le.unit)(Rt.lineWidth)} ${Rt.lineType} ${Rt.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,le.unit)(Rt.controlOutlineWidth)} ${Rt.controlOutline}`},output:{display:"block",paddingTop:15,color:Rt.colorText,fontSize:Rt.fontSize,lineHeight:Rt.lineHeight}}),se=(Rt,jt)=>{const{formItemCls:Mt}=Rt;return{[Mt]:{[`${Mt}-label > label`]:{height:jt},[`${Mt}-control-input`]:{minHeight:jt}}}},de=Rt=>{const{componentCls:jt}=Rt;return{[Rt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,ae.Wf)(Rt)),oe(Rt)),{[`${jt}-text`]:{display:"inline-block",paddingInlineEnd:Rt.paddingSM},"&-small":Object.assign({},se(Rt,Rt.controlHeightSM)),"&-large":Object.assign({},se(Rt,Rt.controlHeightLG))})}},a=Rt=>{const{formItemCls:jt,iconCls:Mt,rootPrefixCls:Kt,antCls:yt,labelRequiredMarkColor:qt,labelColor:vn,labelFontSize:Tt,labelHeight:It,labelColonMarginInlineStart:Dt,labelColonMarginInlineEnd:Bt,itemMarginBottom:Zt}=Rt;return{[jt]:Object.assign(Object.assign({},(0,ae.Wf)(Rt)),{marginBottom:Zt,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden${yt}-row`]:{display:"none"},"&-has-warning":{[`${jt}-split`]:{color:Rt.colorError}},"&-has-error":{[`${jt}-split`]:{color:Rt.colorWarning}},[`${jt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:Rt.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:It,color:vn,fontSize:Tt,[`> ${Mt}`]:{fontSize:Rt.fontSize,verticalAlign:"top"},[`&${jt}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:Rt.marginXXS,color:qt,fontSize:Rt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${jt}-required-mark-hidden, &${jt}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${jt}-optional`]:{display:"inline-block",marginInlineStart:Rt.marginXXS,color:Rt.colorTextDescription,[`&${jt}-required-mark-hidden`]:{display:"none"}},[`${jt}-tooltip`]:{color:Rt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Rt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Dt,marginInlineEnd:Bt},[`&${jt}-no-colon::after`]:{content:'"\\a0"'}}},[`${jt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Kt}-col-'"]):not([class*="' ${Kt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Rt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[jt]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:Rt.colorTextDescription,fontSize:Rt.fontSize,lineHeight:Rt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Rt.controlHeightSM,transition:`color ${Rt.motionDurationMid} ${Rt.motionEaseOut}`},"&-explain":{"&-error":{color:Rt.colorError},"&-warning":{color:Rt.colorWarning}}},[`&-with-help ${jt}-explain`]:{height:"auto",opacity:1},[`${jt}-feedback-icon`]:{fontSize:Rt.fontSize,textAlign:"center",visibility:"visible",animationName:ie.kr,animationDuration:Rt.motionDurationMid,animationTimingFunction:Rt.motionEaseOutBack,pointerEvents:"none","&-success":{color:Rt.colorSuccess},"&-error":{color:Rt.colorError},"&-warning":{color:Rt.colorWarning},"&-validating":{color:Rt.colorPrimary}}})}},x=(Rt,jt)=>{const{formItemCls:Mt}=Rt;return{[`${jt}-horizontal`]:{[`${Mt}-label`]:{flexGrow:0},[`${Mt}-control`]:{flex:"1 1 0",minWidth:0},[`${Mt}-label[class$='-24'], ${Mt}-label[class*='-24 ']`]:{[`& + ${Mt}-control`]:{minWidth:"unset"}}}}},re=Rt=>{const{componentCls:jt,formItemCls:Mt,inlineItemMarginBottom:Kt}=Rt;return{[`${jt}-inline`]:{display:"flex",flexWrap:"wrap",[Mt]:{flex:"none",marginInlineEnd:Rt.margin,marginBottom:Kt,"&-row":{flexWrap:"nowrap"},[`> ${Mt}-label,
|
|
|
> ${Mt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Mt}-label`]:{flex:"none"},[`${jt}-text`]:{display:"inline-block"},[`${Mt}-has-feedback`]:{display:"inline-block"}}}}},ce=Rt=>({padding:Rt.verticalLabelPadding,margin:Rt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),ge=Rt=>{const{componentCls:jt,formItemCls:Mt,rootPrefixCls:Kt}=Rt;return{[`${Mt} ${Mt}-label`]:ce(Rt),[`${jt}:not(${jt}-inline)`]:{[Mt]:{flexWrap:"wrap",[`${Mt}-label, ${Mt}-control`]:{[`&:not([class*=" ${Kt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},_e=Rt=>{const{componentCls:jt,formItemCls:Mt,antCls:Kt}=Rt;return{[`${jt}-vertical`]:{[`${Mt}:not(${Mt}-horizontal)`]:{[`${Mt}-row`]:{flexDirection:"column"},[`${Mt}-label > label`]:{height:"auto"},[`${Mt}-control`]:{width:"100%"},[`${Mt}-label,
|
|
|
${Kt}-col-24${Mt}-label,
|
|
|
${Kt}-col-xl-24${Mt}-label`]:ce(Rt)}},[`@media (max-width: ${(0,le.unit)(Rt.screenXSMax)})`]:[ge(Rt),{[jt]:{[`${Mt}:not(${Mt}-horizontal)`]:{[`${Kt}-col-xs-24${Mt}-label`]:ce(Rt)}}}],[`@media (max-width: ${(0,le.unit)(Rt.screenSMMax)})`]:{[jt]:{[`${Mt}:not(${Mt}-horizontal)`]:{[`${Kt}-col-sm-24${Mt}-label`]:ce(Rt)}}},[`@media (max-width: ${(0,le.unit)(Rt.screenMDMax)})`]:{[jt]:{[`${Mt}:not(${Mt}-horizontal)`]:{[`${Kt}-col-md-24${Mt}-label`]:ce(Rt)}}},[`@media (max-width: ${(0,le.unit)(Rt.screenLGMax)})`]:{[jt]:{[`${Mt}:not(${Mt}-horizontal)`]:{[`${Kt}-col-lg-24${Mt}-label`]:ce(Rt)}}}}},ye=Rt=>{const{formItemCls:jt,antCls:Mt}=Rt;return{[`${jt}-vertical`]:{[`${jt}-row`]:{flexDirection:"column"},[`${jt}-label > label`]:{height:"auto"},[`${jt}-control`]:{width:"100%"}},[`${jt}-vertical ${jt}-label,
|
|
|
${Mt}-col-24${jt}-label,
|
|
|
${Mt}-col-xl-24${jt}-label`]:ce(Rt),[`@media (max-width: ${(0,le.unit)(Rt.screenXSMax)})`]:[ge(Rt),{[jt]:{[`${Mt}-col-xs-24${jt}-label`]:ce(Rt)}}],[`@media (max-width: ${(0,le.unit)(Rt.screenSMMax)})`]:{[jt]:{[`${Mt}-col-sm-24${jt}-label`]:ce(Rt)}},[`@media (max-width: ${(0,le.unit)(Rt.screenMDMax)})`]:{[jt]:{[`${Mt}-col-md-24${jt}-label`]:ce(Rt)}},[`@media (max-width: ${(0,le.unit)(Rt.screenLGMax)})`]:{[jt]:{[`${Mt}-col-lg-24${jt}-label`]:ce(Rt)}}}},be=Rt=>({labelRequiredMarkColor:Rt.colorError,labelColor:Rt.colorTextHeading,labelFontSize:Rt.fontSize,labelHeight:Rt.controlHeight,labelColonMarginInlineStart:Rt.marginXXS/2,labelColonMarginInlineEnd:Rt.marginXS,itemMarginBottom:Rt.marginLG,verticalLabelPadding:`0 0 ${Rt.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Se=(Rt,jt)=>(0,E.mergeToken)(Rt,{formItemCls:`${Rt.componentCls}-item`,rootPrefixCls:jt});var Be=(0,b.I$)("Form",(Rt,jt)=>{let{rootPrefixCls:Mt}=jt;const Kt=Se(Rt,Mt);return[de(Kt),a(Kt),ne(Kt),x(Kt,Kt.componentCls),x(Kt,Kt.formItemCls),re(Kt),_e(Kt),ye(Kt),(0,me.Z)(Kt),ie.kr]},be,{order:-1e3});const Ae=[];function we(Rt,jt,Mt){let Kt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Rt=="string"?Rt:`${jt}-${Kt}`,error:Rt,errorStatus:Mt}}var Pe=Rt=>{let{help:jt,helpStatus:Mt,errors:Kt=Ae,warnings:yt=Ae,className:qt,fieldId:vn,onVisibleChanged:Tt}=Rt;const{prefixCls:It}=Me.useContext(te.Rk),Dt=`${It}-item-explain`,Bt=(0,fe.Z)(It),[Zt,tn,Tn]=Be(It,Bt),Fn=Me.useMemo(()=>(0,ue.Z)(It),[It]),dr=he(Kt),_r=he(yt),Kr=Me.useMemo(()=>jt!=null?[we(jt,"help",Mt)]:[].concat((0,Ye.Z)(dr.map((Mr,Br)=>we(Mr,"error","error",Br))),(0,Ye.Z)(_r.map((Mr,Br)=>we(Mr,"warning","warning",Br)))),[jt,Mt,dr,_r]),Sr=Me.useMemo(()=>{const Mr={};return Kr.forEach(Br=>{let{key:Wr}=Br;Mr[Wr]=(Mr[Wr]||0)+1}),Kr.map((Br,Wr)=>Object.assign(Object.assign({},Br),{key:Mr[Br.key]>1?`${Br.key}-fallback-${Wr}`:Br.key}))},[Kr]),hr={};return vn&&(hr.id=`${vn}_help`),Zt(Me.createElement(ve.default,{motionDeadline:Fn.motionDeadline,motionName:`${It}-show-help`,visible:!!Sr.length,onVisibleChanged:Tt},Mr=>{const{className:Br,style:Wr}=Mr;return Me.createElement("div",Object.assign({},hr,{className:Oe()(Dt,Br,Tn,Bt,qt,tn),style:Wr}),Me.createElement(ve.CSSMotionList,Object.assign({keys:Sr},(0,ue.Z)(It),{motionName:`${It}-show-help-item`,component:!1}),Jn=>{const{key:ii,error:Ur,errorStatus:Gr,className:qr,style:Li}=Jn;return Me.createElement("div",{key:ii,className:Oe()(qr,{[`${Dt}-${Gr}`]:Gr}),style:Li},Ur)}))}))},ze=Ce(69180),Ke=Ce(48755),Ne=Ce(2171),Re=Ce(31756),$e=Ce(23069),nt=Ce(76846),ut=Ce(16722);const Qe=["parentNode"],rt="form_item";function pt(Rt){return Rt===void 0||Rt===!1?[]:Array.isArray(Rt)?Rt:[Rt]}function At(Rt,jt){if(!Rt.length)return;const Mt=Rt.join("_");return jt?`${jt}_${Mt}`:Qe.includes(Mt)?`${rt}_${Mt}`:Mt}function gt(Rt,jt,Mt,Kt,yt,qt){let vn=Kt;return qt!==void 0?vn=qt:Mt.validating?vn="validating":Rt.length?vn="error":jt.length?vn="warning":(Mt.touched||yt&&Mt.validated)&&(vn="success"),vn}var Ft=function(Rt,jt){var Mt={};for(var Kt in Rt)Object.prototype.hasOwnProperty.call(Rt,Kt)&&jt.indexOf(Kt)<0&&(Mt[Kt]=Rt[Kt]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,Kt=Object.getOwnPropertySymbols(Rt);yt<Kt.length;yt++)jt.indexOf(Kt[yt])<0&&Object.prototype.propertyIsEnumerable.call(Rt,Kt[yt])&&(Mt[Kt[yt]]=Rt[Kt[yt]]);return Mt};function Ct(Rt){return pt(Rt).join("_")}function Yt(Rt,jt){const Mt=jt.getFieldInstance(Rt),Kt=(0,nt.bn)(Mt);if(Kt)return Kt;const yt=At(pt(Rt),jt.__INTERNAL__.name);if(yt)return document.getElementById(yt)}function zt(Rt){const[jt]=(0,ze.useForm)(),Mt=Me.useRef({}),Kt=Me.useMemo(()=>Rt!=null?Rt:Object.assign(Object.assign({},jt),{__INTERNAL__:{itemRef:yt=>qt=>{const vn=Ct(yt);qt?Mt.current[vn]=qt:delete Mt.current[vn]}},scrollToField:function(yt){let qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:vn}=qt,Tt=Ft(qt,["focus"]),It=Yt(yt,Kt);It&&((0,ut.Z)(It,Object.assign({scrollMode:"if-needed",block:"nearest"},Tt)),vn&&Kt.focusField(yt))},focusField:yt=>{var qt,vn;const Tt=Kt.getFieldInstance(yt);typeof(Tt==null?void 0:Tt.focus)=="function"?Tt.focus():(vn=(qt=Yt(yt,Kt))===null||qt===void 0?void 0:qt.focus)===null||vn===void 0||vn.call(qt)},getFieldInstance:yt=>{const qt=Ct(yt);return Mt.current[qt]}}),[Rt,jt]);return[Kt]}var Xe=Ce(98350),Fe=function(Rt,jt){var Mt={};for(var Kt in Rt)Object.prototype.hasOwnProperty.call(Rt,Kt)&&jt.indexOf(Kt)<0&&(Mt[Kt]=Rt[Kt]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,Kt=Object.getOwnPropertySymbols(Rt);yt<Kt.length;yt++)jt.indexOf(Kt[yt])<0&&Object.prototype.propertyIsEnumerable.call(Rt,Kt[yt])&&(Mt[Kt[yt]]=Rt[Kt[yt]]);return Mt};const Le=(Rt,jt)=>{const Mt=Me.useContext(Ne.Z),{getPrefixCls:Kt,direction:yt,requiredMark:qt,colon:vn,scrollToFirstError:Tt,className:It,style:Dt}=(0,Ke.dj)("form"),{prefixCls:Bt,className:Zt,rootClassName:tn,size:Tn,disabled:Fn=Mt,form:dr,colon:_r,labelAlign:Kr,labelWrap:Sr,labelCol:hr,wrapperCol:Mr,hideRequiredMark:Br,layout:Wr="horizontal",scrollToFirstError:Jn,requiredMark:ii,onFinishFailed:Ur,name:Gr,style:qr,feedbackIcons:Li,variant:wi}=Rt,ui=Fe(Rt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),Qr=(0,Re.Z)(Tn),Di=Me.useContext(Xe.Z),oi=Me.useMemo(()=>ii!==void 0?ii:Br?!1:qt!==void 0?qt:!0,[Br,ii,qt]),di=_r!=null?_r:vn,ci=Kt("form",Bt),ki=(0,fe.Z)(ci),[Ki,ua,kn]=Be(ci,ki),qi=Oe()(ci,`${ci}-${Wr}`,{[`${ci}-hide-required-mark`]:oi===!1,[`${ci}-rtl`]:yt==="rtl",[`${ci}-${Qr}`]:Qr},kn,ki,ua,It,Zt,tn),[Qi]=zt(dr),{__INTERNAL__:ra}=Qi;ra.name=Gr;const _i=Me.useMemo(()=>({name:Gr,labelAlign:Kr,labelCol:hr,labelWrap:Sr,wrapperCol:Mr,vertical:Wr==="vertical",colon:di,requiredMark:oi,itemRef:ra.itemRef,form:Qi,feedbackIcons:Li}),[Gr,Kr,hr,Mr,Wr,di,oi,Qi,Li]),Ti=Me.useRef(null);Me.useImperativeHandle(jt,()=>{var Dr;return Object.assign(Object.assign({},Qi),{nativeElement:(Dr=Ti.current)===null||Dr===void 0?void 0:Dr.nativeElement})});const Xr=(Dr,Fr)=>{if(Dr){let or={block:"nearest"};typeof Dr=="object"&&(or=Object.assign(Object.assign({},or),Dr)),Qi.scrollToField(Fr,or)}},rr=Dr=>{if(Ur==null||Ur(Dr),Dr.errorFields.length){const Fr=Dr.errorFields[0].name;if(Jn!==void 0){Xr(Jn,Fr);return}Tt!==void 0&&Xr(Tt,Fr)}};return Ki(Me.createElement(te.pg.Provider,{value:wi},Me.createElement(Ne.n,{disabled:Fn},Me.createElement($e.Z.Provider,{value:Qr},Me.createElement(te.RV,{validateMessages:Di},Me.createElement(te.q3.Provider,{value:_i},Me.createElement(ze.default,Object.assign({id:Gr},ui,{name:Gr,onFinishFailed:rr,form:Qi,ref:Ti,style:Object.assign(Object.assign({},Dt),qr),className:qi}))))))))};var et=Me.forwardRef(Le),He=Ce(41799),We=Ce(8654),tt=Ce(22703),at=Ce(32383),ot=Ce(11592);function ct(Rt){if(typeof Rt=="function")return Rt;const jt=(0,ot.Z)(Rt);return jt.length<=1?jt[0]:jt}const lt=()=>{const{status:Rt,errors:jt=[],warnings:Mt=[]}=Me.useContext(te.aM);return{status:Rt,errors:jt,warnings:Mt}};lt.Context=te.aM;var mt=lt,Lt=Ce(16089);function ft(Rt){const[jt,Mt]=Me.useState(Rt),Kt=Me.useRef(null),yt=Me.useRef([]),qt=Me.useRef(!1);Me.useEffect(()=>(qt.current=!1,()=>{qt.current=!0,Lt.Z.cancel(Kt.current),Kt.current=null}),[]);function vn(Tt){qt.current||(Kt.current===null&&(yt.current=[],Kt.current=(0,Lt.Z)(()=>{Kt.current=null,Mt(It=>{let Dt=It;return yt.current.forEach(Bt=>{Dt=Bt(Dt)}),Dt})})),yt.current.push(Tt))}return[jt,vn]}function St(){const{itemRef:Rt}=Me.useContext(te.q3),jt=Me.useRef({});function Mt(Kt,yt){const qt=yt&&typeof yt=="object"&&(0,We.C4)(yt),vn=Kt.join("_");return(jt.current.name!==vn||jt.current.originRef!==qt)&&(jt.current.name=vn,jt.current.originRef=qt,jt.current.ref=(0,We.sQ)(Rt(Kt),qt)),jt.current.ref}return Mt}var nn=Ce(29194),on=Ce(34280),yn=Ce(2738),xn=Ce(65970),an=Ce(70425),An=Ce(5472);const Jt=Rt=>{const{formItemCls:jt}=Rt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${jt}-control`]:{display:"flex"}}}};var Ut=(0,b.bk)(["Form","item-item"],(Rt,jt)=>{let{rootPrefixCls:Mt}=jt;const Kt=Se(Rt,Mt);return[Jt(Kt)]}),rn=function(Rt,jt){var Mt={};for(var Kt in Rt)Object.prototype.hasOwnProperty.call(Rt,Kt)&&jt.indexOf(Kt)<0&&(Mt[Kt]=Rt[Kt]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,Kt=Object.getOwnPropertySymbols(Rt);yt<Kt.length;yt++)jt.indexOf(Kt[yt])<0&&Object.prototype.propertyIsEnumerable.call(Rt,Kt[yt])&&(Mt[Kt[yt]]=Rt[Kt[yt]]);return Mt};const _n=24;var kt=Rt=>{const{prefixCls:jt,status:Mt,labelCol:Kt,wrapperCol:yt,children:qt,errors:vn,warnings:Tt,_internalItemRender:It,extra:Dt,help:Bt,fieldId:Zt,marginBottom:tn,onErrorVisibleChanged:Tn,label:Fn}=Rt,dr=`${jt}-item`,_r=Me.useContext(te.q3),Kr=Me.useMemo(()=>{let ui=Object.assign({},yt||_r.wrapperCol||{});return Fn===null&&!Kt&&!yt&&_r.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(Di=>{const oi=Di?[Di]:[],di=(0,an.U2)(_r.labelCol,oi),ci=typeof di=="object"?di:{},ki=(0,an.U2)(ui,oi),Ki=typeof ki=="object"?ki:{};"span"in ci&&!("offset"in Ki)&&ci.span<_n&&(ui=(0,an.t8)(ui,[].concat(oi,["offset"]),ci.span))}),ui},[yt,_r]),Sr=Oe()(`${dr}-control`,Kr.className),hr=Me.useMemo(()=>{const{labelCol:ui,wrapperCol:Qr}=_r;return rn(_r,["labelCol","wrapperCol"])},[_r]),Mr=Me.useRef(null),[Br,Wr]=Me.useState(0);(0,on.Z)(()=>{Dt&&Mr.current?Wr(Mr.current.clientHeight):Wr(0)},[Dt]);const Jn=Me.createElement("div",{className:`${dr}-control-input`},Me.createElement("div",{className:`${dr}-control-input-content`},qt)),ii=Me.useMemo(()=>({prefixCls:jt,status:Mt}),[jt,Mt]),Ur=tn!==null||vn.length||Tt.length?Me.createElement(te.Rk.Provider,{value:ii},Me.createElement(Pe,{fieldId:Zt,errors:vn,warnings:Tt,help:Bt,helpStatus:Mt,className:`${dr}-explain-connected`,onVisibleChanged:Tn})):null,Gr={};Zt&&(Gr.id=`${Zt}_extra`);const qr=Dt?Me.createElement("div",Object.assign({},Gr,{className:`${dr}-extra`,ref:Mr}),Dt):null,Li=Ur||qr?Me.createElement("div",{className:`${dr}-additional`,style:tn?{minHeight:tn+Br}:{}},Ur,qr):null,wi=It&&It.mark==="pro_table_render"&&It.render?It.render(Rt,{input:Jn,errorList:Ur,extra:qr}):Me.createElement(Me.Fragment,null,Jn,Li);return Me.createElement(te.q3.Provider,{value:hr},Me.createElement(An.Z,Object.assign({},Kr,{className:Sr}),wi),Me.createElement(Ut,{prefixCls:jt}))},ln=Ce(61485),Cn=Ce(9017),Mn=Ce(85981),Qn=Ce(25399),mr=function(Rt,jt){var Mt={};for(var Kt in Rt)Object.prototype.hasOwnProperty.call(Rt,Kt)&&jt.indexOf(Kt)<0&&(Mt[Kt]=Rt[Kt]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,Kt=Object.getOwnPropertySymbols(Rt);yt<Kt.length;yt++)jt.indexOf(Kt[yt])<0&&Object.prototype.propertyIsEnumerable.call(Rt,Kt[yt])&&(Mt[Kt[yt]]=Rt[Kt[yt]]);return Mt};function lr(Rt){return Rt?typeof Rt=="object"&&!Me.isValidElement(Rt)?Rt:{title:Rt}:null}var nr=Rt=>{let{prefixCls:jt,label:Mt,htmlFor:Kt,labelCol:yt,labelAlign:qt,colon:vn,required:Tt,requiredMark:It,tooltip:Dt,vertical:Bt}=Rt;var Zt;const[tn]=(0,Cn.Z)("Form"),{labelAlign:Tn,labelCol:Fn,labelWrap:dr,colon:_r}=Me.useContext(te.q3);if(!Mt)return null;const Kr=yt||Fn||{},Sr=qt||Tn,hr=`${jt}-item-label`,Mr=Oe()(hr,Sr==="left"&&`${hr}-left`,Kr.className,{[`${hr}-wrap`]:!!dr});let Br=Mt;const Wr=vn===!0||_r!==!1&&vn!==!1;Wr&&!Bt&&typeof Mt=="string"&&Mt.trim()&&(Br=Mt.replace(/[:|:]\s*$/,""));const ii=lr(Dt);if(ii){const{icon:ui=Me.createElement(ln.Z,null)}=ii,Qr=mr(ii,["icon"]),Di=Me.createElement(Qn.Z,Object.assign({},Qr),Me.cloneElement(ui,{className:`${jt}-item-tooltip`,title:"",onClick:oi=>{oi.preventDefault()},tabIndex:null}));Br=Me.createElement(Me.Fragment,null,Br,Di)}const Ur=It==="optional",Gr=typeof It=="function",qr=It===!1;Gr?Br=It(Br,{required:!!Tt}):Ur&&!Tt&&(Br=Me.createElement(Me.Fragment,null,Br,Me.createElement("span",{className:`${jt}-item-optional`,title:""},(tn==null?void 0:tn.optional)||((Zt=Mn.Z.Form)===null||Zt===void 0?void 0:Zt.optional))));let Li;qr?Li="hidden":(Ur||Gr)&&(Li="optional");const wi=Oe()({[`${jt}-item-required`]:Tt,[`${jt}-item-required-mark-${Li}`]:Li,[`${jt}-item-no-colon`]:!Wr});return Me.createElement(An.Z,Object.assign({},Kr,{className:Mr}),Me.createElement("label",{htmlFor:Kt,className:wi,title:typeof Mt=="string"?Mt:""},Br))},ur=Ce(29679),Nn=Ce(19248),In=Ce(96512),Wn=Ce(58617);const Kn={success:ur.Z,warning:In.Z,error:Nn.Z,validating:Wn.Z};function Ln(Rt){let{children:jt,errors:Mt,warnings:Kt,hasFeedback:yt,validateStatus:qt,prefixCls:vn,meta:Tt,noStyle:It}=Rt;const Dt=`${vn}-item`,{feedbackIcons:Bt}=Me.useContext(te.q3),Zt=gt(Mt,Kt,Tt,null,!!yt,qt),{isFormItemInput:tn,status:Tn,hasFeedback:Fn,feedbackIcon:dr}=Me.useContext(te.aM),_r=Me.useMemo(()=>{var Kr;let Sr;if(yt){const Mr=yt!==!0&&yt.icons||Bt,Br=Zt&&((Kr=Mr==null?void 0:Mr({status:Zt,errors:Mt,warnings:Kt}))===null||Kr===void 0?void 0:Kr[Zt]),Wr=Zt&&Kn[Zt];Sr=Br!==!1&&Wr?Me.createElement("span",{className:Oe()(`${Dt}-feedback-icon`,`${Dt}-feedback-icon-${Zt}`)},Br||Me.createElement(Wr,null)):null}const hr={status:Zt||"",errors:Mt,warnings:Kt,hasFeedback:!!yt,feedbackIcon:Sr,isFormItemInput:!0};return It&&(hr.status=(Zt!=null?Zt:Tn)||"",hr.isFormItemInput=tn,hr.hasFeedback=!!(yt!=null?yt:Fn),hr.feedbackIcon=yt!==void 0?hr.feedbackIcon:dr),hr},[Zt,yt,It,tn,Tn]);return Me.createElement(te.aM.Provider,{value:_r},jt)}var $n=function(Rt,jt){var Mt={};for(var Kt in Rt)Object.prototype.hasOwnProperty.call(Rt,Kt)&&jt.indexOf(Kt)<0&&(Mt[Kt]=Rt[Kt]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,Kt=Object.getOwnPropertySymbols(Rt);yt<Kt.length;yt++)jt.indexOf(Kt[yt])<0&&Object.prototype.propertyIsEnumerable.call(Rt,Kt[yt])&&(Mt[Kt[yt]]=Rt[Kt[yt]]);return Mt};function ar(Rt){const{prefixCls:jt,className:Mt,rootClassName:Kt,style:yt,help:qt,errors:vn,warnings:Tt,validateStatus:It,meta:Dt,hasFeedback:Bt,hidden:Zt,children:tn,fieldId:Tn,required:Fn,isRequired:dr,onSubItemMetaChange:_r,layout:Kr}=Rt,Sr=$n(Rt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),hr=`${jt}-item`,{requiredMark:Mr,vertical:Br}=Me.useContext(te.q3),Wr=Br||Kr==="vertical",Jn=Me.useRef(null),ii=he(vn),Ur=he(Tt),Gr=qt!=null,qr=!!(Gr||vn.length||Tt.length),Li=!!Jn.current&&(0,nn.Z)(Jn.current),[wi,ui]=Me.useState(null);(0,on.Z)(()=>{if(qr&&Jn.current){const ci=getComputedStyle(Jn.current);ui(parseInt(ci.marginBottom,10))}},[qr,Li]);const Qr=ci=>{ci||ui(null)},oi=function(){let ci=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const ki=ci?ii:Dt.errors,Ki=ci?Ur:Dt.warnings;return gt(ki,Ki,Dt,"",!!Bt,It)}(),di=Oe()(hr,Mt,Kt,{[`${hr}-with-help`]:Gr||ii.length||Ur.length,[`${hr}-has-feedback`]:oi&&Bt,[`${hr}-has-success`]:oi==="success",[`${hr}-has-warning`]:oi==="warning",[`${hr}-has-error`]:oi==="error",[`${hr}-is-validating`]:oi==="validating",[`${hr}-hidden`]:Zt,[`${hr}-${Kr}`]:Kr});return Me.createElement("div",{className:di,style:yt,ref:Jn},Me.createElement(xn.Z,Object.assign({className:`${hr}-row`},(0,yn.Z)(Sr,["_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"])),Me.createElement(nr,Object.assign({htmlFor:Tn},Rt,{requiredMark:Mr,required:Fn!=null?Fn:dr,prefixCls:jt,vertical:Wr})),Me.createElement(kt,Object.assign({},Rt,Dt,{errors:ii,warnings:Ur,prefixCls:jt,status:oi,help:qt,marginBottom:wi,onErrorVisibleChanged:Qr}),Me.createElement(te.qI.Provider,{value:_r},Me.createElement(Ln,{prefixCls:jt,meta:Dt,errors:Dt.errors,warnings:Dt.warnings,hasFeedback:Bt,validateStatus:oi},tn)))),!!wi&&Me.createElement("div",{className:`${hr}-margin-offset`,style:{marginBottom:-wi}}))}const dn="__SPLIT__",Ie=null;function je(Rt,jt){const Mt=Object.keys(Rt),Kt=Object.keys(jt);return Mt.length===Kt.length&&Mt.every(yt=>{const qt=Rt[yt],vn=jt[yt];return qt===vn||typeof qt=="function"||typeof vn=="function"})}const Je=Me.memo(Rt=>{let{children:jt}=Rt;return jt},(Rt,jt)=>je(Rt.control,jt.control)&&Rt.update===jt.update&&Rt.childProps.length===jt.childProps.length&&Rt.childProps.every((Mt,Kt)=>Mt===jt.childProps[Kt]));function ht(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Et(Rt){const{name:jt,noStyle:Mt,className:Kt,dependencies:yt,prefixCls:qt,shouldUpdate:vn,rules:Tt,children:It,required:Dt,label:Bt,messageVariables:Zt,trigger:tn="onChange",validateTrigger:Tn,hidden:Fn,help:dr,layout:_r}=Rt,{getPrefixCls:Kr}=Me.useContext(Ke.E_),{name:Sr}=Me.useContext(te.q3),hr=ct(It),Mr=typeof hr=="function",Br=Me.useContext(te.qI),{validateTrigger:Wr}=Me.useContext(ze.FieldContext),Jn=Tn!==void 0?Tn:Wr,ii=jt!=null,Ur=Kr("form",qt),Gr=(0,fe.Z)(Ur),[qr,Li,wi]=Be(Ur,Gr),ui=(0,at.ln)("Form.Item"),Qr=Me.useContext(ze.ListContext),Di=Me.useRef(null),[oi,di]=ft({}),[ci,ki]=(0,He.Z)(()=>ht()),Ki=Ti=>{const Xr=Qr==null?void 0:Qr.getKey(Ti.name);if(ki(Ti.destroy?ht():Ti,!0),Mt&&dr!==!1&&Br){let rr=Ti.name;if(Ti.destroy)rr=Di.current||rr;else if(Xr!==void 0){const[Dr,Fr]=Xr;rr=[Dr].concat((0,Ye.Z)(Fr)),Di.current=rr}Br(Ti,rr)}},ua=(Ti,Xr)=>{di(rr=>{const Dr=Object.assign({},rr),or=[].concat((0,Ye.Z)(Ti.name.slice(0,-1)),(0,Ye.Z)(Xr)).join(dn);return Ti.destroy?delete Dr[or]:Dr[or]=Ti,Dr})},[kn,qi]=Me.useMemo(()=>{const Ti=(0,Ye.Z)(ci.errors),Xr=(0,Ye.Z)(ci.warnings);return Object.values(oi).forEach(rr=>{Ti.push.apply(Ti,(0,Ye.Z)(rr.errors||[])),Xr.push.apply(Xr,(0,Ye.Z)(rr.warnings||[]))}),[Ti,Xr]},[oi,ci.errors,ci.warnings]),Qi=St();function ra(Ti,Xr,rr){return Mt&&!Fn?Me.createElement(Ln,{prefixCls:Ur,hasFeedback:Rt.hasFeedback,validateStatus:Rt.validateStatus,meta:ci,errors:kn,warnings:qi,noStyle:!0},Ti):Me.createElement(ar,Object.assign({key:"row"},Rt,{className:Oe()(Kt,wi,Gr,Li),prefixCls:Ur,fieldId:Xr,isRequired:rr,errors:kn,warnings:qi,meta:ci,onSubItemMetaChange:ua,layout:_r}),Ti)}if(!ii&&!Mr&&!yt)return qr(ra(hr));let _i={};return typeof Bt=="string"?_i.label=Bt:jt&&(_i.label=String(jt)),Zt&&(_i=Object.assign(Object.assign({},_i),Zt)),qr(Me.createElement(ze.Field,Object.assign({},Rt,{messageVariables:_i,trigger:tn,validateTrigger:Jn,onMetaChange:Ki}),(Ti,Xr,rr)=>{const Dr=pt(jt).length&&Xr?Xr.name:[],Fr=At(Dr,Sr),or=Dt!==void 0?Dt:!!(Tt!=null&&Tt.some(wr=>{if(wr&&typeof wr=="object"&&wr.required&&!wr.warningOnly)return!0;if(typeof wr=="function"){const Ir=wr(rr);return(Ir==null?void 0:Ir.required)&&!(Ir!=null&&Ir.warningOnly)}return!1})),ei=Object.assign({},Ti);let si=null;if(Array.isArray(hr)&&ii)si=hr;else if(!(Mr&&(!(vn||yt)||ii))){if(!(yt&&!Mr&&!ii))if(Me.isValidElement(hr)){const wr=Object.assign(Object.assign({},hr.props),ei);if(wr.id||(wr.id=Fr),dr||kn.length>0||qi.length>0||Rt.extra){const ri=[];(dr||kn.length>0)&&ri.push(`${Fr}_help`),Rt.extra&&ri.push(`${Fr}_extra`),wr["aria-describedby"]=ri.join(" ")}kn.length>0&&(wr["aria-invalid"]="true"),or&&(wr["aria-required"]="true"),(0,We.Yr)(hr)&&(wr.ref=Qi(Dr,hr)),new Set([].concat((0,Ye.Z)(pt(tn)),(0,Ye.Z)(pt(Jn)))).forEach(ri=>{wr[ri]=function(){for(var un,Vn,Sn,Rr,ti,gn=arguments.length,mi=new Array(gn),Nr=0;Nr<gn;Nr++)mi[Nr]=arguments[Nr];(Sn=ei[ri])===null||Sn===void 0||(un=Sn).call.apply(un,[ei].concat(mi)),(ti=(Rr=hr.props)[ri])===null||ti===void 0||(Vn=ti).call.apply(Vn,[Rr].concat(mi))}});const Hr=[wr["aria-required"],wr["aria-invalid"],wr["aria-describedby"]];si=Me.createElement(Je,{control:ei,update:hr,childProps:Hr},(0,tt.Tm)(hr,wr))}else Mr&&(vn||yt)&&!ii?si=hr(rr):si=hr}return ra(si,Fr,or)}))}const Qt=Et;Qt.useStatus=mt;var fn=Qt,sn=function(Rt,jt){var Mt={};for(var Kt in Rt)Object.prototype.hasOwnProperty.call(Rt,Kt)&&jt.indexOf(Kt)<0&&(Mt[Kt]=Rt[Kt]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,Kt=Object.getOwnPropertySymbols(Rt);yt<Kt.length;yt++)jt.indexOf(Kt[yt])<0&&Object.prototype.propertyIsEnumerable.call(Rt,Kt[yt])&&(Mt[Kt[yt]]=Rt[Kt[yt]]);return Mt},Zn=Rt=>{var{prefixCls:jt,children:Mt}=Rt,Kt=sn(Rt,["prefixCls","children"]);const{getPrefixCls:yt}=Me.useContext(Ke.E_),qt=yt("form",jt),vn=Me.useMemo(()=>({prefixCls:qt,status:"error"}),[qt]);return Me.createElement(ze.List,Object.assign({},Kt),(Tt,It,Dt)=>Me.createElement(te.Rk.Provider,{value:vn},Mt(Tt.map(Bt=>Object.assign(Object.assign({},Bt),{fieldKey:Bt.key})),It,{errors:Dt.errors,warnings:Dt.warnings})))};function tr(){const{form:Rt}=Me.useContext(te.q3);return Rt}const Vt=et;Vt.Item=fn,Vt.List=Zn,Vt.ErrorList=Pe,Vt.useForm=zt,Vt.useFormInstance=tr,Vt.useWatch=ze.useWatch,Vt.Provider=te.RV,Vt.create=()=>{};var Gt=Vt},4875:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return Bn}});var te=Ce(59301),Ye=Ce(84105),Me=Ce(87395),pe=Ce(92310),Oe=Ce.n(pe),ve=Ce(60499),ue=Ce(18642),fe=Ce(43749),he=Ce(72190),le=Ce(42244),ae=Ce(38705),ie=Ce(17212);function me(){return typeof BigInt=="function"}function E(kt){return!kt&&kt!==0&&!Number.isNaN(kt)||!String(kt).trim()}function b(kt){var ln=kt.trim(),Cn=ln.startsWith("-");Cn&&(ln=ln.slice(1)),ln=ln.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),ln.startsWith(".")&&(ln="0".concat(ln));var Mn=ln||"0",Qn=Mn.split("."),mr=Qn[0]||"0",lr=Qn[1]||"0";mr==="0"&&lr==="0"&&(Cn=!1);var Cr=Cn?"-":"";return{negative:Cn,negativeStr:Cr,trimStr:Mn,integerStr:mr,decimalStr:lr,fullStr:"".concat(Cr).concat(Mn)}}function z(kt){var ln=String(kt);return!Number.isNaN(Number(ln))&&ln.includes("e")}function ne(kt){var ln=String(kt);if(z(kt)){var Cn=Number(ln.slice(ln.indexOf("e-")+2)),Mn=ln.match(/\.(\d+)/);return Mn!=null&&Mn[1]&&(Cn+=Mn[1].length),Cn}return ln.includes(".")&&se(ln)?ln.length-ln.indexOf(".")-1:0}function oe(kt){var ln=String(kt);if(z(kt)){if(kt>Number.MAX_SAFE_INTEGER)return String(me()?BigInt(kt).toString():Number.MAX_SAFE_INTEGER);if(kt<Number.MIN_SAFE_INTEGER)return String(me()?BigInt(kt).toString():Number.MIN_SAFE_INTEGER);ln=kt.toFixed(ne(ln))}return b(ln).fullStr}function se(kt){return typeof kt=="number"?!Number.isNaN(kt):kt?/^\s*-?\d+(\.\d+)?\s*$/.test(kt)||/^\s*-?\d+\.\s*$/.test(kt)||/^\s*-?\.\d+\s*$/.test(kt):!1}var de=function(){function kt(ln){if((0,ae.Z)(this,kt),(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),E(ln)){this.empty=!0;return}if(this.origin=String(ln),ln==="-"||Number.isNaN(ln)){this.nan=!0;return}var Cn=ln;if(z(Cn)&&(Cn=Number(Cn)),Cn=typeof Cn=="string"?Cn:oe(Cn),se(Cn)){var Mn=b(Cn);this.negative=Mn.negative;var Qn=Mn.trimStr.split(".");this.integer=BigInt(Qn[0]);var mr=Qn[1]||"0";this.decimal=BigInt(mr),this.decimalLen=mr.length}else this.nan=!0}return(0,ie.Z)(kt,[{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(Cn){var Mn="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(Cn,"0"));return BigInt(Mn)}},{key:"negate",value:function(){var Cn=new kt(this.toString());return Cn.negative=!Cn.negative,Cn}},{key:"cal",value:function(Cn,Mn,Qn){var mr=Math.max(this.getDecimalStr().length,Cn.getDecimalStr().length),lr=this.alignDecimal(mr),Cr=Cn.alignDecimal(mr),nr=Mn(lr,Cr).toString(),ur=Qn(mr),Nn=b(nr),In=Nn.negativeStr,Wn=Nn.trimStr,Kn="".concat(In).concat(Wn.padStart(ur+1,"0"));return new kt("".concat(Kn.slice(0,-ur),".").concat(Kn.slice(-ur)))}},{key:"add",value:function(Cn){if(this.isInvalidate())return new kt(Cn);var Mn=new kt(Cn);return Mn.isInvalidate()?this:this.cal(Mn,function(Qn,mr){return Qn+mr},function(Qn){return Qn})}},{key:"multi",value:function(Cn){var Mn=new kt(Cn);return this.isInvalidate()||Mn.isInvalidate()?new kt(NaN):this.cal(Mn,function(Qn,mr){return Qn*mr},function(Qn){return Qn*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(Cn){return this.toString()===(Cn==null?void 0:Cn.toString())}},{key:"lessEquals",value:function(Cn){return this.add(Cn.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var Cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Cn?this.isInvalidate()?"":b("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),kt}(),a=function(){function kt(ln){if((0,ae.Z)(this,kt),(0,ue.Z)(this,"origin",""),(0,ue.Z)(this,"number",void 0),(0,ue.Z)(this,"empty",void 0),E(ln)){this.empty=!0;return}this.origin=String(ln),this.number=Number(ln)}return(0,ie.Z)(kt,[{key:"negate",value:function(){return new kt(-this.toNumber())}},{key:"add",value:function(Cn){if(this.isInvalidate())return new kt(Cn);var Mn=Number(Cn);if(Number.isNaN(Mn))return this;var Qn=this.number+Mn;if(Qn>Number.MAX_SAFE_INTEGER)return new kt(Number.MAX_SAFE_INTEGER);if(Qn<Number.MIN_SAFE_INTEGER)return new kt(Number.MIN_SAFE_INTEGER);var mr=Math.max(ne(this.number),ne(Mn));return new kt(Qn.toFixed(mr))}},{key:"multi",value:function(Cn){var Mn=Number(Cn);if(this.isInvalidate()||Number.isNaN(Mn))return new kt(NaN);var Qn=this.number*Mn;if(Qn>Number.MAX_SAFE_INTEGER)return new kt(Number.MAX_SAFE_INTEGER);if(Qn<Number.MIN_SAFE_INTEGER)return new kt(Number.MIN_SAFE_INTEGER);var mr=Math.max(ne(this.number),ne(Mn));return new kt(Qn.toFixed(mr))}},{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(Cn){return this.toNumber()===(Cn==null?void 0:Cn.toNumber())}},{key:"lessEquals",value:function(Cn){return this.add(Cn.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var Cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Cn?this.isInvalidate()?"":oe(this.number):this.origin}}]),kt}();function x(kt){return me()?new de(kt):new a(kt)}function re(kt,ln,Cn){var Mn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(kt==="")return"";var Qn=b(kt),mr=Qn.negativeStr,lr=Qn.integerStr,Cr=Qn.decimalStr,nr="".concat(ln).concat(Cr),ur="".concat(mr).concat(lr);if(Cn>=0){var Nn=Number(Cr[Cn]);if(Nn>=5&&!Mn){var In=x(kt).add("".concat(mr,"0.").concat("0".repeat(Cn)).concat(10-Nn));return re(In.toString(),ln,Cn,Mn)}return Cn===0?ur:"".concat(ur).concat(ln).concat(Cr.padEnd(Cn,"0").slice(0,Cn))}return nr===".0"?ur:"".concat(ur).concat(nr)}var ce=x,ge=Ce(36901),_e=Ce(34280);function ye(kt,ln){return typeof Proxy!="undefined"&&kt?new Proxy(kt,{get:function(Mn,Qn){if(ln[Qn])return ln[Qn];var mr=Mn[Qn];return typeof mr=="function"?mr.bind(Mn):mr}}):kt}var be=Ce(8654),Se=Ce(48736);function Be(kt,ln){var Cn=(0,te.useRef)(null);function Mn(){try{var mr=kt.selectionStart,lr=kt.selectionEnd,Cr=kt.value,nr=Cr.substring(0,mr),ur=Cr.substring(lr);Cn.current={start:mr,end:lr,value:Cr,beforeTxt:nr,afterTxt:ur}}catch(Nn){}}function Qn(){if(kt&&Cn.current&&ln)try{var mr=kt.value,lr=Cn.current,Cr=lr.beforeTxt,nr=lr.afterTxt,ur=lr.start,Nn=mr.length;if(mr.startsWith(Cr))Nn=Cr.length;else if(mr.endsWith(nr))Nn=mr.length-Cn.current.afterTxt.length;else{var In=Cr[ur-1],Wn=mr.indexOf(In,ur-1);Wn!==-1&&(Nn=Wn+1)}kt.setSelectionRange(Nn,Nn)}catch(Kn){(0,Se.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Kn.message))}}return[Mn,Qn]}var Ae=Ce(49658),we=function(){var ln=(0,te.useState)(!1),Cn=(0,he.Z)(ln,2),Mn=Cn[0],Qn=Cn[1];return(0,_e.Z)(function(){Qn((0,Ae.Z)())},[]),Mn},Ue=we,Pe=Ce(16089),ze=200,Ke=600;function Ne(kt){var ln=kt.prefixCls,Cn=kt.upNode,Mn=kt.downNode,Qn=kt.upDisabled,mr=kt.downDisabled,lr=kt.onStep,Cr=te.useRef(),nr=te.useRef([]),ur=te.useRef();ur.current=lr;var Nn=function(){clearTimeout(Cr.current)},In=function(je,Je){je.preventDefault(),Nn(),ur.current(Je);function ht(){ur.current(Je),Cr.current=setTimeout(ht,ze)}Cr.current=setTimeout(ht,Ke)};te.useEffect(function(){return function(){Nn(),nr.current.forEach(function(Ie){return Pe.Z.cancel(Ie)})}},[]);var Wn=Ue();if(Wn)return null;var Kn="".concat(ln,"-handler"),Ln=Oe()(Kn,"".concat(Kn,"-up"),(0,ue.Z)({},"".concat(Kn,"-up-disabled"),Qn)),$n=Oe()(Kn,"".concat(Kn,"-down"),(0,ue.Z)({},"".concat(Kn,"-down-disabled"),mr)),ar=function(){return nr.current.push((0,Pe.Z)(Nn))},dn={unselectable:"on",role:"button",onMouseUp:ar,onMouseLeave:ar};return te.createElement("div",{className:"".concat(Kn,"-wrap")},te.createElement("span",(0,ve.Z)({},dn,{onMouseDown:function(je){In(je,!0)},"aria-label":"Increase Value","aria-disabled":Qn,className:Ln}),Cn||te.createElement("span",{unselectable:"on",className:"".concat(ln,"-handler-up-inner")})),te.createElement("span",(0,ve.Z)({},dn,{onMouseDown:function(je){In(je,!1)},"aria-label":"Decrease Value","aria-disabled":mr,className:$n}),Mn||te.createElement("span",{unselectable:"on",className:"".concat(ln,"-handler-down-inner")})))}function Re(kt){var ln=typeof kt=="number"?oe(kt):b(kt).fullStr,Cn=ln.includes(".");return Cn?b(ln.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:kt+"0"}var $e=Ce(30292),nt=function(){var kt=(0,te.useRef)(0),ln=function(){Pe.Z.cancel(kt.current)};return(0,te.useEffect)(function(){return ln},[]),function(Cn){ln(),kt.current=(0,Pe.Z)(function(){Cn()})}},ut=["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"],Qe=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],rt=function(ln,Cn){return ln||Cn.isEmpty()?Cn.toString():Cn.toNumber()},pt=function(ln){var Cn=ce(ln);return Cn.isInvalidate()?null:Cn},At=te.forwardRef(function(kt,ln){var Cn=kt.prefixCls,Mn=kt.className,Qn=kt.style,mr=kt.min,lr=kt.max,Cr=kt.step,nr=Cr===void 0?1:Cr,ur=kt.defaultValue,Nn=kt.value,In=kt.disabled,Wn=kt.readOnly,Kn=kt.upHandler,Ln=kt.downHandler,$n=kt.keyboard,ar=kt.changeOnWheel,dn=ar===void 0?!1:ar,Ie=kt.controls,je=Ie===void 0?!0:Ie,Je=kt.classNames,ht=kt.stringMode,Et=kt.parser,Qt=kt.formatter,fn=kt.precision,sn=kt.decimalSeparator,mn=kt.onChange,Zn=kt.onInput,tr=kt.onPressEnter,Vt=kt.onStep,Gt=kt.changeOnBlur,Rt=Gt===void 0?!0:Gt,jt=kt.domRef,Mt=(0,le.Z)(kt,ut),Kt="".concat(Cn,"-input"),yt=te.useRef(null),qt=te.useState(!1),vn=(0,he.Z)(qt,2),Tt=vn[0],It=vn[1],Dt=te.useRef(!1),Bt=te.useRef(!1),Zt=te.useRef(!1),tn=te.useState(function(){return ce(Nn!=null?Nn:ur)}),Tn=(0,he.Z)(tn,2),Fn=Tn[0],dr=Tn[1];function _r(Fr){Nn===void 0&&dr(Fr)}var Kr=te.useCallback(function(Fr,or){if(!or)return fn>=0?fn:Math.max(ne(Fr),ne(nr))},[fn,nr]),Sr=te.useCallback(function(Fr){var or=String(Fr);if(Et)return Et(or);var ei=or;return sn&&(ei=ei.replace(sn,".")),ei.replace(/[^\w.-]+/g,"")},[Et,sn]),hr=te.useRef(""),Mr=te.useCallback(function(Fr,or){if(Qt)return Qt(Fr,{userTyping:or,input:String(hr.current)});var ei=typeof Fr=="number"?oe(Fr):Fr;if(!or){var si=Kr(ei,or);if(se(ei)&&(sn||si>=0)){var wr=sn||".";ei=re(ei,wr,si)}}return ei},[Qt,Kr,sn]),Br=te.useState(function(){var Fr=ur!=null?ur:Nn;return Fn.isInvalidate()&&["string","number"].includes((0,fe.Z)(Fr))?Number.isNaN(Fr)?"":Fr:Mr(Fn.toString(),!1)}),Wr=(0,he.Z)(Br,2),Jn=Wr[0],ii=Wr[1];hr.current=Jn;function Ur(Fr,or){ii(Mr(Fr.isInvalidate()?Fr.toString(!1):Fr.toString(!or),or))}var Gr=te.useMemo(function(){return pt(lr)},[lr,fn]),qr=te.useMemo(function(){return pt(mr)},[mr,fn]),Li=te.useMemo(function(){return!Gr||!Fn||Fn.isInvalidate()?!1:Gr.lessEquals(Fn)},[Gr,Fn]),wi=te.useMemo(function(){return!qr||!Fn||Fn.isInvalidate()?!1:Fn.lessEquals(qr)},[qr,Fn]),ui=Be(yt.current,Tt),Qr=(0,he.Z)(ui,2),Di=Qr[0],oi=Qr[1],di=function(or){return Gr&&!or.lessEquals(Gr)?Gr:qr&&!qr.lessEquals(or)?qr:null},ci=function(or){return!di(or)},ki=function(or,ei){var si=or,wr=ci(si)||si.isEmpty();if(!si.isEmpty()&&!ei&&(si=di(si)||si,wr=!0),!Wn&&!In&&wr){var Ir=si.toString(),Hr=Kr(Ir,ei);return Hr>=0&&(si=ce(re(Ir,".",Hr)),ci(si)||(si=ce(re(Ir,".",Hr,!0)))),si.equals(Fn)||(_r(si),mn==null||mn(si.isEmpty()?null:rt(ht,si)),Nn===void 0&&Ur(si,ei)),si}return Fn},Ki=nt(),ua=function Fr(or){if(Di(),hr.current=or,ii(or),!Bt.current){var ei=Sr(or),si=ce(ei);si.isNaN()||ki(si,!0)}Zn==null||Zn(or),Ki(function(){var wr=or;Et||(wr=or.replace(/。/g,".")),wr!==or&&Fr(wr)})},kn=function(){Bt.current=!0},qi=function(){Bt.current=!1,ua(yt.current.value)},Qi=function(or){ua(or.target.value)},ra=function(or){var ei;if(!(or&&Li||!or&&wi)){Dt.current=!1;var si=ce(Zt.current?Re(nr):nr);or||(si=si.negate());var wr=(Fn||ce(0)).add(si.toString()),Ir=ki(wr,!1);Vt==null||Vt(rt(ht,Ir),{offset:Zt.current?Re(nr):nr,type:or?"up":"down"}),(ei=yt.current)===null||ei===void 0||ei.focus()}},_i=function(or){var ei=ce(Sr(Jn)),si;ei.isNaN()?si=ki(Fn,or):si=ki(ei,or),Nn!==void 0?Ur(Fn,!1):si.isNaN()||Ur(si,!1)},Ti=function(){Dt.current=!0},Xr=function(or){var ei=or.key,si=or.shiftKey;Dt.current=!0,Zt.current=si,ei==="Enter"&&(Bt.current||(Dt.current=!1),_i(!1),tr==null||tr(or)),$n!==!1&&!Bt.current&&["Up","ArrowUp","Down","ArrowDown"].includes(ei)&&(ra(ei==="Up"||ei==="ArrowUp"),or.preventDefault())},rr=function(){Dt.current=!1,Zt.current=!1};te.useEffect(function(){if(dn&&Tt){var Fr=function(si){ra(si.deltaY<0),si.preventDefault()},or=yt.current;if(or)return or.addEventListener("wheel",Fr,{passive:!1}),function(){return or.removeEventListener("wheel",Fr)}}});var Dr=function(){Rt&&_i(!1),It(!1),Dt.current=!1};return(0,_e.o)(function(){Fn.isInvalidate()||Ur(Fn,!1)},[fn,Qt]),(0,_e.o)(function(){var Fr=ce(Nn);dr(Fr);var or=ce(Sr(Jn));(!Fr.equals(or)||!Dt.current||Qt)&&Ur(Fr,Dt.current)},[Nn]),(0,_e.o)(function(){Qt&&oi()},[Jn]),te.createElement("div",{ref:jt,className:Oe()(Cn,Mn,(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)({},"".concat(Cn,"-focused"),Tt),"".concat(Cn,"-disabled"),In),"".concat(Cn,"-readonly"),Wn),"".concat(Cn,"-not-a-number"),Fn.isNaN()),"".concat(Cn,"-out-of-range"),!Fn.isInvalidate()&&!ci(Fn))),style:Qn,onFocus:function(){It(!0)},onBlur:Dr,onKeyDown:Xr,onKeyUp:rr,onCompositionStart:kn,onCompositionEnd:qi,onBeforeInput:Ti},je&&te.createElement(Ne,{prefixCls:Cn,upNode:Kn,downNode:Ln,upDisabled:Li,downDisabled:wi,onStep:ra}),te.createElement("div",{className:"".concat(Kt,"-wrap")},te.createElement("input",(0,ve.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":mr,"aria-valuemax":lr,"aria-valuenow":Fn.isInvalidate()?null:Fn.toString(),step:nr},Mt,{ref:(0,be.sQ)(yt,ln),className:Kt,value:Jn,onChange:Qi,disabled:In,readOnly:Wn}))))}),gt=te.forwardRef(function(kt,ln){var Cn=kt.disabled,Mn=kt.style,Qn=kt.prefixCls,mr=Qn===void 0?"rc-input-number":Qn,lr=kt.value,Cr=kt.prefix,nr=kt.suffix,ur=kt.addonBefore,Nn=kt.addonAfter,In=kt.className,Wn=kt.classNames,Kn=(0,le.Z)(kt,Qe),Ln=te.useRef(null),$n=te.useRef(null),ar=te.useRef(null),dn=function(je){ar.current&&(0,$e.nH)(ar.current,je)};return te.useImperativeHandle(ln,function(){return ye(ar.current,{focus:dn,nativeElement:Ln.current.nativeElement||$n.current})}),te.createElement(ge.BaseInput,{className:In,triggerFocus:dn,prefixCls:mr,value:lr,disabled:Cn,style:Mn,prefix:Cr,suffix:nr,addonAfter:Nn,addonBefore:ur,classNames:Wn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Ln},te.createElement(At,(0,ve.Z)({prefixCls:mr,disabled:Cn,ref:ar,domRef:$n,className:Wn==null?void 0:Wn.input},Kn)))}),Ft=gt,Ct=Ft,Yt=Ce(62487),zt=Ce(82855),Xe=Ce(48755),Fe=Ce(60840),Le=Ce(2171),Ze=Ce(83397),et=Ce(31756),He=Ce(56553),We=Ce(24971),tt=Ce(70045),at=Ce(36237),ot=Ce(53075),ct=Ce(64910),lt=Ce(39082),mt=Ce(63356),Lt=Ce(56119),ft=Ce(16931),St=Ce(51636),nn=Ce(17835);const on=kt=>{var ln;const Cn=(ln=kt.handleVisible)!==null&&ln!==void 0?ln:"auto",Mn=kt.controlHeightSM-kt.lineWidth*2;return Object.assign(Object.assign({},(0,ct.T)(kt)),{controlWidth:90,handleWidth:Mn,handleFontSize:kt.fontSize/2,handleVisible:Cn,handleActiveBg:kt.colorFillAlter,handleBg:kt.colorBgContainer,filledHandleBg:new nn.FastColor(kt.colorFillSecondary).onBackground(kt.colorBgContainer).toHexString(),handleHoverColor:kt.colorPrimary,handleBorderColor:kt.colorBorder,handleOpacity:Cn===!0?1:0,handleVisibleWidth:Cn===!0?Mn:0})},yn=(kt,ln)=>{let{componentCls:Cn,borderRadiusSM:Mn,borderRadiusLG:Qn}=kt;const mr=ln==="lg"?Qn:Mn;return{[`&-${ln}`]:{[`${Cn}-handler-wrap`]:{borderStartEndRadius:mr,borderEndEndRadius:mr},[`${Cn}-handler-up`]:{borderStartEndRadius:mr},[`${Cn}-handler-down`]:{borderEndEndRadius:mr}}}},xn=kt=>{const{componentCls:ln,lineWidth:Cn,lineType:Mn,borderRadius:Qn,inputFontSizeSM:mr,inputFontSizeLG:lr,controlHeightLG:Cr,controlHeightSM:nr,colorError:ur,paddingInlineSM:Nn,paddingBlockSM:In,paddingBlockLG:Wn,paddingInlineLG:Kn,colorTextDescription:Ln,motionDurationMid:$n,handleHoverColor:ar,handleOpacity:dn,paddingInline:Ie,paddingBlock:je,handleBg:Je,handleActiveBg:ht,colorTextDisabled:Et,borderRadiusSM:Qt,borderRadiusLG:fn,controlWidth:sn,handleBorderColor:mn,filledHandleBg:Zn,lineHeightLG:tr,calc:Vt}=kt;return[{[ln]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,mt.Wf)(kt)),(0,ot.ik)(kt)),{display:"inline-block",width:sn,margin:0,padding:0,borderRadius:Qn}),(0,lt.qG)(kt,{[`${ln}-handler-wrap`]:{background:Je,[`${ln}-handler-down`]:{borderBlockStart:`${(0,at.unit)(Cn)} ${Mn} ${mn}`}}})),(0,lt.H8)(kt,{[`${ln}-handler-wrap`]:{background:Zn,[`${ln}-handler-down`]:{borderBlockStart:`${(0,at.unit)(Cn)} ${Mn} ${mn}`}},"&:focus-within":{[`${ln}-handler-wrap`]:{background:Je}}})),(0,lt.vc)(kt,{[`${ln}-handler-wrap`]:{background:Je,[`${ln}-handler-down`]:{borderBlockStart:`${(0,at.unit)(Cn)} ${Mn} ${mn}`}}})),(0,lt.Mu)(kt)),{"&-rtl":{direction:"rtl",[`${ln}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:lr,lineHeight:tr,borderRadius:fn,[`input${ln}-input`]:{height:Vt(Cr).sub(Vt(Cn).mul(2)).equal(),padding:`${(0,at.unit)(Wn)} ${(0,at.unit)(Kn)}`}},"&-sm":{padding:0,fontSize:mr,borderRadius:Qt,[`input${ln}-input`]:{height:Vt(nr).sub(Vt(Cn).mul(2)).equal(),padding:`${(0,at.unit)(In)} ${(0,at.unit)(Nn)}`}},"&-out-of-range":{[`${ln}-input-wrap`]:{input:{color:ur}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,mt.Wf)(kt)),(0,ot.s7)(kt)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${ln}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${ln}-group-addon`]:{borderRadius:fn,fontSize:kt.fontSizeLG}},"&-sm":{[`${ln}-group-addon`]:{borderRadius:Qt}}},(0,lt.ir)(kt)),(0,lt.S5)(kt)),{[`&:not(${ln}-compact-first-item):not(${ln}-compact-last-item)${ln}-compact-item`]:{[`${ln}, ${ln}-group-addon`]:{borderRadius:0}},[`&:not(${ln}-compact-last-item)${ln}-compact-first-item`]:{[`${ln}, ${ln}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${ln}-compact-first-item)${ln}-compact-last-item`]:{[`${ln}, ${ln}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${ln}-input`]:{cursor:"not-allowed"},[ln]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,mt.Wf)(kt)),{width:"100%",padding:`${(0,at.unit)(je)} ${(0,at.unit)(Ie)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Qn,outline:0,transition:`all ${$n} linear`,appearance:"textfield",fontSize:"inherit"}),(0,ot.nz)(kt.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${ln}-handler-wrap, &-focused ${ln}-handler-wrap`]:{width:kt.handleWidth,opacity:1}})},{[ln]:Object.assign(Object.assign(Object.assign({[`${ln}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:kt.handleVisibleWidth,opacity:dn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Qn,borderEndEndRadius:Qn,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${$n}`,overflow:"hidden",[`${ln}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${ln}-handler-up-inner,
|
|
|
${ln}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:kt.handleFontSize}}},[`${ln}-handler`]:{height:"50%",overflow:"hidden",color:Ln,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,at.unit)(Cn)} ${Mn} ${mn}`,transition:`all ${$n} linear`,"&:active":{background:ht},"&:hover":{height:"60%",[`
|
|
|
${ln}-handler-up-inner,
|
|
|
${ln}-handler-down-inner
|
|
|
`]:{color:ar}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,mt.Ro)()),{color:Ln,transition:`all ${$n} linear`,userSelect:"none"})},[`${ln}-handler-up`]:{borderStartEndRadius:Qn},[`${ln}-handler-down`]:{borderEndEndRadius:Qn}},yn(kt,"lg")),yn(kt,"sm")),{"&-disabled, &-readonly":{[`${ln}-handler-wrap`]:{display:"none"},[`${ln}-input`]:{color:"inherit"}},[`
|
|
|
${ln}-handler-up-disabled,
|
|
|
${ln}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${ln}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${ln}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:Et}})}]},an=kt=>{const{componentCls:ln,paddingBlock:Cn,paddingInline:Mn,inputAffixPadding:Qn,controlWidth:mr,borderRadiusLG:lr,borderRadiusSM:Cr,paddingInlineLG:nr,paddingInlineSM:ur,paddingBlockLG:Nn,paddingBlockSM:In,motionDurationMid:Wn}=kt;return{[`${ln}-affix-wrapper`]:Object.assign(Object.assign({[`input${ln}-input`]:{padding:`${(0,at.unit)(Cn)} 0`}},(0,ot.ik)(kt)),{position:"relative",display:"inline-flex",alignItems:"center",width:mr,padding:0,paddingInlineStart:Mn,"&-lg":{borderRadius:lr,paddingInlineStart:nr,[`input${ln}-input`]:{padding:`${(0,at.unit)(Nn)} 0`}},"&-sm":{borderRadius:Cr,paddingInlineStart:ur,[`input${ln}-input`]:{padding:`${(0,at.unit)(In)} 0`}},[`&:not(${ln}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${ln}-disabled`]:{background:"transparent"},[`> div${ln}`]:{width:"100%",border:"none",outline:"none",[`&${ln}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${ln}-handler-wrap`]:{zIndex:2},[ln]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Qn},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:Mn,marginInlineStart:Qn,transition:`margin ${Wn}`}},[`&:hover ${ln}-handler-wrap, &-focused ${ln}-handler-wrap`]:{width:kt.handleWidth,opacity:1},[`&:not(${ln}-affix-wrapper-without-controls):hover ${ln}-suffix`]:{marginInlineEnd:kt.calc(kt.handleWidth).add(Mn).equal()}})}};var An=(0,ft.I$)("InputNumber",kt=>{const ln=(0,St.mergeToken)(kt,(0,ct.e)(kt));return[xn(ln),an(ln),(0,Lt.c)(ln)]},on,{unitless:{handleOpacity:!0}}),Jt=function(kt,ln){var Cn={};for(var Mn in kt)Object.prototype.hasOwnProperty.call(kt,Mn)&&ln.indexOf(Mn)<0&&(Cn[Mn]=kt[Mn]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qn=0,Mn=Object.getOwnPropertySymbols(kt);Qn<Mn.length;Qn++)ln.indexOf(Mn[Qn])<0&&Object.prototype.propertyIsEnumerable.call(kt,Mn[Qn])&&(Cn[Mn[Qn]]=kt[Mn[Qn]]);return Cn};const Ut=te.forwardRef((kt,ln)=>{const{getPrefixCls:Cn,direction:Mn}=te.useContext(Xe.E_),Qn=te.useRef(null);te.useImperativeHandle(ln,()=>Qn.current);const{className:mr,rootClassName:lr,size:Cr,disabled:nr,prefixCls:ur,addonBefore:Nn,addonAfter:In,prefix:Wn,suffix:Kn,bordered:Ln,readOnly:$n,status:ar,controls:dn,variant:Ie}=kt,je=Jt(kt,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),Je=Cn("input-number",ur),ht=(0,Ze.Z)(Je),[Et,Qt,fn]=An(Je,ht),{compactSize:sn,compactItemClassnames:mn}=(0,tt.ri)(Je,Mn);let Zn=te.createElement(Me.Z,{className:`${Je}-handler-up-inner`}),tr=te.createElement(Ye.Z,{className:`${Je}-handler-down-inner`});const Vt=typeof dn=="boolean"?dn:void 0;typeof dn=="object"&&(Zn=typeof dn.upIcon=="undefined"?Zn:te.createElement("span",{className:`${Je}-handler-up-inner`},dn.upIcon),tr=typeof dn.downIcon=="undefined"?tr:te.createElement("span",{className:`${Je}-handler-down-inner`},dn.downIcon));const{hasFeedback:Gt,status:Rt,isFormItemInput:jt,feedbackIcon:Mt}=te.useContext(He.aM),Kt=(0,zt.F)(Rt,ar),yt=(0,et.Z)(Tn=>{var Fn;return(Fn=Cr!=null?Cr:sn)!==null&&Fn!==void 0?Fn:Tn}),qt=te.useContext(Le.Z),vn=nr!=null?nr:qt,[Tt,It]=(0,We.Z)("inputNumber",Ie,Ln),Dt=Gt&&te.createElement(te.Fragment,null,Mt),Bt=Oe()({[`${Je}-lg`]:yt==="large",[`${Je}-sm`]:yt==="small",[`${Je}-rtl`]:Mn==="rtl",[`${Je}-in-form-item`]:jt},Qt),Zt=`${Je}-group`,tn=te.createElement(Ct,Object.assign({ref:Qn,disabled:vn,className:Oe()(fn,ht,mr,lr,mn),upHandler:Zn,downHandler:tr,prefixCls:Je,readOnly:$n,controls:Vt,prefix:Wn,suffix:Dt||Kn,addonBefore:Nn&&te.createElement(Yt.Z,{form:!0,space:!0},Nn),addonAfter:In&&te.createElement(Yt.Z,{form:!0,space:!0},In),classNames:{input:Bt,variant:Oe()({[`${Je}-${Tt}`]:It},(0,zt.Z)(Je,Kt,Gt)),affixWrapper:Oe()({[`${Je}-affix-wrapper-sm`]:yt==="small",[`${Je}-affix-wrapper-lg`]:yt==="large",[`${Je}-affix-wrapper-rtl`]:Mn==="rtl",[`${Je}-affix-wrapper-without-controls`]:dn===!1||vn},Qt),wrapper:Oe()({[`${Zt}-rtl`]:Mn==="rtl"},Qt),groupWrapper:Oe()({[`${Je}-group-wrapper-sm`]:yt==="small",[`${Je}-group-wrapper-lg`]:yt==="large",[`${Je}-group-wrapper-rtl`]:Mn==="rtl",[`${Je}-group-wrapper-${Tt}`]:It},(0,zt.Z)(`${Je}-group-wrapper`,Kt,Gt),Qt)}},je));return Et(tn)}),rn=Ut,_n=kt=>te.createElement(Fe.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},te.createElement(Ut,Object.assign({},kt)));rn._InternalPanelDoNotUseOrYouWillBeFired=_n;var Bn=rn},49397:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return a}});var te=Ce(59301),Ye=Ce(92310),Me=Ce.n(Ye),pe=Ce(36901),Oe=Ce(8654),ve=Ce(62487),ue=Ce(86013),fe=Ce(82855),he=Ce(48755),le=Ce(2171),ae=Ce(83397),ie=Ce(31756),me=Ce(56553),E=Ce(24971),b=Ce(70045),z=Ce(23826),ne=Ce(53075);function oe(x){return!!(x.prefix||x.suffix||x.allowClear||x.showCount)}var se=function(x,re){var ce={};for(var ge in x)Object.prototype.hasOwnProperty.call(x,ge)&&re.indexOf(ge)<0&&(ce[ge]=x[ge]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,ge=Object.getOwnPropertySymbols(x);_e<ge.length;_e++)re.indexOf(ge[_e])<0&&Object.prototype.propertyIsEnumerable.call(x,ge[_e])&&(ce[ge[_e]]=x[ge[_e]]);return ce},a=(0,te.forwardRef)((x,re)=>{const{prefixCls:ce,bordered:ge=!0,status:_e,size:ye,disabled:be,onBlur:Se,onFocus:Be,suffix:Ae,allowClear:we,addonAfter:Ue,addonBefore:Pe,className:ze,style:Ke,styles:Ne,rootClassName:Re,onChange:$e,classNames:nt,variant:ut}=x,Qe=se(x,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:rt,direction:pt,allowClear:At,autoComplete:gt,className:Ft,style:Ct,classNames:Yt,styles:zt}=(0,he.dj)("input"),Xe=rt("input",ce),Fe=(0,te.useRef)(null),Le=(0,ae.Z)(Xe),[Ze,et,He]=(0,ne.TI)(Xe,Re),[We]=(0,ne.ZP)(Xe,Le),{compactSize:tt,compactItemClassnames:at}=(0,b.ri)(Xe,pt),ot=(0,ie.Z)(Bn=>{var kt;return(kt=ye!=null?ye:tt)!==null&&kt!==void 0?kt:Bn}),ct=te.useContext(le.Z),lt=be!=null?be:ct,{status:mt,hasFeedback:Lt,feedbackIcon:ft}=(0,te.useContext)(me.aM),St=(0,fe.F)(mt,_e),nn=oe(x)||!!Lt,on=(0,te.useRef)(nn),yn=(0,z.Z)(Fe,!0),xn=Bn=>{yn(),Se==null||Se(Bn)},an=Bn=>{yn(),Be==null||Be(Bn)},An=Bn=>{yn(),$e==null||$e(Bn)},Jt=(Lt||Ae)&&te.createElement(te.Fragment,null,Ae,Lt&&ft),Ut=(0,ue.Z)(we!=null?we:At),[rn,_n]=(0,E.Z)("input",ut,ge);return Ze(We(te.createElement(pe.default,Object.assign({ref:(0,Oe.sQ)(re,Fe),prefixCls:Xe,autoComplete:gt},Qe,{disabled:lt,onBlur:xn,onFocus:an,style:Object.assign(Object.assign({},Ct),Ke),styles:Object.assign(Object.assign({},zt),Ne),suffix:Jt,allowClear:Ut,className:Me()(ze,Re,He,Le,at,Ft),onChange:An,addonBefore:Pe&&te.createElement(ve.Z,{form:!0,space:!0},Pe),addonAfter:Ue&&te.createElement(ve.Z,{form:!0,space:!0},Ue),classNames:Object.assign(Object.assign(Object.assign({},nt),Yt),{input:Me()({[`${Xe}-sm`]:ot==="small",[`${Xe}-lg`]:ot==="large",[`${Xe}-rtl`]:pt==="rtl"},nt==null?void 0:nt.input,Yt.input,et),variant:Me()({[`${Xe}-${rn}`]:_n},(0,fe.Z)(Xe,St)),affixWrapper:Me()({[`${Xe}-affix-wrapper-sm`]:ot==="small",[`${Xe}-affix-wrapper-lg`]:ot==="large",[`${Xe}-affix-wrapper-rtl`]:pt==="rtl"},et),wrapper:Me()({[`${Xe}-group-rtl`]:pt==="rtl"},et),groupWrapper:Me()({[`${Xe}-group-wrapper-sm`]:ot==="small",[`${Xe}-group-wrapper-lg`]:ot==="large",[`${Xe}-group-wrapper-rtl`]:pt==="rtl",[`${Xe}-group-wrapper-${rn}`]:_n},(0,fe.Z)(`${Xe}-group-wrapper`,St,Lt),et)})}))))})},79809:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return re}});var te=Ce(59301),Ye=Ce(92310),Me=Ce.n(Ye),pe=Ce(22711),Oe=Ce(86013),ve=Ce(82855),ue=Ce(48755),fe=Ce(2171),he=Ce(83397),le=Ce(31756),ae=Ce(56553),ie=Ce(24971),me=Ce(70045),E=Ce(30292),b=Ce(53075),z=Ce(16931),ne=Ce(51636),oe=Ce(64910);const se=ce=>{const{componentCls:ge,paddingLG:_e}=ce,ye=`${ge}-textarea`;return{[`textarea${ge}`]:{maxWidth:"100%",height:"auto",minHeight:ce.controlHeight,lineHeight:ce.lineHeight,verticalAlign:"bottom",transition:`all ${ce.motionDurationSlow}`,resize:"vertical",[`&${ge}-mouse-active`]:{transition:`all ${ce.motionDurationSlow}, height 0s, width 0s`}},[`${ge}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[ye]:{position:"relative","&-show-count":{[`> ${ge}`]:{height:"100%"},[`${ge}-data-count`]:{position:"absolute",bottom:ce.calc(ce.fontSize).mul(ce.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:ce.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
|
&-allow-clear > ${ge},
|
|
|
&-affix-wrapper${ye}-has-feedback ${ge}
|
|
|
`]:{paddingInlineEnd:_e},[`&-affix-wrapper${ge}-affix-wrapper`]:{padding:0,[`> textarea${ge}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:ce.calc(ce.controlHeight).sub(ce.calc(ce.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${ge}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${ge}-clear-icon`]:{position:"absolute",insetInlineEnd:ce.paddingInline,insetBlockStart:ce.paddingXS},[`${ye}-suffix`]:{position:"absolute",top:0,insetInlineEnd:ce.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${ge}-affix-wrapper-sm`]:{[`${ge}-suffix`]:{[`${ge}-clear-icon`]:{insetInlineEnd:ce.paddingInlineSM}}}}}};var de=(0,z.I$)(["Input","TextArea"],ce=>{const ge=(0,ne.mergeToken)(ce,(0,oe.e)(ce));return[se(ge)]},oe.T,{resetFont:!1}),a=function(ce,ge){var _e={};for(var ye in ce)Object.prototype.hasOwnProperty.call(ce,ye)&&ge.indexOf(ye)<0&&(_e[ye]=ce[ye]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,ye=Object.getOwnPropertySymbols(ce);be<ye.length;be++)ge.indexOf(ye[be])<0&&Object.prototype.propertyIsEnumerable.call(ce,ye[be])&&(_e[ye[be]]=ce[ye[be]]);return _e},re=(0,te.forwardRef)((ce,ge)=>{var _e;const{prefixCls:ye,bordered:be=!0,size:Se,disabled:Be,status:Ae,allowClear:we,classNames:Ue,rootClassName:Pe,className:ze,style:Ke,styles:Ne,variant:Re,showCount:$e,onMouseDown:nt,onResize:ut}=ce,Qe=a(ce,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:rt,direction:pt,allowClear:At,autoComplete:gt,className:Ft,style:Ct,classNames:Yt,styles:zt}=(0,ue.dj)("textArea"),Xe=te.useContext(fe.Z),Fe=Be!=null?Be:Xe,{status:Le,hasFeedback:Ze,feedbackIcon:et}=te.useContext(ae.aM),He=(0,ve.F)(Le,Ae),We=te.useRef(null);te.useImperativeHandle(ge,()=>{var _n;return{resizableTextArea:(_n=We.current)===null||_n===void 0?void 0:_n.resizableTextArea,focus:Bn=>{var kt,ln;(0,E.nH)((ln=(kt=We.current)===null||kt===void 0?void 0:kt.resizableTextArea)===null||ln===void 0?void 0:ln.textArea,Bn)},blur:()=>{var Bn;return(Bn=We.current)===null||Bn===void 0?void 0:Bn.blur()}}});const tt=rt("input",ye),at=(0,he.Z)(tt),[ot,ct,lt]=(0,b.TI)(tt,Pe),[mt]=de(tt,at),{compactSize:Lt,compactItemClassnames:ft}=(0,me.ri)(tt,pt),St=(0,le.Z)(_n=>{var Bn;return(Bn=Se!=null?Se:Lt)!==null&&Bn!==void 0?Bn:_n}),[nn,on]=(0,ie.Z)("textArea",Re,be),yn=(0,Oe.Z)(we!=null?we:At),[xn,an]=te.useState(!1),[An,Jt]=te.useState(!1),Ut=_n=>{an(!0),nt==null||nt(_n);const Bn=()=>{an(!1),document.removeEventListener("mouseup",Bn)};document.addEventListener("mouseup",Bn)},rn=_n=>{var Bn,kt;if(ut==null||ut(_n),xn&&typeof getComputedStyle=="function"){const ln=(kt=(Bn=We.current)===null||Bn===void 0?void 0:Bn.nativeElement)===null||kt===void 0?void 0:kt.querySelector("textarea");ln&&getComputedStyle(ln).resize==="both"&&Jt(!0)}};return ot(mt(te.createElement(pe.default,Object.assign({autoComplete:gt},Qe,{style:Object.assign(Object.assign({},Ct),Ke),styles:Object.assign(Object.assign({},zt),Ne),disabled:Fe,allowClear:yn,className:Me()(lt,at,ze,Pe,ft,Ft,An&&`${tt}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Ue),Yt),{textarea:Me()({[`${tt}-sm`]:St==="small",[`${tt}-lg`]:St==="large"},ct,Ue==null?void 0:Ue.textarea,Yt.textarea,xn&&`${tt}-mouse-active`),variant:Me()({[`${tt}-${nn}`]:on},(0,ve.Z)(tt,He)),affixWrapper:Me()(`${tt}-textarea-affix-wrapper`,{[`${tt}-affix-wrapper-rtl`]:pt==="rtl",[`${tt}-affix-wrapper-sm`]:St==="small",[`${tt}-affix-wrapper-lg`]:St==="large",[`${tt}-textarea-show-count`]:$e||((_e=ce.count)===null||_e===void 0?void 0:_e.show)},ct)}),prefixCls:tt,suffix:Ze&&te.createElement("span",{className:`${tt}-textarea-suffix`},et),showCount:$e,ref:We,onResize:rn,onMouseDown:Ut}))))})},23826:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return Ye}});var te=Ce(59301);function Ye(Me,pe){const Oe=(0,te.useRef)([]),ve=()=>{Oe.current.push(setTimeout(()=>{var ue,fe,he,le;!((ue=Me.current)===null||ue===void 0)&&ue.input&&((fe=Me.current)===null||fe===void 0?void 0:fe.input.getAttribute("type"))==="password"&&(!((he=Me.current)===null||he===void 0)&&he.input.hasAttribute("value"))&&((le=Me.current)===null||le===void 0||le.input.removeAttribute("value"))}))};return(0,te.useEffect)(()=>(pe&&ve(),()=>Oe.current.forEach(ue=>{ue&&clearTimeout(ue)})),[]),ve}},37568:function(Yn,en,Ce){"use strict";Ce.d(en,{default:function(){return Yt}});var te=Ce(59301),Ye=Ce(92310),Me=Ce.n(Ye),pe=Ce(48755),Oe=Ce(56553),ve=Ce(53075),fe=zt=>{const{getPrefixCls:Xe,direction:Fe}=(0,te.useContext)(pe.E_),{prefixCls:Le,className:Ze}=zt,et=Xe("input-group",Le),He=Xe("input"),[We,tt,at]=(0,ve.ZP)(He),ot=Me()(et,at,{[`${et}-lg`]:zt.size==="large",[`${et}-sm`]:zt.size==="small",[`${et}-compact`]:zt.compact,[`${et}-rtl`]:Fe==="rtl"},tt,Ze),ct=(0,te.useContext)(Oe.aM),lt=(0,te.useMemo)(()=>Object.assign(Object.assign({},ct),{isFormItemInput:!1}),[ct]);return We(te.createElement("span",{className:ot,style:zt.style,onMouseEnter:zt.onMouseEnter,onMouseLeave:zt.onMouseLeave,onFocus:zt.onFocus,onBlur:zt.onBlur},te.createElement(Oe.aM.Provider,{value:lt},zt.children)))},he=Ce(49397),le=Ce(77654),ae=Ce(6089),ie=Ce(26112),me=Ce(82855),E=Ce(31756),b=Ce(16931),z=Ce(51636),ne=Ce(64910);const oe=zt=>{const{componentCls:Xe,paddingXS:Fe}=zt;return{[Xe]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:Fe,"&-rtl":{direction:"rtl"},[`${Xe}-input`]:{textAlign:"center",paddingInline:zt.paddingXXS},[`&${Xe}-sm ${Xe}-input`]:{paddingInline:zt.calc(zt.paddingXXS).div(2).equal()},[`&${Xe}-lg ${Xe}-input`]:{paddingInline:zt.paddingXS}}}};var se=(0,b.I$)(["Input","OTP"],zt=>{const Xe=(0,z.mergeToken)(zt,(0,ne.e)(zt));return[oe(Xe)]},ne.T),de=Ce(16089),a=function(zt,Xe){var Fe={};for(var Le in zt)Object.prototype.hasOwnProperty.call(zt,Le)&&Xe.indexOf(Le)<0&&(Fe[Le]=zt[Le]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Le=Object.getOwnPropertySymbols(zt);Ze<Le.length;Ze++)Xe.indexOf(Le[Ze])<0&&Object.prototype.propertyIsEnumerable.call(zt,Le[Ze])&&(Fe[Le[Ze]]=zt[Le[Ze]]);return Fe},re=te.forwardRef((zt,Xe)=>{const{value:Fe,onChange:Le,onActiveChange:Ze,index:et,mask:He}=zt,We=a(zt,["value","onChange","onActiveChange","index","mask"]),tt=Fe&&typeof He=="string"?He:Fe,at=Lt=>{Le(et,Lt.target.value)},ot=te.useRef(null);te.useImperativeHandle(Xe,()=>ot.current);const ct=()=>{(0,de.Z)(()=>{var Lt;const ft=(Lt=ot.current)===null||Lt===void 0?void 0:Lt.input;document.activeElement===ft&&ft&&ft.select()})},lt=Lt=>{const{key:ft,ctrlKey:St,metaKey:nn}=Lt;ft==="ArrowLeft"?Ze(et-1):ft==="ArrowRight"?Ze(et+1):ft==="z"&&(St||nn)&&Lt.preventDefault(),ct()},mt=Lt=>{Lt.key==="Backspace"&&!Fe&&Ze(et-1),ct()};return te.createElement(he.Z,Object.assign({type:He===!0?"password":"text"},We,{ref:ot,value:tt,onInput:at,onFocus:ct,onKeyDown:lt,onKeyUp:mt,onMouseDown:ct,onMouseUp:ct}))}),ce=function(zt,Xe){var Fe={};for(var Le in zt)Object.prototype.hasOwnProperty.call(zt,Le)&&Xe.indexOf(Le)<0&&(Fe[Le]=zt[Le]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Le=Object.getOwnPropertySymbols(zt);Ze<Le.length;Ze++)Xe.indexOf(Le[Ze])<0&&Object.prototype.propertyIsEnumerable.call(zt,Le[Ze])&&(Fe[Le[Ze]]=zt[Le[Ze]]);return Fe};function ge(zt){return(zt||"").split("")}const _e=zt=>{const{index:Xe,prefixCls:Fe,separator:Le}=zt,Ze=typeof Le=="function"?Le(Xe):Le;return Ze?te.createElement("span",{className:`${Fe}-separator`},Ze):null};var be=te.forwardRef((zt,Xe)=>{const{prefixCls:Fe,length:Le=6,size:Ze,defaultValue:et,value:He,onChange:We,formatter:tt,separator:at,variant:ot,disabled:ct,status:lt,autoFocus:mt,mask:Lt,type:ft,onInput:St,inputMode:nn}=zt,on=ce(zt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:yn,direction:xn}=te.useContext(pe.E_),an=yn("otp",Fe),An=(0,ie.Z)(on,{aria:!0,data:!0,attr:!0}),[Jt,Ut,rn]=se(an),_n=(0,E.Z)(Wn=>Ze!=null?Ze:Wn),Bn=te.useContext(Oe.aM),kt=(0,me.F)(Bn.status,lt),ln=te.useMemo(()=>Object.assign(Object.assign({},Bn),{status:kt,hasFeedback:!1,feedbackIcon:null}),[Bn,kt]),Cn=te.useRef(null),Mn=te.useRef({});te.useImperativeHandle(Xe,()=>({focus:()=>{var Wn;(Wn=Mn.current[0])===null||Wn===void 0||Wn.focus()},blur:()=>{var Wn;for(let Kn=0;Kn<Le;Kn+=1)(Wn=Mn.current[Kn])===null||Wn===void 0||Wn.blur()},nativeElement:Cn.current}));const Qn=Wn=>tt?tt(Wn):Wn,[mr,lr]=te.useState(()=>ge(Qn(et||"")));te.useEffect(()=>{He!==void 0&&lr(ge(He))},[He]);const Cr=(0,ae.Z)(Wn=>{lr(Wn),St&&St(Wn),We&&Wn.length===Le&&Wn.every(Kn=>Kn)&&Wn.some((Kn,Ln)=>mr[Ln]!==Kn)&&We(Wn.join(""))}),nr=(0,ae.Z)((Wn,Kn)=>{let Ln=(0,le.Z)(mr);for(let ar=0;ar<Wn;ar+=1)Ln[ar]||(Ln[ar]="");Kn.length<=1?Ln[Wn]=Kn:Ln=Ln.slice(0,Wn).concat(ge(Kn)),Ln=Ln.slice(0,Le);for(let ar=Ln.length-1;ar>=0&&!Ln[ar];ar-=1)Ln.pop();const $n=Qn(Ln.map(ar=>ar||" ").join(""));return Ln=ge($n).map((ar,dn)=>ar===" "&&!Ln[dn]?Ln[dn]:ar),Ln}),ur=(Wn,Kn)=>{var Ln;const $n=nr(Wn,Kn),ar=Math.min(Wn+Kn.length,Le-1);ar!==Wn&&$n[Wn]!==void 0&&((Ln=Mn.current[ar])===null||Ln===void 0||Ln.focus()),Cr($n)},Nn=Wn=>{var Kn;(Kn=Mn.current[Wn])===null||Kn===void 0||Kn.focus()},In={variant:ot,disabled:ct,status:kt,mask:Lt,type:ft,inputMode:nn};return Jt(te.createElement("div",Object.assign({},An,{ref:Cn,className:Me()(an,{[`${an}-sm`]:_n==="small",[`${an}-lg`]:_n==="large",[`${an}-rtl`]:xn==="rtl"},rn,Ut)}),te.createElement(Oe.aM.Provider,{value:ln},Array.from({length:Le}).map((Wn,Kn)=>{const Ln=`otp-${Kn}`,$n=mr[Kn]||"";return te.createElement(te.Fragment,{key:Ln},te.createElement(re,Object.assign({ref:ar=>{Mn.current[Kn]=ar},index:Kn,size:_n,htmlSize:1,className:`${an}-input`,onChange:ur,value:$n,onActiveChange:Nn,autoFocus:Kn===0&&mt},In)),Kn<Le-1&&te.createElement(_e,{separator:at,index:Kn,prefixCls:an}))}))))}),Se=Ce(73331),Be=Ce(15277),Ae=Ce(2738),we=Ce(8654),Ue=Ce(2171),Pe=Ce(23826),ze=function(zt,Xe){var Fe={};for(var Le in zt)Object.prototype.hasOwnProperty.call(zt,Le)&&Xe.indexOf(Le)<0&&(Fe[Le]=zt[Le]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Le=Object.getOwnPropertySymbols(zt);Ze<Le.length;Ze++)Xe.indexOf(Le[Ze])<0&&Object.prototype.propertyIsEnumerable.call(zt,Le[Ze])&&(Fe[Le[Ze]]=zt[Le[Ze]]);return Fe};const Ke=zt=>zt?te.createElement(Be.Z,null):te.createElement(Se.Z,null),Ne={click:"onClick",hover:"onMouseOver"};var $e=te.forwardRef((zt,Xe)=>{const{disabled:Fe,action:Le="click",visibilityToggle:Ze=!0,iconRender:et=Ke}=zt,He=te.useContext(Ue.Z),We=Fe!=null?Fe:He,tt=typeof Ze=="object"&&Ze.visible!==void 0,[at,ot]=(0,te.useState)(()=>tt?Ze.visible:!1),ct=(0,te.useRef)(null);te.useEffect(()=>{tt&&ot(Ze.visible)},[tt,Ze]);const lt=(0,Pe.Z)(ct),mt=()=>{var _n;if(We)return;at&<();const Bn=!at;ot(Bn),typeof Ze=="object"&&((_n=Ze.onVisibleChange)===null||_n===void 0||_n.call(Ze,Bn))},Lt=_n=>{const Bn=Ne[Le]||"",kt=et(at),ln={[Bn]:mt,className:`${_n}-icon`,key:"passwordIcon",onMouseDown:Cn=>{Cn.preventDefault()},onMouseUp:Cn=>{Cn.preventDefault()}};return te.cloneElement(te.isValidElement(kt)?kt:te.createElement("span",null,kt),ln)},{className:ft,prefixCls:St,inputPrefixCls:nn,size:on}=zt,yn=ze(zt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:xn}=te.useContext(pe.E_),an=xn("input",nn),An=xn("input-password",St),Jt=Ze&&Lt(An),Ut=Me()(An,ft,{[`${An}-${on}`]:!!on}),rn=Object.assign(Object.assign({},(0,Ae.Z)(yn,["suffix","iconRender","visibilityToggle"])),{type:at?"text":"password",className:Ut,prefixCls:an,suffix:Jt});return on&&(rn.size=on),te.createElement(he.Z,Object.assign({ref:(0,we.sQ)(Xe,ct)},rn))}),nt=Ce(47472),ut=Ce(22703),Qe=Ce(7939),rt=Ce(70045),pt=function(zt,Xe){var Fe={};for(var Le in zt)Object.prototype.hasOwnProperty.call(zt,Le)&&Xe.indexOf(Le)<0&&(Fe[Le]=zt[Le]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Le=Object.getOwnPropertySymbols(zt);Ze<Le.length;Ze++)Xe.indexOf(Le[Ze])<0&&Object.prototype.propertyIsEnumerable.call(zt,Le[Ze])&&(Fe[Le[Ze]]=zt[Le[Ze]]);return Fe},gt=te.forwardRef((zt,Xe)=>{const{prefixCls:Fe,inputPrefixCls:Le,className:Ze,size:et,suffix:He,enterButton:We=!1,addonAfter:tt,loading:at,disabled:ot,onSearch:ct,onChange:lt,onCompositionStart:mt,onCompositionEnd:Lt}=zt,ft=pt(zt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:St,direction:nn}=te.useContext(pe.E_),on=te.useRef(!1),yn=St("input-search",Fe),xn=St("input",Le),{compactSize:an}=(0,rt.ri)(yn,nn),An=(0,E.Z)(ur=>{var Nn;return(Nn=et!=null?et:an)!==null&&Nn!==void 0?Nn:ur}),Jt=te.useRef(null),Ut=ur=>{ur!=null&&ur.target&&ur.type==="click"&&ct&&ct(ur.target.value,ur,{source:"clear"}),lt==null||lt(ur)},rn=ur=>{var Nn;document.activeElement===((Nn=Jt.current)===null||Nn===void 0?void 0:Nn.input)&&ur.preventDefault()},_n=ur=>{var Nn,In;ct&&ct((In=(Nn=Jt.current)===null||Nn===void 0?void 0:Nn.input)===null||In===void 0?void 0:In.value,ur,{source:"input"})},Bn=ur=>{on.current||at||_n(ur)},kt=typeof We=="boolean"?te.createElement(nt.Z,null):null,ln=`${yn}-button`;let Cn;const Mn=We||{},Qn=Mn.type&&Mn.type.__ANT_BUTTON===!0;Qn||Mn.type==="button"?Cn=(0,ut.Tm)(Mn,Object.assign({onMouseDown:rn,onClick:ur=>{var Nn,In;(In=(Nn=Mn==null?void 0:Mn.props)===null||Nn===void 0?void 0:Nn.onClick)===null||In===void 0||In.call(Nn,ur),_n(ur)},key:"enterButton"},Qn?{className:ln,size:An}:{})):Cn=te.createElement(Qe.ZP,{className:ln,type:We?"primary":void 0,size:An,disabled:ot,key:"enterButton",onMouseDown:rn,onClick:_n,loading:at,icon:kt},We),tt&&(Cn=[Cn,(0,ut.Tm)(tt,{key:"addonAfter"})]);const mr=Me()(yn,{[`${yn}-rtl`]:nn==="rtl",[`${yn}-${An}`]:!!An,[`${yn}-with-button`]:!!We},Ze),lr=Object.assign(Object.assign({},ft),{className:mr,prefixCls:xn,type:"search"}),Cr=ur=>{on.current=!0,mt==null||mt(ur)},nr=ur=>{on.current=!1,Lt==null||Lt(ur)};return te.createElement(he.Z,Object.assign({ref:(0,we.sQ)(Jt,Xe),onPressEnter:Bn},lr,{size:An,onCompositionStart:Cr,onCompositionEnd:nr,addonAfter:Cn,suffix:He,onChange:Ut,disabled:ot}))}),Ft=Ce(79809);const Ct=he.Z;Ct.Group=fe,Ct.Search=gt,Ct.TextArea=Ft.Z,Ct.Password=$e,Ct.OTP=be;var Yt=Ct},24303:function(Yn,en,Ce){"use strict";Ce.d(en,{D:function(){return ce},Z:function(){return ye}});var te=Ce(59301),Ye=Ce(60499),Me={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"},pe=Me,Oe=Ce(7657),ve=function(Se,Be){return te.createElement(Oe.Z,(0,Ye.Z)({},Se,{ref:Be,icon:pe}))},ue=te.forwardRef(ve),fe=ue,he=Ce(33853),le=Ce(38819),ae=Ce(92310),ie=Ce.n(ae),me=Ce(2738),E=Ce(48755),b=Ce(6989),z=Ce(36237),ne=Ce(48923),oe=Ce(16931);const se=be=>{const{componentCls:Se,siderBg:Be,motionDurationMid:Ae,motionDurationSlow:we,antCls:Ue,triggerHeight:Pe,triggerColor:ze,triggerBg:Ke,headerHeight:Ne,zeroTriggerWidth:Re,zeroTriggerHeight:$e,borderRadiusLG:nt,lightSiderBg:ut,lightTriggerColor:Qe,lightTriggerBg:rt,bodyBg:pt}=be;return{[Se]:{position:"relative",minWidth:0,background:Be,transition:`all ${Ae}, background 0s`,"&-has-trigger":{paddingBottom:Pe},"&-right":{order:1},[`${Se}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${Ue}-menu${Ue}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Se}-children`]:{overflow:"hidden"},[`${Se}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:Pe,color:ze,lineHeight:(0,z.unit)(Pe),textAlign:"center",background:Ke,cursor:"pointer",transition:`all ${Ae}`},[`${Se}-zero-width-trigger`]:{position:"absolute",top:Ne,insetInlineEnd:be.calc(Re).mul(-1).equal(),zIndex:1,width:Re,height:$e,color:ze,fontSize:be.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Be,borderRadius:`0 ${(0,z.unit)(nt)} ${(0,z.unit)(nt)} 0`,cursor:"pointer",transition:`background ${we} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${we}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:be.calc(Re).mul(-1).equal(),borderRadius:`${(0,z.unit)(nt)} 0 0 ${(0,z.unit)(nt)}`}},"&-light":{background:ut,[`${Se}-trigger`]:{color:Qe,background:rt},[`${Se}-zero-width-trigger`]:{color:Qe,background:rt,border:`1px solid ${pt}`,borderInlineStart:0}}}}};var de=(0,oe.I$)(["Layout","Sider"],be=>[se(be)],ne.eh,{deprecatedTokens:ne.jn}),a=function(be,Se){var Be={};for(var Ae in be)Object.prototype.hasOwnProperty.call(be,Ae)&&Se.indexOf(Ae)<0&&(Be[Ae]=be[Ae]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,Ae=Object.getOwnPropertySymbols(be);we<Ae.length;we++)Se.indexOf(Ae[we])<0&&Object.prototype.propertyIsEnumerable.call(be,Ae[we])&&(Be[Ae[we]]=be[Ae[we]]);return Be};const x={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},re=be=>!Number.isNaN(Number.parseFloat(be))&&isFinite(be),ce=te.createContext({}),ge=(()=>{let be=0;return function(){let Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return be+=1,`${Se}${be}`}})();var ye=te.forwardRef((be,Se)=>{const{prefixCls:Be,className:Ae,trigger:we,children:Ue,defaultCollapsed:Pe=!1,theme:ze="dark",style:Ke={},collapsible:Ne=!1,reverseArrow:Re=!1,width:$e=200,collapsedWidth:nt=80,zeroWidthTriggerStyle:ut,breakpoint:Qe,onCollapse:rt,onBreakpoint:pt}=be,At=a(be,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:gt}=(0,te.useContext)(b.V),[Ft,Ct]=(0,te.useState)("collapsed"in be?be.collapsed:Pe),[Yt,zt]=(0,te.useState)(!1);(0,te.useEffect)(()=>{"collapsed"in be&&Ct(be.collapsed)},[be.collapsed]);const Xe=(An,Jt)=>{"collapsed"in be||Ct(An),rt==null||rt(An,Jt)},{getPrefixCls:Fe,direction:Le}=(0,te.useContext)(E.E_),Ze=Fe("layout-sider",Be),[et,He,We]=de(Ze),tt=(0,te.useRef)(null);tt.current=An=>{zt(An.matches),pt==null||pt(An.matches),Ft!==An.matches&&Xe(An.matches,"responsive")},(0,te.useEffect)(()=>{function An(Ut){return tt.current(Ut)}let Jt;if(typeof window!="undefined"){const{matchMedia:Ut}=window;if(Ut&&Qe&&Qe in x){Jt=Ut(`screen and (max-width: ${x[Qe]})`);try{Jt.addEventListener("change",An)}catch(rn){Jt.addListener(An)}An(Jt)}}return()=>{try{Jt==null||Jt.removeEventListener("change",An)}catch(Ut){Jt==null||Jt.removeListener(An)}}},[Qe]),(0,te.useEffect)(()=>{const An=ge("ant-sider-");return gt.addSider(An),()=>gt.removeSider(An)},[]);const at=()=>{Xe(!Ft,"clickTrigger")},ot=(0,me.Z)(At,["collapsed"]),ct=Ft?nt:$e,lt=re(ct)?`${ct}px`:String(ct),mt=parseFloat(String(nt||0))===0?te.createElement("span",{onClick:at,className:ie()(`${Ze}-zero-width-trigger`,`${Ze}-zero-width-trigger-${Re?"right":"left"}`),style:ut},we||te.createElement(fe,null)):null,Lt=Le==="rtl"==!Re,nn={expanded:Lt?te.createElement(le.Z,null):te.createElement(he.Z,null),collapsed:Lt?te.createElement(he.Z,null):te.createElement(le.Z,null)}[Ft?"collapsed":"expanded"],on=we!==null?mt||te.createElement("div",{className:`${Ze}-trigger`,onClick:at,style:{width:lt}},we||nn):null,yn=Object.assign(Object.assign({},Ke),{flex:`0 0 ${lt}`,maxWidth:lt,minWidth:lt,width:lt}),xn=ie()(Ze,`${Ze}-${ze}`,{[`${Ze}-collapsed`]:!!Ft,[`${Ze}-has-trigger`]:Ne&&we!==null&&!mt,[`${Ze}-below`]:!!Yt,[`${Ze}-zero-width`]:parseFloat(lt)===0},Ae,He,We),an=te.useMemo(()=>({siderCollapsed:Ft}),[Ft]);return et(te.createElement(ce.Provider,{value:an},te.createElement("aside",Object.assign({className:xn},ot,{style:yn,ref:Se}),te.createElement("div",{className:`${Ze}-children`},Ue),Ne||Yt&&mt?on:null)))})},6989:function(Yn,en,Ce){"use strict";Ce.d(en,{V:function(){return Ye}});var te=Ce(59301);const Ye=te.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(Yn,en,Ce){"use strict";Ce.d(en,{eh:function(){return pe},jn:function(){return Oe}});var te=Ce(36237),Ye=Ce(16931);const Me=ve=>{const{antCls:ue,componentCls:fe,colorText:he,footerBg:le,headerHeight:ae,headerPadding:ie,headerColor:me,footerPadding:E,fontSize:b,bodyBg:z,headerBg:ne}=ve;return{[fe]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:z,"&, *":{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:ae,padding:ie,color:me,lineHeight:(0,te.unit)(ae),background:ne,[`${ue}-menu`]:{lineHeight:"inherit"}},[`${fe}-footer`]:{padding:E,color:he,fontSize:b,background:le},[`${fe}-content`]:{flex:"auto",color:he,minHeight:0}}},pe=ve=>{const{colorBgLayout:ue,controlHeight:fe,controlHeightLG:he,colorText:le,controlHeightSM:ae,marginXXS:ie,colorTextLightSolid:me,colorBgContainer:E}=ve,b=he*1.25;return{colorBgHeader:"#001529",colorBgBody:ue,colorBgTrigger:"#002140",bodyBg:ue,headerBg:"#001529",headerHeight:fe*2,headerPadding:`0 ${b}px`,headerColor:le,footerPadding:`${ae}px ${b}px`,footerBg:ue,siderBg:"#001529",triggerHeight:he+ie*2,triggerBg:"#002140",triggerColor:me,zeroTriggerWidth:he,zeroTriggerHeight:he,lightSiderBg:E,lightTriggerBg:E,lightTriggerColor:le}},Oe=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];en.ZP=(0,Ye.I$)("Layout",ve=>[Me(ve)],pe,{deprecatedTokens:Oe})},78857:function(Yn,en,Ce){"use strict";Ce.d(en,{J:function(){return ve}});var te=Ce(59301),Ye=Ce(8654),Me=Ce(62487),pe=function(ue,fe){var he={};for(var le in ue)Object.prototype.hasOwnProperty.call(ue,le)&&fe.indexOf(le)<0&&(he[le]=ue[le]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,le=Object.getOwnPropertySymbols(ue);ae<le.length;ae++)fe.indexOf(le[ae])<0&&Object.prototype.propertyIsEnumerable.call(ue,le[ae])&&(he[le[ae]]=ue[le[ae]]);return he};const Oe=te.createContext(null),ve=te.forwardRef((ue,fe)=>{const{children:he}=ue,le=pe(ue,["children"]),ae=te.useContext(Oe),ie=te.useMemo(()=>Object.assign(Object.assign({},ae),le),[ae,le.prefixCls,le.mode,le.selectable,le.rootClassName]),me=(0,Ye.t4)(he),E=(0,Ye.x1)(fe,me?(0,Ye.C4)(he):null);return te.createElement(Oe.Provider,{value:ie},te.createElement(Me.Z,{space:!0},me?te.cloneElement(he,{ref:E}):he))});en.Z=Oe},93041:function(Yn,en,Ce){"use strict";Ce.d(en,{default:function(){return et}});var te=Ce(59301),Ye=Ce(28321),Me=Ce(24303),pe=Ce(18785),Oe=Ce(92310),ve=Ce.n(Oe),ue=Ce(6089),fe=Ce(2738),he=Ce(86641),le=Ce(22703),ae=Ce(48755),ie=Ce(83397),E=(0,te.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),b=function(He,We){var tt={};for(var at in He)Object.prototype.hasOwnProperty.call(He,at)&&We.indexOf(at)<0&&(tt[at]=He[at]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,at=Object.getOwnPropertySymbols(He);ot<at.length;ot++)We.indexOf(at[ot])<0&&Object.prototype.propertyIsEnumerable.call(He,at[ot])&&(tt[at[ot]]=He[at[ot]]);return tt},ne=He=>{const{prefixCls:We,className:tt,dashed:at}=He,ot=b(He,["prefixCls","className","dashed"]),{getPrefixCls:ct}=te.useContext(ae.E_),lt=ct("menu",We),mt=ve()({[`${lt}-item-divider-dashed`]:!!at},tt);return te.createElement(Ye.iz,Object.assign({className:mt},ot))},oe=Ce(11592),se=Ce(25399),a=He=>{var We;const{className:tt,children:at,icon:ot,title:ct,danger:lt,extra:mt}=He,{prefixCls:Lt,firstLevel:ft,direction:St,disableMenuItemTitleTooltip:nn,inlineCollapsed:on}=te.useContext(E),yn=rn=>{const _n=at==null?void 0:at[0],Bn=te.createElement("span",{className:ve()(`${Lt}-title-content`,{[`${Lt}-title-content-with-extra`]:!!mt||mt===0})},at);return(!ot||te.isValidElement(at)&&at.type==="span")&&at&&rn&&ft&&typeof _n=="string"?te.createElement("div",{className:`${Lt}-inline-collapsed-noicon`},_n.charAt(0)):Bn},{siderCollapsed:xn}=te.useContext(Me.D);let an=ct;typeof ct=="undefined"?an=ft?at:"":ct===!1&&(an="");const An={title:an};!xn&&!on&&(An.title=null,An.open=!1);const Jt=(0,oe.Z)(at).length;let Ut=te.createElement(Ye.ck,Object.assign({},(0,fe.Z)(He,["title","icon","danger"]),{className:ve()({[`${Lt}-item-danger`]:lt,[`${Lt}-item-only-child`]:(ot?Jt+1:Jt)===1},tt),title:typeof ct=="string"?ct:void 0}),(0,le.Tm)(ot,{className:ve()(te.isValidElement(ot)?(We=ot.props)===null||We===void 0?void 0:We.className:"",`${Lt}-item-icon`)}),yn(on));return nn||(Ut=te.createElement(se.Z,Object.assign({},An,{placement:St==="rtl"?"left":"right",classNames:{root:`${Lt}-inline-collapsed-tooltip`}}),Ut)),Ut},x=Ce(78857),re=Ce(36237),ce=Ce(17835),ge=Ce(63356),_e=Ce(34961),ye=Ce(46e3),be=Ce(34925),Se=Ce(16931),Be=Ce(51636),we=He=>{const{componentCls:We,motionDurationSlow:tt,horizontalLineHeight:at,colorSplit:ot,lineWidth:ct,lineType:lt,itemPaddingInline:mt}=He;return{[`${We}-horizontal`]:{lineHeight:at,border:0,borderBottom:`${(0,re.unit)(ct)} ${lt} ${ot}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${We}-item, ${We}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:mt},[`> ${We}-item:hover,
|
|
|
> ${We}-item-active,
|
|
|
> ${We}-submenu ${We}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${We}-item, ${We}-submenu-title`]:{transition:[`border-color ${tt}`,`background ${tt}`].join(",")},[`${We}-submenu-arrow`]:{display:"none"}}}},Pe=He=>{let{componentCls:We,menuArrowOffset:tt,calc:at}=He;return{[`${We}-rtl`]:{direction:"rtl"},[`${We}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${We}-rtl${We}-vertical,
|
|
|
${We}-submenu-rtl ${We}-vertical`]:{[`${We}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,re.unit)(at(tt).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,re.unit)(tt)})`}}}}};const ze=He=>Object.assign({},(0,ge.oN)(He));var Ne=(He,We)=>{const{componentCls:tt,itemColor:at,itemSelectedColor:ot,subMenuItemSelectedColor:ct,groupTitleColor:lt,itemBg:mt,subMenuItemBg:Lt,itemSelectedBg:ft,activeBarHeight:St,activeBarWidth:nn,activeBarBorderWidth:on,motionDurationSlow:yn,motionEaseInOut:xn,motionEaseOut:an,itemPaddingInline:An,motionDurationMid:Jt,itemHoverColor:Ut,lineType:rn,colorSplit:_n,itemDisabledColor:Bn,dangerItemColor:kt,dangerItemHoverColor:ln,dangerItemSelectedColor:Cn,dangerItemActiveBg:Mn,dangerItemSelectedBg:Qn,popupBg:mr,itemHoverBg:lr,itemActiveBg:Cr,menuSubMenuBg:nr,horizontalItemSelectedColor:ur,horizontalItemSelectedBg:Nn,horizontalItemBorderRadius:In,horizontalItemHoverBg:Wn}=He;return{[`${tt}-${We}, ${tt}-${We} > ${tt}`]:{color:at,background:mt,[`&${tt}-root:focus-visible`]:Object.assign({},ze(He)),[`${tt}-item`]:{"&-group-title, &-extra":{color:lt}},[`${tt}-submenu-selected > ${tt}-submenu-title`]:{color:ct},[`${tt}-item, ${tt}-submenu-title`]:{color:at,[`&:not(${tt}-item-disabled):focus-visible`]:Object.assign({},ze(He))},[`${tt}-item-disabled, ${tt}-submenu-disabled`]:{color:`${Bn} !important`},[`${tt}-item:not(${tt}-item-selected):not(${tt}-submenu-selected)`]:{[`&:hover, > ${tt}-submenu-title:hover`]:{color:Ut}},[`&:not(${tt}-horizontal)`]:{[`${tt}-item:not(${tt}-item-selected)`]:{"&:hover":{backgroundColor:lr},"&:active":{backgroundColor:Cr}},[`${tt}-submenu-title`]:{"&:hover":{backgroundColor:lr},"&:active":{backgroundColor:Cr}}},[`${tt}-item-danger`]:{color:kt,[`&${tt}-item:hover`]:{[`&:not(${tt}-item-selected):not(${tt}-submenu-selected)`]:{color:ln}},[`&${tt}-item:active`]:{background:Mn}},[`${tt}-item a`]:{"&, &:hover":{color:"inherit"}},[`${tt}-item-selected`]:{color:ot,[`&${tt}-item-danger`]:{color:Cn},"a, a:hover":{color:"inherit"}},[`& ${tt}-item-selected`]:{backgroundColor:ft,[`&${tt}-item-danger`]:{backgroundColor:Qn}},[`&${tt}-submenu > ${tt}`]:{backgroundColor:nr},[`&${tt}-popup > ${tt}`]:{backgroundColor:mr},[`&${tt}-submenu-popup > ${tt}`]:{backgroundColor:mr},[`&${tt}-horizontal`]:Object.assign(Object.assign({},We==="dark"?{borderBottom:0}:{}),{[`> ${tt}-item, > ${tt}-submenu`]:{top:on,marginTop:He.calc(on).mul(-1).equal(),marginBottom:0,borderRadius:In,"&::after":{position:"absolute",insetInline:An,bottom:0,borderBottom:`${(0,re.unit)(St)} solid transparent`,transition:`border-color ${yn} ${xn}`,content:'""'},"&:hover, &-active, &-open":{background:Wn,"&::after":{borderBottomWidth:St,borderBottomColor:ur}},"&-selected":{color:ur,backgroundColor:Nn,"&:hover":{backgroundColor:Nn},"&::after":{borderBottomWidth:St,borderBottomColor:ur}}}}),[`&${tt}-root`]:{[`&${tt}-inline, &${tt}-vertical`]:{borderInlineEnd:`${(0,re.unit)(on)} ${rn} ${_n}`}},[`&${tt}-inline`]:{[`${tt}-sub${tt}-inline`]:{background:Lt},[`${tt}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,re.unit)(nn)} solid ${ot}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Jt} ${an}`,`opacity ${Jt} ${an}`].join(","),content:'""'},[`&${tt}-item-danger`]:{"&::after":{borderInlineEndColor:Cn}}},[`${tt}-selected, ${tt}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Jt} ${xn}`,`opacity ${Jt} ${xn}`].join(",")}}}}}};const Re=He=>{const{componentCls:We,itemHeight:tt,itemMarginInline:at,padding:ot,menuArrowSize:ct,marginXS:lt,itemMarginBlock:mt,itemWidth:Lt,itemPaddingInline:ft}=He,St=He.calc(ct).add(ot).add(lt).equal();return{[`${We}-item`]:{position:"relative",overflow:"hidden"},[`${We}-item, ${We}-submenu-title`]:{height:tt,lineHeight:(0,re.unit)(tt),paddingInline:ft,overflow:"hidden",textOverflow:"ellipsis",marginInline:at,marginBlock:mt,width:Lt},[`> ${We}-item,
|
|
|
> ${We}-submenu > ${We}-submenu-title`]:{height:tt,lineHeight:(0,re.unit)(tt)},[`${We}-item-group-list ${We}-submenu-title,
|
|
|
${We}-submenu-title`]:{paddingInlineEnd:St}}};var nt=He=>{const{componentCls:We,iconCls:tt,itemHeight:at,colorTextLightSolid:ot,dropdownWidth:ct,controlHeightLG:lt,motionEaseOut:mt,paddingXL:Lt,itemMarginInline:ft,fontSizeLG:St,motionDurationFast:nn,motionDurationSlow:on,paddingXS:yn,boxShadowSecondary:xn,collapsedWidth:an,collapsedIconSize:An}=He,Jt={height:at,lineHeight:(0,re.unit)(at),listStylePosition:"inside",listStyleType:"disc"};return[{[We]:{"&-inline, &-vertical":Object.assign({[`&${We}-root`]:{boxShadow:"none"}},Re(He))},[`${We}-submenu-popup`]:{[`${We}-vertical`]:Object.assign(Object.assign({},Re(He)),{boxShadow:xn})}},{[`${We}-submenu-popup ${We}-vertical${We}-sub`]:{minWidth:ct,maxHeight:`calc(100vh - ${(0,re.unit)(He.calc(lt).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${We}-inline`]:{width:"100%",[`&${We}-root`]:{[`${We}-item, ${We}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${on}`,`background ${on}`,`padding ${nn} ${mt}`].join(","),[`> ${We}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${We}-sub${We}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${We}-submenu > ${We}-submenu-title`]:Jt,[`& ${We}-item-group-title`]:{paddingInlineStart:Lt}},[`${We}-item`]:Jt}},{[`${We}-inline-collapsed`]:{width:an,[`&${We}-root`]:{[`${We}-item, ${We}-submenu ${We}-submenu-title`]:{[`> ${We}-inline-collapsed-noicon`]:{fontSize:St,textAlign:"center"}}},[`> ${We}-item,
|
|
|
> ${We}-item-group > ${We}-item-group-list > ${We}-item,
|
|
|
> ${We}-item-group > ${We}-item-group-list > ${We}-submenu > ${We}-submenu-title,
|
|
|
> ${We}-submenu > ${We}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,re.unit)(He.calc(An).div(2).equal())} - ${(0,re.unit)(ft)})`,textOverflow:"clip",[`
|
|
|
${We}-submenu-arrow,
|
|
|
${We}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${We}-item-icon, ${tt}`]:{margin:0,fontSize:An,lineHeight:(0,re.unit)(at),"+ span":{display:"inline-block",opacity:0}}},[`${We}-item-icon, ${tt}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${We}-item-icon, ${tt}`]:{display:"none"},"a, a:hover":{color:ot}},[`${We}-item-group-title`]:Object.assign(Object.assign({},ge.vS),{paddingInline:yn})}}]};const ut=He=>{const{componentCls:We,motionDurationSlow:tt,motionDurationMid:at,motionEaseInOut:ot,motionEaseOut:ct,iconCls:lt,iconSize:mt,iconMarginInlineEnd:Lt}=He;return{[`${We}-item, ${We}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${tt}`,`background ${tt}`,`padding calc(${tt} + 0.1s) ${ot}`].join(","),[`${We}-item-icon, ${lt}`]:{minWidth:mt,fontSize:mt,transition:[`font-size ${at} ${ct}`,`margin ${tt} ${ot}`,`color ${tt}`].join(","),"+ span":{marginInlineStart:Lt,opacity:1,transition:[`opacity ${tt} ${ot}`,`margin ${tt}`,`color ${tt}`].join(",")}},[`${We}-item-icon`]:Object.assign({},(0,ge.Ro)()),[`&${We}-item-only-child`]:{[`> ${lt}, > ${We}-item-icon`]:{marginInlineEnd:0}}},[`${We}-item-disabled, ${We}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${We}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Qe=He=>{const{componentCls:We,motionDurationSlow:tt,motionEaseInOut:at,borderRadius:ot,menuArrowSize:ct,menuArrowOffset:lt}=He;return{[`${We}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:He.margin,width:ct,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${tt} ${at}, opacity ${tt}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:He.calc(ct).mul(.6).equal(),height:He.calc(ct).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:ot,transition:[`background ${tt} ${at}`,`transform ${tt} ${at}`,`top ${tt} ${at}`,`color ${tt} ${at}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,re.unit)(He.calc(lt).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,re.unit)(lt)})`}}}}},rt=He=>{const{antCls:We,componentCls:tt,fontSize:at,motionDurationSlow:ot,motionDurationMid:ct,motionEaseInOut:lt,paddingXS:mt,padding:Lt,colorSplit:ft,lineWidth:St,zIndexPopup:nn,borderRadiusLG:on,subMenuItemBorderRadius:yn,menuArrowSize:xn,menuArrowOffset:an,lineType:An,groupTitleLineHeight:Jt,groupTitleFontSize:Ut}=He;return[{"":{[tt]:Object.assign(Object.assign({},(0,ge.dF)()),{"&-hidden":{display:"none"}})},[`${tt}-submenu-hidden`]:{display:"none"}},{[tt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ge.Wf)(He)),(0,ge.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:at,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${ot} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${tt}-item`]:{flex:"none"}},[`${tt}-item, ${tt}-submenu, ${tt}-submenu-title`]:{borderRadius:He.itemBorderRadius},[`${tt}-item-group-title`]:{padding:`${(0,re.unit)(mt)} ${(0,re.unit)(Lt)}`,fontSize:Ut,lineHeight:Jt,transition:`all ${ot}`},[`&-horizontal ${tt}-submenu`]:{transition:[`border-color ${ot} ${lt}`,`background ${ot} ${lt}`].join(",")},[`${tt}-submenu, ${tt}-submenu-inline`]:{transition:[`border-color ${ot} ${lt}`,`background ${ot} ${lt}`,`padding ${ct} ${lt}`].join(",")},[`${tt}-submenu ${tt}-sub`]:{cursor:"initial",transition:[`background ${ot} ${lt}`,`padding ${ot} ${lt}`].join(",")},[`${tt}-title-content`]:{transition:`color ${ot}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${We}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${tt}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:He.padding}},[`${tt}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${tt}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:ft,borderStyle:An,borderWidth:0,borderTopWidth:St,marginBlock:St,padding:0,"&-dashed":{borderStyle:"dashed"}}}),ut(He)),{[`${tt}-item-group`]:{[`${tt}-item-group-list`]:{margin:0,padding:0,[`${tt}-item, ${tt}-submenu-title`]:{paddingInline:`${(0,re.unit)(He.calc(at).mul(2).equal())} ${(0,re.unit)(Lt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:nn,borderRadius:on,boxShadow:"none",transformOrigin:"0 0",[`&${tt}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${tt}`]:Object.assign(Object.assign(Object.assign({borderRadius:on},ut(He)),Qe(He)),{[`${tt}-item, ${tt}-submenu > ${tt}-submenu-title`]:{borderRadius:yn},[`${tt}-submenu-title::after`]:{transition:`transform ${ot} ${lt}`}})},"\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:He.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:He.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:He.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:He.paddingXS}}}),Qe(He)),{[`&-inline-collapsed ${tt}-submenu-arrow,
|
|
|
&-inline ${tt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,re.unit)(an)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,re.unit)(He.calc(an).mul(-1).equal())})`}},[`${tt}-submenu-open${tt}-submenu-inline > ${tt}-submenu-title > ${tt}-submenu-arrow`]:{transform:`translateY(${(0,re.unit)(He.calc(xn).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,re.unit)(He.calc(an).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,re.unit)(an)})`}}})},{[`${We}-layout-header`]:{[tt]:{lineHeight:"inherit"}}}]},pt=He=>{var We,tt,at;const{colorPrimary:ot,colorError:ct,colorTextDisabled:lt,colorErrorBg:mt,colorText:Lt,colorTextDescription:ft,colorBgContainer:St,colorFillAlter:nn,colorFillContent:on,lineWidth:yn,lineWidthBold:xn,controlItemBgActive:an,colorBgTextHover:An,controlHeightLG:Jt,lineHeight:Ut,colorBgElevated:rn,marginXXS:_n,padding:Bn,fontSize:kt,controlHeightSM:ln,fontSizeLG:Cn,colorTextLightSolid:Mn,colorErrorHover:Qn}=He,mr=(We=He.activeBarWidth)!==null&&We!==void 0?We:0,lr=(tt=He.activeBarBorderWidth)!==null&&tt!==void 0?tt:yn,Cr=(at=He.itemMarginInline)!==null&&at!==void 0?at:He.marginXXS,nr=new ce.FastColor(Mn).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:He.zIndexPopupBase+50,radiusItem:He.borderRadiusLG,itemBorderRadius:He.borderRadiusLG,radiusSubMenuItem:He.borderRadiusSM,subMenuItemBorderRadius:He.borderRadiusSM,colorItemText:Lt,itemColor:Lt,colorItemTextHover:Lt,itemHoverColor:Lt,colorItemTextHoverHorizontal:ot,horizontalItemHoverColor:ot,colorGroupTitle:ft,groupTitleColor:ft,colorItemTextSelected:ot,itemSelectedColor:ot,subMenuItemSelectedColor:ot,colorItemTextSelectedHorizontal:ot,horizontalItemSelectedColor:ot,colorItemBg:St,itemBg:St,colorItemBgHover:An,itemHoverBg:An,colorItemBgActive:on,itemActiveBg:an,colorSubItemBg:nn,subMenuItemBg:nn,colorItemBgSelected:an,itemSelectedBg:an,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:mr,colorActiveBarHeight:xn,activeBarHeight:xn,colorActiveBarBorderSize:yn,activeBarBorderWidth:lr,colorItemTextDisabled:lt,itemDisabledColor:lt,colorDangerItemText:ct,dangerItemColor:ct,colorDangerItemTextHover:ct,dangerItemHoverColor:ct,colorDangerItemTextSelected:ct,dangerItemSelectedColor:ct,colorDangerItemBgActive:mt,dangerItemActiveBg:mt,colorDangerItemBgSelected:mt,dangerItemSelectedBg:mt,itemMarginInline:Cr,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Jt,groupTitleLineHeight:Ut,collapsedWidth:Jt*2,popupBg:rn,itemMarginBlock:_n,itemPaddingInline:Bn,horizontalLineHeight:`${Jt*1.15}px`,iconSize:kt,iconMarginInlineEnd:ln-kt,collapsedIconSize:Cn,groupTitleFontSize:kt,darkItemDisabledColor:new ce.FastColor(Mn).setA(.25).toRgbString(),darkItemColor:nr,darkDangerItemColor:ct,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Mn,darkItemSelectedBg:ot,darkDangerItemSelectedBg:ct,darkItemHoverBg:"transparent",darkGroupTitleColor:nr,darkItemHoverColor:Mn,darkDangerItemHoverColor:Qn,darkDangerItemSelectedColor:Mn,darkDangerItemActiveBg:ct,itemWidth:mr?`calc(100% + ${lr}px)`:`calc(100% - ${Cr*2}px)`}};var At=function(He){let We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:He,tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Se.I$)("Menu",ot=>{const{colorBgElevated:ct,controlHeightLG:lt,fontSize:mt,darkItemColor:Lt,darkDangerItemColor:ft,darkItemBg:St,darkSubMenuItemBg:nn,darkItemSelectedColor:on,darkItemSelectedBg:yn,darkDangerItemSelectedBg:xn,darkItemHoverBg:an,darkGroupTitleColor:An,darkItemHoverColor:Jt,darkItemDisabledColor:Ut,darkDangerItemHoverColor:rn,darkDangerItemSelectedColor:_n,darkDangerItemActiveBg:Bn,popupBg:kt,darkPopupBg:ln}=ot,Cn=ot.calc(mt).div(7).mul(5).equal(),Mn=(0,Be.mergeToken)(ot,{menuArrowSize:Cn,menuHorizontalHeight:ot.calc(lt).mul(1.15).equal(),menuArrowOffset:ot.calc(Cn).mul(.25).equal(),menuSubMenuBg:ct,calc:ot.calc,popupBg:kt}),Qn=(0,Be.mergeToken)(Mn,{itemColor:Lt,itemHoverColor:Jt,groupTitleColor:An,itemSelectedColor:on,subMenuItemSelectedColor:on,itemBg:St,popupBg:ln,subMenuItemBg:nn,itemActiveBg:"transparent",itemSelectedBg:yn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:an,itemDisabledColor:Ut,dangerItemColor:ft,dangerItemHoverColor:rn,dangerItemSelectedColor:_n,dangerItemActiveBg:Bn,dangerItemSelectedBg:xn,menuSubMenuBg:nn,horizontalItemSelectedColor:on,horizontalItemSelectedBg:yn});return[rt(Mn),we(Mn),nt(Mn),Ne(Mn,"light"),Ne(Qn,"dark"),Pe(Mn),(0,_e.Z)(Mn),(0,ye.oN)(Mn,"slide-up"),(0,ye.oN)(Mn,"slide-down"),(0,be._y)(Mn,"zoom-big")]},pt,{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:tt,unitless:{groupTitleLineHeight:!0}})(He,We)},gt=Ce(75030),Ct=He=>{var We;const{popupClassName:tt,icon:at,title:ot,theme:ct}=He,lt=te.useContext(E),{prefixCls:mt,inlineCollapsed:Lt,theme:ft}=lt,St=(0,Ye.Xl)();let nn;if(!at)nn=Lt&&!St.length&&ot&&typeof ot=="string"?te.createElement("div",{className:`${mt}-inline-collapsed-noicon`},ot.charAt(0)):te.createElement("span",{className:`${mt}-title-content`},ot);else{const xn=te.isValidElement(ot)&&ot.type==="span";nn=te.createElement(te.Fragment,null,(0,le.Tm)(at,{className:ve()(te.isValidElement(at)?(We=at.props)===null||We===void 0?void 0:We.className:"",`${mt}-item-icon`)}),xn?ot:te.createElement("span",{className:`${mt}-title-content`},ot))}const on=te.useMemo(()=>Object.assign(Object.assign({},lt),{firstLevel:!1}),[lt]),[yn]=(0,gt.Cn)("Menu");return te.createElement(E.Provider,{value:on},te.createElement(Ye.Wd,Object.assign({},(0,fe.Z)(He,["icon"]),{title:nn,popupClassName:ve()(mt,tt,`${mt}-${ct||ft}`),popupStyle:Object.assign({zIndex:yn},He.popupStyle)})))},Yt=function(He,We){var tt={};for(var at in He)Object.prototype.hasOwnProperty.call(He,at)&&We.indexOf(at)<0&&(tt[at]=He[at]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,at=Object.getOwnPropertySymbols(He);ot<at.length;ot++)We.indexOf(at[ot])<0&&Object.prototype.propertyIsEnumerable.call(He,at[ot])&&(tt[at[ot]]=He[at[ot]]);return tt};function zt(He){return He===null||He===!1}const Xe={item:a,submenu:Ct,divider:ne};var Le=(0,te.forwardRef)((He,We)=>{var tt;const at=te.useContext(x.Z),ot=at||{},{getPrefixCls:ct,getPopupContainer:lt,direction:mt,menu:Lt}=te.useContext(ae.E_),ft=ct(),{prefixCls:St,className:nn,style:on,theme:yn="light",expandIcon:xn,_internalDisableMenuItemTitleTooltip:an,inlineCollapsed:An,siderCollapsed:Jt,rootClassName:Ut,mode:rn,selectable:_n,onClick:Bn,overflowedIndicatorPopupClassName:kt}=He,ln=Yt(He,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Cn=(0,fe.Z)(ln,["collapsedWidth"]);(tt=ot.validator)===null||tt===void 0||tt.call(ot,{mode:rn});const Mn=(0,ue.Z)(function(){var ar;Bn==null||Bn.apply(void 0,arguments),(ar=ot.onClick)===null||ar===void 0||ar.call(ot)}),Qn=ot.mode||rn,mr=_n!=null?_n:ot.selectable,lr=An!=null?An:Jt,Cr={horizontal:{motionName:`${ft}-slide-up`},inline:(0,he.Z)(ft),other:{motionName:`${ft}-zoom-big`}},nr=ct("menu",St||ot.prefixCls),ur=(0,ie.Z)(nr),[Nn,In,Wn]=At(nr,ur,!at),Kn=ve()(`${nr}-${yn}`,Lt==null?void 0:Lt.className,nn),Ln=te.useMemo(()=>{var ar,dn;if(typeof xn=="function"||zt(xn))return xn||null;if(typeof ot.expandIcon=="function"||zt(ot.expandIcon))return ot.expandIcon||null;if(typeof(Lt==null?void 0:Lt.expandIcon)=="function"||zt(Lt==null?void 0:Lt.expandIcon))return(Lt==null?void 0:Lt.expandIcon)||null;const Ie=(ar=xn!=null?xn:ot==null?void 0:ot.expandIcon)!==null&&ar!==void 0?ar:Lt==null?void 0:Lt.expandIcon;return(0,le.Tm)(Ie,{className:ve()(`${nr}-submenu-expand-icon`,te.isValidElement(Ie)?(dn=Ie.props)===null||dn===void 0?void 0:dn.className:void 0)})},[xn,ot==null?void 0:ot.expandIcon,Lt==null?void 0:Lt.expandIcon,nr]),$n=te.useMemo(()=>({prefixCls:nr,inlineCollapsed:lr||!1,direction:mt,firstLevel:!0,theme:yn,mode:Qn,disableMenuItemTitleTooltip:an}),[nr,lr,mt,an,yn]);return Nn(te.createElement(x.Z.Provider,{value:null},te.createElement(E.Provider,{value:$n},te.createElement(Ye.ZP,Object.assign({getPopupContainer:lt,overflowedIndicator:te.createElement(pe.Z,null),overflowedIndicatorPopupClassName:ve()(nr,`${nr}-${yn}`,kt),mode:Qn,selectable:mr,onClick:Mn},Cn,{inlineCollapsed:lr,style:Object.assign(Object.assign({},Lt==null?void 0:Lt.style),on),className:Kn,prefixCls:nr,direction:mt,defaultMotions:Cr,expandIcon:Ln,ref:We,rootClassName:ve()(Ut,In,ot.rootClassName,Wn,ur),_internalComponents:Xe})))))});const Ze=(0,te.forwardRef)((He,We)=>{const tt=(0,te.useRef)(null),at=te.useContext(Me.D);return(0,te.useImperativeHandle)(We,()=>({menu:tt.current,focus:ot=>{var ct;(ct=tt.current)===null||ct===void 0||ct.focus(ot)}})),te.createElement(Le,Object.assign({ref:tt},He,at))});Ze.Item=a,Ze.SubMenu=Ct,Ze.Divider=ne,Ze.ItemGroup=Ye.BW;var et=Ze},31709:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return Lt}});var te=Ce(59301),Ye=Ce(60499),Me={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"},pe=Me,Oe=Ce(7657),ve=function(St,nn){return te.createElement(Oe.Z,(0,Ye.Z)({},St,{ref:nn,icon:pe}))},ue=te.forwardRef(ve),fe=ue,he=Ce(49198),le=Ce(33853),ae=Ce(38819),ie=Ce(92310),me=Ce.n(ie),E=Ce(18642),b=Ce(43749),z=Ce(85899),ne=Ce(72190),oe=Ce(18929),se=Ce(10228),de=Ce(26112),a=Ce(48736),x=Ce(17119),re=[10,20,50,100],ce=function(St){var nn=St.pageSizeOptions,on=nn===void 0?re:nn,yn=St.locale,xn=St.changeSize,an=St.pageSize,An=St.goButton,Jt=St.quickGo,Ut=St.rootPrefixCls,rn=St.disabled,_n=St.buildOptionText,Bn=St.showSizeChanger,kt=St.sizeChangerRender,ln=te.useState(""),Cn=(0,ne.Z)(ln,2),Mn=Cn[0],Qn=Cn[1],mr=function(){return!Mn||Number.isNaN(Mn)?void 0:Number(Mn)},lr=typeof _n=="function"?_n:function($n){return"".concat($n," ").concat(yn.items_per_page)},Cr=function(ar){Qn(ar.target.value)},nr=function(ar){An||Mn===""||(Qn(""),!(ar.relatedTarget&&(ar.relatedTarget.className.indexOf("".concat(Ut,"-item-link"))>=0||ar.relatedTarget.className.indexOf("".concat(Ut,"-item"))>=0))&&(Jt==null||Jt(mr())))},ur=function(ar){Mn!==""&&(ar.keyCode===se.Z.ENTER||ar.type==="click")&&(Qn(""),Jt==null||Jt(mr()))},Nn=function(){return on.some(function(ar){return ar.toString()===an.toString()})?on:on.concat([an]).sort(function(ar,dn){var Ie=Number.isNaN(Number(ar))?0:Number(ar),je=Number.isNaN(Number(dn))?0:Number(dn);return Ie-je})},In="".concat(Ut,"-options");if(!Bn&&!Jt)return null;var Wn=null,Kn=null,Ln=null;return Bn&&kt&&(Wn=kt({disabled:rn,size:an,onSizeChange:function(ar){xn==null||xn(Number(ar))},"aria-label":yn.page_size,className:"".concat(In,"-size-changer"),options:Nn().map(function($n){return{label:lr($n),value:$n}})})),Jt&&(An&&(Ln=typeof An=="boolean"?te.createElement("button",{type:"button",onClick:ur,onKeyUp:ur,disabled:rn,className:"".concat(In,"-quick-jumper-button")},yn.jump_to_confirm):te.createElement("span",{onClick:ur,onKeyUp:ur},An)),Kn=te.createElement("div",{className:"".concat(In,"-quick-jumper")},yn.jump_to,te.createElement("input",{disabled:rn,type:"text",value:Mn,onChange:Cr,onKeyUp:ur,onBlur:nr,"aria-label":yn.page}),yn.page,Ln)),te.createElement("li",{className:In},Wn,Kn)},ge=ce,_e=function(St){var nn=St.rootPrefixCls,on=St.page,yn=St.active,xn=St.className,an=St.showTitle,An=St.onClick,Jt=St.onKeyPress,Ut=St.itemRender,rn="".concat(nn,"-item"),_n=me()(rn,"".concat(rn,"-").concat(on),(0,E.Z)((0,E.Z)({},"".concat(rn,"-active"),yn),"".concat(rn,"-disabled"),!on),xn),Bn=function(){An(on)},kt=function(Mn){Jt(Mn,An,on)},ln=Ut(on,"page",te.createElement("a",{rel:"nofollow"},on));return ln?te.createElement("li",{title:an?String(on):null,className:_n,onClick:Bn,onKeyDown:kt,tabIndex:0},ln):null},ye=_e,be=function(St,nn,on){return on};function Se(){}function Be(ft){var St=Number(ft);return typeof St=="number"&&!Number.isNaN(St)&&isFinite(St)&&Math.floor(St)===St}function Ae(ft,St,nn){var on=typeof ft=="undefined"?St:ft;return Math.floor((nn-1)/on)+1}var we=function(St){var nn=St.prefixCls,on=nn===void 0?"rc-pagination":nn,yn=St.selectPrefixCls,xn=yn===void 0?"rc-select":yn,an=St.className,An=St.current,Jt=St.defaultCurrent,Ut=Jt===void 0?1:Jt,rn=St.total,_n=rn===void 0?0:rn,Bn=St.pageSize,kt=St.defaultPageSize,ln=kt===void 0?10:kt,Cn=St.onChange,Mn=Cn===void 0?Se:Cn,Qn=St.hideOnSinglePage,mr=St.align,lr=St.showPrevNextJumpers,Cr=lr===void 0?!0:lr,nr=St.showQuickJumper,ur=St.showLessItems,Nn=St.showTitle,In=Nn===void 0?!0:Nn,Wn=St.onShowSizeChange,Kn=Wn===void 0?Se:Wn,Ln=St.locale,$n=Ln===void 0?x.Z:Ln,ar=St.style,dn=St.totalBoundaryShowSizeChanger,Ie=dn===void 0?50:dn,je=St.disabled,Je=St.simple,ht=St.showTotal,Et=St.showSizeChanger,Qt=Et===void 0?_n>Ie:Et,fn=St.sizeChangerRender,sn=St.pageSizeOptions,mn=St.itemRender,Zn=mn===void 0?be:mn,tr=St.jumpPrevIcon,Vt=St.jumpNextIcon,Gt=St.prevIcon,Rt=St.nextIcon,jt=te.useRef(null),Mt=(0,oe.Z)(10,{value:Bn,defaultValue:ln}),Kt=(0,ne.Z)(Mt,2),yt=Kt[0],qt=Kt[1],vn=(0,oe.Z)(1,{value:An,defaultValue:Ut,postState:function(Zr){return Math.max(1,Math.min(Zr,Ae(void 0,yt,_n)))}}),Tt=(0,ne.Z)(vn,2),It=Tt[0],Dt=Tt[1],Bt=te.useState(It),Zt=(0,ne.Z)(Bt,2),tn=Zt[0],Tn=Zt[1];(0,te.useEffect)(function(){Tn(It)},[It]);var Fn=Mn!==Se,dr="current"in St,_r=Math.max(1,It-(ur?3:5)),Kr=Math.min(Ae(void 0,yt,_n),It+(ur?3:5));function Sr(li,Zr){var Vi=li||te.createElement("button",{type:"button","aria-label":Zr,className:"".concat(on,"-item-link")});return typeof li=="function"&&(Vi=te.createElement(li,(0,z.Z)({},St))),Vi}function hr(li){var Zr=li.target.value,Vi=Ae(void 0,yt,_n),sa;return Zr===""?sa=Zr:Number.isNaN(Number(Zr))?sa=tn:Zr>=Vi?sa=Vi:sa=Number(Zr),sa}function Mr(li){return Be(li)&&li!==It&&Be(_n)&&_n>0}var Br=_n>yt?nr:!1;function Wr(li){(li.keyCode===se.Z.UP||li.keyCode===se.Z.DOWN)&&li.preventDefault()}function Jn(li){var Zr=hr(li);switch(Zr!==tn&&Tn(Zr),li.keyCode){case se.Z.ENTER:Gr(Zr);break;case se.Z.UP:Gr(Zr-1);break;case se.Z.DOWN:Gr(Zr+1);break;default:break}}function ii(li){Gr(hr(li))}function Ur(li){var Zr=Ae(li,yt,_n),Vi=It>Zr&&Zr!==0?Zr:It;qt(li),Tn(Vi),Kn==null||Kn(It,li),Dt(Vi),Mn==null||Mn(Vi,li)}function Gr(li){if(Mr(li)&&!je){var Zr=Ae(void 0,yt,_n),Vi=li;return li>Zr?Vi=Zr:li<1&&(Vi=1),Vi!==tn&&Tn(Vi),Dt(Vi),Mn==null||Mn(Vi,yt),Vi}return It}var qr=It>1,Li=It<Ae(void 0,yt,_n);function wi(){qr&&Gr(It-1)}function ui(){Li&&Gr(It+1)}function Qr(){Gr(_r)}function Di(){Gr(Kr)}function oi(li,Zr){if(li.key==="Enter"||li.charCode===se.Z.ENTER||li.keyCode===se.Z.ENTER){for(var Vi=arguments.length,sa=new Array(Vi>2?Vi-2:0),vi=2;vi<Vi;vi++)sa[vi-2]=arguments[vi];Zr.apply(void 0,sa)}}function di(li){oi(li,wi)}function ci(li){oi(li,ui)}function ki(li){oi(li,Qr)}function Ki(li){oi(li,Di)}function ua(li){var Zr=Zn(li,"prev",Sr(Gt,"prev page"));return te.isValidElement(Zr)?te.cloneElement(Zr,{disabled:!qr}):Zr}function kn(li){var Zr=Zn(li,"next",Sr(Rt,"next page"));return te.isValidElement(Zr)?te.cloneElement(Zr,{disabled:!Li}):Zr}function qi(li){(li.type==="click"||li.keyCode===se.Z.ENTER)&&Gr(tn)}var Qi=null,ra=(0,de.Z)(St,{aria:!0,data:!0}),_i=ht&&te.createElement("li",{className:"".concat(on,"-total-text")},ht(_n,[_n===0?0:(It-1)*yt+1,It*yt>_n?_n:It*yt])),Ti=null,Xr=Ae(void 0,yt,_n);if(Qn&&_n<=yt)return null;var rr=[],Dr={rootPrefixCls:on,onClick:Gr,onKeyPress:oi,showTitle:In,itemRender:Zn,page:-1},Fr=It-1>0?It-1:0,or=It+1<Xr?It+1:Xr,ei=nr&&nr.goButton,si=(0,b.Z)(Je)==="object"?Je.readOnly:!Je,wr=ei,Ir=null;Je&&(ei&&(typeof ei=="boolean"?wr=te.createElement("button",{type:"button",onClick:qi,onKeyUp:qi},$n.jump_to_confirm):wr=te.createElement("span",{onClick:qi,onKeyUp:qi},ei),wr=te.createElement("li",{title:In?"".concat($n.jump_to).concat(It,"/").concat(Xr):null,className:"".concat(on,"-simple-pager")},wr)),Ir=te.createElement("li",{title:In?"".concat(It,"/").concat(Xr):null,className:"".concat(on,"-simple-pager")},si?tn:te.createElement("input",{type:"text","aria-label":$n.jump_to,value:tn,disabled:je,onKeyDown:Wr,onKeyUp:Jn,onChange:Jn,onBlur:ii,size:3}),te.createElement("span",{className:"".concat(on,"-slash")},"/"),Xr));var Hr=ur?1:2;if(Xr<=3+Hr*2){Xr||rr.push(te.createElement(ye,(0,Ye.Z)({},Dr,{key:"noPager",page:1,className:"".concat(on,"-item-disabled")})));for(var ri=1;ri<=Xr;ri+=1)rr.push(te.createElement(ye,(0,Ye.Z)({},Dr,{key:ri,page:ri,active:It===ri})))}else{var un=ur?$n.prev_3:$n.prev_5,Vn=ur?$n.next_3:$n.next_5,Sn=Zn(_r,"jump-prev",Sr(tr,"prev page")),Rr=Zn(Kr,"jump-next",Sr(Vt,"next page"));Cr&&(Qi=Sn?te.createElement("li",{title:In?un:null,key:"prev",onClick:Qr,tabIndex:0,onKeyDown:ki,className:me()("".concat(on,"-jump-prev"),(0,E.Z)({},"".concat(on,"-jump-prev-custom-icon"),!!tr))},Sn):null,Ti=Rr?te.createElement("li",{title:In?Vn:null,key:"next",onClick:Di,tabIndex:0,onKeyDown:Ki,className:me()("".concat(on,"-jump-next"),(0,E.Z)({},"".concat(on,"-jump-next-custom-icon"),!!Vt))},Rr):null);var ti=Math.max(1,It-Hr),gn=Math.min(It+Hr,Xr);It-1<=Hr&&(gn=1+Hr*2),Xr-It<=Hr&&(ti=Xr-Hr*2);for(var mi=ti;mi<=gn;mi+=1)rr.push(te.createElement(ye,(0,Ye.Z)({},Dr,{key:mi,page:mi,active:It===mi})));if(It-1>=Hr*2&&It!==3&&(rr[0]=te.cloneElement(rr[0],{className:me()("".concat(on,"-item-after-jump-prev"),rr[0].props.className)}),rr.unshift(Qi)),Xr-It>=Hr*2&&It!==Xr-2){var Nr=rr[rr.length-1];rr[rr.length-1]=te.cloneElement(Nr,{className:me()("".concat(on,"-item-before-jump-next"),Nr.props.className)}),rr.push(Ti)}ti!==1&&rr.unshift(te.createElement(ye,(0,Ye.Z)({},Dr,{key:1,page:1}))),gn!==Xr&&rr.push(te.createElement(ye,(0,Ye.Z)({},Dr,{key:Xr,page:Xr})))}var Ar=ua(Fr);if(Ar){var pi=!qr||!Xr;Ar=te.createElement("li",{title:In?$n.prev_page:null,onClick:wi,tabIndex:pi?null:0,onKeyDown:di,className:me()("".concat(on,"-prev"),(0,E.Z)({},"".concat(on,"-disabled"),pi)),"aria-disabled":pi},Ar)}var Gi=kn(or);if(Gi){var gi,Wi;Je?(gi=!Li,Wi=qr?0:null):(gi=!Li||!Xr,Wi=gi?null:0),Gi=te.createElement("li",{title:In?$n.next_page:null,onClick:ui,tabIndex:Wi,onKeyDown:ci,className:me()("".concat(on,"-next"),(0,E.Z)({},"".concat(on,"-disabled"),gi)),"aria-disabled":gi},Gi)}var Jr=me()(on,an,(0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)({},"".concat(on,"-start"),mr==="start"),"".concat(on,"-center"),mr==="center"),"".concat(on,"-end"),mr==="end"),"".concat(on,"-simple"),Je),"".concat(on,"-disabled"),je));return te.createElement("ul",(0,Ye.Z)({className:Jr,style:ar,ref:jt},ra),_i,Ar,Je?Ir:rr,Gi,te.createElement(ge,{locale:$n,rootPrefixCls:on,disabled:je,selectPrefixCls:xn,changeSize:Ur,pageSize:yt,pageSizeOptions:sn,quickGo:Br?Gr:null,goButton:wr,showSizeChanger:Qt,sizeChangerRender:fn}))},Ue=we,Pe=Ce(61852),ze=Ce(48755),Ke=Ce(31756),Ne=Ce(13783),Re=Ce(9017),$e=Ce(82326),nt=Ce(57700),ut=Ce(36237),Qe=Ce(53075),rt=Ce(64910),pt=Ce(39082),At=Ce(63356),gt=Ce(51636),Ft=Ce(16931);const Ct=ft=>{const{componentCls:St}=ft;return{[`${St}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${St}-item-link`]:{color:ft.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${St}-item-link`]:{color:ft.colorTextDisabled,cursor:"not-allowed"}}},[`&${St}-disabled`]:{cursor:"not-allowed",[`${St}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:ft.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:ft.colorBorder,backgroundColor:ft.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:ft.itemActiveBgDisabled},a:{color:ft.itemActiveColorDisabled}}},[`${St}-item-link`]:{color:ft.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${St}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${St}-simple-pager`]:{color:ft.colorTextDisabled},[`${St}-jump-prev, ${St}-jump-next`]:{[`${St}-item-link-icon`]:{opacity:0},[`${St}-item-ellipsis`]:{opacity:1}}},[`&${St}-simple`]:{[`${St}-prev, ${St}-next`]:{[`&${St}-disabled ${St}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Yt=ft=>{const{componentCls:St}=ft;return{[`&${St}-mini ${St}-total-text, &${St}-mini ${St}-simple-pager`]:{height:ft.itemSizeSM,lineHeight:(0,ut.unit)(ft.itemSizeSM)},[`&${St}-mini ${St}-item`]:{minWidth:ft.itemSizeSM,height:ft.itemSizeSM,margin:0,lineHeight:(0,ut.unit)(ft.calc(ft.itemSizeSM).sub(2).equal())},[`&${St}-mini ${St}-prev, &${St}-mini ${St}-next`]:{minWidth:ft.itemSizeSM,height:ft.itemSizeSM,margin:0,lineHeight:(0,ut.unit)(ft.itemSizeSM)},[`&${St}-mini:not(${St}-disabled)`]:{[`${St}-prev, ${St}-next`]:{[`&:hover ${St}-item-link`]:{backgroundColor:ft.colorBgTextHover},[`&:active ${St}-item-link`]:{backgroundColor:ft.colorBgTextActive},[`&${St}-disabled:hover ${St}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${St}-mini ${St}-prev ${St}-item-link,
|
|
|
&${St}-mini ${St}-next ${St}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:ft.itemSizeSM,lineHeight:(0,ut.unit)(ft.itemSizeSM)}},[`&${St}-mini ${St}-jump-prev, &${St}-mini ${St}-jump-next`]:{height:ft.itemSizeSM,marginInlineEnd:0,lineHeight:(0,ut.unit)(ft.itemSizeSM)},[`&${St}-mini ${St}-options`]:{marginInlineStart:ft.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:ft.miniOptionsSizeChangerTop},"&-quick-jumper":{height:ft.itemSizeSM,lineHeight:(0,ut.unit)(ft.itemSizeSM),input:Object.assign(Object.assign({},(0,Qe.x0)(ft)),{width:ft.paginationMiniQuickJumperInputWidth,height:ft.controlHeightSM})}}}},zt=ft=>{const{componentCls:St}=ft;return{[`
|
|
|
&${St}-simple ${St}-prev,
|
|
|
&${St}-simple ${St}-next
|
|
|
`]:{height:ft.itemSizeSM,lineHeight:(0,ut.unit)(ft.itemSizeSM),verticalAlign:"top",[`${St}-item-link`]:{height:ft.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:ft.colorBgTextHover},"&:active":{backgroundColor:ft.colorBgTextActive},"&::after":{height:ft.itemSizeSM,lineHeight:(0,ut.unit)(ft.itemSizeSM)}}},[`&${St}-simple ${St}-simple-pager`]:{display:"inline-block",height:ft.itemSizeSM,marginInlineEnd:ft.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,ut.unit)(ft.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:ft.itemInputBg,border:`${(0,ut.unit)(ft.lineWidth)} ${ft.lineType} ${ft.colorBorder}`,borderRadius:ft.borderRadius,outline:"none",transition:`border-color ${ft.motionDurationMid}`,color:"inherit","&:hover":{borderColor:ft.colorPrimary},"&:focus":{borderColor:ft.colorPrimaryHover,boxShadow:`${(0,ut.unit)(ft.inputOutlineOffset)} 0 ${(0,ut.unit)(ft.controlOutlineWidth)} ${ft.controlOutline}`},"&[disabled]":{color:ft.colorTextDisabled,backgroundColor:ft.colorBgContainerDisabled,borderColor:ft.colorBorder,cursor:"not-allowed"}}}}},Xe=ft=>{const{componentCls:St}=ft;return{[`${St}-jump-prev, ${St}-jump-next`]:{outline:0,[`${St}-item-container`]:{position:"relative",[`${St}-item-link-icon`]:{color:ft.colorPrimary,fontSize:ft.fontSizeSM,opacity:0,transition:`all ${ft.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${St}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:ft.colorTextDisabled,letterSpacing:ft.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:ft.paginationEllipsisTextIndent,opacity:1,transition:`all ${ft.motionDurationMid}`}},"&:hover":{[`${St}-item-link-icon`]:{opacity:1},[`${St}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${St}-prev,
|
|
|
${St}-jump-prev,
|
|
|
${St}-jump-next
|
|
|
`]:{marginInlineEnd:ft.marginXS},[`
|
|
|
${St}-prev,
|
|
|
${St}-next,
|
|
|
${St}-jump-prev,
|
|
|
${St}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:ft.itemSize,height:ft.itemSize,color:ft.colorText,fontFamily:ft.fontFamily,lineHeight:(0,ut.unit)(ft.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:ft.borderRadius,cursor:"pointer",transition:`all ${ft.motionDurationMid}`},[`${St}-prev, ${St}-next`]:{outline:0,button:{color:ft.colorText,cursor:"pointer",userSelect:"none"},[`${St}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:ft.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,ut.unit)(ft.lineWidth)} ${ft.lineType} transparent`,borderRadius:ft.borderRadius,outline:"none",transition:`all ${ft.motionDurationMid}`},[`&:hover ${St}-item-link`]:{backgroundColor:ft.colorBgTextHover},[`&:active ${St}-item-link`]:{backgroundColor:ft.colorBgTextActive},[`&${St}-disabled:hover`]:{[`${St}-item-link`]:{backgroundColor:"transparent"}}},[`${St}-slash`]:{marginInlineEnd:ft.paginationSlashMarginInlineEnd,marginInlineStart:ft.paginationSlashMarginInlineStart},[`${St}-options`]:{display:"inline-block",marginInlineStart:ft.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:ft.controlHeight,marginInlineStart:ft.marginXS,lineHeight:(0,ut.unit)(ft.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,Qe.ik)(ft)),(0,pt.$U)(ft,{borderColor:ft.colorBorder,hoverBorderColor:ft.colorPrimaryHover,activeBorderColor:ft.colorPrimary,activeShadow:ft.activeShadow})),{"&[disabled]":Object.assign({},(0,pt.Xy)(ft)),width:ft.calc(ft.controlHeightLG).mul(1.25).equal(),height:ft.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:ft.marginXS,marginInlineEnd:ft.marginXS})}}}},Fe=ft=>{const{componentCls:St}=ft;return{[`${St}-item`]:{display:"inline-block",minWidth:ft.itemSize,height:ft.itemSize,marginInlineEnd:ft.marginXS,fontFamily:ft.fontFamily,lineHeight:(0,ut.unit)(ft.calc(ft.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:ft.itemBg,border:`${(0,ut.unit)(ft.lineWidth)} ${ft.lineType} transparent`,borderRadius:ft.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,ut.unit)(ft.paginationItemPaddingInline)}`,color:ft.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${St}-item-active)`]:{"&:hover":{transition:`all ${ft.motionDurationMid}`,backgroundColor:ft.colorBgTextHover},"&:active":{backgroundColor:ft.colorBgTextActive}},"&-active":{fontWeight:ft.fontWeightStrong,backgroundColor:ft.itemActiveBg,borderColor:ft.colorPrimary,a:{color:ft.colorPrimary},"&:hover":{borderColor:ft.colorPrimaryHover},"&:hover a":{color:ft.colorPrimaryHover}}}}},Le=ft=>{const{componentCls:St}=ft;return{[St]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,At.Wf)(ft)),{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:'""'},[`${St}-total-text`]:{display:"inline-block",height:ft.itemSize,marginInlineEnd:ft.marginXS,lineHeight:(0,ut.unit)(ft.calc(ft.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Fe(ft)),Xe(ft)),zt(ft)),Yt(ft)),Ct(ft)),{[`@media only screen and (max-width: ${ft.screenLG}px)`]:{[`${St}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${ft.screenSM}px)`]:{[`${St}-options`]:{display:"none"}}}),[`&${ft.componentCls}-rtl`]:{direction:"rtl"}}},Ze=ft=>{const{componentCls:St}=ft;return{[`${St}:not(${St}-disabled)`]:{[`${St}-item`]:Object.assign({},(0,At.Qy)(ft)),[`${St}-jump-prev, ${St}-jump-next`]:{"&:focus-visible":Object.assign({[`${St}-item-link-icon`]:{opacity:1},[`${St}-item-ellipsis`]:{opacity:0}},(0,At.oN)(ft))},[`${St}-prev, ${St}-next`]:{[`&:focus-visible ${St}-item-link`]:Object.assign({},(0,At.oN)(ft))}}}},et=ft=>Object.assign({itemBg:ft.colorBgContainer,itemSize:ft.controlHeight,itemSizeSM:ft.controlHeightSM,itemActiveBg:ft.colorBgContainer,itemLinkBg:ft.colorBgContainer,itemActiveColorDisabled:ft.colorTextDisabled,itemActiveBgDisabled:ft.controlItemBgActiveDisabled,itemInputBg:ft.colorBgContainer,miniOptionsSizeChangerTop:0},(0,rt.T)(ft)),He=ft=>(0,gt.mergeToken)(ft,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:ft.calc(ft.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:ft.calc(ft.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:ft.calc(ft.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:ft.calc(ft.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:ft.marginSM,paginationSlashMarginInlineEnd:ft.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,rt.e)(ft));var We=(0,Ft.I$)("Pagination",ft=>{const St=He(ft);return[Le(St),Ze(St)]},et);const tt=ft=>{const{componentCls:St}=ft;return{[`${St}${St}-bordered${St}-disabled:not(${St}-mini)`]:{"&, &:hover":{[`${St}-item-link`]:{borderColor:ft.colorBorder}},"&:focus-visible":{[`${St}-item-link`]:{borderColor:ft.colorBorder}},[`${St}-item, ${St}-item-link`]:{backgroundColor:ft.colorBgContainerDisabled,borderColor:ft.colorBorder,[`&:hover:not(${St}-item-active)`]:{backgroundColor:ft.colorBgContainerDisabled,borderColor:ft.colorBorder,a:{color:ft.colorTextDisabled}},[`&${St}-item-active`]:{backgroundColor:ft.itemActiveBgDisabled}},[`${St}-prev, ${St}-next`]:{"&:hover button":{backgroundColor:ft.colorBgContainerDisabled,borderColor:ft.colorBorder,color:ft.colorTextDisabled},[`${St}-item-link`]:{backgroundColor:ft.colorBgContainerDisabled,borderColor:ft.colorBorder}}},[`${St}${St}-bordered:not(${St}-mini)`]:{[`${St}-prev, ${St}-next`]:{"&:hover button":{borderColor:ft.colorPrimaryHover,backgroundColor:ft.itemBg},[`${St}-item-link`]:{backgroundColor:ft.itemLinkBg,borderColor:ft.colorBorder},[`&:hover ${St}-item-link`]:{borderColor:ft.colorPrimary,backgroundColor:ft.itemBg,color:ft.colorPrimary},[`&${St}-disabled`]:{[`${St}-item-link`]:{borderColor:ft.colorBorder,color:ft.colorTextDisabled}}},[`${St}-item`]:{backgroundColor:ft.itemBg,border:`${(0,ut.unit)(ft.lineWidth)} ${ft.lineType} ${ft.colorBorder}`,[`&:hover:not(${St}-item-active)`]:{borderColor:ft.colorPrimary,backgroundColor:ft.itemBg,a:{color:ft.colorPrimary}},"&-active":{borderColor:ft.colorPrimary}}}}};var at=(0,Ft.bk)(["Pagination","bordered"],ft=>{const St=He(ft);return[tt(St)]},et);function ot(ft){return(0,te.useMemo)(()=>typeof ft=="boolean"?[ft,{}]:ft&&typeof ft=="object"?[!0,ft]:[void 0,void 0],[ft])}var ct=function(ft,St){var nn={};for(var on in ft)Object.prototype.hasOwnProperty.call(ft,on)&&St.indexOf(on)<0&&(nn[on]=ft[on]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yn=0,on=Object.getOwnPropertySymbols(ft);yn<on.length;yn++)St.indexOf(on[yn])<0&&Object.prototype.propertyIsEnumerable.call(ft,on[yn])&&(nn[on[yn]]=ft[on[yn]]);return nn},mt=ft=>{const{align:St,prefixCls:nn,selectPrefixCls:on,className:yn,rootClassName:xn,style:an,size:An,locale:Jt,responsive:Ut,showSizeChanger:rn,selectComponentClass:_n,pageSizeOptions:Bn}=ft,kt=ct(ft,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:ln}=(0,Ne.Z)(Ut),[,Cn]=(0,nt.ZP)(),{getPrefixCls:Mn,direction:Qn,showSizeChanger:mr,className:lr,style:Cr}=(0,ze.dj)("pagination"),nr=Mn("pagination",nn),[ur,Nn,In]=We(nr),Wn=(0,Ke.Z)(An),Kn=Wn==="small"||!!(ln&&!Wn&&Ut),[Ln]=(0,Re.Z)("Pagination",Pe.Z),$n=Object.assign(Object.assign({},Ln),Jt),[ar,dn]=ot(rn),[Ie,je]=ot(mr),Je=ar!=null?ar:Ie,ht=dn!=null?dn:je,Et=_n||$e.default,Qt=te.useMemo(()=>Bn?Bn.map(Vt=>Number(Vt)):void 0,[Bn]),fn=Vt=>{var Gt;const{disabled:Rt,size:jt,onSizeChange:Mt,"aria-label":Kt,className:yt,options:qt}=Vt,{className:vn,onChange:Tt}=ht||{},It=(Gt=qt.find(Dt=>String(Dt.value)===String(jt)))===null||Gt===void 0?void 0:Gt.value;return te.createElement(Et,Object.assign({disabled:Rt,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:Dt=>Dt.parentNode,"aria-label":Kt,options:qt},ht,{value:It,onChange:(Dt,Bt)=>{Mt==null||Mt(Dt),Tt==null||Tt(Dt,Bt)},size:Kn?"small":"middle",className:me()(yt,vn)}))},sn=te.useMemo(()=>{const Vt=te.createElement("span",{className:`${nr}-item-ellipsis`},"\u2022\u2022\u2022"),Gt=te.createElement("button",{className:`${nr}-item-link`,type:"button",tabIndex:-1},Qn==="rtl"?te.createElement(ae.Z,null):te.createElement(le.Z,null)),Rt=te.createElement("button",{className:`${nr}-item-link`,type:"button",tabIndex:-1},Qn==="rtl"?te.createElement(le.Z,null):te.createElement(ae.Z,null)),jt=te.createElement("a",{className:`${nr}-item-link`},te.createElement("div",{className:`${nr}-item-container`},Qn==="rtl"?te.createElement(he.Z,{className:`${nr}-item-link-icon`}):te.createElement(fe,{className:`${nr}-item-link-icon`}),Vt)),Mt=te.createElement("a",{className:`${nr}-item-link`},te.createElement("div",{className:`${nr}-item-container`},Qn==="rtl"?te.createElement(fe,{className:`${nr}-item-link-icon`}):te.createElement(he.Z,{className:`${nr}-item-link-icon`}),Vt));return{prevIcon:Gt,nextIcon:Rt,jumpPrevIcon:jt,jumpNextIcon:Mt}},[Qn,nr]),mn=Mn("select",on),Zn=me()({[`${nr}-${St}`]:!!St,[`${nr}-mini`]:Kn,[`${nr}-rtl`]:Qn==="rtl",[`${nr}-bordered`]:Cn.wireframe},lr,yn,xn,Nn,In),tr=Object.assign(Object.assign({},Cr),an);return ur(te.createElement(te.Fragment,null,Cn.wireframe&&te.createElement(at,{prefixCls:nr}),te.createElement(Ue,Object.assign({},sn,kt,{style:tr,prefixCls:nr,selectPrefixCls:mn,className:Zn,locale:$n,pageSizeOptions:Qt,showSizeChanger:Je,sizeChangerRender:fn}))))},Lt=mt},69106:function(Yn,en,Ce){"use strict";Ce.d(en,{aV:function(){return he},t5:function(){return le}});var te=Ce(59301),Ye=Ce(92310),Me=Ce.n(Ye),pe=Ce(29125),Oe=Ce(54500),ve=Ce(48755),ue=Ce(85074),fe=function(ie,me){var E={};for(var b in ie)Object.prototype.hasOwnProperty.call(ie,b)&&me.indexOf(b)<0&&(E[b]=ie[b]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,b=Object.getOwnPropertySymbols(ie);z<b.length;z++)me.indexOf(b[z])<0&&Object.prototype.propertyIsEnumerable.call(ie,b[z])&&(E[b[z]]=ie[b[z]]);return E};const he=ie=>{let{title:me,content:E,prefixCls:b}=ie;return!me&&!E?null:te.createElement(te.Fragment,null,me&&te.createElement("div",{className:`${b}-title`},me),E&&te.createElement("div",{className:`${b}-inner-content`},E))},le=ie=>{const{hashId:me,prefixCls:E,className:b,style:z,placement:ne="top",title:oe,content:se,children:de}=ie,a=(0,Oe.Z)(oe),x=(0,Oe.Z)(se),re=Me()(me,E,`${E}-pure`,`${E}-placement-${ne}`,b);return te.createElement("div",{className:re,style:z},te.createElement("div",{className:`${E}-arrow`}),te.createElement(pe.G,Object.assign({},ie,{className:me,prefixCls:E}),de||te.createElement(he,{prefixCls:E,title:a,content:x})))},ae=ie=>{const{prefixCls:me,className:E}=ie,b=fe(ie,["prefixCls","className"]),{getPrefixCls:z}=te.useContext(ve.E_),ne=z("popover",me),[oe,se,de]=(0,ue.Z)(ne);return oe(te.createElement(le,Object.assign({},b,{prefixCls:ne,hashId:se,className:Me()(E,de)})))};en.ZP=ae},37639:function(Yn,en,Ce){"use strict";var te=Ce(59301),Ye=Ce(92310),Me=Ce.n(Ye),pe=Ce(18929),Oe=Ce(10228),ve=Ce(54500),ue=Ce(86641),fe=Ce(22703),he=Ce(25399),le=Ce(69106),ae=Ce(48755),ie=Ce(85074),me=function(z,ne){var oe={};for(var se in z)Object.prototype.hasOwnProperty.call(z,se)&&ne.indexOf(se)<0&&(oe[se]=z[se]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,se=Object.getOwnPropertySymbols(z);de<se.length;de++)ne.indexOf(se[de])<0&&Object.prototype.propertyIsEnumerable.call(z,se[de])&&(oe[se[de]]=z[se[de]]);return oe};const b=te.forwardRef((z,ne)=>{var oe,se;const{prefixCls:de,title:a,content:x,overlayClassName:re,placement:ce="top",trigger:ge="hover",children:_e,mouseEnterDelay:ye=.1,mouseLeaveDelay:be=.1,onOpenChange:Se,overlayStyle:Be={},styles:Ae,classNames:we}=z,Ue=me(z,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:Pe,className:ze,style:Ke,classNames:Ne,styles:Re}=(0,ae.dj)("popover"),$e=Pe("popover",de),[nt,ut,Qe]=(0,ie.Z)($e),rt=Pe(),pt=Me()(re,ut,Qe,ze,Ne.root,we==null?void 0:we.root),At=Me()(Ne.body,we==null?void 0:we.body),[gt,Ft]=(0,pe.Z)(!1,{value:(oe=z.open)!==null&&oe!==void 0?oe:z.visible,defaultValue:(se=z.defaultOpen)!==null&&se!==void 0?se:z.defaultVisible}),Ct=(Le,Ze)=>{Ft(Le,!0),Se==null||Se(Le,Ze)},Yt=Le=>{Le.keyCode===Oe.Z.ESC&&Ct(!1,Le)},zt=Le=>{Ct(Le)},Xe=(0,ve.Z)(a),Fe=(0,ve.Z)(x);return nt(te.createElement(he.Z,Object.assign({placement:ce,trigger:ge,mouseEnterDelay:ye,mouseLeaveDelay:be},Ue,{prefixCls:$e,classNames:{root:pt,body:At},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},Re.root),Ke),Be),Ae==null?void 0:Ae.root),body:Object.assign(Object.assign({},Re.body),Ae==null?void 0:Ae.body)},ref:ne,open:gt,onOpenChange:zt,overlay:Xe||Fe?te.createElement(le.aV,{prefixCls:$e,title:Xe,content:Fe}):null,transitionName:(0,ue.m)(rt,"zoom-big",Ue.transitionName),"data-popover-inject":!0}),(0,fe.Tm)(_e,{onKeyDown:Le=>{var Ze,et;te.isValidElement(_e)&&((et=_e==null?void 0:(Ze=_e.props).onKeyDown)===null||et===void 0||et.call(Ze,Le)),Yt(Le)}})))});b._InternalPanelDoNotUseOrYouWillBeFired=le.ZP,en.Z=b},85074:function(Yn,en,Ce){"use strict";var te=Ce(63356),Ye=Ce(34925),Me=Ce(37645),pe=Ce(36305),Oe=Ce(34998),ve=Ce(16931),ue=Ce(51636);const fe=ae=>{const{componentCls:ie,popoverColor:me,titleMinWidth:E,fontWeightStrong:b,innerPadding:z,boxShadowSecondary:ne,colorTextHeading:oe,borderRadiusLG:se,zIndexPopup:de,titleMarginBottom:a,colorBgElevated:x,popoverBg:re,titleBorderBottom:ce,innerContentPadding:ge,titlePadding:_e}=ae;return[{[ie]:Object.assign(Object.assign({},(0,te.Wf)(ae)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:de,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":x,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${ie}-content`]:{position:"relative"},[`${ie}-inner`]:{backgroundColor:re,backgroundClip:"padding-box",borderRadius:se,boxShadow:ne,padding:z},[`${ie}-title`]:{minWidth:E,marginBottom:a,color:oe,fontWeight:b,borderBottom:ce,padding:_e},[`${ie}-inner-content`]:{color:me,padding:ge}})},(0,Me.ZP)(ae,"var(--antd-arrow-background-color)"),{[`${ie}-pure`]:{position:"relative",maxWidth:"none",margin:ae.sizePopupArrow,display:"inline-block",[`${ie}-content`]:{display:"inline-block"}}}]},he=ae=>{const{componentCls:ie}=ae;return{[ie]:Oe.i.map(me=>{const E=ae[`${me}6`];return{[`&${ie}-${me}`]:{"--antd-arrow-background-color":E,[`${ie}-inner`]:{backgroundColor:E},[`${ie}-arrow`]:{background:"transparent"}}}})}},le=ae=>{const{lineWidth:ie,controlHeight:me,fontHeight:E,padding:b,wireframe:z,zIndexPopupBase:ne,borderRadiusLG:oe,marginXS:se,lineType:de,colorSplit:a,paddingSM:x}=ae,re=me-E,ce=re/2,ge=re/2-ie,_e=b;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:ne+30},(0,pe.w)(ae)),(0,Me.wZ)({contentRadius:oe,limitVerticalRadius:!0})),{innerPadding:z?0:12,titleMarginBottom:z?0:se,titlePadding:z?`${ce}px ${_e}px ${ge}px`:0,titleBorderBottom:z?`${ie}px ${de} ${a}`:"none",innerContentPadding:z?`${x}px ${_e}px`:0})};en.Z=(0,ve.I$)("Popover",ae=>{const{colorBgElevated:ie,colorText:me}=ae,E=(0,ue.mergeToken)(ae,{popoverBg:ie,popoverColor:me});return[fe(E),he(E),(0,Ye._y)(E,"zoom-big")]},le,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},89787:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return Jt}});var te=Ce(59301),Ye=Ce(17835),Me=Ce(29679),pe=Ce(40001),Oe=Ce(19248),ve=Ce(99267),ue=Ce(92310),fe=Ce.n(ue),he=Ce(2738),le=Ce(48755),ae=Ce(60499),ie=Ce(85899),me=Ce(42244),E={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},b=function(){var rn=(0,te.useRef)([]),_n=(0,te.useRef)(null);return(0,te.useEffect)(function(){var Bn=Date.now(),kt=!1;rn.current.forEach(function(ln){if(ln){kt=!0;var Cn=ln.style;Cn.transitionDuration=".3s, .3s, .3s, .06s",_n.current&&Bn-_n.current<100&&(Cn.transitionDuration="0s, 0s")}}),kt&&(_n.current=Date.now())}),rn.current},z=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ne=function(rn){var _n=(0,ie.Z)((0,ie.Z)({},E),rn),Bn=_n.className,kt=_n.percent,ln=_n.prefixCls,Cn=_n.strokeColor,Mn=_n.strokeLinecap,Qn=_n.strokeWidth,mr=_n.style,lr=_n.trailColor,Cr=_n.trailWidth,nr=_n.transition,ur=(0,me.Z)(_n,z);delete ur.gapPosition;var Nn=Array.isArray(kt)?kt:[kt],In=Array.isArray(Cn)?Cn:[Cn],Wn=b(),Kn=Qn/2,Ln=100-Qn/2,$n="M ".concat(Mn==="round"?Kn:0,",").concat(Kn,`
|
|
|
L `).concat(Mn==="round"?Ln:100,",").concat(Kn),ar="0 0 100 ".concat(Qn),dn=0;return te.createElement("svg",(0,ae.Z)({className:fe()("".concat(ln,"-line"),Bn),viewBox:ar,preserveAspectRatio:"none",style:mr},ur),te.createElement("path",{className:"".concat(ln,"-line-trail"),d:$n,strokeLinecap:Mn,stroke:lr,strokeWidth:Cr||Qn,fillOpacity:"0"}),Nn.map(function(Ie,je){var Je=1;switch(Mn){case"round":Je=1-Qn/100;break;case"square":Je=1-Qn/2/100;break;default:Je=1;break}var ht={strokeDasharray:"".concat(Ie*Je,"px, 100px"),strokeDashoffset:"-".concat(dn,"px"),transition:nr||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Et=In[je]||In[In.length-1];return dn+=Ie,te.createElement("path",{key:je,className:"".concat(ln,"-line-path"),d:$n,strokeLinecap:Mn,stroke:Et,strokeWidth:Qn,fillOpacity:"0",ref:function(fn){Wn[je]=fn},style:ht})}))},oe=ne,se=Ce(43749),de=Ce(72190),a=Ce(47273),x=0,re=(0,a.Z)();function ce(){var Ut;return re?(Ut=x,x+=1):Ut="TEST_OR_SSR",Ut}var ge=function(Ut){var rn=te.useState(),_n=(0,de.Z)(rn,2),Bn=_n[0],kt=_n[1];return te.useEffect(function(){kt("rc_progress_".concat(ce()))},[]),Ut||Bn},_e=function(rn){var _n=rn.bg,Bn=rn.children;return te.createElement("div",{style:{width:"100%",height:"100%",background:_n}},Bn)};function ye(Ut,rn){return Object.keys(Ut).map(function(_n){var Bn=parseFloat(_n),kt="".concat(Math.floor(Bn*rn),"%");return"".concat(Ut[_n]," ").concat(kt)})}var be=te.forwardRef(function(Ut,rn){var _n=Ut.prefixCls,Bn=Ut.color,kt=Ut.gradientId,ln=Ut.radius,Cn=Ut.style,Mn=Ut.ptg,Qn=Ut.strokeLinecap,mr=Ut.strokeWidth,lr=Ut.size,Cr=Ut.gapDegree,nr=Bn&&(0,se.Z)(Bn)==="object",ur=nr?"#FFF":void 0,Nn=lr/2,In=te.createElement("circle",{className:"".concat(_n,"-circle-path"),r:ln,cx:Nn,cy:Nn,stroke:ur,strokeLinecap:Qn,strokeWidth:mr,opacity:Mn===0?0:1,style:Cn,ref:rn});if(!nr)return In;var Wn="".concat(kt,"-conic"),Kn=Cr?"".concat(180+Cr/2,"deg"):"0deg",Ln=ye(Bn,(360-Cr)/360),$n=ye(Bn,1),ar="conic-gradient(from ".concat(Kn,", ").concat(Ln.join(", "),")"),dn="linear-gradient(to ".concat(Cr?"bottom":"top",", ").concat($n.join(", "),")");return te.createElement(te.Fragment,null,te.createElement("mask",{id:Wn},In),te.createElement("foreignObject",{x:0,y:0,width:lr,height:lr,mask:"url(#".concat(Wn,")")},te.createElement(_e,{bg:dn},te.createElement(_e,{bg:ar}))))}),Se=be,Be=100,Ae=function(rn,_n,Bn,kt,ln,Cn,Mn,Qn,mr,lr){var Cr=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,nr=Bn/100*360*((360-Cn)/360),ur=Cn===0?0:{bottom:0,top:180,left:90,right:-90}[Mn],Nn=(100-kt)/100*_n;mr==="round"&&kt!==100&&(Nn+=lr/2,Nn>=_n&&(Nn=_n-.01));var In=Be/2;return{stroke:typeof Qn=="string"?Qn:void 0,strokeDasharray:"".concat(_n,"px ").concat(rn),strokeDashoffset:Nn+Cr,transform:"rotate(".concat(ln+nr+ur,"deg)"),transformOrigin:"".concat(In,"px ").concat(In,"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}},we=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ue(Ut){var rn=Ut!=null?Ut:[];return Array.isArray(rn)?rn:[rn]}var Pe=function(rn){var _n=(0,ie.Z)((0,ie.Z)({},E),rn),Bn=_n.id,kt=_n.prefixCls,ln=_n.steps,Cn=_n.strokeWidth,Mn=_n.trailWidth,Qn=_n.gapDegree,mr=Qn===void 0?0:Qn,lr=_n.gapPosition,Cr=_n.trailColor,nr=_n.strokeLinecap,ur=_n.style,Nn=_n.className,In=_n.strokeColor,Wn=_n.percent,Kn=(0,me.Z)(_n,we),Ln=Be/2,$n=ge(Bn),ar="".concat($n,"-gradient"),dn=Ln-Cn/2,Ie=Math.PI*2*dn,je=mr>0?90+mr/2:-90,Je=Ie*((360-mr)/360),ht=(0,se.Z)(ln)==="object"?ln:{count:ln,gap:2},Et=ht.count,Qt=ht.gap,fn=Ue(Wn),sn=Ue(In),mn=sn.find(function(Mt){return Mt&&(0,se.Z)(Mt)==="object"}),Zn=mn&&(0,se.Z)(mn)==="object",tr=Zn?"butt":nr,Vt=Ae(Ie,Je,0,100,je,mr,lr,Cr,tr,Cn),Gt=b(),Rt=function(){var Kt=0;return fn.map(function(yt,qt){var vn=sn[qt]||sn[sn.length-1],Tt=Ae(Ie,Je,Kt,yt,je,mr,lr,vn,tr,Cn);return Kt+=yt,te.createElement(Se,{key:qt,color:vn,ptg:yt,radius:dn,prefixCls:kt,gradientId:ar,style:Tt,strokeLinecap:tr,strokeWidth:Cn,gapDegree:mr,ref:function(Dt){Gt[qt]=Dt},size:Be})}).reverse()},jt=function(){var Kt=Math.round(Et*(fn[0]/100)),yt=100/Et,qt=0;return new Array(Et).fill(null).map(function(vn,Tt){var It=Tt<=Kt-1?sn[0]:Cr,Dt=It&&(0,se.Z)(It)==="object"?"url(#".concat(ar,")"):void 0,Bt=Ae(Ie,Je,qt,yt,je,mr,lr,It,"butt",Cn,Qt);return qt+=(Je-Bt.strokeDashoffset+Qt)*100/Je,te.createElement("circle",{key:Tt,className:"".concat(kt,"-circle-path"),r:dn,cx:Ln,cy:Ln,stroke:Dt,strokeWidth:Cn,opacity:1,style:Bt,ref:function(tn){Gt[Tt]=tn}})})};return te.createElement("svg",(0,ae.Z)({className:fe()("".concat(kt,"-circle"),Nn),viewBox:"0 0 ".concat(Be," ").concat(Be),style:ur,id:Bn,role:"presentation"},Kn),!Et&&te.createElement("circle",{className:"".concat(kt,"-circle-trail"),r:dn,cx:Ln,cy:Ln,stroke:Cr,strokeLinecap:tr,strokeWidth:Mn||Cn,style:Vt}),Et?jt():Rt())},ze=Pe,Ke={Line:oe,Circle:ze},Ne=Ce(25399),Re=Ce(68361);function $e(Ut){return!Ut||Ut<0?0:Ut>100?100:Ut}function nt(Ut){let{success:rn,successPercent:_n}=Ut,Bn=_n;return rn&&"progress"in rn&&(Bn=rn.progress),rn&&"percent"in rn&&(Bn=rn.percent),Bn}const ut=Ut=>{let{percent:rn,success:_n,successPercent:Bn}=Ut;const kt=$e(nt({success:_n,successPercent:Bn}));return[kt,$e($e(rn)-kt)]},Qe=Ut=>{let{success:rn={},strokeColor:_n}=Ut;const{strokeColor:Bn}=rn;return[Bn||Re.presetPrimaryColors.green,_n||null]},rt=(Ut,rn,_n)=>{var Bn,kt,ln,Cn;let Mn=-1,Qn=-1;if(rn==="step"){const mr=_n.steps,lr=_n.strokeWidth;typeof Ut=="string"||typeof Ut=="undefined"?(Mn=Ut==="small"?2:14,Qn=lr!=null?lr:8):typeof Ut=="number"?[Mn,Qn]=[Ut,Ut]:[Mn=14,Qn=8]=Array.isArray(Ut)?Ut:[Ut.width,Ut.height],Mn*=mr}else if(rn==="line"){const mr=_n==null?void 0:_n.strokeWidth;typeof Ut=="string"||typeof Ut=="undefined"?Qn=mr||(Ut==="small"?6:8):typeof Ut=="number"?[Mn,Qn]=[Ut,Ut]:[Mn=-1,Qn=8]=Array.isArray(Ut)?Ut:[Ut.width,Ut.height]}else(rn==="circle"||rn==="dashboard")&&(typeof Ut=="string"||typeof Ut=="undefined"?[Mn,Qn]=Ut==="small"?[60,60]:[120,120]:typeof Ut=="number"?[Mn,Qn]=[Ut,Ut]:Array.isArray(Ut)&&(Mn=(kt=(Bn=Ut[0])!==null&&Bn!==void 0?Bn:Ut[1])!==null&&kt!==void 0?kt:120,Qn=(Cn=(ln=Ut[0])!==null&&ln!==void 0?ln:Ut[1])!==null&&Cn!==void 0?Cn:120));return[Mn,Qn]},pt=3,At=Ut=>pt/Ut*100;var Ft=Ut=>{const{prefixCls:rn,trailColor:_n=null,strokeLinecap:Bn="round",gapPosition:kt,gapDegree:ln,width:Cn=120,type:Mn,children:Qn,success:mr,size:lr=Cn,steps:Cr}=Ut,[nr,ur]=rt(lr,"circle");let{strokeWidth:Nn}=Ut;Nn===void 0&&(Nn=Math.max(At(nr),6));const In={width:nr,height:ur,fontSize:nr*.15+6},Wn=te.useMemo(()=>{if(ln||ln===0)return ln;if(Mn==="dashboard")return 75},[ln,Mn]),Kn=ut(Ut),Ln=kt||Mn==="dashboard"&&"bottom"||void 0,$n=Object.prototype.toString.call(Ut.strokeColor)==="[object Object]",ar=Qe({success:mr,strokeColor:Ut.strokeColor}),dn=fe()(`${rn}-inner`,{[`${rn}-circle-gradient`]:$n}),Ie=te.createElement(ze,{steps:Cr,percent:Cr?Kn[1]:Kn,strokeWidth:Nn,trailWidth:Nn,strokeColor:Cr?ar[1]:ar,strokeLinecap:Bn,trailColor:_n,prefixCls:rn,gapDegree:Wn,gapPosition:Ln}),je=nr<=20,Je=te.createElement("div",{className:dn,style:In},Ie,!je&&Qn);return je?te.createElement(Ne.Z,{title:Qn},Je):Je},Ct=Ce(36237),Yt=Ce(63356),zt=Ce(16931),Xe=Ce(51636);const Fe="--progress-line-stroke-color",Le="--progress-percent",Ze=Ut=>{const rn=Ut?"100%":"-100%";return new Ct.Keyframes(`antProgress${Ut?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${rn}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${rn}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},et=Ut=>{const{componentCls:rn,iconCls:_n}=Ut;return{[rn]:Object.assign(Object.assign({},(0,Yt.Wf)(Ut)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Ut.fontSize},[`${rn}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${rn}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:Ut.remainingColor,borderRadius:Ut.lineBorderRadius},[`${rn}-inner:not(${rn}-circle-gradient)`]:{[`${rn}-circle-path`]:{stroke:Ut.defaultColor}},[`${rn}-success-bg, ${rn}-bg`]:{position:"relative",background:Ut.defaultColor,borderRadius:Ut.lineBorderRadius,transition:`all ${Ut.motionDurationSlow} ${Ut.motionEaseInOutCirc}`},[`${rn}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${rn}-text`]:{width:"max-content",marginInlineStart:0,marginTop:Ut.marginXXS}},[`${rn}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Fe})`]},height:"100%",width:`calc(1 / var(${Le}) * 100%)`,display:"block"},[`&${rn}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${rn}-text-inner`]:{color:Ut.colorWhite,[`&${rn}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${rn}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Ut.colorSuccess},[`${rn}-text`]:{display:"inline-block",marginInlineStart:Ut.marginXS,color:Ut.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[_n]:{fontSize:Ut.fontSize},[`&${rn}-text-outer`]:{width:"max-content"},[`&${rn}-text-outer${rn}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:Ut.marginXS}},[`${rn}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,Ct.unit)(Ut.paddingXXS)}`,[`&${rn}-text-start`]:{justifyContent:"start"},[`&${rn}-text-end`]:{justifyContent:"end"}},[`&${rn}-status-active`]:{[`${rn}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Ut.colorBgContainer,borderRadius:Ut.lineBorderRadius,opacity:0,animationName:Ze(),animationDuration:Ut.progressActiveMotionDuration,animationTimingFunction:Ut.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${rn}-rtl${rn}-status-active`]:{[`${rn}-bg::before`]:{animationName:Ze(!0)}},[`&${rn}-status-exception`]:{[`${rn}-bg`]:{backgroundColor:Ut.colorError},[`${rn}-text`]:{color:Ut.colorError}},[`&${rn}-status-exception ${rn}-inner:not(${rn}-circle-gradient)`]:{[`${rn}-circle-path`]:{stroke:Ut.colorError}},[`&${rn}-status-success`]:{[`${rn}-bg`]:{backgroundColor:Ut.colorSuccess},[`${rn}-text`]:{color:Ut.colorSuccess}},[`&${rn}-status-success ${rn}-inner:not(${rn}-circle-gradient)`]:{[`${rn}-circle-path`]:{stroke:Ut.colorSuccess}}})}},He=Ut=>{const{componentCls:rn,iconCls:_n}=Ut;return{[rn]:{[`${rn}-circle-trail`]:{stroke:Ut.remainingColor},[`&${rn}-circle ${rn}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${rn}-circle ${rn}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Ut.circleTextColor,fontSize:Ut.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[_n]:{fontSize:Ut.circleIconFontSize}},[`${rn}-circle&-status-exception`]:{[`${rn}-text`]:{color:Ut.colorError}},[`${rn}-circle&-status-success`]:{[`${rn}-text`]:{color:Ut.colorSuccess}}},[`${rn}-inline-circle`]:{lineHeight:1,[`${rn}-inner`]:{verticalAlign:"bottom"}}}},We=Ut=>{const{componentCls:rn}=Ut;return{[rn]:{[`${rn}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Ut.progressStepMinWidth,marginInlineEnd:Ut.progressStepMarginInlineEnd,backgroundColor:Ut.remainingColor,transition:`all ${Ut.motionDurationSlow}`,"&-active":{backgroundColor:Ut.defaultColor}}}}}},tt=Ut=>{const{componentCls:rn,iconCls:_n}=Ut;return{[rn]:{[`${rn}-small&-line, ${rn}-small&-line ${rn}-text ${_n}`]:{fontSize:Ut.fontSizeSM}}}},at=Ut=>({circleTextColor:Ut.colorText,defaultColor:Ut.colorInfo,remainingColor:Ut.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Ut.fontSize/Ut.fontSizeSM}em`});var ot=(0,zt.I$)("Progress",Ut=>{const rn=Ut.calc(Ut.marginXXS).div(2).equal(),_n=(0,Xe.mergeToken)(Ut,{progressStepMarginInlineEnd:rn,progressStepMinWidth:rn,progressActiveMotionDuration:"2.4s"});return[et(_n),He(_n),We(_n),tt(_n)]},at),ct=function(Ut,rn){var _n={};for(var Bn in Ut)Object.prototype.hasOwnProperty.call(Ut,Bn)&&rn.indexOf(Bn)<0&&(_n[Bn]=Ut[Bn]);if(Ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,Bn=Object.getOwnPropertySymbols(Ut);kt<Bn.length;kt++)rn.indexOf(Bn[kt])<0&&Object.prototype.propertyIsEnumerable.call(Ut,Bn[kt])&&(_n[Bn[kt]]=Ut[Bn[kt]]);return _n};const lt=Ut=>{let rn=[];return Object.keys(Ut).forEach(_n=>{const Bn=parseFloat(_n.replace(/%/g,""));Number.isNaN(Bn)||rn.push({key:Bn,value:Ut[_n]})}),rn=rn.sort((_n,Bn)=>_n.key-Bn.key),rn.map(_n=>{let{key:Bn,value:kt}=_n;return`${kt} ${Bn}%`}).join(", ")},mt=(Ut,rn)=>{const{from:_n=Re.presetPrimaryColors.blue,to:Bn=Re.presetPrimaryColors.blue,direction:kt=rn==="rtl"?"to left":"to right"}=Ut,ln=ct(Ut,["from","to","direction"]);if(Object.keys(ln).length!==0){const Mn=lt(ln),Qn=`linear-gradient(${kt}, ${Mn})`;return{background:Qn,[Fe]:Qn}}const Cn=`linear-gradient(${kt}, ${_n}, ${Bn})`;return{background:Cn,[Fe]:Cn}};var ft=Ut=>{const{prefixCls:rn,direction:_n,percent:Bn,size:kt,strokeWidth:ln,strokeColor:Cn,strokeLinecap:Mn="round",children:Qn,trailColor:mr=null,percentPosition:lr,success:Cr}=Ut,{align:nr,type:ur}=lr,Nn=Cn&&typeof Cn!="string"?mt(Cn,_n):{[Fe]:Cn,background:Cn},In=Mn==="square"||Mn==="butt"?0:void 0,Wn=kt!=null?kt:[-1,ln||(kt==="small"?6:8)],[Kn,Ln]=rt(Wn,"line",{strokeWidth:ln}),$n={backgroundColor:mr||void 0,borderRadius:In},ar=Object.assign(Object.assign({width:`${$e(Bn)}%`,height:Ln,borderRadius:In},Nn),{[Le]:$e(Bn)/100}),dn=nt(Ut),Ie={width:`${$e(dn)}%`,height:Ln,borderRadius:In,backgroundColor:Cr==null?void 0:Cr.strokeColor},je={width:Kn<0?"100%":Kn},Je=te.createElement("div",{className:`${rn}-inner`,style:$n},te.createElement("div",{className:fe()(`${rn}-bg`,`${rn}-bg-${ur}`),style:ar},ur==="inner"&&Qn),dn!==void 0&&te.createElement("div",{className:`${rn}-success-bg`,style:Ie})),ht=ur==="outer"&&nr==="start",Et=ur==="outer"&&nr==="end";return ur==="outer"&&nr==="center"?te.createElement("div",{className:`${rn}-layout-bottom`},Je,Qn):te.createElement("div",{className:`${rn}-outer`,style:je},ht&&Qn,Je,Et&&Qn)},nn=Ut=>{const{size:rn,steps:_n,rounding:Bn=Math.round,percent:kt=0,strokeWidth:ln=8,strokeColor:Cn,trailColor:Mn=null,prefixCls:Qn,children:mr}=Ut,lr=Bn(_n*(kt/100)),Cr=rn==="small"?2:14,nr=rn!=null?rn:[Cr,ln],[ur,Nn]=rt(nr,"step",{steps:_n,strokeWidth:ln}),In=ur/_n,Wn=Array.from({length:_n});for(let Kn=0;Kn<_n;Kn++){const Ln=Array.isArray(Cn)?Cn[Kn]:Cn;Wn[Kn]=te.createElement("div",{key:Kn,className:fe()(`${Qn}-steps-item`,{[`${Qn}-steps-item-active`]:Kn<=lr-1}),style:{backgroundColor:Kn<=lr-1?Ln:Mn,width:In,height:Nn}})}return te.createElement("div",{className:`${Qn}-steps-outer`},Wn,mr)},on=function(Ut,rn){var _n={};for(var Bn in Ut)Object.prototype.hasOwnProperty.call(Ut,Bn)&&rn.indexOf(Bn)<0&&(_n[Bn]=Ut[Bn]);if(Ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,Bn=Object.getOwnPropertySymbols(Ut);kt<Bn.length;kt++)rn.indexOf(Bn[kt])<0&&Object.prototype.propertyIsEnumerable.call(Ut,Bn[kt])&&(_n[Bn[kt]]=Ut[Bn[kt]]);return _n};const yn=null,xn=["normal","exception","active","success"];var An=te.forwardRef((Ut,rn)=>{const{prefixCls:_n,className:Bn,rootClassName:kt,steps:ln,strokeColor:Cn,percent:Mn=0,size:Qn="default",showInfo:mr=!0,type:lr="line",status:Cr,format:nr,style:ur,percentPosition:Nn={}}=Ut,In=on(Ut,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:Wn="end",type:Kn="outer"}=Nn,Ln=Array.isArray(Cn)?Cn[0]:Cn,$n=typeof Cn=="string"||Array.isArray(Cn)?Cn:void 0,ar=te.useMemo(()=>{if(Ln){const Rt=typeof Ln=="string"?Ln:Object.values(Ln)[0];return new Ye.FastColor(Rt).isLight()}return!1},[Cn]),dn=te.useMemo(()=>{var Rt,jt;const Mt=nt(Ut);return parseInt(Mt!==void 0?(Rt=Mt!=null?Mt:0)===null||Rt===void 0?void 0:Rt.toString():(jt=Mn!=null?Mn:0)===null||jt===void 0?void 0:jt.toString(),10)},[Mn,Ut.success,Ut.successPercent]),Ie=te.useMemo(()=>!xn.includes(Cr)&&dn>=100?"success":Cr||"normal",[Cr,dn]),{getPrefixCls:je,direction:Je,progress:ht}=te.useContext(le.E_),Et=je("progress",_n),[Qt,fn,sn]=ot(Et),mn=lr==="line",Zn=mn&&!ln,tr=te.useMemo(()=>{if(!mr)return null;const Rt=nt(Ut);let jt;const Mt=nr||(yt=>`${yt}%`),Kt=mn&&ar&&Kn==="inner";return Kn==="inner"||nr||Ie!=="exception"&&Ie!=="success"?jt=Mt($e(Mn),$e(Rt)):Ie==="exception"?jt=mn?te.createElement(Oe.Z,null):te.createElement(ve.Z,null):Ie==="success"&&(jt=mn?te.createElement(Me.Z,null):te.createElement(pe.Z,null)),te.createElement("span",{className:fe()(`${Et}-text`,{[`${Et}-text-bright`]:Kt,[`${Et}-text-${Wn}`]:Zn,[`${Et}-text-${Kn}`]:Zn}),title:typeof jt=="string"?jt:void 0},jt)},[mr,Mn,dn,Ie,lr,Et,nr]);let Vt;lr==="line"?Vt=ln?te.createElement(nn,Object.assign({},Ut,{strokeColor:$n,prefixCls:Et,steps:typeof ln=="object"?ln.count:ln}),tr):te.createElement(ft,Object.assign({},Ut,{strokeColor:Ln,prefixCls:Et,direction:Je,percentPosition:{align:Wn,type:Kn}}),tr):(lr==="circle"||lr==="dashboard")&&(Vt=te.createElement(Ft,Object.assign({},Ut,{strokeColor:Ln,prefixCls:Et,progressStatus:Ie}),tr));const Gt=fe()(Et,`${Et}-status-${Ie}`,{[`${Et}-${lr==="dashboard"&&"circle"||lr}`]:lr!=="line",[`${Et}-inline-circle`]:lr==="circle"&&rt(Qn,"circle")[0]<=20,[`${Et}-line`]:Zn,[`${Et}-line-align-${Wn}`]:Zn,[`${Et}-line-position-${Kn}`]:Zn,[`${Et}-steps`]:ln,[`${Et}-show-info`]:mr,[`${Et}-${Qn}`]:typeof Qn=="string",[`${Et}-rtl`]:Je==="rtl"},ht==null?void 0:ht.className,Bn,kt,fn,sn);return Qt(te.createElement("div",Object.assign({ref:rn,style:Object.assign(Object.assign({},ht==null?void 0:ht.style),ur),className:Gt,role:"progressbar","aria-valuenow":dn,"aria-valuemin":0,"aria-valuemax":100},(0,he.Z)(In,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Vt))}),Jt=An},63139:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return ut}});var te=Ce(59301),Ye=Ce(60499),Me={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"},pe=Me,Oe=Ce(7657),ve=function(rt,pt){return te.createElement(Oe.Z,(0,Ye.Z)({},rt,{ref:pt,icon:pe}))},ue=te.forwardRef(ve),fe=ue,he=Ce(92310),le=Ce.n(he),ae=Ce(18642),ie=Ce(72190),me=Ce(42244),E=Ce(18929),b=Ce(10228),z=Ce(26112);function ne(Qe,rt){var pt=Qe.disabled,At=Qe.prefixCls,gt=Qe.character,Ft=Qe.characterRender,Ct=Qe.index,Yt=Qe.count,zt=Qe.value,Xe=Qe.allowHalf,Fe=Qe.focused,Le=Qe.onHover,Ze=Qe.onClick,et=function(mt){Le(mt,Ct)},He=function(mt){Ze(mt,Ct)},We=function(mt){mt.keyCode===b.Z.ENTER&&Ze(mt,Ct)},tt=Ct+1,at=new Set([At]);zt===0&&Ct===0&&Fe?at.add("".concat(At,"-focused")):Xe&&zt+.5>=tt&&zt<tt?(at.add("".concat(At,"-half")),at.add("".concat(At,"-active")),Fe&&at.add("".concat(At,"-focused"))):(tt<=zt?at.add("".concat(At,"-full")):at.add("".concat(At,"-zero")),tt===zt&&Fe&&at.add("".concat(At,"-focused")));var ot=typeof gt=="function"?gt(Qe):gt,ct=te.createElement("li",{className:le()(Array.from(at)),ref:rt},te.createElement("div",{onClick:pt?null:He,onKeyDown:pt?null:We,onMouseMove:pt?null:et,role:"radio","aria-checked":zt>Ct?"true":"false","aria-posinset":Ct+1,"aria-setsize":Yt,tabIndex:pt?-1:0},te.createElement("div",{className:"".concat(At,"-first")},ot),te.createElement("div",{className:"".concat(At,"-second")},ot)));return Ft&&(ct=Ft(ct,Qe)),ct}var oe=te.forwardRef(ne);function se(){var Qe=te.useRef({});function rt(At){return Qe.current[At]}function pt(At){return function(gt){Qe.current[At]=gt}}return[rt,pt]}function de(Qe){var rt=Qe.pageXOffset,pt="scrollLeft";if(typeof rt!="number"){var At=Qe.document;rt=At.documentElement[pt],typeof rt!="number"&&(rt=At.body[pt])}return rt}function a(Qe){var rt,pt,At=Qe.ownerDocument,gt=At.body,Ft=At&&At.documentElement,Ct=Qe.getBoundingClientRect();return rt=Ct.left,pt=Ct.top,rt-=Ft.clientLeft||gt.clientLeft||0,pt-=Ft.clientTop||gt.clientTop||0,{left:rt,top:pt}}function x(Qe){var rt=a(Qe),pt=Qe.ownerDocument,At=pt.defaultView||pt.parentWindow;return rt.left+=de(At),rt.left}var re=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function ce(Qe,rt){var pt=Qe.prefixCls,At=pt===void 0?"rc-rate":pt,gt=Qe.className,Ft=Qe.defaultValue,Ct=Qe.value,Yt=Qe.count,zt=Yt===void 0?5:Yt,Xe=Qe.allowHalf,Fe=Xe===void 0?!1:Xe,Le=Qe.allowClear,Ze=Le===void 0?!0:Le,et=Qe.keyboard,He=et===void 0?!0:et,We=Qe.character,tt=We===void 0?"\u2605":We,at=Qe.characterRender,ot=Qe.disabled,ct=Qe.direction,lt=ct===void 0?"ltr":ct,mt=Qe.tabIndex,Lt=mt===void 0?0:mt,ft=Qe.autoFocus,St=Qe.onHoverChange,nn=Qe.onChange,on=Qe.onFocus,yn=Qe.onBlur,xn=Qe.onKeyDown,an=Qe.onMouseLeave,An=(0,me.Z)(Qe,re),Jt=se(),Ut=(0,ie.Z)(Jt,2),rn=Ut[0],_n=Ut[1],Bn=te.useRef(null),kt=function(){if(!ot){var tr;(tr=Bn.current)===null||tr===void 0||tr.focus()}};te.useImperativeHandle(rt,function(){return{focus:kt,blur:function(){if(!ot){var tr;(tr=Bn.current)===null||tr===void 0||tr.blur()}}}});var ln=(0,E.Z)(Ft||0,{value:Ct}),Cn=(0,ie.Z)(ln,2),Mn=Cn[0],Qn=Cn[1],mr=(0,E.Z)(null),lr=(0,ie.Z)(mr,2),Cr=lr[0],nr=lr[1],ur=function(tr,Vt){var Gt=lt==="rtl",Rt=tr+1;if(Fe){var jt=rn(tr),Mt=x(jt),Kt=jt.clientWidth;(Gt&&Vt-Mt>Kt/2||!Gt&&Vt-Mt<Kt/2)&&(Rt-=.5)}return Rt},Nn=function(tr){Qn(tr),nn==null||nn(tr)},In=te.useState(!1),Wn=(0,ie.Z)(In,2),Kn=Wn[0],Ln=Wn[1],$n=function(){Ln(!0),on==null||on()},ar=function(){Ln(!1),yn==null||yn()},dn=te.useState(null),Ie=(0,ie.Z)(dn,2),je=Ie[0],Je=Ie[1],ht=function(tr,Vt){var Gt=ur(Vt,tr.pageX);Gt!==Cr&&(Je(Gt),nr(null)),St==null||St(Gt)},Et=function(tr){ot||(Je(null),nr(null),St==null||St(void 0)),tr&&(an==null||an(tr))},Qt=function(tr,Vt){var Gt=ur(Vt,tr.pageX),Rt=!1;Ze&&(Rt=Gt===Mn),Et(),Nn(Rt?0:Gt),nr(Rt?Gt:null)},fn=function(tr){var Vt=tr.keyCode,Gt=lt==="rtl",Rt=Fe?.5:1;He&&(Vt===b.Z.RIGHT&&Mn<zt&&!Gt?(Nn(Mn+Rt),tr.preventDefault()):Vt===b.Z.LEFT&&Mn>0&&!Gt||Vt===b.Z.RIGHT&&Mn>0&&Gt?(Nn(Mn-Rt),tr.preventDefault()):Vt===b.Z.LEFT&&Mn<zt&&Gt&&(Nn(Mn+Rt),tr.preventDefault())),xn==null||xn(tr)};te.useEffect(function(){ft&&!ot&&kt()},[]);var sn=new Array(zt).fill(0).map(function(Zn,tr){return te.createElement(oe,{ref:_n(tr),index:tr,count:zt,disabled:ot,prefixCls:"".concat(At,"-star"),allowHalf:Fe,value:je===null?Mn:je,onClick:Qt,onHover:ht,key:Zn||tr,character:tt,characterRender:at,focused:Kn})}),mn=le()(At,gt,(0,ae.Z)((0,ae.Z)({},"".concat(At,"-disabled"),ot),"".concat(At,"-rtl"),lt==="rtl"));return te.createElement("ul",(0,Ye.Z)({className:mn,onMouseLeave:Et,tabIndex:ot?-1:Lt,onFocus:ot?null:$n,onBlur:ot?null:ar,onKeyDown:ot?null:fn,ref:Bn},(0,z.Z)(An,{aria:!0,data:!0,attr:!0})),sn)}var ge=te.forwardRef(ce),_e=ge,ye=Ce(48755),be=Ce(25399),Se=Ce(36237),Be=Ce(63356),Ae=Ce(16931),we=Ce(51636);const Ue=Qe=>{const{componentCls:rt}=Qe;return{[`${rt}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Qe.marginXS},"> div":{transition:`all ${Qe.motionDurationMid}, outline 0s`,"&:hover":{transform:Qe.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,Se.unit)(Qe.lineWidth)} dashed ${Qe.starColor}`,transform:Qe.starHoverScale}},"&-first, &-second":{color:Qe.starBg,transition:`all ${Qe.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${rt}-star-first, &-half ${rt}-star-second`]:{opacity:1},[`&-half ${rt}-star-first, &-full ${rt}-star-second`]:{color:"inherit"}}}},Pe=Qe=>({[`&-rtl${Qe.componentCls}`]:{direction:"rtl"}}),ze=Qe=>{const{componentCls:rt}=Qe;return{[rt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Be.Wf)(Qe)),{display:"inline-block",margin:0,padding:0,color:Qe.starColor,fontSize:Qe.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${rt} ${rt}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Ue(Qe)),Pe(Qe))}},Ke=Qe=>({starColor:Qe.yellow6,starSize:Qe.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Qe.colorFillContent});var Ne=(0,Ae.I$)("Rate",Qe=>{const rt=(0,we.mergeToken)(Qe,{});return[ze(rt)]},Ke),Re=Ce(2171),$e=function(Qe,rt){var pt={};for(var At in Qe)Object.prototype.hasOwnProperty.call(Qe,At)&&rt.indexOf(At)<0&&(pt[At]=Qe[At]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,At=Object.getOwnPropertySymbols(Qe);gt<At.length;gt++)rt.indexOf(At[gt])<0&&Object.prototype.propertyIsEnumerable.call(Qe,At[gt])&&(pt[At[gt]]=Qe[At[gt]]);return pt},ut=te.forwardRef((Qe,rt)=>{const{prefixCls:pt,className:At,rootClassName:gt,style:Ft,tooltips:Ct,character:Yt=te.createElement(fe,null),disabled:zt}=Qe,Xe=$e(Qe,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),Fe=(mt,Lt)=>{let{index:ft}=Lt;return Ct?te.createElement(be.Z,{title:Ct[ft]},mt):mt},{getPrefixCls:Le,direction:Ze,rate:et}=te.useContext(ye.E_),He=Le("rate",pt),[We,tt,at]=Ne(He),ot=Object.assign(Object.assign({},et==null?void 0:et.style),Ft),ct=te.useContext(Re.Z),lt=zt!=null?zt:ct;return We(te.createElement(_e,Object.assign({ref:rt,character:Yt,characterRender:Fe,disabled:lt},Xe,{className:le()(At,gt,tt,at,et==null?void 0:et.className),style:ot,prefixCls:He,direction:Ze})))})},82326:function(Yn,en,Ce){"use strict";var te=Ce(59301),Ye=Ce(92310),Me=Ce.n(Ye),pe=Ce(37463),Oe=Ce(2738),ve=Ce(75030),ue=Ce(86641),fe=Ce(45915),he=Ce(82855),le=Ce(48755),ae=Ce(38406),ie=Ce(2171),me=Ce(83397),E=Ce(31756),b=Ce(56553),z=Ce(24971),ne=Ce(70045),oe=Ce(57700),se=Ce(1722),de=Ce(90376),a=Ce(68525),x=Ce(90005),re=function(be,Se){var Be={};for(var Ae in be)Object.prototype.hasOwnProperty.call(be,Ae)&&Se.indexOf(Ae)<0&&(Be[Ae]=be[Ae]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,Ae=Object.getOwnPropertySymbols(be);we<Ae.length;we++)Se.indexOf(Ae[we])<0&&Object.prototype.propertyIsEnumerable.call(be,Ae[we])&&(Be[Ae[we]]=be[Ae[we]]);return Be};const ce="SECRET_COMBOBOX_MODE_DO_NOT_USE",ge=(be,Se)=>{var Be;const{prefixCls:Ae,bordered:we,className:Ue,rootClassName:Pe,getPopupContainer:ze,popupClassName:Ke,dropdownClassName:Ne,listHeight:Re=256,placement:$e,listItemHeight:nt,size:ut,disabled:Qe,notFoundContent:rt,status:pt,builtinPlacements:At,dropdownMatchSelectWidth:gt,popupMatchSelectWidth:Ft,direction:Ct,style:Yt,allowClear:zt,variant:Xe,dropdownStyle:Fe,transitionName:Le,tagRender:Ze,maxCount:et,prefix:He}=be,We=re(be,["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:tt,getPrefixCls:at,renderEmpty:ot,direction:ct,virtual:lt,popupMatchSelectWidth:mt,popupOverflow:Lt}=te.useContext(le.E_),ft=(0,le.dj)("select"),[,St]=(0,oe.ZP)(),nn=nt!=null?nt:St==null?void 0:St.controlHeight,on=at("select",Ae),yn=at(),xn=Ct!=null?Ct:ct,{compactSize:an,compactItemClassnames:An}=(0,ne.ri)(on,xn),[Jt,Ut]=(0,z.Z)("select",Xe,we),rn=(0,me.Z)(on),[_n,Bn,kt]=(0,de.Z)(on,rn),ln=te.useMemo(()=>{const{mode:fn}=be;if(fn!=="combobox")return fn===ce?"combobox":fn},[be.mode]),Cn=ln==="multiple"||ln==="tags",Mn=(0,x.Z)(be.suffixIcon,be.showArrow),Qn=(Be=Ft!=null?Ft:gt)!==null&&Be!==void 0?Be:mt,{status:mr,hasFeedback:lr,isFormItemInput:Cr,feedbackIcon:nr}=te.useContext(b.aM),ur=(0,he.F)(mr,pt);let Nn;rt!==void 0?Nn=rt:ln==="combobox"?Nn=null:Nn=(ot==null?void 0:ot("Select"))||te.createElement(ae.Z,{componentName:"Select"});const{suffixIcon:In,itemIcon:Wn,removeIcon:Kn,clearIcon:Ln}=(0,a.Z)(Object.assign(Object.assign({},We),{multiple:Cn,hasFeedback:lr,feedbackIcon:nr,showSuffixIcon:Mn,prefixCls:on,componentName:"Select"})),$n=zt===!0?{clearIcon:Ln}:zt,ar=(0,Oe.Z)(We,["suffixIcon","itemIcon"]),dn=Me()(Ke||Ne,{[`${on}-dropdown-${xn}`]:xn==="rtl"},Pe,kt,rn,Bn),Ie=(0,E.Z)(fn=>{var sn;return(sn=ut!=null?ut:an)!==null&&sn!==void 0?sn:fn}),je=te.useContext(ie.Z),Je=Qe!=null?Qe:je,ht=Me()({[`${on}-lg`]:Ie==="large",[`${on}-sm`]:Ie==="small",[`${on}-rtl`]:xn==="rtl",[`${on}-${Jt}`]:Ut,[`${on}-in-form-item`]:Cr},(0,he.Z)(on,ur,lr),An,ft.className,Ue,Pe,kt,rn,Bn),Et=te.useMemo(()=>$e!==void 0?$e:xn==="rtl"?"bottomRight":"bottomLeft",[$e,xn]),[Qt]=(0,ve.Cn)("SelectLike",Fe==null?void 0:Fe.zIndex);return _n(te.createElement(pe.ZP,Object.assign({ref:Se,virtual:lt,showSearch:ft.showSearch},ar,{style:Object.assign(Object.assign({},ft.style),Yt),dropdownMatchSelectWidth:Qn,transitionName:(0,ue.m)(yn,"slide-up",Le),builtinPlacements:(0,se.Z)(At,Lt),listHeight:Re,listItemHeight:nn,mode:ln,prefixCls:on,placement:Et,direction:xn,prefix:He,suffixIcon:In,menuItemSelectedIcon:Wn,removeIcon:Kn,allowClear:$n,notFoundContent:Nn,className:ht,getPopupContainer:ze||tt,dropdownClassName:dn,disabled:Je,dropdownStyle:Object.assign(Object.assign({},Fe),{zIndex:Qt}),maxCount:Cn?et:void 0,tagRender:Cn?Ze:void 0})))},_e=te.forwardRef(ge),ye=(0,fe.Z)(_e,"dropdownAlign");_e.SECRET_COMBOBOX_MODE_DO_NOT_USE=ce,_e.Option=pe.Wx,_e.OptGroup=pe.Xo,_e._InternalPanelDoNotUseOrYouWillBeFired=ye,en.default=_e},1722:function(Yn,en){"use strict";const Ce=Ye=>{const pe={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Ye==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},pe),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},pe),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},pe),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},pe),{points:["br","tr"],offset:[0,-4]})}};function te(Ye,Me){return Ye||Ce(Me)}en.Z=te},90376:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return Ae}});var te=Ce(63356),Ye=Ce(56119),Me=Ce(16931),pe=Ce(51636),Oe=Ce(46e3),ve=Ce(93873);const ue=we=>{const{optionHeight:Ue,optionFontSize:Pe,optionLineHeight:ze,optionPadding:Ke}=we;return{position:"relative",display:"block",minHeight:Ue,padding:Ke,color:we.colorText,fontWeight:"normal",fontSize:Pe,lineHeight:ze,boxSizing:"border-box"}};var he=we=>{const{antCls:Ue,componentCls:Pe}=we,ze=`${Pe}-item`,Ke=`&${Ue}-slide-up-enter${Ue}-slide-up-enter-active`,Ne=`&${Ue}-slide-up-appear${Ue}-slide-up-appear-active`,Re=`&${Ue}-slide-up-leave${Ue}-slide-up-leave-active`,$e=`${Pe}-dropdown-placement-`,nt=`${ze}-option-selected`;return[{[`${Pe}-dropdown`]:Object.assign(Object.assign({},(0,te.Wf)(we)),{position:"absolute",top:-9999,zIndex:we.zIndexPopup,boxSizing:"border-box",padding:we.paddingXXS,overflow:"hidden",fontSize:we.fontSize,fontVariant:"initial",backgroundColor:we.colorBgElevated,borderRadius:we.borderRadiusLG,outline:"none",boxShadow:we.boxShadowSecondary,[`
|
|
|
${Ke}${$e}bottomLeft,
|
|
|
${Ne}${$e}bottomLeft
|
|
|
`]:{animationName:Oe.fJ},[`
|
|
|
${Ke}${$e}topLeft,
|
|
|
${Ne}${$e}topLeft,
|
|
|
${Ke}${$e}topRight,
|
|
|
${Ne}${$e}topRight
|
|
|
`]:{animationName:Oe.Qt},[`${Re}${$e}bottomLeft`]:{animationName:Oe.Uw},[`
|
|
|
${Re}${$e}topLeft,
|
|
|
${Re}${$e}topRight
|
|
|
`]:{animationName:Oe.ly},"&-hidden":{display:"none"},[ze]:Object.assign(Object.assign({},ue(we)),{cursor:"pointer",transition:`background ${we.motionDurationSlow} ease`,borderRadius:we.borderRadiusSM,"&-group":{color:we.colorTextDescription,fontSize:we.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},te.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${ze}-option-disabled)`]:{backgroundColor:we.optionActiveBg},[`&-selected:not(${ze}-option-disabled)`]:{color:we.optionSelectedColor,fontWeight:we.optionSelectedFontWeight,backgroundColor:we.optionSelectedBg,[`${ze}-option-state`]:{color:we.colorPrimary}},"&-disabled":{[`&${ze}-option-selected`]:{backgroundColor:we.colorBgContainerDisabled},color:we.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:we.calc(we.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},ue(we)),{color:we.colorTextDisabled})}),[`${nt}:has(+ ${nt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${nt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,Oe.oN)(we,"slide-up"),(0,Oe.oN)(we,"slide-down"),(0,ve.Fm)(we,"move-up"),(0,ve.Fm)(we,"move-down")]},le=Ce(26743),ae=Ce(36237);function ie(we,Ue){const{componentCls:Pe,inputPaddingHorizontalBase:ze,borderRadius:Ke}=we,Ne=we.calc(we.controlHeight).sub(we.calc(we.lineWidth).mul(2)).equal(),Re=Ue?`${Pe}-${Ue}`:"";return{[`${Pe}-single${Re}`]:{fontSize:we.fontSize,height:we.controlHeight,[`${Pe}-selector`]:Object.assign(Object.assign({},(0,te.Wf)(we,!0)),{display:"flex",borderRadius:Ke,flex:"1 1 auto",[`${Pe}-selection-wrap:after`]:{lineHeight:(0,ae.unit)(Ne)},[`${Pe}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
|
${Pe}-selection-item,
|
|
|
${Pe}-selection-placeholder
|
|
|
`]:{display:"block",padding:0,lineHeight:(0,ae.unit)(Ne),transition:`all ${we.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Pe}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Pe}-selection-item:empty:after`,`${Pe}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Pe}-show-arrow ${Pe}-selection-item,
|
|
|
&${Pe}-show-arrow ${Pe}-selection-search,
|
|
|
&${Pe}-show-arrow ${Pe}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:we.showArrowPaddingInlineEnd},[`&${Pe}-open ${Pe}-selection-item`]:{color:we.colorTextPlaceholder},[`&:not(${Pe}-customize-input)`]:{[`${Pe}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,ae.unit)(ze)}`,[`${Pe}-selection-search-input`]:{height:Ne,fontSize:we.fontSize},"&:after":{lineHeight:(0,ae.unit)(Ne)}}},[`&${Pe}-customize-input`]:{[`${Pe}-selector`]:{"&:after":{display:"none"},[`${Pe}-selection-search`]:{position:"static",width:"100%"},[`${Pe}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,ae.unit)(ze)}`,"&:after":{display:"none"}}}}}}}function me(we){const{componentCls:Ue}=we,Pe=we.calc(we.controlPaddingHorizontalSM).sub(we.lineWidth).equal();return[ie(we),ie((0,pe.mergeToken)(we,{controlHeight:we.controlHeightSM,borderRadius:we.borderRadiusSM}),"sm"),{[`${Ue}-single${Ue}-sm`]:{[`&:not(${Ue}-customize-input)`]:{[`${Ue}-selector`]:{padding:`0 ${(0,ae.unit)(Pe)}`},[`&${Ue}-show-arrow ${Ue}-selection-search`]:{insetInlineEnd:we.calc(Pe).add(we.calc(we.fontSize).mul(1.5)).equal()},[`
|
|
|
&${Ue}-show-arrow ${Ue}-selection-item,
|
|
|
&${Ue}-show-arrow ${Ue}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:we.calc(we.fontSize).mul(1.5).equal()}}}},ie((0,pe.mergeToken)(we,{controlHeight:we.singleItemHeightLG,fontSize:we.fontSizeLG,borderRadius:we.borderRadiusLG}),"lg")]}const E=we=>{const{fontSize:Ue,lineHeight:Pe,lineWidth:ze,controlHeight:Ke,controlHeightSM:Ne,controlHeightLG:Re,paddingXXS:$e,controlPaddingHorizontal:nt,zIndexPopupBase:ut,colorText:Qe,fontWeightStrong:rt,controlItemBgActive:pt,controlItemBgHover:At,colorBgContainer:gt,colorFillSecondary:Ft,colorBgContainerDisabled:Ct,colorTextDisabled:Yt,colorPrimaryHover:zt,colorPrimary:Xe,controlOutline:Fe}=we,Le=$e*2,Ze=ze*2,et=Math.min(Ke-Le,Ke-Ze),He=Math.min(Ne-Le,Ne-Ze),We=Math.min(Re-Le,Re-Ze);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor($e/2),zIndexPopup:ut+50,optionSelectedColor:Qe,optionSelectedFontWeight:rt,optionSelectedBg:pt,optionActiveBg:At,optionPadding:`${(Ke-Ue*Pe)/2}px ${nt}px`,optionFontSize:Ue,optionLineHeight:Pe,optionHeight:Ke,selectorBg:gt,clearBg:gt,singleItemHeightLG:Re,multipleItemBg:Ft,multipleItemBorderColor:"transparent",multipleItemHeight:et,multipleItemHeightSM:He,multipleItemHeightLG:We,multipleSelectorBgDisabled:Ct,multipleItemColorDisabled:Yt,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(we.fontSize*1.25),hoverBorderColor:zt,activeBorderColor:Xe,activeOutlineColor:Fe,selectAffixPadding:$e}},b=(we,Ue)=>{const{componentCls:Pe,antCls:ze,controlOutlineWidth:Ke}=we;return{[`&:not(${Pe}-customize-input) ${Pe}-selector`]:{border:`${(0,ae.unit)(we.lineWidth)} ${we.lineType} ${Ue.borderColor}`,background:we.selectorBg},[`&:not(${Pe}-disabled):not(${Pe}-customize-input):not(${ze}-pagination-size-changer)`]:{[`&:hover ${Pe}-selector`]:{borderColor:Ue.hoverBorderHover},[`${Pe}-focused& ${Pe}-selector`]:{borderColor:Ue.activeBorderColor,boxShadow:`0 0 0 ${(0,ae.unit)(Ke)} ${Ue.activeOutlineColor}`,outline:0},[`${Pe}-prefix`]:{color:Ue.color}}}},z=(we,Ue)=>({[`&${we.componentCls}-status-${Ue.status}`]:Object.assign({},b(we,Ue))}),ne=we=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},b(we,{borderColor:we.colorBorder,hoverBorderHover:we.hoverBorderColor,activeBorderColor:we.activeBorderColor,activeOutlineColor:we.activeOutlineColor,color:we.colorText})),z(we,{status:"error",borderColor:we.colorError,hoverBorderHover:we.colorErrorHover,activeBorderColor:we.colorError,activeOutlineColor:we.colorErrorOutline,color:we.colorError})),z(we,{status:"warning",borderColor:we.colorWarning,hoverBorderHover:we.colorWarningHover,activeBorderColor:we.colorWarning,activeOutlineColor:we.colorWarningOutline,color:we.colorWarning})),{[`&${we.componentCls}-disabled`]:{[`&:not(${we.componentCls}-customize-input) ${we.componentCls}-selector`]:{background:we.colorBgContainerDisabled,color:we.colorTextDisabled}},[`&${we.componentCls}-multiple ${we.componentCls}-selection-item`]:{background:we.multipleItemBg,border:`${(0,ae.unit)(we.lineWidth)} ${we.lineType} ${we.multipleItemBorderColor}`}})}),oe=(we,Ue)=>{const{componentCls:Pe,antCls:ze}=we;return{[`&:not(${Pe}-customize-input) ${Pe}-selector`]:{background:Ue.bg,border:`${(0,ae.unit)(we.lineWidth)} ${we.lineType} transparent`,color:Ue.color},[`&:not(${Pe}-disabled):not(${Pe}-customize-input):not(${ze}-pagination-size-changer)`]:{[`&:hover ${Pe}-selector`]:{background:Ue.hoverBg},[`${Pe}-focused& ${Pe}-selector`]:{background:we.selectorBg,borderColor:Ue.activeBorderColor,outline:0}}}},se=(we,Ue)=>({[`&${we.componentCls}-status-${Ue.status}`]:Object.assign({},oe(we,Ue))}),de=we=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},oe(we,{bg:we.colorFillTertiary,hoverBg:we.colorFillSecondary,activeBorderColor:we.activeBorderColor,color:we.colorText})),se(we,{status:"error",bg:we.colorErrorBg,hoverBg:we.colorErrorBgHover,activeBorderColor:we.colorError,color:we.colorError})),se(we,{status:"warning",bg:we.colorWarningBg,hoverBg:we.colorWarningBgHover,activeBorderColor:we.colorWarning,color:we.colorWarning})),{[`&${we.componentCls}-disabled`]:{[`&:not(${we.componentCls}-customize-input) ${we.componentCls}-selector`]:{borderColor:we.colorBorder,background:we.colorBgContainerDisabled,color:we.colorTextDisabled}},[`&${we.componentCls}-multiple ${we.componentCls}-selection-item`]:{background:we.colorBgContainer,border:`${(0,ae.unit)(we.lineWidth)} ${we.lineType} ${we.colorSplit}`}})}),a=we=>({"&-borderless":{[`${we.componentCls}-selector`]:{background:"transparent",border:`${(0,ae.unit)(we.lineWidth)} ${we.lineType} transparent`},[`&${we.componentCls}-disabled`]:{[`&:not(${we.componentCls}-customize-input) ${we.componentCls}-selector`]:{color:we.colorTextDisabled}},[`&${we.componentCls}-multiple ${we.componentCls}-selection-item`]:{background:we.multipleItemBg,border:`${(0,ae.unit)(we.lineWidth)} ${we.lineType} ${we.multipleItemBorderColor}`},[`&${we.componentCls}-status-error`]:{[`${we.componentCls}-prefix, ${we.componentCls}-selection-item`]:{color:we.colorError}},[`&${we.componentCls}-status-warning`]:{[`${we.componentCls}-prefix, ${we.componentCls}-selection-item`]:{color:we.colorWarning}}}}),x=(we,Ue)=>{const{componentCls:Pe,antCls:ze}=we;return{[`&:not(${Pe}-customize-input) ${Pe}-selector`]:{borderWidth:`0 0 ${(0,ae.unit)(we.lineWidth)} 0`,borderStyle:`none none ${we.lineType} none`,borderColor:Ue.borderColor,background:we.selectorBg,borderRadius:0},[`&:not(${Pe}-disabled):not(${Pe}-customize-input):not(${ze}-pagination-size-changer)`]:{[`&:hover ${Pe}-selector`]:{borderColor:Ue.hoverBorderHover},[`${Pe}-focused& ${Pe}-selector`]:{borderColor:Ue.activeBorderColor,outline:0},[`${Pe}-prefix`]:{color:Ue.color}}}},re=(we,Ue)=>({[`&${we.componentCls}-status-${Ue.status}`]:Object.assign({},x(we,Ue))}),ce=we=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},x(we,{borderColor:we.colorBorder,hoverBorderHover:we.hoverBorderColor,activeBorderColor:we.activeBorderColor,activeOutlineColor:we.activeOutlineColor,color:we.colorText})),re(we,{status:"error",borderColor:we.colorError,hoverBorderHover:we.colorErrorHover,activeBorderColor:we.colorError,activeOutlineColor:we.colorErrorOutline,color:we.colorError})),re(we,{status:"warning",borderColor:we.colorWarning,hoverBorderHover:we.colorWarningHover,activeBorderColor:we.colorWarning,activeOutlineColor:we.colorWarningOutline,color:we.colorWarning})),{[`&${we.componentCls}-disabled`]:{[`&:not(${we.componentCls}-customize-input) ${we.componentCls}-selector`]:{color:we.colorTextDisabled}},[`&${we.componentCls}-multiple ${we.componentCls}-selection-item`]:{background:we.multipleItemBg,border:`${(0,ae.unit)(we.lineWidth)} ${we.lineType} ${we.multipleItemBorderColor}`}})});var _e=we=>({[we.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},ne(we)),de(we)),a(we)),ce(we))});const ye=we=>{const{componentCls:Ue}=we;return{position:"relative",transition:`all ${we.motionDurationMid} ${we.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ue}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Ue}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},be=we=>{const{componentCls:Ue}=we;return{[`${Ue}-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"}}}},Se=we=>{const{antCls:Ue,componentCls:Pe,inputPaddingHorizontalBase:ze,iconCls:Ke}=we;return{[Pe]:Object.assign(Object.assign({},(0,te.Wf)(we)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Pe}-customize-input) ${Pe}-selector`]:Object.assign(Object.assign({},ye(we)),be(we)),[`${Pe}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},te.vS),{[`> ${Ue}-typography`]:{display:"inline"}}),[`${Pe}-selection-placeholder`]:Object.assign(Object.assign({},te.vS),{flex:1,color:we.colorTextPlaceholder,pointerEvents:"none"}),[`${Pe}-arrow`]:Object.assign(Object.assign({},(0,te.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:ze,height:we.fontSizeIcon,marginTop:we.calc(we.fontSizeIcon).mul(-1).div(2).equal(),color:we.colorTextQuaternary,fontSize:we.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${we.motionDurationSlow} ease`,[Ke]:{verticalAlign:"top",transition:`transform ${we.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Pe}-suffix)`]:{pointerEvents:"auto"}},[`${Pe}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Pe}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${Pe}-prefix`]:{flex:"none",marginInlineEnd:we.selectAffixPadding},[`${Pe}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:ze,zIndex:1,display:"inline-block",width:we.fontSizeIcon,height:we.fontSizeIcon,marginTop:we.calc(we.fontSizeIcon).mul(-1).div(2).equal(),color:we.colorTextQuaternary,fontSize:we.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${we.motionDurationMid} ease, opacity ${we.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:we.colorTextTertiary}},[`&:hover ${Pe}-clear`]:{opacity:1,background:we.colorBgBase,borderRadius:"50%"}}),[`${Pe}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Pe}-has-feedback`]:{[`${Pe}-clear`]:{insetInlineEnd:we.calc(ze).add(we.fontSize).add(we.paddingXS).equal()}}}}}},Be=we=>{const{componentCls:Ue}=we;return[{[Ue]:{[`&${Ue}-in-form-item`]:{width:"100%"}}},Se(we),me(we),(0,le.ZP)(we),he(we),{[`${Ue}-rtl`]:{direction:"rtl"}},(0,Ye.c)(we,{borderElCls:`${Ue}-selector`,focusElCls:`${Ue}-focused`})]};var Ae=(0,Me.I$)("Select",(we,Ue)=>{let{rootPrefixCls:Pe}=Ue;const ze=(0,pe.mergeToken)(we,{rootPrefixCls:Pe,inputPaddingHorizontalBase:we.calc(we.paddingSM).sub(1).equal(),multipleSelectItemHeight:we.multipleItemHeight,selectHeight:we.controlHeight});return[Be(ze),_e(ze)]},E,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(Yn,en,Ce){"use strict";Ce.d(en,{_z:function(){return ve},gp:function(){return pe}});var te=Ce(36237),Ye=Ce(63356),Me=Ce(51636);const pe=le=>{const{multipleSelectItemHeight:ae,paddingXXS:ie,lineWidth:me,INTERNAL_FIXED_ITEM_MARGIN:E}=le,b=le.max(le.calc(ie).sub(me).equal(),0),z=le.max(le.calc(b).sub(E).equal(),0);return{basePadding:b,containerPadding:z,itemHeight:(0,te.unit)(ae),itemLineHeight:(0,te.unit)(le.calc(ae).sub(le.calc(le.lineWidth).mul(2)).equal())}},Oe=le=>{const{multipleSelectItemHeight:ae,selectHeight:ie,lineWidth:me}=le;return le.calc(ie).sub(ae).div(2).sub(me).equal()},ve=le=>{const{componentCls:ae,iconCls:ie,borderRadiusSM:me,motionDurationSlow:E,paddingXS:b,multipleItemColorDisabled:z,multipleItemBorderColorDisabled:ne,colorIcon:oe,colorIconHover:se,INTERNAL_FIXED_ITEM_MARGIN:de}=le;return{[`${ae}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${ae}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:de,borderRadius:me,cursor:"default",transition:`font-size ${E}, line-height ${E}, height ${E}`,marginInlineEnd:le.calc(de).mul(2).equal(),paddingInlineStart:b,paddingInlineEnd:le.calc(b).div(2).equal(),[`${ae}-disabled&`]:{color:z,borderColor:ne,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:le.calc(b).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Ye.Ro)()),{display:"inline-flex",alignItems:"center",color:oe,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${ie}`]:{verticalAlign:"-0.2em"},"&:hover":{color:se}})}}}},ue=(le,ae)=>{const{componentCls:ie,INTERNAL_FIXED_ITEM_MARGIN:me}=le,E=`${ie}-selection-overflow`,b=le.multipleSelectItemHeight,z=Oe(le),ne=ae?`${ie}-${ae}`:"",oe=pe(le);return{[`${ie}-multiple${ne}`]:Object.assign(Object.assign({},ve(le)),{[`${ie}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:oe.basePadding,paddingBlock:oe.containerPadding,borderRadius:le.borderRadius,[`${ie}-disabled&`]:{background:le.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,te.unit)(me)} 0`,lineHeight:(0,te.unit)(b),visibility:"hidden",content:'"\\a0"'}},[`${ie}-selection-item`]:{height:oe.itemHeight,lineHeight:(0,te.unit)(oe.itemLineHeight)},[`${ie}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,te.unit)(b),marginBlock:me}},[`${ie}-prefix`]:{marginInlineStart:le.calc(le.inputPaddingHorizontalBase).sub(oe.basePadding).equal()},[`${E}-item + ${E}-item,
|
|
|
${ie}-prefix + ${ie}-selection-wrap
|
|
|
`]:{[`${ie}-selection-search`]:{marginInlineStart:0},[`${ie}-selection-placeholder`]:{insetInlineStart:0}},[`${E}-item-suffix`]:{minHeight:oe.itemHeight,marginBlock:me},[`${ie}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:le.calc(le.inputPaddingHorizontalBase).sub(z).equal(),"\n &-input,\n &-mirror\n ":{height:b,fontFamily:le.fontFamily,lineHeight:(0,te.unit)(b),transition:`all ${le.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${ie}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:le.calc(le.inputPaddingHorizontalBase).sub(oe.basePadding).equal(),insetInlineEnd:le.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${le.motionDurationSlow}`}})}};function fe(le,ae){const{componentCls:ie}=le,me=ae?`${ie}-${ae}`:"",E={[`${ie}-multiple${me}`]:{fontSize:le.fontSize,[`${ie}-selector`]:{[`${ie}-show-search&`]:{cursor:"text"}},[`
|
|
|
&${ie}-show-arrow ${ie}-selector,
|
|
|
&${ie}-allow-clear ${ie}-selector
|
|
|
`]:{paddingInlineEnd:le.calc(le.fontSizeIcon).add(le.controlPaddingHorizontal).equal()}}};return[ue(le,ae),E]}const he=le=>{const{componentCls:ae}=le,ie=(0,Me.mergeToken)(le,{selectHeight:le.controlHeightSM,multipleSelectItemHeight:le.multipleItemHeightSM,borderRadius:le.borderRadiusSM,borderRadiusSM:le.borderRadiusXS}),me=(0,Me.mergeToken)(le,{fontSize:le.fontSizeLG,selectHeight:le.controlHeightLG,multipleSelectItemHeight:le.multipleItemHeightLG,borderRadius:le.borderRadiusLG,borderRadiusSM:le.borderRadius});return[fe(le),fe(ie,"sm"),{[`${ae}-multiple${ae}-sm`]:{[`${ae}-selection-placeholder`]:{insetInline:le.calc(le.controlPaddingHorizontalSM).sub(le.lineWidth).equal()},[`${ae}-selection-search`]:{marginInlineStart:2}}},fe(me,"lg")]};en.ZP=he},68525:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(59301),Ye=Ce(40001),Me=Ce(19248),pe=Ce(99267),Oe=Ce(84105),ve=Ce(58617),ue=Ce(47472);function fe(he){let{suffixIcon:le,clearIcon:ae,menuItemSelectedIcon:ie,removeIcon:me,loading:E,multiple:b,hasFeedback:z,prefixCls:ne,showSuffixIcon:oe,feedbackIcon:se,showArrow:de,componentName:a}=he;const x=ae!=null?ae:te.createElement(Me.Z,null),re=ye=>le===null&&!z&&!de?null:te.createElement(te.Fragment,null,oe!==!1&&ye,z&&se);let ce=null;if(le!==void 0)ce=re(le);else if(E)ce=re(te.createElement(ve.Z,{spin:!0}));else{const ye=`${ne}-suffix`;ce=be=>{let{open:Se,showSearch:Be}=be;return re(Se&&Be?te.createElement(ue.Z,{className:ye}):te.createElement(Oe.Z,{className:ye}))}}let ge=null;ie!==void 0?ge=ie:b?ge=te.createElement(Ye.Z,null):ge=null;let _e=null;return me!==void 0?_e=me:_e=te.createElement(pe.Z,null),{clearIcon:x,suffixIcon:ce,itemIcon:ge,removeIcon:_e}}},90005:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return te}});function te(Ye,Me){return Me!==void 0?Me:Ye!==null}},11938:function(Yn,en,Ce){"use strict";Ce.d(en,{default:function(){return be}});var te=Ce(59301),Ye=Ce(40192),Me=Ce(22703),pe=Ce(92310),Oe=Ce.n(pe),ve=Ce(26112),ue=Ce(48755),fe=Ce(458),le=Se=>{const{value:Be,formatter:Ae,precision:we,decimalSeparator:Ue,groupSeparator:Pe="",prefixCls:ze}=Se;let Ke;if(typeof Ae=="function")Ke=Ae(Be);else{const Ne=String(Be),Re=Ne.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Re||Ne==="-")Ke=Ne;else{const $e=Re[1];let nt=Re[2]||"0",ut=Re[4]||"";nt=nt.replace(/\B(?=(\d{3})+(?!\d))/g,Pe),typeof we=="number"&&(ut=ut.padEnd(we,"0").slice(0,we>0?we:0)),ut&&(ut=`${Ue}${ut}`),Ke=[te.createElement("span",{key:"int",className:`${ze}-content-value-int`},$e,nt),ut&&te.createElement("span",{key:"decimal",className:`${ze}-content-value-decimal`},ut)]}}return te.createElement("span",{className:`${ze}-content-value`},Ke)},ae=Ce(63356),ie=Ce(16931),me=Ce(51636);const E=Se=>{const{componentCls:Be,marginXXS:Ae,padding:we,colorTextDescription:Ue,titleFontSize:Pe,colorTextHeading:ze,contentFontSize:Ke,fontFamily:Ne}=Se;return{[Be]:Object.assign(Object.assign({},(0,ae.Wf)(Se)),{[`${Be}-title`]:{marginBottom:Ae,color:Ue,fontSize:Pe},[`${Be}-skeleton`]:{paddingTop:we},[`${Be}-content`]:{color:ze,fontSize:Ke,fontFamily:Ne,[`${Be}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Be}-content-prefix, ${Be}-content-suffix`]:{display:"inline-block"},[`${Be}-content-prefix`]:{marginInlineEnd:Ae},[`${Be}-content-suffix`]:{marginInlineStart:Ae}}})}},b=Se=>{const{fontSizeHeading3:Be,fontSize:Ae}=Se;return{titleFontSize:Ae,contentFontSize:Be}};var z=(0,ie.I$)("Statistic",Se=>{const Be=(0,me.mergeToken)(Se,{});return[E(Be)]},b),ne=function(Se,Be){var Ae={};for(var we in Se)Object.prototype.hasOwnProperty.call(Se,we)&&Be.indexOf(we)<0&&(Ae[we]=Se[we]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,we=Object.getOwnPropertySymbols(Se);Ue<we.length;Ue++)Be.indexOf(we[Ue])<0&&Object.prototype.propertyIsEnumerable.call(Se,we[Ue])&&(Ae[we[Ue]]=Se[we[Ue]]);return Ae},se=Se=>{const{prefixCls:Be,className:Ae,rootClassName:we,style:Ue,valueStyle:Pe,value:ze=0,title:Ke,valueRender:Ne,prefix:Re,suffix:$e,loading:nt=!1,formatter:ut,precision:Qe,decimalSeparator:rt=".",groupSeparator:pt=",",onMouseEnter:At,onMouseLeave:gt}=Se,Ft=ne(Se,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:Ct,direction:Yt,className:zt,style:Xe}=(0,ue.dj)("statistic"),Fe=Ct("statistic",Be),[Le,Ze,et]=z(Fe),He=te.createElement(le,{decimalSeparator:rt,groupSeparator:pt,prefixCls:Fe,formatter:ut,precision:Qe,value:ze}),We=Oe()(Fe,{[`${Fe}-rtl`]:Yt==="rtl"},zt,Ae,we,Ze,et),tt=(0,ve.Z)(Ft,{aria:!0,data:!0});return Le(te.createElement("div",Object.assign({},tt,{className:We,style:Object.assign(Object.assign({},Xe),Ue),onMouseEnter:At,onMouseLeave:gt}),Ke&&te.createElement("div",{className:`${Fe}-title`},Ke),te.createElement(fe.Z,{paragraph:!1,loading:nt,className:`${Fe}-skeleton`},te.createElement("div",{style:Pe,className:`${Fe}-content`},Re&&te.createElement("span",{className:`${Fe}-content-prefix`},Re),Ne?Ne(He):He,$e&&te.createElement("span",{className:`${Fe}-content-suffix`},$e)))))};const de=[["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 a(Se,Be){let Ae=Se;const we=/\[[^\]]*]/g,Ue=(Be.match(we)||[]).map(Ne=>Ne.slice(1,-1)),Pe=Be.replace(we,"[]"),ze=de.reduce((Ne,Re)=>{let[$e,nt]=Re;if(Ne.includes($e)){const ut=Math.floor(Ae/nt);return Ae-=ut*nt,Ne.replace(new RegExp(`${$e}+`,"g"),Qe=>{const rt=Qe.length;return ut.toString().padStart(rt,"0")})}return Ne},Pe);let Ke=0;return ze.replace(we,()=>{const Ne=Ue[Ke];return Ke+=1,Ne})}function x(Se,Be){const{format:Ae=""}=Be,we=new Date(Se).getTime(),Ue=Date.now(),Pe=Math.max(we-Ue,0);return a(Pe,Ae)}var re=function(Se,Be){var Ae={};for(var we in Se)Object.prototype.hasOwnProperty.call(Se,we)&&Be.indexOf(we)<0&&(Ae[we]=Se[we]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,we=Object.getOwnPropertySymbols(Se);Ue<we.length;Ue++)Be.indexOf(we[Ue])<0&&Object.prototype.propertyIsEnumerable.call(Se,we[Ue])&&(Ae[we[Ue]]=Se[we[Ue]]);return Ae};const ce=1e3/30;function ge(Se){return new Date(Se).getTime()}const _e=Se=>{const{value:Be,format:Ae="HH:mm:ss",onChange:we,onFinish:Ue}=Se,Pe=re(Se,["value","format","onChange","onFinish"]),ze=(0,Ye.Z)(),Ke=te.useRef(null),Ne=()=>{Ue==null||Ue(),Ke.current&&(clearInterval(Ke.current),Ke.current=null)},Re=()=>{const ut=ge(Be);ut>=Date.now()&&(Ke.current=setInterval(()=>{ze(),we==null||we(ut-Date.now()),ut<Date.now()&&Ne()},ce))};te.useEffect(()=>(Re(),()=>{Ke.current&&(clearInterval(Ke.current),Ke.current=null)}),[Be]);const $e=(ut,Qe)=>x(ut,Object.assign(Object.assign({},Qe),{format:Ae})),nt=ut=>(0,Me.Tm)(ut,{title:void 0});return te.createElement(se,Object.assign({},Pe,{value:Be,valueRender:nt,formatter:$e}))};var ye=te.memo(_e);se.Countdown=ye;var be=se},58755:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return Ue}});var te=Ce(59301),Ye=Ce(58617),Me=Ce(92310),pe=Ce.n(Me),Oe=Ce(60499),ve=Ce(18642),ue=Ce(72190),fe=Ce(42244),he=Ce(18929),le=Ce(10228),ae=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ie=te.forwardRef(function(Pe,ze){var Ke,Ne=Pe.prefixCls,Re=Ne===void 0?"rc-switch":Ne,$e=Pe.className,nt=Pe.checked,ut=Pe.defaultChecked,Qe=Pe.disabled,rt=Pe.loadingIcon,pt=Pe.checkedChildren,At=Pe.unCheckedChildren,gt=Pe.onClick,Ft=Pe.onChange,Ct=Pe.onKeyDown,Yt=(0,fe.Z)(Pe,ae),zt=(0,he.Z)(!1,{value:nt,defaultValue:ut}),Xe=(0,ue.Z)(zt,2),Fe=Xe[0],Le=Xe[1];function Ze(tt,at){var ot=Fe;return Qe||(ot=tt,Le(ot),Ft==null||Ft(ot,at)),ot}function et(tt){tt.which===le.Z.LEFT?Ze(!1,tt):tt.which===le.Z.RIGHT&&Ze(!0,tt),Ct==null||Ct(tt)}function He(tt){var at=Ze(!Fe,tt);gt==null||gt(at,tt)}var We=pe()(Re,$e,(Ke={},(0,ve.Z)(Ke,"".concat(Re,"-checked"),Fe),(0,ve.Z)(Ke,"".concat(Re,"-disabled"),Qe),Ke));return te.createElement("button",(0,Oe.Z)({},Yt,{type:"button",role:"switch","aria-checked":Fe,disabled:Qe,className:We,ref:ze,onKeyDown:et,onClick:He}),rt,te.createElement("span",{className:"".concat(Re,"-inner")},te.createElement("span",{className:"".concat(Re,"-inner-checked")},pt),te.createElement("span",{className:"".concat(Re,"-inner-unchecked")},At)))});ie.displayName="Switch";var me=ie,E=Ce(12919),b=Ce(48755),z=Ce(2171),ne=Ce(31756),oe=Ce(36237),se=Ce(17835),de=Ce(63356),a=Ce(16931),x=Ce(51636);const re=Pe=>{const{componentCls:ze,trackHeightSM:Ke,trackPadding:Ne,trackMinWidthSM:Re,innerMinMarginSM:$e,innerMaxMarginSM:nt,handleSizeSM:ut,calc:Qe}=Pe,rt=`${ze}-inner`,pt=(0,oe.unit)(Qe(ut).add(Qe(Ne).mul(2)).equal()),At=(0,oe.unit)(Qe(nt).mul(2).equal());return{[ze]:{[`&${ze}-small`]:{minWidth:Re,height:Ke,lineHeight:(0,oe.unit)(Ke),[`${ze}-inner`]:{paddingInlineStart:nt,paddingInlineEnd:$e,[`${rt}-checked, ${rt}-unchecked`]:{minHeight:Ke},[`${rt}-checked`]:{marginInlineStart:`calc(-100% + ${pt} - ${At})`,marginInlineEnd:`calc(100% - ${pt} + ${At})`},[`${rt}-unchecked`]:{marginTop:Qe(Ke).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${ze}-handle`]:{width:ut,height:ut},[`${ze}-loading-icon`]:{top:Qe(Qe(ut).sub(Pe.switchLoadingIconSize)).div(2).equal(),fontSize:Pe.switchLoadingIconSize},[`&${ze}-checked`]:{[`${ze}-inner`]:{paddingInlineStart:$e,paddingInlineEnd:nt,[`${rt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${rt}-unchecked`]:{marginInlineStart:`calc(100% - ${pt} + ${At})`,marginInlineEnd:`calc(-100% + ${pt} - ${At})`}},[`${ze}-handle`]:{insetInlineStart:`calc(100% - ${(0,oe.unit)(Qe(ut).add(Ne).equal())})`}},[`&:not(${ze}-disabled):active`]:{[`&:not(${ze}-checked) ${rt}`]:{[`${rt}-unchecked`]:{marginInlineStart:Qe(Pe.marginXXS).div(2).equal(),marginInlineEnd:Qe(Pe.marginXXS).mul(-1).div(2).equal()}},[`&${ze}-checked ${rt}`]:{[`${rt}-checked`]:{marginInlineStart:Qe(Pe.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Qe(Pe.marginXXS).div(2).equal()}}}}}}},ce=Pe=>{const{componentCls:ze,handleSize:Ke,calc:Ne}=Pe;return{[ze]:{[`${ze}-loading-icon${Pe.iconCls}`]:{position:"relative",top:Ne(Ne(Ke).sub(Pe.fontSize)).div(2).equal(),color:Pe.switchLoadingIconColor,verticalAlign:"top"},[`&${ze}-checked ${ze}-loading-icon`]:{color:Pe.switchColor}}}},ge=Pe=>{const{componentCls:ze,trackPadding:Ke,handleBg:Ne,handleShadow:Re,handleSize:$e,calc:nt}=Pe,ut=`${ze}-handle`;return{[ze]:{[ut]:{position:"absolute",top:Ke,insetInlineStart:Ke,width:$e,height:$e,transition:`all ${Pe.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Ne,borderRadius:nt($e).div(2).equal(),boxShadow:Re,transition:`all ${Pe.switchDuration} ease-in-out`,content:'""'}},[`&${ze}-checked ${ut}`]:{insetInlineStart:`calc(100% - ${(0,oe.unit)(nt($e).add(Ke).equal())})`},[`&:not(${ze}-disabled):active`]:{[`${ut}::before`]:{insetInlineEnd:Pe.switchHandleActiveInset,insetInlineStart:0},[`&${ze}-checked ${ut}::before`]:{insetInlineEnd:0,insetInlineStart:Pe.switchHandleActiveInset}}}}},_e=Pe=>{const{componentCls:ze,trackHeight:Ke,trackPadding:Ne,innerMinMargin:Re,innerMaxMargin:$e,handleSize:nt,calc:ut}=Pe,Qe=`${ze}-inner`,rt=(0,oe.unit)(ut(nt).add(ut(Ne).mul(2)).equal()),pt=(0,oe.unit)(ut($e).mul(2).equal());return{[ze]:{[Qe]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:$e,paddingInlineEnd:Re,transition:`padding-inline-start ${Pe.switchDuration} ease-in-out, padding-inline-end ${Pe.switchDuration} ease-in-out`,[`${Qe}-checked, ${Qe}-unchecked`]:{display:"block",color:Pe.colorTextLightSolid,fontSize:Pe.fontSizeSM,transition:`margin-inline-start ${Pe.switchDuration} ease-in-out, margin-inline-end ${Pe.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:Ke},[`${Qe}-checked`]:{marginInlineStart:`calc(-100% + ${rt} - ${pt})`,marginInlineEnd:`calc(100% - ${rt} + ${pt})`},[`${Qe}-unchecked`]:{marginTop:ut(Ke).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${ze}-checked ${Qe}`]:{paddingInlineStart:Re,paddingInlineEnd:$e,[`${Qe}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Qe}-unchecked`]:{marginInlineStart:`calc(100% - ${rt} + ${pt})`,marginInlineEnd:`calc(-100% + ${rt} - ${pt})`}},[`&:not(${ze}-disabled):active`]:{[`&:not(${ze}-checked) ${Qe}`]:{[`${Qe}-unchecked`]:{marginInlineStart:ut(Ne).mul(2).equal(),marginInlineEnd:ut(Ne).mul(-1).mul(2).equal()}},[`&${ze}-checked ${Qe}`]:{[`${Qe}-checked`]:{marginInlineStart:ut(Ne).mul(-1).mul(2).equal(),marginInlineEnd:ut(Ne).mul(2).equal()}}}}}},ye=Pe=>{const{componentCls:ze,trackHeight:Ke,trackMinWidth:Ne}=Pe;return{[ze]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,de.Wf)(Pe)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Ne,height:Ke,lineHeight:(0,oe.unit)(Ke),verticalAlign:"middle",background:Pe.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Pe.motionDurationMid}`,userSelect:"none",[`&:hover:not(${ze}-disabled)`]:{background:Pe.colorTextTertiary}}),(0,de.Qy)(Pe)),{[`&${ze}-checked`]:{background:Pe.switchColor,[`&:hover:not(${ze}-disabled)`]:{background:Pe.colorPrimaryHover}},[`&${ze}-loading, &${ze}-disabled`]:{cursor:"not-allowed",opacity:Pe.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${ze}-rtl`]:{direction:"rtl"}})}},be=Pe=>{const{fontSize:ze,lineHeight:Ke,controlHeight:Ne,colorWhite:Re}=Pe,$e=ze*Ke,nt=Ne/2,ut=2,Qe=$e-ut*2,rt=nt-ut*2;return{trackHeight:$e,trackHeightSM:nt,trackMinWidth:Qe*2+ut*4,trackMinWidthSM:rt*2+ut*2,trackPadding:ut,handleBg:Re,handleSize:Qe,handleSizeSM:rt,handleShadow:`0 2px 4px 0 ${new se.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:Qe/2,innerMaxMargin:Qe+ut+ut*2,innerMinMarginSM:rt/2,innerMaxMarginSM:rt+ut+ut*2}};var Se=(0,a.I$)("Switch",Pe=>{const ze=(0,x.mergeToken)(Pe,{switchDuration:Pe.motionDurationMid,switchColor:Pe.colorPrimary,switchDisabledOpacity:Pe.opacityLoading,switchLoadingIconSize:Pe.calc(Pe.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Pe.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ye(ze),_e(ze),ge(ze),ce(ze),re(ze)]},be),Be=function(Pe,ze){var Ke={};for(var Ne in Pe)Object.prototype.hasOwnProperty.call(Pe,Ne)&&ze.indexOf(Ne)<0&&(Ke[Ne]=Pe[Ne]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Ne=Object.getOwnPropertySymbols(Pe);Re<Ne.length;Re++)ze.indexOf(Ne[Re])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Ne[Re])&&(Ke[Ne[Re]]=Pe[Ne[Re]]);return Ke};const we=te.forwardRef((Pe,ze)=>{const{prefixCls:Ke,size:Ne,disabled:Re,loading:$e,className:nt,rootClassName:ut,style:Qe,checked:rt,value:pt,defaultChecked:At,defaultValue:gt,onChange:Ft}=Pe,Ct=Be(Pe,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Yt,zt]=(0,he.Z)(!1,{value:rt!=null?rt:pt,defaultValue:At!=null?At:gt}),{getPrefixCls:Xe,direction:Fe,switch:Le}=te.useContext(b.E_),Ze=te.useContext(z.Z),et=(Re!=null?Re:Ze)||$e,He=Xe("switch",Ke),We=te.createElement("div",{className:`${He}-handle`},$e&&te.createElement(Ye.Z,{className:`${He}-loading-icon`})),[tt,at,ot]=Se(He),ct=(0,ne.Z)(Ne),lt=pe()(Le==null?void 0:Le.className,{[`${He}-small`]:ct==="small",[`${He}-loading`]:$e,[`${He}-rtl`]:Fe==="rtl"},nt,ut,at,ot),mt=Object.assign(Object.assign({},Le==null?void 0:Le.style),Qe),Lt=function(){zt(arguments.length<=0?void 0:arguments[0]),Ft==null||Ft.apply(void 0,arguments)};return tt(te.createElement(E.Z,{component:"Switch"},te.createElement(me,Object.assign({},Ct,{checked:Yt,onChange:Lt,prefixCls:He,className:lt,style:mt,disabled:et,ref:ze,loadingIcon:We}))))});we.__ANT_SWITCH=!0;var Ue=we},70858:function(Yn,en,Ce){"use strict";Ce.d(en,{default:function(){return Bo}});var te=Ce(59301),Ye={},Me="rc-table-internal-hook",pe=Ce(72190),Oe=Ce(6089),ve=Ce(34280),ue=Ce(13697),fe=Ce(4676);function he(_t){var xt=te.createContext(void 0),Xt=function(wn){var Rn=wn.value,qn=wn.children,En=te.useRef(Rn);En.current=Rn;var er=te.useState(function(){return{getValue:function(){return En.current},listeners:new Set}}),Xn=(0,pe.Z)(er,1),Pr=Xn[0];return(0,ve.Z)(function(){(0,fe.unstable_batchedUpdates)(function(){Pr.listeners.forEach(function(yr){yr(Rn)})})},[Rn]),te.createElement(xt.Provider,{value:Pr},qn)};return{Context:xt,Provider:Xt,defaultValue:_t}}function le(_t,xt){var Xt=(0,Oe.Z)(typeof xt=="function"?xt:function(yr){if(xt===void 0)return yr;if(!Array.isArray(xt))return yr[xt];var br={};return xt.forEach(function(gr){br[gr]=yr[gr]}),br}),cn=te.useContext(_t==null?void 0:_t.Context),wn=cn||{},Rn=wn.listeners,qn=wn.getValue,En=te.useRef();En.current=Xt(cn?qn():_t==null?void 0:_t.defaultValue);var er=te.useState({}),Xn=(0,pe.Z)(er,2),Pr=Xn[1];return(0,ve.Z)(function(){if(!cn)return;function yr(br){var gr=Xt(br);(0,ue.Z)(En.current,gr,!0)||Pr({})}return Rn.add(yr),function(){Rn.delete(yr)}},[cn]),En.current}var ae=Ce(60499),ie=Ce(8654);function me(){var _t=te.createContext(null);function xt(){return te.useContext(_t)}function Xt(wn,Rn){var qn=(0,ie.Yr)(wn),En=function(Xn,Pr){var yr=qn?{ref:Pr}:{},br=te.useRef(0),gr=te.useRef(Xn),pr=xt();return pr!==null?te.createElement(wn,(0,ae.Z)({},Xn,yr)):((!Rn||Rn(gr.current,Xn))&&(br.current+=1),gr.current=Xn,te.createElement(_t.Provider,{value:br.current},te.createElement(wn,(0,ae.Z)({},Xn,yr))))};return qn?te.forwardRef(En):En}function cn(wn,Rn){var qn=(0,ie.Yr)(wn),En=function(Xn,Pr){var yr=qn?{ref:Pr}:{};return xt(),te.createElement(wn,(0,ae.Z)({},Xn,yr))};return qn?te.memo(te.forwardRef(En),Rn):te.memo(En,Rn)}return{makeImmutable:Xt,responseImmutable:cn,useImmutableMark:xt}}var E=me(),b=E.makeImmutable,z=E.responseImmutable,ne=E.useImmutableMark,oe=me(),se=oe.makeImmutable,de=oe.responseImmutable,a=oe.useImmutableMark,x=he(),re=x;function ce(_t,xt){var Xt=React.useRef(0);Xt.current+=1;var cn=React.useRef(_t),wn=[];Object.keys(_t||{}).map(function(qn){var En;(_t==null?void 0:_t[qn])!==((En=cn.current)===null||En===void 0?void 0:En[qn])&&wn.push(qn)}),cn.current=_t;var Rn=React.useRef([]);return wn.length&&(Rn.current=wn),React.useDebugValue(Xt.current),React.useDebugValue(Rn.current.join(", ")),xt&&console.log("".concat(xt,":"),Xt.current,Rn.current),Xt.current}var ge=null,_e=null,ye=Ce(43749),be=Ce(85899),Se=Ce(18642),Be=Ce(92310),Ae=Ce.n(Be),we=Ce(80547),Ue=Ce(97938),Pe=Ce(48736),ze=te.createContext({renderWithProps:!1}),Ke=ze,Ne="RC_TABLE_KEY";function Re(_t){return _t==null?[]:Array.isArray(_t)?_t:[_t]}function $e(_t){var xt=[],Xt={};return _t.forEach(function(cn){for(var wn=cn||{},Rn=wn.key,qn=wn.dataIndex,En=Rn||Re(qn).join("-")||Ne;Xt[En];)En="".concat(En,"_next");Xt[En]=!0,xt.push(En)}),xt}function nt(_t){return _t!=null}function ut(_t){return typeof _t=="number"&&!Number.isNaN(_t)}function Qe(_t){return _t&&(0,ye.Z)(_t)==="object"&&!Array.isArray(_t)&&!te.isValidElement(_t)}function rt(_t,xt,Xt,cn,wn,Rn){var qn=te.useContext(Ke),En=a(),er=(0,we.Z)(function(){if(nt(cn))return[cn];var Xn=xt==null||xt===""?[]:Array.isArray(xt)?xt:[xt],Pr=(0,Ue.Z)(_t,Xn),yr=Pr,br=void 0;if(wn){var gr=wn(Pr,_t,Xt);Qe(gr)?(yr=gr.children,br=gr.props,qn.renderWithProps=!0):yr=gr}return[yr,br]},[En,_t,cn,xt,wn,Xt],function(Xn,Pr){if(Rn){var yr=(0,pe.Z)(Xn,2),br=yr[1],gr=(0,pe.Z)(Pr,2),pr=gr[1];return Rn(pr,br)}return qn.renderWithProps?!0:!(0,ue.Z)(Xn,Pr,!0)});return er}function pt(_t,xt,Xt,cn){var wn=_t+xt-1;return _t<=cn&&wn>=Xt}function At(_t,xt){return le(re,function(Xt){var cn=pt(_t,xt||1,Xt.hoverStartRow,Xt.hoverEndRow);return[cn,Xt.onHover]})}var gt=Ce(70425),Ft=function(xt){var Xt=xt.ellipsis,cn=xt.rowType,wn=xt.children,Rn,qn=Xt===!0?{showTitle:!0}:Xt;return qn&&(qn.showTitle||cn==="header")&&(typeof wn=="string"||typeof wn=="number"?Rn=wn.toString():te.isValidElement(wn)&&typeof wn.props.children=="string"&&(Rn=wn.props.children)),Rn};function Ct(_t){var xt,Xt,cn,wn,Rn,qn,En,er,Xn=_t.component,Pr=_t.children,yr=_t.ellipsis,br=_t.scope,gr=_t.prefixCls,pr=_t.className,De=_t.align,ke=_t.record,Ve=_t.render,qe=_t.dataIndex,it=_t.renderIndex,dt=_t.shouldCellUpdate,bt=_t.index,vt=_t.rowType,Nt=_t.colSpan,Pt=_t.rowSpan,Ht=_t.fixLeft,$t=_t.fixRight,hn=_t.firstFixLeft,Pn=_t.lastFixLeft,Dn=_t.firstFixRight,pn=_t.lastFixRight,bn=_t.appendNode,Gn=_t.additionalProps,Un=Gn===void 0?{}:Gn,sr=_t.isSticky,cr="".concat(gr,"-cell"),ni=le(re,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Tr=ni.supportSticky,Si=ni.allColumnsFixedLeft,Ui=ni.rowHoverable,Fi=rt(ke,qe,it,Pr,Ve,dt),jr=(0,pe.Z)(Fi,2),Vr=jr[0],yi=jr[1],zn={},fr=typeof Ht=="number"&&Tr,$r=typeof $t=="number"&&Tr;fr&&(zn.position="sticky",zn.left=Ht),$r&&(zn.position="sticky",zn.right=$t);var xr=(xt=(Xt=(cn=yi==null?void 0:yi.colSpan)!==null&&cn!==void 0?cn:Un.colSpan)!==null&&Xt!==void 0?Xt:Nt)!==null&&xt!==void 0?xt:1,Yr=(wn=(Rn=(qn=yi==null?void 0:yi.rowSpan)!==null&&qn!==void 0?qn:Un.rowSpan)!==null&&Rn!==void 0?Rn:Pt)!==null&&wn!==void 0?wn:1,Lr=At(bt,Yr),Or=(0,pe.Z)(Lr,2),Bi=Or[0],na=Or[1],Oi=(0,gt.zX)(function(oo){var qa;ke&&na(bt,bt+Yr-1),Un==null||(qa=Un.onMouseEnter)===null||qa===void 0||qa.call(Un,oo)}),Ea=(0,gt.zX)(function(oo){var qa;ke&&na(-1,-1),Un==null||(qa=Un.onMouseLeave)===null||qa===void 0||qa.call(Un,oo)});if(xr===0||Yr===0)return null;var Ma=(En=Un.title)!==null&&En!==void 0?En:Ft({rowType:vt,ellipsis:yr,children:Vr}),Na=Ae()(cr,pr,(er={},(0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)(er,"".concat(cr,"-fix-left"),fr&&Tr),"".concat(cr,"-fix-left-first"),hn&&Tr),"".concat(cr,"-fix-left-last"),Pn&&Tr),"".concat(cr,"-fix-left-all"),Pn&&Si&&Tr),"".concat(cr,"-fix-right"),$r&&Tr),"".concat(cr,"-fix-right-first"),Dn&&Tr),"".concat(cr,"-fix-right-last"),pn&&Tr),"".concat(cr,"-ellipsis"),yr),"".concat(cr,"-with-append"),bn),"".concat(cr,"-fix-sticky"),(fr||$r)&&sr&&Tr),(0,Se.Z)(er,"".concat(cr,"-row-hover"),!yi&&Bi)),Un.className,yi==null?void 0:yi.className),ji={};De&&(ji.textAlign=De);var aa=(0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)({},yi==null?void 0:yi.style),zn),ji),Un.style),Ua=Vr;return(0,ye.Z)(Ua)==="object"&&!Array.isArray(Ua)&&!te.isValidElement(Ua)&&(Ua=null),yr&&(Pn||Dn)&&(Ua=te.createElement("span",{className:"".concat(cr,"-content")},Ua)),te.createElement(Xn,(0,ae.Z)({},yi,Un,{className:Na,style:aa,title:Ma,scope:br,onMouseEnter:Ui?Oi:void 0,onMouseLeave:Ui?Ea:void 0,colSpan:xr!==1?xr:null,rowSpan:Yr!==1?Yr:null}),bn,Ua)}var Yt=te.memo(Ct);function zt(_t,xt,Xt,cn,wn){var Rn=Xt[_t]||{},qn=Xt[xt]||{},En,er;Rn.fixed==="left"?En=cn.left[wn==="rtl"?xt:_t]:qn.fixed==="right"&&(er=cn.right[wn==="rtl"?_t:xt]);var Xn=!1,Pr=!1,yr=!1,br=!1,gr=Xt[xt+1],pr=Xt[_t-1],De=gr&&!gr.fixed||pr&&!pr.fixed||Xt.every(function(dt){return dt.fixed==="left"});if(wn==="rtl"){if(En!==void 0){var ke=pr&&pr.fixed==="left";br=!ke&&De}else if(er!==void 0){var Ve=gr&&gr.fixed==="right";yr=!Ve&&De}}else if(En!==void 0){var qe=gr&&gr.fixed==="left";Xn=!qe&&De}else if(er!==void 0){var it=pr&&pr.fixed==="right";Pr=!it&&De}return{fixLeft:En,fixRight:er,lastFixLeft:Xn,firstFixRight:Pr,lastFixRight:yr,firstFixLeft:br,isSticky:cn.isSticky}}var Xe=te.createContext({}),Fe=Xe;function Le(_t){var xt=_t.className,Xt=_t.index,cn=_t.children,wn=_t.colSpan,Rn=wn===void 0?1:wn,qn=_t.rowSpan,En=_t.align,er=le(re,["prefixCls","direction"]),Xn=er.prefixCls,Pr=er.direction,yr=te.useContext(Fe),br=yr.scrollColumnIndex,gr=yr.stickyOffsets,pr=yr.flattenColumns,De=Xt+Rn-1,ke=De+1===br?Rn+1:Rn,Ve=zt(Xt,Xt+ke-1,pr,gr,Pr);return te.createElement(Yt,(0,ae.Z)({className:xt,index:Xt,component:"td",prefixCls:Xn,record:null,dataIndex:null,align:En,colSpan:ke,rowSpan:qn,render:function(){return cn}},Ve))}var Ze=Ce(42244),et=["children"];function He(_t){var xt=_t.children,Xt=(0,Ze.Z)(_t,et);return te.createElement("tr",Xt,xt)}function We(_t){var xt=_t.children;return xt}We.Row=He,We.Cell=Le;var tt=We;function at(_t){var xt=_t.children,Xt=_t.stickyOffsets,cn=_t.flattenColumns,wn=le(re,"prefixCls"),Rn=cn.length-1,qn=cn[Rn],En=te.useMemo(function(){return{stickyOffsets:Xt,flattenColumns:cn,scrollColumnIndex:qn!=null&&qn.scrollbar?Rn:null}},[qn,cn,Rn,Xt]);return te.createElement(Fe.Provider,{value:En},te.createElement("tfoot",{className:"".concat(wn,"-summary")},xt))}var ot=de(at),ct=tt,lt=Ce(29301),mt=Ce(24514),Lt=Ce(75152),ft=Ce(26112);function St(_t,xt,Xt,cn,wn,Rn,qn){_t.push({record:xt,indent:Xt,index:qn});var En=Rn(xt),er=wn==null?void 0:wn.has(En);if(xt&&Array.isArray(xt[cn])&&er)for(var Xn=0;Xn<xt[cn].length;Xn+=1)St(_t,xt[cn][Xn],Xt+1,cn,wn,Rn,Xn)}function nn(_t,xt,Xt,cn){var wn=te.useMemo(function(){if(Xt!=null&&Xt.size){for(var Rn=[],qn=0;qn<(_t==null?void 0:_t.length);qn+=1){var En=_t[qn];St(Rn,En,0,xt,Xt,cn,qn)}return Rn}return _t==null?void 0:_t.map(function(er,Xn){return{record:er,indent:0,index:Xn}})},[_t,xt,Xt,cn]);return wn}function on(_t,xt,Xt,cn){var wn=le(re,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Rn=wn.flattenColumns,qn=wn.expandableType,En=wn.expandedKeys,er=wn.childrenColumnName,Xn=wn.onTriggerExpand,Pr=wn.rowExpandable,yr=wn.onRow,br=wn.expandRowByClick,gr=wn.rowClassName,pr=qn==="nest",De=qn==="row"&&(!Pr||Pr(_t)),ke=De||pr,Ve=En&&En.has(xt),qe=er&&_t&&_t[er],it=(0,gt.zX)(Xn),dt=yr==null?void 0:yr(_t,Xt),bt=dt==null?void 0:dt.onClick,vt=function($t){br&&ke&&Xn(_t,$t);for(var hn=arguments.length,Pn=new Array(hn>1?hn-1:0),Dn=1;Dn<hn;Dn++)Pn[Dn-1]=arguments[Dn];bt==null||bt.apply(void 0,[$t].concat(Pn))},Nt;typeof gr=="string"?Nt=gr:typeof gr=="function"&&(Nt=gr(_t,Xt,cn));var Pt=$e(Rn);return(0,be.Z)((0,be.Z)({},wn),{},{columnsKey:Pt,nestExpandable:pr,expanded:Ve,hasNestChildren:qe,record:_t,onTriggerExpand:it,rowSupportExpand:De,expandable:ke,rowProps:(0,be.Z)((0,be.Z)({},dt),{},{className:Ae()(Nt,dt==null?void 0:dt.className),onClick:vt})})}function yn(_t){var xt=_t.prefixCls,Xt=_t.children,cn=_t.component,wn=_t.cellComponent,Rn=_t.className,qn=_t.expanded,En=_t.colSpan,er=_t.isEmpty,Xn=le(re,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Pr=Xn.scrollbarSize,yr=Xn.fixHeader,br=Xn.fixColumn,gr=Xn.componentWidth,pr=Xn.horizonScroll,De=Xt;return(er?pr&&gr:br)&&(De=te.createElement("div",{style:{width:gr-(yr&&!er?Pr:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(xt,"-expanded-row-fixed")},De)),te.createElement(cn,{className:Rn,style:{display:qn?null:"none"}},te.createElement(Yt,{component:wn,prefixCls:xt,colSpan:En},De))}var xn=yn;function an(_t){var xt=_t.prefixCls,Xt=_t.record,cn=_t.onExpand,wn=_t.expanded,Rn=_t.expandable,qn="".concat(xt,"-row-expand-icon");if(!Rn)return te.createElement("span",{className:Ae()(qn,"".concat(xt,"-row-spaced"))});var En=function(Xn){cn(Xt,Xn),Xn.stopPropagation()};return te.createElement("span",{className:Ae()(qn,(0,Se.Z)((0,Se.Z)({},"".concat(xt,"-row-expanded"),wn),"".concat(xt,"-row-collapsed"),!wn)),onClick:En})}function An(_t,xt,Xt){var cn=[];function wn(Rn){(Rn||[]).forEach(function(qn,En){cn.push(xt(qn,En)),wn(qn[Xt])})}return wn(_t),cn}function Jt(_t,xt,Xt,cn){return typeof _t=="string"?_t:typeof _t=="function"?_t(xt,Xt,cn):""}function Ut(_t,xt,Xt,cn,wn){var Rn=_t.record,qn=_t.prefixCls,En=_t.columnsKey,er=_t.fixedInfoList,Xn=_t.expandIconColumnIndex,Pr=_t.nestExpandable,yr=_t.indentSize,br=_t.expandIcon,gr=_t.expanded,pr=_t.hasNestChildren,De=_t.onTriggerExpand,ke=En[Xt],Ve=er[Xt],qe;Xt===(Xn||0)&&Pr&&(qe=te.createElement(te.Fragment,null,te.createElement("span",{style:{paddingLeft:"".concat(yr*cn,"px")},className:"".concat(qn,"-row-indent indent-level-").concat(cn)}),br({prefixCls:qn,expanded:gr,expandable:pr,record:Rn,onExpand:De})));var it;return xt.onCell&&(it=xt.onCell(Rn,wn)),{key:ke,fixedInfo:Ve,appendCellNode:qe,additionalCellProps:it||{}}}function rn(_t){var xt=_t.className,Xt=_t.style,cn=_t.record,wn=_t.index,Rn=_t.renderIndex,qn=_t.rowKey,En=_t.indent,er=En===void 0?0:En,Xn=_t.rowComponent,Pr=_t.cellComponent,yr=_t.scopeCellComponent,br=on(cn,qn,wn,er),gr=br.prefixCls,pr=br.flattenColumns,De=br.expandedRowClassName,ke=br.expandedRowRender,Ve=br.rowProps,qe=br.expanded,it=br.rowSupportExpand,dt=te.useRef(!1);dt.current||(dt.current=qe);var bt=Jt(De,cn,wn,er),vt=te.createElement(Xn,(0,ae.Z)({},Ve,{"data-row-key":qn,className:Ae()(xt,"".concat(gr,"-row"),"".concat(gr,"-row-level-").concat(er),Ve==null?void 0:Ve.className,(0,Se.Z)({},bt,er>=1)),style:(0,be.Z)((0,be.Z)({},Xt),Ve==null?void 0:Ve.style)}),pr.map(function(Ht,$t){var hn=Ht.render,Pn=Ht.dataIndex,Dn=Ht.className,pn=Ut(br,Ht,$t,er,wn),bn=pn.key,Gn=pn.fixedInfo,Un=pn.appendCellNode,sr=pn.additionalCellProps;return te.createElement(Yt,(0,ae.Z)({className:Dn,ellipsis:Ht.ellipsis,align:Ht.align,scope:Ht.rowScope,component:Ht.rowScope?yr:Pr,prefixCls:gr,key:bn,record:cn,index:wn,renderIndex:Rn,dataIndex:Pn,render:hn,shouldCellUpdate:Ht.shouldCellUpdate},Gn,{appendNode:Un,additionalProps:sr}))})),Nt;if(it&&(dt.current||qe)){var Pt=ke(cn,wn,er+1,qe);Nt=te.createElement(xn,{expanded:qe,className:Ae()("".concat(gr,"-expanded-row"),"".concat(gr,"-expanded-row-level-").concat(er+1),bt),prefixCls:gr,component:Xn,cellComponent:Pr,colSpan:pr.length,isEmpty:!1},Pt)}return te.createElement(te.Fragment,null,vt,Nt)}var _n=de(rn);function Bn(_t){var xt=_t.columnKey,Xt=_t.onColumnResize,cn=te.useRef();return(0,ve.Z)(function(){cn.current&&Xt(xt,cn.current.offsetWidth)},[]),te.createElement(lt.Z,{data:xt},te.createElement("td",{ref:cn,style:{padding:0,border:0,height:0}},te.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var kt=Ce(29194);function ln(_t){var xt=_t.prefixCls,Xt=_t.columnsKey,cn=_t.onColumnResize,wn=te.useRef(null);return te.createElement("tr",{"aria-hidden":"true",className:"".concat(xt,"-measure-row"),style:{height:0,fontSize:0},ref:wn},te.createElement(lt.Z.Collection,{onBatchResize:function(qn){(0,kt.Z)(wn.current)&&qn.forEach(function(En){var er=En.data,Xn=En.size;cn(er,Xn.offsetWidth)})}},Xt.map(function(Rn){return te.createElement(Bn,{key:Rn,columnKey:Rn,onColumnResize:cn})})))}function Cn(_t){var xt=_t.data,Xt=_t.measureColumnWidth,cn=le(re,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),wn=cn.prefixCls,Rn=cn.getComponent,qn=cn.onColumnResize,En=cn.flattenColumns,er=cn.getRowKey,Xn=cn.expandedKeys,Pr=cn.childrenColumnName,yr=cn.emptyNode,br=nn(xt,Pr,Xn,er),gr=te.useRef({renderWithProps:!1}),pr=Rn(["body","wrapper"],"tbody"),De=Rn(["body","row"],"tr"),ke=Rn(["body","cell"],"td"),Ve=Rn(["body","cell"],"th"),qe;xt.length?qe=br.map(function(dt,bt){var vt=dt.record,Nt=dt.indent,Pt=dt.index,Ht=er(vt,bt);return te.createElement(_n,{key:Ht,rowKey:Ht,record:vt,index:bt,renderIndex:Pt,rowComponent:De,cellComponent:ke,scopeCellComponent:Ve,indent:Nt})}):qe=te.createElement(xn,{expanded:!0,className:"".concat(wn,"-placeholder"),prefixCls:wn,component:De,cellComponent:ke,colSpan:En.length,isEmpty:!0},yr);var it=$e(En);return te.createElement(Ke.Provider,{value:gr.current},te.createElement(pr,{className:"".concat(wn,"-tbody")},Xt&&te.createElement(ln,{prefixCls:wn,columnsKey:it,onColumnResize:qn}),qe))}var Mn=de(Cn),Qn=["expandable"],mr="RC_TABLE_INTERNAL_COL_DEFINE";function lr(_t){var xt=_t.expandable,Xt=(0,Ze.Z)(_t,Qn),cn;return"expandable"in _t?cn=(0,be.Z)((0,be.Z)({},Xt),xt):cn=Xt,cn.showExpandColumn===!1&&(cn.expandIconColumnIndex=-1),cn}var Cr=["columnType"];function nr(_t){for(var xt=_t.colWidths,Xt=_t.columns,cn=_t.columCount,wn=le(re,["tableLayout"]),Rn=wn.tableLayout,qn=[],En=cn||Xt.length,er=!1,Xn=En-1;Xn>=0;Xn-=1){var Pr=xt[Xn],yr=Xt&&Xt[Xn],br=void 0,gr=void 0;if(yr&&(br=yr[mr],Rn==="auto"&&(gr=yr.minWidth)),Pr||gr||br||er){var pr=br||{},De=pr.columnType,ke=(0,Ze.Z)(pr,Cr);qn.unshift(te.createElement("col",(0,ae.Z)({key:Xn,style:{width:Pr,minWidth:gr}},ke))),er=!0}}return te.createElement("colgroup",null,qn)}var ur=nr,Nn=Ce(77654),In=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Wn(_t,xt){return(0,te.useMemo)(function(){for(var Xt=[],cn=0;cn<xt;cn+=1){var wn=_t[cn];if(wn!==void 0)Xt[cn]=wn;else return null}return Xt},[_t.join("_"),xt])}var Kn=te.forwardRef(function(_t,xt){var Xt=_t.className,cn=_t.noData,wn=_t.columns,Rn=_t.flattenColumns,qn=_t.colWidths,En=_t.columCount,er=_t.stickyOffsets,Xn=_t.direction,Pr=_t.fixHeader,yr=_t.stickyTopOffset,br=_t.stickyBottomOffset,gr=_t.stickyClassName,pr=_t.onScroll,De=_t.maxContentScroll,ke=_t.children,Ve=(0,Ze.Z)(_t,In),qe=le(re,["prefixCls","scrollbarSize","isSticky","getComponent"]),it=qe.prefixCls,dt=qe.scrollbarSize,bt=qe.isSticky,vt=qe.getComponent,Nt=vt(["header","table"],"table"),Pt=bt&&!Pr?0:dt,Ht=te.useRef(null),$t=te.useCallback(function(sr){(0,ie.mH)(xt,sr),(0,ie.mH)(Ht,sr)},[]);te.useEffect(function(){var sr;function cr(ni){var Tr=ni,Si=Tr.currentTarget,Ui=Tr.deltaX;Ui&&(pr({currentTarget:Si,scrollLeft:Si.scrollLeft+Ui}),ni.preventDefault())}return(sr=Ht.current)===null||sr===void 0||sr.addEventListener("wheel",cr,{passive:!1}),function(){var ni;(ni=Ht.current)===null||ni===void 0||ni.removeEventListener("wheel",cr)}},[]);var hn=te.useMemo(function(){return Rn.every(function(sr){return sr.width})},[Rn]),Pn=Rn[Rn.length-1],Dn={fixed:Pn?Pn.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(it,"-cell-scrollbar")}}},pn=(0,te.useMemo)(function(){return Pt?[].concat((0,Nn.Z)(wn),[Dn]):wn},[Pt,wn]),bn=(0,te.useMemo)(function(){return Pt?[].concat((0,Nn.Z)(Rn),[Dn]):Rn},[Pt,Rn]),Gn=(0,te.useMemo)(function(){var sr=er.right,cr=er.left;return(0,be.Z)((0,be.Z)({},er),{},{left:Xn==="rtl"?[].concat((0,Nn.Z)(cr.map(function(ni){return ni+Pt})),[0]):cr,right:Xn==="rtl"?sr:[].concat((0,Nn.Z)(sr.map(function(ni){return ni+Pt})),[0]),isSticky:bt})},[Pt,er,bt]),Un=Wn(qn,En);return te.createElement("div",{style:(0,be.Z)({overflow:"hidden"},bt?{top:yr,bottom:br}:{}),ref:$t,className:Ae()(Xt,(0,Se.Z)({},gr,!!gr))},te.createElement(Nt,{style:{tableLayout:"fixed",visibility:cn||Un?null:"hidden"}},(!cn||!De||hn)&&te.createElement(ur,{colWidths:Un?[].concat((0,Nn.Z)(Un),[Pt]):[],columCount:En+1,columns:bn}),ke((0,be.Z)((0,be.Z)({},Ve),{},{stickyOffsets:Gn,columns:pn,flattenColumns:bn}))))}),Ln=te.memo(Kn),$n=function(xt){var Xt=xt.cells,cn=xt.stickyOffsets,wn=xt.flattenColumns,Rn=xt.rowComponent,qn=xt.cellComponent,En=xt.onHeaderRow,er=xt.index,Xn=le(re,["prefixCls","direction"]),Pr=Xn.prefixCls,yr=Xn.direction,br;En&&(br=En(Xt.map(function(pr){return pr.column}),er));var gr=$e(Xt.map(function(pr){return pr.column}));return te.createElement(Rn,br,Xt.map(function(pr,De){var ke=pr.column,Ve=zt(pr.colStart,pr.colEnd,wn,cn,yr),qe;return ke&&ke.onHeaderCell&&(qe=pr.column.onHeaderCell(ke)),te.createElement(Yt,(0,ae.Z)({},pr,{scope:ke.title?pr.colSpan>1?"colgroup":"col":null,ellipsis:ke.ellipsis,align:ke.align,component:qn,prefixCls:Pr,key:gr[De]},Ve,{additionalProps:qe,rowType:"header"}))}))},ar=$n;function dn(_t){var xt=[];function Xt(qn,En){var er=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;xt[er]=xt[er]||[];var Xn=En,Pr=qn.filter(Boolean).map(function(yr){var br={key:yr.key,className:yr.className||"",children:yr.title,column:yr,colStart:Xn},gr=1,pr=yr.children;return pr&&pr.length>0&&(gr=Xt(pr,Xn,er+1).reduce(function(De,ke){return De+ke},0),br.hasSubColumns=!0),"colSpan"in yr&&(gr=yr.colSpan),"rowSpan"in yr&&(br.rowSpan=yr.rowSpan),br.colSpan=gr,br.colEnd=br.colStart+gr-1,xt[er].push(br),Xn+=gr,gr});return Pr}Xt(_t,0);for(var cn=xt.length,wn=function(En){xt[En].forEach(function(er){!("rowSpan"in er)&&!er.hasSubColumns&&(er.rowSpan=cn-En)})},Rn=0;Rn<cn;Rn+=1)wn(Rn);return xt}var Ie=function(xt){var Xt=xt.stickyOffsets,cn=xt.columns,wn=xt.flattenColumns,Rn=xt.onHeaderRow,qn=le(re,["prefixCls","getComponent"]),En=qn.prefixCls,er=qn.getComponent,Xn=te.useMemo(function(){return dn(cn)},[cn]),Pr=er(["header","wrapper"],"thead"),yr=er(["header","row"],"tr"),br=er(["header","cell"],"th");return te.createElement(Pr,{className:"".concat(En,"-thead")},Xn.map(function(gr,pr){var De=te.createElement(ar,{key:pr,flattenColumns:wn,cells:gr,stickyOffsets:Xt,rowComponent:yr,cellComponent:br,onHeaderRow:Rn,index:pr});return De}))},je=de(Ie),Je=Ce(11592);function ht(_t){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof xt=="number"?xt:xt.endsWith("%")?_t*parseFloat(xt)/100:null}function Et(_t,xt,Xt){return te.useMemo(function(){if(xt&&xt>0){var cn=0,wn=0;_t.forEach(function(br){var gr=ht(xt,br.width);gr?cn+=gr:wn+=1});var Rn=Math.max(xt,Xt),qn=Math.max(Rn-cn,wn),En=wn,er=qn/wn,Xn=0,Pr=_t.map(function(br){var gr=(0,be.Z)({},br),pr=ht(xt,gr.width);if(pr)gr.width=pr;else{var De=Math.floor(er);gr.width=En===1?qn:De,qn-=De,En-=1}return Xn+=gr.width,gr});if(Xn<Rn){var yr=Rn/Xn;qn=Rn,Pr.forEach(function(br,gr){var pr=Math.floor(br.width*yr);br.width=gr===Pr.length-1?qn:pr,qn-=pr})}return[Pr,Math.max(Xn,Rn)]}return[_t,xt]},[_t,xt,Xt])}var Qt=["children"],fn=["fixed"];function sn(_t){return(0,Je.Z)(_t).filter(function(xt){return te.isValidElement(xt)}).map(function(xt){var Xt=xt.key,cn=xt.props,wn=cn.children,Rn=(0,Ze.Z)(cn,Qt),qn=(0,be.Z)({key:Xt},Rn);return wn&&(qn.children=sn(wn)),qn})}function mn(_t){return _t.filter(function(xt){return xt&&(0,ye.Z)(xt)==="object"&&!xt.hidden}).map(function(xt){var Xt=xt.children;return Xt&&Xt.length>0?(0,be.Z)((0,be.Z)({},xt),{},{children:mn(Xt)}):xt})}function Zn(_t){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return _t.filter(function(Xt){return Xt&&(0,ye.Z)(Xt)==="object"}).reduce(function(Xt,cn,wn){var Rn=cn.fixed,qn=Rn===!0?"left":Rn,En="".concat(xt,"-").concat(wn),er=cn.children;return er&&er.length>0?[].concat((0,Nn.Z)(Xt),(0,Nn.Z)(Zn(er,En).map(function(Xn){return(0,be.Z)({fixed:qn},Xn)}))):[].concat((0,Nn.Z)(Xt),[(0,be.Z)((0,be.Z)({key:En},cn),{},{fixed:qn})])},[])}function tr(_t){return _t.map(function(xt){var Xt=xt.fixed,cn=(0,Ze.Z)(xt,fn),wn=Xt;return Xt==="left"?wn="right":Xt==="right"&&(wn="left"),(0,be.Z)({fixed:wn},cn)})}function Vt(_t,xt){var Xt=_t.prefixCls,cn=_t.columns,wn=_t.children,Rn=_t.expandable,qn=_t.expandedKeys,En=_t.columnTitle,er=_t.getRowKey,Xn=_t.onTriggerExpand,Pr=_t.expandIcon,yr=_t.rowExpandable,br=_t.expandIconColumnIndex,gr=_t.direction,pr=_t.expandRowByClick,De=_t.columnWidth,ke=_t.fixed,Ve=_t.scrollWidth,qe=_t.clientWidth,it=te.useMemo(function(){var Pn=cn||sn(wn)||[];return mn(Pn.slice())},[cn,wn]),dt=te.useMemo(function(){if(Rn){var Pn=it.slice();if(!Pn.includes(Ye)){var Dn=br||0;Dn>=0&&(Dn||ke==="left"||!ke)&&Pn.splice(Dn,0,Ye),ke==="right"&&Pn.splice(it.length,0,Ye)}var pn=Pn.indexOf(Ye);Pn=Pn.filter(function(sr,cr){return sr!==Ye||cr===pn});var bn=it[pn],Gn;ke?Gn=ke:Gn=bn?bn.fixed:null;var Un=(0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)({},mr,{className:"".concat(Xt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",En),"fixed",Gn),"className","".concat(Xt,"-row-expand-icon-cell")),"width",De),"render",function(cr,ni,Tr){var Si=er(ni,Tr),Ui=qn.has(Si),Fi=yr?yr(ni):!0,jr=Pr({prefixCls:Xt,expanded:Ui,expandable:Fi,record:ni,onExpand:Xn});return pr?te.createElement("span",{onClick:function(yi){return yi.stopPropagation()}},jr):jr});return Pn.map(function(sr){return sr===Ye?Un:sr})}return it.filter(function(sr){return sr!==Ye})},[Rn,it,er,qn,Pr,gr]),bt=te.useMemo(function(){var Pn=dt;return xt&&(Pn=xt(Pn)),Pn.length||(Pn=[{render:function(){return null}}]),Pn},[xt,dt,gr]),vt=te.useMemo(function(){return gr==="rtl"?tr(Zn(bt)):Zn(bt)},[bt,gr,Ve]),Nt=te.useMemo(function(){for(var Pn=-1,Dn=vt.length-1;Dn>=0;Dn-=1){var pn=vt[Dn].fixed;if(pn==="left"||pn===!0){Pn=Dn;break}}if(Pn>=0)for(var bn=0;bn<=Pn;bn+=1){var Gn=vt[bn].fixed;if(Gn!=="left"&&Gn!==!0)return!0}var Un=vt.findIndex(function(ni){var Tr=ni.fixed;return Tr==="right"});if(Un>=0)for(var sr=Un;sr<vt.length;sr+=1){var cr=vt[sr].fixed;if(cr!=="right")return!0}return!1},[vt]),Pt=Et(vt,Ve,qe),Ht=(0,pe.Z)(Pt,2),$t=Ht[0],hn=Ht[1];return[bt,$t,hn,Nt]}var Gt=Vt;function Rt(_t,xt,Xt){var cn=lr(_t),wn=cn.expandIcon,Rn=cn.expandedRowKeys,qn=cn.defaultExpandedRowKeys,En=cn.defaultExpandAllRows,er=cn.expandedRowRender,Xn=cn.onExpand,Pr=cn.onExpandedRowsChange,yr=cn.childrenColumnName,br=wn||an,gr=yr||"children",pr=te.useMemo(function(){return er?"row":_t.expandable&&_t.internalHooks===Me&&_t.expandable.__PARENT_RENDER_ICON__||xt.some(function(bt){return bt&&(0,ye.Z)(bt)==="object"&&bt[gr]})?"nest":!1},[!!er,xt]),De=te.useState(function(){return qn||(En?An(xt,Xt,gr):[])}),ke=(0,pe.Z)(De,2),Ve=ke[0],qe=ke[1],it=te.useMemo(function(){return new Set(Rn||Ve||[])},[Rn,Ve]),dt=te.useCallback(function(bt){var vt=Xt(bt,xt.indexOf(bt)),Nt,Pt=it.has(vt);Pt?(it.delete(vt),Nt=(0,Nn.Z)(it)):Nt=[].concat((0,Nn.Z)(it),[vt]),qe(Nt),Xn&&Xn(!Pt,bt),Pr&&Pr(Nt)},[Xt,it,xt,Xn,Pr]);return[cn,pr,it,br,gr,dt]}function jt(_t,xt,Xt){var cn=_t.map(function(wn,Rn){return zt(Rn,Rn,_t,xt,Xt)});return(0,we.Z)(function(){return cn},[cn],function(wn,Rn){return!(0,ue.Z)(wn,Rn)})}function Mt(_t){var xt=(0,te.useRef)(_t),Xt=(0,te.useState)({}),cn=(0,pe.Z)(Xt,2),wn=cn[1],Rn=(0,te.useRef)(null),qn=(0,te.useRef)([]);function En(er){qn.current.push(er);var Xn=Promise.resolve();Rn.current=Xn,Xn.then(function(){if(Rn.current===Xn){var Pr=qn.current,yr=xt.current;qn.current=[],Pr.forEach(function(br){xt.current=br(xt.current)}),Rn.current=null,yr!==xt.current&&wn({})}})}return(0,te.useEffect)(function(){return function(){Rn.current=null}},[]),[xt.current,En]}function Kt(_t){var xt=(0,te.useRef)(_t||null),Xt=(0,te.useRef)();function cn(){window.clearTimeout(Xt.current)}function wn(qn){xt.current=qn,cn(),Xt.current=window.setTimeout(function(){xt.current=null,Xt.current=void 0},100)}function Rn(){return xt.current}return(0,te.useEffect)(function(){return cn},[]),[wn,Rn]}function yt(){var _t=te.useState(-1),xt=(0,pe.Z)(_t,2),Xt=xt[0],cn=xt[1],wn=te.useState(-1),Rn=(0,pe.Z)(wn,2),qn=Rn[0],En=Rn[1],er=te.useCallback(function(Xn,Pr){cn(Xn),En(Pr)},[]);return[Xt,qn,er]}var qt=Ce(47273),vn=(0,qt.Z)()?window:null;function Tt(_t,xt){var Xt=(0,ye.Z)(_t)==="object"?_t:{},cn=Xt.offsetHeader,wn=cn===void 0?0:cn,Rn=Xt.offsetSummary,qn=Rn===void 0?0:Rn,En=Xt.offsetScroll,er=En===void 0?0:En,Xn=Xt.getContainer,Pr=Xn===void 0?function(){return vn}:Xn,yr=Pr()||vn,br=!!_t;return te.useMemo(function(){return{isSticky:br,stickyClassName:br?"".concat(xt,"-sticky-holder"):"",offsetHeader:wn,offsetSummary:qn,offsetScroll:er,container:yr}},[br,er,wn,qn,xt,yr])}function It(_t,xt,Xt){var cn=(0,te.useMemo)(function(){var wn=xt.length,Rn=function(Xn,Pr,yr){for(var br=[],gr=0,pr=Xn;pr!==Pr;pr+=yr)br.push(gr),xt[pr].fixed&&(gr+=_t[pr]||0);return br},qn=Rn(0,wn,1),En=Rn(wn-1,-1,-1).reverse();return Xt==="rtl"?{left:En,right:qn}:{left:qn,right:En}},[_t,xt,Xt]);return cn}var Dt=It;function Bt(_t){var xt=_t.className,Xt=_t.children;return te.createElement("div",{className:xt},Xt)}var Zt=Bt,tn=Ce(8224),Tn=Ce(16089),Fn=Ce(76846);function dr(_t){var xt=(0,Fn.bn)(_t),Xt=xt.getBoundingClientRect(),cn=document.documentElement;return{left:Xt.left+(window.pageXOffset||cn.scrollLeft)-(cn.clientLeft||document.body.clientLeft||0),top:Xt.top+(window.pageYOffset||cn.scrollTop)-(cn.clientTop||document.body.clientTop||0)}}var _r=function(xt,Xt){var cn,wn,Rn=xt.scrollBodyRef,qn=xt.onScroll,En=xt.offsetScroll,er=xt.container,Xn=xt.direction,Pr=le(re,"prefixCls"),yr=((cn=Rn.current)===null||cn===void 0?void 0:cn.scrollWidth)||0,br=((wn=Rn.current)===null||wn===void 0?void 0:wn.clientWidth)||0,gr=yr&&br*(br/yr),pr=te.useRef(),De=Mt({scrollLeft:0,isHiddenScrollBar:!0}),ke=(0,pe.Z)(De,2),Ve=ke[0],qe=ke[1],it=te.useRef({delta:0,x:0}),dt=te.useState(!1),bt=(0,pe.Z)(dt,2),vt=bt[0],Nt=bt[1],Pt=te.useRef(null);te.useEffect(function(){return function(){Tn.Z.cancel(Pt.current)}},[]);var Ht=function(){Nt(!1)},$t=function(bn){bn.persist(),it.current.delta=bn.pageX-Ve.scrollLeft,it.current.x=0,Nt(!0),bn.preventDefault()},hn=function(bn){var Gn,Un=bn||((Gn=window)===null||Gn===void 0?void 0:Gn.event),sr=Un.buttons;if(!vt||sr===0){vt&&Nt(!1);return}var cr=it.current.x+bn.pageX-it.current.x-it.current.delta,ni=Xn==="rtl";cr=Math.max(ni?gr-br:0,Math.min(ni?0:br-gr,cr));var Tr=!ni||Math.abs(cr)+Math.abs(gr)<br;Tr&&(qn({scrollLeft:cr/br*(yr+2)}),it.current.x=bn.pageX)},Pn=function(){Tn.Z.cancel(Pt.current),Pt.current=(0,Tn.Z)(function(){if(Rn.current){var bn=dr(Rn.current).top,Gn=bn+Rn.current.offsetHeight,Un=er===window?document.documentElement.scrollTop+window.innerHeight:dr(er).top+er.clientHeight;Gn-(0,Lt.Z)()<=Un||bn>=Un-En?qe(function(sr){return(0,be.Z)((0,be.Z)({},sr),{},{isHiddenScrollBar:!0})}):qe(function(sr){return(0,be.Z)((0,be.Z)({},sr),{},{isHiddenScrollBar:!1})})}})},Dn=function(bn){qe(function(Gn){return(0,be.Z)((0,be.Z)({},Gn),{},{scrollLeft:bn/yr*br||0})})};return te.useImperativeHandle(Xt,function(){return{setScrollLeft:Dn,checkScrollBarVisible:Pn}}),te.useEffect(function(){var pn=(0,tn.Z)(document.body,"mouseup",Ht,!1),bn=(0,tn.Z)(document.body,"mousemove",hn,!1);return Pn(),function(){pn.remove(),bn.remove()}},[gr,vt]),te.useEffect(function(){if(Rn.current){for(var pn=[],bn=(0,Fn.bn)(Rn.current);bn;)pn.push(bn),bn=bn.parentElement;return pn.forEach(function(Gn){return Gn.addEventListener("scroll",Pn,!1)}),window.addEventListener("resize",Pn,!1),window.addEventListener("scroll",Pn,!1),er.addEventListener("scroll",Pn,!1),function(){pn.forEach(function(Gn){return Gn.removeEventListener("scroll",Pn)}),window.removeEventListener("resize",Pn),window.removeEventListener("scroll",Pn),er.removeEventListener("scroll",Pn)}}},[er]),te.useEffect(function(){Ve.isHiddenScrollBar||qe(function(pn){var bn=Rn.current;return bn?(0,be.Z)((0,be.Z)({},pn),{},{scrollLeft:bn.scrollLeft/bn.scrollWidth*bn.clientWidth}):pn})},[Ve.isHiddenScrollBar]),yr<=br||!gr||Ve.isHiddenScrollBar?null:te.createElement("div",{style:{height:(0,Lt.Z)(),width:br,bottom:En},className:"".concat(Pr,"-sticky-scroll")},te.createElement("div",{onMouseDown:$t,ref:pr,className:Ae()("".concat(Pr,"-sticky-scroll-bar"),(0,Se.Z)({},"".concat(Pr,"-sticky-scroll-bar-active"),vt)),style:{width:"".concat(gr,"px"),transform:"translate3d(".concat(Ve.scrollLeft,"px, 0, 0)")}}))},Kr=te.forwardRef(_r);function Sr(_t){return null}var hr=Sr;function Mr(_t){return null}var Br=Mr,Wr="rc-table",Jn=[],ii={};function Ur(){return"No Data"}function Gr(_t,xt){var Xt=(0,be.Z)({rowKey:"key",prefixCls:Wr,emptyText:Ur},_t),cn=Xt.prefixCls,wn=Xt.className,Rn=Xt.rowClassName,qn=Xt.style,En=Xt.data,er=Xt.rowKey,Xn=Xt.scroll,Pr=Xt.tableLayout,yr=Xt.direction,br=Xt.title,gr=Xt.footer,pr=Xt.summary,De=Xt.caption,ke=Xt.id,Ve=Xt.showHeader,qe=Xt.components,it=Xt.emptyText,dt=Xt.onRow,bt=Xt.onHeaderRow,vt=Xt.onScroll,Nt=Xt.internalHooks,Pt=Xt.transformColumns,Ht=Xt.internalRefs,$t=Xt.tailor,hn=Xt.getContainerWidth,Pn=Xt.sticky,Dn=Xt.rowHoverable,pn=Dn===void 0?!0:Dn,bn=En||Jn,Gn=!!bn.length,Un=Nt===Me,sr=te.useCallback(function(Xa,eo){return(0,Ue.Z)(qe,Xa)||eo},[qe]),cr=te.useMemo(function(){return typeof er=="function"?er:function(Xa){var eo=Xa&&Xa[er];return eo}},[er]),ni=sr(["body"]),Tr=yt(),Si=(0,pe.Z)(Tr,3),Ui=Si[0],Fi=Si[1],jr=Si[2],Vr=Rt(Xt,bn,cr),yi=(0,pe.Z)(Vr,6),zn=yi[0],fr=yi[1],$r=yi[2],xr=yi[3],Yr=yi[4],Lr=yi[5],Or=Xn==null?void 0:Xn.x,Bi=te.useState(0),na=(0,pe.Z)(Bi,2),Oi=na[0],Ea=na[1],Ma=Gt((0,be.Z)((0,be.Z)((0,be.Z)({},Xt),zn),{},{expandable:!!zn.expandedRowRender,columnTitle:zn.columnTitle,expandedKeys:$r,getRowKey:cr,onTriggerExpand:Lr,expandIcon:xr,expandIconColumnIndex:zn.expandIconColumnIndex,direction:yr,scrollWidth:Un&&$t&&typeof Or=="number"?Or:null,clientWidth:Oi}),Un?Pt:null),Na=(0,pe.Z)(Ma,4),ji=Na[0],aa=Na[1],Ua=Na[2],oo=Na[3],qa=Ua!=null?Ua:Or,Ho=te.useMemo(function(){return{columns:ji,flattenColumns:aa}},[ji,aa]),Po=te.useRef(),ms=te.useRef(),_o=te.useRef(),Za=te.useRef();te.useImperativeHandle(xt,function(){return{nativeElement:Po.current,scrollTo:function(eo){var is;if(_o.current instanceof HTMLElement){var Is=eo.index,as=eo.top,Ol=eo.key;if(ut(as)){var vl;(vl=_o.current)===null||vl===void 0||vl.scrollTo({top:as})}else{var sl,Pl=Ol!=null?Ol:cr(bn[Is]);(sl=_o.current.querySelector('[data-row-key="'.concat(Pl,'"]')))===null||sl===void 0||sl.scrollIntoView()}}else(is=_o.current)!==null&&is!==void 0&&is.scrollTo&&_o.current.scrollTo(eo)}}});var ho=te.useRef(),vo=te.useState(!1),ko=(0,pe.Z)(vo,2),Ao=ko[0],Ga=ko[1],xo=te.useState(!1),so=(0,pe.Z)(xo,2),qo=so[0],No=so[1],us=te.useState(new Map),ps=(0,pe.Z)(us,2),rl=ps[0],mo=ps[1],Nl=$e(aa),cs=Nl.map(function(Xa){return rl.get(Xa)}),Ks=te.useMemo(function(){return cs},[cs.join("_")]),Os=Dt(Ks,aa,yr),gs=Xn&&nt(Xn.y),po=Xn&&nt(qa)||!!zn.fixed,Ps=po&&aa.some(function(Xa){var eo=Xa.fixed;return eo}),fl=te.useRef(),il=Tt(Pn,cn),al=il.isSticky,jl=il.offsetHeader,Vl=il.offsetSummary,Zl=il.offsetScroll,Gl=il.stickyClassName,tu=il.container,Ia=te.useMemo(function(){return pr==null?void 0:pr(bn)},[pr,bn]),Ha=(gs||al)&&te.isValidElement(Ia)&&Ia.type===tt&&Ia.props.fixed,bo,Io,Go;gs&&(Io={overflowY:Gn?"scroll":"auto",maxHeight:Xn.y}),po&&(bo={overflowX:"auto"},gs||(Io={overflowY:"hidden"}),Go={width:qa===!0?"auto":qa,minWidth:"100%"});var Ko=te.useCallback(function(Xa,eo){mo(function(is){if(is.get(Xa)!==eo){var Is=new Map(is);return Is.set(Xa,eo),Is}return is})},[]),Ys=Kt(null),rs=(0,pe.Z)(Ys,2),Tl=rs[0],nu=rs[1];function Fl(Xa,eo){eo&&(typeof eo=="function"?eo(Xa):eo.scrollLeft!==Xa&&(eo.scrollLeft=Xa,eo.scrollLeft!==Xa&&setTimeout(function(){eo.scrollLeft=Xa},0)))}var El=(0,Oe.Z)(function(Xa){var eo=Xa.currentTarget,is=Xa.scrollLeft,Is=yr==="rtl",as=typeof is=="number"?is:eo.scrollLeft,Ol=eo||ii;if(!nu()||nu()===Ol){var vl;Tl(Ol),Fl(as,ms.current),Fl(as,_o.current),Fl(as,ho.current),Fl(as,(vl=fl.current)===null||vl===void 0?void 0:vl.setScrollLeft)}var sl=eo||ms.current;if(sl){var Pl=Un&&$t&&typeof qa=="number"?qa:sl.scrollWidth,vu=sl.clientWidth;if(Pl===vu){Ga(!1),No(!1);return}Is?(Ga(-as<Pl-vu),No(-as>0)):(Ga(as>0),No(as<Pl-vu))}}),Xl=(0,Oe.Z)(function(Xa){El(Xa),vt==null||vt(Xa)}),Cl=function(){if(po&&_o.current){var eo;El({currentTarget:(0,Fn.bn)(_o.current),scrollLeft:(eo=_o.current)===null||eo===void 0?void 0:eo.scrollLeft})}else Ga(!1),No(!1)},ru=function(eo){var is,Is=eo.width;(is=fl.current)===null||is===void 0||is.checkScrollBarVisible();var as=Po.current?Po.current.offsetWidth:Is;Un&&hn&&Po.current&&(as=hn(Po.current,as)||as),as!==Oi&&(Cl(),Ea(as))},Yl=te.useRef(!1);te.useEffect(function(){Yl.current&&Cl()},[po,En,ji.length]),te.useEffect(function(){Yl.current=!0},[]);var iu=te.useState(0),pu=(0,pe.Z)(iu,2),hl=pu[0],au=pu[1],Cu=te.useState(!0),ou=(0,pe.Z)(Cu,2),kl=ou[0],bu=ou[1];(0,ve.Z)(function(){(!$t||!Un)&&(_o.current instanceof Element?au((0,Lt.o)(_o.current).width):au((0,Lt.o)(Za.current).width)),bu((0,mt.G)("position","sticky"))},[]),te.useEffect(function(){Un&&Ht&&(Ht.body.current=_o.current)});var Su=te.useCallback(function(Xa){return te.createElement(te.Fragment,null,te.createElement(je,Xa),Ha==="top"&&te.createElement(ot,Xa,Ia))},[Ha,Ia]),Ul=te.useCallback(function(Xa){return te.createElement(ot,Xa,Ia)},[Ia]),su=sr(["table"],"table"),Wl=te.useMemo(function(){return Pr||(Ps?qa==="max-content"?"auto":"fixed":gs||al||aa.some(function(Xa){var eo=Xa.ellipsis;return eo})?"fixed":"auto")},[gs,Ps,aa,Pr,al]),lu,zl={colWidths:Ks,columCount:aa.length,stickyOffsets:Os,onHeaderRow:bt,fixHeader:gs,scroll:Xn},uu=te.useMemo(function(){return Gn?null:typeof it=="function"?it():it},[Gn,it]),gu=te.createElement(Mn,{data:bn,measureColumnWidth:gs||po||al}),cu=te.createElement(ur,{colWidths:aa.map(function(Xa){var eo=Xa.width;return eo}),columns:aa}),du=De!=null?te.createElement("caption",{className:"".concat(cn,"-caption")},De):void 0,wu=(0,ft.Z)(Xt,{data:!0}),Ql=(0,ft.Z)(Xt,{aria:!0});if(gs||al){var bl;typeof ni=="function"?(bl=ni(bn,{scrollbarSize:hl,ref:_o,onScroll:El}),zl.colWidths=aa.map(function(Xa,eo){var is=Xa.width,Is=eo===aa.length-1?is-hl:is;return typeof Is=="number"&&!Number.isNaN(Is)?Is:0})):bl=te.createElement("div",{style:(0,be.Z)((0,be.Z)({},bo),Io),onScroll:Xl,ref:_o,className:Ae()("".concat(cn,"-body"))},te.createElement(su,(0,ae.Z)({style:(0,be.Z)((0,be.Z)({},Go),{},{tableLayout:Wl})},Ql),du,cu,gu,!Ha&&Ia&&te.createElement(ot,{stickyOffsets:Os,flattenColumns:aa},Ia)));var Ml=(0,be.Z)((0,be.Z)((0,be.Z)({noData:!bn.length,maxContentScroll:po&&qa==="max-content"},zl),Ho),{},{direction:yr,stickyClassName:Gl,onScroll:El});lu=te.createElement(te.Fragment,null,Ve!==!1&&te.createElement(Ln,(0,ae.Z)({},Ml,{stickyTopOffset:jl,className:"".concat(cn,"-header"),ref:ms}),Su),bl,Ha&&Ha!=="top"&&te.createElement(Ln,(0,ae.Z)({},Ml,{stickyBottomOffset:Vl,className:"".concat(cn,"-summary"),ref:ho}),Ul),al&&_o.current&&_o.current instanceof Element&&te.createElement(Kr,{ref:fl,offsetScroll:Zl,scrollBodyRef:_o,onScroll:El,container:tu,direction:yr}))}else lu=te.createElement("div",{style:(0,be.Z)((0,be.Z)({},bo),Io),className:Ae()("".concat(cn,"-content")),onScroll:El,ref:_o},te.createElement(su,(0,ae.Z)({style:(0,be.Z)((0,be.Z)({},Go),{},{tableLayout:Wl})},Ql),du,cu,Ve!==!1&&te.createElement(je,(0,ae.Z)({},zl,Ho)),gu,Ia&&te.createElement(ot,{stickyOffsets:Os,flattenColumns:aa},Ia)));var fu=te.createElement("div",(0,ae.Z)({className:Ae()(cn,wn,(0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)({},"".concat(cn,"-rtl"),yr==="rtl"),"".concat(cn,"-ping-left"),Ao),"".concat(cn,"-ping-right"),qo),"".concat(cn,"-layout-fixed"),Pr==="fixed"),"".concat(cn,"-fixed-header"),gs),"".concat(cn,"-fixed-column"),Ps),"".concat(cn,"-fixed-column-gapped"),Ps&&oo),"".concat(cn,"-scroll-horizontal"),po),"".concat(cn,"-has-fix-left"),aa[0]&&aa[0].fixed),"".concat(cn,"-has-fix-right"),aa[aa.length-1]&&aa[aa.length-1].fixed==="right")),style:qn,id:ke,ref:Po},wu),br&&te.createElement(Zt,{className:"".concat(cn,"-title")},br(bn)),te.createElement("div",{ref:Za,className:"".concat(cn,"-container")},lu),gr&&te.createElement(Zt,{className:"".concat(cn,"-footer")},gr(bn)));po&&(fu=te.createElement(lt.Z,{onResize:ru},fu));var hu=jt(aa,Os,yr),Au=te.useMemo(function(){return{scrollX:qa,prefixCls:cn,getComponent:sr,scrollbarSize:hl,direction:yr,fixedInfoList:hu,isSticky:al,supportSticky:kl,componentWidth:Oi,fixHeader:gs,fixColumn:Ps,horizonScroll:po,tableLayout:Wl,rowClassName:Rn,expandedRowClassName:zn.expandedRowClassName,expandIcon:xr,expandableType:fr,expandRowByClick:zn.expandRowByClick,expandedRowRender:zn.expandedRowRender,onTriggerExpand:Lr,expandIconColumnIndex:zn.expandIconColumnIndex,indentSize:zn.indentSize,allColumnsFixedLeft:aa.every(function(Xa){return Xa.fixed==="left"}),emptyNode:uu,columns:ji,flattenColumns:aa,onColumnResize:Ko,hoverStartRow:Ui,hoverEndRow:Fi,onHover:jr,rowExpandable:zn.rowExpandable,onRow:dt,getRowKey:cr,expandedKeys:$r,childrenColumnName:Yr,rowHoverable:pn}},[qa,cn,sr,hl,yr,hu,al,kl,Oi,gs,Ps,po,Wl,Rn,zn.expandedRowClassName,xr,fr,zn.expandRowByClick,zn.expandedRowRender,Lr,zn.expandIconColumnIndex,zn.indentSize,uu,ji,aa,Ko,Ui,Fi,jr,zn.rowExpandable,dt,cr,$r,Yr,pn]);return te.createElement(re.Provider,{value:Au},fu)}var qr=te.forwardRef(Gr);function Li(_t){return se(qr,_t)}var wi=Li();wi.EXPAND_COLUMN=Ye,wi.INTERNAL_HOOKS=Me,wi.Column=hr,wi.ColumnGroup=Br,wi.Summary=ct;var ui=wi,Qr=Ce(48911),Di=he(null),oi=he(null);function di(_t,xt,Xt){var cn=xt||1;return Xt[_t+cn]-(Xt[_t]||0)}function ci(_t){var xt=_t.rowInfo,Xt=_t.column,cn=_t.colIndex,wn=_t.indent,Rn=_t.index,qn=_t.component,En=_t.renderIndex,er=_t.record,Xn=_t.style,Pr=_t.className,yr=_t.inverse,br=_t.getHeight,gr=Xt.render,pr=Xt.dataIndex,De=Xt.className,ke=Xt.width,Ve=le(oi,["columnsOffset"]),qe=Ve.columnsOffset,it=Ut(xt,Xt,cn,wn,Rn),dt=it.key,bt=it.fixedInfo,vt=it.appendCellNode,Nt=it.additionalCellProps,Pt=Nt.style,Ht=Nt.colSpan,$t=Ht===void 0?1:Ht,hn=Nt.rowSpan,Pn=hn===void 0?1:hn,Dn=cn-1,pn=di(Dn,$t,qe),bn=$t>1?ke-pn:0,Gn=(0,be.Z)((0,be.Z)((0,be.Z)({},Pt),Xn),{},{flex:"0 0 ".concat(pn,"px"),width:"".concat(pn,"px"),marginRight:bn,pointerEvents:"auto"}),Un=te.useMemo(function(){return yr?Pn<=1:$t===0||Pn===0||Pn>1},[Pn,$t,yr]);Un?Gn.visibility="hidden":yr&&(Gn.height=br==null?void 0:br(Pn));var sr=Un?function(){return null}:gr,cr={};return(Pn===0||$t===0)&&(cr.rowSpan=1,cr.colSpan=1),te.createElement(Yt,(0,ae.Z)({className:Ae()(De,Pr),ellipsis:Xt.ellipsis,align:Xt.align,scope:Xt.rowScope,component:qn,prefixCls:xt.prefixCls,key:dt,record:er,index:Rn,renderIndex:En,dataIndex:pr,render:sr,shouldCellUpdate:Xt.shouldCellUpdate},bt,{appendNode:vt,additionalProps:(0,be.Z)((0,be.Z)({},Nt),{},{style:Gn},cr)}))}var ki=ci,Ki=["data","index","className","rowKey","style","extra","getHeight"],ua=te.forwardRef(function(_t,xt){var Xt=_t.data,cn=_t.index,wn=_t.className,Rn=_t.rowKey,qn=_t.style,En=_t.extra,er=_t.getHeight,Xn=(0,Ze.Z)(_t,Ki),Pr=Xt.record,yr=Xt.indent,br=Xt.index,gr=le(re,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),pr=gr.scrollX,De=gr.flattenColumns,ke=gr.prefixCls,Ve=gr.fixColumn,qe=gr.componentWidth,it=le(Di,["getComponent"]),dt=it.getComponent,bt=on(Pr,Rn,cn,yr),vt=dt(["body","row"],"div"),Nt=dt(["body","cell"],"div"),Pt=bt.rowSupportExpand,Ht=bt.expanded,$t=bt.rowProps,hn=bt.expandedRowRender,Pn=bt.expandedRowClassName,Dn;if(Pt&&Ht){var pn=hn(Pr,cn,yr+1,Ht),bn=Jt(Pn,Pr,cn,yr),Gn={};Ve&&(Gn={style:(0,Se.Z)({},"--virtual-width","".concat(qe,"px"))});var Un="".concat(ke,"-expanded-row-cell");Dn=te.createElement(vt,{className:Ae()("".concat(ke,"-expanded-row"),"".concat(ke,"-expanded-row-level-").concat(yr+1),bn)},te.createElement(Yt,{component:Nt,prefixCls:ke,className:Ae()(Un,(0,Se.Z)({},"".concat(Un,"-fixed"),Ve)),additionalProps:Gn},pn))}var sr=(0,be.Z)((0,be.Z)({},qn),{},{width:pr});En&&(sr.position="absolute",sr.pointerEvents="none");var cr=te.createElement(vt,(0,ae.Z)({},$t,Xn,{"data-row-key":Rn,ref:Pt?null:xt,className:Ae()(wn,"".concat(ke,"-row"),$t==null?void 0:$t.className,(0,Se.Z)({},"".concat(ke,"-row-extra"),En)),style:(0,be.Z)((0,be.Z)({},sr),$t==null?void 0:$t.style)}),De.map(function(ni,Tr){return te.createElement(ki,{key:Tr,component:Nt,rowInfo:bt,column:ni,colIndex:Tr,indent:yr,index:cn,renderIndex:br,record:Pr,inverse:En,getHeight:er})}));return Pt?te.createElement("div",{ref:xt},cr,Dn):cr}),kn=de(ua),qi=kn,Qi=te.forwardRef(function(_t,xt){var Xt=_t.data,cn=_t.onScroll,wn=le(re,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),Rn=wn.flattenColumns,qn=wn.onColumnResize,En=wn.getRowKey,er=wn.expandedKeys,Xn=wn.prefixCls,Pr=wn.childrenColumnName,yr=wn.scrollX,br=wn.direction,gr=le(Di),pr=gr.sticky,De=gr.scrollY,ke=gr.listItemHeight,Ve=gr.getComponent,qe=gr.onScroll,it=te.useRef(),dt=nn(Xt,Pr,er,En),bt=te.useMemo(function(){var Dn=0;return Rn.map(function(pn){var bn=pn.width,Gn=pn.key;return Dn+=bn,[Gn,bn,Dn]})},[Rn]),vt=te.useMemo(function(){return bt.map(function(Dn){return Dn[2]})},[bt]);te.useEffect(function(){bt.forEach(function(Dn){var pn=(0,pe.Z)(Dn,2),bn=pn[0],Gn=pn[1];qn(bn,Gn)})},[bt]),te.useImperativeHandle(xt,function(){var Dn,pn={scrollTo:function(Gn){var Un;(Un=it.current)===null||Un===void 0||Un.scrollTo(Gn)},nativeElement:(Dn=it.current)===null||Dn===void 0?void 0:Dn.nativeElement};return Object.defineProperty(pn,"scrollLeft",{get:function(){var Gn;return((Gn=it.current)===null||Gn===void 0?void 0:Gn.getScrollInfo().x)||0},set:function(Gn){var Un;(Un=it.current)===null||Un===void 0||Un.scrollTo({left:Gn})}}),pn});var Nt=function(pn,bn){var Gn,Un=(Gn=dt[bn])===null||Gn===void 0?void 0:Gn.record,sr=pn.onCell;if(sr){var cr,ni=sr(Un,bn);return(cr=ni==null?void 0:ni.rowSpan)!==null&&cr!==void 0?cr:1}return 1},Pt=function(pn){var bn=pn.start,Gn=pn.end,Un=pn.getSize,sr=pn.offsetY;if(Gn<0)return null;for(var cr=Rn.filter(function(xr){return Nt(xr,bn)===0}),ni=bn,Tr=function(Yr){if(cr=cr.filter(function(Lr){return Nt(Lr,Yr)===0}),!cr.length)return ni=Yr,1},Si=bn;Si>=0&&!Tr(Si);Si-=1);for(var Ui=Rn.filter(function(xr){return Nt(xr,Gn)!==1}),Fi=Gn,jr=function(Yr){if(Ui=Ui.filter(function(Lr){return Nt(Lr,Yr)!==1}),!Ui.length)return Fi=Math.max(Yr-1,Gn),1},Vr=Gn;Vr<dt.length&&!jr(Vr);Vr+=1);for(var yi=[],zn=function(Yr){var Lr=dt[Yr];if(!Lr)return 1;Rn.some(function(Or){return Nt(Or,Yr)>1})&&yi.push(Yr)},fr=ni;fr<=Fi;fr+=1)zn(fr);var $r=yi.map(function(xr){var Yr=dt[xr],Lr=En(Yr.record,xr),Or=function(Oi){var Ea=xr+Oi-1,Ma=En(dt[Ea].record,Ea),Na=Un(Lr,Ma);return Na.bottom-Na.top},Bi=Un(Lr);return te.createElement(qi,{key:xr,data:Yr,rowKey:Lr,index:xr,style:{top:-sr+Bi.top},extra:!0,getHeight:Or})});return $r},Ht=te.useMemo(function(){return{columnsOffset:vt}},[vt]),$t="".concat(Xn,"-tbody"),hn=Ve(["body","wrapper"]),Pn={};return pr&&(Pn.position="sticky",Pn.bottom=0,(0,ye.Z)(pr)==="object"&&pr.offsetScroll&&(Pn.bottom=pr.offsetScroll)),te.createElement(oi.Provider,{value:Ht},te.createElement(Qr.Z,{fullHeight:!1,ref:it,prefixCls:"".concat($t,"-virtual"),styles:{horizontalScrollBar:Pn},className:$t,height:De,itemHeight:ke||24,data:dt,itemKey:function(pn){return En(pn.record)},component:hn,scrollWidth:yr,direction:br,onVirtualScroll:function(pn){var bn,Gn=pn.x;cn({currentTarget:(bn=it.current)===null||bn===void 0?void 0:bn.nativeElement,scrollLeft:Gn})},onScroll:qe,extraRender:Pt},function(Dn,pn,bn){var Gn=En(Dn.record,pn);return te.createElement(qi,{data:Dn,rowKey:Gn,index:pn,style:bn.style})}))}),ra=de(Qi),_i=ra,Ti=function(xt,Xt){var cn=Xt.ref,wn=Xt.onScroll;return te.createElement(_i,{ref:cn,data:xt,onScroll:wn})};function Xr(_t,xt){var Xt=_t.data,cn=_t.columns,wn=_t.scroll,Rn=_t.sticky,qn=_t.prefixCls,En=qn===void 0?Wr:qn,er=_t.className,Xn=_t.listItemHeight,Pr=_t.components,yr=_t.onScroll,br=wn||{},gr=br.x,pr=br.y;typeof gr!="number"&&(gr=1),typeof pr!="number"&&(pr=500);var De=(0,gt.zX)(function(qe,it){return(0,Ue.Z)(Pr,qe)||it}),ke=(0,gt.zX)(yr),Ve=te.useMemo(function(){return{sticky:Rn,scrollY:pr,listItemHeight:Xn,getComponent:De,onScroll:ke}},[Rn,pr,Xn,De,ke]);return te.createElement(Di.Provider,{value:Ve},te.createElement(ui,(0,ae.Z)({},_t,{className:Ae()(er,"".concat(En,"-virtual")),scroll:(0,be.Z)((0,be.Z)({},wn),{},{x:gr}),components:(0,be.Z)((0,be.Z)({},Pr),{},{body:Xt!=null&&Xt.length?Ti:void 0}),columns:cn,internalHooks:Me,tailor:!0,ref:xt})))}var rr=te.forwardRef(Xr);function Dr(_t){return se(rr,_t)}var Fr=Dr(),or=null,si=_t=>null,Ir=_t=>null,Hr=Ce(84105),ri=Ce(82661),un=Ce(34643),Vn=Ce(34061),Sn=Ce(18929);function Rr(_t){const[xt,Xt]=(0,te.useState)(null);return[(0,te.useCallback)((Rn,qn,En)=>{const er=xt!=null?xt:Rn,Xn=Math.min(er||0,Rn),Pr=Math.max(er||0,Rn),yr=qn.slice(Xn,Pr+1).map(pr=>_t(pr)),br=yr.some(pr=>!En.has(pr)),gr=[];return yr.forEach(pr=>{br?(En.has(pr)||gr.push(pr),En.add(pr)):(En.delete(pr),gr.push(pr))}),Xt(br?Pr:null),gr},[xt]),Rn=>{Xt(Rn)}]}var ti=Ce(32383),gn=Ce(62673),mi=Ce(75727),Nr=Ce(47889);const Ar={},pi="SELECT_ALL",Gi="SELECT_INVERT",gi="SELECT_NONE",Wi=[],Jr=(_t,xt)=>{let Xt=[];return(xt||[]).forEach(cn=>{Xt.push(cn),cn&&typeof cn=="object"&&_t in cn&&(Xt=[].concat((0,Nn.Z)(Xt),(0,Nn.Z)(Jr(_t,cn[_t]))))}),Xt};var Zr=(_t,xt)=>{const{preserveSelectedRowKeys:Xt,selectedRowKeys:cn,defaultSelectedRowKeys:wn,getCheckboxProps:Rn,onChange:qn,onSelect:En,onSelectAll:er,onSelectInvert:Xn,onSelectNone:Pr,onSelectMultiple:yr,columnWidth:br,type:gr,selections:pr,fixed:De,renderCell:ke,hideSelectAll:Ve,checkStrictly:qe=!0}=xt||{},{prefixCls:it,data:dt,pageData:bt,getRecordByKey:vt,getRowKey:Nt,expandType:Pt,childrenColumnName:Ht,locale:$t,getPopupContainer:hn}=_t,Pn=(0,ti.ln)("Table"),[Dn,pn]=Rr(xr=>xr),[bn,Gn]=(0,Sn.Z)(cn||wn||Wi,{value:cn}),Un=te.useRef(new Map),sr=(0,te.useCallback)(xr=>{if(Xt){const Yr=new Map;xr.forEach(Lr=>{let Or=vt(Lr);!Or&&Un.current.has(Lr)&&(Or=Un.current.get(Lr)),Yr.set(Lr,Or)}),Un.current=Yr}},[vt,Xt]);te.useEffect(()=>{sr(bn)},[bn]);const cr=(0,te.useMemo)(()=>Jr(Ht,bt),[Ht,bt]),{keyEntities:ni}=(0,te.useMemo)(()=>{if(qe)return{keyEntities:null};let xr=dt;if(Xt){const Yr=new Set(cr.map((Or,Bi)=>Nt(Or,Bi))),Lr=Array.from(Un.current).reduce((Or,Bi)=>{let[na,Oi]=Bi;return Yr.has(na)?Or:Or.concat(Oi)},[]);xr=[].concat((0,Nn.Z)(xr),(0,Nn.Z)(Lr))}return(0,Vn.I8)(xr,{externalGetKey:Nt,childrenPropName:Ht})},[dt,Nt,qe,Ht,Xt,cr]),Tr=(0,te.useMemo)(()=>{const xr=new Map;return cr.forEach((Yr,Lr)=>{const Or=Nt(Yr,Lr),Bi=(Rn?Rn(Yr):null)||{};xr.set(Or,Bi)}),xr},[cr,Nt,Rn]),Si=(0,te.useCallback)(xr=>{const Yr=Nt(xr);let Lr;return Tr.has(Yr)?Lr=Tr.get(Nt(xr)):Lr=Rn?Rn(xr):void 0,!!(Lr!=null&&Lr.disabled)},[Tr,Nt]),[Ui,Fi]=(0,te.useMemo)(()=>{if(qe)return[bn||[],[]];const{checkedKeys:xr,halfCheckedKeys:Yr}=(0,un.S)(bn,!0,ni,Si);return[xr||[],Yr]},[bn,qe,ni,Si]),jr=(0,te.useMemo)(()=>{const xr=gr==="radio"?Ui.slice(0,1):Ui;return new Set(xr)},[Ui,gr]),Vr=(0,te.useMemo)(()=>gr==="radio"?new Set:new Set(Fi),[Fi,gr]);te.useEffect(()=>{xt||Gn(Wi)},[!!xt]);const yi=(0,te.useCallback)((xr,Yr)=>{let Lr,Or;sr(xr),Xt?(Lr=xr,Or=xr.map(Bi=>Un.current.get(Bi))):(Lr=[],Or=[],xr.forEach(Bi=>{const na=vt(Bi);na!==void 0&&(Lr.push(Bi),Or.push(na))})),Gn(Lr),qn==null||qn(Lr,Or,{type:Yr})},[Gn,vt,qn,Xt]),zn=(0,te.useCallback)((xr,Yr,Lr,Or)=>{if(En){const Bi=Lr.map(na=>vt(na));En(vt(xr),Yr,Bi,Or)}yi(Lr,"single")},[En,vt,yi]),fr=(0,te.useMemo)(()=>!pr||Ve?null:(pr===!0?[pi,Gi,gi]:pr).map(Yr=>Yr===pi?{key:"all",text:$t.selectionAll,onSelect(){yi(dt.map((Lr,Or)=>Nt(Lr,Or)).filter(Lr=>{const Or=Tr.get(Lr);return!(Or!=null&&Or.disabled)||jr.has(Lr)}),"all")}}:Yr===Gi?{key:"invert",text:$t.selectInvert,onSelect(){const Lr=new Set(jr);bt.forEach((Bi,na)=>{const Oi=Nt(Bi,na),Ea=Tr.get(Oi);Ea!=null&&Ea.disabled||(Lr.has(Oi)?Lr.delete(Oi):Lr.add(Oi))});const Or=Array.from(Lr);Xn&&(Pn.deprecated(!1,"onSelectInvert","onChange"),Xn(Or)),yi(Or,"invert")}}:Yr===gi?{key:"none",text:$t.selectNone,onSelect(){Pr==null||Pr(),yi(Array.from(jr).filter(Lr=>{const Or=Tr.get(Lr);return Or==null?void 0:Or.disabled}),"none")}}:Yr).map(Yr=>Object.assign(Object.assign({},Yr),{onSelect:function(){for(var Lr,Or,Bi=arguments.length,na=new Array(Bi),Oi=0;Oi<Bi;Oi++)na[Oi]=arguments[Oi];(Or=Yr.onSelect)===null||Or===void 0||(Lr=Or).call.apply(Lr,[Yr].concat(na)),pn(null)}})),[pr,jr,bt,Nt,Xn,yi]);return[(0,te.useCallback)(xr=>{var Yr;if(!xt)return xr.filter(Za=>Za!==Ar);let Lr=(0,Nn.Z)(xr);const Or=new Set(jr),Bi=cr.map(Nt).filter(Za=>!Tr.get(Za).disabled),na=Bi.every(Za=>Or.has(Za)),Oi=Bi.some(Za=>Or.has(Za)),Ea=()=>{const Za=[];na?Bi.forEach(vo=>{Or.delete(vo),Za.push(vo)}):Bi.forEach(vo=>{Or.has(vo)||(Or.add(vo),Za.push(vo))});const ho=Array.from(Or);er==null||er(!na,ho.map(vo=>vt(vo)),Za.map(vo=>vt(vo))),yi(ho,"all"),pn(null)};let Ma,Na;if(gr!=="radio"){let Za;if(fr){const Ga={getPopupContainer:hn,items:fr.map((xo,so)=>{const{key:qo,text:No,onSelect:us}=xo;return{key:qo!=null?qo:so,onClick:()=>{us==null||us(Bi)},label:No}})};Za=te.createElement("div",{className:`${it}-selection-extra`},te.createElement(mi.Z,{menu:Ga,getPopupContainer:hn},te.createElement("span",null,te.createElement(Hr.Z,null))))}const ho=cr.map((Ga,xo)=>{const so=Nt(Ga,xo),qo=Tr.get(so)||{};return Object.assign({checked:Or.has(so)},qo)}).filter(Ga=>{let{disabled:xo}=Ga;return xo}),vo=!!ho.length&&ho.length===cr.length,ko=vo&&ho.every(Ga=>{let{checked:xo}=Ga;return xo}),Ao=vo&&ho.some(Ga=>{let{checked:xo}=Ga;return xo});Na=te.createElement(gn.default,{checked:vo?ko:!!cr.length&&na,indeterminate:vo?!ko&&Ao:!na&&Oi,onChange:Ea,disabled:cr.length===0||vo,"aria-label":Za?"Custom selection":"Select all",skipGroup:!0}),Ma=!Ve&&te.createElement("div",{className:`${it}-selection`},Na,Za)}let ji;gr==="radio"?ji=(Za,ho,vo)=>{const ko=Nt(ho,vo),Ao=Or.has(ko),Ga=Tr.get(ko);return{node:te.createElement(Nr.ZP,Object.assign({},Ga,{checked:Ao,onClick:xo=>{var so;xo.stopPropagation(),(so=Ga==null?void 0:Ga.onClick)===null||so===void 0||so.call(Ga,xo)},onChange:xo=>{var so;Or.has(ko)||zn(ko,!0,[ko],xo.nativeEvent),(so=Ga==null?void 0:Ga.onChange)===null||so===void 0||so.call(Ga,xo)}})),checked:Ao}}:ji=(Za,ho,vo)=>{var ko;const Ao=Nt(ho,vo),Ga=Or.has(Ao),xo=Vr.has(Ao),so=Tr.get(Ao);let qo;return Pt==="nest"?qo=xo:qo=(ko=so==null?void 0:so.indeterminate)!==null&&ko!==void 0?ko:xo,{node:te.createElement(gn.default,Object.assign({},so,{indeterminate:qo,checked:Ga,skipGroup:!0,onClick:No=>{var us;No.stopPropagation(),(us=so==null?void 0:so.onClick)===null||us===void 0||us.call(so,No)},onChange:No=>{var us;const{nativeEvent:ps}=No,{shiftKey:rl}=ps,mo=Bi.findIndex(cs=>cs===Ao),Nl=Ui.some(cs=>Bi.includes(cs));if(rl&&qe&&Nl){const cs=Dn(mo,Bi,Or),Ks=Array.from(Or);yr==null||yr(!Ga,Ks.map(Os=>vt(Os)),cs.map(Os=>vt(Os))),yi(Ks,"multiple")}else{const cs=Ui;if(qe){const Ks=Ga?(0,ri._5)(cs,Ao):(0,ri.L0)(cs,Ao);zn(Ao,!Ga,Ks,ps)}else{const Ks=(0,un.S)([].concat((0,Nn.Z)(cs),[Ao]),!0,ni,Si),{checkedKeys:Os,halfCheckedKeys:gs}=Ks;let po=Os;if(Ga){const Ps=new Set(Os);Ps.delete(Ao),po=(0,un.S)(Array.from(Ps),{checked:!1,halfCheckedKeys:gs},ni,Si).checkedKeys}zn(Ao,!Ga,po,ps)}}pn(Ga?null:mo),(us=so==null?void 0:so.onChange)===null||us===void 0||us.call(so,No)}})),checked:Ga}};const aa=(Za,ho,vo)=>{const{node:ko,checked:Ao}=ji(Za,ho,vo);return ke?ke(Ao,ho,vo,ko):ko};if(!Lr.includes(Ar))if(Lr.findIndex(Za=>{var ho;return((ho=Za[mr])===null||ho===void 0?void 0:ho.columnType)==="EXPAND_COLUMN"})===0){const[Za,...ho]=Lr;Lr=[Za,Ar].concat((0,Nn.Z)(ho))}else Lr=[Ar].concat((0,Nn.Z)(Lr));const Ua=Lr.indexOf(Ar);Lr=Lr.filter((Za,ho)=>Za!==Ar||ho===Ua);const oo=Lr[Ua-1],qa=Lr[Ua+1];let Ho=De;Ho===void 0&&((qa==null?void 0:qa.fixed)!==void 0?Ho=qa.fixed:(oo==null?void 0:oo.fixed)!==void 0&&(Ho=oo.fixed)),Ho&&oo&&((Yr=oo[mr])===null||Yr===void 0?void 0:Yr.columnType)==="EXPAND_COLUMN"&&oo.fixed===void 0&&(oo.fixed=Ho);const Po=Ae()(`${it}-selection-col`,{[`${it}-selection-col-with-dropdown`]:pr&&gr==="checkbox"}),ms=()=>xt!=null&&xt.columnTitle?typeof xt.columnTitle=="function"?xt.columnTitle(Na):xt.columnTitle:Ma,_o={fixed:Ho,width:br,className:`${it}-selection-column`,title:ms(),render:aa,onCell:xt.onCell,[mr]:{className:Po}};return Lr.map(Za=>Za===Ar?_o:Za)},[Nt,cr,xt,Ui,jr,Vr,br,fr,Pt,Tr,yr,zn,Si]),jr]},Vi=Ce(2738);function sa(_t,xt){return _t._antProxy=_t._antProxy||{},Object.keys(xt).forEach(Xt=>{if(!(Xt in _t._antProxy)){const cn=_t[Xt];_t._antProxy[Xt]=cn,_t[Xt]=xt[Xt]}}),_t}function vi(_t,xt){return(0,te.useImperativeHandle)(_t,()=>{const Xt=xt(),{nativeElement:cn}=Xt;return typeof Proxy!="undefined"?new Proxy(cn,{get(wn,Rn){return Xt[Rn]?Xt[Rn]:Reflect.get(wn,Rn)}}):sa(cn,Xt)})}var Ni=Ce(83010),Ii=Ce(48755),Mi=Ce(38406),fa=Ce(83397),ca=Ce(31756),la=Ce(13783),zi=Ce(85981),Da=Ce(31709),Ca=Ce(29787),Ra=Ce(57700);function to(_t){return xt=>{const{prefixCls:Xt,onExpand:cn,record:wn,expanded:Rn,expandable:qn}=xt,En=`${Xt}-row-expand-icon`;return te.createElement("button",{type:"button",onClick:er=>{cn(wn,er),er.stopPropagation()},className:Ae()(En,{[`${En}-spaced`]:!qn,[`${En}-expanded`]:qn&&Rn,[`${En}-collapsed`]:qn&&!Rn}),"aria-label":Rn?_t.collapse:_t.expand,"aria-expanded":Rn})}}var bi=to;function Yi(_t){return(Xt,cn)=>{const wn=Xt.querySelector(`.${_t}-container`);let Rn=cn;if(wn){const qn=getComputedStyle(wn),En=parseInt(qn.borderLeftWidth,10),er=parseInt(qn.borderRightWidth,10);Rn=cn-En-er}return Rn}}const Ei=(_t,xt)=>"key"in _t&&_t.key!==void 0&&_t.key!==null?_t.key:_t.dataIndex?Array.isArray(_t.dataIndex)?_t.dataIndex.join("."):_t.dataIndex:xt;function Ci(_t,xt){return xt?`${xt}-${_t}`:`${_t}`}const kr=(_t,xt)=>typeof _t=="function"?_t(xt):_t,Zi=(_t,xt)=>{const Xt=kr(_t,xt);return Object.prototype.toString.call(Xt)==="[object Object]"?"":Xt};var ma={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"},ba=ma,ir=Ce(7657),Ji=function(xt,Xt){return te.createElement(ir.Z,(0,ae.Z)({},xt,{ref:Xt,icon:ba}))},Va=te.forwardRef(Ji),no=Va,Ya=Ce(9981),xi=Ce(40192);function pa(_t){const xt=te.useRef(_t),Xt=(0,xi.Z)();return[()=>xt.current,cn=>{xt.current=cn,Xt()}]}var _a=Ce(7939),oa=Ce(584),Wa=Ce(93041),Ka=Ce(78857),fo=Ce(18287),Eo=Ce(47472),io=Ce(49397),Ba=_t=>{const{value:xt,filterSearch:Xt,tablePrefixCls:cn,locale:wn,onChange:Rn}=_t;return Xt?te.createElement("div",{className:`${cn}-filter-dropdown-search`},te.createElement(io.Z,{prefix:te.createElement(Eo.Z,null),placeholder:wn.filterSearchPlaceholder,onChange:Rn,value:xt,htmlSize:1,className:`${cn}-filter-dropdown-search-input`})):null},Fa=Ce(10228);const Wo=_t=>{const{keyCode:xt}=_t;xt===Fa.Z.ENTER&&_t.stopPropagation()};var Oo=te.forwardRef((_t,xt)=>te.createElement("div",{className:_t.className,onClick:Xt=>Xt.stopPropagation(),onKeyDown:Wo,ref:xt},_t.children));function Do(_t){let xt=[];return(_t||[]).forEach(Xt=>{let{value:cn,children:wn}=Xt;xt.push(cn),wn&&(xt=[].concat((0,Nn.Z)(xt),(0,Nn.Z)(Do(wn))))}),xt}function Xi(_t){return _t.some(xt=>{let{children:Xt}=xt;return Xt})}function Pi(_t,xt){return typeof xt=="string"||typeof xt=="number"?xt==null?void 0:xt.toString().toLowerCase().includes(_t.trim().toLowerCase()):!1}function lo(_t){let{filters:xt,prefixCls:Xt,filteredKeys:cn,filterMultiple:wn,searchValue:Rn,filterSearch:qn}=_t;return xt.map((En,er)=>{const Xn=String(En.value);if(En.children)return{key:Xn||er,label:En.text,popupClassName:`${Xt}-dropdown-submenu`,children:lo({filters:En.children,prefixCls:Xt,filteredKeys:cn,filterMultiple:wn,searchValue:Rn,filterSearch:qn})};const Pr=wn?gn.default:Nr.ZP,yr={key:En.value!==void 0?Xn:er,label:te.createElement(te.Fragment,null,te.createElement(Pr,{checked:cn.includes(Xn)}),te.createElement("span",null,En.text))};return Rn.trim()?typeof qn=="function"?qn(Rn,En)?yr:null:Pi(Rn,En.text)?yr:null:yr})}function Qa(_t){return _t||[]}var zr=_t=>{var xt,Xt,cn,wn;const{tablePrefixCls:Rn,prefixCls:qn,column:En,dropdownPrefixCls:er,columnKey:Xn,filterOnClose:Pr,filterMultiple:yr,filterMode:br="menu",filterSearch:gr=!1,filterState:pr,triggerFilter:De,locale:ke,children:Ve,getPopupContainer:qe,rootClassName:it}=_t,{filterResetToDefaultFilteredValue:dt,defaultFilteredValue:bt,filterDropdownProps:vt={},filterDropdownOpen:Nt,filterDropdownVisible:Pt,onFilterDropdownVisibleChange:Ht,onFilterDropdownOpenChange:$t}=En,[hn,Pn]=te.useState(!1),Dn=!!(pr&&(!((xt=pr.filteredKeys)===null||xt===void 0)&&xt.length||pr.forceFiltered)),pn=ji=>{var aa;Pn(ji),(aa=vt.onOpenChange)===null||aa===void 0||aa.call(vt,ji),$t==null||$t(ji),Ht==null||Ht(ji)},bn=(wn=(cn=(Xt=vt.open)!==null&&Xt!==void 0?Xt:Nt)!==null&&cn!==void 0?cn:Pt)!==null&&wn!==void 0?wn:hn,Gn=pr==null?void 0:pr.filteredKeys,[Un,sr]=pa(Qa(Gn)),cr=ji=>{let{selectedKeys:aa}=ji;sr(aa)},ni=(ji,aa)=>{let{node:Ua,checked:oo}=aa;cr(yr?{selectedKeys:ji}:{selectedKeys:oo&&Ua.key?[Ua.key]:[]})};te.useEffect(()=>{hn&&cr({selectedKeys:Qa(Gn)})},[Gn]);const[Tr,Si]=te.useState([]),Ui=ji=>{Si(ji)},[Fi,jr]=te.useState(""),Vr=ji=>{const{value:aa}=ji.target;jr(aa)};te.useEffect(()=>{hn||jr("")},[hn]);const yi=ji=>{const aa=ji!=null&&ji.length?ji:null;if(aa===null&&(!pr||!pr.filteredKeys)||(0,ue.Z)(aa,pr==null?void 0:pr.filteredKeys,!0))return null;De({column:En,key:Xn,filteredKeys:aa})},zn=()=>{pn(!1),yi(Un())},fr=function(){let{confirm:ji,closeDropdown:aa}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};ji&&yi([]),aa&&pn(!1),jr(""),sr(dt?(bt||[]).map(Ua=>String(Ua)):[])},$r=function(){let{closeDropdown:ji}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};ji&&pn(!1),yi(Un())},xr=(ji,aa)=>{aa.source==="trigger"&&(ji&&Gn!==void 0&&sr(Qa(Gn)),pn(ji),!ji&&!En.filterDropdown&&Pr&&zn())},Yr=Ae()({[`${er}-menu-without-submenu`]:!Xi(En.filters||[])}),Lr=ji=>{if(ji.target.checked){const aa=Do(En==null?void 0:En.filters).map(Ua=>String(Ua));sr(aa)}else sr([])},Or=ji=>{let{filters:aa}=ji;return(aa||[]).map((Ua,oo)=>{const qa=String(Ua.value),Ho={title:Ua.text,key:Ua.value!==void 0?qa:String(oo)};return Ua.children&&(Ho.children=Or({filters:Ua.children})),Ho})},Bi=ji=>{var aa;return Object.assign(Object.assign({},ji),{text:ji.title,value:ji.key,children:((aa=ji.children)===null||aa===void 0?void 0:aa.map(Ua=>Bi(Ua)))||[]})};let na;const{direction:Oi,renderEmpty:Ea}=te.useContext(Ii.E_);if(typeof En.filterDropdown=="function")na=En.filterDropdown({prefixCls:`${er}-custom`,setSelectedKeys:ji=>cr({selectedKeys:ji}),selectedKeys:Un(),confirm:$r,clearFilters:fr,filters:En.filters,visible:bn,close:()=>{pn(!1)}});else if(En.filterDropdown)na=En.filterDropdown;else{const ji=Un()||[],aa=()=>{var oo,qa;const Ho=(oo=Ea==null?void 0:Ea("Table.filter"))!==null&&oo!==void 0?oo:te.createElement(oa.Z,{image:oa.Z.PRESENTED_IMAGE_SIMPLE,description:ke.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((En.filters||[]).length===0)return Ho;if(br==="tree")return te.createElement(te.Fragment,null,te.createElement(Ba,{filterSearch:gr,value:Fi,onChange:Vr,tablePrefixCls:Rn,locale:ke}),te.createElement("div",{className:`${Rn}-filter-dropdown-tree`},yr?te.createElement(gn.default,{checked:ji.length===Do(En.filters).length,indeterminate:ji.length>0&&ji.length<Do(En.filters).length,className:`${Rn}-filter-dropdown-checkall`,onChange:Lr},(qa=ke==null?void 0:ke.filterCheckall)!==null&&qa!==void 0?qa:ke==null?void 0:ke.filterCheckAll):null,te.createElement(fo.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:yr,checkStrictly:!yr,className:`${er}-menu`,onCheck:ni,checkedKeys:ji,selectedKeys:ji,showIcon:!1,treeData:Or({filters:En.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Fi.trim()?_o=>typeof gr=="function"?gr(Fi,Bi(_o)):Pi(Fi,_o.title):void 0})));const Po=lo({filters:En.filters||[],filterSearch:gr,prefixCls:qn,filteredKeys:Un(),filterMultiple:yr,searchValue:Fi}),ms=Po.every(_o=>_o===null);return te.createElement(te.Fragment,null,te.createElement(Ba,{filterSearch:gr,value:Fi,onChange:Vr,tablePrefixCls:Rn,locale:ke}),ms?Ho:te.createElement(Wa.default,{selectable:!0,multiple:yr,prefixCls:`${er}-menu`,className:Yr,onSelect:cr,onDeselect:cr,selectedKeys:ji,getPopupContainer:qe,openKeys:Tr,onOpenChange:Ui,items:Po}))},Ua=()=>dt?(0,ue.Z)((bt||[]).map(oo=>String(oo)),ji,!0):ji.length===0;na=te.createElement(te.Fragment,null,aa(),te.createElement("div",{className:`${qn}-dropdown-btns`},te.createElement(_a.ZP,{type:"link",size:"small",disabled:Ua(),onClick:()=>fr()},ke.filterReset),te.createElement(_a.ZP,{type:"primary",size:"small",onClick:zn},ke.filterConfirm)))}En.filterDropdown&&(na=te.createElement(Ka.J,{selectable:void 0},na)),na=te.createElement(Oo,{className:`${qn}-dropdown`},na);const Ma=()=>{let ji;return typeof En.filterIcon=="function"?ji=En.filterIcon(Dn):En.filterIcon?ji=En.filterIcon:ji=te.createElement(no,null),te.createElement("span",{role:"button",tabIndex:-1,className:Ae()(`${qn}-trigger`,{active:Dn}),onClick:aa=>{aa.stopPropagation()}},ji)},Na=(0,Ya.Z)({trigger:["click"],placement:Oi==="rtl"?"bottomLeft":"bottomRight",children:Ma(),getPopupContainer:qe},Object.assign(Object.assign({},vt),{rootClassName:Ae()(it,vt.rootClassName),open:bn,onOpenChange:xr,dropdownRender:()=>typeof(vt==null?void 0:vt.dropdownRender)=="function"?vt.dropdownRender(na):na}));return te.createElement("div",{className:`${qn}-column`},te.createElement("span",{className:`${Rn}-column-title`},Ve),te.createElement(mi.Z,Object.assign({},Na)))};const fi=(_t,xt,Xt)=>{let cn=[];return(_t||[]).forEach((wn,Rn)=>{var qn;const En=Ci(Rn,Xt);if(wn.filters||"filterDropdown"in wn||"onFilter"in wn)if("filteredValue"in wn){let er=wn.filteredValue;"filterDropdown"in wn||(er=(qn=er==null?void 0:er.map(String))!==null&&qn!==void 0?qn:er),cn.push({column:wn,key:Ei(wn,En),filteredKeys:er,forceFiltered:wn.filtered})}else cn.push({column:wn,key:Ei(wn,En),filteredKeys:xt&&wn.defaultFilteredValue?wn.defaultFilteredValue:void 0,forceFiltered:wn.filtered});"children"in wn&&(cn=[].concat((0,Nn.Z)(cn),(0,Nn.Z)(fi(wn.children,xt,En))))}),cn};function Sa(_t,xt,Xt,cn,wn,Rn,qn,En,er){return Xt.map((Xn,Pr)=>{const yr=Ci(Pr,En),{filterOnClose:br=!0,filterMultiple:gr=!0,filterMode:pr,filterSearch:De}=Xn;let ke=Xn;if(ke.filters||ke.filterDropdown){const Ve=Ei(ke,yr),qe=cn.find(it=>{let{key:dt}=it;return Ve===dt});ke=Object.assign(Object.assign({},ke),{title:it=>te.createElement(zr,{tablePrefixCls:_t,prefixCls:`${_t}-filter`,dropdownPrefixCls:xt,column:ke,columnKey:Ve,filterState:qe,filterOnClose:br,filterMultiple:gr,filterMode:pr,filterSearch:De,triggerFilter:Rn,locale:wn,getPopupContainer:qn,rootClassName:er},kr(Xn.title,it))})}return"children"in ke&&(ke=Object.assign(Object.assign({},ke),{children:Sa(_t,xt,ke.children,cn,wn,Rn,qn,yr,er)})),ke})}const Ri=_t=>{const xt={};return _t.forEach(Xt=>{let{key:cn,filteredKeys:wn,column:Rn}=Xt;const qn=cn,{filters:En,filterDropdown:er}=Rn;if(er)xt[qn]=wn||null;else if(Array.isArray(wn)){const Xn=Do(En);xt[qn]=Xn.filter(Pr=>wn.includes(String(Pr)))}else xt[qn]=null}),xt},hi=(_t,xt,Xt)=>xt.reduce((wn,Rn)=>{const{column:{onFilter:qn,filters:En},filteredKeys:er}=Rn;return qn&&er&&er.length?wn.map(Xn=>Object.assign({},Xn)).filter(Xn=>er.some(Pr=>{const yr=Do(En),br=yr.findIndex(pr=>String(pr)===String(Pr)),gr=br!==-1?yr[br]:Pr;return Xn[Xt]&&(Xn[Xt]=hi(Xn[Xt],xt,Xt)),qn(gr,Xn)})):wn},_t),wa=_t=>_t.flatMap(xt=>"children"in xt?[xt].concat((0,Nn.Z)(wa(xt.children||[]))):[xt]);var ga=_t=>{const{prefixCls:xt,dropdownPrefixCls:Xt,mergedColumns:cn,onFilterChange:wn,getPopupContainer:Rn,locale:qn,rootClassName:En}=_t,er=(0,ti.ln)("Table"),Xn=te.useMemo(()=>wa(cn||[]),[cn]),[Pr,yr]=te.useState(()=>fi(Xn,!0)),br=te.useMemo(()=>{const ke=fi(Xn,!1);if(ke.length===0)return ke;let Ve=!0,qe=!0;if(ke.forEach(it=>{let{filteredKeys:dt}=it;dt!==void 0?Ve=!1:qe=!1}),Ve){const it=(Xn||[]).map((dt,bt)=>Ei(dt,Ci(bt)));return Pr.filter(dt=>{let{key:bt}=dt;return it.includes(bt)}).map(dt=>{const bt=Xn[it.findIndex(vt=>vt===dt.key)];return Object.assign(Object.assign({},dt),{column:Object.assign(Object.assign({},dt.column),bt),forceFiltered:bt.filtered})})}return ke},[Xn,Pr]),gr=te.useMemo(()=>Ri(br),[br]),pr=ke=>{const Ve=br.filter(qe=>{let{key:it}=qe;return it!==ke.key});Ve.push(ke),yr(Ve),wn(Ri(Ve),Ve)};return[ke=>Sa(xt,Xt,ke,br,qn,pr,Rn,void 0,En),br,gr]},ka=(_t,xt,Xt)=>{const cn=te.useRef({});function wn(Rn){var qn;if(!cn.current||cn.current.data!==_t||cn.current.childrenColumnName!==xt||cn.current.getRowKey!==Xt){let er=function(Xn){Xn.forEach((Pr,yr)=>{const br=Xt(Pr,yr);En.set(br,Pr),Pr&&typeof Pr=="object"&&xt in Pr&&er(Pr[xt]||[])})};const En=new Map;er(_t),cn.current={data:_t,childrenColumnName:xt,kvMap:En,getRowKey:Xt}}return(qn=cn.current.kvMap)===null||qn===void 0?void 0:qn.get(Rn)}return[wn]},Co=function(_t,xt){var Xt={};for(var cn in _t)Object.prototype.hasOwnProperty.call(_t,cn)&&xt.indexOf(cn)<0&&(Xt[cn]=_t[cn]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wn=0,cn=Object.getOwnPropertySymbols(_t);wn<cn.length;wn++)xt.indexOf(cn[wn])<0&&Object.prototype.propertyIsEnumerable.call(_t,cn[wn])&&(Xt[cn[wn]]=_t[cn[wn]]);return Xt};const Qo=10;function Ro(_t,xt){const Xt={current:_t.current,pageSize:_t.pageSize};return Object.keys(xt&&typeof xt=="object"?xt:{}).forEach(wn=>{const Rn=_t[wn];typeof Rn!="function"&&(Xt[wn]=Rn)}),Xt}function Jo(_t,xt,Xt){const cn=Xt&&typeof Xt=="object"?Xt:{},{total:wn=0}=cn,Rn=Co(cn,["total"]),[qn,En]=(0,te.useState)(()=>({current:"defaultCurrent"in Rn?Rn.defaultCurrent:1,pageSize:"defaultPageSize"in Rn?Rn.defaultPageSize:Qo})),er=(0,Ya.Z)(qn,Rn,{total:wn>0?wn:_t}),Xn=Math.ceil((wn||_t)/er.pageSize);er.current>Xn&&(er.current=Xn||1);const Pr=(br,gr)=>{En({current:br!=null?br:1,pageSize:gr||er.pageSize})},yr=(br,gr)=>{var pr;Xt&&((pr=Xt.onChange)===null||pr===void 0||pr.call(Xt,br,gr)),Pr(br,gr),xt(br,gr||(er==null?void 0:er.pageSize))};return Xt===!1?[{},()=>{}]:[Object.assign(Object.assign({},er),{onChange:yr}),Pr]}var wo=Jo,Ns=Ce(89489),uo=Ce(59477),As=Ce(25399);const Ds="ascend",_s="descend",xs=_t=>typeof _t.sorter=="object"&&typeof _t.sorter.multiple=="number"?_t.sorter.multiple:!1,To=_t=>typeof _t=="function"?_t:_t&&typeof _t=="object"&&_t.compare?_t.compare:!1,Ts=(_t,xt)=>xt?_t[_t.indexOf(xt)+1]:_t[0],ls=(_t,xt,Xt)=>{let cn=[];const wn=(Rn,qn)=>{cn.push({column:Rn,key:Ei(Rn,qn),multiplePriority:xs(Rn),sortOrder:Rn.sortOrder})};return(_t||[]).forEach((Rn,qn)=>{const En=Ci(qn,Xt);Rn.children?("sortOrder"in Rn&&wn(Rn,En),cn=[].concat((0,Nn.Z)(cn),(0,Nn.Z)(ls(Rn.children,xt,En)))):Rn.sorter&&("sortOrder"in Rn?wn(Rn,En):xt&&Rn.defaultSortOrder&&cn.push({column:Rn,key:Ei(Rn,En),multiplePriority:xs(Rn),sortOrder:Rn.defaultSortOrder}))}),cn},Qs=(_t,xt,Xt,cn,wn,Rn,qn,En)=>(xt||[]).map((Xn,Pr)=>{const yr=Ci(Pr,En);let br=Xn;if(br.sorter){const gr=br.sortDirections||wn,pr=br.showSorterTooltip===void 0?qn:br.showSorterTooltip,De=Ei(br,yr),ke=Xt.find(Ht=>{let{key:$t}=Ht;return $t===De}),Ve=ke?ke.sortOrder:null,qe=Ts(gr,Ve);let it;if(Xn.sortIcon)it=Xn.sortIcon({sortOrder:Ve});else{const Ht=gr.includes(Ds)&&te.createElement(uo.Z,{className:Ae()(`${_t}-column-sorter-up`,{active:Ve===Ds})}),$t=gr.includes(_s)&&te.createElement(Ns.Z,{className:Ae()(`${_t}-column-sorter-down`,{active:Ve===_s})});it=te.createElement("span",{className:Ae()(`${_t}-column-sorter`,{[`${_t}-column-sorter-full`]:!!(Ht&&$t)})},te.createElement("span",{className:`${_t}-column-sorter-inner`,"aria-hidden":"true"},Ht,$t))}const{cancelSort:dt,triggerAsc:bt,triggerDesc:vt}=Rn||{};let Nt=dt;qe===_s?Nt=vt:qe===Ds&&(Nt=bt);const Pt=typeof pr=="object"?Object.assign({title:Nt},pr):{title:Nt};br=Object.assign(Object.assign({},br),{className:Ae()(br.className,{[`${_t}-column-sort`]:Ve}),title:Ht=>{const $t=`${_t}-column-sorters`,hn=te.createElement("span",{className:`${_t}-column-title`},kr(Xn.title,Ht)),Pn=te.createElement("div",{className:$t},hn,it);return pr?typeof pr!="boolean"&&(pr==null?void 0:pr.target)==="sorter-icon"?te.createElement("div",{className:`${$t} ${_t}-column-sorters-tooltip-target-sorter`},hn,te.createElement(As.Z,Object.assign({},Pt),it)):te.createElement(As.Z,Object.assign({},Pt),Pn):Pn},onHeaderCell:Ht=>{var $t;const hn=(($t=Xn.onHeaderCell)===null||$t===void 0?void 0:$t.call(Xn,Ht))||{},Pn=hn.onClick,Dn=hn.onKeyDown;hn.onClick=Gn=>{cn({column:Xn,key:De,sortOrder:qe,multiplePriority:xs(Xn)}),Pn==null||Pn(Gn)},hn.onKeyDown=Gn=>{Gn.keyCode===Fa.Z.ENTER&&(cn({column:Xn,key:De,sortOrder:qe,multiplePriority:xs(Xn)}),Dn==null||Dn(Gn))};const pn=Zi(Xn.title,{}),bn=pn==null?void 0:pn.toString();return Ve&&(hn["aria-sort"]=Ve==="ascend"?"ascending":"descending"),hn["aria-label"]=bn||"",hn.className=Ae()(hn.className,`${_t}-column-has-sorters`),hn.tabIndex=0,Xn.ellipsis&&(hn.title=(pn!=null?pn:"").toString()),hn}})}return"children"in br&&(br=Object.assign(Object.assign({},br),{children:Qs(_t,br.children,Xt,cn,wn,Rn,qn,yr)})),br}),wl=_t=>{const{column:xt,sortOrder:Xt}=_t;return{column:xt,order:Xt,field:xt.dataIndex,columnKey:xt.key}},Js=_t=>{const xt=_t.filter(Xt=>{let{sortOrder:cn}=Xt;return cn}).map(wl);if(xt.length===0&&_t.length){const Xt=_t.length-1;return Object.assign(Object.assign({},wl(_t[Xt])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return xt.length<=1?xt[0]||{}:xt},Es=(_t,xt,Xt)=>{const cn=xt.slice().sort((qn,En)=>En.multiplePriority-qn.multiplePriority),wn=_t.slice(),Rn=cn.filter(qn=>{let{column:{sorter:En},sortOrder:er}=qn;return To(En)&&er});return Rn.length?wn.sort((qn,En)=>{for(let er=0;er<Rn.length;er+=1){const Xn=Rn[er],{column:{sorter:Pr},sortOrder:yr}=Xn,br=To(Pr);if(br&&yr){const gr=br(qn,En,yr);if(gr!==0)return yr===Ds?gr:-gr}}return 0}).map(qn=>{const En=qn[Xt];return En?Object.assign(Object.assign({},qn),{[Xt]:Es(En,xt,Xt)}):qn}):wn};var Cs=_t=>{const{prefixCls:xt,mergedColumns:Xt,sortDirections:cn,tableLocale:wn,showSorterTooltip:Rn,onSorterChange:qn}=_t,[En,er]=te.useState(ls(Xt,!0)),Xn=(De,ke)=>{const Ve=[];return De.forEach((qe,it)=>{const dt=Ci(it,ke);if(Ve.push(Ei(qe,dt)),Array.isArray(qe.children)){const bt=Xn(qe.children,dt);Ve.push.apply(Ve,(0,Nn.Z)(bt))}}),Ve},Pr=te.useMemo(()=>{let De=!0;const ke=ls(Xt,!1);if(!ke.length){const dt=Xn(Xt);return En.filter(bt=>{let{key:vt}=bt;return dt.includes(vt)})}const Ve=[];function qe(dt){De?Ve.push(dt):Ve.push(Object.assign(Object.assign({},dt),{sortOrder:null}))}let it=null;return ke.forEach(dt=>{it===null?(qe(dt),dt.sortOrder&&(dt.multiplePriority===!1?De=!1:it=!0)):(it&&dt.multiplePriority!==!1||(De=!1),qe(dt))}),Ve},[Xt,En]),yr=te.useMemo(()=>{var De,ke;const Ve=Pr.map(qe=>{let{column:it,sortOrder:dt}=qe;return{column:it,order:dt}});return{sortColumns:Ve,sortColumn:(De=Ve[0])===null||De===void 0?void 0:De.column,sortOrder:(ke=Ve[0])===null||ke===void 0?void 0:ke.order}},[Pr]),br=De=>{let ke;De.multiplePriority===!1||!Pr.length||Pr[0].multiplePriority===!1?ke=[De]:ke=[].concat((0,Nn.Z)(Pr.filter(Ve=>{let{key:qe}=Ve;return qe!==De.key})),[De]),er(ke),qn(Js(ke),ke)};return[De=>Qs(xt,De,Pr,br,cn,wn,Rn),Pr,yr,()=>Js(Pr)]};const $s=(_t,xt)=>_t.map(cn=>{const wn=Object.assign({},cn);return wn.title=kr(cn.title,xt),"children"in wn&&(wn.children=$s(wn.children,xt)),wn});var Ms=_t=>[te.useCallback(Xt=>$s(Xt,_t),[_t])],fs=Li((_t,xt)=>{const{_renderTimes:Xt}=_t,{_renderTimes:cn}=xt;return Xt!==cn}),Fs=Dr((_t,xt)=>{const{_renderTimes:Xt}=_t,{_renderTimes:cn}=xt;return Xt!==cn}),xa=Ce(36237),ol=Ce(17835),ks=Ce(63356),bs=Ce(16931),cl=Ce(51636),Vs=_t=>{const{componentCls:xt,lineWidth:Xt,lineType:cn,tableBorderColor:wn,tableHeaderBg:Rn,tablePaddingVertical:qn,tablePaddingHorizontal:En,calc:er}=_t,Xn=`${(0,xa.unit)(Xt)} ${cn} ${wn}`,Pr=(yr,br,gr)=>({[`&${xt}-${yr}`]:{[`> ${xt}-container`]:{[`> ${xt}-content, > ${xt}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${xt}-expanded-row-fixed`]:{margin:`${(0,xa.unit)(er(br).mul(-1).equal())}
|
|
|
${(0,xa.unit)(er(er(gr).add(Xt)).mul(-1).equal())}`}}}}}});return{[`${xt}-wrapper`]:{[`${xt}${xt}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${xt}-title`]:{border:Xn,borderBottom:0},[`> ${xt}-container`]:{borderInlineStart:Xn,borderTop:Xn,[`
|
|
|
> ${xt}-content,
|
|
|
> ${xt}-header,
|
|
|
> ${xt}-body,
|
|
|
> ${xt}-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:Xn},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Xn},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${xt}-cell-fix-right-first::after`]:{borderInlineEnd:Xn}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${xt}-expanded-row-fixed`]:{margin:`${(0,xa.unit)(er(qn).mul(-1).equal())} ${(0,xa.unit)(er(er(En).add(Xt)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:Xt,bottom:0,borderInlineEnd:Xn,content:'""'}}}}}},[`&${xt}-scroll-horizontal`]:{[`> ${xt}-container > ${xt}-body`]:{"> table > tbody":{[`
|
|
|
> tr${xt}-expanded-row,
|
|
|
> tr${xt}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Pr("middle",_t.tablePaddingVerticalMiddle,_t.tablePaddingHorizontalMiddle)),Pr("small",_t.tablePaddingVerticalSmall,_t.tablePaddingHorizontalSmall)),{[`> ${xt}-footer`]:{border:Xn,borderTop:0}}),[`${xt}-cell`]:{[`${xt}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,xa.unit)(Xt)} 0 ${(0,xa.unit)(Xt)} ${Rn}`}},[`${xt}-bordered ${xt}-cell-scrollbar`]:{borderInlineEnd:Xn}}}},Us=_t=>{const{componentCls:xt}=_t;return{[`${xt}-wrapper`]:{[`${xt}-cell-ellipsis`]:Object.assign(Object.assign({},ks.vS),{wordBreak:"keep-all",[`
|
|
|
&${xt}-cell-fix-left-last,
|
|
|
&${xt}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${xt}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${xt}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Ll=_t=>{const{componentCls:xt}=_t;return{[`${xt}-wrapper`]:{[`${xt}-tbody > tr${xt}-placeholder`]:{textAlign:"center",color:_t.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:_t.colorBgContainer}}}}},dl=_t=>{const{componentCls:xt,antCls:Xt,motionDurationSlow:cn,lineWidth:wn,paddingXS:Rn,lineType:qn,tableBorderColor:En,tableExpandIconBg:er,tableExpandColumnWidth:Xn,borderRadius:Pr,tablePaddingVertical:yr,tablePaddingHorizontal:br,tableExpandedRowBg:gr,paddingXXS:pr,expandIconMarginTop:De,expandIconSize:ke,expandIconHalfInner:Ve,expandIconScale:qe,calc:it}=_t,dt=`${(0,xa.unit)(wn)} ${qn} ${En}`,bt=it(pr).sub(wn).equal();return{[`${xt}-wrapper`]:{[`${xt}-expand-icon-col`]:{width:Xn},[`${xt}-row-expand-icon-cell`]:{textAlign:"center",[`${xt}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${xt}-row-indent`]:{height:1,float:"left"},[`${xt}-row-expand-icon`]:Object.assign(Object.assign({},(0,ks.Nd)(_t)),{position:"relative",float:"left",width:ke,height:ke,color:"inherit",lineHeight:(0,xa.unit)(ke),background:er,border:dt,borderRadius:Pr,transform:`scale(${qe})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${cn} ease-out`,content:'""'},"&::before":{top:Ve,insetInlineEnd:bt,insetInlineStart:bt,height:wn},"&::after":{top:bt,bottom:bt,insetInlineStart:Ve,width:wn,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"}}),[`${xt}-row-indent + ${xt}-row-expand-icon`]:{marginTop:De,marginInlineEnd:Rn},[`tr${xt}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:gr}},[`${Xt}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${xt}-expanded-row-fixed`]:{position:"relative",margin:`${(0,xa.unit)(it(yr).mul(-1).equal())} ${(0,xa.unit)(it(br).mul(-1).equal())}`,padding:`${(0,xa.unit)(yr)} ${(0,xa.unit)(br)}`}}}},gl=_t=>{const{componentCls:xt,antCls:Xt,iconCls:cn,tableFilterDropdownWidth:wn,tableFilterDropdownSearchWidth:Rn,paddingXXS:qn,paddingXS:En,colorText:er,lineWidth:Xn,lineType:Pr,tableBorderColor:yr,headerIconColor:br,fontSizeSM:gr,tablePaddingHorizontal:pr,borderRadius:De,motionDurationSlow:ke,colorTextDescription:Ve,colorPrimary:qe,tableHeaderFilterActiveBg:it,colorTextDisabled:dt,tableFilterDropdownBg:bt,tableFilterDropdownHeight:vt,controlItemBgHover:Nt,controlItemBgActive:Pt,boxShadowSecondary:Ht,filterDropdownMenuBg:$t,calc:hn}=_t,Pn=`${Xt}-dropdown`,Dn=`${xt}-filter-dropdown`,pn=`${Xt}-tree`,bn=`${(0,xa.unit)(Xn)} ${Pr} ${yr}`;return[{[`${xt}-wrapper`]:{[`${xt}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${xt}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:hn(qn).mul(-1).equal(),marginInline:`${(0,xa.unit)(qn)} ${(0,xa.unit)(hn(pr).div(2).mul(-1).equal())}`,padding:`0 ${(0,xa.unit)(qn)}`,color:br,fontSize:gr,borderRadius:De,cursor:"pointer",transition:`all ${ke}`,"&:hover":{color:Ve,background:it},"&.active":{color:qe}}}},{[`${Xt}-dropdown`]:{[Dn]:Object.assign(Object.assign({},(0,ks.Wf)(_t)),{minWidth:wn,backgroundColor:bt,borderRadius:De,boxShadow:Ht,overflow:"hidden",[`${Pn}-menu`]:{maxHeight:vt,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:$t,"&:empty::after":{display:"block",padding:`${(0,xa.unit)(En)} 0`,color:dt,fontSize:gr,textAlign:"center",content:'"Not Found"'}},[`${Dn}-tree`]:{paddingBlock:`${(0,xa.unit)(En)} 0`,paddingInline:En,[pn]:{padding:0},[`${pn}-treenode ${pn}-node-content-wrapper:hover`]:{backgroundColor:Nt},[`${pn}-treenode-checkbox-checked ${pn}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Pt}}},[`${Dn}-search`]:{padding:En,borderBottom:bn,"&-input":{input:{minWidth:Rn},[cn]:{color:dt}}},[`${Dn}-checkall`]:{width:"100%",marginBottom:qn,marginInlineStart:qn},[`${Dn}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,xa.unit)(hn(En).sub(Xn).equal())} ${(0,xa.unit)(En)}`,overflow:"hidden",borderTop:bn}})}},{[`${Xt}-dropdown ${Dn}, ${Dn}-submenu`]:{[`${Xt}-checkbox-wrapper + span`]:{paddingInlineStart:En,color:er},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},tl=_t=>{const{componentCls:xt,lineWidth:Xt,colorSplit:cn,motionDurationSlow:wn,zIndexTableFixed:Rn,tableBg:qn,zIndexTableSticky:En,calc:er}=_t,Xn=cn;return{[`${xt}-wrapper`]:{[`
|
|
|
${xt}-cell-fix-left,
|
|
|
${xt}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:Rn,background:qn},[`
|
|
|
${xt}-cell-fix-left-first::after,
|
|
|
${xt}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:er(Xt).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${wn}`,content:'""',pointerEvents:"none"},[`${xt}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${xt}-cell-fix-right-first::after,
|
|
|
${xt}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:er(Xt).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${wn}`,content:'""',pointerEvents:"none"},[`${xt}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:er(En).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${wn}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${xt}-ping-left`]:{[`&:not(${xt}-has-fix-left) ${xt}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${Xn}`},[`
|
|
|
${xt}-cell-fix-left-first::after,
|
|
|
${xt}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${Xn}`},[`${xt}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${xt}-ping-right`]:{[`&:not(${xt}-has-fix-right) ${xt}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${Xn}`},[`
|
|
|
${xt}-cell-fix-right-first::after,
|
|
|
${xt}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${Xn}`}},[`${xt}-fixed-column-gapped`]:{[`
|
|
|
${xt}-cell-fix-left-first::after,
|
|
|
${xt}-cell-fix-left-last::after,
|
|
|
${xt}-cell-fix-right-first::after,
|
|
|
${xt}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:"none"}}}}},nl=_t=>{const{componentCls:xt,antCls:Xt,margin:cn}=_t;return{[`${xt}-wrapper`]:{[`${xt}-pagination${Xt}-pagination`]:{margin:`${(0,xa.unit)(cn)} 0`},[`${xt}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:_t.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},yl=_t=>{const{componentCls:xt,tableRadius:Xt}=_t;return{[`${xt}-wrapper`]:{[xt]:{[`${xt}-title, ${xt}-header`]:{borderRadius:`${(0,xa.unit)(Xt)} ${(0,xa.unit)(Xt)} 0 0`},[`${xt}-title + ${xt}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${xt}-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:Xt,borderStartEndRadius:Xt,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Xt},"> *:last-child":{borderStartEndRadius:Xt}}},"&-footer":{borderRadius:`0 0 ${(0,xa.unit)(Xt)} ${(0,xa.unit)(Xt)}`}}}}},_l=_t=>{const{componentCls:xt}=_t;return{[`${xt}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${xt}-pagination-left`]:{justifyContent:"flex-end"},[`${xt}-pagination-right`]:{justifyContent:"flex-start"},[`${xt}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${xt}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${xt}-row-indent`]:{float:"right"}}}}},vs=_t=>{const{componentCls:xt,antCls:Xt,iconCls:cn,fontSizeIcon:wn,padding:Rn,paddingXS:qn,headerIconColor:En,headerIconHoverColor:er,tableSelectionColumnWidth:Xn,tableSelectedRowBg:Pr,tableSelectedRowHoverBg:yr,tableRowHoverBg:br,tablePaddingHorizontal:gr,calc:pr}=_t;return{[`${xt}-wrapper`]:{[`${xt}-selection-col`]:{width:Xn,[`&${xt}-selection-col-with-dropdown`]:{width:pr(Xn).add(wn).add(pr(Rn).div(4)).equal()}},[`${xt}-bordered ${xt}-selection-col`]:{width:pr(Xn).add(pr(qn).mul(2)).equal(),[`&${xt}-selection-col-with-dropdown`]:{width:pr(Xn).add(wn).add(pr(Rn).div(4)).add(pr(qn).mul(2)).equal()}},[`
|
|
|
table tr th${xt}-selection-column,
|
|
|
table tr td${xt}-selection-column,
|
|
|
${xt}-selection-column
|
|
|
`]:{paddingInlineEnd:_t.paddingXS,paddingInlineStart:_t.paddingXS,textAlign:"center",[`${Xt}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${xt}-selection-column${xt}-cell-fix-left`]:{zIndex:pr(_t.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${xt}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${xt}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${xt}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${_t.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,xa.unit)(pr(gr).div(4).equal()),[cn]:{color:En,fontSize:wn,verticalAlign:"baseline","&:hover":{color:er}}},[`${xt}-tbody`]:{[`${xt}-row`]:{[`&${xt}-row-selected`]:{[`> ${xt}-cell`]:{background:Pr,"&-row-hover":{background:yr}}},[`> ${xt}-cell-row-hover`]:{background:br}}}}}},ts=_t=>{const{componentCls:xt,tableExpandColumnWidth:Xt,calc:cn}=_t,wn=(Rn,qn,En,er)=>({[`${xt}${xt}-${Rn}`]:{fontSize:er,[`
|
|
|
${xt}-title,
|
|
|
${xt}-footer,
|
|
|
${xt}-cell,
|
|
|
${xt}-thead > tr > th,
|
|
|
${xt}-tbody > tr > th,
|
|
|
${xt}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${(0,xa.unit)(qn)} ${(0,xa.unit)(En)}`},[`${xt}-filter-trigger`]:{marginInlineEnd:(0,xa.unit)(cn(En).div(2).mul(-1).equal())},[`${xt}-expanded-row-fixed`]:{margin:`${(0,xa.unit)(cn(qn).mul(-1).equal())} ${(0,xa.unit)(cn(En).mul(-1).equal())}`},[`${xt}-tbody`]:{[`${xt}-wrapper:only-child ${xt}`]:{marginBlock:(0,xa.unit)(cn(qn).mul(-1).equal()),marginInline:`${(0,xa.unit)(cn(Xt).sub(En).equal())} ${(0,xa.unit)(cn(En).mul(-1).equal())}`}},[`${xt}-selection-extra`]:{paddingInlineStart:(0,xa.unit)(cn(En).div(4).equal())}}});return{[`${xt}-wrapper`]:Object.assign(Object.assign({},wn("middle",_t.tablePaddingVerticalMiddle,_t.tablePaddingHorizontalMiddle,_t.tableFontSizeMiddle)),wn("small",_t.tablePaddingVerticalSmall,_t.tablePaddingHorizontalSmall,_t.tableFontSizeSmall))}},xl=_t=>{const{componentCls:xt,marginXXS:Xt,fontSizeIcon:cn,headerIconColor:wn,headerIconHoverColor:Rn}=_t;return{[`${xt}-wrapper`]:{[`${xt}-thead th${xt}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${_t.motionDurationSlow}, left 0s`,"&:hover":{background:_t.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:_t.colorPrimary},[`
|
|
|
&${xt}-cell-fix-left:hover,
|
|
|
&${xt}-cell-fix-right:hover
|
|
|
`]:{background:_t.tableFixedHeaderSortActiveBg}},[`${xt}-thead th${xt}-column-sort`]:{background:_t.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${xt}-column-sort`]:{background:_t.tableBodySortBg},[`${xt}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${xt}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${xt}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${xt}-column-sorter`]:{marginInlineStart:Xt,color:wn,fontSize:0,transition:`color ${_t.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:cn,"&.active":{color:_t.colorPrimary}},[`${xt}-column-sorter-up + ${xt}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${xt}-column-sorters:hover ${xt}-column-sorter`]:{color:Rn}}}},Rl=_t=>{const{componentCls:xt,opacityLoading:Xt,tableScrollThumbBg:cn,tableScrollThumbBgHover:wn,tableScrollThumbSize:Rn,tableScrollBg:qn,zIndexTableSticky:En,stickyScrollBarBorderRadius:er,lineWidth:Xn,lineType:Pr,tableBorderColor:yr}=_t,br=`${(0,xa.unit)(Xn)} ${Pr} ${yr}`;return{[`${xt}-wrapper`]:{[`${xt}-sticky`]:{"&-holder":{position:"sticky",zIndex:En,background:_t.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,xa.unit)(Rn)} !important`,zIndex:En,display:"flex",alignItems:"center",background:qn,borderTop:br,opacity:Xt,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Rn,backgroundColor:cn,borderRadius:er,transition:`all ${_t.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:wn}}}}}}},Zo=_t=>{const{componentCls:xt,lineWidth:Xt,tableBorderColor:cn,calc:wn}=_t,Rn=`${(0,xa.unit)(Xt)} ${_t.lineType} ${cn}`;return{[`${xt}-wrapper`]:{[`${xt}-summary`]:{position:"relative",zIndex:_t.zIndexTableFixed,background:_t.tableBg,"> tr":{"> th, > td":{borderBottom:Rn}}},[`div${xt}-summary`]:{boxShadow:`0 ${(0,xa.unit)(wn(Xt).mul(-1).equal())} 0 ${cn}`}}}},zo=_t=>{const{componentCls:xt,motionDurationMid:Xt,lineWidth:cn,lineType:wn,tableBorderColor:Rn,calc:qn}=_t,En=`${(0,xa.unit)(cn)} ${wn} ${Rn}`,er=`${xt}-expanded-row-cell`;return{[`${xt}-wrapper`]:{[`${xt}-tbody-virtual`]:{[`${xt}-tbody-virtual-holder-inner`]:{[`
|
|
|
& > ${xt}-row,
|
|
|
& > div:not(${xt}-row) > ${xt}-row
|
|
|
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${xt}-cell`]:{borderBottom:En,transition:`background ${Xt}`},[`${xt}-expanded-row`]:{[`${er}${er}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,xa.unit)(cn)})`,borderInlineEnd:"none"}}},[`${xt}-bordered`]:{[`${xt}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:En,position:"absolute"},[`${xt}-cell`]:{borderInlineEnd:En,[`&${xt}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:qn(cn).mul(-1).equal(),borderInlineStart:En}}},[`&${xt}-virtual`]:{[`${xt}-placeholder ${xt}-cell`]:{borderInlineEnd:En,borderBottom:En}}}}}};const Mo=_t=>{const{componentCls:xt,fontWeightStrong:Xt,tablePaddingVertical:cn,tablePaddingHorizontal:wn,tableExpandColumnWidth:Rn,lineWidth:qn,lineType:En,tableBorderColor:er,tableFontSize:Xn,tableBg:Pr,tableRadius:yr,tableHeaderTextColor:br,motionDurationMid:gr,tableHeaderBg:pr,tableHeaderCellSplitColor:De,tableFooterTextColor:ke,tableFooterBg:Ve,calc:qe}=_t,it=`${(0,xa.unit)(qn)} ${En} ${er}`;return{[`${xt}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,ks.dF)()),{[xt]:Object.assign(Object.assign({},(0,ks.Wf)(_t)),{fontSize:Xn,background:Pr,borderRadius:`${(0,xa.unit)(yr)} ${(0,xa.unit)(yr)} 0 0`,scrollbarColor:`${_t.tableScrollThumbBg} ${_t.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,xa.unit)(yr)} ${(0,xa.unit)(yr)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${xt}-cell,
|
|
|
${xt}-thead > tr > th,
|
|
|
${xt}-tbody > tr > th,
|
|
|
${xt}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${(0,xa.unit)(cn)} ${(0,xa.unit)(wn)}`,overflowWrap:"break-word"},[`${xt}-title`]:{padding:`${(0,xa.unit)(cn)} ${(0,xa.unit)(wn)}`},[`${xt}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:br,fontWeight:Xt,textAlign:"start",background:pr,borderBottom:it,transition:`background ${gr} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${xt}-selection-column):not(${xt}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:De,transform:"translateY(-50%)",transition:`background-color ${gr}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${xt}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${gr}, border-color ${gr}`,borderBottom:it,[`
|
|
|
> ${xt}-wrapper:only-child,
|
|
|
> ${xt}-expanded-row-fixed > ${xt}-wrapper:only-child
|
|
|
`]:{[xt]:{marginBlock:(0,xa.unit)(qe(cn).mul(-1).equal()),marginInline:`${(0,xa.unit)(qe(Rn).sub(wn).equal())}
|
|
|
${(0,xa.unit)(qe(wn).mul(-1).equal())}`,[`${xt}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:br,fontWeight:Xt,textAlign:"start",background:pr,borderBottom:it,transition:`background ${gr} ease`}}},[`${xt}-footer`]:{padding:`${(0,xa.unit)(cn)} ${(0,xa.unit)(wn)}`,color:ke,background:Ve}})}},Xs=_t=>{const{colorFillAlter:xt,colorBgContainer:Xt,colorTextHeading:cn,colorFillSecondary:wn,colorFillContent:Rn,controlItemBgActive:qn,controlItemBgActiveHover:En,padding:er,paddingSM:Xn,paddingXS:Pr,colorBorderSecondary:yr,borderRadiusLG:br,controlHeight:gr,colorTextPlaceholder:pr,fontSize:De,fontSizeSM:ke,lineHeight:Ve,lineWidth:qe,colorIcon:it,colorIconHover:dt,opacityLoading:bt,controlInteractiveSize:vt}=_t,Nt=new ol.FastColor(wn).onBackground(Xt).toHexString(),Pt=new ol.FastColor(Rn).onBackground(Xt).toHexString(),Ht=new ol.FastColor(xt).onBackground(Xt).toHexString(),$t=new ol.FastColor(it),hn=new ol.FastColor(dt),Pn=vt/2-qe,Dn=Pn*2+qe*3;return{headerBg:Ht,headerColor:cn,headerSortActiveBg:Nt,headerSortHoverBg:Pt,bodySortBg:Ht,rowHoverBg:Ht,rowSelectedBg:qn,rowSelectedHoverBg:En,rowExpandedBg:xt,cellPaddingBlock:er,cellPaddingInline:er,cellPaddingBlockMD:Xn,cellPaddingInlineMD:Pr,cellPaddingBlockSM:Pr,cellPaddingInlineSM:Pr,borderColor:yr,headerBorderRadius:br,footerBg:Ht,footerColor:cn,cellFontSize:De,cellFontSizeMD:De,cellFontSizeSM:De,headerSplitColor:yr,fixedHeaderSortActiveBg:Nt,headerFilterHoverBg:Rn,filterDropdownMenuBg:Xt,filterDropdownBg:Xt,expandIconBg:Xt,selectionColumnWidth:gr,stickyScrollBarBg:pr,stickyScrollBarBorderRadius:100,expandIconMarginTop:(De*Ve-qe*3)/2-Math.ceil((ke*1.4-qe*3)/2),headerIconColor:$t.clone().setA($t.a*bt).toRgbString(),headerIconHoverColor:hn.clone().setA(hn.a*bt).toRgbString(),expandIconHalfInner:Pn,expandIconSize:Dn,expandIconScale:vt/Dn}},jn=2;var $i=(0,bs.I$)("Table",_t=>{const{colorTextHeading:xt,colorSplit:Xt,colorBgContainer:cn,controlInteractiveSize:wn,headerBg:Rn,headerColor:qn,headerSortActiveBg:En,headerSortHoverBg:er,bodySortBg:Xn,rowHoverBg:Pr,rowSelectedBg:yr,rowSelectedHoverBg:br,rowExpandedBg:gr,cellPaddingBlock:pr,cellPaddingInline:De,cellPaddingBlockMD:ke,cellPaddingInlineMD:Ve,cellPaddingBlockSM:qe,cellPaddingInlineSM:it,borderColor:dt,footerBg:bt,footerColor:vt,headerBorderRadius:Nt,cellFontSize:Pt,cellFontSizeMD:Ht,cellFontSizeSM:$t,headerSplitColor:hn,fixedHeaderSortActiveBg:Pn,headerFilterHoverBg:Dn,filterDropdownBg:pn,expandIconBg:bn,selectionColumnWidth:Gn,stickyScrollBarBg:Un,calc:sr}=_t,cr=(0,cl.mergeToken)(_t,{tableFontSize:Pt,tableBg:cn,tableRadius:Nt,tablePaddingVertical:pr,tablePaddingHorizontal:De,tablePaddingVerticalMiddle:ke,tablePaddingHorizontalMiddle:Ve,tablePaddingVerticalSmall:qe,tablePaddingHorizontalSmall:it,tableBorderColor:dt,tableHeaderTextColor:qn,tableHeaderBg:Rn,tableFooterTextColor:vt,tableFooterBg:bt,tableHeaderCellSplitColor:hn,tableHeaderSortBg:En,tableHeaderSortHoverBg:er,tableBodySortBg:Xn,tableFixedHeaderSortActiveBg:Pn,tableHeaderFilterActiveBg:Dn,tableFilterDropdownBg:pn,tableRowHoverBg:Pr,tableSelectedRowBg:yr,tableSelectedRowHoverBg:br,zIndexTableFixed:jn,zIndexTableSticky:sr(jn).add(1).equal({unit:!1}),tableFontSizeMiddle:Ht,tableFontSizeSmall:$t,tableSelectionColumnWidth:Gn,tableExpandIconBg:bn,tableExpandColumnWidth:sr(wn).add(sr(_t.padding).mul(2)).equal(),tableExpandedRowBg:gr,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Un,tableScrollThumbBgHover:xt,tableScrollBg:Xt});return[Mo(cr),nl(cr),Zo(cr),xl(cr),gl(cr),Vs(cr),yl(cr),dl(cr),Zo(cr),Ll(cr),vs(cr),tl(cr),Rl(cr),Us(cr),ts(cr),_l(cr),zo(cr)]},Xs,{unitless:{expandIconScale:!0}});const va=[],ia=(_t,xt)=>{var Xt,cn;const{prefixCls:wn,className:Rn,rootClassName:qn,style:En,size:er,bordered:Xn,dropdownPrefixCls:Pr,dataSource:yr,pagination:br,rowSelection:gr,rowKey:pr="key",rowClassName:De,columns:ke,children:Ve,childrenColumnName:qe,onChange:it,getPopupContainer:dt,loading:bt,expandIcon:vt,expandable:Nt,expandedRowRender:Pt,expandIconColumnIndex:Ht,indentSize:$t,scroll:hn,sortDirections:Pn,locale:Dn,showSorterTooltip:pn={target:"full-header"},virtual:bn}=_t,Gn=(0,ti.ln)("Table"),Un=te.useMemo(()=>ke||sn(Ve),[ke,Ve]),sr=te.useMemo(()=>Un.some(Ia=>Ia.responsive),[Un]),cr=(0,la.Z)(sr),ni=te.useMemo(()=>{const Ia=new Set(Object.keys(cr).filter(Ha=>cr[Ha]));return Un.filter(Ha=>!Ha.responsive||Ha.responsive.some(bo=>Ia.has(bo)))},[Un,cr]),Tr=(0,Vi.Z)(_t,["className","style","columns"]),{locale:Si=zi.Z,direction:Ui,table:Fi,renderEmpty:jr,getPrefixCls:Vr,getPopupContainer:yi}=te.useContext(Ii.E_),zn=(0,ca.Z)(er),fr=Object.assign(Object.assign({},Si.Table),Dn),$r=yr||va,xr=Vr("table",wn),Yr=Vr("dropdown",Pr),[,Lr]=(0,Ra.ZP)(),Or=(0,fa.Z)(xr),[Bi,na,Oi]=$i(xr,Or),Ea=Object.assign(Object.assign({childrenColumnName:qe,expandIconColumnIndex:Ht},Nt),{expandIcon:(Xt=Nt==null?void 0:Nt.expandIcon)!==null&&Xt!==void 0?Xt:(cn=Fi==null?void 0:Fi.expandable)===null||cn===void 0?void 0:cn.expandIcon}),{childrenColumnName:Ma="children"}=Ea,Na=te.useMemo(()=>$r.some(Ia=>Ia==null?void 0:Ia[Ma])?"nest":Pt||Nt!=null&&Nt.expandedRowRender?"row":null,[$r]),ji={body:te.useRef(null)},aa=Yi(xr),Ua=te.useRef(null),oo=te.useRef(null);vi(xt,()=>Object.assign(Object.assign({},oo.current),{nativeElement:Ua.current}));const qa=te.useMemo(()=>typeof pr=="function"?pr:Ia=>Ia==null?void 0:Ia[pr],[pr]),[Ho]=ka($r,Ma,qa),Po={},ms=function(Ia,Ha){let bo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Io,Go,Ko,Ys;const rs=Object.assign(Object.assign({},Po),Ia);bo&&((Io=Po.resetPagination)===null||Io===void 0||Io.call(Po),!((Go=rs.pagination)===null||Go===void 0)&&Go.current&&(rs.pagination.current=1),br&&((Ko=br.onChange)===null||Ko===void 0||Ko.call(br,1,(Ys=rs.pagination)===null||Ys===void 0?void 0:Ys.pageSize))),hn&&hn.scrollToFirstRowOnChange!==!1&&ji.body.current&&(0,Ni.Z)(0,{getContainer:()=>ji.body.current}),it==null||it(rs.pagination,rs.filters,rs.sorter,{currentDataSource:hi(Es($r,rs.sorterStates,Ma),rs.filterStates,Ma),action:Ha})},_o=(Ia,Ha)=>{ms({sorter:Ia,sorterStates:Ha},"sort",!1)},[Za,ho,vo,ko]=Cs({prefixCls:xr,mergedColumns:ni,onSorterChange:_o,sortDirections:Pn||["ascend","descend"],tableLocale:fr,showSorterTooltip:pn}),Ao=te.useMemo(()=>Es($r,ho,Ma),[$r,ho]);Po.sorter=ko(),Po.sorterStates=ho;const Ga=(Ia,Ha)=>{ms({filters:Ia,filterStates:Ha},"filter",!0)},[xo,so,qo]=ga({prefixCls:xr,locale:fr,dropdownPrefixCls:Yr,mergedColumns:ni,onFilterChange:Ga,getPopupContainer:dt||yi,rootClassName:Ae()(qn,Or)}),No=hi(Ao,so,Ma);Po.filters=qo,Po.filterStates=so;const us=te.useMemo(()=>{const Ia={};return Object.keys(qo).forEach(Ha=>{qo[Ha]!==null&&(Ia[Ha]=qo[Ha])}),Object.assign(Object.assign({},vo),{filters:Ia})},[vo,qo]),[ps]=Ms(us),rl=(Ia,Ha)=>{ms({pagination:Object.assign(Object.assign({},Po.pagination),{current:Ia,pageSize:Ha})},"paginate")},[mo,Nl]=wo(No.length,rl,br);Po.pagination=br===!1?{}:Ro(mo,br),Po.resetPagination=Nl;const cs=te.useMemo(()=>{if(br===!1||!mo.pageSize)return No;const{current:Ia=1,total:Ha,pageSize:bo=Qo}=mo;return No.length<Ha?No.length>bo?No.slice((Ia-1)*bo,Ia*bo):No:No.slice((Ia-1)*bo,Ia*bo)},[!!br,No,mo==null?void 0:mo.current,mo==null?void 0:mo.pageSize,mo==null?void 0:mo.total]),[Ks,Os]=Zr({prefixCls:xr,data:No,pageData:cs,getRowKey:qa,getRecordByKey:Ho,expandType:Na,childrenColumnName:Ma,locale:fr,getPopupContainer:dt||yi},gr),gs=(Ia,Ha,bo)=>{let Io;return typeof De=="function"?Io=Ae()(De(Ia,Ha,bo)):Io=Ae()(De),Ae()({[`${xr}-row-selected`]:Os.has(qa(Ia,Ha))},Io)};Ea.__PARENT_RENDER_ICON__=Ea.expandIcon,Ea.expandIcon=Ea.expandIcon||vt||bi(fr),Na==="nest"&&Ea.expandIconColumnIndex===void 0?Ea.expandIconColumnIndex=gr?1:0:Ea.expandIconColumnIndex>0&&gr&&(Ea.expandIconColumnIndex-=1),typeof Ea.indentSize!="number"&&(Ea.indentSize=typeof $t=="number"?$t:15);const po=te.useCallback(Ia=>ps(Ks(xo(Za(Ia)))),[Za,xo,Ks]);let Ps,fl;if(br!==!1&&(mo!=null&&mo.total)){let Ia;mo.size?Ia=mo.size:Ia=zn==="small"||zn==="middle"?"small":void 0;const Ha=Go=>te.createElement(Da.Z,Object.assign({},mo,{className:Ae()(`${xr}-pagination ${xr}-pagination-${Go}`,mo.className),size:Ia})),bo=Ui==="rtl"?"left":"right",{position:Io}=mo;if(Io!==null&&Array.isArray(Io)){const Go=Io.find(rs=>rs.includes("top")),Ko=Io.find(rs=>rs.includes("bottom")),Ys=Io.every(rs=>`${rs}`=="none");!Go&&!Ko&&!Ys&&(fl=Ha(bo)),Go&&(Ps=Ha(Go.toLowerCase().replace("top",""))),Ko&&(fl=Ha(Ko.toLowerCase().replace("bottom","")))}else fl=Ha(bo)}let il;typeof bt=="boolean"?il={spinning:bt}:typeof bt=="object"&&(il=Object.assign({spinning:!0},bt));const al=Ae()(Oi,Or,`${xr}-wrapper`,Fi==null?void 0:Fi.className,{[`${xr}-wrapper-rtl`]:Ui==="rtl"},Rn,qn,na),jl=Object.assign(Object.assign({},Fi==null?void 0:Fi.style),En),Vl=typeof(Dn==null?void 0:Dn.emptyText)!="undefined"?Dn.emptyText:(jr==null?void 0:jr("Table"))||te.createElement(Mi.Z,{componentName:"Table"}),Zl=bn?Fs:fs,Gl={},tu=te.useMemo(()=>{const{fontSize:Ia,lineHeight:Ha,lineWidth:bo,padding:Io,paddingXS:Go,paddingSM:Ko}=Lr,Ys=Math.floor(Ia*Ha);switch(zn){case"middle":return Ko*2+Ys+bo;case"small":return Go*2+Ys+bo;default:return Io*2+Ys+bo}},[Lr,zn]);return bn&&(Gl.listItemHeight=tu),Bi(te.createElement("div",{ref:Ua,className:al,style:jl},te.createElement(Ca.Z,Object.assign({spinning:!1},il),Ps,te.createElement(Zl,Object.assign({},Gl,Tr,{ref:oo,columns:ni,direction:Ui,expandable:Ea,prefixCls:xr,className:Ae()({[`${xr}-middle`]:zn==="middle",[`${xr}-small`]:zn==="small",[`${xr}-bordered`]:Xn,[`${xr}-empty`]:$r.length===0},Oi,Or,na),data:cs,rowKey:qa,rowClassName:gs,emptyText:Vl,internalHooks:Me,internalRefs:ji,transformColumns:po,getContainerWidth:aa})),fl)))};var $a=te.forwardRef(ia);const La=(_t,xt)=>{const Xt=te.useRef(0);return Xt.current+=1,te.createElement($a,Object.assign({},_t,{ref:xt,_renderTimes:Xt.current}))},Pa=te.forwardRef(La);Pa.SELECTION_COLUMN=Ar,Pa.EXPAND_COLUMN=Ye,Pa.SELECTION_ALL=pi,Pa.SELECTION_INVERT=Gi,Pa.SELECTION_NONE=gi,Pa.Column=si,Pa.ColumnGroup=Ir,Pa.Summary=ct;var co=Pa,Bo=co},96599:function(Yn,en,Ce){"use strict";Ce.d(en,{default:function(){return Ae}});var te=Ce(59301),Ye=Ce(92310),Me=Ce.n(Ye),pe=Ce(2738),Oe=Ce(29509),ve=Ce(78776),ue=Ce(22703),fe=Ce(12919),he=Ce(48755),le=Ce(36237),ae=Ce(17835),ie=Ce(63356),me=Ce(51636),E=Ce(16931);const b=we=>{const{paddingXXS:Ue,lineWidth:Pe,tagPaddingHorizontal:ze,componentCls:Ke,calc:Ne}=we,Re=Ne(ze).sub(Pe).equal(),$e=Ne(Ue).sub(Pe).equal();return{[Ke]:Object.assign(Object.assign({},(0,ie.Wf)(we)),{display:"inline-block",height:"auto",marginInlineEnd:we.marginXS,paddingInline:Re,fontSize:we.tagFontSize,lineHeight:we.tagLineHeight,whiteSpace:"nowrap",background:we.defaultBg,border:`${(0,le.unit)(we.lineWidth)} ${we.lineType} ${we.colorBorder}`,borderRadius:we.borderRadiusSM,opacity:1,transition:`all ${we.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Ke}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:we.defaultColor},[`${Ke}-close-icon`]:{marginInlineStart:$e,fontSize:we.tagIconSize,color:we.colorTextDescription,cursor:"pointer",transition:`all ${we.motionDurationMid}`,"&:hover":{color:we.colorTextHeading}},[`&${Ke}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${we.iconCls}-close, ${we.iconCls}-close:hover`]:{color:we.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Ke}-checkable-checked):hover`]:{color:we.colorPrimary,backgroundColor:we.colorFillSecondary},"&:active, &-checked":{color:we.colorTextLightSolid},"&-checked":{backgroundColor:we.colorPrimary,"&:hover":{backgroundColor:we.colorPrimaryHover}},"&:active":{backgroundColor:we.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${we.iconCls} + span, > span + ${we.iconCls}`]:{marginInlineStart:Re}}),[`${Ke}-borderless`]:{borderColor:"transparent",background:we.tagBorderlessBg}}},z=we=>{const{lineWidth:Ue,fontSizeIcon:Pe,calc:ze}=we,Ke=we.fontSizeSM;return(0,me.mergeToken)(we,{tagFontSize:Ke,tagLineHeight:(0,le.unit)(ze(we.lineHeightSM).mul(Ke).equal()),tagIconSize:ze(Pe).sub(ze(Ue).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:we.defaultBg})},ne=we=>({defaultBg:new ae.FastColor(we.colorFillQuaternary).onBackground(we.colorBgContainer).toHexString(),defaultColor:we.colorText});var oe=(0,E.I$)("Tag",we=>{const Ue=z(we);return b(Ue)},ne),se=function(we,Ue){var Pe={};for(var ze in we)Object.prototype.hasOwnProperty.call(we,ze)&&Ue.indexOf(ze)<0&&(Pe[ze]=we[ze]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,ze=Object.getOwnPropertySymbols(we);Ke<ze.length;Ke++)Ue.indexOf(ze[Ke])<0&&Object.prototype.propertyIsEnumerable.call(we,ze[Ke])&&(Pe[ze[Ke]]=we[ze[Ke]]);return Pe},a=te.forwardRef((we,Ue)=>{const{prefixCls:Pe,style:ze,className:Ke,checked:Ne,onChange:Re,onClick:$e}=we,nt=se(we,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:ut,tag:Qe}=te.useContext(he.E_),rt=Yt=>{Re==null||Re(!Ne),$e==null||$e(Yt)},pt=ut("tag",Pe),[At,gt,Ft]=oe(pt),Ct=Me()(pt,`${pt}-checkable`,{[`${pt}-checkable-checked`]:Ne},Qe==null?void 0:Qe.className,Ke,gt,Ft);return At(te.createElement("span",Object.assign({},nt,{ref:Ue,style:Object.assign(Object.assign({},ze),Qe==null?void 0:Qe.style),className:Ct,onClick:rt})))}),x=Ce(93427);const re=we=>(0,x.Z)(we,(Ue,Pe)=>{let{textColor:ze,lightBorderColor:Ke,lightColor:Ne,darkColor:Re}=Pe;return{[`${we.componentCls}${we.componentCls}-${Ue}`]:{color:ze,background:Ne,borderColor:Ke,"&-inverse":{color:we.colorTextLightSolid,background:Re,borderColor:Re},[`&${we.componentCls}-borderless`]:{borderColor:"transparent"}}}});var ce=(0,E.bk)(["Tag","preset"],we=>{const Ue=z(we);return re(Ue)},ne);function ge(we){return typeof we!="string"?we:we.charAt(0).toUpperCase()+we.slice(1)}const _e=(we,Ue,Pe)=>{const ze=ge(Pe);return{[`${we.componentCls}${we.componentCls}-${Ue}`]:{color:we[`color${Pe}`],background:we[`color${ze}Bg`],borderColor:we[`color${ze}Border`],[`&${we.componentCls}-borderless`]:{borderColor:"transparent"}}}};var ye=(0,E.bk)(["Tag","status"],we=>{const Ue=z(we);return[_e(Ue,"success","Success"),_e(Ue,"processing","Info"),_e(Ue,"error","Error"),_e(Ue,"warning","Warning")]},ne),be=function(we,Ue){var Pe={};for(var ze in we)Object.prototype.hasOwnProperty.call(we,ze)&&Ue.indexOf(ze)<0&&(Pe[ze]=we[ze]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,ze=Object.getOwnPropertySymbols(we);Ke<ze.length;Ke++)Ue.indexOf(ze[Ke])<0&&Object.prototype.propertyIsEnumerable.call(we,ze[Ke])&&(Pe[ze[Ke]]=we[ze[Ke]]);return Pe};const Be=te.forwardRef((we,Ue)=>{const{prefixCls:Pe,className:ze,rootClassName:Ke,style:Ne,children:Re,icon:$e,color:nt,onClose:ut,bordered:Qe=!0,visible:rt}=we,pt=be(we,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:At,direction:gt,tag:Ft}=te.useContext(he.E_),[Ct,Yt]=te.useState(!0),zt=(0,pe.Z)(pt,["closeIcon","closable"]);te.useEffect(()=>{rt!==void 0&&Yt(rt)},[rt]);const Xe=(0,Oe.o2)(nt),Fe=(0,Oe.yT)(nt),Le=Xe||Fe,Ze=Object.assign(Object.assign({backgroundColor:nt&&!Le?nt:void 0},Ft==null?void 0:Ft.style),Ne),et=At("tag",Pe),[He,We,tt]=oe(et),at=Me()(et,Ft==null?void 0:Ft.className,{[`${et}-${nt}`]:Le,[`${et}-has-color`]:nt&&!Le,[`${et}-hidden`]:!Ct,[`${et}-rtl`]:gt==="rtl",[`${et}-borderless`]:!Qe},ze,Ke,We,tt),ot=St=>{St.stopPropagation(),ut==null||ut(St),!St.defaultPrevented&&Yt(!1)},[,ct]=(0,ve.Z)((0,ve.w)(we),(0,ve.w)(Ft),{closable:!1,closeIconRender:St=>{const nn=te.createElement("span",{className:`${et}-close-icon`,onClick:ot},St);return(0,ue.wm)(St,nn,on=>({onClick:yn=>{var xn;(xn=on==null?void 0:on.onClick)===null||xn===void 0||xn.call(on,yn),ot(yn)},className:Me()(on==null?void 0:on.className,`${et}-close-icon`)}))}}),lt=typeof pt.onClick=="function"||Re&&Re.type==="a",mt=$e||null,Lt=mt?te.createElement(te.Fragment,null,mt,Re&&te.createElement("span",null,Re)):Re,ft=te.createElement("span",Object.assign({},zt,{ref:Ue,className:at,style:Ze}),Lt,ct,Xe&&te.createElement(ce,{key:"preset",prefixCls:et}),Fe&&te.createElement(ye,{key:"status",prefixCls:et}));return He(lt?te.createElement(fe.Z,{component:"Tag"},ft):ft)});Be.CheckableTag=a;var Ae=Be},53420:function(Yn,en,Ce){"use strict";Ce.d(en,{default:function(){return dn}});var te=Ce(59301),Ye=Ce(92310),Me=Ce.n(Ye),pe=Ce(60499),Oe=Ce(77654),ve=Ce(85899),ue=Ce(72190),fe=Ce(42244),he=Ce(43749),le=Ce(37463),ae=Ce(6551),ie=Ce(34643),me=Ce(18929),E=Ce(48736),b=function(Ie){var je=te.useRef({valueLabels:new Map});return te.useMemo(function(){var Je=je.current.valueLabels,ht=new Map,Et=Ie.map(function(Qt){var fn=Qt.value,sn=Qt.label,mn=sn!=null?sn:Je.get(fn);return ht.set(fn,mn),(0,ve.Z)((0,ve.Z)({},Qt),{},{label:mn})});return je.current.valueLabels=ht,[Et]},[Ie])},z=function(je,Je,ht,Et){return te.useMemo(function(){var Qt=function(Rt){return Rt.map(function(jt){var Mt=jt.value;return Mt})},fn=Qt(je),sn=Qt(Je),mn=fn.filter(function(Gt){return!Et[Gt]}),Zn=fn,tr=sn;if(ht){var Vt=(0,ie.S)(fn,!0,Et);Zn=Vt.checkedKeys,tr=Vt.halfCheckedKeys}return[Array.from(new Set([].concat((0,Oe.Z)(mn),(0,Oe.Z)(Zn)))),tr]},[je,Je,ht,Et])},ne=z,oe=Ce(34061),se=function(Ie,je){return te.useMemo(function(){var Je=(0,oe.I8)(Ie,{fieldNames:je,initWrapper:function(Et){return(0,ve.Z)((0,ve.Z)({},Et),{},{valueEntities:new Map})},processEntity:function(Et,Qt){var fn=Et.node[je.value];if(0)var sn;Qt.valueEntities.set(fn,Et)}});return Je},[Ie,je])},de=Ce(18642),a=Ce(11592),x=function(){return null},re=x,ce=["children","value"];function ge(Ie){return(0,a.Z)(Ie).map(function(je){if(!te.isValidElement(je)||!je.type)return null;var Je=je,ht=Je.key,Et=Je.props,Qt=Et.children,fn=Et.value,sn=(0,fe.Z)(Et,ce),mn=(0,ve.Z)({key:ht,value:fn},sn),Zn=ge(Qt);return Zn.length&&(mn.children=Zn),mn}).filter(function(je){return je})}function _e(Ie){if(!Ie)return Ie;var je=(0,ve.Z)({},Ie);return"props"in je||Object.defineProperty(je,"props",{get:function(){return(0,E.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),je}}),je}function ye(Ie,je,Je,ht,Et,Qt){var fn=null,sn=null;function mn(){function Zn(tr){var Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Gt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return tr.map(function(Rt,jt){var Mt="".concat(Vt,"-").concat(jt),Kt=Rt[Qt.value],yt=Je.includes(Kt),qt=Zn(Rt[Qt.children]||[],Mt,yt),vn=te.createElement(re,Rt,qt.map(function(It){return It.node}));if(je===Kt&&(fn=vn),yt){var Tt={pos:Mt,node:vn,children:qt};return Gt||sn.push(Tt),Tt}return null}).filter(function(Rt){return Rt})}sn||(sn=[],Zn(ht),sn.sort(function(tr,Vt){var Gt=tr.node.props.value,Rt=Vt.node.props.value,jt=Je.indexOf(Gt),Mt=Je.indexOf(Rt);return jt-Mt}))}Object.defineProperty(Ie,"triggerNode",{get:function(){return(0,E.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),mn(),fn}}),Object.defineProperty(Ie,"allCheckedNodes",{get:function(){return(0,E.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),mn(),Et?sn:sn.map(function(tr){var Vt=tr.node;return Vt})}})}var be=function(je,Je,ht){var Et=ht.fieldNames,Qt=ht.treeNodeFilterProp,fn=ht.filterTreeNode,sn=Et.children;return te.useMemo(function(){if(!Je||fn===!1)return je;var mn=typeof fn=="function"?fn:function(tr,Vt){return String(Vt[Qt]).toUpperCase().includes(Je.toUpperCase())},Zn=function tr(Vt){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Vt.reduce(function(Rt,jt){var Mt=jt[sn],Kt=Gt||mn(Je,_e(jt)),yt=tr(Mt||[],Kt);return(Kt||yt.length)&&Rt.push((0,ve.Z)((0,ve.Z)({},jt),{},(0,de.Z)({isLeaf:void 0},sn,yt))),Rt},[])};return Zn(je)},[je,Je,sn,Qt,fn])},Se=be;function Be(Ie){var je=te.useRef();je.current=Ie;var Je=te.useCallback(function(){return je.current.apply(je,arguments)},[]);return Je}function Ae(Ie,je){var Je=je.id,ht=je.pId,Et=je.rootPId,Qt=new Map,fn=[];return Ie.forEach(function(sn){var mn=sn[Je],Zn=(0,ve.Z)((0,ve.Z)({},sn),{},{key:sn.key||mn});Qt.set(mn,Zn)}),Qt.forEach(function(sn){var mn=sn[ht],Zn=Qt.get(mn);Zn?(Zn.children=Zn.children||[],Zn.children.push(sn)):(mn===Et||Et===null)&&fn.push(sn)}),fn}function we(Ie,je,Je){return te.useMemo(function(){if(Ie){if(Je){var ht=(0,ve.Z)({id:"id",pId:"pId",rootPId:null},(0,he.Z)(Je)==="object"?Je:{});return Ae(Ie,ht)}return Ie}return ge(je)},[je,Je,Ie])}var Ue=te.createContext(null),Pe=Ue,ze=Ce(72054),Ke=Ce(87632),Ne=Ce(10228),Re=Ce(80547),$e=te.createContext(null),nt=$e,ut=function(je){return Array.isArray(je)?je:je!==void 0?[je]:[]},Qe=function(je){var Je=je||{},ht=Je.label,Et=Je.value,Qt=Je.children;return{_title:ht?[ht]:["title","label"],value:Et||"value",key:Et||"value",children:Qt||"children"}},rt=function(je){return!je||je.disabled||je.disableCheckbox||je.checkable===!1},pt=function(je,Je){var ht=[],Et=function Qt(fn){fn.forEach(function(sn){var mn=sn[Je.children];mn&&(ht.push(sn[Je.value]),Qt(mn))})};return Et(je),ht},At=function(je){return je==null},gt=Ce(70425),Ft={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ct=function(je,Je){var ht=(0,le.lk)(),Et=ht.prefixCls,Qt=ht.multiple,fn=ht.searchValue,sn=ht.toggleOpen,mn=ht.open,Zn=ht.notFoundContent,tr=te.useContext(nt),Vt=tr.virtual,Gt=tr.listHeight,Rt=tr.listItemHeight,jt=tr.listItemScrollOffset,Mt=tr.treeData,Kt=tr.fieldNames,yt=tr.onSelect,qt=tr.dropdownMatchSelectWidth,vn=tr.treeExpandAction,Tt=tr.treeTitleRender,It=tr.onPopupScroll,Dt=tr.leftMaxCount,Bt=tr.leafCountOnly,Zt=tr.valueEntities,tn=te.useContext(Pe),Tn=tn.checkable,Fn=tn.checkedKeys,dr=tn.halfCheckedKeys,_r=tn.treeExpandedKeys,Kr=tn.treeDefaultExpandAll,Sr=tn.treeDefaultExpandedKeys,hr=tn.onTreeExpand,Mr=tn.treeIcon,Br=tn.showTreeIcon,Wr=tn.switcherIcon,Jn=tn.treeLine,ii=tn.treeNodeFilterProp,Ur=tn.loadData,Gr=tn.treeLoadedKeys,qr=tn.treeMotion,Li=tn.onTreeLoad,wi=tn.keyEntities,ui=te.useRef(),Qr=(0,Re.Z)(function(){return Mt},[mn,Mt],function(mi,Nr){return Nr[0]&&mi[1]!==Nr[1]}),Di=te.useMemo(function(){return Tn?{checked:Fn,halfChecked:dr}:null},[Tn,Fn,dr]);te.useEffect(function(){if(mn&&!Qt&&Fn.length){var mi;(mi=ui.current)===null||mi===void 0||mi.scrollTo({key:Fn[0]})}},[mn]);var oi=function(Nr){Nr.preventDefault()},di=function(Nr,Ar){var pi=Ar.node;Tn&&rt(pi)||(yt(pi.key,{selected:!Fn.includes(pi.key)}),Qt||sn(!1))},ci=te.useState(Sr),ki=(0,ue.Z)(ci,2),Ki=ki[0],ua=ki[1],kn=te.useState(null),qi=(0,ue.Z)(kn,2),Qi=qi[0],ra=qi[1],_i=te.useMemo(function(){return _r?(0,Oe.Z)(_r):fn?Qi:Ki},[Ki,Qi,_r,fn]),Ti=function(Nr){ua(Nr),ra(Nr),hr&&hr(Nr)},Xr=String(fn).toLowerCase(),rr=function(Nr){return Xr?String(Nr[ii]).toLowerCase().includes(Xr):!1};te.useEffect(function(){fn&&ra(pt(Mt,Kt))},[fn]);var Dr=te.useState(function(){return new Map}),Fr=(0,ue.Z)(Dr,2),or=Fr[0],ei=Fr[1];te.useEffect(function(){Dt&&ei(new Map)},[Dt]);function si(mi){var Nr=mi[Kt.value];if(!or.has(Nr)){var Ar=Zt.get(Nr),pi=(Ar.children||[]).length===0;if(pi)or.set(Nr,!1);else{var Gi=Ar.children.filter(function(Wi){return!Wi.node.disabled&&!Wi.node.disableCheckbox&&!Fn.includes(Wi.node[Kt.value])}),gi=Gi.length;or.set(Nr,gi>Dt)}}return or.get(Nr)}var wr=(0,gt.zX)(function(mi){var Nr=mi[Kt.value];return Fn.includes(Nr)||Dt===null?!1:Dt<=0?!0:Bt&&Dt?si(mi):!1}),Ir=function mi(Nr){var Ar=(0,ze.Z)(Nr),pi;try{for(Ar.s();!(pi=Ar.n()).done;){var Gi=pi.value;if(!(Gi.disabled||Gi.selectable===!1)){if(fn){if(rr(Gi))return Gi}else return Gi;if(Gi[Kt.children]){var gi=mi(Gi[Kt.children]);if(gi)return gi}}}}catch(Wi){Ar.e(Wi)}finally{Ar.f()}return null},Hr=te.useState(null),ri=(0,ue.Z)(Hr,2),un=ri[0],Vn=ri[1],Sn=wi[un];te.useEffect(function(){if(mn){var mi=null,Nr=function(){var pi=Ir(Qr);return pi?pi[Kt.value]:null};!Qt&&Fn.length&&!fn?mi=Fn[0]:mi=Nr(),Vn(mi)}},[mn,fn]),te.useImperativeHandle(Je,function(){var mi;return{scrollTo:(mi=ui.current)===null||mi===void 0?void 0:mi.scrollTo,onKeyDown:function(Ar){var pi,Gi=Ar.which;switch(Gi){case Ne.Z.UP:case Ne.Z.DOWN:case Ne.Z.LEFT:case Ne.Z.RIGHT:(pi=ui.current)===null||pi===void 0||pi.onKeyDown(Ar);break;case Ne.Z.ENTER:{if(Sn){var gi=wr(Sn.node),Wi=(Sn==null?void 0:Sn.node)||{},Jr=Wi.selectable,li=Wi.value,Zr=Wi.disabled;Jr!==!1&&!Zr&&!gi&&di(null,{node:{key:un},selected:!Fn.includes(li)})}break}case Ne.Z.ESC:sn(!1)}},onKeyUp:function(){}}});var Rr=(0,Re.Z)(function(){return!fn},[fn,_r||Ki],function(mi,Nr){var Ar=(0,ue.Z)(mi,1),pi=Ar[0],Gi=(0,ue.Z)(Nr,2),gi=Gi[0],Wi=Gi[1];return pi!==gi&&!!(gi||Wi)}),ti=Rr?Ur:null;if(Qr.length===0)return te.createElement("div",{role:"listbox",className:"".concat(Et,"-empty"),onMouseDown:oi},Zn);var gn={fieldNames:Kt};return Gr&&(gn.loadedKeys=Gr),_i&&(gn.expandedKeys=_i),te.createElement("div",{onMouseDown:oi},Sn&&mn&&te.createElement("span",{style:Ft,"aria-live":"assertive"},Sn.node.value),te.createElement(Ke.y6.Provider,{value:{nodeDisabled:wr}},te.createElement(Ke.ZP,(0,pe.Z)({ref:ui,focusable:!1,prefixCls:"".concat(Et,"-tree"),treeData:Qr,height:Gt,itemHeight:Rt,itemScrollOffset:jt,virtual:Vt!==!1&&qt!==!1,multiple:Qt,icon:Mr,showIcon:Br,switcherIcon:Wr,showLine:Jn,loadData:ti,motion:qr,activeKey:un,checkable:Tn,checkStrictly:!0,checkedKeys:Di,selectedKeys:Tn?[]:Fn,defaultExpandAll:Kr,titleRender:Tt},gn,{onActiveChange:Vn,onSelect:di,onCheck:di,onExpand:Ti,onLoad:Li,filterTreeNode:rr,expandAction:vn,onScroll:It}))))},Yt=te.forwardRef(Ct),zt=Yt,Xe="SHOW_ALL",Fe="SHOW_PARENT",Le="SHOW_CHILD";function Ze(Ie,je,Je,ht){var Et=new Set(Ie);return je===Le?Ie.filter(function(Qt){var fn=Je[Qt];return!fn||!fn.children||!fn.children.some(function(sn){var mn=sn.node;return Et.has(mn[ht.value])})||!fn.children.every(function(sn){var mn=sn.node;return rt(mn)||Et.has(mn[ht.value])})}):je===Fe?Ie.filter(function(Qt){var fn=Je[Qt],sn=fn?fn.parent:null;return!sn||rt(sn.node)||!Et.has(sn.key)}):Ie}function et(Ie){var je=Ie.searchPlaceholder,Je=Ie.treeCheckStrictly,ht=Ie.treeCheckable,Et=Ie.labelInValue,Qt=Ie.value,fn=Ie.multiple,sn=Ie.showCheckedStrategy,mn=Ie.maxCount;warning(!je,"`searchPlaceholder` has been removed."),Je&&Et===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Et||Je)&&warning(toArray(Qt).every(function(Zn){return Zn&&_typeof(Zn)==="object"&&"value"in Zn}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Je||fn||ht?warning(!Qt||Array.isArray(Qt),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(Qt),"`value` should not be array when `TreeSelect` is single mode."),mn&&(sn==="SHOW_ALL"&&!Je||sn==="SHOW_PARENT")&&warning(!1,"`maxCount` not work with `showCheckedStrategy=SHOW_ALL` (when `treeCheckStrictly=false`) or `showCheckedStrategy=SHOW_PARENT`.")}var He=null,We=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function tt(Ie){return!Ie||(0,he.Z)(Ie)!=="object"}var at=te.forwardRef(function(Ie,je){var Je=Ie.id,ht=Ie.prefixCls,Et=ht===void 0?"rc-tree-select":ht,Qt=Ie.value,fn=Ie.defaultValue,sn=Ie.onChange,mn=Ie.onSelect,Zn=Ie.onDeselect,tr=Ie.searchValue,Vt=Ie.inputValue,Gt=Ie.onSearch,Rt=Ie.autoClearSearchValue,jt=Rt===void 0?!0:Rt,Mt=Ie.filterTreeNode,Kt=Ie.treeNodeFilterProp,yt=Kt===void 0?"value":Kt,qt=Ie.showCheckedStrategy,vn=Ie.treeNodeLabelProp,Tt=Ie.multiple,It=Ie.treeCheckable,Dt=Ie.treeCheckStrictly,Bt=Ie.labelInValue,Zt=Ie.maxCount,tn=Ie.fieldNames,Tn=Ie.treeDataSimpleMode,Fn=Ie.treeData,dr=Ie.children,_r=Ie.loadData,Kr=Ie.treeLoadedKeys,Sr=Ie.onTreeLoad,hr=Ie.treeDefaultExpandAll,Mr=Ie.treeExpandedKeys,Br=Ie.treeDefaultExpandedKeys,Wr=Ie.onTreeExpand,Jn=Ie.treeExpandAction,ii=Ie.virtual,Ur=Ie.listHeight,Gr=Ur===void 0?200:Ur,qr=Ie.listItemHeight,Li=qr===void 0?20:qr,wi=Ie.listItemScrollOffset,ui=wi===void 0?0:wi,Qr=Ie.onDropdownVisibleChange,Di=Ie.dropdownMatchSelectWidth,oi=Di===void 0?!0:Di,di=Ie.treeLine,ci=Ie.treeIcon,ki=Ie.showTreeIcon,Ki=Ie.switcherIcon,ua=Ie.treeMotion,kn=Ie.treeTitleRender,qi=Ie.onPopupScroll,Qi=(0,fe.Z)(Ie,We),ra=(0,ae.ZP)(Je),_i=It&&!Dt,Ti=It||Dt,Xr=Dt||Bt,rr=Ti||Tt,Dr=(0,me.Z)(fn,{value:Qt}),Fr=(0,ue.Z)(Dr,2),or=Fr[0],ei=Fr[1],si=te.useMemo(function(){return It?qt||Le:Xe},[qt,It]),wr=te.useMemo(function(){return Qe(tn)},[JSON.stringify(tn)]),Ir=(0,me.Z)("",{value:tr!==void 0?tr:Vt,postState:function(Ci){return Ci||""}}),Hr=(0,ue.Z)(Ir,2),ri=Hr[0],un=Hr[1],Vn=function(Ci){un(Ci),Gt==null||Gt(Ci)},Sn=we(Fn,dr,Tn),Rr=se(Sn,wr),ti=Rr.keyEntities,gn=Rr.valueEntities,mi=te.useCallback(function(Ei){var Ci=[],kr=[];return Ei.forEach(function(Zi){gn.has(Zi)?kr.push(Zi):Ci.push(Zi)}),{missingRawValues:Ci,existRawValues:kr}},[gn]),Nr=Se(Sn,ri,{fieldNames:wr,treeNodeFilterProp:yt,filterTreeNode:Mt}),Ar=te.useCallback(function(Ei){if(Ei){if(vn)return Ei[vn];for(var Ci=wr._title,kr=0;kr<Ci.length;kr+=1){var Zi=Ei[Ci[kr]];if(Zi!==void 0)return Zi}}},[wr,vn]),pi=te.useCallback(function(Ei){var Ci=ut(Ei);return Ci.map(function(kr){return tt(kr)?{value:kr}:kr})},[]),Gi=te.useCallback(function(Ei){var Ci=pi(Ei);return Ci.map(function(kr){var Zi=kr.label,ma=kr.value,ba=kr.halfChecked,ir,Ji=gn.get(ma);if(Ji){var Va;Zi=kn?kn(Ji.node):(Va=Zi)!==null&&Va!==void 0?Va:Ar(Ji.node),ir=Ji.node.disabled}else if(Zi===void 0){var no=pi(or).find(function(Ya){return Ya.value===ma});Zi=no.label}return{label:Zi,value:ma,halfChecked:ba,disabled:ir}})},[gn,Ar,pi,or]),gi=te.useMemo(function(){return pi(or===null?[]:or)},[pi,or]),Wi=te.useMemo(function(){var Ei=[],Ci=[];return gi.forEach(function(kr){kr.halfChecked?Ci.push(kr):Ei.push(kr)}),[Ei,Ci]},[gi]),Jr=(0,ue.Z)(Wi,2),li=Jr[0],Zr=Jr[1],Vi=te.useMemo(function(){return li.map(function(Ei){return Ei.value})},[li]),sa=ne(li,Zr,_i,ti),vi=(0,ue.Z)(sa,2),Ni=vi[0],Ii=vi[1],Mi=te.useMemo(function(){var Ei=Ze(Ni,si,ti,wr),Ci=Ei.map(function(ba){var ir,Ji;return(ir=(Ji=ti[ba])===null||Ji===void 0||(Ji=Ji.node)===null||Ji===void 0?void 0:Ji[wr.value])!==null&&ir!==void 0?ir:ba}),kr=Ci.map(function(ba){var ir=li.find(function(Va){return Va.value===ba}),Ji=Bt?ir==null?void 0:ir.label:kn==null?void 0:kn(ir);return{value:ba,label:Ji}}),Zi=Gi(kr),ma=Zi[0];return!rr&&ma&&At(ma.value)&&At(ma.label)?[]:Zi.map(function(ba){var ir;return(0,ve.Z)((0,ve.Z)({},ba),{},{label:(ir=ba.label)!==null&&ir!==void 0?ir:ba.value})})},[wr,rr,Ni,li,Gi,si,ti]),fa=b(Mi),ca=(0,ue.Z)(fa,1),la=ca[0],zi=te.useMemo(function(){return rr&&(si==="SHOW_CHILD"||Dt||!It)?Zt:null},[Zt,rr,Dt,si,It]),Da=Be(function(Ei,Ci,kr){var Zi=Ze(Ei,si,ti,wr);if(!(zi&&Zi.length>zi)){var ma=Gi(Ei);if(ei(ma),jt&&un(""),sn){var ba=Ei;_i&&(ba=Zi.map(function(Wa){var Ka=gn.get(Wa);return Ka?Ka.node[wr.value]:Wa}));var ir=Ci||{triggerValue:void 0,selected:void 0},Ji=ir.triggerValue,Va=ir.selected,no=ba;if(Dt){var Ya=Zr.filter(function(Wa){return!ba.includes(Wa.value)});no=[].concat((0,Oe.Z)(no),(0,Oe.Z)(Ya))}var xi=Gi(no),pa={preValue:li,triggerValue:Ji},_a=!0;(Dt||kr==="selection"&&!Va)&&(_a=!1),ye(pa,Ji,Ei,Sn,_a,wr),Ti?pa.checked=Va:pa.selected=Va;var oa=Xr?xi:xi.map(function(Wa){return Wa.value});sn(rr?oa:oa[0],Xr?null:xi.map(function(Wa){return Wa.label}),pa)}}}),Ca=te.useCallback(function(Ei,Ci){var kr,Zi=Ci.selected,ma=Ci.source,ba=ti[Ei],ir=ba==null?void 0:ba.node,Ji=(kr=ir==null?void 0:ir[wr.value])!==null&&kr!==void 0?kr:Ei;if(!rr)Da([Ji],{selected:!0,triggerValue:Ji},"option");else{var Va=Zi?[].concat((0,Oe.Z)(Vi),[Ji]):Ni.filter(function(Ka){return Ka!==Ji});if(_i){var no=mi(Va),Ya=no.missingRawValues,xi=no.existRawValues,pa=xi.map(function(Ka){return gn.get(Ka).key}),_a;if(Zi){var oa=(0,ie.S)(pa,!0,ti);_a=oa.checkedKeys}else{var Wa=(0,ie.S)(pa,{checked:!1,halfCheckedKeys:Ii},ti);_a=Wa.checkedKeys}Va=[].concat((0,Oe.Z)(Ya),(0,Oe.Z)(_a.map(function(Ka){return ti[Ka].node[wr.value]})))}Da(Va,{selected:Zi,triggerValue:Ji},ma||"option")}Zi||!rr?mn==null||mn(Ji,_e(ir)):Zn==null||Zn(Ji,_e(ir))},[mi,gn,ti,wr,rr,Vi,Da,_i,mn,Zn,Ni,Ii,Zt]),Ra=te.useCallback(function(Ei){if(Qr){var Ci={};Object.defineProperty(Ci,"documentClickClose",{get:function(){return(0,E.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Qr(Ei,Ci)}},[Qr]),to=Be(function(Ei,Ci){var kr=Ei.map(function(Zi){return Zi.value});if(Ci.type==="clear"){Da(kr,{},"selection");return}Ci.values.length&&Ca(Ci.values[0].value,{selected:!1,source:"selection"})}),bi=te.useMemo(function(){return{virtual:ii,dropdownMatchSelectWidth:oi,listHeight:Gr,listItemHeight:Li,listItemScrollOffset:ui,treeData:Nr,fieldNames:wr,onSelect:Ca,treeExpandAction:Jn,treeTitleRender:kn,onPopupScroll:qi,leftMaxCount:Zt===void 0?null:Zt-la.length,leafCountOnly:si==="SHOW_CHILD"&&!Dt&&!!It,valueEntities:gn}},[ii,oi,Gr,Li,ui,Nr,wr,Ca,Jn,kn,qi,Zt,la.length,si,Dt,It,gn]),Yi=te.useMemo(function(){return{checkable:Ti,loadData:_r,treeLoadedKeys:Kr,onTreeLoad:Sr,checkedKeys:Ni,halfCheckedKeys:Ii,treeDefaultExpandAll:hr,treeExpandedKeys:Mr,treeDefaultExpandedKeys:Br,onTreeExpand:Wr,treeIcon:ci,treeMotion:ua,showTreeIcon:ki,switcherIcon:Ki,treeLine:di,treeNodeFilterProp:yt,keyEntities:ti}},[Ti,_r,Kr,Sr,Ni,Ii,hr,Mr,Br,Wr,ci,ua,ki,Ki,di,yt,ti]);return te.createElement(nt.Provider,{value:bi},te.createElement(Pe.Provider,{value:Yi},te.createElement(le.Ac,(0,pe.Z)({ref:je},Qi,{id:ra,prefixCls:Et,mode:rr?"multiple":void 0,displayValues:la,onDisplayValuesChange:to,searchValue:ri,onSearch:Vn,OptionList:zt,emptyOptions:!Sn.length,onDropdownVisibleChange:Ra,dropdownMatchSelectWidth:oi}))))}),ot=at;ot.TreeNode=re,ot.SHOW_ALL=Xe,ot.SHOW_PARENT=Fe,ot.SHOW_CHILD=Le;var ct=ot,lt=ct,mt=Ce(2738),Lt=Ce(75030),ft=Ce(86641),St=Ce(45915),nn=Ce(82855),on=Ce(48755),yn=Ce(38406),xn=Ce(2171),an=Ce(83397),An=Ce(31756),Jt=Ce(56553),Ut=Ce(24971),rn=Ce(1722),_n=Ce(90376),Bn=Ce(68525),kt=Ce(90005),ln=Ce(70045),Cn=Ce(57700),Mn=Ce(85278),Qn=Ce(36237),mr=Ce(36170),lr=Ce(51636),Cr=Ce(16931),nr=Ce(12425);const ur=Ie=>{const{componentCls:je,treePrefixCls:Je,colorBgElevated:ht}=Ie,Et=`.${Je}`;return[{[`${je}-dropdown`]:[{padding:`${(0,Qn.unit)(Ie.paddingXS)} ${(0,Qn.unit)(Ie.calc(Ie.paddingXS).div(2).equal())}`},(0,nr.Yk)(Je,(0,lr.mergeToken)(Ie,{colorBgContainer:ht}),!1),{[Et]:{borderRadius:0,[`${Et}-list-holder-inner`]:{alignItems:"stretch",[`${Et}-treenode`]:{[`${Et}-node-content-wrapper`]:{flex:"auto"}}}}},(0,mr.C2)(`${Je}-checkbox`,Ie),{"&-rtl":{direction:"rtl",[`${Et}-switcher${Et}-switcher_close`]:{[`${Et}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]},Nn=null;function In(Ie,je,Je){return(0,Cr.I$)("TreeSelect",ht=>{const Et=(0,lr.mergeToken)(ht,{treePrefixCls:je});return[ur(Et)]},nr.TM)(Ie,Je)}var Wn=function(Ie,je){var Je={};for(var ht in Ie)Object.prototype.hasOwnProperty.call(Ie,ht)&&je.indexOf(ht)<0&&(Je[ht]=Ie[ht]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,ht=Object.getOwnPropertySymbols(Ie);Et<ht.length;Et++)je.indexOf(ht[Et])<0&&Object.prototype.propertyIsEnumerable.call(Ie,ht[Et])&&(Je[ht[Et]]=Ie[ht[Et]]);return Je};const Kn=(Ie,je)=>{var Je;const{prefixCls:ht,size:Et,disabled:Qt,bordered:fn=!0,className:sn,rootClassName:mn,treeCheckable:Zn,multiple:tr,listHeight:Vt=256,listItemHeight:Gt,placement:Rt,notFoundContent:jt,switcherIcon:Mt,treeLine:Kt,getPopupContainer:yt,popupClassName:qt,dropdownClassName:vn,treeIcon:Tt=!1,transitionName:It,choiceTransitionName:Dt="",status:Bt,treeExpandAction:Zt,builtinPlacements:tn,dropdownMatchSelectWidth:Tn,popupMatchSelectWidth:Fn,allowClear:dr,variant:_r,dropdownStyle:Kr,tagRender:Sr,maxCount:hr,showCheckedStrategy:Mr,treeCheckStrictly:Br}=Ie,Wr=Wn(Ie,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender","maxCount","showCheckedStrategy","treeCheckStrictly"]),{getPopupContainer:Jn,getPrefixCls:ii,renderEmpty:Ur,direction:Gr,virtual:qr,popupMatchSelectWidth:Li,popupOverflow:wi}=te.useContext(on.E_),[,ui]=(0,Cn.ZP)(),Qr=Gt!=null?Gt:(ui==null?void 0:ui.controlHeightSM)+(ui==null?void 0:ui.paddingXXS),Di=ii(),oi=ii("select",ht),di=ii("select-tree",ht),ci=ii("tree-select",ht),{compactSize:ki,compactItemClassnames:Ki}=(0,ln.ri)(oi,Gr),ua=(0,an.Z)(oi),kn=(0,an.Z)(ci),[qi,Qi,ra]=(0,_n.Z)(oi,ua),[_i]=In(ci,di,kn),[Ti,Xr]=(0,Ut.Z)("treeSelect",_r,fn),rr=Me()(qt||vn,`${ci}-dropdown`,{[`${ci}-dropdown-rtl`]:Gr==="rtl"},mn,ra,ua,kn,Qi),Dr=!!(Zn||tr),Fr=te.useMemo(()=>{if(!(hr&&(Mr==="SHOW_ALL"&&!Br||Mr==="SHOW_PARENT")))return hr},[hr,Mr,Br]),or=(0,kt.Z)(Ie.suffixIcon,Ie.showArrow),ei=(Je=Fn!=null?Fn:Tn)!==null&&Je!==void 0?Je:Li,{status:si,hasFeedback:wr,isFormItemInput:Ir,feedbackIcon:Hr}=te.useContext(Jt.aM),ri=(0,nn.F)(si,Bt),{suffixIcon:un,removeIcon:Vn,clearIcon:Sn}=(0,Bn.Z)(Object.assign(Object.assign({},Wr),{multiple:Dr,showSuffixIcon:or,hasFeedback:wr,feedbackIcon:Hr,prefixCls:oi,componentName:"TreeSelect"})),Rr=dr===!0?{clearIcon:Sn}:dr;let ti;jt!==void 0?ti=jt:ti=(Ur==null?void 0:Ur("Select"))||te.createElement(yn.Z,{componentName:"Select"});const gn=(0,mt.Z)(Wr,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),mi=te.useMemo(()=>Rt!==void 0?Rt:Gr==="rtl"?"bottomRight":"bottomLeft",[Rt,Gr]),Nr=(0,An.Z)(li=>{var Zr;return(Zr=Et!=null?Et:ki)!==null&&Zr!==void 0?Zr:li}),Ar=te.useContext(xn.Z),pi=Qt!=null?Qt:Ar,Gi=Me()(!ht&&ci,{[`${oi}-lg`]:Nr==="large",[`${oi}-sm`]:Nr==="small",[`${oi}-rtl`]:Gr==="rtl",[`${oi}-${Ti}`]:Xr,[`${oi}-in-form-item`]:Ir},(0,nn.Z)(oi,ri,wr),Ki,sn,mn,ra,ua,kn,Qi),gi=li=>te.createElement(Mn.Z,{prefixCls:di,switcherIcon:Mt,treeNodeProps:li,showLine:Kt}),[Wi]=(0,Lt.Cn)("SelectLike",Kr==null?void 0:Kr.zIndex),Jr=te.createElement(lt,Object.assign({virtual:qr,disabled:pi},gn,{dropdownMatchSelectWidth:ei,builtinPlacements:(0,rn.Z)(tn,wi),ref:je,prefixCls:oi,className:Gi,listHeight:Vt,listItemHeight:Qr,treeCheckable:Zn&&te.createElement("span",{className:`${oi}-tree-checkbox-inner`}),treeLine:!!Kt,suffixIcon:un,multiple:Dr,placement:mi,removeIcon:Vn,allowClear:Rr,switcherIcon:gi,showTreeIcon:Tt,notFoundContent:ti,getPopupContainer:yt||Jn,treeMotion:null,dropdownClassName:rr,dropdownStyle:Object.assign(Object.assign({},Kr),{zIndex:Wi}),choiceTransitionName:(0,ft.m)(Di,"",Dt),transitionName:(0,ft.m)(Di,"slide-up",It),treeExpandAction:Zt,tagRender:Dr?Sr:void 0,maxCount:Fr,showCheckedStrategy:Mr,treeCheckStrictly:Br}));return qi(_i(Jr))},$n=te.forwardRef(Kn),ar=(0,St.Z)($n,"dropdownAlign",Ie=>(0,mt.Z)(Ie,["visible"]));$n.TreeNode=re,$n.SHOW_ALL=Xe,$n.SHOW_PARENT=Fe,$n.SHOW_CHILD=Le,$n._InternalPanelDoNotUseOrYouWillBeFired=ar;var dn=$n},18287:function(Yn,en,Ce){"use strict";Ce.d(en,{default:function(){return ut}});var te=Ce(87632),Ye=Ce(77654),Me=Ce(59301),pe=Ce(52671),Oe=Ce(8657),ve=Ce(60499),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,he=Ce(7657),le=function(rt,pt){return Me.createElement(he.Z,(0,ve.Z)({},rt,{ref:pt,icon:fe}))},ae=Me.forwardRef(le),ie=ae,me=Ce(92310),E=Ce.n(me),b=Ce(82661),z=Ce(34061),ne=Ce(48755),oe=Ce(56082),se=Ce(86641),de=Ce(57700),a=Ce(12425);const x=4;function re(Qe){const{dropPosition:rt,dropLevelOffset:pt,prefixCls:At,indent:gt,direction:Ft="ltr"}=Qe,Ct=Ft==="ltr"?"left":"right",Yt=Ft==="ltr"?"right":"left",zt={[Ct]:-pt*gt+x,[Yt]:0};switch(rt){case-1:zt.top=-3;break;case 1:zt.bottom=-3;break;default:zt.bottom=-3,zt[Ct]=gt+x;break}return Me.createElement("div",{style:zt,className:`${At}-drop-indicator`})}var ce=re,ge=Ce(85278),ye=Me.forwardRef((Qe,rt)=>{var pt;const{getPrefixCls:At,direction:gt,virtual:Ft,tree:Ct}=Me.useContext(ne.E_),{prefixCls:Yt,className:zt,showIcon:Xe=!1,showLine:Fe,switcherIcon:Le,switcherLoadingIcon:Ze,blockNode:et=!1,children:He,checkable:We=!1,selectable:tt=!0,draggable:at,motion:ot,style:ct}=Qe,lt=At("tree",Yt),mt=At(),Lt=ot!=null?ot:Object.assign(Object.assign({},(0,se.Z)(mt)),{motionAppear:!1}),ft=Object.assign(Object.assign({},Qe),{checkable:We,selectable:tt,showIcon:Xe,motion:Lt,blockNode:et,showLine:!!Fe,dropIndicatorRender:ce}),[St,nn,on]=(0,a.ZP)(lt),[,yn]=(0,de.ZP)(),xn=yn.paddingXS/2+(((pt=yn.Tree)===null||pt===void 0?void 0:pt.titleHeight)||yn.controlHeightSM),an=Me.useMemo(()=>{if(!at)return!1;let Jt={};switch(typeof at){case"function":Jt.nodeDraggable=at;break;case"object":Jt=Object.assign({},at);break;default:break}return Jt.icon!==!1&&(Jt.icon=Jt.icon||Me.createElement(oe.Z,null)),Jt},[at]),An=Jt=>Me.createElement(ge.Z,{prefixCls:lt,switcherIcon:Le,switcherLoadingIcon:Ze,treeNodeProps:Jt,showLine:Fe});return St(Me.createElement(te.ZP,Object.assign({itemHeight:xn,ref:rt,virtual:Ft},ft,{style:Object.assign(Object.assign({},Ct==null?void 0:Ct.style),ct),prefixCls:lt,className:E()({[`${lt}-icon-hide`]:!Xe,[`${lt}-block-node`]:et,[`${lt}-unselectable`]:!tt,[`${lt}-rtl`]:gt==="rtl"},Ct==null?void 0:Ct.className,zt,nn,on),direction:gt,checkable:We&&Me.createElement("span",{className:`${lt}-checkbox-inner`}),selectable:tt,switcherIcon:An,draggable:an}),He))});const be=0,Se=1,Be=2;function Ae(Qe,rt,pt){const{key:At,children:gt}=pt;function Ft(Ct){const Yt=Ct[At],zt=Ct[gt];rt(Yt,Ct)!==!1&&Ae(zt||[],rt,pt)}Qe.forEach(Ft)}function we(Qe){let{treeData:rt,expandedKeys:pt,startKey:At,endKey:gt,fieldNames:Ft}=Qe;const Ct=[];let Yt=be;if(At&&At===gt)return[At];if(!At||!gt)return[];function zt(Xe){return Xe===At||Xe===gt}return Ae(rt,Xe=>{if(Yt===Be)return!1;if(zt(Xe)){if(Ct.push(Xe),Yt===be)Yt=Se;else if(Yt===Se)return Yt=Be,!1}else Yt===Se&&Ct.push(Xe);return pt.includes(Xe)},(0,z.w$)(Ft)),Ct}function Ue(Qe,rt,pt){const At=(0,Ye.Z)(rt),gt=[];return Ae(Qe,(Ft,Ct)=>{const Yt=At.indexOf(Ft);return Yt!==-1&&(gt.push(Ct),At.splice(Yt,1)),!!At.length},(0,z.w$)(pt)),gt}var Pe=function(Qe,rt){var pt={};for(var At in Qe)Object.prototype.hasOwnProperty.call(Qe,At)&&rt.indexOf(At)<0&&(pt[At]=Qe[At]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,At=Object.getOwnPropertySymbols(Qe);gt<At.length;gt++)rt.indexOf(At[gt])<0&&Object.prototype.propertyIsEnumerable.call(Qe,At[gt])&&(pt[At[gt]]=Qe[At[gt]]);return pt};function ze(Qe){const{isLeaf:rt,expanded:pt}=Qe;return rt?Me.createElement(pe.Z,null):pt?Me.createElement(Oe.Z,null):Me.createElement(ie,null)}function Ke(Qe){let{treeData:rt,children:pt}=Qe;return rt||(0,z.zn)(pt)}const Ne=(Qe,rt)=>{var{defaultExpandAll:pt,defaultExpandParent:At,defaultExpandedKeys:gt}=Qe,Ft=Pe(Qe,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Ct=Me.useRef(null),Yt=Me.useRef(null),zt=()=>{const{keyEntities:St}=(0,z.I8)(Ke(Ft));let nn;return pt?nn=Object.keys(St):At?nn=(0,b.r7)(Ft.expandedKeys||gt||[],St):nn=Ft.expandedKeys||gt||[],nn},[Xe,Fe]=Me.useState(Ft.selectedKeys||Ft.defaultSelectedKeys||[]),[Le,Ze]=Me.useState(()=>zt());Me.useEffect(()=>{"selectedKeys"in Ft&&Fe(Ft.selectedKeys)},[Ft.selectedKeys]),Me.useEffect(()=>{"expandedKeys"in Ft&&Ze(Ft.expandedKeys)},[Ft.expandedKeys]);const et=(St,nn)=>{var on;return"expandedKeys"in Ft||Ze(St),(on=Ft.onExpand)===null||on===void 0?void 0:on.call(Ft,St,nn)},He=(St,nn)=>{var on;const{multiple:yn,fieldNames:xn}=Ft,{node:an,nativeEvent:An}=nn,{key:Jt=""}=an,Ut=Ke(Ft),rn=Object.assign(Object.assign({},nn),{selected:!0}),_n=(An==null?void 0:An.ctrlKey)||(An==null?void 0:An.metaKey),Bn=An==null?void 0:An.shiftKey;let kt;yn&&_n?(kt=St,Ct.current=Jt,Yt.current=kt,rn.selectedNodes=Ue(Ut,kt,xn)):yn&&Bn?(kt=Array.from(new Set([].concat((0,Ye.Z)(Yt.current||[]),(0,Ye.Z)(we({treeData:Ut,expandedKeys:Le,startKey:Jt,endKey:Ct.current,fieldNames:xn}))))),rn.selectedNodes=Ue(Ut,kt,xn)):(kt=[Jt],Ct.current=Jt,Yt.current=kt,rn.selectedNodes=Ue(Ut,kt,xn)),(on=Ft.onSelect)===null||on===void 0||on.call(Ft,kt,rn),"selectedKeys"in Ft||Fe(kt)},{getPrefixCls:We,direction:tt}=Me.useContext(ne.E_),{prefixCls:at,className:ot,showIcon:ct=!0,expandAction:lt="click"}=Ft,mt=Pe(Ft,["prefixCls","className","showIcon","expandAction"]),Lt=We("tree",at),ft=E()(`${Lt}-directory`,{[`${Lt}-directory-rtl`]:tt==="rtl"},ot);return Me.createElement(ye,Object.assign({icon:ze,ref:rt,blockNode:!0},mt,{showIcon:ct,expandAction:lt,prefixCls:Lt,className:ft,expandedKeys:Le,selectedKeys:Xe,onSelect:He,onExpand:et}))};var $e=Me.forwardRef(Ne);const nt=ye;nt.DirectoryTree=$e,nt.TreeNode=te.OF;var ut=nt},12425:function(Yn,en,Ce){"use strict";Ce.d(en,{ZP:function(){return b},Yk:function(){return ie},TM:function(){return me}});var te=Ce(36237),Ye=Ce(36170),Me=Ce(63356),pe=Ce(34961),Oe=Ce(51636),ve=Ce(16931);const ue=z=>{let{treeCls:ne,treeNodeCls:oe,directoryNodeSelectedBg:se,directoryNodeSelectedColor:de,motionDurationMid:a,borderRadius:x,controlItemBgHover:re}=z;return{[`${ne}${ne}-directory ${oe}`]:{[`${ne}-node-content-wrapper`]:{position:"static",[`> *:not(${ne}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${a}`,content:'""',borderRadius:x},"&:hover:before":{background:re}},[`${ne}-switcher, ${ne}-checkbox, ${ne}-draggable-icon`]:{zIndex:1},"&-selected":{[`${ne}-switcher, ${ne}-draggable-icon`]:{color:de},[`${ne}-node-content-wrapper`]:{color:de,background:"transparent","&:before, &:hover:before":{background:se}}}}}},fe=new te.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),he=(z,ne)=>({[`.${z}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${ne.motionDurationSlow}`}}}),le=(z,ne)=>({[`.${z}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:ne.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,te.unit)(ne.lineWidthBold)} solid ${ne.colorPrimary}`,borderRadius:"50%",content:'""'}}}),ae=(z,ne)=>{const{treeCls:oe,treeNodeCls:se,treeNodePadding:de,titleHeight:a,indentSize:x,nodeSelectedBg:re,nodeHoverBg:ce,colorTextQuaternary:ge,controlItemBgActiveDisabled:_e}=ne;return{[oe]:Object.assign(Object.assign({},(0,Me.Wf)(ne)),{background:ne.colorBgContainer,borderRadius:ne.borderRadius,transition:`background-color ${ne.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${oe}-rtl ${oe}-switcher_close ${oe}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${oe}-active-focused)`]:Object.assign({},(0,Me.oN)(ne)),[`${oe}-list-holder-inner`]:{alignItems:"flex-start"},[`&${oe}-block-node`]:{[`${oe}-list-holder-inner`]:{alignItems:"stretch",[`${oe}-node-content-wrapper`]:{flex:"auto"},[`${se}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${ne.colorPrimary}`,opacity:0,animationName:fe,animationDuration:ne.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:ne.borderRadius}}},[se]:{display:"flex",alignItems:"flex-start",marginBottom:de,lineHeight:(0,te.unit)(a),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:de},[`&-disabled ${oe}-node-content-wrapper`]:{color:ne.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${oe}-checkbox-disabled + ${oe}-node-selected,&${se}-disabled${se}-selected ${oe}-node-content-wrapper`]:{backgroundColor:_e},[`${oe}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${se}-disabled)`]:{[`${oe}-node-content-wrapper`]:{"&:hover":{color:ne.nodeHoverColor}}},[`&-active ${oe}-node-content-wrapper`]:{background:ne.controlItemBgHover},[`&:not(${se}-disabled).filter-node ${oe}-title`]:{color:ne.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${oe}-draggable-icon`]:{flexShrink:0,width:a,textAlign:"center",visibility:"visible",color:ge},[`&${se}-disabled ${oe}-draggable-icon`]:{visibility:"hidden"}}},[`${oe}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:x}},[`${oe}-draggable-icon`]:{visibility:"hidden"},[`${oe}-switcher, ${oe}-checkbox`]:{marginInlineEnd:ne.calc(ne.calc(a).sub(ne.controlInteractiveSize)).div(2).equal()},[`${oe}-switcher`]:Object.assign(Object.assign({},he(z,ne)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${ne.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:a,height:a,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:ne.borderRadius,transition:`all ${ne.motionDurationSlow}`},[`&:not(${oe}-switcher-noop):hover:before`]:{backgroundColor:ne.colorBgTextHover},[`&_close ${oe}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:ne.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ne.calc(a).div(2).equal(),bottom:ne.calc(de).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${ne.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:ne.calc(ne.calc(a).div(2).equal()).mul(.8).equal(),height:ne.calc(a).div(2).equal(),borderBottom:`1px solid ${ne.colorBorder}`,content:'""'}}}),[`${oe}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:a,paddingBlock:0,paddingInline:ne.paddingXS,background:"transparent",borderRadius:ne.borderRadius,cursor:"pointer",transition:`all ${ne.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},le(z,ne)),{"&:hover":{backgroundColor:ce},[`&${oe}-node-selected`]:{color:ne.nodeSelectedColor,backgroundColor:re},[`${oe}-iconEle`]:{display:"inline-block",width:a,height:a,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${oe}-unselectable ${oe}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${se}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${ne.colorPrimary}`},"&-show-line":{[`${oe}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ne.calc(a).div(2).equal(),bottom:ne.calc(de).mul(-1).equal(),borderInlineEnd:`1px solid ${ne.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${oe}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${se}-leaf-last ${oe}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,te.unit)(ne.calc(a).div(2).equal())} !important`}})}},ie=function(z,ne){let oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const se=`.${z}`,de=`${se}-treenode`,a=ne.calc(ne.paddingXS).div(2).equal(),x=(0,Oe.mergeToken)(ne,{treeCls:se,treeNodeCls:de,treeNodePadding:a});return[ae(z,x),oe&&ue(x)].filter(Boolean)},me=z=>{const{controlHeightSM:ne,controlItemBgHover:oe,controlItemBgActive:se}=z,de=ne;return{titleHeight:de,indentSize:de,nodeHoverBg:oe,nodeHoverColor:z.colorText,nodeSelectedBg:se,nodeSelectedColor:z.colorText}},E=z=>{const{colorTextLightSolid:ne,colorPrimary:oe}=z;return Object.assign(Object.assign({},me(z)),{directoryNodeSelectedColor:ne,directoryNodeSelectedBg:oe})};var b=(0,ve.I$)("Tree",(z,ne)=>{let{prefixCls:oe}=ne;return[{[z.componentCls]:(0,Ye.C2)(`${oe}-checkbox`,z)},ie(oe,z),(0,pe.Z)(z)]},E)},85278:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return ne}});var te=Ce(59301),Ye=Ce(60499),Me={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"},pe=Me,Oe=Ce(7657),ve=function(se,de){return te.createElement(Oe.Z,(0,Ye.Z)({},se,{ref:de,icon:pe}))},ue=te.forwardRef(ve),fe=ue,he=Ce(52671),le=Ce(58617),ae=Ce(15075),ie=Ce(43531),me=Ce(92310),E=Ce.n(me),b=Ce(22703),ne=oe=>{const{prefixCls:se,switcherIcon:de,treeNodeProps:a,showLine:x,switcherLoadingIcon:re}=oe,{isLeaf:ce,expanded:ge,loading:_e}=a;if(_e)return te.isValidElement(re)?re:te.createElement(le.Z,{className:`${se}-switcher-loading-icon`});let ye;if(x&&typeof x=="object"&&(ye=x.showLeafIcon),ce){if(!x)return null;if(typeof ye!="boolean"&&ye){const Be=typeof ye=="function"?ye(a):ye,Ae=`${se}-switcher-line-custom-icon`;return te.isValidElement(Be)?(0,b.Tm)(Be,{className:E()(Be.props.className||"",Ae)}):Be}return ye?te.createElement(he.Z,{className:`${se}-switcher-line-icon`}):te.createElement("span",{className:`${se}-switcher-leaf-line`})}const be=`${se}-switcher-icon`,Se=typeof de=="function"?de(a):de;return te.isValidElement(Se)?(0,b.Tm)(Se,{className:E()(Se.props.className||"",be)}):Se!==void 0?Se:x?ge?te.createElement(ae.Z,{className:`${se}-switcher-line-icon`}):te.createElement(ie.Z,{className:`${se}-switcher-line-icon`}):te.createElement(fe,{className:be})}},94968:function(Yn,en,Ce){"use strict";Ce.d(en,{default:function(){return Kt}});var te=Ce(59301),Ye=Ce(77654),Me=Ce(4676),pe=Ce(92310),Oe=Ce.n(pe),ve=Ce(60499),ue=Ce(38705),fe=Ce(17212),he=Ce(15793),le=Ce(39153),ae=Ce(55401),ie=Ce(18642),me=Ce(85899),E=Ce(42244),b=Ce(43749),z=Ce(73001),ne=Ce(11576),oe=Ce(26112),se=Ce(48736),de=function(yt,qt){if(yt&&qt){var vn=Array.isArray(qt)?qt:qt.split(","),Tt=yt.name||"",It=yt.type||"",Dt=It.replace(/\/.*$/,"");return vn.some(function(Bt){var Zt=Bt.trim();if(/^\*(\/\*)?$/.test(Bt))return!0;if(Zt.charAt(0)==="."){var tn=Tt.toLowerCase(),Tn=Zt.toLowerCase(),Fn=[Tn];return(Tn===".jpg"||Tn===".jpeg")&&(Fn=[".jpg",".jpeg"]),Fn.some(function(dr){return tn.endsWith(dr)})}return/\/\*$/.test(Zt)?Dt===Zt.replace(/\/.*$/,""):It===Zt?!0:/^\w+$/.test(Zt)?((0,se.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Zt,"'.Skip for check.")),!0):!1})}return!0};function a(yt,qt){var vn="cannot ".concat(yt.method," ").concat(yt.action," ").concat(qt.status,"'"),Tt=new Error(vn);return Tt.status=qt.status,Tt.method=yt.method,Tt.url=yt.action,Tt}function x(yt){var qt=yt.responseText||yt.response;if(!qt)return qt;try{return JSON.parse(qt)}catch(vn){return qt}}function re(yt){var qt=new XMLHttpRequest;yt.onProgress&&qt.upload&&(qt.upload.onprogress=function(Dt){Dt.total>0&&(Dt.percent=Dt.loaded/Dt.total*100),yt.onProgress(Dt)});var vn=new FormData;yt.data&&Object.keys(yt.data).forEach(function(It){var Dt=yt.data[It];if(Array.isArray(Dt)){Dt.forEach(function(Bt){vn.append("".concat(It,"[]"),Bt)});return}vn.append(It,Dt)}),yt.file instanceof Blob?vn.append(yt.filename,yt.file,yt.file.name):vn.append(yt.filename,yt.file),qt.onerror=function(Dt){yt.onError(Dt)},qt.onload=function(){return qt.status<200||qt.status>=300?yt.onError(a(yt,qt),x(qt)):yt.onSuccess(x(qt),qt)},qt.open(yt.method,yt.action,!0),yt.withCredentials&&"withCredentials"in qt&&(qt.withCredentials=!0);var Tt=yt.headers||{};return Tt["X-Requested-With"]!==null&&qt.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Tt).forEach(function(It){Tt[It]!==null&&qt.setRequestHeader(It,Tt[It])}),qt.send(vn),{abort:function(){qt.abort()}}}var ce=function(){var yt=(0,ne.Z)((0,z.Z)().mark(function qt(vn,Tt){var It,Dt,Bt,Zt,tn,Tn,Fn,dr;return(0,z.Z)().wrap(function(Kr){for(;;)switch(Kr.prev=Kr.next){case 0:Tn=function(){return Tn=(0,ne.Z)((0,z.Z)().mark(function hr(Mr){return(0,z.Z)().wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:return Wr.abrupt("return",new Promise(function(Jn){Mr.file(function(ii){Tt(ii)?(Mr.fullPath&&!ii.webkitRelativePath&&(Object.defineProperties(ii,{webkitRelativePath:{writable:!0}}),ii.webkitRelativePath=Mr.fullPath.replace(/^\//,""),Object.defineProperties(ii,{webkitRelativePath:{writable:!1}})),Jn(ii)):Jn(null)})}));case 1:case"end":return Wr.stop()}},hr)})),Tn.apply(this,arguments)},tn=function(hr){return Tn.apply(this,arguments)},Zt=function(){return Zt=(0,ne.Z)((0,z.Z)().mark(function hr(Mr){var Br,Wr,Jn,ii,Ur;return(0,z.Z)().wrap(function(qr){for(;;)switch(qr.prev=qr.next){case 0:Br=Mr.createReader(),Wr=[];case 2:return qr.next=5,new Promise(function(Li){Br.readEntries(Li,function(){return Li([])})});case 5:if(Jn=qr.sent,ii=Jn.length,ii){qr.next=9;break}return qr.abrupt("break",12);case 9:for(Ur=0;Ur<ii;Ur++)Wr.push(Jn[Ur]);qr.next=2;break;case 12:return qr.abrupt("return",Wr);case 13:case"end":return qr.stop()}},hr)})),Zt.apply(this,arguments)},Bt=function(hr){return Zt.apply(this,arguments)},It=[],Dt=[],vn.forEach(function(Sr){return Dt.push(Sr.webkitGetAsEntry())}),Fn=function(){var Sr=(0,ne.Z)((0,z.Z)().mark(function hr(Mr,Br){var Wr,Jn;return(0,z.Z)().wrap(function(Ur){for(;;)switch(Ur.prev=Ur.next){case 0:if(Mr){Ur.next=2;break}return Ur.abrupt("return");case 2:if(Mr.path=Br||"",!Mr.isFile){Ur.next=10;break}return Ur.next=6,tn(Mr);case 6:Wr=Ur.sent,Wr&&It.push(Wr),Ur.next=15;break;case 10:if(!Mr.isDirectory){Ur.next=15;break}return Ur.next=13,Bt(Mr);case 13:Jn=Ur.sent,Dt.push.apply(Dt,(0,Ye.Z)(Jn));case 15:case"end":return Ur.stop()}},hr)}));return function(Mr,Br){return Sr.apply(this,arguments)}}(),dr=0;case 9:if(!(dr<Dt.length)){Kr.next=15;break}return Kr.next=12,Fn(Dt[dr]);case 12:dr++,Kr.next=9;break;case 15:return Kr.abrupt("return",It);case 16:case"end":return Kr.stop()}},qt)}));return function(vn,Tt){return yt.apply(this,arguments)}}(),ge=ce,_e=+new Date,ye=0;function be(){return"rc-upload-".concat(_e,"-").concat(++ye)}var Se=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Be=function(yt){(0,le.Z)(vn,yt);var qt=(0,ae.Z)(vn);function vn(){var Tt;(0,ue.Z)(this,vn);for(var It=arguments.length,Dt=new Array(It),Bt=0;Bt<It;Bt++)Dt[Bt]=arguments[Bt];return Tt=qt.call.apply(qt,[this].concat(Dt)),(0,ie.Z)((0,he.Z)(Tt),"state",{uid:be()}),(0,ie.Z)((0,he.Z)(Tt),"reqs",{}),(0,ie.Z)((0,he.Z)(Tt),"fileInput",void 0),(0,ie.Z)((0,he.Z)(Tt),"_isMounted",void 0),(0,ie.Z)((0,he.Z)(Tt),"onChange",function(Zt){var tn=Tt.props,Tn=tn.accept,Fn=tn.directory,dr=Zt.target.files,_r=(0,Ye.Z)(dr).filter(function(Kr){return!Fn||de(Kr,Tn)});Tt.uploadFiles(_r),Tt.reset()}),(0,ie.Z)((0,he.Z)(Tt),"onClick",function(Zt){var tn=Tt.fileInput;if(tn){var Tn=Zt.target,Fn=Tt.props.onClick;if(Tn&&Tn.tagName==="BUTTON"){var dr=tn.parentNode;dr.focus(),Tn.blur()}tn.click(),Fn&&Fn(Zt)}}),(0,ie.Z)((0,he.Z)(Tt),"onKeyDown",function(Zt){Zt.key==="Enter"&&Tt.onClick(Zt)}),(0,ie.Z)((0,he.Z)(Tt),"onFileDrop",function(){var Zt=(0,ne.Z)((0,z.Z)().mark(function tn(Tn){var Fn,dr,_r;return(0,z.Z)().wrap(function(Sr){for(;;)switch(Sr.prev=Sr.next){case 0:if(Fn=Tt.props.multiple,Tn.preventDefault(),Tn.type!=="dragover"){Sr.next=4;break}return Sr.abrupt("return");case 4:if(!Tt.props.directory){Sr.next=11;break}return Sr.next=7,ge(Array.prototype.slice.call(Tn.dataTransfer.items),function(hr){return de(hr,Tt.props.accept)});case 7:dr=Sr.sent,Tt.uploadFiles(dr),Sr.next=14;break;case 11:_r=(0,Ye.Z)(Tn.dataTransfer.files).filter(function(hr){return de(hr,Tt.props.accept)}),Fn===!1&&(_r=_r.slice(0,1)),Tt.uploadFiles(_r);case 14:case"end":return Sr.stop()}},tn)}));return function(tn){return Zt.apply(this,arguments)}}()),(0,ie.Z)((0,he.Z)(Tt),"uploadFiles",function(Zt){var tn=(0,Ye.Z)(Zt),Tn=tn.map(function(Fn){return Fn.uid=be(),Tt.processFile(Fn,tn)});Promise.all(Tn).then(function(Fn){var dr=Tt.props.onBatchStart;dr==null||dr(Fn.map(function(_r){var Kr=_r.origin,Sr=_r.parsedFile;return{file:Kr,parsedFile:Sr}})),Fn.filter(function(_r){return _r.parsedFile!==null}).forEach(function(_r){Tt.post(_r)})})}),(0,ie.Z)((0,he.Z)(Tt),"processFile",function(){var Zt=(0,ne.Z)((0,z.Z)().mark(function tn(Tn,Fn){var dr,_r,Kr,Sr,hr,Mr,Br,Wr,Jn;return(0,z.Z)().wrap(function(Ur){for(;;)switch(Ur.prev=Ur.next){case 0:if(dr=Tt.props.beforeUpload,_r=Tn,!dr){Ur.next=14;break}return Ur.prev=3,Ur.next=6,dr(Tn,Fn);case 6:_r=Ur.sent,Ur.next=12;break;case 9:Ur.prev=9,Ur.t0=Ur.catch(3),_r=!1;case 12:if(_r!==!1){Ur.next=14;break}return Ur.abrupt("return",{origin:Tn,parsedFile:null,action:null,data:null});case 14:if(Kr=Tt.props.action,typeof Kr!="function"){Ur.next=21;break}return Ur.next=18,Kr(Tn);case 18:Sr=Ur.sent,Ur.next=22;break;case 21:Sr=Kr;case 22:if(hr=Tt.props.data,typeof hr!="function"){Ur.next=29;break}return Ur.next=26,hr(Tn);case 26:Mr=Ur.sent,Ur.next=30;break;case 29:Mr=hr;case 30:return Br=((0,b.Z)(_r)==="object"||typeof _r=="string")&&_r?_r:Tn,Br instanceof File?Wr=Br:Wr=new File([Br],Tn.name,{type:Tn.type}),Jn=Wr,Jn.uid=Tn.uid,Ur.abrupt("return",{origin:Tn,data:Mr,parsedFile:Jn,action:Sr});case 35:case"end":return Ur.stop()}},tn,null,[[3,9]])}));return function(tn,Tn){return Zt.apply(this,arguments)}}()),(0,ie.Z)((0,he.Z)(Tt),"saveFileInput",function(Zt){Tt.fileInput=Zt}),Tt}return(0,fe.Z)(vn,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(It){var Dt=this,Bt=It.data,Zt=It.origin,tn=It.action,Tn=It.parsedFile;if(this._isMounted){var Fn=this.props,dr=Fn.onStart,_r=Fn.customRequest,Kr=Fn.name,Sr=Fn.headers,hr=Fn.withCredentials,Mr=Fn.method,Br=Zt.uid,Wr=_r||re,Jn={action:tn,filename:Kr,data:Bt,file:Tn,headers:Sr,withCredentials:hr,method:Mr||"post",onProgress:function(Ur){var Gr=Dt.props.onProgress;Gr==null||Gr(Ur,Tn)},onSuccess:function(Ur,Gr){var qr=Dt.props.onSuccess;qr==null||qr(Ur,Tn,Gr),delete Dt.reqs[Br]},onError:function(Ur,Gr){var qr=Dt.props.onError;qr==null||qr(Ur,Gr,Tn),delete Dt.reqs[Br]}};dr(Zt),this.reqs[Br]=Wr(Jn)}}},{key:"reset",value:function(){this.setState({uid:be()})}},{key:"abort",value:function(It){var Dt=this.reqs;if(It){var Bt=It.uid?It.uid:It;Dt[Bt]&&Dt[Bt].abort&&Dt[Bt].abort(),delete Dt[Bt]}else Object.keys(Dt).forEach(function(Zt){Dt[Zt]&&Dt[Zt].abort&&Dt[Zt].abort(),delete Dt[Zt]})}},{key:"render",value:function(){var It=this.props,Dt=It.component,Bt=It.prefixCls,Zt=It.className,tn=It.classNames,Tn=tn===void 0?{}:tn,Fn=It.disabled,dr=It.id,_r=It.name,Kr=It.style,Sr=It.styles,hr=Sr===void 0?{}:Sr,Mr=It.multiple,Br=It.accept,Wr=It.capture,Jn=It.children,ii=It.directory,Ur=It.openFileDialogOnClick,Gr=It.onMouseEnter,qr=It.onMouseLeave,Li=It.hasControlInside,wi=(0,E.Z)(It,Se),ui=Oe()((0,ie.Z)((0,ie.Z)((0,ie.Z)({},Bt,!0),"".concat(Bt,"-disabled"),Fn),Zt,Zt)),Qr=ii?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Di=Fn?{}:{onClick:Ur?this.onClick:function(){},onKeyDown:Ur?this.onKeyDown:function(){},onMouseEnter:Gr,onMouseLeave:qr,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:Li?void 0:"0"};return te.createElement(Dt,(0,ve.Z)({},Di,{className:ui,role:Li?void 0:"button",style:Kr}),te.createElement("input",(0,ve.Z)({},(0,oe.Z)(wi,{aria:!0,data:!0}),{id:dr,name:_r,disabled:Fn,type:"file",ref:this.saveFileInput,onClick:function(di){return di.stopPropagation()},key:this.state.uid,style:(0,me.Z)({display:"none"},hr.input),className:Tn.input,accept:Br},Qr,{multiple:Mr,onChange:this.onChange},Wr!=null?{capture:Wr}:{})),Jn)}}]),vn}(te.Component),Ae=Be;function we(){}var Ue=function(yt){(0,le.Z)(vn,yt);var qt=(0,ae.Z)(vn);function vn(){var Tt;(0,ue.Z)(this,vn);for(var It=arguments.length,Dt=new Array(It),Bt=0;Bt<It;Bt++)Dt[Bt]=arguments[Bt];return Tt=qt.call.apply(qt,[this].concat(Dt)),(0,ie.Z)((0,he.Z)(Tt),"uploader",void 0),(0,ie.Z)((0,he.Z)(Tt),"saveUploader",function(Zt){Tt.uploader=Zt}),Tt}return(0,fe.Z)(vn,[{key:"abort",value:function(It){this.uploader.abort(It)}},{key:"render",value:function(){return te.createElement(Ae,(0,ve.Z)({},this.props,{ref:this.saveUploader}))}}]),vn}(te.Component);(0,ie.Z)(Ue,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:we,onError:we,onSuccess:we,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var Pe=Ue,ze=Pe,Ke=Ce(18929),Ne=Ce(48755),Re=Ce(2171),$e=Ce(9017),nt=Ce(85981),ut=Ce(63356),Qe=Ce(34961),rt=Ce(16931),pt=Ce(51636),At=Ce(36237),Ft=yt=>{const{componentCls:qt,iconCls:vn}=yt;return{[`${qt}-wrapper`]:{[`${qt}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:yt.colorFillAlter,border:`${(0,At.unit)(yt.lineWidth)} dashed ${yt.colorBorder}`,borderRadius:yt.borderRadiusLG,cursor:"pointer",transition:`border-color ${yt.motionDurationSlow}`,[qt]:{padding:yt.padding},[`${qt}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:yt.borderRadiusLG,"&:focus-visible":{outline:`${(0,At.unit)(yt.lineWidthFocus)} solid ${yt.colorPrimaryBorder}`}},[`${qt}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
|
|
|
&:not(${qt}-disabled):hover,
|
|
|
&-hover:not(${qt}-disabled)
|
|
|
`]:{borderColor:yt.colorPrimaryHover},[`p${qt}-drag-icon`]:{marginBottom:yt.margin,[vn]:{color:yt.colorPrimary,fontSize:yt.uploadThumbnailSize}},[`p${qt}-text`]:{margin:`0 0 ${(0,At.unit)(yt.marginXXS)}`,color:yt.colorTextHeading,fontSize:yt.fontSizeLG},[`p${qt}-hint`]:{color:yt.colorTextDescription,fontSize:yt.fontSize},[`&${qt}-disabled`]:{[`p${qt}-drag-icon ${vn},
|
|
|
p${qt}-text,
|
|
|
p${qt}-hint
|
|
|
`]:{color:yt.colorTextDisabled}}}}}},Yt=yt=>{const{componentCls:qt,iconCls:vn,fontSize:Tt,lineHeight:It,calc:Dt}=yt,Bt=`${qt}-list-item`,Zt=`${Bt}-actions`,tn=`${Bt}-action`;return{[`${qt}-wrapper`]:{[`${qt}-list`]:Object.assign(Object.assign({},(0,ut.dF)()),{lineHeight:yt.lineHeight,[Bt]:{position:"relative",height:Dt(yt.lineHeight).mul(Tt).equal(),marginTop:yt.marginXS,fontSize:Tt,display:"flex",alignItems:"center",transition:`background-color ${yt.motionDurationSlow}`,borderRadius:yt.borderRadiusSM,"&:hover":{backgroundColor:yt.controlItemBgHover},[`${Bt}-name`]:Object.assign(Object.assign({},ut.vS),{padding:`0 ${(0,At.unit)(yt.paddingXS)}`,lineHeight:It,flex:"auto",transition:`all ${yt.motionDurationSlow}`}),[Zt]:{whiteSpace:"nowrap",[tn]:{opacity:0},[vn]:{color:yt.actionsColor,transition:`all ${yt.motionDurationSlow}`},[`
|
|
|
${tn}:focus-visible,
|
|
|
&.picture ${tn}
|
|
|
`]:{opacity:1}},[`${qt}-icon ${vn}`]:{color:yt.colorTextDescription,fontSize:Tt},[`${Bt}-progress`]:{position:"absolute",bottom:yt.calc(yt.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:Dt(Tt).add(yt.paddingXS).equal(),fontSize:Tt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Bt}:hover ${tn}`]:{opacity:1},[`${Bt}-error`]:{color:yt.colorError,[`${Bt}-name, ${qt}-icon ${vn}`]:{color:yt.colorError},[Zt]:{[`${vn}, ${vn}:hover`]:{color:yt.colorError},[tn]:{opacity:1}}},[`${qt}-list-item-container`]:{transition:`opacity ${yt.motionDurationSlow}, height ${yt.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},zt=Ce(99495),Fe=yt=>{const{componentCls:qt}=yt,vn=new At.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:yt.calc(yt.marginXS).div(-2).equal()}}),Tt=new At.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:yt.calc(yt.marginXS).div(-2).equal()}}),It=`${qt}-animate-inline`;return[{[`${qt}-wrapper`]:{[`${It}-appear, ${It}-enter, ${It}-leave`]:{animationDuration:yt.motionDurationSlow,animationTimingFunction:yt.motionEaseInOutCirc,animationFillMode:"forwards"},[`${It}-appear, ${It}-enter`]:{animationName:vn},[`${It}-leave`]:{animationName:Tt}}},{[`${qt}-wrapper`]:(0,zt.J$)(yt)},vn,Tt]},Le=Ce(68361);const Ze=yt=>{const{componentCls:qt,iconCls:vn,uploadThumbnailSize:Tt,uploadProgressOffset:It,calc:Dt}=yt,Bt=`${qt}-list`,Zt=`${Bt}-item`;return{[`${qt}-wrapper`]:{[`
|
|
|
${Bt}${Bt}-picture,
|
|
|
${Bt}${Bt}-picture-card,
|
|
|
${Bt}${Bt}-picture-circle
|
|
|
`]:{[Zt]:{position:"relative",height:Dt(Tt).add(Dt(yt.lineWidth).mul(2)).add(Dt(yt.paddingXS).mul(2)).equal(),padding:yt.paddingXS,border:`${(0,At.unit)(yt.lineWidth)} ${yt.lineType} ${yt.colorBorder}`,borderRadius:yt.borderRadiusLG,"&:hover":{background:"transparent"},[`${Zt}-thumbnail`]:Object.assign(Object.assign({},ut.vS),{width:Tt,height:Tt,lineHeight:(0,At.unit)(Dt(Tt).add(yt.paddingSM).equal()),textAlign:"center",flex:"none",[vn]:{fontSize:yt.fontSizeHeading2,color:yt.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Zt}-progress`]:{bottom:It,width:`calc(100% - ${(0,At.unit)(Dt(yt.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:Dt(Tt).add(yt.paddingXS).equal()}},[`${Zt}-error`]:{borderColor:yt.colorError,[`${Zt}-thumbnail ${vn}`]:{[`svg path[fill='${Le.blue[0]}']`]:{fill:yt.colorErrorBg},[`svg path[fill='${Le.blue.primary}']`]:{fill:yt.colorError}}},[`${Zt}-uploading`]:{borderStyle:"dashed",[`${Zt}-name`]:{marginBottom:It}}},[`${Bt}${Bt}-picture-circle ${Zt}`]:{[`&, &::before, ${Zt}-thumbnail`]:{borderRadius:"50%"}}}}},et=yt=>{const{componentCls:qt,iconCls:vn,fontSizeLG:Tt,colorTextLightSolid:It,calc:Dt}=yt,Bt=`${qt}-list`,Zt=`${Bt}-item`,tn=yt.uploadPicCardSize;return{[`
|
|
|
${qt}-wrapper${qt}-picture-card-wrapper,
|
|
|
${qt}-wrapper${qt}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,ut.dF)()),{display:"block",[`${qt}${qt}-select`]:{width:tn,height:tn,textAlign:"center",verticalAlign:"top",backgroundColor:yt.colorFillAlter,border:`${(0,At.unit)(yt.lineWidth)} dashed ${yt.colorBorder}`,borderRadius:yt.borderRadiusLG,cursor:"pointer",transition:`border-color ${yt.motionDurationSlow}`,[`> ${qt}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${qt}-disabled):hover`]:{borderColor:yt.colorPrimary}},[`${Bt}${Bt}-picture-card, ${Bt}${Bt}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:yt.marginXS,marginInlineEnd:yt.marginXS}},"@supports (gap: 1px)":{gap:yt.marginXS},[`${Bt}-item-container`]:{display:"inline-block",width:tn,height:tn,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[Zt]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,At.unit)(Dt(yt.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,At.unit)(Dt(yt.paddingXS).mul(2).equal())})`,backgroundColor:yt.colorBgMask,opacity:0,transition:`all ${yt.motionDurationSlow}`,content:'" "'}},[`${Zt}:hover`]:{[`&::before, ${Zt}-actions`]:{opacity:1}},[`${Zt}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${yt.motionDurationSlow}`,[`
|
|
|
${vn}-eye,
|
|
|
${vn}-download,
|
|
|
${vn}-delete
|
|
|
`]:{zIndex:10,width:Tt,margin:`0 ${(0,At.unit)(yt.marginXXS)}`,fontSize:Tt,cursor:"pointer",transition:`all ${yt.motionDurationSlow}`,color:It,"&:hover":{color:It},svg:{verticalAlign:"baseline"}}},[`${Zt}-thumbnail, ${Zt}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Zt}-name`]:{display:"none",textAlign:"center"},[`${Zt}-file + ${Zt}-name`]:{position:"absolute",bottom:yt.margin,display:"block",width:`calc(100% - ${(0,At.unit)(Dt(yt.paddingXS).mul(2).equal())})`},[`${Zt}-uploading`]:{[`&${Zt}`]:{backgroundColor:yt.colorFillAlter},[`&::before, ${vn}-eye, ${vn}-download, ${vn}-delete`]:{display:"none"}},[`${Zt}-progress`]:{bottom:yt.marginXL,width:`calc(100% - ${(0,At.unit)(Dt(yt.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${qt}-wrapper${qt}-picture-circle-wrapper`]:{[`${qt}${qt}-select`]:{borderRadius:"50%"}}}};var We=yt=>{const{componentCls:qt}=yt;return{[`${qt}-rtl`]:{direction:"rtl"}}};const tt=yt=>{const{componentCls:qt,colorTextDisabled:vn}=yt;return{[`${qt}-wrapper`]:Object.assign(Object.assign({},(0,ut.Wf)(yt)),{[qt]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${qt}-select`]:{display:"inline-block"},[`${qt}-hidden`]:{display:"none"},[`${qt}-disabled`]:{color:vn,cursor:"not-allowed"}})}},at=yt=>({actionsColor:yt.colorTextDescription});var ot=(0,rt.I$)("Upload",yt=>{const{fontSizeHeading3:qt,fontHeight:vn,lineWidth:Tt,controlHeightLG:It,calc:Dt}=yt,Bt=(0,pt.mergeToken)(yt,{uploadThumbnailSize:Dt(qt).mul(2).equal(),uploadProgressOffset:Dt(Dt(vn).div(2)).add(Tt).equal(),uploadPicCardSize:Dt(It).mul(2.55).equal()});return[tt(Bt),Ft(Bt),Ze(Bt),et(Bt),Yt(Bt),Fe(Bt),We(Bt),(0,Qe.Z)(Bt)]},at),ct={icon:function(qt,vn){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:vn}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:qt}}]}},name:"file",theme:"twotone"},lt=ct,mt=Ce(7657),Lt=function(qt,vn){return te.createElement(mt.Z,(0,ve.Z)({},qt,{ref:vn,icon:lt}))},ft=te.forwardRef(Lt),St=ft,nn=Ce(58617),on={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},yn=on,xn=function(qt,vn){return te.createElement(mt.Z,(0,ve.Z)({},qt,{ref:vn,icon:yn}))},an=te.forwardRef(xn),An=an,Jt={icon:function(qt,vn){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:qt}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:vn}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:vn}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:vn}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:qt}}]}},name:"picture",theme:"twotone"},Ut=Jt,rn=function(qt,vn){return te.createElement(mt.Z,(0,ve.Z)({},qt,{ref:vn,icon:Ut}))},_n=te.forwardRef(rn),Bn=_n,kt=Ce(77900),ln=Ce(2738),Cn=Ce(40192),Mn=Ce(86641),Qn=Ce(22703),mr=Ce(7939);function lr(yt){return Object.assign(Object.assign({},yt),{lastModified:yt.lastModified,lastModifiedDate:yt.lastModifiedDate,name:yt.name,size:yt.size,type:yt.type,uid:yt.uid,percent:0,originFileObj:yt})}function Cr(yt,qt){const vn=(0,Ye.Z)(qt),Tt=vn.findIndex(It=>{let{uid:Dt}=It;return Dt===yt.uid});return Tt===-1?vn.push(yt):vn[Tt]=yt,vn}function nr(yt,qt){const vn=yt.uid!==void 0?"uid":"name";return qt.filter(Tt=>Tt[vn]===yt[vn])[0]}function ur(yt,qt){const vn=yt.uid!==void 0?"uid":"name",Tt=qt.filter(It=>It[vn]!==yt[vn]);return Tt.length===qt.length?null:Tt}const Nn=function(){const qt=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Tt=qt[qt.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Tt)||[""])[0]},In=yt=>yt.indexOf("image/")===0,Wn=yt=>{if(yt.type&&!yt.thumbUrl)return In(yt.type);const qt=yt.thumbUrl||yt.url||"",vn=Nn(qt);return/^data:image\//.test(qt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(vn)?!0:!(/^data:/.test(qt)||vn)},Kn=200;function Ln(yt){return new Promise(qt=>{if(!yt.type||!In(yt.type)){qt("");return}const vn=document.createElement("canvas");vn.width=Kn,vn.height=Kn,vn.style.cssText=`position: fixed; left: 0; top: 0; width: ${Kn}px; height: ${Kn}px; z-index: 9999; display: none;`,document.body.appendChild(vn);const Tt=vn.getContext("2d"),It=new Image;if(It.onload=()=>{const{width:Dt,height:Bt}=It;let Zt=Kn,tn=Kn,Tn=0,Fn=0;Dt>Bt?(tn=Bt*(Kn/Dt),Fn=-(tn-Zt)/2):(Zt=Dt*(Kn/Bt),Tn=-(Zt-tn)/2),Tt.drawImage(It,Tn,Fn,Zt,tn);const dr=vn.toDataURL();document.body.removeChild(vn),window.URL.revokeObjectURL(It.src),qt(dr)},It.crossOrigin="anonymous",yt.type.startsWith("image/svg+xml")){const Dt=new FileReader;Dt.onload=()=>{Dt.result&&typeof Dt.result=="string"&&(It.src=Dt.result)},Dt.readAsDataURL(yt)}else if(yt.type.startsWith("image/gif")){const Dt=new FileReader;Dt.onload=()=>{Dt.result&&qt(Dt.result)},Dt.readAsDataURL(yt)}else It.src=window.URL.createObjectURL(yt)})}var $n=Ce(26227),ar=Ce(41464),dn=Ce(15277),Ie=Ce(89787),je=Ce(25399),ht=te.forwardRef((yt,qt)=>{let{prefixCls:vn,className:Tt,style:It,locale:Dt,listType:Bt,file:Zt,items:tn,progress:Tn,iconRender:Fn,actionIconRender:dr,itemRender:_r,isImgUrl:Kr,showPreviewIcon:Sr,showRemoveIcon:hr,showDownloadIcon:Mr,previewIcon:Br,removeIcon:Wr,downloadIcon:Jn,extra:ii,onPreview:Ur,onDownload:Gr,onClose:qr}=yt;var Li,wi;const{status:ui}=Zt,[Qr,Di]=te.useState(ui);te.useEffect(()=>{ui!=="removed"&&Di(ui)},[ui]);const[oi,di]=te.useState(!1);te.useEffect(()=>{const Ir=setTimeout(()=>{di(!0)},300);return()=>{clearTimeout(Ir)}},[]);const ci=Fn(Zt);let ki=te.createElement("div",{className:`${vn}-icon`},ci);if(Bt==="picture"||Bt==="picture-card"||Bt==="picture-circle")if(Qr==="uploading"||!Zt.thumbUrl&&!Zt.url){const Ir=Oe()(`${vn}-list-item-thumbnail`,{[`${vn}-list-item-file`]:Qr!=="uploading"});ki=te.createElement("div",{className:Ir},ci)}else{const Ir=Kr!=null&&Kr(Zt)?te.createElement("img",{src:Zt.thumbUrl||Zt.url,alt:Zt.name,className:`${vn}-list-item-image`,crossOrigin:Zt.crossOrigin}):ci,Hr=Oe()(`${vn}-list-item-thumbnail`,{[`${vn}-list-item-file`]:Kr&&!Kr(Zt)});ki=te.createElement("a",{className:Hr,onClick:ri=>Ur(Zt,ri),href:Zt.url||Zt.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Ir)}const Ki=Oe()(`${vn}-list-item`,`${vn}-list-item-${Qr}`),ua=typeof Zt.linkProps=="string"?JSON.parse(Zt.linkProps):Zt.linkProps,kn=(typeof hr=="function"?hr(Zt):hr)?dr((typeof Wr=="function"?Wr(Zt):Wr)||te.createElement($n.Z,null),()=>qr(Zt),vn,Dt.removeFile,!0):null,qi=(typeof Mr=="function"?Mr(Zt):Mr)&&Qr==="done"?dr((typeof Jn=="function"?Jn(Zt):Jn)||te.createElement(ar.Z,null),()=>Gr(Zt),vn,Dt.downloadFile):null,Qi=Bt!=="picture-card"&&Bt!=="picture-circle"&&te.createElement("span",{key:"download-delete",className:Oe()(`${vn}-list-item-actions`,{picture:Bt==="picture"})},qi,kn),ra=typeof ii=="function"?ii(Zt):ii,_i=ra&&te.createElement("span",{className:`${vn}-list-item-extra`},ra),Ti=Oe()(`${vn}-list-item-name`),Xr=Zt.url?te.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Ti,title:Zt.name},ua,{href:Zt.url,onClick:Ir=>Ur(Zt,Ir)}),Zt.name,_i):te.createElement("span",{key:"view",className:Ti,onClick:Ir=>Ur(Zt,Ir),title:Zt.name},Zt.name,_i),rr=(typeof Sr=="function"?Sr(Zt):Sr)&&(Zt.url||Zt.thumbUrl)?te.createElement("a",{href:Zt.url||Zt.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Ir=>Ur(Zt,Ir),title:Dt.previewFile},typeof Br=="function"?Br(Zt):Br||te.createElement(dn.Z,null)):null,Dr=(Bt==="picture-card"||Bt==="picture-circle")&&Qr!=="uploading"&&te.createElement("span",{className:`${vn}-list-item-actions`},rr,Qr==="done"&&qi,kn),{getPrefixCls:Fr}=te.useContext(Ne.E_),or=Fr(),ei=te.createElement("div",{className:Ki},ki,Xr,Qi,Dr,oi&&te.createElement(kt.default,{motionName:`${or}-fade`,visible:Qr==="uploading",motionDeadline:2e3},Ir=>{let{className:Hr}=Ir;const ri="percent"in Zt?te.createElement(Ie.Z,Object.assign({},Tn,{type:"line",percent:Zt.percent,"aria-label":Zt["aria-label"],"aria-labelledby":Zt["aria-labelledby"]})):null;return te.createElement("div",{className:Oe()(`${vn}-list-item-progress`,Hr)},ri)})),si=Zt.response&&typeof Zt.response=="string"?Zt.response:((Li=Zt.error)===null||Li===void 0?void 0:Li.statusText)||((wi=Zt.error)===null||wi===void 0?void 0:wi.message)||Dt.uploadError,wr=Qr==="error"?te.createElement(je.Z,{title:si,getPopupContainer:Ir=>Ir.parentNode},ei):ei;return te.createElement("div",{className:Oe()(`${vn}-list-item-container`,Tt),style:It,ref:qt},_r?_r(wr,Zt,tn,{download:Gr.bind(null,Zt),preview:Ur.bind(null,Zt),remove:qr.bind(null,Zt)}):wr)});const Et=(yt,qt)=>{const{listType:vn="text",previewFile:Tt=Ln,onPreview:It,onDownload:Dt,onRemove:Bt,locale:Zt,iconRender:tn,isImageUrl:Tn=Wn,prefixCls:Fn,items:dr=[],showPreviewIcon:_r=!0,showRemoveIcon:Kr=!0,showDownloadIcon:Sr=!1,removeIcon:hr,previewIcon:Mr,downloadIcon:Br,extra:Wr,progress:Jn={size:[-1,2],showInfo:!1},appendAction:ii,appendActionVisible:Ur=!0,itemRender:Gr,disabled:qr}=yt,Li=(0,Cn.Z)(),[wi,ui]=te.useState(!1),Qr=["picture-card","picture-circle"].includes(vn);te.useEffect(()=>{vn.startsWith("picture")&&(dr||[]).forEach(_i=>{!(_i.originFileObj instanceof File||_i.originFileObj instanceof Blob)||_i.thumbUrl!==void 0||(_i.thumbUrl="",Tt==null||Tt(_i.originFileObj).then(Ti=>{_i.thumbUrl=Ti||"",Li()}))})},[vn,dr,Tt]),te.useEffect(()=>{ui(!0)},[]);const Di=(_i,Ti)=>{if(It)return Ti==null||Ti.preventDefault(),It(_i)},oi=_i=>{typeof Dt=="function"?Dt(_i):_i.url&&window.open(_i.url)},di=_i=>{Bt==null||Bt(_i)},ci=_i=>{if(tn)return tn(_i,vn);const Ti=_i.status==="uploading";if(vn.startsWith("picture")){const Xr=vn==="picture"?te.createElement(nn.Z,null):Zt.uploading,rr=Tn!=null&&Tn(_i)?te.createElement(Bn,null):te.createElement(St,null);return Ti?Xr:rr}return Ti?te.createElement(nn.Z,null):te.createElement(An,null)},ki=(_i,Ti,Xr,rr,Dr)=>{const Fr={type:"text",size:"small",title:rr,onClick:or=>{var ei,si;Ti(),te.isValidElement(_i)&&((si=(ei=_i.props).onClick)===null||si===void 0||si.call(ei,or))},className:`${Xr}-list-item-action`};return Dr&&(Fr.disabled=qr),te.isValidElement(_i)?te.createElement(mr.ZP,Object.assign({},Fr,{icon:(0,Qn.Tm)(_i,Object.assign(Object.assign({},_i.props),{onClick:()=>{}}))})):te.createElement(mr.ZP,Object.assign({},Fr),te.createElement("span",null,_i))};te.useImperativeHandle(qt,()=>({handlePreview:Di,handleDownload:oi}));const{getPrefixCls:Ki}=te.useContext(Ne.E_),ua=Ki("upload",Fn),kn=Ki(),qi=Oe()(`${ua}-list`,`${ua}-list-${vn}`),Qi=te.useMemo(()=>(0,ln.Z)((0,Mn.Z)(kn),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[kn]),ra=Object.assign(Object.assign({},Qr?{}:Qi),{motionDeadline:2e3,motionName:`${ua}-${Qr?"animate-inline":"animate"}`,keys:(0,Ye.Z)(dr.map(_i=>({key:_i.uid,file:_i}))),motionAppear:wi});return te.createElement("div",{className:qi},te.createElement(kt.CSSMotionList,Object.assign({},ra,{component:!1}),_i=>{let{key:Ti,file:Xr,className:rr,style:Dr}=_i;return te.createElement(ht,{key:Ti,locale:Zt,prefixCls:ua,className:rr,style:Dr,file:Xr,items:dr,progress:Jn,listType:vn,isImgUrl:Tn,showPreviewIcon:_r,showRemoveIcon:Kr,showDownloadIcon:Sr,removeIcon:hr,previewIcon:Mr,downloadIcon:Br,extra:Wr,iconRender:ci,actionIconRender:ki,itemRender:Gr,onPreview:Di,onDownload:oi,onClose:di})}),ii&&te.createElement(kt.default,Object.assign({},ra,{visible:Ur,forceRender:!0}),_i=>{let{className:Ti,style:Xr}=_i;return(0,Qn.Tm)(ii,rr=>({className:Oe()(rr.className,Ti),style:Object.assign(Object.assign(Object.assign({},Xr),{pointerEvents:Ti?"none":void 0}),rr.style)}))}))};var fn=te.forwardRef(Et),sn=function(yt,qt,vn,Tt){function It(Dt){return Dt instanceof vn?Dt:new vn(function(Bt){Bt(Dt)})}return new(vn||(vn=Promise))(function(Dt,Bt){function Zt(Fn){try{Tn(Tt.next(Fn))}catch(dr){Bt(dr)}}function tn(Fn){try{Tn(Tt.throw(Fn))}catch(dr){Bt(dr)}}function Tn(Fn){Fn.done?Dt(Fn.value):It(Fn.value).then(Zt,tn)}Tn((Tt=Tt.apply(yt,qt||[])).next())})};const mn=`__LIST_IGNORE_${Date.now()}__`,Zn=(yt,qt)=>{const{fileList:vn,defaultFileList:Tt,onRemove:It,showUploadList:Dt=!0,listType:Bt="text",onPreview:Zt,onDownload:tn,onChange:Tn,onDrop:Fn,previewFile:dr,disabled:_r,locale:Kr,iconRender:Sr,isImageUrl:hr,progress:Mr,prefixCls:Br,className:Wr,type:Jn="select",children:ii,style:Ur,itemRender:Gr,maxCount:qr,data:Li={},multiple:wi=!1,hasControlInside:ui=!0,action:Qr="",accept:Di="",supportServerRender:oi=!0,rootClassName:di}=yt,ci=te.useContext(Re.Z),ki=_r!=null?_r:ci,[Ki,ua]=(0,Ke.Z)(Tt||[],{value:vn,postState:vi=>vi!=null?vi:[]}),[kn,qi]=te.useState("drop"),Qi=te.useRef(null),ra=te.useRef(null);te.useMemo(()=>{const vi=Date.now();(vn||[]).forEach((Ni,Ii)=>{!Ni.uid&&!Object.isFrozen(Ni)&&(Ni.uid=`__AUTO__${vi}_${Ii}__`)})},[vn]);const _i=(vi,Ni,Ii)=>{let Mi=(0,Ye.Z)(Ni),fa=!1;qr===1?Mi=Mi.slice(-1):qr&&(fa=Mi.length>qr,Mi=Mi.slice(0,qr)),(0,Me.flushSync)(()=>{ua(Mi)});const ca={file:vi,fileList:Mi};Ii&&(ca.event=Ii),(!fa||vi.status==="removed"||Mi.some(la=>la.uid===vi.uid))&&(0,Me.flushSync)(()=>{Tn==null||Tn(ca)})},Ti=(vi,Ni)=>sn(void 0,void 0,void 0,function*(){const{beforeUpload:Ii,transformFile:Mi}=yt;let fa=vi;if(Ii){const ca=yield Ii(vi,Ni);if(ca===!1)return!1;if(delete vi[mn],ca===mn)return Object.defineProperty(vi,mn,{value:!0,configurable:!0}),!1;typeof ca=="object"&&ca&&(fa=ca)}return Mi&&(fa=yield Mi(fa)),fa}),Xr=vi=>{const Ni=vi.filter(fa=>!fa.file[mn]);if(!Ni.length)return;const Ii=Ni.map(fa=>lr(fa.file));let Mi=(0,Ye.Z)(Ki);Ii.forEach(fa=>{Mi=Cr(fa,Mi)}),Ii.forEach((fa,ca)=>{let la=fa;if(Ni[ca].parsedFile)fa.status="uploading";else{const{originFileObj:zi}=fa;let Da;try{Da=new File([zi],zi.name,{type:zi.type})}catch(Ca){Da=new Blob([zi],{type:zi.type}),Da.name=zi.name,Da.lastModifiedDate=new Date,Da.lastModified=new Date().getTime()}Da.uid=fa.uid,la=Da}_i(la,Mi)})},rr=(vi,Ni,Ii)=>{try{typeof vi=="string"&&(vi=JSON.parse(vi))}catch(ca){}if(!nr(Ni,Ki))return;const Mi=lr(Ni);Mi.status="done",Mi.percent=100,Mi.response=vi,Mi.xhr=Ii;const fa=Cr(Mi,Ki);_i(Mi,fa)},Dr=(vi,Ni)=>{if(!nr(Ni,Ki))return;const Ii=lr(Ni);Ii.status="uploading",Ii.percent=vi.percent;const Mi=Cr(Ii,Ki);_i(Ii,Mi,vi)},Fr=(vi,Ni,Ii)=>{if(!nr(Ii,Ki))return;const Mi=lr(Ii);Mi.error=vi,Mi.response=Ni,Mi.status="error";const fa=Cr(Mi,Ki);_i(Mi,fa)},or=vi=>{let Ni;Promise.resolve(typeof It=="function"?It(vi):It).then(Ii=>{var Mi;if(Ii===!1)return;const fa=ur(vi,Ki);fa&&(Ni=Object.assign(Object.assign({},vi),{status:"removed"}),Ki==null||Ki.forEach(ca=>{const la=Ni.uid!==void 0?"uid":"name";ca[la]===Ni[la]&&!Object.isFrozen(ca)&&(ca.status="removed")}),(Mi=Qi.current)===null||Mi===void 0||Mi.abort(Ni),_i(Ni,fa))})},ei=vi=>{qi(vi.type),vi.type==="drop"&&(Fn==null||Fn(vi))};te.useImperativeHandle(qt,()=>({onBatchStart:Xr,onSuccess:rr,onProgress:Dr,onError:Fr,fileList:Ki,upload:Qi.current,nativeElement:ra.current}));const{getPrefixCls:si,direction:wr,upload:Ir}=te.useContext(Ne.E_),Hr=si("upload",Br),ri=Object.assign(Object.assign({onBatchStart:Xr,onError:Fr,onProgress:Dr,onSuccess:rr},yt),{data:Li,multiple:wi,action:Qr,accept:Di,supportServerRender:oi,prefixCls:Hr,disabled:ki,beforeUpload:Ti,onChange:void 0,hasControlInside:ui});delete ri.className,delete ri.style,(!ii||ki)&&delete ri.id;const un=`${Hr}-wrapper`,[Vn,Sn,Rr]=ot(Hr,un),[ti]=(0,$e.Z)("Upload",nt.Z.Upload),{showRemoveIcon:gn,showPreviewIcon:mi,showDownloadIcon:Nr,removeIcon:Ar,previewIcon:pi,downloadIcon:Gi,extra:gi}=typeof Dt=="boolean"?{}:Dt,Wi=typeof gn=="undefined"?!ki:gn,Jr=(vi,Ni)=>Dt?te.createElement(fn,{prefixCls:Hr,listType:Bt,items:Ki,previewFile:dr,onPreview:Zt,onDownload:tn,onRemove:or,showRemoveIcon:Wi,showPreviewIcon:mi,showDownloadIcon:Nr,removeIcon:Ar,previewIcon:pi,downloadIcon:Gi,iconRender:Sr,extra:gi,locale:Object.assign(Object.assign({},ti),Kr),isImageUrl:hr,progress:Mr,appendAction:vi,appendActionVisible:Ni,itemRender:Gr,disabled:ki}):vi,li=Oe()(un,Wr,di,Sn,Rr,Ir==null?void 0:Ir.className,{[`${Hr}-rtl`]:wr==="rtl",[`${Hr}-picture-card-wrapper`]:Bt==="picture-card",[`${Hr}-picture-circle-wrapper`]:Bt==="picture-circle"}),Zr=Object.assign(Object.assign({},Ir==null?void 0:Ir.style),Ur);if(Jn==="drag"){const vi=Oe()(Sn,Hr,`${Hr}-drag`,{[`${Hr}-drag-uploading`]:Ki.some(Ni=>Ni.status==="uploading"),[`${Hr}-drag-hover`]:kn==="dragover",[`${Hr}-disabled`]:ki,[`${Hr}-rtl`]:wr==="rtl"});return Vn(te.createElement("span",{className:li,ref:ra},te.createElement("div",{className:vi,style:Zr,onDrop:ei,onDragOver:ei,onDragLeave:ei},te.createElement(ze,Object.assign({},ri,{ref:Qi,className:`${Hr}-btn`}),te.createElement("div",{className:`${Hr}-drag-container`},ii))),Jr()))}const Vi=Oe()(Hr,`${Hr}-select`,{[`${Hr}-disabled`]:ki,[`${Hr}-hidden`]:!ii}),sa=te.createElement("div",{className:Vi},te.createElement(ze,Object.assign({},ri,{ref:Qi})));return Vn(Bt==="picture-card"||Bt==="picture-circle"?te.createElement("span",{className:li,ref:ra},Jr(sa,!!ii)):te.createElement("span",{className:li,ref:ra},sa,Jr()))};var Vt=te.forwardRef(Zn),Gt=function(yt,qt){var vn={};for(var Tt in yt)Object.prototype.hasOwnProperty.call(yt,Tt)&&qt.indexOf(Tt)<0&&(vn[Tt]=yt[Tt]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,Tt=Object.getOwnPropertySymbols(yt);It<Tt.length;It++)qt.indexOf(Tt[It])<0&&Object.prototype.propertyIsEnumerable.call(yt,Tt[It])&&(vn[Tt[It]]=yt[Tt[It]]);return vn},jt=te.forwardRef((yt,qt)=>{var{style:vn,height:Tt,hasControlInside:It=!1}=yt,Dt=Gt(yt,["style","height","hasControlInside"]);return te.createElement(Vt,Object.assign({ref:qt,hasControlInside:It},Dt,{type:"drag",style:Object.assign(Object.assign({},vn),{height:Tt})}))});const Mt=Vt;Mt.Dragger=jt,Mt.LIST_IGNORE=mn;var Kt=Mt},99498:function(Yn,en,Ce){(function(te){te(Ce(89780))})(function(te){te.defineOption("placeholder","",function(fe,he,le){var ae=le&&le!=te.Init;if(he&&!ae)fe.on("blur",Oe),fe.on("change",ve),fe.on("swapDoc",ve),te.on(fe.getInputField(),"compositionupdate",fe.state.placeholderCompose=function(){pe(fe)}),ve(fe);else if(!he&&ae){fe.off("blur",Oe),fe.off("change",ve),fe.off("swapDoc",ve),te.off(fe.getInputField(),"compositionupdate",fe.state.placeholderCompose),Ye(fe);var ie=fe.getWrapperElement();ie.className=ie.className.replace(" CodeMirror-empty","")}he&&!fe.hasFocus()&&Oe(fe)});function Ye(fe){fe.state.placeholder&&(fe.state.placeholder.parentNode.removeChild(fe.state.placeholder),fe.state.placeholder=null)}function Me(fe){Ye(fe);var he=fe.state.placeholder=document.createElement("pre");he.style.cssText="height: 0; overflow: visible",he.style.direction=fe.getOption("direction"),he.className="CodeMirror-placeholder CodeMirror-line-like";var le=fe.getOption("placeholder");typeof le=="string"&&(le=document.createTextNode(le)),he.appendChild(le),fe.display.lineSpace.insertBefore(he,fe.display.lineSpace.firstChild)}function pe(fe){setTimeout(function(){var he=!1,le=fe.getInputField();le.nodeName=="TEXTAREA"?he=!le.value:fe.lineCount()==1&&(he=!/[^\u200b]/.test(le.querySelector(".CodeMirror-line").textContent)),he?Me(fe):Ye(fe)},20)}function Oe(fe){ue(fe)&&Me(fe)}function ve(fe){var he=fe.getWrapperElement(),le=ue(fe);he.className=he.className.replace(" CodeMirror-empty","")+(le?" CodeMirror-empty":""),le?Me(fe):Ye(fe)}function ue(fe){return fe.lineCount()===1&&fe.getLine(0)===""}})},25717:function(Yn,en,Ce){(function(te){te(Ce(89780))})(function(te){var Ye={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Me=te.Pos;te.defineOption("autoCloseBrackets",!1,function(b,z,ne){ne&&ne!=te.Init&&(b.removeKeyMap(Oe),b.state.closeBrackets=null),z&&(ve(pe(z,"pairs")),b.state.closeBrackets=z,b.addKeyMap(Oe))});function pe(b,z){return z=="pairs"&&typeof b=="string"?b:typeof b=="object"&&b[z]!=null?b[z]:Ye[z]}var Oe={Backspace:he,Enter:le};function ve(b){for(var z=0;z<b.length;z++){var ne=b.charAt(z),oe="'"+ne+"'";Oe[oe]||(Oe[oe]=ue(ne))}}ve(Ye.pairs+"`");function ue(b){return function(z){return ie(z,b)}}function fe(b){var z=b.state.closeBrackets;if(!z||z.override)return z;var ne=b.getModeAt(b.getCursor());return ne.closeBrackets||z}function he(b){var z=fe(b);if(!z||b.getOption("disableInput"))return te.Pass;for(var ne=pe(z,"pairs"),oe=b.listSelections(),se=0;se<oe.length;se++){if(!oe[se].empty())return te.Pass;var de=me(b,oe[se].head);if(!de||ne.indexOf(de)%2!=0)return te.Pass}for(var se=oe.length-1;se>=0;se--){var a=oe[se].head;b.replaceRange("",Me(a.line,a.ch-1),Me(a.line,a.ch+1),"+delete")}}function le(b){var z=fe(b),ne=z&&pe(z,"explode");if(!ne||b.getOption("disableInput"))return te.Pass;for(var oe=b.listSelections(),se=0;se<oe.length;se++){if(!oe[se].empty())return te.Pass;var de=me(b,oe[se].head);if(!de||ne.indexOf(de)%2!=0)return te.Pass}b.operation(function(){var a=b.lineSeparator()||`
|
|
|
`;b.replaceSelection(a+a,null),b.execCommand("goCharLeft"),oe=b.listSelections();for(var x=0;x<oe.length;x++){var re=oe[x].head.line;b.indentLine(re,null,!0),b.indentLine(re+1,null,!0)}})}function ae(b){var z=te.cmpPos(b.anchor,b.head)>0;return{anchor:new Me(b.anchor.line,b.anchor.ch+(z?-1:1)),head:new Me(b.head.line,b.head.ch+(z?1:-1))}}function ie(b,z){var ne=fe(b);if(!ne||b.getOption("disableInput"))return te.Pass;var oe=pe(ne,"pairs"),se=oe.indexOf(z);if(se==-1)return te.Pass;for(var de=pe(ne,"closeBefore"),a=pe(ne,"triples"),x=oe.charAt(se+1)==z,re=b.listSelections(),ce=se%2==0,ge,_e=0;_e<re.length;_e++){var ye=re[_e],be=ye.head,Se,Be=b.getRange(be,Me(be.line,be.ch+1));if(ce&&!ye.empty())Se="surround";else if((x||!ce)&&Be==z)x&&E(b,be)?Se="both":a.indexOf(z)>=0&&b.getRange(be,Me(be.line,be.ch+3))==z+z+z?Se="skipThree":Se="skip";else if(x&&be.ch>1&&a.indexOf(z)>=0&&b.getRange(Me(be.line,be.ch-2),be)==z+z){if(be.ch>2&&/\bstring/.test(b.getTokenTypeAt(Me(be.line,be.ch-2))))return te.Pass;Se="addFour"}else if(x){var Ae=be.ch==0?" ":b.getRange(Me(be.line,be.ch-1),be);if(!te.isWordChar(Be)&&Ae!=z&&!te.isWordChar(Ae))Se="both";else return te.Pass}else if(ce&&(Be.length===0||/\s/.test(Be)||de.indexOf(Be)>-1))Se="both";else return te.Pass;if(!ge)ge=Se;else if(ge!=Se)return te.Pass}var we=se%2?oe.charAt(se-1):z,Ue=se%2?z:oe.charAt(se+1);b.operation(function(){if(ge=="skip")b.execCommand("goCharRight");else if(ge=="skipThree")for(var Pe=0;Pe<3;Pe++)b.execCommand("goCharRight");else if(ge=="surround"){for(var ze=b.getSelections(),Pe=0;Pe<ze.length;Pe++)ze[Pe]=we+ze[Pe]+Ue;b.replaceSelections(ze,"around"),ze=b.listSelections().slice();for(var Pe=0;Pe<ze.length;Pe++)ze[Pe]=ae(ze[Pe]);b.setSelections(ze)}else ge=="both"?(b.replaceSelection(we+Ue,null),b.triggerElectric(we+Ue),b.execCommand("goCharLeft")):ge=="addFour"&&(b.replaceSelection(we+we+we+we,"before"),b.execCommand("goCharRight"))})}function me(b,z){var ne=b.getRange(Me(z.line,z.ch-1),Me(z.line,z.ch+1));return ne.length==2?ne:null}function E(b,z){var ne=b.getTokenAt(Me(z.line,z.ch+1));return/\bstring/.test(ne.type)&&ne.start==z.ch&&(z.ch==0||!/\bstring/.test(b.getTokenTypeAt(z)))}})},6313:function(Yn,en,Ce){(function(te){te(Ce(89780),Ce(32855))})(function(te){te.defineOption("autoCloseTags",!1,function(he,le,ae){if(ae!=te.Init&&ae&&he.removeKeyMap("autoCloseTags"),!!le){var ie={name:"autoCloseTags"};(typeof le!="object"||le.whenClosing!==!1)&&(ie["'/'"]=function(me){return ve(me)}),(typeof le!="object"||le.whenOpening!==!1)&&(ie["'>'"]=function(me){return pe(me)}),he.addKeyMap(ie)}});var Ye=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Me=["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 pe(he){if(he.getOption("disableInput"))return te.Pass;for(var le=he.listSelections(),ae=[],ie=he.getOption("autoCloseTags"),me=0;me<le.length;me++){if(!le[me].empty())return te.Pass;var E=le[me].head,b=he.getTokenAt(E),z=te.innerMode(he.getMode(),b.state),ne=z.state,oe=z.mode.xmlCurrentTag&&z.mode.xmlCurrentTag(ne),se=oe&&oe.name;if(!se)return te.Pass;var de=z.mode.configuration=="html",a=typeof ie=="object"&&ie.dontCloseTags||de&&Ye,x=typeof ie=="object"&&ie.indentTags||de&&Me;b.end>E.ch&&(se=se.slice(0,se.length-b.end+E.ch));var re=se.toLowerCase();if(!se||b.type=="string"&&(b.end!=E.ch||!/[\"\']/.test(b.string.charAt(b.string.length-1))||b.string.length==1)||b.type=="tag"&&oe.close||b.string.indexOf("/")==E.ch-b.start-1||a&&ue(a,re)>-1||fe(he,z.mode.xmlCurrentContext&&z.mode.xmlCurrentContext(ne)||[],se,E,!0))return te.Pass;var ce=typeof ie=="object"&&ie.emptyTags;if(ce&&ue(ce,se)>-1){ae[me]={text:"/>",newPos:te.Pos(E.line,E.ch+2)};continue}var ge=x&&ue(x,re)>-1;ae[me]={indent:ge,text:">"+(ge?`
|
|
|
|
|
|
`:"")+"</"+se+">",newPos:ge?te.Pos(E.line+1,0):te.Pos(E.line,E.ch+1)}}for(var _e=typeof ie=="object"&&ie.dontIndentOnAutoClose,me=le.length-1;me>=0;me--){var ye=ae[me];he.replaceRange(ye.text,le[me].head,le[me].anchor,"+insert");var be=he.listSelections().slice(0);be[me]={head:ye.newPos,anchor:ye.newPos},he.setSelections(be),!_e&&ye.indent&&(he.indentLine(ye.newPos.line,null,!0),he.indentLine(ye.newPos.line+1,null,!0))}}function Oe(he,le){for(var ae=he.listSelections(),ie=[],me=le?"/":"</",E=he.getOption("autoCloseTags"),b=typeof E=="object"&&E.dontIndentOnSlash,z=0;z<ae.length;z++){if(!ae[z].empty())return te.Pass;var ne=ae[z].head,oe=he.getTokenAt(ne),se=te.innerMode(he.getMode(),oe.state),de=se.state;if(le&&(oe.type=="string"||oe.string.charAt(0)!="<"||oe.start!=ne.ch-1))return te.Pass;var a,x=se.mode.name!="xml"&&he.getMode().name=="htmlmixed";if(x&&se.mode.name=="javascript")a=me+"script";else if(x&&se.mode.name=="css")a=me+"style";else{var re=se.mode.xmlCurrentContext&&se.mode.xmlCurrentContext(de);if(!re||re.length&&fe(he,re,re[re.length-1],ne))return te.Pass;a=me+re[re.length-1]}he.getLine(ne.line).charAt(oe.end)!=">"&&(a+=">"),ie[z]=a}if(he.replaceSelections(ie),ae=he.listSelections(),!b)for(var z=0;z<ae.length;z++)(z==ae.length-1||ae[z].head.line<ae[z+1].head.line)&&he.indentLine(ae[z].head.line)}function ve(he){return he.getOption("disableInput")?te.Pass:Oe(he,!0)}te.commands.closeTag=function(he){return Oe(he)};function ue(he,le){if(he.indexOf)return he.indexOf(le);for(var ae=0,ie=he.length;ae<ie;++ae)if(he[ae]==le)return ae;return-1}function fe(he,le,ae,ie,me){if(!te.scanForClosingTag)return!1;var E=Math.min(he.lastLine()+1,ie.line+500),b=te.scanForClosingTag(he,ie,null,E);if(!b||b.tag!=ae)return!1;for(var z=me?1:0,ne=le.length-1;ne>=0&&le[ne]==ae;ne--)++z;ie=b.to;for(var ne=1;ne<z;ne++){var oe=te.scanForClosingTag(he,ie,null,E);if(!oe||oe.tag!=ae)return!1;ie=oe.to}return!0}})},32855:function(Yn,en,Ce){(function(te){te(Ce(89780))})(function(te){"use strict";var Ye=te.Pos;function Me(ne,oe){return ne.line-oe.line||ne.ch-oe.ch}var pe="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",Oe=pe+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ve=new RegExp("<(/?)(["+pe+"]["+Oe+"]*)","g");function ue(ne,oe,se,de){this.line=oe,this.ch=se,this.cm=ne,this.text=ne.getLine(oe),this.min=de?Math.max(de.from,ne.firstLine()):ne.firstLine(),this.max=de?Math.min(de.to-1,ne.lastLine()):ne.lastLine()}function fe(ne,oe){var se=ne.cm.getTokenTypeAt(Ye(ne.line,oe));return se&&/\btag\b/.test(se)}function he(ne){if(!(ne.line>=ne.max))return ne.ch=0,ne.text=ne.cm.getLine(++ne.line),!0}function le(ne){if(!(ne.line<=ne.min))return ne.text=ne.cm.getLine(--ne.line),ne.ch=ne.text.length,!0}function ae(ne){for(;;){var oe=ne.text.indexOf(">",ne.ch);if(oe==-1){if(he(ne))continue;return}if(!fe(ne,oe+1)){ne.ch=oe+1;continue}var se=ne.text.lastIndexOf("/",oe),de=se>-1&&!/\S/.test(ne.text.slice(se+1,oe));return ne.ch=oe+1,de?"selfClose":"regular"}}function ie(ne){for(;;){var oe=ne.ch?ne.text.lastIndexOf("<",ne.ch-1):-1;if(oe==-1){if(le(ne))continue;return}if(!fe(ne,oe+1)){ne.ch=oe;continue}ve.lastIndex=oe,ne.ch=oe;var se=ve.exec(ne.text);if(se&&se.index==oe)return se}}function me(ne){for(;;){ve.lastIndex=ne.ch;var oe=ve.exec(ne.text);if(!oe){if(he(ne))continue;return}if(!fe(ne,oe.index+1)){ne.ch=oe.index+1;continue}return ne.ch=oe.index+oe[0].length,oe}}function E(ne){for(;;){var oe=ne.ch?ne.text.lastIndexOf(">",ne.ch-1):-1;if(oe==-1){if(le(ne))continue;return}if(!fe(ne,oe+1)){ne.ch=oe;continue}var se=ne.text.lastIndexOf("/",oe),de=se>-1&&!/\S/.test(ne.text.slice(se+1,oe));return ne.ch=oe+1,de?"selfClose":"regular"}}function b(ne,oe){for(var se=[];;){var de=me(ne),a,x=ne.line,re=ne.ch-(de?de[0].length:0);if(!de||!(a=ae(ne)))return;if(a!="selfClose")if(de[1]){for(var ce=se.length-1;ce>=0;--ce)if(se[ce]==de[2]){se.length=ce;break}if(ce<0&&(!oe||oe==de[2]))return{tag:de[2],from:Ye(x,re),to:Ye(ne.line,ne.ch)}}else se.push(de[2])}}function z(ne,oe){for(var se=[];;){var de=E(ne);if(!de)return;if(de=="selfClose"){ie(ne);continue}var a=ne.line,x=ne.ch,re=ie(ne);if(!re)return;if(re[1])se.push(re[2]);else{for(var ce=se.length-1;ce>=0;--ce)if(se[ce]==re[2]){se.length=ce;break}if(ce<0&&(!oe||oe==re[2]))return{tag:re[2],from:Ye(ne.line,ne.ch),to:Ye(a,x)}}}}te.registerHelper("fold","xml",function(ne,oe){for(var se=new ue(ne,oe.line,0);;){var de=me(se);if(!de||se.line!=oe.line)return;var a=ae(se);if(!a)return;if(!de[1]&&a!="selfClose"){var x=Ye(se.line,se.ch),re=b(se,de[2]);return re&&Me(re.from,x)>0?{from:x,to:re.from}:null}}}),te.findMatchingTag=function(ne,oe,se){var de=new ue(ne,oe.line,oe.ch,se);if(!(de.text.indexOf(">")==-1&&de.text.indexOf("<")==-1)){var a=ae(de),x=a&&Ye(de.line,de.ch),re=a&&ie(de);if(!(!a||!re||Me(de,oe)>0)){var ce={from:Ye(de.line,de.ch),to:x,tag:re[2]};return a=="selfClose"?{open:ce,close:null,at:"open"}:re[1]?{open:z(de,re[2]),close:ce,at:"close"}:(de=new ue(ne,x.line,x.ch,se),{open:ce,close:b(de,re[2]),at:"open"})}}},te.findEnclosingTag=function(ne,oe,se,de){for(var a=new ue(ne,oe.line,oe.ch,se);;){var x=z(a,de);if(!x)break;var re=new ue(ne,oe.line,oe.ch,se),ce=b(re,x.tag);if(ce)return{open:x,close:ce}}},te.scanForClosingTag=function(ne,oe,se,de){var a=new ue(ne,oe.line,oe.ch,de?{from:0,to:de}:null);return b(a,se)}})},89780:function(Yn){(function(en,Ce){Yn.exports=Ce()})(this,function(){"use strict";var en=navigator.userAgent,Ce=navigator.platform,te=/gecko\/\d/i.test(en),Ye=/MSIE \d/.test(en),Me=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(en),pe=/Edge\/(\d+)/.exec(en),Oe=Ye||Me||pe,ve=Oe&&(Ye?document.documentMode||6:+(pe||Me)[1]),ue=!pe&&/WebKit\//.test(en),fe=ue&&/Qt\/\d+\.\d+/.test(en),he=!pe&&/Chrome\//.test(en),le=/Opera\//.test(en),ae=/Apple Computer/.test(navigator.vendor),ie=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(en),me=/PhantomJS/.test(en),E=!pe&&/AppleWebKit/.test(en)&&/Mobile\/\w+/.test(en),b=/Android/.test(en),z=E||b||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(en),ne=E||/Mac/.test(Ce),oe=/\bCrOS\b/.test(en),se=/win/i.test(Ce),de=le&&en.match(/Version\/(\d*\.\d*)/);de&&(de=Number(de[1])),de&&de>=15&&(le=!1,ue=!0);var a=ne&&(fe||le&&(de==null||de<12.11)),x=te||Oe&&ve>=9;function re(y){return new RegExp("(^|\\s)"+y+"(?:$|\\s)\\s*")}var ce=function(y,ee){var Ee=y.className,xe=re(ee).exec(Ee);if(xe){var Te=Ee.slice(xe.index+xe[0].length);y.className=Ee.slice(0,xe.index)+(Te?xe[1]+Te:"")}};function ge(y){for(var ee=y.childNodes.length;ee>0;--ee)y.removeChild(y.firstChild);return y}function _e(y,ee){return ge(y).appendChild(ee)}function ye(y,ee,Ee,xe){var Te=document.createElement(y);if(Ee&&(Te.className=Ee),xe&&(Te.style.cssText=xe),typeof ee=="string")Te.appendChild(document.createTextNode(ee));else if(ee)for(var Ge=0;Ge<ee.length;++Ge)Te.appendChild(ee[Ge]);return Te}function be(y,ee,Ee,xe){var Te=ye(y,ee,Ee,xe);return Te.setAttribute("role","presentation"),Te}var Se;document.createRange?Se=function(y,ee,Ee,xe){var Te=document.createRange();return Te.setEnd(xe||y,Ee),Te.setStart(y,ee),Te}:Se=function(y,ee,Ee){var xe=document.body.createTextRange();try{xe.moveToElementText(y.parentNode)}catch(Te){return xe}return xe.collapse(!0),xe.moveEnd("character",Ee),xe.moveStart("character",ee),xe};function Be(y,ee){if(ee.nodeType==3&&(ee=ee.parentNode),y.contains)return y.contains(ee);do if(ee.nodeType==11&&(ee=ee.host),ee==y)return!0;while(ee=ee.parentNode)}function Ae(){var y;try{y=document.activeElement}catch(ee){y=document.body||null}for(;y&&y.shadowRoot&&y.shadowRoot.activeElement;)y=y.shadowRoot.activeElement;return y}function we(y,ee){var Ee=y.className;re(ee).test(Ee)||(y.className+=(Ee?" ":"")+ee)}function Ue(y,ee){for(var Ee=y.split(" "),xe=0;xe<Ee.length;xe++)Ee[xe]&&!re(Ee[xe]).test(ee)&&(ee+=" "+Ee[xe]);return ee}var Pe=function(y){y.select()};E?Pe=function(y){y.selectionStart=0,y.selectionEnd=y.value.length}:Oe&&(Pe=function(y){try{y.select()}catch(ee){}});function ze(y){var ee=Array.prototype.slice.call(arguments,1);return function(){return y.apply(null,ee)}}function Ke(y,ee,Ee){ee||(ee={});for(var xe in y)y.hasOwnProperty(xe)&&(Ee!==!1||!ee.hasOwnProperty(xe))&&(ee[xe]=y[xe]);return ee}function Ne(y,ee,Ee,xe,Te){ee==null&&(ee=y.search(/[^\s\u00a0]/),ee==-1&&(ee=y.length));for(var Ge=xe||0,st=Te||0;;){var wt=y.indexOf(" ",Ge);if(wt<0||wt>=ee)return st+(ee-Ge);st+=wt-Ge,st+=Ee-st%Ee,Ge=wt+1}}var Re=function(){this.id=null,this.f=null,this.time=0,this.handler=ze(this.onTimeout,this)};Re.prototype.onTimeout=function(y){y.id=0,y.time<=+new Date?y.f():setTimeout(y.handler,y.time-+new Date)},Re.prototype.set=function(y,ee){this.f=ee;var Ee=+new Date+y;(!this.id||Ee<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,y),this.time=Ee)};function $e(y,ee){for(var Ee=0;Ee<y.length;++Ee)if(y[Ee]==ee)return Ee;return-1}var nt=50,ut={toString:function(){return"CodeMirror.Pass"}},Qe={scroll:!1},rt={origin:"*mouse"},pt={origin:"+move"};function At(y,ee,Ee){for(var xe=0,Te=0;;){var Ge=y.indexOf(" ",xe);Ge==-1&&(Ge=y.length);var st=Ge-xe;if(Ge==y.length||Te+st>=ee)return xe+Math.min(st,ee-Te);if(Te+=Ge-xe,Te+=Ee-Te%Ee,xe=Ge+1,Te>=ee)return xe}}var gt=[""];function Ft(y){for(;gt.length<=y;)gt.push(Ct(gt)+" ");return gt[y]}function Ct(y){return y[y.length-1]}function Yt(y,ee){for(var Ee=[],xe=0;xe<y.length;xe++)Ee[xe]=ee(y[xe],xe);return Ee}function zt(y,ee,Ee){for(var xe=0,Te=Ee(ee);xe<y.length&&Ee(y[xe])<=Te;)xe++;y.splice(xe,0,ee)}function Xe(){}function Fe(y,ee){var Ee;return Object.create?Ee=Object.create(y):(Xe.prototype=y,Ee=new Xe),ee&&Ke(ee,Ee),Ee}var Le=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ze(y){return/\w/.test(y)||y>"\x80"&&(y.toUpperCase()!=y.toLowerCase()||Le.test(y))}function et(y,ee){return ee?ee.source.indexOf("\\w")>-1&&Ze(y)?!0:ee.test(y):Ze(y)}function He(y){for(var ee in y)if(y.hasOwnProperty(ee)&&y[ee])return!1;return!0}var We=/[\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 tt(y){return y.charCodeAt(0)>=768&&We.test(y)}function at(y,ee,Ee){for(;(Ee<0?ee>0:ee<y.length)&&tt(y.charAt(ee));)ee+=Ee;return ee}function ot(y,ee,Ee){for(var xe=ee>Ee?-1:1;;){if(ee==Ee)return ee;var Te=(ee+Ee)/2,Ge=xe<0?Math.ceil(Te):Math.floor(Te);if(Ge==ee)return y(Ge)?ee:Ee;y(Ge)?Ee=Ge:ee=Ge+xe}}function ct(y,ee,Ee,xe){if(!y)return xe(ee,Ee,"ltr",0);for(var Te=!1,Ge=0;Ge<y.length;++Ge){var st=y[Ge];(st.from<Ee&&st.to>ee||ee==Ee&&st.to==ee)&&(xe(Math.max(st.from,ee),Math.min(st.to,Ee),st.level==1?"rtl":"ltr",Ge),Te=!0)}Te||xe(ee,Ee,"ltr")}var lt=null;function mt(y,ee,Ee){var xe;lt=null;for(var Te=0;Te<y.length;++Te){var Ge=y[Te];if(Ge.from<ee&&Ge.to>ee)return Te;Ge.to==ee&&(Ge.from!=Ge.to&&Ee=="before"?xe=Te:lt=Te),Ge.from==ee&&(Ge.from!=Ge.to&&Ee!="before"?xe=Te:lt=Te)}return xe!=null?xe:lt}var Lt=function(){var y="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ee="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function Ee(Wt){return Wt<=247?y.charAt(Wt):1424<=Wt&&Wt<=1524?"R":1536<=Wt&&Wt<=1785?ee.charAt(Wt-1536):1774<=Wt&&Wt<=2220?"r":8192<=Wt&&Wt<=8203?"w":Wt==8204?"b":"L"}var xe=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Te=/[stwN]/,Ge=/[LRr]/,st=/[Lb1n]/,wt=/[1n]/;function Ot(Wt,On,Hn){this.level=Wt,this.from=On,this.to=Hn}return function(Wt,On){var Hn=On=="ltr"?"L":"R";if(Wt.length==0||On=="ltr"&&!xe.test(Wt))return!1;for(var Er=Wt.length,vr=[],ai=0;ai<Er;++ai)vr.push(Ee(Wt.charCodeAt(ai)));for(var Ai=0,Hi=Hn;Ai<Er;++Ai){var ea=vr[Ai];ea=="m"?vr[Ai]=Hi:Hi=ea}for(var da=0,ta=Hn;da<Er;++da){var ya=vr[da];ya=="1"&&ta=="r"?vr[da]="n":Ge.test(ya)&&(ta=ya,ya=="r"&&(vr[da]="R"))}for(var Oa=1,Aa=vr[0];Oa<Er-1;++Oa){var ja=vr[Oa];ja=="+"&&Aa=="1"&&vr[Oa+1]=="1"?vr[Oa]="1":ja==","&&Aa==vr[Oa+1]&&(Aa=="1"||Aa=="n")&&(vr[Oa]=Aa),Aa=ja}for(var So=0;So<Er;++So){var os=vr[So];if(os==",")vr[So]="N";else if(os=="%"){var Fo=void 0;for(Fo=So+1;Fo<Er&&vr[Fo]=="%";++Fo);for(var js=So&&vr[So-1]=="!"||Fo<Er&&vr[Fo]=="1"?"1":"N",Ls=So;Ls<Fo;++Ls)vr[Ls]=js;So=Fo-1}}for(var Xo=0,Rs=Hn;Xo<Er;++Xo){var ds=vr[Xo];Rs=="L"&&ds=="1"?vr[Xo]="L":Ge.test(ds)&&(Rs=ds)}for(var es=0;es<Er;++es)if(Te.test(vr[es])){var Yo=void 0;for(Yo=es+1;Yo<Er&&Te.test(vr[Yo]);++Yo);for(var Uo=(es?vr[es-1]:Hn)=="L",Bs=(Yo<Er?vr[Yo]:Hn)=="L",ql=Uo==Bs?Uo?"L":"R":Hn,Il=es;Il<Yo;++Il)vr[Il]=ql;es=Yo-1}for(var ys=[],ml,ss=0;ss<Er;)if(st.test(vr[ss])){var Ou=ss;for(++ss;ss<Er&&st.test(vr[ss]);++ss);ys.push(new Ot(0,Ou,ss))}else{var Sl=ss,Hl=ys.length,Kl=On=="rtl"?1:0;for(++ss;ss<Er&&vr[ss]!="L";++ss);for(var ws=Sl;ws<ss;)if(wt.test(vr[ws])){Sl<ws&&(ys.splice(Hl,0,new Ot(1,Sl,ws)),Hl+=Kl);var eu=ws;for(++ws;ws<ss&&wt.test(vr[ws]);++ws);ys.splice(Hl,0,new Ot(2,eu,ws)),Hl+=Kl,Sl=ws}else++ws;Sl<ss&&ys.splice(Hl,0,new Ot(1,Sl,ss))}return On=="ltr"&&(ys[0].level==1&&(ml=Wt.match(/^\s+/))&&(ys[0].from=ml[0].length,ys.unshift(new Ot(0,0,ml[0].length))),Ct(ys).level==1&&(ml=Wt.match(/\s+$/))&&(Ct(ys).to-=ml[0].length,ys.push(new Ot(0,Er-ml[0].length,Er)))),On=="rtl"?ys.reverse():ys}}();function ft(y,ee){var Ee=y.order;return Ee==null&&(Ee=y.order=Lt(y.text,ee)),Ee}var St=[],nn=function(y,ee,Ee){if(y.addEventListener)y.addEventListener(ee,Ee,!1);else if(y.attachEvent)y.attachEvent("on"+ee,Ee);else{var xe=y._handlers||(y._handlers={});xe[ee]=(xe[ee]||St).concat(Ee)}};function on(y,ee){return y._handlers&&y._handlers[ee]||St}function yn(y,ee,Ee){if(y.removeEventListener)y.removeEventListener(ee,Ee,!1);else if(y.detachEvent)y.detachEvent("on"+ee,Ee);else{var xe=y._handlers,Te=xe&&xe[ee];if(Te){var Ge=$e(Te,Ee);Ge>-1&&(xe[ee]=Te.slice(0,Ge).concat(Te.slice(Ge+1)))}}}function xn(y,ee){var Ee=on(y,ee);if(Ee.length)for(var xe=Array.prototype.slice.call(arguments,2),Te=0;Te<Ee.length;++Te)Ee[Te].apply(null,xe)}function an(y,ee,Ee){return typeof ee=="string"&&(ee={type:ee,preventDefault:function(){this.defaultPrevented=!0}}),xn(y,Ee||ee.type,y,ee),Bn(ee)||ee.codemirrorIgnore}function An(y){var ee=y._handlers&&y._handlers.cursorActivity;if(ee)for(var Ee=y.curOp.cursorActivityHandlers||(y.curOp.cursorActivityHandlers=[]),xe=0;xe<ee.length;++xe)$e(Ee,ee[xe])==-1&&Ee.push(ee[xe])}function Jt(y,ee){return on(y,ee).length>0}function Ut(y){y.prototype.on=function(ee,Ee){nn(this,ee,Ee)},y.prototype.off=function(ee,Ee){yn(this,ee,Ee)}}function rn(y){y.preventDefault?y.preventDefault():y.returnValue=!1}function _n(y){y.stopPropagation?y.stopPropagation():y.cancelBubble=!0}function Bn(y){return y.defaultPrevented!=null?y.defaultPrevented:y.returnValue==!1}function kt(y){rn(y),_n(y)}function ln(y){return y.target||y.srcElement}function Cn(y){var ee=y.which;return ee==null&&(y.button&1?ee=1:y.button&2?ee=3:y.button&4&&(ee=2)),ne&&y.ctrlKey&&ee==1&&(ee=3),ee}var Mn=function(){if(Oe&&ve<9)return!1;var y=ye("div");return"draggable"in y||"dragDrop"in y}(),Qn;function mr(y){if(Qn==null){var ee=ye("span","\u200B");_e(y,ye("span",[ee,document.createTextNode("x")])),y.firstChild.offsetHeight!=0&&(Qn=ee.offsetWidth<=1&&ee.offsetHeight>2&&!(Oe&&ve<8))}var Ee=Qn?ye("span","\u200B"):ye("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return Ee.setAttribute("cm-text",""),Ee}var lr;function Cr(y){if(lr!=null)return lr;var ee=_e(y,document.createTextNode("A\u062EA")),Ee=Se(ee,0,1).getBoundingClientRect(),xe=Se(ee,1,2).getBoundingClientRect();return ge(y),!Ee||Ee.left==Ee.right?!1:lr=xe.right-Ee.right<3}var nr=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(y){for(var ee=0,Ee=[],xe=y.length;ee<=xe;){var Te=y.indexOf(`
|
|
|
`,ee);Te==-1&&(Te=y.length);var Ge=y.slice(ee,y.charAt(Te-1)=="\r"?Te-1:Te),st=Ge.indexOf("\r");st!=-1?(Ee.push(Ge.slice(0,st)),ee+=st+1):(Ee.push(Ge),ee=Te+1)}return Ee}:function(y){return y.split(/\r\n?|\n/)},ur=window.getSelection?function(y){try{return y.selectionStart!=y.selectionEnd}catch(ee){return!1}}:function(y){var ee;try{ee=y.ownerDocument.selection.createRange()}catch(Ee){}return!ee||ee.parentElement()!=y?!1:ee.compareEndPoints("StartToEnd",ee)!=0},Nn=function(){var y=ye("div");return"oncopy"in y?!0:(y.setAttribute("oncopy","return;"),typeof y.oncopy=="function")}(),In=null;function Wn(y){if(In!=null)return In;var ee=_e(y,ye("span","x")),Ee=ee.getBoundingClientRect(),xe=Se(ee,0,1).getBoundingClientRect();return In=Math.abs(Ee.left-xe.left)>1}var Kn={},Ln={};function $n(y,ee){arguments.length>2&&(ee.dependencies=Array.prototype.slice.call(arguments,2)),Kn[y]=ee}function ar(y,ee){Ln[y]=ee}function dn(y){if(typeof y=="string"&&Ln.hasOwnProperty(y))y=Ln[y];else if(y&&typeof y.name=="string"&&Ln.hasOwnProperty(y.name)){var ee=Ln[y.name];typeof ee=="string"&&(ee={name:ee}),y=Fe(ee,y),y.name=ee.name}else{if(typeof y=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(y))return dn("application/xml");if(typeof y=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(y))return dn("application/json")}return typeof y=="string"?{name:y}:y||{name:"null"}}function Ie(y,ee){ee=dn(ee);var Ee=Kn[ee.name];if(!Ee)return Ie(y,"text/plain");var xe=Ee(y,ee);if(je.hasOwnProperty(ee.name)){var Te=je[ee.name];for(var Ge in Te)Te.hasOwnProperty(Ge)&&(xe.hasOwnProperty(Ge)&&(xe["_"+Ge]=xe[Ge]),xe[Ge]=Te[Ge])}if(xe.name=ee.name,ee.helperType&&(xe.helperType=ee.helperType),ee.modeProps)for(var st in ee.modeProps)xe[st]=ee.modeProps[st];return xe}var je={};function Je(y,ee){var Ee=je.hasOwnProperty(y)?je[y]:je[y]={};Ke(ee,Ee)}function ht(y,ee){if(ee===!0)return ee;if(y.copyState)return y.copyState(ee);var Ee={};for(var xe in ee){var Te=ee[xe];Te instanceof Array&&(Te=Te.concat([])),Ee[xe]=Te}return Ee}function Et(y,ee){for(var Ee;y.innerMode&&(Ee=y.innerMode(ee),!(!Ee||Ee.mode==y));)ee=Ee.state,y=Ee.mode;return Ee||{mode:y,state:ee}}function Qt(y,ee,Ee){return y.startState?y.startState(ee,Ee):!0}var fn=function(y,ee,Ee){this.pos=this.start=0,this.string=y,this.tabSize=ee||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=Ee};fn.prototype.eol=function(){return this.pos>=this.string.length},fn.prototype.sol=function(){return this.pos==this.lineStart},fn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},fn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},fn.prototype.eat=function(y){var ee=this.string.charAt(this.pos),Ee;if(typeof y=="string"?Ee=ee==y:Ee=ee&&(y.test?y.test(ee):y(ee)),Ee)return++this.pos,ee},fn.prototype.eatWhile=function(y){for(var ee=this.pos;this.eat(y););return this.pos>ee},fn.prototype.eatSpace=function(){for(var y=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>y},fn.prototype.skipToEnd=function(){this.pos=this.string.length},fn.prototype.skipTo=function(y){var ee=this.string.indexOf(y,this.pos);if(ee>-1)return this.pos=ee,!0},fn.prototype.backUp=function(y){this.pos-=y},fn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ne(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ne(this.string,this.lineStart,this.tabSize):0)},fn.prototype.indentation=function(){return Ne(this.string,null,this.tabSize)-(this.lineStart?Ne(this.string,this.lineStart,this.tabSize):0)},fn.prototype.match=function(y,ee,Ee){if(typeof y=="string"){var xe=function(st){return Ee?st.toLowerCase():st},Te=this.string.substr(this.pos,y.length);if(xe(Te)==xe(y))return ee!==!1&&(this.pos+=y.length),!0}else{var Ge=this.string.slice(this.pos).match(y);return Ge&&Ge.index>0?null:(Ge&&ee!==!1&&(this.pos+=Ge[0].length),Ge)}},fn.prototype.current=function(){return this.string.slice(this.start,this.pos)},fn.prototype.hideFirstChars=function(y,ee){this.lineStart+=y;try{return ee()}finally{this.lineStart-=y}},fn.prototype.lookAhead=function(y){var ee=this.lineOracle;return ee&&ee.lookAhead(y)},fn.prototype.baseToken=function(){var y=this.lineOracle;return y&&y.baseToken(this.pos)};function sn(y,ee){if(ee-=y.first,ee<0||ee>=y.size)throw new Error("There is no line "+(ee+y.first)+" in the document.");for(var Ee=y;!Ee.lines;)for(var xe=0;;++xe){var Te=Ee.children[xe],Ge=Te.chunkSize();if(ee<Ge){Ee=Te;break}ee-=Ge}return Ee.lines[ee]}function mn(y,ee,Ee){var xe=[],Te=ee.line;return y.iter(ee.line,Ee.line+1,function(Ge){var st=Ge.text;Te==Ee.line&&(st=st.slice(0,Ee.ch)),Te==ee.line&&(st=st.slice(ee.ch)),xe.push(st),++Te}),xe}function Zn(y,ee,Ee){var xe=[];return y.iter(ee,Ee,function(Te){xe.push(Te.text)}),xe}function tr(y,ee){var Ee=ee-y.height;if(Ee)for(var xe=y;xe;xe=xe.parent)xe.height+=Ee}function Vt(y){if(y.parent==null)return null;for(var ee=y.parent,Ee=$e(ee.lines,y),xe=ee.parent;xe;ee=xe,xe=xe.parent)for(var Te=0;xe.children[Te]!=ee;++Te)Ee+=xe.children[Te].chunkSize();return Ee+ee.first}function Gt(y,ee){var Ee=y.first;e:do{for(var xe=0;xe<y.children.length;++xe){var Te=y.children[xe],Ge=Te.height;if(ee<Ge){y=Te;continue e}ee-=Ge,Ee+=Te.chunkSize()}return Ee}while(!y.lines);for(var st=0;st<y.lines.length;++st){var wt=y.lines[st],Ot=wt.height;if(ee<Ot)break;ee-=Ot}return Ee+st}function Rt(y,ee){return ee>=y.first&&ee<y.first+y.size}function jt(y,ee){return String(y.lineNumberFormatter(ee+y.firstLineNumber))}function Mt(y,ee,Ee){if(Ee===void 0&&(Ee=null),!(this instanceof Mt))return new Mt(y,ee,Ee);this.line=y,this.ch=ee,this.sticky=Ee}function Kt(y,ee){return y.line-ee.line||y.ch-ee.ch}function yt(y,ee){return y.sticky==ee.sticky&&Kt(y,ee)==0}function qt(y){return Mt(y.line,y.ch)}function vn(y,ee){return Kt(y,ee)<0?ee:y}function Tt(y,ee){return Kt(y,ee)<0?y:ee}function It(y,ee){return Math.max(y.first,Math.min(ee,y.first+y.size-1))}function Dt(y,ee){if(ee.line<y.first)return Mt(y.first,0);var Ee=y.first+y.size-1;return ee.line>Ee?Mt(Ee,sn(y,Ee).text.length):Bt(ee,sn(y,ee.line).text.length)}function Bt(y,ee){var Ee=y.ch;return Ee==null||Ee>ee?Mt(y.line,ee):Ee<0?Mt(y.line,0):y}function Zt(y,ee){for(var Ee=[],xe=0;xe<ee.length;xe++)Ee[xe]=Dt(y,ee[xe]);return Ee}var tn=function(y,ee){this.state=y,this.lookAhead=ee},Tn=function(y,ee,Ee,xe){this.state=ee,this.doc=y,this.line=Ee,this.maxLookAhead=xe||0,this.baseTokens=null,this.baseTokenPos=1};Tn.prototype.lookAhead=function(y){var ee=this.doc.getLine(this.line+y);return ee!=null&&y>this.maxLookAhead&&(this.maxLookAhead=y),ee},Tn.prototype.baseToken=function(y){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=y;)this.baseTokenPos+=2;var ee=this.baseTokens[this.baseTokenPos+1];return{type:ee&&ee.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-y}},Tn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Tn.fromSaved=function(y,ee,Ee){return ee instanceof tn?new Tn(y,ht(y.mode,ee.state),Ee,ee.lookAhead):new Tn(y,ht(y.mode,ee),Ee)},Tn.prototype.save=function(y){var ee=y!==!1?ht(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new tn(ee,this.maxLookAhead):ee};function Fn(y,ee,Ee,xe){var Te=[y.state.modeGen],Ge={};Jn(y,ee.text,y.doc.mode,Ee,function(Wt,On){return Te.push(Wt,On)},Ge,xe);for(var st=Ee.state,wt=function(Wt){Ee.baseTokens=Te;var On=y.state.overlays[Wt],Hn=1,Er=0;Ee.state=!0,Jn(y,ee.text,On.mode,Ee,function(vr,ai){for(var Ai=Hn;Er<vr;){var Hi=Te[Hn];Hi>vr&&Te.splice(Hn,1,vr,Te[Hn+1],Hi),Hn+=2,Er=Math.min(vr,Hi)}if(ai)if(On.opaque)Te.splice(Ai,Hn-Ai,vr,"overlay "+ai),Hn=Ai+2;else for(;Ai<Hn;Ai+=2){var ea=Te[Ai+1];Te[Ai+1]=(ea?ea+" ":"")+"overlay "+ai}},Ge),Ee.state=st,Ee.baseTokens=null,Ee.baseTokenPos=1},Ot=0;Ot<y.state.overlays.length;++Ot)wt(Ot);return{styles:Te,classes:Ge.bgClass||Ge.textClass?Ge:null}}function dr(y,ee,Ee){if(!ee.styles||ee.styles[0]!=y.state.modeGen){var xe=_r(y,Vt(ee)),Te=ee.text.length>y.options.maxHighlightLength&&ht(y.doc.mode,xe.state),Ge=Fn(y,ee,xe);Te&&(xe.state=Te),ee.stateAfter=xe.save(!Te),ee.styles=Ge.styles,Ge.classes?ee.styleClasses=Ge.classes:ee.styleClasses&&(ee.styleClasses=null),Ee===y.doc.highlightFrontier&&(y.doc.modeFrontier=Math.max(y.doc.modeFrontier,++y.doc.highlightFrontier))}return ee.styles}function _r(y,ee,Ee){var xe=y.doc,Te=y.display;if(!xe.mode.startState)return new Tn(xe,!0,ee);var Ge=ii(y,ee,Ee),st=Ge>xe.first&&sn(xe,Ge-1).stateAfter,wt=st?Tn.fromSaved(xe,st,Ge):new Tn(xe,Qt(xe.mode),Ge);return xe.iter(Ge,ee,function(Ot){Kr(y,Ot.text,wt);var Wt=wt.line;Ot.stateAfter=Wt==ee-1||Wt%5==0||Wt>=Te.viewFrom&&Wt<Te.viewTo?wt.save():null,wt.nextLine()}),Ee&&(xe.modeFrontier=wt.line),wt}function Kr(y,ee,Ee,xe){var Te=y.doc.mode,Ge=new fn(ee,y.options.tabSize,Ee);for(Ge.start=Ge.pos=xe||0,ee==""&&Sr(Te,Ee.state);!Ge.eol();)hr(Te,Ge,Ee.state),Ge.start=Ge.pos}function Sr(y,ee){if(y.blankLine)return y.blankLine(ee);if(y.innerMode){var Ee=Et(y,ee);if(Ee.mode.blankLine)return Ee.mode.blankLine(Ee.state)}}function hr(y,ee,Ee,xe){for(var Te=0;Te<10;Te++){xe&&(xe[0]=Et(y,Ee).mode);var Ge=y.token(ee,Ee);if(ee.pos>ee.start)return Ge}throw new Error("Mode "+y.name+" failed to advance stream.")}var Mr=function(y,ee,Ee){this.start=y.start,this.end=y.pos,this.string=y.current(),this.type=ee||null,this.state=Ee};function Br(y,ee,Ee,xe){var Te=y.doc,Ge=Te.mode,st;ee=Dt(Te,ee);var wt=sn(Te,ee.line),Ot=_r(y,ee.line,Ee),Wt=new fn(wt.text,y.options.tabSize,Ot),On;for(xe&&(On=[]);(xe||Wt.pos<ee.ch)&&!Wt.eol();)Wt.start=Wt.pos,st=hr(Ge,Wt,Ot.state),xe&&On.push(new Mr(Wt,st,ht(Te.mode,Ot.state)));return xe?On:new Mr(Wt,st,Ot.state)}function Wr(y,ee){if(y)for(;;){var Ee=y.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!Ee)break;y=y.slice(0,Ee.index)+y.slice(Ee.index+Ee[0].length);var xe=Ee[1]?"bgClass":"textClass";ee[xe]==null?ee[xe]=Ee[2]:new RegExp("(?:^|\\s)"+Ee[2]+"(?:$|\\s)").test(ee[xe])||(ee[xe]+=" "+Ee[2])}return y}function Jn(y,ee,Ee,xe,Te,Ge,st){var wt=Ee.flattenSpans;wt==null&&(wt=y.options.flattenSpans);var Ot=0,Wt=null,On=new fn(ee,y.options.tabSize,xe),Hn,Er=y.options.addModeClass&&[null];for(ee==""&&Wr(Sr(Ee,xe.state),Ge);!On.eol();){if(On.pos>y.options.maxHighlightLength?(wt=!1,st&&Kr(y,ee,xe,On.pos),On.pos=ee.length,Hn=null):Hn=Wr(hr(Ee,On,xe.state,Er),Ge),Er){var vr=Er[0].name;vr&&(Hn="m-"+(Hn?vr+" "+Hn:vr))}if(!wt||Wt!=Hn){for(;Ot<On.start;)Ot=Math.min(On.start,Ot+5e3),Te(Ot,Wt);Wt=Hn}On.start=On.pos}for(;Ot<On.pos;){var ai=Math.min(On.pos,Ot+5e3);Te(ai,Wt),Ot=ai}}function ii(y,ee,Ee){for(var xe,Te,Ge=y.doc,st=Ee?-1:ee-(y.doc.mode.innerMode?1e3:100),wt=ee;wt>st;--wt){if(wt<=Ge.first)return Ge.first;var Ot=sn(Ge,wt-1),Wt=Ot.stateAfter;if(Wt&&(!Ee||wt+(Wt instanceof tn?Wt.lookAhead:0)<=Ge.modeFrontier))return wt;var On=Ne(Ot.text,null,y.options.tabSize);(Te==null||xe>On)&&(Te=wt-1,xe=On)}return Te}function Ur(y,ee){if(y.modeFrontier=Math.min(y.modeFrontier,ee),!(y.highlightFrontier<ee-10)){for(var Ee=y.first,xe=ee-1;xe>Ee;xe--){var Te=sn(y,xe).stateAfter;if(Te&&(!(Te instanceof tn)||xe+Te.lookAhead<ee)){Ee=xe+1;break}}y.highlightFrontier=Math.min(y.highlightFrontier,Ee)}}var Gr=!1,qr=!1;function Li(){Gr=!0}function wi(){qr=!0}function ui(y,ee,Ee){this.marker=y,this.from=ee,this.to=Ee}function Qr(y,ee){if(y)for(var Ee=0;Ee<y.length;++Ee){var xe=y[Ee];if(xe.marker==ee)return xe}}function Di(y,ee){for(var Ee,xe=0;xe<y.length;++xe)y[xe]!=ee&&(Ee||(Ee=[])).push(y[xe]);return Ee}function oi(y,ee){y.markedSpans=y.markedSpans?y.markedSpans.concat([ee]):[ee],ee.marker.attachLine(y)}function di(y,ee,Ee){var xe;if(y)for(var Te=0;Te<y.length;++Te){var Ge=y[Te],st=Ge.marker,wt=Ge.from==null||(st.inclusiveLeft?Ge.from<=ee:Ge.from<ee);if(wt||Ge.from==ee&&st.type=="bookmark"&&(!Ee||!Ge.marker.insertLeft)){var Ot=Ge.to==null||(st.inclusiveRight?Ge.to>=ee:Ge.to>ee);(xe||(xe=[])).push(new ui(st,Ge.from,Ot?null:Ge.to))}}return xe}function ci(y,ee,Ee){var xe;if(y)for(var Te=0;Te<y.length;++Te){var Ge=y[Te],st=Ge.marker,wt=Ge.to==null||(st.inclusiveRight?Ge.to>=ee:Ge.to>ee);if(wt||Ge.from==ee&&st.type=="bookmark"&&(!Ee||Ge.marker.insertLeft)){var Ot=Ge.from==null||(st.inclusiveLeft?Ge.from<=ee:Ge.from<ee);(xe||(xe=[])).push(new ui(st,Ot?null:Ge.from-ee,Ge.to==null?null:Ge.to-ee))}}return xe}function ki(y,ee){if(ee.full)return null;var Ee=Rt(y,ee.from.line)&&sn(y,ee.from.line).markedSpans,xe=Rt(y,ee.to.line)&&sn(y,ee.to.line).markedSpans;if(!Ee&&!xe)return null;var Te=ee.from.ch,Ge=ee.to.ch,st=Kt(ee.from,ee.to)==0,wt=di(Ee,Te,st),Ot=ci(xe,Ge,st),Wt=ee.text.length==1,On=Ct(ee.text).length+(Wt?Te:0);if(wt)for(var Hn=0;Hn<wt.length;++Hn){var Er=wt[Hn];if(Er.to==null){var vr=Qr(Ot,Er.marker);vr?Wt&&(Er.to=vr.to==null?null:vr.to+On):Er.to=Te}}if(Ot)for(var ai=0;ai<Ot.length;++ai){var Ai=Ot[ai];if(Ai.to!=null&&(Ai.to+=On),Ai.from==null){var Hi=Qr(wt,Ai.marker);Hi||(Ai.from=On,Wt&&(wt||(wt=[])).push(Ai))}else Ai.from+=On,Wt&&(wt||(wt=[])).push(Ai)}wt&&(wt=Ki(wt)),Ot&&Ot!=wt&&(Ot=Ki(Ot));var ea=[wt];if(!Wt){var da=ee.text.length-2,ta;if(da>0&&wt)for(var ya=0;ya<wt.length;++ya)wt[ya].to==null&&(ta||(ta=[])).push(new ui(wt[ya].marker,null,null));for(var Oa=0;Oa<da;++Oa)ea.push(ta);ea.push(Ot)}return ea}function Ki(y){for(var ee=0;ee<y.length;++ee){var Ee=y[ee];Ee.from!=null&&Ee.from==Ee.to&&Ee.marker.clearWhenEmpty!==!1&&y.splice(ee--,1)}return y.length?y:null}function ua(y,ee,Ee){var xe=null;if(y.iter(ee.line,Ee.line+1,function(vr){if(vr.markedSpans)for(var ai=0;ai<vr.markedSpans.length;++ai){var Ai=vr.markedSpans[ai].marker;Ai.readOnly&&(!xe||$e(xe,Ai)==-1)&&(xe||(xe=[])).push(Ai)}}),!xe)return null;for(var Te=[{from:ee,to:Ee}],Ge=0;Ge<xe.length;++Ge)for(var st=xe[Ge],wt=st.find(0),Ot=0;Ot<Te.length;++Ot){var Wt=Te[Ot];if(!(Kt(Wt.to,wt.from)<0||Kt(Wt.from,wt.to)>0)){var On=[Ot,1],Hn=Kt(Wt.from,wt.from),Er=Kt(Wt.to,wt.to);(Hn<0||!st.inclusiveLeft&&!Hn)&&On.push({from:Wt.from,to:wt.from}),(Er>0||!st.inclusiveRight&&!Er)&&On.push({from:wt.to,to:Wt.to}),Te.splice.apply(Te,On),Ot+=On.length-3}}return Te}function kn(y){var ee=y.markedSpans;if(ee){for(var Ee=0;Ee<ee.length;++Ee)ee[Ee].marker.detachLine(y);y.markedSpans=null}}function qi(y,ee){if(ee){for(var Ee=0;Ee<ee.length;++Ee)ee[Ee].marker.attachLine(y);y.markedSpans=ee}}function Qi(y){return y.inclusiveLeft?-1:0}function ra(y){return y.inclusiveRight?1:0}function _i(y,ee){var Ee=y.lines.length-ee.lines.length;if(Ee!=0)return Ee;var xe=y.find(),Te=ee.find(),Ge=Kt(xe.from,Te.from)||Qi(y)-Qi(ee);if(Ge)return-Ge;var st=Kt(xe.to,Te.to)||ra(y)-ra(ee);return st||ee.id-y.id}function Ti(y,ee){var Ee=qr&&y.markedSpans,xe;if(Ee)for(var Te=void 0,Ge=0;Ge<Ee.length;++Ge)Te=Ee[Ge],Te.marker.collapsed&&(ee?Te.from:Te.to)==null&&(!xe||_i(xe,Te.marker)<0)&&(xe=Te.marker);return xe}function Xr(y){return Ti(y,!0)}function rr(y){return Ti(y,!1)}function Dr(y,ee){var Ee=qr&&y.markedSpans,xe;if(Ee)for(var Te=0;Te<Ee.length;++Te){var Ge=Ee[Te];Ge.marker.collapsed&&(Ge.from==null||Ge.from<ee)&&(Ge.to==null||Ge.to>ee)&&(!xe||_i(xe,Ge.marker)<0)&&(xe=Ge.marker)}return xe}function Fr(y,ee,Ee,xe,Te){var Ge=sn(y,ee),st=qr&&Ge.markedSpans;if(st)for(var wt=0;wt<st.length;++wt){var Ot=st[wt];if(Ot.marker.collapsed){var Wt=Ot.marker.find(0),On=Kt(Wt.from,Ee)||Qi(Ot.marker)-Qi(Te),Hn=Kt(Wt.to,xe)||ra(Ot.marker)-ra(Te);if(!(On>=0&&Hn<=0||On<=0&&Hn>=0)&&(On<=0&&(Ot.marker.inclusiveRight&&Te.inclusiveLeft?Kt(Wt.to,Ee)>=0:Kt(Wt.to,Ee)>0)||On>=0&&(Ot.marker.inclusiveRight&&Te.inclusiveLeft?Kt(Wt.from,xe)<=0:Kt(Wt.from,xe)<0)))return!0}}}function or(y){for(var ee;ee=Xr(y);)y=ee.find(-1,!0).line;return y}function ei(y){for(var ee;ee=rr(y);)y=ee.find(1,!0).line;return y}function si(y){for(var ee,Ee;ee=rr(y);)y=ee.find(1,!0).line,(Ee||(Ee=[])).push(y);return Ee}function wr(y,ee){var Ee=sn(y,ee),xe=or(Ee);return Ee==xe?ee:Vt(xe)}function Ir(y,ee){if(ee>y.lastLine())return ee;var Ee=sn(y,ee),xe;if(!Hr(y,Ee))return ee;for(;xe=rr(Ee);)Ee=xe.find(1,!0).line;return Vt(Ee)+1}function Hr(y,ee){var Ee=qr&&ee.markedSpans;if(Ee){for(var xe=void 0,Te=0;Te<Ee.length;++Te)if(xe=Ee[Te],!!xe.marker.collapsed){if(xe.from==null)return!0;if(!xe.marker.widgetNode&&xe.from==0&&xe.marker.inclusiveLeft&&ri(y,ee,xe))return!0}}}function ri(y,ee,Ee){if(Ee.to==null){var xe=Ee.marker.find(1,!0);return ri(y,xe.line,Qr(xe.line.markedSpans,Ee.marker))}if(Ee.marker.inclusiveRight&&Ee.to==ee.text.length)return!0;for(var Te=void 0,Ge=0;Ge<ee.markedSpans.length;++Ge)if(Te=ee.markedSpans[Ge],Te.marker.collapsed&&!Te.marker.widgetNode&&Te.from==Ee.to&&(Te.to==null||Te.to!=Ee.from)&&(Te.marker.inclusiveLeft||Ee.marker.inclusiveRight)&&ri(y,ee,Te))return!0}function un(y){y=or(y);for(var ee=0,Ee=y.parent,xe=0;xe<Ee.lines.length;++xe){var Te=Ee.lines[xe];if(Te==y)break;ee+=Te.height}for(var Ge=Ee.parent;Ge;Ee=Ge,Ge=Ee.parent)for(var st=0;st<Ge.children.length;++st){var wt=Ge.children[st];if(wt==Ee)break;ee+=wt.height}return ee}function Vn(y){if(y.height==0)return 0;for(var ee=y.text.length,Ee,xe=y;Ee=Xr(xe);){var Te=Ee.find(0,!0);xe=Te.from.line,ee+=Te.from.ch-Te.to.ch}for(xe=y;Ee=rr(xe);){var Ge=Ee.find(0,!0);ee-=xe.text.length-Ge.from.ch,xe=Ge.to.line,ee+=xe.text.length-Ge.to.ch}return ee}function Sn(y){var ee=y.display,Ee=y.doc;ee.maxLine=sn(Ee,Ee.first),ee.maxLineLength=Vn(ee.maxLine),ee.maxLineChanged=!0,Ee.iter(function(xe){var Te=Vn(xe);Te>ee.maxLineLength&&(ee.maxLineLength=Te,ee.maxLine=xe)})}var Rr=function(y,ee,Ee){this.text=y,qi(this,ee),this.height=Ee?Ee(this):1};Rr.prototype.lineNo=function(){return Vt(this)},Ut(Rr);function ti(y,ee,Ee,xe){y.text=ee,y.stateAfter&&(y.stateAfter=null),y.styles&&(y.styles=null),y.order!=null&&(y.order=null),kn(y),qi(y,Ee);var Te=xe?xe(y):1;Te!=y.height&&tr(y,Te)}function gn(y){y.parent=null,kn(y)}var mi={},Nr={};function Ar(y,ee){if(!y||/^\s*$/.test(y))return null;var Ee=ee.addModeClass?Nr:mi;return Ee[y]||(Ee[y]=y.replace(/\S+/g,"cm-$&"))}function pi(y,ee){var Ee=be("span",null,null,ue?"padding-right: .1px":null),xe={pre:be("pre",[Ee],"CodeMirror-line"),content:Ee,col:0,pos:0,cm:y,trailingSpace:!1,splitSpaces:y.getOption("lineWrapping")};ee.measure={};for(var Te=0;Te<=(ee.rest?ee.rest.length:0);Te++){var Ge=Te?ee.rest[Te-1]:ee.line,st=void 0;xe.pos=0,xe.addToken=gi,Cr(y.display.measure)&&(st=ft(Ge,y.doc.direction))&&(xe.addToken=Jr(xe.addToken,st)),xe.map=[];var wt=ee!=y.display.externalMeasured&&Vt(Ge);Zr(Ge,xe,dr(y,Ge,wt)),Ge.styleClasses&&(Ge.styleClasses.bgClass&&(xe.bgClass=Ue(Ge.styleClasses.bgClass,xe.bgClass||"")),Ge.styleClasses.textClass&&(xe.textClass=Ue(Ge.styleClasses.textClass,xe.textClass||""))),xe.map.length==0&&xe.map.push(0,0,xe.content.appendChild(mr(y.display.measure))),Te==0?(ee.measure.map=xe.map,ee.measure.cache={}):((ee.measure.maps||(ee.measure.maps=[])).push(xe.map),(ee.measure.caches||(ee.measure.caches=[])).push({}))}if(ue){var Ot=xe.content.lastChild;(/\bcm-tab\b/.test(Ot.className)||Ot.querySelector&&Ot.querySelector(".cm-tab"))&&(xe.content.className="cm-tab-wrap-hack")}return xn(y,"renderLine",y,ee.line,xe.pre),xe.pre.className&&(xe.textClass=Ue(xe.pre.className,xe.textClass||"")),xe}function Gi(y){var ee=ye("span","\u2022","cm-invalidchar");return ee.title="\\u"+y.charCodeAt(0).toString(16),ee.setAttribute("aria-label",ee.title),ee}function gi(y,ee,Ee,xe,Te,Ge,st){if(ee){var wt=y.splitSpaces?Wi(ee,y.trailingSpace):ee,Ot=y.cm.state.specialChars,Wt=!1,On;if(!Ot.test(ee))y.col+=ee.length,On=document.createTextNode(wt),y.map.push(y.pos,y.pos+ee.length,On),Oe&&ve<9&&(Wt=!0),y.pos+=ee.length;else{On=document.createDocumentFragment();for(var Hn=0;;){Ot.lastIndex=Hn;var Er=Ot.exec(ee),vr=Er?Er.index-Hn:ee.length-Hn;if(vr){var ai=document.createTextNode(wt.slice(Hn,Hn+vr));Oe&&ve<9?On.appendChild(ye("span",[ai])):On.appendChild(ai),y.map.push(y.pos,y.pos+vr,ai),y.col+=vr,y.pos+=vr}if(!Er)break;Hn+=vr+1;var Ai=void 0;if(Er[0]==" "){var Hi=y.cm.options.tabSize,ea=Hi-y.col%Hi;Ai=On.appendChild(ye("span",Ft(ea),"cm-tab")),Ai.setAttribute("role","presentation"),Ai.setAttribute("cm-text"," "),y.col+=ea}else Er[0]=="\r"||Er[0]==`
|
|
|
`?(Ai=On.appendChild(ye("span",Er[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ai.setAttribute("cm-text",Er[0]),y.col+=1):(Ai=y.cm.options.specialCharPlaceholder(Er[0]),Ai.setAttribute("cm-text",Er[0]),Oe&&ve<9?On.appendChild(ye("span",[Ai])):On.appendChild(Ai),y.col+=1);y.map.push(y.pos,y.pos+1,Ai),y.pos++}}if(y.trailingSpace=wt.charCodeAt(ee.length-1)==32,Ee||xe||Te||Wt||Ge||st){var da=Ee||"";xe&&(da+=xe),Te&&(da+=Te);var ta=ye("span",[On],da,Ge);if(st)for(var ya in st)st.hasOwnProperty(ya)&&ya!="style"&&ya!="class"&&ta.setAttribute(ya,st[ya]);return y.content.appendChild(ta)}y.content.appendChild(On)}}function Wi(y,ee){if(y.length>1&&!/ /.test(y))return y;for(var Ee=ee,xe="",Te=0;Te<y.length;Te++){var Ge=y.charAt(Te);Ge==" "&&Ee&&(Te==y.length-1||y.charCodeAt(Te+1)==32)&&(Ge="\xA0"),xe+=Ge,Ee=Ge==" "}return xe}function Jr(y,ee){return function(Ee,xe,Te,Ge,st,wt,Ot){Te=Te?Te+" cm-force-border":"cm-force-border";for(var Wt=Ee.pos,On=Wt+xe.length;;){for(var Hn=void 0,Er=0;Er<ee.length&&(Hn=ee[Er],!(Hn.to>Wt&&Hn.from<=Wt));Er++);if(Hn.to>=On)return y(Ee,xe,Te,Ge,st,wt,Ot);y(Ee,xe.slice(0,Hn.to-Wt),Te,Ge,null,wt,Ot),Ge=null,xe=xe.slice(Hn.to-Wt),Wt=Hn.to}}}function li(y,ee,Ee,xe){var Te=!xe&&Ee.widgetNode;Te&&y.map.push(y.pos,y.pos+ee,Te),!xe&&y.cm.display.input.needsContentAttribute&&(Te||(Te=y.content.appendChild(document.createElement("span"))),Te.setAttribute("cm-marker",Ee.id)),Te&&(y.cm.display.input.setUneditable(Te),y.content.appendChild(Te)),y.pos+=ee,y.trailingSpace=!1}function Zr(y,ee,Ee){var xe=y.markedSpans,Te=y.text,Ge=0;if(!xe){for(var st=1;st<Ee.length;st+=2)ee.addToken(ee,Te.slice(Ge,Ge=Ee[st]),Ar(Ee[st+1],ee.cm.options));return}for(var wt=Te.length,Ot=0,Wt=1,On="",Hn,Er,vr=0,ai,Ai,Hi,ea,da;;){if(vr==Ot){ai=Ai=Hi=Er="",da=null,ea=null,vr=1/0;for(var ta=[],ya=void 0,Oa=0;Oa<xe.length;++Oa){var Aa=xe[Oa],ja=Aa.marker;if(ja.type=="bookmark"&&Aa.from==Ot&&ja.widgetNode)ta.push(ja);else if(Aa.from<=Ot&&(Aa.to==null||Aa.to>Ot||ja.collapsed&&Aa.to==Ot&&Aa.from==Ot)){if(Aa.to!=null&&Aa.to!=Ot&&vr>Aa.to&&(vr=Aa.to,Ai=""),ja.className&&(ai+=" "+ja.className),ja.css&&(Er=(Er?Er+";":"")+ja.css),ja.startStyle&&Aa.from==Ot&&(Hi+=" "+ja.startStyle),ja.endStyle&&Aa.to==vr&&(ya||(ya=[])).push(ja.endStyle,Aa.to),ja.title&&((da||(da={})).title=ja.title),ja.attributes)for(var So in ja.attributes)(da||(da={}))[So]=ja.attributes[So];ja.collapsed&&(!ea||_i(ea.marker,ja)<0)&&(ea=Aa)}else Aa.from>Ot&&vr>Aa.from&&(vr=Aa.from)}if(ya)for(var os=0;os<ya.length;os+=2)ya[os+1]==vr&&(Ai+=" "+ya[os]);if(!ea||ea.from==Ot)for(var Fo=0;Fo<ta.length;++Fo)li(ee,0,ta[Fo]);if(ea&&(ea.from||0)==Ot){if(li(ee,(ea.to==null?wt+1:ea.to)-Ot,ea.marker,ea.from==null),ea.to==null)return;ea.to==Ot&&(ea=!1)}}if(Ot>=wt)break;for(var js=Math.min(wt,vr);;){if(On){var Ls=Ot+On.length;if(!ea){var Xo=Ls>js?On.slice(0,js-Ot):On;ee.addToken(ee,Xo,Hn?Hn+ai:ai,Hi,Ot+Xo.length==vr?Ai:"",Er,da)}if(Ls>=js){On=On.slice(js-Ot),Ot=js;break}Ot=Ls,Hi=""}On=Te.slice(Ge,Ge=Ee[Wt++]),Hn=Ar(Ee[Wt++],ee.cm.options)}}}function Vi(y,ee,Ee){this.line=ee,this.rest=si(ee),this.size=this.rest?Vt(Ct(this.rest))-Ee+1:1,this.node=this.text=null,this.hidden=Hr(y,ee)}function sa(y,ee,Ee){for(var xe=[],Te,Ge=ee;Ge<Ee;Ge=Te){var st=new Vi(y.doc,sn(y.doc,Ge),Ge);Te=Ge+st.size,xe.push(st)}return xe}var vi=null;function Ni(y){vi?vi.ops.push(y):y.ownsGroup=vi={ops:[y],delayedCallbacks:[]}}function Ii(y){var ee=y.delayedCallbacks,Ee=0;do{for(;Ee<ee.length;Ee++)ee[Ee].call(null);for(var xe=0;xe<y.ops.length;xe++){var Te=y.ops[xe];if(Te.cursorActivityHandlers)for(;Te.cursorActivityCalled<Te.cursorActivityHandlers.length;)Te.cursorActivityHandlers[Te.cursorActivityCalled++].call(null,Te.cm)}}while(Ee<ee.length)}function Mi(y,ee){var Ee=y.ownsGroup;if(Ee)try{Ii(Ee)}finally{vi=null,ee(Ee)}}var fa=null;function ca(y,ee){var Ee=on(y,ee);if(Ee.length){var xe=Array.prototype.slice.call(arguments,2),Te;vi?Te=vi.delayedCallbacks:fa?Te=fa:(Te=fa=[],setTimeout(la,0));for(var Ge=function(wt){Te.push(function(){return Ee[wt].apply(null,xe)})},st=0;st<Ee.length;++st)Ge(st)}}function la(){var y=fa;fa=null;for(var ee=0;ee<y.length;++ee)y[ee]()}function zi(y,ee,Ee,xe){for(var Te=0;Te<ee.changes.length;Te++){var Ge=ee.changes[Te];Ge=="text"?to(y,ee):Ge=="gutter"?Yi(y,ee,Ee,xe):Ge=="class"?bi(y,ee):Ge=="widget"&&Ei(y,ee,xe)}ee.changes=null}function Da(y){return y.node==y.text&&(y.node=ye("div",null,null,"position: relative"),y.text.parentNode&&y.text.parentNode.replaceChild(y.node,y.text),y.node.appendChild(y.text),Oe&&ve<8&&(y.node.style.zIndex=2)),y.node}function Ca(y,ee){var Ee=ee.bgClass?ee.bgClass+" "+(ee.line.bgClass||""):ee.line.bgClass;if(Ee&&(Ee+=" CodeMirror-linebackground"),ee.background)Ee?ee.background.className=Ee:(ee.background.parentNode.removeChild(ee.background),ee.background=null);else if(Ee){var xe=Da(ee);ee.background=xe.insertBefore(ye("div",null,Ee),xe.firstChild),y.display.input.setUneditable(ee.background)}}function Ra(y,ee){var Ee=y.display.externalMeasured;return Ee&&Ee.line==ee.line?(y.display.externalMeasured=null,ee.measure=Ee.measure,Ee.built):pi(y,ee)}function to(y,ee){var Ee=ee.text.className,xe=Ra(y,ee);ee.text==ee.node&&(ee.node=xe.pre),ee.text.parentNode.replaceChild(xe.pre,ee.text),ee.text=xe.pre,xe.bgClass!=ee.bgClass||xe.textClass!=ee.textClass?(ee.bgClass=xe.bgClass,ee.textClass=xe.textClass,bi(y,ee)):Ee&&(ee.text.className=Ee)}function bi(y,ee){Ca(y,ee),ee.line.wrapClass?Da(ee).className=ee.line.wrapClass:ee.node!=ee.text&&(ee.node.className="");var Ee=ee.textClass?ee.textClass+" "+(ee.line.textClass||""):ee.line.textClass;ee.text.className=Ee||""}function Yi(y,ee,Ee,xe){if(ee.gutter&&(ee.node.removeChild(ee.gutter),ee.gutter=null),ee.gutterBackground&&(ee.node.removeChild(ee.gutterBackground),ee.gutterBackground=null),ee.line.gutterClass){var Te=Da(ee);ee.gutterBackground=ye("div",null,"CodeMirror-gutter-background "+ee.line.gutterClass,"left: "+(y.options.fixedGutter?xe.fixedPos:-xe.gutterTotalWidth)+"px; width: "+xe.gutterTotalWidth+"px"),y.display.input.setUneditable(ee.gutterBackground),Te.insertBefore(ee.gutterBackground,ee.text)}var Ge=ee.line.gutterMarkers;if(y.options.lineNumbers||Ge){var st=Da(ee),wt=ee.gutter=ye("div",null,"CodeMirror-gutter-wrapper","left: "+(y.options.fixedGutter?xe.fixedPos:-xe.gutterTotalWidth)+"px");if(y.display.input.setUneditable(wt),st.insertBefore(wt,ee.text),ee.line.gutterClass&&(wt.className+=" "+ee.line.gutterClass),y.options.lineNumbers&&(!Ge||!Ge["CodeMirror-linenumbers"])&&(ee.lineNumber=wt.appendChild(ye("div",jt(y.options,Ee),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+xe.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+y.display.lineNumInnerWidth+"px"))),Ge)for(var Ot=0;Ot<y.display.gutterSpecs.length;++Ot){var Wt=y.display.gutterSpecs[Ot].className,On=Ge.hasOwnProperty(Wt)&&Ge[Wt];On&&wt.appendChild(ye("div",[On],"CodeMirror-gutter-elt","left: "+xe.gutterLeft[Wt]+"px; width: "+xe.gutterWidth[Wt]+"px"))}}}function Ei(y,ee,Ee){ee.alignable&&(ee.alignable=null);for(var xe=re("CodeMirror-linewidget"),Te=ee.node.firstChild,Ge=void 0;Te;Te=Ge)Ge=Te.nextSibling,xe.test(Te.className)&&ee.node.removeChild(Te);kr(y,ee,Ee)}function Ci(y,ee,Ee,xe){var Te=Ra(y,ee);return ee.text=ee.node=Te.pre,Te.bgClass&&(ee.bgClass=Te.bgClass),Te.textClass&&(ee.textClass=Te.textClass),bi(y,ee),Yi(y,ee,Ee,xe),kr(y,ee,xe),ee.node}function kr(y,ee,Ee){if(Zi(y,ee.line,ee,Ee,!0),ee.rest)for(var xe=0;xe<ee.rest.length;xe++)Zi(y,ee.rest[xe],ee,Ee,!1)}function Zi(y,ee,Ee,xe,Te){if(ee.widgets)for(var Ge=Da(Ee),st=0,wt=ee.widgets;st<wt.length;++st){var Ot=wt[st],Wt=ye("div",[Ot.node],"CodeMirror-linewidget"+(Ot.className?" "+Ot.className:""));Ot.handleMouseEvents||Wt.setAttribute("cm-ignore-events","true"),ma(Ot,Wt,Ee,xe),y.display.input.setUneditable(Wt),Te&&Ot.above?Ge.insertBefore(Wt,Ee.gutter||Ee.text):Ge.appendChild(Wt),ca(Ot,"redraw")}}function ma(y,ee,Ee,xe){if(y.noHScroll){(Ee.alignable||(Ee.alignable=[])).push(ee);var Te=xe.wrapperWidth;ee.style.left=xe.fixedPos+"px",y.coverGutter||(Te-=xe.gutterTotalWidth,ee.style.paddingLeft=xe.gutterTotalWidth+"px"),ee.style.width=Te+"px"}y.coverGutter&&(ee.style.zIndex=5,ee.style.position="relative",y.noHScroll||(ee.style.marginLeft=-xe.gutterTotalWidth+"px"))}function ba(y){if(y.height!=null)return y.height;var ee=y.doc.cm;if(!ee)return 0;if(!Be(document.body,y.node)){var Ee="position: relative;";y.coverGutter&&(Ee+="margin-left: -"+ee.display.gutters.offsetWidth+"px;"),y.noHScroll&&(Ee+="width: "+ee.display.wrapper.clientWidth+"px;"),_e(ee.display.measure,ye("div",[y.node],null,Ee))}return y.height=y.node.parentNode.offsetHeight}function ir(y,ee){for(var Ee=ln(ee);Ee!=y.wrapper;Ee=Ee.parentNode)if(!Ee||Ee.nodeType==1&&Ee.getAttribute("cm-ignore-events")=="true"||Ee.parentNode==y.sizer&&Ee!=y.mover)return!0}function Ji(y){return y.lineSpace.offsetTop}function Va(y){return y.mover.offsetHeight-y.lineSpace.offsetHeight}function no(y){if(y.cachedPaddingH)return y.cachedPaddingH;var ee=_e(y.measure,ye("pre","x","CodeMirror-line-like")),Ee=window.getComputedStyle?window.getComputedStyle(ee):ee.currentStyle,xe={left:parseInt(Ee.paddingLeft),right:parseInt(Ee.paddingRight)};return!isNaN(xe.left)&&!isNaN(xe.right)&&(y.cachedPaddingH=xe),xe}function Ya(y){return nt-y.display.nativeBarWidth}function xi(y){return y.display.scroller.clientWidth-Ya(y)-y.display.barWidth}function pa(y){return y.display.scroller.clientHeight-Ya(y)-y.display.barHeight}function _a(y,ee,Ee){var xe=y.options.lineWrapping,Te=xe&&xi(y);if(!ee.measure.heights||xe&&ee.measure.width!=Te){var Ge=ee.measure.heights=[];if(xe){ee.measure.width=Te;for(var st=ee.text.firstChild.getClientRects(),wt=0;wt<st.length-1;wt++){var Ot=st[wt],Wt=st[wt+1];Math.abs(Ot.bottom-Wt.bottom)>2&&Ge.push((Ot.bottom+Wt.top)/2-Ee.top)}}Ge.push(Ee.bottom-Ee.top)}}function oa(y,ee,Ee){if(y.line==ee)return{map:y.measure.map,cache:y.measure.cache};for(var xe=0;xe<y.rest.length;xe++)if(y.rest[xe]==ee)return{map:y.measure.maps[xe],cache:y.measure.caches[xe]};for(var Te=0;Te<y.rest.length;Te++)if(Vt(y.rest[Te])>Ee)return{map:y.measure.maps[Te],cache:y.measure.caches[Te],before:!0}}function Wa(y,ee){ee=or(ee);var Ee=Vt(ee),xe=y.display.externalMeasured=new Vi(y.doc,ee,Ee);xe.lineN=Ee;var Te=xe.built=pi(y,xe);return xe.text=Te.pre,_e(y.display.lineMeasure,Te.pre),xe}function Ka(y,ee,Ee,xe){return io(y,Eo(y,ee),Ee,xe)}function fo(y,ee){if(ee>=y.display.viewFrom&&ee<y.display.viewTo)return y.display.view[xs(y,ee)];var Ee=y.display.externalMeasured;if(Ee&&ee>=Ee.lineN&&ee<Ee.lineN+Ee.size)return Ee}function Eo(y,ee){var Ee=Vt(ee),xe=fo(y,Ee);xe&&!xe.text?xe=null:xe&&xe.changes&&(zi(y,xe,Ee,Ns(y)),y.curOp.forceUpdate=!0),xe||(xe=Wa(y,ee));var Te=oa(xe,ee,Ee);return{line:ee,view:xe,rect:null,map:Te.map,cache:Te.cache,before:Te.before,hasHeights:!1}}function io(y,ee,Ee,xe,Te){ee.before&&(Ee=-1);var Ge=Ee+(xe||""),st;return ee.cache.hasOwnProperty(Ge)?st=ee.cache[Ge]:(ee.rect||(ee.rect=ee.view.text.getBoundingClientRect()),ee.hasHeights||(_a(y,ee.view,ee.rect),ee.hasHeights=!0),st=Wo(y,ee,Ee,xe),st.bogus||(ee.cache[Ge]=st)),{left:st.left,right:st.right,top:Te?st.rtop:st.top,bottom:Te?st.rbottom:st.bottom}}var ao={left:0,right:0,top:0,bottom:0};function Ba(y,ee,Ee){for(var xe,Te,Ge,st,wt,Ot,Wt=0;Wt<y.length;Wt+=3)if(wt=y[Wt],Ot=y[Wt+1],ee<wt?(Te=0,Ge=1,st="left"):ee<Ot?(Te=ee-wt,Ge=Te+1):(Wt==y.length-3||ee==Ot&&y[Wt+3]>ee)&&(Ge=Ot-wt,Te=Ge-1,ee>=Ot&&(st="right")),Te!=null){if(xe=y[Wt+2],wt==Ot&&Ee==(xe.insertLeft?"left":"right")&&(st=Ee),Ee=="left"&&Te==0)for(;Wt&&y[Wt-2]==y[Wt-3]&&y[Wt-1].insertLeft;)xe=y[(Wt-=3)+2],st="left";if(Ee=="right"&&Te==Ot-wt)for(;Wt<y.length-3&&y[Wt+3]==y[Wt+4]&&!y[Wt+5].insertLeft;)xe=y[(Wt+=3)+2],st="right";break}return{node:xe,start:Te,end:Ge,collapse:st,coverStart:wt,coverEnd:Ot}}function Fa(y,ee){var Ee=ao;if(ee=="left")for(var xe=0;xe<y.length&&(Ee=y[xe]).left==Ee.right;xe++);else for(var Te=y.length-1;Te>=0&&(Ee=y[Te]).left==Ee.right;Te--);return Ee}function Wo(y,ee,Ee,xe){var Te=Ba(ee.map,Ee,xe),Ge=Te.node,st=Te.start,wt=Te.end,Ot=Te.collapse,Wt;if(Ge.nodeType==3){for(var On=0;On<4;On++){for(;st&&tt(ee.line.text.charAt(Te.coverStart+st));)--st;for(;Te.coverStart+wt<Te.coverEnd&&tt(ee.line.text.charAt(Te.coverStart+wt));)++wt;if(Oe&&ve<9&&st==0&&wt==Te.coverEnd-Te.coverStart?Wt=Ge.parentNode.getBoundingClientRect():Wt=Fa(Se(Ge,st,wt).getClientRects(),xe),Wt.left||Wt.right||st==0)break;wt=st,st=st-1,Ot="right"}Oe&&ve<11&&(Wt=Ta(y.display.measure,Wt))}else{st>0&&(Ot=xe="right");var Hn;y.options.lineWrapping&&(Hn=Ge.getClientRects()).length>1?Wt=Hn[xe=="right"?Hn.length-1:0]:Wt=Ge.getBoundingClientRect()}if(Oe&&ve<9&&!st&&(!Wt||!Wt.left&&!Wt.right)){var Er=Ge.parentNode.getClientRects()[0];Er?Wt={left:Er.left,right:Er.left+wo(y.display),top:Er.top,bottom:Er.bottom}:Wt=ao}for(var vr=Wt.top-ee.rect.top,ai=Wt.bottom-ee.rect.top,Ai=(vr+ai)/2,Hi=ee.view.measure.heights,ea=0;ea<Hi.length-1&&!(Ai<Hi[ea]);ea++);var da=ea?Hi[ea-1]:0,ta=Hi[ea],ya={left:(Ot=="right"?Wt.right:Wt.left)-ee.rect.left,right:(Ot=="left"?Wt.left:Wt.right)-ee.rect.left,top:da,bottom:ta};return!Wt.left&&!Wt.right&&(ya.bogus=!0),y.options.singleCursorHeightPerLine||(ya.rtop=vr,ya.rbottom=ai),ya}function Ta(y,ee){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Wn(y))return ee;var Ee=screen.logicalXDPI/screen.deviceXDPI,xe=screen.logicalYDPI/screen.deviceYDPI;return{left:ee.left*Ee,right:ee.right*Ee,top:ee.top*xe,bottom:ee.bottom*xe}}function Oo(y){if(y.measure&&(y.measure.cache={},y.measure.heights=null,y.rest))for(var ee=0;ee<y.rest.length;ee++)y.measure.caches[ee]={}}function Do(y){y.display.externalMeasure=null,ge(y.display.lineMeasure);for(var ee=0;ee<y.display.view.length;ee++)Oo(y.display.view[ee])}function Xi(y){Do(y),y.display.cachedCharWidth=y.display.cachedTextHeight=y.display.cachedPaddingH=null,y.options.lineWrapping||(y.display.maxLineChanged=!0),y.display.lineNumChars=null}function Pi(){return he&&b?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function lo(){return he&&b?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Qa(y){var ee=0;if(y.widgets)for(var Ee=0;Ee<y.widgets.length;++Ee)y.widgets[Ee].above&&(ee+=ba(y.widgets[Ee]));return ee}function Ja(y,ee,Ee,xe,Te){if(!Te){var Ge=Qa(ee);Ee.top+=Ge,Ee.bottom+=Ge}if(xe=="line")return Ee;xe||(xe="local");var st=un(ee);if(xe=="local"?st+=Ji(y.display):st-=y.display.viewOffset,xe=="page"||xe=="window"){var wt=y.display.lineSpace.getBoundingClientRect();st+=wt.top+(xe=="window"?0:lo());var Ot=wt.left+(xe=="window"?0:Pi());Ee.left+=Ot,Ee.right+=Ot}return Ee.top+=st,Ee.bottom+=st,Ee}function zr(y,ee,Ee){if(Ee=="div")return ee;var xe=ee.left,Te=ee.top;if(Ee=="page")xe-=Pi(),Te-=lo();else if(Ee=="local"||!Ee){var Ge=y.display.sizer.getBoundingClientRect();xe+=Ge.left,Te+=Ge.top}var st=y.display.lineSpace.getBoundingClientRect();return{left:xe-st.left,top:Te-st.top}}function fi(y,ee,Ee,xe,Te){return xe||(xe=sn(y.doc,ee.line)),Ja(y,xe,Ka(y,xe,ee.ch,Te),Ee)}function Sa(y,ee,Ee,xe,Te,Ge){xe=xe||sn(y.doc,ee.line),Te||(Te=Eo(y,xe));function st(ai,Ai){var Hi=io(y,Te,ai,Ai?"right":"left",Ge);return Ai?Hi.left=Hi.right:Hi.right=Hi.left,Ja(y,xe,Hi,Ee)}var wt=ft(xe,y.doc.direction),Ot=ee.ch,Wt=ee.sticky;if(Ot>=xe.text.length?(Ot=xe.text.length,Wt="before"):Ot<=0&&(Ot=0,Wt="after"),!wt)return st(Wt=="before"?Ot-1:Ot,Wt=="before");function On(ai,Ai,Hi){var ea=wt[Ai],da=ea.level==1;return st(Hi?ai-1:ai,da!=Hi)}var Hn=mt(wt,Ot,Wt),Er=lt,vr=On(Ot,Hn,Wt=="before");return Er!=null&&(vr.other=On(Ot,Er,Wt!="before")),vr}function Ri(y,ee){var Ee=0;ee=Dt(y.doc,ee),y.options.lineWrapping||(Ee=wo(y.display)*ee.ch);var xe=sn(y.doc,ee.line),Te=un(xe)+Ji(y.display);return{left:Ee,right:Ee,top:Te,bottom:Te+xe.height}}function hi(y,ee,Ee,xe,Te){var Ge=Mt(y,ee,Ee);return Ge.xRel=Te,xe&&(Ge.outside=xe),Ge}function wa(y,ee,Ee){var xe=y.doc;if(Ee+=y.display.viewOffset,Ee<0)return hi(xe.first,0,null,-1,-1);var Te=Gt(xe,Ee),Ge=xe.first+xe.size-1;if(Te>Ge)return hi(xe.first+xe.size-1,sn(xe,Ge).text.length,null,1,1);ee<0&&(ee=0);for(var st=sn(xe,Te);;){var wt=ka(y,st,Te,ee,Ee),Ot=Dr(st,wt.ch+(wt.xRel>0||wt.outside>0?1:0));if(!Ot)return wt;var Wt=Ot.find(1);if(Wt.line==Te)return Wt;st=sn(xe,Te=Wt.line)}}function za(y,ee,Ee,xe){xe-=Qa(ee);var Te=ee.text.length,Ge=ot(function(st){return io(y,Ee,st-1).bottom<=xe},Te,0);return Te=ot(function(st){return io(y,Ee,st).top>xe},Ge,Te),{begin:Ge,end:Te}}function ga(y,ee,Ee,xe){Ee||(Ee=Eo(y,ee));var Te=Ja(y,ee,io(y,Ee,xe),"line").top;return za(y,ee,Ee,Te)}function ro(y,ee,Ee,xe){return y.bottom<=Ee?!1:y.top>Ee?!0:(xe?y.left:y.right)>ee}function ka(y,ee,Ee,xe,Te){Te-=un(ee);var Ge=Eo(y,ee),st=Qa(ee),wt=0,Ot=ee.text.length,Wt=!0,On=ft(ee,y.doc.direction);if(On){var Hn=(y.options.lineWrapping?Qo:Co)(y,ee,Ee,Ge,On,xe,Te);Wt=Hn.level!=1,wt=Wt?Hn.from:Hn.to-1,Ot=Wt?Hn.to:Hn.from-1}var Er=null,vr=null,ai=ot(function(Oa){var Aa=io(y,Ge,Oa);return Aa.top+=st,Aa.bottom+=st,ro(Aa,xe,Te,!1)?(Aa.top<=Te&&Aa.left<=xe&&(Er=Oa,vr=Aa),!0):!1},wt,Ot),Ai,Hi,ea=!1;if(vr){var da=xe-vr.left<vr.right-xe,ta=da==Wt;ai=Er+(ta?0:1),Hi=ta?"after":"before",Ai=da?vr.left:vr.right}else{!Wt&&(ai==Ot||ai==wt)&&ai++,Hi=ai==0?"after":ai==ee.text.length?"before":io(y,Ge,ai-(Wt?1:0)).bottom+st<=Te==Wt?"after":"before";var ya=Sa(y,Mt(Ee,ai,Hi),"line",ee,Ge);Ai=ya.left,ea=Te<ya.top?-1:Te>=ya.bottom?1:0}return ai=at(ee.text,ai,1),hi(Ee,ai,Hi,ea,xe-Ai)}function Co(y,ee,Ee,xe,Te,Ge,st){var wt=ot(function(Hn){var Er=Te[Hn],vr=Er.level!=1;return ro(Sa(y,Mt(Ee,vr?Er.to:Er.from,vr?"before":"after"),"line",ee,xe),Ge,st,!0)},0,Te.length-1),Ot=Te[wt];if(wt>0){var Wt=Ot.level!=1,On=Sa(y,Mt(Ee,Wt?Ot.from:Ot.to,Wt?"after":"before"),"line",ee,xe);ro(On,Ge,st,!0)&&On.top>st&&(Ot=Te[wt-1])}return Ot}function Qo(y,ee,Ee,xe,Te,Ge,st){var wt=za(y,ee,xe,st),Ot=wt.begin,Wt=wt.end;/\s/.test(ee.text.charAt(Wt-1))&&Wt--;for(var On=null,Hn=null,Er=0;Er<Te.length;Er++){var vr=Te[Er];if(!(vr.from>=Wt||vr.to<=Ot)){var ai=vr.level!=1,Ai=io(y,xe,ai?Math.min(Wt,vr.to)-1:Math.max(Ot,vr.from)).right,Hi=Ai<Ge?Ge-Ai+1e9:Ai-Ge;(!On||Hn>Hi)&&(On=vr,Hn=Hi)}}return On||(On=Te[Te.length-1]),On.from<Ot&&(On={from:Ot,to:On.to,level:On.level}),On.to>Wt&&(On={from:On.from,to:Wt,level:On.level}),On}var Ro;function Jo(y){if(y.cachedTextHeight!=null)return y.cachedTextHeight;if(Ro==null){Ro=ye("pre",null,"CodeMirror-line-like");for(var ee=0;ee<49;++ee)Ro.appendChild(document.createTextNode("x")),Ro.appendChild(ye("br"));Ro.appendChild(document.createTextNode("x"))}_e(y.measure,Ro);var Ee=Ro.offsetHeight/50;return Ee>3&&(y.cachedTextHeight=Ee),ge(y.measure),Ee||1}function wo(y){if(y.cachedCharWidth!=null)return y.cachedCharWidth;var ee=ye("span","xxxxxxxxxx"),Ee=ye("pre",[ee],"CodeMirror-line-like");_e(y.measure,Ee);var xe=ee.getBoundingClientRect(),Te=(xe.right-xe.left)/10;return Te>2&&(y.cachedCharWidth=Te),Te||10}function Ns(y){for(var ee=y.display,Ee={},xe={},Te=ee.gutters.clientLeft,Ge=ee.gutters.firstChild,st=0;Ge;Ge=Ge.nextSibling,++st){var wt=y.display.gutterSpecs[st].className;Ee[wt]=Ge.offsetLeft+Ge.clientLeft+Te,xe[wt]=Ge.clientWidth}return{fixedPos:uo(ee),gutterTotalWidth:ee.gutters.offsetWidth,gutterLeft:Ee,gutterWidth:xe,wrapperWidth:ee.wrapper.clientWidth}}function uo(y){return y.scroller.getBoundingClientRect().left-y.sizer.getBoundingClientRect().left}function As(y){var ee=Jo(y.display),Ee=y.options.lineWrapping,xe=Ee&&Math.max(5,y.display.scroller.clientWidth/wo(y.display)-3);return function(Te){if(Hr(y.doc,Te))return 0;var Ge=0;if(Te.widgets)for(var st=0;st<Te.widgets.length;st++)Te.widgets[st].height&&(Ge+=Te.widgets[st].height);return Ee?Ge+(Math.ceil(Te.text.length/xe)||1)*ee:Ge+ee}}function Ds(y){var ee=y.doc,Ee=As(y);ee.iter(function(xe){var Te=Ee(xe);Te!=xe.height&&tr(xe,Te)})}function _s(y,ee,Ee,xe){var Te=y.display;if(!Ee&&ln(ee).getAttribute("cm-not-content")=="true")return null;var Ge,st,wt=Te.lineSpace.getBoundingClientRect();try{Ge=ee.clientX-wt.left,st=ee.clientY-wt.top}catch(Hn){return null}var Ot=wa(y,Ge,st),Wt;if(xe&&Ot.xRel>0&&(Wt=sn(y.doc,Ot.line).text).length==Ot.ch){var On=Ne(Wt,Wt.length,y.options.tabSize)-Wt.length;Ot=Mt(Ot.line,Math.max(0,Math.round((Ge-no(y.display).left)/wo(y.display))-On))}return Ot}function xs(y,ee){if(ee>=y.display.viewTo||(ee-=y.display.viewFrom,ee<0))return null;for(var Ee=y.display.view,xe=0;xe<Ee.length;xe++)if(ee-=Ee[xe].size,ee<0)return xe}function To(y,ee,Ee,xe){ee==null&&(ee=y.doc.first),Ee==null&&(Ee=y.doc.first+y.doc.size),xe||(xe=0);var Te=y.display;if(xe&&Ee<Te.viewTo&&(Te.updateLineNumbers==null||Te.updateLineNumbers>ee)&&(Te.updateLineNumbers=ee),y.curOp.viewChanged=!0,ee>=Te.viewTo)qr&&wr(y.doc,ee)<Te.viewTo&&ls(y);else if(Ee<=Te.viewFrom)qr&&Ir(y.doc,Ee+xe)>Te.viewFrom?ls(y):(Te.viewFrom+=xe,Te.viewTo+=xe);else if(ee<=Te.viewFrom&&Ee>=Te.viewTo)ls(y);else if(ee<=Te.viewFrom){var Ge=Qs(y,Ee,Ee+xe,1);Ge?(Te.view=Te.view.slice(Ge.index),Te.viewFrom=Ge.lineN,Te.viewTo+=xe):ls(y)}else if(Ee>=Te.viewTo){var st=Qs(y,ee,ee,-1);st?(Te.view=Te.view.slice(0,st.index),Te.viewTo=st.lineN):ls(y)}else{var wt=Qs(y,ee,ee,-1),Ot=Qs(y,Ee,Ee+xe,1);wt&&Ot?(Te.view=Te.view.slice(0,wt.index).concat(sa(y,wt.lineN,Ot.lineN)).concat(Te.view.slice(Ot.index)),Te.viewTo+=xe):ls(y)}var Wt=Te.externalMeasured;Wt&&(Ee<Wt.lineN?Wt.lineN+=xe:ee<Wt.lineN+Wt.size&&(Te.externalMeasured=null))}function Ts(y,ee,Ee){y.curOp.viewChanged=!0;var xe=y.display,Te=y.display.externalMeasured;if(Te&&ee>=Te.lineN&&ee<Te.lineN+Te.size&&(xe.externalMeasured=null),!(ee<xe.viewFrom||ee>=xe.viewTo)){var Ge=xe.view[xs(y,ee)];if(Ge.node!=null){var st=Ge.changes||(Ge.changes=[]);$e(st,Ee)==-1&&st.push(Ee)}}}function ls(y){y.display.viewFrom=y.display.viewTo=y.doc.first,y.display.view=[],y.display.viewOffset=0}function Qs(y,ee,Ee,xe){var Te=xs(y,ee),Ge,st=y.display.view;if(!qr||Ee==y.doc.first+y.doc.size)return{index:Te,lineN:Ee};for(var wt=y.display.viewFrom,Ot=0;Ot<Te;Ot++)wt+=st[Ot].size;if(wt!=ee){if(xe>0){if(Te==st.length-1)return null;Ge=wt+st[Te].size-ee,Te++}else Ge=wt-ee;ee+=Ge,Ee+=Ge}for(;wr(y.doc,Ee)!=Ee;){if(Te==(xe<0?0:st.length-1))return null;Ee+=xe*st[Te-(xe<0?1:0)].size,Te+=xe}return{index:Te,lineN:Ee}}function wl(y,ee,Ee){var xe=y.display,Te=xe.view;Te.length==0||ee>=xe.viewTo||Ee<=xe.viewFrom?(xe.view=sa(y,ee,Ee),xe.viewFrom=ee):(xe.viewFrom>ee?xe.view=sa(y,ee,xe.viewFrom).concat(xe.view):xe.viewFrom<ee&&(xe.view=xe.view.slice(xs(y,ee))),xe.viewFrom=ee,xe.viewTo<Ee?xe.view=xe.view.concat(sa(y,xe.viewTo,Ee)):xe.viewTo>Ee&&(xe.view=xe.view.slice(0,xs(y,Ee)))),xe.viewTo=Ee}function Js(y){for(var ee=y.display.view,Ee=0,xe=0;xe<ee.length;xe++){var Te=ee[xe];!Te.hidden&&(!Te.node||Te.changes)&&++Ee}return Ee}function Es(y){y.display.input.showSelection(y.display.input.prepareSelection())}function pl(y,ee){ee===void 0&&(ee=!0);for(var Ee=y.doc,xe={},Te=xe.cursors=document.createDocumentFragment(),Ge=xe.selection=document.createDocumentFragment(),st=0;st<Ee.sel.ranges.length;st++)if(!(!ee&&st==Ee.sel.primIndex)){var wt=Ee.sel.ranges[st];if(!(wt.from().line>=y.display.viewTo||wt.to().line<y.display.viewFrom)){var Ot=wt.empty();(Ot||y.options.showCursorWhenSelecting)&&Cs(y,wt.head,Te),Ot||qs(y,wt,Ge)}}return xe}function Cs(y,ee,Ee){var xe=Sa(y,ee,"div",null,null,!y.options.singleCursorHeightPerLine),Te=Ee.appendChild(ye("div","\xA0","CodeMirror-cursor"));if(Te.style.left=xe.left+"px",Te.style.top=xe.top+"px",Te.style.height=Math.max(0,xe.bottom-xe.top)*y.options.cursorHeight+"px",xe.other){var Ge=Ee.appendChild(ye("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Ge.style.display="",Ge.style.left=xe.other.left+"px",Ge.style.top=xe.other.top+"px",Ge.style.height=(xe.other.bottom-xe.other.top)*.85+"px"}}function $s(y,ee){return y.top-ee.top||y.left-ee.left}function qs(y,ee,Ee){var xe=y.display,Te=y.doc,Ge=document.createDocumentFragment(),st=no(y.display),wt=st.left,Ot=Math.max(xe.sizerWidth,xi(y)-xe.sizer.offsetLeft)-st.right,Wt=Te.direction=="ltr";function On(ta,ya,Oa,Aa){ya<0&&(ya=0),ya=Math.round(ya),Aa=Math.round(Aa),Ge.appendChild(ye("div",null,"CodeMirror-selected","position: absolute; left: "+ta+`px;
|
|
|
top: `+ya+"px; width: "+(Oa==null?Ot-ta:Oa)+`px;
|
|
|
height: `+(Aa-ya)+"px"))}function Hn(ta,ya,Oa){var Aa=sn(Te,ta),ja=Aa.text.length,So,os;function Fo(Xo,Rs){return fi(y,Mt(ta,Xo),"div",Aa,Rs)}function js(Xo,Rs,ds){var es=ga(y,Aa,null,Xo),Yo=Rs=="ltr"==(ds=="after")?"left":"right",Uo=ds=="after"?es.begin:es.end-(/\s/.test(Aa.text.charAt(es.end-1))?2:1);return Fo(Uo,Yo)[Yo]}var Ls=ft(Aa,Te.direction);return ct(Ls,ya||0,Oa==null?ja:Oa,function(Xo,Rs,ds,es){var Yo=ds=="ltr",Uo=Fo(Xo,Yo?"left":"right"),Bs=Fo(Rs-1,Yo?"right":"left"),ql=ya==null&&Xo==0,Il=Oa==null&&Rs==ja,ys=es==0,ml=!Ls||es==Ls.length-1;if(Bs.top-Uo.top<=3){var ss=(Wt?ql:Il)&&ys,Ou=(Wt?Il:ql)&&ml,Sl=ss?wt:(Yo?Uo:Bs).left,Hl=Ou?Ot:(Yo?Bs:Uo).right;On(Sl,Uo.top,Hl-Sl,Uo.bottom)}else{var Kl,ws,eu,Pu;Yo?(Kl=Wt&&ql&&ys?wt:Uo.left,ws=Wt?Ot:js(Xo,ds,"before"),eu=Wt?wt:js(Rs,ds,"after"),Pu=Wt&&Il&&ml?Ot:Bs.right):(Kl=Wt?js(Xo,ds,"before"):wt,ws=!Wt&&ql&&ys?Ot:Uo.right,eu=!Wt&&Il&&ml?wt:Bs.left,Pu=Wt?js(Rs,ds,"after"):Ot),On(Kl,Uo.top,ws-Kl,Uo.bottom),Uo.bottom<Bs.top&&On(wt,Uo.bottom,null,Bs.top),On(eu,Bs.top,Pu-eu,Bs.bottom)}(!So||$s(Uo,So)<0)&&(So=Uo),$s(Bs,So)<0&&(So=Bs),(!os||$s(Uo,os)<0)&&(os=Uo),$s(Bs,os)<0&&(os=Bs)}),{start:So,end:os}}var Er=ee.from(),vr=ee.to();if(Er.line==vr.line)Hn(Er.line,Er.ch,vr.ch);else{var ai=sn(Te,Er.line),Ai=sn(Te,vr.line),Hi=or(ai)==or(Ai),ea=Hn(Er.line,Er.ch,Hi?ai.text.length+1:null).end,da=Hn(vr.line,Hi?0:null,vr.ch).start;Hi&&(ea.top<da.top-2?(On(ea.right,ea.top,null,ea.bottom),On(wt,da.top,da.left,da.bottom)):On(ea.right,ea.top,da.left-ea.right,ea.bottom)),ea.bottom<da.top&&On(wt,ea.bottom,null,da.top)}Ee.appendChild(Ge)}function Ms(y){if(y.state.focused){var ee=y.display;clearInterval(ee.blinker);var Ee=!0;ee.cursorDiv.style.visibility="",y.options.cursorBlinkRate>0?ee.blinker=setInterval(function(){y.hasFocus()||Fs(y),ee.cursorDiv.style.visibility=(Ee=!Ee)?"":"hidden"},y.options.cursorBlinkRate):y.options.cursorBlinkRate<0&&(ee.cursorDiv.style.visibility="hidden")}}function Vo(y){y.state.focused||(y.display.input.focus(),ul(y))}function fs(y){y.state.delayingBlurEvent=!0,setTimeout(function(){y.state.delayingBlurEvent&&(y.state.delayingBlurEvent=!1,Fs(y))},100)}function ul(y,ee){y.state.delayingBlurEvent&&(y.state.delayingBlurEvent=!1),y.options.readOnly!="nocursor"&&(y.state.focused||(xn(y,"focus",y,ee),y.state.focused=!0,we(y.display.wrapper,"CodeMirror-focused"),!y.curOp&&y.display.selForContextMenu!=y.doc.sel&&(y.display.input.reset(),ue&&setTimeout(function(){return y.display.input.reset(!0)},20)),y.display.input.receivedFocus()),Ms(y))}function Fs(y,ee){y.state.delayingBlurEvent||(y.state.focused&&(xn(y,"blur",y,ee),y.state.focused=!1,ce(y.display.wrapper,"CodeMirror-focused")),clearInterval(y.display.blinker),setTimeout(function(){y.state.focused||(y.display.shift=!1)},150))}function xa(y){for(var ee=y.display,Ee=ee.lineDiv.offsetTop,xe=0;xe<ee.view.length;xe++){var Te=ee.view[xe],Ge=y.options.lineWrapping,st=void 0,wt=0;if(!Te.hidden){if(Oe&&ve<8){var Ot=Te.node.offsetTop+Te.node.offsetHeight;st=Ot-Ee,Ee=Ot}else{var Wt=Te.node.getBoundingClientRect();st=Wt.bottom-Wt.top,!Ge&&Te.text.firstChild&&(wt=Te.text.firstChild.getBoundingClientRect().right-Wt.left-1)}var On=Te.line.height-st;if((On>.005||On<-.005)&&(tr(Te.line,st),ol(Te.line),Te.rest))for(var Hn=0;Hn<Te.rest.length;Hn++)ol(Te.rest[Hn]);if(wt>y.display.sizerWidth){var Er=Math.ceil(wt/wo(y.display));Er>y.display.maxLineLength&&(y.display.maxLineLength=Er,y.display.maxLine=Te.line,y.display.maxLineChanged=!0)}}}}function ol(y){if(y.widgets)for(var ee=0;ee<y.widgets.length;++ee){var Ee=y.widgets[ee],xe=Ee.node.parentNode;xe&&(Ee.height=xe.offsetHeight)}}function ks(y,ee,Ee){var xe=Ee&&Ee.top!=null?Math.max(0,Ee.top):y.scroller.scrollTop;xe=Math.floor(xe-Ji(y));var Te=Ee&&Ee.bottom!=null?Ee.bottom:xe+y.wrapper.clientHeight,Ge=Gt(ee,xe),st=Gt(ee,Te);if(Ee&&Ee.ensure){var wt=Ee.ensure.from.line,Ot=Ee.ensure.to.line;wt<Ge?(Ge=wt,st=Gt(ee,un(sn(ee,wt))+y.wrapper.clientHeight)):Math.min(Ot,ee.lastLine())>=st&&(Ge=Gt(ee,un(sn(ee,Ot))-y.wrapper.clientHeight),st=Ot)}return{from:Ge,to:Math.max(st,Ge+1)}}function bs(y,ee){if(!an(y,"scrollCursorIntoView")){var Ee=y.display,xe=Ee.sizer.getBoundingClientRect(),Te=null;if(ee.top+xe.top<0?Te=!0:ee.bottom+xe.top>(window.innerHeight||document.documentElement.clientHeight)&&(Te=!1),Te!=null&&!me){var Ge=ye("div","\u200B",null,`position: absolute;
|
|
|
top: `+(ee.top-Ee.viewOffset-Ji(y.display))+`px;
|
|
|
height: `+(ee.bottom-ee.top+Ya(y)+Ee.barHeight)+`px;
|
|
|
left: `+ee.left+"px; width: "+Math.max(2,ee.right-ee.left)+"px;");y.display.lineSpace.appendChild(Ge),Ge.scrollIntoView(Te),y.display.lineSpace.removeChild(Ge)}}}function cl(y,ee,Ee,xe){xe==null&&(xe=0);var Te;!y.options.lineWrapping&&ee==Ee&&(ee=ee.ch?Mt(ee.line,ee.sticky=="before"?ee.ch-1:ee.ch,"after"):ee,Ee=ee.sticky=="before"?Mt(ee.line,ee.ch+1,"before"):ee);for(var Ge=0;Ge<5;Ge++){var st=!1,wt=Sa(y,ee),Ot=!Ee||Ee==ee?wt:Sa(y,Ee);Te={left:Math.min(wt.left,Ot.left),top:Math.min(wt.top,Ot.top)-xe,right:Math.max(wt.left,Ot.left),bottom:Math.max(wt.bottom,Ot.bottom)+xe};var Wt=Vs(y,Te),On=y.doc.scrollTop,Hn=y.doc.scrollLeft;if(Wt.scrollTop!=null&&(el(y,Wt.scrollTop),Math.abs(y.doc.scrollTop-On)>1&&(st=!0)),Wt.scrollLeft!=null&&(zs(y,Wt.scrollLeft),Math.abs(y.doc.scrollLeft-Hn)>1&&(st=!0)),!st)break}return Te}function Al(y,ee){var Ee=Vs(y,ee);Ee.scrollTop!=null&&el(y,Ee.scrollTop),Ee.scrollLeft!=null&&zs(y,Ee.scrollLeft)}function Vs(y,ee){var Ee=y.display,xe=Jo(y.display);ee.top<0&&(ee.top=0);var Te=y.curOp&&y.curOp.scrollTop!=null?y.curOp.scrollTop:Ee.scroller.scrollTop,Ge=pa(y),st={};ee.bottom-ee.top>Ge&&(ee.bottom=ee.top+Ge);var wt=y.doc.height+Va(Ee),Ot=ee.top<xe,Wt=ee.bottom>wt-xe;if(ee.top<Te)st.scrollTop=Ot?0:ee.top;else if(ee.bottom>Te+Ge){var On=Math.min(ee.top,(Wt?wt:ee.bottom)-Ge);On!=Te&&(st.scrollTop=On)}var Hn=y.options.fixedGutter?0:Ee.gutters.offsetWidth,Er=y.curOp&&y.curOp.scrollLeft!=null?y.curOp.scrollLeft:Ee.scroller.scrollLeft-Hn,vr=xi(y)-Ee.gutters.offsetWidth,ai=ee.right-ee.left>vr;return ai&&(ee.right=ee.left+vr),ee.left<10?st.scrollLeft=0:ee.left<Er?st.scrollLeft=Math.max(0,ee.left+Hn-(ai?0:10)):ee.right>vr+Er-3&&(st.scrollLeft=ee.right+(ai?0:10)-vr),st}function Zs(y,ee){ee!=null&&($o(y),y.curOp.scrollTop=(y.curOp.scrollTop==null?y.doc.scrollTop:y.curOp.scrollTop)+ee)}function Us(y){$o(y);var ee=y.getCursor();y.curOp.scrollToPos={from:ee,to:ee,margin:y.options.cursorScrollMargin}}function Ws(y,ee,Ee){(ee!=null||Ee!=null)&&$o(y),ee!=null&&(y.curOp.scrollLeft=ee),Ee!=null&&(y.curOp.scrollTop=Ee)}function Ll(y,ee){$o(y),y.curOp.scrollToPos=ee}function $o(y){var ee=y.curOp.scrollToPos;if(ee){y.curOp.scrollToPos=null;var Ee=Ri(y,ee.from),xe=Ri(y,ee.to);dl(y,Ee,xe,ee.margin)}}function dl(y,ee,Ee,xe){var Te=Vs(y,{left:Math.min(ee.left,Ee.left),top:Math.min(ee.top,Ee.top)-xe,right:Math.max(ee.right,Ee.right),bottom:Math.max(ee.bottom,Ee.bottom)+xe});Ws(y,Te.scrollLeft,Te.scrollTop)}function el(y,ee){Math.abs(y.doc.scrollTop-ee)<2||(te||co(y,{top:ee}),gl(y,ee,!0),te&&co(y),Xs(y,100))}function gl(y,ee,Ee){ee=Math.max(0,Math.min(y.display.scroller.scrollHeight-y.display.scroller.clientHeight,ee)),!(y.display.scroller.scrollTop==ee&&!Ee)&&(y.doc.scrollTop=ee,y.display.scrollbars.setScrollTop(ee),y.display.scroller.scrollTop!=ee&&(y.display.scroller.scrollTop=ee))}function zs(y,ee,Ee,xe){ee=Math.max(0,Math.min(ee,y.display.scroller.scrollWidth-y.display.scroller.clientWidth)),!((Ee?ee==y.doc.scrollLeft:Math.abs(y.doc.scrollLeft-ee)<2)&&!xe)&&(y.doc.scrollLeft=ee,Xt(y),y.display.scroller.scrollLeft!=ee&&(y.display.scroller.scrollLeft=ee),y.display.scrollbars.setScrollLeft(ee))}function tl(y){var ee=y.display,Ee=ee.gutters.offsetWidth,xe=Math.round(y.doc.height+Va(y.display));return{clientHeight:ee.scroller.clientHeight,viewHeight:ee.wrapper.clientHeight,scrollWidth:ee.scroller.scrollWidth,clientWidth:ee.scroller.clientWidth,viewWidth:ee.wrapper.clientWidth,barLeft:y.options.fixedGutter?Ee:0,docHeight:xe,scrollHeight:xe+Ya(y)+ee.barHeight,nativeBarWidth:ee.nativeBarWidth,gutterWidth:Ee}}var Gs=function(y,ee,Ee){this.cm=Ee;var xe=this.vert=ye("div",[ye("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Te=this.horiz=ye("div",[ye("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");xe.tabIndex=Te.tabIndex=-1,y(xe),y(Te),nn(xe,"scroll",function(){xe.clientHeight&&ee(xe.scrollTop,"vertical")}),nn(Te,"scroll",function(){Te.clientWidth&&ee(Te.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Oe&&ve<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Gs.prototype.update=function(y){var ee=y.scrollWidth>y.clientWidth+1,Ee=y.scrollHeight>y.clientHeight+1,xe=y.nativeBarWidth;if(Ee){this.vert.style.display="block",this.vert.style.bottom=ee?xe+"px":"0";var Te=y.viewHeight-(ee?xe:0);this.vert.firstChild.style.height=Math.max(0,y.scrollHeight-y.clientHeight+Te)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(ee){this.horiz.style.display="block",this.horiz.style.right=Ee?xe+"px":"0",this.horiz.style.left=y.barLeft+"px";var Ge=y.viewWidth-y.barLeft-(Ee?xe:0);this.horiz.firstChild.style.width=Math.max(0,y.scrollWidth-y.clientWidth+Ge)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&y.clientHeight>0&&(xe==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:Ee?xe:0,bottom:ee?xe:0}},Gs.prototype.setScrollLeft=function(y){this.horiz.scrollLeft!=y&&(this.horiz.scrollLeft=y),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Gs.prototype.setScrollTop=function(y){this.vert.scrollTop!=y&&(this.vert.scrollTop=y),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Gs.prototype.zeroWidthHack=function(){var y=ne&&!ie?"12px":"18px";this.horiz.style.height=this.vert.style.width=y,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Re,this.disableVert=new Re},Gs.prototype.enableZeroWidthBar=function(y,ee,Ee){y.style.pointerEvents="auto";function xe(){var Te=y.getBoundingClientRect(),Ge=Ee=="vert"?document.elementFromPoint(Te.right-1,(Te.top+Te.bottom)/2):document.elementFromPoint((Te.right+Te.left)/2,Te.bottom-1);Ge!=y?y.style.pointerEvents="none":ee.set(1e3,xe)}ee.set(1e3,xe)},Gs.prototype.clear=function(){var y=this.horiz.parentNode;y.removeChild(this.horiz),y.removeChild(this.vert)};var nl=function(){};nl.prototype.update=function(){return{bottom:0,right:0}},nl.prototype.setScrollLeft=function(){},nl.prototype.setScrollTop=function(){},nl.prototype.clear=function(){};function hs(y,ee){ee||(ee=tl(y));var Ee=y.display.barWidth,xe=y.display.barHeight;yl(y,ee);for(var Te=0;Te<4&&Ee!=y.display.barWidth||xe!=y.display.barHeight;Te++)Ee!=y.display.barWidth&&y.options.lineWrapping&&xa(y),yl(y,tl(y)),Ee=y.display.barWidth,xe=y.display.barHeight}function yl(y,ee){var Ee=y.display,xe=Ee.scrollbars.update(ee);Ee.sizer.style.paddingRight=(Ee.barWidth=xe.right)+"px",Ee.sizer.style.paddingBottom=(Ee.barHeight=xe.bottom)+"px",Ee.heightForcer.style.borderBottom=xe.bottom+"px solid transparent",xe.right&&xe.bottom?(Ee.scrollbarFiller.style.display="block",Ee.scrollbarFiller.style.height=xe.bottom+"px",Ee.scrollbarFiller.style.width=xe.right+"px"):Ee.scrollbarFiller.style.display="",xe.bottom&&y.options.coverGutterNextToScrollbar&&y.options.fixedGutter?(Ee.gutterFiller.style.display="block",Ee.gutterFiller.style.height=xe.bottom+"px",Ee.gutterFiller.style.width=ee.gutterWidth+"px"):Ee.gutterFiller.style.display=""}var Hs={native:Gs,null:nl};function _l(y){y.display.scrollbars&&(y.display.scrollbars.clear(),y.display.scrollbars.addClass&&ce(y.display.wrapper,y.display.scrollbars.addClass)),y.display.scrollbars=new Hs[y.options.scrollbarStyle](function(ee){y.display.wrapper.insertBefore(ee,y.display.scrollbarFiller),nn(ee,"mousedown",function(){y.state.focused&&setTimeout(function(){return y.display.input.focus()},0)}),ee.setAttribute("cm-not-content","true")},function(ee,Ee){Ee=="horizontal"?zs(y,ee):el(y,ee)},y),y.display.scrollbars.addClass&&we(y.display.wrapper,y.display.scrollbars.addClass)}var Ss=0;function vs(y){y.curOp={cm:y,viewChanged:!1,startHeight:y.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:++Ss},Ni(y.curOp)}function ha(y){var ee=y.curOp;ee&&Mi(ee,function(Ee){for(var xe=0;xe<Ee.ops.length;xe++)Ee.ops[xe].cm.curOp=null;ts(Ee)})}function ts(y){for(var ee=y.ops,Ee=0;Ee<ee.length;Ee++)Dl(ee[Ee]);for(var xe=0;xe<ee.length;xe++)xl(ee[xe]);for(var Te=0;Te<ee.length;Te++)ns(ee[Te]);for(var Ge=0;Ge<ee.length;Ge++)Rl(ee[Ge]);for(var st=0;st<ee.length;st++)Bl(ee[st])}function Dl(y){var ee=y.cm,Ee=ee.display;va(ee),y.updateMaxLine&&Sn(ee),y.mustUpdate=y.viewChanged||y.forceUpdate||y.scrollTop!=null||y.scrollToPos&&(y.scrollToPos.from.line<Ee.viewFrom||y.scrollToPos.to.line>=Ee.viewTo)||Ee.maxLineChanged&&ee.options.lineWrapping,y.update=y.mustUpdate&&new $i(ee,y.mustUpdate&&{top:y.scrollTop,ensure:y.scrollToPos},y.forceUpdate)}function xl(y){y.updatedDisplay=y.mustUpdate&&La(y.cm,y.update)}function ns(y){var ee=y.cm,Ee=ee.display;y.updatedDisplay&&xa(ee),y.barMeasure=tl(ee),Ee.maxLineChanged&&!ee.options.lineWrapping&&(y.adjustWidthTo=Ka(ee,Ee.maxLine,Ee.maxLine.text.length).left+3,ee.display.sizerWidth=y.adjustWidthTo,y.barMeasure.scrollWidth=Math.max(Ee.scroller.clientWidth,Ee.sizer.offsetLeft+y.adjustWidthTo+Ya(ee)+ee.display.barWidth),y.maxScrollLeft=Math.max(0,Ee.sizer.offsetLeft+y.adjustWidthTo-xi(ee))),(y.updatedDisplay||y.selectionChanged)&&(y.preparedSelection=Ee.input.prepareSelection())}function Rl(y){var ee=y.cm;y.adjustWidthTo!=null&&(ee.display.sizer.style.minWidth=y.adjustWidthTo+"px",y.maxScrollLeft<ee.doc.scrollLeft&&zs(ee,Math.min(ee.display.scroller.scrollLeft,y.maxScrollLeft),!0),ee.display.maxLineChanged=!1);var Ee=y.focus&&y.focus==Ae();y.preparedSelection&&ee.display.input.showSelection(y.preparedSelection,Ee),(y.updatedDisplay||y.startHeight!=ee.doc.height)&&hs(ee,y.barMeasure),y.updatedDisplay&&xt(ee,y.barMeasure),y.selectionChanged&&Ms(ee),ee.state.focused&&y.updateInput&&ee.display.input.reset(y.typing),Ee&&Vo(y.cm)}function Bl(y){var ee=y.cm,Ee=ee.display,xe=ee.doc;if(y.updatedDisplay&&Pa(ee,y.update),Ee.wheelStartX!=null&&(y.scrollTop!=null||y.scrollLeft!=null||y.scrollToPos)&&(Ee.wheelStartX=Ee.wheelStartY=null),y.scrollTop!=null&&gl(ee,y.scrollTop,y.forceScroll),y.scrollLeft!=null&&zs(ee,y.scrollLeft,!0,!0),y.scrollToPos){var Te=cl(ee,Dt(xe,y.scrollToPos.from),Dt(xe,y.scrollToPos.to),y.scrollToPos.margin);bs(ee,Te)}var Ge=y.maybeHiddenMarkers,st=y.maybeUnhiddenMarkers;if(Ge)for(var wt=0;wt<Ge.length;++wt)Ge[wt].lines.length||xn(Ge[wt],"hide");if(st)for(var Ot=0;Ot<st.length;++Ot)st[Ot].lines.length&&xn(st[Ot],"unhide");Ee.wrapper.offsetHeight&&(xe.scrollTop=ee.display.scroller.scrollTop),y.changeObjs&&xn(ee,"changes",ee,y.changeObjs),y.update&&y.update.finish()}function Zo(y,ee){if(y.curOp)return ee();vs(y);try{return ee()}finally{ha(y)}}function yo(y,ee){return function(){if(y.curOp)return ee.apply(y,arguments);vs(y);try{return ee.apply(y,arguments)}finally{ha(y)}}}function zo(y){return function(){if(this.curOp)return y.apply(this,arguments);vs(this);try{return y.apply(this,arguments)}finally{ha(this)}}}function Mo(y){return function(){var ee=this.cm;if(!ee||ee.curOp)return y.apply(this,arguments);vs(ee);try{return y.apply(this,arguments)}finally{ha(ee)}}}function Xs(y,ee){y.doc.highlightFrontier<y.display.viewTo&&y.state.highlight.set(ee,ze(jn,y))}function jn(y){var ee=y.doc;if(!(ee.highlightFrontier>=y.display.viewTo)){var Ee=+new Date+y.options.workTime,xe=_r(y,ee.highlightFrontier),Te=[];ee.iter(xe.line,Math.min(ee.first+ee.size,y.display.viewTo+500),function(Ge){if(xe.line>=y.display.viewFrom){var st=Ge.styles,wt=Ge.text.length>y.options.maxHighlightLength?ht(ee.mode,xe.state):null,Ot=Fn(y,Ge,xe,!0);wt&&(xe.state=wt),Ge.styles=Ot.styles;var Wt=Ge.styleClasses,On=Ot.classes;On?Ge.styleClasses=On:Wt&&(Ge.styleClasses=null);for(var Hn=!st||st.length!=Ge.styles.length||Wt!=On&&(!Wt||!On||Wt.bgClass!=On.bgClass||Wt.textClass!=On.textClass),Er=0;!Hn&&Er<st.length;++Er)Hn=st[Er]!=Ge.styles[Er];Hn&&Te.push(xe.line),Ge.stateAfter=xe.save(),xe.nextLine()}else Ge.text.length<=y.options.maxHighlightLength&&Kr(y,Ge.text,xe),Ge.stateAfter=xe.line%5==0?xe.save():null,xe.nextLine();if(+new Date>Ee)return Xs(y,y.options.workDelay),!0}),ee.highlightFrontier=xe.line,ee.modeFrontier=Math.max(ee.modeFrontier,xe.line),Te.length&&Zo(y,function(){for(var Ge=0;Ge<Te.length;Ge++)Ts(y,Te[Ge],"text")})}}var $i=function(y,ee,Ee){var xe=y.display;this.viewport=ee,this.visible=ks(xe,y.doc,ee),this.editorIsHidden=!xe.wrapper.offsetWidth,this.wrapperHeight=xe.wrapper.clientHeight,this.wrapperWidth=xe.wrapper.clientWidth,this.oldDisplayWidth=xi(y),this.force=Ee,this.dims=Ns(y),this.events=[]};$i.prototype.signal=function(y,ee){Jt(y,ee)&&this.events.push(arguments)},$i.prototype.finish=function(){for(var y=0;y<this.events.length;y++)xn.apply(null,this.events[y])};function va(y){var ee=y.display;!ee.scrollbarsClipped&&ee.scroller.offsetWidth&&(ee.nativeBarWidth=ee.scroller.offsetWidth-ee.scroller.clientWidth,ee.heightForcer.style.height=Ya(y)+"px",ee.sizer.style.marginBottom=-ee.nativeBarWidth+"px",ee.sizer.style.borderRightWidth=Ya(y)+"px",ee.scrollbarsClipped=!0)}function ia(y){if(y.hasFocus())return null;var ee=Ae();if(!ee||!Be(y.display.lineDiv,ee))return null;var Ee={activeElt:ee};if(window.getSelection){var xe=window.getSelection();xe.anchorNode&&xe.extend&&Be(y.display.lineDiv,xe.anchorNode)&&(Ee.anchorNode=xe.anchorNode,Ee.anchorOffset=xe.anchorOffset,Ee.focusNode=xe.focusNode,Ee.focusOffset=xe.focusOffset)}return Ee}function $a(y){if(!(!y||!y.activeElt||y.activeElt==Ae())&&(y.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(y.activeElt.nodeName)&&y.anchorNode&&Be(document.body,y.anchorNode)&&Be(document.body,y.focusNode))){var ee=window.getSelection(),Ee=document.createRange();Ee.setEnd(y.anchorNode,y.anchorOffset),Ee.collapse(!1),ee.removeAllRanges(),ee.addRange(Ee),ee.extend(y.focusNode,y.focusOffset)}}function La(y,ee){var Ee=y.display,xe=y.doc;if(ee.editorIsHidden)return ls(y),!1;if(!ee.force&&ee.visible.from>=Ee.viewFrom&&ee.visible.to<=Ee.viewTo&&(Ee.updateLineNumbers==null||Ee.updateLineNumbers>=Ee.viewTo)&&Ee.renderedView==Ee.view&&Js(y)==0)return!1;cn(y)&&(ls(y),ee.dims=Ns(y));var Te=xe.first+xe.size,Ge=Math.max(ee.visible.from-y.options.viewportMargin,xe.first),st=Math.min(Te,ee.visible.to+y.options.viewportMargin);Ee.viewFrom<Ge&&Ge-Ee.viewFrom<20&&(Ge=Math.max(xe.first,Ee.viewFrom)),Ee.viewTo>st&&Ee.viewTo-st<20&&(st=Math.min(Te,Ee.viewTo)),qr&&(Ge=wr(y.doc,Ge),st=Ir(y.doc,st));var wt=Ge!=Ee.viewFrom||st!=Ee.viewTo||Ee.lastWrapHeight!=ee.wrapperHeight||Ee.lastWrapWidth!=ee.wrapperWidth;wl(y,Ge,st),Ee.viewOffset=un(sn(y.doc,Ee.viewFrom)),y.display.mover.style.top=Ee.viewOffset+"px";var Ot=Js(y);if(!wt&&Ot==0&&!ee.force&&Ee.renderedView==Ee.view&&(Ee.updateLineNumbers==null||Ee.updateLineNumbers>=Ee.viewTo))return!1;var Wt=ia(y);return Ot>4&&(Ee.lineDiv.style.display="none"),Bo(y,Ee.updateLineNumbers,ee.dims),Ot>4&&(Ee.lineDiv.style.display=""),Ee.renderedView=Ee.view,$a(Wt),ge(Ee.cursorDiv),ge(Ee.selectionDiv),Ee.gutters.style.height=Ee.sizer.style.minHeight=0,wt&&(Ee.lastWrapHeight=ee.wrapperHeight,Ee.lastWrapWidth=ee.wrapperWidth,Xs(y,400)),Ee.updateLineNumbers=null,!0}function Pa(y,ee){for(var Ee=ee.viewport,xe=!0;;xe=!1){if(!xe||!y.options.lineWrapping||ee.oldDisplayWidth==xi(y)){if(Ee&&Ee.top!=null&&(Ee={top:Math.min(y.doc.height+Va(y.display)-pa(y),Ee.top)}),ee.visible=ks(y.display,y.doc,Ee),ee.visible.from>=y.display.viewFrom&&ee.visible.to<=y.display.viewTo)break}else xe&&(ee.visible=ks(y.display,y.doc,Ee));if(!La(y,ee))break;xa(y);var Te=tl(y);Es(y),hs(y,Te),xt(y,Te),ee.force=!1}ee.signal(y,"update",y),(y.display.viewFrom!=y.display.reportedViewFrom||y.display.viewTo!=y.display.reportedViewTo)&&(ee.signal(y,"viewportChange",y,y.display.viewFrom,y.display.viewTo),y.display.reportedViewFrom=y.display.viewFrom,y.display.reportedViewTo=y.display.viewTo)}function co(y,ee){var Ee=new $i(y,ee);if(La(y,Ee)){xa(y),Pa(y,Ee);var xe=tl(y);Es(y),hs(y,xe),xt(y,xe),Ee.finish()}}function Bo(y,ee,Ee){var xe=y.display,Te=y.options.lineNumbers,Ge=xe.lineDiv,st=Ge.firstChild;function wt(ai){var Ai=ai.nextSibling;return ue&&ne&&y.display.currentWheelTarget==ai?ai.style.display="none":ai.parentNode.removeChild(ai),Ai}for(var Ot=xe.view,Wt=xe.viewFrom,On=0;On<Ot.length;On++){var Hn=Ot[On];if(!Hn.hidden)if(!Hn.node||Hn.node.parentNode!=Ge){var Er=Ci(y,Hn,Wt,Ee);Ge.insertBefore(Er,st)}else{for(;st!=Hn.node;)st=wt(st);var vr=Te&&ee!=null&&ee<=Wt&&Hn.lineNumber;Hn.changes&&($e(Hn.changes,"gutter")>-1&&(vr=!1),zi(y,Hn,Wt,Ee)),vr&&(ge(Hn.lineNumber),Hn.lineNumber.appendChild(document.createTextNode(jt(y.options,Wt)))),st=Hn.node.nextSibling}Wt+=Hn.size}for(;st;)st=wt(st)}function _t(y){var ee=y.gutters.offsetWidth;y.sizer.style.marginLeft=ee+"px"}function xt(y,ee){y.display.sizer.style.minHeight=ee.docHeight+"px",y.display.heightForcer.style.top=ee.docHeight+"px",y.display.gutters.style.height=ee.docHeight+y.display.barHeight+Ya(y)+"px"}function Xt(y){var ee=y.display,Ee=ee.view;if(!(!ee.alignWidgets&&(!ee.gutters.firstChild||!y.options.fixedGutter))){for(var xe=uo(ee)-ee.scroller.scrollLeft+y.doc.scrollLeft,Te=ee.gutters.offsetWidth,Ge=xe+"px",st=0;st<Ee.length;st++)if(!Ee[st].hidden){y.options.fixedGutter&&(Ee[st].gutter&&(Ee[st].gutter.style.left=Ge),Ee[st].gutterBackground&&(Ee[st].gutterBackground.style.left=Ge));var wt=Ee[st].alignable;if(wt)for(var Ot=0;Ot<wt.length;Ot++)wt[Ot].style.left=Ge}y.options.fixedGutter&&(ee.gutters.style.left=xe+Te+"px")}}function cn(y){if(!y.options.lineNumbers)return!1;var ee=y.doc,Ee=jt(y.options,ee.first+ee.size-1),xe=y.display;if(Ee.length!=xe.lineNumChars){var Te=xe.measure.appendChild(ye("div",[ye("div",Ee)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Ge=Te.firstChild.offsetWidth,st=Te.offsetWidth-Ge;return xe.lineGutter.style.width="",xe.lineNumInnerWidth=Math.max(Ge,xe.lineGutter.offsetWidth-st)+1,xe.lineNumWidth=xe.lineNumInnerWidth+st,xe.lineNumChars=xe.lineNumInnerWidth?Ee.length:-1,xe.lineGutter.style.width=xe.lineNumWidth+"px",_t(y.display),!0}return!1}function wn(y,ee){for(var Ee=[],xe=!1,Te=0;Te<y.length;Te++){var Ge=y[Te],st=null;if(typeof Ge!="string"&&(st=Ge.style,Ge=Ge.className),Ge=="CodeMirror-linenumbers")if(ee)xe=!0;else continue;Ee.push({className:Ge,style:st})}return ee&&!xe&&Ee.push({className:"CodeMirror-linenumbers",style:null}),Ee}function Rn(y){var ee=y.gutters,Ee=y.gutterSpecs;ge(ee),y.lineGutter=null;for(var xe=0;xe<Ee.length;++xe){var Te=Ee[xe],Ge=Te.className,st=Te.style,wt=ee.appendChild(ye("div",null,"CodeMirror-gutter "+Ge));st&&(wt.style.cssText=st),Ge=="CodeMirror-linenumbers"&&(y.lineGutter=wt,wt.style.width=(y.lineNumWidth||1)+"px")}ee.style.display=Ee.length?"":"none",_t(y)}function qn(y){Rn(y.display),To(y),Xt(y)}function En(y,ee,Ee,xe){var Te=this;this.input=Ee,Te.scrollbarFiller=ye("div",null,"CodeMirror-scrollbar-filler"),Te.scrollbarFiller.setAttribute("cm-not-content","true"),Te.gutterFiller=ye("div",null,"CodeMirror-gutter-filler"),Te.gutterFiller.setAttribute("cm-not-content","true"),Te.lineDiv=be("div",null,"CodeMirror-code"),Te.selectionDiv=ye("div",null,null,"position: relative; z-index: 1"),Te.cursorDiv=ye("div",null,"CodeMirror-cursors"),Te.measure=ye("div",null,"CodeMirror-measure"),Te.lineMeasure=ye("div",null,"CodeMirror-measure"),Te.lineSpace=be("div",[Te.measure,Te.lineMeasure,Te.selectionDiv,Te.cursorDiv,Te.lineDiv],null,"position: relative; outline: none");var Ge=be("div",[Te.lineSpace],"CodeMirror-lines");Te.mover=ye("div",[Ge],null,"position: relative"),Te.sizer=ye("div",[Te.mover],"CodeMirror-sizer"),Te.sizerWidth=null,Te.heightForcer=ye("div",null,null,"position: absolute; height: "+nt+"px; width: 1px;"),Te.gutters=ye("div",null,"CodeMirror-gutters"),Te.lineGutter=null,Te.scroller=ye("div",[Te.sizer,Te.heightForcer,Te.gutters],"CodeMirror-scroll"),Te.scroller.setAttribute("tabIndex","-1"),Te.wrapper=ye("div",[Te.scrollbarFiller,Te.gutterFiller,Te.scroller],"CodeMirror"),Oe&&ve<8&&(Te.gutters.style.zIndex=-1,Te.scroller.style.paddingRight=0),!ue&&!(te&&z)&&(Te.scroller.draggable=!0),y&&(y.appendChild?y.appendChild(Te.wrapper):y(Te.wrapper)),Te.viewFrom=Te.viewTo=ee.first,Te.reportedViewFrom=Te.reportedViewTo=ee.first,Te.view=[],Te.renderedView=null,Te.externalMeasured=null,Te.viewOffset=0,Te.lastWrapHeight=Te.lastWrapWidth=0,Te.updateLineNumbers=null,Te.nativeBarWidth=Te.barHeight=Te.barWidth=0,Te.scrollbarsClipped=!1,Te.lineNumWidth=Te.lineNumInnerWidth=Te.lineNumChars=null,Te.alignWidgets=!1,Te.cachedCharWidth=Te.cachedTextHeight=Te.cachedPaddingH=null,Te.maxLine=null,Te.maxLineLength=0,Te.maxLineChanged=!1,Te.wheelDX=Te.wheelDY=Te.wheelStartX=Te.wheelStartY=null,Te.shift=!1,Te.selForContextMenu=null,Te.activeTouch=null,Te.gutterSpecs=wn(xe.gutters,xe.lineNumbers),Rn(Te),Ee.init(Te)}var er=0,Xn=null;Oe?Xn=-.53:te?Xn=15:he?Xn=-.7:ae&&(Xn=-1/3);function Pr(y){var ee=y.wheelDeltaX,Ee=y.wheelDeltaY;return ee==null&&y.detail&&y.axis==y.HORIZONTAL_AXIS&&(ee=y.detail),Ee==null&&y.detail&&y.axis==y.VERTICAL_AXIS?Ee=y.detail:Ee==null&&(Ee=y.wheelDelta),{x:ee,y:Ee}}function yr(y){var ee=Pr(y);return ee.x*=Xn,ee.y*=Xn,ee}function br(y,ee){var Ee=Pr(ee),xe=Ee.x,Te=Ee.y,Ge=y.display,st=Ge.scroller,wt=st.scrollWidth>st.clientWidth,Ot=st.scrollHeight>st.clientHeight;if(xe&&wt||Te&&Ot){if(Te&&ne&&ue){e:for(var Wt=ee.target,On=Ge.view;Wt!=st;Wt=Wt.parentNode)for(var Hn=0;Hn<On.length;Hn++)if(On[Hn].node==Wt){y.display.currentWheelTarget=Wt;break e}}if(xe&&!te&&!le&&Xn!=null){Te&&Ot&&el(y,Math.max(0,st.scrollTop+Te*Xn)),zs(y,Math.max(0,st.scrollLeft+xe*Xn)),(!Te||Te&&Ot)&&rn(ee),Ge.wheelStartX=null;return}if(Te&&Xn!=null){var Er=Te*Xn,vr=y.doc.scrollTop,ai=vr+Ge.wrapper.clientHeight;Er<0?vr=Math.max(0,vr+Er-50):ai=Math.min(y.doc.height,ai+Er+50),co(y,{top:vr,bottom:ai})}er<20&&(Ge.wheelStartX==null?(Ge.wheelStartX=st.scrollLeft,Ge.wheelStartY=st.scrollTop,Ge.wheelDX=xe,Ge.wheelDY=Te,setTimeout(function(){if(Ge.wheelStartX!=null){var Ai=st.scrollLeft-Ge.wheelStartX,Hi=st.scrollTop-Ge.wheelStartY,ea=Hi&&Ge.wheelDY&&Hi/Ge.wheelDY||Ai&&Ge.wheelDX&&Ai/Ge.wheelDX;Ge.wheelStartX=Ge.wheelStartY=null,ea&&(Xn=(Xn*er+ea)/(er+1),++er)}},200)):(Ge.wheelDX+=xe,Ge.wheelDY+=Te))}}var gr=function(y,ee){this.ranges=y,this.primIndex=ee};gr.prototype.primary=function(){return this.ranges[this.primIndex]},gr.prototype.equals=function(y){if(y==this)return!0;if(y.primIndex!=this.primIndex||y.ranges.length!=this.ranges.length)return!1;for(var ee=0;ee<this.ranges.length;ee++){var Ee=this.ranges[ee],xe=y.ranges[ee];if(!yt(Ee.anchor,xe.anchor)||!yt(Ee.head,xe.head))return!1}return!0},gr.prototype.deepCopy=function(){for(var y=[],ee=0;ee<this.ranges.length;ee++)y[ee]=new pr(qt(this.ranges[ee].anchor),qt(this.ranges[ee].head));return new gr(y,this.primIndex)},gr.prototype.somethingSelected=function(){for(var y=0;y<this.ranges.length;y++)if(!this.ranges[y].empty())return!0;return!1},gr.prototype.contains=function(y,ee){ee||(ee=y);for(var Ee=0;Ee<this.ranges.length;Ee++){var xe=this.ranges[Ee];if(Kt(ee,xe.from())>=0&&Kt(y,xe.to())<=0)return Ee}return-1};var pr=function(y,ee){this.anchor=y,this.head=ee};pr.prototype.from=function(){return Tt(this.anchor,this.head)},pr.prototype.to=function(){return vn(this.anchor,this.head)},pr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function De(y,ee,Ee){var xe=y&&y.options.selectionsMayTouch,Te=ee[Ee];ee.sort(function(Er,vr){return Kt(Er.from(),vr.from())}),Ee=$e(ee,Te);for(var Ge=1;Ge<ee.length;Ge++){var st=ee[Ge],wt=ee[Ge-1],Ot=Kt(wt.to(),st.from());if(xe&&!st.empty()?Ot>0:Ot>=0){var Wt=Tt(wt.from(),st.from()),On=vn(wt.to(),st.to()),Hn=wt.empty()?st.from()==st.head:wt.from()==wt.head;Ge<=Ee&&--Ee,ee.splice(--Ge,2,new pr(Hn?On:Wt,Hn?Wt:On))}}return new gr(ee,Ee)}function ke(y,ee){return new gr([new pr(y,ee||y)],0)}function Ve(y){return y.text?Mt(y.from.line+y.text.length-1,Ct(y.text).length+(y.text.length==1?y.from.ch:0)):y.to}function qe(y,ee){if(Kt(y,ee.from)<0)return y;if(Kt(y,ee.to)<=0)return Ve(ee);var Ee=y.line+ee.text.length-(ee.to.line-ee.from.line)-1,xe=y.ch;return y.line==ee.to.line&&(xe+=Ve(ee).ch-ee.to.ch),Mt(Ee,xe)}function it(y,ee){for(var Ee=[],xe=0;xe<y.sel.ranges.length;xe++){var Te=y.sel.ranges[xe];Ee.push(new pr(qe(Te.anchor,ee),qe(Te.head,ee)))}return De(y.cm,Ee,y.sel.primIndex)}function dt(y,ee,Ee){return y.line==ee.line?Mt(Ee.line,y.ch-ee.ch+Ee.ch):Mt(Ee.line+(y.line-ee.line),y.ch)}function bt(y,ee,Ee){for(var xe=[],Te=Mt(y.first,0),Ge=Te,st=0;st<ee.length;st++){var wt=ee[st],Ot=dt(wt.from,Te,Ge),Wt=dt(Ve(wt),Te,Ge);if(Te=wt.to,Ge=Wt,Ee=="around"){var On=y.sel.ranges[st],Hn=Kt(On.head,On.anchor)<0;xe[st]=new pr(Hn?Wt:Ot,Hn?Ot:Wt)}else xe[st]=new pr(Ot,Ot)}return new gr(xe,y.sel.primIndex)}function vt(y){y.doc.mode=Ie(y.options,y.doc.modeOption),Nt(y)}function Nt(y){y.doc.iter(function(ee){ee.stateAfter&&(ee.stateAfter=null),ee.styles&&(ee.styles=null)}),y.doc.modeFrontier=y.doc.highlightFrontier=y.doc.first,Xs(y,100),y.state.modeGen++,y.curOp&&To(y)}function Pt(y,ee){return ee.from.ch==0&&ee.to.ch==0&&Ct(ee.text)==""&&(!y.cm||y.cm.options.wholeLineUpdateBefore)}function Ht(y,ee,Ee,xe){function Te(da){return Ee?Ee[da]:null}function Ge(da,ta,ya){ti(da,ta,ya,xe),ca(da,"change",da,ee)}function st(da,ta){for(var ya=[],Oa=da;Oa<ta;++Oa)ya.push(new Rr(Wt[Oa],Te(Oa),xe));return ya}var wt=ee.from,Ot=ee.to,Wt=ee.text,On=sn(y,wt.line),Hn=sn(y,Ot.line),Er=Ct(Wt),vr=Te(Wt.length-1),ai=Ot.line-wt.line;if(ee.full)y.insert(0,st(0,Wt.length)),y.remove(Wt.length,y.size-Wt.length);else if(Pt(y,ee)){var Ai=st(0,Wt.length-1);Ge(Hn,Hn.text,vr),ai&&y.remove(wt.line,ai),Ai.length&&y.insert(wt.line,Ai)}else if(On==Hn)if(Wt.length==1)Ge(On,On.text.slice(0,wt.ch)+Er+On.text.slice(Ot.ch),vr);else{var Hi=st(1,Wt.length-1);Hi.push(new Rr(Er+On.text.slice(Ot.ch),vr,xe)),Ge(On,On.text.slice(0,wt.ch)+Wt[0],Te(0)),y.insert(wt.line+1,Hi)}else if(Wt.length==1)Ge(On,On.text.slice(0,wt.ch)+Wt[0]+Hn.text.slice(Ot.ch),Te(0)),y.remove(wt.line+1,ai);else{Ge(On,On.text.slice(0,wt.ch)+Wt[0],Te(0)),Ge(Hn,Er+Hn.text.slice(Ot.ch),vr);var ea=st(1,Wt.length-1);ai>1&&y.remove(wt.line+1,ai-1),y.insert(wt.line+1,ea)}ca(y,"change",y,ee)}function $t(y,ee,Ee){function xe(Te,Ge,st){if(Te.linked)for(var wt=0;wt<Te.linked.length;++wt){var Ot=Te.linked[wt];if(Ot.doc!=Ge){var Wt=st&&Ot.sharedHist;Ee&&!Wt||(ee(Ot.doc,Wt),xe(Ot.doc,Te,Wt))}}}xe(y,null,!0)}function hn(y,ee){if(ee.cm)throw new Error("This document is already in use.");y.doc=ee,ee.cm=y,Ds(y),vt(y),Pn(y),y.options.lineWrapping||Sn(y),y.options.mode=ee.modeOption,To(y)}function Pn(y){(y.doc.direction=="rtl"?we:ce)(y.display.lineDiv,"CodeMirror-rtl")}function Dn(y){Zo(y,function(){Pn(y),To(y)})}function pn(y){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=y||1}function bn(y,ee){var Ee={from:qt(ee.from),to:Ve(ee),text:mn(y,ee.from,ee.to)};return Si(y,Ee,ee.from.line,ee.to.line+1),$t(y,function(xe){return Si(xe,Ee,ee.from.line,ee.to.line+1)},!0),Ee}function Gn(y){for(;y.length;){var ee=Ct(y);if(ee.ranges)y.pop();else break}}function Un(y,ee){if(ee)return Gn(y.done),Ct(y.done);if(y.done.length&&!Ct(y.done).ranges)return Ct(y.done);if(y.done.length>1&&!y.done[y.done.length-2].ranges)return y.done.pop(),Ct(y.done)}function sr(y,ee,Ee,xe){var Te=y.history;Te.undone.length=0;var Ge=+new Date,st,wt;if((Te.lastOp==xe||Te.lastOrigin==ee.origin&&ee.origin&&(ee.origin.charAt(0)=="+"&&Te.lastModTime>Ge-(y.cm?y.cm.options.historyEventDelay:500)||ee.origin.charAt(0)=="*"))&&(st=Un(Te,Te.lastOp==xe)))wt=Ct(st.changes),Kt(ee.from,ee.to)==0&&Kt(ee.from,wt.to)==0?wt.to=Ve(ee):st.changes.push(bn(y,ee));else{var Ot=Ct(Te.done);for((!Ot||!Ot.ranges)&&Tr(y.sel,Te.done),st={changes:[bn(y,ee)],generation:Te.generation},Te.done.push(st);Te.done.length>Te.undoDepth;)Te.done.shift(),Te.done[0].ranges||Te.done.shift()}Te.done.push(Ee),Te.generation=++Te.maxGeneration,Te.lastModTime=Te.lastSelTime=Ge,Te.lastOp=Te.lastSelOp=xe,Te.lastOrigin=Te.lastSelOrigin=ee.origin,wt||xn(y,"historyAdded")}function cr(y,ee,Ee,xe){var Te=ee.charAt(0);return Te=="*"||Te=="+"&&Ee.ranges.length==xe.ranges.length&&Ee.somethingSelected()==xe.somethingSelected()&&new Date-y.history.lastSelTime<=(y.cm?y.cm.options.historyEventDelay:500)}function ni(y,ee,Ee,xe){var Te=y.history,Ge=xe&&xe.origin;Ee==Te.lastSelOp||Ge&&Te.lastSelOrigin==Ge&&(Te.lastModTime==Te.lastSelTime&&Te.lastOrigin==Ge||cr(y,Ge,Ct(Te.done),ee))?Te.done[Te.done.length-1]=ee:Tr(ee,Te.done),Te.lastSelTime=+new Date,Te.lastSelOrigin=Ge,Te.lastSelOp=Ee,xe&&xe.clearRedo!==!1&&Gn(Te.undone)}function Tr(y,ee){var Ee=Ct(ee);Ee&&Ee.ranges&&Ee.equals(y)||ee.push(y)}function Si(y,ee,Ee,xe){var Te=ee["spans_"+y.id],Ge=0;y.iter(Math.max(y.first,Ee),Math.min(y.first+y.size,xe),function(st){st.markedSpans&&((Te||(Te=ee["spans_"+y.id]={}))[Ge]=st.markedSpans),++Ge})}function Ui(y){if(!y)return null;for(var ee,Ee=0;Ee<y.length;++Ee)y[Ee].marker.explicitlyCleared?ee||(ee=y.slice(0,Ee)):ee&&ee.push(y[Ee]);return ee?ee.length?ee:null:y}function Fi(y,ee){var Ee=ee["spans_"+y.id];if(!Ee)return null;for(var xe=[],Te=0;Te<ee.text.length;++Te)xe.push(Ui(Ee[Te]));return xe}function jr(y,ee){var Ee=Fi(y,ee),xe=ki(y,ee);if(!Ee)return xe;if(!xe)return Ee;for(var Te=0;Te<Ee.length;++Te){var Ge=Ee[Te],st=xe[Te];if(Ge&&st)e:for(var wt=0;wt<st.length;++wt){for(var Ot=st[wt],Wt=0;Wt<Ge.length;++Wt)if(Ge[Wt].marker==Ot.marker)continue e;Ge.push(Ot)}else st&&(Ee[Te]=st)}return Ee}function Vr(y,ee,Ee){for(var xe=[],Te=0;Te<y.length;++Te){var Ge=y[Te];if(Ge.ranges){xe.push(Ee?gr.prototype.deepCopy.call(Ge):Ge);continue}var st=Ge.changes,wt=[];xe.push({changes:wt});for(var Ot=0;Ot<st.length;++Ot){var Wt=st[Ot],On=void 0;if(wt.push({from:Wt.from,to:Wt.to,text:Wt.text}),ee)for(var Hn in Wt)(On=Hn.match(/^spans_(\d+)$/))&&$e(ee,Number(On[1]))>-1&&(Ct(wt)[Hn]=Wt[Hn],delete Wt[Hn])}}return xe}function yi(y,ee,Ee,xe){if(xe){var Te=y.anchor;if(Ee){var Ge=Kt(ee,Te)<0;Ge!=Kt(Ee,Te)<0?(Te=ee,ee=Ee):Ge!=Kt(ee,Ee)<0&&(ee=Ee)}return new pr(Te,ee)}else return new pr(Ee||ee,ee)}function zn(y,ee,Ee,xe,Te){Te==null&&(Te=y.cm&&(y.cm.display.shift||y.extend)),Or(y,new gr([yi(y.sel.primary(),ee,Ee,Te)],0),xe)}function fr(y,ee,Ee){for(var xe=[],Te=y.cm&&(y.cm.display.shift||y.extend),Ge=0;Ge<y.sel.ranges.length;Ge++)xe[Ge]=yi(y.sel.ranges[Ge],ee[Ge],null,Te);var st=De(y.cm,xe,y.sel.primIndex);Or(y,st,Ee)}function $r(y,ee,Ee,xe){var Te=y.sel.ranges.slice(0);Te[ee]=Ee,Or(y,De(y.cm,Te,y.sel.primIndex),xe)}function xr(y,ee,Ee,xe){Or(y,ke(ee,Ee),xe)}function Yr(y,ee,Ee){var xe={ranges:ee.ranges,update:function(Te){this.ranges=[];for(var Ge=0;Ge<Te.length;Ge++)this.ranges[Ge]=new pr(Dt(y,Te[Ge].anchor),Dt(y,Te[Ge].head))},origin:Ee&&Ee.origin};return xn(y,"beforeSelectionChange",y,xe),y.cm&&xn(y.cm,"beforeSelectionChange",y.cm,xe),xe.ranges!=ee.ranges?De(y.cm,xe.ranges,xe.ranges.length-1):ee}function Lr(y,ee,Ee){var xe=y.history.done,Te=Ct(xe);Te&&Te.ranges?(xe[xe.length-1]=ee,Bi(y,ee,Ee)):Or(y,ee,Ee)}function Or(y,ee,Ee){Bi(y,ee,Ee),ni(y,y.sel,y.cm?y.cm.curOp.id:NaN,Ee)}function Bi(y,ee,Ee){(Jt(y,"beforeSelectionChange")||y.cm&&Jt(y.cm,"beforeSelectionChange"))&&(ee=Yr(y,ee,Ee));var xe=Ee&&Ee.bias||(Kt(ee.primary().head,y.sel.primary().head)<0?-1:1);na(y,Ea(y,ee,xe,!0)),!(Ee&&Ee.scroll===!1)&&y.cm&&Us(y.cm)}function na(y,ee){ee.equals(y.sel)||(y.sel=ee,y.cm&&(y.cm.curOp.updateInput=1,y.cm.curOp.selectionChanged=!0,An(y.cm)),ca(y,"cursorActivity",y))}function Oi(y){na(y,Ea(y,y.sel,null,!1))}function Ea(y,ee,Ee,xe){for(var Te,Ge=0;Ge<ee.ranges.length;Ge++){var st=ee.ranges[Ge],wt=ee.ranges.length==y.sel.ranges.length&&y.sel.ranges[Ge],Ot=Na(y,st.anchor,wt&&wt.anchor,Ee,xe),Wt=Na(y,st.head,wt&&wt.head,Ee,xe);(Te||Ot!=st.anchor||Wt!=st.head)&&(Te||(Te=ee.ranges.slice(0,Ge)),Te[Ge]=new pr(Ot,Wt))}return Te?De(y.cm,Te,ee.primIndex):ee}function Ma(y,ee,Ee,xe,Te){var Ge=sn(y,ee.line);if(Ge.markedSpans)for(var st=0;st<Ge.markedSpans.length;++st){var wt=Ge.markedSpans[st],Ot=wt.marker,Wt="selectLeft"in Ot?!Ot.selectLeft:Ot.inclusiveLeft,On="selectRight"in Ot?!Ot.selectRight:Ot.inclusiveRight;if((wt.from==null||(Wt?wt.from<=ee.ch:wt.from<ee.ch))&&(wt.to==null||(On?wt.to>=ee.ch:wt.to>ee.ch))){if(Te&&(xn(Ot,"beforeCursorEnter"),Ot.explicitlyCleared))if(Ge.markedSpans){--st;continue}else break;if(!Ot.atomic)continue;if(Ee){var Hn=Ot.find(xe<0?1:-1),Er=void 0;if((xe<0?On:Wt)&&(Hn=ji(y,Hn,-xe,Hn&&Hn.line==ee.line?Ge:null)),Hn&&Hn.line==ee.line&&(Er=Kt(Hn,Ee))&&(xe<0?Er<0:Er>0))return Ma(y,Hn,ee,xe,Te)}var vr=Ot.find(xe<0?-1:1);return(xe<0?Wt:On)&&(vr=ji(y,vr,xe,vr.line==ee.line?Ge:null)),vr?Ma(y,vr,ee,xe,Te):null}}return ee}function Na(y,ee,Ee,xe,Te){var Ge=xe||1,st=Ma(y,ee,Ee,Ge,Te)||!Te&&Ma(y,ee,Ee,Ge,!0)||Ma(y,ee,Ee,-Ge,Te)||!Te&&Ma(y,ee,Ee,-Ge,!0);return st||(y.cantEdit=!0,Mt(y.first,0))}function ji(y,ee,Ee,xe){return Ee<0&&ee.ch==0?ee.line>y.first?Dt(y,Mt(ee.line-1)):null:Ee>0&&ee.ch==(xe||sn(y,ee.line)).text.length?ee.line<y.first+y.size-1?Mt(ee.line+1,0):null:new Mt(ee.line,ee.ch+Ee)}function aa(y){y.setSelection(Mt(y.firstLine(),0),Mt(y.lastLine()),Qe)}function Ua(y,ee,Ee){var xe={canceled:!1,from:ee.from,to:ee.to,text:ee.text,origin:ee.origin,cancel:function(){return xe.canceled=!0}};return Ee&&(xe.update=function(Te,Ge,st,wt){Te&&(xe.from=Dt(y,Te)),Ge&&(xe.to=Dt(y,Ge)),st&&(xe.text=st),wt!==void 0&&(xe.origin=wt)}),xn(y,"beforeChange",y,xe),y.cm&&xn(y.cm,"beforeChange",y.cm,xe),xe.canceled?(y.cm&&(y.cm.curOp.updateInput=2),null):{from:xe.from,to:xe.to,text:xe.text,origin:xe.origin}}function oo(y,ee,Ee){if(y.cm){if(!y.cm.curOp)return yo(y.cm,oo)(y,ee,Ee);if(y.cm.state.suppressEdits)return}if(!((Jt(y,"beforeChange")||y.cm&&Jt(y.cm,"beforeChange"))&&(ee=Ua(y,ee,!0),!ee))){var xe=Gr&&!Ee&&ua(y,ee.from,ee.to);if(xe)for(var Te=xe.length-1;Te>=0;--Te)qa(y,{from:xe[Te].from,to:xe[Te].to,text:Te?[""]:ee.text,origin:ee.origin});else qa(y,ee)}}function qa(y,ee){if(!(ee.text.length==1&&ee.text[0]==""&&Kt(ee.from,ee.to)==0)){var Ee=it(y,ee);sr(y,ee,Ee,y.cm?y.cm.curOp.id:NaN),ms(y,ee,Ee,ki(y,ee));var xe=[];$t(y,function(Te,Ge){!Ge&&$e(xe,Te.history)==-1&&(ko(Te.history,ee),xe.push(Te.history)),ms(Te,ee,null,ki(Te,ee))})}}function Ho(y,ee,Ee){var xe=y.cm&&y.cm.state.suppressEdits;if(!(xe&&!Ee)){for(var Te=y.history,Ge,st=y.sel,wt=ee=="undo"?Te.done:Te.undone,Ot=ee=="undo"?Te.undone:Te.done,Wt=0;Wt<wt.length&&(Ge=wt[Wt],!(Ee?Ge.ranges&&!Ge.equals(y.sel):!Ge.ranges));Wt++);if(Wt!=wt.length){for(Te.lastOrigin=Te.lastSelOrigin=null;;)if(Ge=wt.pop(),Ge.ranges){if(Tr(Ge,Ot),Ee&&!Ge.equals(y.sel)){Or(y,Ge,{clearRedo:!1});return}st=Ge}else if(xe){wt.push(Ge);return}else break;var On=[];Tr(st,Ot),Ot.push({changes:On,generation:Te.generation}),Te.generation=Ge.generation||++Te.maxGeneration;for(var Hn=Jt(y,"beforeChange")||y.cm&&Jt(y.cm,"beforeChange"),Er=function(Ai){var Hi=Ge.changes[Ai];if(Hi.origin=ee,Hn&&!Ua(y,Hi,!1))return wt.length=0,{};On.push(bn(y,Hi));var ea=Ai?it(y,Hi):Ct(wt);ms(y,Hi,ea,jr(y,Hi)),!Ai&&y.cm&&y.cm.scrollIntoView({from:Hi.from,to:Ve(Hi)});var da=[];$t(y,function(ta,ya){!ya&&$e(da,ta.history)==-1&&(ko(ta.history,Hi),da.push(ta.history)),ms(ta,Hi,null,jr(ta,Hi))})},vr=Ge.changes.length-1;vr>=0;--vr){var ai=Er(vr);if(ai)return ai.v}}}}function Po(y,ee){if(ee!=0&&(y.first+=ee,y.sel=new gr(Yt(y.sel.ranges,function(Te){return new pr(Mt(Te.anchor.line+ee,Te.anchor.ch),Mt(Te.head.line+ee,Te.head.ch))}),y.sel.primIndex),y.cm)){To(y.cm,y.first,y.first-ee,ee);for(var Ee=y.cm.display,xe=Ee.viewFrom;xe<Ee.viewTo;xe++)Ts(y.cm,xe,"gutter")}}function ms(y,ee,Ee,xe){if(y.cm&&!y.cm.curOp)return yo(y.cm,ms)(y,ee,Ee,xe);if(ee.to.line<y.first){Po(y,ee.text.length-1-(ee.to.line-ee.from.line));return}if(!(ee.from.line>y.lastLine())){if(ee.from.line<y.first){var Te=ee.text.length-1-(y.first-ee.from.line);Po(y,Te),ee={from:Mt(y.first,0),to:Mt(ee.to.line+Te,ee.to.ch),text:[Ct(ee.text)],origin:ee.origin}}var Ge=y.lastLine();ee.to.line>Ge&&(ee={from:ee.from,to:Mt(Ge,sn(y,Ge).text.length),text:[ee.text[0]],origin:ee.origin}),ee.removed=mn(y,ee.from,ee.to),Ee||(Ee=it(y,ee)),y.cm?_o(y.cm,ee,xe):Ht(y,ee,xe),Bi(y,Ee,Qe),y.cantEdit&&Na(y,Mt(y.firstLine(),0))&&(y.cantEdit=!1)}}function _o(y,ee,Ee){var xe=y.doc,Te=y.display,Ge=ee.from,st=ee.to,wt=!1,Ot=Ge.line;y.options.lineWrapping||(Ot=Vt(or(sn(xe,Ge.line))),xe.iter(Ot,st.line+1,function(vr){if(vr==Te.maxLine)return wt=!0,!0})),xe.sel.contains(ee.from,ee.to)>-1&&An(y),Ht(xe,ee,Ee,As(y)),y.options.lineWrapping||(xe.iter(Ot,Ge.line+ee.text.length,function(vr){var ai=Vn(vr);ai>Te.maxLineLength&&(Te.maxLine=vr,Te.maxLineLength=ai,Te.maxLineChanged=!0,wt=!1)}),wt&&(y.curOp.updateMaxLine=!0)),Ur(xe,Ge.line),Xs(y,400);var Wt=ee.text.length-(st.line-Ge.line)-1;ee.full?To(y):Ge.line==st.line&&ee.text.length==1&&!Pt(y.doc,ee)?Ts(y,Ge.line,"text"):To(y,Ge.line,st.line+1,Wt);var On=Jt(y,"changes"),Hn=Jt(y,"change");if(Hn||On){var Er={from:Ge,to:st,text:ee.text,removed:ee.removed,origin:ee.origin};Hn&&ca(y,"change",y,Er),On&&(y.curOp.changeObjs||(y.curOp.changeObjs=[])).push(Er)}y.display.selForContextMenu=null}function Za(y,ee,Ee,xe,Te){var Ge;xe||(xe=Ee),Kt(xe,Ee)<0&&(Ge=[xe,Ee],Ee=Ge[0],xe=Ge[1]),typeof ee=="string"&&(ee=y.splitLines(ee)),oo(y,{from:Ee,to:xe,text:ee,origin:Te})}function ho(y,ee,Ee,xe){Ee<y.line?y.line+=xe:ee<y.line&&(y.line=ee,y.ch=0)}function vo(y,ee,Ee,xe){for(var Te=0;Te<y.length;++Te){var Ge=y[Te],st=!0;if(Ge.ranges){Ge.copied||(Ge=y[Te]=Ge.deepCopy(),Ge.copied=!0);for(var wt=0;wt<Ge.ranges.length;wt++)ho(Ge.ranges[wt].anchor,ee,Ee,xe),ho(Ge.ranges[wt].head,ee,Ee,xe);continue}for(var Ot=0;Ot<Ge.changes.length;++Ot){var Wt=Ge.changes[Ot];if(Ee<Wt.from.line)Wt.from=Mt(Wt.from.line+xe,Wt.from.ch),Wt.to=Mt(Wt.to.line+xe,Wt.to.ch);else if(ee<=Wt.to.line){st=!1;break}}st||(y.splice(0,Te+1),Te=0)}}function ko(y,ee){var Ee=ee.from.line,xe=ee.to.line,Te=ee.text.length-(xe-Ee)-1;vo(y.done,Ee,xe,Te),vo(y.undone,Ee,xe,Te)}function Ao(y,ee,Ee,xe){var Te=ee,Ge=ee;return typeof ee=="number"?Ge=sn(y,It(y,ee)):Te=Vt(ee),Te==null?null:(xe(Ge,Te)&&y.cm&&Ts(y.cm,Te,Ee),Ge)}function Ga(y){this.lines=y,this.parent=null;for(var ee=0,Ee=0;Ee<y.length;++Ee)y[Ee].parent=this,ee+=y[Ee].height;this.height=ee}Ga.prototype={chunkSize:function(){return this.lines.length},removeInner:function(y,ee){for(var Ee=y,xe=y+ee;Ee<xe;++Ee){var Te=this.lines[Ee];this.height-=Te.height,gn(Te),ca(Te,"delete")}this.lines.splice(y,ee)},collapse:function(y){y.push.apply(y,this.lines)},insertInner:function(y,ee,Ee){this.height+=Ee,this.lines=this.lines.slice(0,y).concat(ee).concat(this.lines.slice(y));for(var xe=0;xe<ee.length;++xe)ee[xe].parent=this},iterN:function(y,ee,Ee){for(var xe=y+ee;y<xe;++y)if(Ee(this.lines[y]))return!0}};function xo(y){this.children=y;for(var ee=0,Ee=0,xe=0;xe<y.length;++xe){var Te=y[xe];ee+=Te.chunkSize(),Ee+=Te.height,Te.parent=this}this.size=ee,this.height=Ee,this.parent=null}xo.prototype={chunkSize:function(){return this.size},removeInner:function(y,ee){this.size-=ee;for(var Ee=0;Ee<this.children.length;++Ee){var xe=this.children[Ee],Te=xe.chunkSize();if(y<Te){var Ge=Math.min(ee,Te-y),st=xe.height;if(xe.removeInner(y,Ge),this.height-=st-xe.height,Te==Ge&&(this.children.splice(Ee--,1),xe.parent=null),(ee-=Ge)==0)break;y=0}else y-=Te}if(this.size-ee<25&&(this.children.length>1||!(this.children[0]instanceof Ga))){var wt=[];this.collapse(wt),this.children=[new Ga(wt)],this.children[0].parent=this}},collapse:function(y){for(var ee=0;ee<this.children.length;++ee)this.children[ee].collapse(y)},insertInner:function(y,ee,Ee){this.size+=ee.length,this.height+=Ee;for(var xe=0;xe<this.children.length;++xe){var Te=this.children[xe],Ge=Te.chunkSize();if(y<=Ge){if(Te.insertInner(y,ee,Ee),Te.lines&&Te.lines.length>50){for(var st=Te.lines.length%25+25,wt=st;wt<Te.lines.length;){var Ot=new Ga(Te.lines.slice(wt,wt+=25));Te.height-=Ot.height,this.children.splice(++xe,0,Ot),Ot.parent=this}Te.lines=Te.lines.slice(0,st),this.maybeSpill()}break}y-=Ge}},maybeSpill:function(){if(!(this.children.length<=10)){var y=this;do{var ee=y.children.splice(y.children.length-5,5),Ee=new xo(ee);if(y.parent){y.size-=Ee.size,y.height-=Ee.height;var Te=$e(y.parent.children,y);y.parent.children.splice(Te+1,0,Ee)}else{var xe=new xo(y.children);xe.parent=y,y.children=[xe,Ee],y=xe}Ee.parent=y.parent}while(y.children.length>10);y.parent.maybeSpill()}},iterN:function(y,ee,Ee){for(var xe=0;xe<this.children.length;++xe){var Te=this.children[xe],Ge=Te.chunkSize();if(y<Ge){var st=Math.min(ee,Ge-y);if(Te.iterN(y,st,Ee))return!0;if((ee-=st)==0)break;y=0}else y-=Ge}}};var so=function(y,ee,Ee){if(Ee)for(var xe in Ee)Ee.hasOwnProperty(xe)&&(this[xe]=Ee[xe]);this.doc=y,this.node=ee};so.prototype.clear=function(){var y=this.doc.cm,ee=this.line.widgets,Ee=this.line,xe=Vt(Ee);if(!(xe==null||!ee)){for(var Te=0;Te<ee.length;++Te)ee[Te]==this&&ee.splice(Te--,1);ee.length||(Ee.widgets=null);var Ge=ba(this);tr(Ee,Math.max(0,Ee.height-Ge)),y&&(Zo(y,function(){qo(y,Ee,-Ge),Ts(y,xe,"widget")}),ca(y,"lineWidgetCleared",y,this,xe))}},so.prototype.changed=function(){var y=this,ee=this.height,Ee=this.doc.cm,xe=this.line;this.height=null;var Te=ba(this)-ee;Te&&(Hr(this.doc,xe)||tr(xe,xe.height+Te),Ee&&Zo(Ee,function(){Ee.curOp.forceUpdate=!0,qo(Ee,xe,Te),ca(Ee,"lineWidgetChanged",Ee,y,Vt(xe))}))},Ut(so);function qo(y,ee,Ee){un(ee)<(y.curOp&&y.curOp.scrollTop||y.doc.scrollTop)&&Zs(y,Ee)}function No(y,ee,Ee,xe){var Te=new so(y,Ee,xe),Ge=y.cm;return Ge&&Te.noHScroll&&(Ge.display.alignWidgets=!0),Ao(y,ee,"widget",function(st){var wt=st.widgets||(st.widgets=[]);if(Te.insertAt==null?wt.push(Te):wt.splice(Math.min(wt.length-1,Math.max(0,Te.insertAt)),0,Te),Te.line=st,Ge&&!Hr(y,st)){var Ot=un(st)<y.scrollTop;tr(st,st.height+ba(Te)),Ot&&Zs(Ge,Te.height),Ge.curOp.forceUpdate=!0}return!0}),Ge&&ca(Ge,"lineWidgetAdded",Ge,Te,typeof ee=="number"?ee:Vt(ee)),Te}var us=0,ps=function(y,ee){this.lines=[],this.type=ee,this.doc=y,this.id=++us};ps.prototype.clear=function(){if(!this.explicitlyCleared){var y=this.doc.cm,ee=y&&!y.curOp;if(ee&&vs(y),Jt(this,"clear")){var Ee=this.find();Ee&&ca(this,"clear",Ee.from,Ee.to)}for(var xe=null,Te=null,Ge=0;Ge<this.lines.length;++Ge){var st=this.lines[Ge],wt=Qr(st.markedSpans,this);y&&!this.collapsed?Ts(y,Vt(st),"text"):y&&(wt.to!=null&&(Te=Vt(st)),wt.from!=null&&(xe=Vt(st))),st.markedSpans=Di(st.markedSpans,wt),wt.from==null&&this.collapsed&&!Hr(this.doc,st)&&y&&tr(st,Jo(y.display))}if(y&&this.collapsed&&!y.options.lineWrapping)for(var Ot=0;Ot<this.lines.length;++Ot){var Wt=or(this.lines[Ot]),On=Vn(Wt);On>y.display.maxLineLength&&(y.display.maxLine=Wt,y.display.maxLineLength=On,y.display.maxLineChanged=!0)}xe!=null&&y&&this.collapsed&&To(y,xe,Te+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,y&&Oi(y.doc)),y&&ca(y,"markerCleared",y,this,xe,Te),ee&&ha(y),this.parent&&this.parent.clear()}},ps.prototype.find=function(y,ee){y==null&&this.type=="bookmark"&&(y=1);for(var Ee,xe,Te=0;Te<this.lines.length;++Te){var Ge=this.lines[Te],st=Qr(Ge.markedSpans,this);if(st.from!=null&&(Ee=Mt(ee?Ge:Vt(Ge),st.from),y==-1))return Ee;if(st.to!=null&&(xe=Mt(ee?Ge:Vt(Ge),st.to),y==1))return xe}return Ee&&{from:Ee,to:xe}},ps.prototype.changed=function(){var y=this,ee=this.find(-1,!0),Ee=this,xe=this.doc.cm;!ee||!xe||Zo(xe,function(){var Te=ee.line,Ge=Vt(ee.line),st=fo(xe,Ge);if(st&&(Oo(st),xe.curOp.selectionChanged=xe.curOp.forceUpdate=!0),xe.curOp.updateMaxLine=!0,!Hr(Ee.doc,Te)&&Ee.height!=null){var wt=Ee.height;Ee.height=null;var Ot=ba(Ee)-wt;Ot&&tr(Te,Te.height+Ot)}ca(xe,"markerChanged",xe,y)})},ps.prototype.attachLine=function(y){if(!this.lines.length&&this.doc.cm){var ee=this.doc.cm.curOp;(!ee.maybeHiddenMarkers||$e(ee.maybeHiddenMarkers,this)==-1)&&(ee.maybeUnhiddenMarkers||(ee.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(y)},ps.prototype.detachLine=function(y){if(this.lines.splice($e(this.lines,y),1),!this.lines.length&&this.doc.cm){var ee=this.doc.cm.curOp;(ee.maybeHiddenMarkers||(ee.maybeHiddenMarkers=[])).push(this)}},Ut(ps);function rl(y,ee,Ee,xe,Te){if(xe&&xe.shared)return Nl(y,ee,Ee,xe,Te);if(y.cm&&!y.cm.curOp)return yo(y.cm,rl)(y,ee,Ee,xe,Te);var Ge=new ps(y,Te),st=Kt(ee,Ee);if(xe&&Ke(xe,Ge,!1),st>0||st==0&&Ge.clearWhenEmpty!==!1)return Ge;if(Ge.replacedWith&&(Ge.collapsed=!0,Ge.widgetNode=be("span",[Ge.replacedWith],"CodeMirror-widget"),xe.handleMouseEvents||Ge.widgetNode.setAttribute("cm-ignore-events","true"),xe.insertLeft&&(Ge.widgetNode.insertLeft=!0)),Ge.collapsed){if(Fr(y,ee.line,ee,Ee,Ge)||ee.line!=Ee.line&&Fr(y,Ee.line,ee,Ee,Ge))throw new Error("Inserting collapsed marker partially overlapping an existing one");wi()}Ge.addToHistory&&sr(y,{from:ee,to:Ee,origin:"markText"},y.sel,NaN);var wt=ee.line,Ot=y.cm,Wt;if(y.iter(wt,Ee.line+1,function(Hn){Ot&&Ge.collapsed&&!Ot.options.lineWrapping&&or(Hn)==Ot.display.maxLine&&(Wt=!0),Ge.collapsed&&wt!=ee.line&&tr(Hn,0),oi(Hn,new ui(Ge,wt==ee.line?ee.ch:null,wt==Ee.line?Ee.ch:null)),++wt}),Ge.collapsed&&y.iter(ee.line,Ee.line+1,function(Hn){Hr(y,Hn)&&tr(Hn,0)}),Ge.clearOnEnter&&nn(Ge,"beforeCursorEnter",function(){return Ge.clear()}),Ge.readOnly&&(Li(),(y.history.done.length||y.history.undone.length)&&y.clearHistory()),Ge.collapsed&&(Ge.id=++us,Ge.atomic=!0),Ot){if(Wt&&(Ot.curOp.updateMaxLine=!0),Ge.collapsed)To(Ot,ee.line,Ee.line+1);else if(Ge.className||Ge.startStyle||Ge.endStyle||Ge.css||Ge.attributes||Ge.title)for(var On=ee.line;On<=Ee.line;On++)Ts(Ot,On,"text");Ge.atomic&&Oi(Ot.doc),ca(Ot,"markerAdded",Ot,Ge)}return Ge}var mo=function(y,ee){this.markers=y,this.primary=ee;for(var Ee=0;Ee<y.length;++Ee)y[Ee].parent=this};mo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var y=0;y<this.markers.length;++y)this.markers[y].clear();ca(this,"clear")}},mo.prototype.find=function(y,ee){return this.primary.find(y,ee)},Ut(mo);function Nl(y,ee,Ee,xe,Te){xe=Ke(xe),xe.shared=!1;var Ge=[rl(y,ee,Ee,xe,Te)],st=Ge[0],wt=xe.widgetNode;return $t(y,function(Ot){wt&&(xe.widgetNode=wt.cloneNode(!0)),Ge.push(rl(Ot,Dt(Ot,ee),Dt(Ot,Ee),xe,Te));for(var Wt=0;Wt<Ot.linked.length;++Wt)if(Ot.linked[Wt].isParent)return;st=Ct(Ge)}),new mo(Ge,st)}function cs(y){return y.findMarks(Mt(y.first,0),y.clipPos(Mt(y.lastLine())),function(ee){return ee.parent})}function Ks(y,ee){for(var Ee=0;Ee<ee.length;Ee++){var xe=ee[Ee],Te=xe.find(),Ge=y.clipPos(Te.from),st=y.clipPos(Te.to);if(Kt(Ge,st)){var wt=rl(y,Ge,st,xe.primary,xe.primary.type);xe.markers.push(wt),wt.parent=xe}}}function Os(y){for(var ee=function(xe){var Te=y[xe],Ge=[Te.primary.doc];$t(Te.primary.doc,function(Ot){return Ge.push(Ot)});for(var st=0;st<Te.markers.length;st++){var wt=Te.markers[st];$e(Ge,wt.doc)==-1&&(wt.parent=null,Te.markers.splice(st--,1))}},Ee=0;Ee<y.length;Ee++)ee(Ee)}var gs=0,po=function(y,ee,Ee,xe,Te){if(!(this instanceof po))return new po(y,ee,Ee,xe,Te);Ee==null&&(Ee=0),xo.call(this,[new Ga([new Rr("",null)])]),this.first=Ee,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=Ee;var Ge=Mt(Ee,0);this.sel=ke(Ge),this.history=new pn(null),this.id=++gs,this.modeOption=ee,this.lineSep=xe,this.direction=Te=="rtl"?"rtl":"ltr",this.extend=!1,typeof y=="string"&&(y=this.splitLines(y)),Ht(this,{from:Ge,to:Ge,text:y}),Or(this,ke(Ge),Qe)};po.prototype=Fe(xo.prototype,{constructor:po,iter:function(y,ee,Ee){Ee?this.iterN(y-this.first,ee-y,Ee):this.iterN(this.first,this.first+this.size,y)},insert:function(y,ee){for(var Ee=0,xe=0;xe<ee.length;++xe)Ee+=ee[xe].height;this.insertInner(y-this.first,ee,Ee)},remove:function(y,ee){this.removeInner(y-this.first,ee)},getValue:function(y){var ee=Zn(this,this.first,this.first+this.size);return y===!1?ee:ee.join(y||this.lineSeparator())},setValue:Mo(function(y){var ee=Mt(this.first,0),Ee=this.first+this.size-1;oo(this,{from:ee,to:Mt(Ee,sn(this,Ee).text.length),text:this.splitLines(y),origin:"setValue",full:!0},!0),this.cm&&Ws(this.cm,0,0),Or(this,ke(ee),Qe)}),replaceRange:function(y,ee,Ee,xe){ee=Dt(this,ee),Ee=Ee?Dt(this,Ee):ee,Za(this,y,ee,Ee,xe)},getRange:function(y,ee,Ee){var xe=mn(this,Dt(this,y),Dt(this,ee));return Ee===!1?xe:xe.join(Ee||this.lineSeparator())},getLine:function(y){var ee=this.getLineHandle(y);return ee&&ee.text},getLineHandle:function(y){if(Rt(this,y))return sn(this,y)},getLineNumber:function(y){return Vt(y)},getLineHandleVisualStart:function(y){return typeof y=="number"&&(y=sn(this,y)),or(y)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(y){return Dt(this,y)},getCursor:function(y){var ee=this.sel.primary(),Ee;return y==null||y=="head"?Ee=ee.head:y=="anchor"?Ee=ee.anchor:y=="end"||y=="to"||y===!1?Ee=ee.to():Ee=ee.from(),Ee},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Mo(function(y,ee,Ee){xr(this,Dt(this,typeof y=="number"?Mt(y,ee||0):y),null,Ee)}),setSelection:Mo(function(y,ee,Ee){xr(this,Dt(this,y),Dt(this,ee||y),Ee)}),extendSelection:Mo(function(y,ee,Ee){zn(this,Dt(this,y),ee&&Dt(this,ee),Ee)}),extendSelections:Mo(function(y,ee){fr(this,Zt(this,y),ee)}),extendSelectionsBy:Mo(function(y,ee){var Ee=Yt(this.sel.ranges,y);fr(this,Zt(this,Ee),ee)}),setSelections:Mo(function(y,ee,Ee){if(y.length){for(var xe=[],Te=0;Te<y.length;Te++)xe[Te]=new pr(Dt(this,y[Te].anchor),Dt(this,y[Te].head));ee==null&&(ee=Math.min(y.length-1,this.sel.primIndex)),Or(this,De(this.cm,xe,ee),Ee)}}),addSelection:Mo(function(y,ee,Ee){var xe=this.sel.ranges.slice(0);xe.push(new pr(Dt(this,y),Dt(this,ee||y))),Or(this,De(this.cm,xe,xe.length-1),Ee)}),getSelection:function(y){for(var ee=this.sel.ranges,Ee,xe=0;xe<ee.length;xe++){var Te=mn(this,ee[xe].from(),ee[xe].to());Ee=Ee?Ee.concat(Te):Te}return y===!1?Ee:Ee.join(y||this.lineSeparator())},getSelections:function(y){for(var ee=[],Ee=this.sel.ranges,xe=0;xe<Ee.length;xe++){var Te=mn(this,Ee[xe].from(),Ee[xe].to());y!==!1&&(Te=Te.join(y||this.lineSeparator())),ee[xe]=Te}return ee},replaceSelection:function(y,ee,Ee){for(var xe=[],Te=0;Te<this.sel.ranges.length;Te++)xe[Te]=y;this.replaceSelections(xe,ee,Ee||"+input")},replaceSelections:Mo(function(y,ee,Ee){for(var xe=[],Te=this.sel,Ge=0;Ge<Te.ranges.length;Ge++){var st=Te.ranges[Ge];xe[Ge]={from:st.from(),to:st.to(),text:this.splitLines(y[Ge]),origin:Ee}}for(var wt=ee&&ee!="end"&&bt(this,xe,ee),Ot=xe.length-1;Ot>=0;Ot--)oo(this,xe[Ot]);wt?Lr(this,wt):this.cm&&Us(this.cm)}),undo:Mo(function(){Ho(this,"undo")}),redo:Mo(function(){Ho(this,"redo")}),undoSelection:Mo(function(){Ho(this,"undo",!0)}),redoSelection:Mo(function(){Ho(this,"redo",!0)}),setExtending:function(y){this.extend=y},getExtending:function(){return this.extend},historySize:function(){for(var y=this.history,ee=0,Ee=0,xe=0;xe<y.done.length;xe++)y.done[xe].ranges||++ee;for(var Te=0;Te<y.undone.length;Te++)y.undone[Te].ranges||++Ee;return{undo:ee,redo:Ee}},clearHistory:function(){var y=this;this.history=new pn(this.history.maxGeneration),$t(this,function(ee){return ee.history=y.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(y){return y&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(y){return this.history.generation==(y||this.cleanGeneration)},getHistory:function(){return{done:Vr(this.history.done),undone:Vr(this.history.undone)}},setHistory:function(y){var ee=this.history=new pn(this.history.maxGeneration);ee.done=Vr(y.done.slice(0),null,!0),ee.undone=Vr(y.undone.slice(0),null,!0)},setGutterMarker:Mo(function(y,ee,Ee){return Ao(this,y,"gutter",function(xe){var Te=xe.gutterMarkers||(xe.gutterMarkers={});return Te[ee]=Ee,!Ee&&He(Te)&&(xe.gutterMarkers=null),!0})}),clearGutter:Mo(function(y){var ee=this;this.iter(function(Ee){Ee.gutterMarkers&&Ee.gutterMarkers[y]&&Ao(ee,Ee,"gutter",function(){return Ee.gutterMarkers[y]=null,He(Ee.gutterMarkers)&&(Ee.gutterMarkers=null),!0})})}),lineInfo:function(y){var ee;if(typeof y=="number"){if(!Rt(this,y)||(ee=y,y=sn(this,y),!y))return null}else if(ee=Vt(y),ee==null)return null;return{line:ee,handle:y,text:y.text,gutterMarkers:y.gutterMarkers,textClass:y.textClass,bgClass:y.bgClass,wrapClass:y.wrapClass,widgets:y.widgets}},addLineClass:Mo(function(y,ee,Ee){return Ao(this,y,ee=="gutter"?"gutter":"class",function(xe){var Te=ee=="text"?"textClass":ee=="background"?"bgClass":ee=="gutter"?"gutterClass":"wrapClass";if(!xe[Te])xe[Te]=Ee;else{if(re(Ee).test(xe[Te]))return!1;xe[Te]+=" "+Ee}return!0})}),removeLineClass:Mo(function(y,ee,Ee){return Ao(this,y,ee=="gutter"?"gutter":"class",function(xe){var Te=ee=="text"?"textClass":ee=="background"?"bgClass":ee=="gutter"?"gutterClass":"wrapClass",Ge=xe[Te];if(Ge)if(Ee==null)xe[Te]=null;else{var st=Ge.match(re(Ee));if(!st)return!1;var wt=st.index+st[0].length;xe[Te]=Ge.slice(0,st.index)+(!st.index||wt==Ge.length?"":" ")+Ge.slice(wt)||null}else return!1;return!0})}),addLineWidget:Mo(function(y,ee,Ee){return No(this,y,ee,Ee)}),removeLineWidget:function(y){y.clear()},markText:function(y,ee,Ee){return rl(this,Dt(this,y),Dt(this,ee),Ee,Ee&&Ee.type||"range")},setBookmark:function(y,ee){var Ee={replacedWith:ee&&(ee.nodeType==null?ee.widget:ee),insertLeft:ee&&ee.insertLeft,clearWhenEmpty:!1,shared:ee&&ee.shared,handleMouseEvents:ee&&ee.handleMouseEvents};return y=Dt(this,y),rl(this,y,y,Ee,"bookmark")},findMarksAt:function(y){y=Dt(this,y);var ee=[],Ee=sn(this,y.line).markedSpans;if(Ee)for(var xe=0;xe<Ee.length;++xe){var Te=Ee[xe];(Te.from==null||Te.from<=y.ch)&&(Te.to==null||Te.to>=y.ch)&&ee.push(Te.marker.parent||Te.marker)}return ee},findMarks:function(y,ee,Ee){y=Dt(this,y),ee=Dt(this,ee);var xe=[],Te=y.line;return this.iter(y.line,ee.line+1,function(Ge){var st=Ge.markedSpans;if(st)for(var wt=0;wt<st.length;wt++){var Ot=st[wt];!(Ot.to!=null&&Te==y.line&&y.ch>=Ot.to||Ot.from==null&&Te!=y.line||Ot.from!=null&&Te==ee.line&&Ot.from>=ee.ch)&&(!Ee||Ee(Ot.marker))&&xe.push(Ot.marker.parent||Ot.marker)}++Te}),xe},getAllMarks:function(){var y=[];return this.iter(function(ee){var Ee=ee.markedSpans;if(Ee)for(var xe=0;xe<Ee.length;++xe)Ee[xe].from!=null&&y.push(Ee[xe].marker)}),y},posFromIndex:function(y){var ee,Ee=this.first,xe=this.lineSeparator().length;return this.iter(function(Te){var Ge=Te.text.length+xe;if(Ge>y)return ee=y,!0;y-=Ge,++Ee}),Dt(this,Mt(Ee,ee))},indexFromPos:function(y){y=Dt(this,y);var ee=y.ch;if(y.line<this.first||y.ch<0)return 0;var Ee=this.lineSeparator().length;return this.iter(this.first,y.line,function(xe){ee+=xe.text.length+Ee}),ee},copy:function(y){var ee=new po(Zn(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return ee.scrollTop=this.scrollTop,ee.scrollLeft=this.scrollLeft,ee.sel=this.sel,ee.extend=!1,y&&(ee.history.undoDepth=this.history.undoDepth,ee.setHistory(this.getHistory())),ee},linkedDoc:function(y){y||(y={});var ee=this.first,Ee=this.first+this.size;y.from!=null&&y.from>ee&&(ee=y.from),y.to!=null&&y.to<Ee&&(Ee=y.to);var xe=new po(Zn(this,ee,Ee),y.mode||this.modeOption,ee,this.lineSep,this.direction);return y.sharedHist&&(xe.history=this.history),(this.linked||(this.linked=[])).push({doc:xe,sharedHist:y.sharedHist}),xe.linked=[{doc:this,isParent:!0,sharedHist:y.sharedHist}],Ks(xe,cs(this)),xe},unlinkDoc:function(y){if(y instanceof Lo&&(y=y.doc),this.linked)for(var ee=0;ee<this.linked.length;++ee){var Ee=this.linked[ee];if(Ee.doc==y){this.linked.splice(ee,1),y.unlinkDoc(this),Os(cs(this));break}}if(y.history==this.history){var xe=[y.id];$t(y,function(Te){return xe.push(Te.id)},!0),y.history=new pn(null),y.history.done=Vr(this.history.done,xe),y.history.undone=Vr(this.history.undone,xe)}},iterLinkedDocs:function(y){$t(this,y)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(y){return this.lineSep?y.split(this.lineSep):nr(y)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:Mo(function(y){y!="rtl"&&(y="ltr"),y!=this.direction&&(this.direction=y,this.iter(function(ee){return ee.order=null}),this.cm&&Dn(this.cm))})}),po.prototype.eachLine=po.prototype.iter;var Ps=0;function fl(y){var ee=this;if(jl(ee),!(an(ee,y)||ir(ee.display,y))){rn(y),Oe&&(Ps=+new Date);var Ee=_s(ee,y,!0),xe=y.dataTransfer.files;if(!(!Ee||ee.isReadOnly()))if(xe&&xe.length&&window.FileReader&&window.File)for(var Te=xe.length,Ge=Array(Te),st=0,wt=function(){++st==Te&&yo(ee,function(){Ee=Dt(ee.doc,Ee);var vr={from:Ee,to:Ee,text:ee.doc.splitLines(Ge.filter(function(ai){return ai!=null}).join(ee.doc.lineSeparator())),origin:"paste"};oo(ee.doc,vr),Lr(ee.doc,ke(Dt(ee.doc,Ee),Dt(ee.doc,Ve(vr))))})()},Ot=function(vr,ai){if(ee.options.allowDropFileTypes&&$e(ee.options.allowDropFileTypes,vr.type)==-1){wt();return}var Ai=new FileReader;Ai.onerror=function(){return wt()},Ai.onload=function(){var Hi=Ai.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Hi)){wt();return}Ge[ai]=Hi,wt()},Ai.readAsText(vr)},Wt=0;Wt<xe.length;Wt++)Ot(xe[Wt],Wt);else{if(ee.state.draggingText&&ee.doc.sel.contains(Ee)>-1){ee.state.draggingText(y),setTimeout(function(){return ee.display.input.focus()},20);return}try{var On=y.dataTransfer.getData("Text");if(On){var Hn;if(ee.state.draggingText&&!ee.state.draggingText.copy&&(Hn=ee.listSelections()),Bi(ee.doc,ke(Ee,Ee)),Hn)for(var Er=0;Er<Hn.length;++Er)Za(ee.doc,"",Hn[Er].anchor,Hn[Er].head,"drag");ee.replaceSelection(On,"around","paste"),ee.display.input.focus()}}catch(vr){}}}}function il(y,ee){if(Oe&&(!y.state.draggingText||+new Date-Ps<100)){kt(ee);return}if(!(an(y,ee)||ir(y.display,ee))&&(ee.dataTransfer.setData("Text",y.getSelection()),ee.dataTransfer.effectAllowed="copyMove",ee.dataTransfer.setDragImage&&!ae)){var Ee=ye("img",null,null,"position: fixed; left: 0; top: 0;");Ee.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",le&&(Ee.width=Ee.height=1,y.display.wrapper.appendChild(Ee),Ee._top=Ee.offsetTop),ee.dataTransfer.setDragImage(Ee,0,0),le&&Ee.parentNode.removeChild(Ee)}}function al(y,ee){var Ee=_s(y,ee);if(Ee){var xe=document.createDocumentFragment();Cs(y,Ee,xe),y.display.dragCursor||(y.display.dragCursor=ye("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),y.display.lineSpace.insertBefore(y.display.dragCursor,y.display.cursorDiv)),_e(y.display.dragCursor,xe)}}function jl(y){y.display.dragCursor&&(y.display.lineSpace.removeChild(y.display.dragCursor),y.display.dragCursor=null)}function Vl(y){if(document.getElementsByClassName){for(var ee=document.getElementsByClassName("CodeMirror"),Ee=[],xe=0;xe<ee.length;xe++){var Te=ee[xe].CodeMirror;Te&&Ee.push(Te)}Ee.length&&Ee[0].operation(function(){for(var Ge=0;Ge<Ee.length;Ge++)y(Ee[Ge])})}}var Zl=!1;function Gl(){Zl||(tu(),Zl=!0)}function tu(){var y;nn(window,"resize",function(){y==null&&(y=setTimeout(function(){y=null,Vl(Ia)},100))}),nn(window,"blur",function(){return Vl(Fs)})}function Ia(y){var ee=y.display;ee.cachedCharWidth=ee.cachedTextHeight=ee.cachedPaddingH=null,ee.scrollbarsClipped=!1,y.setSize()}for(var Ha={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"},bo=0;bo<10;bo++)Ha[bo+48]=Ha[bo+96]=String(bo);for(var Io=65;Io<=90;Io++)Ha[Io]=String.fromCharCode(Io);for(var Go=1;Go<=12;Go++)Ha[Go+111]=Ha[Go+63235]="F"+Go;var Ko={};Ko.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"},Ko.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"},Ko.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"},Ko.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"]},Ko.default=ne?Ko.macDefault:Ko.pcDefault;function Ys(y){var ee=y.split(/-(?!$)/);y=ee[ee.length-1];for(var Ee,xe,Te,Ge,st=0;st<ee.length-1;st++){var wt=ee[st];if(/^(cmd|meta|m)$/i.test(wt))Ge=!0;else if(/^a(lt)?$/i.test(wt))Ee=!0;else if(/^(c|ctrl|control)$/i.test(wt))xe=!0;else if(/^s(hift)?$/i.test(wt))Te=!0;else throw new Error("Unrecognized modifier name: "+wt)}return Ee&&(y="Alt-"+y),xe&&(y="Ctrl-"+y),Ge&&(y="Cmd-"+y),Te&&(y="Shift-"+y),y}function rs(y){var ee={};for(var Ee in y)if(y.hasOwnProperty(Ee)){var xe=y[Ee];if(/^(name|fallthrough|(de|at)tach)$/.test(Ee))continue;if(xe=="..."){delete y[Ee];continue}for(var Te=Yt(Ee.split(" "),Ys),Ge=0;Ge<Te.length;Ge++){var st=void 0,wt=void 0;Ge==Te.length-1?(wt=Te.join(" "),st=xe):(wt=Te.slice(0,Ge+1).join(" "),st="...");var Ot=ee[wt];if(!Ot)ee[wt]=st;else if(Ot!=st)throw new Error("Inconsistent bindings for "+wt)}delete y[Ee]}for(var Wt in ee)y[Wt]=ee[Wt];return y}function Tl(y,ee,Ee,xe){ee=Xl(ee);var Te=ee.call?ee.call(y,xe):ee[y];if(Te===!1)return"nothing";if(Te==="...")return"multi";if(Te!=null&&Ee(Te))return"handled";if(ee.fallthrough){if(Object.prototype.toString.call(ee.fallthrough)!="[object Array]")return Tl(y,ee.fallthrough,Ee,xe);for(var Ge=0;Ge<ee.fallthrough.length;Ge++){var st=Tl(y,ee.fallthrough[Ge],Ee,xe);if(st)return st}}}function nu(y){var ee=typeof y=="string"?y:Ha[y.keyCode];return ee=="Ctrl"||ee=="Alt"||ee=="Shift"||ee=="Mod"}function Fl(y,ee,Ee){var xe=y;return ee.altKey&&xe!="Alt"&&(y="Alt-"+y),(a?ee.metaKey:ee.ctrlKey)&&xe!="Ctrl"&&(y="Ctrl-"+y),(a?ee.ctrlKey:ee.metaKey)&&xe!="Mod"&&(y="Cmd-"+y),!Ee&&ee.shiftKey&&xe!="Shift"&&(y="Shift-"+y),y}function El(y,ee){if(le&&y.keyCode==34&&y.char)return!1;var Ee=Ha[y.keyCode];return Ee==null||y.altGraphKey?!1:(y.keyCode==3&&y.code&&(Ee=y.code),Fl(Ee,y,ee))}function Xl(y){return typeof y=="string"?Ko[y]:y}function Cl(y,ee){for(var Ee=y.doc.sel.ranges,xe=[],Te=0;Te<Ee.length;Te++){for(var Ge=ee(Ee[Te]);xe.length&&Kt(Ge.from,Ct(xe).to)<=0;){var st=xe.pop();if(Kt(st.from,Ge.from)<0){Ge.from=st.from;break}}xe.push(Ge)}Zo(y,function(){for(var wt=xe.length-1;wt>=0;wt--)Za(y.doc,"",xe[wt].from,xe[wt].to,"+delete");Us(y)})}function ru(y,ee,Ee){var xe=at(y.text,ee+Ee,Ee);return xe<0||xe>y.text.length?null:xe}function Yl(y,ee,Ee){var xe=ru(y,ee.ch,Ee);return xe==null?null:new Mt(ee.line,xe,Ee<0?"after":"before")}function iu(y,ee,Ee,xe,Te){if(y){ee.doc.direction=="rtl"&&(Te=-Te);var Ge=ft(Ee,ee.doc.direction);if(Ge){var st=Te<0?Ct(Ge):Ge[0],wt=Te<0==(st.level==1),Ot=wt?"after":"before",Wt;if(st.level>0||ee.doc.direction=="rtl"){var On=Eo(ee,Ee);Wt=Te<0?Ee.text.length-1:0;var Hn=io(ee,On,Wt).top;Wt=ot(function(Er){return io(ee,On,Er).top==Hn},Te<0==(st.level==1)?st.from:st.to-1,Wt),Ot=="before"&&(Wt=ru(Ee,Wt,1))}else Wt=Te<0?st.to:st.from;return new Mt(xe,Wt,Ot)}}return new Mt(xe,Te<0?Ee.text.length:0,Te<0?"before":"after")}function pu(y,ee,Ee,xe){var Te=ft(ee,y.doc.direction);if(!Te)return Yl(ee,Ee,xe);Ee.ch>=ee.text.length?(Ee.ch=ee.text.length,Ee.sticky="before"):Ee.ch<=0&&(Ee.ch=0,Ee.sticky="after");var Ge=mt(Te,Ee.ch,Ee.sticky),st=Te[Ge];if(y.doc.direction=="ltr"&&st.level%2==0&&(xe>0?st.to>Ee.ch:st.from<Ee.ch))return Yl(ee,Ee,xe);var wt=function(ea,da){return ru(ee,ea instanceof Mt?ea.ch:ea,da)},Ot,Wt=function(ea){return y.options.lineWrapping?(Ot=Ot||Eo(y,ee),ga(y,ee,Ot,ea)):{begin:0,end:ee.text.length}},On=Wt(Ee.sticky=="before"?wt(Ee,-1):Ee.ch);if(y.doc.direction=="rtl"||st.level==1){var Hn=st.level==1==xe<0,Er=wt(Ee,Hn?1:-1);if(Er!=null&&(Hn?Er<=st.to&&Er<=On.end:Er>=st.from&&Er>=On.begin)){var vr=Hn?"before":"after";return new Mt(Ee.line,Er,vr)}}var ai=function(ea,da,ta){for(var ya=function(So,os){return os?new Mt(Ee.line,wt(So,1),"before"):new Mt(Ee.line,So,"after")};ea>=0&&ea<Te.length;ea+=da){var Oa=Te[ea],Aa=da>0==(Oa.level!=1),ja=Aa?ta.begin:wt(ta.end,-1);if(Oa.from<=ja&&ja<Oa.to||(ja=Aa?Oa.from:wt(Oa.to,-1),ta.begin<=ja&&ja<ta.end))return ya(ja,Aa)}},Ai=ai(Ge+xe,xe,On);if(Ai)return Ai;var Hi=xe>0?On.end:wt(On.begin,-1);return Hi!=null&&!(xe>0&&Hi==ee.text.length)&&(Ai=ai(xe>0?0:Te.length-1,xe,Wt(Hi)),Ai)?Ai:null}var hl={selectAll:aa,singleSelection:function(y){return y.setSelection(y.getCursor("anchor"),y.getCursor("head"),Qe)},killLine:function(y){return Cl(y,function(ee){if(ee.empty()){var Ee=sn(y.doc,ee.head.line).text.length;return ee.head.ch==Ee&&ee.head.line<y.lastLine()?{from:ee.head,to:Mt(ee.head.line+1,0)}:{from:ee.head,to:Mt(ee.head.line,Ee)}}else return{from:ee.from(),to:ee.to()}})},deleteLine:function(y){return Cl(y,function(ee){return{from:Mt(ee.from().line,0),to:Dt(y.doc,Mt(ee.to().line+1,0))}})},delLineLeft:function(y){return Cl(y,function(ee){return{from:Mt(ee.from().line,0),to:ee.from()}})},delWrappedLineLeft:function(y){return Cl(y,function(ee){var Ee=y.charCoords(ee.head,"div").top+5,xe=y.coordsChar({left:0,top:Ee},"div");return{from:xe,to:ee.from()}})},delWrappedLineRight:function(y){return Cl(y,function(ee){var Ee=y.charCoords(ee.head,"div").top+5,xe=y.coordsChar({left:y.display.lineDiv.offsetWidth+100,top:Ee},"div");return{from:ee.from(),to:xe}})},undo:function(y){return y.undo()},redo:function(y){return y.redo()},undoSelection:function(y){return y.undoSelection()},redoSelection:function(y){return y.redoSelection()},goDocStart:function(y){return y.extendSelection(Mt(y.firstLine(),0))},goDocEnd:function(y){return y.extendSelection(Mt(y.lastLine()))},goLineStart:function(y){return y.extendSelectionsBy(function(ee){return au(y,ee.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(y){return y.extendSelectionsBy(function(ee){return ou(y,ee.head)},{origin:"+move",bias:1})},goLineEnd:function(y){return y.extendSelectionsBy(function(ee){return Cu(y,ee.head.line)},{origin:"+move",bias:-1})},goLineRight:function(y){return y.extendSelectionsBy(function(ee){var Ee=y.cursorCoords(ee.head,"div").top+5;return y.coordsChar({left:y.display.lineDiv.offsetWidth+100,top:Ee},"div")},pt)},goLineLeft:function(y){return y.extendSelectionsBy(function(ee){var Ee=y.cursorCoords(ee.head,"div").top+5;return y.coordsChar({left:0,top:Ee},"div")},pt)},goLineLeftSmart:function(y){return y.extendSelectionsBy(function(ee){var Ee=y.cursorCoords(ee.head,"div").top+5,xe=y.coordsChar({left:0,top:Ee},"div");return xe.ch<y.getLine(xe.line).search(/\S/)?ou(y,ee.head):xe},pt)},goLineUp:function(y){return y.moveV(-1,"line")},goLineDown:function(y){return y.moveV(1,"line")},goPageUp:function(y){return y.moveV(-1,"page")},goPageDown:function(y){return y.moveV(1,"page")},goCharLeft:function(y){return y.moveH(-1,"char")},goCharRight:function(y){return y.moveH(1,"char")},goColumnLeft:function(y){return y.moveH(-1,"column")},goColumnRight:function(y){return y.moveH(1,"column")},goWordLeft:function(y){return y.moveH(-1,"word")},goGroupRight:function(y){return y.moveH(1,"group")},goGroupLeft:function(y){return y.moveH(-1,"group")},goWordRight:function(y){return y.moveH(1,"word")},delCharBefore:function(y){return y.deleteH(-1,"codepoint")},delCharAfter:function(y){return y.deleteH(1,"char")},delWordBefore:function(y){return y.deleteH(-1,"word")},delWordAfter:function(y){return y.deleteH(1,"word")},delGroupBefore:function(y){return y.deleteH(-1,"group")},delGroupAfter:function(y){return y.deleteH(1,"group")},indentAuto:function(y){return y.indentSelection("smart")},indentMore:function(y){return y.indentSelection("add")},indentLess:function(y){return y.indentSelection("subtract")},insertTab:function(y){return y.replaceSelection(" ")},insertSoftTab:function(y){for(var ee=[],Ee=y.listSelections(),xe=y.options.tabSize,Te=0;Te<Ee.length;Te++){var Ge=Ee[Te].from(),st=Ne(y.getLine(Ge.line),Ge.ch,xe);ee.push(Ft(xe-st%xe))}y.replaceSelections(ee)},defaultTab:function(y){y.somethingSelected()?y.indentSelection("add"):y.execCommand("insertTab")},transposeChars:function(y){return Zo(y,function(){for(var ee=y.listSelections(),Ee=[],xe=0;xe<ee.length;xe++)if(ee[xe].empty()){var Te=ee[xe].head,Ge=sn(y.doc,Te.line).text;if(Ge){if(Te.ch==Ge.length&&(Te=new Mt(Te.line,Te.ch-1)),Te.ch>0)Te=new Mt(Te.line,Te.ch+1),y.replaceRange(Ge.charAt(Te.ch-1)+Ge.charAt(Te.ch-2),Mt(Te.line,Te.ch-2),Te,"+transpose");else if(Te.line>y.doc.first){var st=sn(y.doc,Te.line-1).text;st&&(Te=new Mt(Te.line,1),y.replaceRange(Ge.charAt(0)+y.doc.lineSeparator()+st.charAt(st.length-1),Mt(Te.line-1,st.length-1),Te,"+transpose"))}}Ee.push(new pr(Te,Te))}y.setSelections(Ee)})},newlineAndIndent:function(y){return Zo(y,function(){for(var ee=y.listSelections(),Ee=ee.length-1;Ee>=0;Ee--)y.replaceRange(y.doc.lineSeparator(),ee[Ee].anchor,ee[Ee].head,"+input");ee=y.listSelections();for(var xe=0;xe<ee.length;xe++)y.indentLine(ee[xe].from().line,null,!0);Us(y)})},openLine:function(y){return y.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(y){return y.toggleOverwrite()}};function au(y,ee){var Ee=sn(y.doc,ee),xe=or(Ee);return xe!=Ee&&(ee=Vt(xe)),iu(!0,y,xe,ee,1)}function Cu(y,ee){var Ee=sn(y.doc,ee),xe=ei(Ee);return xe!=Ee&&(ee=Vt(xe)),iu(!0,y,Ee,ee,-1)}function ou(y,ee){var Ee=au(y,ee.line),xe=sn(y.doc,Ee.line),Te=ft(xe,y.doc.direction);if(!Te||Te[0].level==0){var Ge=Math.max(Ee.ch,xe.text.search(/\S/)),st=ee.line==Ee.line&&ee.ch<=Ge&&ee.ch;return Mt(Ee.line,st?0:Ge,Ee.sticky)}return Ee}function kl(y,ee,Ee){if(typeof ee=="string"&&(ee=hl[ee],!ee))return!1;y.display.input.ensurePolled();var xe=y.display.shift,Te=!1;try{y.isReadOnly()&&(y.state.suppressEdits=!0),Ee&&(y.display.shift=!1),Te=ee(y)!=ut}finally{y.display.shift=xe,y.state.suppressEdits=!1}return Te}function bu(y,ee,Ee){for(var xe=0;xe<y.state.keyMaps.length;xe++){var Te=Tl(ee,y.state.keyMaps[xe],Ee,y);if(Te)return Te}return y.options.extraKeys&&Tl(ee,y.options.extraKeys,Ee,y)||Tl(ee,y.options.keyMap,Ee,y)}var Su=new Re;function Ul(y,ee,Ee,xe){var Te=y.state.keySeq;if(Te){if(nu(ee))return"handled";if(/\'$/.test(ee)?y.state.keySeq=null:Su.set(50,function(){y.state.keySeq==Te&&(y.state.keySeq=null,y.display.input.reset())}),su(y,Te+" "+ee,Ee,xe))return!0}return su(y,ee,Ee,xe)}function su(y,ee,Ee,xe){var Te=bu(y,ee,xe);return Te=="multi"&&(y.state.keySeq=ee),Te=="handled"&&ca(y,"keyHandled",y,ee,Ee),(Te=="handled"||Te=="multi")&&(rn(Ee),Ms(y)),!!Te}function Wl(y,ee){var Ee=El(ee,!0);return Ee?ee.shiftKey&&!y.state.keySeq?Ul(y,"Shift-"+Ee,ee,function(xe){return kl(y,xe,!0)})||Ul(y,Ee,ee,function(xe){if(typeof xe=="string"?/^go[A-Z]/.test(xe):xe.motion)return kl(y,xe)}):Ul(y,Ee,ee,function(xe){return kl(y,xe)}):!1}function lu(y,ee,Ee){return Ul(y,"'"+Ee+"'",ee,function(xe){return kl(y,xe,!0)})}var zl=null;function uu(y){var ee=this;if(!(y.target&&y.target!=ee.display.input.getField())&&(ee.curOp.focus=Ae(),!an(ee,y))){Oe&&ve<11&&y.keyCode==27&&(y.returnValue=!1);var Ee=y.keyCode;ee.display.shift=Ee==16||y.shiftKey;var xe=Wl(ee,y);le&&(zl=xe?Ee:null,!xe&&Ee==88&&!Nn&&(ne?y.metaKey:y.ctrlKey)&&ee.replaceSelection("",null,"cut")),te&&!ne&&!xe&&Ee==46&&y.shiftKey&&!y.ctrlKey&&document.execCommand&&document.execCommand("cut"),Ee==18&&!/\bCodeMirror-crosshair\b/.test(ee.display.lineDiv.className)&&gu(ee)}}function gu(y){var ee=y.display.lineDiv;we(ee,"CodeMirror-crosshair");function Ee(xe){(xe.keyCode==18||!xe.altKey)&&(ce(ee,"CodeMirror-crosshair"),yn(document,"keyup",Ee),yn(document,"mouseover",Ee))}nn(document,"keyup",Ee),nn(document,"mouseover",Ee)}function cu(y){y.keyCode==16&&(this.doc.sel.shift=!1),an(this,y)}function du(y){var ee=this;if(!(y.target&&y.target!=ee.display.input.getField())&&!(ir(ee.display,y)||an(ee,y)||y.ctrlKey&&!y.altKey||ne&&y.metaKey)){var Ee=y.keyCode,xe=y.charCode;if(le&&Ee==zl){zl=null,rn(y);return}if(!(le&&(!y.which||y.which<10)&&Wl(ee,y))){var Te=String.fromCharCode(xe==null?Ee:xe);Te!="\b"&&(lu(ee,y,Te)||ee.display.input.onKeyPress(y))}}}var wu=400,Ql=function(y,ee,Ee){this.time=y,this.pos=ee,this.button=Ee};Ql.prototype.compare=function(y,ee,Ee){return this.time+wu>y&&Kt(ee,this.pos)==0&&Ee==this.button};var bl,Ml;function fu(y,ee){var Ee=+new Date;return Ml&&Ml.compare(Ee,y,ee)?(bl=Ml=null,"triple"):bl&&bl.compare(Ee,y,ee)?(Ml=new Ql(Ee,y,ee),bl=null,"double"):(bl=new Ql(Ee,y,ee),Ml=null,"single")}function hu(y){var ee=this,Ee=ee.display;if(!(an(ee,y)||Ee.activeTouch&&Ee.input.supportsTouch())){if(Ee.input.ensurePolled(),Ee.shift=y.shiftKey,ir(Ee,y)){ue||(Ee.scroller.draggable=!1,setTimeout(function(){return Ee.scroller.draggable=!0},100));return}if(!sl(ee,y)){var xe=_s(ee,y),Te=Cn(y),Ge=xe?fu(xe,Te):"single";window.focus(),Te==1&&ee.state.selectingText&&ee.state.selectingText(y),!(xe&&Au(ee,Te,xe,Ge,y))&&(Te==1?xe?eo(ee,xe,Ge,y):ln(y)==Ee.scroller&&rn(y):Te==2?(xe&&zn(ee.doc,xe),setTimeout(function(){return Ee.input.focus()},20)):Te==3&&(x?ee.display.input.onContextMenu(y):fs(ee)))}}}function Au(y,ee,Ee,xe,Te){var Ge="Click";return xe=="double"?Ge="Double"+Ge:xe=="triple"&&(Ge="Triple"+Ge),Ge=(ee==1?"Left":ee==2?"Middle":"Right")+Ge,Ul(y,Fl(Ge,Te),Te,function(st){if(typeof st=="string"&&(st=hl[st]),!st)return!1;var wt=!1;try{y.isReadOnly()&&(y.state.suppressEdits=!0),wt=st(y,Ee)!=ut}finally{y.state.suppressEdits=!1}return wt})}function Xa(y,ee,Ee){var xe=y.getOption("configureMouse"),Te=xe?xe(y,ee,Ee):{};if(Te.unit==null){var Ge=oe?Ee.shiftKey&&Ee.metaKey:Ee.altKey;Te.unit=Ge?"rectangle":ee=="single"?"char":ee=="double"?"word":"line"}return(Te.extend==null||y.doc.extend)&&(Te.extend=y.doc.extend||Ee.shiftKey),Te.addNew==null&&(Te.addNew=ne?Ee.metaKey:Ee.ctrlKey),Te.moveOnDrag==null&&(Te.moveOnDrag=!(ne?Ee.altKey:Ee.ctrlKey)),Te}function eo(y,ee,Ee,xe){Oe?setTimeout(ze(Vo,y),0):y.curOp.focus=Ae();var Te=Xa(y,Ee,xe),Ge=y.doc.sel,st;y.options.dragDrop&&Mn&&!y.isReadOnly()&&Ee=="single"&&(st=Ge.contains(ee))>-1&&(Kt((st=Ge.ranges[st]).from(),ee)<0||ee.xRel>0)&&(Kt(st.to(),ee)>0||ee.xRel<0)?is(y,xe,ee,Te):as(y,xe,ee,Te)}function is(y,ee,Ee,xe){var Te=y.display,Ge=!1,st=yo(y,function(Wt){ue&&(Te.scroller.draggable=!1),y.state.draggingText=!1,yn(Te.wrapper.ownerDocument,"mouseup",st),yn(Te.wrapper.ownerDocument,"mousemove",wt),yn(Te.scroller,"dragstart",Ot),yn(Te.scroller,"drop",st),Ge||(rn(Wt),xe.addNew||zn(y.doc,Ee,null,null,xe.extend),ue&&!ae||Oe&&ve==9?setTimeout(function(){Te.wrapper.ownerDocument.body.focus({preventScroll:!0}),Te.input.focus()},20):Te.input.focus())}),wt=function(Wt){Ge=Ge||Math.abs(ee.clientX-Wt.clientX)+Math.abs(ee.clientY-Wt.clientY)>=10},Ot=function(){return Ge=!0};ue&&(Te.scroller.draggable=!0),y.state.draggingText=st,st.copy=!xe.moveOnDrag,Te.scroller.dragDrop&&Te.scroller.dragDrop(),nn(Te.wrapper.ownerDocument,"mouseup",st),nn(Te.wrapper.ownerDocument,"mousemove",wt),nn(Te.scroller,"dragstart",Ot),nn(Te.scroller,"drop",st),fs(y),setTimeout(function(){return Te.input.focus()},20)}function Is(y,ee,Ee){if(Ee=="char")return new pr(ee,ee);if(Ee=="word")return y.findWordAt(ee);if(Ee=="line")return new pr(Mt(ee.line,0),Dt(y.doc,Mt(ee.line+1,0)));var xe=Ee(y,ee);return new pr(xe.from,xe.to)}function as(y,ee,Ee,xe){var Te=y.display,Ge=y.doc;rn(ee);var st,wt,Ot=Ge.sel,Wt=Ot.ranges;if(xe.addNew&&!xe.extend?(wt=Ge.sel.contains(Ee),wt>-1?st=Wt[wt]:st=new pr(Ee,Ee)):(st=Ge.sel.primary(),wt=Ge.sel.primIndex),xe.unit=="rectangle")xe.addNew||(st=new pr(Ee,Ee)),Ee=_s(y,ee,!0,!0),wt=-1;else{var On=Is(y,Ee,xe.unit);xe.extend?st=yi(st,On.anchor,On.head,xe.extend):st=On}xe.addNew?wt==-1?(wt=Wt.length,Or(Ge,De(y,Wt.concat([st]),wt),{scroll:!1,origin:"*mouse"})):Wt.length>1&&Wt[wt].empty()&&xe.unit=="char"&&!xe.extend?(Or(Ge,De(y,Wt.slice(0,wt).concat(Wt.slice(wt+1)),0),{scroll:!1,origin:"*mouse"}),Ot=Ge.sel):$r(Ge,wt,st,rt):(wt=0,Or(Ge,new gr([st],0),rt),Ot=Ge.sel);var Hn=Ee;function Er(ta){if(Kt(Hn,ta)!=0)if(Hn=ta,xe.unit=="rectangle"){for(var ya=[],Oa=y.options.tabSize,Aa=Ne(sn(Ge,Ee.line).text,Ee.ch,Oa),ja=Ne(sn(Ge,ta.line).text,ta.ch,Oa),So=Math.min(Aa,ja),os=Math.max(Aa,ja),Fo=Math.min(Ee.line,ta.line),js=Math.min(y.lastLine(),Math.max(Ee.line,ta.line));Fo<=js;Fo++){var Ls=sn(Ge,Fo).text,Xo=At(Ls,So,Oa);So==os?ya.push(new pr(Mt(Fo,Xo),Mt(Fo,Xo))):Ls.length>Xo&&ya.push(new pr(Mt(Fo,Xo),Mt(Fo,At(Ls,os,Oa))))}ya.length||ya.push(new pr(Ee,Ee)),Or(Ge,De(y,Ot.ranges.slice(0,wt).concat(ya),wt),{origin:"*mouse",scroll:!1}),y.scrollIntoView(ta)}else{var Rs=st,ds=Is(y,ta,xe.unit),es=Rs.anchor,Yo;Kt(ds.anchor,es)>0?(Yo=ds.head,es=Tt(Rs.from(),ds.anchor)):(Yo=ds.anchor,es=vn(Rs.to(),ds.head));var Uo=Ot.ranges.slice(0);Uo[wt]=Ol(y,new pr(Dt(Ge,es),Yo)),Or(Ge,De(y,Uo,wt),rt)}}var vr=Te.wrapper.getBoundingClientRect(),ai=0;function Ai(ta){var ya=++ai,Oa=_s(y,ta,!0,xe.unit=="rectangle");if(Oa)if(Kt(Oa,Hn)!=0){y.curOp.focus=Ae(),Er(Oa);var Aa=ks(Te,Ge);(Oa.line>=Aa.to||Oa.line<Aa.from)&&setTimeout(yo(y,function(){ai==ya&&Ai(ta)}),150)}else{var ja=ta.clientY<vr.top?-20:ta.clientY>vr.bottom?20:0;ja&&setTimeout(yo(y,function(){ai==ya&&(Te.scroller.scrollTop+=ja,Ai(ta))}),50)}}function Hi(ta){y.state.selectingText=!1,ai=1/0,ta&&(rn(ta),Te.input.focus()),yn(Te.wrapper.ownerDocument,"mousemove",ea),yn(Te.wrapper.ownerDocument,"mouseup",da),Ge.history.lastSelOrigin=null}var ea=yo(y,function(ta){ta.buttons===0||!Cn(ta)?Hi(ta):Ai(ta)}),da=yo(y,Hi);y.state.selectingText=da,nn(Te.wrapper.ownerDocument,"mousemove",ea),nn(Te.wrapper.ownerDocument,"mouseup",da)}function Ol(y,ee){var Ee=ee.anchor,xe=ee.head,Te=sn(y.doc,Ee.line);if(Kt(Ee,xe)==0&&Ee.sticky==xe.sticky)return ee;var Ge=ft(Te);if(!Ge)return ee;var st=mt(Ge,Ee.ch,Ee.sticky),wt=Ge[st];if(wt.from!=Ee.ch&&wt.to!=Ee.ch)return ee;var Ot=st+(wt.from==Ee.ch==(wt.level!=1)?0:1);if(Ot==0||Ot==Ge.length)return ee;var Wt;if(xe.line!=Ee.line)Wt=(xe.line-Ee.line)*(y.doc.direction=="ltr"?1:-1)>0;else{var On=mt(Ge,xe.ch,xe.sticky),Hn=On-st||(xe.ch-Ee.ch)*(wt.level==1?-1:1);On==Ot-1||On==Ot?Wt=Hn<0:Wt=Hn>0}var Er=Ge[Ot+(Wt?-1:0)],vr=Wt==(Er.level==1),ai=vr?Er.from:Er.to,Ai=vr?"after":"before";return Ee.ch==ai&&Ee.sticky==Ai?ee:new pr(new Mt(Ee.line,ai,Ai),xe)}function vl(y,ee,Ee,xe){var Te,Ge;if(ee.touches)Te=ee.touches[0].clientX,Ge=ee.touches[0].clientY;else try{Te=ee.clientX,Ge=ee.clientY}catch(Er){return!1}if(Te>=Math.floor(y.display.gutters.getBoundingClientRect().right))return!1;xe&&rn(ee);var st=y.display,wt=st.lineDiv.getBoundingClientRect();if(Ge>wt.bottom||!Jt(y,Ee))return Bn(ee);Ge-=wt.top-st.viewOffset;for(var Ot=0;Ot<y.display.gutterSpecs.length;++Ot){var Wt=st.gutters.childNodes[Ot];if(Wt&&Wt.getBoundingClientRect().right>=Te){var On=Gt(y.doc,Ge),Hn=y.display.gutterSpecs[Ot];return xn(y,Ee,y,On,Hn.className,ee),Bn(ee)}}}function sl(y,ee){return vl(y,ee,"gutterClick",!0)}function Pl(y,ee){ir(y.display,ee)||vu(y,ee)||an(y,ee,"contextmenu")||x||y.display.input.onContextMenu(ee)}function vu(y,ee){return Jt(y,"gutterContextMenu")?vl(y,ee,"gutterContextMenu",!1):!1}function Iu(y){y.display.wrapper.className=y.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+y.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Xi(y)}var Jl={toString:function(){return"CodeMirror.Init"}},Lu={},yu={};function Hu(y){var ee=y.optionHandlers;function Ee(xe,Te,Ge,st){y.defaults[xe]=Te,Ge&&(ee[xe]=st?function(wt,Ot,Wt){Wt!=Jl&&Ge(wt,Ot,Wt)}:Ge)}y.defineOption=Ee,y.Init=Jl,Ee("value","",function(xe,Te){return xe.setValue(Te)},!0),Ee("mode",null,function(xe,Te){xe.doc.modeOption=Te,vt(xe)},!0),Ee("indentUnit",2,vt,!0),Ee("indentWithTabs",!1),Ee("smartIndent",!0),Ee("tabSize",4,function(xe){Nt(xe),Xi(xe),To(xe)},!0),Ee("lineSeparator",null,function(xe,Te){if(xe.doc.lineSep=Te,!!Te){var Ge=[],st=xe.doc.first;xe.doc.iter(function(Ot){for(var Wt=0;;){var On=Ot.text.indexOf(Te,Wt);if(On==-1)break;Wt=On+Te.length,Ge.push(Mt(st,On))}st++});for(var wt=Ge.length-1;wt>=0;wt--)Za(xe.doc,Te,Ge[wt],Mt(Ge[wt].line,Ge[wt].ch+Te.length))}}),Ee("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(xe,Te,Ge){xe.state.specialChars=new RegExp(Te.source+(Te.test(" ")?"":"| "),"g"),Ge!=Jl&&xe.refresh()}),Ee("specialCharPlaceholder",Gi,function(xe){return xe.refresh()},!0),Ee("electricChars",!0),Ee("inputStyle",z?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),Ee("spellcheck",!1,function(xe,Te){return xe.getInputField().spellcheck=Te},!0),Ee("autocorrect",!1,function(xe,Te){return xe.getInputField().autocorrect=Te},!0),Ee("autocapitalize",!1,function(xe,Te){return xe.getInputField().autocapitalize=Te},!0),Ee("rtlMoveVisually",!se),Ee("wholeLineUpdateBefore",!0),Ee("theme","default",function(xe){Iu(xe),qn(xe)},!0),Ee("keyMap","default",function(xe,Te,Ge){var st=Xl(Te),wt=Ge!=Jl&&Xl(Ge);wt&&wt.detach&&wt.detach(xe,st),st.attach&&st.attach(xe,wt||null)}),Ee("extraKeys",null),Ee("configureMouse",null),Ee("lineWrapping",!1,ju,!0),Ee("gutters",[],function(xe,Te){xe.display.gutterSpecs=wn(Te,xe.options.lineNumbers),qn(xe)},!0),Ee("fixedGutter",!0,function(xe,Te){xe.display.gutters.style.left=Te?uo(xe.display)+"px":"0",xe.refresh()},!0),Ee("coverGutterNextToScrollbar",!1,function(xe){return hs(xe)},!0),Ee("scrollbarStyle","native",function(xe){_l(xe),hs(xe),xe.display.scrollbars.setScrollTop(xe.doc.scrollTop),xe.display.scrollbars.setScrollLeft(xe.doc.scrollLeft)},!0),Ee("lineNumbers",!1,function(xe,Te){xe.display.gutterSpecs=wn(xe.options.gutters,Te),qn(xe)},!0),Ee("firstLineNumber",1,qn,!0),Ee("lineNumberFormatter",function(xe){return xe},qn,!0),Ee("showCursorWhenSelecting",!1,Es,!0),Ee("resetSelectionOnContextMenu",!0),Ee("lineWiseCopyCut",!0),Ee("pasteLinesPerSelection",!0),Ee("selectionsMayTouch",!1),Ee("readOnly",!1,function(xe,Te){Te=="nocursor"&&(Fs(xe),xe.display.input.blur()),xe.display.input.readOnlyChanged(Te)}),Ee("screenReaderLabel",null,function(xe,Te){Te=Te===""?null:Te,xe.display.input.screenReaderLabelChanged(Te)}),Ee("disableInput",!1,function(xe,Te){Te||xe.display.input.reset()},!0),Ee("dragDrop",!0,Ku),Ee("allowDropFileTypes",null),Ee("cursorBlinkRate",530),Ee("cursorScrollMargin",0),Ee("cursorHeight",1,Es,!0),Ee("singleCursorHeightPerLine",!0,Es,!0),Ee("workTime",100),Ee("workDelay",100),Ee("flattenSpans",!0,Nt,!0),Ee("addModeClass",!1,Nt,!0),Ee("pollInterval",100),Ee("undoDepth",200,function(xe,Te){return xe.doc.history.undoDepth=Te}),Ee("historyEventDelay",1250),Ee("viewportMargin",10,function(xe){return xe.refresh()},!0),Ee("maxHighlightLength",1e4,Nt,!0),Ee("moveInputWithCursor",!0,function(xe,Te){Te||xe.display.input.resetPosition()}),Ee("tabindex",null,function(xe,Te){return xe.display.input.getField().tabIndex=Te||""}),Ee("autofocus",null),Ee("direction","ltr",function(xe,Te){return xe.doc.setDirection(Te)},!0),Ee("phrases",null)}function Ku(y,ee,Ee){var xe=Ee&&Ee!=Jl;if(!ee!=!xe){var Te=y.display.dragFunctions,Ge=ee?nn:yn;Ge(y.display.scroller,"dragstart",Te.start),Ge(y.display.scroller,"dragenter",Te.enter),Ge(y.display.scroller,"dragover",Te.over),Ge(y.display.scroller,"dragleave",Te.leave),Ge(y.display.scroller,"drop",Te.drop)}}function ju(y){y.options.lineWrapping?(we(y.display.wrapper,"CodeMirror-wrap"),y.display.sizer.style.minWidth="",y.display.sizerWidth=null):(ce(y.display.wrapper,"CodeMirror-wrap"),Sn(y)),Ds(y),To(y),Xi(y),setTimeout(function(){return hs(y)},100)}function Lo(y,ee){var Ee=this;if(!(this instanceof Lo))return new Lo(y,ee);this.options=ee=ee?Ke(ee):{},Ke(Lu,ee,!1);var xe=ee.value;typeof xe=="string"?xe=new po(xe,ee.mode,null,ee.lineSeparator,ee.direction):ee.mode&&(xe.modeOption=ee.mode),this.doc=xe;var Te=new Lo.inputStyles[ee.inputStyle](this),Ge=this.display=new En(y,xe,Te,ee);Ge.wrapper.CodeMirror=this,Iu(this),ee.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),_l(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 Re,keySeq:null,specialChars:null},ee.autofocus&&!z&&Ge.input.focus(),Oe&&ve<11&&setTimeout(function(){return Ee.display.input.reset(!0)},20),Vu(this),Gl(),vs(this),this.curOp.forceUpdate=!0,hn(this,xe),ee.autofocus&&!z||this.hasFocus()?setTimeout(function(){Ee.hasFocus()&&!Ee.state.focused&&ul(Ee)},20):Fs(this);for(var st in yu)yu.hasOwnProperty(st)&&yu[st](this,ee[st],Jl);cn(this),ee.finishInit&&ee.finishInit(this);for(var wt=0;wt<Du.length;++wt)Du[wt](this);ha(this),ue&&ee.lineWrapping&&getComputedStyle(Ge.lineDiv).textRendering=="optimizelegibility"&&(Ge.lineDiv.style.textRendering="auto")}Lo.defaults=Lu,Lo.optionHandlers=yu;function Vu(y){var ee=y.display;nn(ee.scroller,"mousedown",yo(y,hu)),Oe&&ve<11?nn(ee.scroller,"dblclick",yo(y,function(Ot){if(!an(y,Ot)){var Wt=_s(y,Ot);if(!(!Wt||sl(y,Ot)||ir(y.display,Ot))){rn(Ot);var On=y.findWordAt(Wt);zn(y.doc,On.anchor,On.head)}}})):nn(ee.scroller,"dblclick",function(Ot){return an(y,Ot)||rn(Ot)}),nn(ee.scroller,"contextmenu",function(Ot){return Pl(y,Ot)}),nn(ee.input.getField(),"contextmenu",function(Ot){ee.scroller.contains(Ot.target)||Pl(y,Ot)});var Ee,xe={end:0};function Te(){ee.activeTouch&&(Ee=setTimeout(function(){return ee.activeTouch=null},1e3),xe=ee.activeTouch,xe.end=+new Date)}function Ge(Ot){if(Ot.touches.length!=1)return!1;var Wt=Ot.touches[0];return Wt.radiusX<=1&&Wt.radiusY<=1}function st(Ot,Wt){if(Wt.left==null)return!0;var On=Wt.left-Ot.left,Hn=Wt.top-Ot.top;return On*On+Hn*Hn>20*20}nn(ee.scroller,"touchstart",function(Ot){if(!an(y,Ot)&&!Ge(Ot)&&!sl(y,Ot)){ee.input.ensurePolled(),clearTimeout(Ee);var Wt=+new Date;ee.activeTouch={start:Wt,moved:!1,prev:Wt-xe.end<=300?xe:null},Ot.touches.length==1&&(ee.activeTouch.left=Ot.touches[0].pageX,ee.activeTouch.top=Ot.touches[0].pageY)}}),nn(ee.scroller,"touchmove",function(){ee.activeTouch&&(ee.activeTouch.moved=!0)}),nn(ee.scroller,"touchend",function(Ot){var Wt=ee.activeTouch;if(Wt&&!ir(ee,Ot)&&Wt.left!=null&&!Wt.moved&&new Date-Wt.start<300){var On=y.coordsChar(ee.activeTouch,"page"),Hn;!Wt.prev||st(Wt,Wt.prev)?Hn=new pr(On,On):!Wt.prev.prev||st(Wt,Wt.prev.prev)?Hn=y.findWordAt(On):Hn=new pr(Mt(On.line,0),Dt(y.doc,Mt(On.line+1,0))),y.setSelection(Hn.anchor,Hn.head),y.focus(),rn(Ot)}Te()}),nn(ee.scroller,"touchcancel",Te),nn(ee.scroller,"scroll",function(){ee.scroller.clientHeight&&(el(y,ee.scroller.scrollTop),zs(y,ee.scroller.scrollLeft,!0),xn(y,"scroll",y))}),nn(ee.scroller,"mousewheel",function(Ot){return br(y,Ot)}),nn(ee.scroller,"DOMMouseScroll",function(Ot){return br(y,Ot)}),nn(ee.wrapper,"scroll",function(){return ee.wrapper.scrollTop=ee.wrapper.scrollLeft=0}),ee.dragFunctions={enter:function(Ot){an(y,Ot)||kt(Ot)},over:function(Ot){an(y,Ot)||(al(y,Ot),kt(Ot))},start:function(Ot){return il(y,Ot)},drop:yo(y,fl),leave:function(Ot){an(y,Ot)||jl(y)}};var wt=ee.input.getField();nn(wt,"keyup",function(Ot){return cu.call(y,Ot)}),nn(wt,"keydown",yo(y,uu)),nn(wt,"keypress",yo(y,du)),nn(wt,"focus",function(Ot){return ul(y,Ot)}),nn(wt,"blur",function(Ot){return Fs(y,Ot)})}var Du=[];Lo.defineInitHook=function(y){return Du.push(y)};function mu(y,ee,Ee,xe){var Te=y.doc,Ge;Ee==null&&(Ee="add"),Ee=="smart"&&(Te.mode.indent?Ge=_r(y,ee).state:Ee="prev");var st=y.options.tabSize,wt=sn(Te,ee),Ot=Ne(wt.text,null,st);wt.stateAfter&&(wt.stateAfter=null);var Wt=wt.text.match(/^\s*/)[0],On;if(!xe&&!/\S/.test(wt.text))On=0,Ee="not";else if(Ee=="smart"&&(On=Te.mode.indent(Ge,wt.text.slice(Wt.length),wt.text),On==ut||On>150)){if(!xe)return;Ee="prev"}Ee=="prev"?ee>Te.first?On=Ne(sn(Te,ee-1).text,null,st):On=0:Ee=="add"?On=Ot+y.options.indentUnit:Ee=="subtract"?On=Ot-y.options.indentUnit:typeof Ee=="number"&&(On=Ot+Ee),On=Math.max(0,On);var Hn="",Er=0;if(y.options.indentWithTabs)for(var vr=Math.floor(On/st);vr;--vr)Er+=st,Hn+=" ";if(Er<On&&(Hn+=Ft(On-Er)),Hn!=Wt)return Za(Te,Hn,Mt(ee,0),Mt(ee,Wt.length),"+input"),wt.stateAfter=null,!0;for(var ai=0;ai<Te.sel.ranges.length;ai++){var Ai=Te.sel.ranges[ai];if(Ai.head.line==ee&&Ai.head.ch<Wt.length){var Hi=Mt(ee,Wt.length);$r(Te,ai,new pr(Hi,Hi));break}}}var ll=null;function _u(y){ll=y}function Tu(y,ee,Ee,xe,Te){var Ge=y.doc;y.display.shift=!1,xe||(xe=Ge.sel);var st=+new Date-200,wt=Te=="paste"||y.state.pasteIncoming>st,Ot=nr(ee),Wt=null;if(wt&&xe.ranges.length>1)if(ll&&ll.text.join(`
|
|
|
`)==ee){if(xe.ranges.length%ll.text.length==0){Wt=[];for(var On=0;On<ll.text.length;On++)Wt.push(Ge.splitLines(ll.text[On]))}}else Ot.length==xe.ranges.length&&y.options.pasteLinesPerSelection&&(Wt=Yt(Ot,function(ea){return[ea]}));for(var Hn=y.curOp.updateInput,Er=xe.ranges.length-1;Er>=0;Er--){var vr=xe.ranges[Er],ai=vr.from(),Ai=vr.to();vr.empty()&&(Ee&&Ee>0?ai=Mt(ai.line,ai.ch-Ee):y.state.overwrite&&!wt?Ai=Mt(Ai.line,Math.min(sn(Ge,Ai.line).text.length,Ai.ch+Ct(Ot).length)):wt&&ll&&ll.lineWise&&ll.text.join(`
|
|
|
`)==Ot.join(`
|
|
|
`)&&(ai=Ai=Mt(ai.line,0)));var Hi={from:ai,to:Ai,text:Wt?Wt[Er%Wt.length]:Ot,origin:Te||(wt?"paste":y.state.cutIncoming>st?"cut":"+input")};oo(y.doc,Hi),ca(y,"inputRead",y,Hi)}ee&&!wt&&Bu(y,ee),Us(y),y.curOp.updateInput<2&&(y.curOp.updateInput=Hn),y.curOp.typing=!0,y.state.pasteIncoming=y.state.cutIncoming=-1}function Ru(y,ee){var Ee=y.clipboardData&&y.clipboardData.getData("Text");if(Ee)return y.preventDefault(),!ee.isReadOnly()&&!ee.options.disableInput&&Zo(ee,function(){return Tu(ee,Ee,0,null,"paste")}),!0}function Bu(y,ee){if(!(!y.options.electricChars||!y.options.smartIndent))for(var Ee=y.doc.sel,xe=Ee.ranges.length-1;xe>=0;xe--){var Te=Ee.ranges[xe];if(!(Te.head.ch>100||xe&&Ee.ranges[xe-1].head.line==Te.head.line)){var Ge=y.getModeAt(Te.head),st=!1;if(Ge.electricChars){for(var wt=0;wt<Ge.electricChars.length;wt++)if(ee.indexOf(Ge.electricChars.charAt(wt))>-1){st=mu(y,Te.head.line,"smart");break}}else Ge.electricInput&&Ge.electricInput.test(sn(y.doc,Te.head.line).text.slice(0,Te.head.ch))&&(st=mu(y,Te.head.line,"smart"));st&&ca(y,"electricInput",y,Te.head.line)}}}function Nu(y){for(var ee=[],Ee=[],xe=0;xe<y.doc.sel.ranges.length;xe++){var Te=y.doc.sel.ranges[xe].head.line,Ge={anchor:Mt(Te,0),head:Mt(Te+1,0)};Ee.push(Ge),ee.push(y.getRange(Ge.anchor,Ge.head))}return{text:ee,ranges:Ee}}function Fu(y,ee,Ee,xe){y.setAttribute("autocorrect",Ee?"":"off"),y.setAttribute("autocapitalize",xe?"":"off"),y.setAttribute("spellcheck",!!ee)}function ku(){var y=ye("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),ee=ye("div",[y],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ue?y.style.width="1000px":y.setAttribute("wrap","off"),E&&(y.style.border="1px solid black"),Fu(y),ee}function Zu(y){var ee=y.optionHandlers,Ee=y.helpers={};y.prototype={constructor:y,focus:function(){window.focus(),this.display.input.focus()},setOption:function(xe,Te){var Ge=this.options,st=Ge[xe];Ge[xe]==Te&&xe!="mode"||(Ge[xe]=Te,ee.hasOwnProperty(xe)&&yo(this,ee[xe])(this,Te,st),xn(this,"optionChange",this,xe))},getOption:function(xe){return this.options[xe]},getDoc:function(){return this.doc},addKeyMap:function(xe,Te){this.state.keyMaps[Te?"push":"unshift"](Xl(xe))},removeKeyMap:function(xe){for(var Te=this.state.keyMaps,Ge=0;Ge<Te.length;++Ge)if(Te[Ge]==xe||Te[Ge].name==xe)return Te.splice(Ge,1),!0},addOverlay:zo(function(xe,Te){var Ge=xe.token?xe:y.getMode(this.options,xe);if(Ge.startState)throw new Error("Overlays may not be stateful.");zt(this.state.overlays,{mode:Ge,modeSpec:xe,opaque:Te&&Te.opaque,priority:Te&&Te.priority||0},function(st){return st.priority}),this.state.modeGen++,To(this)}),removeOverlay:zo(function(xe){for(var Te=this.state.overlays,Ge=0;Ge<Te.length;++Ge){var st=Te[Ge].modeSpec;if(st==xe||typeof xe=="string"&&st.name==xe){Te.splice(Ge,1),this.state.modeGen++,To(this);return}}}),indentLine:zo(function(xe,Te,Ge){typeof Te!="string"&&typeof Te!="number"&&(Te==null?Te=this.options.smartIndent?"smart":"prev":Te=Te?"add":"subtract"),Rt(this.doc,xe)&&mu(this,xe,Te,Ge)}),indentSelection:zo(function(xe){for(var Te=this.doc.sel.ranges,Ge=-1,st=0;st<Te.length;st++){var wt=Te[st];if(wt.empty())wt.head.line>Ge&&(mu(this,wt.head.line,xe,!0),Ge=wt.head.line,st==this.doc.sel.primIndex&&Us(this));else{var Ot=wt.from(),Wt=wt.to(),On=Math.max(Ge,Ot.line);Ge=Math.min(this.lastLine(),Wt.line-(Wt.ch?0:1))+1;for(var Hn=On;Hn<Ge;++Hn)mu(this,Hn,xe);var Er=this.doc.sel.ranges;Ot.ch==0&&Te.length==Er.length&&Er[st].from().ch>0&&$r(this.doc,st,new pr(Ot,Er[st].to()),Qe)}}}),getTokenAt:function(xe,Te){return Br(this,xe,Te)},getLineTokens:function(xe,Te){return Br(this,Mt(xe),Te,!0)},getTokenTypeAt:function(xe){xe=Dt(this.doc,xe);var Te=dr(this,sn(this.doc,xe.line)),Ge=0,st=(Te.length-1)/2,wt=xe.ch,Ot;if(wt==0)Ot=Te[2];else for(;;){var Wt=Ge+st>>1;if((Wt?Te[Wt*2-1]:0)>=wt)st=Wt;else if(Te[Wt*2+1]<wt)Ge=Wt+1;else{Ot=Te[Wt*2+2];break}}var On=Ot?Ot.indexOf("overlay "):-1;return On<0?Ot:On==0?null:Ot.slice(0,On-1)},getModeAt:function(xe){var Te=this.doc.mode;return Te.innerMode?y.innerMode(Te,this.getTokenAt(xe).state).mode:Te},getHelper:function(xe,Te){return this.getHelpers(xe,Te)[0]},getHelpers:function(xe,Te){var Ge=[];if(!Ee.hasOwnProperty(Te))return Ge;var st=Ee[Te],wt=this.getModeAt(xe);if(typeof wt[Te]=="string")st[wt[Te]]&&Ge.push(st[wt[Te]]);else if(wt[Te])for(var Ot=0;Ot<wt[Te].length;Ot++){var Wt=st[wt[Te][Ot]];Wt&&Ge.push(Wt)}else wt.helperType&&st[wt.helperType]?Ge.push(st[wt.helperType]):st[wt.name]&&Ge.push(st[wt.name]);for(var On=0;On<st._global.length;On++){var Hn=st._global[On];Hn.pred(wt,this)&&$e(Ge,Hn.val)==-1&&Ge.push(Hn.val)}return Ge},getStateAfter:function(xe,Te){var Ge=this.doc;return xe=It(Ge,xe==null?Ge.first+Ge.size-1:xe),_r(this,xe+1,Te).state},cursorCoords:function(xe,Te){var Ge,st=this.doc.sel.primary();return xe==null?Ge=st.head:typeof xe=="object"?Ge=Dt(this.doc,xe):Ge=xe?st.from():st.to(),Sa(this,Ge,Te||"page")},charCoords:function(xe,Te){return fi(this,Dt(this.doc,xe),Te||"page")},coordsChar:function(xe,Te){return xe=zr(this,xe,Te||"page"),wa(this,xe.left,xe.top)},lineAtHeight:function(xe,Te){return xe=zr(this,{top:xe,left:0},Te||"page").top,Gt(this.doc,xe+this.display.viewOffset)},heightAtLine:function(xe,Te,Ge){var st=!1,wt;if(typeof xe=="number"){var Ot=this.doc.first+this.doc.size-1;xe<this.doc.first?xe=this.doc.first:xe>Ot&&(xe=Ot,st=!0),wt=sn(this.doc,xe)}else wt=xe;return Ja(this,wt,{top:0,left:0},Te||"page",Ge||st).top+(st?this.doc.height-un(wt):0)},defaultTextHeight:function(){return Jo(this.display)},defaultCharWidth:function(){return wo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(xe,Te,Ge,st,wt){var Ot=this.display;xe=Sa(this,Dt(this.doc,xe));var Wt=xe.bottom,On=xe.left;if(Te.style.position="absolute",Te.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Te),Ot.sizer.appendChild(Te),st=="over")Wt=xe.top;else if(st=="above"||st=="near"){var Hn=Math.max(Ot.wrapper.clientHeight,this.doc.height),Er=Math.max(Ot.sizer.clientWidth,Ot.lineSpace.clientWidth);(st=="above"||xe.bottom+Te.offsetHeight>Hn)&&xe.top>Te.offsetHeight?Wt=xe.top-Te.offsetHeight:xe.bottom+Te.offsetHeight<=Hn&&(Wt=xe.bottom),On+Te.offsetWidth>Er&&(On=Er-Te.offsetWidth)}Te.style.top=Wt+"px",Te.style.left=Te.style.right="",wt=="right"?(On=Ot.sizer.clientWidth-Te.offsetWidth,Te.style.right="0px"):(wt=="left"?On=0:wt=="middle"&&(On=(Ot.sizer.clientWidth-Te.offsetWidth)/2),Te.style.left=On+"px"),Ge&&Al(this,{left:On,top:Wt,right:On+Te.offsetWidth,bottom:Wt+Te.offsetHeight})},triggerOnKeyDown:zo(uu),triggerOnKeyPress:zo(du),triggerOnKeyUp:cu,triggerOnMouseDown:zo(hu),execCommand:function(xe){if(hl.hasOwnProperty(xe))return hl[xe].call(null,this)},triggerElectric:zo(function(xe){Bu(this,xe)}),findPosH:function(xe,Te,Ge,st){var wt=1;Te<0&&(wt=-1,Te=-Te);for(var Ot=Dt(this.doc,xe),Wt=0;Wt<Te&&(Ot=Mu(this.doc,Ot,wt,Ge,st),!Ot.hitSide);++Wt);return Ot},moveH:zo(function(xe,Te){var Ge=this;this.extendSelectionsBy(function(st){return Ge.display.shift||Ge.doc.extend||st.empty()?Mu(Ge.doc,st.head,xe,Te,Ge.options.rtlMoveVisually):xe<0?st.from():st.to()},pt)}),deleteH:zo(function(xe,Te){var Ge=this.doc.sel,st=this.doc;Ge.somethingSelected()?st.replaceSelection("",null,"+delete"):Cl(this,function(wt){var Ot=Mu(st,wt.head,xe,Te,!1);return xe<0?{from:Ot,to:wt.head}:{from:wt.head,to:Ot}})}),findPosV:function(xe,Te,Ge,st){var wt=1,Ot=st;Te<0&&(wt=-1,Te=-Te);for(var Wt=Dt(this.doc,xe),On=0;On<Te;++On){var Hn=Sa(this,Wt,"div");if(Ot==null?Ot=Hn.left:Hn.left=Ot,Wt=Uu(this,Hn,wt,Ge),Wt.hitSide)break}return Wt},moveV:zo(function(xe,Te){var Ge=this,st=this.doc,wt=[],Ot=!this.display.shift&&!st.extend&&st.sel.somethingSelected();if(st.extendSelectionsBy(function(On){if(Ot)return xe<0?On.from():On.to();var Hn=Sa(Ge,On.head,"div");On.goalColumn!=null&&(Hn.left=On.goalColumn),wt.push(Hn.left);var Er=Uu(Ge,Hn,xe,Te);return Te=="page"&&On==st.sel.primary()&&Zs(Ge,fi(Ge,Er,"div").top-Hn.top),Er},pt),wt.length)for(var Wt=0;Wt<st.sel.ranges.length;Wt++)st.sel.ranges[Wt].goalColumn=wt[Wt]}),findWordAt:function(xe){var Te=this.doc,Ge=sn(Te,xe.line).text,st=xe.ch,wt=xe.ch;if(Ge){var Ot=this.getHelper(xe,"wordChars");(xe.sticky=="before"||wt==Ge.length)&&st?--st:++wt;for(var Wt=Ge.charAt(st),On=et(Wt,Ot)?function(Hn){return et(Hn,Ot)}:/\s/.test(Wt)?function(Hn){return/\s/.test(Hn)}:function(Hn){return!/\s/.test(Hn)&&!et(Hn)};st>0&&On(Ge.charAt(st-1));)--st;for(;wt<Ge.length&&On(Ge.charAt(wt));)++wt}return new pr(Mt(xe.line,st),Mt(xe.line,wt))},toggleOverwrite:function(xe){xe!=null&&xe==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?we(this.display.cursorDiv,"CodeMirror-overwrite"):ce(this.display.cursorDiv,"CodeMirror-overwrite"),xn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ae()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:zo(function(xe,Te){Ws(this,xe,Te)}),getScrollInfo:function(){var xe=this.display.scroller;return{left:xe.scrollLeft,top:xe.scrollTop,height:xe.scrollHeight-Ya(this)-this.display.barHeight,width:xe.scrollWidth-Ya(this)-this.display.barWidth,clientHeight:pa(this),clientWidth:xi(this)}},scrollIntoView:zo(function(xe,Te){xe==null?(xe={from:this.doc.sel.primary().head,to:null},Te==null&&(Te=this.options.cursorScrollMargin)):typeof xe=="number"?xe={from:Mt(xe,0),to:null}:xe.from==null&&(xe={from:xe,to:null}),xe.to||(xe.to=xe.from),xe.margin=Te||0,xe.from.line!=null?Ll(this,xe):dl(this,xe.from,xe.to,xe.margin)}),setSize:zo(function(xe,Te){var Ge=this,st=function(Ot){return typeof Ot=="number"||/^\d+$/.test(String(Ot))?Ot+"px":Ot};xe!=null&&(this.display.wrapper.style.width=st(xe)),Te!=null&&(this.display.wrapper.style.height=st(Te)),this.options.lineWrapping&&Do(this);var wt=this.display.viewFrom;this.doc.iter(wt,this.display.viewTo,function(Ot){if(Ot.widgets){for(var Wt=0;Wt<Ot.widgets.length;Wt++)if(Ot.widgets[Wt].noHScroll){Ts(Ge,wt,"widget");break}}++wt}),this.curOp.forceUpdate=!0,xn(this,"refresh",this)}),operation:function(xe){return Zo(this,xe)},startOperation:function(){return vs(this)},endOperation:function(){return ha(this)},refresh:zo(function(){var xe=this.display.cachedTextHeight;To(this),this.curOp.forceUpdate=!0,Xi(this),Ws(this,this.doc.scrollLeft,this.doc.scrollTop),_t(this.display),(xe==null||Math.abs(xe-Jo(this.display))>.5||this.options.lineWrapping)&&Ds(this),xn(this,"refresh",this)}),swapDoc:zo(function(xe){var Te=this.doc;return Te.cm=null,this.state.selectingText&&this.state.selectingText(),hn(this,xe),Xi(this),this.display.input.reset(),Ws(this,xe.scrollLeft,xe.scrollTop),this.curOp.forceScroll=!0,ca(this,"swapDoc",this,Te),Te}),phrase:function(xe){var Te=this.options.phrases;return Te&&Object.prototype.hasOwnProperty.call(Te,xe)?Te[xe]:xe},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}},Ut(y),y.registerHelper=function(xe,Te,Ge){Ee.hasOwnProperty(xe)||(Ee[xe]=y[xe]={_global:[]}),Ee[xe][Te]=Ge},y.registerGlobalHelper=function(xe,Te,Ge,st){y.registerHelper(xe,Te,st),Ee[xe]._global.push({pred:Ge,val:st})}}function Mu(y,ee,Ee,xe,Te){var Ge=ee,st=Ee,wt=sn(y,ee.line),Ot=Te&&y.direction=="rtl"?-Ee:Ee;function Wt(){var da=ee.line+Ot;return da<y.first||da>=y.first+y.size?!1:(ee=new Mt(da,ee.ch,ee.sticky),wt=sn(y,da))}function On(da){var ta;if(xe=="codepoint"){var ya=wt.text.charCodeAt(ee.ch+(xe>0?0:-1));isNaN(ya)?ta=null:ta=new Mt(ee.line,Math.max(0,Math.min(wt.text.length,ee.ch+Ee*(ya>=55296&&ya<56320?2:1))),-Ee)}else Te?ta=pu(y.cm,wt,ee,Ee):ta=Yl(wt,ee,Ee);if(ta==null)if(!da&&Wt())ee=iu(Te,y.cm,wt,ee.line,Ot);else return!1;else ee=ta;return!0}if(xe=="char"||xe=="codepoint")On();else if(xe=="column")On(!0);else if(xe=="word"||xe=="group")for(var Hn=null,Er=xe=="group",vr=y.cm&&y.cm.getHelper(ee,"wordChars"),ai=!0;!(Ee<0&&!On(!ai));ai=!1){var Ai=wt.text.charAt(ee.ch)||`
|
|
|
`,Hi=et(Ai,vr)?"w":Er&&Ai==`
|
|
|
`?"n":!Er||/\s/.test(Ai)?null:"p";if(Er&&!ai&&!Hi&&(Hi="s"),Hn&&Hn!=Hi){Ee<0&&(Ee=1,On(),ee.sticky="after");break}if(Hi&&(Hn=Hi),Ee>0&&!On(!ai))break}var ea=Na(y,ee,Ge,st,!0);return yt(Ge,ea)&&(ea.hitSide=!0),ea}function Uu(y,ee,Ee,xe){var Te=y.doc,Ge=ee.left,st;if(xe=="page"){var wt=Math.min(y.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Ot=Math.max(wt-.5*Jo(y.display),3);st=(Ee>0?ee.bottom:ee.top)+Ee*Ot}else xe=="line"&&(st=Ee>0?ee.bottom+3:ee.top-3);for(var Wt;Wt=wa(y,Ge,st),!!Wt.outside;){if(Ee<0?st<=0:st>=Te.height){Wt.hitSide=!0;break}st+=Ee*5}return Wt}var go=function(y){this.cm=y,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Re,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};go.prototype.init=function(y){var ee=this,Ee=this,xe=Ee.cm,Te=Ee.div=y.lineDiv;Fu(Te,xe.options.spellcheck,xe.options.autocorrect,xe.options.autocapitalize);function Ge(wt){for(var Ot=wt.target;Ot;Ot=Ot.parentNode){if(Ot==Te)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Ot.className))break}return!1}nn(Te,"paste",function(wt){!Ge(wt)||an(xe,wt)||Ru(wt,xe)||ve<=11&&setTimeout(yo(xe,function(){return ee.updateFromDOM()}),20)}),nn(Te,"compositionstart",function(wt){ee.composing={data:wt.data,done:!1}}),nn(Te,"compositionupdate",function(wt){ee.composing||(ee.composing={data:wt.data,done:!1})}),nn(Te,"compositionend",function(wt){ee.composing&&(wt.data!=ee.composing.data&&ee.readFromDOMSoon(),ee.composing.done=!0)}),nn(Te,"touchstart",function(){return Ee.forceCompositionEnd()}),nn(Te,"input",function(){ee.composing||ee.readFromDOMSoon()});function st(wt){if(!(!Ge(wt)||an(xe,wt))){if(xe.somethingSelected())_u({lineWise:!1,text:xe.getSelections()}),wt.type=="cut"&&xe.replaceSelection("",null,"cut");else if(xe.options.lineWiseCopyCut){var Ot=Nu(xe);_u({lineWise:!0,text:Ot.text}),wt.type=="cut"&&xe.operation(function(){xe.setSelections(Ot.ranges,0,Qe),xe.replaceSelection("",null,"cut")})}else return;if(wt.clipboardData){wt.clipboardData.clearData();var Wt=ll.text.join(`
|
|
|
`);if(wt.clipboardData.setData("Text",Wt),wt.clipboardData.getData("Text")==Wt){wt.preventDefault();return}}var On=ku(),Hn=On.firstChild;xe.display.lineSpace.insertBefore(On,xe.display.lineSpace.firstChild),Hn.value=ll.text.join(`
|
|
|
`);var Er=document.activeElement;Pe(Hn),setTimeout(function(){xe.display.lineSpace.removeChild(On),Er.focus(),Er==Te&&Ee.showPrimarySelection()},50)}}nn(Te,"copy",st),nn(Te,"cut",st)},go.prototype.screenReaderLabelChanged=function(y){y?this.div.setAttribute("aria-label",y):this.div.removeAttribute("aria-label")},go.prototype.prepareSelection=function(){var y=pl(this.cm,!1);return y.focus=document.activeElement==this.div,y},go.prototype.showSelection=function(y,ee){!y||!this.cm.display.view.length||((y.focus||ee)&&this.showPrimarySelection(),this.showMultipleSelections(y))},go.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},go.prototype.showPrimarySelection=function(){var y=this.getSelection(),ee=this.cm,Ee=ee.doc.sel.primary(),xe=Ee.from(),Te=Ee.to();if(ee.display.viewTo==ee.display.viewFrom||xe.line>=ee.display.viewTo||Te.line<ee.display.viewFrom){y.removeAllRanges();return}var Ge=xu(ee,y.anchorNode,y.anchorOffset),st=xu(ee,y.focusNode,y.focusOffset);if(!(Ge&&!Ge.bad&&st&&!st.bad&&Kt(Tt(Ge,st),xe)==0&&Kt(vn(Ge,st),Te)==0)){var wt=ee.display.view,Ot=xe.line>=ee.display.viewFrom&&Wu(ee,xe)||{node:wt[0].measure.map[2],offset:0},Wt=Te.line<ee.display.viewTo&&Wu(ee,Te);if(!Wt){var On=wt[wt.length-1].measure,Hn=On.maps?On.maps[On.maps.length-1]:On.map;Wt={node:Hn[Hn.length-1],offset:Hn[Hn.length-2]-Hn[Hn.length-3]}}if(!Ot||!Wt){y.removeAllRanges();return}var Er=y.rangeCount&&y.getRangeAt(0),vr;try{vr=Se(Ot.node,Ot.offset,Wt.offset,Wt.node)}catch(ai){}vr&&(!te&&ee.state.focused?(y.collapse(Ot.node,Ot.offset),vr.collapsed||(y.removeAllRanges(),y.addRange(vr))):(y.removeAllRanges(),y.addRange(vr)),Er&&y.anchorNode==null?y.addRange(Er):te&&this.startGracePeriod()),this.rememberSelection()}},go.prototype.startGracePeriod=function(){var y=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){y.gracePeriod=!1,y.selectionChanged()&&y.cm.operation(function(){return y.cm.curOp.selectionChanged=!0})},20)},go.prototype.showMultipleSelections=function(y){_e(this.cm.display.cursorDiv,y.cursors),_e(this.cm.display.selectionDiv,y.selection)},go.prototype.rememberSelection=function(){var y=this.getSelection();this.lastAnchorNode=y.anchorNode,this.lastAnchorOffset=y.anchorOffset,this.lastFocusNode=y.focusNode,this.lastFocusOffset=y.focusOffset},go.prototype.selectionInEditor=function(){var y=this.getSelection();if(!y.rangeCount)return!1;var ee=y.getRangeAt(0).commonAncestorContainer;return Be(this.div,ee)},go.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},go.prototype.blur=function(){this.div.blur()},go.prototype.getField=function(){return this.div},go.prototype.supportsTouch=function(){return!0},go.prototype.receivedFocus=function(){var y=this;this.selectionInEditor()?this.pollSelection():Zo(this.cm,function(){return y.cm.curOp.selectionChanged=!0});function ee(){y.cm.state.focused&&(y.pollSelection(),y.polling.set(y.cm.options.pollInterval,ee))}this.polling.set(this.cm.options.pollInterval,ee)},go.prototype.selectionChanged=function(){var y=this.getSelection();return y.anchorNode!=this.lastAnchorNode||y.anchorOffset!=this.lastAnchorOffset||y.focusNode!=this.lastFocusNode||y.focusOffset!=this.lastFocusOffset},go.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var y=this.getSelection(),ee=this.cm;if(b&&he&&this.cm.display.gutterSpecs.length&&Gu(y.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var Ee=xu(ee,y.anchorNode,y.anchorOffset),xe=xu(ee,y.focusNode,y.focusOffset);Ee&&xe&&Zo(ee,function(){Or(ee.doc,ke(Ee,xe),Qe),(Ee.bad||xe.bad)&&(ee.curOp.selectionChanged=!0)})}}},go.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var y=this.cm,ee=y.display,Ee=y.doc.sel.primary(),xe=Ee.from(),Te=Ee.to();if(xe.ch==0&&xe.line>y.firstLine()&&(xe=Mt(xe.line-1,sn(y.doc,xe.line-1).length)),Te.ch==sn(y.doc,Te.line).text.length&&Te.line<y.lastLine()&&(Te=Mt(Te.line+1,0)),xe.line<ee.viewFrom||Te.line>ee.viewTo-1)return!1;var Ge,st,wt;xe.line==ee.viewFrom||(Ge=xs(y,xe.line))==0?(st=Vt(ee.view[0].line),wt=ee.view[0].node):(st=Vt(ee.view[Ge].line),wt=ee.view[Ge-1].node.nextSibling);var Ot=xs(y,Te.line),Wt,On;if(Ot==ee.view.length-1?(Wt=ee.viewTo-1,On=ee.lineDiv.lastChild):(Wt=Vt(ee.view[Ot+1].line)-1,On=ee.view[Ot+1].node.previousSibling),!wt)return!1;for(var Hn=y.doc.splitLines(Xu(y,wt,On,st,Wt)),Er=mn(y.doc,Mt(st,0),Mt(Wt,sn(y.doc,Wt).text.length));Hn.length>1&&Er.length>1;)if(Ct(Hn)==Ct(Er))Hn.pop(),Er.pop(),Wt--;else if(Hn[0]==Er[0])Hn.shift(),Er.shift(),st++;else break;for(var vr=0,ai=0,Ai=Hn[0],Hi=Er[0],ea=Math.min(Ai.length,Hi.length);vr<ea&&Ai.charCodeAt(vr)==Hi.charCodeAt(vr);)++vr;for(var da=Ct(Hn),ta=Ct(Er),ya=Math.min(da.length-(Hn.length==1?vr:0),ta.length-(Er.length==1?vr:0));ai<ya&&da.charCodeAt(da.length-ai-1)==ta.charCodeAt(ta.length-ai-1);)++ai;if(Hn.length==1&&Er.length==1&&st==xe.line)for(;vr&&vr>xe.ch&&da.charCodeAt(da.length-ai-1)==ta.charCodeAt(ta.length-ai-1);)vr--,ai++;Hn[Hn.length-1]=da.slice(0,da.length-ai).replace(/^\u200b+/,""),Hn[0]=Hn[0].slice(vr).replace(/\u200b+$/,"");var Oa=Mt(st,vr),Aa=Mt(Wt,Er.length?Ct(Er).length-ai:0);if(Hn.length>1||Hn[0]||Kt(Oa,Aa))return Za(y.doc,Hn,Oa,Aa,"+input"),!0},go.prototype.ensurePolled=function(){this.forceCompositionEnd()},go.prototype.reset=function(){this.forceCompositionEnd()},go.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},go.prototype.readFromDOMSoon=function(){var y=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(y.readDOMTimeout=null,y.composing)if(y.composing.done)y.composing=null;else return;y.updateFromDOM()},80))},go.prototype.updateFromDOM=function(){var y=this;(this.cm.isReadOnly()||!this.pollContent())&&Zo(this.cm,function(){return To(y.cm)})},go.prototype.setUneditable=function(y){y.contentEditable="false"},go.prototype.onKeyPress=function(y){y.charCode==0||this.composing||(y.preventDefault(),this.cm.isReadOnly()||yo(this.cm,Tu)(this.cm,String.fromCharCode(y.charCode==null?y.keyCode:y.charCode),0))},go.prototype.readOnlyChanged=function(y){this.div.contentEditable=String(y!="nocursor")},go.prototype.onContextMenu=function(){},go.prototype.resetPosition=function(){},go.prototype.needsContentAttribute=!0;function Wu(y,ee){var Ee=fo(y,ee.line);if(!Ee||Ee.hidden)return null;var xe=sn(y.doc,ee.line),Te=oa(Ee,xe,ee.line),Ge=ft(xe,y.doc.direction),st="left";if(Ge){var wt=mt(Ge,ee.ch);st=wt%2?"right":"left"}var Ot=Ba(Te.map,ee.ch,st);return Ot.offset=Ot.collapse=="right"?Ot.end:Ot.start,Ot}function Gu(y){for(var ee=y;ee;ee=ee.parentNode)if(/CodeMirror-gutter-wrapper/.test(ee.className))return!0;return!1}function $l(y,ee){return ee&&(y.bad=!0),y}function Xu(y,ee,Ee,xe,Te){var Ge="",st=!1,wt=y.doc.lineSeparator(),Ot=!1;function Wt(vr){return function(ai){return ai.id==vr}}function On(){st&&(Ge+=wt,Ot&&(Ge+=wt),st=Ot=!1)}function Hn(vr){vr&&(On(),Ge+=vr)}function Er(vr){if(vr.nodeType==1){var ai=vr.getAttribute("cm-text");if(ai){Hn(ai);return}var Ai=vr.getAttribute("cm-marker"),Hi;if(Ai){var ea=y.findMarks(Mt(xe,0),Mt(Te+1,0),Wt(+Ai));ea.length&&(Hi=ea[0].find(0))&&Hn(mn(y.doc,Hi.from,Hi.to).join(wt));return}if(vr.getAttribute("contenteditable")=="false")return;var da=/^(pre|div|p|li|table|br)$/i.test(vr.nodeName);if(!/^br$/i.test(vr.nodeName)&&vr.textContent.length==0)return;da&&On();for(var ta=0;ta<vr.childNodes.length;ta++)Er(vr.childNodes[ta]);/^(pre|p)$/i.test(vr.nodeName)&&(Ot=!0),da&&(st=!0)}else vr.nodeType==3&&Hn(vr.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Er(ee),ee!=Ee;)ee=ee.nextSibling,Ot=!1;return Ge}function xu(y,ee,Ee){var xe;if(ee==y.display.lineDiv){if(xe=y.display.lineDiv.childNodes[Ee],!xe)return $l(y.clipPos(Mt(y.display.viewTo-1)),!0);ee=null,Ee=0}else for(xe=ee;;xe=xe.parentNode){if(!xe||xe==y.display.lineDiv)return null;if(xe.parentNode&&xe.parentNode==y.display.lineDiv)break}for(var Te=0;Te<y.display.view.length;Te++){var Ge=y.display.view[Te];if(Ge.node==xe)return Yu(Ge,ee,Ee)}}function Yu(y,ee,Ee){var xe=y.text.firstChild,Te=!1;if(!ee||!Be(xe,ee))return $l(Mt(Vt(y.line),0),!0);if(ee==xe&&(Te=!0,ee=xe.childNodes[Ee],Ee=0,!ee)){var Ge=y.rest?Ct(y.rest):y.line;return $l(Mt(Vt(Ge),Ge.text.length),Te)}var st=ee.nodeType==3?ee:null,wt=ee;for(!st&&ee.childNodes.length==1&&ee.firstChild.nodeType==3&&(st=ee.firstChild,Ee&&(Ee=st.nodeValue.length));wt.parentNode!=xe;)wt=wt.parentNode;var Ot=y.measure,Wt=Ot.maps;function On(Hi,ea,da){for(var ta=-1;ta<(Wt?Wt.length:0);ta++)for(var ya=ta<0?Ot.map:Wt[ta],Oa=0;Oa<ya.length;Oa+=3){var Aa=ya[Oa+2];if(Aa==Hi||Aa==ea){var ja=Vt(ta<0?y.line:y.rest[ta]),So=ya[Oa]+da;return(da<0||Aa!=Hi)&&(So=ya[Oa+(da?1:0)]),Mt(ja,So)}}}var Hn=On(st,wt,Ee);if(Hn)return $l(Hn,Te);for(var Er=wt.nextSibling,vr=st?st.nodeValue.length-Ee:0;Er;Er=Er.nextSibling){if(Hn=On(Er,Er.firstChild,0),Hn)return $l(Mt(Hn.line,Hn.ch-vr),Te);vr+=Er.textContent.length}for(var ai=wt.previousSibling,Ai=Ee;ai;ai=ai.previousSibling){if(Hn=On(ai,ai.firstChild,-1),Hn)return $l(Mt(Hn.line,Hn.ch+Ai),Te);Ai+=ai.textContent.length}}var jo=function(y){this.cm=y,this.prevInput="",this.pollingFast=!1,this.polling=new Re,this.hasSelection=!1,this.composing=null};jo.prototype.init=function(y){var ee=this,Ee=this,xe=this.cm;this.createField(y);var Te=this.textarea;y.wrapper.insertBefore(this.wrapper,y.wrapper.firstChild),E&&(Te.style.width="0px"),nn(Te,"input",function(){Oe&&ve>=9&&ee.hasSelection&&(ee.hasSelection=null),Ee.poll()}),nn(Te,"paste",function(st){an(xe,st)||Ru(st,xe)||(xe.state.pasteIncoming=+new Date,Ee.fastPoll())});function Ge(st){if(!an(xe,st)){if(xe.somethingSelected())_u({lineWise:!1,text:xe.getSelections()});else if(xe.options.lineWiseCopyCut){var wt=Nu(xe);_u({lineWise:!0,text:wt.text}),st.type=="cut"?xe.setSelections(wt.ranges,null,Qe):(Ee.prevInput="",Te.value=wt.text.join(`
|
|
|
`),Pe(Te))}else return;st.type=="cut"&&(xe.state.cutIncoming=+new Date)}}nn(Te,"cut",Ge),nn(Te,"copy",Ge),nn(y.scroller,"paste",function(st){if(!(ir(y,st)||an(xe,st))){if(!Te.dispatchEvent){xe.state.pasteIncoming=+new Date,Ee.focus();return}var wt=new Event("paste");wt.clipboardData=st.clipboardData,Te.dispatchEvent(wt)}}),nn(y.lineSpace,"selectstart",function(st){ir(y,st)||rn(st)}),nn(Te,"compositionstart",function(){var st=xe.getCursor("from");Ee.composing&&Ee.composing.range.clear(),Ee.composing={start:st,range:xe.markText(st,xe.getCursor("to"),{className:"CodeMirror-composing"})}}),nn(Te,"compositionend",function(){Ee.composing&&(Ee.poll(),Ee.composing.range.clear(),Ee.composing=null)})},jo.prototype.createField=function(y){this.wrapper=ku(),this.textarea=this.wrapper.firstChild},jo.prototype.screenReaderLabelChanged=function(y){y?this.textarea.setAttribute("aria-label",y):this.textarea.removeAttribute("aria-label")},jo.prototype.prepareSelection=function(){var y=this.cm,ee=y.display,Ee=y.doc,xe=pl(y);if(y.options.moveInputWithCursor){var Te=Sa(y,Ee.sel.primary().head,"div"),Ge=ee.wrapper.getBoundingClientRect(),st=ee.lineDiv.getBoundingClientRect();xe.teTop=Math.max(0,Math.min(ee.wrapper.clientHeight-10,Te.top+st.top-Ge.top)),xe.teLeft=Math.max(0,Math.min(ee.wrapper.clientWidth-10,Te.left+st.left-Ge.left))}return xe},jo.prototype.showSelection=function(y){var ee=this.cm,Ee=ee.display;_e(Ee.cursorDiv,y.cursors),_e(Ee.selectionDiv,y.selection),y.teTop!=null&&(this.wrapper.style.top=y.teTop+"px",this.wrapper.style.left=y.teLeft+"px")},jo.prototype.reset=function(y){if(!(this.contextMenuPending||this.composing)){var ee=this.cm;if(ee.somethingSelected()){this.prevInput="";var Ee=ee.getSelection();this.textarea.value=Ee,ee.state.focused&&Pe(this.textarea),Oe&&ve>=9&&(this.hasSelection=Ee)}else y||(this.prevInput=this.textarea.value="",Oe&&ve>=9&&(this.hasSelection=null))}},jo.prototype.getField=function(){return this.textarea},jo.prototype.supportsTouch=function(){return!1},jo.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!z||Ae()!=this.textarea))try{this.textarea.focus()}catch(y){}},jo.prototype.blur=function(){this.textarea.blur()},jo.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},jo.prototype.receivedFocus=function(){this.slowPoll()},jo.prototype.slowPoll=function(){var y=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){y.poll(),y.cm.state.focused&&y.slowPoll()})},jo.prototype.fastPoll=function(){var y=!1,ee=this;ee.pollingFast=!0;function Ee(){var xe=ee.poll();!xe&&!y?(y=!0,ee.polling.set(60,Ee)):(ee.pollingFast=!1,ee.slowPoll())}ee.polling.set(20,Ee)},jo.prototype.poll=function(){var y=this,ee=this.cm,Ee=this.textarea,xe=this.prevInput;if(this.contextMenuPending||!ee.state.focused||ur(Ee)&&!xe&&!this.composing||ee.isReadOnly()||ee.options.disableInput||ee.state.keySeq)return!1;var Te=Ee.value;if(Te==xe&&!ee.somethingSelected())return!1;if(Oe&&ve>=9&&this.hasSelection===Te||ne&&/[\uf700-\uf7ff]/.test(Te))return ee.display.input.reset(),!1;if(ee.doc.sel==ee.display.selForContextMenu){var Ge=Te.charCodeAt(0);if(Ge==8203&&!xe&&(xe="\u200B"),Ge==8666)return this.reset(),this.cm.execCommand("undo")}for(var st=0,wt=Math.min(xe.length,Te.length);st<wt&&xe.charCodeAt(st)==Te.charCodeAt(st);)++st;return Zo(ee,function(){Tu(ee,Te.slice(st),xe.length-st,null,y.composing?"*compose":null),Te.length>1e3||Te.indexOf(`
|
|
|
`)>-1?Ee.value=y.prevInput="":y.prevInput=Te,y.composing&&(y.composing.range.clear(),y.composing.range=ee.markText(y.composing.start,ee.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},jo.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},jo.prototype.onKeyPress=function(){Oe&&ve>=9&&(this.hasSelection=null),this.fastPoll()},jo.prototype.onContextMenu=function(y){var ee=this,Ee=ee.cm,xe=Ee.display,Te=ee.textarea;ee.contextMenuPending&&ee.contextMenuPending();var Ge=_s(Ee,y),st=xe.scroller.scrollTop;if(!Ge||le)return;var wt=Ee.options.resetSelectionOnContextMenu;wt&&Ee.doc.sel.contains(Ge)==-1&&yo(Ee,Or)(Ee.doc,ke(Ge),Qe);var Ot=Te.style.cssText,Wt=ee.wrapper.style.cssText,On=ee.wrapper.offsetParent.getBoundingClientRect();ee.wrapper.style.cssText="position: static",Te.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(y.clientY-On.top-5)+"px; left: "+(y.clientX-On.left-5)+`px;
|
|
|
z-index: 1000; background: `+(Oe?"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),xe.input.focus(),ue&&window.scrollTo(null,Hn),xe.input.reset(),Ee.somethingSelected()||(Te.value=ee.prevInput=" "),ee.contextMenuPending=vr,xe.selForContextMenu=Ee.doc.sel,clearTimeout(xe.detectingSelectAll);function Er(){if(Te.selectionStart!=null){var Ai=Ee.somethingSelected(),Hi="\u200B"+(Ai?Te.value:"");Te.value="\u21DA",Te.value=Hi,ee.prevInput=Ai?"":"\u200B",Te.selectionStart=1,Te.selectionEnd=Hi.length,xe.selForContextMenu=Ee.doc.sel}}function vr(){if(ee.contextMenuPending==vr&&(ee.contextMenuPending=!1,ee.wrapper.style.cssText=Wt,Te.style.cssText=Ot,Oe&&ve<9&&xe.scrollbars.setScrollTop(xe.scroller.scrollTop=st),Te.selectionStart!=null)){(!Oe||Oe&&ve<9)&&Er();var Ai=0,Hi=function(){xe.selForContextMenu==Ee.doc.sel&&Te.selectionStart==0&&Te.selectionEnd>0&&ee.prevInput=="\u200B"?yo(Ee,aa)(Ee):Ai++<10?xe.detectingSelectAll=setTimeout(Hi,500):(xe.selForContextMenu=null,xe.input.reset())};xe.detectingSelectAll=setTimeout(Hi,200)}}if(Oe&&ve>=9&&Er(),x){kt(y);var ai=function(){yn(window,"mouseup",ai),setTimeout(vr,20)};nn(window,"mouseup",ai)}else setTimeout(vr,50)},jo.prototype.readOnlyChanged=function(y){y||this.reset(),this.textarea.disabled=y=="nocursor",this.textarea.readOnly=!!y},jo.prototype.setUneditable=function(){},jo.prototype.needsContentAttribute=!1;function Qu(y,ee){if(ee=ee?Ke(ee):{},ee.value=y.value,!ee.tabindex&&y.tabIndex&&(ee.tabindex=y.tabIndex),!ee.placeholder&&y.placeholder&&(ee.placeholder=y.placeholder),ee.autofocus==null){var Ee=Ae();ee.autofocus=Ee==y||y.getAttribute("autofocus")!=null&&Ee==document.body}function xe(){y.value=wt.getValue()}var Te;if(y.form&&(nn(y.form,"submit",xe),!ee.leaveSubmitMethodAlone)){var Ge=y.form;Te=Ge.submit;try{var st=Ge.submit=function(){xe(),Ge.submit=Te,Ge.submit(),Ge.submit=st}}catch(Ot){}}ee.finishInit=function(Ot){Ot.save=xe,Ot.getTextArea=function(){return y},Ot.toTextArea=function(){Ot.toTextArea=isNaN,xe(),y.parentNode.removeChild(Ot.getWrapperElement()),y.style.display="",y.form&&(yn(y.form,"submit",xe),!ee.leaveSubmitMethodAlone&&typeof y.form.submit=="function"&&(y.form.submit=Te))}},y.style.display="none";var wt=Lo(function(Ot){return y.parentNode.insertBefore(Ot,y.nextSibling)},ee);return wt}function Ju(y){y.off=yn,y.on=nn,y.wheelEventPixels=yr,y.Doc=po,y.splitLines=nr,y.countColumn=Ne,y.findColumn=At,y.isWordChar=Ze,y.Pass=ut,y.signal=xn,y.Line=Rr,y.changeEnd=Ve,y.scrollbarModel=Hs,y.Pos=Mt,y.cmpPos=Kt,y.modes=Kn,y.mimeModes=Ln,y.resolveMode=dn,y.getMode=Ie,y.modeExtensions=je,y.extendMode=Je,y.copyState=ht,y.startState=Qt,y.innerMode=Et,y.commands=hl,y.keyMap=Ko,y.keyName=El,y.isModifierKey=nu,y.lookupKey=Tl,y.normalizeKeyMap=rs,y.StringStream=fn,y.SharedTextMarker=mo,y.TextMarker=ps,y.LineWidget=so,y.e_preventDefault=rn,y.e_stopPropagation=_n,y.e_stop=kt,y.addClass=we,y.contains=Be,y.rmClass=ce,y.keyNames=Ha}Hu(Lo),Zu(Lo);var $u="iter insert remove copy getEditor constructor".split(" ");for(var Eu in po.prototype)po.prototype.hasOwnProperty(Eu)&&$e($u,Eu)<0&&(Lo.prototype[Eu]=function(y){return function(){return y.apply(this.doc,arguments)}}(po.prototype[Eu]));return Ut(po),Lo.inputStyles={textarea:jo,contenteditable:go},Lo.defineMode=function(y){!Lo.defaults.mode&&y!="null"&&(Lo.defaults.mode=y),$n.apply(this,arguments)},Lo.defineMIME=ar,Lo.defineMode("null",function(){return{token:function(y){return y.skipToEnd()}}}),Lo.defineMIME("text/plain","null"),Lo.defineExtension=function(y,ee){Lo.prototype[y]=ee},Lo.defineDocExtension=function(y,ee){po.prototype[y]=ee},Lo.fromTextArea=Qu,Ju(Lo),Lo.version="5.58.2",Lo})},25419:function(Yn,en,Ce){(function(te){te(Ce(89780),Ce(15525),Ce(98101))})(function(te){"use strict";te.defineMode("markdown",function(Ye,Me){var pe=te.getMode(Ye,"text/html"),Oe=pe.name=="null";function ve(Ne){if(te.findModeByName){var Re=te.findModeByName(Ne);Re&&(Ne=Re.mime||Re.mimes[0])}var $e=te.getMode(Ye,Ne);return $e.name=="null"?null:$e}Me.highlightFormatting===void 0&&(Me.highlightFormatting=!1),Me.maxBlockquoteDepth===void 0&&(Me.maxBlockquoteDepth=0),Me.taskLists===void 0&&(Me.taskLists=!1),Me.strikethrough===void 0&&(Me.strikethrough=!1),Me.emoji===void 0&&(Me.emoji=!1),Me.fencedCodeBlockHighlighting===void 0&&(Me.fencedCodeBlockHighlighting=!0),Me.fencedCodeBlockDefaultMode===void 0&&(Me.fencedCodeBlockDefaultMode="text/plain"),Me.xml===void 0&&(Me.xml=!0),Me.tokenTypeOverrides===void 0&&(Me.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)&&Me.tokenTypeOverrides[fe]&&(ue[fe]=Me.tokenTypeOverrides[fe]);var he=/^([*\-_])(?:\s*\1){2,}\s*$/,le=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,ae=/^\[(x| )\](?=\s)/i,ie=Me.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,me=/^ {0,3}(?:\={1,}|-{2,})\s*$/,E=/^[^#!\[\]*_\\<>` "'(~:]+/,b=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,z=/^\s*\[[^\]]+?\]:.*$/,ne=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,oe=" ";function se(Ne,Re,$e){return Re.f=Re.inline=$e,$e(Ne,Re)}function de(Ne,Re,$e){return Re.f=Re.block=$e,$e(Ne,Re)}function a(Ne){return!Ne||!/\S/.test(Ne.string)}function x(Ne){if(Ne.linkTitle=!1,Ne.linkHref=!1,Ne.linkText=!1,Ne.em=!1,Ne.strong=!1,Ne.strikethrough=!1,Ne.quote=0,Ne.indentedCode=!1,Ne.f==ce){var Re=Oe;if(!Re){var $e=te.innerMode(pe,Ne.htmlState);Re=$e.mode.name=="xml"&&$e.state.tagStart===null&&!$e.state.context&&$e.state.tokenize.isInText}Re&&(Ne.f=be,Ne.block=re,Ne.htmlState=null)}return Ne.trailingSpace=0,Ne.trailingSpaceNewLine=!1,Ne.prevLine=Ne.thisLine,Ne.thisLine={stream:null},null}function re(Ne,Re){var $e=Ne.column()===Re.indentation,nt=a(Re.prevLine.stream),ut=Re.indentedCode,Qe=Re.prevLine.hr,rt=Re.list!==!1,pt=(Re.listStack[Re.listStack.length-1]||0)+3;Re.indentedCode=!1;var At=Re.indentation;if(Re.indentationDiff===null&&(Re.indentationDiff=Re.indentation,rt)){for(Re.list=null;At<Re.listStack[Re.listStack.length-1];)Re.listStack.pop(),Re.listStack.length?Re.indentation=Re.listStack[Re.listStack.length-1]:Re.list=!1;Re.list!==!1&&(Re.indentationDiff=At-Re.listStack[Re.listStack.length-1])}var gt=!nt&&!Qe&&!Re.prevLine.header&&(!rt||!ut)&&!Re.prevLine.fencedCodeEnd,Ft=(Re.list===!1||Qe||nt)&&Re.indentation<=pt&&Ne.match(he),Ct=null;if(Re.indentationDiff>=4&&(ut||Re.prevLine.fencedCodeEnd||Re.prevLine.header||nt))return Ne.skipToEnd(),Re.indentedCode=!0,ue.code;if(Ne.eatSpace())return null;if($e&&Re.indentation<=pt&&(Ct=Ne.match(ie))&&Ct[1].length<=6)return Re.quote=0,Re.header=Ct[1].length,Re.thisLine.header=!0,Me.highlightFormatting&&(Re.formatting="header"),Re.f=Re.inline,_e(Re);if(Re.indentation<=pt&&Ne.eat(">"))return Re.quote=$e?1:Re.quote+1,Me.highlightFormatting&&(Re.formatting="quote"),Ne.eatSpace(),_e(Re);if(!Ft&&!Re.setext&&$e&&Re.indentation<=pt&&(Ct=Ne.match(le))){var Yt=Ct[1]?"ol":"ul";return Re.indentation=At+Ne.current().length,Re.list=!0,Re.quote=0,Re.listStack.push(Re.indentation),Re.em=!1,Re.strong=!1,Re.code=!1,Re.strikethrough=!1,Me.taskLists&&Ne.match(ae,!1)&&(Re.taskList=!0),Re.f=Re.inline,Me.highlightFormatting&&(Re.formatting=["list","list-"+Yt]),_e(Re)}else{if($e&&Re.indentation<=pt&&(Ct=Ne.match(b,!0)))return Re.quote=0,Re.fencedEndRE=new RegExp(Ct[1]+"+ *$"),Re.localMode=Me.fencedCodeBlockHighlighting&&ve(Ct[2]||Me.fencedCodeBlockDefaultMode),Re.localMode&&(Re.localState=te.startState(Re.localMode)),Re.f=Re.block=ge,Me.highlightFormatting&&(Re.formatting="code-block"),Re.code=-1,_e(Re);if(Re.setext||(!gt||!rt)&&!Re.quote&&Re.list===!1&&!Re.code&&!Ft&&!z.test(Ne.string)&&(Ct=Ne.lookAhead(1))&&(Ct=Ct.match(me)))return Re.setext?(Re.header=Re.setext,Re.setext=0,Ne.skipToEnd(),Me.highlightFormatting&&(Re.formatting="header")):(Re.header=Ct[0].charAt(0)=="="?1:2,Re.setext=Re.header),Re.thisLine.header=!0,Re.f=Re.inline,_e(Re);if(Ft)return Ne.skipToEnd(),Re.hr=!0,Re.thisLine.hr=!0,ue.hr;if(Ne.peek()==="[")return se(Ne,Re,Ue)}return se(Ne,Re,Re.inline)}function ce(Ne,Re){var $e=pe.token(Ne,Re.htmlState);if(!Oe){var nt=te.innerMode(pe,Re.htmlState);(nt.mode.name=="xml"&&nt.state.tagStart===null&&!nt.state.context&&nt.state.tokenize.isInText||Re.md_inside&&Ne.current().indexOf(">")>-1)&&(Re.f=be,Re.block=re,Re.htmlState=null)}return $e}function ge(Ne,Re){var $e=Re.listStack[Re.listStack.length-1]||0,nt=Re.indentation<$e,ut=$e+3;if(Re.fencedEndRE&&Re.indentation<=ut&&(nt||Ne.match(Re.fencedEndRE))){Me.highlightFormatting&&(Re.formatting="code-block");var Qe;return nt||(Qe=_e(Re)),Re.localMode=Re.localState=null,Re.block=re,Re.f=be,Re.fencedEndRE=null,Re.code=0,Re.thisLine.fencedCodeEnd=!0,nt?de(Ne,Re,Re.block):Qe}else return Re.localMode?Re.localMode.token(Ne,Re.localState):(Ne.skipToEnd(),ue.code)}function _e(Ne){var Re=[];if(Ne.formatting){Re.push(ue.formatting),typeof Ne.formatting=="string"&&(Ne.formatting=[Ne.formatting]);for(var $e=0;$e<Ne.formatting.length;$e++)Re.push(ue.formatting+"-"+Ne.formatting[$e]),Ne.formatting[$e]==="header"&&Re.push(ue.formatting+"-"+Ne.formatting[$e]+"-"+Ne.header),Ne.formatting[$e]==="quote"&&(!Me.maxBlockquoteDepth||Me.maxBlockquoteDepth>=Ne.quote?Re.push(ue.formatting+"-"+Ne.formatting[$e]+"-"+Ne.quote):Re.push("error"))}if(Ne.taskOpen)return Re.push("meta"),Re.length?Re.join(" "):null;if(Ne.taskClosed)return Re.push("property"),Re.length?Re.join(" "):null;if(Ne.linkHref?Re.push(ue.linkHref,"url"):(Ne.strong&&Re.push(ue.strong),Ne.em&&Re.push(ue.em),Ne.strikethrough&&Re.push(ue.strikethrough),Ne.emoji&&Re.push(ue.emoji),Ne.linkText&&Re.push(ue.linkText),Ne.code&&Re.push(ue.code),Ne.image&&Re.push(ue.image),Ne.imageAltText&&Re.push(ue.imageAltText,"link"),Ne.imageMarker&&Re.push(ue.imageMarker)),Ne.header&&Re.push(ue.header,ue.header+"-"+Ne.header),Ne.quote&&(Re.push(ue.quote),!Me.maxBlockquoteDepth||Me.maxBlockquoteDepth>=Ne.quote?Re.push(ue.quote+"-"+Ne.quote):Re.push(ue.quote+"-"+Me.maxBlockquoteDepth)),Ne.list!==!1){var nt=(Ne.listStack.length-1)%3;nt?nt===1?Re.push(ue.list2):Re.push(ue.list3):Re.push(ue.list1)}return Ne.trailingSpaceNewLine?Re.push("trailing-space-new-line"):Ne.trailingSpace&&Re.push("trailing-space-"+(Ne.trailingSpace%2?"a":"b")),Re.length?Re.join(" "):null}function ye(Ne,Re){if(Ne.match(E,!0))return _e(Re)}function be(Ne,Re){var $e=Re.text(Ne,Re);if(typeof $e!="undefined")return $e;if(Re.list)return Re.list=null,_e(Re);if(Re.taskList){var nt=Ne.match(ae,!0)[1]===" ";return nt?Re.taskOpen=!0:Re.taskClosed=!0,Me.highlightFormatting&&(Re.formatting="task"),Re.taskList=!1,_e(Re)}if(Re.taskOpen=!1,Re.taskClosed=!1,Re.header&&Ne.match(/^#+$/,!0))return Me.highlightFormatting&&(Re.formatting="header"),_e(Re);var ut=Ne.next();if(Re.linkTitle){Re.linkTitle=!1;var Qe=ut;ut==="("&&(Qe=")"),Qe=(Qe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var rt="^\\s*(?:[^"+Qe+"\\\\]+|\\\\\\\\|\\\\.)"+Qe;if(Ne.match(new RegExp(rt),!0))return ue.linkHref}if(ut==="`"){var pt=Re.formatting;Me.highlightFormatting&&(Re.formatting="code"),Ne.eatWhile("`");var At=Ne.current().length;if(Re.code==0&&(!Re.quote||At==1))return Re.code=At,_e(Re);if(At==Re.code){var gt=_e(Re);return Re.code=0,gt}else return Re.formatting=pt,_e(Re)}else if(Re.code)return _e(Re);if(ut==="\\"&&(Ne.next(),Me.highlightFormatting)){var Ft=_e(Re),Ct=ue.formatting+"-escape";return Ft?Ft+" "+Ct:Ct}if(ut==="!"&&Ne.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Re.imageMarker=!0,Re.image=!0,Me.highlightFormatting&&(Re.formatting="image"),_e(Re);if(ut==="["&&Re.imageMarker&&Ne.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Re.imageMarker=!1,Re.imageAltText=!0,Me.highlightFormatting&&(Re.formatting="image"),_e(Re);if(ut==="]"&&Re.imageAltText){Me.highlightFormatting&&(Re.formatting="image");var Ft=_e(Re);return Re.imageAltText=!1,Re.image=!1,Re.inline=Re.f=Be,Ft}if(ut==="["&&!Re.image)return Re.linkText&&Ne.match(/^.*?\]/)||(Re.linkText=!0,Me.highlightFormatting&&(Re.formatting="link")),_e(Re);if(ut==="]"&&Re.linkText){Me.highlightFormatting&&(Re.formatting="link");var Ft=_e(Re);return Re.linkText=!1,Re.inline=Re.f=Ne.match(/\(.*?\)| ?\[.*?\]/,!1)?Be:be,Ft}if(ut==="<"&&Ne.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Re.f=Re.inline=Se,Me.highlightFormatting&&(Re.formatting="link");var Ft=_e(Re);return Ft?Ft+=" ":Ft="",Ft+ue.linkInline}if(ut==="<"&&Ne.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Re.f=Re.inline=Se,Me.highlightFormatting&&(Re.formatting="link");var Ft=_e(Re);return Ft?Ft+=" ":Ft="",Ft+ue.linkEmail}if(Me.xml&&ut==="<"&&Ne.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Yt=Ne.string.indexOf(">",Ne.pos);if(Yt!=-1){var zt=Ne.string.substring(Ne.start,Yt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(zt)&&(Re.md_inside=!0)}return Ne.backUp(1),Re.htmlState=te.startState(pe),de(Ne,Re,ce)}if(Me.xml&&ut==="<"&&Ne.match(/^\/\w*?>/))return Re.md_inside=!1,"tag";if(ut==="*"||ut==="_"){for(var Xe=1,Fe=Ne.pos==1?" ":Ne.string.charAt(Ne.pos-2);Xe<3&&Ne.eat(ut);)Xe++;var Le=Ne.peek()||" ",Ze=!/\s/.test(Le)&&(!ne.test(Le)||/\s/.test(Fe)||ne.test(Fe)),et=!/\s/.test(Fe)&&(!ne.test(Fe)||/\s/.test(Le)||ne.test(Le)),He=null,We=null;if(Xe%2&&(!Re.em&&Ze&&(ut==="*"||!et||ne.test(Fe))?He=!0:Re.em==ut&&et&&(ut==="*"||!Ze||ne.test(Le))&&(He=!1)),Xe>1&&(!Re.strong&&Ze&&(ut==="*"||!et||ne.test(Fe))?We=!0:Re.strong==ut&&et&&(ut==="*"||!Ze||ne.test(Le))&&(We=!1)),We!=null||He!=null){Me.highlightFormatting&&(Re.formatting=He==null?"strong":We==null?"em":"strong em"),He===!0&&(Re.em=ut),We===!0&&(Re.strong=ut);var gt=_e(Re);return He===!1&&(Re.em=!1),We===!1&&(Re.strong=!1),gt}}else if(ut===" "&&(Ne.eat("*")||Ne.eat("_"))){if(Ne.peek()===" ")return _e(Re);Ne.backUp(1)}if(Me.strikethrough){if(ut==="~"&&Ne.eatWhile(ut)){if(Re.strikethrough){Me.highlightFormatting&&(Re.formatting="strikethrough");var gt=_e(Re);return Re.strikethrough=!1,gt}else if(Ne.match(/^[^\s]/,!1))return Re.strikethrough=!0,Me.highlightFormatting&&(Re.formatting="strikethrough"),_e(Re)}else if(ut===" "&&Ne.match(/^~~/,!0)){if(Ne.peek()===" ")return _e(Re);Ne.backUp(2)}}if(Me.emoji&&ut===":"&&Ne.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Re.emoji=!0,Me.highlightFormatting&&(Re.formatting="emoji");var tt=_e(Re);return Re.emoji=!1,tt}return ut===" "&&(Ne.match(/^ +$/,!1)?Re.trailingSpace++:Re.trailingSpace&&(Re.trailingSpaceNewLine=!0)),_e(Re)}function Se(Ne,Re){var $e=Ne.next();if($e===">"){Re.f=Re.inline=be,Me.highlightFormatting&&(Re.formatting="link");var nt=_e(Re);return nt?nt+=" ":nt="",nt+ue.linkInline}return Ne.match(/^[^>]+/,!0),ue.linkInline}function Be(Ne,Re){if(Ne.eatSpace())return null;var $e=Ne.next();return $e==="("||$e==="["?(Re.f=Re.inline=we($e==="("?")":"]"),Me.highlightFormatting&&(Re.formatting="link-string"),Re.linkHref=!0,_e(Re)):"error"}var Ae={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function we(Ne){return function(Re,$e){var nt=Re.next();if(nt===Ne){$e.f=$e.inline=be,Me.highlightFormatting&&($e.formatting="link-string");var ut=_e($e);return $e.linkHref=!1,ut}return Re.match(Ae[Ne]),$e.linkHref=!0,_e($e)}}function Ue(Ne,Re){return Ne.match(/^([^\]\\]|\\.)*\]:/,!1)?(Re.f=Pe,Ne.next(),Me.highlightFormatting&&(Re.formatting="link"),Re.linkText=!0,_e(Re)):se(Ne,Re,be)}function Pe(Ne,Re){if(Ne.match(/^\]:/,!0)){Re.f=Re.inline=ze,Me.highlightFormatting&&(Re.formatting="link");var $e=_e(Re);return Re.linkText=!1,$e}return Ne.match(/^([^\]\\]|\\.)+/,!0),ue.linkText}function ze(Ne,Re){return Ne.eatSpace()?null:(Ne.match(/^[^\s]+/,!0),Ne.peek()===void 0?Re.linkTitle=!0:Ne.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Re.f=Re.inline=be,ue.linkHref+" url")}var Ke={startState:function(){return{f:re,prevLine:{stream:null},thisLine:{stream:null},block:re,htmlState:null,indentation:0,inline:be,text:ye,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(Ne){return{f:Ne.f,prevLine:Ne.prevLine,thisLine:Ne.thisLine,block:Ne.block,htmlState:Ne.htmlState&&te.copyState(pe,Ne.htmlState),indentation:Ne.indentation,localMode:Ne.localMode,localState:Ne.localMode?te.copyState(Ne.localMode,Ne.localState):null,inline:Ne.inline,text:Ne.text,formatting:!1,linkText:Ne.linkText,linkTitle:Ne.linkTitle,linkHref:Ne.linkHref,code:Ne.code,em:Ne.em,strong:Ne.strong,strikethrough:Ne.strikethrough,emoji:Ne.emoji,header:Ne.header,setext:Ne.setext,hr:Ne.hr,taskList:Ne.taskList,list:Ne.list,listStack:Ne.listStack.slice(0),quote:Ne.quote,indentedCode:Ne.indentedCode,trailingSpace:Ne.trailingSpace,trailingSpaceNewLine:Ne.trailingSpaceNewLine,md_inside:Ne.md_inside,fencedEndRE:Ne.fencedEndRE}},token:function(Ne,Re){if(Re.formatting=!1,Ne!=Re.thisLine.stream){if(Re.header=0,Re.hr=!1,Ne.match(/^\s*$/,!0))return x(Re),null;if(Re.prevLine=Re.thisLine,Re.thisLine={stream:Ne},Re.taskList=!1,Re.trailingSpace=0,Re.trailingSpaceNewLine=!1,!Re.localState&&(Re.f=Re.block,Re.f!=ce)){var $e=Ne.match(/^\s*/,!0)[0].replace(/\t/g,oe).length;if(Re.indentation=$e,Re.indentationDiff=null,$e>0)return null}}return Re.f(Ne,Re)},innerMode:function(Ne){return Ne.block==ce?{state:Ne.htmlState,mode:pe}:Ne.localState?{state:Ne.localState,mode:Ne.localMode}:{state:Ne,mode:Ke}},indent:function(Ne,Re,$e){return Ne.block==ce&&pe.indent?pe.indent(Ne.htmlState,Re,$e):Ne.localState&&Ne.localMode.indent?Ne.localMode.indent(Ne.localState,Re,$e):te.Pass},blankLine:x,getType:_e,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Ke},"xml"),te.defineMIME("text/markdown","markdown"),te.defineMIME("text/x-markdown","markdown")})},98101:function(Yn,en,Ce){(function(te){te(Ce(89780))})(function(te){"use strict";te.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 Ye=0;Ye<te.modeInfo.length;Ye++){var Me=te.modeInfo[Ye];Me.mimes&&(Me.mime=Me.mimes[0])}te.findModeByMIME=function(pe){pe=pe.toLowerCase();for(var Oe=0;Oe<te.modeInfo.length;Oe++){var ve=te.modeInfo[Oe];if(ve.mime==pe)return ve;if(ve.mimes){for(var ue=0;ue<ve.mimes.length;ue++)if(ve.mimes[ue]==pe)return ve}}if(/\+xml$/.test(pe))return te.findModeByMIME("application/xml");if(/\+json$/.test(pe))return te.findModeByMIME("application/json")},te.findModeByExtension=function(pe){pe=pe.toLowerCase();for(var Oe=0;Oe<te.modeInfo.length;Oe++){var ve=te.modeInfo[Oe];if(ve.ext){for(var ue=0;ue<ve.ext.length;ue++)if(ve.ext[ue]==pe)return ve}}},te.findModeByFileName=function(pe){for(var Oe=0;Oe<te.modeInfo.length;Oe++){var ve=te.modeInfo[Oe];if(ve.file&&ve.file.test(pe))return ve}var ue=pe.lastIndexOf("."),fe=ue>-1&&pe.substring(ue+1,pe.length);if(fe)return te.findModeByExtension(fe)},te.findModeByName=function(pe){pe=pe.toLowerCase();for(var Oe=0;Oe<te.modeInfo.length;Oe++){var ve=te.modeInfo[Oe];if(ve.name.toLowerCase()==pe)return ve;if(ve.alias){for(var ue=0;ue<ve.alias.length;ue++)if(ve.alias[ue].toLowerCase()==pe)return ve}}}})},67549:function(Yn,en,Ce){(function(te){te(Ce(89780))})(function(te){"use strict";te.defineMode("stex",function(Ye,Me){"use strict";function pe(E,b){E.cmdState.push(b)}function Oe(E){return E.cmdState.length>0?E.cmdState[E.cmdState.length-1]:null}function ve(E){var b=E.cmdState.pop();b&&b.closeBracket()}function ue(E){for(var b=E.cmdState,z=b.length-1;z>=0;z--){var ne=b[z];if(ne.name!="DEFAULT")return ne}return{styleIdentifier:function(){return null}}}function fe(E,b,z){return function(){this.name=E,this.bracketNo=0,this.style=b,this.styles=z,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var he={};he.importmodule=fe("importmodule","tag",["string","builtin"]),he.documentclass=fe("documentclass","tag",["","atom"]),he.usepackage=fe("usepackage","tag",["atom"]),he.begin=fe("begin","tag",["atom"]),he.end=fe("end","tag",["atom"]),he.label=fe("label","tag",["atom"]),he.ref=fe("ref","tag",["atom"]),he.eqref=fe("eqref","tag",["atom"]),he.cite=fe("cite","tag",["atom"]),he.bibitem=fe("bibitem","tag",["atom"]),he.Bibitem=fe("Bibitem","tag",["atom"]),he.RBibitem=fe("RBibitem","tag",["atom"]),he.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function le(E,b){E.f=b}function ae(E,b){var z;if(E.match(/^\\[a-zA-Z@]+/)){var ne=E.current().slice(1);return z=he.hasOwnProperty(ne)?he[ne]:he.DEFAULT,z=new z,pe(b,z),le(b,me),z.style}if(E.match(/^\\[$&%#{}_]/)||E.match(/^\\[,;!\/\\]/))return"tag";if(E.match("\\["))return le(b,function(se,de){return ie(se,de,"\\]")}),"keyword";if(E.match("\\("))return le(b,function(se,de){return ie(se,de,"\\)")}),"keyword";if(E.match("$$"))return le(b,function(se,de){return ie(se,de,"$$")}),"keyword";if(E.match("$"))return le(b,function(se,de){return ie(se,de,"$")}),"keyword";var oe=E.next();if(oe=="%")return E.skipToEnd(),"comment";if(oe=="}"||oe=="]"){if(z=Oe(b),z)z.closeBracket(oe),le(b,me);else return"error";return"bracket"}else return oe=="{"||oe=="["?(z=he.DEFAULT,z=new z,pe(b,z),"bracket"):/\d/.test(oe)?(E.eatWhile(/[\w.%]/),"atom"):(E.eatWhile(/[\w\-_]/),z=ue(b),z.name=="begin"&&(z.argument=E.current()),z.styleIdentifier())}function ie(E,b,z){if(E.eatSpace())return null;if(z&&E.match(z))return le(b,ae),"keyword";if(E.match(/^\\[a-zA-Z@]+/))return"tag";if(E.match(/^[a-zA-Z]+/))return"variable-2";if(E.match(/^\\[$&%#{}_]/)||E.match(/^\\[,;!\/]/)||E.match(/^[\^_&]/))return"tag";if(E.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(E.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ne=E.next();return ne=="{"||ne=="}"||ne=="["||ne=="]"||ne=="("||ne==")"?"bracket":ne=="%"?(E.skipToEnd(),"comment"):"error"}function me(E,b){var z=E.peek(),ne;return z=="{"||z=="["?(ne=Oe(b),ne.openBracket(z),E.eat(z),le(b,ae),"bracket"):/[ \t\r]/.test(z)?(E.eat(z),null):(le(b,ae),ve(b),ae(E,b))}return{startState:function(){var E=Me.inMathMode?function(b,z){return ie(b,z)}:ae;return{cmdState:[],f:E}},copyState:function(E){return{cmdState:E.cmdState.slice(),f:E.f}},token:function(E,b){return b.f(E,b)},blankLine:function(E){E.f=ae,E.cmdState.length=0},lineComment:"%"}}),te.defineMIME("text/x-stex","stex"),te.defineMIME("text/x-latex","stex")})},15525:function(Yn,en,Ce){(function(te){te(Ce(89780))})(function(te){"use strict";var Ye={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},Me={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};te.defineMode("xml",function(pe,Oe){var ve=pe.indentUnit,ue={},fe=Oe.htmlMode?Ye:Me;for(var he in fe)ue[he]=fe[he];for(var he in Oe)ue[he]=Oe[he];var le,ae;function ie(Se,Be){function Ae(Pe){return Be.tokenize=Pe,Pe(Se,Be)}var we=Se.next();if(we=="<")return Se.eat("!")?Se.eat("[")?Se.match("CDATA[")?Ae(b("atom","]]>")):null:Se.match("--")?Ae(b("comment","-->")):Se.match("DOCTYPE",!0,!0)?(Se.eatWhile(/[\w\._\-]/),Ae(z(1))):null:Se.eat("?")?(Se.eatWhile(/[\w\._\-]/),Be.tokenize=b("meta","?>"),"meta"):(le=Se.eat("/")?"closeTag":"openTag",Be.tokenize=me,"tag bracket");if(we=="&"){var Ue;return Se.eat("#")?Se.eat("x")?Ue=Se.eatWhile(/[a-fA-F\d]/)&&Se.eat(";"):Ue=Se.eatWhile(/[\d]/)&&Se.eat(";"):Ue=Se.eatWhile(/[\w\.\-:]/)&&Se.eat(";"),Ue?"atom":"error"}else return Se.eatWhile(/[^&<]/),null}ie.isInText=!0;function me(Se,Be){var Ae=Se.next();if(Ae==">"||Ae=="/"&&Se.eat(">"))return Be.tokenize=ie,le=Ae==">"?"endTag":"selfcloseTag","tag bracket";if(Ae=="=")return le="equals",null;if(Ae=="<"){Be.tokenize=ie,Be.state=de,Be.tagName=Be.tagStart=null;var we=Be.tokenize(Se,Be);return we?we+" tag error":"tag error"}else return/[\'\"]/.test(Ae)?(Be.tokenize=E(Ae),Be.stringStartCol=Se.column(),Be.tokenize(Se,Be)):(Se.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function E(Se){var Be=function(Ae,we){for(;!Ae.eol();)if(Ae.next()==Se){we.tokenize=me;break}return"string"};return Be.isInAttribute=!0,Be}function b(Se,Be){return function(Ae,we){for(;!Ae.eol();){if(Ae.match(Be)){we.tokenize=ie;break}Ae.next()}return Se}}function z(Se){return function(Be,Ae){for(var we;(we=Be.next())!=null;){if(we=="<")return Ae.tokenize=z(Se+1),Ae.tokenize(Be,Ae);if(we==">")if(Se==1){Ae.tokenize=ie;break}else return Ae.tokenize=z(Se-1),Ae.tokenize(Be,Ae)}return"meta"}}function ne(Se,Be,Ae){this.prev=Se.context,this.tagName=Be,this.indent=Se.indented,this.startOfLine=Ae,(ue.doNotIndent.hasOwnProperty(Be)||Se.context&&Se.context.noIndent)&&(this.noIndent=!0)}function oe(Se){Se.context&&(Se.context=Se.context.prev)}function se(Se,Be){for(var Ae;;){if(!Se.context||(Ae=Se.context.tagName,!ue.contextGrabbers.hasOwnProperty(Ae)||!ue.contextGrabbers[Ae].hasOwnProperty(Be)))return;oe(Se)}}function de(Se,Be,Ae){return Se=="openTag"?(Ae.tagStart=Be.column(),a):Se=="closeTag"?x:de}function a(Se,Be,Ae){return Se=="word"?(Ae.tagName=Be.current(),ae="tag",ge):ue.allowMissingTagName&&Se=="endTag"?(ae="tag bracket",ge(Se,Be,Ae)):(ae="error",a)}function x(Se,Be,Ae){if(Se=="word"){var we=Be.current();return Ae.context&&Ae.context.tagName!=we&&ue.implicitlyClosed.hasOwnProperty(Ae.context.tagName)&&oe(Ae),Ae.context&&Ae.context.tagName==we||ue.matchClosing===!1?(ae="tag",re):(ae="tag error",ce)}else return ue.allowMissingTagName&&Se=="endTag"?(ae="tag bracket",re(Se,Be,Ae)):(ae="error",ce)}function re(Se,Be,Ae){return Se!="endTag"?(ae="error",re):(oe(Ae),de)}function ce(Se,Be,Ae){return ae="error",re(Se,Be,Ae)}function ge(Se,Be,Ae){if(Se=="word")return ae="attribute",_e;if(Se=="endTag"||Se=="selfcloseTag"){var we=Ae.tagName,Ue=Ae.tagStart;return Ae.tagName=Ae.tagStart=null,Se=="selfcloseTag"||ue.autoSelfClosers.hasOwnProperty(we)?se(Ae,we):(se(Ae,we),Ae.context=new ne(Ae,we,Ue==Ae.indented)),de}return ae="error",ge}function _e(Se,Be,Ae){return Se=="equals"?ye:(ue.allowMissing||(ae="error"),ge(Se,Be,Ae))}function ye(Se,Be,Ae){return Se=="string"?be:Se=="word"&&ue.allowUnquoted?(ae="string",ge):(ae="error",ge(Se,Be,Ae))}function be(Se,Be,Ae){return Se=="string"?be:ge(Se,Be,Ae)}return{startState:function(Se){var Be={tokenize:ie,state:de,indented:Se||0,tagName:null,tagStart:null,context:null};return Se!=null&&(Be.baseIndent=Se),Be},token:function(Se,Be){if(!Be.tagName&&Se.sol()&&(Be.indented=Se.indentation()),Se.eatSpace())return null;le=null;var Ae=Be.tokenize(Se,Be);return(Ae||le)&&Ae!="comment"&&(ae=null,Be.state=Be.state(le||Ae,Se,Be),ae&&(Ae=ae=="error"?Ae+" error":ae)),Ae},indent:function(Se,Be,Ae){var we=Se.context;if(Se.tokenize.isInAttribute)return Se.tagStart==Se.indented?Se.stringStartCol+1:Se.indented+ve;if(we&&we.noIndent)return te.Pass;if(Se.tokenize!=me&&Se.tokenize!=ie)return Ae?Ae.match(/^(\s*)/)[0].length:0;if(Se.tagName)return ue.multilineTagIndentPastTag!==!1?Se.tagStart+Se.tagName.length+2:Se.tagStart+ve*(ue.multilineTagIndentFactor||1);if(ue.alignCDATA&&/<!\[CDATA\[/.test(Be))return 0;var Ue=Be&&/^<(\/)?([\w_:\.-]*)/.exec(Be);if(Ue&&Ue[1])for(;we;)if(we.tagName==Ue[2]){we=we.prev;break}else if(ue.implicitlyClosed.hasOwnProperty(we.tagName))we=we.prev;else break;else if(Ue)for(;we;){var Pe=ue.contextGrabbers[we.tagName];if(Pe&&Pe.hasOwnProperty(Ue[2]))we=we.prev;else break}for(;we&&we.prev&&!we.startOfLine;)we=we.prev;return we?we.indent+ve:Se.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:ue.htmlMode?"html":"xml",helperType:ue.htmlMode?"html":"xml",skipAttribute:function(Se){Se.state==ye&&(Se.state=ge)},xmlCurrentTag:function(Se){return Se.tagName?{name:Se.tagName,close:Se.type=="closeTag"}:null},xmlCurrentContext:function(Se){for(var Be=[],Ae=Se.context;Ae;Ae=Ae.prev)Ae.tagName&&Be.push(Ae.tagName);return Be.reverse()}}}),te.defineMIME("text/xml","xml"),te.defineMIME("application/xml","xml"),te.mimeModes.hasOwnProperty("text/html")||te.defineMIME("text/html",{name:"xml",htmlMode:!0})})},97774:function(Yn,en,Ce){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),en.default=void 0;var te=Object.assign||function(z){for(var ne=1;ne<arguments.length;ne++){var oe=arguments[ne];for(var se in oe)Object.prototype.hasOwnProperty.call(oe,se)&&(z[se]=oe[se])}return z},Ye=function(){function z(ne,oe){for(var se=0;se<oe.length;se++){var de=oe[se];de.enumerable=de.enumerable||!1,de.configurable=!0,"value"in de&&(de.writable=!0),Object.defineProperty(ne,de.key,de)}}return function(ne,oe,se){return oe&&z(ne.prototype,oe),se&&z(ne,se),ne}}(),Me=Ce(59301),pe=ae(Me),Oe=Ce(12708),ve=ae(Oe),ue=Ce(53291),fe=ae(ue),he=Ce(10413),le=Ce(65429);function ae(z){return z&&z.__esModule?z:{default:z}}function ie(z,ne){if(!(z instanceof ne))throw new TypeError("Cannot call a class as a function")}function me(z,ne){if(!z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ne&&(typeof ne=="object"||typeof ne=="function")?ne:z}function E(z,ne){if(typeof ne!="function"&&ne!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ne);z.prototype=Object.create(ne&&ne.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}),ne&&(Object.setPrototypeOf?Object.setPrototypeOf(z,ne):z.__proto__=ne)}var b=function(z){E(ne,z);function ne(oe){ie(this,ne);var se=me(this,(ne.__proto__||Object.getPrototypeOf(ne)).call(this,oe));return se.getEchartsInstance=function(){return se.echartsLib.getInstanceByDom(se.echartsElement)||se.echartsLib.init(se.echartsElement,se.props.theme,se.props.opts)},se.dispose=function(){if(se.echartsElement){try{(0,he.clear)(se.echartsElement)}catch(de){console.warn(de)}se.echartsLib.dispose(se.echartsElement)}},se.rerender=function(){var de=se.props,a=de.onEvents,x=de.onChartReady,re=se.renderEchartDom();se.bindEvents(re,a||{}),typeof x=="function"&&se.props.onChartReady(re),se.echartsElement&&(0,he.bind)(se.echartsElement,function(){try{re.resize()}catch(ce){console.warn(ce)}})},se.bindEvents=function(de,a){var x=function(ge,_e){typeof ge=="string"&&typeof _e=="function"&&de.on(ge,function(ye){_e(ye,de)})};for(var re in a)Object.prototype.hasOwnProperty.call(a,re)&&x(re,a[re])},se.renderEchartDom=function(){var de=se.getEchartsInstance();return de.setOption(se.props.option,se.props.notMerge||!1,se.props.lazyUpdate||!1),se.props.showLoading?de.showLoading(se.props.loadingOption||null):de.hideLoading(),de},se.echartsLib=oe.echarts,se.echartsElement=null,se}return Ye(ne,[{key:"componentDidMount",value:function(){this.rerender()}},{key:"componentDidUpdate",value:function(se){if(!(typeof this.props.shouldSetOption=="function"&&!this.props.shouldSetOption(se,this.props))){if(!(0,fe.default)(se.theme,this.props.theme)||!(0,fe.default)(se.opts,this.props.opts)||!(0,fe.default)(se.onEvents,this.props.onEvents)){this.dispose(),this.rerender();return}var de=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if(!(0,fe.default)((0,le.pick)(this.props,de),(0,le.pick)(se,de))){var a=this.renderEchartDom();if(!(0,fe.default)(se.style,this.props.style)||!(0,fe.default)(se.className,this.props.className))try{a.resize()}catch(x){console.warn(x)}}}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var se=this,de=this.props,a=de.style,x=de.className,re=te({height:300},a);return pe.default.createElement("div",{ref:function(ge){se.echartsElement=ge},style:re,className:"echarts-for-react "+x})}}]),ne}(Me.Component);en.default=b,b.propTypes={option:ve.default.object.isRequired,echarts:ve.default.object,notMerge:ve.default.bool,lazyUpdate:ve.default.bool,style:ve.default.object,className:ve.default.string,theme:ve.default.oneOfType([ve.default.string,ve.default.object]),onChartReady:ve.default.func,showLoading:ve.default.bool,loadingOption:ve.default.object,onEvents:ve.default.object,opts:ve.default.shape({devicePixelRatio:ve.default.number,renderer:ve.default.oneOf(["canvas","svg"]),width:ve.default.oneOfType([ve.default.number,ve.default.oneOf([null,void 0,"auto"])]),height:ve.default.oneOfType([ve.default.number,ve.default.oneOf([null,void 0,"auto"])])}),shouldSetOption:ve.default.func},b.defaultProps={echarts:{},notMerge:!1,lazyUpdate:!1,style:{},className:"",theme:null,onChartReady:function(){},showLoading:!1,loadingOption:null,onEvents:{},opts:{},shouldSetOption:function(){return!0}}},42441:function(Yn,en,Ce){"use strict";var te;te={value:!0},en.Z=void 0;var Ye=Ce(76411),Me=ve(Ye),pe=Ce(97774),Oe=ve(pe);function ve(ae){return ae&&ae.__esModule?ae:{default:ae}}function ue(ae,ie){if(!(ae instanceof ie))throw new TypeError("Cannot call a class as a function")}function fe(ae,ie){if(!ae)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ie&&(typeof ie=="object"||typeof ie=="function")?ie:ae}function he(ae,ie){if(typeof ie!="function"&&ie!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ie);ae.prototype=Object.create(ie&&ie.prototype,{constructor:{value:ae,enumerable:!1,writable:!0,configurable:!0}}),ie&&(Object.setPrototypeOf?Object.setPrototypeOf(ae,ie):ae.__proto__=ie)}var le=function(ae){he(ie,ae);function ie(me){ue(this,ie);var E=fe(this,(ie.__proto__||Object.getPrototypeOf(ie)).call(this,me));return E.echartsLib=Me.default,E}return ie}(Oe.default);en.Z=le},65429:function(Yn,en){"use strict";Object.defineProperty(en,"__esModule",{value:!0});var Ce=en.pick=function(Ye,Me){var pe={};return Me.forEach(function(Oe){pe[Oe]=Ye[Oe]}),pe}},48961:function(Yn,en,Ce){(function(Ye,Me){Yn.exports=Me(Ce(76411))})(this,function(te){return function(Ye){var Me={};function pe(Oe){if(Me[Oe])return Me[Oe].exports;var ve=Me[Oe]={i:Oe,l:!1,exports:{}};return Ye[Oe].call(ve.exports,ve,ve.exports,pe),ve.l=!0,ve.exports}return pe.m=Ye,pe.c=Me,pe.d=function(Oe,ve,ue){pe.o(Oe,ve)||Object.defineProperty(Oe,ve,{configurable:!1,enumerable:!0,get:ue})},pe.n=function(Oe){var ve=Oe&&Oe.__esModule?function(){return Oe.default}:function(){return Oe};return pe.d(ve,"a",ve),ve},pe.o=function(Oe,ve){return Object.prototype.hasOwnProperty.call(Oe,ve)},pe.p="",pe(pe.s=87)}([function(Ye,Me){Ye.exports=te},function(Ye,Me,pe){(function(Oe){"use strict";var ve={};ve.exports=Me,function(ue){if(!fe)var fe=1e-6;if(!he)var he=typeof Float32Array!="undefined"?Float32Array:Array;if(!le)var le=Math.random;var ae={};ae.setMatrixArrayType=function(a){he=a},typeof ue!="undefined"&&(ue.glMatrix=ae);var ie=Math.PI/180;ae.toRadian=function(a){return a*ie};var me={};me.create=function(){var a=new he(2);return a[0]=0,a[1]=0,a},me.clone=function(a){var x=new he(2);return x[0]=a[0],x[1]=a[1],x},me.fromValues=function(a,x){var re=new he(2);return re[0]=a,re[1]=x,re},me.copy=function(a,x){return a[0]=x[0],a[1]=x[1],a},me.set=function(a,x,re){return a[0]=x,a[1]=re,a},me.add=function(a,x,re){return a[0]=x[0]+re[0],a[1]=x[1]+re[1],a},me.subtract=function(a,x,re){return a[0]=x[0]-re[0],a[1]=x[1]-re[1],a},me.sub=me.subtract,me.multiply=function(a,x,re){return a[0]=x[0]*re[0],a[1]=x[1]*re[1],a},me.mul=me.multiply,me.divide=function(a,x,re){return a[0]=x[0]/re[0],a[1]=x[1]/re[1],a},me.div=me.divide,me.min=function(a,x,re){return a[0]=Math.min(x[0],re[0]),a[1]=Math.min(x[1],re[1]),a},me.max=function(a,x,re){return a[0]=Math.max(x[0],re[0]),a[1]=Math.max(x[1],re[1]),a},me.scale=function(a,x,re){return a[0]=x[0]*re,a[1]=x[1]*re,a},me.scaleAndAdd=function(a,x,re,ce){return a[0]=x[0]+re[0]*ce,a[1]=x[1]+re[1]*ce,a},me.distance=function(a,x){var re=x[0]-a[0],ce=x[1]-a[1];return Math.sqrt(re*re+ce*ce)},me.dist=me.distance,me.squaredDistance=function(a,x){var re=x[0]-a[0],ce=x[1]-a[1];return re*re+ce*ce},me.sqrDist=me.squaredDistance,me.length=function(a){var x=a[0],re=a[1];return Math.sqrt(x*x+re*re)},me.len=me.length,me.squaredLength=function(a){var x=a[0],re=a[1];return x*x+re*re},me.sqrLen=me.squaredLength,me.negate=function(a,x){return a[0]=-x[0],a[1]=-x[1],a},me.inverse=function(a,x){return a[0]=1/x[0],a[1]=1/x[1],a},me.normalize=function(a,x){var re=x[0],ce=x[1],ge=re*re+ce*ce;return ge>0&&(ge=1/Math.sqrt(ge),a[0]=x[0]*ge,a[1]=x[1]*ge),a},me.dot=function(a,x){return a[0]*x[0]+a[1]*x[1]},me.cross=function(a,x,re){var ce=x[0]*re[1]-x[1]*re[0];return a[0]=a[1]=0,a[2]=ce,a},me.lerp=function(a,x,re,ce){var ge=x[0],_e=x[1];return a[0]=ge+ce*(re[0]-ge),a[1]=_e+ce*(re[1]-_e),a},me.random=function(a,x){x=x||1;var re=le()*2*Math.PI;return a[0]=Math.cos(re)*x,a[1]=Math.sin(re)*x,a},me.transformMat2=function(a,x,re){var ce=x[0],ge=x[1];return a[0]=re[0]*ce+re[2]*ge,a[1]=re[1]*ce+re[3]*ge,a},me.transformMat2d=function(a,x,re){var ce=x[0],ge=x[1];return a[0]=re[0]*ce+re[2]*ge+re[4],a[1]=re[1]*ce+re[3]*ge+re[5],a},me.transformMat3=function(a,x,re){var ce=x[0],ge=x[1];return a[0]=re[0]*ce+re[3]*ge+re[6],a[1]=re[1]*ce+re[4]*ge+re[7],a},me.transformMat4=function(a,x,re){var ce=x[0],ge=x[1];return a[0]=re[0]*ce+re[4]*ge+re[12],a[1]=re[1]*ce+re[5]*ge+re[13],a},me.forEach=function(){var a=me.create();return function(x,re,ce,ge,_e,ye){var be,Se;for(re||(re=2),ce||(ce=0),ge?Se=Math.min(ge*re+ce,x.length):Se=x.length,be=ce;be<Se;be+=re)a[0]=x[be],a[1]=x[be+1],_e(a,a,ye),x[be]=a[0],x[be+1]=a[1];return x}}(),me.str=function(a){return"vec2("+a[0]+", "+a[1]+")"},typeof ue!="undefined"&&(ue.vec2=me);var E={};E.create=function(){var a=new he(3);return a[0]=0,a[1]=0,a[2]=0,a},E.clone=function(a){var x=new he(3);return x[0]=a[0],x[1]=a[1],x[2]=a[2],x},E.fromValues=function(a,x,re){var ce=new he(3);return ce[0]=a,ce[1]=x,ce[2]=re,ce},E.copy=function(a,x){return a[0]=x[0],a[1]=x[1],a[2]=x[2],a},E.set=function(a,x,re,ce){return a[0]=x,a[1]=re,a[2]=ce,a},E.add=function(a,x,re){return a[0]=x[0]+re[0],a[1]=x[1]+re[1],a[2]=x[2]+re[2],a},E.subtract=function(a,x,re){return a[0]=x[0]-re[0],a[1]=x[1]-re[1],a[2]=x[2]-re[2],a},E.sub=E.subtract,E.multiply=function(a,x,re){return a[0]=x[0]*re[0],a[1]=x[1]*re[1],a[2]=x[2]*re[2],a},E.mul=E.multiply,E.divide=function(a,x,re){return a[0]=x[0]/re[0],a[1]=x[1]/re[1],a[2]=x[2]/re[2],a},E.div=E.divide,E.min=function(a,x,re){return a[0]=Math.min(x[0],re[0]),a[1]=Math.min(x[1],re[1]),a[2]=Math.min(x[2],re[2]),a},E.max=function(a,x,re){return a[0]=Math.max(x[0],re[0]),a[1]=Math.max(x[1],re[1]),a[2]=Math.max(x[2],re[2]),a},E.scale=function(a,x,re){return a[0]=x[0]*re,a[1]=x[1]*re,a[2]=x[2]*re,a},E.scaleAndAdd=function(a,x,re,ce){return a[0]=x[0]+re[0]*ce,a[1]=x[1]+re[1]*ce,a[2]=x[2]+re[2]*ce,a},E.distance=function(a,x){var re=x[0]-a[0],ce=x[1]-a[1],ge=x[2]-a[2];return Math.sqrt(re*re+ce*ce+ge*ge)},E.dist=E.distance,E.squaredDistance=function(a,x){var re=x[0]-a[0],ce=x[1]-a[1],ge=x[2]-a[2];return re*re+ce*ce+ge*ge},E.sqrDist=E.squaredDistance,E.length=function(a){var x=a[0],re=a[1],ce=a[2];return Math.sqrt(x*x+re*re+ce*ce)},E.len=E.length,E.squaredLength=function(a){var x=a[0],re=a[1],ce=a[2];return x*x+re*re+ce*ce},E.sqrLen=E.squaredLength,E.negate=function(a,x){return a[0]=-x[0],a[1]=-x[1],a[2]=-x[2],a},E.inverse=function(a,x){return a[0]=1/x[0],a[1]=1/x[1],a[2]=1/x[2],a},E.normalize=function(a,x){var re=x[0],ce=x[1],ge=x[2],_e=re*re+ce*ce+ge*ge;return _e>0&&(_e=1/Math.sqrt(_e),a[0]=x[0]*_e,a[1]=x[1]*_e,a[2]=x[2]*_e),a},E.dot=function(a,x){return a[0]*x[0]+a[1]*x[1]+a[2]*x[2]},E.cross=function(a,x,re){var ce=x[0],ge=x[1],_e=x[2],ye=re[0],be=re[1],Se=re[2];return a[0]=ge*Se-_e*be,a[1]=_e*ye-ce*Se,a[2]=ce*be-ge*ye,a},E.lerp=function(a,x,re,ce){var ge=x[0],_e=x[1],ye=x[2];return a[0]=ge+ce*(re[0]-ge),a[1]=_e+ce*(re[1]-_e),a[2]=ye+ce*(re[2]-ye),a},E.random=function(a,x){x=x||1;var re=le()*2*Math.PI,ce=le()*2-1,ge=Math.sqrt(1-ce*ce)*x;return a[0]=Math.cos(re)*ge,a[1]=Math.sin(re)*ge,a[2]=ce*x,a},E.transformMat4=function(a,x,re){var ce=x[0],ge=x[1],_e=x[2],ye=re[3]*ce+re[7]*ge+re[11]*_e+re[15];return ye=ye||1,a[0]=(re[0]*ce+re[4]*ge+re[8]*_e+re[12])/ye,a[1]=(re[1]*ce+re[5]*ge+re[9]*_e+re[13])/ye,a[2]=(re[2]*ce+re[6]*ge+re[10]*_e+re[14])/ye,a},E.transformMat3=function(a,x,re){var ce=x[0],ge=x[1],_e=x[2];return a[0]=ce*re[0]+ge*re[3]+_e*re[6],a[1]=ce*re[1]+ge*re[4]+_e*re[7],a[2]=ce*re[2]+ge*re[5]+_e*re[8],a},E.transformQuat=function(a,x,re){var ce=x[0],ge=x[1],_e=x[2],ye=re[0],be=re[1],Se=re[2],Be=re[3],Ae=Be*ce+be*_e-Se*ge,we=Be*ge+Se*ce-ye*_e,Ue=Be*_e+ye*ge-be*ce,Pe=-ye*ce-be*ge-Se*_e;return a[0]=Ae*Be+Pe*-ye+we*-Se-Ue*-be,a[1]=we*Be+Pe*-be+Ue*-ye-Ae*-Se,a[2]=Ue*Be+Pe*-Se+Ae*-be-we*-ye,a},E.rotateX=function(a,x,re,ce){var ge=[],_e=[];return ge[0]=x[0]-re[0],ge[1]=x[1]-re[1],ge[2]=x[2]-re[2],_e[0]=ge[0],_e[1]=ge[1]*Math.cos(ce)-ge[2]*Math.sin(ce),_e[2]=ge[1]*Math.sin(ce)+ge[2]*Math.cos(ce),a[0]=_e[0]+re[0],a[1]=_e[1]+re[1],a[2]=_e[2]+re[2],a},E.rotateY=function(a,x,re,ce){var ge=[],_e=[];return ge[0]=x[0]-re[0],ge[1]=x[1]-re[1],ge[2]=x[2]-re[2],_e[0]=ge[2]*Math.sin(ce)+ge[0]*Math.cos(ce),_e[1]=ge[1],_e[2]=ge[2]*Math.cos(ce)-ge[0]*Math.sin(ce),a[0]=_e[0]+re[0],a[1]=_e[1]+re[1],a[2]=_e[2]+re[2],a},E.rotateZ=function(a,x,re,ce){var ge=[],_e=[];return ge[0]=x[0]-re[0],ge[1]=x[1]-re[1],ge[2]=x[2]-re[2],_e[0]=ge[0]*Math.cos(ce)-ge[1]*Math.sin(ce),_e[1]=ge[0]*Math.sin(ce)+ge[1]*Math.cos(ce),_e[2]=ge[2],a[0]=_e[0]+re[0],a[1]=_e[1]+re[1],a[2]=_e[2]+re[2],a},E.forEach=function(){var a=E.create();return function(x,re,ce,ge,_e,ye){var be,Se;for(re||(re=3),ce||(ce=0),ge?Se=Math.min(ge*re+ce,x.length):Se=x.length,be=ce;be<Se;be+=re)a[0]=x[be],a[1]=x[be+1],a[2]=x[be+2],_e(a,a,ye),x[be]=a[0],x[be+1]=a[1],x[be+2]=a[2];return x}}(),E.angle=function(a,x){var re=E.fromValues(a[0],a[1],a[2]),ce=E.fromValues(x[0],x[1],x[2]);E.normalize(re,re),E.normalize(ce,ce);var ge=E.dot(re,ce);return ge>1?0:Math.acos(ge)},E.str=function(a){return"vec3("+a[0]+", "+a[1]+", "+a[2]+")"},typeof ue!="undefined"&&(ue.vec3=E);var b={};b.create=function(){var a=new he(4);return a[0]=0,a[1]=0,a[2]=0,a[3]=0,a},b.clone=function(a){var x=new he(4);return x[0]=a[0],x[1]=a[1],x[2]=a[2],x[3]=a[3],x},b.fromValues=function(a,x,re,ce){var ge=new he(4);return ge[0]=a,ge[1]=x,ge[2]=re,ge[3]=ce,ge},b.copy=function(a,x){return a[0]=x[0],a[1]=x[1],a[2]=x[2],a[3]=x[3],a},b.set=function(a,x,re,ce,ge){return a[0]=x,a[1]=re,a[2]=ce,a[3]=ge,a},b.add=function(a,x,re){return a[0]=x[0]+re[0],a[1]=x[1]+re[1],a[2]=x[2]+re[2],a[3]=x[3]+re[3],a},b.subtract=function(a,x,re){return a[0]=x[0]-re[0],a[1]=x[1]-re[1],a[2]=x[2]-re[2],a[3]=x[3]-re[3],a},b.sub=b.subtract,b.multiply=function(a,x,re){return a[0]=x[0]*re[0],a[1]=x[1]*re[1],a[2]=x[2]*re[2],a[3]=x[3]*re[3],a},b.mul=b.multiply,b.divide=function(a,x,re){return a[0]=x[0]/re[0],a[1]=x[1]/re[1],a[2]=x[2]/re[2],a[3]=x[3]/re[3],a},b.div=b.divide,b.min=function(a,x,re){return a[0]=Math.min(x[0],re[0]),a[1]=Math.min(x[1],re[1]),a[2]=Math.min(x[2],re[2]),a[3]=Math.min(x[3],re[3]),a},b.max=function(a,x,re){return a[0]=Math.max(x[0],re[0]),a[1]=Math.max(x[1],re[1]),a[2]=Math.max(x[2],re[2]),a[3]=Math.max(x[3],re[3]),a},b.scale=function(a,x,re){return a[0]=x[0]*re,a[1]=x[1]*re,a[2]=x[2]*re,a[3]=x[3]*re,a},b.scaleAndAdd=function(a,x,re,ce){return a[0]=x[0]+re[0]*ce,a[1]=x[1]+re[1]*ce,a[2]=x[2]+re[2]*ce,a[3]=x[3]+re[3]*ce,a},b.distance=function(a,x){var re=x[0]-a[0],ce=x[1]-a[1],ge=x[2]-a[2],_e=x[3]-a[3];return Math.sqrt(re*re+ce*ce+ge*ge+_e*_e)},b.dist=b.distance,b.squaredDistance=function(a,x){var re=x[0]-a[0],ce=x[1]-a[1],ge=x[2]-a[2],_e=x[3]-a[3];return re*re+ce*ce+ge*ge+_e*_e},b.sqrDist=b.squaredDistance,b.length=function(a){var x=a[0],re=a[1],ce=a[2],ge=a[3];return Math.sqrt(x*x+re*re+ce*ce+ge*ge)},b.len=b.length,b.squaredLength=function(a){var x=a[0],re=a[1],ce=a[2],ge=a[3];return x*x+re*re+ce*ce+ge*ge},b.sqrLen=b.squaredLength,b.negate=function(a,x){return a[0]=-x[0],a[1]=-x[1],a[2]=-x[2],a[3]=-x[3],a},b.inverse=function(a,x){return a[0]=1/x[0],a[1]=1/x[1],a[2]=1/x[2],a[3]=1/x[3],a},b.normalize=function(a,x){var re=x[0],ce=x[1],ge=x[2],_e=x[3],ye=re*re+ce*ce+ge*ge+_e*_e;return ye>0&&(ye=1/Math.sqrt(ye),a[0]=x[0]*ye,a[1]=x[1]*ye,a[2]=x[2]*ye,a[3]=x[3]*ye),a},b.dot=function(a,x){return a[0]*x[0]+a[1]*x[1]+a[2]*x[2]+a[3]*x[3]},b.lerp=function(a,x,re,ce){var ge=x[0],_e=x[1],ye=x[2],be=x[3];return a[0]=ge+ce*(re[0]-ge),a[1]=_e+ce*(re[1]-_e),a[2]=ye+ce*(re[2]-ye),a[3]=be+ce*(re[3]-be),a},b.random=function(a,x){return x=x||1,a[0]=le(),a[1]=le(),a[2]=le(),a[3]=le(),b.normalize(a,a),b.scale(a,a,x),a},b.transformMat4=function(a,x,re){var ce=x[0],ge=x[1],_e=x[2],ye=x[3];return a[0]=re[0]*ce+re[4]*ge+re[8]*_e+re[12]*ye,a[1]=re[1]*ce+re[5]*ge+re[9]*_e+re[13]*ye,a[2]=re[2]*ce+re[6]*ge+re[10]*_e+re[14]*ye,a[3]=re[3]*ce+re[7]*ge+re[11]*_e+re[15]*ye,a},b.transformQuat=function(a,x,re){var ce=x[0],ge=x[1],_e=x[2],ye=re[0],be=re[1],Se=re[2],Be=re[3],Ae=Be*ce+be*_e-Se*ge,we=Be*ge+Se*ce-ye*_e,Ue=Be*_e+ye*ge-be*ce,Pe=-ye*ce-be*ge-Se*_e;return a[0]=Ae*Be+Pe*-ye+we*-Se-Ue*-be,a[1]=we*Be+Pe*-be+Ue*-ye-Ae*-Se,a[2]=Ue*Be+Pe*-Se+Ae*-be-we*-ye,a},b.forEach=function(){var a=b.create();return function(x,re,ce,ge,_e,ye){var be,Se;for(re||(re=4),ce||(ce=0),ge?Se=Math.min(ge*re+ce,x.length):Se=x.length,be=ce;be<Se;be+=re)a[0]=x[be],a[1]=x[be+1],a[2]=x[be+2],a[3]=x[be+3],_e(a,a,ye),x[be]=a[0],x[be+1]=a[1],x[be+2]=a[2],x[be+3]=a[3];return x}}(),b.str=function(a){return"vec4("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+")"},typeof ue!="undefined"&&(ue.vec4=b);var z={};z.create=function(){var a=new he(4);return a[0]=1,a[1]=0,a[2]=0,a[3]=1,a},z.clone=function(a){var x=new he(4);return x[0]=a[0],x[1]=a[1],x[2]=a[2],x[3]=a[3],x},z.copy=function(a,x){return a[0]=x[0],a[1]=x[1],a[2]=x[2],a[3]=x[3],a},z.identity=function(a){return a[0]=1,a[1]=0,a[2]=0,a[3]=1,a},z.transpose=function(a,x){if(a===x){var re=x[1];a[1]=x[2],a[2]=re}else a[0]=x[0],a[1]=x[2],a[2]=x[1],a[3]=x[3];return a},z.invert=function(a,x){var re=x[0],ce=x[1],ge=x[2],_e=x[3],ye=re*_e-ge*ce;return ye?(ye=1/ye,a[0]=_e*ye,a[1]=-ce*ye,a[2]=-ge*ye,a[3]=re*ye,a):null},z.adjoint=function(a,x){var re=x[0];return a[0]=x[3],a[1]=-x[1],a[2]=-x[2],a[3]=re,a},z.determinant=function(a){return a[0]*a[3]-a[2]*a[1]},z.multiply=function(a,x,re){var ce=x[0],ge=x[1],_e=x[2],ye=x[3],be=re[0],Se=re[1],Be=re[2],Ae=re[3];return a[0]=ce*be+_e*Se,a[1]=ge*be+ye*Se,a[2]=ce*Be+_e*Ae,a[3]=ge*Be+ye*Ae,a},z.mul=z.multiply,z.rotate=function(a,x,re){var ce=x[0],ge=x[1],_e=x[2],ye=x[3],be=Math.sin(re),Se=Math.cos(re);return a[0]=ce*Se+_e*be,a[1]=ge*Se+ye*be,a[2]=ce*-be+_e*Se,a[3]=ge*-be+ye*Se,a},z.scale=function(a,x,re){var ce=x[0],ge=x[1],_e=x[2],ye=x[3],be=re[0],Se=re[1];return a[0]=ce*be,a[1]=ge*be,a[2]=_e*Se,a[3]=ye*Se,a},z.str=function(a){return"mat2("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+")"},z.frob=function(a){return Math.sqrt(Math.pow(a[0],2)+Math.pow(a[1],2)+Math.pow(a[2],2)+Math.pow(a[3],2))},z.LDU=function(a,x,re,ce){return a[2]=ce[2]/ce[0],re[0]=ce[0],re[1]=ce[1],re[3]=ce[3]-a[2]*re[1],[a,x,re]},typeof ue!="undefined"&&(ue.mat2=z);var ne={};ne.create=function(){var a=new he(6);return a[0]=1,a[1]=0,a[2]=0,a[3]=1,a[4]=0,a[5]=0,a},ne.clone=function(a){var x=new he(6);return x[0]=a[0],x[1]=a[1],x[2]=a[2],x[3]=a[3],x[4]=a[4],x[5]=a[5],x},ne.copy=function(a,x){return a[0]=x[0],a[1]=x[1],a[2]=x[2],a[3]=x[3],a[4]=x[4],a[5]=x[5],a},ne.identity=function(a){return a[0]=1,a[1]=0,a[2]=0,a[3]=1,a[4]=0,a[5]=0,a},ne.invert=function(a,x){var re=x[0],ce=x[1],ge=x[2],_e=x[3],ye=x[4],be=x[5],Se=re*_e-ce*ge;return Se?(Se=1/Se,a[0]=_e*Se,a[1]=-ce*Se,a[2]=-ge*Se,a[3]=re*Se,a[4]=(ge*be-_e*ye)*Se,a[5]=(ce*ye-re*be)*Se,a):null},ne.determinant=function(a){return a[0]*a[3]-a[1]*a[2]},ne.multiply=function(a,x,re){var ce=x[0],ge=x[1],_e=x[2],ye=x[3],be=x[4],Se=x[5],Be=re[0],Ae=re[1],we=re[2],Ue=re[3],Pe=re[4],ze=re[5];return a[0]=ce*Be+_e*Ae,a[1]=ge*Be+ye*Ae,a[2]=ce*we+_e*Ue,a[3]=ge*we+ye*Ue,a[4]=ce*Pe+_e*ze+be,a[5]=ge*Pe+ye*ze+Se,a},ne.mul=ne.multiply,ne.rotate=function(a,x,re){var ce=x[0],ge=x[1],_e=x[2],ye=x[3],be=x[4],Se=x[5],Be=Math.sin(re),Ae=Math.cos(re);return a[0]=ce*Ae+_e*Be,a[1]=ge*Ae+ye*Be,a[2]=ce*-Be+_e*Ae,a[3]=ge*-Be+ye*Ae,a[4]=be,a[5]=Se,a},ne.scale=function(a,x,re){var ce=x[0],ge=x[1],_e=x[2],ye=x[3],be=x[4],Se=x[5],Be=re[0],Ae=re[1];return a[0]=ce*Be,a[1]=ge*Be,a[2]=_e*Ae,a[3]=ye*Ae,a[4]=be,a[5]=Se,a},ne.translate=function(a,x,re){var ce=x[0],ge=x[1],_e=x[2],ye=x[3],be=x[4],Se=x[5],Be=re[0],Ae=re[1];return a[0]=ce,a[1]=ge,a[2]=_e,a[3]=ye,a[4]=ce*Be+_e*Ae+be,a[5]=ge*Be+ye*Ae+Se,a},ne.str=function(a){return"mat2d("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"},ne.frob=function(a){return Math.sqrt(Math.pow(a[0],2)+Math.pow(a[1],2)+Math.pow(a[2],2)+Math.pow(a[3],2)+Math.pow(a[4],2)+Math.pow(a[5],2)+1)},typeof ue!="undefined"&&(ue.mat2d=ne);var oe={};oe.create=function(){var a=new he(9);return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=1,a[5]=0,a[6]=0,a[7]=0,a[8]=1,a},oe.fromMat4=function(a,x){return a[0]=x[0],a[1]=x[1],a[2]=x[2],a[3]=x[4],a[4]=x[5],a[5]=x[6],a[6]=x[8],a[7]=x[9],a[8]=x[10],a},oe.clone=function(a){var x=new he(9);return x[0]=a[0],x[1]=a[1],x[2]=a[2],x[3]=a[3],x[4]=a[4],x[5]=a[5],x[6]=a[6],x[7]=a[7],x[8]=a[8],x},oe.copy=function(a,x){return a[0]=x[0],a[1]=x[1],a[2]=x[2],a[3]=x[3],a[4]=x[4],a[5]=x[5],a[6]=x[6],a[7]=x[7],a[8]=x[8],a},oe.identity=function(a){return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=1,a[5]=0,a[6]=0,a[7]=0,a[8]=1,a},oe.transpose=function(a,x){if(a===x){var re=x[1],ce=x[2],ge=x[5];a[1]=x[3],a[2]=x[6],a[3]=re,a[5]=x[7],a[6]=ce,a[7]=ge}else a[0]=x[0],a[1]=x[3],a[2]=x[6],a[3]=x[1],a[4]=x[4],a[5]=x[7],a[6]=x[2],a[7]=x[5],a[8]=x[8];return a},oe.invert=function(a,x){var re=x[0],ce=x[1],ge=x[2],_e=x[3],ye=x[4],be=x[5],Se=x[6],Be=x[7],Ae=x[8],we=Ae*ye-be*Be,Ue=-Ae*_e+be*Se,Pe=Be*_e-ye*Se,ze=re*we+ce*Ue+ge*Pe;return ze?(ze=1/ze,a[0]=we*ze,a[1]=(-Ae*ce+ge*Be)*ze,a[2]=(be*ce-ge*ye)*ze,a[3]=Ue*ze,a[4]=(Ae*re-ge*Se)*ze,a[5]=(-be*re+ge*_e)*ze,a[6]=Pe*ze,a[7]=(-Be*re+ce*Se)*ze,a[8]=(ye*re-ce*_e)*ze,a):null},oe.adjoint=function(a,x){var re=x[0],ce=x[1],ge=x[2],_e=x[3],ye=x[4],be=x[5],Se=x[6],Be=x[7],Ae=x[8];return a[0]=ye*Ae-be*Be,a[1]=ge*Be-ce*Ae,a[2]=ce*be-ge*ye,a[3]=be*Se-_e*Ae,a[4]=re*Ae-ge*Se,a[5]=ge*_e-re*be,a[6]=_e*Be-ye*Se,a[7]=ce*Se-re*Be,a[8]=re*ye-ce*_e,a},oe.determinant=function(a){var x=a[0],re=a[1],ce=a[2],ge=a[3],_e=a[4],ye=a[5],be=a[6],Se=a[7],Be=a[8];return x*(Be*_e-ye*Se)+re*(-Be*ge+ye*be)+ce*(Se*ge-_e*be)},oe.multiply=function(a,x,re){var ce=x[0],ge=x[1],_e=x[2],ye=x[3],be=x[4],Se=x[5],Be=x[6],Ae=x[7],we=x[8],Ue=re[0],Pe=re[1],ze=re[2],Ke=re[3],Ne=re[4],Re=re[5],$e=re[6],nt=re[7],ut=re[8];return a[0]=Ue*ce+Pe*ye+ze*Be,a[1]=Ue*ge+Pe*be+ze*Ae,a[2]=Ue*_e+Pe*Se+ze*we,a[3]=Ke*ce+Ne*ye+Re*Be,a[4]=Ke*ge+Ne*be+Re*Ae,a[5]=Ke*_e+Ne*Se+Re*we,a[6]=$e*ce+nt*ye+ut*Be,a[7]=$e*ge+nt*be+ut*Ae,a[8]=$e*_e+nt*Se+ut*we,a},oe.mul=oe.multiply,oe.translate=function(a,x,re){var ce=x[0],ge=x[1],_e=x[2],ye=x[3],be=x[4],Se=x[5],Be=x[6],Ae=x[7],we=x[8],Ue=re[0],Pe=re[1];return a[0]=ce,a[1]=ge,a[2]=_e,a[3]=ye,a[4]=be,a[5]=Se,a[6]=Ue*ce+Pe*ye+Be,a[7]=Ue*ge+Pe*be+Ae,a[8]=Ue*_e+Pe*Se+we,a},oe.rotate=function(a,x,re){var ce=x[0],ge=x[1],_e=x[2],ye=x[3],be=x[4],Se=x[5],Be=x[6],Ae=x[7],we=x[8],Ue=Math.sin(re),Pe=Math.cos(re);return a[0]=Pe*ce+Ue*ye,a[1]=Pe*ge+Ue*be,a[2]=Pe*_e+Ue*Se,a[3]=Pe*ye-Ue*ce,a[4]=Pe*be-Ue*ge,a[5]=Pe*Se-Ue*_e,a[6]=Be,a[7]=Ae,a[8]=we,a},oe.scale=function(a,x,re){var ce=re[0],ge=re[1];return a[0]=ce*x[0],a[1]=ce*x[1],a[2]=ce*x[2],a[3]=ge*x[3],a[4]=ge*x[4],a[5]=ge*x[5],a[6]=x[6],a[7]=x[7],a[8]=x[8],a},oe.fromMat2d=function(a,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1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+", "+a[6]+", "+a[7]+", "+a[8]+")"},oe.frob=function(a){return Math.sqrt(Math.pow(a[0],2)+Math.pow(a[1],2)+Math.pow(a[2],2)+Math.pow(a[3],2)+Math.pow(a[4],2)+Math.pow(a[5],2)+Math.pow(a[6],2)+Math.pow(a[7],2)+Math.pow(a[8],2))},typeof ue!="undefined"&&(ue.mat3=oe);var se={};se.create=function(){var a=new he(16);return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a},se.clone=function(a){var x=new he(16);return x[0]=a[0],x[1]=a[1],x[2]=a[2],x[3]=a[3],x[4]=a[4],x[5]=a[5],x[6]=a[6],x[7]=a[7],x[8]=a[8],x[9]=a[9],x[10]=a[10],x[11]=a[11],x[12]=a[12],x[13]=a[13],x[14]=a[14],x[15]=a[15],x},se.copy=function(a,x){return a[0]=x[0],a[1]=x[1],a[2]=x[2],a[3]=x[3],a[4]=x[4],a[5]=x[5],a[6]=x[6],a[7]=x[7],a[8]=x[8],a[9]=x[9],a[10]=x[10],a[11]=x[11],a[12]=x[12],a[13]=x[13],a[14]=x[14],a[15]=x[15],a},se.identity=function(a){return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a},se.transpose=function(a,x){if(a===x){var re=x[1],ce=x[2],ge=x[3],_e=x[6],ye=x[7],be=x[11];a[1]=x[4],a[2]=x[8],a[3]=x[12],a[4]=re,a[6]=x[9],a[7]=x[13],a[8]=ce,a[9]=_e,a[11]=x[14],a[12]=ge,a[13]=ye,a[14]=be}else a[0]=x[0],a[1]=x[4],a[2]=x[8],a[3]=x[12],a[4]=x[1],a[5]=x[5],a[6]=x[9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t*Re,a[15]=nt*ye+ut*Ae+Qe*ze+rt*$e,a},se.multiplyAffine=function(a,x,re){var ce=x[0],ge=x[1],_e=x[2],ye=x[4],be=x[5],Se=x[6],Be=x[8],Ae=x[9],we=x[10],Ue=x[12],Pe=x[13],ze=x[14],Ke=re[0],Ne=re[1],Re=re[2];return a[0]=Ke*ce+Ne*ye+Re*Be,a[1]=Ke*ge+Ne*be+Re*Ae,a[2]=Ke*_e+Ne*Se+Re*we,Ke=re[4],Ne=re[5],Re=re[6],a[4]=Ke*ce+Ne*ye+Re*Be,a[5]=Ke*ge+Ne*be+Re*Ae,a[6]=Ke*_e+Ne*Se+Re*we,Ke=re[8],Ne=re[9],Re=re[10],a[8]=Ke*ce+Ne*ye+Re*Be,a[9]=Ke*ge+Ne*be+Re*Ae,a[10]=Ke*_e+Ne*Se+Re*we,Ke=re[12],Ne=re[13],Re=re[14],a[12]=Ke*ce+Ne*ye+Re*Be+Ue,a[13]=Ke*ge+Ne*be+Re*Ae+Pe,a[14]=Ke*_e+Ne*Se+Re*we+ze,a},se.mul=se.multiply,se.mulAffine=se.multiplyAffine,se.translate=function(a,x,re){var ce=re[0],ge=re[1],_e=re[2],ye,be,Se,Be,Ae,we,Ue,Pe,ze,Ke,Ne,Re;return x===a?(a[12]=x[0]*ce+x[4]*ge+x[8]*_e+x[12],a[13]=x[1]*ce+x[5]*ge+x[9]*_e+x[13],a[14]=x[2]*ce+x[6]*ge+x[10]*_e+x[14],a[15]=x[3]*ce+x[7]*ge+x[11]*_e+x[15]):(ye=x[0],be=x[1],Se=x[2],Be=x[3],Ae=x[4],we=x[5],Ue=x[6],Pe=x[7],ze=x[8],Ke=x[9],Ne=x[10],Re=x[11],a[0]=ye,a[1]=be,a[2]=Se,a[3]=Be,a[4]=Ae,a[5]=we,a[6]=Ue,a[7]=Pe,a[8]=ze,a[9]=Ke,a[10]=Ne,a[11]=Re,a[12]=ye*ce+Ae*ge+ze*_e+x[12],a[13]=be*ce+we*ge+Ke*_e+x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]=Pe*zt+Re*Xe+Qe*Fe,a[11]=ze*zt+$e*Xe+rt*Fe,x!==a&&(a[12]=x[12],a[13]=x[13],a[14]=x[14],a[15]=x[15]),a)},se.rotateX=function(a,x,re){var ce=Math.sin(re),ge=Math.cos(re),_e=x[4],ye=x[5],be=x[6],Se=x[7],Be=x[8],Ae=x[9],we=x[10],Ue=x[11];return x!==a&&(a[0]=x[0],a[1]=x[1],a[2]=x[2],a[3]=x[3],a[12]=x[12],a[13]=x[13],a[14]=x[14],a[15]=x[15]),a[4]=_e*ge+Be*ce,a[5]=ye*ge+Ae*ce,a[6]=be*ge+we*ce,a[7]=Se*ge+Ue*ce,a[8]=Be*ge-_e*ce,a[9]=Ae*ge-ye*ce,a[10]=we*ge-be*ce,a[11]=Ue*ge-Se*ce,a},se.rotateY=function(a,x,re){var ce=Math.sin(re),ge=Math.cos(re),_e=x[0],ye=x[1],be=x[2],Se=x[3],Be=x[8],Ae=x[9],we=x[10],Ue=x[11];return x!==a&&(a[4]=x[4],a[5]=x[5],a[6]=x[6],a[7]=x[7],a[12]=x[12],a[13]=x[13],a[14]=x[14],a[15]=x[15]),a[0]=_e*ge-Be*ce,a[1]=ye*ge-Ae*ce,a[2]=be*ge-we*ce,a[3]=Se*ge-Ue*ce,a[8]=_e*ce+Be*ge,a[9]=ye*ce+Ae*ge,a[10]=be*ce+we*ge,a[11]=Se*ce+Ue*ge,a},se.rotateZ=function(a,x,re){var ce=Math.sin(re),ge=Math.cos(re),_e=x[0],ye=x[1],be=x[2],Se=x[3],Be=x[4],Ae=x[5],we=x[6],Ue=x[7];return x!==a&&(a[8]=x[8],a[9]=x[9],a[10]=x[10],a[11]=x[11],a[12]=x[12],a[13]=x[13],a[14]=x[14],a[15]=x[15]),a[0]=_e*ge+Be*ce,a[1]=ye*ge+Ae*ce,a[2]=be*ge+we*ce,a[3]=Se*ge+Ue*ce,a[4]=Be*ge-_e*ce,a[5]=Ae*ge-ye*ce,a[6]=we*ge-be*ce,a[7]=Ue*ge-Se*ce,a},se.fromRotationTranslation=function(a,x,re){var ce=x[0],ge=x[1],_e=x[2],ye=x[3],be=ce+ce,Se=ge+ge,Be=_e+_e,Ae=ce*be,we=ce*Se,Ue=ce*Be,Pe=ge*Se,ze=ge*Be,Ke=_e*Be,Ne=ye*be,Re=ye*Se,$e=ye*Be;return a[0]=1-(Pe+Ke),a[1]=we+$e,a[2]=Ue-Re,a[3]=0,a[4]=we-$e,a[5]=1-(Ae+Ke),a[6]=ze+Ne,a[7]=0,a[8]=Ue+Re,a[9]=ze-Ne,a[10]=1-(Ae+Pe),a[11]=0,a[12]=re[0],a[13]=re[1],a[14]=re[2],a[15]=1,a},se.fromQuat=function(a,x){var re=x[0],ce=x[1],ge=x[2],_e=x[3],ye=re+re,be=ce+ce,Se=ge+ge,Be=re*ye,Ae=ce*ye,we=ce*be,Ue=ge*ye,Pe=ge*be,ze=ge*Se,Ke=_e*ye,Ne=_e*be,Re=_e*Se;return a[0]=1-we-ze,a[1]=Ae+Re,a[2]=Ue-Ne,a[3]=0,a[4]=Ae-Re,a[5]=1-Be-ze,a[6]=Pe+Ke,a[7]=0,a[8]=Ue+Ne,a[9]=Pe-Ke,a[10]=1-Be-we,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a},se.frustum=function(a,x,re,ce,ge,_e,ye){var be=1/(re-x),Se=1/(ge-ce),Be=1/(_e-ye);return a[0]=_e*2*be,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=_e*2*Se,a[6]=0,a[7]=0,a[8]=(re+x)*be,a[9]=(ge+ce)*Se,a[10]=(ye+_e)*Be,a[11]=-1,a[12]=0,a[13]=0,a[14]=ye*_e*2*Be,a[15]=0,a},se.perspective=function(a,x,re,ce,ge){var _e=1/Math.tan(x/2),ye=1/(ce-ge);return a[0]=_e/re,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=_e,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=(ge+ce)*ye,a[11]=-1,a[12]=0,a[13]=0,a[14]=2*ge*ce*ye,a[15]=0,a},se.ortho=function(a,x,re,ce,ge,_e,ye){var be=1/(x-re),Se=1/(ce-ge),Be=1/(_e-ye);return a[0]=-2*be,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=-2*Se,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=2*Be,a[11]=0,a[12]=(x+re)*be,a[13]=(ge+ce)*Se,a[14]=(ye+_e)*Be,a[15]=1,a},se.lookAt=function(a,x,re,ce){var ge,_e,ye,be,Se,Be,Ae,we,Ue,Pe,ze=x[0],Ke=x[1],Ne=x[2],Re=ce[0],$e=ce[1],nt=ce[2],ut=re[0],Qe=re[1],rt=re[2];return Math.abs(ze-ut)<fe&&Math.abs(Ke-Qe)<fe&&Math.abs(Ne-rt)<fe?se.identity(a):(Ae=ze-ut,we=Ke-Qe,Ue=Ne-rt,Pe=1/Math.sqrt(Ae*Ae+we*we+Ue*Ue),Ae*=Pe,we*=Pe,Ue*=Pe,ge=$e*Ue-nt*we,_e=nt*Ae-Re*Ue,ye=Re*we-$e*Ae,Pe=Math.sqrt(ge*ge+_e*_e+ye*ye),Pe?(Pe=1/Pe,ge*=Pe,_e*=Pe,ye*=Pe):(ge=0,_e=0,ye=0),be=we*ye-Ue*_e,Se=Ue*ge-Ae*ye,Be=Ae*_e-we*ge,Pe=Math.sqrt(be*be+Se*Se+Be*Be),Pe?(Pe=1/Pe,be*=Pe,Se*=Pe,Be*=Pe):(be=0,Se=0,Be=0),a[0]=ge,a[1]=be,a[2]=Ae,a[3]=0,a[4]=_e,a[5]=Se,a[6]=we,a[7]=0,a[8]=ye,a[9]=Be,a[10]=Ue,a[11]=0,a[12]=-(ge*ze+_e*Ke+ye*Ne),a[13]=-(be*ze+Se*Ke+Be*Ne),a[14]=-(Ae*ze+we*Ke+Ue*Ne),a[15]=1,a)},se.str=function(a){return"mat4("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+", "+a[6]+", "+a[7]+", "+a[8]+", "+a[9]+", "+a[10]+", "+a[11]+", "+a[12]+", "+a[13]+", "+a[14]+", "+a[15]+")"},se.frob=function(a){return Math.sqrt(Math.pow(a[0],2)+Math.pow(a[1],2)+Math.pow(a[2],2)+Math.pow(a[3],2)+Math.pow(a[4],2)+Math.pow(a[5],2)+Math.pow(a[6],2)+Math.pow(a[7],2)+Math.pow(a[8],2)+Math.pow(a[9],2)+Math.pow(a[10],2)+Math.pow(a[11],2)+Math.pow(a[12],2)+Math.pow(a[13],2)+Math.pow(a[14],2)+Math.pow(a[15],2))},typeof ue!="undefined"&&(ue.mat4=se);var de={};de.create=function(){var a=new he(4);return a[0]=0,a[1]=0,a[2]=0,a[3]=1,a},de.rotationTo=function(){var a=E.create(),x=E.fromValues(1,0,0),re=E.fromValues(0,1,0);return function(ce,ge,_e){var ye=E.dot(ge,_e);return ye<-.999999?(E.cross(a,x,ge),E.length(a)<1e-6&&E.cross(a,re,ge),E.normalize(a,a),de.setAxisAngle(ce,a,Math.PI),ce):ye>.999999?(ce[0]=0,ce[1]=0,ce[2]=0,ce[3]=1,ce):(E.cross(a,ge,_e),ce[0]=a[0],ce[1]=a[1],ce[2]=a[2],ce[3]=1+ye,de.normalize(ce,ce))}}(),de.setAxes=function(){var a=oe.create();return function(x,re,ce,ge){return a[0]=ce[0],a[3]=ce[1],a[6]=ce[2],a[1]=ge[0],a[4]=ge[1],a[7]=ge[2],a[2]=-re[0],a[5]=-re[1],a[8]=-re[2],de.normalize(x,de.fromMat3(x,a))}}(),de.clone=b.clone,de.fromValues=b.fromValues,de.copy=b.copy,de.set=b.set,de.identity=function(a){return a[0]=0,a[1]=0,a[2]=0,a[3]=1,a},de.setAxisAngle=function(a,x,re){re=re*.5;var ce=Math.sin(re);return a[0]=ce*x[0],a[1]=ce*x[1],a[2]=ce*x[2],a[3]=Math.cos(re),a},de.add=b.add,de.multiply=function(a,x,re){var ce=x[0],ge=x[1],_e=x[2],ye=x[3],be=re[0],Se=re[1],Be=re[2],Ae=re[3];return a[0]=ce*Ae+ye*be+ge*Be-_e*Se,a[1]=ge*Ae+ye*Se+_e*be-ce*Be,a[2]=_e*Ae+ye*Be+ce*Se-ge*be,a[3]=ye*Ae-ce*be-ge*Se-_e*Be,a},de.mul=de.multiply,de.scale=b.scale,de.rotateX=function(a,x,re){re*=.5;var ce=x[0],ge=x[1],_e=x[2],ye=x[3],be=Math.sin(re),Se=Math.cos(re);return a[0]=ce*Se+ye*be,a[1]=ge*Se+_e*be,a[2]=_e*Se-ge*be,a[3]=ye*Se-ce*be,a},de.rotateY=function(a,x,re){re*=.5;var ce=x[0],ge=x[1],_e=x[2],ye=x[3],be=Math.sin(re),Se=Math.cos(re);return a[0]=ce*Se-_e*be,a[1]=ge*Se+ye*be,a[2]=_e*Se+ce*be,a[3]=ye*Se-ge*be,a},de.rotateZ=function(a,x,re){re*=.5;var ce=x[0],ge=x[1],_e=x[2],ye=x[3],be=Math.sin(re),Se=Math.cos(re);return a[0]=ce*Se+ge*be,a[1]=ge*Se-ce*be,a[2]=_e*Se+ye*be,a[3]=ye*Se-_e*be,a},de.calculateW=function(a,x){var re=x[0],ce=x[1],ge=x[2];return a[0]=re,a[1]=ce,a[2]=ge,a[3]=Math.sqrt(Math.abs(1-re*re-ce*ce-ge*ge)),a},de.dot=b.dot,de.lerp=b.lerp,de.slerp=function(a,x,re,ce){var ge=x[0],_e=x[1],ye=x[2],be=x[3],Se=re[0],Be=re[1],Ae=re[2],we=re[3],Ue,Pe,ze,Ke,Ne;return Pe=ge*Se+_e*Be+ye*Ae+be*we,Pe<0&&(Pe=-Pe,Se=-Se,Be=-Be,Ae=-Ae,we=-we),1-Pe>1e-6?(Ue=Math.acos(Pe),ze=Math.sin(Ue),Ke=Math.sin((1-ce)*Ue)/ze,Ne=Math.sin(ce*Ue)/ze):(Ke=1-ce,Ne=ce),a[0]=Ke*ge+Ne*Se,a[1]=Ke*_e+Ne*Be,a[2]=Ke*ye+Ne*Ae,a[3]=Ke*be+Ne*we,a},de.invert=function(a,x){var re=x[0],ce=x[1],ge=x[2],_e=x[3],ye=re*re+ce*ce+ge*ge+_e*_e,be=ye?1/ye:0;return a[0]=-re*be,a[1]=-ce*be,a[2]=-ge*be,a[3]=_e*be,a},de.conjugate=function(a,x){return a[0]=-x[0],a[1]=-x[1],a[2]=-x[2],a[3]=x[3],a},de.length=b.length,de.len=de.length,de.squaredLength=b.squaredLength,de.sqrLen=de.squaredLength,de.normalize=b.normalize,de.fromMat3=function(a,x){var re=x[0]+x[4]+x[8],ce;if(re>0)ce=Math.sqrt(re+1),a[3]=.5*ce,ce=.5/ce,a[0]=(x[5]-x[7])*ce,a[1]=(x[6]-x[2])*ce,a[2]=(x[1]-x[3])*ce;else{var ge=0;x[4]>x[0]&&(ge=1),x[8]>x[ge*3+ge]&&(ge=2);var _e=(ge+1)%3,ye=(ge+2)%3;ce=Math.sqrt(x[ge*3+ge]-x[_e*3+_e]-x[ye*3+ye]+1),a[ge]=.5*ce,ce=.5/ce,a[3]=(x[_e*3+ye]-x[ye*3+_e])*ce,a[_e]=(x[_e*3+ge]+x[ge*3+_e])*ce,a[ye]=(x[ye*3+ge]+x[ge*3+ye])*ce}return a},de.str=function(a){return"quat("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+")"},typeof ue!="undefined"&&(ue.quat=de)}(ve.exports)})(this)},function(Ye,Me,pe){"use strict";var Oe=pe(24),ve=pe(46),ue=pe(5),fe=pe(6),he=pe(7),le=pe(17),ae=pe(28),ie=pe(13),me=pe(0),E=pe.n(me),b=pe(29),z=pe(53),ne=pe.n(z),oe=pe(54),se=pe(106),de=pe(107),a=pe(113),x=pe(114),re=pe(3),ce=pe(68),ge=pe(37),_e=pe(69),ye=pe(116),be=pe(70),Se=pe(71),Be=pe(72),Ae=pe(36),we=pe(30),Ue=pe(23),Pe=pe(4),ze=pe(117),Ke=pe(50),Ne=pe(118),Re=pe(119),$e=pe(120),nt=pe(9),ut=pe(67),Qe=pe(49),rt=pe(15),pt=pe(52),At=pe(121),gt=pe(126),Ft=pe(63),Ct=pe(127),Yt=pe(128),zt=pe(129),Xe=pe(130),Fe=pe(131),Le=pe(132);E.a.util.extend(ae.a.prototype,At.a),he.a.import(gt.a),he.a.import(Ft.a),he.a.import(Ct.a),he.a.import(Yt.a),he.a.import(zt.a),he.a.import(Xe.a),he.a.import(Fe.a),he.a.import(Le.a);function Ze(mt){return!mt||mt==="none"}function et(mt){return mt instanceof HTMLCanvasElement||mt instanceof HTMLImageElement||mt instanceof Image}function He(mt){return mt.getZr&&mt.setOption}var We=b.a.prototype.addToScene,tt=b.a.prototype.removeFromScene;b.a.prototype.addToScene=function(mt){if(We.call(this,mt),this.__zr){var Lt=this.__zr;mt.traverse(function(ft){ft.__zr=Lt,ft.addAnimatorsToZr&&ft.addAnimatorsToZr(Lt)})}},b.a.prototype.removeFromScene=function(mt){tt.call(this,mt),mt.traverse(function(Lt){var ft=Lt.__zr;Lt.__zr=null,ft&&Lt.removeAnimatorsFromZr&&Lt.removeAnimatorsFromZr(ft)})},le.a.prototype.setTextureImage=function(mt,Lt,ft,St){if(this.shader){var nn=ft.getZr(),on=this,yn;return on.autoUpdateTextureStatus=!1,on.disableTexture(mt),Ze(Lt)||(yn=at.loadTexture(Lt,ft,St,function(xn){on.enableTexture(mt),nn&&nn.refresh()}),on.set(mt,yn)),yn}};var at={};at.Renderer=ve.a,at.Node=ae.a,at.Mesh=Oe.a,at.Shader=he.a,at.Material=le.a,at.Texture=fe.a,at.Texture2D=ue.a,at.Geometry=ie.a,at.SphereGeometry=ce.a,at.PlaneGeometry=ge.a,at.CubeGeometry=_e.a,at.AmbientLight=ye.a,at.DirectionalLight=be.a,at.PointLight=Se.a,at.SpotLight=Be.a,at.PerspectiveCamera=Ae.a,at.OrthographicCamera=we.a,at.Vector2=Ue.a,at.Vector3=Pe.a,at.Vector4=ze.a,at.Quaternion=Ke.a,at.Matrix2=Ne.a,at.Matrix2d=Re.a,at.Matrix3=$e.a,at.Matrix4=nt.a,at.Plane=ut.a,at.Ray=Qe.a,at.BoundingBox=rt.a,at.Frustum=pt.a;var ot=oe.a.createBlank("rgba(255,255,255,0)").image;function ct(mt){return Math.pow(2,Math.round(Math.log(mt)/Math.LN2))}function lt(mt){if((mt.wrapS===fe.a.REPEAT||mt.wrapT===fe.a.REPEAT)&&mt.image){var Lt=ct(mt.width),ft=ct(mt.height);if(Lt!==mt.width||ft!==mt.height){var St=document.createElement("canvas");St.width=Lt,St.height=ft;var nn=St.getContext("2d");nn.drawImage(mt.image,0,0,Lt,ft),mt.image=St}}}at.loadTexture=function(mt,Lt,ft,St){typeof ft=="function"&&(St=ft,ft={}),ft=ft||{};for(var nn=Object.keys(ft).sort(),on="",yn=0;yn<nn.length;yn++)on+=nn[yn]+"_"+ft[nn[yn]]+"_";var xn=Lt.__textureCache=Lt.__textureCache||new ne.a(20);if(He(mt)){var an=mt.__textureid__,An=xn.get(on+an);if(An)An.texture.surface.setECharts(mt),St&&St(An.texture);else{var Jt=new se.a(mt);Jt.onupdate=function(){Lt.getZr().refresh()},An={texture:Jt.getTexture()};for(var yn=0;yn<nn.length;yn++)An.texture[nn[yn]]=ft[nn[yn]];an=mt.__textureid__||"__ecgl_ec__"+An.texture.__uid__,mt.__textureid__=an,xn.put(on+an,An),St&&St(An.texture)}return An.texture}else if(et(mt)){var an=mt.__textureid__,An=xn.get(on+an);if(!An){An={texture:new at.Texture2D({image:mt})};for(var yn=0;yn<nn.length;yn++)An.texture[nn[yn]]=ft[nn[yn]];an=mt.__textureid__||"__ecgl_image__"+An.texture.__uid__,mt.__textureid__=an,xn.put(on+an,An),lt(An.texture),St&&St(An.texture)}return An.texture}else{var An=xn.get(on+mt);if(An)An.callbacks?An.callbacks.push(St):St&&St(An.texture);else if(mt.match(/.hdr$|^data:application\/octet-stream/)){An={callbacks:[St]};var Ut=oe.a.loadTexture(mt,{exposure:ft.exposure,fileType:"hdr"},function(){Ut.dirty(),An.callbacks.forEach(function(Bn){Bn&&Bn(Ut)}),An.callbacks=null});An.texture=Ut,xn.put(on+mt,An)}else{for(var Ut=new at.Texture2D({image:new Image}),yn=0;yn<nn.length;yn++)Ut[nn[yn]]=ft[nn[yn]];An={texture:Ut,callbacks:[St]};var rn=Ut.image;rn.onload=function(){Ut.image=rn,lt(Ut),Ut.dirty(),An.callbacks.forEach(function(kt){kt&&kt(Ut)}),An.callbacks=null},rn.src=mt,Ut.image=ot,xn.put(on+mt,An)}return An.texture}},at.createAmbientCubemap=function(mt,Lt,ft,St){mt=mt||{};var nn=mt.texture,on=re.a.firstNotNull(mt.exposure,1),yn=new de.a({intensity:re.a.firstNotNull(mt.specularIntensity,1)}),xn=new a.a({intensity:re.a.firstNotNull(mt.diffuseIntensity,1),coefficients:[.844,.712,.691,-.037,.083,.167,.343,.288,.299,-.041,-.021,-.009,-.003,-.041,-.064,-.011,-.007,-.004,-.031,.034,.081,-.06,-.049,-.06,.046,.056,.05]});return yn.cubemap=at.loadTexture(nn,ft,{exposure:on},function(){yn.cubemap.flipY=!1,yn.prefilter(Lt,32),xn.coefficients=x.a.projectEnvironmentMap(Lt,yn.cubemap,{lod:1}),St&&St()}),{specular:yn,diffuse:xn}},at.createBlankTexture=oe.a.createBlank,at.isImage=et,at.additiveBlend=function(mt){mt.blendEquation(mt.FUNC_ADD),mt.blendFunc(mt.SRC_ALPHA,mt.ONE)},at.parseColor=function(mt,Lt){return mt instanceof Array?(Lt||(Lt=[]),Lt[0]=mt[0],Lt[1]=mt[1],Lt[2]=mt[2],mt.length>3?Lt[3]=mt[3]:Lt[3]=1,Lt):(Lt=E.a.color.parse(mt||"#000",Lt)||[0,0,0,0],Lt[0]/=255,Lt[1]/=255,Lt[2]/=255,Lt)},at.directionFromAlphaBeta=function(mt,Lt){var ft=mt/180*Math.PI+Math.PI/2,St=-Lt/180*Math.PI+Math.PI/2,nn=[],on=Math.sin(ft);return nn[0]=on*Math.cos(St),nn[1]=-Math.cos(ft),nn[2]=on*Math.sin(St),nn},at.getShadowResolution=function(mt){var Lt=1024;switch(mt){case"low":Lt=512;break;case"medium":break;case"high":Lt=2048;break;case"ultra":Lt=4096;break}return Lt},at.COMMON_SHADERS=["lambert","color","realistic","hatching"],at.createShader=function(mt){var Lt=he.a.source(mt+".vertex"),ft=he.a.source(mt+".fragment");Lt||console.error("Vertex shader of '%s' not exits",mt),ft||console.error("Fragment shader of '%s' not exits",mt);var St=new he.a(Lt,ft);return St.name=mt,St},at.createMaterial=function(mt,Lt){Lt instanceof Array||(Lt=[Lt]);var ft=at.createShader(mt),St=new le.a({shader:ft});return Lt.forEach(function(nn){typeof nn=="string"&&St.define(nn)}),St},at.setMaterialFromModel=function(mt,Lt,ft,St){Lt.autoUpdateTextureStatus=!1;var nn=ft.getModel(mt+"Material"),on=nn.get("detailTexture"),yn=re.a.firstNotNull(nn.get("textureTiling"),1),xn=re.a.firstNotNull(nn.get("textureOffset"),0);typeof yn=="number"&&(yn=[yn,yn]),typeof xn=="number"&&(xn=[xn,xn]);var an=yn[0]>1||yn[1]>1?at.Texture.REPEAT:at.Texture.CLAMP_TO_EDGE,An={anisotropic:8,wrapS:an,wrapT:an};if(mt==="realistic"){var Jt=nn.get("roughness"),Ut=nn.get("metalness");Ut!=null?isNaN(Ut)&&(Lt.setTextureImage("metalnessMap",Ut,St,An),Ut=re.a.firstNotNull(nn.get("metalnessAdjust"),.5)):Ut=0,Jt!=null?isNaN(Jt)&&(Lt.setTextureImage("roughnessMap",Jt,St,An),Jt=re.a.firstNotNull(nn.get("roughnessAdjust"),.5)):Jt=.5;var rn=nn.get("normalTexture");Lt.setTextureImage("detailMap",on,St,An),Lt.setTextureImage("normalMap",rn,St,An),Lt.set({roughness:Jt,metalness:Ut,detailUvRepeat:yn,detailUvOffset:xn})}else if(mt==="lambert")Lt.setTextureImage("detailMap",on,St,An),Lt.set({detailUvRepeat:yn,detailUvOffset:xn});else if(mt==="color")Lt.setTextureImage("detailMap",on,St,An),Lt.set({detailUvRepeat:yn,detailUvOffset:xn});else if(mt==="hatching"){var _n=nn.get("hatchingTextures")||[];_n.length<6&&console.error("Invalid hatchingTextures.");for(var Bn=0;Bn<6;Bn++)Lt.setTextureImage("hatch"+(Bn+1),_n[Bn],St,{anisotropic:8,wrapS:at.Texture.REPEAT,wrapT:at.Texture.REPEAT});Lt.set({detailUvRepeat:yn,detailUvOffset:xn})}},at.updateVertexAnimation=function(mt,Lt,ft,St){var nn=St.get("animation"),on=St.get("animationDurationUpdate"),yn=St.get("animationEasingUpdate"),xn=ft.shadowDepthMaterial;if(nn&&Lt&&on>0&&Lt.geometry.vertexCount===ft.geometry.vertexCount){ft.material.define("vertex","VERTEX_ANIMATION"),ft.ignorePreZ=!0,xn&&xn.define("vertex","VERTEX_ANIMATION");for(var an=0;an<mt.length;an++)ft.geometry.attributes[mt[an][0]].value=Lt.geometry.attributes[mt[an][1]].value;ft.geometry.dirty(),ft.__percent=0,ft.material.set("percent",0),ft.stopAnimation(),ft.animate().when(on,{__percent:1}).during(function(){ft.material.set("percent",ft.__percent),xn&&xn.set("percent",ft.__percent)}).done(function(){ft.ignorePreZ=!1,ft.material.undefine("vertex","VERTEX_ANIMATION"),xn&&xn.undefine("vertex","VERTEX_ANIMATION")}).start(yn)}else ft.material.undefine("vertex","VERTEX_ANIMATION"),xn&&xn.undefine("vertex","VERTEX_ANIMATION")},Me.a=at},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue={firstNotNull:function(){for(var fe=0,he=arguments.length;fe<he;fe++)if(arguments[fe]!=null)return arguments[fe]},queryDataIndex:function(fe,he){if(he.dataIndexInside!=null)return he.dataIndexInside;if(he.dataIndex!=null)return ve.a.util.isArray(he.dataIndex)?ve.a.util.map(he.dataIndex,function(le){return fe.indexOfRawIndex(le)}):fe.indexOfRawIndex(he.dataIndex);if(he.name!=null)return ve.a.util.isArray(he.name)?ve.a.util.map(he.name,function(le){return fe.indexOfName(le)}):fe.indexOfName(he.name)}};Me.a=ue},function(Ye,Me,pe){"use strict";var Oe=pe(1),ve=pe.n(Oe),ue=ve.a.vec3,fe=function(b,z,ne){b=b||0,z=z||0,ne=ne||0,this.array=ue.fromValues(b,z,ne),this._dirty=!0};fe.prototype={constructor:fe,add:function(b){return ue.add(this.array,this.array,b.array),this._dirty=!0,this},set:function(b,z,ne){return this.array[0]=b,this.array[1]=z,this.array[2]=ne,this._dirty=!0,this},setArray:function(b){return this.array[0]=b[0],this.array[1]=b[1],this.array[2]=b[2],this._dirty=!0,this},clone:function(){return new fe(this.x,this.y,this.z)},copy:function(b){return ue.copy(this.array,b.array),this._dirty=!0,this},cross:function(b,z){return ue.cross(this.array,b.array,z.array),this._dirty=!0,this},dist:function(b){return ue.dist(this.array,b.array)},distance:function(b){return ue.distance(this.array,b.array)},div:function(b){return ue.div(this.array,this.array,b.array),this._dirty=!0,this},divide:function(b){return ue.divide(this.array,this.array,b.array),this._dirty=!0,this},dot:function(b){return ue.dot(this.array,b.array)},len:function(){return ue.len(this.array)},length:function(){return ue.length(this.array)},lerp:function(b,z,ne){return ue.lerp(this.array,b.array,z.array,ne),this._dirty=!0,this},min:function(b){return ue.min(this.array,this.array,b.array),this._dirty=!0,this},max:function(b){return ue.max(this.array,this.array,b.array),this._dirty=!0,this},mul:function(b){return ue.mul(this.array,this.array,b.array),this._dirty=!0,this},multiply:function(b){return ue.multiply(this.array,this.array,b.array),this._dirty=!0,this},negate:function(){return ue.negate(this.array,this.array),this._dirty=!0,this},normalize:function(){return ue.normalize(this.array,this.array),this._dirty=!0,this},random:function(b){return ue.random(this.array,b),this._dirty=!0,this},scale:function(b){return ue.scale(this.array,this.array,b),this._dirty=!0,this},scaleAndAdd:function(b,z){return ue.scaleAndAdd(this.array,this.array,b.array,z),this._dirty=!0,this},sqrDist:function(b){return ue.sqrDist(this.array,b.array)},squaredDistance:function(b){return ue.squaredDistance(this.array,b.array)},sqrLen:function(){return ue.sqrLen(this.array)},squaredLength:function(){return ue.squaredLength(this.array)},sub:function(b){return ue.sub(this.array,this.array,b.array),this._dirty=!0,this},subtract:function(b){return ue.subtract(this.array,this.array,b.array),this._dirty=!0,this},transformMat3:function(b){return ue.transformMat3(this.array,this.array,b.array),this._dirty=!0,this},transformMat4:function(b){return ue.transformMat4(this.array,this.array,b.array),this._dirty=!0,this},transformQuat:function(b){return ue.transformQuat(this.array,this.array,b.array),this._dirty=!0,this},applyProjection:function(b){var z=this.array;if(b=b.array,b[15]===0){var ne=-1/z[2];z[0]=b[0]*z[0]*ne,z[1]=b[5]*z[1]*ne,z[2]=(b[10]*z[2]+b[14])*ne}else z[0]=b[0]*z[0]+b[12],z[1]=b[5]*z[1]+b[13],z[2]=b[10]*z[2]+b[14];return this._dirty=!0,this},eulerFromQuat:function(b,z){fe.eulerFromQuat(this,b,z)},eulerFromMat3:function(b,z){fe.eulerFromMat3(this,b,z)},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};var he=Object.defineProperty;if(he){var le=fe.prototype;he(le,"x",{get:function(){return this.array[0]},set:function(b){this.array[0]=b,this._dirty=!0}}),he(le,"y",{get:function(){return this.array[1]},set:function(b){this.array[1]=b,this._dirty=!0}}),he(le,"z",{get:function(){return this.array[2]},set:function(b){this.array[2]=b,this._dirty=!0}})}fe.add=function(b,z,ne){return ue.add(b.array,z.array,ne.array),b._dirty=!0,b},fe.set=function(b,z,ne,oe){ue.set(b.array,z,ne,oe),b._dirty=!0},fe.copy=function(b,z){return ue.copy(b.array,z.array),b._dirty=!0,b},fe.cross=function(b,z,ne){return ue.cross(b.array,z.array,ne.array),b._dirty=!0,b},fe.dist=function(b,z){return ue.distance(b.array,z.array)},fe.distance=fe.dist,fe.div=function(b,z,ne){return ue.divide(b.array,z.array,ne.array),b._dirty=!0,b},fe.divide=fe.div,fe.dot=function(b,z){return ue.dot(b.array,z.array)},fe.len=function(b){return ue.length(b.array)},fe.lerp=function(b,z,ne,oe){return ue.lerp(b.array,z.array,ne.array,oe),b._dirty=!0,b},fe.min=function(b,z,ne){return ue.min(b.array,z.array,ne.array),b._dirty=!0,b},fe.max=function(b,z,ne){return ue.max(b.array,z.array,ne.array),b._dirty=!0,b},fe.mul=function(b,z,ne){return ue.multiply(b.array,z.array,ne.array),b._dirty=!0,b},fe.multiply=fe.mul,fe.negate=function(b,z){return ue.negate(b.array,z.array),b._dirty=!0,b},fe.normalize=function(b,z){return ue.normalize(b.array,z.array),b._dirty=!0,b},fe.random=function(b,z){return ue.random(b.array,z),b._dirty=!0,b},fe.scale=function(b,z,ne){return ue.scale(b.array,z.array,ne),b._dirty=!0,b},fe.scaleAndAdd=function(b,z,ne,oe){return ue.scaleAndAdd(b.array,z.array,ne.array,oe),b._dirty=!0,b},fe.sqrDist=function(b,z){return ue.sqrDist(b.array,z.array)},fe.squaredDistance=fe.sqrDist,fe.sqrLen=function(b){return ue.sqrLen(b.array)},fe.squaredLength=fe.sqrLen,fe.sub=function(b,z,ne){return ue.subtract(b.array,z.array,ne.array),b._dirty=!0,b},fe.subtract=fe.sub,fe.transformMat3=function(b,z,ne){return ue.transformMat3(b.array,z.array,ne.array),b._dirty=!0,b},fe.transformMat4=function(b,z,ne){return ue.transformMat4(b.array,z.array,ne.array),b._dirty=!0,b},fe.transformQuat=function(b,z,ne){return ue.transformQuat(b.array,z.array,ne.array),b._dirty=!0,b};function ae(b,z,ne){return b<z?z:b>ne?ne:b}var ie=Math.atan2,me=Math.asin,E=Math.abs;fe.eulerFromQuat=function(b,z,ye){b._dirty=!0,z=z.array;var oe=b.array,se=z[0],de=z[1],a=z[2],x=z[3],re=se*se,ce=de*de,ge=a*a,_e=x*x,ye=(ye||"XYZ").toUpperCase();switch(ye){case"XYZ":oe[0]=ie(2*(se*x-de*a),_e-re-ce+ge),oe[1]=me(ae(2*(se*a+de*x),-1,1)),oe[2]=ie(2*(a*x-se*de),_e+re-ce-ge);break;case"YXZ":oe[0]=me(ae(2*(se*x-de*a),-1,1)),oe[1]=ie(2*(se*a+de*x),_e-re-ce+ge),oe[2]=ie(2*(se*de+a*x),_e-re+ce-ge);break;case"ZXY":oe[0]=me(ae(2*(se*x+de*a),-1,1)),oe[1]=ie(2*(de*x-a*se),_e-re-ce+ge),oe[2]=ie(2*(a*x-se*de),_e-re+ce-ge);break;case"ZYX":oe[0]=ie(2*(se*x+a*de),_e-re-ce+ge),oe[1]=me(ae(2*(de*x-se*a),-1,1)),oe[2]=ie(2*(se*de+a*x),_e+re-ce-ge);break;case"YZX":oe[0]=ie(2*(se*x-a*de),_e-re+ce-ge),oe[1]=ie(2*(de*x-se*a),_e+re-ce-ge),oe[2]=me(ae(2*(se*de+a*x),-1,1));break;case"XZY":oe[0]=ie(2*(se*x+de*a),_e-re+ce-ge),oe[1]=ie(2*(se*a+de*x),_e+re-ce-ge),oe[2]=me(ae(2*(a*x-se*de),-1,1));break;default:console.warn("Unkown order: "+ye)}return b},fe.eulerFromMat3=function(b,z,Se){var oe=z.array,se=oe[0],de=oe[3],a=oe[6],x=oe[1],re=oe[4],ce=oe[7],ge=oe[2],_e=oe[5],ye=oe[8],be=b.array,Se=(Se||"XYZ").toUpperCase();switch(Se){case"XYZ":be[1]=me(ae(a,-1,1)),E(a)<.99999?(be[0]=ie(-ce,ye),be[2]=ie(-de,se)):(be[0]=ie(_e,re),be[2]=0);break;case"YXZ":be[0]=me(-ae(ce,-1,1)),E(ce)<.99999?(be[1]=ie(a,ye),be[2]=ie(x,re)):(be[1]=ie(-ge,se),be[2]=0);break;case"ZXY":be[0]=me(ae(_e,-1,1)),E(_e)<.99999?(be[1]=ie(-ge,ye),be[2]=ie(-de,re)):(be[1]=0,be[2]=ie(x,se));break;case"ZYX":be[1]=me(-ae(ge,-1,1)),E(ge)<.99999?(be[0]=ie(_e,ye),be[2]=ie(x,se)):(be[0]=0,be[2]=ie(-de,re));break;case"YZX":be[2]=me(ae(x,-1,1)),E(x)<.99999?(be[0]=ie(-ce,re),be[1]=ie(-ge,se)):(be[0]=0,be[1]=ie(a,ye));break;case"XZY":be[2]=me(-ae(de,-1,1)),E(de)<.99999?(be[0]=ie(_e,re),be[1]=ie(a,se)):(be[0]=ie(-ce,ye),be[1]=0);break;default:console.warn("Unkown order: "+Se)}return b._dirty=!0,b},fe.POSITIVE_X=new fe(1,0,0),fe.NEGATIVE_X=new fe(-1,0,0),fe.POSITIVE_Y=new fe(0,1,0),fe.NEGATIVE_Y=new fe(0,-1,0),fe.POSITIVE_Z=new fe(0,0,1),fe.NEGATIVE_Z=new fe(0,0,-1),fe.UP=new fe(0,1,0),fe.ZERO=new fe(0,0,0),Me.a=fe},function(Ye,Me,pe){"use strict";var Oe=pe(6),ve=pe(11),ue=pe(66),fe=ue.a.isPowerOfTwo,he=Oe.a.extend(function(){return{image:null,pixels:null,mipmaps:[]}},{update:function(le){var ae=le.gl;ae.bindTexture(ae.TEXTURE_2D,this._cache.get("webgl_texture")),this.updateCommon(le);var ie=this.format,me=this.type;ae.texParameteri(ae.TEXTURE_2D,ae.TEXTURE_WRAP_S,this.getAvailableWrapS()),ae.texParameteri(ae.TEXTURE_2D,ae.TEXTURE_WRAP_T,this.getAvailableWrapT()),ae.texParameteri(ae.TEXTURE_2D,ae.TEXTURE_MAG_FILTER,this.getAvailableMagFilter()),ae.texParameteri(ae.TEXTURE_2D,ae.TEXTURE_MIN_FILTER,this.getAvailableMinFilter());var E=le.getGLExtension("EXT_texture_filter_anisotropic");if(E&&this.anisotropic>1&&ae.texParameterf(ae.TEXTURE_2D,E.TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropic),me===36193){var b=le.getGLExtension("OES_texture_half_float");b||(me=ve.a.FLOAT)}if(this.mipmaps.length)for(var z=this.width,ne=this.height,oe=0;oe<this.mipmaps.length;oe++){var se=this.mipmaps[oe];this._updateTextureData(ae,se,oe,z,ne,ie,me),z/=2,ne/=2}else this._updateTextureData(ae,this,0,this.width,this.height,ie,me),this.useMipmap&&!this.NPOT&&ae.generateMipmap(ae.TEXTURE_2D);ae.bindTexture(ae.TEXTURE_2D,null)},_updateTextureData:function(le,ae,ie,me,E,b,z){ae.image?le.texImage2D(le.TEXTURE_2D,ie,b,b,z,ae.image):b<=Oe.a.COMPRESSED_RGBA_S3TC_DXT5_EXT&&b>=Oe.a.COMPRESSED_RGB_S3TC_DXT1_EXT?le.compressedTexImage2D(le.TEXTURE_2D,ie,b,me,E,0,ae.pixels):le.texImage2D(le.TEXTURE_2D,ie,b,me,E,0,b,z,ae.pixels)},generateMipmap:function(le){var ae=le.gl;this.useMipmap&&!this.NPOT&&(ae.bindTexture(ae.TEXTURE_2D,this._cache.get("webgl_texture")),ae.generateMipmap(ae.TEXTURE_2D))},isPowerOfTwo:function(){var le,ae;return this.image?(le=this.image.width,ae=this.image.height):(le=this.width,ae=this.height),fe(le)&&fe(ae)},isRenderable:function(){return this.image?this.image.nodeName==="CANVAS"||this.image.nodeName==="VIDEO"||this.image.complete:!!(this.width&&this.height)},bind:function(le){le.gl.bindTexture(le.gl.TEXTURE_2D,this.getWebGLTexture(le))},unbind:function(le){le.gl.bindTexture(le.gl.TEXTURE_2D,null)},load:function(le,ae){var ie=new Image;ae&&(ie.crossOrigin=ae);var me=this;return ie.onload=function(){me.dirty(),me.trigger("success",me),ie.onload=null},ie.onerror=function(){me.trigger("error",me),ie.onerror=null},ie.src=le,this.image=ie,this}});Object.defineProperty(he.prototype,"width",{get:function(){return this.image?this.image.width:this._width},set:function(le){this.image?console.warn("Texture from image can't set width"):(this._width!==le&&this.dirty(),this._width=le)}}),Object.defineProperty(he.prototype,"height",{get:function(){return this.image?this.image.height:this._height},set:function(le){this.image?console.warn("Texture from image can't set height"):(this._height!==le&&this.dirty(),this._height=le)}}),Me.a=he},function(Ye,Me,pe){"use strict";var Oe=pe(8),ve=pe(11),ue=pe(48),fe=Oe.a.extend({width:512,height:512,type:ve.a.UNSIGNED_BYTE,format:ve.a.RGBA,wrapS:ve.a.REPEAT,wrapT:ve.a.REPEAT,minFilter:ve.a.LINEAR_MIPMAP_LINEAR,magFilter:ve.a.LINEAR,useMipmap:!0,anisotropic:1,flipY:!0,sRGB:!0,unpackAlignment:4,premultiplyAlpha:!1,dynamic:!1,NPOT:!1},function(){this._cache=new ue.a},{getWebGLTexture:function(he){var le=he.gl,ae=this._cache;return ae.use(he.__uid__),ae.miss("webgl_texture")&&ae.put("webgl_texture",le.createTexture()),this.dynamic?this.update(he):ae.isDirty()&&(this.update(he),ae.fresh()),ae.get("webgl_texture")},bind:function(){},unbind:function(){},dirty:function(){this._cache&&this._cache.dirtyAll()},update:function(he){},updateCommon:function(he){var le=he.gl;le.pixelStorei(le.UNPACK_FLIP_Y_WEBGL,this.flipY),le.pixelStorei(le.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha),le.pixelStorei(le.UNPACK_ALIGNMENT,this.unpackAlignment),this.format===ve.a.DEPTH_COMPONENT&&(this.useMipmap=!1);var ae=he.getGLExtension("EXT_sRGB");this.format===fe.SRGB&&!ae&&(this.format=fe.RGB),this.format===fe.SRGB_ALPHA&&!ae&&(this.format=fe.RGBA),this.NPOT=!this.isPowerOfTwo()},getAvailableWrapS:function(){return this.NPOT?ve.a.CLAMP_TO_EDGE:this.wrapS},getAvailableWrapT:function(){return this.NPOT?ve.a.CLAMP_TO_EDGE:this.wrapT},getAvailableMinFilter:function(){var he=this.minFilter;return this.NPOT||!this.useMipmap?he==ve.a.NEAREST_MIPMAP_NEAREST||he==ve.a.NEAREST_MIPMAP_LINEAR?ve.a.NEAREST:he==ve.a.LINEAR_MIPMAP_LINEAR||he==ve.a.LINEAR_MIPMAP_NEAREST?ve.a.LINEAR:he:he},getAvailableMagFilter:function(){return this.magFilter},nextHighestPowerOfTwo:function(he){--he;for(var le=1;le<32;le<<=1)he=he|he>>le;return he+1},dispose:function(he){var le=this._cache;le.use(he.__uid__);var ae=le.get("webgl_texture");ae&&he.gl.deleteTexture(ae),le.deleteContext(he.__uid__)},isRenderable:function(){},isPowerOfTwo:function(){}});Object.defineProperty(fe.prototype,"width",{get:function(){return this._width},set:function(he){this._width=he}}),Object.defineProperty(fe.prototype,"height",{get:function(){return this._height},set:function(he){this._height=he}}),fe.BYTE=ve.a.BYTE,fe.UNSIGNED_BYTE=ve.a.UNSIGNED_BYTE,fe.SHORT=ve.a.SHORT,fe.UNSIGNED_SHORT=ve.a.UNSIGNED_SHORT,fe.INT=ve.a.INT,fe.UNSIGNED_INT=ve.a.UNSIGNED_INT,fe.FLOAT=ve.a.FLOAT,fe.HALF_FLOAT=36193,fe.UNSIGNED_INT_24_8_WEBGL=34042,fe.DEPTH_COMPONENT=ve.a.DEPTH_COMPONENT,fe.DEPTH_STENCIL=ve.a.DEPTH_STENCIL,fe.ALPHA=ve.a.ALPHA,fe.RGB=ve.a.RGB,fe.RGBA=ve.a.RGBA,fe.LUMINANCE=ve.a.LUMINANCE,fe.LUMINANCE_ALPHA=ve.a.LUMINANCE_ALPHA,fe.SRGB=35904,fe.SRGB_ALPHA=35906,fe.COMPRESSED_RGB_S3TC_DXT1_EXT=33776,fe.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777,fe.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778,fe.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779,fe.NEAREST=ve.a.NEAREST,fe.LINEAR=ve.a.LINEAR,fe.NEAREST_MIPMAP_NEAREST=ve.a.NEAREST_MIPMAP_NEAREST,fe.LINEAR_MIPMAP_NEAREST=ve.a.LINEAR_MIPMAP_NEAREST,fe.NEAREST_MIPMAP_LINEAR=ve.a.NEAREST_MIPMAP_LINEAR,fe.LINEAR_MIPMAP_LINEAR=ve.a.LINEAR_MIPMAP_LINEAR,fe.REPEAT=ve.a.REPEAT,fe.CLAMP_TO_EDGE=ve.a.CLAMP_TO_EDGE,fe.MIRRORED_REPEAT=ve.a.MIRRORED_REPEAT,Me.a=fe},function(Ye,Me,pe){"use strict";var Oe=pe(21),ve=pe(18),ue=pe(1),fe=pe.n(ue),he=fe.a.mat2,le=fe.a.mat3,ae=fe.a.mat4,ie=/uniform\s+(bool|float|int|vec2|vec3|vec4|ivec2|ivec3|ivec4|mat2|mat3|mat4|sampler2D|samplerCube)\s+([\w\,]+)?(\[.*?\])?\s*(:\s*([\S\s]+?))?;/g,me=/attribute\s+(float|int|vec2|vec3|vec4)\s+(\w*)\s*(:\s*(\w+))?;/g,E=/#define\s+(\w+)?(\s+[\w-.]+)?\s*;?\s*\n/g,b={bool:"1i",int:"1i",sampler2D:"t",samplerCube:"t",float:"1f",vec2:"2f",vec3:"3f",vec4:"4f",ivec2:"2i",ivec3:"3i",ivec4:"4i",mat2:"m2",mat3:"m3",mat4:"m4"},z={bool:function(){return!0},int:function(){return 0},float:function(){return 0},sampler2D:function(){return null},samplerCube:function(){return null},vec2:function(){return[0,0]},vec3:function(){return[0,0,0]},vec4:function(){return[0,0,0,0]},ivec2:function(){return[0,0]},ivec3:function(){return[0,0,0]},ivec4:function(){return[0,0,0,0]},mat2:function(){return he.create()},mat3:function(){return le.create()},mat4:function(){return ae.create()},array:function(){return[]}},ne=["POSITION","NORMAL","BINORMAL","TANGENT","TEXCOORD","TEXCOORD_0","TEXCOORD_1","COLOR","JOINT","WEIGHT"],oe=["SKIN_MATRIX","VIEWPORT_SIZE","VIEWPORT","DEVICEPIXELRATIO","WINDOW_SIZE","NEAR","FAR","TIME"],se=["WORLD","VIEW","PROJECTION","WORLDVIEW","VIEWPROJECTION","WORLDVIEWPROJECTION","WORLDINVERSE","VIEWINVERSE","PROJECTIONINVERSE","WORLDVIEWINVERSE","VIEWPROJECTIONINVERSE","WORLDVIEWPROJECTIONINVERSE","WORLDTRANSPOSE","VIEWTRANSPOSE","PROJECTIONTRANSPOSE","WORLDVIEWTRANSPOSE","VIEWPROJECTIONTRANSPOSE","WORLDVIEWPROJECTIONTRANSPOSE","WORLDINVERSETRANSPOSE","VIEWINVERSETRANSPOSE","PROJECTIONINVERSETRANSPOSE","WORLDVIEWINVERSETRANSPOSE","VIEWPROJECTIONINVERSETRANSPOSE","WORLDVIEWPROJECTIONINVERSETRANSPOSE"],de={},a={};function x(_e,ye){var be="vertex:"+_e+"fragment:"+ye;if(de[be])return de[be];var Se=Oe.a.genGUID();return de[be]=Se,a[Se]={vertex:_e,fragment:ye},Se}function re(_e,ye){typeof _e=="object"&&(ye=_e.fragment,_e=_e.vertex),this._shaderID=x(_e,ye),this._vertexCode=re.parseImport(_e),this._fragmentCode=re.parseImport(ye),this.attributeSemantics={},this.matrixSemantics={},this.uniformSemantics={},this.matrixSemanticKeys=[],this.uniformTemplates={},this.attributes={},this.textures={},this.vertexDefines={},this.fragmentDefines={},this._parseAttributes(),this._parseUniforms(),this._parseDefines()}re.prototype={constructor:re,createUniforms:function(){var _e={};for(var ye in this.uniformTemplates){var be=this.uniformTemplates[ye];_e[ye]={type:be.type,value:be.value()}}return _e},_parseImport:function(){this._vertexCode=re.parseImport(this.vertex),this._fragmentCode=re.parseImport(this.fragment)},_parseUniforms:function(){var _e={},ye=this,be="vertex";this._uniformList=[],this._vertexCode=this._vertexCode.replace(ie,Se),be="fragment",this._fragmentCode=this._fragmentCode.replace(ie,Se),ye.matrixSemanticKeys=Object.keys(this.matrixSemantics);function Se(Be,Ae,we,Ue,Pe,ze){if(Ae&&we){var Ke=b[Ae],Ne=!0,Re;if(Ke){if(ye._uniformList.push(we),(Ae==="sampler2D"||Ae==="samplerCube")&&(ye.textures[we]={shaderType:be,type:Ae}),Ue&&(Ke+="v"),ze)if(ne.indexOf(ze)>=0)ye.attributeSemantics[ze]={symbol:we,type:Ke},Ne=!1;else if(se.indexOf(ze)>=0){var $e=!1,nt=ze;ze.match(/TRANSPOSE$/)&&($e=!0,nt=ze.slice(0,-9)),ye.matrixSemantics[ze]={symbol:we,type:Ke,isTranspose:$e,semanticNoTranspose:nt},Ne=!1}else if(oe.indexOf(ze)>=0)ye.uniformSemantics[ze]={symbol:we,type:Ke},Ne=!1;else if(ze==="unconfigurable")Ne=!1;else if(Re=ye._parseDefaultValue(Ae,ze),Re)ze="";else throw new Error('Unkown semantic "'+ze+'"');Ne&&(_e[we]={type:Ke,value:Ue?z.array:Re||z[Ae],semantic:ze||null})}return["uniform",Ae,we,Ue].join(" ")+`;
|
|
|
`}}this.uniformTemplates=_e},_parseDefaultValue:function(_e,ye){var be=/\[\s*(.*)\s*\]/;if(_e==="vec2"||_e==="vec3"||_e==="vec4"){var Se=be.exec(ye)[1];if(Se){var Be=Se.split(/\s*,\s*/);return function(){return new ve.a.Float32Array(Be)}}else return}else{if(_e==="bool")return function(){return ye.toLowerCase()==="true"};if(_e==="float")return function(){return parseFloat(ye)};if(_e==="int")return function(){return parseInt(ye)}}},_parseAttributes:function(){var _e={},ye=this;this._vertexCode=this._vertexCode.replace(me,be);function be(Se,Be,Ae,we,Ue){if(Be&&Ae){var Pe=1;switch(Be){case"vec4":Pe=4;break;case"vec3":Pe=3;break;case"vec2":Pe=2;break;case"float":Pe=1;break}if(_e[Ae]={type:"float",size:Pe,semantic:Ue||null},Ue){if(ne.indexOf(Ue)<0)throw new Error('Unkown semantic "'+Ue+'"');ye.attributeSemantics[Ue]={symbol:Ae,type:Be}}}return["attribute",Be,Ae].join(" ")+`;
|
|
|
`}this.attributes=_e},_parseDefines:function(){var _e=this,ye="vertex";this._vertexCode=this._vertexCode.replace(E,be),ye="fragment",this._fragmentCode=this._fragmentCode.replace(E,be);function be(Se,Be,Ae){var we=ye==="vertex"?_e.vertexDefines:_e.fragmentDefines;return we[Be]||(Ae=="false"?we[Be]=!1:Ae=="true"?we[Be]=!0:we[Be]=Ae?isNaN(parseFloat(Ae))?Ae.trim():parseFloat(Ae):null),""}},clone:function(){var _e=a[this._shaderID],ye=new re(_e.vertex,_e.fragment);return ye}},Object.defineProperty&&(Object.defineProperty(re.prototype,"shaderID",{get:function(){return this._shaderID}}),Object.defineProperty(re.prototype,"vertex",{get:function(){return this._vertexCode}}),Object.defineProperty(re.prototype,"fragment",{get:function(){return this._fragmentCode}}),Object.defineProperty(re.prototype,"uniforms",{get:function(){return this._uniformList}}));var ce=/(@import)\s*([0-9a-zA-Z_\-\.]*)/g;re.parseImport=function(_e){return _e=_e.replace(ce,function(Be,be,Se){var Be=re.source(Se);return Be?re.parseImport(Be):(console.error('Shader chunk "'+Se+'" not existed in library'),"")}),_e};var ge=/(@export)\s*([0-9a-zA-Z_\-\.]*)\s*\n([\s\S]*?)@end/g;re.import=function(_e){_e.replace(ge,function(ye,be,Se,Ae){var Ae=Ae.replace(/(^[\s\t\xa0\u3000]+)|([\u3000\xa0\s\t]+\x24)/g,"");if(Ae){for(var we=Se.split("."),Ue=re.codes,Pe=0,ze;Pe<we.length-1;)ze=we[Pe++],Ue[ze]||(Ue[ze]={}),Ue=Ue[ze];ze=we[Pe],Ue[ze]=Ae}return Ae})},re.codes={},re.source=function(_e){for(var ye=_e.split("."),be=re.codes,Se=0;be&&Se<ye.length;){var Be=ye[Se++];be=be[Be]}return typeof be!="string"?(console.error('Shader "'+_e+'" not existed in library'),""):be},Me.a=re},function(Ye,Me,pe){"use strict";var Oe=pe(91),ve=pe(47),ue=pe(21),fe=function(){this.__uid__=ue.a.genGUID()};fe.__initializers__=[function(he){ue.a.extend(this,he)}],ue.a.extend(fe,Oe.a),ue.a.extend(fe.prototype,ve.a),Me.a=fe},function(Ye,Me,pe){"use strict";var Oe=pe(1),ve=pe.n(Oe),ue=pe(4),fe=ve.a.mat4,he=ve.a.vec3,le=ve.a.mat3,ae=ve.a.quat,ie=function(){this._axisX=new ue.a,this._axisY=new ue.a,this._axisZ=new ue.a,this.array=fe.create(),this._dirty=!0};ie.prototype={constructor:ie,setArray:function(b){for(var z=0;z<this.array.length;z++)this.array[z]=b[z];return this._dirty=!0,this},adjoint:function(){return fe.adjoint(this.array,this.array),this._dirty=!0,this},clone:function(){return new ie().copy(this)},copy:function(b){return fe.copy(this.array,b.array),this._dirty=!0,this},determinant:function(){return fe.determinant(this.array)},fromQuat:function(b){return fe.fromQuat(this.array,b.array),this._dirty=!0,this},fromRotationTranslation:function(b,z){return fe.fromRotationTranslation(this.array,b.array,z.array),this._dirty=!0,this},fromMat2d:function(b){return ie.fromMat2d(this,b),this},frustum:function(b,z,ne,oe,se,de){return fe.frustum(this.array,b,z,ne,oe,se,de),this._dirty=!0,this},identity:function(){return fe.identity(this.array),this._dirty=!0,this},invert:function(){return fe.invert(this.array,this.array),this._dirty=!0,this},lookAt:function(b,z,ne){return fe.lookAt(this.array,b.array,z.array,ne.array),this._dirty=!0,this},mul:function(b){return fe.mul(this.array,this.array,b.array),this._dirty=!0,this},mulLeft:function(b){return fe.mul(this.array,b.array,this.array),this._dirty=!0,this},multiply:function(b){return fe.multiply(this.array,this.array,b.array),this._dirty=!0,this},multiplyLeft:function(b){return fe.multiply(this.array,b.array,this.array),this._dirty=!0,this},ortho:function(b,z,ne,oe,se,de){return fe.ortho(this.array,b,z,ne,oe,se,de),this._dirty=!0,this},perspective:function(b,z,ne,oe){return fe.perspective(this.array,b,z,ne,oe),this._dirty=!0,this},rotate:function(b,z){return fe.rotate(this.array,this.array,b,z.array),this._dirty=!0,this},rotateX:function(b){return fe.rotateX(this.array,this.array,b),this._dirty=!0,this},rotateY:function(b){return fe.rotateY(this.array,this.array,b),this._dirty=!0,this},rotateZ:function(b){return fe.rotateZ(this.array,this.array,b),this._dirty=!0,this},scale:function(b){return fe.scale(this.array,this.array,b.array),this._dirty=!0,this},translate:function(b){return fe.translate(this.array,this.array,b.array),this._dirty=!0,this},transpose:function(){return fe.transpose(this.array,this.array),this._dirty=!0,this},decomposeMatrix:function(){var b=he.create(),z=he.create(),ne=he.create(),oe=le.create();return function(se,de,a){var x=this.array;he.set(b,x[0],x[1],x[2]),he.set(z,x[4],x[5],x[6]),he.set(ne,x[8],x[9],x[10]);var re=he.length(b),ce=he.length(z),ge=he.length(ne),_e=this.determinant();_e<0&&(re=-re),se&&se.set(re,ce,ge),a.set(x[12],x[13],x[14]),le.fromMat4(oe,x),oe[0]/=re,oe[1]/=re,oe[2]/=re,oe[3]/=ce,oe[4]/=ce,oe[5]/=ce,oe[6]/=ge,oe[7]/=ge,oe[8]/=ge,ae.fromMat3(de.array,oe),ae.normalize(de.array,de.array),de._dirty=!0,a._dirty=!0}}(),toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};var me=Object.defineProperty;if(me){var E=ie.prototype;me(E,"z",{get:function(){var b=this.array;return this._axisZ.set(b[8],b[9],b[10]),this._axisZ},set:function(b){var z=this.array;b=b.array,z[8]=b[0],z[9]=b[1],z[10]=b[2],this._dirty=!0}}),me(E,"y",{get:function(){var b=this.array;return this._axisY.set(b[4],b[5],b[6]),this._axisY},set:function(b){var z=this.array;b=b.array,z[4]=b[0],z[5]=b[1],z[6]=b[2],this._dirty=!0}}),me(E,"x",{get:function(){var b=this.array;return this._axisX.set(b[0],b[1],b[2]),this._axisX},set:function(b){var z=this.array;b=b.array,z[0]=b[0],z[1]=b[1],z[2]=b[2],this._dirty=!0}})}ie.adjoint=function(b,z){return fe.adjoint(b.array,z.array),b._dirty=!0,b},ie.copy=function(b,z){return fe.copy(b.array,z.array),b._dirty=!0,b},ie.determinant=function(b){return fe.determinant(b.array)},ie.identity=function(b){return fe.identity(b.array),b._dirty=!0,b},ie.ortho=function(b,z,ne,oe,se,de,a){return fe.ortho(b.array,z,ne,oe,se,de,a),b._dirty=!0,b},ie.perspective=function(b,z,ne,oe,se){return fe.perspective(b.array,z,ne,oe,se),b._dirty=!0,b},ie.lookAt=function(b,z,ne,oe){return fe.lookAt(b.array,z.array,ne.array,oe.array),b._dirty=!0,b},ie.invert=function(b,z){return fe.invert(b.array,z.array),b._dirty=!0,b},ie.mul=function(b,z,ne){return fe.mul(b.array,z.array,ne.array),b._dirty=!0,b},ie.multiply=ie.mul,ie.fromQuat=function(b,z){return fe.fromQuat(b.array,z.array),b._dirty=!0,b},ie.fromRotationTranslation=function(b,z,ne){return fe.fromRotationTranslation(b.array,z.array,ne.array),b._dirty=!0,b},ie.fromMat2d=function(oe,ne){oe._dirty=!0;var ne=ne.array,oe=oe.array;return oe[0]=ne[0],oe[4]=ne[2],oe[12]=ne[4],oe[1]=ne[1],oe[5]=ne[3],oe[13]=ne[5],oe},ie.rotate=function(b,z,ne,oe){return fe.rotate(b.array,z.array,ne,oe.array),b._dirty=!0,b},ie.rotateX=function(b,z,ne){return fe.rotateX(b.array,z.array,ne),b._dirty=!0,b},ie.rotateY=function(b,z,ne){return fe.rotateY(b.array,z.array,ne),b._dirty=!0,b},ie.rotateZ=function(b,z,ne){return fe.rotateZ(b.array,z.array,ne),b._dirty=!0,b},ie.scale=function(b,z,ne){return fe.scale(b.array,z.array,ne.array),b._dirty=!0,b},ie.transpose=function(b,z){return fe.transpose(b.array,z.array),b._dirty=!0,b},ie.translate=function(b,z,ne){return fe.translate(b.array,z.array,ne.array),b._dirty=!0,b},Me.a=ie},function(Ye,Me,pe){"use strict";var Oe=pe(8),ve=pe(6),ue=pe(25),fe=pe(11),he=pe(48),le="framebuffer",ae="renderbuffer",ie=ae+"_width",me=ae+"_height",E=ae+"_attached",b="depthtexture_attached",z=fe.a.FRAMEBUFFER,ne=fe.a.RENDERBUFFER,oe=fe.a.DEPTH_ATTACHMENT,se=fe.a.COLOR_ATTACHMENT0,de=Oe.a.extend({depthBuffer:!0,viewport:null,_width:0,_height:0,_textures:null,_boundRenderer:null},function(){this._cache=new he.a,this._textures={}},{getTextureWidth:function(){return this._width},getTextureHeight:function(){return this._height},bind:function(a){if(a.__currentFrameBuffer){if(a.__currentFrameBuffer===this)return;console.warn("Renderer already bound with another framebuffer. Unbind it first")}a.__currentFrameBuffer=this;var x=a.gl;x.bindFramebuffer(z,this._getFrameBufferGL(a)),this._boundRenderer=a;var re=this._cache;re.put("viewport",a.viewport);var ce=!1,ge,_e;for(var ye in this._textures){ce=!0;var be=this._textures[ye];be&&(ge=be.texture.width,_e=be.texture.height,this._doAttach(a,be.texture,ye,be.target))}this._width=ge,this._height=_e,!ce&&this.depthBuffer&&console.error("Must attach texture before bind, or renderbuffer may have incorrect width and height."),this.viewport?a.setViewport(this.viewport):a.setViewport(0,0,ge,_e,1);var Se=re.get("attached_textures");if(Se){for(var ye in Se)if(!this._textures[ye]){var Be=Se[ye];this._doDetach(x,ye,Be)}}if(!re.get(b)&&this.depthBuffer){re.miss(ae)&&re.put(ae,x.createRenderbuffer());var Ae=re.get(ae);(ge!==re.get(ie)||_e!==re.get(me))&&(x.bindRenderbuffer(ne,Ae),x.renderbufferStorage(ne,x.DEPTH_COMPONENT16,ge,_e),re.put(ie,ge),re.put(me,_e),x.bindRenderbuffer(ne,null)),re.get(E)||(x.framebufferRenderbuffer(z,oe,ne,Ae),re.put(E,!0))}},unbind:function(a){a.__currentFrameBuffer=null;var x=a.gl;x.bindFramebuffer(z,null),this._boundRenderer=null,this._cache.use(a.__uid__);var re=this._cache.get("viewport");re&&a.setViewport(re),this.updateMipmap(a)},updateMipmap:function(a){var x=a.gl;for(var re in this._textures){var ce=this._textures[re];if(ce){var ge=ce.texture;if(!ge.NPOT&&ge.useMipmap&&ge.minFilter===ve.a.LINEAR_MIPMAP_LINEAR){var _e=ge instanceof ue.a?fe.a.TEXTURE_CUBE_MAP:fe.a.TEXTURE_2D;x.bindTexture(_e,ge.getWebGLTexture(a)),x.generateMipmap(_e),x.bindTexture(_e,null)}}}},checkStatus:function(a){return a.checkFramebufferStatus(z)},_getFrameBufferGL:function(a){var x=this._cache;return x.use(a.__uid__),x.miss(le)&&x.put(le,a.gl.createFramebuffer()),x.get(le)},attach:function(a,x,re){if(!a.width)throw new Error("The texture attached to color buffer is not a valid.");x=x||se,re=re||fe.a.TEXTURE_2D;var ce=this._boundRenderer,ge=ce&&ce.gl,_e;if(ge){var ye=this._cache;ye.use(ce.__uid__),_e=ye.get("attached_textures")}var be=this._textures[x];if(!(be&&be.target===re&&be.texture===a&&_e&&_e[x]!=null)){var Se=!0;ce&&(Se=this._doAttach(ce,a,x,re),this.viewport||ce.setViewport(0,0,a.width,a.height,1)),Se&&(this._textures[x]=this._textures[x]||{},this._textures[x].texture=a,this._textures[x].target=re)}},_doAttach:function(a,x,re,ce){var ge=a.gl,_e=x.getWebGLTexture(a),ye=this._cache.get("attached_textures");if(ye&&ye[re]){var be=ye[re];if(be.texture===x&&be.target===ce)return}re=+re;var Se=!0;if(re===oe||re===fe.a.DEPTH_STENCIL_ATTACHMENT){var Be=a.getGLExtension("WEBGL_depth_texture");if(Be||(console.error("Depth texture is not supported by the browser"),Se=!1),x.format!==fe.a.DEPTH_COMPONENT&&x.format!==fe.a.DEPTH_STENCIL&&(console.error("The texture attached to depth buffer is not a valid."),Se=!1),Se){var Ae=this._cache.get(ae);Ae&&(ge.framebufferRenderbuffer(z,oe,ne,null),ge.deleteRenderbuffer(Ae),this._cache.put(ae,!1)),this._cache.put(E,!1),this._cache.put(b,!0)}}return ge.framebufferTexture2D(z,re,ce,_e,0),ye||(ye={},this._cache.put("attached_textures",ye)),ye[re]=ye[re]||{},ye[re].texture=x,ye[re].target=ce,Se},_doDetach:function(a,x,re){a.framebufferTexture2D(z,x,re,null,0);var ce=this._cache.get("attached_textures");ce&&ce[x]&&(ce[x]=null),(x===oe||x===fe.a.DEPTH_STENCIL_ATTACHMENT)&&this._cache.put(b,!1)},detach:function(a,x){if(this._textures[a]=null,this._boundRenderer){var re=this._cache;re.use(this._boundRenderer.__uid__),this._doDetach(this._boundRenderer.gl,a,x)}},dispose:function(a){var x=a.gl,re=this._cache;re.use(a.__uid__);var ce=re.get(ae);ce&&x.deleteRenderbuffer(ce);var ge=re.get(le);ge&&x.deleteFramebuffer(ge),re.deleteContext(a.__uid__),this._textures={}}});de.DEPTH_ATTACHMENT=oe,de.COLOR_ATTACHMENT0=se,de.STENCIL_ATTACHMENT=fe.a.STENCIL_ATTACHMENT,de.DEPTH_STENCIL_ATTACHMENT=fe.a.DEPTH_STENCIL_ATTACHMENT,Me.a=de},function(Ye,Me,pe){"use strict";Me.a={DEPTH_BUFFER_BIT:256,STENCIL_BUFFER_BIT:1024,COLOR_BUFFER_BIT:16384,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,ZERO:0,ONE:1,SRC_COLOR:768,ONE_MINUS_SRC_COLOR:769,SRC_ALPHA:770,ONE_MINUS_SRC_ALPHA:771,DST_ALPHA:772,ONE_MINUS_DST_ALPHA:773,DST_COLOR:774,ONE_MINUS_DST_COLOR:775,SRC_ALPHA_SATURATE:776,FUNC_ADD:32774,BLEND_EQUATION:32777,BLEND_EQUATION_RGB:32777,BLEND_EQUATION_ALPHA:34877,FUNC_SUBTRACT:32778,FUNC_REVERSE_SUBTRACT:32779,BLEND_DST_RGB:32968,BLEND_SRC_RGB:32969,BLEND_DST_ALPHA:32970,BLEND_SRC_ALPHA:32971,CONSTANT_COLOR:32769,ONE_MINUS_CONSTANT_COLOR:32770,CONSTANT_ALPHA:32771,ONE_MINUS_CONSTANT_ALPHA:32772,BLEND_COLOR:32773,ARRAY_BUFFER:34962,ELEMENT_ARRAY_BUFFER:34963,ARRAY_BUFFER_BINDING:34964,ELEMENT_ARRAY_BUFFER_BINDING:34965,STREAM_DRAW:35040,STATIC_DRAW:35044,DYNAMIC_DRAW:35048,BUFFER_SIZE:34660,BUFFER_USAGE:34661,CURRENT_VERTEX_ATTRIB:34342,FRONT:1028,BACK:1029,FRONT_AND_BACK:1032,CULL_FACE:2884,BLEND:3042,DITHER:3024,STENCIL_TEST:2960,DEPTH_TEST:2929,SCISSOR_TEST:3089,POLYGON_OFFSET_FILL:32823,SAMPLE_ALPHA_TO_COVERAGE:32926,SAMPLE_COVERAGE:32928,NO_ERROR:0,INVALID_ENUM:1280,INVALID_VALUE:1281,INVALID_OPERATION:1282,OUT_OF_MEMORY:1285,CW:2304,CCW:2305,LINE_WIDTH:2849,ALIASED_POINT_SIZE_RANGE:33901,ALIASED_LINE_WIDTH_RANGE:33902,CULL_FACE_MODE:2885,FRONT_FACE:2886,DEPTH_RANGE:2928,DEPTH_WRITEMASK:2930,DEPTH_CLEAR_VALUE:2931,DEPTH_FUNC:2932,STENCIL_CLEAR_VALUE:2961,STENCIL_FUNC:2962,STENCIL_FAIL:2964,STENCIL_PASS_DEPTH_FAIL:2965,STENCIL_PASS_DEPTH_PASS:2966,STENCIL_REF:2967,STENCIL_VALUE_MASK:2963,STENCIL_WRITEMASK:2968,STENCIL_BACK_FUNC:34816,STENCIL_BACK_FAIL:34817,STENCIL_BACK_PASS_DEPTH_FAIL:34818,STENCIL_BACK_PASS_DEPTH_PASS:34819,STENCIL_BACK_REF:36003,STENCIL_BACK_VALUE_MASK:36004,STENCIL_BACK_WRITEMASK:36005,VIEWPORT:2978,SCISSOR_BOX:3088,COLOR_CLEAR_VALUE:3106,COLOR_WRITEMASK:3107,UNPACK_ALIGNMENT:3317,PACK_ALIGNMENT:3333,MAX_TEXTURE_SIZE:3379,MAX_VIEWPORT_DIMS:3386,SUBPIXEL_BITS:3408,RED_BITS:3410,GREEN_BITS:3411,BLUE_BITS:3412,ALPHA_BITS:3413,DEPTH_BITS:3414,STENCIL_BITS:3415,POLYGON_OFFSET_UNITS:10752,POLYGON_OFFSET_FACTOR:32824,TEXTURE_BINDING_2D:32873,SAMPLE_BUFFERS:32936,SAMPLES:32937,SAMPLE_COVERAGE_VALUE:32938,SAMPLE_COVERAGE_INVERT:32939,COMPRESSED_TEXTURE_FORMATS:34467,DONT_CARE:4352,FASTEST:4353,NICEST:4354,GENERATE_MIPMAP_HINT:33170,BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,DEPTH_COMPONENT:6402,ALPHA:6406,RGB:6407,RGBA:6408,LUMINANCE:6409,LUMINANCE_ALPHA:6410,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,FRAGMENT_SHADER:35632,VERTEX_SHADER:35633,MAX_VERTEX_ATTRIBS:34921,MAX_VERTEX_UNIFORM_VECTORS:36347,MAX_VARYING_VECTORS:36348,MAX_COMBINED_TEXTURE_IMAGE_UNITS:35661,MAX_VERTEX_TEXTURE_IMAGE_UNITS:35660,MAX_TEXTURE_IMAGE_UNITS:34930,MAX_FRAGMENT_UNIFORM_VECTORS:36349,SHADER_TYPE:35663,DELETE_STATUS:35712,LINK_STATUS:35714,VALIDATE_STATUS:35715,ATTACHED_SHADERS:35717,ACTIVE_UNIFORMS:35718,ACTIVE_ATTRIBUTES:35721,SHADING_LANGUAGE_VERSION:35724,CURRENT_PROGRAM:35725,NEVER:512,LESS:513,EQUAL:514,LEQUAL:515,GREATER:516,NOTEQUAL:517,GEQUAL:518,ALWAYS:519,KEEP:7680,REPLACE:7681,INCR:7682,DECR:7683,INVERT:5386,INCR_WRAP:34055,DECR_WRAP:34056,VENDOR:7936,RENDERER:7937,VERSION:7938,NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987,TEXTURE_MAG_FILTER:10240,TEXTURE_MIN_FILTER:10241,TEXTURE_WRAP_S:10242,TEXTURE_WRAP_T:10243,TEXTURE_2D:3553,TEXTURE:5890,TEXTURE_CUBE_MAP:34067,TEXTURE_BINDING_CUBE_MAP:34068,TEXTURE_CUBE_MAP_POSITIVE_X:34069,TEXTURE_CUBE_MAP_NEGATIVE_X:34070,TEXTURE_CUBE_MAP_POSITIVE_Y:34071,TEXTURE_CUBE_MAP_NEGATIVE_Y:34072,TEXTURE_CUBE_MAP_POSITIVE_Z:34073,TEXTURE_CUBE_MAP_NEGATIVE_Z:34074,MAX_CUBE_MAP_TEXTURE_SIZE:34076,TEXTURE0:33984,TEXTURE1:33985,TEXTURE2:33986,TEXTURE3:33987,TEXTURE4:33988,TEXTURE5:33989,TEXTURE6:33990,TEXTURE7:33991,TEXTURE8:33992,TEXTURE9:33993,TEXTURE10:33994,TEXTURE11:33995,TEXTURE12:33996,TEXTURE13:33997,TEXTURE14:33998,TEXTURE15:33999,TEXTURE16:34e3,TEXTURE17:34001,TEXTURE18:34002,TEXTURE19:34003,TEXTURE20:34004,TEXTURE21:34005,TEXTURE22:34006,TEXTURE23:34007,TEXTURE24:34008,TEXTURE25:34009,TEXTURE26:34010,TEXTURE27:34011,TEXTURE28:34012,TEXTURE29:34013,TEXTURE30:34014,TEXTURE31:34015,ACTIVE_TEXTURE:34016,REPEAT:10497,CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,INT_VEC2:35667,INT_VEC3:35668,INT_VEC4:35669,BOOL:35670,BOOL_VEC2:35671,BOOL_VEC3:35672,BOOL_VEC4:35673,FLOAT_MAT2:35674,FLOAT_MAT3:35675,FLOAT_MAT4:35676,SAMPLER_2D:35678,SAMPLER_CUBE:35680,VERTEX_ATTRIB_ARRAY_ENABLED:34338,VERTEX_ATTRIB_ARRAY_SIZE:34339,VERTEX_ATTRIB_ARRAY_STRIDE:34340,VERTEX_ATTRIB_ARRAY_TYPE:34341,VERTEX_ATTRIB_ARRAY_NORMALIZED:34922,VERTEX_ATTRIB_ARRAY_POINTER:34373,VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:34975,COMPILE_STATUS:35713,LOW_FLOAT:36336,MEDIUM_FLOAT:36337,HIGH_FLOAT:36338,LOW_INT:36339,MEDIUM_INT:36340,HIGH_INT:36341,FRAMEBUFFER:36160,RENDERBUFFER:36161,RGBA4:32854,RGB5_A1:32855,RGB565:36194,DEPTH_COMPONENT16:33189,STENCIL_INDEX:6401,STENCIL_INDEX8:36168,DEPTH_STENCIL:34041,RENDERBUFFER_WIDTH:36162,RENDERBUFFER_HEIGHT:36163,RENDERBUFFER_INTERNAL_FORMAT:36164,RENDERBUFFER_RED_SIZE:36176,RENDERBUFFER_GREEN_SIZE:36177,RENDERBUFFER_BLUE_SIZE:36178,RENDERBUFFER_ALPHA_SIZE:36179,RENDERBUFFER_DEPTH_SIZE:36180,RENDERBUFFER_STENCIL_SIZE:36181,FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:36048,FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:36049,FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:36050,FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:36051,COLOR_ATTACHMENT0:36064,DEPTH_ATTACHMENT:36096,STENCIL_ATTACHMENT:36128,DEPTH_STENCIL_ATTACHMENT:33306,NONE:0,FRAMEBUFFER_COMPLETE:36053,FRAMEBUFFER_INCOMPLETE_ATTACHMENT:36054,FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:36055,FRAMEBUFFER_INCOMPLETE_DIMENSIONS:36057,FRAMEBUFFER_UNSUPPORTED:36061,FRAMEBUFFER_BINDING:36006,RENDERBUFFER_BINDING:36007,MAX_RENDERBUFFER_SIZE:34024,INVALID_FRAMEBUFFER_OPERATION:1286,UNPACK_FLIP_Y_WEBGL:37440,UNPACK_PREMULTIPLY_ALPHA_WEBGL:37441,CONTEXT_LOST_WEBGL:37442,UNPACK_COLORSPACE_CONVERSION_WEBGL:37443,BROWSER_DEFAULT_WEBGL:37444}},function(Ye,Me){var pe={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},Oe={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},ve=Object.prototype.toString,ue=Array.prototype,fe=ue.forEach,he=ue.filter,le=ue.slice,ae=ue.map,ie=ue.reduce,me={};function E(We,tt){me[We]=tt}function b(We){if(We==null||typeof We!="object")return We;var tt=We,at=ve.call(We);if(at==="[object Array]"){if(!zt(We)){tt=[];for(var ot=0,ct=We.length;ot<ct;ot++)tt[ot]=b(We[ot])}}else if(Oe[at]){if(!zt(We)){var lt=We.constructor;if(We.constructor.from)tt=lt.from(We);else{tt=new lt(We.length);for(var ot=0,ct=We.length;ot<ct;ot++)tt[ot]=b(We[ot])}}}else if(!pe[at]&&!zt(We)&&!nt(We)){tt={};for(var mt in We)We.hasOwnProperty(mt)&&(tt[mt]=b(We[mt]))}return tt}function z(We,tt,at){if(!Ne(tt)||!Ne(We))return at?b(tt):We;for(var ot in tt)if(tt.hasOwnProperty(ot)){var ct=We[ot],lt=tt[ot];Ne(lt)&&Ne(ct)&&!Pe(lt)&&!Pe(ct)&&!nt(lt)&&!nt(ct)&&!Re(lt)&&!Re(ct)&&!zt(lt)&&!zt(ct)?z(ct,lt,at):(at||!(ot in We))&&(We[ot]=b(tt[ot],!0))}return We}function ne(We,tt){for(var at=We[0],ot=1,ct=We.length;ot<ct;ot++)at=z(at,We[ot],tt);return at}function oe(We,tt){for(var at in tt)tt.hasOwnProperty(at)&&(We[at]=tt[at]);return We}function se(We,tt,at){for(var ot in tt)tt.hasOwnProperty(ot)&&(at?tt[ot]!=null:We[ot]==null)&&(We[ot]=tt[ot]);return We}var de=function(){return me.createCanvas()};me.createCanvas=function(){return document.createElement("canvas")};var a;function x(){return a||(a=de().getContext("2d")),a}function re(We,tt){if(We){if(We.indexOf)return We.indexOf(tt);for(var at=0,ot=We.length;at<ot;at++)if(We[at]===tt)return at}return-1}function ce(We,tt){var at=We.prototype;function ot(){}ot.prototype=tt.prototype,We.prototype=new ot;for(var ct in at)We.prototype[ct]=at[ct];We.prototype.constructor=We,We.superClass=tt}function ge(We,tt,at){We="prototype"in We?We.prototype:We,tt="prototype"in tt?tt.prototype:tt,se(We,tt,at)}function _e(We){if(We)return typeof We=="string"?!1:typeof We.length=="number"}function ye(We,tt,at){if(We&&tt)if(We.forEach&&We.forEach===fe)We.forEach(tt,at);else if(We.length===+We.length)for(var ot=0,ct=We.length;ot<ct;ot++)tt.call(at,We[ot],ot,We);else for(var lt in We)We.hasOwnProperty(lt)&&tt.call(at,We[lt],lt,We)}function be(We,tt,at){if(We&&tt){if(We.map&&We.map===ae)return We.map(tt,at);for(var ot=[],ct=0,lt=We.length;ct<lt;ct++)ot.push(tt.call(at,We[ct],ct,We));return ot}}function Se(We,tt,at,ot){if(We&&tt){if(We.reduce&&We.reduce===ie)return We.reduce(tt,at,ot);for(var ct=0,lt=We.length;ct<lt;ct++)at=tt.call(ot,at,We[ct],ct,We);return at}}function Be(We,tt,at){if(We&&tt){if(We.filter&&We.filter===he)return We.filter(tt,at);for(var ot=[],ct=0,lt=We.length;ct<lt;ct++)tt.call(at,We[ct],ct,We)&&ot.push(We[ct]);return ot}}function Ae(We,tt,at){if(We&&tt){for(var ot=0,ct=We.length;ot<ct;ot++)if(tt.call(at,We[ot],ot,We))return We[ot]}}function we(We,tt){var at=le.call(arguments,2);return function(){return We.apply(tt,at.concat(le.call(arguments)))}}function Ue(We){var tt=le.call(arguments,1);return function(){return We.apply(this,tt.concat(le.call(arguments)))}}function Pe(We){return ve.call(We)==="[object Array]"}function ze(We){return typeof We=="function"}function Ke(We){return ve.call(We)==="[object String]"}function Ne(We){var tt=typeof We;return tt==="function"||!!We&&tt=="object"}function Re(We){return!!pe[ve.call(We)]}function $e(We){return!!Oe[ve.call(We)]}function nt(We){return typeof We=="object"&&typeof We.nodeType=="number"&&typeof We.ownerDocument=="object"}function ut(We){return We!==We}function Qe(We){for(var tt=0,at=arguments.length;tt<at;tt++)if(arguments[tt]!=null)return arguments[tt]}function rt(We,tt){return We!=null?We:tt}function pt(We,tt,at){return We!=null?We:tt!=null?tt:at}function At(){return Function.call.apply(le,arguments)}function gt(We){if(typeof We=="number")return[We,We,We,We];var tt=We.length;return tt===2?[We[0],We[1],We[0],We[1]]:tt===3?[We[0],We[1],We[2],We[1]]:We}function Ft(We,tt){if(!We)throw new Error(tt)}var Ct="__ec_primitive__";function Yt(We){We[Ct]=!0}function zt(We){return We[Ct]}function Xe(We){var tt=Pe(We);We&&ye(We,function(at,ot){tt?this.set(at,1):this.set(ot,at)},this)}var Fe="_ec_",Le=4;Xe.prototype={constructor:Xe,get:function(We){return this[Fe+We]},set:function(We,tt){return this[Fe+We]=tt,tt},each:function(We,tt){tt!==void 0&&(We=we(We,tt));for(var at in this)this.hasOwnProperty(at)&&We(this[at],at.slice(Le))},removeKey:function(We){delete this[Fe+We]}};function Ze(We){return new Xe(We)}function et(We,tt){for(var at=new We.constructor(We.length+tt.length),ot=0;ot<We.length;ot++)at[ot]=We[ot];var ct=We.length;for(ot=0;ot<tt.length;ot++)at[ot+ct]=tt[ot];return at}function He(){}Me.$override=E,Me.clone=b,Me.merge=z,Me.mergeAll=ne,Me.extend=oe,Me.defaults=se,Me.createCanvas=de,Me.getContext=x,Me.indexOf=re,Me.inherits=ce,Me.mixin=ge,Me.isArrayLike=_e,Me.each=ye,Me.map=be,Me.reduce=Se,Me.filter=Be,Me.find=Ae,Me.bind=we,Me.curry=Ue,Me.isArray=Pe,Me.isFunction=ze,Me.isString=Ke,Me.isObject=Ne,Me.isBuiltInObject=Re,Me.isTypedArray=$e,Me.isDom=nt,Me.eqNaN=ut,Me.retrieve=Qe,Me.retrieve2=rt,Me.retrieve3=pt,Me.slice=At,Me.normalizeCssArray=gt,Me.assert=Ft,Me.setAsPrimitive=Yt,Me.isPrimitive=zt,Me.createHashMap=Ze,Me.concatArray=et,Me.noop=He},function(Ye,Me,pe){"use strict";var Oe=pe(8),ve=pe(11),ue=pe(48),fe=pe(18),he=pe(1),le=pe.n(he),ae=pe(15),ie=le.a.vec3,me=le.a.mat4,E=ie.create,b=ie.add,z=ie.set;function ne(re){return{byte:fe.a.Int8Array,ubyte:fe.a.Uint8Array,short:fe.a.Int16Array,ushort:fe.a.Uint16Array}[re]||fe.a.Float32Array}function oe(re){return"attr_"+re}function se(re,ce,ge,_e){switch(this.name=re,this.type=ce,this.size=ge,this.semantic=_e||"",this.value=null,ge){case 1:this.get=function(ye){return this.value[ye]},this.set=function(ye,be){this.value[ye]=be},this.copy=function(ye,be){this.value[ye]=this.value[ye]};break;case 2:this.get=function(ye,be){var Se=this.value;return be[0]=Se[ye*2],be[1]=Se[ye*2+1],be},this.set=function(ye,be){var Se=this.value;Se[ye*2]=be[0],Se[ye*2+1]=be[1]},this.copy=function(ye,be){var Se=this.value;be*=2,ye*=2,Se[ye]=Se[be],Se[ye+1]=Se[be+1]};break;case 3:this.get=function(ye,be){var Se=ye*3,Be=this.value;return be[0]=Be[Se],be[1]=Be[Se+1],be[2]=Be[Se+2],be},this.set=function(ye,be){var Se=ye*3,Be=this.value;Be[Se]=be[0],Be[Se+1]=be[1],Be[Se+2]=be[2]},this.copy=function(ye,be){var Se=this.value;be*=3,ye*=3,Se[ye]=Se[be],Se[ye+1]=Se[be+1],Se[ye+2]=Se[be+2]};break;case 4:this.get=function(ye,be){var Se=this.value,Be=ye*4;return be[0]=Se[Be],be[1]=Se[Be+1],be[2]=Se[Be+2],be[3]=Se[Be+3],be},this.set=function(ye,be){var Se=this.value,Be=ye*4;Se[Be]=be[0],Se[Be+1]=be[1],Se[Be+2]=be[2],Se[Be+3]=be[3]},this.copy=function(ye,be){var Se=this.value;be*=4,ye*=4,Se[ye]=Se[be],Se[ye+1]=Se[be+1],Se[ye+2]=Se[be+2],Se[ye+3]=Se[be+3]}}}se.prototype.init=function(re){if(!this.value||this.value.length!=re*this.size){var ce=ne(this.type);this.value=new ce(re*this.size)}},se.prototype.fromArray=function(re){var ce=ne(this.type),ge;if(re[0]&&re[0].length){var _e=0,ye=this.size;ge=new ce(re.length*ye);for(var be=0;be<re.length;be++)for(var Se=0;Se<ye;Se++)ge[_e++]=re[be][Se]}else ge=new ce(re);this.value=ge},se.prototype.clone=function(re){var ce=new se(this.name,this.type,this.size,this.semantic);return re&&console.warn("todo"),ce};function de(re,ce,ge,_e,ye){this.name=re,this.type=ce,this.buffer=ge,this.size=_e,this.semantic=ye,this.symbol="",this.needsRemove=!1}function a(re){this.buffer=re,this.count=0}var x=Oe.a.extend(function(){return{attributes:{position:new se("position","float",3,"POSITION"),texcoord0:new se("texcoord0","float",2,"TEXCOORD_0"),texcoord1:new se("texcoord1","float",2,"TEXCOORD_1"),normal:new se("normal","float",3,"NORMAL"),tangent:new se("tangent","float",4,"TANGENT"),color:new se("color","float",4,"COLOR"),weight:new se("weight","float",3,"WEIGHT"),joint:new se("joint","float",4,"JOINT"),barycentric:new se("barycentric","float",3,null)},boundingBox:null,indices:null,dynamic:!0,_enabledAttributes:null}},function(){this._cache=new ue.a,this._attributeList=Object.keys(this.attributes)},{mainAttribute:"position",pick:null,pickByRay:null,updateBoundingBox:function(){var re=this.boundingBox;re||(re=this.boundingBox=new ae.a);var ce=this.attributes.position.value;if(ce&&ce.length){var ge=re.min,_e=re.max,ye=ge.array,be=_e.array;ie.set(ye,ce[0],ce[1],ce[2]),ie.set(be,ce[0],ce[1],ce[2]);for(var Se=3;Se<ce.length;){var Be=ce[Se++],Ae=ce[Se++],we=ce[Se++];Be<ye[0]&&(ye[0]=Be),Ae<ye[1]&&(ye[1]=Ae),we<ye[2]&&(ye[2]=we),Be>be[0]&&(be[0]=Be),Ae>be[1]&&(be[1]=Ae),we>be[2]&&(be[2]=we)}ge._dirty=!0,_e._dirty=!0}},dirty:function(){for(var re=this.getEnabledAttributes(),ce=0;ce<re.length;ce++)this.dirtyAttribute(re[ce]);this.dirtyIndices(),this._enabledAttributes=null,this._cache.dirty("any")},dirtyIndices:function(){this._cache.dirtyAll("indices")},dirtyAttribute:function(re){this._cache.dirtyAll(oe(re)),this._cache.dirtyAll("attributes")},getTriangleIndices:function(re,ce){if(re<this.triangleCount&&re>=0){ce||(ce=E());var ge=this.indices;return ce[0]=ge[re*3],ce[1]=ge[re*3+1],ce[2]=ge[re*3+2],ce}},setTriangleIndices:function(re,ce){var ge=this.indices;ge[re*3]=ce[0],ge[re*3+1]=ce[1],ge[re*3+2]=ce[2]},isUseIndices:function(){return!!this.indices},initIndicesFromArray:function(re){var ce,ge=this.vertexCount>65535?fe.a.Uint32Array:fe.a.Uint16Array;if(re[0]&&re[0].length){var _e=0,ye=3;ce=new ge(re.length*ye);for(var be=0;be<re.length;be++)for(var Se=0;Se<ye;Se++)ce[_e++]=re[be][Se]}else ce=new ge(re);this.indices=ce},createAttribute:function(re,ce,ge,_e){var ye=new se(re,ce,ge,_e);return this.attributes[re]&&this.removeAttribute(re),this.attributes[re]=ye,this._attributeList.push(re),ye},removeAttribute:function(re){var ce=this._attributeList,ge=ce.indexOf(re);return ge>=0?(ce.splice(ge,1),delete this.attributes[re],!0):!1},getAttribute:function(re){return this.attributes[re]},getEnabledAttributes:function(){var re=this._enabledAttributes,ce=this._attributeList;if(re)return re;for(var ge=[],_e=this.vertexCount,ye=0;ye<ce.length;ye++){var be=ce[ye],Se=this.attributes[be];Se.value&&Se.value.length===_e*Se.size&&ge.push(be)}return this._enabledAttributes=ge,ge},getBufferChunks:function(re){var ce=this._cache;ce.use(re.__uid__);var ge=ce.isDirty("attributes"),_e=ce.isDirty("indices");if(ge||_e){this._updateBuffer(re.gl,ge,_e);for(var ye=this.getEnabledAttributes(),be=0;be<ye.length;be++)ce.fresh(oe(ye[be]));ce.fresh("attributes"),ce.fresh("indices")}return ce.fresh("any"),ce.get("chunks")},_updateBuffer:function(re,ce,ge){var _e=this._cache,ye=_e.get("chunks"),be=!1;ye||(ye=[],ye[0]={attributeBuffers:[],indicesBuffer:null},_e.put("chunks",ye),be=!0);var Se=ye[0],Be=Se.attributeBuffers,Ae=Se.indicesBuffer;if(ce||be){var we=this.getEnabledAttributes(),Ue={};if(!be)for(var Pe=0;Pe<Be.length;Pe++)Ue[Be[Pe].name]=Be[Pe];for(var ze=0;ze<we.length;ze++){var Ke=we[ze],Ne=this.attributes[Ke],Re;be||(Re=Ue[Ke]);var $e;Re?$e=Re.buffer:$e=re.createBuffer(),_e.isDirty(oe(Ke))&&(re.bindBuffer(re.ARRAY_BUFFER,$e),re.bufferData(re.ARRAY_BUFFER,Ne.value,this.dynamic?ve.a.DYNAMIC_DRAW:ve.a.STATIC_DRAW)),Be[ze]=new de(Ke,Ne.type,$e,Ne.size,Ne.semantic)}for(var Pe=ze;Pe<Be.length;Pe++)re.deleteBuffer(Be[Pe].buffer);Be.length=ze}this.isUseIndices()&&(ge||be)&&(Ae||(Ae=new a(re.createBuffer()),Se.indicesBuffer=Ae),Ae.count=this.indices.length,re.bindBuffer(re.ELEMENT_ARRAY_BUFFER,Ae.buffer),re.bufferData(re.ELEMENT_ARRAY_BUFFER,this.indices,this.dynamic?ve.a.DYNAMIC_DRAW:ve.a.STATIC_DRAW))},generateVertexNormals:function(){if(this.vertexCount){var re=this.indices,ce=this.attributes,ge=ce.position.value,_e=ce.normal.value;if(!_e||_e.length!==ge.length)_e=ce.normal.value=new fe.a.Float32Array(ge.length);else for(var ye=0;ye<_e.length;ye++)_e[ye]=0;for(var be=E(),Se=E(),Be=E(),Ae=E(),we=E(),Ue=E(),Pe=re?re.length:this.vertexCount,ze,Ke,Ne,Re=0;Re<Pe;){re?(ze=re[Re++],Ke=re[Re++],Ne=re[Re++]):(ze=Re++,Ke=Re++,Ne=Re++),z(be,ge[ze*3],ge[ze*3+1],ge[ze*3+2]),z(Se,ge[Ke*3],ge[Ke*3+1],ge[Ke*3+2]),z(Be,ge[Ne*3],ge[Ne*3+1],ge[Ne*3+2]),ie.sub(Ae,be,Se),ie.sub(we,Se,Be),ie.cross(Ue,Ae,we);for(var ye=0;ye<3;ye++)_e[ze*3+ye]=_e[ze*3+ye]+Ue[ye],_e[Ke*3+ye]=_e[Ke*3+ye]+Ue[ye],_e[Ne*3+ye]=_e[Ne*3+ye]+Ue[ye]}for(var ye=0;ye<_e.length;)z(Ue,_e[ye],_e[ye+1],_e[ye+2]),ie.normalize(Ue,Ue),_e[ye++]=Ue[0],_e[ye++]=Ue[1],_e[ye++]=Ue[2];this.dirty()}},generateFaceNormals:function(){if(this.vertexCount){this.isUniqueVertex()||this.generateUniqueVertex();var re=this.indices,ce=this.attributes,ge=ce.position.value,_e=ce.normal.value,ye=E(),be=E(),Se=E(),Be=E(),Ae=E(),we=E();_e||(_e=ce.normal.value=new Float32Array(ge.length));for(var Ue=re?re.length:this.vertexCount,Pe,ze,Ke,Ne=0;Ne<Ue;){re?(Pe=re[Ne++],ze=re[Ne++],Ke=re[Ne++]):(Pe=Ne++,ze=Ne++,Ke=Ne++),z(ye,ge[Pe*3],ge[Pe*3+1],ge[Pe*3+2]),z(be,ge[ze*3],ge[ze*3+1],ge[ze*3+2]),z(Se,ge[Ke*3],ge[Ke*3+1],ge[Ke*3+2]),ie.sub(Be,ye,be),ie.sub(Ae,be,Se),ie.cross(we,Be,Ae),ie.normalize(we,we);for(var Re=0;Re<3;Re++)_e[Pe*3+Re]=we[Re],_e[ze*3+Re]=we[Re],_e[Ke*3+Re]=we[Re]}this.dirty()}},generateTangents:function(){if(this.vertexCount){var re=this.vertexCount,ce=this.attributes;ce.tangent.value||(ce.tangent.value=new Float32Array(re*4));var ge=ce.texcoord0.value,_e=ce.position.value,ye=ce.tangent.value,be=ce.normal.value;if(!ge){console.warn("Geometry without texcoords can't generate tangents.");return}for(var Se=[],Be=[],Ae=0;Ae<re;Ae++)Se[Ae]=[0,0,0],Be[Ae]=[0,0,0];for(var we=[0,0,0],Ue=[0,0,0],Pe=this.indices,ze=Pe?Pe.length:this.vertexCount,Ke,Ne,Re,Ae=0;Ae<ze;){Pe?(Ke=Pe[Ae++],Ne=Pe[Ae++],Re=Pe[Ae++]):(Ke=Ae++,Ne=Ae++,Re=Ae++);var $e=ge[Ke*2],nt=ge[Ne*2],ut=ge[Re*2],Qe=ge[Ke*2+1],rt=ge[Ne*2+1],pt=ge[Re*2+1],At=_e[Ke*3],gt=_e[Ne*3],Ft=_e[Re*3],Ct=_e[Ke*3+1],Yt=_e[Ne*3+1],zt=_e[Re*3+1],Xe=_e[Ke*3+2],Fe=_e[Ne*3+2],Le=_e[Re*3+2],Ze=gt-At,et=Ft-At,He=Yt-Ct,We=zt-Ct,tt=Fe-Xe,at=Le-Xe,ot=nt-$e,ct=ut-$e,lt=rt-Qe,mt=pt-Qe,Lt=1/(ot*mt-lt*ct);we[0]=(mt*Ze-lt*et)*Lt,we[1]=(mt*He-lt*We)*Lt,we[2]=(mt*tt-lt*at)*Lt,Ue[0]=(ot*et-ct*Ze)*Lt,Ue[1]=(ot*We-ct*He)*Lt,Ue[2]=(ot*at-ct*tt)*Lt,b(Se[Ke],Se[Ke],we),b(Se[Ne],Se[Ne],we),b(Se[Re],Se[Re],we),b(Be[Ke],Be[Ke],Ue),b(Be[Ne],Be[Ne],Ue),b(Be[Re],Be[Re],Ue)}for(var ft=E(),St=E(),nn=E(),Ae=0;Ae<re;Ae++){nn[0]=be[Ae*3],nn[1]=be[Ae*3+1],nn[2]=be[Ae*3+2];var on=Se[Ae];ie.scale(ft,nn,ie.dot(nn,on)),ie.sub(ft,on,ft),ie.normalize(ft,ft),ie.cross(St,nn,on),ye[Ae*4]=ft[0],ye[Ae*4+1]=ft[1],ye[Ae*4+2]=ft[2],ye[Ae*4+3]=ie.dot(St,Be[Ae])<0?-1:1}this.dirty()}},isUniqueVertex:function(){return this.isUseIndices()?this.vertexCount===this.indices.length:!0},generateUniqueVertex:function(){if(!(!this.vertexCount||!this.indices)){this.indices.length>65535&&(this.indices=new fe.a.Uint32Array(this.indices));for(var re=this.attributes,ce=this.indices,ge=this.getEnabledAttributes(),_e={},ye=0;ye<ge.length;ye++){var be=ge[ye];_e[be]=re[be].value,re[be].init(this.indices.length)}for(var Se=0,Be=0;Be<ce.length;Be++){for(var Ae=ce[Be],ye=0;ye<ge.length;ye++)for(var be=ge[ye],we=re[be].value,Ue=re[be].size,Pe=0;Pe<Ue;Pe++)we[Se*Ue+Pe]=_e[be][Ae*Ue+Pe];ce[Be]=Se,Se++}this.dirty()}},generateBarycentric:function(){if(this.vertexCount){this.isUniqueVertex()||this.generateUniqueVertex();var re=this.attributes,ce=re.barycentric.value,ge=this.indices;if(!(ce&&ce.length===ge.length*3)){ce=re.barycentric.value=new Float32Array(ge.length*3);for(var _e=0;_e<(ge?ge.length:this.vertexCount/3);)for(var ye=0;ye<3;ye++){var be=ge?ge[_e++]:_e*3+ye;ce[be*3+ye]=1}this.dirty()}}},applyTransform:function(re){var ce=this.attributes,ge=ce.position.value,_e=ce.normal.value,ye=ce.tangent.value;re=re.array;var be=me.create();me.invert(be,re),me.transpose(be,be);var Se=ie.transformMat4,Be=ie.forEach;Be(ge,3,0,null,Se,re),_e&&Be(_e,3,0,null,Se,be),ye&&Be(ye,4,0,null,Se,be),this.boundingBox&&this.updateBoundingBox()},dispose:function(re){var ce=this._cache;ce.use(re.__uid__);var ge=ce.get("chunks");if(ge)for(var _e=0;_e<ge.length;_e++){for(var ye=ge[_e],be=0;be<ye.attributeBuffers.length;be++){var Se=ye.attributeBuffers[be];re.gl.deleteBuffer(Se.buffer)}ye.indicesBuffer&&re.gl.deleteBuffer(ye.indicesBuffer.buffer)}ce.deleteContext(re.__uid__)}});Object.defineProperty&&(Object.defineProperty(x.prototype,"vertexCount",{enumerable:!1,get:function(){var re=this.attributes[this.mainAttribute];return!re||!re.value?0:re.value.length/re.size}}),Object.defineProperty(x.prototype,"triangleCount",{enumerable:!1,get:function(){var re=this.indices;return re?re.length/3:0}})),x.STATIC_DRAW=ve.a.STATIC_DRAW,x.DYNAMIC_DRAW=ve.a.DYNAMIC_DRAW,x.STREAM_DRAW=ve.a.STREAM_DRAW,x.AttributeBuffer=de,x.IndicesBuffer=a,x.Attribute=se,Me.a=x},function(Ye,Me,pe){"use strict";var Oe=pe(8),ve=pe(30),ue=pe(37),fe=pe(7),he=pe(17),le=pe(24),ae=pe(11),ie=pe(109);fe.a.import(ie.a);var me=new ue.a,E=new le.a({geometry:me,frustumCulling:!1}),b=new ve.a,z=Oe.a.extend(function(){return{fragment:"",outputs:null,material:null,blendWithPrevious:!1,clearColor:!1,clearDepth:!0}},function(){var ne=new fe.a(fe.a.source("clay.compositor.vertex"),this.fragment),oe=new he.a({shader:ne});oe.enableTexturesAll(),this.material=oe},{setUniform:function(ne,oe){this.material.setUniform(ne,oe)},getUniform:function(ne){var oe=this.material.uniforms[ne];if(oe)return oe.value},attachOutput:function(ne,oe){this.outputs||(this.outputs={}),oe=oe||ae.a.COLOR_ATTACHMENT0,this.outputs[oe]=ne},detachOutput:function(ne){for(var oe in this.outputs)this.outputs[oe]===ne&&(this.outputs[oe]=null)},bind:function(ne,oe){if(this.outputs)for(var se in this.outputs){var de=this.outputs[se];de&&oe.attach(de,se)}oe&&oe.bind(ne)},unbind:function(ne,oe){oe.unbind(ne)},render:function(ne,oe){var se=ne.gl;if(oe){this.bind(ne,oe);var de=ne.getGLExtension("EXT_draw_buffers");if(de&&this.outputs){var a=[];for(var x in this.outputs)x=+x,x>=se.COLOR_ATTACHMENT0&&x<=se.COLOR_ATTACHMENT0+8&&a.push(x);de.drawBuffersEXT(a)}}this.trigger("beforerender",this,ne);var re=this.clearDepth?se.DEPTH_BUFFER_BIT:0;if(se.depthMask(!0),this.clearColor){re=re|se.COLOR_BUFFER_BIT,se.colorMask(!0,!0,!0,!0);var ce=this.clearColor;Array.isArray(ce)&&se.clearColor(ce[0],ce[1],ce[2],ce[3])}se.clear(re),this.blendWithPrevious?(se.enable(se.BLEND),this.material.transparent=!0):(se.disable(se.BLEND),this.material.transparent=!1),this.renderQuad(ne),this.trigger("afterrender",this,ne),oe&&this.unbind(ne,oe)},renderQuad:function(ne){E.material=this.material,ne.renderPass([E],b)},dispose:function(ne){}});Me.a=z},function(Ye,Me,pe){"use strict";var Oe=pe(4),ve=pe(1),ue=pe.n(ve),fe=ue.a.vec3,he=fe.copy,le=fe.set,ae=function(ie,me){this.min=ie||new Oe.a(1/0,1/0,1/0),this.max=me||new Oe.a(-1/0,-1/0,-1/0)};ae.prototype={constructor:ae,updateFromVertices:function(ie){if(ie.length>0){var me=this.min,E=this.max,b=me.array,z=E.array;he(b,ie[0]),he(z,ie[0]);for(var ne=1;ne<ie.length;ne++){var oe=ie[ne];oe[0]<b[0]&&(b[0]=oe[0]),oe[1]<b[1]&&(b[1]=oe[1]),oe[2]<b[2]&&(b[2]=oe[2]),oe[0]>z[0]&&(z[0]=oe[0]),oe[1]>z[1]&&(z[1]=oe[1]),oe[2]>z[2]&&(z[2]=oe[2])}me._dirty=!0,E._dirty=!0}},union:function(ie){var me=this.min,E=this.max;return fe.min(me.array,me.array,ie.min.array),fe.max(E.array,E.array,ie.max.array),me._dirty=!0,E._dirty=!0,this},intersection:function(ie){var me=this.min,E=this.max;return fe.max(me.array,me.array,ie.min.array),fe.min(E.array,E.array,ie.max.array),me._dirty=!0,E._dirty=!0,this},intersectBoundingBox:function(ie){var me=this.min.array,E=this.max.array,b=ie.min.array,z=ie.max.array;return!(me[0]>z[0]||me[1]>z[1]||me[2]>z[2]||E[0]<b[0]||E[1]<b[1]||E[2]<b[2])},containBoundingBox:function(ie){var me=this.min.array,E=this.max.array,b=ie.min.array,z=ie.max.array;return me[0]<=b[0]&&me[1]<=b[1]&&me[2]<=b[2]&&E[0]>=z[0]&&E[1]>=z[1]&&E[2]>=z[2]},containPoint:function(ie){var me=this.min.array,E=this.max.array,b=ie.array;return me[0]<=b[0]&&me[1]<=b[1]&&me[2]<=b[2]&&E[0]>=b[0]&&E[1]>=b[1]&&E[2]>=b[2]},isFinite:function(){var ie=this.min.array,me=this.max.array;return isFinite(ie[0])&&isFinite(ie[1])&&isFinite(ie[2])&&isFinite(me[0])&&isFinite(me[1])&&isFinite(me[2])},applyTransform:function(){var ie=fe.create(),me=fe.create(),E=fe.create(),b=fe.create(),z=fe.create(),ne=fe.create();return function(oe){var se=this.min.array,de=this.max.array,a=oe.array;return ie[0]=a[0]*se[0],ie[1]=a[1]*se[0],ie[2]=a[2]*se[0],me[0]=a[0]*de[0],me[1]=a[1]*de[0],me[2]=a[2]*de[0],E[0]=a[4]*se[1],E[1]=a[5]*se[1],E[2]=a[6]*se[1],b[0]=a[4]*de[1],b[1]=a[5]*de[1],b[2]=a[6]*de[1],z[0]=a[8]*se[2],z[1]=a[9]*se[2],z[2]=a[10]*se[2],ne[0]=a[8]*de[2],ne[1]=a[9]*de[2],ne[2]=a[10]*de[2],se[0]=Math.min(ie[0],me[0])+Math.min(E[0],b[0])+Math.min(z[0],ne[0])+a[12],se[1]=Math.min(ie[1],me[1])+Math.min(E[1],b[1])+Math.min(z[1],ne[1])+a[13],se[2]=Math.min(ie[2],me[2])+Math.min(E[2],b[2])+Math.min(z[2],ne[2])+a[14],de[0]=Math.max(ie[0],me[0])+Math.max(E[0],b[0])+Math.max(z[0],ne[0])+a[12],de[1]=Math.max(ie[1],me[1])+Math.max(E[1],b[1])+Math.max(z[1],ne[1])+a[13],de[2]=Math.max(ie[2],me[2])+Math.max(E[2],b[2])+Math.max(z[2],ne[2])+a[14],this.min._dirty=!0,this.max._dirty=!0,this}}(),applyProjection:function(ie){var me=this.min.array,E=this.max.array,b=ie.array,z=me[0],ne=me[1],oe=me[2],se=E[0],de=E[1],a=me[2],x=E[0],re=E[1],ce=E[2];if(b[15]===1)me[0]=b[0]*z+b[12],me[1]=b[5]*ne+b[13],E[2]=b[10]*oe+b[14],E[0]=b[0]*x+b[12],E[1]=b[5]*re+b[13],me[2]=b[10]*ce+b[14];else{var ge=-1/oe;me[0]=b[0]*z*ge,me[1]=b[5]*ne*ge,E[2]=(b[10]*oe+b[14])*ge,ge=-1/a,E[0]=b[0]*se*ge,E[1]=b[5]*de*ge,ge=-1/ce,me[2]=(b[10]*ce+b[14])*ge}return this.min._dirty=!0,this.max._dirty=!0,this},updateVertices:function(){var ie=this.vertices;if(!ie){for(var ie=[],me=0;me<8;me++)ie[me]=fe.fromValues(0,0,0);this.vertices=ie}var E=this.min.array,b=this.max.array;return le(ie[0],E[0],E[1],E[2]),le(ie[1],E[0],b[1],E[2]),le(ie[2],b[0],E[1],E[2]),le(ie[3],b[0],b[1],E[2]),le(ie[4],E[0],E[1],b[2]),le(ie[5],E[0],b[1],b[2]),le(ie[6],b[0],E[1],b[2]),le(ie[7],b[0],b[1],b[2]),this},copy:function(ie){var me=this.min,E=this.max;return he(me.array,ie.min.array),he(E.array,ie.max.array),me._dirty=!0,E._dirty=!0,this},clone:function(){var ie=new ae;return ie.copy(this),ie}},Me.a=ae},function(Ye,Me,pe){"use strict";Me.a=function(Oe,ve,ue){return{seriesType:Oe,reset:function(fe,he){var le=fe.getData(),ae=fe.visualColorAccessPath.split(".");ae[ae.length-1]="opacity";var ie=fe.get(ae);le.setVisual("opacity",ie==null?1:ie);function me(E){var b=le.getItemModel(E),z=b.get(ae);z!=null&&le.setItemVisual(E,"opacity",z)}return{dataEach:le.hasItemOption?me:null}}}}},function(Ye,Me,pe){"use strict";var Oe=pe(8),ve=pe(6),ue=pe(21),fe=pe(93),he=fe.a.parseToFloat,le={};function ae(E,b,z){var ne=Object.keys(E);ne.sort();for(var oe=[],se=0;se<ne.length;se++){var de=ne[se],a=E[de];a===null?oe.push(de):oe.push(de+" "+a.toString())}return oe.join(`
|
|
|
`)}function ie(E,b,z){z.sort();for(var ne=[],oe=0;oe<z.length;oe++){var se=z[oe];ne.push(se)}var de=ae(E)+`
|
|
|
`+ae(b)+`
|
|
|
`+ne.join(`
|
|
|
`);if(le[de])return le[de];var a=ue.a.genGUID();return le[de]=a,a}var me=Oe.a.extend(function(){return{name:"",depthTest:!0,depthMask:!0,transparent:!1,blend:null,autoUpdateTextureStatus:!0,uniforms:{},vertexDefines:{},fragmentDefines:{},_textureStatus:{},_enabledUniforms:null}},function(){this.name||(this.name="MATERIAL_"+this.__uid__),this.shader&&this.attachShader(this.shader,!0)},{precision:"highp",bind:function(E,b,z,ne){for(var oe=E.gl,se=b.currentTextureSlot(),de=0;de<this._enabledUniforms.length;de++){var a=this._enabledUniforms[de],x=this.uniforms[a].value;if(x instanceof ve.a)x.__slot=-1;else if(Array.isArray(x))for(var re=0;re<x.length;re++)x[re]instanceof ve.a&&(x[re].__slot=-1)}for(var de=0;de<this._enabledUniforms.length;de++){var a=this._enabledUniforms[de],ce=this.uniforms[a],x=ce.value;if(x===null){if(ce.type==="t"){var ge=b.currentTextureSlot(),_e=b.setUniform(oe,"1i",a,ge);_e&&b.takeCurrentTextureSlot(E,null)}continue}else if(x instanceof ve.a)if(x.__slot<0){var ge=b.currentTextureSlot(),_e=b.setUniform(oe,"1i",a,ge);if(!_e)continue;b.takeCurrentTextureSlot(E,x),x.__slot=ge}else b.setUniform(oe,"1i",a,x.__slot);else if(Array.isArray(x)){if(x.length===0)continue;var ye=x[0];if(ye instanceof ve.a){if(!b.hasUniform(a))continue;for(var be=[],re=0;re<x.length;re++){var Se=x[re];if(Se.__slot<0){var ge=b.currentTextureSlot();be.push(ge),b.takeCurrentTextureSlot(E,Se),Se.__slot=ge}else be.push(Se.__slot)}b.setUniform(oe,"1iv",a,be)}else b.setUniform(oe,ce.type,a,x)}else b.setUniform(oe,ce.type,a,x)}b.resetTextureSlot(se)},setUniform:function(E,b){b===void 0&&console.warn('Uniform value "'+E+'" is undefined');var z=this.uniforms[E];z&&(typeof b=="string"&&(b=he(b)||b),z.value=b,this.autoUpdateTextureStatus&&z.type==="t"&&(b?this.enableTexture(E):this.disableTexture(E)))},setUniforms:function(E){for(var b in E){var z=E[b];this.setUniform(b,z)}},isUniformEnabled:function(E){return this._enabledUniforms.indexOf(E)>=0},getEnabledUniforms:function(){return this._enabledUniforms},getTextureUniforms:function(){return this._textureUniforms},set:function(E,b){if(typeof E=="object")for(var z in E){var ne=E[z];this.setUniform(z,ne)}else this.setUniform(E,b)},get:function(E){var b=this.uniforms[E];if(b)return b.value},attachShader:function(E,b){var z=this.uniforms;this.uniforms=E.createUniforms(),this.shader=E;var ne=this.uniforms;this._enabledUniforms=Object.keys(ne),this._enabledUniforms.sort(),this._textureUniforms=this._enabledUniforms.filter(function(re){var ce=this.uniforms[re].type;return ce==="t"||ce==="tv"},this);var oe=this.vertexDefines,se=this.fragmentDefines;if(this.vertexDefines=ue.a.clone(E.vertexDefines),this.fragmentDefines=ue.a.clone(E.fragmentDefines),b){for(var de in z)ne[de]&&(ne[de].value=z[de].value);ue.a.defaults(this.vertexDefines,oe),ue.a.defaults(this.fragmentDefines,se)}var a={};for(var x in E.textures)a[x]={shaderType:E.textures[x].shaderType,type:E.textures[x].type,enabled:b&&this._textureStatus[x]?this._textureStatus[x].enabled:!1};this._textureStatus=a,this._programKey=""},clone:function(){var E=new this.constructor({name:this.name,shader:this.shader});for(var b in this.uniforms)E.uniforms[b].value=this.uniforms[b].value;return E.depthTest=this.depthTest,E.depthMask=this.depthMask,E.transparent=this.transparent,E.blend=this.blend,E.vertexDefines=ue.a.clone(this.vertexDefines),E.fragmentDefines=ue.a.clone(this.fragmentDefines),E.enableTexture(this.getEnabledTextures()),E.precision=this.precision,E},define:function(E,b,z){var ne=this.vertexDefines,oe=this.fragmentDefines;E!=="vertex"&&E!=="fragment"&&E!=="both"&&arguments.length<3&&(z=b,b=E,E="both"),z=z!=null?z:null,(E==="vertex"||E==="both")&&ne[b]!==z&&(ne[b]=z,this._programKey=""),(E==="fragment"||E==="both")&&oe[b]!==z&&(oe[b]=z,E!=="both"&&(this._programKey=""))},undefine:function(E,b){E!=="vertex"&&E!=="fragment"&&E!=="both"&&arguments.length<2&&(b=E,E="both"),(E==="vertex"||E==="both")&&this.isDefined("vertex",b)&&(delete this.vertexDefines[b],this._programKey=""),(E==="fragment"||E==="both")&&this.isDefined("fragment",b)&&(delete this.fragmentDefines[b],E!=="both"&&(this._programKey=""))},isDefined:function(E,b){switch(E){case"vertex":return this.vertexDefines[b]!==void 0;case"fragment":return this.fragmentDefines[b]!==void 0}},getDefine:function(E,b){switch(E){case"vertex":return this.vertexDefines[b];case"fragment":return this.fragmentDefines[b]}},enableTexture:function(E){if(Array.isArray(E)){for(var b=0;b<E.length;b++)this.enableTexture(E[b]);return}var z=this._textureStatus[E];if(z){var ne=z.enabled;ne||(z.enabled=!0,this._programKey="")}},enableTexturesAll:function(){var E=this._textureStatus;for(var b in E)E[b].enabled=!0;this._programKey=""},disableTexture:function(E){if(Array.isArray(E)){for(var b=0;b<E.length;b++)this.disableTexture(E[b]);return}var z=this._textureStatus[E];if(z){var ne=!z.enabled;ne||(z.enabled=!1,this._programKey="")}},disableTexturesAll:function(){var E=this._textureStatus;for(var b in E)E[b].enabled=!1;this._programKey=""},isTextureEnabled:function(E){var b=this._textureStatus;return!!b[E]&&b[E].enabled},getEnabledTextures:function(){var E=[],b=this._textureStatus;for(var z in b)b[z].enabled&&E.push(z);return E},dirtyDefines:function(){this._programKey=""}});Object.defineProperty&&(Object.defineProperty(me.prototype,"shader",{get:function(){return this._shader||null},set:function(E){this._shader=E}}),Object.defineProperty(me.prototype,"programKey",{get:function(){return this._programKey||(this._programKey=ie(this.vertexDefines,this.fragmentDefines,this.getEnabledTextures())),this._programKey}})),Me.a=me},function(Ye,Me,pe){"use strict";var Oe=!0;try{var ve=document.createElement("canvas"),ue=ve.getContext("webgl")||ve.getContext("experimental-webgl");if(!ue)throw new Error}catch(he){Oe=!1}var fe={};fe.supportWebGL=function(){return Oe},fe.Int8Array=typeof Int8Array=="undefined"?Array:Int8Array,fe.Uint8Array=typeof Uint8Array=="undefined"?Array:Uint8Array,fe.Uint16Array=typeof Uint16Array=="undefined"?Array:Uint16Array,fe.Uint32Array=typeof Uint32Array=="undefined"?Array:Uint32Array,fe.Int16Array=typeof Int16Array=="undefined"?Array:Int16Array,fe.Float32Array=typeof Float32Array=="undefined"?Array:Float32Array,fe.Float64Array=typeof Float64Array=="undefined"?Array:Float64Array,Me.a=fe},function(Ye,Me,pe){"use strict";var Oe=pe(28),ve=Oe.a.extend(function(){return{color:[1,1,1],intensity:1,castShadow:!0,shadowResolution:512,group:0}},{type:"",clone:function(){var ue=Oe.a.prototype.clone.call(this);return ue.color=Array.prototype.slice.call(this.color),ue.intensity=this.intensity,ue.castShadow=this.castShadow,ue.shadowResolution=this.shadowResolution,ue}});Me.a=ve},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(29),fe=pe(152),he=pe(36),le=pe(30),ae=pe(9),ie=pe(4),me=pe(23),E=pe(47),b=pe(155),z=pe(182),ne=pe(43);function oe(de){de=de||"perspective",this.layer=null,this.scene=new ue.a,this.rootNode=this.scene,this.viewport={x:0,y:0,width:0,height:0},this.setProjection(de),this._compositor=new b.a,this._temporalSS=new z.a,this._shadowMapPass=new fe.a;for(var a=[],x=0,re=0;re<30;re++){for(var ce=[],ge=0;ge<6;ge++)ce.push(Object(ne.a)(x,2)*4-2),ce.push(Object(ne.a)(x,3)*4-2),x++;a.push(ce)}this._pcfKernels=a,this.scene.on("beforerender",function(_e,ye,be){this.needsTemporalSS()&&this._temporalSS.jitterProjection(_e,be)},this)}oe.prototype.setProjection=function(de){var a=this.camera;a&&a.update(),de==="perspective"?this.camera instanceof he.a||(this.camera=new he.a,a&&this.camera.setLocalTransform(a.localTransform)):this.camera instanceof le.a||(this.camera=new le.a,a&&this.camera.setLocalTransform(a.localTransform)),this.camera.near=.1,this.camera.far=2e3},oe.prototype.setViewport=function(de,a,x,re,ce){this.camera instanceof he.a&&(this.camera.aspect=x/re),ce=ce||1,this.viewport.x=de,this.viewport.y=a,this.viewport.width=x,this.viewport.height=re,this.viewport.devicePixelRatio=ce,this._compositor.resize(x*ce,re*ce),this._temporalSS.resize(x*ce,re*ce)},oe.prototype.containPoint=function(de,a){var x=this.viewport,re=this.layer.renderer.getHeight();return a=re-a,de>=x.x&&a>=x.y&&de<=x.x+x.width&&a<=x.y+x.height};var se=new me.a;oe.prototype.castRay=function(de,a,x){var re=this.layer.renderer,ce=re.viewport;return re.viewport=this.viewport,re.screenToNDC(de,a,se),this.camera.castRay(se,x),re.viewport=ce,x},oe.prototype.prepareRender=function(){this.scene.update(),this.camera.update(),this._needsSortProgressively=!1;for(var de=0;de<this.scene.transparentList.length;de++){var a=this.scene.transparentList[de],x=a.geometry;x.needsSortVerticesProgressively&&x.needsSortVerticesProgressively()&&(this._needsSortProgressively=!0),x.needsSortTrianglesProgressively&&x.needsSortTrianglesProgressively()&&(this._needsSortProgressively=!0)}this._frame=0,this._temporalSS.resetFrame()},oe.prototype.render=function(de,a){this._doRender(de,a,this._frame),this._frame++},oe.prototype.needsAccumulate=function(){return this.needsTemporalSS()||this._needsSortProgressively},oe.prototype.needsTemporalSS=function(){var de=this._enableTemporalSS;return de=="auto"&&(de=this._enablePostEffect),de},oe.prototype.hasDOF=function(){return this._enableDOF},oe.prototype.isAccumulateFinished=function(){return this.needsTemporalSS()?this._temporalSS.isFinished():this._frame>30},oe.prototype._doRender=function(de,a,x){var re=this.scene,ce=this.camera;if(x=x||0,this._updateTransparent(de,re,ce,x),a||(this._shadowMapPass.kernelPCF=this._pcfKernels[0],this._shadowMapPass.render(de,re,ce,!0)),this._updateShadowPCFKernel(x),de.gl.clearColor(0,0,0,0),this._enablePostEffect&&(this.needsTemporalSS()&&this._temporalSS.jitterProjection(de,ce),this._compositor.updateNormal(de,re,ce,this._temporalSS.getFrame())),this._updateSSAO(de,re,ce,this._temporalSS.getFrame()),this._enablePostEffect){var ge=this._compositor.getSourceFrameBuffer();ge.bind(de),de.gl.clear(de.gl.DEPTH_BUFFER_BIT|de.gl.COLOR_BUFFER_BIT),de.render(re,ce,!0,!0),ge.unbind(de),this.needsTemporalSS()&&a?(this._compositor.composite(de,ce,this._temporalSS.getSourceFrameBuffer(),this._temporalSS.getFrame()),de.setViewport(this.viewport),this._temporalSS.render(de)):(de.setViewport(this.viewport),this._compositor.composite(de,ce,null,0))}else if(this.needsTemporalSS()&&a){var ge=this._temporalSS.getSourceFrameBuffer();ge.bind(de),de.saveClear(),de.clearBit=de.gl.DEPTH_BUFFER_BIT|de.gl.COLOR_BUFFER_BIT,de.render(re,ce,!0,!0),de.restoreClear(),ge.unbind(de),de.setViewport(this.viewport),this._temporalSS.render(de)}else de.setViewport(this.viewport),de.render(re,ce,!0,!0)},oe.prototype._updateTransparent=function(de,a,x,re){for(var ce=new ie.a,ge=new ae.a,_e=x.getWorldPosition(),ye=0;ye<a.transparentList.length;ye++){var be=a.transparentList[ye],Se=be.geometry;ae.a.invert(ge,be.worldTransform),ie.a.transformMat4(ce,_e,ge),Se.needsSortTriangles&&Se.needsSortTriangles()&&Se.doSortTriangles(ce,re),Se.needsSortVertices&&Se.needsSortVertices()&&Se.doSortVertices(ce,re)}},oe.prototype._updateSSAO=function(de,a,x,re){var ce=this._enableSSAO&&this._enablePostEffect;ce&&this._compositor.updateSSAO(de,a,x,this._temporalSS.getFrame());for(var ge=0;ge<a.opaqueList.length;ge++){var _e=a.opaqueList[ge];_e.renderNormal&&_e.material[ce?"enableTexture":"disableTexture"]("ssaoMap"),ce&&_e.material.set("ssaoMap",this._compositor.getSSAOTexture())}},oe.prototype._updateShadowPCFKernel=function(de){for(var a=this._pcfKernels[de%this._pcfKernels.length],x=this.scene.opaqueList,re=0;re<x.length;re++)x[re].receiveShadow&&(x[re].material.set("pcfKernel",a),x[re].material.define("fragment","PCF_KERNEL_SIZE",a.length/2))},oe.prototype.dispose=function(de){this._compositor.dispose(de.gl),this._temporalSS.dispose(de.gl),this._shadowMapPass.dispose(de)},oe.prototype.setPostEffect=function(de,a){var x=this._compositor;this._enablePostEffect=de.get("enable");var re=de.getModel("bloom"),ce=de.getModel("edge"),ge=de.getModel("DOF",de.getModel("depthOfField")),_e=de.getModel("SSAO",de.getModel("screenSpaceAmbientOcclusion")),ye=de.getModel("SSR",de.getModel("screenSpaceReflection")),be=de.getModel("FXAA"),Se=de.getModel("colorCorrection");re.get("enable")?x.enableBloom():x.disableBloom(),ge.get("enable")?x.enableDOF():x.disableDOF(),ye.get("enable")?x.enableSSR():x.disableSSR(),Se.get("enable")?x.enableColorCorrection():x.disableColorCorrection(),ce.get("enable")?x.enableEdge():x.disableEdge(),be.get("enable")?x.enableFXAA():x.disableFXAA(),this._enableDOF=ge.get("enable"),this._enableSSAO=_e.get("enable"),this._enableSSAO?x.enableSSAO():x.disableSSAO(),x.setBloomIntensity(re.get("intensity")),x.setEdgeColor(ce.get("color")),x.setColorLookupTexture(Se.get("lookupTexture"),a),x.setExposure(Se.get("exposure")),["radius","quality","intensity"].forEach(function(Be){x.setSSAOParameter(Be,_e.get(Be))}),["quality","maxRoughness"].forEach(function(Be){x.setSSRParameter(Be,ye.get(Be))}),["quality","focalDistance","focalRange","blurRadius","fstop"].forEach(function(Be){x.setDOFParameter(Be,ge.get(Be))}),["brightness","contrast","saturation"].forEach(function(Be){x.setColorCorrection(Be,Se.get(Be))})},oe.prototype.setDOFFocusOnPoint=function(de){if(this._enablePostEffect)return de>this.camera.far||de<this.camera.near?void 0:(this._compositor.setDOFParameter("focalDistance",de),!0)},oe.prototype.setTemporalSuperSampling=function(de){this._enableTemporalSS=de.get("enable")},oe.prototype.isLinearSpace=function(){return this._enablePostEffect},oe.prototype.setRootNode=function(de){if(this.rootNode!==de){for(var a=this.rootNode.children(),x=0;x<a.length;x++)de.add(a[x]);de!==this.scene&&this.scene.add(de),this.rootNode=de}},oe.prototype.add=function(de){this.rootNode.add(de)},oe.prototype.remove=function(de){this.rootNode.remove(de)},oe.prototype.removeAll=function(de){this.rootNode.removeAll(de)},ve.a.util.extend(oe.prototype,E.a),Me.a=oe},function(Ye,Me,pe){"use strict";var Oe=0,ve=Array.prototype,ue=ve.forEach,fe={genGUID:function(){return++Oe},relative2absolute:function(he,le){if(!le||he.match(/^\//))return he;for(var ae=he.split("/"),ie=le.split("/"),me=ae[0];me==="."||me==="..";)me===".."&&ie.pop(),ae.shift(),me=ae[0];return ie.join("/")+"/"+ae.join("/")},extend:function(he,le){if(le)for(var ae in le)le.hasOwnProperty(ae)&&(he[ae]=le[ae]);return he},defaults:function(he,le){if(le)for(var ae in le)he[ae]===void 0&&(he[ae]=le[ae]);return he},extendWithPropList:function(he,le,ae){if(le)for(var ie=0;ie<ae.length;ie++){var me=ae[ie];he[me]=le[me]}return he},defaultsWithPropList:function(he,le,ae){if(le)for(var ie=0;ie<ae.length;ie++){var me=ae[ie];he[me]==null&&(he[me]=le[me])}return he},each:function(he,le,ae){if(he&&le)if(he.forEach&&he.forEach===ue)he.forEach(le,ae);else if(he.length===+he.length)for(var ie=0,me=he.length;ie<me;ie++)le.call(ae,he[ie],ie,he);else for(var E in he)he.hasOwnProperty(E)&&le.call(ae,he[E],E,he)},isObject:function(he){return he===Object(he)},isArray:function(he){return Array.isArray(he)},isArrayLike:function(he){return he?he.length===+he.length:!1},clone:function(he){if(fe.isObject(he)){if(fe.isArray(he))return he.slice();if(fe.isArrayLike(he)){for(var le=new he.constructor(he.length),ae=0;ae<he.length;ae++)le[ae]=he[ae];return le}else return fe.extend({},he)}else return he}};Me.a=fe},function(Ye,Me,pe){"use strict";var Oe=pe(13),ve=pe(0),ue=pe.n(ve),fe=pe(33),he=pe(1),le=pe.n(he),ae=le.a.vec3,ie=[[0,0],[1,1]],me=Oe.a.extend(function(){return{segmentScale:1,dynamic:!0,useNativeLine:!0,attributes:{position:new Oe.a.Attribute("position","float",3,"POSITION"),positionPrev:new Oe.a.Attribute("positionPrev","float",3),positionNext:new Oe.a.Attribute("positionNext","float",3),prevPositionPrev:new Oe.a.Attribute("prevPositionPrev","float",3),prevPosition:new Oe.a.Attribute("prevPosition","float",3),prevPositionNext:new Oe.a.Attribute("prevPositionNext","float",3),offset:new Oe.a.Attribute("offset","float",1),color:new Oe.a.Attribute("color","float",4,"COLOR")}}},{resetOffset:function(){this._vertexOffset=0,this._triangleOffset=0,this._itemVertexOffsets=[]},setVertexCount:function(E){var b=this.attributes;this.vertexCount!==E&&(b.position.init(E),b.color.init(E),this.useNativeLine||(b.positionPrev.init(E),b.positionNext.init(E),b.offset.init(E)),E>65535?this.indices instanceof Uint16Array&&(this.indices=new Uint32Array(this.indices)):this.indices instanceof Uint32Array&&(this.indices=new Uint16Array(this.indices)))},setTriangleCount:function(E){this.triangleCount!==E&&(E===0?this.indices=null:this.indices=this.vertexCount>65535?new Uint32Array(E*3):new Uint16Array(E*3))},_getCubicCurveApproxStep:function(E,b,z,ne){var oe=ae.dist(E,b)+ae.dist(z,b)+ae.dist(ne,z),se=1/(oe+1)*this.segmentScale;return se},getCubicCurveVertexCount:function(E,b,z,ne){var oe=this._getCubicCurveApproxStep(E,b,z,ne),se=Math.ceil(1/oe);return this.useNativeLine?se*2:se*2+2},getCubicCurveTriangleCount:function(E,b,z,ne){var oe=this._getCubicCurveApproxStep(E,b,z,ne),se=Math.ceil(1/oe);return this.useNativeLine?0:se*2},getLineVertexCount:function(){return this.getPolylineVertexCount(ie)},getLineTriangleCount:function(){return this.getPolylineTriangleCount(ie)},getPolylineVertexCount:function(E){var b;if(typeof E=="number")b=E;else{var z=typeof E[0]!="number";b=z?E.length:E.length/3}return this.useNativeLine?(b-1)*2:(b-1)*2+2},getPolylineTriangleCount:function(E){var b;if(typeof E=="number")b=E;else{var z=typeof E[0]!="number";b=z?E.length:E.length/3}return this.useNativeLine?0:Math.max(b-1,0)*2},addCubicCurve:function(E,b,z,ne,oe,se){se==null&&(se=1);for(var de=E[0],a=E[1],x=E[2],re=b[0],ce=b[1],ge=b[2],_e=z[0],ye=z[1],be=z[2],Se=ne[0],Be=ne[1],Ae=ne[2],we=this._getCubicCurveApproxStep(E,b,z,ne),Ue=we*we,Pe=Ue*we,ze=3*we,Ke=3*Ue,Ne=6*Ue,Re=6*Pe,$e=de-re*2+_e,nt=a-ce*2+ye,ut=x-ge*2+be,Qe=(re-_e)*3-de+Se,rt=(ce-ye)*3-a+Be,pt=(ge-be)*3-x+Ae,At=de,gt=a,Ft=x,Ct=(re-de)*ze+$e*Ke+Qe*Pe,Yt=(ce-a)*ze+nt*Ke+rt*Pe,zt=(ge-x)*ze+ut*Ke+pt*Pe,Xe=$e*Ne+Qe*Re,Fe=nt*Ne+rt*Re,Le=ut*Ne+pt*Re,Ze=Qe*Re,et=rt*Re,He=pt*Re,We=0,tt=0,at=Math.ceil(1/we),ot=new Float32Array((at+1)*3),ot=[],ct=0,tt=0;tt<at+1;tt++)ot[ct++]=At,ot[ct++]=gt,ot[ct++]=Ft,At+=Ct,gt+=Yt,Ft+=zt,Ct+=Xe,Yt+=Fe,zt+=Le,Xe+=Ze,Fe+=et,Le+=He,We+=we,We>1&&(At=Ct>0?Math.min(At,Se):Math.max(At,Se),gt=Yt>0?Math.min(gt,Be):Math.max(gt,Be),Ft=zt>0?Math.min(Ft,Ae):Math.max(Ft,Ae));return this.addPolyline(ot,oe,se)},addLine:function(E,b,z,ne){return this.addPolyline([E,b],z,ne)},addPolyline:function(E,b,z,ne,oe){if(E.length){var se=typeof E[0]!="number";if(oe==null&&(oe=se?E.length:E.length/3),!(oe<2)){ne==null&&(ne=0),z==null&&(z=1),this._itemVertexOffsets.push(this._vertexOffset);var se=typeof E[0]!="number",de=se?typeof b[0]!="number":b.length/4===oe,a=this.attributes.position,x=this.attributes.positionPrev,re=this.attributes.positionNext,ce=this.attributes.color,ge=this.attributes.offset,_e=this.indices,ye=this._vertexOffset,be,Se;z=Math.max(z,.01);for(var Be=ne;Be<oe;Be++){if(se)be=E[Be],de?Se=b[Be]:Se=b;else{var Ae=Be*3;if(be=be||[],be[0]=E[Ae],be[1]=E[Ae+1],be[2]=E[Ae+2],de){var we=Be*4;Se=Se||[],Se[0]=b[we],Se[1]=b[we+1],Se[2]=b[we+2],Se[3]=b[we+3]}else Se=b}if(this.useNativeLine?Be>1&&(a.copy(ye,ye-1),ce.copy(ye,ye-1),ye++):(Be<oe-1&&(x.set(ye+2,be),x.set(ye+3,be)),Be>0&&(re.set(ye-2,be),re.set(ye-1,be)),a.set(ye,be),a.set(ye+1,be),ce.set(ye,Se),ce.set(ye+1,Se),ge.set(ye,z/2),ge.set(ye+1,-z/2),ye+=2),this.useNativeLine)ce.set(ye,Se),a.set(ye,be),ye++;else if(Be>0){var Ue=this._triangleOffset*3,_e=this.indices;_e[Ue]=ye-4,_e[Ue+1]=ye-3,_e[Ue+2]=ye-2,_e[Ue+3]=ye-3,_e[Ue+4]=ye-1,_e[Ue+5]=ye-2,this._triangleOffset+=2}}if(!this.useNativeLine){var Pe=this._vertexOffset,ze=this._vertexOffset+oe*2;x.copy(Pe,Pe+2),x.copy(Pe+1,Pe+3),re.copy(ze-1,ze-3),re.copy(ze-2,ze-4)}return this._vertexOffset=ye,this._vertexOffset}}},setItemColor:function(E,b){for(var z=this._itemVertexOffsets[E],ne=E<this._itemVertexOffsets.length-1?this._itemVertexOffsets[E+1]:this._vertexOffset,oe=z;oe<ne;oe++)this.attributes.color.set(oe,b);this.dirty("color")},currentTriangleOffset:function(){return this._triangleOffset},currentVertexOffset:function(){return this._vertexOffset}});ue.a.util.defaults(me.prototype,fe.a),Me.a=me},function(Ye,Me,pe){"use strict";var Oe=pe(1),ve=pe.n(Oe),ue=ve.a.vec2,fe=function(le,ae){le=le||0,ae=ae||0,this.array=ue.fromValues(le,ae),this._dirty=!0};if(fe.prototype={constructor:fe,add:function(le){return ue.add(this.array,this.array,le.array),this._dirty=!0,this},set:function(le,ae){return this.array[0]=le,this.array[1]=ae,this._dirty=!0,this},setArray:function(le){return this.array[0]=le[0],this.array[1]=le[1],this._dirty=!0,this},clone:function(){return new fe(this.x,this.y)},copy:function(le){return ue.copy(this.array,le.array),this._dirty=!0,this},cross:function(le,ae){return ue.cross(le.array,this.array,ae.array),le._dirty=!0,this},dist:function(le){return ue.dist(this.array,le.array)},distance:function(le){return ue.distance(this.array,le.array)},div:function(le){return ue.div(this.array,this.array,le.array),this._dirty=!0,this},divide:function(le){return ue.divide(this.array,this.array,le.array),this._dirty=!0,this},dot:function(le){return ue.dot(this.array,le.array)},len:function(){return ue.len(this.array)},length:function(){return ue.length(this.array)},lerp:function(le,ae,ie){return ue.lerp(this.array,le.array,ae.array,ie),this._dirty=!0,this},min:function(le){return ue.min(this.array,this.array,le.array),this._dirty=!0,this},max:function(le){return ue.max(this.array,this.array,le.array),this._dirty=!0,this},mul:function(le){return ue.mul(this.array,this.array,le.array),this._dirty=!0,this},multiply:function(le){return ue.multiply(this.array,this.array,le.array),this._dirty=!0,this},negate:function(){return ue.negate(this.array,this.array),this._dirty=!0,this},normalize:function(){return ue.normalize(this.array,this.array),this._dirty=!0,this},random:function(le){return ue.random(this.array,le),this._dirty=!0,this},scale:function(le){return ue.scale(this.array,this.array,le),this._dirty=!0,this},scaleAndAdd:function(le,ae){return ue.scaleAndAdd(this.array,this.array,le.array,ae),this._dirty=!0,this},sqrDist:function(le){return ue.sqrDist(this.array,le.array)},squaredDistance:function(le){return ue.squaredDistance(this.array,le.array)},sqrLen:function(){return ue.sqrLen(this.array)},squaredLength:function(){return ue.squaredLength(this.array)},sub:function(le){return ue.sub(this.array,this.array,le.array),this._dirty=!0,this},subtract:function(le){return ue.subtract(this.array,this.array,le.array),this._dirty=!0,this},transformMat2:function(le){return ue.transformMat2(this.array,this.array,le.array),this._dirty=!0,this},transformMat2d:function(le){return ue.transformMat2d(this.array,this.array,le.array),this._dirty=!0,this},transformMat3:function(le){return ue.transformMat3(this.array,this.array,le.array),this._dirty=!0,this},transformMat4:function(le){return ue.transformMat4(this.array,this.array,le.array),this._dirty=!0,this},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}},Object.defineProperty){var he=fe.prototype;Object.defineProperty(he,"x",{get:function(){return this.array[0]},set:function(le){this.array[0]=le,this._dirty=!0}}),Object.defineProperty(he,"y",{get:function(){return this.array[1]},set:function(le){this.array[1]=le,this._dirty=!0}})}fe.add=function(le,ae,ie){return ue.add(le.array,ae.array,ie.array),le._dirty=!0,le},fe.set=function(le,ae,ie){return ue.set(le.array,ae,ie),le._dirty=!0,le},fe.copy=function(le,ae){return ue.copy(le.array,ae.array),le._dirty=!0,le},fe.cross=function(le,ae,ie){return ue.cross(le.array,ae.array,ie.array),le._dirty=!0,le},fe.dist=function(le,ae){return ue.distance(le.array,ae.array)},fe.distance=fe.dist,fe.div=function(le,ae,ie){return ue.divide(le.array,ae.array,ie.array),le._dirty=!0,le},fe.divide=fe.div,fe.dot=function(le,ae){return ue.dot(le.array,ae.array)},fe.len=function(le){return ue.length(le.array)},fe.lerp=function(le,ae,ie,me){return ue.lerp(le.array,ae.array,ie.array,me),le._dirty=!0,le},fe.min=function(le,ae,ie){return ue.min(le.array,ae.array,ie.array),le._dirty=!0,le},fe.max=function(le,ae,ie){return ue.max(le.array,ae.array,ie.array),le._dirty=!0,le},fe.mul=function(le,ae,ie){return ue.multiply(le.array,ae.array,ie.array),le._dirty=!0,le},fe.multiply=fe.mul,fe.negate=function(le,ae){return ue.negate(le.array,ae.array),le._dirty=!0,le},fe.normalize=function(le,ae){return ue.normalize(le.array,ae.array),le._dirty=!0,le},fe.random=function(le,ae){return ue.random(le.array,ae),le._dirty=!0,le},fe.scale=function(le,ae,ie){return ue.scale(le.array,ae.array,ie),le._dirty=!0,le},fe.scaleAndAdd=function(le,ae,ie,me){return ue.scaleAndAdd(le.array,ae.array,ie.array,me),le._dirty=!0,le},fe.sqrDist=function(le,ae){return ue.sqrDist(le.array,ae.array)},fe.squaredDistance=fe.sqrDist,fe.sqrLen=function(le){return ue.sqrLen(le.array)},fe.squaredLength=fe.sqrLen,fe.sub=function(le,ae,ie){return ue.subtract(le.array,ae.array,ie.array),le._dirty=!0,le},fe.subtract=fe.sub,fe.transformMat2=function(le,ae,ie){return ue.transformMat2(le.array,ae.array,ie.array),le._dirty=!0,le},fe.transformMat2d=function(le,ae,ie){return ue.transformMat2d(le.array,ae.array,ie.array),le._dirty=!0,le},fe.transformMat3=function(le,ae,ie){return ue.transformMat3(le.array,ae.array,ie.array),le._dirty=!0,le},fe.transformMat4=function(le,ae,ie){return ue.transformMat4(le.array,ae.array,ie.array),le._dirty=!0,le},Me.a=fe},function(Ye,Me,pe){"use strict";var Oe=pe(64),ve=pe(11),ue=pe(5),fe=Oe.a.extend({skeleton:null,joints:null,useSkinMatricesTexture:!1},function(){this.joints||(this.joints=[])},{isSkinnedMesh:function(){return!!(this.skeleton&&this.joints&&this.joints.length>0)},render:function(he,le,ae){var ie=he.gl;if(this.skeleton){this.skeleton.update();var me=this.skeleton.getSubSkinMatrices(this.__uid__,this.joints);ae.setUniformOfSemantic(ie,"SKIN_MATRIX",me)}return Oe.a.prototype.render.call(this,he,le,ae)},getSkinMatricesTexture:function(){return this._skinMatricesTexture=this._skinMatricesTexture||new ue.a({type:ve.a.FLOAT,minFilter:ve.a.NEAREST,magFilter:ve.a.NEAREST,useMipmap:!1,flipY:!1}),this._skinMatricesTexture}});fe.POINTS=ve.a.POINTS,fe.LINES=ve.a.LINES,fe.LINE_LOOP=ve.a.LINE_LOOP,fe.LINE_STRIP=ve.a.LINE_STRIP,fe.TRIANGLES=ve.a.TRIANGLES,fe.TRIANGLE_STRIP=ve.a.TRIANGLE_STRIP,fe.TRIANGLE_FAN=ve.a.TRIANGLE_FAN,fe.BACK=ve.a.BACK,fe.FRONT=ve.a.FRONT,fe.FRONT_AND_BACK=ve.a.FRONT_AND_BACK,fe.CW=ve.a.CW,fe.CCW=ve.a.CCW,Me.a=fe},function(Ye,Me,pe){"use strict";var Oe=pe(6),ve=pe(11),ue=pe(21),fe=pe(66),he=fe.a.isPowerOfTwo,le=["px","nx","py","ny","pz","nz"],ae=Oe.a.extend(function(){return{image:{px:null,nx:null,py:null,ny:null,pz:null,nz:null},pixels:{px:null,nx:null,py:null,ny:null,pz:null,nz:null},mipmaps:[]}},{update:function(me){var E=me.gl;E.bindTexture(E.TEXTURE_CUBE_MAP,this._cache.get("webgl_texture")),this.updateCommon(me);var b=this.format,z=this.type;E.texParameteri(E.TEXTURE_CUBE_MAP,E.TEXTURE_WRAP_S,this.getAvailableWrapS()),E.texParameteri(E.TEXTURE_CUBE_MAP,E.TEXTURE_WRAP_T,this.getAvailableWrapT()),E.texParameteri(E.TEXTURE_CUBE_MAP,E.TEXTURE_MAG_FILTER,this.getAvailableMagFilter()),E.texParameteri(E.TEXTURE_CUBE_MAP,E.TEXTURE_MIN_FILTER,this.getAvailableMinFilter());var ne=me.getGLExtension("EXT_texture_filter_anisotropic");if(ne&&this.anisotropic>1&&E.texParameterf(E.TEXTURE_CUBE_MAP,ne.TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropic),z===36193){var oe=me.getGLExtension("OES_texture_half_float");oe||(z=ve.a.FLOAT)}if(this.mipmaps.length)for(var se=this.width,de=this.height,a=0;a<this.mipmaps.length;a++){var x=this.mipmaps[a];this._updateTextureData(E,x,a,se,de,b,z),se/=2,de/=2}else this._updateTextureData(E,this,0,this.width,this.height,b,z),!this.NPOT&&this.useMipmap&&E.generateMipmap(E.TEXTURE_CUBE_MAP);E.bindTexture(E.TEXTURE_CUBE_MAP,null)},_updateTextureData:function(me,E,b,z,ne,oe,se){for(var de=0;de<6;de++){var a=le[de],x=E.image&&E.image[a];x?me.texImage2D(me.TEXTURE_CUBE_MAP_POSITIVE_X+de,b,oe,oe,se,x):me.texImage2D(me.TEXTURE_CUBE_MAP_POSITIVE_X+de,b,oe,z,ne,0,oe,se,E.pixels&&E.pixels[a])}},generateMipmap:function(me){var E=me.gl;this.useMipmap&&!this.NPOT&&(E.bindTexture(E.TEXTURE_CUBE_MAP,this._cache.get("webgl_texture")),E.generateMipmap(E.TEXTURE_CUBE_MAP))},bind:function(me){me.gl.bindTexture(me.gl.TEXTURE_CUBE_MAP,this.getWebGLTexture(me))},unbind:function(me){me.gl.bindTexture(me.gl.TEXTURE_CUBE_MAP,null)},isPowerOfTwo:function(){return this.image.px?he(this.image.px.width)&&he(this.image.px.height):he(this.width)&&he(this.height)},isRenderable:function(){return this.image.px?ie(this.image.px)&&ie(this.image.nx)&&ie(this.image.py)&&ie(this.image.ny)&&ie(this.image.pz)&&ie(this.image.nz):!!(this.width&&this.height)},load:function(me,E){var b=0,z=this;return ue.a.each(me,function(ne,oe){var se=new Image;E&&(se.crossOrigin=E),se.onload=function(){b--,b===0&&(z.dirty(),z.trigger("success",z)),se.onload=null},se.onerror=function(){b--,se.onerror=null},b++,se.src=ne,z.image[oe]=se}),this}});Object.defineProperty(ae.prototype,"width",{get:function(){return this.image&&this.image.px?this.image.px.width:this._width},set:function(me){this.image&&this.image.px?console.warn("Texture from image can't set width"):(this._width!==me&&this.dirty(),this._width=me)}}),Object.defineProperty(ae.prototype,"height",{get:function(){return this.image&&this.image.px?this.image.px.height:this._height},set:function(me){this.image&&this.image.px?console.warn("Texture from image can't set height"):(this._height!==me&&this.dirty(),this._height=me)}});function ie(me){return me.nodeName==="CANVAS"||me.nodeName==="VIDEO"||me.complete}Me.a=ae},function(Ye,Me,pe){"use strict";Me.a={defaultOption:{shading:null,realisticMaterial:{textureTiling:1,textureOffset:0,detailTexture:null},lambertMaterial:{textureTiling:1,textureOffset:0,detailTexture:null},colorMaterial:{textureTiling:1,textureOffset:0,detailTexture:null},hatchingMaterial:{textureTiling:1,textureOffset:0,paperColor:"#fff"}}}},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue={};ue.getFormattedLabel=function(fe,he,le,ae,ie){le=le||"normal";var me=fe.getData(ae),E=me.getItemModel(he),b=fe.getDataParams(he,ae);ie!=null&&b.value instanceof Array&&(b.value=b.value[ie]);var z=E.get(le==="normal"?["label","formatter"]:["emphasis","label","formatter"]);z==null&&(z=E.get(["label","formatter"]));var ne;return typeof z=="function"?(b.status=le,ne=z(b)):typeof z=="string"&&(ne=ve.a.format.formatTpl(z,b)),ne},ue.normalizeToArray=function(fe){return fe instanceof Array?fe:fe==null?[]:[fe]},Me.a=ue},function(Ye,Me,pe){"use strict";var Oe=pe(8),ve=pe(4),ue=pe(50),fe=pe(9),he=pe(1),le=pe.n(he),ae=pe(15),ie=le.a.mat4,me=0,E=Oe.a.extend({name:"",position:null,rotation:null,scale:null,worldTransform:null,localTransform:null,autoUpdateLocalTransform:!0,_parent:null,_scene:null,_needsUpdateWorldTransform:!0,_inIterating:!1,__depth:0},function(){this.name||(this.name=(this.type||"NODE")+"_"+me++),this.position||(this.position=new ve.a),this.rotation||(this.rotation=new ue.a),this.scale||(this.scale=new ve.a(1,1,1)),this.worldTransform=new fe.a,this.localTransform=new fe.a,this._children=[]},{target:null,invisible:!1,isSkinnedMesh:function(){return!1},isRenderable:function(){return!1},setName:function(b){var z=this._scene;if(z){var ne=z._nodeRepository;delete ne[this.name],ne[b]=this}this.name=b},add:function(b){this._inIterating&&console.warn("Add operation can cause unpredictable error when in iterating");var z=b._parent;if(z!==this){z&&z.remove(b),b._parent=this,this._children.push(b);var ne=this._scene;ne&&ne!==b.scene&&b.traverse(this._addSelfToScene,this),b._needsUpdateWorldTransform=!0}},remove:function(b){this._inIterating&&console.warn("Remove operation can cause unpredictable error when in iterating");var z=this._children,ne=z.indexOf(b);ne<0||(z.splice(ne,1),b._parent=null,this._scene&&b.traverse(this._removeSelfFromScene,this))},removeAll:function(){for(var b=this._children,z=0;z<b.length;z++)b[z]._parent=null,this._scene&&b[z].traverse(this._removeSelfFromScene,this);this._children=[]},getScene:function(){return this._scene},getParent:function(){return this._parent},_removeSelfFromScene:function(b){b._scene.removeFromScene(b),b._scene=null},_addSelfToScene:function(b){this._scene.addToScene(b),b._scene=this._scene},isAncestor:function(b){for(var z=b._parent;z;){if(z===this)return!0;z=z._parent}return!1},children:function(){return this._children.slice()},childAt:function(b){return this._children[b]},getChildByName:function(b){for(var z=this._children,ne=0;ne<z.length;ne++)if(z[ne].name===b)return z[ne]},getDescendantByName:function(b){for(var z=this._children,ne=0;ne<z.length;ne++){var oe=z[ne];if(oe.name===b)return oe;var se=oe.getDescendantByName(b);if(se)return se}},queryNode:function(b){if(b){for(var z=b.split("/"),ne=this,oe=0;oe<z.length;oe++){var se=z[oe];if(se){for(var de=!1,a=ne._children,x=0;x<a.length;x++){var re=a[x];if(re.name===se){ne=re,de=!0;break}}if(!de)return}}return ne}},getPath:function(b){if(!this._parent)return"/";for(var z=this._parent,ne=this.name;z._parent&&(ne=z.name+"/"+ne,z._parent!=b);)z=z._parent;return!z._parent&&b?null:ne},traverse:function(b,z,ne){this._inIterating=!0,(!ne||ne.call(z,this))&&b.call(z,this);for(var oe=this._children,se=0,de=oe.length;se<de;se++)oe[se].traverse(b,z,ne);this._inIterating=!1},eachChild:function(b,z,ne){this._inIterating=!0;for(var oe=this._children,se=ne==null,de=0,a=oe.length;de<a;de++){var x=oe[de];(se||x.constructor===ne)&&b.call(z,x,de)}this._inIterating=!1},setLocalTransform:function(b){ie.copy(this.localTransform.array,b.array),this.decomposeLocalTransform()},decomposeLocalTransform:function(b){var z=b?null:this.scale;this.localTransform.decomposeMatrix(z,this.rotation,this.position)},setWorldTransform:function(b){ie.copy(this.worldTransform.array,b.array),this.decomposeWorldTransform()},decomposeWorldTransform:function(){var b=ie.create();return function(z){var ne=this.localTransform,oe=this.worldTransform;this._parent?(ie.invert(b,this._parent.worldTransform.array),ie.multiply(ne.array,b,oe.array)):ie.copy(ne.array,oe.array);var se=z?null:this.scale;ne.decomposeMatrix(se,this.rotation,this.position)}}(),transformNeedsUpdate:function(){return this.position._dirty||this.rotation._dirty||this.scale._dirty},updateLocalTransform:function(){var b=this.position,z=this.rotation,ne=this.scale;if(this.transformNeedsUpdate()){var oe=this.localTransform.array;ie.fromRotationTranslation(oe,z.array,b.array),ie.scale(oe,oe,ne.array),z._dirty=!1,ne._dirty=!1,b._dirty=!1,this._needsUpdateWorldTransform=!0}},_updateWorldTransformTopDown:function(){var b=this.localTransform.array,z=this.worldTransform.array;this._parent?ie.multiplyAffine(z,this._parent.worldTransform.array,b):ie.copy(z,b)},updateWorldTransform:function(){for(var b=this;b&&b.getParent()&&b.getParent().transformNeedsUpdate();)b=b.getParent();b.update()},update:function(b){this.autoUpdateLocalTransform?this.updateLocalTransform():b=!0,(b||this._needsUpdateWorldTransform)&&(this._updateWorldTransformTopDown(),b=!0,this._needsUpdateWorldTransform=!1);for(var z=this._children,ne=0,oe=z.length;ne<oe;ne++)z[ne].update(b)},getBoundingBox:function(){function b(se){return!se.invisible&&se.geometry}var z=new ae.a,ne=new fe.a,oe=new fe.a;return function(se,de){return de=de||new ae.a,se=se||b,this._parent?fe.a.invert(oe,this._parent.worldTransform):fe.a.identity(oe),this.traverse(function(a){a.geometry&&a.geometry.boundingBox&&(z.copy(a.geometry.boundingBox),fe.a.multiply(ne,oe,a.worldTransform),z.applyTransform(ne),de.union(z))},this,b),de}}(),getWorldPosition:function(b){this.transformNeedsUpdate()&&this.updateWorldTransform();var z=this.worldTransform.array;if(b){var ne=b.array;return ne[0]=z[12],ne[1]=z[13],ne[2]=z[14],b}else return new ve.a(z[12],z[13],z[14])},clone:function(){var b=new this.constructor,z=this._children;b.setName(this.name),b.position.copy(this.position),b.rotation.copy(this.rotation),b.scale.copy(this.scale);for(var ne=0;ne<z.length;ne++)b.add(z[ne].clone());return b},rotateAround:function(){var b=new ve.a,z=new fe.a;return function(ne,oe,se){b.copy(this.position).subtract(ne);var de=this.localTransform;de.identity(),de.translate(ne),de.rotate(se,oe),z.fromRotationTranslation(this.rotation,b),de.multiply(z),de.scale(this.scale),this.decomposeLocalTransform(),this._needsUpdateWorldTransform=!0}}(),lookAt:function(){var b=new fe.a;return function(z,ne){b.lookAt(this.position,z,ne||this.localTransform.y).invert(),this.setLocalTransform(b),this.target=z}}()});Me.a=E},function(Ye,Me,pe){"use strict";var Oe=pe(28),ve=pe(19),ue=pe(51),fe=pe(15),he=pe(21),le={};function ae(E){var b=[],z=Object.keys(E);z.sort();for(var ne=0;ne<z.length;ne++){var oe=E[ne];b.push(oe+" "+E[oe])}var se=b.join(`
|
|
|
`);if(le[se])return le[se];var de=he.a.genGUID();return le[se]=de,de}var ie=Oe.a.extend(function(){return{material:null,autoUpdate:!0,opaqueList:[],transparentList:[],lights:[],viewBoundingBoxLastFrame:new fe.a,shadowUniforms:{},_cameraList:[],_lightUniforms:{},_previousLightNumber:{},_lightNumber:{},_lightProgramKeys:{},_opaqueObjectCount:0,_transparentObjectCount:0,_nodeRepository:{}}},function(){this._scene=this},{addToScene:function(E){E instanceof ue.a&&(this._cameraList.length>0&&console.warn("Found multiple camera in one scene. Use the fist one."),this._cameraList.push(E)),E.name&&(this._nodeRepository[E.name]=E)},removeFromScene:function(E){if(E instanceof ue.a){var b=this._cameraList.indexOf(E);b>=0&&this._cameraList.splice(b,1)}E.name&&delete this._nodeRepository[E.name]},getNode:function(E){return this._nodeRepository[E]},cloneNode:function(E){var b=E.clone(),z={},ne=function(se,de){se.skeleton&&(de.skeleton=se.skeleton.clone(E,b),de.joints=se.joints.slice()),se.material&&(z[se.material.__uid__]={oldMat:se.material});for(var a=0;a<se._children.length;a++)ne(se._children[a],de._children[a])};ne(E,b);for(var oe in z)z[oe].newMat=z[oe].oldMat.clone();return b.traverse(function(se){se.material&&(se.material=z[se.material.__uid__].newMat)}),b},update:function(E,b){if(this.autoUpdate||E){Oe.a.prototype.update.call(this,E);var z=this.lights,ne=this.material&&this.material.transparent;if(this._opaqueObjectCount=0,this._transparentObjectCount=0,z.length=0,this._updateRenderList(this,ne),this.opaqueList.length=this._opaqueObjectCount,this.transparentList.length=this._transparentObjectCount,!b){this._previousLightNumber=this._lightNumber;for(var oe={},se=0;se<z.length;se++){var de=z[se],a=de.group;oe[a]||(oe[a]={}),oe[a][de.type]=oe[a][de.type]||0,oe[a][de.type]++}this._lightNumber=oe;for(var x in oe)this._lightProgramKeys[x]=ae(oe[x]);this._updateLightUniforms()}}},getMainCamera:function(){return this._cameraList[0]},_updateRenderList:function(E,b){if(!E.invisible)for(var z=0;z<E._children.length;z++){var ne=E._children[z];ne instanceof ve.a?this.lights.push(ne):ne.isRenderable()&&(ne.material.transparent||b?this.transparentList[this._transparentObjectCount++]=ne:this.opaqueList[this._opaqueObjectCount++]=ne),ne._children.length>0&&this._updateRenderList(ne)}},_updateLightUniforms:function(){var E=this.lights;E.sort(me);var b=this._lightUniforms;for(var z in b)for(var ne in b[z])b[z][ne].value.length=0;for(var oe=0;oe<E.length;oe++){var se=E[oe],z=se.group;for(var ne in se.uniformTemplates){var de=se.uniformTemplates[ne],a=de.value(se);if(a!=null){b[z]||(b[z]={}),b[z][ne]||(b[z][ne]={type:"",value:[]});var x=b[z][ne];switch(x.type=de.type+"v",de.type){case"1i":case"1f":case"t":x.value.push(a);break;case"2f":case"3f":case"4f":for(var re=0;re<a.length;re++)x.value.push(a[re]);break;default:console.error("Unkown light uniform type "+de.type)}}}}},getLightGroups:function(){var E=[];for(var b in this._lightNumber)E.push(b);return E},getNumberChangedLightGroups:function(){var E=[];for(var b in this._lightNumber)this.isLightNumberChanged(b)&&E.push(b);return E},isLightNumberChanged:function(E){var b=this._previousLightNumber,z=this._lightNumber;for(var ne in z[E])if(!b[E]||z[E][ne]!==b[E][ne])return!0;for(var ne in b[E])if(!z[E]||z[E][ne]!==b[E][ne])return!0;return!1},getLightsNumbers:function(E){return this._lightNumber[E]},getProgramKey:function(E){return this._lightProgramKeys[E]},setLightUniforms:function(){function E(b,z,ne){for(var oe in b){var se=b[oe];if(se.type==="tv"){if(!z.hasUniform(oe))continue;for(var de=[],a=0;a<se.value.length;a++){var x=se.value[a],re=z.takeCurrentTextureSlot(ne,x);de.push(re)}z.setUniform(ne.gl,"1iv",oe,de)}else z.setUniform(ne.gl,se.type,oe,se.value)}}return function(b,z,ne){E(this._lightUniforms[z],b,ne),E(this.shadowUniforms,b,ne)}}(),dispose:function(){this.material=null,this.opaqueList=[],this.transparentList=[],this.lights=[],this._lightUniforms={},this._lightNumber={},this._nodeRepository={}}});function me(E,b){if(b.castShadow&&!E.castShadow)return!0}Me.a=ie},function(Ye,Me,pe){"use strict";var Oe=pe(51),ve=Oe.a.extend({left:-1,right:1,near:-1,far:1,top:1,bottom:-1},{updateProjectionMatrix:function(){this.projectionMatrix.ortho(this.left,this.right,this.bottom,this.top,this.near,this.far)},decomposeProjectionMatrix:function(){var ue=this.projectionMatrix.array;this.left=(-1-ue[12])/ue[0],this.right=(1-ue[12])/ue[0],this.top=(1-ue[13])/ue[5],this.bottom=(-1-ue[13])/ue[5],this.near=-(-1-ue[14])/ue[10],this.far=-(1-ue[14])/ue[10]},clone:function(){var ue=Oe.a.prototype.clone.call(this);return ue.left=this.left,ue.right=this.right,ue.near=this.near,ue.far=this.far,ue.top=this.top,ue.bottom=this.bottom,ue}});Me.a=ve},function(Ye,Me,pe){"use strict";Me.a={defaultOption:{postEffect:{enable:!1,bloom:{enable:!0,intensity:.1},depthOfField:{enable:!1,focalRange:20,focalDistance:50,blurRadius:10,fstop:2.8,quality:"medium"},screenSpaceAmbientOcclusion:{enable:!1,radius:2,quality:"medium",intensity:1},screenSpaceReflection:{enable:!1,quality:"medium",maxRoughness:.8},colorCorrection:{enable:!0,exposure:0,brightness:0,contrast:1,saturation:1,lookupTexture:""},edge:{enable:!1},FXAA:{enable:!1}},temporalSuperSampling:{enable:"auto"}}}},function(Ye,Me,pe){"use strict";Me.a={defaultOption:{light:{main:{shadow:!1,shadowQuality:"high",color:"#fff",intensity:1,alpha:0,beta:0},ambient:{color:"#fff",intensity:.2},ambientCubemap:{texture:null,exposure:1,diffuseIntensity:.5,specularIntensity:.5}}}}},function(Ye,Me,pe){"use strict";Me.a={convertToDynamicArray:function(Oe){Oe&&this.resetOffset();var ve=this.attributes;for(var ue in ve)Oe||!ve[ue].value?ve[ue].value=[]:ve[ue].value=Array.prototype.slice.call(ve[ue].value);Oe||!this.indices?this.indices=[]:this.indices=Array.prototype.slice.call(this.indices)},convertToTypedArray:function(){var Oe=this.attributes;for(var ve in Oe)Oe[ve].value&&Oe[ve].value.length>0?Oe[ve].value=new Float32Array(Oe[ve].value):Oe[ve].value=null;this.indices&&this.indices.length>0&&(this.indices=this.vertexCount>65535?new Uint32Array(this.indices):new Uint16Array(this.indices)),this.dirty()}}},function(Ye,Me,pe){"use strict";var Oe=pe(2),ve=pe(57),ue=pe(56),fe=pe(0),he=pe.n(fe);function le(){}le.prototype={constructor:le,setScene:function(ae){this._scene=ae,this._skybox&&this._skybox.attachScene(this._scene)},initLight:function(ae){this._lightRoot=ae,this.mainLight=new Oe.a.DirectionalLight({shadowBias:.005}),this.ambientLight=new Oe.a.AmbientLight,ae.add(this.mainLight),ae.add(this.ambientLight)},dispose:function(){this._lightRoot&&(this._lightRoot.remove(this.mainLight),this._lightRoot.remove(this.ambientLight))},updateLight:function(ae){var ie=this.mainLight,me=this.ambientLight,E=ae.getModel("light"),b=E.getModel("main"),z=E.getModel("ambient");ie.intensity=b.get("intensity"),me.intensity=z.get("intensity"),ie.color=Oe.a.parseColor(b.get("color")).slice(0,3),me.color=Oe.a.parseColor(z.get("color")).slice(0,3);var ne=b.get("alpha")||0,oe=b.get("beta")||0;ie.position.setArray(Oe.a.directionFromAlphaBeta(ne,oe)),ie.lookAt(Oe.a.Vector3.ZERO),ie.castShadow=b.get("shadow"),ie.shadowResolution=Oe.a.getShadowResolution(b.get("shadowQuality"))},updateAmbientCubemap:function(ae,ie,me){var E=ie.getModel("light.ambientCubemap"),b=E.get("texture");if(b){this._cubemapLightsCache=this._cubemapLightsCache||{};var z=this._cubemapLightsCache[b];if(!z){var ne=this;z=this._cubemapLightsCache[b]=Oe.a.createAmbientCubemap(E.option,ae,me,function(){ne._skybox instanceof ve.a&&ne._skybox.setEnvironmentMap(z.specular.cubemap),me.getZr().refresh()})}this._lightRoot.add(z.diffuse),this._lightRoot.add(z.specular),this._currentCubemapLights=z}else this._currentCubemapLights&&(this._lightRoot.remove(this._currentCubemapLights.diffuse),this._lightRoot.remove(this._currentCubemapLights.specular),this._currentCubemapLights=null)},updateSkybox:function(ae,ie,me){var E=ie.get("environment"),b=this;function z(){return b._skybox instanceof ve.a||(b._skybox&&b._skybox.dispose(ae),b._skybox=new ve.a),b._skybox}function ne(){return b._skybox instanceof ue.a||(b._skybox&&b._skybox.dispose(ae),b._skybox=new ue.a),b._skybox}if(E&&E!=="none")if(E==="auto")if(this._currentCubemapLights){var oe=z(),se=this._currentCubemapLights.specular.cubemap;oe.setEnvironmentMap(se),this._scene&&oe.attachScene(this._scene),oe.material.set("lod",2)}else this._skybox&&this._skybox.detachScene();else if(typeof E=="object"&&E.colorStops||typeof E=="string"&&he.a.color.parse(E)){var de=ne(),a=new Oe.a.Texture2D({anisotropic:8,flipY:!1});de.setEnvironmentMap(a);var x=a.image=document.createElement("canvas");x.width=x.height=16;var re=x.getContext("2d"),ce=new he.a.graphic.Rect({shape:{x:0,y:0,width:16,height:16},style:{fill:E}});ce.brush(re),de.attachScene(this._scene)}else{var de=ne(),a=Oe.a.loadTexture(E,me,{anisotropic:8,flipY:!1});de.setEnvironmentMap(a),de.attachScene(this._scene)}else this._skybox&&this._skybox.detachScene(this._scene),this._skybox=null;var ge=ie.coordinateSystem;if(this._skybox)if(ge&&ge.viewGL&&E!=="auto"&&!(E.match&&E.match(/.hdr$/))){var _e=ge.viewGL.isLinearSpace()?"define":"undefine";this._skybox.material[_e]("fragment","SRGB_DECODE")}else this._skybox.material.undefine("fragment","SRGB_DECODE")}},Me.a=le},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe);function ue(fe,he){var le=[];return ve.a.util.each(fe.dimensions,function(ae){var ie=fe.getDimensionInfo(ae),me=ie.otherDims,E=me[he];E!=null&&E!==!1&&(le[E]=ie.name)}),le}Me.a=function(fe,he,le){function ae(se){var de=!0,a=[],x=ue(ie,"tooltip");x.length?ve.a.util.each(x,function(ce){re(ie.get(ce,he),ce)}):ve.a.util.each(se,re);function re(ce,ge){var _e=ie.getDimensionInfo(ge);if(!(!_e||_e.otherDims.tooltip===!1)){var ye=_e.type,be=(de?"- "+(_e.tooltipName||_e.name)+": ":"")+(ye==="ordinal"?ce+"":ye==="time"?le?"":ve.a.format.formatTime("yyyy/MM/dd hh:mm:ss",ce):ve.a.format.addCommas(ce));be&&a.push(ve.a.format.encodeHTML(be))}}return(de?"<br/>":"")+a.join(de?"<br/>":", ")}var ie=fe.getData(),me=fe.getRawValue(he),E=ve.a.util.isArray(me)?ae(me):ve.a.format.encodeHTML(ve.a.format.addCommas(me)),b=ie.getName(he),z=ie.getItemVisual(he,"color");ve.a.util.isObject(z)&&z.colorStops&&(z=(z.colorStops[0]||{}).color),z=z||"transparent";var ne=ve.a.format.getTooltipMarker(z),oe=fe.name;return oe==="\0-"&&(oe=""),oe=oe?ve.a.format.encodeHTML(oe)+(le?": ":"<br/>"):"",le?ne+oe+E:oe+ne+(b?ve.a.format.encodeHTML(b)+": "+E:E)}},function(Ye,Me,pe){"use strict";var Oe=pe(51),ve=Oe.a.extend({fov:50,aspect:1,near:.1,far:2e3},{updateProjectionMatrix:function(){var ue=this.fov/180*Math.PI;this.projectionMatrix.perspective(ue,this.aspect,this.near,this.far)},decomposeProjectionMatrix:function(){var ue=this.projectionMatrix.array,fe=Math.atan(1/ue[5])*2;this.fov=fe/Math.PI*180,this.aspect=ue[5]/ue[0],this.near=ue[14]/(ue[10]-1),this.far=ue[14]/(ue[10]+1)},clone:function(){var ue=Oe.a.prototype.clone.call(this);return ue.fov=this.fov,ue.aspect=this.aspect,ue.near=this.near,ue.far=this.far,ue}});Me.a=ve},function(Ye,Me,pe){"use strict";var Oe=pe(13),ve=pe(15),ue=Oe.a.extend({dynamic:!1,widthSegments:1,heightSegments:1},function(){this.build()},{build:function(){for(var fe=this.heightSegments,he=this.widthSegments,le=this.attributes,ae=[],ie=[],me=[],E=[],b=0;b<=fe;b++)for(var z=b/fe,ne=0;ne<=he;ne++){var oe=ne/he;if(ae.push([2*oe-1,2*z-1,0]),ie&&ie.push([oe,z]),me&&me.push([0,0,1]),ne<he&&b<fe){var se=ne+b*(he+1);E.push([se,se+1,se+he+1]),E.push([se+he+1,se+1,se+he+2])}}le.position.fromArray(ae),le.texcoord0.fromArray(ie),le.normal.fromArray(me),this.initIndicesFromArray(E),this.boundingBox=new ve.a,this.boundingBox.min.set(-1,-1,0),this.boundingBox.max.set(1,1,0)}});Me.a=ue},function(Ye,Me,pe){"use strict";Me.a={defaultOption:{viewControl:{projection:"perspective",autoRotate:!1,autoRotateDirection:"cw",autoRotateSpeed:10,autoRotateAfterStill:3,damping:.8,rotateSensitivity:1,zoomSensitivity:1,panSensitivity:1,panMouseButton:"middle",rotateMouseButton:"left",distance:150,minDistance:40,maxDistance:400,orthographicSize:150,maxOrthographicSize:400,minOrthographicSize:20,center:[0,0,0],alpha:0,beta:0,minAlpha:-90,maxAlpha:90}},setView:function(Oe){Oe=Oe||{},this.option.viewControl=this.option.viewControl||{},Oe.alpha!=null&&(this.option.viewControl.alpha=Oe.alpha),Oe.beta!=null&&(this.option.viewControl.beta=Oe.beta),Oe.distance!=null&&(this.option.viewControl.distance=Oe.distance),Oe.center!=null&&(this.option.viewControl.center=Oe.center)}}},function(Ye,Me,pe){"use strict";var Oe=pe(8),ve=pe(23),ue=pe(4),fe=pe(50),he=pe(3),le=he.a.firstNotNull,ae={left:0,middle:1,right:2};function ie(E){return E instanceof Array||(E=[E,E]),E}var me=Oe.a.extend(function(){return{zr:null,viewGL:null,_center:new ue.a,minDistance:.5,maxDistance:1.5,maxOrthographicSize:300,minOrthographicSize:30,minAlpha:-90,maxAlpha:90,minBeta:-1/0,maxBeta:1/0,autoRotateAfterStill:0,autoRotateDirection:"cw",autoRotateSpeed:60,damping:.8,rotateSensitivity:1,zoomSensitivity:1,panSensitivity:1,panMouseButton:"middle",rotateMouseButton:"left",_mode:"rotate",_camera:null,_needsUpdate:!1,_rotating:!1,_phi:0,_theta:0,_mouseX:0,_mouseY:0,_rotateVelocity:new ve.a,_panVelocity:new ve.a,_distance:500,_zoomSpeed:0,_stillTimeout:0,_animators:[]}},function(){["_mouseDownHandler","_mouseWheelHandler","_mouseMoveHandler","_mouseUpHandler","_pinchHandler","_contextMenuHandler","_update"].forEach(function(E){this[E]=this[E].bind(this)},this)},{init:function(){var E=this.zr;E&&(E.on("mousedown",this._mouseDownHandler),E.on("globalout",this._mouseUpHandler),E.on("mousewheel",this._mouseWheelHandler),E.on("pinch",this._pinchHandler),E.animation.on("frame",this._update),E.dom.addEventListener("contextmenu",this._contextMenuHandler))},dispose:function(){var E=this.zr;E&&(E.off("mousedown",this._mouseDownHandler),E.off("mousemove",this._mouseMoveHandler),E.off("mouseup",this._mouseUpHandler),E.off("mousewheel",this._mouseWheelHandler),E.off("pinch",this._pinchHandler),E.off("globalout",this._mouseUpHandler),E.dom.removeEventListener("contextmenu",this._contextMenuHandler),E.animation.off("frame",this._update)),this.stopAllAnimation()},getDistance:function(){return this._distance},setDistance:function(E){this._distance=E,this._needsUpdate=!0},getOrthographicSize:function(){return this._orthoSize},setOrthographicSize:function(E){this._orthoSize=E,this._needsUpdate=!0},getAlpha:function(){return this._theta/Math.PI*180},getBeta:function(){return-this._phi/Math.PI*180},getCenter:function(){return this._center.toArray()},setAlpha:function(E){E=Math.max(Math.min(this.maxAlpha,E),this.minAlpha),this._theta=E/180*Math.PI,this._needsUpdate=!0},setBeta:function(E){E=Math.max(Math.min(this.maxBeta,E),this.minBeta),this._phi=-E/180*Math.PI,this._needsUpdate=!0},setCenter:function(E){this._center.setArray(E)},setViewGL:function(E){this.viewGL=E},getCamera:function(){return this.viewGL.camera},setFromViewControlModel:function(E,b){b=b||{};var z=b.baseDistance||0,ne=b.baseOrthoSize||1,oe=E.get("projection");oe!=="perspective"&&oe!=="orthographic"&&oe!=="isometric"&&(console.error("Unkown projection type %s, use perspective projection instead.",oe),oe="perspective"),this._projection=oe,this.viewGL.setProjection(oe);var se=E.get("distance")+z,de=E.get("orthographicSize")+ne;[["damping",.8],["autoRotate",!1],["autoRotateAfterStill",3],["autoRotateDirection","cw"],["autoRotateSpeed",10],["minDistance",30],["maxDistance",400],["minOrthographicSize",30],["maxOrthographicSize",300],["minAlpha",-90],["maxAlpha",90],["minBeta",-1/0],["maxBeta",1/0],["rotateSensitivity",1],["zoomSensitivity",1],["panSensitivity",1],["panMouseButton","left"],["rotateMouseButton","middle"]].forEach(function(_e){this[_e[0]]=le(E.get(_e[0]),_e[1])},this),this.minDistance+=z,this.maxDistance+=z,this.minOrthographicSize+=ne,this.maxOrthographicSize+=ne;var a=E.ecModel,x={};["animation","animationDurationUpdate","animationEasingUpdate"].forEach(function(_e){x[_e]=le(E.get(_e),a&&a.get(_e))});var re=le(b.alpha,E.get("alpha"))||0,ce=le(b.beta,E.get("beta"))||0,ge=le(b.center,E.get("center"))||[0,0,0];x.animation&&x.animationDurationUpdate>0&&this._notFirst?this.animateTo({alpha:re,beta:ce,center:ge,distance:se,targetOrthographicSize:de,easing:x.animationEasingUpdate,duration:x.animationDurationUpdate}):(this.setDistance(se),this.setAlpha(re),this.setBeta(ce),this.setCenter(ge),this.setOrthographicSize(de)),this._notFirst=!0,this._validateProperties()},_validateProperties:function(){ae[this.panMouseButton]==null&&console.error("Unkown panMouseButton %s. It should be left|middle|right",this.panMouseButton),ae[this.rotateMouseButton]==null&&console.error("Unkown rotateMouseButton %s. It should be left|middle|right",this.rotateMouseButton),this.autoRotateDirection!=="cw"&&this.autoRotateDirection!=="ccw"&&console.error("Unkown autoRotateDirection %s. It should be cw|ccw",this.autoRotateDirection)},animateTo:function(E){var b=this.zr,z=this,ne={},oe={};return E.distance!=null&&(ne.distance=this.getDistance(),oe.distance=E.distance),E.orthographicSize!=null&&(ne.orthographicSize=this.getOrthographicSize(),oe.orthographicSize=E.orthographicSize),E.alpha!=null&&(ne.alpha=this.getAlpha(),oe.alpha=E.alpha),E.beta!=null&&(ne.beta=this.getBeta(),oe.beta=E.beta),E.center!=null&&(ne.center=this.getCenter(),oe.center=E.center),this._addAnimator(b.animation.animate(ne).when(E.duration||1e3,oe).during(function(){ne.alpha!=null&&z.setAlpha(ne.alpha),ne.beta!=null&&z.setBeta(ne.beta),ne.distance!=null&&z.setDistance(ne.distance),ne.center!=null&&z.setCenter(ne.center),ne.orthographicSize!=null&&z.setOrthographicSize(ne.orthographicSize),z._needsUpdate=!0})).start(E.easing||"linear")},stopAllAnimation:function(){for(var E=0;E<this._animators.length;E++)this._animators[E].stop();this._animators.length=0},_isAnimating:function(){return this._animators.length>0},_update:function(E){if(this._rotating){var b=(this.autoRotateDirection==="cw"?1:-1)*this.autoRotateSpeed/180*Math.PI;this._phi-=b*E/1e3,this._needsUpdate=!0}else this._rotateVelocity.len()>0&&(this._needsUpdate=!0);(Math.abs(this._zoomSpeed)>.1||this._panVelocity.len()>0)&&(this._needsUpdate=!0),this._needsUpdate&&(E=Math.min(E,50),this._updateDistanceOrSize(E),this._updatePan(E),this._updateRotate(E),this._updateTransform(),this.getCamera().update(),this.zr&&this.zr.refresh(),this.trigger("update"),this._needsUpdate=!1)},_updateRotate:function(E){var b=this._rotateVelocity;this._phi=b.y*E/20+this._phi,this._theta=b.x*E/20+this._theta,this.setAlpha(this.getAlpha()),this.setBeta(this.getBeta()),this._vectorDamping(b,Math.pow(this.damping,E/16))},_updateDistanceOrSize:function(E){this._projection==="perspective"?this._setDistance(this._distance+this._zoomSpeed*E/20):this._setOrthoSize(this._orthoSize+this._zoomSpeed*E/20),this._zoomSpeed*=Math.pow(this.damping,E/16)},_setDistance:function(E){this._distance=Math.max(Math.min(E,this.maxDistance),this.minDistance)},_setOrthoSize:function(E){this._orthoSize=Math.max(Math.min(E,this.maxOrthographicSize),this.minOrthographicSize);var b=this.getCamera(),z=this._orthoSize,ne=z/this.viewGL.viewport.height*this.viewGL.viewport.width;b.left=-ne/2,b.right=ne/2,b.top=z/2,b.bottom=-z/2},_updatePan:function(E){var b=this._panVelocity,z=this._distance,ne=this.getCamera(),oe=ne.worldTransform.y,se=ne.worldTransform.x;this._center.scaleAndAdd(se,-b.x*z/200).scaleAndAdd(oe,-b.y*z/200),this._vectorDamping(b,0)},_updateTransform:function(){var E=this.getCamera(),b=new ue.a,z=this._theta+Math.PI/2,ne=this._phi+Math.PI/2,oe=Math.sin(z);b.x=oe*Math.cos(ne),b.y=-Math.cos(z),b.z=oe*Math.sin(ne),E.position.copy(this._center).scaleAndAdd(b,this._distance),E.rotation.identity().rotateY(-this._phi).rotateX(-this._theta)},_startCountingStill:function(){clearTimeout(this._stillTimeout);var E=this.autoRotateAfterStill,b=this;!isNaN(E)&&E>0&&(this._stillTimeout=setTimeout(function(){b._rotating=!0},E*1e3))},_vectorDamping:function(E,b){var z=E.len();z=z*b,z<1e-4&&(z=0),E.normalize().scale(z)},_decomposeTransform:function(){if(this.getCamera()){this.getCamera().updateWorldTransform();var E=this.getCamera().worldTransform.z,b=Math.asin(E.y),z=Math.atan2(E.x,E.z);this._theta=b,this._phi=-z,this.setBeta(this.getBeta()),this.setAlpha(this.getAlpha()),this.getCamera().aspect?this._setDistance(this.getCamera().position.dist(this._center)):this._setOrthoSize(this.getCamera().top-this.getCamera().bottom)}},_mouseDownHandler:function(E){if(!E.target&&!this._isAnimating()){var b=E.offsetX,z=E.offsetY;this.viewGL&&!this.viewGL.containPoint(b,z)||(this.zr.on("mousemove",this._mouseMoveHandler),this.zr.on("mouseup",this._mouseUpHandler),E.event.targetTouches?E.event.targetTouches.length===1&&(this._mode="rotate"):E.event.button===ae[this.rotateMouseButton]?this._mode="rotate":E.event.button===ae[this.panMouseButton]?this._mode="pan":this._mode="",this._rotateVelocity.set(0,0),this._rotating=!1,this.autoRotate&&this._startCountingStill(),this._mouseX=E.offsetX,this._mouseY=E.offsetY)}},_mouseMoveHandler:function(E){if(!(E.target&&E.target.__isGLToZRProxy)&&!this._isAnimating()){var b=ie(this.panSensitivity),z=ie(this.rotateSensitivity);this._mode==="rotate"?(this._rotateVelocity.y=(E.offsetX-this._mouseX)/this.zr.getHeight()*2*z[0],this._rotateVelocity.x=(E.offsetY-this._mouseY)/this.zr.getWidth()*2*z[1]):this._mode==="pan"&&(this._panVelocity.x=(E.offsetX-this._mouseX)/this.zr.getWidth()*b[0]*400,this._panVelocity.y=(-E.offsetY+this._mouseY)/this.zr.getHeight()*b[1]*400),this._mouseX=E.offsetX,this._mouseY=E.offsetY,E.event.preventDefault()}},_mouseWheelHandler:function(E){if(!this._isAnimating()){var b=E.event.wheelDelta||-E.event.detail;this._zoomHandler(E,b)}},_pinchHandler:function(E){this._isAnimating()||(this._zoomHandler(E,E.pinchScale>1?1:-1),this._mode="")},_zoomHandler:function(E,b){if(b!==0){var z=E.offsetX,ne=E.offsetY;if(!(this.viewGL&&!this.viewGL.containPoint(z,ne))){var oe;this._projection==="perspective"?oe=Math.max(Math.max(Math.min(this._distance-this.minDistance,this.maxDistance-this._distance))/20,.5):oe=Math.max(Math.max(Math.min(this._orthoSize-this.minOrthographicSize,this.maxOrthographicSize-this._orthoSize))/20,.5),this._zoomSpeed=(b>0?-1:1)*oe*this.zoomSensitivity,this._rotating=!1,this.autoRotate&&this._mode==="rotate"&&this._startCountingStill(),E.event.preventDefault()}}},_mouseUpHandler:function(){this.zr.off("mousemove",this._mouseMoveHandler),this.zr.off("mouseup",this._mouseUpHandler)},_isRightMouseButtonUsed:function(){return this.rotateMouseButton==="right"||this.panMouseButton==="right"},_contextMenuHandler:function(E){this._isRightMouseButtonUsed()&&E.preventDefault()},_addAnimator:function(E){var b=this._animators;return b.push(E),E.done(function(){var z=b.indexOf(E);z>=0&&b.splice(z,1)}),E}});Object.defineProperty(me.prototype,"autoRotate",{get:function(E){return this._autoRotate},set:function(E){this._autoRotate=E,this._rotating=E}}),Me.a=me},function(Ye,Me,pe){"use strict";Me.a=`@export ecgl.lines3D.vertex
|
|
|
|
|
|
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
|
|
|
|
|
attribute vec3 position: POSITION;
|
|
|
attribute vec4 a_Color : COLOR;
|
|
|
varying vec4 v_Color;
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
gl_Position = worldViewProjection * vec4(position, 1.0);
|
|
|
v_Color = a_Color;
|
|
|
}
|
|
|
|
|
|
@end
|
|
|
|
|
|
@export ecgl.lines3D.fragment
|
|
|
|
|
|
uniform vec4 color : [1.0, 1.0, 1.0, 1.0];
|
|
|
|
|
|
varying vec4 v_Color;
|
|
|
|
|
|
@import clay.util.srgb
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
#ifdef SRGB_DECODE
|
|
|
gl_FragColor = sRGBToLinear(color * v_Color);
|
|
|
#else
|
|
|
gl_FragColor = color * v_Color;
|
|
|
#endif
|
|
|
}
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
@export ecgl.lines3D.clipNear
|
|
|
|
|
|
vec4 clipNear(vec4 p1, vec4 p2) {
|
|
|
float n = (p1.w - near) / (p1.w - p2.w);
|
|
|
return vec4(mix(p1.xy, p2.xy, n), -near, near);
|
|
|
}
|
|
|
|
|
|
@end
|
|
|
|
|
|
@export ecgl.lines3D.expandLine
|
|
|
#ifdef VERTEX_ANIMATION
|
|
|
vec4 prevProj = worldViewProjection * vec4(mix(prevPositionPrev, positionPrev, percent), 1.0);
|
|
|
vec4 currProj = worldViewProjection * vec4(mix(prevPosition, position, percent), 1.0);
|
|
|
vec4 nextProj = worldViewProjection * vec4(mix(prevPositionNext, positionNext, percent), 1.0);
|
|
|
#else
|
|
|
vec4 prevProj = worldViewProjection * vec4(positionPrev, 1.0);
|
|
|
vec4 currProj = worldViewProjection * vec4(position, 1.0);
|
|
|
vec4 nextProj = worldViewProjection * vec4(positionNext, 1.0);
|
|
|
#endif
|
|
|
|
|
|
if (currProj.w < 0.0) {
|
|
|
if (nextProj.w > 0.0) {
|
|
|
currProj = clipNear(currProj, nextProj);
|
|
|
}
|
|
|
else if (prevProj.w > 0.0) {
|
|
|
currProj = clipNear(currProj, prevProj);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
vec2 prevScreen = (prevProj.xy / abs(prevProj.w) + 1.0) * 0.5 * viewport.zw;
|
|
|
vec2 currScreen = (currProj.xy / abs(currProj.w) + 1.0) * 0.5 * viewport.zw;
|
|
|
vec2 nextScreen = (nextProj.xy / abs(nextProj.w) + 1.0) * 0.5 * viewport.zw;
|
|
|
|
|
|
vec2 dir;
|
|
|
float len = offset;
|
|
|
if (position == positionPrev) {
|
|
|
dir = normalize(nextScreen - currScreen);
|
|
|
}
|
|
|
else if (position == positionNext) {
|
|
|
dir = normalize(currScreen - prevScreen);
|
|
|
}
|
|
|
else {
|
|
|
vec2 dirA = normalize(currScreen - prevScreen);
|
|
|
vec2 dirB = normalize(nextScreen - currScreen);
|
|
|
|
|
|
vec2 tanget = normalize(dirA + dirB);
|
|
|
|
|
|
float miter = 1.0 / max(dot(tanget, dirA), 0.5);
|
|
|
len *= miter;
|
|
|
dir = tanget;
|
|
|
}
|
|
|
|
|
|
dir = vec2(-dir.y, dir.x) * len;
|
|
|
currScreen += dir;
|
|
|
|
|
|
currProj.xy = (currScreen / viewport.zw - 0.5) * 2.0 * abs(currProj.w);
|
|
|
@end
|
|
|
|
|
|
|
|
|
@export ecgl.meshLines3D.vertex
|
|
|
|
|
|
attribute vec3 position: POSITION;
|
|
|
attribute vec3 positionPrev;
|
|
|
attribute vec3 positionNext;
|
|
|
attribute float offset;
|
|
|
attribute vec4 a_Color : COLOR;
|
|
|
|
|
|
#ifdef VERTEX_ANIMATION
|
|
|
attribute vec3 prevPosition;
|
|
|
attribute vec3 prevPositionPrev;
|
|
|
attribute vec3 prevPositionNext;
|
|
|
uniform float percent : 1.0;
|
|
|
#endif
|
|
|
|
|
|
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
|
|
uniform vec4 viewport : VIEWPORT;
|
|
|
uniform float near : NEAR;
|
|
|
|
|
|
varying vec4 v_Color;
|
|
|
|
|
|
@import ecgl.common.wireframe.vertexHeader
|
|
|
|
|
|
@import ecgl.lines3D.clipNear
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
@import ecgl.lines3D.expandLine
|
|
|
|
|
|
gl_Position = currProj;
|
|
|
|
|
|
v_Color = a_Color;
|
|
|
|
|
|
@import ecgl.common.wireframe.vertexMain
|
|
|
}
|
|
|
@end
|
|
|
|
|
|
|
|
|
@export ecgl.meshLines3D.fragment
|
|
|
|
|
|
uniform vec4 color : [1.0, 1.0, 1.0, 1.0];
|
|
|
|
|
|
varying vec4 v_Color;
|
|
|
|
|
|
@import ecgl.common.wireframe.fragmentHeader
|
|
|
|
|
|
@import clay.util.srgb
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
#ifdef SRGB_DECODE
|
|
|
gl_FragColor = sRGBToLinear(color * v_Color);
|
|
|
#else
|
|
|
gl_FragColor = color * v_Color;
|
|
|
#endif
|
|
|
|
|
|
@import ecgl.common.wireframe.fragmentMain
|
|
|
}
|
|
|
|
|
|
@end`},function(Ye,Me,pe){var Oe=pe(12),ve=pe(75),ue=pe(78),fe=ue.parsePercent,he=pe(149),le=Oe.each,ae=["left","right","top","bottom","width","height"],ie=[["width","left","right"],["height","top","bottom"]];function me(ce,ge,_e,ye,be){var Se=0,Be=0;ye==null&&(ye=1/0),be==null&&(be=1/0);var Ae=0;ge.eachChild(function(we,Ue){var Pe=we.position,ze=we.getBoundingRect(),Ke=ge.childAt(Ue+1),Ne=Ke&&Ke.getBoundingRect(),Re,$e;if(ce==="horizontal"){var nt=ze.width+(Ne?-Ne.x+ze.x:0);Re=Se+nt,Re>ye||we.newline?(Se=0,Re=nt,Be+=Ae+_e,Ae=ze.height):Ae=Math.max(Ae,ze.height)}else{var ut=ze.height+(Ne?-Ne.y+ze.y:0);$e=Be+ut,$e>be||we.newline?(Se+=Ae+_e,Be=0,$e=ut,Ae=ze.width):Ae=Math.max(Ae,ze.width)}we.newline||(Pe[0]=Se,Pe[1]=Be,ce==="horizontal"?Se=Re+_e:Be=$e+_e)})}var E=me,b=Oe.curry(me,"vertical"),z=Oe.curry(me,"horizontal");function ne(ce,ge,_e){var ye=ge.width,be=ge.height,Se=fe(ce.x,ye),Be=fe(ce.y,be),Ae=fe(ce.x2,ye),we=fe(ce.y2,be);return(isNaN(Se)||isNaN(parseFloat(ce.x)))&&(Se=0),(isNaN(Ae)||isNaN(parseFloat(ce.x2)))&&(Ae=ye),(isNaN(Be)||isNaN(parseFloat(ce.y)))&&(Be=0),(isNaN(we)||isNaN(parseFloat(ce.y2)))&&(we=be),_e=he.normalizeCssArray(_e||0),{width:Math.max(Ae-Se-_e[1]-_e[3],0),height:Math.max(we-Be-_e[0]-_e[2],0)}}function oe(ce,ge,_e){_e=he.normalizeCssArray(_e||0);var ye=ge.width,be=ge.height,Se=fe(ce.left,ye),Be=fe(ce.top,be),Ae=fe(ce.right,ye),we=fe(ce.bottom,be),Ue=fe(ce.width,ye),Pe=fe(ce.height,be),ze=_e[2]+_e[0],Ke=_e[1]+_e[3],Ne=ce.aspect;switch(isNaN(Ue)&&(Ue=ye-Ae-Ke-Se),isNaN(Pe)&&(Pe=be-we-ze-Be),Ne!=null&&(isNaN(Ue)&&isNaN(Pe)&&(Ne>ye/be?Ue=ye*.8:Pe=be*.8),isNaN(Ue)&&(Ue=Ne*Pe),isNaN(Pe)&&(Pe=Ue/Ne)),isNaN(Se)&&(Se=ye-Ae-Ue-Ke),isNaN(Be)&&(Be=be-we-Pe-ze),ce.left||ce.right){case"center":Se=ye/2-Ue/2-_e[3];break;case"right":Se=ye-Ue-Ke;break}switch(ce.top||ce.bottom){case"middle":case"center":Be=be/2-Pe/2-_e[0];break;case"bottom":Be=be-Pe-ze;break}Se=Se||0,Be=Be||0,isNaN(Ue)&&(Ue=ye-Ke-Se-(Ae||0)),isNaN(Pe)&&(Pe=be-ze-Be-(we||0));var Re=new ve(Se+_e[3],Be+_e[0],Ue,Pe);return Re.margin=_e,Re}function se(ce,ge,_e,ye,be){var Se=!be||!be.hv||be.hv[0],Be=!be||!be.hv||be.hv[1],Ae=be&&be.boundingMode||"all";if(!(!Se&&!Be)){var we;if(Ae==="raw")we=ce.type==="group"?new ve(0,0,+ge.width||0,+ge.height||0):ce.getBoundingRect();else if(we=ce.getBoundingRect(),ce.needLocalTransform()){var Ue=ce.getLocalTransform();we=we.clone(),we.applyTransform(Ue)}ge=oe(Oe.defaults({width:we.width,height:we.height},ge),_e,ye);var Pe=ce.position,ze=Se?ge.x-we.x:0,Ke=Be?ge.y-we.y:0;ce.attr("position",Ae==="raw"?[ze,Ke]:[Pe[0]+ze,Pe[1]+Ke])}}function de(ce,ge){return ce[ie[ge][0]]!=null||ce[ie[ge][1]]!=null&&ce[ie[ge][2]]!=null}function a(ce,ge,_e){!Oe.isObject(_e)&&(_e={});var ye=_e.ignoreSize;!Oe.isArray(ye)&&(ye=[ye,ye]);var be=Be(ie[0],0),Se=Be(ie[1],1);Ue(ie[0],ce,be),Ue(ie[1],ce,Se);function Be(Pe,ze){var Ke={},Ne=0,Re={},$e=0,nt=2;if(le(Pe,function(rt){Re[rt]=ce[rt]}),le(Pe,function(rt){Ae(ge,rt)&&(Ke[rt]=Re[rt]=ge[rt]),we(Ke,rt)&&Ne++,we(Re,rt)&&$e++}),ye[ze])return we(ge,Pe[1])?Re[Pe[2]]=null:we(ge,Pe[2])&&(Re[Pe[1]]=null),Re;if($e===nt||!Ne)return Re;if(Ne>=nt)return Ke;for(var ut=0;ut<Pe.length;ut++){var Qe=Pe[ut];if(!Ae(Ke,Qe)&&Ae(ce,Qe)){Ke[Qe]=ce[Qe];break}}return Ke}function Ae(Pe,ze){return Pe.hasOwnProperty(ze)}function we(Pe,ze){return Pe[ze]!=null&&Pe[ze]!=="auto"}function Ue(Pe,ze,Ke){le(Pe,function(Ne){ze[Ne]=Ke[Ne]})}}function x(ce){return re({},ce)}function re(ce,ge){return ge&&ce&&le(ae,function(_e){ge.hasOwnProperty(_e)&&(ce[_e]=ge[_e])}),ce}Me.LOCATION_PARAMS=ae,Me.HV_NAMES=ie,Me.box=E,Me.vbox=b,Me.hbox=z,Me.getAvailableSize=ne,Me.getLayoutRect=oe,Me.positionElement=se,Me.sizeCalculable=de,Me.mergeLayoutParam=a,Me.getLayoutParams=x,Me.copyLayoutParams=re},function(Ye,Me,pe){"use strict";var Oe=pe(8),ve=Oe.a.extend(function(){return{name:"",inputLinks:{},outputLinks:{},_prevOutputTextures:{},_outputTextures:{},_outputReferences:{},_rendering:!1,_rendered:!1,_compositor:null}},{updateParameter:function(ue,fe){var he=this.outputs[ue],le=he.parameters,ae=he._parametersCopy;if(ae||(ae=he._parametersCopy={}),le)for(var ie in le)ie!=="width"&&ie!=="height"&&(ae[ie]=le[ie]);var me,E;return le.width instanceof Function?me=le.width.call(this,fe):me=le.width,le.height instanceof Function?E=le.height.call(this,fe):E=le.height,(ae.width!==me||ae.height!==E)&&this._outputTextures[ue]&&this._outputTextures[ue].dispose(fe.gl),ae.width=me,ae.height=E,ae},setParameter:function(ue,fe){},getParameter:function(ue){},setParameters:function(ue){for(var fe in ue)this.setParameter(fe,ue[fe])},render:function(){},getOutput:function(ue,fe){if(fe==null)return fe=ue,this._outputTextures[fe];var he=this.outputs[fe];if(he)return this._rendered?he.outputLastFrame?this._prevOutputTextures[fe]:this._outputTextures[fe]:this._rendering?(this._prevOutputTextures[fe]||(this._prevOutputTextures[fe]=this._compositor.allocateTexture(he.parameters||{})),this._prevOutputTextures[fe]):(this.render(ue),this._outputTextures[fe])},removeReference:function(ue){if(this._outputReferences[ue]--,this._outputReferences[ue]===0){var fe=this.outputs[ue];fe.keepLastFrame?(this._prevOutputTextures[ue]&&this._compositor.releaseTexture(this._prevOutputTextures[ue]),this._prevOutputTextures[ue]=this._outputTextures[ue]):this._compositor.releaseTexture(this._outputTextures[ue])}},link:function(ue,fe,he){this.inputLinks[ue]={node:fe,pin:he},fe.outputLinks[he]||(fe.outputLinks[he]=[]),fe.outputLinks[he].push({node:this,pin:ue}),this.pass.material.enableTexture(ue)},clear:function(){this.inputLinks={},this.outputLinks={}},updateReference:function(ue){if(!this._rendering){this._rendering=!0;for(var fe in this.inputLinks){var he=this.inputLinks[fe];he.node.updateReference(he.pin)}this._rendering=!1}ue&&this._outputReferences[ue]++},beforeFrame:function(){this._rendered=!1;for(var ue in this.outputLinks)this._outputReferences[ue]=0},afterFrame:function(){for(var ue in this.outputLinks)if(this._outputReferences[ue]>0){var fe=this.outputs[ue];fe.keepLastFrame?(this._prevOutputTextures[ue]&&this._compositor.releaseTexture(this._prevOutputTextures[ue]),this._prevOutputTextures[ue]=this._outputTextures[ue]):this._compositor.releaseTexture(this._outputTextures[ue])}}});Me.a=ve},function(Ye,Me,pe){"use strict";function Oe(ve,ue){for(var fe=0,he=1/ue,le=ve;le>0;)fe=fe+he*(le%ue),le=Math.floor(le/ue),he=he/ue;return fe}Me.a=Oe},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe);Me.a=function(ue,fe,he){he=he||ue.getSource();var le=fe||ve.a.getCoordinateSystemDimensions(ue.get("coordinateSystem"))||["x","y","z"],ae=ve.a.helper.createDimensions(he,{dimensionsDefine:he.dimensionsDefine||ue.get("dimensions"),encodeDefine:he.encodeDefine||ue.get("encode"),coordDimensions:le.map(function(me){var E=ue.getReferringComponents(me+"Axis3D")[0];return{type:E&&E.get("type")==="category"?"ordinal":"float",name:me,stackable:me==="z"}})});ue.get("coordinateSystem")==="cartesian3D"&&ae.forEach(function(me){if(le.indexOf(me.coordDim)>=0){var E=ue.getReferringComponents(me.coordDim+"Axis3D")[0];E&&E.get("type")==="category"&&(me.ordinalMeta=E.getOrdinalMeta())}});var ie=new ve.a.List(ae,ue);return ie.initData(he),ie}},function(Ye,Me){function pe(Oe,ve,ue){return{seriesType:Oe,performRawSeries:!0,reset:function(fe,he,le){var ae=fe.getData(),ie=fe.get("symbol")||ve,me=fe.get("symbolSize");if(ae.setVisual({legendSymbol:ue||ie,symbol:ie,symbolSize:me}),he.isSeriesFiltered(fe))return;var E=typeof me=="function";function b(z,ne){if(typeof me=="function"){var oe=fe.getRawValue(ne),se=fe.getDataParams(ne);z.setItemVisual(ne,"symbolSize",me(oe,se))}if(z.hasItemOption){var de=z.getItemModel(ne),a=de.getShallow("symbol",!0),x=de.getShallow("symbolSize",!0);a!=null&&z.setItemVisual(ne,"symbol",a),x!=null&&z.setItemVisual(ne,"symbolSize",x)}}return{dataEach:ae.hasItemOption||E?b:null}}}}Ye.exports=pe},function(Ye,Me,pe){"use strict";var Oe=pe(8),ve=pe(92),ue=pe(11),fe=pe(18),he=pe(15),le=pe(9),ae=pe(17),ie=pe(23),me=pe(96),E=pe(7),b=pe(98),z=pe(63),ne=pe(1),oe=pe.n(ne);E.a.import(b.a),E.a.import(z.a);var se=oe.a.mat4,de=oe.a.vec3,a=se.create,x={};function re(ye){return ye.material}function ce(){}var ge=Oe.a.extend(function(){return{canvas:null,_width:100,_height:100,devicePixelRatio:window.devicePixelRatio||1,clearColor:[0,0,0,0],clearBit:17664,alpha:!0,depth:!0,stencil:!1,antialias:!0,premultipliedAlpha:!0,preserveDrawingBuffer:!1,throwError:!0,gl:null,viewport:{},__currentFrameBuffer:null,_viewportStack:[],_clearStack:[],_sceneRendering:null}},function(){this.canvas||(this.canvas=document.createElement("canvas"));var ye=this.canvas;try{var be={alpha:this.alpha,depth:this.depth,stencil:this.stencil,antialias:this.antialias,premultipliedAlpha:this.premultipliedAlpha,preserveDrawingBuffer:this.preserveDrawingBuffer};if(this.gl=ye.getContext("webgl",be)||ye.getContext("experimental-webgl",be),!this.gl)throw new Error;this._glinfo=new ve.a(this.gl),this.gl.targetRenderer&&console.error("Already created a renderer"),this.gl.targetRenderer=this,this.resize()}catch(Se){throw"Error creating WebGL Context "+Se}this._programMgr=new me.a(this)},{resize:function(ye,be){var Se=this.canvas,Be=this.devicePixelRatio;ye!=null?(Se.style.width=ye+"px",Se.style.height=be+"px",Se.width=ye*Be,Se.height=be*Be,this._width=ye,this._height=be):(this._width=Se.width/Be,this._height=Se.height/Be),this.setViewport(0,0,this._width,this._height)},getWidth:function(){return this._width},getHeight:function(){return this._height},getViewportAspect:function(){var ye=this.viewport;return ye.width/ye.height},setDevicePixelRatio:function(ye){this.devicePixelRatio=ye,this.resize(this._width,this._height)},getDevicePixelRatio:function(){return this.devicePixelRatio},getGLExtension:function(ye){return this._glinfo.getExtension(ye)},getGLParameter:function(ye){return this._glinfo.getParameter(ye)},setViewport:function(ye,be,Se,Be,Ae){if(typeof ye=="object"){var we=ye;ye=we.x,be=we.y,Se=we.width,Be=we.height,Ae=we.devicePixelRatio}Ae=Ae||this.devicePixelRatio,this.gl.viewport(ye*Ae,be*Ae,Se*Ae,Be*Ae),this.viewport={x:ye,y:be,width:Se,height:Be,devicePixelRatio:Ae}},saveViewport:function(){this._viewportStack.push(this.viewport)},restoreViewport:function(){this._viewportStack.length>0&&this.setViewport(this._viewportStack.pop())},saveClear:function(){this._clearStack.push({clearBit:this.clearBit,clearColor:this.clearColor})},restoreClear:function(){if(this._clearStack.length>0){var ye=this._clearStack.pop();this.clearColor=ye.clearColor,this.clearBit=ye.clearBit}},bindSceneRendering:function(ye){this._sceneRendering=ye},render:function(ye,be,Se,Be){var Ae=this.gl,we=this.clearColor;if(this.clearBit){Ae.colorMask(!0,!0,!0,!0),Ae.depthMask(!0);var Ue=this.viewport,Pe=!1,ze=Ue.devicePixelRatio;(Ue.width!==this._width||Ue.height!==this._height||ze&&ze!==this.devicePixelRatio||Ue.x||Ue.y)&&(Pe=!0,Ae.enable(Ae.SCISSOR_TEST),Ae.scissor(Ue.x*ze,Ue.y*ze,Ue.width*ze,Ue.height*ze)),Ae.clearColor(we[0],we[1],we[2],we[3]),Ae.clear(this.clearBit),Pe&&Ae.disable(Ae.SCISSOR_TEST)}if(Se||ye.update(!1),be=be||ye.getMainCamera(),!be){console.error("Can't find camera in the scene.");return}be.getScene()||be.update(!0),this._sceneRendering=ye,ye.viewBoundingBoxLastFrame.min.set(1/0,1/0,1/0),ye.viewBoundingBoxLastFrame.max.set(-1/0,-1/0,-1/0);var Ke=this.cullRenderList(ye.opaqueList,ye,be),Ne=this.cullRenderList(ye.transparentList,ye,be),Re=ye.material;ye.trigger("beforerender",this,ye,be),Be?(this.renderPreZ(Ke,ye,be),Ae.depthFunc(Ae.LEQUAL)):Ae.depthFunc(Ae.LESS);for(var $e=a(),nt=de.create(),ut=0;ut<Ne.length;ut++){var Qe=Ne[ut];se.multiplyAffine($e,be.viewMatrix.array,Qe.worldTransform.array),de.transformMat4(nt,Qe.position.array,$e),Qe.__depth=nt[2]}var rt=this.renderPass(Ke,be,{getMaterial:function(Ft){return Re||Ft.material},sortCompare:this.opaqueSortCompare}),pt=this.renderPass(Ne,be,{getMaterial:function(Ft){return Re||Ft.material},sortCompare:this.transparentSortCompare}),At={};for(var gt in rt)At[gt]=rt[gt]+pt[gt];return ye.trigger("afterrender",this,ye,be,At),this._sceneRendering=null,At},getProgram:function(ye,be,Se){return be=be||ye.material,this._programMgr.getProgram(ye,be,Se)},validateProgram:function(ye){if(ye.__error){var be=ye.__error;if(x[ye.__uid__])return;if(x[ye.__uid__]=!0,this.throwError)throw new Error(be);this.trigger("error",be)}},updatePrograms:function(ye,be,Se){var Be=Se&&Se.getMaterial||re;be=be||null;for(var Ae=0;Ae<ye.length;Ae++){var we=ye[Ae],Ue=Be.call(this,we);if(Ae>0){var Pe=ye[Ae-1],ze=Pe.joints?Pe.joints.length:0,Ke=we.joints.length?we.joints.length:0;if(Ke===ze&&we.material===Pe.material&&we.lightGroup===Pe.lightGroup){we.__program=Pe.__program;continue}}var Ne=this._programMgr.getProgram(we,Ue,be);this.validateProgram(Ne),we.__program=Ne}},cullRenderList:function(ye,be,Se){for(var Be=[],Ae=0;Ae<ye.length;Ae++){var we=ye[Ae],Ue=we.isSkinnedMesh()?_e.IDENTITY:we.worldTransform.array,Pe=we.geometry;se.multiplyAffine(_e.WORLDVIEW,Se.viewMatrix.array,Ue),!(Pe.boundingBox&&this.isFrustumCulled(we,be,Se,_e.WORLDVIEW,Se.projectionMatrix.array))&&Be.push(we)}return Be},renderPass:function(ye,be,Se){this.trigger("beforerenderpass",this,ye,be,Se);var Be={triangleCount:0,vertexCount:0,drawCallCount:0,meshCount:ye.length,renderedMeshCount:0};Se=Se||{},Se.getMaterial=Se.getMaterial||re,Se.beforeRender=Se.beforeRender||ce,Se.afterRender=Se.afterRender||ce,this.updatePrograms(ye,this._sceneRendering,Se),Se.sortCompare&&ye.sort(Se.sortCompare);var Ae=this.viewport,we=Ae.devicePixelRatio,Ue=[Ae.x*we,Ae.y*we,Ae.width*we,Ae.height*we],Pe=this.devicePixelRatio,ze=this.__currentFrameBuffer?[this.__currentFrameBuffer.getTextureWidth(),this.__currentFrameBuffer.getTextureHeight()]:[this._width*Pe,this._height*Pe],Ke=[Ue[2],Ue[3]],Ne=Date.now();se.copy(_e.VIEW,be.viewMatrix.array),se.copy(_e.PROJECTION,be.projectionMatrix.array),se.multiply(_e.VIEWPROJECTION,be.projectionMatrix.array,_e.VIEW),se.copy(_e.VIEWINVERSE,be.worldTransform.array),se.invert(_e.PROJECTIONINVERSE,_e.PROJECTION),se.invert(_e.VIEWPROJECTIONINVERSE,_e.VIEWPROJECTION);for(var Re=this.gl,$e=this._sceneRendering,nt,ut,Qe,rt,pt,At,gt,Ft,Ct=0;Ct<ye.length;Ct++){var Yt=ye[Ct];if(!(Se.ifRender&&!Se.ifRender(Yt))){var zt=Yt.isSkinnedMesh()?_e.IDENTITY:Yt.worldTransform.array,Xe=Se.getMaterial.call(this,Yt),Fe=Yt.__program,Le=Xe.shader;se.copy(_e.WORLD,zt),se.multiply(_e.WORLDVIEWPROJECTION,_e.VIEWPROJECTION,zt),(Le.matrixSemantics.WORLDINVERSE||Le.matrixSemantics.WORLDINVERSETRANSPOSE)&&se.invert(_e.WORLDINVERSE,zt),(Le.matrixSemantics.WORLDVIEWINVERSE||Le.matrixSemantics.WORLDVIEWINVERSETRANSPOSE)&&se.invert(_e.WORLDVIEWINVERSE,_e.WORLDVIEW),(Le.matrixSemantics.WORLDVIEWPROJECTIONINVERSE||Le.matrixSemantics.WORLDVIEWPROJECTIONINVERSETRANSPOSE)&&se.invert(_e.WORLDVIEWPROJECTIONINVERSE,_e.WORLDVIEWPROJECTION),Yt.beforeRender(this),Se.beforeRender.call(this,Yt,Xe,nt);var Ze=Fe!==ut;Ze?(Fe.bind(this),Fe.setUniformOfSemantic(Re,"VIEWPORT",Ue),Fe.setUniformOfSemantic(Re,"WINDOW_SIZE",ze),Fe.setUniformOfSemantic(Re,"NEAR",be.near),Fe.setUniformOfSemantic(Re,"FAR",be.far),Fe.setUniformOfSemantic(Re,"DEVICEPIXELRATIO",we),Fe.setUniformOfSemantic(Re,"TIME",Ne),Fe.setUniformOfSemantic(Re,"VIEWPORT_SIZE",Ke),$e&&$e.setLightUniforms(Fe,Yt.lightGroup,this)):Fe=ut,(nt!==Xe||Ze)&&(Xe.depthTest!==Qe&&(Xe.depthTest?Re.enable(Re.DEPTH_TEST):Re.disable(Re.DEPTH_TEST),Qe=Xe.depthTest),Xe.depthMask!==rt&&(Re.depthMask(Xe.depthMask),rt=Xe.depthMask),Xe.transparent!==Ft&&(Xe.transparent?Re.enable(Re.BLEND):Re.disable(Re.BLEND),Ft=Xe.transparent),Xe.transparent&&(Xe.blend?Xe.blend(Re):(Re.blendEquationSeparate(Re.FUNC_ADD,Re.FUNC_ADD),Re.blendFuncSeparate(Re.SRC_ALPHA,Re.ONE_MINUS_SRC_ALPHA,Re.ONE,Re.ONE_MINUS_SRC_ALPHA))),Xe.bind(this,Fe,nt,ut),nt=Xe);for(var et=Le.matrixSemanticKeys,He=0;He<et.length;He++){var We=et[He],tt=Le.matrixSemantics[We],at=_e[We];if(tt.isTranspose){var ot=_e[tt.semanticNoTranspose];se.transpose(at,ot)}Fe.setUniform(Re,tt.type,tt.symbol,at)}Yt.cullFace!==At&&(At=Yt.cullFace,Re.cullFace(At)),Yt.frontFace!==gt&&(gt=Yt.frontFace,Re.frontFace(gt)),Yt.culling!==pt&&(pt=Yt.culling,pt?Re.enable(Re.CULL_FACE):Re.disable(Re.CULL_FACE));var ct=Yt.render(this,Xe,Fe);ct&&(Be.triangleCount+=ct.triangleCount,Be.vertexCount+=ct.vertexCount,Be.drawCallCount+=ct.drawCallCount,Be.renderedMeshCount++),Se.afterRender.call(this,Yt,ct),Yt.afterRender(this,ct),ut=Fe}}for(var Ct=0;Ct<ye.length;Ct++)ye[Ct].__program=null;return this.trigger("afterrenderpass",this,ye,be,Se),Be},renderPreZ:function(ye,be,Se){var Be=this.gl,Ae=this._prezMaterial||new ae.a({shader:new E.a(E.a.source("clay.prez.vertex"),E.a.source("clay.prez.fragment"))});this._prezMaterial=Ae,Be.colorMask(!1,!1,!1,!1),Be.depthMask(!0),this.renderPass(ye,Se,{ifRender:function(we){return!we.ignorePreZ},getMaterial:function(){return Ae},sort:this.opaqueSortCompare}),Be.colorMask(!0,!0,!0,!0),Be.depthMask(!0)},isFrustumCulled:function(){var ye=new he.a,be=new le.a;return function(Se,Be,Ae,we,Ue){var Pe=Se.boundingBox||Se.geometry.boundingBox;if(be.array=we,ye.copy(Pe),ye.applyTransform(be),Be&&Se.isRenderable()&&Se.castShadow&&Be.viewBoundingBoxLastFrame.union(ye),Se.frustumCulling&&!Se.isSkinnedMesh()){if(!ye.intersectBoundingBox(Ae.frustum.boundingBox))return!0;be.array=Ue,ye.max.array[2]>0&&ye.min.array[2]<0&&(ye.max.array[2]=-1e-20),ye.applyProjection(be);var ze=ye.min.array,Ke=ye.max.array;if(Ke[0]<-1||ze[0]>1||Ke[1]<-1||ze[1]>1||Ke[2]<-1||ze[2]>1)return!0}return!1}}(),disposeScene:function(ye){this.disposeNode(ye,!0,!0),ye.dispose()},disposeNode:function(ye,be,Se){ye.getParent()&&ye.getParent().remove(ye),ye.traverse(function(Be){Be.geometry&&be&&Be.geometry.dispose(this),Be.dispose&&Be.dispose(this)},this)},disposeGeometry:function(ye){ye.dispose(this)},disposeTexture:function(ye){ye.dispose(this)},disposeFrameBuffer:function(ye){ye.dispose(this)},dispose:function(){},screenToNDC:function(ye,be,Se){Se||(Se=new ie.a),be=this._height-be;var Be=this.viewport,Ae=Se.array;return Ae[0]=(ye-Be.x)/Be.width,Ae[0]=Ae[0]*2-1,Ae[1]=(be-Be.y)/Be.height,Ae[1]=Ae[1]*2-1,Se}});ge.opaqueSortCompare=ge.prototype.opaqueSortCompare=function(ye,be){return ye.renderOrder===be.renderOrder?ye.__program===be.__program?ye.material===be.material?ye.geometry.__uid__-be.geometry.__uid__:ye.material.__uid__-be.material.__uid__:ye.__program&&be.__program?ye.__program.__uid__-be.__program.__uid__:0:ye.renderOrder-be.renderOrder},ge.transparentSortCompare=ge.prototype.transparentSortCompare=function(ye,be){return ye.renderOrder===be.renderOrder?ye.__depth===be.__depth?ye.__program===be.__program?ye.material===be.material?ye.geometry.__uid__-be.geometry.__uid__:ye.material.__uid__-be.material.__uid__:ye.__program&&be.__program?ye.__program.__uid__-be.__program.__uid__:0:ye.__depth-be.__depth:ye.renderOrder-be.renderOrder};var _e={IDENTITY:a(),WORLD:a(),VIEW:a(),PROJECTION:a(),WORLDVIEW:a(),VIEWPROJECTION:a(),WORLDVIEWPROJECTION:a(),WORLDINVERSE:a(),VIEWINVERSE:a(),PROJECTIONINVERSE:a(),WORLDVIEWINVERSE:a(),VIEWPROJECTIONINVERSE:a(),WORLDVIEWPROJECTIONINVERSE:a(),WORLDTRANSPOSE:a(),VIEWTRANSPOSE:a(),PROJECTIONTRANSPOSE:a(),WORLDVIEWTRANSPOSE:a(),VIEWPROJECTIONTRANSPOSE:a(),WORLDVIEWPROJECTIONTRANSPOSE:a(),WORLDINVERSETRANSPOSE:a(),VIEWINVERSETRANSPOSE:a(),PROJECTIONINVERSETRANSPOSE:a(),WORLDVIEWINVERSETRANSPOSE:a(),VIEWPROJECTIONINVERSETRANSPOSE:a(),WORLDVIEWPROJECTIONINVERSETRANSPOSE:a()};ge.COLOR_BUFFER_BIT=ue.a.COLOR_BUFFER_BIT,ge.DEPTH_BUFFER_BIT=ue.a.DEPTH_BUFFER_BIT,ge.STENCIL_BUFFER_BIT=ue.a.STENCIL_BUFFER_BIT,Me.a=ge},function(Ye,Me,pe){"use strict";function Oe(ue,fe){this.action=ue,this.context=fe}var ve={trigger:function(ue){if(this.hasOwnProperty("__handlers__")&&this.__handlers__.hasOwnProperty(ue)){var fe=this.__handlers__[ue],he=fe.length,le=-1,ae=arguments;switch(ae.length){case 1:for(;++le<he;)fe[le].action.call(fe[le].context);return;case 2:for(;++le<he;)fe[le].action.call(fe[le].context,ae[1]);return;case 3:for(;++le<he;)fe[le].action.call(fe[le].context,ae[1],ae[2]);return;case 4:for(;++le<he;)fe[le].action.call(fe[le].context,ae[1],ae[2],ae[3]);return;case 5:for(;++le<he;)fe[le].action.call(fe[le].context,ae[1],ae[2],ae[3],ae[4]);return;default:for(;++le<he;)fe[le].action.apply(fe[le].context,Array.prototype.slice.call(ae,1));return}}},on:function(ue,fe,he){if(!(!ue||!fe)){var le=this.__handlers__||(this.__handlers__={});if(!le[ue])le[ue]=[];else if(this.has(ue,fe))return;var ae=new Oe(fe,he||this);return le[ue].push(ae),this}},once:function(ue,fe,he){if(!ue||!fe)return;var le=this;function ae(){le.off(ue,ae),fe.apply(this,arguments)}return this.on(ue,ae,he)},before:function(ue,fe,he){if(!(!ue||!fe))return ue="before"+ue,this.on(ue,fe,he)},after:function(ue,fe,he){if(!(!ue||!fe))return ue="after"+ue,this.on(ue,fe,he)},success:function(ue,fe){return this.once("success",ue,fe)},error:function(ue,fe){return this.once("error",ue,fe)},off:function(ue,fe){var he=this.__handlers__||(this.__handlers__={});if(!fe){he[ue]=[];return}if(he[ue]){for(var le=he[ue],ae=[],ie=0;ie<le.length;ie++)fe&&le[ie].action!==fe&&ae.push(le[ie]);he[ue]=ae}return this},has:function(ue,fe){var he=this.__handlers__;if(!he||!he[ue])return!1;for(var le=he[ue],ae=0;ae<le.length;ae++)if(le[ae].action===fe)return!0}};Me.a=ve},function(Ye,Me,pe){"use strict";var Oe="__dt__",ve=function(){this._contextId=0,this._caches=[],this._context={}};ve.prototype={use:function(ue,fe){var he=this._caches;he[ue]||(he[ue]={},fe&&(he[ue]=fe())),this._contextId=ue,this._context=he[ue]},put:function(ue,fe){this._context[ue]=fe},get:function(ue){return this._context[ue]},dirty:function(ue){ue=ue||"";var fe=Oe+ue;this.put(fe,!0)},dirtyAll:function(ue){ue=ue||"";for(var fe=Oe+ue,he=this._caches,le=0;le<he.length;le++)he[le]&&(he[le][fe]=!0)},fresh:function(ue){ue=ue||"";var fe=Oe+ue;this.put(fe,!1)},freshAll:function(ue){ue=ue||"";for(var fe=Oe+ue,he=this._caches,le=0;le<he.length;le++)he[le]&&(he[le][fe]=!1)},isDirty:function(ue){ue=ue||"";var fe=Oe+ue,he=this._context;return!he.hasOwnProperty(fe)||he[fe]===!0},deleteContext:function(ue){delete this._caches[ue],this._context={}},delete:function(ue){delete this._context[ue]},clearAll:function(){this._caches={}},getContext:function(){return this._context},eachContext:function(ue,fe){var he=Object.keys(this._caches);he.forEach(function(le){ue&&ue.call(fe,le)})},miss:function(ue){return!this._context.hasOwnProperty(ue)}},ve.prototype.constructor=ve,Me.a=ve},function(Ye,Me,pe){"use strict";var Oe=pe(4),ve=pe(1),ue=pe.n(ve),fe=ue.a.vec3,he=1e-5,le=function(ae,ie){this.origin=ae||new Oe.a,this.direction=ie||new Oe.a};le.prototype={constructor:le,intersectPlane:function(ae,ie){var me=ae.normal.array,E=ae.distance,b=this.origin.array,z=this.direction.array,ne=fe.dot(me,z);if(ne===0)return null;ie||(ie=new Oe.a);var oe=(fe.dot(me,b)-E)/ne;return fe.scaleAndAdd(ie.array,b,z,-oe),ie._dirty=!0,ie},mirrorAgainstPlane:function(ae){var ie=fe.dot(ae.normal.array,this.direction.array);fe.scaleAndAdd(this.direction.array,this.direction.array,ae.normal.array,-ie*2),this.direction._dirty=!0},distanceToPoint:function(){var ae=fe.create();return function(ie){fe.sub(ae,ie,this.origin.array);var me=fe.dot(ae,this.direction.array);if(me<0)return fe.distance(this.origin.array,ie);var E=fe.lenSquared(ae);return Math.sqrt(E-me*me)}}(),intersectSphere:function(){var ae=fe.create();return function(ie,me,E){var b=this.origin.array,z=this.direction.array;ie=ie.array,fe.sub(ae,ie,b);var ne=fe.dot(ae,z),oe=fe.squaredLength(ae),se=oe-ne*ne,de=me*me;if(!(se>de)){var a=Math.sqrt(de-se),x=ne-a,re=ne+a;return E||(E=new Oe.a),x<0?re<0?null:(fe.scaleAndAdd(E.array,b,z,re),E):(fe.scaleAndAdd(E.array,b,z,x),E)}}}(),intersectBoundingBox:function(ae,ie){var me=this.direction.array,E=this.origin.array,b=ae.min.array,z=ae.max.array,ne=1/me[0],oe=1/me[1],se=1/me[2],de,a,x,re,ce,ge;if(ne>=0?(de=(b[0]-E[0])*ne,a=(z[0]-E[0])*ne):(a=(b[0]-E[0])*ne,de=(z[0]-E[0])*ne),oe>=0?(x=(b[1]-E[1])*oe,re=(z[1]-E[1])*oe):(re=(b[1]-E[1])*oe,x=(z[1]-E[1])*oe),de>re||x>a||((x>de||de!==de)&&(de=x),(re<a||a!==a)&&(a=re),se>=0?(ce=(b[2]-E[2])*se,ge=(z[2]-E[2])*se):(ge=(b[2]-E[2])*se,ce=(z[2]-E[2])*se),de>ge||ce>a)||((ce>de||de!==de)&&(de=ce),(ge<a||a!==a)&&(a=ge),a<0))return null;var _e=de>=0?de:a;return ie||(ie=new Oe.a),fe.scaleAndAdd(ie.array,E,me,_e),ie},intersectTriangle:function(){var ae=fe.create(),ie=fe.create(),me=fe.create(),E=fe.create();return function(b,z,ne,oe,se,de){var a=this.direction.array,x=this.origin.array;b=b.array,z=z.array,ne=ne.array,fe.sub(ae,z,b),fe.sub(ie,ne,b),fe.cross(E,ie,a);var re=fe.dot(ae,E);if(oe){if(re>-he)return null}else if(re>-he&&re<he)return null;fe.sub(me,x,b);var ce=fe.dot(E,me)/re;if(ce<0||ce>1)return null;fe.cross(E,ae,me);var ge=fe.dot(a,E)/re;if(ge<0||ge>1||ce+ge>1)return null;fe.cross(E,ae,ie);var _e=-fe.dot(me,E)/re;return _e<0?null:(se||(se=new Oe.a),de&&Oe.a.set(de,1-ce-ge,ce,ge),fe.scaleAndAdd(se.array,x,a,_e),se)}}(),applyTransform:function(ae){Oe.a.add(this.direction,this.direction,this.origin),Oe.a.transformMat4(this.origin,this.origin,ae),Oe.a.transformMat4(this.direction,this.direction,ae),Oe.a.sub(this.direction,this.direction,this.origin),Oe.a.normalize(this.direction,this.direction)},copy:function(ae){Oe.a.copy(this.origin,ae.origin),Oe.a.copy(this.direction,ae.direction)},clone:function(){var ae=new le;return ae.copy(this),ae}},Me.a=le},function(Ye,Me,pe){"use strict";var Oe=pe(1),ve=pe.n(Oe),ue=ve.a.quat,fe=function(ae,ie,me,E){ae=ae||0,ie=ie||0,me=me||0,E=E===void 0?1:E,this.array=ue.fromValues(ae,ie,me,E),this._dirty=!0};fe.prototype={constructor:fe,add:function(ae){return ue.add(this.array,this.array,ae.array),this._dirty=!0,this},calculateW:function(){return ue.calculateW(this.array,this.array),this._dirty=!0,this},set:function(ae,ie,me,E){return this.array[0]=ae,this.array[1]=ie,this.array[2]=me,this.array[3]=E,this._dirty=!0,this},setArray:function(ae){return this.array[0]=ae[0],this.array[1]=ae[1],this.array[2]=ae[2],this.array[3]=ae[3],this._dirty=!0,this},clone:function(){return new fe(this.x,this.y,this.z,this.w)},conjugate:function(){return ue.conjugate(this.array,this.array),this._dirty=!0,this},copy:function(ae){return ue.copy(this.array,ae.array),this._dirty=!0,this},dot:function(ae){return ue.dot(this.array,ae.array)},fromMat3:function(ae){return ue.fromMat3(this.array,ae.array),this._dirty=!0,this},fromMat4:function(){var ae=ve.a.mat3,ie=ae.create();return function(me){return ae.fromMat4(ie,me.array),ae.transpose(ie,ie),ue.fromMat3(this.array,ie),this._dirty=!0,this}}(),identity:function(){return ue.identity(this.array),this._dirty=!0,this},invert:function(){return ue.invert(this.array,this.array),this._dirty=!0,this},len:function(){return ue.len(this.array)},length:function(){return ue.length(this.array)},lerp:function(ae,ie,me){return ue.lerp(this.array,ae.array,ie.array,me),this._dirty=!0,this},mul:function(ae){return ue.mul(this.array,this.array,ae.array),this._dirty=!0,this},mulLeft:function(ae){return ue.multiply(this.array,ae.array,this.array),this._dirty=!0,this},multiply:function(ae){return ue.multiply(this.array,this.array,ae.array),this._dirty=!0,this},multiplyLeft:function(ae){return ue.multiply(this.array,ae.array,this.array),this._dirty=!0,this},normalize:function(){return ue.normalize(this.array,this.array),this._dirty=!0,this},rotateX:function(ae){return ue.rotateX(this.array,this.array,ae),this._dirty=!0,this},rotateY:function(ae){return ue.rotateY(this.array,this.array,ae),this._dirty=!0,this},rotateZ:function(ae){return ue.rotateZ(this.array,this.array,ae),this._dirty=!0,this},rotationTo:function(ae,ie){return ue.rotationTo(this.array,ae.array,ie.array),this._dirty=!0,this},setAxes:function(ae,ie,me){return ue.setAxes(this.array,ae.array,ie.array,me.array),this._dirty=!0,this},setAxisAngle:function(ae,ie){return ue.setAxisAngle(this.array,ae.array,ie),this._dirty=!0,this},slerp:function(ae,ie,me){return ue.slerp(this.array,ae.array,ie.array,me),this._dirty=!0,this},sqrLen:function(){return ue.sqrLen(this.array)},squaredLength:function(){return ue.squaredLength(this.array)},fromEuler:function(ae,ie){return fe.fromEuler(this,ae,ie)},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};var he=Object.defineProperty;if(he){var le=fe.prototype;he(le,"x",{get:function(){return this.array[0]},set:function(ae){this.array[0]=ae,this._dirty=!0}}),he(le,"y",{get:function(){return this.array[1]},set:function(ae){this.array[1]=ae,this._dirty=!0}}),he(le,"z",{get:function(){return this.array[2]},set:function(ae){this.array[2]=ae,this._dirty=!0}}),he(le,"w",{get:function(){return this.array[3]},set:function(ae){this.array[3]=ae,this._dirty=!0}})}fe.add=function(ae,ie,me){return ue.add(ae.array,ie.array,me.array),ae._dirty=!0,ae},fe.set=function(ae,ie,me,E,b){ue.set(ae.array,ie,me,E,b),ae._dirty=!0},fe.copy=function(ae,ie){return ue.copy(ae.array,ie.array),ae._dirty=!0,ae},fe.calculateW=function(ae,ie){return ue.calculateW(ae.array,ie.array),ae._dirty=!0,ae},fe.conjugate=function(ae,ie){return ue.conjugate(ae.array,ie.array),ae._dirty=!0,ae},fe.identity=function(ae){return ue.identity(ae.array),ae._dirty=!0,ae},fe.invert=function(ae,ie){return ue.invert(ae.array,ie.array),ae._dirty=!0,ae},fe.dot=function(ae,ie){return ue.dot(ae.array,ie.array)},fe.len=function(ae){return ue.length(ae.array)},fe.lerp=function(ae,ie,me,E){return ue.lerp(ae.array,ie.array,me.array,E),ae._dirty=!0,ae},fe.slerp=function(ae,ie,me,E){return ue.slerp(ae.array,ie.array,me.array,E),ae._dirty=!0,ae},fe.mul=function(ae,ie,me){return ue.multiply(ae.array,ie.array,me.array),ae._dirty=!0,ae},fe.multiply=fe.mul,fe.rotateX=function(ae,ie,me){return ue.rotateX(ae.array,ie.array,me),ae._dirty=!0,ae},fe.rotateY=function(ae,ie,me){return ue.rotateY(ae.array,ie.array,me),ae._dirty=!0,ae},fe.rotateZ=function(ae,ie,me){return ue.rotateZ(ae.array,ie.array,me),ae._dirty=!0,ae},fe.setAxisAngle=function(ae,ie,me){return ue.setAxisAngle(ae.array,ie.array,me),ae._dirty=!0,ae},fe.normalize=function(ae,ie){return ue.normalize(ae.array,ie.array),ae._dirty=!0,ae},fe.sqrLen=function(ae){return ue.sqrLen(ae.array)},fe.squaredLength=fe.sqrLen,fe.fromMat3=function(ae,ie){return ue.fromMat3(ae.array,ie.array),ae._dirty=!0,ae},fe.setAxes=function(ae,ie,me,E){return ue.setAxes(ae.array,ie.array,me.array,E.array),ae._dirty=!0,ae},fe.rotationTo=function(ae,ie,me){return ue.rotationTo(ae.array,ie.array,me.array),ae._dirty=!0,ae},fe.fromEuler=function(ae,ie,a){ae._dirty=!0,ie=ie.array;var E=ae.array,b=Math.cos(ie[0]/2),z=Math.cos(ie[1]/2),ne=Math.cos(ie[2]/2),oe=Math.sin(ie[0]/2),se=Math.sin(ie[1]/2),de=Math.sin(ie[2]/2),a=(a||"XYZ").toUpperCase();switch(a){case"XYZ":E[0]=oe*z*ne+b*se*de,E[1]=b*se*ne-oe*z*de,E[2]=b*z*de+oe*se*ne,E[3]=b*z*ne-oe*se*de;break;case"YXZ":E[0]=oe*z*ne+b*se*de,E[1]=b*se*ne-oe*z*de,E[2]=b*z*de-oe*se*ne,E[3]=b*z*ne+oe*se*de;break;case"ZXY":E[0]=oe*z*ne-b*se*de,E[1]=b*se*ne+oe*z*de,E[2]=b*z*de+oe*se*ne,E[3]=b*z*ne-oe*se*de;break;case"ZYX":E[0]=oe*z*ne-b*se*de,E[1]=b*se*ne+oe*z*de,E[2]=b*z*de-oe*se*ne,E[3]=b*z*ne+oe*se*de;break;case"YZX":E[0]=oe*z*ne+b*se*de,E[1]=b*se*ne+oe*z*de,E[2]=b*z*de-oe*se*ne,E[3]=b*z*ne-oe*se*de;break;case"XZY":E[0]=oe*z*ne-b*se*de,E[1]=b*se*ne-oe*z*de,E[2]=b*z*de+oe*se*ne,E[3]=b*z*ne+oe*se*de;break}},Me.a=fe},function(Ye,Me,pe){"use strict";var Oe=pe(28),ve=pe(9),ue=pe(52),fe=pe(49),he=pe(1),le=pe.n(he),ae=le.a.vec3,ie=le.a.vec4,me=Oe.a.extend(function(){return{projectionMatrix:new ve.a,invProjectionMatrix:new ve.a,viewMatrix:new ve.a,frustum:new ue.a}},function(){this.update(!0)},{update:function(E){Oe.a.prototype.update.call(this,E),ve.a.invert(this.viewMatrix,this.worldTransform),this.updateProjectionMatrix(),ve.a.invert(this.invProjectionMatrix,this.projectionMatrix),this.frustum.setFromProjection(this.projectionMatrix)},setViewMatrix:function(E){ve.a.copy(this.viewMatrix,E),ve.a.invert(this.worldTransform,E),this.decomposeWorldTransform()},decomposeProjectionMatrix:function(){},setProjectionMatrix:function(E){ve.a.copy(this.projectionMatrix,E),ve.a.invert(this.invProjectionMatrix,E),this.decomposeProjectionMatrix()},updateProjectionMatrix:function(){},castRay:function(){var E=ie.create();return function(b,z){var ne=z!==void 0?z:new fe.a,oe=b.array[0],se=b.array[1];return ie.set(E,oe,se,-1,1),ie.transformMat4(E,E,this.invProjectionMatrix.array),ie.transformMat4(E,E,this.worldTransform.array),ae.scale(ne.origin.array,E,1/E[3]),ie.set(E,oe,se,1,1),ie.transformMat4(E,E,this.invProjectionMatrix.array),ie.transformMat4(E,E,this.worldTransform.array),ae.scale(E,E,1/E[3]),ae.sub(ne.direction.array,E,ne.origin.array),ae.normalize(ne.direction.array,ne.direction.array),ne.direction._dirty=!0,ne.origin._dirty=!0,ne}}()});Me.a=me},function(Ye,Me,pe){"use strict";var Oe=pe(4),ve=pe(15),ue=pe(67),fe=pe(1),he=pe.n(fe),le=he.a.vec3,ae=le.set,ie=le.copy,me=le.transformMat4,E=Math.min,b=Math.max,z=function(){this.planes=[];for(var ne=0;ne<6;ne++)this.planes.push(new ue.a);this.boundingBox=new ve.a,this.vertices=[];for(var ne=0;ne<8;ne++)this.vertices[ne]=le.fromValues(0,0,0)};z.prototype={setFromProjection:function(ne){var oe=this.planes,se=ne.array,de=se[0],a=se[1],x=se[2],re=se[3],ce=se[4],ge=se[5],_e=se[6],ye=se[7],be=se[8],Se=se[9],Be=se[10],Ae=se[11],we=se[12],Ue=se[13],Pe=se[14],ze=se[15];ae(oe[0].normal.array,re-de,ye-ce,Ae-be),oe[0].distance=-(ze-we),oe[0].normalize(),ae(oe[1].normal.array,re+de,ye+ce,Ae+be),oe[1].distance=-(ze+we),oe[1].normalize(),ae(oe[2].normal.array,re+a,ye+ge,Ae+Se),oe[2].distance=-(ze+Ue),oe[2].normalize(),ae(oe[3].normal.array,re-a,ye-ge,Ae-Se),oe[3].distance=-(ze-Ue),oe[3].normalize(),ae(oe[4].normal.array,re-x,ye-_e,Ae-Be),oe[4].distance=-(ze-Pe),oe[4].normalize(),ae(oe[5].normal.array,re+x,ye+_e,Ae+Be),oe[5].distance=-(ze+Pe),oe[5].normalize();var Ke=this.boundingBox;if(ze===0){var Ne=ge/de,Re=-Pe/(Be-1),$e=-Pe/(Be+1),nt=-$e/ge,ut=-Re/ge;Ke.min.set(-nt*Ne,-nt,$e),Ke.max.set(nt*Ne,nt,Re);var Qe=this.vertices;ae(Qe[0],-nt*Ne,-nt,$e),ae(Qe[1],-nt*Ne,nt,$e),ae(Qe[2],nt*Ne,-nt,$e),ae(Qe[3],nt*Ne,nt,$e),ae(Qe[4],-ut*Ne,-ut,Re),ae(Qe[5],-ut*Ne,ut,Re),ae(Qe[6],ut*Ne,-ut,Re),ae(Qe[7],ut*Ne,ut,Re)}else{var rt=(-1-we)/de,pt=(1-we)/de,At=(1-Ue)/ge,gt=(-1-Ue)/ge,Ft=(-1-Pe)/Be,Ct=(1-Pe)/Be;Ke.min.set(Math.min(rt,pt),Math.min(gt,At),Math.min(Ct,Ft)),Ke.max.set(Math.max(pt,rt),Math.max(At,gt),Math.max(Ft,Ct));var Yt=Ke.min.array,zt=Ke.max.array,Qe=this.vertices;ae(Qe[0],Yt[0],Yt[1],Yt[2]),ae(Qe[1],Yt[0],zt[1],Yt[2]),ae(Qe[2],zt[0],Yt[1],Yt[2]),ae(Qe[3],zt[0],zt[1],Yt[2]),ae(Qe[4],Yt[0],Yt[1],zt[2]),ae(Qe[5],Yt[0],zt[1],zt[2]),ae(Qe[6],zt[0],Yt[1],zt[2]),ae(Qe[7],zt[0],zt[1],zt[2])}},getTransformedBoundingBox:function(){var ne=le.create();return function(oe,se){var de=this.vertices,a=se.array,x=oe.min,re=oe.max,ce=x.array,ge=re.array,_e=de[0];me(ne,_e,a),ie(ce,ne),ie(ge,ne);for(var ye=1;ye<8;ye++)_e=de[ye],me(ne,_e,a),ce[0]=E(ne[0],ce[0]),ce[1]=E(ne[1],ce[1]),ce[2]=E(ne[2],ce[2]),ge[0]=b(ne[0],ge[0]),ge[1]=b(ne[1],ge[1]),ge[2]=b(ne[2],ge[2]);return x._dirty=!0,re._dirty=!0,oe}}()},Me.a=z},function(Ye,Me){var pe=function(){this.head=null,this.tail=null,this._len=0},Oe=pe.prototype;Oe.insert=function(le){var ae=new ve(le);return this.insertEntry(ae),ae},Oe.insertEntry=function(le){this.head?(this.tail.next=le,le.prev=this.tail,le.next=null,this.tail=le):this.head=this.tail=le,this._len++},Oe.remove=function(le){var ae=le.prev,ie=le.next;ae?ae.next=ie:this.head=ie,ie?ie.prev=ae:this.tail=ae,le.next=le.prev=null,this._len--},Oe.len=function(){return this._len},Oe.clear=function(){this.head=this.tail=null,this._len=0};var ve=function(le){this.value=le,this.next,this.prev},ue=function(le){this._list=new pe,this._map={},this._maxSize=le||10,this._lastRemovedEntry=null},fe=ue.prototype;fe.put=function(le,ae){var ie=this._list,me=this._map,E=null;if(me[le]==null){var b=ie.len(),z=this._lastRemovedEntry;if(b>=this._maxSize&&b>0){var ne=ie.head;ie.remove(ne),delete me[ne.key],E=ne.value,this._lastRemovedEntry=ne}z?z.value=ae:z=new ve(ae),z.key=le,ie.insertEntry(z),me[le]=z}return E},fe.get=function(le){var ae=this._map[le],ie=this._list;if(ae!=null)return ae!==ie.tail&&(ie.remove(ae),ie.insertEntry(ae)),ae.value},fe.clear=function(){this._list.clear(),this._map={}};var he=ue;Ye.exports=he},function(Ye,Me,pe){"use strict";var Oe=pe(5),ve=pe(25),ue=pe(102),fe=pe(55),he=pe(56),le=pe(29),ae=pe(104),ie=pe(105),me={loadTexture:function(E,b,z,ne){var oe;if(typeof b=="function"?(z=b,ne=z,b={}):b=b||{},typeof E=="string"){if(E.match(/.hdr$/)||b.fileType==="hdr")return oe=new Oe.a({width:0,height:0,sRGB:!1}),me._fetchTexture(E,function(se){ie.a.parseRGBE(se,oe,b.exposure),oe.dirty(),z&&z(oe)},ne),oe;E.match(/.dds$/)||b.fileType==="dds"?(oe=new Oe.a({width:0,height:0}),me._fetchTexture(E,function(se){ae.a.parse(se,oe),oe.dirty(),z&&z(oe)},ne)):(oe=new Oe.a,oe.load(E),oe.success(z),oe.error(ne))}else if(typeof E=="object"&&typeof E.px!="undefined"){var oe=new ve.a;oe.load(E),oe.success(z),oe.error(ne)}return oe},loadPanorama:function(E,b,z,ne,oe,se){var de=this;typeof ne=="function"?(oe=ne,se=oe,ne={}):ne=ne||{},me.loadTexture(b,ne,function(a){a.flipY=ne.flipY||!1,de.panoramaToCubeMap(E,a,z,ne),a.dispose(E),oe&&oe(z)},se)},panoramaToCubeMap:function(E,b,z,ne){var oe=new fe.a,se=new he.a({scene:new le.a});return se.material.set("diffuseMap",b),ne=ne||{},ne.encodeRGBM&&se.material.define("fragment","RGBM_ENCODE"),z.sRGB=b.sRGB,oe.texture=z,oe.render(E,se.scene),oe.texture=null,oe.dispose(E),z},heightToNormal:function(E,b){var z=document.createElement("canvas"),ne=z.width=E.width,oe=z.height=E.height,se=z.getContext("2d");se.drawImage(E,0,0,ne,oe),b=b||!1;for(var de=se.getImageData(0,0,ne,oe),a=se.createImageData(ne,oe),x=0;x<de.data.length;x+=4){if(b){var re=de.data[x],ce=de.data[x+1],ge=de.data[x+2],_e=Math.abs(re-ce)+Math.abs(ce-ge);if(_e>20)return console.warn("Given image is not a height map"),E}var ye,be,Se,Be;x%(ne*4)===0?(ye=de.data[x],Se=de.data[x+4]):x%(ne*4)===(ne-1)*4?(ye=de.data[x-4],Se=de.data[x]):(ye=de.data[x-4],Se=de.data[x+4]),x<ne*4?(be=de.data[x],Be=de.data[x+ne*4]):x>ne*(oe-1)*4?(be=de.data[x-ne*4],Be=de.data[x]):(be=de.data[x-ne*4],Be=de.data[x+ne*4]),a.data[x]=ye-Se+127,a.data[x+1]=be-Be+127,a.data[x+2]=255,a.data[x+3]=255}return se.putImageData(a,0,0),z},isHeightImage:function(E,b,z){if(!E||!E.width||!E.height)return!1;var ne=document.createElement("canvas"),oe=ne.getContext("2d"),se=b||32;z=z||20,ne.width=ne.height=se,oe.drawImage(E,0,0,se,se);for(var de=oe.getImageData(0,0,se,se),a=0;a<de.data.length;a+=4){var x=de.data[a],re=de.data[a+1],ce=de.data[a+2],ge=Math.abs(x-re)+Math.abs(re-ce);if(ge>z)return!1}return!0},_fetchTexture:function(E,b,z){ue.a.get({url:E,responseType:"arraybuffer",onload:b,onerror:z})},createChessboard:function(E,b,z,ne){E=E||512,b=b||64,z=z||"black",ne=ne||"white";var oe=Math.ceil(E/b),se=document.createElement("canvas");se.width=E,se.height=E;var de=se.getContext("2d");de.fillStyle=ne,de.fillRect(0,0,E,E),de.fillStyle=z;for(var a=0;a<oe;a++)for(var x=0;x<oe;x++){var re=x%2?a%2:a%2-1;re&&de.fillRect(a*b,x*b,b,b)}var ce=new Oe.a({image:se,anisotropic:8});return ce},createBlank:function(E){var b=document.createElement("canvas");b.width=1,b.height=1;var z=b.getContext("2d");z.fillStyle=E,z.fillRect(0,0,1,1);var ne=new Oe.a({image:b});return ne}};Me.a=me},function(Ye,Me,pe){"use strict";var Oe=pe(8),ve=pe(4),ue=pe(36),fe=pe(10),he=["px","nx","py","ny","pz","nz"],le=Oe.a.extend(function(){var ae={position:new ve.a,far:1e3,near:.1,texture:null,shadowMapPass:null},ie=ae._cameras={px:new ue.a({fov:90}),nx:new ue.a({fov:90}),py:new ue.a({fov:90}),ny:new ue.a({fov:90}),pz:new ue.a({fov:90}),nz:new ue.a({fov:90})};return ie.px.lookAt(ve.a.POSITIVE_X,ve.a.NEGATIVE_Y),ie.nx.lookAt(ve.a.NEGATIVE_X,ve.a.NEGATIVE_Y),ie.py.lookAt(ve.a.POSITIVE_Y,ve.a.POSITIVE_Z),ie.ny.lookAt(ve.a.NEGATIVE_Y,ve.a.NEGATIVE_Z),ie.pz.lookAt(ve.a.POSITIVE_Z,ve.a.NEGATIVE_Y),ie.nz.lookAt(ve.a.NEGATIVE_Z,ve.a.NEGATIVE_Y),ae._frameBuffer=new fe.a,ae},{getCamera:function(ae){return this._cameras[ae]},render:function(ae,ie,me){var E=ae.gl;me||ie.update();for(var b=this.texture.width,z=2*Math.atan(b/(b-.5))/Math.PI*180,ne=0;ne<6;ne++){var oe=he[ne],se=this._cameras[oe];if(ve.a.copy(se.position,this.position),se.far=this.far,se.near=this.near,se.fov=z,this.shadowMapPass){se.update();var de=ie.getBoundingBox();de.applyTransform(se.viewMatrix),ie.viewBoundingBoxLastFrame.copy(de),this.shadowMapPass.render(ae,ie,se,!0)}this._frameBuffer.attach(this.texture,E.COLOR_ATTACHMENT0,E.TEXTURE_CUBE_MAP_POSITIVE_X+ne),this._frameBuffer.bind(ae),ae.render(ie,se,!0),this._frameBuffer.unbind(ae)}},dispose:function(ae){this._frameBuffer.dispose(ae)}});Me.a=le},function(Ye,Me,pe){"use strict";var Oe=pe(24),ve=pe(68),ue=pe(7),fe=pe(17),he=pe(103);ue.a.import(he.a);var le=Oe.a.extend(function(){var ae=new ue.a(ue.a.source("clay.basic.vertex"),ue.a.source("clay.basic.fragment")),ie=new fe.a({shader:ae,depthMask:!1});return ie.enableTexture("diffuseMap"),{scene:null,geometry:new ve.a({widthSegments:30,heightSegments:30}),material:ie,environmentMap:null,culling:!1}},function(){var ae=this.scene;ae&&this.attachScene(ae),this.environmentMap&&this.setEnvironmentMap(this.environmentMap)},{attachScene:function(ae){this.scene&&this.detachScene(),ae.skydome=this,this.scene=ae,ae.on("beforerender",this._beforeRenderScene,this)},detachScene:function(){this.scene&&(this.scene.off("beforerender",this._beforeRenderScene),this.scene.skydome=null),this.scene=null},_beforeRenderScene:function(ae,ie,me){this.position.copy(me.getWorldPosition()),this.update(),ae.renderPass([this],me)},setEnvironmentMap:function(ae){this.material.set("diffuseMap",ae)},getEnvironmentMap:function(){return this.material.get("diffuseMap")},dispose:function(ae){this.detachScene(),this.geometry.dispose(ae)}});Me.a=le},function(Ye,Me,pe){"use strict";var Oe=pe(24),ve=pe(69),ue=pe(7),fe=pe(17),he=pe(110);ue.a.import(he.a);var le=Oe.a.extend(function(){var ae=new ue.a({vertex:ue.a.source("clay.skybox.vertex"),fragment:ue.a.source("clay.skybox.fragment")}),ie=new fe.a({shader:ae,depthMask:!1});return{scene:null,geometry:new ve.a,material:ie,environmentMap:null,culling:!1}},function(){var ae=this.scene;ae&&this.attachScene(ae),this.environmentMap&&this.setEnvironmentMap(this.environmentMap)},{attachScene:function(ae){this.scene&&this.detachScene(),ae.skybox=this,this.scene=ae,ae.on("beforerender",this._beforeRenderScene,this)},detachScene:function(){this.scene&&(this.scene.off("beforerender",this._beforeRenderScene),this.scene.skybox=null),this.scene=null},dispose:function(ae){this.detachScene(),this.geometry.dispose(ae)},setEnvironmentMap:function(ae){this.material.set("environmentMap",ae)},getEnvironmentMap:function(){return this.material.get("environmentMap")},_beforeRenderScene:function(ae,ie,me){this.renderSkybox(ae,me)},renderSkybox:function(ae,ie){this.position.copy(ie.getWorldPosition()),this.update(),ae.gl.disable(ae.gl.BLEND),this.material.get("lod")>0?this.material.define("fragment","LOD"):this.material.undefine("fragment","LOD"),ae.renderPass([this],ie)}});Me.a=le},function(Ye,Me,pe){"use strict";var Oe=pe(2),ve=pe(143),ue=pe(144);Oe.a.Shader.import(ue.a),Me.a=Oe.a.Mesh.extend(function(){var fe=new ve.a({dynamic:!0}),he=new Oe.a.Material({shader:Oe.a.createShader("ecgl.labels"),transparent:!0,depthMask:!1});return{geometry:fe,material:he,culling:!1,castShadow:!1,ignorePicking:!0}})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(2),fe=pe(186),he=pe(22),le=pe(3),ae=pe(1),ie=pe.n(ae),me=pe(60),E=pe(61),b=pe(40),z=ie.a.vec3;ue.a.Shader.import(b.a);function ne(oe){this.rootNode=new ue.a.Node,this._triangulationResults={},this._shadersMap=ue.a.COMMON_SHADERS.reduce(function(de,a){return de[a]=ue.a.createShader("ecgl."+a),de},{}),this._linesShader=ue.a.createShader("ecgl.meshLines3D");var se={};ue.a.COMMON_SHADERS.forEach(function(de){se[de]=new ue.a.Material({shader:ue.a.createShader("ecgl."+de)})}),this._groundMaterials=se,this._groundMesh=new ue.a.Mesh({geometry:new ue.a.PlaneGeometry({dynamic:!0}),castShadow:!1,renderNormal:!0,$ignorePicking:!0}),this._groundMesh.rotation.rotateX(-Math.PI/2),this._labelsBuilder=new E.a(512,512,oe),this._labelsBuilder.getMesh().renderOrder=100,this._labelsBuilder.getMesh().material.depthTest=!1,this.rootNode.add(this._labelsBuilder.getMesh()),this._initMeshes(),this._api=oe}ne.prototype={constructor:ne,extrudeY:!0,update:function(oe,se,de,a,x){var re=oe.getData();a==null&&(a=0),x==null&&(x=re.count()),this._startIndex=a,this._endIndex=x-1,this._triangulation(oe,a,x);var ce=this._getShader(oe.get("shading"));this._prepareMesh(oe,ce,de,a,x),this.rootNode.updateWorldTransform(),this._updateRegionMesh(oe,de,a,x);var ge=oe.coordinateSystem;ge.type==="geo3D"&&this._updateGroundPlane(oe,ge,de);var _e=this;this._labelsBuilder.updateData(re,a,x),this._labelsBuilder.getLabelPosition=function(ye,be,Se){var Be=re.getName(ye),Ae,we=Se;if(ge.type==="geo3D"){var Ue=ge.getRegion(Be);return Ae=Ue.center,ge.dataToPoint([Ae[0],Ae[1],we])}else var Pe=_e._triangulationResults[ye-_e._startIndex],Ae=_e.extrudeY?[(Pe.max[0]+Pe.min[0])/2,Pe.max[1]+we,(Pe.max[2]+Pe.min[2])/2]:[(Pe.max[0]+Pe.min[0])/2,(Pe.max[1]+Pe.min[1])/2,Pe.max[2]+we]},this._data=re,this._labelsBuilder.updateLabels(),this._updateDebugWireframe(oe),this._lastHoverDataIndex=0},_initMeshes:function(){this.rootNode.removeAll();var oe=this;function se(){var x=new ue.a.Mesh({name:"Polygon",material:new ue.a.Material({shader:oe._shadersMap.lambert}),culling:!1,geometry:new ue.a.Geometry({sortTriangles:!0,dynamic:!0}),ignorePicking:!0,renderNormal:!0});return ve.a.util.extend(x.geometry,me.a),x}var de=se(),a=new ue.a.Mesh({material:new ue.a.Material({shader:this._linesShader}),castShadow:!1,ignorePicking:!0,$ignorePicking:!0,geometry:new he.a({useNativeLine:!1})});this.rootNode.add(de),this.rootNode.add(a),de.material.define("both","VERTEX_COLOR"),de.material.define("fragment","DOUBLE_SIDED"),this._polygonMesh=de,this._linesMesh=a,this.rootNode.add(this._groundMesh)},_getShader:function(oe){var se=this._shadersMap[oe];return se||(console.warn("Unkown shading "+oe),se=this._shadersMap.lambert),se.__shading=oe,se},_prepareMesh:function(oe,se,de,a,x){for(var re=0,ce=0,ge=0,_e=0,ye=a;ye<x;ye++){var be=this._getRegionPolygonInfo(ye),Se=this._getRegionLinesInfo(ye,oe,this._linesMesh.geometry);re+=be.vertexCount,ce+=be.triangleCount,ge+=Se.vertexCount,_e+=Se.triangleCount}var Be=this._polygonMesh,Ae=Be.geometry;["position","normal","texcoord0","color"].forEach(function(we){Ae.attributes[we].init(re)}),Ae.indices=re>65535?new Uint32Array(ce*3):new Uint16Array(ce*3),Be.material.shader!==se&&Be.material.attachShader(se,!0),ue.a.setMaterialFromModel(se.__shading,Be.material,oe,de),ge>0&&(this._linesMesh.geometry.resetOffset(),this._linesMesh.geometry.setVertexCount(ge),this._linesMesh.geometry.setTriangleCount(_e)),this._dataIndexOfVertex=new Uint32Array(re),this._vertexRangeOfDataIndex=new Uint32Array((x-a)*2)},_updateRegionMesh:function(oe,se,de,a){for(var x=oe.getData(),re=0,ce=0,ge=!1,nt=this._polygonMesh,_e=this._linesMesh,ye=de;ye<a;ye++){var be=oe.getRegionModel(ye),Se=be.getModel("itemStyle"),Be=Se.get("color"),Ae=le.a.firstNotNull(Se.get("opacity"),1),we=x.getItemVisual(ye,"color",!0);we!=null&&x.hasValue(ye)&&(Be=we),x.setItemVisual(ye,"color",Be),x.setItemVisual(ye,"opacity",Ae),Be=ue.a.parseColor(Be);var Ue=ue.a.parseColor(Se.get("borderColor"));Be[3]*=Ae,Ue[3]*=Ae;var Pe=Be[3]<.99;nt.material.set("color",[1,1,1,1]),ge=ge||Pe;for(var ze=le.a.firstNotNull(be.get("height",!0),oe.get("regionHeight")),Ke=this._updatePolygonGeometry(oe,nt.geometry,ye,ze,re,ce,Be),Ne=re;Ne<Ke.vertexOffset;Ne++)this._dataIndexOfVertex[Ne]=ye;this._vertexRangeOfDataIndex[(ye-de)*2]=re,this._vertexRangeOfDataIndex[(ye-de)*2+1]=Ke.vertexOffset,re=Ke.vertexOffset,ce=Ke.triangleOffset;var Re=Se.get("borderWidth"),$e=Re>0;$e&&(Re*=se.getDevicePixelRatio(),this._updateLinesGeometry(_e.geometry,oe,ye,ze,Re,oe.coordinateSystem.transform)),_e.invisible=!$e,_e.material.set({color:Ue})}var nt=this._polygonMesh;nt.material.transparent=ge,nt.material.depthMask=!ge,nt.geometry.updateBoundingBox(),nt.material.get("normalMap")&&nt.geometry.generateTangents(),nt.seriesIndex=oe.seriesIndex,nt.on("mousemove",this._onmousemove,this),nt.on("mouseout",this._onmouseout,this)},_updateDebugWireframe:function(oe){var se=oe.getModel("debug.wireframe");if(se.get("show")){var de=ue.a.parseColor(se.get("lineStyle.color")||"rgba(0,0,0,0.5)"),a=le.a.firstNotNull(se.get("lineStyle.width"),1),x=this._polygonMesh;x.geometry.generateBarycentric(),x.material.define("both","WIREFRAME_TRIANGLE"),x.material.set("wireframeLineColor",de),x.material.set("wireframeLineWidth",a)}},_onmousemove:function(oe){var se=this._dataIndexOfVertex[oe.triangle[0]];se==null&&(se=-1),se!==this._lastHoverDataIndex&&(this.downplay(this._lastHoverDataIndex),this.highlight(se)),this._lastHoverDataIndex=se,this._polygonMesh.dataIndex=se},_onmouseover:function(oe){if(oe.target){var se=oe.target.eventData?this._data.indexOfName(oe.target.eventData.name):oe.target.dataIndex;se!=null&&(this.highlight(se),this._labelsBuilder.updateLabels([se]))}},_onmouseout:function(oe){oe.target&&(this.downplay(this._lastHoverDataIndex),this._lastHoverDataIndex=-1,this._polygonMesh.dataIndex=-1)},_updateGroundPlane:function(oe,se,de){var a=oe.getModel("groundPlane",oe);if(this._groundMesh.invisible=!a.get("show",!0),!this._groundMesh.invisible){var x=oe.get("shading"),re=this._groundMaterials[x];re||(console.warn("Unkown shading "+x),re=this._groundMaterials.lambert),ue.a.setMaterialFromModel(x,re,a,de),re.get("normalMap")&&this._groundMesh.geometry.generateTangents(),this._groundMesh.material=re,this._groundMesh.material.set("color",ue.a.parseColor(a.get("color"))),this._groundMesh.scale.set(se.size[0],se.size[2],1)}},_triangulation:function(oe,se,de){this._triangulationResults=[];for(var a=[1/0,1/0,1/0],x=[-1/0,-1/0,-1/0],re=oe.coordinateSystem,ce=se;ce<de;ce++){for(var ge=[],_e=oe.getRegionPolygonCoords(ce),ye=0;ye<_e.length;ye++){var be=_e[ye].exterior,Se=_e[ye].interiors,Be=[],Ae=[];if(!(be.length<3)){for(var we=0,Ue=0;Ue<be.length;Ue++){var Pe=be[Ue];Be[we++]=Pe[0],Be[we++]=Pe[1]}for(var Ue=0;Ue<Se.length;Ue++)if(!(Se[Ue].length<3)){for(var ze=Be.length/2,Ke=0;Ke<Se[Ue].length;Ke++){var Pe=Se[Ue][Ke];Be.push(Pe[0]),Be.push(Pe[1])}Ae.push(ze)}for(var Ne=Object(fe.a)(Be,Ae),Re=new Float64Array(Be.length/2*3),$e=[],nt=[1/0,1/0,1/0],ut=[-1/0,-1/0,-1/0],Qe=0,Ue=0;Ue<Be.length;)z.set($e,Be[Ue++],0,Be[Ue++]),re&&re.transform&&z.transformMat4($e,$e,re.transform),z.min(nt,nt,$e),z.max(ut,ut,$e),Re[Qe++]=$e[0],Re[Qe++]=$e[1],Re[Qe++]=$e[2];z.min(a,a,nt),z.max(x,x,ut),ge.push({points:Re,indices:Ne,min:nt,max:ut})}}this._triangulationResults.push(ge)}this._geoBoundingBox=[a,x]},_getRegionPolygonInfo:function(oe){for(var se=this._triangulationResults[oe-this._startIndex],de=0,a=0,x=0;x<se.length;x++)de+=se[x].points.length/3,a+=se[x].indices.length/3;var re=de*2+de*4,ce=a*2+de*2;return{vertexCount:re,triangleCount:ce}},_updatePolygonGeometry:function(oe,se,de,a,x,re,ce){var ge=oe.get("projectUVOnGround"),_e=se.attributes.position,ye=se.attributes.normal,be=se.attributes.texcoord0,Se=se.attributes.color,Be=this._triangulationResults[de-this._startIndex],Ae=Se.value&&ce,we=se.indices,Ue=this.extrudeY?1:2,Pe=this.extrudeY?2:1,ze=[this.rootNode.worldTransform.x.len(),this.rootNode.worldTransform.y.len(),this.rootNode.worldTransform.z.len()],Ke=z.mul([],this._geoBoundingBox[0],ze),Ne=z.mul([],this._geoBoundingBox[1],ze),Re=Math.max(Ne[0]-Ke[0],Ne[2]-Ke[2]);function $e(lt,mt,Lt){for(var ft=lt.points,St=ft.length,nn=[],on=[],yn=0;yn<St;yn+=3)nn[0]=ft[yn],nn[Ue]=mt,nn[Pe]=ft[yn+2],on[0]=(ft[yn]*ze[0]-Ke[0])/Re,on[1]=(ft[yn+2]*ze[Pe]-Ke[2])/Re,_e.set(x,nn),Ae&&Se.set(x,ce),be.set(x++,on)}function nt(lt,mt,Lt){var ft=x;$e(lt,mt,Lt);for(var St=0;St<lt.indices.length;St++)we[re*3+St]=lt.indices[St]+ft;re+=lt.indices.length/3}for(var ut=this.extrudeY?[0,1,0]:[0,0,1],Qe=z.negate([],ut),rt=0;rt<Be.length;rt++){var pt=x,At=Be[rt];nt(At,0,0),nt(At,a,0);for(var gt=At.points.length/3,Ft=0;Ft<gt;Ft++)ye.set(pt+Ft,Qe),ye.set(pt+Ft+gt,ut);for(var Ct=[0,3,1,1,3,2],Yt=[[],[],[],[]],zt=[],Xe=[],Fe=[],Le=[],Ze=0,Ft=0;Ft<gt;Ft++){for(var et=(Ft+1)%gt,He=(At.points[et*3]-At.points[Ft*3])*ze[0],We=(At.points[et*3+2]-At.points[Ft*3+2])*ze[Pe],tt=Math.sqrt(He*He+We*We),at=0;at<4;at++){var ot=at===0||at===3,ct=(ot?Ft:et)*3;Yt[at][0]=At.points[ct],Yt[at][Ue]=at>1?a:0,Yt[at][Pe]=At.points[ct+2],_e.set(x+at,Yt[at]),ge?(Le[0]=(At.points[ct]*ze[0]-Ke[0])/Re,Le[1]=(At.points[ct+2]*ze[Pe]-Ke[Pe])/Re):(Le[0]=(ot?Ze:Ze+tt)/Re,Le[1]=(Yt[at][Ue]*ze[Ue]-Ke[Ue])/Re),be.set(x+at,Le)}z.sub(zt,Yt[1],Yt[0]),z.sub(Xe,Yt[3],Yt[0]),z.cross(Fe,zt,Xe),z.normalize(Fe,Fe);for(var at=0;at<4;at++)ye.set(x+at,Fe),Ae&&Se.set(x+at,ce);for(var at=0;at<6;at++)we[re*3+at]=Ct[at]+x;x+=4,re+=2,Ze+=tt}}return se.dirty(),{vertexOffset:x,triangleOffset:re}},_getRegionLinesInfo:function(oe,se,de){var a=0,x=0,re=se.getRegionModel(oe),ce=re.getModel("itemStyle"),ge=ce.get("borderWidth");if(ge>0){var _e=se.getRegionPolygonCoords(oe);_e.forEach(function(ye){var be=ye.exterior,Se=ye.interiors;a+=de.getPolylineVertexCount(be),x+=de.getPolylineTriangleCount(be);for(var Be=0;Be<Se.length;Be++)a+=de.getPolylineVertexCount(Se[Be]),x+=de.getPolylineTriangleCount(Se[Be])},this)}return{vertexCount:a,triangleCount:x}},_updateLinesGeometry:function(oe,se,de,a,x,re){function ce(ye){for(var be=new Float64Array(ye.length*3),Se=0,Be=[],Ae=0;Ae<ye.length;Ae++)Be[0]=ye[Ae][0],Be[1]=a+.1,Be[2]=ye[Ae][1],re&&z.transformMat4(Be,Be,re),be[Se++]=Be[0],be[Se++]=Be[1],be[Se++]=Be[2];return be}var ge=[1,1,1,1],_e=se.getRegionPolygonCoords(de);_e.forEach(function(ye){var be=ye.exterior,Se=ye.interiors;oe.addPolyline(ce(be),ge,x);for(var Be=0;Be<Se.length;Be++)oe.addPolyline(ce(Se[Be]),ge,x)})},highlight:function(oe){var se=this._data;if(se){var de=se.getItemModel(oe),a=de.getModel("emphasis.itemStyle"),x=a.get("color"),re=le.a.firstNotNull(a.get("opacity"),se.getItemVisual(oe,"opacity"),1);if(x==null){var ce=se.getItemVisual(oe,"color");x=ve.a.color.lift(ce,-.4)}re==null&&(re=se.getItemVisual(oe,"opacity"));var ge=ue.a.parseColor(x);ge[3]*=re,this._setColorOfDataIndex(se,oe,ge)}},downplay:function(oe){var se=this._data;if(se){var de=se.getItemVisual(oe,"color"),a=le.a.firstNotNull(se.getItemVisual(oe,"opacity"),1),x=ue.a.parseColor(de);x[3]*=a,this._setColorOfDataIndex(se,oe,x)}},_setColorOfDataIndex:function(oe,se,de){if(!(se<this._startIndex&&se>this._endIndex)){se-=this._startIndex;for(var a=this._vertexRangeOfDataIndex[se*2];a<this._vertexRangeOfDataIndex[se*2+1];a++)this._polygonMesh.geometry.attributes.color.set(a,de);this._polygonMesh.geometry.dirty(),this._api.getZr().refresh()}}},Me.a=ne},function(Ye,Me,pe){"use strict";var Oe=pe(81),ve=pe(1),ue=pe.n(ve),fe=ue.a.vec3,he=fe.create(),le=fe.create(),ae=fe.create();Me.a={needsSortTriangles:function(){return this.indices&&this.sortTriangles},needsSortTrianglesProgressively:function(){return this.needsSortTriangles()&&this.triangleCount>=2e4},doSortTriangles:function(ie,me){var E=this.indices;if(me===0){var b=this.attributes.position,ie=ie.array;(!this._triangleZList||this._triangleZList.length!==this.triangleCount)&&(this._triangleZList=new Float32Array(this.triangleCount),this._sortedTriangleIndices=new Uint32Array(this.triangleCount),this._indicesTmp=new E.constructor(E.length),this._triangleZListTmp=new Float32Array(this.triangleCount));for(var z=0,ne,oe=0;oe<E.length;){b.get(E[oe++],he),b.get(E[oe++],le),b.get(E[oe++],ae);var se=fe.sqrDist(he,ie),de=fe.sqrDist(le,ie),a=fe.sqrDist(ae,ie),x=Math.min(se,de);x=Math.min(x,a),oe===3?(ne=x,x=0):x=x-ne,this._triangleZList[z++]=x}}for(var re=this._sortedTriangleIndices,oe=0;oe<re.length;oe++)re[oe]=oe;if(this.triangleCount<2e4)me===0&&this._simpleSort(!0);else for(var oe=0;oe<3;oe++)this._progressiveQuickSort(me*3+oe);for(var ce=this._indicesTmp,ge=this._triangleZListTmp,_e=this._triangleZList,oe=0;oe<this.triangleCount;oe++){var ye=re[oe]*3,be=oe*3;ce[be++]=E[ye++],ce[be++]=E[ye++],ce[be]=E[ye],ge[oe]=_e[re[oe]]}var Se=this._indicesTmp;this._indicesTmp=this.indices,this.indices=Se;var Se=this._triangleZListTmp;this._triangleZListTmp=this._triangleZList,this._triangleZList=Se,this.dirtyIndices()},_simpleSort:function(ie){var me=this._triangleZList,E=this._sortedTriangleIndices;function b(z,ne){return me[ne]-me[z]}ie?Array.prototype.sort.call(E,b):Oe.a.sort(E,b,0,E.length-1)},_progressiveQuickSort:function(ie){var me=this._triangleZList,E=this._sortedTriangleIndices;this._quickSort=this._quickSort||new Oe.a,this._quickSort.step(E,function(b,z){return me[z]-me[b]},ie)}}},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(73),fe=pe(58),he=pe(3),le=1,ae=2;function ie(me,E,b){this._labelsMesh=new fe.a,this._labelTextureSurface=new ue.a({width:512,height:512,devicePixelRatio:b.getDevicePixelRatio(),onupdate:function(){b.getZr().refresh()}}),this._api=b,this._labelsMesh.material.set("textureAtlas",this._labelTextureSurface.getTexture())}ie.prototype.getLabelPosition=function(me,E,b){return[0,0,0]},ie.prototype.getLabelDistance=function(me,E,b){return 0},ie.prototype.getMesh=function(){return this._labelsMesh},ie.prototype.updateData=function(me,E,b){E==null&&(E=0),b==null&&(b=me.count()),(!this._labelsVisibilitiesBits||this._labelsVisibilitiesBits.length!==b-E)&&(this._labelsVisibilitiesBits=new Uint8Array(b-E));for(var z=["label","show"],ne=["emphasis","label","show"],oe=E;oe<b;oe++){var se=me.getItemModel(oe),de=se.get(z),a=se.get(ne);a==null&&(a=de);var x=(de?le:0)|(a?ae:0);this._labelsVisibilitiesBits[oe-E]=x}this._start=E,this._end=b,this._data=me},ie.prototype.updateLabels=function(me){if(this._data){me=me||[];for(var E=me.length>0,b={},z=0;z<me.length;z++)b[me[z]]=!0;this._labelsMesh.geometry.convertToDynamicArray(!0),this._labelTextureSurface.clear();for(var ne=["label"],oe=["emphasis","label"],se=this._data.hostModel,de=this._data,a=se.getModel(ne),x=se.getModel(oe,a),re={left:"right",right:"left",top:"center",bottom:"center"},ce={left:"middle",right:"middle",top:"bottom",bottom:"top"},ge=this._start;ge<this._end;ge++){var _e=!1;E&&b[ge]&&(_e=!0);var ye=this._labelsVisibilitiesBits[ge-this._start]&(_e?ae:le);if(ye){var be=de.getItemModel(ge),Se=be.getModel(_e?oe:ne,_e?x:a),Be=Se.get("distance")||0,Ae=Se.get("position"),we=Se.getModel("textStyle"),Ue=this._api.getDevicePixelRatio(),Pe=se.getFormattedLabel(ge,_e?"emphasis":"normal");if(Pe==null||Pe==="")return;var ze=new ve.a.graphic.Text;ve.a.graphic.setTextStyle(ze.style,we,{text:Pe,textFill:we.get("color")||de.getItemVisual(ge,"color")||"#000",textAlign:"left",textVerticalAlign:"top",opacity:he.a.firstNotNull(we.get("opacity"),de.getItemVisual(ge,"opacity"),1)});var Ke=ze.getBoundingRect(),Ne=1.2;Ke.height*=Ne;var Re=this._labelTextureSurface.add(ze),$e=re[Ae]||"center",nt=ce[Ae]||"bottom";this._labelsMesh.geometry.addSprite(this.getLabelPosition(ge,Ae,Be),[Ke.width*Ue,Ke.height*Ue],Re,$e,nt,this.getLabelDistance(ge,Ae,Be)*Ue)}}this._labelsMesh.material.set("uvScale",this._labelTextureSurface.getCoordsScale()),this._labelTextureSurface.getZr().refreshImmediately(),this._labelsMesh.geometry.convertToTypedArray(),this._labelsMesh.geometry.dirty()}},Me.a=ie},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(2),fe=pe(216),he=pe(217),le=pe(61),ae=pe(9),ie=pe(3),me=20,E=-10;function b(ne,oe){return ne&&oe&&ne[0]===oe[0]&&ne[1]===oe[1]}function z(ne,oe){this.rootNode=new ue.a.Node,this.is2D=ne,this._labelsBuilder=new le.a(256,256,oe),this._labelsBuilder.getMesh().renderOrder=100,this.rootNode.add(this._labelsBuilder.getMesh()),this._api=oe,this._spriteImageCanvas=document.createElement("canvas"),this._startDataIndex=0,this._endDataIndex=0,this._sizeScale=1}z.prototype={constructor:z,highlightOnMouseover:!0,update:function(ne,oe,se,de,a){var x=this._prevMesh;this._prevMesh=this._mesh,this._mesh=x;var re=ne.getData();if(de==null&&(de=0),a==null&&(a=re.count()),this._startDataIndex=de,this._endDataIndex=a-1,!this._mesh){var ce=this._prevMesh&&this._prevMesh.material;this._mesh=new he.a({renderOrder:10,frustumCulling:!1}),ce&&(this._mesh.material=ce)}var ce=this._mesh.material,ge=this._mesh.geometry,_e=ge.attributes;this.rootNode.remove(this._prevMesh),this.rootNode.add(this._mesh),this._setPositionTextureToMesh(this._mesh,this._positionTexture);var ye=this._getSymbolInfo(ne,de,a),be=se.getDevicePixelRatio(),Se=ne.getModel("itemStyle").getItemStyle(),Be=ne.get("large"),Ae=1;ye.maxSize>2?(Ae=this._updateSymbolSprite(ne,Se,ye,be),ce.enableTexture("sprite")):ce.disableTexture("sprite"),_e.position.init(a-de);var we=[];if(Be){ce.undefine("VERTEX_SIZE"),ce.undefine("VERTEX_COLOR");var Ue=re.getVisual("color"),Pe=re.getVisual("opacity");ue.a.parseColor(Ue,we),we[3]*=Pe,ce.set({color:we,u_Size:ye.maxSize*this._sizeScale})}else ce.set({color:[1,1,1,1]}),ce.define("VERTEX_SIZE"),ce.define("VERTEX_COLOR"),_e.size.init(a-de),_e.color.init(a-de),this._originalOpacity=new Float32Array(a-de);for(var ze=re.getLayout("points"),Ke=_e.position.value,Ne=!1,Re=0;Re<a-de;Re++){var $e=Re*3,nt=Re*2;if(this.is2D?(Ke[$e]=ze[nt],Ke[$e+1]=ze[nt+1],Ke[$e+2]=E):(Ke[$e]=ze[$e],Ke[$e+1]=ze[$e+1],Ke[$e+2]=ze[$e+2]),!Be){var Ue=re.getItemVisual(Re,"color"),Pe=re.getItemVisual(Re,"opacity");ue.a.parseColor(Ue,we),we[3]*=Pe,_e.color.set(Re,we),we[3]<.99&&(Ne=!0);var ut=re.getItemVisual(Re,"symbolSize");ut=ut instanceof Array?Math.max(ut[0],ut[1]):ut,isNaN(ut)&&(ut=0),_e.size.value[Re]=ut*Ae*this._sizeScale,this._originalOpacity[Re]=we[3]}}this._mesh.sizeScale=Ae,ge.updateBoundingBox(),ge.dirty(),this._updateMaterial(ne,Se);var Qe=ne.coordinateSystem;if(Qe&&Qe.viewGL){var rt=Qe.viewGL.isLinearSpace()?"define":"undefine";ce[rt]("fragment","SRGB_DECODE")}Be||this._updateLabelBuilder(ne,de,a),this._updateHandler(ne,oe,se),this._updateAnimation(ne),this._api=se},getPointsMesh:function(){return this._mesh},updateLabels:function(ne){this._labelsBuilder.updateLabels(ne)},hideLabels:function(){this.rootNode.remove(this._labelsBuilder.getMesh())},showLabels:function(){this.rootNode.add(this._labelsBuilder.getMesh())},_updateSymbolSprite:function(ne,oe,se,de){se.maxSize=Math.min(se.maxSize*2,200);var a=[];return se.aspect>1?(a[0]=se.maxSize,a[1]=se.maxSize/se.aspect):(a[1]=se.maxSize,a[0]=se.maxSize*se.aspect),a[0]=a[0]||1,a[1]=a[1]||1,(this._symbolType!==se.type||!b(this._symbolSize,a)||this._lineWidth!==oe.lineWidth)&&(fe.a.createSymbolSprite(se.type,a,{fill:"#fff",lineWidth:oe.lineWidth,stroke:"transparent",shadowColor:"transparent",minMargin:Math.min(a[0]/2,10)},this._spriteImageCanvas),fe.a.createSDFFromCanvas(this._spriteImageCanvas,Math.min(this._spriteImageCanvas.width,32),me,this._mesh.material.get("sprite").image),this._symbolType=se.type,this._symbolSize=a,this._lineWidth=oe.lineWidth),this._spriteImageCanvas.width/se.maxSize*de},_updateMaterial:function(ne,oe){var se=ne.get("blendMode")==="lighter"?ue.a.additiveBlend:null,de=this._mesh.material;de.blend=se,de.set("lineWidth",oe.lineWidth/me);var a=ue.a.parseColor(oe.stroke);de.set("strokeColor",a),de.transparent=!0,de.depthMask=!1,de.depthTest=!this.is2D,de.sortVertices=!this.is2D},_updateLabelBuilder:function(ne,re,se){var de=ne.getData(),a=this._mesh.geometry,x=a.attributes.position.value,re=this._startDataIndex,ce=this._mesh.sizeScale;this._labelsBuilder.updateData(de,re,se),this._labelsBuilder.getLabelPosition=function(ge,_e,ye){var be=(ge-re)*3;return[x[be],x[be+1],x[be+2]]},this._labelsBuilder.getLabelDistance=function(ge,_e,ye){var be=a.attributes.size.get(ge-re)/ce;return be/2+ye},this._labelsBuilder.updateLabels()},_updateAnimation:function(ne){ue.a.updateVertexAnimation([["prevPosition","position"],["prevSize","size"]],this._prevMesh,this._mesh,ne)},_updateHandler:function(ne,oe,se){var de=ne.getData(),a=this._mesh,x=this,re=-1,ce=ne.coordinateSystem&&ne.coordinateSystem.type==="cartesian3D",ge;ce&&(ge=ne.coordinateSystem.model),a.seriesIndex=ne.seriesIndex,a.off("mousemove"),a.off("mouseout"),a.on("mousemove",function(_e){var ye=_e.vertexIndex+x._startDataIndex;ye!==re&&(this.highlightOnMouseover&&(this.downplay(de,re),this.highlight(de,ye),this._labelsBuilder.updateLabels([ye])),ce&&se.dispatchAction({type:"grid3DShowAxisPointer",value:[de.get(ne.coordDimToDataDim("x")[0],ye),de.get(ne.coordDimToDataDim("y")[0],ye),de.get(ne.coordDimToDataDim("z")[0],ye)],grid3DIndex:ge.componentIndex})),a.dataIndex=ye,re=ye},this),a.on("mouseout",function(_e){var ye=_e.vertexIndex+x._startDataIndex;this.highlightOnMouseover&&(this.downplay(de,ye),this._labelsBuilder.updateLabels()),re=-1,a.dataIndex=-1,ce&&se.dispatchAction({type:"grid3DHideAxisPointer",grid3DIndex:ge.componentIndex})},this)},updateLayout:function(ne,oe,se){var de=ne.getData();if(this._mesh){var a=this._mesh.geometry.attributes.position.value,x=de.getLayout("points");if(this.is2D)for(var re=0;re<x.length/2;re++){var ce=re*3,ge=re*2;a[ce]=x[ge],a[ce+1]=x[ge+1],a[ce+2]=E}else for(var re=0;re<x.length;re++)a[re]=x[re];this._mesh.geometry.dirty(),se.getZr().refresh()}},updateView:function(ne){if(this._mesh){var oe=new ae.a;ae.a.mul(oe,ne.viewMatrix,this._mesh.worldTransform),ae.a.mul(oe,ne.projectionMatrix,oe),this._mesh.updateNDCPosition(oe,this.is2D,this._api)}},highlight:function(ne,oe){if(!(oe>this._endDataIndex||oe<this._startDataIndex)){var se=ne.getItemModel(oe),de=se.getModel("emphasis.itemStyle"),a=de.get("color"),x=de.get("opacity");if(a==null){var re=ne.getItemVisual(oe,"color");a=ve.a.color.lift(re,-.4)}x==null&&(x=ne.getItemVisual(oe,"opacity"));var ce=ue.a.parseColor(a);ce[3]*=x,this._mesh.geometry.attributes.color.set(oe-this._startDataIndex,ce),this._mesh.geometry.dirtyAttribute("color"),this._api.getZr().refresh()}},downplay:function(ne,oe){if(!(oe>this._endDataIndex||oe<this._startDataIndex)){var se=ne.getItemVisual(oe,"color"),de=ne.getItemVisual(oe,"opacity"),a=ue.a.parseColor(se);a[3]*=de,this._mesh.geometry.attributes.color.set(oe-this._startDataIndex,a),this._mesh.geometry.dirtyAttribute("color"),this._api.getZr().refresh()}},fadeOutAll:function(ne){if(this._originalOpacity){for(var oe=this._mesh.geometry,se=0;se<oe.vertexCount;se++){var de=this._originalOpacity[se]*ne;oe.attributes.color.value[se*4+3]=de}oe.dirtyAttribute("color"),this._api.getZr().refresh()}},fadeInAll:function(){this.fadeOutAll(1)},setPositionTexture:function(ne){this._mesh&&this._setPositionTextureToMesh(this._mesh,ne),this._positionTexture=ne},removePositionTexture:function(){this._positionTexture=null,this._mesh&&this._setPositionTextureToMesh(this._mesh,null)},setSizeScale:function(ne){if(ne!==this._sizeScale){if(this._mesh){var oe=this._mesh.material.get("u_Size");this._mesh.material.set("u_Size",oe/this._sizeScale*ne);var se=this._mesh.geometry.attributes;if(se.size.value)for(var de=0;de<se.size.value.length;de++)se.size.value[de]=se.size.value[de]/this._sizeScale*ne}this._sizeScale=ne}},_setPositionTextureToMesh:function(ne,oe){oe&&ne.material.set("positionTexture",oe),ne.material[oe?"enableTexture":"disableTexture"]("positionTexture")},_getSymbolInfo:function(ne,oe,se){if(ne.get("large")){var de=ie.a.firstNotNull(ne.get("symbolSize"),1),_e,x;return de instanceof Array?(_e=Math.max(de[0],de[1]),x=de[0]/de[1]):(_e=de,x=1),{maxSize:de,type:ne.get("symbol"),aspect:x}}for(var a=ne.getData(),x,re=!1,ce=a.getItemVisual(0,"symbol")||"circle",ge=!1,_e=0,ye=oe;ye<se;ye++){var de=a.getItemVisual(ye,"symbolSize"),be=a.getItemVisual(ye,"symbol"),Se;if(de instanceof Array)Se=de[0]/de[1],_e=Math.max(Math.max(de[0],de[1]),_e);else{if(isNaN(de))return;Se=1,_e=Math.max(de,_e)}x!=null&&Math.abs(Se-x)>.05&&(re=!0),be!==ce&&(ge=!0),ce=be,x=Se}return re&&console.warn("Different symbol width / height ratio will be ignored."),ge&&console.warn("Different symbol type will be ignored."),{maxSize:_e,type:ce,aspect:x}}},Me.a=z},function(Ye,Me,pe){"use strict";Me.a=`@export clay.prez.vertex
|
|
|
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
|
|
attribute vec3 position : POSITION;
|
|
|
@import clay.chunk.skinning_header
|
|
|
void main()
|
|
|
{
|
|
|
vec3 skinnedPosition = position;
|
|
|
#ifdef SKINNING
|
|
|
@import clay.chunk.skin_matrix
|
|
|
skinnedPosition = (skinMatrixWS * vec4(position, 1.0)).xyz;
|
|
|
#endif
|
|
|
gl_Position = worldViewProjection * vec4(skinnedPosition, 1.0);
|
|
|
}
|
|
|
@end
|
|
|
@export clay.prez.fragment
|
|
|
void main()
|
|
|
{
|
|
|
gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);
|
|
|
}
|
|
|
@end`},function(Ye,Me,pe){"use strict";var Oe=pe(28),ve=pe(11),ue=0,fe=null,he=!0,le,ae=function(){this.triangleCount=0,this.vertexCount=0,this.drawCallCount=0};function ie(E,b,z){this.availableAttributes=E,this.availableAttributeSymbols=b,this.indicesBuffer=z,this.vao=null}var me=Oe.a.extend({material:null,geometry:null,mode:ve.a.TRIANGLES,_drawCache:null,_renderInfo:null},function(){this._drawCache={},this._renderInfo=new ae},{__program:null,lightGroup:0,renderOrder:0,lineWidth:1,culling:!0,cullFace:ve.a.BACK,frontFace:ve.a.CCW,frustumCulling:!0,receiveShadow:!0,castShadow:!0,ignorePicking:!1,ignorePreZ:!1,ignoreGBuffer:!1,isRenderable:function(){return this.geometry&&this.material&&this.material.shader&&!this.invisible&&this.geometry.vertexCount>0},beforeRender:function(E){},afterRender:function(E,b){},getBoundingBox:function(E,b){return b=Oe.a.prototype.getBoundingBox.call(this,E,b),this.geometry&&this.geometry.boundingBox&&b.union(this.geometry.boundingBox),b},render:function(E,b,z){var ne=E.gl;b=b||this.material;var oe=b.shader,se=this.geometry,de=this.mode,a=se.vertexCount,x=se.isUseIndices(),re=E.getGLExtension("OES_element_index_uint"),ce=re&&a>65535,ge=ce?ne.UNSIGNED_INT:ne.UNSIGNED_SHORT,_e=E.getGLExtension("OES_vertex_array_object"),ye=!se.dynamic,be=this._renderInfo;be.vertexCount=a,be.triangleCount=0,be.drawCallCount=0;var Se=!1;if(le=E.__uid__+"-"+se.__uid__+"-"+z.__uid__,(le!==ue||_e&&ye||se._cache.isDirty("any"))&&(Se=!0),ue=le,!Se)he?(ne.drawElements(de,fe.count,ge,0),be.triangleCount=fe.count/3):ne.drawArrays(de,0,a),be.drawCallCount=1;else{var Be=this._drawCache[le];if(!Be){var Ae=se.getBufferChunks(E);if(!Ae)return;Be=[];for(var we=0;we<Ae.length;we++){for(var Ue=Ae[we],Pe=Ue.attributeBuffers,ze=Ue.indicesBuffer,Ke=[],Ne=[],Re=0;Re<Pe.length;Re++){var $e=Pe[Re],nt=$e.name,ut=$e.semantic,Qe;if(ut){var rt=oe.attributeSemantics[ut];Qe=rt&&rt.symbol}else Qe=nt;Qe&&z.attributes[Qe]&&(Ke.push($e),Ne.push(Qe))}var pt=new ie(Ke,Ne,ze);Be.push(pt)}ye&&(this._drawCache[le]=Be)}for(var At=0;At<Be.length;At++){var pt=Be[At],gt=!0;_e&&ye&&(pt.vao==null?pt.vao=_e.createVertexArrayOES():gt=!1,_e.bindVertexArrayOES(pt.vao));var Ke=pt.availableAttributes,ze=pt.indicesBuffer;if(gt)for(var Ft=z.enableAttributes(E,pt.availableAttributeSymbols,_e&&ye&&pt.vao),Re=0;Re<Ke.length;Re++){var Ct=Ft[Re];if(Ct!==-1){var $e=Ke[Re],Yt=$e.buffer,zt=$e.size,Xe;switch($e.type){case"float":Xe=ne.FLOAT;break;case"byte":Xe=ne.BYTE;break;case"ubyte":Xe=ne.UNSIGNED_BYTE;break;case"short":Xe=ne.SHORT;break;case"ushort":Xe=ne.UNSIGNED_SHORT;break;default:Xe=ne.FLOAT;break}ne.bindBuffer(ne.ARRAY_BUFFER,Yt),ne.vertexAttribPointer(Ct,zt,Xe,!1,0,0)}}(de==ve.a.LINES||de==ve.a.LINE_STRIP||de==ve.a.LINE_LOOP)&&ne.lineWidth(this.lineWidth),fe=ze,he=se.isUseIndices(),he?(gt&&ne.bindBuffer(ne.ELEMENT_ARRAY_BUFFER,ze.buffer),ne.drawElements(de,ze.count,ge,0),be.triangleCount+=ze.count/3):ne.drawArrays(de,0,a),_e&&ye&&_e.bindVertexArrayOES(null),be.drawCallCount++}}return be},clone:function(){var E=["castShadow","receiveShadow","mode","culling","cullFace","frontFace","frustumCulling","renderOrder","lineWidth","ignorePicking","ignorePreZ","ignoreGBuffer"];return function(){var b=Oe.a.prototype.clone.call(this);b.geometry=this.geometry,b.material=this.material;for(var z=0;z<E.length;z++){var ne=E[z];b[ne]!==this[ne]&&(b[ne]=this[ne])}return b}}()});me.POINTS=ve.a.POINTS,me.LINES=ve.a.LINES,me.LINE_LOOP=ve.a.LINE_LOOP,me.LINE_STRIP=ve.a.LINE_STRIP,me.TRIANGLES=ve.a.TRIANGLES,me.TRIANGLE_STRIP=ve.a.TRIANGLE_STRIP,me.TRIANGLE_FAN=ve.a.TRIANGLE_FAN,me.BACK=ve.a.BACK,me.FRONT=ve.a.FRONT,me.FRONT_AND_BACK=ve.a.FRONT_AND_BACK,me.CW=ve.a.CW,me.CCW=ve.a.CCW,me.RenderInfo=ae,Me.a=me},function(Ye,Me){var pe=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(Oe){setTimeout(Oe,16)};Ye.exports=pe},function(Ye,Me,pe){"use strict";var Oe={};Oe.isPowerOfTwo=function(ve){return(ve&ve-1)===0},Oe.nextPowerOfTwo=function(ve){return ve--,ve|=ve>>1,ve|=ve>>2,ve|=ve>>4,ve|=ve>>8,ve|=ve>>16,ve++,ve},Oe.nearestPowerOfTwo=function(ve){return Math.pow(2,Math.round(Math.log(ve)/Math.LN2))},Me.a=Oe},function(Ye,Me,pe){"use strict";var Oe=pe(4),ve=pe(1),ue=pe.n(ve),fe=ue.a.vec3,he=ue.a.mat4,le=ue.a.vec4,ae=function(ie,me){this.normal=ie||new Oe.a(0,1,0),this.distance=me||0};ae.prototype={constructor:ae,distanceToPoint:function(ie){return fe.dot(ie.array,this.normal.array)-this.distance},projectPoint:function(ie,me){me||(me=new Oe.a);var E=this.distanceToPoint(ie);return fe.scaleAndAdd(me.array,ie.array,this.normal.array,-E),me._dirty=!0,me},normalize:function(){var ie=1/fe.len(this.normal.array);fe.scale(this.normal.array,ie),this.distance*=ie},intersectFrustum:function(ie){for(var me=ie.vertices,E=this.normal.array,b=fe.dot(me[0].array,E)>this.distance,z=1;z<8;z++)if(fe.dot(me[z].array,E)>this.distance!=b)return!0},intersectLine:function(){var ie=fe.create();return function(me,E,b){var z=this.distanceToPoint(me),ne=this.distanceToPoint(E);if(z>0&&ne>0||z<0&&ne<0)return null;var oe=this.normal.array,se=this.distance,de=me.array;fe.sub(ie,E.array,me.array),fe.normalize(ie,ie);var a=fe.dot(oe,ie);if(a===0)return null;b||(b=new Oe.a);var x=(fe.dot(oe,de)-se)/a;return fe.scaleAndAdd(b.array,de,ie,-x),b._dirty=!0,b}}(),applyTransform:function(){var ie=he.create(),me=le.create(),E=le.create();return E[3]=1,function(b){b=b.array,fe.scale(E,this.normal.array,this.distance),le.transformMat4(E,E,b),this.distance=fe.dot(E,this.normal.array),he.invert(ie,b),he.transpose(ie,ie),me[3]=0,fe.copy(me,this.normal.array),le.transformMat4(me,me,ie),fe.copy(this.normal.array,me)}}(),copy:function(ie){fe.copy(this.normal.array,ie.normal.array),this.normal._dirty=!0,this.distance=ie.distance},clone:function(){var ie=new ae;return ie.copy(this),ie}},Me.a=ae},function(Ye,Me,pe){"use strict";var Oe=pe(13),ve=pe(15),ue=Oe.a.extend({dynamic:!1,widthSegments:40,heightSegments:20,phiStart:0,phiLength:Math.PI*2,thetaStart:0,thetaLength:Math.PI,radius:1},function(){this.build()},{build:function(){var fe=this.heightSegments,he=this.widthSegments,le=this.attributes.position,ae=this.attributes.texcoord0,ie=this.attributes.normal,me=(he+1)*(fe+1);le.init(me),ae.init(me),ie.init(me);var E=me>65535?Uint32Array:Uint16Array,b=this.indices=new E(he*fe*6),z,ne,oe,se,de,a,x,ye=this.radius,re=this.phiStart,ce=this.phiLength,ge=this.thetaStart,_e=this.thetaLength,ye=this.radius,be=[],Se=[],Be=0,Ae=1/ye;for(x=0;x<=fe;x++)for(a=0;a<=he;a++)se=a/he,de=x/fe,z=-ye*Math.cos(re+se*ce)*Math.sin(ge+de*_e),ne=ye*Math.cos(ge+de*_e),oe=ye*Math.sin(re+se*ce)*Math.sin(ge+de*_e),be[0]=z,be[1]=ne,be[2]=oe,Se[0]=se,Se[1]=de,le.set(Be,be),ae.set(Be,Se),be[0]*=Ae,be[1]*=Ae,be[2]*=Ae,ie.set(Be,be),Be++;var we,Ue,Pe,ze,Ke=he+1,Ne=0;for(x=0;x<fe;x++)for(a=0;a<he;a++)Ue=x*Ke+a,we=x*Ke+a+1,ze=(x+1)*Ke+a+1,Pe=(x+1)*Ke+a,b[Ne++]=we,b[Ne++]=Ue,b[Ne++]=ze,b[Ne++]=Ue,b[Ne++]=Pe,b[Ne++]=ze;this.boundingBox=new ve.a,this.boundingBox.max.set(ye,ye,ye),this.boundingBox.min.set(-ye,-ye,-ye)}});Me.a=ue},function(Ye,Me,pe){"use strict";var Oe=pe(13),ve=pe(37),ue=pe(9),fe=pe(4),he=pe(15),le=pe(18),ae=new ue.a,ie=Oe.a.extend({dynamic:!1,widthSegments:1,heightSegments:1,depthSegments:1,inside:!1},function(){this.build()},{build:function(){var E={px:me("px",this.depthSegments,this.heightSegments),nx:me("nx",this.depthSegments,this.heightSegments),py:me("py",this.widthSegments,this.depthSegments),ny:me("ny",this.widthSegments,this.depthSegments),pz:me("pz",this.widthSegments,this.heightSegments),nz:me("nz",this.widthSegments,this.heightSegments)},b=["position","texcoord0","normal"],z=0,ne=0;for(var oe in E)z+=E[oe].vertexCount,ne+=E[oe].indices.length;for(var se=0;se<b.length;se++)this.attributes[b[se]].init(z);this.indices=new le.a.Uint16Array(ne);var de=0,a=0;for(var oe in E){for(var x=E[oe],se=0;se<b.length;se++)for(var re=b[se],ce=x.attributes[re].value,ge=x.attributes[re].size,_e=re==="normal",ye=0;ye<ce.length;ye++){var be=ce[ye];this.inside&&_e&&(be=-be),this.attributes[re].value[ye+ge*a]=be}for(var Se=x.indices.length,ye=0;ye<x.indices.length;ye++)this.indices[ye+de]=a+x.indices[this.inside?Se-ye-1:ye];de+=x.indices.length,a+=x.vertexCount}this.boundingBox=new he.a,this.boundingBox.max.set(1,1,1),this.boundingBox.min.set(-1,-1,-1)}});function me(E,b,z){ae.identity();var ne=new ve.a({widthSegments:b,heightSegments:z});switch(E){case"px":ue.a.translate(ae,ae,fe.a.POSITIVE_X),ue.a.rotateY(ae,ae,Math.PI/2);break;case"nx":ue.a.translate(ae,ae,fe.a.NEGATIVE_X),ue.a.rotateY(ae,ae,-Math.PI/2);break;case"py":ue.a.translate(ae,ae,fe.a.POSITIVE_Y),ue.a.rotateX(ae,ae,-Math.PI/2);break;case"ny":ue.a.translate(ae,ae,fe.a.NEGATIVE_Y),ue.a.rotateX(ae,ae,Math.PI/2);break;case"pz":ue.a.translate(ae,ae,fe.a.POSITIVE_Z);break;case"nz":ue.a.translate(ae,ae,fe.a.NEGATIVE_Z),ue.a.rotateY(ae,ae,Math.PI);break}return ne.applyTransform(ae),ne}Me.a=ie},function(Ye,Me,pe){"use strict";var Oe=pe(19),ve=pe(4),ue=Oe.a.extend({shadowBias:.001,shadowSlopeScale:2,shadowCascade:1,cascadeSplitLogFactor:.2},{type:"DIRECTIONAL_LIGHT",uniformTemplates:{directionalLightDirection:{type:"3f",value:function(fe){return fe.__dir=fe.__dir||new ve.a,fe.__dir.copy(fe.worldTransform.z).normalize().negate().array}},directionalLightColor:{type:"3f",value:function(fe){var he=fe.color,le=fe.intensity;return[he[0]*le,he[1]*le,he[2]*le]}}},clone:function(){var fe=Oe.a.prototype.clone.call(this);return fe.shadowBias=this.shadowBias,fe.shadowSlopeScale=this.shadowSlopeScale,fe}});Me.a=ue},function(Ye,Me,pe){"use strict";var Oe=pe(19),ve=Oe.a.extend({range:100,castShadow:!1},{type:"POINT_LIGHT",uniformTemplates:{pointLightPosition:{type:"3f",value:function(ue){return ue.getWorldPosition().array}},pointLightRange:{type:"1f",value:function(ue){return ue.range}},pointLightColor:{type:"3f",value:function(ue){var fe=ue.color,he=ue.intensity;return[fe[0]*he,fe[1]*he,fe[2]*he]}}},clone:function(){var ue=Oe.a.prototype.clone.call(this);return ue.range=this.range,ue}});Me.a=ve},function(Ye,Me,pe){"use strict";var Oe=pe(19),ve=pe(4),ue=Oe.a.extend({range:20,umbraAngle:30,penumbraAngle:45,falloffFactor:2,shadowBias:2e-4,shadowSlopeScale:2},{type:"SPOT_LIGHT",uniformTemplates:{spotLightPosition:{type:"3f",value:function(fe){return fe.getWorldPosition().array}},spotLightRange:{type:"1f",value:function(fe){return fe.range}},spotLightUmbraAngleCosine:{type:"1f",value:function(fe){return Math.cos(fe.umbraAngle*Math.PI/180)}},spotLightPenumbraAngleCosine:{type:"1f",value:function(fe){return Math.cos(fe.penumbraAngle*Math.PI/180)}},spotLightFalloffFactor:{type:"1f",value:function(fe){return fe.falloffFactor}},spotLightDirection:{type:"3f",value:function(fe){return fe.__dir=fe.__dir||new ve.a,fe.__dir.copy(fe.worldTransform.z).negate().array}},spotLightColor:{type:"3f",value:function(fe){var he=fe.color,le=fe.intensity;return[he[0]*le,he[1]*le,he[2]*le]}}},clone:function(){var fe=Oe.a.prototype.clone.call(this);return fe.range=this.range,fe.umbraAngle=this.umbraAngle,fe.penumbraAngle=this.penumbraAngle,fe.falloffFactor=this.falloffFactor,fe.shadowBias=this.shadowBias,fe.shadowSlopeScale=this.shadowSlopeScale,fe}});Me.a=ue},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(5);function fe(le,ae,ie,me,E,b,z){this._zr=le,this._x=0,this._y=0,this._rowHeight=0,this.width=me,this.height=E,this.offsetX=ae,this.offsetY=ie,this.dpr=z,this.gap=b}fe.prototype={constructor:fe,clear:function(){this._x=0,this._y=0,this._rowHeight=0},add:function(le,ae,ie){var me=le.getBoundingRect();ae==null&&(ae=me.width),ie==null&&(ie=me.height),ae*=this.dpr,ie*=this.dpr,this._fitElement(le,ae,ie);var E=this._x,b=this._y,z=this.width*this.dpr,ne=this.height*this.dpr,oe=this.gap;if(E+ae+oe>z&&(E=this._x=0,b+=this._rowHeight+oe,this._y=b,this._rowHeight=0),this._x+=ae+oe,this._rowHeight=Math.max(this._rowHeight,ie),b+ie+oe>ne)return null;le.position[0]+=this.offsetX*this.dpr+E,le.position[1]+=this.offsetY*this.dpr+b,this._zr.add(le);var se=[this.offsetX/this.width,this.offsetY/this.height],de=[[E/z+se[0],b/ne+se[1]],[(E+ae)/z+se[0],(b+ie)/ne+se[1]]];return de},_fitElement:function(le,ae,ie){var me=le.getBoundingRect(),E=ae/me.width,b=ie/me.height;le.position=[-me.x*E,-me.y*b],le.scale=[E,b],le.update()}};function he(le){le=le||{},le.width=le.width||512,le.height=le.height||512,le.devicePixelRatio=le.devicePixelRatio||1,le.gap=le.gap==null?2:le.gap;var ae=document.createElement("canvas");ae.width=le.width*le.devicePixelRatio,ae.height=le.height*le.devicePixelRatio,this._canvas=ae,this._texture=new ue.a({image:ae,flipY:!1});var ie=this;this._zr=ve.a.zrender.init(ae);var me=this._zr.refreshImmediately;this._zr.refreshImmediately=function(){me.call(this),ie._texture.dirty(),ie.onupdate&&ie.onupdate()},this._dpr=le.devicePixelRatio,this._coords={},this.onupdate=le.onupdate,this._gap=le.gap,this._textureAtlasNodes=[new fe(this._zr,0,0,le.width,le.height,this._gap,this._dpr)],this._nodeWidth=le.width,this._nodeHeight=le.height,this._currentNodeIdx=0}he.prototype={clear:function(){for(var le=0;le<this._textureAtlasNodes.length;le++)this._textureAtlasNodes[le].clear();this._currentNodeIdx=0,this._zr.clear(),this._coords={}},getWidth:function(){return this._width},getHeight:function(){return this._height},getTexture:function(){return this._texture},getDevicePixelRatio:function(){return this._dpr},getZr:function(){return this._zr},_getCurrentNode:function(){return this._textureAtlasNodes[this._currentNodeIdx]},_expand:function(){if(this._currentNodeIdx++,this._textureAtlasNodes[this._currentNodeIdx])return this._textureAtlasNodes[this._currentNodeIdx];var le=4096/this._dpr,ae=this._textureAtlasNodes,ie=ae.length,me=ie*this._nodeWidth%le,E=Math.floor(ie*this._nodeWidth/le)*this._nodeHeight;if(E>=le){console.error("Too much labels. Some will be ignored.");return}var b=(me+this._nodeWidth)*this._dpr,z=(E+this._nodeHeight)*this._dpr;try{this._zr.resize({width:b,height:z})}catch(oe){this._canvas.width=b,this._canvas.height=z}var ne=new fe(this._zr,me,E,this._nodeWidth,this._nodeHeight,this._gap,this._dpr);return this._textureAtlasNodes.push(ne),ne},add:function(le,ae,ie){if(this._coords[le.id])return console.warn("Element already been add"),this._coords[le.id];var me=this._getCurrentNode().add(le,ae,ie);if(!me){var E=this._expand();if(!E)return;me=E.add(le,ae,ie)}return this._coords[le.id]=me,me},getCoordsScale:function(){var le=this._dpr;return[this._nodeWidth/this._canvas.width*le,this._nodeHeight/this._canvas.height*le]},getCoords:function(le){return this._coords[le]}},Me.a=he},function(Ye,Me,pe){"use strict";Me.a=Oe;function Oe(ve,ue,fe){var he,le=ve.scale;return le.type==="ordinal"&&(typeof fe=="function"?(he=le.getTicks()[ue],!fe(he,le.getLabel(he))):ue%(fe+1))}},function(Ye,Me,pe){var Oe=pe(76),ve=pe(77),ue=Oe.applyTransform,fe=Math.min,he=Math.max;function le(ie,me,E,b){E<0&&(ie=ie+E,E=-E),b<0&&(me=me+b,b=-b),this.x=ie,this.y=me,this.width=E,this.height=b}le.prototype={constructor:le,union:function(ie){var me=fe(ie.x,this.x),E=fe(ie.y,this.y);this.width=he(ie.x+ie.width,this.x+this.width)-me,this.height=he(ie.y+ie.height,this.y+this.height)-E,this.x=me,this.y=E},applyTransform:function(){var ie=[],me=[],E=[],b=[];return function(z){if(z){ie[0]=E[0]=this.x,ie[1]=b[1]=this.y,me[0]=b[0]=this.x+this.width,me[1]=E[1]=this.y+this.height,ue(ie,ie,z),ue(me,me,z),ue(E,E,z),ue(b,b,z),this.x=fe(ie[0],me[0],E[0],b[0]),this.y=fe(ie[1],me[1],E[1],b[1]);var ne=he(ie[0],me[0],E[0],b[0]),oe=he(ie[1],me[1],E[1],b[1]);this.width=ne-this.x,this.height=oe-this.y}}}(),calculateTransform:function(ie){var me=this,E=ie.width/me.width,b=ie.height/me.height,z=ve.create();return ve.translate(z,z,[-me.x,-me.y]),ve.scale(z,z,[E,b]),ve.translate(z,z,[ie.x,ie.y]),z},intersect:function(ie){if(!ie)return!1;ie instanceof le||(ie=le.create(ie));var me=this,E=me.x,b=me.x+me.width,z=me.y,ne=me.y+me.height,oe=ie.x,se=ie.x+ie.width,de=ie.y,a=ie.y+ie.height;return!(b<oe||se<E||ne<de||a<z)},contain:function(ie,me){var E=this;return ie>=E.x&&ie<=E.x+E.width&&me>=E.y&&me<=E.y+E.height},clone:function(){return new le(this.x,this.y,this.width,this.height)},copy:function(ie){this.x=ie.x,this.y=ie.y,this.width=ie.width,this.height=ie.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},le.create=function(ie){return new le(ie.x,ie.y,ie.width,ie.height)};var ae=le;Ye.exports=ae},function(Ye,Me){var pe=typeof Float32Array=="undefined"?Array:Float32Array;function Oe(Be,Ae){var we=new pe(2);return Be==null&&(Be=0),Ae==null&&(Ae=0),we[0]=Be,we[1]=Ae,we}function ve(Be,Ae){return Be[0]=Ae[0],Be[1]=Ae[1],Be}function ue(Be){var Ae=new pe(2);return Ae[0]=Be[0],Ae[1]=Be[1],Ae}function fe(Be,Ae,we){return Be[0]=Ae,Be[1]=we,Be}function he(Be,Ae,we){return Be[0]=Ae[0]+we[0],Be[1]=Ae[1]+we[1],Be}function le(Be,Ae,we,Ue){return Be[0]=Ae[0]+we[0]*Ue,Be[1]=Ae[1]+we[1]*Ue,Be}function ae(Be,Ae,we){return Be[0]=Ae[0]-we[0],Be[1]=Ae[1]-we[1],Be}function ie(Be){return Math.sqrt(E(Be))}var me=ie;function E(Be){return Be[0]*Be[0]+Be[1]*Be[1]}var b=E;function z(Be,Ae,we){return Be[0]=Ae[0]*we[0],Be[1]=Ae[1]*we[1],Be}function ne(Be,Ae,we){return Be[0]=Ae[0]/we[0],Be[1]=Ae[1]/we[1],Be}function oe(Be,Ae){return Be[0]*Ae[0]+Be[1]*Ae[1]}function se(Be,Ae,we){return Be[0]=Ae[0]*we,Be[1]=Ae[1]*we,Be}function de(Be,Ae){var we=ie(Ae);return we===0?(Be[0]=0,Be[1]=0):(Be[0]=Ae[0]/we,Be[1]=Ae[1]/we),Be}function a(Be,Ae){return Math.sqrt((Be[0]-Ae[0])*(Be[0]-Ae[0])+(Be[1]-Ae[1])*(Be[1]-Ae[1]))}var x=a;function re(Be,Ae){return(Be[0]-Ae[0])*(Be[0]-Ae[0])+(Be[1]-Ae[1])*(Be[1]-Ae[1])}var ce=re;function ge(Be,Ae){return Be[0]=-Ae[0],Be[1]=-Ae[1],Be}function _e(Be,Ae,we,Ue){return Be[0]=Ae[0]+Ue*(we[0]-Ae[0]),Be[1]=Ae[1]+Ue*(we[1]-Ae[1]),Be}function ye(Be,Ae,we){var Ue=Ae[0],Pe=Ae[1];return Be[0]=we[0]*Ue+we[2]*Pe+we[4],Be[1]=we[1]*Ue+we[3]*Pe+we[5],Be}function be(Be,Ae,we){return Be[0]=Math.min(Ae[0],we[0]),Be[1]=Math.min(Ae[1],we[1]),Be}function Se(Be,Ae,we){return Be[0]=Math.max(Ae[0],we[0]),Be[1]=Math.max(Ae[1],we[1]),Be}Me.create=Oe,Me.copy=ve,Me.clone=ue,Me.set=fe,Me.add=he,Me.scaleAndAdd=le,Me.sub=ae,Me.len=ie,Me.length=me,Me.lenSquare=E,Me.lengthSquare=b,Me.mul=z,Me.div=ne,Me.dot=oe,Me.scale=se,Me.normalize=de,Me.distance=a,Me.dist=x,Me.distanceSquare=re,Me.distSquare=ce,Me.negate=ge,Me.lerp=_e,Me.applyTransform=ye,Me.min=be,Me.max=Se},function(Ye,Me){var pe=typeof Float32Array=="undefined"?Array:Float32Array;function Oe(){var E=new pe(6);return ve(E),E}function ve(E){return E[0]=1,E[1]=0,E[2]=0,E[3]=1,E[4]=0,E[5]=0,E}function ue(E,b){return E[0]=b[0],E[1]=b[1],E[2]=b[2],E[3]=b[3],E[4]=b[4],E[5]=b[5],E}function fe(E,b,z){var ne=b[0]*z[0]+b[2]*z[1],oe=b[1]*z[0]+b[3]*z[1],se=b[0]*z[2]+b[2]*z[3],de=b[1]*z[2]+b[3]*z[3],a=b[0]*z[4]+b[2]*z[5]+b[4],x=b[1]*z[4]+b[3]*z[5]+b[5];return E[0]=ne,E[1]=oe,E[2]=se,E[3]=de,E[4]=a,E[5]=x,E}function he(E,b,z){return E[0]=b[0],E[1]=b[1],E[2]=b[2],E[3]=b[3],E[4]=b[4]+z[0],E[5]=b[5]+z[1],E}function le(E,b,z){var ne=b[0],oe=b[2],se=b[4],de=b[1],a=b[3],x=b[5],re=Math.sin(z),ce=Math.cos(z);return E[0]=ne*ce+de*re,E[1]=-ne*re+de*ce,E[2]=oe*ce+a*re,E[3]=-oe*re+ce*a,E[4]=ce*se+re*x,E[5]=ce*x-re*se,E}function ae(E,b,z){var ne=z[0],oe=z[1];return E[0]=b[0]*ne,E[1]=b[1]*oe,E[2]=b[2]*ne,E[3]=b[3]*oe,E[4]=b[4]*ne,E[5]=b[5]*oe,E}function ie(E,b){var z=b[0],ne=b[2],oe=b[4],se=b[1],de=b[3],a=b[5],x=z*de-se*ne;return x?(x=1/x,E[0]=de*x,E[1]=-se*x,E[2]=-ne*x,E[3]=z*x,E[4]=(ne*a-de*oe)*x,E[5]=(se*oe-z*a)*x,E):null}function me(E){var b=Oe();return ue(b,E),b}Me.create=Oe,Me.identity=ve,Me.copy=ue,Me.mul=fe,Me.translate=he,Me.rotate=le,Me.scale=ae,Me.invert=ie,Me.clone=me},function(Ye,Me,pe){var Oe=pe(12),ve=1e-4;function ue(_e){return _e.replace(/^\s+/,"").replace(/\s+$/,"")}function fe(_e,ye,be,Se){var Be=ye[1]-ye[0],Ae=be[1]-be[0];if(Be===0)return Ae===0?be[0]:(be[0]+be[1])/2;if(Se)if(Be>0){if(_e<=ye[0])return be[0];if(_e>=ye[1])return be[1]}else{if(_e>=ye[0])return be[0];if(_e<=ye[1])return be[1]}else{if(_e===ye[0])return be[0];if(_e===ye[1])return be[1]}return(_e-ye[0])/Be*Ae+be[0]}function he(_e,ye){switch(_e){case"center":case"middle":_e="50%";break;case"left":case"top":_e="0%";break;case"right":case"bottom":_e="100%";break}return typeof _e=="string"?ue(_e).match(/%$/)?parseFloat(_e)/100*ye:parseFloat(_e):_e==null?NaN:+_e}function le(_e,ye,be){return ye==null&&(ye=10),ye=Math.min(Math.max(0,ye),20),_e=(+_e).toFixed(ye),be?_e:+_e}function ae(_e){return _e.sort(function(ye,be){return ye-be}),_e}function ie(_e){if(_e=+_e,isNaN(_e))return 0;for(var ye=1,be=0;Math.round(_e*ye)/ye!==_e;)ye*=10,be++;return be}function me(_e){var ye=_e.toString(),be=ye.indexOf("e");if(be>0){var Se=+ye.slice(be+1);return Se<0?-Se:0}else{var Be=ye.indexOf(".");return Be<0?0:ye.length-1-Be}}function E(_e,ye){var be=Math.log,Se=Math.LN10,Be=Math.floor(be(_e[1]-_e[0])/Se),Ae=Math.round(be(Math.abs(ye[1]-ye[0]))/Se),we=Math.min(Math.max(-Be+Ae,0),20);return isFinite(we)?we:20}function b(_e,ye,be){if(!_e[ye])return 0;var Se=Oe.reduce(_e,function(nt,ut){return nt+(isNaN(ut)?0:ut)},0);if(Se===0)return 0;for(var Be=Math.pow(10,be),Ae=Oe.map(_e,function(nt){return(isNaN(nt)?0:nt)/Se*Be*100}),we=Be*100,Ue=Oe.map(Ae,function(nt){return Math.floor(nt)}),Pe=Oe.reduce(Ue,function(nt,ut){return nt+ut},0),ze=Oe.map(Ae,function(nt,ut){return nt-Ue[ut]});Pe<we;){for(var Ke=Number.NEGATIVE_INFINITY,Ne=null,Re=0,$e=ze.length;Re<$e;++Re)ze[Re]>Ke&&(Ke=ze[Re],Ne=Re);++Ue[Ne],ze[Ne]=0,++Pe}return Ue[ye]/Be}var z=9007199254740991;function ne(_e){var ye=Math.PI*2;return(_e%ye+ye)%ye}function oe(_e){return _e>-ve&&_e<ve}var se=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function de(_e){if(_e instanceof Date)return _e;if(typeof _e=="string"){var ye=se.exec(_e);if(!ye)return new Date(NaN);if(ye[8]){var be=+ye[4]||0;return ye[8].toUpperCase()!=="Z"&&(be-=ye[8].slice(0,3)),new Date(Date.UTC(+ye[1],+(ye[2]||1)-1,+ye[3]||1,be,+(ye[5]||0),+ye[6]||0,+ye[7]||0))}else return new Date(+ye[1],+(ye[2]||1)-1,+ye[3]||1,+ye[4]||0,+(ye[5]||0),+ye[6]||0,+ye[7]||0)}else if(_e==null)return new Date(NaN);return new Date(Math.round(_e))}function a(_e){return Math.pow(10,x(_e))}function x(_e){return Math.floor(Math.log(_e)/Math.LN10)}function re(_e,ye){var be=x(_e),Se=Math.pow(10,be),Be=_e/Se,Ae;return ye?Be<1.5?Ae=1:Be<2.5?Ae=2:Be<4?Ae=3:Be<7?Ae=5:Ae=10:Be<1?Ae=1:Be<2?Ae=2:Be<3?Ae=3:Be<5?Ae=5:Ae=10,_e=Ae*Se,be>=-20?+_e.toFixed(be<0?-be:0):_e}function ce(_e){_e.sort(function(Pe,ze){return Ue(Pe,ze,0)?-1:1});for(var ye=-1/0,be=1,Se=0;Se<_e.length;){for(var Be=_e[Se].interval,Ae=_e[Se].close,we=0;we<2;we++)Be[we]<=ye&&(Be[we]=ye,Ae[we]=we?1:1-be),ye=Be[we],be=Ae[we];Be[0]===Be[1]&&Ae[0]*Ae[1]!==1?_e.splice(Se,1):Se++}return _e;function Ue(Pe,ze,Ke){return Pe.interval[Ke]<ze.interval[Ke]||Pe.interval[Ke]===ze.interval[Ke]&&(Pe.close[Ke]-ze.close[Ke]===(Ke?-1:1)||!Ke&&Ue(Pe,ze,1))}}function ge(_e){return _e-parseFloat(_e)>=0}Me.linearMap=fe,Me.parsePercent=he,Me.round=le,Me.asc=ae,Me.getPrecision=ie,Me.getPrecisionSafe=me,Me.getPixelPrecision=E,Me.getPercentWithPrecision=b,Me.MAX_SAFE_INTEGER=z,Me.remRadian=ne,Me.isRadianAroundZero=oe,Me.parseDate=de,Me.quantity=a,Me.nice=re,Me.reformIntervals=ce,Me.isNumeric=ge},function(Ye,Me,pe){"use strict";var Oe=pe(5),ve=pe(11),ue=pe(21),fe=function(){this._pool={},this._allocatedTextures=[]};fe.prototype={constructor:fe,get:function(E){var b=ae(E);this._pool.hasOwnProperty(b)||(this._pool[b]=[]);var z=this._pool[b];if(!z.length){var ne=new Oe.a(E);return this._allocatedTextures.push(ne),ne}return z.pop()},put:function(E){var b=ae(E);this._pool.hasOwnProperty(b)||(this._pool[b]=[]);var z=this._pool[b];z.push(E)},clear:function(E){for(var b=0;b<this._allocatedTextures.length;b++)this._allocatedTextures[b].dispose(E);this._pool={},this._allocatedTextures=[]}};var he={width:512,height:512,type:ve.a.UNSIGNED_BYTE,format:ve.a.RGBA,wrapS:ve.a.CLAMP_TO_EDGE,wrapT:ve.a.CLAMP_TO_EDGE,minFilter:ve.a.LINEAR_MIPMAP_LINEAR,magFilter:ve.a.LINEAR,useMipmap:!0,anisotropic:1,flipY:!0,unpackAlignment:4,premultiplyAlpha:!1},le=Object.keys(he);function ae(E){ue.a.defaultsWithPropList(E,he,le),ie(E);for(var b="",z=0;z<le.length;z++){var ne=le[z],oe=E[ne].toString();b+=oe}return b}function ie(E){var b=me(E.width,E.height);E.format===ve.a.DEPTH_COMPONENT&&(E.useMipmap=!1),(!b||!E.useMipmap)&&(E.minFilter==ve.a.NEAREST_MIPMAP_NEAREST||E.minFilter==ve.a.NEAREST_MIPMAP_LINEAR?E.minFilter=ve.a.NEAREST:(E.minFilter==ve.a.LINEAR_MIPMAP_LINEAR||E.minFilter==ve.a.LINEAR_MIPMAP_NEAREST)&&(E.minFilter=ve.a.LINEAR)),b||(E.wrapS=ve.a.CLAMP_TO_EDGE,E.wrapT=ve.a.CLAMP_TO_EDGE)}function me(E,b){return(E&E-1)===0&&(b&b-1)===0}Me.a=fe},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe);Me.a={getFilledRegions:function(ue,fe){var he=(ue||[]).slice(),le;if(typeof fe=="string"?(fe=ve.a.getMap(fe),le=fe&&fe.geoJson):fe&&fe.features&&(le=fe),!le)return console.error("Map "+fe+" not exists. You can download map file on http://echarts.baidu.com/download-map.html"),le.features||console.error("Invalid GeoJSON for map3D"),[];for(var ae={},ie=le.features,me=0;me<he.length;me++)ae[he[me].name]=he[me];for(var me=0;me<ie.length;me++){var E=ie[me].properties.name;ae[E]||he.push({name:E})}return he},defaultOption:{show:!0,zlevel:-10,map:"",left:0,top:0,width:"100%",height:"100%",boxWidth:100,boxHeight:10,boxDepth:"auto",regionHeight:3,environment:"auto",groundPlane:{show:!1,color:"#aaa"},shading:"lambert",light:{main:{alpha:40,beta:30}},viewControl:{alpha:40,beta:0,distance:100,orthographicSize:60,minAlpha:5,minBeta:-80,maxBeta:80},label:{show:!1,distance:2,textStyle:{fontSize:20,color:"#000",backgroundColor:"rgba(255,255,255,0.7)",padding:3,borderRadius:4}},itemStyle:{color:"#fff",borderWidth:0,borderColor:"#333"},emphasis:{itemStyle:{color:"#639fc0"},label:{show:!0}}}}},function(Ye,Me,pe){"use strict";function Oe(he,le,ae){var ie=he[le];he[le]=he[ae],he[ae]=ie}function ve(he,le,ae,ie,me){var E=ae,b=he[le];Oe(he,le,ie);for(var z=ae;z<ie;z++)me(he[z],b)<0&&(Oe(he,z,E),E++);return Oe(he,ie,E),E}function ue(he,le,ae,ie){if(ae<ie){var me=Math.floor((ae+ie)/2),E=ve(he,me,ae,ie,le);ue(he,le,ae,E-1),ue(he,le,E+1,ie)}}function fe(){this._parts=[]}fe.prototype.step=function(he,le,ae){var ie=he.length;if(ae===0){this._parts=[],this._sorted=!1;var me=Math.floor(ie/2);this._parts.push({pivot:me,left:0,right:ie-1}),this._currentSortPartIdx=0}if(!this._sorted){var E=this._parts;if(E.length===0)return this._sorted=!0,!0;if(E.length<512){for(var b=0;b<E.length;b++)E[b].pivot=ve(he,E[b].pivot,E[b].left,E[b].right,le);for(var z=[],b=0;b<E.length;b++){var ne=E[b].left,oe=E[b].pivot-1;oe>ne&&z.push({pivot:Math.floor((oe+ne)/2),left:ne,right:oe});var ne=E[b].pivot+1,oe=E[b].right;oe>ne&&z.push({pivot:Math.floor((oe+ne)/2),left:ne,right:oe})}E=this._parts=z}else for(var b=0;b<Math.floor(E.length/10);b++){var se=E.length-1-this._currentSortPartIdx;if(ue(he,le,E[se].left,E[se].right),this._currentSortPartIdx++,this._currentSortPartIdx===E.length)return this._sorted=!0,!0}return!1}},fe.sort=ue,Me.a=fe},function(Ye,Me,pe){"use strict";var Oe=pe(83),ve=pe(0),ue=pe.n(ve),fe=pe(41),he=pe.n(fe),le=pe(20),ae=pe(3);function ie(ne,oe){var se=ne.getBoxLayoutParams(),de=he.a.getLayoutRect(se,{width:oe.getWidth(),height:oe.getHeight()});de.y=oe.getHeight()-de.y-de.height,this.viewGL.setViewport(de.x,de.y,de.width,de.height,oe.getDevicePixelRatio());var a=this.getGeoBoundingRect(),x=a.width/a.height*(ne.get("aspectScale")||.75),re=ne.get("boxWidth"),ce=ne.get("boxDepth"),ge=ne.get("boxHeight");ge==null&&(ge=5),isNaN(re)&&isNaN(ce)&&(re=100),isNaN(ce)?ce=re/x:isNaN(re)&&(re=ce/x),this.setSize(re,ge,ce),this.regionHeight=ne.get("regionHeight"),this.altitudeAxis&&this.altitudeAxis.setExtent(0,Math.max(ge-this.regionHeight,0))}function me(ne,oe){var se=[1/0,-1/0];if(ne.eachSeries(function(a){if(a.coordinateSystem===this&&a.type!=="series.map3D"){var x=a.getData(),re=a.coordDimToDataDim("alt")[0];if(re){var ce=x.getDataExtent(re,!0);se[0]=Math.min(se[0],ce[0]),se[1]=Math.max(se[1],ce[1])}}},this),se&&isFinite(se[1]-se[0])){var de=ue.a.helper.createScale(se,{type:"value",min:"dataMin",max:"dataMax"});this.altitudeAxis=new ue.a.Axis("altitude",de),this.resize(this.model,oe)}}var E=function(ne){console.error("Map "+ne+" not exists. You can download map file on http://echarts.baidu.com/download-map.html")},b=0,z={dimensions:Oe.a.prototype.dimensions,create:function(ne,oe){var se=[];if(!ue.a.getMap)throw new Error("geo3D component depends on geo component");function de(a,x){var re=z.createGeo3D(a);a.__viewGL=a.__viewGL||new le.a,re.viewGL=a.__viewGL,a.coordinateSystem=re,re.model=a,se.push(re),re.resize=ie,re.resize(a,oe),re.update=me}return ne.eachComponent("geo3D",function(a,x){de(a,x)}),ne.eachSeriesByType("map3D",function(a,x){var re=a.get("coordinateSystem");re==null&&(re="geo3D"),re==="geo3D"&&de(a,x)}),ne.eachSeries(function(a){if(a.get("coordinateSystem")==="geo3D"){if(a.type==="series.map3D")return;var x=a.getReferringComponents("geo3D")[0];if(x||(x=ne.getComponent("geo3D")),!x)throw new Error('geo "'+ae.a.firstNotNull(a.get("geo3DIndex"),a.get("geo3DId"),0)+'" not found');a.coordinateSystem=x.coordinateSystem}}),se},createGeo3D:function(ne){var oe=ne.get("map"),se;if(typeof oe=="string"?(se=oe,oe=ue.a.getMap(oe)):oe&&oe.features&&(oe={geoJson:oe}),oe||E(oe),!oe.geoJson.features)throw new Error("Invalid GeoJSON for map3D");return se==null&&(se="GEO_ANONYMOUS_"+b++),new Oe.a(se+b++,se,oe&&oe.geoJson,oe&&oe.specialAreas,ne.get("nameMap"))}};ue.a.registerCoordinateSystem("geo3D",z),Me.a=z},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(1),fe=pe.n(ue),he=pe(187),le=pe.n(he),ae=pe(188),ie=pe.n(ae),me=fe.a.vec3,E=fe.a.mat4,b=[le.a,ie.a];function z(ne,oe,se,de,a){this.name=ne,this.map=oe,this.regionHeight=0,this.regions=[],this._nameCoordMap={},this.loadGeoJson(se,de,a),this.transform=E.identity(new Float64Array(16)),this.invTransform=E.identity(new Float64Array(16)),this.extrudeY=!0,this.altitudeAxis}z.prototype={constructor:z,type:"geo3D",dimensions:["lng","lat","alt"],containPoint:function(){},loadGeoJson:function(ne,oe,se){var de=ve.a.parseGeoJSON||ve.a.parseGeoJson;try{this.regions=ne?de(ne):[]}catch(_e){throw`Invalid geoJson format
|
|
|
`+_e}oe=oe||{},se=se||{};for(var a=this.regions,x={},re=0;re<a.length;re++){var ce=a[re].name;ce=se[ce]||ce,a[re].name=ce,x[ce]=a[re],this.addGeoCoord(ce,a[re].center);var ge=oe[ce];ge&&a[re].transformTo(ge.left,ge.top,ge.width,ge.height)}this._regionsMap=x,this._geoRect=null,b.forEach(function(_e){_e(this)},this)},getGeoBoundingRect:function(){if(this._geoRect)return this._geoRect;for(var ne,oe=this.regions,se=0;se<oe.length;se++){var de=oe[se].getBoundingRect();ne=ne||de.clone(),ne.union(de)}return this._geoRect=ne||new ve.a.graphic.BoundingRect(0,0,0,0)},addGeoCoord:function(ne,oe){this._nameCoordMap[ne]=oe},getRegion:function(ne){return this._regionsMap[ne]},getRegionByCoord:function(ne){for(var oe=this.regions,se=0;se<oe.length;se++)if(oe[se].contain(ne))return oe[se]},setSize:function(ne,oe,se){this.size=[ne,oe,se];var de=this.getGeoBoundingRect(),a=ne/de.width,x=-se/de.height,re=-ne/2-de.x*a,ce=se/2-de.y*x,ge=this.extrudeY?[re,0,ce]:[re,ce,0],_e=this.extrudeY?[a,1,x]:[a,x,1],ye=this.transform;E.identity(ye),E.translate(ye,ye,ge),E.scale(ye,ye,_e),E.invert(this.invTransform,ye)},dataToPoint:function(ne,oe){oe=oe||[];var se=this.extrudeY?1:2,de=this.extrudeY?2:1,a=ne[2];return isNaN(a)&&(a=0),oe[0]=ne[0],oe[de]=ne[1],this.altitudeAxis?oe[se]=this.altitudeAxis.dataToCoord(a):oe[se]=0,oe[se]+=this.regionHeight,me.transformMat4(oe,oe,this.transform),oe},pointToData:function(ne,oe){}},Me.a=z},function(Ye,Me,pe){"use strict";var Oe=pe(77),ve=pe.n(Oe),ue=pe(76),fe=pe.n(ue);function he(le){this.viewGL=le}he.prototype.reset=function(le,ae){this._updateCamera(ae.getWidth(),ae.getHeight(),ae.getDevicePixelRatio()),this._viewTransform=ve.a.create(),this.updateTransform(le,ae)},he.prototype.updateTransform=function(le,ae){var ie=le.coordinateSystem;ie.getRoamTransform&&(ve.a.invert(this._viewTransform,ie.getRoamTransform()),this._setCameraTransform(this._viewTransform),ae.getZr().refresh())},he.prototype.dataToPoint=function(le,ae,ie){ie=le.dataToPoint(ae,null,ie);var me=this._viewTransform;me&&fe.a.applyTransform(ie,ie,me)},he.prototype.removeTransformInPoint=function(le){return this._viewTransform&&fe.a.applyTransform(le,le,this._viewTransform),le},he.prototype.getZoom=function(){if(this._viewTransform){var le=this._viewTransform;return 1/Math.max(Math.sqrt(le[0]*le[0]+le[1]*le[1]),Math.sqrt(le[2]*le[2]+le[3]*le[3]))}return 1},he.prototype._setCameraTransform=function(le){var ae=this.viewGL.camera;ae.position.set(le[4],le[5],0),ae.scale.set(Math.sqrt(le[0]*le[0]+le[1]*le[1]),Math.sqrt(le[2]*le[2]+le[3]*le[3]),1)},he.prototype._updateCamera=function(le,ae,ie){this.viewGL.setViewport(0,0,le,ae,ie);var me=this.viewGL.camera;me.left=me.top=0,me.bottom=ae,me.right=le,me.near=0,me.far=100},Me.a=he},function(Ye,Me,pe){(function(Oe){var ve;typeof window!="undefined"?ve=window.__DEV__:typeof Oe!="undefined"&&(ve=Oe.__DEV__),typeof ve=="undefined"&&(ve=!0);var ue=ve;Me.__DEV__=ue}).call(Me,pe(243))},function(Ye,Me,pe){"use strict";var Oe=pe(13),ve=pe(0),ue=pe.n(ve),fe=pe(33),he=pe(1),le=pe.n(he),ae=le.a.vec2,ie=[[0,0],[1,1]],me=Oe.a.extend(function(){return{segmentScale:4,dynamic:!0,useNativeLine:!0,attributes:{position:new Oe.a.Attribute("position","float",2,"POSITION"),normal:new Oe.a.Attribute("normal","float",2),offset:new Oe.a.Attribute("offset","float",1),color:new Oe.a.Attribute("color","float",4,"COLOR")}}},{resetOffset:function(){this._vertexOffset=0,this._faceOffset=0,this._itemVertexOffsets=[]},setVertexCount:function(E){var b=this.attributes;this.vertexCount!==E&&(b.position.init(E),b.color.init(E),this.useNativeLine||(b.offset.init(E),b.normal.init(E)),E>65535?this.indices instanceof Uint16Array&&(this.indices=new Uint32Array(this.indices)):this.indices instanceof Uint32Array&&(this.indices=new Uint16Array(this.indices)))},setTriangleCount:function(E){this.triangleCount!==E&&(E===0?this.indices=null:this.indices=this.vertexCount>65535?new Uint32Array(E*3):new Uint16Array(E*3))},_getCubicCurveApproxStep:function(E,b,z,ne){var oe=ae.dist(E,b)+ae.dist(z,b)+ae.dist(ne,z),se=1/(oe+1)*this.segmentScale;return se},getCubicCurveVertexCount:function(E,b,z,ne){var oe=this._getCubicCurveApproxStep(E,b,z,ne),se=Math.ceil(1/oe);return this.useNativeLine?se*2:se*2+2},getCubicCurveTriangleCount:function(E,b,z,ne){var oe=this._getCubicCurveApproxStep(E,b,z,ne),se=Math.ceil(1/oe);return this.useNativeLine?0:se*2},getLineVertexCount:function(){return this.getPolylineVertexCount(ie)},getLineTriangleCount:function(){return this.getPolylineTriangleCount(ie)},getPolylineVertexCount:function(E){var b;if(typeof E=="number")b=E;else{var z=typeof E[0]!="number";b=z?E.length:E.length/2}return this.useNativeLine?(b-1)*2:(b-1)*2+2},getPolylineTriangleCount:function(E){var b;if(typeof E=="number")b=E;else{var z=typeof E[0]!="number";b=z?E.length:E.length/2}return this.useNativeLine?0:(b-1)*2},addCubicCurve:function(E,b,z,ne,oe,se){se==null&&(se=1);for(var de=E[0],a=E[1],x=b[0],re=b[1],ce=z[0],ge=z[1],_e=ne[0],ye=ne[1],be=this._getCubicCurveApproxStep(E,b,z,ne),Se=be*be,Be=Se*be,Ae=3*be,we=3*Se,Ue=6*Se,Pe=6*Be,ze=de-x*2+ce,Ke=a-re*2+ge,Ne=(x-ce)*3-de+_e,Re=(re-ge)*3-a+ye,$e=de,nt=a,ut=(x-de)*Ae+ze*we+Ne*Be,Qe=(re-a)*Ae+Ke*we+Re*Be,rt=ze*Ue+Ne*Pe,pt=Ke*Ue+Re*Pe,At=Ne*Pe,gt=Re*Pe,Ft=0,Ct=0,Yt=Math.ceil(1/be),zt=new Float32Array((Yt+1)*3),zt=[],Xe=0,Ct=0;Ct<Yt+1;Ct++)zt[Xe++]=$e,zt[Xe++]=nt,$e+=ut,nt+=Qe,ut+=rt,Qe+=pt,rt+=At,pt+=gt,Ft+=be,Ft>1&&($e=ut>0?Math.min($e,_e):Math.max($e,_e),nt=Qe>0?Math.min(nt,ye):Math.max(nt,ye));this.addPolyline(zt,oe,se)},addLine:function(E,b,z,ne){this.addPolyline([E,b],z,ne)},addPolyline:function(){var E=ae.create(),b=ae.create(),z=ae.create(),ne=ae.create(),oe=[],se=[],de=[];return function(a,x,re,ce,ge){if(a.length){var _e=typeof a[0]!="number";if(ge==null&&(ge=_e?a.length:a.length/2),!(ge<2)){ce==null&&(ce=0),re==null&&(re=1),this._itemVertexOffsets.push(this._vertexOffset);for(var ye=_e?typeof x[0]!="number":x.length/4===ge,be=this.attributes.position,Se=this.attributes.color,Be=this.attributes.offset,Ae=this.attributes.normal,we=this.indices,Ue=this._vertexOffset,Pe,ze=0;ze<ge;ze++){if(_e)oe=a[ze+ce],ye?Pe=x[ze+ce]:Pe=x;else{var Ke=ze*2+ce;if(oe=oe||[],oe[0]=a[Ke],oe[1]=a[Ke+1],ye){var Ne=ze*4+ce;Pe=Pe||[],Pe[0]=x[Ne],Pe[1]=x[Ne+1],Pe[2]=x[Ne+2],Pe[3]=x[Ne+3]}else Pe=x}if(this.useNativeLine)ze>1&&(be.copy(Ue,Ue-1),Se.copy(Ue,Ue-1),Ue++);else{var Re;if(ze<ge-1){if(_e)ae.copy(se,a[ze+1]);else{var Ke=(ze+1)*2+ce;se=se||[],se[0]=a[Ke],se[1]=a[Ke+1]}if(ze>0){ae.sub(E,oe,de),ae.sub(b,se,oe),ae.normalize(E,E),ae.normalize(b,b),ae.add(ne,E,b),ae.normalize(ne,ne);var $e=re/2*Math.min(1/ae.dot(E,ne),2);z[0]=-ne[1],z[1]=ne[0],Re=$e}else ae.sub(E,se,oe),ae.normalize(E,E),z[0]=-E[1],z[1]=E[0],Re=re/2}else ae.sub(E,oe,de),ae.normalize(E,E),z[0]=-E[1],z[1]=E[0],Re=re/2;Ae.set(Ue,z),Ae.set(Ue+1,z),Be.set(Ue,Re),Be.set(Ue+1,-Re),ae.copy(de,oe),be.set(Ue,oe),be.set(Ue+1,oe),Se.set(Ue,Pe),Se.set(Ue+1,Pe),Ue+=2}if(this.useNativeLine)Se.set(Ue,Pe),be.set(Ue,oe),Ue++;else if(ze>0){var nt=this._faceOffset*3,we=this.indices;we[nt]=Ue-4,we[nt+1]=Ue-3,we[nt+2]=Ue-2,we[nt+3]=Ue-3,we[nt+4]=Ue-1,we[nt+5]=Ue-2,this._faceOffset+=2}}this._vertexOffset=Ue}}}}(),setItemColor:function(E,b){for(var z=this._itemVertexOffsets[E],ne=E<this._itemVertexOffsets.length-1?this._itemVertexOffsets[E+1]:this._vertexOffset,oe=z;oe<ne;oe++)this.attributes.color.set(oe,b);this.dirty("color")}});ue.a.util.defaults(me.prototype,fe.a),Me.a=me},function(Ye,Me,pe){"use strict";Object.defineProperty(Me,"__esModule",{value:!0});var Oe=pe(88),ve=pe(133),ue=pe(183),fe=pe(189),he=pe(195),le=pe(202),ae=pe(209),ie=pe(213),me=pe(220),E=pe(226),b=pe(229),z=pe(233),ne=pe(236),oe=pe(239),se=pe(253),de=pe(259)},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(89),fe=pe(90),he=pe(101),le=pe(2),ae={version:"1.0.0",dependencies:{echarts:"4.0.0",claygl:"1.0.0"}},ie=ae.dependencies;function me(oe){throw new Error(oe+" version is too old, needs "+ie[oe]+" or higher")}function E(oe,se){oe.replace(".","")-0<ie[se].replace(".","")-0&&me(se),console.log("Loaded "+se+", version "+oe)}E(ue.a,"claygl"),E(ve.a.version,"echarts");function b(oe){this._layers={},this._zr=oe}b.prototype.update=function(oe,se){var de=this,a=se.getZr();if(!a.getWidth()||!a.getHeight()){console.warn("Dom has no width or height");return}function x(ge){var _e;ge.coordinateSystem&&ge.coordinateSystem.model,_e=ge.get("zlevel");var ye=de._layers,be=ye[_e];if(!be){if(be=ye[_e]=new fe.a("gl-"+_e,a),a.painter.isSingleCanvas()){be.virtual=!0;var Se=new ve.a.graphic.Image({z:1e4,style:{image:be.renderer.canvas},silent:!0});be.__hostImage=Se,a.add(Se)}a.painter.insertLayer(_e,be)}return be.__hostImage&&be.__hostImage.setStyle({width:be.renderer.getWidth(),height:be.renderer.getHeight()}),be}function re(ge,_e){ge&&ge.traverse(function(ye){ye.isRenderable&&ye.isRenderable()&&(ye.ignorePicking=ye.$ignorePicking!=null?ye.$ignorePicking:_e)})}for(var ce in this._layers)this._layers[ce].removeViewsAll();oe.eachComponent(function(ge,_e){if(ge!=="series"){var ye=se.getViewOfComponentModel(_e),be=_e.coordinateSystem;if(ye.__ecgl__){var Se;if(be){if(!be.viewGL){console.error("Can't find viewGL in coordinateSystem of component "+_e.id);return}Se=be.viewGL}else{if(!_e.viewGL){console.error("Can't find viewGL of component "+_e.id);return}Se=be.viewGL}var Se=be.viewGL,Be=x(_e);Be.addView(Se),ye.afterRender&&ye.afterRender(_e,oe,se,Be),re(ye.groupGL,_e.get("silent"))}}}),oe.eachSeries(function(ge){var _e=se.getViewOfSeriesModel(ge),ye=ge.coordinateSystem;if(_e.__ecgl__){if(ye&&!ye.viewGL&&!_e.viewGL){console.error("Can't find viewGL of series "+_e.id);return}var be=ye&&ye.viewGL||_e.viewGL,Se=x(ge);Se.addView(be),_e.afterRender&&_e.afterRender(ge,oe,se,Se),re(_e.groupGL,ge.get("silent"))}})};var z=ve.a.init;ve.a.init=function(){var oe=z.apply(this,arguments);return oe.getZr().painter.getRenderedCanvas=function(se){if(se=se||{},this._singleCanvas)return this._layers[0].dom;var de=document.createElement("canvas"),a=se.pixelRatio||this.dpr;de.width=this.getWidth()*a,de.height=this.getHeight()*a;var x=de.getContext("2d");x.dpr=a,x.clearRect(0,0,de.width,de.height),se.backgroundColor&&(x.fillStyle=se.backgroundColor,x.fillRect(0,0,de.width,de.height));var re=this.storage.getDisplayList(!0),ce={},ge,_e=this;function ye(Ae,we){var Ue=_e._zlevelList;Ae==null&&(Ae=-1/0);for(var Pe,ze=0;ze<Ue.length;ze++){var Ke=Ue[ze],Ne=_e._layers[Ke];if(!Ne.__builtin__&&Ke>Ae&&Ke<we){Pe=Ne;break}}Pe&&Pe.renderToCanvas&&(x.save(),Pe.renderToCanvas(x),x.restore())}for(var be={ctx:x},Se=0;Se<re.length;Se++){var Be=re[Se];Be.zlevel!==ge&&(ye(ge,Be.zlevel),ge=Be.zlevel),this._doPaintEl(Be,be,!0,ce)}return ye(ge,1/0),de},oe},ve.a.registerPostUpdate(function(oe,se){var de=se.getZr(),a=de.__egl=de.__egl||new b(de);a.update(oe,se)}),ve.a.registerPreprocessor(he.a),ve.a.graphicGL=le.a;var ne=b},function(Ye,Me,pe){"use strict";Me.a="1.0.0"},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(46),fe=pe(100),he=pe(6),le=pe(47),ae=pe(65),ie=pe.n(ae),me=function(de,a){this.id=de,this.zr=a;try{this.renderer=new ue.a({clearBit:0,devicePixelRatio:a.painter.dpr,preserveDrawingBuffer:!0,premultipliedAlpha:!0}),this.renderer.resize(a.painter.getWidth(),a.painter.getHeight())}catch(re){this.renderer=null,this.dom=document.createElement("div"),this.dom.style.cssText="position:absolute; left: 0; top: 0; right: 0; bottom: 0;",this.dom.className="ecgl-nowebgl",this.dom.innerHTML="Sorry, your browser does support WebGL",console.error(re);return}this.onglobalout=this.onglobalout.bind(this),a.on("globalout",this.onglobalout),this.dom=this.renderer.canvas;var x=this.dom.style;x.position="absolute",x.left="0",x.top="0",this.views=[],this._picking=new fe.a({renderer:this.renderer}),this._viewsToDispose=[],this._accumulatingId=0,this._zrEventProxy=new ve.a.graphic.Rect({shape:{x:-1,y:-1,width:2,height:2},__isGLToZRProxy:!0})};me.prototype.addView=function(de){if(de.layer!==this){var a=this._viewsToDispose.indexOf(de);a>=0&&this._viewsToDispose.splice(a,1),this.views.push(de),de.layer=this;var x=this.zr;de.scene.traverse(function(re){re.__zr=x,re.addAnimatorsToZr&&re.addAnimatorsToZr(x)})}};function E(de){var a=de.__zr;de.__zr=null,a&&de.removeAnimatorsFromZr&&de.removeAnimatorsFromZr(a)}me.prototype.removeView=function(de){if(de.layer===this){var a=this.views.indexOf(de);a>=0&&(this.views.splice(a,1),de.scene.traverse(E,this),de.layer=null,this._viewsToDispose.push(de))}},me.prototype.removeViewsAll=function(){this.views.forEach(function(de){de.scene.traverse(E,this),de.layer=null,this._viewsToDispose.push(de)},this),this.views.length=0},me.prototype.resize=function(de,a){var x=this.renderer;x.resize(de,a)},me.prototype.clear=function(){var de=this.renderer.gl;de.clearColor(0,0,0,0),de.depthMask(!0),de.colorMask(!0,!0,!0,!0),de.clear(de.DEPTH_BUFFER_BIT|de.COLOR_BUFFER_BIT)},me.prototype.clearDepth=function(){var de=this.renderer.gl;de.clear(de.DEPTH_BUFFER_BIT)},me.prototype.clearColor=function(){var de=this.renderer.gl;de.clearColor(0,0,0,0),de.clear(de.COLOR_BUFFER_BIT)},me.prototype.needsRefresh=function(){this.zr.refresh()},me.prototype.refresh=function(){for(var de=0;de<this.views.length;de++)this.views[de].prepareRender();this._doRender(!1),this._trackAndClean();for(var de=0;de<this._viewsToDispose.length;de++)this._viewsToDispose[de].dispose(this.renderer);this._viewsToDispose.length=0,this._startAccumulating()},me.prototype.renderToCanvas=function(de){this._startAccumulating(!0),de.drawImage(this.dom,0,0,de.canvas.width,de.canvas.height)},me.prototype._doRender=function(de){this.clear(),this.renderer.saveViewport();for(var a=0;a<this.views.length;a++)this.views[a].render(this.renderer,de);this.renderer.restoreViewport()},me.prototype._stopAccumulating=function(){this._accumulatingId=0,clearTimeout(this._accumulatingTimeout)};var b=1;me.prototype._startAccumulating=function(de){var a=this;this._stopAccumulating();for(var x=!1,re=0;re<this.views.length;re++)x=this.views[re].needsAccumulate()||x;if(!x)return;function ce(ge){if(!(!a._accumulatingId||ge!==a._accumulatingId)){for(var _e=!0,ye=0;ye<a.views.length;ye++)_e=a.views[ye].isAccumulateFinished()&&x;_e||(a._doRender(!0),de?ce(ge):ie()(function(){ce(ge)}))}}this._accumulatingId=b++,de?ce(a._accumulatingId):this._accumulatingTimeout=setTimeout(function(){ce(a._accumulatingId)},50)},me.prototype._trackAndClean=function(){var de=[],a=[];this._textureList&&(z(this._textureList),z(this._geometriesList));for(var x=0;x<this.views.length;x++)se(this.views[x].scene,de,a);this._textureList&&(ne(this.renderer,this._textureList),ne(this.renderer,this._geometriesList)),this._textureList=de,this._geometriesList=a};function z(de){for(var a=0;a<de.length;a++)de[a].__used__=0}function ne(de,a){for(var x=0;x<a.length;x++)a[x].__used__||a[x].dispose(de)}function oe(de,a){de.__used__=de.__used__||0,de.__used__++,de.__used__===1&&a.push(de)}function se(de,a,x){function re(ge){for(var _e,ye,be=0;be<ge.length;be++){var Se=ge[be],Be=Se.geometry,Ae=Se.material;if(Ae!==_e)for(var we=Ae.getTextureUniforms(),Ue=0;Ue<we.length;Ue++){var Pe=we[Ue],ze=Ae.uniforms[Pe].value;if(ze){if(ze instanceof he.a)oe(ze,a);else if(ze instanceof Array)for(var Ke=0;Ke<ze.length;Ke++)ze[Ke]instanceof he.a&&oe(ze[Ke],a)}}Be!==ye&&oe(Be,x),_e=Ae,ye=Be}}re(de.opaqueList),re(de.transparentList);for(var ce=0;ce<de.lights.length;ce++)de.lights[ce].cubemap&&oe(de.lights[ce].cubemap,a)}me.prototype.dispose=function(){this._stopAccumulating(),this.renderer.disposeScene(this.scene),this.zr.off("globalout",this.onglobalout)},me.prototype.onmousedown=function(de){if(!(de.target&&de.target.__isGLToZRProxy)){de=de.event;var a=this.pickObject(de.offsetX,de.offsetY);a&&(this._dispatchEvent("mousedown",de,a),this._dispatchDataEvent("mousedown",de,a)),this._downX=de.offsetX,this._downY=de.offsetY}},me.prototype.onmousemove=function(de){if(!(de.target&&de.target.__isGLToZRProxy)){de=de.event;var a=this.pickObject(de.offsetX,de.offsetY),x=a&&a.target,re=this._hovered;this._hovered=a,re&&x!==re.target&&(re.relatedTarget=x,this._dispatchEvent("mouseout",de,re),this.zr.setCursorStyle("default")),this._dispatchEvent("mousemove",de,a),a&&(this.zr.setCursorStyle("pointer"),(!re||x!==re.target)&&this._dispatchEvent("mouseover",de,a)),this._dispatchDataEvent("mousemove",de,a)}},me.prototype.onmouseup=function(de){if(!(de.target&&de.target.__isGLToZRProxy)){de=de.event;var a=this.pickObject(de.offsetX,de.offsetY);a&&(this._dispatchEvent("mouseup",de,a),this._dispatchDataEvent("mouseup",de,a)),this._upX=de.offsetX,this._upY=de.offsetY}},me.prototype.onclick=me.prototype.dblclick=function(de){if(!(de.target&&de.target.__isGLToZRProxy)){var a=this._upX-this._downX,x=this._upY-this._downY;if(!(Math.sqrt(a*a+x*x)>20)){de=de.event;var re=this.pickObject(de.offsetX,de.offsetY);re&&(this._dispatchEvent(de.type,de,re),this._dispatchDataEvent(de.type,de,re));var ce=this._clickToSetFocusPoint(de);if(ce){var ge=ce.view.setDOFFocusOnPoint(ce.distance);ge&&this.zr.refresh()}}}},me.prototype._clickToSetFocusPoint=function(de){for(var a=this.renderer,x=a.viewport,re=this.views.length-1;re>=0;re--){var ce=this.views[re];if(ce.hasDOF()&&ce.containPoint(de.offsetX,de.offsetY)){this._picking.scene=ce.scene,this._picking.camera=ce.camera,a.viewport=ce.viewport;var ge=this._picking.pick(de.offsetX,de.offsetY,!0);if(ge)return ge.view=ce,ge}}a.viewport=x},me.prototype.onglobalout=function(de){var a=this._hovered;a&&this._dispatchEvent("mouseout",de,{target:a.target})},me.prototype.pickObject=function(de,a){for(var x=[],re=this.renderer,ce=re.viewport,ge=0;ge<this.views.length;ge++){var _e=this.views[ge];_e.containPoint(de,a)&&(this._picking.scene=_e.scene,this._picking.camera=_e.camera,re.viewport=_e.viewport,this._picking.pickAll(de,a,x))}return re.viewport=ce,x.sort(function(ye,be){return ye.distance-be.distance}),x[0]},me.prototype._dispatchEvent=function(de,a,x){x||(x={});var re=x.target;for(x.cancelBubble=!1,x.event=a,x.type=de,x.offsetX=a.offsetX,x.offsetY=a.offsetY;re&&(re.trigger(de,x),re=re.getParent(),!x.cancelBubble););this._dispatchToView(de,x)},me.prototype._dispatchDataEvent=function(de,a,x){var re=x&&x.target,ce=re&&re.dataIndex,ge=re&&re.seriesIndex,_e=re&&re.eventData,ye=!1,be=this._zrEventProxy;be.position=[a.offsetX,a.offsetY],be.update();var Se={target:be};de==="mousemove"&&(ce!=null?ce!==this._lastDataIndex&&(parseInt(this._lastDataIndex,10)>=0&&(be.dataIndex=this._lastDataIndex,be.seriesIndex=this._lastSeriesIndex,this.zr.handler.dispatchToElement(Se,"mouseout",a)),ye=!0):_e!=null&&_e!==this._lastEventData&&(this._lastEventData!=null&&(be.eventData=this._lastEventData,this.zr.handler.dispatchToElement(Se,"mouseout",a)),ye=!0),this._lastEventData=_e,this._lastDataIndex=ce,this._lastSeriesIndex=ge),be.eventData=_e,be.dataIndex=ce,be.seriesIndex=ge,(_e!=null||parseInt(ce,10)>=0)&&(this.zr.handler.dispatchToElement(Se,de,a),ye&&this.zr.handler.dispatchToElement(Se,"mouseover",a))},me.prototype._dispatchToView=function(de,a){for(var x=0;x<this.views.length;x++)this.views[x].containPoint(a.offsetX,a.offsetY)&&this.views[x].trigger(de,a)},ve.a.util.extend(me.prototype,le.a),Me.a=me},function(Ye,Me,pe){"use strict";function Oe(fe,he,le){typeof he=="object"&&(le=he,he=null);var ae=this,ie;if(!(fe instanceof Function)){ie=[];for(var me in fe)fe.hasOwnProperty(me)&&ie.push(me)}var E=function(z){if(ae.apply(this,arguments),fe instanceof Function?ve(this,fe.call(this,z)):ue(this,fe,ie),this.constructor===E)for(var ne=E.__initializers__,oe=0;oe<ne.length;oe++)ne[oe].apply(this,arguments)};E.__super__=ae,ae.__initializers__?E.__initializers__=ae.__initializers__.slice():E.__initializers__=[],he&&E.__initializers__.push(he);var b=function(){};return b.prototype=ae.prototype,E.prototype=new b,E.prototype.constructor=E,ve(E.prototype,le),E.extend=ae.extend,E.derive=ae.extend,E}function ve(fe,he){if(he)for(var le in he)he.hasOwnProperty(le)&&(fe[le]=he[le])}function ue(fe,he,le){for(var ae=0;ae<le.length;ae++){var ie=le[ae];fe[ie]=he[ie]}}Me.a={extend:Oe,derive:Oe}},function(Ye,Me,pe){"use strict";var Oe=["OES_texture_float","OES_texture_half_float","OES_texture_float_linear","OES_texture_half_float_linear","OES_standard_derivatives","OES_vertex_array_object","OES_element_index_uint","WEBGL_compressed_texture_s3tc","WEBGL_depth_texture","EXT_texture_filter_anisotropic","EXT_shader_texture_lod","WEBGL_draw_buffers","EXT_frag_depth","EXT_sRGB"],ve=["MAX_TEXTURE_SIZE","MAX_CUBE_MAP_TEXTURE_SIZE"];function ue(fe){for(var he={},le={},ae=0;ae<Oe.length;ae++){var ie=Oe[ae];E(ie)}for(var ae=0;ae<ve.length;ae++){var me=ve[ae];le[me]=fe.getParameter(fe[me])}this.getExtension=function(b){return b in he||E(b),he[b]},this.getParameter=function(b){return le[b]};function E(b){var z=fe.getExtension(b);z||(z=fe.getExtension("MOZ_"+b)),z||(z=fe.getExtension("WEBKIT_"+b)),he[b]=z}}Me.a=ue},function(Ye,Me,pe){"use strict";var Oe=pe(94),ve={},ue={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function fe(x){return x=Math.round(x),x<0?0:x>255?255:x}function he(x){return x=Math.round(x),x<0?0:x>360?360:x}function le(x){return x<0?0:x>1?1:x}function ae(x){return x.length&&x.charAt(x.length-1)==="%"?fe(parseFloat(x)/100*255):fe(parseInt(x,10))}function ie(x){return x.length&&x.charAt(x.length-1)==="%"?le(parseFloat(x)/100):le(parseFloat(x))}function me(x,re,ce){return ce<0?ce+=1:ce>1&&(ce-=1),ce*6<1?x+(re-x)*ce*6:ce*2<1?re:ce*3<2?x+(re-x)*(2/3-ce)*6:x}function E(x,re,ce){return x+(re-x)*ce}function b(x,re,ce,ge,_e){return x[0]=re,x[1]=ce,x[2]=ge,x[3]=_e,x}function z(x,re){return x[0]=re[0],x[1]=re[1],x[2]=re[2],x[3]=re[3],x}var ne=new Oe.a(20),oe=null;function se(x,re){oe&&z(oe,re),oe=ne.put(x,oe||re.slice())}ve.parse=function(x,re){if(x){re=re||[];var ce=ne.get(x);if(ce)return z(re,ce);x=x+"";var ge=x.replace(/ /g,"").toLowerCase();if(ge in ue)return z(re,ue[ge]),se(x,re),re;if(ge.charAt(0)==="#"){if(ge.length===4){var _e=parseInt(ge.substr(1),16);if(!(_e>=0&&_e<=4095)){b(re,0,0,0,1);return}return b(re,(_e&3840)>>4|(_e&3840)>>8,_e&240|(_e&240)>>4,_e&15|(_e&15)<<4,1),se(x,re),re}else if(ge.length===7){var _e=parseInt(ge.substr(1),16);if(!(_e>=0&&_e<=16777215)){b(re,0,0,0,1);return}return b(re,(_e&16711680)>>16,(_e&65280)>>8,_e&255,1),se(x,re),re}return}var ye=ge.indexOf("("),be=ge.indexOf(")");if(ye!==-1&&be+1===ge.length){var Se=ge.substr(0,ye),Be=ge.substr(ye+1,be-(ye+1)).split(","),Ae=1;switch(Se){case"rgba":if(Be.length!==4){b(re,0,0,0,1);return}Ae=ie(Be.pop());case"rgb":if(Be.length!==3){b(re,0,0,0,1);return}return b(re,ae(Be[0]),ae(Be[1]),ae(Be[2]),Ae),se(x,re),re;case"hsla":if(Be.length!==4){b(re,0,0,0,1);return}return Be[3]=ie(Be[3]),de(Be,re),se(x,re),re;case"hsl":if(Be.length!==3){b(re,0,0,0,1);return}return de(Be,re),se(x,re),re;default:return}}b(re,0,0,0,1)}},ve.parseToFloat=function(x,re){if(re=ve.parse(x,re),!!re)return re[0]/=255,re[1]/=255,re[2]/=255,re};function de(x,re){var ce=(parseFloat(x[0])%360+360)%360/360,ge=ie(x[1]),_e=ie(x[2]),ye=_e<=.5?_e*(ge+1):_e+ge-_e*ge,be=_e*2-ye;return re=re||[],b(re,fe(me(be,ye,ce+1/3)*255),fe(me(be,ye,ce)*255),fe(me(be,ye,ce-1/3)*255),1),x.length===4&&(re[3]=x[3]),re}function a(x){if(x){var re=x[0]/255,ce=x[1]/255,ge=x[2]/255,_e=Math.min(re,ce,ge),ye=Math.max(re,ce,ge),be=ye-_e,Se=(ye+_e)/2,Be,Ae;if(be===0)Be=0,Ae=0;else{Se<.5?Ae=be/(ye+_e):Ae=be/(2-ye-_e);var we=((ye-re)/6+be/2)/be,Ue=((ye-ce)/6+be/2)/be,Pe=((ye-ge)/6+be/2)/be;re===ye?Be=Pe-Ue:ce===ye?Be=1/3+we-Pe:ge===ye&&(Be=2/3+Ue-we),Be<0&&(Be+=1),Be>1&&(Be-=1)}var ze=[Be*360,Ae,Se];return x[3]!=null&&ze.push(x[3]),ze}}ve.lift=function(x,re){var ce=ve.parse(x);if(ce){for(var ge=0;ge<3;ge++)re<0?ce[ge]=ce[ge]*(1-re)|0:ce[ge]=(255-ce[ge])*re+ce[ge]|0;return ve.stringify(ce,ce.length===4?"rgba":"rgb")}},ve.toHex=function(x){var re=ve.parse(x);if(re)return((1<<24)+(re[0]<<16)+(re[1]<<8)+ +re[2]).toString(16).slice(1)},ve.fastLerp=function(x,re,ce){if(!(!(re&&re.length)||!(x>=0&&x<=1))){ce=ce||[];var ge=x*(re.length-1),_e=Math.floor(ge),ye=Math.ceil(ge),be=re[_e],Se=re[ye],Be=ge-_e;return ce[0]=fe(E(be[0],Se[0],Be)),ce[1]=fe(E(be[1],Se[1],Be)),ce[2]=fe(E(be[2],Se[2],Be)),ce[3]=le(E(be[3],Se[3],Be)),ce}},ve.fastMapToColor=ve.fastLerp,ve.lerp=function(x,re,ce){if(!(!(re&&re.length)||!(x>=0&&x<=1))){var ge=x*(re.length-1),_e=Math.floor(ge),ye=Math.ceil(ge),be=ve.parse(re[_e]),Se=ve.parse(re[ye]),Be=ge-_e,Ae=ve.stringify([fe(E(be[0],Se[0],Be)),fe(E(be[1],Se[1],Be)),fe(E(be[2],Se[2],Be)),le(E(be[3],Se[3],Be))],"rgba");return ce?{color:Ae,leftIndex:_e,rightIndex:ye,value:ge}:Ae}},ve.mapToColor=ve.lerp,ve.modifyHSL=function(x,re,ce,ge){if(x=ve.parse(x),x)return x=a(x),re!=null&&(x[0]=he(re)),ce!=null&&(x[1]=ie(ce)),ge!=null&&(x[2]=ie(ge)),ve.stringify(de(x),"rgba")},ve.modifyAlpha=function(x,re){if(x=ve.parse(x),x&&re!=null)return x[3]=le(re),ve.stringify(x,"rgba")},ve.stringify=function(x,re){if(!(!x||!x.length)){var ce=x[0]+","+x[1]+","+x[2];return(re==="rgba"||re==="hsva"||re==="hsla")&&(ce+=","+x[3]),re+"("+ce+")"}},Me.a=ve},function(Ye,Me,pe){"use strict";var Oe=pe(95),ve=function(ue){this._list=new Oe.a,this._map={},this._maxSize=ue||10};ve.prototype.setMaxSize=function(ue){this._maxSize=ue},ve.prototype.put=function(ue,fe){if(typeof this._map[ue]=="undefined"){var he=this._list.length();if(he>=this._maxSize&&he>0){var le=this._list.head;this._list.remove(le),delete this._map[le.key]}var ae=this._list.insert(fe);ae.key=ue,this._map[ue]=ae}},ve.prototype.get=function(ue){var fe=this._map[ue];if(typeof fe!="undefined")return fe!==this._list.tail&&(this._list.remove(fe),this._list.insertEntry(fe)),fe.value},ve.prototype.remove=function(ue){var fe=this._map[ue];typeof fe!="undefined"&&(delete this._map[ue],this._list.remove(fe))},ve.prototype.clear=function(){this._list.clear(),this._map={}},Me.a=ve},function(Ye,Me,pe){"use strict";var Oe=function(){this.head=null,this.tail=null,this._length=0};Oe.prototype.insert=function(ve){var ue=new Oe.Entry(ve);return this.insertEntry(ue),ue},Oe.prototype.insertAt=function(ve,ue){if(!(ve<0)){for(var fe=this.head,he=0;fe&&he!=ve;)fe=fe.next,he++;if(fe){var le=new Oe.Entry(ue),ae=fe.prev;ae?(ae.next=le,le.prev=ae):this.head=le,le.next=fe,fe.prev=le}else this.insert(ue)}},Oe.prototype.insertBeforeEntry=function(ve,ue){var fe=new Oe.Entry(ve),he=ue.prev;he?(he.next=fe,fe.prev=he):this.head=fe,fe.next=ue,ue.prev=fe,this._length++},Oe.prototype.insertEntry=function(ve){this.head?(this.tail.next=ve,ve.prev=this.tail,this.tail=ve):this.head=this.tail=ve,this._length++},Oe.prototype.remove=function(ve){var ue=ve.prev,fe=ve.next;ue?ue.next=fe:this.head=fe,fe?fe.prev=ue:this.tail=ue,ve.next=ve.prev=null,this._length--},Oe.prototype.removeAt=function(ve){if(!(ve<0)){for(var ue=this.head,fe=0;ue&&fe!=ve;)ue=ue.next,fe++;if(ue)return this.remove(ue),ue.value}},Oe.prototype.getHead=function(){if(this.head)return this.head.value},Oe.prototype.getTail=function(){if(this.tail)return this.tail.value},Oe.prototype.getAt=function(ve){if(!(ve<0)){for(var ue=this.head,fe=0;ue&&fe!=ve;)ue=ue.next,fe++;return ue.value}},Oe.prototype.indexOf=function(ve){for(var ue=this.head,fe=0;ue;){if(ue.value===ve)return fe;ue=ue.next,fe++}},Oe.prototype.length=function(){return this._length},Oe.prototype.isEmpty=function(){return this._length===0},Oe.prototype.forEach=function(ve,ue){for(var fe=this.head,he=0,le=typeof ue!="undefined";fe;)le?ve.call(ue,fe.value,he):ve(fe.value,he),fe=fe.next,he++},Oe.prototype.clear=function(){this.tail=this.head=null,this._length=0},Oe.Entry=function(ve){this.value=ve,this.next=null,this.prev=null},Me.a=Oe},function(Ye,Me,pe){"use strict";var Oe=pe(97),ve=/for\s*?\(int\s*?_idx_\s*\=\s*([\w-]+)\;\s*_idx_\s*<\s*([\w-]+);\s*_idx_\s*\+\+\s*\)\s*\{\{([\s\S]+?)(?=\}\})\}\}/g;function ue(ie,me,E){function b(oe,se,de,a){var x="";isNaN(se)&&(se in me?se=me[se]:se=z[se]),isNaN(de)&&(de in me?de=me[de]:de=z[de]);for(var re=parseInt(se);re<parseInt(de);re++)x+="{"+a.replace(/float\s*\(\s*_idx_\s*\)/g,re.toFixed(1)).replace(/_idx_/g,re)+"}";return x}var z={};for(var ne in E)z[ne+"_COUNT"]=E[ne];return ie.replace(ve,b)}function fe(ie,me,E){var b=[];if(me)for(var z in me){var ne=me[z];ne>0&&b.push("#define "+z.toUpperCase()+"_COUNT "+ne)}if(E)for(var oe=0;oe<E.length;oe++){var se=E[oe];b.push("#define "+se.toUpperCase()+"_ENABLED")}for(var se in ie){var de=ie[se];de===null?b.push("#define "+se):b.push("#define "+se+" "+de.toString())}return b.join(`
|
|
|
`)}function he(ie){for(var me=[],E=0;E<ie.length;E++)me.push("#extension GL_"+ie[E]+" : enable");return me.join(`
|
|
|
`)}function le(ie){return["precision",ie,"float"].join(" ")+`;
|
|
|
`+["precision",ie,"int"].join(" ")+`;
|
|
|
`+["precision",ie,"sampler2D"].join(" ")+`;
|
|
|
`}function ae(ie){this._renderer=ie,this._cache={}}ae.prototype.getProgram=function(ie,me,E){var b=this._cache,z="s"+me.shader.shaderID+"m"+me.programKey;E&&(z+="se"+E.getProgramKey(ie.lightGroup)),ie.isSkinnedMesh()&&(z+=","+ie.joints.length);var be=b[z];if(be)return be;var ne=E?E.getLightsNumbers(ie.lightGroup):{},oe=this._renderer,se=oe.gl,de=me.getEnabledTextures(),a="";ie.isSkinnedMesh()&&(a=`
|
|
|
`+fe({SKINNING:null,JOINT_COUNT:ie.joints.length})+`
|
|
|
`);var x=a+fe(me.vertexDefines,ne,de),re=a+fe(me.fragmentDefines,ne,de),ce=x+`
|
|
|
`+me.shader.vertex,ge=he(["OES_standard_derivatives","EXT_shader_texture_lod"])+`
|
|
|
`+le(me.precision)+`
|
|
|
`+re+`
|
|
|
`+me.shader.fragment,_e=ue(ce,me.vertexDefines,ne),ye=ue(ge,me.fragmentDefines,ne),be=new Oe.a;be.uniformSemantics=me.shader.uniformSemantics,be.attributes=me.shader.attributes;var Se=be.buildProgram(se,me.shader,_e,ye);return be.__error=Se,b[z]=be,be},Me.a=ae},function(Ye,Me,pe){"use strict";var Oe=pe(18),ve=pe(8),ue=1,fe=2,he=3,le={};function ae(E){for(var b=E.split(`
|
|
|
`),z=0,ne=b.length;z<ne;z++)b[z]=z+1+": "+b[z];return b.join(`
|
|
|
`)}function ie(E,b,z){if(!E.getShaderParameter(b,E.COMPILE_STATUS))return[E.getShaderInfoLog(b),ae(z)].join(`
|
|
|
`)}var me=ve.a.extend({uniformSemantics:{},attributes:{}},function(){this._locations={},this._textureSlot=0,this._program=null},{bind:function(E){this._textureSlot=0,E.gl.useProgram(this._program)},hasUniform:function(E){var b=this._locations[E];return b!=null},useTextureSlot:function(E,b,z){b&&(E.gl.activeTexture(E.gl.TEXTURE0+z),b.isRenderable()?b.bind(E):b.unbind(E))},currentTextureSlot:function(){return this._textureSlot},resetTextureSlot:function(E){this._textureSlot=E||0},takeCurrentTextureSlot:function(E,b){var z=this._textureSlot;return this.useTextureSlot(E,b,z),this._textureSlot++,z},setUniform:function(E,b,z,ne){var oe=this._locations,se=oe[z];if(se==null)return!1;switch(b){case"m4":E.uniformMatrix4fv(se,!1,ne);break;case"2i":E.uniform2i(se,ne[0],ne[1]);break;case"2f":E.uniform2f(se,ne[0],ne[1]);break;case"3i":E.uniform3i(se,ne[0],ne[1],ne[2]);break;case"3f":E.uniform3f(se,ne[0],ne[1],ne[2]);break;case"4i":E.uniform4i(se,ne[0],ne[1],ne[2],ne[3]);break;case"4f":E.uniform4f(se,ne[0],ne[1],ne[2],ne[3]);break;case"1i":E.uniform1i(se,ne);break;case"1f":E.uniform1f(se,ne);break;case"1fv":E.uniform1fv(se,ne);break;case"1iv":E.uniform1iv(se,ne);break;case"2iv":E.uniform2iv(se,ne);break;case"2fv":E.uniform2fv(se,ne);break;case"3iv":E.uniform3iv(se,ne);break;case"3fv":E.uniform3fv(se,ne);break;case"4iv":E.uniform4iv(se,ne);break;case"4fv":E.uniform4fv(se,ne);break;case"m2":case"m2v":E.uniformMatrix2fv(se,!1,ne);break;case"m3":case"m3v":E.uniformMatrix3fv(se,!1,ne);break;case"m4v":if(Array.isArray(ne)){for(var de=new Oe.a.Float32Array(ne.length*16),a=0,x=0;x<ne.length;x++)for(var re=ne[x],ce=0;ce<16;ce++)de[a++]=re[ce];E.uniformMatrix4fv(se,!1,de)}else ne instanceof Oe.a.Float32Array&&E.uniformMatrix4fv(se,!1,ne);break}return!0},setUniformOfSemantic:function(E,b,z){var ne=this.uniformSemantics[b];return ne?this.setUniform(E,ne.type,ne.symbol,z):!1},enableAttributes:function(E,b,z){var ne=E.gl,oe=this._program,se=this._locations,de;z?de=z.__enabledAttributeList:de=le[E.__uid__],de||(z?de=z.__enabledAttributeList=[]:de=le[E.__uid__]=[]);for(var a=[],x=0;x<b.length;x++){var re=b[x];if(!this.attributes[re]){a[x]=-1;continue}var ce=se[re];if(ce==null){if(ce=ne.getAttribLocation(oe,re),ce===-1){a[x]=-1;continue}se[re]=ce}a[x]=ce,de[ce]?de[ce]=fe:de[ce]=ue}for(var x=0;x<de.length;x++)switch(de[x]){case ue:ne.enableVertexAttribArray(x),de[x]=he;break;case fe:de[x]=he;break;case he:ne.disableVertexAttribArray(x),de[x]=0;break}return a},buildProgram:function(E,b,z,ne){var oe=E.createShader(E.VERTEX_SHADER),se=E.createProgram();E.shaderSource(oe,z),E.compileShader(oe);var de=E.createShader(E.FRAGMENT_SHADER);E.shaderSource(de,ne),E.compileShader(de);var a=ie(E,oe,z);if(a||(a=ie(E,de,ne),a))return a;if(E.attachShader(se,oe),E.attachShader(se,de),b.attributeSemantics.POSITION)E.bindAttribLocation(se,0,b.attributeSemantics.POSITION.symbol);else{var x=Object.keys(this.attributes);E.bindAttribLocation(se,0,x[0])}if(E.linkProgram(se),!E.getProgramParameter(se,E.LINK_STATUS))return`Could not link program
|
|
|
VALIDATE_STATUS: `+E.getProgramParameter(se,E.VALIDATE_STATUS)+", gl error ["+E.getError()+"]";for(var re=0;re<b.uniforms.length;re++){var ce=b.uniforms[re];this._locations[ce]=E.getUniformLocation(se,ce)}E.deleteShader(oe),E.deleteShader(de),this._program=se,this.vertexCode=z,this.fragmentCode=ne}});Me.a=me},function(Ye,Me,pe){"use strict";var Oe=pe(99),ve="uniform vec3 ",ue="uniform float ",fe="@export clay.header.",he="@end",le=":unconfigurable;";Me.a=[fe+"directional_light",ve+"directionalLightDirection[DIRECTIONAL_LIGHT_COUNT]"+le,ve+"directionalLightColor[DIRECTIONAL_LIGHT_COUNT]"+le,he,fe+"ambient_light",ve+"ambientLightColor[AMBIENT_LIGHT_COUNT]"+le,he,fe+"ambient_sh_light",ve+"ambientSHLightColor[AMBIENT_SH_LIGHT_COUNT]"+le,ve+"ambientSHLightCoefficients[AMBIENT_SH_LIGHT_COUNT * 9]"+le,Oe.a,he,fe+"ambient_cubemap_light",ve+"ambientCubemapLightColor[AMBIENT_CUBEMAP_LIGHT_COUNT]"+le,"uniform samplerCube ambientCubemapLightCubemap[AMBIENT_CUBEMAP_LIGHT_COUNT]"+le,"uniform sampler2D ambientCubemapLightBRDFLookup[AMBIENT_CUBEMAP_LIGHT_COUNT]"+le,he,fe+"point_light",ve+"pointLightPosition[POINT_LIGHT_COUNT]"+le,ue+"pointLightRange[POINT_LIGHT_COUNT]"+le,ve+"pointLightColor[POINT_LIGHT_COUNT]"+le,he,fe+"spot_light",ve+"spotLightPosition[SPOT_LIGHT_COUNT]"+le,ve+"spotLightDirection[SPOT_LIGHT_COUNT]"+le,ue+"spotLightRange[SPOT_LIGHT_COUNT]"+le,ue+"spotLightUmbraAngleCosine[SPOT_LIGHT_COUNT]"+le,ue+"spotLightPenumbraAngleCosine[SPOT_LIGHT_COUNT]"+le,ue+"spotLightFalloffFactor[SPOT_LIGHT_COUNT]"+le,ve+"spotLightColor[SPOT_LIGHT_COUNT]"+le,he].join(`
|
|
|
`)},function(Ye,Me,pe){"use strict";Me.a=`vec3 calcAmbientSHLight(int idx, vec3 N) {
|
|
|
int offset = 9 * idx;
|
|
|
return ambientSHLightCoefficients[0]
|
|
|
+ ambientSHLightCoefficients[1] * N.x
|
|
|
+ ambientSHLightCoefficients[2] * N.y
|
|
|
+ ambientSHLightCoefficients[3] * N.z
|
|
|
+ ambientSHLightCoefficients[4] * N.x * N.z
|
|
|
+ ambientSHLightCoefficients[5] * N.z * N.y
|
|
|
+ ambientSHLightCoefficients[6] * N.y * N.x
|
|
|
+ ambientSHLightCoefficients[7] * (3.0 * N.z * N.z - 1.0)
|
|
|
+ ambientSHLightCoefficients[8] * (N.x * N.x - N.y * N.y);
|
|
|
}`},function(Ye,Me,pe){"use strict";var Oe=pe(8),ve=pe(49),ue=pe(23),fe=pe(4),he=pe(9),le=pe(64),ae=pe(11),ie=pe(1),me=pe.n(ie),E=me.a.vec3,b=Oe.a.extend({scene:null,camera:null,renderer:null},function(){this._ray=new ve.a,this._ndc=new ue.a},{pick:function(z,ne,oe){var se=this.pickAll(z,ne,[],oe);return se[0]||null},pickAll:function(z,ne,oe,se){return this.renderer.screenToNDC(z,ne,this._ndc),this.camera.castRay(this._ndc,this._ray),oe=oe||[],this._intersectNode(this.scene,oe,se||!1),oe.sort(this._intersectionCompareFunc),oe},_intersectNode:function(z,ne,oe){z instanceof le.a&&z.isRenderable()&&(!z.ignorePicking||oe)&&(z.mode===ae.a.TRIANGLES&&z.geometry.isUseIndices()||z.geometry.pickByRay||z.geometry.pick)&&this._intersectRenderable(z,ne);for(var se=0;se<z._children.length;se++)this._intersectNode(z._children[se],ne,oe)},_intersectRenderable:function(){var z=new fe.a,ne=new fe.a,oe=new fe.a,se=new ve.a,de=new he.a;return function(a,x){var re=a.isSkinnedMesh();se.copy(this._ray),he.a.invert(de,a.worldTransform),re||se.applyTransform(de);var ce=a.geometry;if(!(!re&&ce.boundingBox&&!se.intersectBoundingBox(ce.boundingBox))){if(ce.pick){ce.pick(this._ndc.x,this._ndc.y,this.renderer,this.camera,a,x);return}else if(ce.pickByRay){ce.pickByRay(se,a,x);return}var ge=a.cullFace===ae.a.BACK&&a.frontFace===ae.a.CCW||a.cullFace===ae.a.FRONT&&a.frontFace===ae.a.CW,_e,ye=ce.indices,be=ce.attributes.position,Se=ce.attributes.weight,Be=ce.attributes.joint,Ae,we=[];if(!(!be||!be.value||!ye)){if(re){Ae=a.skeleton.getSubSkinMatrices(a.__uid__,a.joints);for(var Ue=0;Ue<a.joints.length;Ue++){we[Ue]=we[Ue]||[];for(var Pe=0;Pe<16;Pe++)we[Ue][Pe]=Ae[Ue*16+Pe]}var ze=[],Ke=[],Ne=[],Re=[],$e=[],nt=ce.attributes.skinnedPosition;(!nt||!nt.value)&&(ce.createAttribute("skinnedPosition","f",3),nt=ce.attributes.skinnedPosition,nt.init(ce.vertexCount));for(var Ue=0;Ue<ce.vertexCount;Ue++){be.get(Ue,ze),Se.get(Ue,Ke),Be.get(Ue,Ne),Ke[3]=1-Ke[0]-Ke[1]-Ke[2],E.set(Re,0,0,0);for(var Pe=0;Pe<4;Pe++)Ne[Pe]>=0&&Ke[Pe]>1e-4&&(E.transformMat4($e,ze,we[Ne[Pe]]),E.scaleAndAdd(Re,Re,$e,Ke[Pe]));nt.set(Ue,Re)}}for(var Ue=0;Ue<ye.length;Ue+=3){var ut=ye[Ue],Qe=ye[Ue+1],rt=ye[Ue+2],pt=re?ce.attributes.skinnedPosition:be;if(pt.get(ut,z.array),pt.get(Qe,ne.array),pt.get(rt,oe.array),ge?_e=se.intersectTriangle(z,ne,oe,a.culling):_e=se.intersectTriangle(z,oe,ne,a.culling),_e){var At=new fe.a;re?fe.a.copy(At,_e):fe.a.transformMat4(At,_e,a.worldTransform),x.push(new b.Intersection(_e,At,a,[ut,Qe,rt],Ue/3,fe.a.dist(At,this._ray.origin)))}}}}}}(),_intersectionCompareFunc:function(z,ne){return z.distance-ne.distance}});b.Intersection=function(z,ne,oe,se,de,a){this.point=z,this.pointWorld=ne,this.target=oe,this.triangle=se,this.triangleIndex=de,this.distance=a},Me.a=b},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=["bar3D","line3D","map3D","scatter3D","surface","lines3D","scatterGL","scatter3D"];function fe(ae,ie){if(ae&&ae[ie]&&(ae[ie].normal||ae[ie].emphasis)){var me=ae[ie].normal,E=ae[ie].emphasis;me&&(ae[ie]=me),E&&(ae.emphasis=ae.emphasis||{},ae.emphasis[ie]=E)}}function he(ae){fe(ae,"itemStyle"),fe(ae,"lineStyle"),fe(ae,"areaStyle"),fe(ae,"label")}function le(ae){ae&&(ae instanceof Array||(ae=[ae]),ve.a.util.each(ae,function(ie){if(ie.axisLabel){var me=ie.axisLabel;ve.a.util.extend(me,me.textStyle),me.textStyle=null}}))}Me.a=function(ae){ve.a.util.each(ae.series,function(ie){ve.a.util.indexOf(ue,ie.type)>=0&&(he(ie),ie.coordinateSystem==="mapbox"&&(ie.coordinateSystem="mapbox3D",ae.mapbox3D=ae.mapbox))}),le(ae.xAxis3D),le(ae.yAxis3D),le(ae.zAxis3D),le(ae.grid3D),fe(ae.geo3D)}},function(Ye,Me,pe){"use strict";function Oe(ve){var ue=new XMLHttpRequest;ue.open("get",ve.url),ue.responseType=ve.responseType||"text",ve.onprogress&&(ue.onprogress=function(fe){if(fe.lengthComputable){var he=fe.loaded/fe.total;ve.onprogress(he,fe.loaded,fe.total)}else ve.onprogress(null)}),ue.onload=function(fe){ue.status>=400?ve.onerror&&ve.onerror():ve.onload&&ve.onload(ue.response)},ve.onerror&&(ue.onerror=ve.onerror),ue.send(null)}Me.a={get:Oe}},function(Ye,Me,pe){"use strict";Me.a=`@export clay.basic.vertex
|
|
|
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
|
|
uniform vec2 uvRepeat : [1.0, 1.0];
|
|
|
uniform vec2 uvOffset : [0.0, 0.0];
|
|
|
attribute vec2 texcoord : TEXCOORD_0;
|
|
|
attribute vec3 position : POSITION;
|
|
|
attribute vec3 barycentric;
|
|
|
@import clay.chunk.skinning_header
|
|
|
varying vec2 v_Texcoord;
|
|
|
varying vec3 v_Barycentric;
|
|
|
#ifdef VERTEX_COLOR
|
|
|
attribute vec4 a_Color : COLOR;
|
|
|
varying vec4 v_Color;
|
|
|
#endif
|
|
|
void main()
|
|
|
{
|
|
|
vec3 skinnedPosition = position;
|
|
|
#ifdef SKINNING
|
|
|
@import clay.chunk.skin_matrix
|
|
|
skinnedPosition = (skinMatrixWS * vec4(position, 1.0)).xyz;
|
|
|
#endif
|
|
|
v_Texcoord = texcoord * uvRepeat + uvOffset;
|
|
|
v_Barycentric = barycentric;
|
|
|
gl_Position = worldViewProjection * vec4(skinnedPosition, 1.0);
|
|
|
#ifdef VERTEX_COLOR
|
|
|
v_Color = a_Color;
|
|
|
#endif
|
|
|
}
|
|
|
@end
|
|
|
@export clay.basic.fragment
|
|
|
varying vec2 v_Texcoord;
|
|
|
uniform sampler2D diffuseMap;
|
|
|
uniform vec3 color : [1.0, 1.0, 1.0];
|
|
|
uniform vec3 emission : [0.0, 0.0, 0.0];
|
|
|
uniform float alpha : 1.0;
|
|
|
#ifdef ALPHA_TEST
|
|
|
uniform float alphaCutoff: 0.9;
|
|
|
#endif
|
|
|
#ifdef VERTEX_COLOR
|
|
|
varying vec4 v_Color;
|
|
|
#endif
|
|
|
uniform float lineWidth : 0.0;
|
|
|
uniform vec4 lineColor : [0.0, 0.0, 0.0, 0.6];
|
|
|
varying vec3 v_Barycentric;
|
|
|
@import clay.util.edge_factor
|
|
|
@import clay.util.rgbm
|
|
|
@import clay.util.srgb
|
|
|
@import clay.util.ACES
|
|
|
void main()
|
|
|
{
|
|
|
#ifdef RENDER_TEXCOORD
|
|
|
gl_FragColor = vec4(v_Texcoord, 1.0, 1.0);
|
|
|
return;
|
|
|
#endif
|
|
|
gl_FragColor = vec4(color, alpha);
|
|
|
#ifdef VERTEX_COLOR
|
|
|
gl_FragColor *= v_Color;
|
|
|
#endif
|
|
|
#ifdef DIFFUSEMAP_ENABLED
|
|
|
vec4 tex = decodeHDR(texture2D(diffuseMap, v_Texcoord));
|
|
|
#ifdef SRGB_DECODE
|
|
|
tex = sRGBToLinear(tex);
|
|
|
#endif
|
|
|
#if defined(DIFFUSEMAP_ALPHA_ALPHA)
|
|
|
gl_FragColor.a = tex.a;
|
|
|
#endif
|
|
|
gl_FragColor.rgb *= tex.rgb;
|
|
|
#endif
|
|
|
gl_FragColor.rgb += emission;
|
|
|
if( lineWidth > 0.)
|
|
|
{
|
|
|
gl_FragColor.rgb = mix(gl_FragColor.rgb, lineColor.rgb, (1.0 - edgeFactor(lineWidth)) * lineColor.a);
|
|
|
}
|
|
|
#ifdef ALPHA_TEST
|
|
|
if (gl_FragColor.a < alphaCutoff) {
|
|
|
discard;
|
|
|
}
|
|
|
#endif
|
|
|
#ifdef TONEMAPPING
|
|
|
gl_FragColor.rgb = ACESToneMapping(gl_FragColor.rgb);
|
|
|
#endif
|
|
|
#ifdef SRGB_ENCODE
|
|
|
gl_FragColor = linearTosRGB(gl_FragColor);
|
|
|
#endif
|
|
|
gl_FragColor = encodeHDR(gl_FragColor);
|
|
|
}
|
|
|
@end`},function(Ye,Me,pe){"use strict";var Oe=pe(6),ve=pe(5),ue=pe(25),fe=542327876,he=1,le=2,ae=4,ie=8,me=4096,E=131072,b=524288,z=8388608,ne=8,oe=4194304,se=4096,de=512,a=1024,x=2048,re=4096,ce=8192,ge=16384,_e=32768,ye=2097152,be=1,Se=2,Be=4,Ae=64,we=512,Ue=131072;function Pe(Le){return Le.charCodeAt(0)+(Le.charCodeAt(1)<<8)+(Le.charCodeAt(2)<<16)+(Le.charCodeAt(3)<<24)}function ze(Le){return String.fromCharCode(Le&255,Le>>8&255,Le>>16&255,Le>>24&255)}var Ke=31,Ne=Pe("DXT1"),Re=Pe("DXT3"),$e=Pe("DXT5"),nt=0,ut=1,Qe=2,rt=3,pt=4,At=7,gt=20,Ft=21,Ct=27,Yt=28,zt=29,Xe=30,Fe={parse:function(Le,Ze){var et=new Int32Array(Le,0,Ke);if(et[nt]!==fe||!et(gt)&Be)return null;var He=et(Ft),We=et[pt],tt=et[rt],at=et[Yt]&de,ot=et[Qe]&E,ct,lt;switch(He){case Ne:ct=8,lt=Oe.a.COMPRESSED_RGB_S3TC_DXT1_EXT;break;case Re:ct=16,lt=Oe.a.COMPRESSED_RGBA_S3TC_DXT3_EXT;break;case $e:ct=16,lt=Oe.a.COMPRESSED_RGBA_S3TC_DXT5_EXT;break;default:return null}var mt=et[ut]+4,Lt=at?6:1,ft=1;ot&&(ft=Math.max(1,et[At]));for(var St=[],nn=0;nn<Lt;nn++){var on=We,yn=tt;St[nn]=new ve.a({width:on,height:yn,format:lt});for(var xn=[],an=0;an<ft;an++){var An=Math.max(4,on)/4*Math.max(4,yn)/4*ct,Jt=new Uint8Array(Le,mt,An);mt+=An,on*=.5,yn*=.5,xn[an]=Jt}St[nn].pixels=xn[0],ot&&(St[nn].mipmaps=xn)}if(Ze)Ze.width=St[0].width,Ze.height=St[0].height,Ze.format=St[0].format,Ze.pixels=St[0].pixels,Ze.mipmaps=St[0].mipmaps;else return St[0]}};Me.a=Fe},function(Ye,Me,pe){"use strict";var Oe=pe(6),ve=pe(5),ue=String.fromCharCode,fe=8,he=32767;function le(z,ne,oe,se){if(z[3]>0){var de=Math.pow(2,z[3]-128-8+se);ne[oe+0]=z[0]*de,ne[oe+1]=z[1]*de,ne[oe+2]=z[2]*de}else ne[oe+0]=0,ne[oe+1]=0,ne[oe+2]=0;return ne[oe+3]=1,ne}function ae(z,ne,oe){for(var se="",de=ne;de<oe;de++)se+=ue(z[de]);return se}function ie(z,ne){ne[0]=z[0],ne[1]=z[1],ne[2]=z[2],ne[3]=z[3]}function me(z,ne,oe,se){for(var de=0,a=0,x=se;x>0;)if(z[a][0]=ne[oe++],z[a][1]=ne[oe++],z[a][2]=ne[oe++],z[a][3]=ne[oe++],z[a][0]===1&&z[a][1]===1&&z[a][2]===1){for(var re=z[a][3]<<de>>>0;re>0;re--)ie(z[a-1],z[a]),a++,x--;de+=8}else a++,x--,de=0;return oe}function E(z,ne,oe,se){if(se<fe|se>he)return me(z,ne,oe,se);var de=ne[oe++];if(de!=2)return me(z,ne,oe-1,se);if(z[0][1]=ne[oe++],z[0][2]=ne[oe++],de=ne[oe++],(z[0][2]<<8>>>0|de)>>>0!==se)return null;for(var de=0;de<4;de++)for(var a=0;a<se;){var x=ne[oe++];if(x>128){x=(x&127)>>>0;for(var re=ne[oe++];x--;)z[a++][de]=re}else for(;x--;)z[a++][de]=ne[oe++]}return oe}var b={parseRGBE:function(z,ne,oe){oe==null&&(oe=0);var se=new Uint8Array(z),de=se.length;if(ae(se,0,2)==="#?"){for(var a=2;a<de&&!(ue(se[a])===`
|
|
|
`&&ue(se[a+1])===`
|
|
|
`);a++);if(!(a>=de)){a+=2;for(var x="";a<de;a++){var re=ue(se[a]);if(re===`
|
|
|
`)break;x+=re}var ce=x.split(" "),ge=parseInt(ce[1]),_e=parseInt(ce[3]);if(!(!_e||!ge)){for(var ye=a+1,be=[],Se=0;Se<_e;Se++){be[Se]=[];for(var Be=0;Be<4;Be++)be[Se][Be]=0}for(var Ae=new Float32Array(_e*ge*4),we=0,Ue=0;Ue<ge;Ue++){var ye=E(be,se,ye,_e);if(!ye)return null;for(var Se=0;Se<_e;Se++)le(be[Se],Ae,we,oe),we+=4}return ne||(ne=new ve.a),ne.width=_e,ne.height=ge,ne.pixels=Ae,ne.type=Oe.a.FLOAT,ne}}}},parseRGBEFromPNG:function(z){}};Me.a=b},function(Ye,Me,pe){"use strict";var Oe=pe(5),ve=pe(4),ue=pe(23),fe=["mousedown","mouseup","mousemove","mouseover","mouseout","click","dblclick","contextmenu"];function he(ae){return"_on"+ae}var le=function(ae){var ie=this;this._texture=new Oe.a({anisotropic:32,flipY:!1,surface:this,dispose:function(me){ie.dispose(),Oe.a.prototype.dispose.call(this,me)}}),fe.forEach(function(me){this[he(me)]=function(E){E.triangle&&this._meshes.forEach(function(b){this.dispatchEvent(me,b,E.triangle,E.point)},this)}},this),this._meshes=[],ae&&this.setECharts(ae),this.onupdate=null};le.prototype={constructor:le,getTexture:function(){return this._texture},setECharts:function(ae){this._chart=ae;var ie=ae.getDom();if(!(ie instanceof HTMLCanvasElement))console.error("ECharts must init on canvas if it is used as texture."),ie=document.createElement("canvas");else{var me=this,E=ae.getZr(),b=E.__oldRefreshImmediately||E.refreshImmediately;E.refreshImmediately=function(){b.call(this),me._texture.dirty(),me.onupdate&&me.onupdate()},E.__oldRefreshImmediately=b}this._texture.image=ie,this._texture.dirty(),this.onupdate&&this.onupdate()},dispatchEvent:function(){var ae=new ve.a,ie=new ve.a,me=new ve.a,E=new ue.a,b=new ue.a,z=new ue.a,ne=new ue.a,oe=new ve.a;return function(se,de,a,x){var re=de.geometry,ce=re.attributes.position,ge=re.attributes.texcoord0,_e=ve.a.dot,ye=ve.a.cross;ce.get(a[0],ae.array),ce.get(a[1],ie.array),ce.get(a[2],me.array),ge.get(a[0],E.array),ge.get(a[1],b.array),ge.get(a[2],z.array),ye(oe,ie,me);var be=_e(ae,oe),Se=_e(x,oe)/be;ye(oe,me,ae);var Be=_e(x,oe)/be;ye(oe,ae,ie);var Ae=_e(x,oe)/be;ue.a.scale(ne,E,Se),ue.a.scaleAndAdd(ne,ne,b,Be),ue.a.scaleAndAdd(ne,ne,z,Ae);var we=ne.x*this._chart.getWidth(),Ue=ne.y*this._chart.getHeight();this._chart.getZr().handler.dispatch(se,{zrX:we,zrY:Ue})}}(),attachToMesh:function(ae){this._meshes.indexOf(ae)>=0||(fe.forEach(function(ie){ae.on(ie,this[he(ie)],this)},this),this._meshes.push(ae))},detachFromMesh:function(ae){var ie=this._meshes.indexOf(ae);ie>=0&&this._meshes.splice(ie,1),fe.forEach(function(me){ae.off(me,this[he(me)])},this)},dispose:function(){this._meshes.forEach(function(ae){this.detachFromMesh(ae)},this)}},Me.a=le},function(Ye,Me,pe){"use strict";var Oe=pe(19),ve=pe(108),ue=Oe.a.extend({cubemap:null,castShadow:!1,_normalDistribution:null,_brdfLookup:null},{type:"AMBIENT_CUBEMAP_LIGHT",prefilter:function(fe,he){this._brdfLookup||(this._normalDistribution=ve.a.generateNormalDistribution(),this._brdfLookup=ve.a.integrateBRDF(fe,this._normalDistribution));var le=this.cubemap;if(!le.__prefiltered){var ae=ve.a.prefilterEnvironmentMap(fe,le,{encodeRGBM:!0,width:he,height:he},this._normalDistribution,this._brdfLookup);this.cubemap=ae.environmentMap,this.cubemap.__prefiltered=!0,le.dispose(fe)}},uniformTemplates:{ambientCubemapLightColor:{type:"3f",value:function(fe){var he=fe.color,le=fe.intensity;return[he[0]*le,he[1]*le,he[2]*le]}},ambientCubemapLightCubemap:{type:"t",value:function(fe){return fe.cubemap}},ambientCubemapLightBRDFLookup:{type:"t",value:function(fe){return fe._brdfLookup}}}});Me.a=ue},function(Ye,Me,pe){"use strict";var Oe=pe(5),ve=pe(25),ue=pe(6),fe=pe(10),he=pe(14),le=pe(17),ae=pe(7),ie=pe(57),me=pe(29),E=pe(55),b=pe(18),z=pe(54),ne=pe(111),oe=pe(112),se={},de=["px","nx","py","ny","pz","nz"];se.prefilterEnvironmentMap=function(a,x,re,ce,ge){(!ge||!ce)&&(ce=se.generateNormalDistribution(),ge=se.integrateBRDF(a,ce)),re=re||{};var _e=re.width||64,ye=re.height||64,be=re.type||x.type,Se=new ve.a({width:_e,height:ye,type:be,flipY:!1,mipmaps:[]});Se.isPowerOfTwo()||console.warn("Width and height must be power of two to enable mipmap.");var Be=Math.min(_e,ye),Ae=Math.log(Be)/Math.log(2)+1,we=new le.a({shader:new ae.a({vertex:ae.a.source("clay.skybox.vertex"),fragment:oe.a})});we.set("normalDistribution",ce),re.encodeRGBM&&we.define("fragment","RGBM_ENCODE"),re.decodeRGBM&&we.define("fragment","RGBM_DECODE");var Ue=new me.a,Pe;if(x instanceof Oe.a){var ze=new ve.a({width:_e,height:ye,type:be===ue.a.FLOAT?ue.a.HALF_FLOAT:be});z.a.panoramaToCubeMap(a,x,ze,{encodeRGBM:re.decodeRGBM}),x=ze}Pe=new ie.a({scene:Ue,material:we}),Pe.material.set("environmentMap",x);var Ke=new E.a({texture:Se});re.encodeRGBM&&(be=Se.type=ue.a.UNSIGNED_BYTE);for(var Ne=new Oe.a({width:_e,height:ye,type:be}),Re=new fe.a({depthBuffer:!1}),$e=b.a[be===ue.a.UNSIGNED_BYTE?"Uint8Array":"Float32Array"],nt=0;nt<Ae;nt++){Se.mipmaps[nt]={pixels:{}},Pe.material.set("roughness",nt/(de.length-1));for(var ut=Ne.width,Qe=2*Math.atan(ut/(ut-.5))/Math.PI*180,rt=0;rt<de.length;rt++){var pt=new $e(Ne.width*Ne.height*4);Re.attach(Ne),Re.bind(a);var At=Ke.getCamera(de[rt]);At.fov=Qe,a.render(Ue,At),a.gl.readPixels(0,0,Ne.width,Ne.height,ue.a.RGBA,be,pt),Re.unbind(a),Se.mipmaps[nt].pixels[de[rt]]=pt}Ne.width/=2,Ne.height/=2,Ne.dirty()}return Re.dispose(a),Ne.dispose(a),Pe.dispose(a),ce.dispose(a),{environmentMap:Se,brdfLookup:ge,normalDistribution:ce,maxMipmapLevel:Ae}},se.integrateBRDF=function(a,x){x=x||se.generateNormalDistribution();var re=new fe.a({depthBuffer:!1}),ce=new he.a({fragment:ne.a}),ge=new Oe.a({width:512,height:256,type:ue.a.HALF_FLOAT,minFilter:ue.a.NEAREST,magFilter:ue.a.NEAREST,useMipmap:!1});return ce.setUniform("normalDistribution",x),ce.setUniform("viewportSize",[512,256]),ce.attachOutput(ge),ce.render(a,re),re.dispose(a),ge},se.generateNormalDistribution=function(re,ce){for(var re=re||256,ce=ce||1024,ge=new Oe.a({width:re,height:ce,type:ue.a.FLOAT,minFilter:ue.a.NEAREST,magFilter:ue.a.NEAREST,useMipmap:!1}),_e=new Float32Array(ce*re*4),ye=0;ye<ce;ye++){var be=ye/ce,Se=(ye<<16|ye>>>16)>>>0;Se=((Se&1431655765)<<1|(Se&2863311530)>>>1)>>>0,Se=((Se&858993459)<<2|(Se&3435973836)>>>2)>>>0,Se=((Se&252645135)<<4|(Se&4042322160)>>>4)>>>0,Se=(((Se&16711935)<<8|(Se&4278255360)>>>8)>>>0)/4294967296;for(var Be=0;Be<re;Be++){var Ae=Be/re,we=Ae*Ae,Ue=2*Math.PI*be,Pe=Math.sqrt((1-Se)/(1+(we*we-1)*Se)),ze=Math.sqrt(1-Pe*Pe),Ke=(ye*re+Be)*4;_e[Ke]=ze*Math.cos(Ue),_e[Ke+1]=ze*Math.sin(Ue),_e[Ke+2]=Pe,_e[Ke+3]=1}}return ge.pixels=_e,ge},Me.a=se},function(Ye,Me,pe){"use strict";Me.a=`
|
|
|
@export clay.compositor.vertex
|
|
|
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
|
|
attribute vec3 position : POSITION;
|
|
|
attribute vec2 texcoord : TEXCOORD_0;
|
|
|
varying vec2 v_Texcoord;
|
|
|
void main()
|
|
|
{
|
|
|
v_Texcoord = texcoord;
|
|
|
gl_Position = worldViewProjection * vec4(position, 1.0);
|
|
|
}
|
|
|
@end`},function(Ye,Me,pe){"use strict";Me.a=`@export clay.skybox.vertex
|
|
|
uniform mat4 world : WORLD;
|
|
|
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
|
|
attribute vec3 position : POSITION;
|
|
|
varying vec3 v_WorldPosition;
|
|
|
void main()
|
|
|
{
|
|
|
v_WorldPosition = (world * vec4(position, 1.0)).xyz;
|
|
|
gl_Position = worldViewProjection * vec4(position, 1.0);
|
|
|
}
|
|
|
@end
|
|
|
@export clay.skybox.fragment
|
|
|
uniform mat4 viewInverse : VIEWINVERSE;
|
|
|
uniform samplerCube environmentMap;
|
|
|
uniform float lod: 0.0;
|
|
|
varying vec3 v_WorldPosition;
|
|
|
@import clay.util.rgbm
|
|
|
@import clay.util.srgb
|
|
|
@import clay.util.ACES
|
|
|
void main()
|
|
|
{
|
|
|
vec3 eyePos = viewInverse[3].xyz;
|
|
|
vec3 viewDirection = normalize(v_WorldPosition - eyePos);
|
|
|
#ifdef LOD
|
|
|
vec4 texel = decodeHDR(textureCubeLodEXT(environmentMap, viewDirection, lod));
|
|
|
#else
|
|
|
vec4 texel = decodeHDR(textureCube(environmentMap, viewDirection));
|
|
|
#endif
|
|
|
#ifdef SRGB_DECODE
|
|
|
texel = sRGBToLinear(texel);
|
|
|
#endif
|
|
|
#ifdef TONEMAPPING
|
|
|
texel.rgb = ACESToneMapping(texel.rgb);
|
|
|
#endif
|
|
|
#ifdef SRGB_ENCODE
|
|
|
texel = linearTosRGB(texel);
|
|
|
#endif
|
|
|
gl_FragColor = encodeHDR(vec4(texel.rgb, 1.0));
|
|
|
}
|
|
|
@end`},function(Ye,Me,pe){"use strict";Me.a=`#define SAMPLE_NUMBER 1024
|
|
|
#define PI 3.14159265358979
|
|
|
uniform sampler2D normalDistribution;
|
|
|
uniform vec2 viewportSize : [512, 256];
|
|
|
const vec3 N = vec3(0.0, 0.0, 1.0);
|
|
|
const float fSampleNumber = float(SAMPLE_NUMBER);
|
|
|
vec3 importanceSampleNormal(float i, float roughness, vec3 N) {
|
|
|
vec3 H = texture2D(normalDistribution, vec2(roughness, i)).rgb;
|
|
|
vec3 upVector = abs(N.z) < 0.999 ? vec3(0.0, 0.0, 1.0) : vec3(1.0, 0.0, 0.0);
|
|
|
vec3 tangentX = normalize(cross(upVector, N));
|
|
|
vec3 tangentY = cross(N, tangentX);
|
|
|
return tangentX * H.x + tangentY * H.y + N * H.z;
|
|
|
}
|
|
|
float G_Smith(float roughness, float NoV, float NoL) {
|
|
|
float k = roughness * roughness / 2.0;
|
|
|
float G1V = NoV / (NoV * (1.0 - k) + k);
|
|
|
float G1L = NoL / (NoL * (1.0 - k) + k);
|
|
|
return G1L * G1V;
|
|
|
}
|
|
|
void main() {
|
|
|
vec2 uv = gl_FragCoord.xy / viewportSize;
|
|
|
float NoV = uv.x;
|
|
|
float roughness = uv.y;
|
|
|
vec3 V;
|
|
|
V.x = sqrt(1.0 - NoV * NoV);
|
|
|
V.y = 0.0;
|
|
|
V.z = NoV;
|
|
|
float A = 0.0;
|
|
|
float B = 0.0;
|
|
|
for (int i = 0; i < SAMPLE_NUMBER; i++) {
|
|
|
vec3 H = importanceSampleNormal(float(i) / fSampleNumber, roughness, N);
|
|
|
vec3 L = reflect(-V, H);
|
|
|
float NoL = clamp(L.z, 0.0, 1.0);
|
|
|
float NoH = clamp(H.z, 0.0, 1.0);
|
|
|
float VoH = clamp(dot(V, H), 0.0, 1.0);
|
|
|
if (NoL > 0.0) {
|
|
|
float G = G_Smith(roughness, NoV, NoL);
|
|
|
float G_Vis = G * VoH / (NoH * NoV);
|
|
|
float Fc = pow(1.0 - VoH, 5.0);
|
|
|
A += (1.0 - Fc) * G_Vis;
|
|
|
B += Fc * G_Vis;
|
|
|
}
|
|
|
}
|
|
|
gl_FragColor = vec4(vec2(A, B) / fSampleNumber, 0.0, 1.0);
|
|
|
}
|
|
|
`},function(Ye,Me,pe){"use strict";Me.a=`#define SAMPLE_NUMBER 1024
|
|
|
#define PI 3.14159265358979
|
|
|
uniform mat4 viewInverse : VIEWINVERSE;
|
|
|
uniform samplerCube environmentMap;
|
|
|
uniform sampler2D normalDistribution;
|
|
|
uniform float roughness : 0.5;
|
|
|
varying vec2 v_Texcoord;
|
|
|
varying vec3 v_WorldPosition;
|
|
|
const float fSampleNumber = float(SAMPLE_NUMBER);
|
|
|
@import clay.util.rgbm
|
|
|
vec3 importanceSampleNormal(float i, float roughness, vec3 N) {
|
|
|
vec3 H = texture2D(normalDistribution, vec2(roughness, i)).rgb;
|
|
|
vec3 upVector = abs(N.z) < 0.999 ? vec3(0.0, 0.0, 1.0) : vec3(1.0, 0.0, 0.0);
|
|
|
vec3 tangentX = normalize(cross(upVector, N));
|
|
|
vec3 tangentY = cross(N, tangentX);
|
|
|
return tangentX * H.x + tangentY * H.y + N * H.z;
|
|
|
}
|
|
|
void main() {
|
|
|
vec3 eyePos = viewInverse[3].xyz;
|
|
|
vec3 V = normalize(v_WorldPosition - eyePos);
|
|
|
vec3 N = V;
|
|
|
vec3 R = V;
|
|
|
vec3 prefilteredColor = vec3(0.0);
|
|
|
float totalWeight = 0.0;
|
|
|
for (int i = 0; i < SAMPLE_NUMBER; i++) {
|
|
|
vec3 H = importanceSampleNormal(float(i) / fSampleNumber, roughness, N);
|
|
|
vec3 L = reflect(-V, H);
|
|
|
float NoL = clamp(dot(N, L), 0.0, 1.0);
|
|
|
if (NoL > 0.0) {
|
|
|
prefilteredColor += decodeHDR(textureCube(environmentMap, L)).rgb * NoL;
|
|
|
totalWeight += NoL;
|
|
|
}
|
|
|
}
|
|
|
gl_FragColor = encodeHDR(vec4(prefilteredColor / totalWeight, 1.0));
|
|
|
}
|
|
|
`},function(Ye,Me,pe){"use strict";var Oe=pe(19),ve=pe(18),ue=Oe.a.extend({castShadow:!1,coefficients:[]},function(){this._coefficientsTmpArr=new ve.a.Float32Array(9*3)},{type:"AMBIENT_SH_LIGHT",uniformTemplates:{ambientSHLightColor:{type:"3f",value:function(fe){var he=fe.color,le=fe.intensity;return[he[0]*le,he[1]*le,he[2]*le]}},ambientSHLightCoefficients:{type:"3f",value:function(fe){for(var he=fe._coefficientsTmpArr,le=0;le<fe.coefficients.length;le++)he[le]=fe.coefficients[le];return he}}}});Me.a=ue},function(Ye,Me,pe){"use strict";var Oe=pe(6),ve=pe(10),ue=pe(5),fe=pe(14),he=pe(18),le=pe(57),ae=pe(56),ie=pe(55),me=pe(29),E=pe(1),b=pe.n(E),z=pe(115),ne=b.a.vec3,oe={},se=["px","nx","py","ny","pz","nz"];function de(ce,ge){var _e=new ue.a({width:9,height:1,type:Oe.a.FLOAT}),ye=new fe.a({fragment:z.a});ye.material.define("fragment","TEXTURE_SIZE",ge.width),ye.setUniform("environmentMap",ge);var be=new ve.a;be.attach(_e),ye.render(ce,be),be.bind(ce);var Se=new he.a.Float32Array(9*4);ce.gl.readPixels(0,0,9,1,Oe.a.RGBA,Oe.a.FLOAT,Se);for(var Be=new he.a.Float32Array(9*3),Ae=0;Ae<9;Ae++)Be[Ae*3]=Se[Ae*4],Be[Ae*3+1]=Se[Ae*4+1],Be[Ae*3+2]=Se[Ae*4+2];return be.unbind(ce),be.dispose(ce),ye.dispose(ce),Be}function a(ce,ge){var _e=ce[0],ye=ce[1],be=ce[2];return ge===0?1:ge===1?_e:ge===2?ye:ge===3?be:ge===4?_e*be:ge===5?ye*be:ge===6?_e*ye:ge===7?3*be*be-1:_e*_e-ye*ye}var x={px:[2,1,0,-1,-1,1],nx:[2,1,0,1,-1,-1],py:[0,2,1,1,-1,-1],ny:[0,2,1,1,1,1],pz:[0,1,2,-1,-1,-1],nz:[0,1,2,1,-1,1]};function re(ce,ge,_e,ye){for(var be=new he.a.Float32Array(27),Se=ne.create(),Be=ne.create(),Ae=ne.create(),we=0;we<9;we++){for(var Ue=ne.create(),Pe=0;Pe<se.length;Pe++){for(var ze=ge[se[Pe]],Ke=ne.create(),Ne=0,Re=0,$e=x[se[Pe]],nt=0;nt<ye;nt++)for(var ut=0;ut<_e;ut++){Se[0]=ut/(_e-1)*2-1,Se[1]=nt/(ye-1)*2-1,Se[2]=-1,ne.normalize(Se,Se),Ae[0]=Se[$e[0]]*$e[3],Ae[1]=Se[$e[1]]*$e[4],Ae[2]=Se[$e[2]]*$e[5],Be[0]=ze[Re++]/255,Be[1]=ze[Re++]/255,Be[2]=ze[Re++]/255;var Qe=ze[Re++]/255*51.5;Be[0]*=Qe,Be[1]*=Qe,Be[2]*=Qe,ne.scaleAndAdd(Ke,Ke,Be,a(Ae,we)*-Se[2]),Ne+=-Se[2]}ne.scaleAndAdd(Ue,Ue,Ke,1/Ne)}be[we*3]=Ue[0]/6,be[we*3+1]=Ue[1]/6,be[we*3+2]=Ue[2]/6}return be}oe.projectEnvironmentMap=function(ce,ge,_e){_e=_e||{},_e.lod=_e.lod||0;var ye,be=new me.a,Se=64;ge instanceof ue.a?ye=new ae.a({scene:be,environmentMap:ge}):(Se=ge.image&&ge.image.px?ge.image.px.width:ge.width,ye=new le.a({scene:be,environmentMap:ge}));var Be=Math.ceil(Se/Math.pow(2,_e.lod)),Ae=Math.ceil(Se/Math.pow(2,_e.lod)),we=new ue.a({width:Be,height:Ae}),Ue=new ve.a;ye.material.define("fragment","RGBM_ENCODE"),_e.decodeRGBM&&ye.material.define("fragment","RGBM_DECODE"),ye.material.set("lod",_e.lod);for(var Pe=new ie.a({texture:we}),ze={},Ke=0;Ke<se.length;Ke++){ze[se[Ke]]=new Uint8Array(Be*Ae*4);var Ne=Pe.getCamera(se[Ke]);Ne.fov=90,Ue.attach(we),Ue.bind(ce),ce.render(be,Ne),ce.gl.readPixels(0,0,Be,Ae,Oe.a.RGBA,Oe.a.UNSIGNED_BYTE,ze[se[Ke]]),Ue.unbind(ce)}return ye.dispose(ce),Ue.dispose(ce),we.dispose(ce),re(ce,ze,Be,Ae)},Me.a=oe},function(Ye,Me,pe){"use strict";Me.a=`uniform samplerCube environmentMap;
|
|
|
varying vec2 v_Texcoord;
|
|
|
#define TEXTURE_SIZE 16
|
|
|
mat3 front = mat3(
|
|
|
1.0, 0.0, 0.0,
|
|
|
0.0, 1.0, 0.0,
|
|
|
0.0, 0.0, 1.0
|
|
|
);
|
|
|
mat3 back = mat3(
|
|
|
-1.0, 0.0, 0.0,
|
|
|
0.0, 1.0, 0.0,
|
|
|
0.0, 0.0, -1.0
|
|
|
);
|
|
|
mat3 left = mat3(
|
|
|
0.0, 0.0, -1.0,
|
|
|
0.0, 1.0, 0.0,
|
|
|
1.0, 0.0, 0.0
|
|
|
);
|
|
|
mat3 right = mat3(
|
|
|
0.0, 0.0, 1.0,
|
|
|
0.0, 1.0, 0.0,
|
|
|
-1.0, 0.0, 0.0
|
|
|
);
|
|
|
mat3 up = mat3(
|
|
|
1.0, 0.0, 0.0,
|
|
|
0.0, 0.0, 1.0,
|
|
|
0.0, -1.0, 0.0
|
|
|
);
|
|
|
mat3 down = mat3(
|
|
|
1.0, 0.0, 0.0,
|
|
|
0.0, 0.0, -1.0,
|
|
|
0.0, 1.0, 0.0
|
|
|
);
|
|
|
float harmonics(vec3 normal){
|
|
|
int index = int(gl_FragCoord.x);
|
|
|
float x = normal.x;
|
|
|
float y = normal.y;
|
|
|
float z = normal.z;
|
|
|
if(index==0){
|
|
|
return 1.0;
|
|
|
}
|
|
|
else if(index==1){
|
|
|
return x;
|
|
|
}
|
|
|
else if(index==2){
|
|
|
return y;
|
|
|
}
|
|
|
else if(index==3){
|
|
|
return z;
|
|
|
}
|
|
|
else if(index==4){
|
|
|
return x*z;
|
|
|
}
|
|
|
else if(index==5){
|
|
|
return y*z;
|
|
|
}
|
|
|
else if(index==6){
|
|
|
return x*y;
|
|
|
}
|
|
|
else if(index==7){
|
|
|
return 3.0*z*z - 1.0;
|
|
|
}
|
|
|
else{
|
|
|
return x*x - y*y;
|
|
|
}
|
|
|
}
|
|
|
vec3 sampleSide(mat3 rot)
|
|
|
{
|
|
|
vec3 result = vec3(0.0);
|
|
|
float divider = 0.0;
|
|
|
for (int i = 0; i < TEXTURE_SIZE * TEXTURE_SIZE; i++) {
|
|
|
float x = mod(float(i), float(TEXTURE_SIZE));
|
|
|
float y = float(i / TEXTURE_SIZE);
|
|
|
vec2 sidecoord = ((vec2(x, y) + vec2(0.5, 0.5)) / vec2(TEXTURE_SIZE)) * 2.0 - 1.0;
|
|
|
vec3 normal = normalize(vec3(sidecoord, -1.0));
|
|
|
vec3 fetchNormal = rot * normal;
|
|
|
vec3 texel = textureCube(environmentMap, fetchNormal).rgb;
|
|
|
result += harmonics(fetchNormal) * texel * -normal.z;
|
|
|
divider += -normal.z;
|
|
|
}
|
|
|
return result / divider;
|
|
|
}
|
|
|
void main()
|
|
|
{
|
|
|
vec3 result = (
|
|
|
sampleSide(front) +
|
|
|
sampleSide(back) +
|
|
|
sampleSide(left) +
|
|
|
sampleSide(right) +
|
|
|
sampleSide(up) +
|
|
|
sampleSide(down)
|
|
|
) / 6.0;
|
|
|
gl_FragColor = vec4(result, 1.0);
|
|
|
}`},function(Ye,Me,pe){"use strict";var Oe=pe(19),ve=Oe.a.extend({castShadow:!1},{type:"AMBIENT_LIGHT",uniformTemplates:{ambientLightColor:{type:"3f",value:function(ue){var fe=ue.color,he=ue.intensity;return[fe[0]*he,fe[1]*he,fe[2]*he]}}}});Me.a=ve},function(Ye,Me,pe){"use strict";var Oe=pe(1),ve=pe.n(Oe),ue=ve.a.vec4,fe=function(ae,ie,me,E){ae=ae||0,ie=ie||0,me=me||0,E=E||0,this.array=ue.fromValues(ae,ie,me,E),this._dirty=!0};fe.prototype={constructor:fe,add:function(ae){return ue.add(this.array,this.array,ae.array),this._dirty=!0,this},set:function(ae,ie,me,E){return this.array[0]=ae,this.array[1]=ie,this.array[2]=me,this.array[3]=E,this._dirty=!0,this},setArray:function(ae){return this.array[0]=ae[0],this.array[1]=ae[1],this.array[2]=ae[2],this.array[3]=ae[3],this._dirty=!0,this},clone:function(){return new fe(this.x,this.y,this.z,this.w)},copy:function(ae){return ue.copy(this.array,ae.array),this._dirty=!0,this},dist:function(ae){return ue.dist(this.array,ae.array)},distance:function(ae){return ue.distance(this.array,ae.array)},div:function(ae){return ue.div(this.array,this.array,ae.array),this._dirty=!0,this},divide:function(ae){return ue.divide(this.array,this.array,ae.array),this._dirty=!0,this},dot:function(ae){return ue.dot(this.array,ae.array)},len:function(){return ue.len(this.array)},length:function(){return ue.length(this.array)},lerp:function(ae,ie,me){return ue.lerp(this.array,ae.array,ie.array,me),this._dirty=!0,this},min:function(ae){return ue.min(this.array,this.array,ae.array),this._dirty=!0,this},max:function(ae){return ue.max(this.array,this.array,ae.array),this._dirty=!0,this},mul:function(ae){return ue.mul(this.array,this.array,ae.array),this._dirty=!0,this},multiply:function(ae){return ue.multiply(this.array,this.array,ae.array),this._dirty=!0,this},negate:function(){return ue.negate(this.array,this.array),this._dirty=!0,this},normalize:function(){return ue.normalize(this.array,this.array),this._dirty=!0,this},random:function(ae){return ue.random(this.array,ae),this._dirty=!0,this},scale:function(ae){return ue.scale(this.array,this.array,ae),this._dirty=!0,this},scaleAndAdd:function(ae,ie){return ue.scaleAndAdd(this.array,this.array,ae.array,ie),this._dirty=!0,this},sqrDist:function(ae){return ue.sqrDist(this.array,ae.array)},squaredDistance:function(ae){return ue.squaredDistance(this.array,ae.array)},sqrLen:function(){return ue.sqrLen(this.array)},squaredLength:function(){return ue.squaredLength(this.array)},sub:function(ae){return ue.sub(this.array,this.array,ae.array),this._dirty=!0,this},subtract:function(ae){return ue.subtract(this.array,this.array,ae.array),this._dirty=!0,this},transformMat4:function(ae){return ue.transformMat4(this.array,this.array,ae.array),this._dirty=!0,this},transformQuat:function(ae){return ue.transformQuat(this.array,this.array,ae.array),this._dirty=!0,this},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};var he=Object.defineProperty;if(he){var le=fe.prototype;he(le,"x",{get:function(){return this.array[0]},set:function(ae){this.array[0]=ae,this._dirty=!0}}),he(le,"y",{get:function(){return this.array[1]},set:function(ae){this.array[1]=ae,this._dirty=!0}}),he(le,"z",{get:function(){return this.array[2]},set:function(ae){this.array[2]=ae,this._dirty=!0}}),he(le,"w",{get:function(){return this.array[3]},set:function(ae){this.array[3]=ae,this._dirty=!0}})}fe.add=function(ae,ie,me){return ue.add(ae.array,ie.array,me.array),ae._dirty=!0,ae},fe.set=function(ae,ie,me,E,b){ue.set(ae.array,ie,me,E,b),ae._dirty=!0},fe.copy=function(ae,ie){return ue.copy(ae.array,ie.array),ae._dirty=!0,ae},fe.dist=function(ae,ie){return ue.distance(ae.array,ie.array)},fe.distance=fe.dist,fe.div=function(ae,ie,me){return ue.divide(ae.array,ie.array,me.array),ae._dirty=!0,ae},fe.divide=fe.div,fe.dot=function(ae,ie){return ue.dot(ae.array,ie.array)},fe.len=function(ae){return ue.length(ae.array)},fe.lerp=function(ae,ie,me,E){return ue.lerp(ae.array,ie.array,me.array,E),ae._dirty=!0,ae},fe.min=function(ae,ie,me){return ue.min(ae.array,ie.array,me.array),ae._dirty=!0,ae},fe.max=function(ae,ie,me){return ue.max(ae.array,ie.array,me.array),ae._dirty=!0,ae},fe.mul=function(ae,ie,me){return ue.multiply(ae.array,ie.array,me.array),ae._dirty=!0,ae},fe.multiply=fe.mul,fe.negate=function(ae,ie){return ue.negate(ae.array,ie.array),ae._dirty=!0,ae},fe.normalize=function(ae,ie){return ue.normalize(ae.array,ie.array),ae._dirty=!0,ae},fe.random=function(ae,ie){return ue.random(ae.array,ie),ae._dirty=!0,ae},fe.scale=function(ae,ie,me){return ue.scale(ae.array,ie.array,me),ae._dirty=!0,ae},fe.scaleAndAdd=function(ae,ie,me,E){return ue.scaleAndAdd(ae.array,ie.array,me.array,E),ae._dirty=!0,ae},fe.sqrDist=function(ae,ie){return ue.sqrDist(ae.array,ie.array)},fe.squaredDistance=fe.sqrDist,fe.sqrLen=function(ae){return ue.sqrLen(ae.array)},fe.squaredLength=fe.sqrLen,fe.sub=function(ae,ie,me){return ue.subtract(ae.array,ie.array,me.array),ae._dirty=!0,ae},fe.subtract=fe.sub,fe.transformMat4=function(ae,ie,me){return ue.transformMat4(ae.array,ie.array,me.array),ae._dirty=!0,ae},fe.transformQuat=function(ae,ie,me){return ue.transformQuat(ae.array,ie.array,me.array),ae._dirty=!0,ae},Me.a=fe},function(Ye,Me,pe){"use strict";var Oe=pe(1),ve=pe.n(Oe),ue=ve.a.mat2,fe=function(){this.array=ue.create(),this._dirty=!0};fe.prototype={constructor:fe,setArray:function(he){for(var le=0;le<this.array.length;le++)this.array[le]=he[le];return this._dirty=!0,this},clone:function(){return new fe().copy(this)},copy:function(he){return ue.copy(this.array,he.array),this._dirty=!0,this},adjoint:function(){return ue.adjoint(this.array,this.array),this._dirty=!0,this},determinant:function(){return ue.determinant(this.array)},identity:function(){return ue.identity(this.array),this._dirty=!0,this},invert:function(){return ue.invert(this.array,this.array),this._dirty=!0,this},mul:function(he){return ue.mul(this.array,this.array,he.array),this._dirty=!0,this},mulLeft:function(he){return ue.mul(this.array,he.array,this.array),this._dirty=!0,this},multiply:function(he){return ue.multiply(this.array,this.array,he.array),this._dirty=!0,this},multiplyLeft:function(he){return ue.multiply(this.array,he.array,this.array),this._dirty=!0,this},rotate:function(he){return ue.rotate(this.array,this.array,he),this._dirty=!0,this},scale:function(he){return ue.scale(this.array,this.array,he.array),this._dirty=!0,this},transpose:function(){return ue.transpose(this.array,this.array),this._dirty=!0,this},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}},fe.adjoint=function(he,le){return ue.adjoint(he.array,le.array),he._dirty=!0,he},fe.copy=function(he,le){return ue.copy(he.array,le.array),he._dirty=!0,he},fe.determinant=function(he){return ue.determinant(he.array)},fe.identity=function(he){return ue.identity(he.array),he._dirty=!0,he},fe.invert=function(he,le){return ue.invert(he.array,le.array),he._dirty=!0,he},fe.mul=function(he,le,ae){return ue.mul(he.array,le.array,ae.array),he._dirty=!0,he},fe.multiply=fe.mul,fe.rotate=function(he,le,ae){return ue.rotate(he.array,le.array,ae),he._dirty=!0,he},fe.scale=function(he,le,ae){return ue.scale(he.array,le.array,ae.array),he._dirty=!0,he},fe.transpose=function(he,le){return ue.transpose(he.array,le.array),he._dirty=!0,he},Me.a=fe},function(Ye,Me,pe){"use strict";var Oe=pe(1),ve=pe.n(Oe),ue=ve.a.mat2d,fe=function(){this.array=ue.create(),this._dirty=!0};fe.prototype={constructor:fe,setArray:function(he){for(var le=0;le<this.array.length;le++)this.array[le]=he[le];return this._dirty=!0,this},clone:function(){return new fe().copy(this)},copy:function(he){return ue.copy(this.array,he.array),this._dirty=!0,this},determinant:function(){return ue.determinant(this.array)},identity:function(){return ue.identity(this.array),this._dirty=!0,this},invert:function(){return ue.invert(this.array,this.array),this._dirty=!0,this},mul:function(he){return ue.mul(this.array,this.array,he.array),this._dirty=!0,this},mulLeft:function(he){return ue.mul(this.array,he.array,this.array),this._dirty=!0,this},multiply:function(he){return ue.multiply(this.array,this.array,he.array),this._dirty=!0,this},multiplyLeft:function(he){return ue.multiply(this.array,he.array,this.array),this._dirty=!0,this},rotate:function(he){return ue.rotate(this.array,this.array,he),this._dirty=!0,this},scale:function(he){return ue.scale(this.array,this.array,he.array),this._dirty=!0,this},translate:function(he){return ue.translate(this.array,this.array,he.array),this._dirty=!0,this},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}},fe.copy=function(he,le){return ue.copy(he.array,le.array),he._dirty=!0,he},fe.determinant=function(he){return ue.determinant(he.array)},fe.identity=function(he){return ue.identity(he.array),he._dirty=!0,he},fe.invert=function(he,le){return ue.invert(he.array,le.array),he._dirty=!0,he},fe.mul=function(he,le,ae){return ue.mul(he.array,le.array,ae.array),he._dirty=!0,he},fe.multiply=fe.mul,fe.rotate=function(he,le,ae){return ue.rotate(he.array,le.array,ae),he._dirty=!0,he},fe.scale=function(he,le,ae){return ue.scale(he.array,le.array,ae.array),he._dirty=!0,he},fe.translate=function(he,le,ae){return ue.translate(he.array,le.array,ae.array),he._dirty=!0,he},Me.a=fe},function(Ye,Me,pe){"use strict";var Oe=pe(1),ve=pe.n(Oe),ue=ve.a.mat3,fe=function(){this.array=ue.create(),this._dirty=!0};fe.prototype={constructor:fe,setArray:function(he){for(var le=0;le<this.array.length;le++)this.array[le]=he[le];return this._dirty=!0,this},adjoint:function(){return ue.adjoint(this.array,this.array),this._dirty=!0,this},clone:function(){return new fe().copy(this)},copy:function(he){return ue.copy(this.array,he.array),this._dirty=!0,this},determinant:function(){return ue.determinant(this.array)},fromMat2d:function(he){return ue.fromMat2d(this.array,he.array),this._dirty=!0,this},fromMat4:function(he){return ue.fromMat4(this.array,he.array),this._dirty=!0,this},fromQuat:function(he){return ue.fromQuat(this.array,he.array),this._dirty=!0,this},identity:function(){return ue.identity(this.array),this._dirty=!0,this},invert:function(){return ue.invert(this.array,this.array),this._dirty=!0,this},mul:function(he){return ue.mul(this.array,this.array,he.array),this._dirty=!0,this},mulLeft:function(he){return ue.mul(this.array,he.array,this.array),this._dirty=!0,this},multiply:function(he){return ue.multiply(this.array,this.array,he.array),this._dirty=!0,this},multiplyLeft:function(he){return ue.multiply(this.array,he.array,this.array),this._dirty=!0,this},rotate:function(he){return ue.rotate(this.array,this.array,he),this._dirty=!0,this},scale:function(he){return ue.scale(this.array,this.array,he.array),this._dirty=!0,this},translate:function(he){return ue.translate(this.array,this.array,he.array),this._dirty=!0,this},normalFromMat4:function(he){return ue.normalFromMat4(this.array,he.array),this._dirty=!0,this},transpose:function(){return ue.transpose(this.array,this.array),this._dirty=!0,this},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}},fe.adjoint=function(he,le){return ue.adjoint(he.array,le.array),he._dirty=!0,he},fe.copy=function(he,le){return ue.copy(he.array,le.array),he._dirty=!0,he},fe.determinant=function(he){return ue.determinant(he.array)},fe.identity=function(he){return ue.identity(he.array),he._dirty=!0,he},fe.invert=function(he,le){return ue.invert(he.array,le.array),he},fe.mul=function(he,le,ae){return ue.mul(he.array,le.array,ae.array),he._dirty=!0,he},fe.multiply=fe.mul,fe.fromMat2d=function(he,le){return ue.fromMat2d(he.array,le.array),he._dirty=!0,he},fe.fromMat4=function(he,le){return ue.fromMat4(he.array,le.array),he._dirty=!0,he},fe.fromQuat=function(he,le){return ue.fromQuat(he.array,le.array),he._dirty=!0,he},fe.normalFromMat4=function(he,le){return ue.normalFromMat4(he.array,le.array),he._dirty=!0,he},fe.rotate=function(he,le,ae){return ue.rotate(he.array,le.array,ae),he._dirty=!0,he},fe.scale=function(he,le,ae){return ue.scale(he.array,le.array,ae.array),he._dirty=!0,he},fe.transpose=function(he,le){return ue.transpose(he.array,le.array),he._dirty=!0,he},fe.translate=function(he,le,ae){return ue.translate(he.array,le.array,ae.array),he._dirty=!0,he},Me.a=fe},function(Ye,Me,pe){"use strict";var Oe=pe(122),ve=pe.n(Oe),ue={_animators:null,getAnimators:function(){return this._animators=this._animators||[],this._animators},animate:function(fe,he){this._animators=this._animators||[];var le=this,ae;if(fe){for(var ie=fe.split("."),me=le,E=0,b=ie.length;E<b;E++)me&&(me=me[ie[E]]);me&&(ae=me)}else ae=le;if(ae==null)throw new Error("Target "+fe+" not exists");var z=this._animators,ne=new ve.a(ae,he),oe=this;return ne.during(function(){oe.__zr&&oe.__zr.refresh()}).done(function(){var se=z.indexOf(ne);se>=0&&z.splice(se,1)}),z.push(ne),this.__zr&&this.__zr.animation.addAnimator(ne),ne},stopAnimation:function(fe){this._animators=this._animators||[];for(var he=this._animators,le=he.length,ae=0;ae<le;ae++)he[ae].stop(fe);return he.length=0,this},addAnimatorsToZr:function(fe){if(this._animators)for(var he=0;he<this._animators.length;he++)fe.animation.addAnimator(this._animators[he])},removeAnimatorsFromZr:function(fe){if(this._animators)for(var he=0;he<this._animators.length;he++)fe.animation.removeAnimator(this._animators[he])}};Me.a=ue},function(Ye,Me,pe){var Oe=pe(123),ve=pe(125),ue=pe(12),fe=ue.isArrayLike,he=Array.prototype.slice;function le(ge,_e){return ge[_e]}function ae(ge,_e,ye){ge[_e]=ye}function ie(ge,_e,ye){return(_e-ge)*ye+ge}function me(ge,_e,ye){return ye>.5?_e:ge}function E(ge,_e,ye,be,Se){var Be=ge.length;if(Se==1)for(var Ae=0;Ae<Be;Ae++)be[Ae]=ie(ge[Ae],_e[Ae],ye);else for(var we=Be&&ge[0].length,Ae=0;Ae<Be;Ae++)for(var Ue=0;Ue<we;Ue++)be[Ae][Ue]=ie(ge[Ae][Ue],_e[Ae][Ue],ye)}function b(ge,_e,ye){var be=ge.length,Se=_e.length;if(be!==Se){var Be=be>Se;if(Be)ge.length=Se;else for(var Ae=be;Ae<Se;Ae++)ge.push(ye===1?_e[Ae]:he.call(_e[Ae]))}for(var we=ge[0]&&ge[0].length,Ae=0;Ae<ge.length;Ae++)if(ye===1)isNaN(ge[Ae])&&(ge[Ae]=_e[Ae]);else for(var Ue=0;Ue<we;Ue++)isNaN(ge[Ae][Ue])&&(ge[Ae][Ue]=_e[Ae][Ue])}function z(ge,_e,ye){if(ge===_e)return!0;var be=ge.length;if(be!==_e.length)return!1;if(ye===1){for(var Se=0;Se<be;Se++)if(ge[Se]!==_e[Se])return!1}else for(var Be=ge[0].length,Se=0;Se<be;Se++)for(var Ae=0;Ae<Be;Ae++)if(ge[Se][Ae]!==_e[Se][Ae])return!1;return!0}function ne(ge,_e,ye,be,Se,Be,Ae,we,Ue){var Pe=ge.length;if(Ue==1)for(var ze=0;ze<Pe;ze++)we[ze]=oe(ge[ze],_e[ze],ye[ze],be[ze],Se,Be,Ae);else for(var Ke=ge[0].length,ze=0;ze<Pe;ze++)for(var Ne=0;Ne<Ke;Ne++)we[ze][Ne]=oe(ge[ze][Ne],_e[ze][Ne],ye[ze][Ne],be[ze][Ne],Se,Be,Ae)}function oe(ge,_e,ye,be,Se,Be,Ae){var we=(ye-ge)*.5,Ue=(be-_e)*.5;return(2*(_e-ye)+we+Ue)*Ae+(-3*(_e-ye)-2*we-Ue)*Be+we*Se+_e}function se(ge){if(fe(ge)){var _e=ge.length;if(fe(ge[0])){for(var ye=[],be=0;be<_e;be++)ye.push(he.call(ge[be]));return ye}return he.call(ge)}return ge}function de(ge){return ge[0]=Math.floor(ge[0]),ge[1]=Math.floor(ge[1]),ge[2]=Math.floor(ge[2]),"rgba("+ge.join(",")+")"}function a(ge){var _e=ge[ge.length-1].value;return fe(_e&&_e[0])?2:1}function x(ge,_e,ye,be,Se,Be){var Ae=ge._getter,we=ge._setter,Ue=_e==="spline",Pe=be.length;if(Pe){var ze=be[0].value,Ke=fe(ze),Ne=!1,Re=!1,$e=Ke?a(be):0,nt;be.sort(function(ot,ct){return ot.time-ct.time}),nt=be[Pe-1].time;for(var ut=[],Qe=[],rt=be[0].value,pt=!0,At=0;At<Pe;At++){ut.push(be[At].time/nt);var gt=be[At].value;if(Ke&&z(gt,rt,$e)||!Ke&>===rt||(pt=!1),rt=gt,typeof gt=="string"){var Ft=ve.parse(gt);Ft?(gt=Ft,Ne=!0):Re=!0}Qe.push(gt)}if(!(!Be&&pt)){for(var Ct=Qe[Pe-1],At=0;At<Pe-1;At++)Ke?b(Qe[At],Ct,$e):isNaN(Qe[At])&&!isNaN(Ct)&&!Re&&!Ne&&(Qe[At]=Ct);Ke&&b(Ae(ge._target,Se),Ct,$e);var Yt=0,zt=0,Xe,Fe,Le,Ze,et,He;if(Ne)var We=[0,0,0,0];var tt=function(ot,ct){var lt;if(ct<0)lt=0;else if(ct<zt){for(Xe=Math.min(Yt+1,Pe-1),lt=Xe;lt>=0&&!(ut[lt]<=ct);lt--);lt=Math.min(lt,Pe-2)}else{for(lt=Yt;lt<Pe&&!(ut[lt]>ct);lt++);lt=Math.min(lt-1,Pe-2)}Yt=lt,zt=ct;var mt=ut[lt+1]-ut[lt];if(mt!==0)if(Fe=(ct-ut[lt])/mt,Ue)if(Ze=Qe[lt],Le=Qe[lt===0?lt:lt-1],et=Qe[lt>Pe-2?Pe-1:lt+1],He=Qe[lt>Pe-3?Pe-1:lt+2],Ke)ne(Le,Ze,et,He,Fe,Fe*Fe,Fe*Fe*Fe,Ae(ot,Se),$e);else{var Lt;if(Ne)Lt=ne(Le,Ze,et,He,Fe,Fe*Fe,Fe*Fe*Fe,We,1),Lt=de(We);else{if(Re)return me(Ze,et,Fe);Lt=oe(Le,Ze,et,He,Fe,Fe*Fe,Fe*Fe*Fe)}we(ot,Se,Lt)}else if(Ke)E(Qe[lt],Qe[lt+1],Fe,Ae(ot,Se),$e);else{var Lt;if(Ne)E(Qe[lt],Qe[lt+1],Fe,We,1),Lt=de(We);else{if(Re)return me(Qe[lt],Qe[lt+1],Fe);Lt=ie(Qe[lt],Qe[lt+1],Fe)}we(ot,Se,Lt)}},at=new Oe({target:ge._target,life:nt,loop:ge._loop,delay:ge._delay,onframe:tt,ondestroy:ye});return _e&&_e!=="spline"&&(at.easing=_e),at}}}var re=function(ge,_e,ye,be){this._tracks={},this._target=ge,this._loop=_e||!1,this._getter=ye||le,this._setter=be||ae,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};re.prototype={when:function(ge,_e){var ye=this._tracks;for(var be in _e)if(_e.hasOwnProperty(be)){if(!ye[be]){ye[be]=[];var Se=this._getter(this._target,be);if(Se==null)continue;ge!==0&&ye[be].push({time:0,value:se(Se)})}ye[be].push({time:ge,value:_e[be]})}return this},during:function(ge){return this._onframeList.push(ge),this},pause:function(){for(var ge=0;ge<this._clipList.length;ge++)this._clipList[ge].pause();this._paused=!0},resume:function(){for(var ge=0;ge<this._clipList.length;ge++)this._clipList[ge].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var ge=this._doneList,_e=ge.length,ye=0;ye<_e;ye++)ge[ye].call(this)},start:function(ge,_e){var ye=this,be=0,Se=function(){be--,be||ye._doneCallback()},Be;for(var Ae in this._tracks)if(this._tracks.hasOwnProperty(Ae)){var we=x(this,ge,Se,this._tracks[Ae],Ae,_e);we&&(this._clipList.push(we),be++,this.animation&&this.animation.addClip(we),Be=we)}if(Be){var Ue=Be.onframe;Be.onframe=function(Pe,ze){Ue(Pe,ze);for(var Ke=0;Ke<ye._onframeList.length;Ke++)ye._onframeList[Ke](Pe,ze)}}return be||this._doneCallback(),this},stop:function(ge){for(var _e=this._clipList,ye=this.animation,be=0;be<_e.length;be++){var Se=_e[be];ge&&Se.onframe(this._target,1),ye&&ye.removeClip(Se)}_e.length=0},delay:function(ge){return this._delay=ge,this},done:function(ge){return ge&&this._doneList.push(ge),this},getClips:function(){return this._clipList}};var ce=re;Ye.exports=ce},function(Ye,Me,pe){var Oe=pe(124);function ve(fe){this._target=fe.target,this._life=fe.life||1e3,this._delay=fe.delay||0,this._initialized=!1,this.loop=fe.loop==null?!1:fe.loop,this.gap=fe.gap||0,this.easing=fe.easing||"Linear",this.onframe=fe.onframe,this.ondestroy=fe.ondestroy,this.onrestart=fe.onrestart,this._pausedTime=0,this._paused=!1}ve.prototype={constructor:ve,step:function(fe,he){if(this._initialized||(this._startTime=fe+this._delay,this._initialized=!0),this._paused){this._pausedTime+=he;return}var le=(fe-this._startTime-this._pausedTime)/this._life;if(!(le<0)){le=Math.min(le,1);var ae=this.easing,ie=typeof ae=="string"?Oe[ae]:ae,me=typeof ie=="function"?ie(le):le;return this.fire("frame",me),le==1?this.loop?(this.restart(fe),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(fe){var he=(fe-this._startTime-this._pausedTime)%this._life;this._startTime=fe-he+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(fe,he){fe="on"+fe,this[fe]&&this[fe](this._target,he)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var ue=ve;Ye.exports=ue},function(Ye,Me){var pe={linear:function(ve){return ve},quadraticIn:function(ve){return ve*ve},quadraticOut:function(ve){return ve*(2-ve)},quadraticInOut:function(ve){return(ve*=2)<1?.5*ve*ve:-.5*(--ve*(ve-2)-1)},cubicIn:function(ve){return ve*ve*ve},cubicOut:function(ve){return--ve*ve*ve+1},cubicInOut:function(ve){return(ve*=2)<1?.5*ve*ve*ve:.5*((ve-=2)*ve*ve+2)},quarticIn:function(ve){return ve*ve*ve*ve},quarticOut:function(ve){return 1- --ve*ve*ve*ve},quarticInOut:function(ve){return(ve*=2)<1?.5*ve*ve*ve*ve:-.5*((ve-=2)*ve*ve*ve-2)},quinticIn:function(ve){return ve*ve*ve*ve*ve},quinticOut:function(ve){return--ve*ve*ve*ve*ve+1},quinticInOut:function(ve){return(ve*=2)<1?.5*ve*ve*ve*ve*ve:.5*((ve-=2)*ve*ve*ve*ve+2)},sinusoidalIn:function(ve){return 1-Math.cos(ve*Math.PI/2)},sinusoidalOut:function(ve){return Math.sin(ve*Math.PI/2)},sinusoidalInOut:function(ve){return .5*(1-Math.cos(Math.PI*ve))},exponentialIn:function(ve){return ve===0?0:Math.pow(1024,ve-1)},exponentialOut:function(ve){return ve===1?1:1-Math.pow(2,-10*ve)},exponentialInOut:function(ve){return ve===0?0:ve===1?1:(ve*=2)<1?.5*Math.pow(1024,ve-1):.5*(-Math.pow(2,-10*(ve-1))+2)},circularIn:function(ve){return 1-Math.sqrt(1-ve*ve)},circularOut:function(ve){return Math.sqrt(1- --ve*ve)},circularInOut:function(ve){return(ve*=2)<1?-.5*(Math.sqrt(1-ve*ve)-1):.5*(Math.sqrt(1-(ve-=2)*ve)+1)},elasticIn:function(ve){var ue,fe=.1,he=.4;return ve===0?0:ve===1?1:(!fe||fe<1?(fe=1,ue=he/4):ue=he*Math.asin(1/fe)/(2*Math.PI),-(fe*Math.pow(2,10*(ve-=1))*Math.sin((ve-ue)*(2*Math.PI)/he)))},elasticOut:function(ve){var ue,fe=.1,he=.4;return ve===0?0:ve===1?1:(!fe||fe<1?(fe=1,ue=he/4):ue=he*Math.asin(1/fe)/(2*Math.PI),fe*Math.pow(2,-10*ve)*Math.sin((ve-ue)*(2*Math.PI)/he)+1)},elasticInOut:function(ve){var ue,fe=.1,he=.4;return ve===0?0:ve===1?1:(!fe||fe<1?(fe=1,ue=he/4):ue=he*Math.asin(1/fe)/(2*Math.PI),(ve*=2)<1?-.5*(fe*Math.pow(2,10*(ve-=1))*Math.sin((ve-ue)*(2*Math.PI)/he)):fe*Math.pow(2,-10*(ve-=1))*Math.sin((ve-ue)*(2*Math.PI)/he)*.5+1)},backIn:function(ve){var ue=1.70158;return ve*ve*((ue+1)*ve-ue)},backOut:function(ve){var ue=1.70158;return--ve*ve*((ue+1)*ve+ue)+1},backInOut:function(ve){var ue=2.5949095;return(ve*=2)<1?.5*(ve*ve*((ue+1)*ve-ue)):.5*((ve-=2)*ve*((ue+1)*ve+ue)+2)},bounceIn:function(ve){return 1-pe.bounceOut(1-ve)},bounceOut:function(ve){return ve<.36363636363636365?7.5625*ve*ve:ve<.7272727272727273?7.5625*(ve-=.5454545454545454)*ve+.75:ve<.9090909090909091?7.5625*(ve-=.8181818181818182)*ve+.9375:7.5625*(ve-=.9545454545454546)*ve+.984375},bounceInOut:function(ve){return ve<.5?pe.bounceIn(ve*2)*.5:pe.bounceOut(ve*2-1)*.5+.5}},Oe=pe;Ye.exports=Oe},function(Ye,Me,pe){var Oe=pe(53),ve={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function ue(Ae){return Ae=Math.round(Ae),Ae<0?0:Ae>255?255:Ae}function fe(Ae){return Ae=Math.round(Ae),Ae<0?0:Ae>360?360:Ae}function he(Ae){return Ae<0?0:Ae>1?1:Ae}function le(Ae){return Ae.length&&Ae.charAt(Ae.length-1)==="%"?ue(parseFloat(Ae)/100*255):ue(parseInt(Ae,10))}function ae(Ae){return Ae.length&&Ae.charAt(Ae.length-1)==="%"?he(parseFloat(Ae)/100):he(parseFloat(Ae))}function ie(Ae,we,Ue){return Ue<0?Ue+=1:Ue>1&&(Ue-=1),Ue*6<1?Ae+(we-Ae)*Ue*6:Ue*2<1?we:Ue*3<2?Ae+(we-Ae)*(2/3-Ue)*6:Ae}function me(Ae,we,Ue){return Ae+(we-Ae)*Ue}function E(Ae,we,Ue,Pe,ze){return Ae[0]=we,Ae[1]=Ue,Ae[2]=Pe,Ae[3]=ze,Ae}function b(Ae,we){return Ae[0]=we[0],Ae[1]=we[1],Ae[2]=we[2],Ae[3]=we[3],Ae}var z=new Oe(20),ne=null;function oe(Ae,we){ne&&b(ne,we),ne=z.put(Ae,ne||we.slice())}function se(Ae,we){if(Ae){we=we||[];var Ue=z.get(Ae);if(Ue)return b(we,Ue);Ae=Ae+"";var Pe=Ae.replace(/ /g,"").toLowerCase();if(Pe in ve)return b(we,ve[Pe]),oe(Ae,we),we;if(Pe.charAt(0)==="#"){if(Pe.length===4){var ze=parseInt(Pe.substr(1),16);if(!(ze>=0&&ze<=4095)){E(we,0,0,0,1);return}return E(we,(ze&3840)>>4|(ze&3840)>>8,ze&240|(ze&240)>>4,ze&15|(ze&15)<<4,1),oe(Ae,we),we}else if(Pe.length===7){var ze=parseInt(Pe.substr(1),16);if(!(ze>=0&&ze<=16777215)){E(we,0,0,0,1);return}return E(we,(ze&16711680)>>16,(ze&65280)>>8,ze&255,1),oe(Ae,we),we}return}var Ke=Pe.indexOf("("),Ne=Pe.indexOf(")");if(Ke!==-1&&Ne+1===Pe.length){var Re=Pe.substr(0,Ke),$e=Pe.substr(Ke+1,Ne-(Ke+1)).split(","),nt=1;switch(Re){case"rgba":if($e.length!==4){E(we,0,0,0,1);return}nt=ae($e.pop());case"rgb":if($e.length!==3){E(we,0,0,0,1);return}return E(we,le($e[0]),le($e[1]),le($e[2]),nt),oe(Ae,we),we;case"hsla":if($e.length!==4){E(we,0,0,0,1);return}return $e[3]=ae($e[3]),de($e,we),oe(Ae,we),we;case"hsl":if($e.length!==3){E(we,0,0,0,1);return}return de($e,we),oe(Ae,we),we;default:return}}E(we,0,0,0,1)}}function de(Ae,we){var Ue=(parseFloat(Ae[0])%360+360)%360/360,Pe=ae(Ae[1]),ze=ae(Ae[2]),Ke=ze<=.5?ze*(Pe+1):ze+Pe-ze*Pe,Ne=ze*2-Ke;return we=we||[],E(we,ue(ie(Ne,Ke,Ue+1/3)*255),ue(ie(Ne,Ke,Ue)*255),ue(ie(Ne,Ke,Ue-1/3)*255),1),Ae.length===4&&(we[3]=Ae[3]),we}function a(Ae){if(Ae){var we=Ae[0]/255,Ue=Ae[1]/255,Pe=Ae[2]/255,ze=Math.min(we,Ue,Pe),Ke=Math.max(we,Ue,Pe),Ne=Ke-ze,Re=(Ke+ze)/2,$e,nt;if(Ne===0)$e=0,nt=0;else{Re<.5?nt=Ne/(Ke+ze):nt=Ne/(2-Ke-ze);var ut=((Ke-we)/6+Ne/2)/Ne,Qe=((Ke-Ue)/6+Ne/2)/Ne,rt=((Ke-Pe)/6+Ne/2)/Ne;we===Ke?$e=rt-Qe:Ue===Ke?$e=1/3+ut-rt:Pe===Ke&&($e=2/3+Qe-ut),$e<0&&($e+=1),$e>1&&($e-=1)}var pt=[$e*360,nt,Re];return Ae[3]!=null&&pt.push(Ae[3]),pt}}function x(Ae,we){var Ue=se(Ae);if(Ue){for(var Pe=0;Pe<3;Pe++)we<0?Ue[Pe]=Ue[Pe]*(1-we)|0:Ue[Pe]=(255-Ue[Pe])*we+Ue[Pe]|0;return Be(Ue,Ue.length===4?"rgba":"rgb")}}function re(Ae){var we=se(Ae);if(we)return((1<<24)+(we[0]<<16)+(we[1]<<8)+ +we[2]).toString(16).slice(1)}function ce(Ae,we,Ue){if(!(!(we&&we.length)||!(Ae>=0&&Ae<=1))){Ue=Ue||[];var Pe=Ae*(we.length-1),ze=Math.floor(Pe),Ke=Math.ceil(Pe),Ne=we[ze],Re=we[Ke],$e=Pe-ze;return Ue[0]=ue(me(Ne[0],Re[0],$e)),Ue[1]=ue(me(Ne[1],Re[1],$e)),Ue[2]=ue(me(Ne[2],Re[2],$e)),Ue[3]=he(me(Ne[3],Re[3],$e)),Ue}}var ge=ce;function _e(Ae,we,Ue){if(!(!(we&&we.length)||!(Ae>=0&&Ae<=1))){var Pe=Ae*(we.length-1),ze=Math.floor(Pe),Ke=Math.ceil(Pe),Ne=se(we[ze]),Re=se(we[Ke]),$e=Pe-ze,nt=Be([ue(me(Ne[0],Re[0],$e)),ue(me(Ne[1],Re[1],$e)),ue(me(Ne[2],Re[2],$e)),he(me(Ne[3],Re[3],$e))],"rgba");return Ue?{color:nt,leftIndex:ze,rightIndex:Ke,value:Pe}:nt}}var ye=_e;function be(Ae,we,Ue,Pe){if(Ae=se(Ae),Ae)return Ae=a(Ae),we!=null&&(Ae[0]=fe(we)),Ue!=null&&(Ae[1]=ae(Ue)),Pe!=null&&(Ae[2]=ae(Pe)),Be(de(Ae),"rgba")}function Se(Ae,we){if(Ae=se(Ae),Ae&&we!=null)return Ae[3]=he(we),Be(Ae,"rgba")}function Be(Ae,we){if(!(!Ae||!Ae.length)){var Ue=Ae[0]+","+Ae[1]+","+Ae[2];return(we==="rgba"||we==="hsva"||we==="hsla")&&(Ue+=","+Ae[3]),we+"("+Ue+")"}}Me.parse=se,Me.lift=x,Me.toHex=re,Me.fastLerp=ce,Me.fastMapToColor=ge,Me.lerp=_e,Me.mapToColor=ye,Me.modifyHSL=be,Me.modifyAlpha=Se,Me.stringify=Be},function(Ye,Me,pe){"use strict";Me.a=`
|
|
|
@export clay.util.rand
|
|
|
highp float rand(vec2 uv) {
|
|
|
const highp float a = 12.9898, b = 78.233, c = 43758.5453;
|
|
|
highp float dt = dot(uv.xy, vec2(a,b)), sn = mod(dt, 3.141592653589793);
|
|
|
return fract(sin(sn) * c);
|
|
|
}
|
|
|
@end
|
|
|
@export clay.util.calculate_attenuation
|
|
|
uniform float attenuationFactor : 5.0;
|
|
|
float lightAttenuation(float dist, float range)
|
|
|
{
|
|
|
float attenuation = 1.0;
|
|
|
attenuation = dist*dist/(range*range+1.0);
|
|
|
float att_s = attenuationFactor;
|
|
|
attenuation = 1.0/(attenuation*att_s+1.0);
|
|
|
att_s = 1.0/(att_s+1.0);
|
|
|
attenuation = attenuation - att_s;
|
|
|
attenuation /= 1.0 - att_s;
|
|
|
return clamp(attenuation, 0.0, 1.0);
|
|
|
}
|
|
|
@end
|
|
|
@export clay.util.edge_factor
|
|
|
float edgeFactor(float width)
|
|
|
{
|
|
|
vec3 d = fwidth(v_Barycentric);
|
|
|
vec3 a3 = smoothstep(vec3(0.0), d * width, v_Barycentric);
|
|
|
return min(min(a3.x, a3.y), a3.z);
|
|
|
}
|
|
|
@end
|
|
|
@export clay.util.encode_float
|
|
|
vec4 encodeFloat(const in float depth)
|
|
|
{
|
|
|
const vec4 bitShifts = vec4(256.0*256.0*256.0, 256.0*256.0, 256.0, 1.0);
|
|
|
const vec4 bit_mask = vec4(0.0, 1.0/256.0, 1.0/256.0, 1.0/256.0);
|
|
|
vec4 res = fract(depth * bitShifts);
|
|
|
res -= res.xxyz * bit_mask;
|
|
|
return res;
|
|
|
}
|
|
|
@end
|
|
|
@export clay.util.decode_float
|
|
|
float decodeFloat(const in vec4 color)
|
|
|
{
|
|
|
const vec4 bitShifts = vec4(1.0/(256.0*256.0*256.0), 1.0/(256.0*256.0), 1.0/256.0, 1.0);
|
|
|
return dot(color, bitShifts);
|
|
|
}
|
|
|
@end
|
|
|
@export clay.util.float
|
|
|
@import clay.util.encode_float
|
|
|
@import clay.util.decode_float
|
|
|
@end
|
|
|
@export clay.util.rgbm_decode
|
|
|
vec3 RGBMDecode(vec4 rgbm, float range) {
|
|
|
return range * rgbm.rgb * rgbm.a;
|
|
|
}
|
|
|
@end
|
|
|
@export clay.util.rgbm_encode
|
|
|
vec4 RGBMEncode(vec3 color, float range) {
|
|
|
if (dot(color, color) == 0.0) {
|
|
|
return vec4(0.0);
|
|
|
}
|
|
|
vec4 rgbm;
|
|
|
color /= range;
|
|
|
rgbm.a = clamp(max(max(color.r, color.g), max(color.b, 1e-6)), 0.0, 1.0);
|
|
|
rgbm.a = ceil(rgbm.a * 255.0) / 255.0;
|
|
|
rgbm.rgb = color / rgbm.a;
|
|
|
return rgbm;
|
|
|
}
|
|
|
@end
|
|
|
@export clay.util.rgbm
|
|
|
@import clay.util.rgbm_decode
|
|
|
@import clay.util.rgbm_encode
|
|
|
vec4 decodeHDR(vec4 color)
|
|
|
{
|
|
|
#if defined(RGBM_DECODE) || defined(RGBM)
|
|
|
return vec4(RGBMDecode(color, 51.5), 1.0);
|
|
|
#else
|
|
|
return color;
|
|
|
#endif
|
|
|
}
|
|
|
vec4 encodeHDR(vec4 color)
|
|
|
{
|
|
|
#if defined(RGBM_ENCODE) || defined(RGBM)
|
|
|
return RGBMEncode(color.xyz, 51.5);
|
|
|
#else
|
|
|
return color;
|
|
|
#endif
|
|
|
}
|
|
|
@end
|
|
|
@export clay.util.srgb
|
|
|
vec4 sRGBToLinear(in vec4 value) {
|
|
|
return vec4(mix(pow(value.rgb * 0.9478672986 + vec3(0.0521327014), vec3(2.4)), value.rgb * 0.0773993808, vec3(lessThanEqual(value.rgb, vec3(0.04045)))), value.w);
|
|
|
}
|
|
|
vec4 linearTosRGB(in vec4 value) {
|
|
|
return vec4(mix(pow(value.rgb, vec3(0.41666)) * 1.055 - vec3(0.055), value.rgb * 12.92, vec3(lessThanEqual(value.rgb, vec3(0.0031308)))), value.w);
|
|
|
}
|
|
|
@end
|
|
|
@export clay.chunk.skinning_header
|
|
|
#ifdef SKINNING
|
|
|
attribute vec3 weight : WEIGHT;
|
|
|
attribute vec4 joint : JOINT;
|
|
|
uniform mat4 skinMatrix[JOINT_COUNT] : SKIN_MATRIX;
|
|
|
mat4 getSkinMatrix(float idx) {
|
|
|
return skinMatrix[int(idx)];
|
|
|
}
|
|
|
#endif
|
|
|
@end
|
|
|
@export clay.chunk.skin_matrix
|
|
|
mat4 skinMatrixWS = getSkinMatrix(joint.x) * weight.x;
|
|
|
if (weight.y > 1e-4)
|
|
|
{
|
|
|
skinMatrixWS += getSkinMatrix(joint.y) * weight.y;
|
|
|
}
|
|
|
if (weight.z > 1e-4)
|
|
|
{
|
|
|
skinMatrixWS += getSkinMatrix(joint.z) * weight.z;
|
|
|
}
|
|
|
float weightW = 1.0-weight.x-weight.y-weight.z;
|
|
|
if (weightW > 1e-4)
|
|
|
{
|
|
|
skinMatrixWS += getSkinMatrix(joint.w) * weightW;
|
|
|
}
|
|
|
@end
|
|
|
@export clay.util.parallax_correct
|
|
|
vec3 parallaxCorrect(in vec3 dir, in vec3 pos, in vec3 boxMin, in vec3 boxMax) {
|
|
|
vec3 first = (boxMax - pos) / dir;
|
|
|
vec3 second = (boxMin - pos) / dir;
|
|
|
vec3 further = max(first, second);
|
|
|
float dist = min(further.x, min(further.y, further.z));
|
|
|
vec3 fixedPos = pos + dir * dist;
|
|
|
vec3 boxCenter = (boxMax + boxMin) * 0.5;
|
|
|
return normalize(fixedPos - boxCenter);
|
|
|
}
|
|
|
@end
|
|
|
@export clay.util.clamp_sample
|
|
|
vec4 clampSample(const in sampler2D texture, const in vec2 coord)
|
|
|
{
|
|
|
#ifdef STEREO
|
|
|
float eye = step(0.5, coord.x) * 0.5;
|
|
|
vec2 coordClamped = clamp(coord, vec2(eye, 0.0), vec2(0.5 + eye, 1.0));
|
|
|
#else
|
|
|
vec2 coordClamped = clamp(coord, vec2(0.0), vec2(1.0));
|
|
|
#endif
|
|
|
return texture2D(texture, coordClamped);
|
|
|
}
|
|
|
@end
|
|
|
@export clay.util.ACES
|
|
|
vec3 ACESToneMapping(vec3 color)
|
|
|
{
|
|
|
const float A = 2.51;
|
|
|
const float B = 0.03;
|
|
|
const float C = 2.43;
|
|
|
const float D = 0.59;
|
|
|
const float E = 0.14;
|
|
|
return (color * (A * color + B)) / (color * (C * color + D) + E);
|
|
|
}
|
|
|
@end`},function(Ye,Me,pe){"use strict";Me.a=`
|
|
|
@export ecgl.common.transformUniforms
|
|
|
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
|
|
uniform mat4 worldInverseTranspose : WORLDINVERSETRANSPOSE;
|
|
|
uniform mat4 world : WORLD;
|
|
|
@end
|
|
|
|
|
|
@export ecgl.common.attributes
|
|
|
attribute vec3 position : POSITION;
|
|
|
attribute vec2 texcoord : TEXCOORD_0;
|
|
|
attribute vec3 normal : NORMAL;
|
|
|
@end
|
|
|
|
|
|
@export ecgl.common.uv.header
|
|
|
uniform vec2 uvRepeat : [1.0, 1.0];
|
|
|
uniform vec2 uvOffset : [0.0, 0.0];
|
|
|
uniform vec2 detailUvRepeat : [1.0, 1.0];
|
|
|
uniform vec2 detailUvOffset : [0.0, 0.0];
|
|
|
|
|
|
varying vec2 v_Texcoord;
|
|
|
varying vec2 v_DetailTexcoord;
|
|
|
@end
|
|
|
|
|
|
@export ecgl.common.uv.main
|
|
|
v_Texcoord = texcoord * uvRepeat + uvOffset;
|
|
|
v_DetailTexcoord = texcoord * detailUvRepeat + detailUvOffset;
|
|
|
@end
|
|
|
|
|
|
@export ecgl.common.uv.fragmentHeader
|
|
|
varying vec2 v_Texcoord;
|
|
|
varying vec2 v_DetailTexcoord;
|
|
|
@end
|
|
|
|
|
|
|
|
|
@export ecgl.common.albedo.main
|
|
|
|
|
|
vec4 albedoTexel = vec4(1.0);
|
|
|
#ifdef DIFFUSEMAP_ENABLED
|
|
|
albedoTexel = texture2D(diffuseMap, v_Texcoord);
|
|
|
#ifdef SRGB_DECODE
|
|
|
albedoTexel = sRGBToLinear(albedoTexel);
|
|
|
#endif
|
|
|
#endif
|
|
|
|
|
|
#ifdef DETAILMAP_ENABLED
|
|
|
vec4 detailTexel = texture2D(detailMap, v_DetailTexcoord);
|
|
|
#ifdef SRGB_DECODE
|
|
|
detailTexel = sRGBToLinear(detailTexel);
|
|
|
#endif
|
|
|
albedoTexel.rgb = mix(albedoTexel.rgb, detailTexel.rgb, detailTexel.a);
|
|
|
albedoTexel.a = detailTexel.a + (1.0 - detailTexel.a) * albedoTexel.a;
|
|
|
#endif
|
|
|
|
|
|
@end
|
|
|
|
|
|
@export ecgl.common.wireframe.vertexHeader
|
|
|
|
|
|
#ifdef WIREFRAME_QUAD
|
|
|
attribute vec4 barycentric;
|
|
|
varying vec4 v_Barycentric;
|
|
|
#elif defined(WIREFRAME_TRIANGLE)
|
|
|
attribute vec3 barycentric;
|
|
|
varying vec3 v_Barycentric;
|
|
|
#endif
|
|
|
|
|
|
@end
|
|
|
|
|
|
@export ecgl.common.wireframe.vertexMain
|
|
|
|
|
|
#if defined(WIREFRAME_QUAD) || defined(WIREFRAME_TRIANGLE)
|
|
|
v_Barycentric = barycentric;
|
|
|
#endif
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
@export ecgl.common.wireframe.fragmentHeader
|
|
|
|
|
|
uniform float wireframeLineWidth : 1;
|
|
|
uniform vec4 wireframeLineColor: [0, 0, 0, 0.5];
|
|
|
|
|
|
#ifdef WIREFRAME_QUAD
|
|
|
varying vec4 v_Barycentric;
|
|
|
float edgeFactor () {
|
|
|
vec4 d = fwidth(v_Barycentric);
|
|
|
vec4 a4 = smoothstep(vec4(0.0), d * wireframeLineWidth, v_Barycentric);
|
|
|
return min(min(min(a4.x, a4.y), a4.z), a4.w);
|
|
|
}
|
|
|
#elif defined(WIREFRAME_TRIANGLE)
|
|
|
varying vec3 v_Barycentric;
|
|
|
float edgeFactor () {
|
|
|
vec3 d = fwidth(v_Barycentric);
|
|
|
vec3 a3 = smoothstep(vec3(0.0), d * wireframeLineWidth, v_Barycentric);
|
|
|
return min(min(a3.x, a3.y), a3.z);
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
@export ecgl.common.wireframe.fragmentMain
|
|
|
|
|
|
#if defined(WIREFRAME_QUAD) || defined(WIREFRAME_TRIANGLE)
|
|
|
if (wireframeLineWidth > 0.) {
|
|
|
vec4 lineColor = wireframeLineColor;
|
|
|
#ifdef SRGB_DECODE
|
|
|
lineColor = sRGBToLinear(lineColor);
|
|
|
#endif
|
|
|
|
|
|
gl_FragColor.rgb = mix(gl_FragColor.rgb, lineColor.rgb, (1.0 - edgeFactor()) * lineColor.a);
|
|
|
}
|
|
|
#endif
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@export ecgl.common.bumpMap.header
|
|
|
|
|
|
#ifdef BUMPMAP_ENABLED
|
|
|
uniform sampler2D bumpMap;
|
|
|
uniform float bumpScale : 1.0;
|
|
|
|
|
|
|
|
|
vec3 bumpNormal(vec3 surfPos, vec3 surfNormal, vec3 baseNormal)
|
|
|
{
|
|
|
vec2 dSTdx = dFdx(v_Texcoord);
|
|
|
vec2 dSTdy = dFdy(v_Texcoord);
|
|
|
|
|
|
float Hll = bumpScale * texture2D(bumpMap, v_Texcoord).x;
|
|
|
float dHx = bumpScale * texture2D(bumpMap, v_Texcoord + dSTdx).x - Hll;
|
|
|
float dHy = bumpScale * texture2D(bumpMap, v_Texcoord + dSTdy).x - Hll;
|
|
|
|
|
|
vec3 vSigmaX = dFdx(surfPos);
|
|
|
vec3 vSigmaY = dFdy(surfPos);
|
|
|
vec3 vN = surfNormal;
|
|
|
|
|
|
vec3 R1 = cross(vSigmaY, vN);
|
|
|
vec3 R2 = cross(vN, vSigmaX);
|
|
|
|
|
|
float fDet = dot(vSigmaX, R1);
|
|
|
|
|
|
vec3 vGrad = sign(fDet) * (dHx * R1 + dHy * R2);
|
|
|
return normalize(abs(fDet) * baseNormal - vGrad);
|
|
|
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
@end
|
|
|
|
|
|
@export ecgl.common.normalMap.vertexHeader
|
|
|
|
|
|
#ifdef NORMALMAP_ENABLED
|
|
|
attribute vec4 tangent : TANGENT;
|
|
|
varying vec3 v_Tangent;
|
|
|
varying vec3 v_Bitangent;
|
|
|
#endif
|
|
|
|
|
|
@end
|
|
|
|
|
|
@export ecgl.common.normalMap.vertexMain
|
|
|
|
|
|
#ifdef NORMALMAP_ENABLED
|
|
|
if (dot(tangent, tangent) > 0.0) {
|
|
|
v_Tangent = normalize((worldInverseTranspose * vec4(tangent.xyz, 0.0)).xyz);
|
|
|
v_Bitangent = normalize(cross(v_Normal, v_Tangent) * tangent.w);
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
@export ecgl.common.normalMap.fragmentHeader
|
|
|
|
|
|
#ifdef NORMALMAP_ENABLED
|
|
|
uniform sampler2D normalMap;
|
|
|
varying vec3 v_Tangent;
|
|
|
varying vec3 v_Bitangent;
|
|
|
#endif
|
|
|
|
|
|
@end
|
|
|
|
|
|
@export ecgl.common.normalMap.fragmentMain
|
|
|
#ifdef NORMALMAP_ENABLED
|
|
|
if (dot(v_Tangent, v_Tangent) > 0.0) {
|
|
|
vec3 normalTexel = texture2D(normalMap, v_DetailTexcoord).xyz;
|
|
|
if (dot(normalTexel, normalTexel) > 0.0) { N = normalTexel * 2.0 - 1.0;
|
|
|
mat3 tbn = mat3(v_Tangent, v_Bitangent, v_Normal);
|
|
|
N = normalize(tbn * N);
|
|
|
}
|
|
|
}
|
|
|
#endif
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
@export ecgl.common.vertexAnimation.header
|
|
|
|
|
|
#ifdef VERTEX_ANIMATION
|
|
|
attribute vec3 prevPosition;
|
|
|
attribute vec3 prevNormal;
|
|
|
uniform float percent;
|
|
|
#endif
|
|
|
|
|
|
@end
|
|
|
|
|
|
@export ecgl.common.vertexAnimation.main
|
|
|
|
|
|
#ifdef VERTEX_ANIMATION
|
|
|
vec3 pos = mix(prevPosition, position, percent);
|
|
|
vec3 norm = mix(prevNormal, normal, percent);
|
|
|
#else
|
|
|
vec3 pos = position;
|
|
|
vec3 norm = normal;
|
|
|
#endif
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
@export ecgl.common.ssaoMap.header
|
|
|
#ifdef SSAOMAP_ENABLED
|
|
|
uniform sampler2D ssaoMap;
|
|
|
uniform vec4 viewport : VIEWPORT;
|
|
|
#endif
|
|
|
@end
|
|
|
|
|
|
@export ecgl.common.ssaoMap.main
|
|
|
float ao = 1.0;
|
|
|
#ifdef SSAOMAP_ENABLED
|
|
|
ao = texture2D(ssaoMap, (gl_FragCoord.xy - viewport.xy) / viewport.zw).r;
|
|
|
#endif
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@export ecgl.common.diffuseLayer.header
|
|
|
|
|
|
#if (LAYER_DIFFUSEMAP_COUNT > 0)
|
|
|
uniform float layerDiffuseIntensity[LAYER_DIFFUSEMAP_COUNT];
|
|
|
uniform sampler2D layerDiffuseMap[LAYER_DIFFUSEMAP_COUNT];
|
|
|
#endif
|
|
|
|
|
|
@end
|
|
|
|
|
|
@export ecgl.common.emissiveLayer.header
|
|
|
|
|
|
#if (LAYER_EMISSIVEMAP_COUNT > 0)
|
|
|
uniform float layerEmissionIntensity[LAYER_EMISSIVEMAP_COUNT];
|
|
|
uniform sampler2D layerEmissiveMap[LAYER_EMISSIVEMAP_COUNT];
|
|
|
#endif
|
|
|
|
|
|
@end
|
|
|
|
|
|
@export ecgl.common.layers.header
|
|
|
@import ecgl.common.diffuseLayer.header
|
|
|
@import ecgl.common.emissiveLayer.header
|
|
|
@end
|
|
|
|
|
|
@export ecgl.common.diffuseLayer.main
|
|
|
|
|
|
#if (LAYER_DIFFUSEMAP_COUNT > 0)
|
|
|
for (int _idx_ = 0; _idx_ < LAYER_DIFFUSEMAP_COUNT; _idx_++) {{
|
|
|
float intensity = layerDiffuseIntensity[_idx_];
|
|
|
vec4 texel2 = texture2D(layerDiffuseMap[_idx_], v_Texcoord);
|
|
|
#ifdef SRGB_DECODE
|
|
|
texel2 = sRGBToLinear(texel2);
|
|
|
#endif
|
|
|
albedoTexel.rgb = mix(albedoTexel.rgb, texel2.rgb * intensity, texel2.a);
|
|
|
albedoTexel.a = texel2.a + (1.0 - texel2.a) * albedoTexel.a;
|
|
|
}}
|
|
|
#endif
|
|
|
|
|
|
@end
|
|
|
|
|
|
@export ecgl.common.emissiveLayer.main
|
|
|
|
|
|
#if (LAYER_EMISSIVEMAP_COUNT > 0)
|
|
|
for (int _idx_ = 0; _idx_ < LAYER_EMISSIVEMAP_COUNT; _idx_++)
|
|
|
{{
|
|
|
vec4 texel2 = texture2D(layerEmissiveMap[_idx_], v_Texcoord) * layerEmissionIntensity[_idx_];
|
|
|
#ifdef SRGB_DECODE
|
|
|
texel2 = sRGBToLinear(texel2);
|
|
|
#endif
|
|
|
float intensity = layerEmissionIntensity[_idx_];
|
|
|
gl_FragColor.rgb += texel2.rgb * texel2.a * intensity;
|
|
|
}}
|
|
|
#endif
|
|
|
|
|
|
@end
|
|
|
`},function(Ye,Me,pe){"use strict";Me.a=`@export ecgl.color.vertex
|
|
|
|
|
|
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
|
|
|
|
|
@import ecgl.common.uv.header
|
|
|
|
|
|
attribute vec2 texcoord : TEXCOORD_0;
|
|
|
attribute vec3 position: POSITION;
|
|
|
|
|
|
@import ecgl.common.wireframe.vertexHeader
|
|
|
|
|
|
#ifdef VERTEX_COLOR
|
|
|
attribute vec4 a_Color : COLOR;
|
|
|
varying vec4 v_Color;
|
|
|
#endif
|
|
|
|
|
|
#ifdef VERTEX_ANIMATION
|
|
|
attribute vec3 prevPosition;
|
|
|
uniform float percent : 1.0;
|
|
|
#endif
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
#ifdef VERTEX_ANIMATION
|
|
|
vec3 pos = mix(prevPosition, position, percent);
|
|
|
#else
|
|
|
vec3 pos = position;
|
|
|
#endif
|
|
|
|
|
|
gl_Position = worldViewProjection * vec4(pos, 1.0);
|
|
|
|
|
|
@import ecgl.common.uv.main
|
|
|
|
|
|
#ifdef VERTEX_COLOR
|
|
|
v_Color = a_Color;
|
|
|
#endif
|
|
|
|
|
|
@import ecgl.common.wireframe.vertexMain
|
|
|
|
|
|
}
|
|
|
|
|
|
@end
|
|
|
|
|
|
@export ecgl.color.fragment
|
|
|
|
|
|
#define LAYER_DIFFUSEMAP_COUNT 0
|
|
|
#define LAYER_EMISSIVEMAP_COUNT 0
|
|
|
|
|
|
uniform sampler2D diffuseMap;
|
|
|
uniform sampler2D detailMap;
|
|
|
|
|
|
uniform vec4 color : [1.0, 1.0, 1.0, 1.0];
|
|
|
|
|
|
#ifdef VERTEX_COLOR
|
|
|
varying vec4 v_Color;
|
|
|
#endif
|
|
|
|
|
|
@import ecgl.common.layers.header
|
|
|
|
|
|
@import ecgl.common.uv.fragmentHeader
|
|
|
|
|
|
@import ecgl.common.wireframe.fragmentHeader
|
|
|
|
|
|
@import clay.util.srgb
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
#ifdef SRGB_DECODE
|
|
|
gl_FragColor = sRGBToLinear(color);
|
|
|
#else
|
|
|
gl_FragColor = color;
|
|
|
#endif
|
|
|
|
|
|
#ifdef VERTEX_COLOR
|
|
|
gl_FragColor *= v_Color;
|
|
|
#endif
|
|
|
|
|
|
@import ecgl.common.albedo.main
|
|
|
|
|
|
@import ecgl.common.diffuseLayer.main
|
|
|
|
|
|
gl_FragColor *= albedoTexel;
|
|
|
|
|
|
@import ecgl.common.emissiveLayer.main
|
|
|
|
|
|
@import ecgl.common.wireframe.fragmentMain
|
|
|
|
|
|
}
|
|
|
@end`},function(Ye,Me,pe){"use strict";Me.a=`/**
|
|
|
* http: */
|
|
|
|
|
|
@export ecgl.lambert.vertex
|
|
|
|
|
|
@import ecgl.common.transformUniforms
|
|
|
|
|
|
@import ecgl.common.uv.header
|
|
|
|
|
|
|
|
|
@import ecgl.common.attributes
|
|
|
|
|
|
@import ecgl.common.wireframe.vertexHeader
|
|
|
|
|
|
#ifdef VERTEX_COLOR
|
|
|
attribute vec4 a_Color : COLOR;
|
|
|
varying vec4 v_Color;
|
|
|
#endif
|
|
|
|
|
|
|
|
|
@import ecgl.common.vertexAnimation.header
|
|
|
|
|
|
|
|
|
varying vec3 v_Normal;
|
|
|
varying vec3 v_WorldPosition;
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
@import ecgl.common.uv.main
|
|
|
|
|
|
@import ecgl.common.vertexAnimation.main
|
|
|
|
|
|
|
|
|
gl_Position = worldViewProjection * vec4(pos, 1.0);
|
|
|
|
|
|
v_Normal = normalize((worldInverseTranspose * vec4(norm, 0.0)).xyz);
|
|
|
v_WorldPosition = (world * vec4(pos, 1.0)).xyz;
|
|
|
|
|
|
#ifdef VERTEX_COLOR
|
|
|
v_Color = a_Color;
|
|
|
#endif
|
|
|
|
|
|
@import ecgl.common.wireframe.vertexMain
|
|
|
}
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
@export ecgl.lambert.fragment
|
|
|
|
|
|
#define LAYER_DIFFUSEMAP_COUNT 0
|
|
|
#define LAYER_EMISSIVEMAP_COUNT 0
|
|
|
|
|
|
#define NORMAL_UP_AXIS 1
|
|
|
#define NORMAL_FRONT_AXIS 2
|
|
|
|
|
|
@import ecgl.common.uv.fragmentHeader
|
|
|
|
|
|
varying vec3 v_Normal;
|
|
|
varying vec3 v_WorldPosition;
|
|
|
|
|
|
uniform sampler2D diffuseMap;
|
|
|
uniform sampler2D detailMap;
|
|
|
|
|
|
@import ecgl.common.layers.header
|
|
|
|
|
|
uniform float emissionIntensity: 1.0;
|
|
|
|
|
|
uniform vec4 color : [1.0, 1.0, 1.0, 1.0];
|
|
|
|
|
|
uniform mat4 viewInverse : VIEWINVERSE;
|
|
|
|
|
|
#ifdef AMBIENT_LIGHT_COUNT
|
|
|
@import clay.header.ambient_light
|
|
|
#endif
|
|
|
#ifdef AMBIENT_SH_LIGHT_COUNT
|
|
|
@import clay.header.ambient_sh_light
|
|
|
#endif
|
|
|
|
|
|
#ifdef DIRECTIONAL_LIGHT_COUNT
|
|
|
@import clay.header.directional_light
|
|
|
#endif
|
|
|
|
|
|
#ifdef VERTEX_COLOR
|
|
|
varying vec4 v_Color;
|
|
|
#endif
|
|
|
|
|
|
|
|
|
@import ecgl.common.ssaoMap.header
|
|
|
|
|
|
@import ecgl.common.bumpMap.header
|
|
|
|
|
|
@import clay.util.srgb
|
|
|
|
|
|
@import ecgl.common.wireframe.fragmentHeader
|
|
|
|
|
|
@import clay.plugin.compute_shadow_map
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
#ifdef SRGB_DECODE
|
|
|
gl_FragColor = sRGBToLinear(color);
|
|
|
#else
|
|
|
gl_FragColor = color;
|
|
|
#endif
|
|
|
|
|
|
#ifdef VERTEX_COLOR
|
|
|
#ifdef SRGB_DECODE
|
|
|
gl_FragColor *= sRGBToLinear(v_Color);
|
|
|
#else
|
|
|
gl_FragColor *= v_Color;
|
|
|
#endif
|
|
|
#endif
|
|
|
|
|
|
@import ecgl.common.albedo.main
|
|
|
|
|
|
@import ecgl.common.diffuseLayer.main
|
|
|
|
|
|
gl_FragColor *= albedoTexel;
|
|
|
|
|
|
vec3 N = v_Normal;
|
|
|
#ifdef DOUBLE_SIDED
|
|
|
vec3 eyePos = viewInverse[3].xyz;
|
|
|
vec3 V = normalize(eyePos - v_WorldPosition);
|
|
|
|
|
|
if (dot(N, V) < 0.0) {
|
|
|
N = -N;
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
float ambientFactor = 1.0;
|
|
|
|
|
|
#ifdef BUMPMAP_ENABLED
|
|
|
N = bumpNormal(v_WorldPosition, v_Normal, N);
|
|
|
ambientFactor = dot(v_Normal, N);
|
|
|
#endif
|
|
|
|
|
|
vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]);
|
|
|
|
|
|
vec3 diffuseColor = vec3(0.0, 0.0, 0.0);
|
|
|
|
|
|
@import ecgl.common.ssaoMap.main
|
|
|
|
|
|
#ifdef AMBIENT_LIGHT_COUNT
|
|
|
for(int i = 0; i < AMBIENT_LIGHT_COUNT; i++)
|
|
|
{
|
|
|
diffuseColor += ambientLightColor[i] * ambientFactor * ao;
|
|
|
}
|
|
|
#endif
|
|
|
#ifdef AMBIENT_SH_LIGHT_COUNT
|
|
|
for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++)
|
|
|
{{
|
|
|
diffuseColor += calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_] * ao;
|
|
|
}}
|
|
|
#endif
|
|
|
#ifdef DIRECTIONAL_LIGHT_COUNT
|
|
|
#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)
|
|
|
float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT];
|
|
|
if(shadowEnabled)
|
|
|
{
|
|
|
computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir);
|
|
|
}
|
|
|
#endif
|
|
|
for(int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++)
|
|
|
{
|
|
|
vec3 lightDirection = -directionalLightDirection[i];
|
|
|
vec3 lightColor = directionalLightColor[i];
|
|
|
|
|
|
float shadowContrib = 1.0;
|
|
|
#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)
|
|
|
if (shadowEnabled)
|
|
|
{
|
|
|
shadowContrib = shadowContribsDir[i];
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
float ndl = dot(N, normalize(lightDirection)) * shadowContrib;
|
|
|
|
|
|
diffuseColor += lightColor * clamp(ndl, 0.0, 1.0);
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
gl_FragColor.rgb *= diffuseColor;
|
|
|
|
|
|
@import ecgl.common.emissiveLayer.main
|
|
|
|
|
|
@import ecgl.common.wireframe.fragmentMain
|
|
|
}
|
|
|
|
|
|
@end`},function(Ye,Me,pe){"use strict";Me.a=`@export ecgl.realistic.vertex
|
|
|
|
|
|
@import ecgl.common.transformUniforms
|
|
|
|
|
|
@import ecgl.common.uv.header
|
|
|
|
|
|
@import ecgl.common.attributes
|
|
|
|
|
|
|
|
|
@import ecgl.common.wireframe.vertexHeader
|
|
|
|
|
|
#ifdef VERTEX_COLOR
|
|
|
attribute vec4 a_Color : COLOR;
|
|
|
varying vec4 v_Color;
|
|
|
#endif
|
|
|
|
|
|
#ifdef NORMALMAP_ENABLED
|
|
|
attribute vec4 tangent : TANGENT;
|
|
|
varying vec3 v_Tangent;
|
|
|
varying vec3 v_Bitangent;
|
|
|
#endif
|
|
|
|
|
|
@import ecgl.common.vertexAnimation.header
|
|
|
|
|
|
varying vec3 v_Normal;
|
|
|
varying vec3 v_WorldPosition;
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
|
|
|
@import ecgl.common.uv.main
|
|
|
|
|
|
@import ecgl.common.vertexAnimation.main
|
|
|
|
|
|
gl_Position = worldViewProjection * vec4(pos, 1.0);
|
|
|
|
|
|
v_Normal = normalize((worldInverseTranspose * vec4(norm, 0.0)).xyz);
|
|
|
v_WorldPosition = (world * vec4(pos, 1.0)).xyz;
|
|
|
|
|
|
#ifdef VERTEX_COLOR
|
|
|
v_Color = a_Color;
|
|
|
#endif
|
|
|
|
|
|
#ifdef NORMALMAP_ENABLED
|
|
|
v_Tangent = normalize((worldInverseTranspose * vec4(tangent.xyz, 0.0)).xyz);
|
|
|
v_Bitangent = normalize(cross(v_Normal, v_Tangent) * tangent.w);
|
|
|
#endif
|
|
|
|
|
|
@import ecgl.common.wireframe.vertexMain
|
|
|
|
|
|
}
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
@export ecgl.realistic.fragment
|
|
|
|
|
|
#define LAYER_DIFFUSEMAP_COUNT 0
|
|
|
#define LAYER_EMISSIVEMAP_COUNT 0
|
|
|
#define PI 3.14159265358979
|
|
|
#define ROUGHNESS_CHANEL 0
|
|
|
#define METALNESS_CHANEL 1
|
|
|
|
|
|
#define NORMAL_UP_AXIS 1
|
|
|
#define NORMAL_FRONT_AXIS 2
|
|
|
|
|
|
#ifdef VERTEX_COLOR
|
|
|
varying vec4 v_Color;
|
|
|
#endif
|
|
|
|
|
|
@import ecgl.common.uv.fragmentHeader
|
|
|
|
|
|
varying vec3 v_Normal;
|
|
|
varying vec3 v_WorldPosition;
|
|
|
|
|
|
uniform sampler2D diffuseMap;
|
|
|
|
|
|
uniform sampler2D detailMap;
|
|
|
uniform sampler2D metalnessMap;
|
|
|
uniform sampler2D roughnessMap;
|
|
|
|
|
|
@import ecgl.common.layers.header
|
|
|
|
|
|
uniform float emissionIntensity: 1.0;
|
|
|
|
|
|
uniform vec4 color : [1.0, 1.0, 1.0, 1.0];
|
|
|
|
|
|
uniform float metalness : 0.0;
|
|
|
uniform float roughness : 0.5;
|
|
|
|
|
|
uniform mat4 viewInverse : VIEWINVERSE;
|
|
|
|
|
|
#ifdef AMBIENT_LIGHT_COUNT
|
|
|
@import clay.header.ambient_light
|
|
|
#endif
|
|
|
|
|
|
#ifdef AMBIENT_SH_LIGHT_COUNT
|
|
|
@import clay.header.ambient_sh_light
|
|
|
#endif
|
|
|
|
|
|
#ifdef AMBIENT_CUBEMAP_LIGHT_COUNT
|
|
|
@import clay.header.ambient_cubemap_light
|
|
|
#endif
|
|
|
|
|
|
#ifdef DIRECTIONAL_LIGHT_COUNT
|
|
|
@import clay.header.directional_light
|
|
|
#endif
|
|
|
|
|
|
@import ecgl.common.normalMap.fragmentHeader
|
|
|
|
|
|
@import ecgl.common.ssaoMap.header
|
|
|
|
|
|
@import ecgl.common.bumpMap.header
|
|
|
|
|
|
@import clay.util.srgb
|
|
|
|
|
|
@import clay.util.rgbm
|
|
|
|
|
|
@import ecgl.common.wireframe.fragmentHeader
|
|
|
|
|
|
@import clay.plugin.compute_shadow_map
|
|
|
|
|
|
vec3 F_Schlick(float ndv, vec3 spec) {
|
|
|
return spec + (1.0 - spec) * pow(1.0 - ndv, 5.0);
|
|
|
}
|
|
|
|
|
|
float D_Phong(float g, float ndh) {
|
|
|
float a = pow(8192.0, g);
|
|
|
return (a + 2.0) / 8.0 * pow(ndh, a);
|
|
|
}
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
vec4 albedoColor = color;
|
|
|
|
|
|
vec3 eyePos = viewInverse[3].xyz;
|
|
|
vec3 V = normalize(eyePos - v_WorldPosition);
|
|
|
#ifdef VERTEX_COLOR
|
|
|
#ifdef SRGB_DECODE
|
|
|
albedoColor *= sRGBToLinear(v_Color);
|
|
|
#else
|
|
|
albedoColor *= v_Color;
|
|
|
#endif
|
|
|
#endif
|
|
|
|
|
|
@import ecgl.common.albedo.main
|
|
|
|
|
|
@import ecgl.common.diffuseLayer.main
|
|
|
|
|
|
albedoColor *= albedoTexel;
|
|
|
|
|
|
float m = metalness;
|
|
|
|
|
|
#ifdef METALNESSMAP_ENABLED
|
|
|
float m2 = texture2D(metalnessMap, v_DetailTexcoord)[METALNESS_CHANEL];
|
|
|
m = clamp(m2 + (m - 0.5) * 2.0, 0.0, 1.0);
|
|
|
#endif
|
|
|
|
|
|
vec3 baseColor = albedoColor.rgb;
|
|
|
albedoColor.rgb = baseColor * (1.0 - m);
|
|
|
vec3 specFactor = mix(vec3(0.04), baseColor, m);
|
|
|
|
|
|
float g = 1.0 - roughness;
|
|
|
|
|
|
#ifdef ROUGHNESSMAP_ENABLED
|
|
|
float g2 = 1.0 - texture2D(roughnessMap, v_DetailTexcoord)[ROUGHNESS_CHANEL];
|
|
|
g = clamp(g2 + (g - 0.5) * 2.0, 0.0, 1.0);
|
|
|
#endif
|
|
|
|
|
|
vec3 N = v_Normal;
|
|
|
|
|
|
#ifdef DOUBLE_SIDED
|
|
|
if (dot(N, V) < 0.0) {
|
|
|
N = -N;
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
float ambientFactor = 1.0;
|
|
|
|
|
|
#ifdef BUMPMAP_ENABLED
|
|
|
N = bumpNormal(v_WorldPosition, v_Normal, N);
|
|
|
ambientFactor = dot(v_Normal, N);
|
|
|
#endif
|
|
|
|
|
|
@import ecgl.common.normalMap.fragmentMain
|
|
|
|
|
|
vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]);
|
|
|
|
|
|
vec3 diffuseTerm = vec3(0.0);
|
|
|
vec3 specularTerm = vec3(0.0);
|
|
|
|
|
|
float ndv = clamp(dot(N, V), 0.0, 1.0);
|
|
|
vec3 fresnelTerm = F_Schlick(ndv, specFactor);
|
|
|
|
|
|
@import ecgl.common.ssaoMap.main
|
|
|
|
|
|
#ifdef AMBIENT_LIGHT_COUNT
|
|
|
for(int _idx_ = 0; _idx_ < AMBIENT_LIGHT_COUNT; _idx_++)
|
|
|
{{
|
|
|
diffuseTerm += ambientLightColor[_idx_] * ambientFactor * ao;
|
|
|
}}
|
|
|
#endif
|
|
|
|
|
|
#ifdef AMBIENT_SH_LIGHT_COUNT
|
|
|
for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++)
|
|
|
{{
|
|
|
diffuseTerm += calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_] * ao;
|
|
|
}}
|
|
|
#endif
|
|
|
|
|
|
#ifdef DIRECTIONAL_LIGHT_COUNT
|
|
|
#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)
|
|
|
float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT];
|
|
|
if(shadowEnabled)
|
|
|
{
|
|
|
computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir);
|
|
|
}
|
|
|
#endif
|
|
|
for(int _idx_ = 0; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++)
|
|
|
{{
|
|
|
vec3 L = -directionalLightDirection[_idx_];
|
|
|
vec3 lc = directionalLightColor[_idx_];
|
|
|
|
|
|
vec3 H = normalize(L + V);
|
|
|
float ndl = clamp(dot(N, normalize(L)), 0.0, 1.0);
|
|
|
float ndh = clamp(dot(N, H), 0.0, 1.0);
|
|
|
|
|
|
float shadowContrib = 1.0;
|
|
|
#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)
|
|
|
if (shadowEnabled)
|
|
|
{
|
|
|
shadowContrib = shadowContribsDir[_idx_];
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
vec3 li = lc * ndl * shadowContrib;
|
|
|
|
|
|
diffuseTerm += li;
|
|
|
specularTerm += li * fresnelTerm * D_Phong(g, ndh);
|
|
|
}}
|
|
|
#endif
|
|
|
|
|
|
|
|
|
#ifdef AMBIENT_CUBEMAP_LIGHT_COUNT
|
|
|
vec3 L = reflect(-V, N);
|
|
|
L = vec3(L.x, L[NORMAL_UP_AXIS], L[NORMAL_FRONT_AXIS]);
|
|
|
float rough2 = clamp(1.0 - g, 0.0, 1.0);
|
|
|
float bias2 = rough2 * 5.0;
|
|
|
vec2 brdfParam2 = texture2D(ambientCubemapLightBRDFLookup[0], vec2(rough2, ndv)).xy;
|
|
|
vec3 envWeight2 = specFactor * brdfParam2.x + brdfParam2.y;
|
|
|
vec3 envTexel2;
|
|
|
for(int _idx_ = 0; _idx_ < AMBIENT_CUBEMAP_LIGHT_COUNT; _idx_++)
|
|
|
{{
|
|
|
envTexel2 = RGBMDecode(textureCubeLodEXT(ambientCubemapLightCubemap[_idx_], L, bias2), 51.5);
|
|
|
specularTerm += ambientCubemapLightColor[_idx_] * envTexel2 * envWeight2 * ao;
|
|
|
}}
|
|
|
#endif
|
|
|
|
|
|
gl_FragColor.rgb = albedoColor.rgb * diffuseTerm + specularTerm;
|
|
|
gl_FragColor.a = albedoColor.a;
|
|
|
|
|
|
#ifdef SRGB_ENCODE
|
|
|
gl_FragColor = linearTosRGB(gl_FragColor);
|
|
|
#endif
|
|
|
|
|
|
@import ecgl.common.emissiveLayer.main
|
|
|
|
|
|
@import ecgl.common.wireframe.fragmentMain
|
|
|
}
|
|
|
|
|
|
@end`},function(Ye,Me,pe){"use strict";Me.a=`@export ecgl.hatching.vertex
|
|
|
|
|
|
@import ecgl.realistic.vertex
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
@export ecgl.hatching.fragment
|
|
|
|
|
|
#define NORMAL_UP_AXIS 1
|
|
|
#define NORMAL_FRONT_AXIS 2
|
|
|
|
|
|
@import ecgl.common.uv.fragmentHeader
|
|
|
|
|
|
varying vec3 v_Normal;
|
|
|
varying vec3 v_WorldPosition;
|
|
|
|
|
|
uniform vec4 color : [0.0, 0.0, 0.0, 1.0];
|
|
|
uniform vec4 paperColor : [1.0, 1.0, 1.0, 1.0];
|
|
|
|
|
|
uniform mat4 viewInverse : VIEWINVERSE;
|
|
|
|
|
|
#ifdef AMBIENT_LIGHT_COUNT
|
|
|
@import clay.header.ambient_light
|
|
|
#endif
|
|
|
#ifdef AMBIENT_SH_LIGHT_COUNT
|
|
|
@import clay.header.ambient_sh_light
|
|
|
#endif
|
|
|
|
|
|
#ifdef DIRECTIONAL_LIGHT_COUNT
|
|
|
@import clay.header.directional_light
|
|
|
#endif
|
|
|
|
|
|
#ifdef VERTEX_COLOR
|
|
|
varying vec4 v_Color;
|
|
|
#endif
|
|
|
|
|
|
|
|
|
@import ecgl.common.ssaoMap.header
|
|
|
|
|
|
@import ecgl.common.bumpMap.header
|
|
|
|
|
|
@import clay.util.srgb
|
|
|
|
|
|
@import ecgl.common.wireframe.fragmentHeader
|
|
|
|
|
|
@import clay.plugin.compute_shadow_map
|
|
|
|
|
|
uniform sampler2D hatch1;
|
|
|
uniform sampler2D hatch2;
|
|
|
uniform sampler2D hatch3;
|
|
|
uniform sampler2D hatch4;
|
|
|
uniform sampler2D hatch5;
|
|
|
uniform sampler2D hatch6;
|
|
|
|
|
|
float shade(in float tone) {
|
|
|
vec4 c = vec4(1. ,1., 1., 1.);
|
|
|
float step = 1. / 6.;
|
|
|
vec2 uv = v_DetailTexcoord;
|
|
|
if (tone <= step / 2.0) {
|
|
|
c = mix(vec4(0.), texture2D(hatch6, uv), 12. * tone);
|
|
|
}
|
|
|
else if (tone <= step) {
|
|
|
c = mix(texture2D(hatch6, uv), texture2D(hatch5, uv), 6. * tone);
|
|
|
}
|
|
|
if(tone > step && tone <= 2. * step){
|
|
|
c = mix(texture2D(hatch5, uv), texture2D(hatch4, uv) , 6. * (tone - step));
|
|
|
}
|
|
|
if(tone > 2. * step && tone <= 3. * step){
|
|
|
c = mix(texture2D(hatch4, uv), texture2D(hatch3, uv), 6. * (tone - 2. * step));
|
|
|
}
|
|
|
if(tone > 3. * step && tone <= 4. * step){
|
|
|
c = mix(texture2D(hatch3, uv), texture2D(hatch2, uv), 6. * (tone - 3. * step));
|
|
|
}
|
|
|
if(tone > 4. * step && tone <= 5. * step){
|
|
|
c = mix(texture2D(hatch2, uv), texture2D(hatch1, uv), 6. * (tone - 4. * step));
|
|
|
}
|
|
|
if(tone > 5. * step){
|
|
|
c = mix(texture2D(hatch1, uv), vec4(1.), 6. * (tone - 5. * step));
|
|
|
}
|
|
|
|
|
|
return c.r;
|
|
|
}
|
|
|
|
|
|
const vec3 w = vec3(0.2125, 0.7154, 0.0721);
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
#ifdef SRGB_DECODE
|
|
|
vec4 inkColor = sRGBToLinear(color);
|
|
|
#else
|
|
|
vec4 inkColor = color;
|
|
|
#endif
|
|
|
|
|
|
#ifdef VERTEX_COLOR
|
|
|
#ifdef SRGB_DECODE
|
|
|
inkColor *= sRGBToLinear(v_Color);
|
|
|
#else
|
|
|
inkColor *= v_Color;
|
|
|
#endif
|
|
|
#endif
|
|
|
|
|
|
vec3 N = v_Normal;
|
|
|
#ifdef DOUBLE_SIDED
|
|
|
vec3 eyePos = viewInverse[3].xyz;
|
|
|
vec3 V = normalize(eyePos - v_WorldPosition);
|
|
|
|
|
|
if (dot(N, V) < 0.0) {
|
|
|
N = -N;
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
float tone = 0.0;
|
|
|
|
|
|
float ambientFactor = 1.0;
|
|
|
|
|
|
#ifdef BUMPMAP_ENABLED
|
|
|
N = bumpNormal(v_WorldPosition, v_Normal, N);
|
|
|
ambientFactor = dot(v_Normal, N);
|
|
|
#endif
|
|
|
|
|
|
vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]);
|
|
|
|
|
|
@import ecgl.common.ssaoMap.main
|
|
|
|
|
|
#ifdef AMBIENT_LIGHT_COUNT
|
|
|
for(int i = 0; i < AMBIENT_LIGHT_COUNT; i++)
|
|
|
{
|
|
|
tone += dot(ambientLightColor[i], w) * ambientFactor * ao;
|
|
|
}
|
|
|
#endif
|
|
|
#ifdef AMBIENT_SH_LIGHT_COUNT
|
|
|
for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++)
|
|
|
{{
|
|
|
tone += dot(calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_], w) * ao;
|
|
|
}}
|
|
|
#endif
|
|
|
#ifdef DIRECTIONAL_LIGHT_COUNT
|
|
|
#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)
|
|
|
float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT];
|
|
|
if(shadowEnabled)
|
|
|
{
|
|
|
computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir);
|
|
|
}
|
|
|
#endif
|
|
|
for(int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++)
|
|
|
{
|
|
|
vec3 lightDirection = -directionalLightDirection[i];
|
|
|
float lightTone = dot(directionalLightColor[i], w);
|
|
|
|
|
|
float shadowContrib = 1.0;
|
|
|
#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)
|
|
|
if (shadowEnabled)
|
|
|
{
|
|
|
shadowContrib = shadowContribsDir[i];
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
float ndl = dot(N, normalize(lightDirection)) * shadowContrib;
|
|
|
|
|
|
tone += lightTone * clamp(ndl, 0.0, 1.0);
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
gl_FragColor = mix(inkColor, paperColor, shade(clamp(tone, 0.0, 1.0)));
|
|
|
}
|
|
|
@end
|
|
|
`},function(Ye,Me,pe){"use strict";Me.a=`@export ecgl.sm.depth.vertex
|
|
|
|
|
|
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
|
|
|
|
|
attribute vec3 position : POSITION;
|
|
|
|
|
|
#ifdef VERTEX_ANIMATION
|
|
|
attribute vec3 prevPosition;
|
|
|
uniform float percent : 1.0;
|
|
|
#endif
|
|
|
|
|
|
varying vec4 v_ViewPosition;
|
|
|
|
|
|
void main(){
|
|
|
|
|
|
#ifdef VERTEX_ANIMATION
|
|
|
vec3 pos = mix(prevPosition, position, percent);
|
|
|
#else
|
|
|
vec3 pos = position;
|
|
|
#endif
|
|
|
|
|
|
v_ViewPosition = worldViewProjection * vec4(pos, 1.0);
|
|
|
gl_Position = v_ViewPosition;
|
|
|
|
|
|
}
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
@export ecgl.sm.depth.fragment
|
|
|
|
|
|
@import clay.sm.depth.fragment
|
|
|
|
|
|
@end`},function(Ye,Me,pe){"use strict";var Oe=pe(134),ve=pe(138),ue=pe(139),fe=pe(145),he=pe(0),le=pe.n(he);le.a.registerAction({type:"grid3DChangeCamera",event:"grid3dcamerachanged",update:"series:updateCamera"},function(ae,ie){ie.eachComponent({mainType:"grid3D",query:ae},function(me){me.setView(ae)})}),le.a.registerAction({type:"grid3DShowAxisPointer",event:"grid3dshowaxispointer",update:"grid3D:showAxisPointer"},function(ae,ie){}),le.a.registerAction({type:"grid3DHideAxisPointer",event:"grid3dhideaxispointer",update:"grid3D:hideAxisPointer"},function(ae,ie){})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(135),fe=ve.a.extendComponentModel({type:"cartesian3DAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid3D",index:this.option.gridIndex,id:this.option.gridId})[0]}});ve.a.helper.mixinAxisModelCommonMethods(fe);function he(le,ae){return ae.type||(ae.data?"category":"value")}Object(ue.a)("x",fe,he,{name:"X"}),Object(ue.a)("y",fe,he,{name:"Y"}),Object(ue.a)("z",fe,he,{name:"Z"})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(136),fe=pe(137),he=pe.n(fe),le=["value","category","time","log"];Me.a=function(ae,ie,me,E){ve.a.util.each(le,function(b){ie.extend({type:ae+"Axis3D."+b,__ordinalMeta:null,mergeDefaultAndTheme:function(z,ne){var oe=ne.getTheme();ve.a.util.merge(z,oe.get(b+"Axis3D")),ve.a.util.merge(z,this.getDefaultOption()),z.type=me(ae,z)},optionUpdated:function(){var z=this.option;z.type==="category"&&(this.__ordinalMeta=he.a.createByAxisModel(this))},getCategories:function(){if(this.option.type==="category")return this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:ve.a.util.merge(ve.a.util.clone(ue.a[b+"Axis3D"]),E||{},!0)})}),ie.superClass.registerSubTypeDefaulter(ae+"Axis3D",ve.a.util.curry(me,ae))}},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue={show:!0,grid3DIndex:0,inverse:!1,name:"",nameLocation:"middle",nameTextStyle:{fontSize:16},nameGap:20,axisPointer:{},axisLine:{},axisTick:{},axisLabel:{},splitArea:{}},fe=ve.a.util.merge({boundaryGap:!0,axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"},axisPointer:{label:{show:!1}}},ue),he=ve.a.util.merge({boundaryGap:[0,0],splitNumber:5,axisPointer:{label:{}}},ue),le=ve.a.util.defaults({scale:!0,min:"dataMin",max:"dataMax"},he),ae=ve.a.util.defaults({logBase:10},he);ae.scale=!0,Me.a={categoryAxis3D:fe,valueAxis3D:he,timeAxis3D:le,logAxis3D:ae}},function(Ye,Me,pe){var Oe=pe(12),ve=Oe.createHashMap,ue=Oe.isObject,fe=Oe.map;function he(E){this.categories=E.categories||[],this._needCollect=E.needCollect,this._deduplication=E.deduplication,this._map}he.createByAxisModel=function(E){var b=E.option,z=b.data,ne=z&&fe(z,ie);return new he({categories:ne,needCollect:!ne,deduplication:b.dedplication!==!1})};var le=he.prototype;le.getOrdinal=function(E){return ae(this).get(E)},le.parseAndCollect=function(E){var b,z=this._needCollect;if(typeof E!="string"&&!z)return E;if(z&&!this._deduplication)return b=this.categories.length,this.categories[b]=E,b;var ne=ae(this);return b=ne.get(E),b==null&&(z?(b=this.categories.length,this.categories[b]=E,ne.set(E,b)):b=NaN),b};function ae(E){return E._map||(E._map=ve(E.categories))}function ie(E){return ue(E)&&E.value!=null?E.value:E+""}var me=he;Ye.exports=me},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(38),fe=pe(31),he=pe(32),le=ve.a.extendComponentModel({type:"grid3D",dependencies:["xAxis3D","yAxis3D","zAxis3D"],defaultOption:{show:!0,zlevel:-10,left:0,top:0,width:"100%",height:"100%",environment:"auto",boxWidth:100,boxHeight:100,boxDepth:100,axisPointer:{show:!0,lineStyle:{color:"rgba(0, 0, 0, 0.8)",width:1},label:{show:!0,formatter:null,margin:8,textStyle:{fontSize:14,color:"#fff",backgroundColor:"rgba(0,0,0,0.5)",padding:3,borderRadius:3}}},axisLine:{show:!0,lineStyle:{color:"#333",width:2,type:"solid"}},axisTick:{show:!0,inside:!1,length:3,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,margin:8,textStyle:{fontSize:12}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}},light:{main:{alpha:30,beta:40},ambient:{intensity:.4}},viewControl:{alpha:20,beta:40,autoRotate:!1,distance:200,minDistance:40,maxDistance:400}}});ve.a.util.merge(le.prototype,ue.a),ve.a.util.merge(le.prototype,fe.a),ve.a.util.merge(le.prototype,he.a);var ae=le},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(2),fe=pe(39),he=pe(22),le=pe(3),ae=pe(73),ie=pe(34),me=pe(140),E=pe(142),b=pe(58),z=pe(40),ne=le.a.firstNotNull;ue.a.Shader.import(z.a),["x","y","z"].forEach(function(de){ve.a.extendComponentView({type:de+"Axis3D"})});var oe={x:0,y:2,z:1},se=ve.a.extendComponentView({type:"grid3D",__ecgl__:!0,init:function(de,a){var x=[["y","z","x",-1,"left"],["y","z","x",1,"right"],["x","y","z",-1,"bottom"],["x","y","z",1,"top"],["x","z","y",-1,"far"],["x","z","y",1,"near"]],re=["x","y","z"],ce=new ue.a.Material({shader:ue.a.createShader("ecgl.color"),depthMask:!1,transparent:!0}),ge=new ue.a.Material({shader:ue.a.createShader("ecgl.meshLines3D"),depthMask:!1,transparent:!0});ce.define("fragment","DOUBLE_SIDED"),ce.define("both","VERTEX_COLOR"),this.groupGL=new ue.a.Node,this._control=new fe.a({zr:a.getZr()}),this._control.init(),this._faces=x.map(function(ye){var be=new me.a(ye,ge,ce);return this.groupGL.add(be.rootNode),be},this),this._axes=re.map(function(ye){var be=new E.a(ye,ge);return this.groupGL.add(be.rootNode),be},this);var _e=a.getDevicePixelRatio();this._axisLabelSurface=new ae.a({width:256,height:256,devicePixelRatio:_e}),this._axisLabelSurface.onupdate=function(){a.getZr().refresh()},this._axisPointerLineMesh=new ue.a.Mesh({geometry:new he.a({useNativeLine:!1}),material:ge,castShadow:!1,ignorePicking:!0,renderOrder:3}),this.groupGL.add(this._axisPointerLineMesh),this._axisPointerLabelsSurface=new ae.a({width:128,height:128,devicePixelRatio:_e}),this._axisPointerLabelsMesh=new b.a({ignorePicking:!0,renderOrder:4,castShadow:!1}),this._axisPointerLabelsMesh.material.set("textureAtlas",this._axisPointerLabelsSurface.getTexture()),this.groupGL.add(this._axisPointerLabelsMesh),this._lightRoot=new ue.a.Node,this._sceneHelper=new ie.a,this._sceneHelper.initLight(this._lightRoot)},render:function(de,a,x){this._model=de,this._api=x;var re=de.coordinateSystem;re.viewGL.add(this._lightRoot),de.get("show")?re.viewGL.add(this.groupGL):re.viewGL.remove(this.groupGL);var ce=this._control;ce.setViewGL(re.viewGL);var ge=de.getModel("viewControl");ce.setFromViewControlModel(ge,0),this._axisLabelSurface.clear();var _e=["x","y","z"].reduce(function(ye,be){var Se=re.getAxis(be),Be=Se.model;return ye[be]=ne(Be.get("axisLabel.interval"),de.get("axisLabel.interval")),Se.scale.type==="ordinal"&&(ye[be]==null||ye[be]=="auto")&&(ye[be]=Math.floor(Se.scale.getTicks().length/8)),ye},{});ce.off("update"),de.get("show")&&(this._faces.forEach(function(ye){ye.update(_e,de,a,x)},this),this._axes.forEach(function(ye){ye.update(de,_e,this._axisLabelSurface,x)},this)),ce.on("update",this._onCameraChange.bind(this,de,x),this),this._sceneHelper.setScene(re.viewGL.scene),this._sceneHelper.updateLight(de),re.viewGL.setPostEffect(de.getModel("postEffect"),x),re.viewGL.setTemporalSuperSampling(de.getModel("temporalSuperSampling")),this._initMouseHandler(de)},afterRender:function(de,a,x,re){var ce=re.renderer;this._sceneHelper.updateAmbientCubemap(ce,de,x),this._sceneHelper.updateSkybox(ce,de,x)},showAxisPointer:function(de,a,x,re){this._doShowAxisPointer(),this._updateAxisPointer(re.value)},hideAxisPointer:function(de,a,x,re){this._doHideAxisPointer()},_initMouseHandler:function(de){var a=de.coordinateSystem,x=a.viewGL;de.get("show")&&de.get("axisPointer.show")?x.on("mousemove",this._updateAxisPointerOnMousePosition,this):x.off("mousemove",this._updateAxisPointerOnMousePosition)},_updateAxisPointerOnMousePosition:function(de){if(!de.target){for(var a=this._model,x=a.coordinateSystem,re=x.viewGL,ce=re.castRay(de.offsetX,de.offsetY,new ue.a.Ray),ge,_e=0;_e<this._faces.length;_e++){var ye=this._faces[_e];if(!ye.rootNode.invisible){ye.plane.normal.dot(re.camera.worldTransform.z)<0&&ye.plane.normal.negate();var be=ce.intersectPlane(ye.plane);if(be){var Se=x.getAxis(ye.faceInfo[0]),Be=x.getAxis(ye.faceInfo[1]),Ae=oe[ye.faceInfo[0]],we=oe[ye.faceInfo[1]];Se.contain(be.array[Ae])&&Be.contain(be.array[we])&&(ge=be)}}}if(ge){var Ue=x.pointToData(ge.array,[],!0);this._updateAxisPointer(Ue),this._doShowAxisPointer()}else this._doHideAxisPointer()}},_onCameraChange:function(de,a){de.get("show")&&(this._updateFaceVisibility(),this._updateAxisLinePosition());var x=this._control;a.dispatchAction({type:"grid3DChangeCamera",alpha:x.getAlpha(),beta:x.getBeta(),distance:x.getDistance(),center:x.getCenter(),from:this.uid,grid3DId:de.id})},_updateFaceVisibility:function(){var de=this._control.getCamera(),a=new ue.a.Vector3;de.update();for(var x=0;x<this._faces.length/2;x++){for(var re=[],ce=0;ce<2;ce++){var ge=this._faces[x*2+ce];ge.rootNode.getWorldPosition(a),a.transformMat4(de.viewMatrix),re[ce]=a.z}var _e=re[0]>re[1]?0:1,ye=this._faces[x*2+_e],be=this._faces[x*2+1-_e];ye.rootNode.invisible=!0,be.rootNode.invisible=!1}},_updateAxisLinePosition:function(){var de=this._model.coordinateSystem,a=de.getAxis("x"),x=de.getAxis("y"),re=de.getAxis("z"),ce=re.getExtentMax(),ge=re.getExtentMin(),_e=a.getExtentMin(),ye=a.getExtentMax(),be=x.getExtentMax(),Se=x.getExtentMin(),Be=this._axes[0].rootNode,Ae=this._axes[1].rootNode,we=this._axes[2].rootNode,Ue=this._faces,Pe=Ue[4].rootNode.invisible?Se:be,ze=Ue[2].rootNode.invisible?ce:ge,Ke=Ue[0].rootNode.invisible?_e:ye,Ne=Ue[2].rootNode.invisible?ce:ge,Re=Ue[0].rootNode.invisible?ye:_e,$e=Ue[4].rootNode.invisible?Se:be;Be.rotation.identity(),Ae.rotation.identity(),we.rotation.identity(),Ue[4].rootNode.invisible&&(this._axes[0].flipped=!0,Be.rotation.rotateX(Math.PI)),Ue[0].rootNode.invisible&&(this._axes[1].flipped=!0,Ae.rotation.rotateZ(Math.PI)),Ue[4].rootNode.invisible&&(this._axes[2].flipped=!0,we.rotation.rotateY(Math.PI)),Be.position.set(0,ze,Pe),Ae.position.set(Ke,Ne,0),we.position.set(Re,0,$e),Be.update(),Ae.update(),we.update(),this._updateAxisLabelAlign()},_updateAxisLabelAlign:function(){var de=this._control.getCamera(),a=[new ue.a.Vector4,new ue.a.Vector4],x=new ue.a.Vector4;this.groupGL.getWorldPosition(x),x.w=1,x.transformMat4(de.viewMatrix).transformMat4(de.projectionMatrix),x.x/=x.w,x.y/=x.w,this._axes.forEach(function(re){for(var ce=re.axisLineCoords,ge=re.labelsMesh.geometry,_e=0;_e<a.length;_e++)a[_e].setArray(ce[_e]),a[_e].w=1,a[_e].transformMat4(re.rootNode.worldTransform).transformMat4(de.viewMatrix).transformMat4(de.projectionMatrix),a[_e].x/=a[_e].w,a[_e].y/=a[_e].w;var ye=a[1].x-a[0].x,be=a[1].y-a[0].y,Se=(a[1].x+a[0].x)/2,Be=(a[1].y+a[0].y)/2,Ae,we;Math.abs(be/ye)<.5?(Ae="center",we=Be>x.y?"bottom":"top"):(we="middle",Ae=Se>x.x?"left":"right"),re.setSpriteAlign(Ae,we,this._api)},this)},_doShowAxisPointer:function(){this._axisPointerLineMesh.invisible&&(this._axisPointerLineMesh.invisible=!1,this._axisPointerLabelsMesh.invisible=!1,this._api.getZr().refresh())},_doHideAxisPointer:function(){this._axisPointerLineMesh.invisible||(this._axisPointerLineMesh.invisible=!0,this._axisPointerLabelsMesh.invisible=!0,this._api.getZr().refresh())},_updateAxisPointer:function(de){var a=this._model.coordinateSystem,x=a.dataToPoint(de),re=this._axisPointerLineMesh,ce=re.geometry,ge=this._model.getModel("axisPointer"),_e=this._api.getDevicePixelRatio();ce.convertToDynamicArray(!0);function ye(pt){return le.a.firstNotNull(pt.model.get("axisPointer.show"),ge.get("show"))}function be(pt){var At=pt.model.getModel("axisPointer",ge),gt=At.getModel("lineStyle"),Ft=ue.a.parseColor(gt.get("color")),Ct=ne(gt.get("width"),1),Yt=ne(gt.get("opacity"),1);return Ft[3]*=Yt,{color:Ft,lineWidth:Ct}}for(var Se=0;Se<this._faces.length;Se++){var Be=this._faces[Se];if(!Be.rootNode.invisible){for(var Ae=Be.faceInfo,we=Ae[3]<0?a.getAxis(Ae[2]).getExtentMin():a.getAxis(Ae[2]).getExtentMax(),Ue=oe[Ae[2]],Pe=0;Pe<2;Pe++){var ze=Ae[Pe],Ke=Ae[1-Pe],Ne=a.getAxis(ze),Re=a.getAxis(Ke);if(ye(Ne)){var $e=[0,0,0],nt=[0,0,0],ut=oe[ze],Qe=oe[Ke];$e[ut]=nt[ut]=x[ut],$e[Ue]=nt[Ue]=we,$e[Qe]=Re.getExtentMin(),nt[Qe]=Re.getExtentMax();var rt=be(Ne);ce.addLine($e,nt,rt.color,rt.lineWidth*_e)}}if(ye(a.getAxis(Ae[2]))){var $e=x.slice(),nt=x.slice();nt[Ue]=we;var rt=be(a.getAxis(Ae[2]));ce.addLine($e,nt,rt.color,rt.lineWidth*_e)}}}ce.convertToTypedArray(),this._updateAxisPointerLabelsMesh(de),this._api.getZr().refresh()},_updateAxisPointerLabelsMesh:function(de){var a=this._model,x=this._axisPointerLabelsMesh,re=this._axisPointerLabelsSurface,ce=a.coordinateSystem,ge=a.getModel("axisPointer");x.geometry.convertToDynamicArray(!0),re.clear();var _e={x:"y",y:"x",z:"y"};this._axes.forEach(function(ye,be){var Se=ce.getAxis(ye.dim),Be=Se.model,Ae=Be.getModel("axisPointer",ge),we=Ae.getModel("label"),Ue=Ae.get("lineStyle.color");if(!(!we.get("show")||!Ae.get("show"))){var Pe=de[be],ze=we.get("formatter"),Ke=Se.scale.getLabel(Pe);if(ze!=null)Ke=ze(Ke,de);else if(Se.scale.type==="interval"||Se.scale.type==="log"){var Ne=ve.a.number.getPrecisionSafe(Se.scale.getTicks()[0]);Ke=Pe.toFixed(Ne+2)}var Re=we.getModel("textStyle"),$e=Re.get("color"),nt=new ve.a.graphic.Text;ve.a.graphic.setTextStyle(nt.style,Re,{text:Ke,textFill:$e||Ue,textAlign:"left",textVerticalAlign:"top"});var ut=re.add(nt),Qe=nt.getBoundingRect(),rt=this._api.getDevicePixelRatio(),pt=ye.rootNode.position.toArray(),At=oe[_e[ye.dim]];pt[At]+=(ye.flipped?-1:1)*we.get("margin"),pt[oe[ye.dim]]=Se.dataToCoord(de[be]),x.geometry.addSprite(pt,[Qe.width*rt,Qe.height*rt],ut,ye.textAlign,ye.textVerticalAlign)}},this),re.getZr().refreshImmediately(),x.material.set("uvScale",re.getCoordsScale()),x.geometry.convertToTypedArray()},dispose:function(){this.groupGL.removeAll(),this._control.dispose()}})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(2),fe=pe(3),he=pe(22),le=pe(141),ae=pe(74),ie=fe.a.firstNotNull,me={x:0,y:2,z:1};function E(z,ne,oe,se){var de=[0,0,0],a=se<0?oe.getExtentMin():oe.getExtentMax();de[me[oe.dim]]=a,z.position.setArray(de),z.rotation.identity(),ne.distance=-Math.abs(a),ne.normal.set(0,0,0),oe.dim==="x"?(z.rotation.rotateY(se*Math.PI/2),ne.normal.x=-se):oe.dim==="z"?(z.rotation.rotateX(-se*Math.PI/2),ne.normal.y=-se):(se>0&&z.rotation.rotateY(Math.PI),ne.normal.z=-se)}function b(z,ne,oe){this.rootNode=new ue.a.Node;var se=new ue.a.Mesh({geometry:new he.a({useNativeLine:!1}),material:ne,castShadow:!1,ignorePicking:!0,renderOrder:1}),de=new ue.a.Mesh({geometry:new le.a,material:oe,castShadow:!1,culling:!1,ignorePicking:!0,renderOrder:0});this.rootNode.add(de),this.rootNode.add(se),this.faceInfo=z,this.plane=new ue.a.Plane,this.linesMesh=se,this.quadsMesh=de}b.prototype.update=function(z,ne,oe,se){var de=ne.coordinateSystem,a=[de.getAxis(this.faceInfo[0]),de.getAxis(this.faceInfo[1])],x=this.linesMesh.geometry,re=this.quadsMesh.geometry;x.convertToDynamicArray(!0),re.convertToDynamicArray(!0),this._updateSplitLines(x,a,ne,z,se),this._udpateSplitAreas(re,a,ne,z,se),x.convertToTypedArray(),re.convertToTypedArray();var ce=de.getAxis(this.faceInfo[2]);E(this.rootNode,this.plane,ce,this.faceInfo[3])},b.prototype._updateSplitLines=function(z,ne,oe,se,de){var a=de.getDevicePixelRatio();ne.forEach(function(x,re){var ce=x.model,ge=ne[1-re].getExtent();if(!x.scale.isBlank()){var _e=ce.getModel("splitLine",oe.getModel("splitLine"));if(_e.get("show")){var ye=_e.getModel("lineStyle"),be=ye.get("color"),Se=ie(ye.get("opacity"),1),Be=ie(ye.get("width"),1),Ae=_e.get("interval");(Ae==null||Ae==="auto")&&(Ae=se[x.dim]),be=ve.a.util.isArray(be)?be:[be];for(var we=x.getTicksCoords(),Ue=0,Pe=0;Pe<we.length;Pe++)if(!Object(ae.a)(x,Pe,Ae)){var ze=we[Pe],Ke=ue.a.parseColor(be[Ue%be.length]);Ke[3]*=Se;var Ne=[0,0,0],Re=[0,0,0];Ne[re]=Re[re]=ze,Ne[1-re]=ge[0],Re[1-re]=ge[1],z.addLine(Ne,Re,Ke,Be*a),Ue++}}}})},b.prototype._udpateSplitAreas=function(z,ne,oe,se,de){ne.forEach(function(a,x){var re=a.model,ce=ne[1-x].getExtent();if(!a.scale.isBlank()){var ge=re.getModel("splitArea",oe.getModel("splitArea"));if(ge.get("show")){var _e=ge.getModel("areaStyle"),ye=_e.get("color"),be=ie(_e.get("opacity"),1),Se=ge.get("interval");(Se==null||Se==="auto")&&(Se=se[a.dim]),ye=ve.a.util.isArray(ye)?ye:[ye];for(var Be=a.getTicksCoords(),Ae=0,we=[0,0,0],Ue=[0,0,0],Pe=0;Pe<Be.length;Pe++){var ze=Be[Pe],Ke=[0,0,0],Ne=[0,0,0];if(Ke[x]=Ne[x]=ze,Ke[1-x]=ce[0],Ne[1-x]=ce[1],Pe===0){we=Ke,Ue=Ne;continue}if(!Object(ae.a)(a,Pe,Se)){var Re=ue.a.parseColor(ye[Ae%ye.length]);Re[3]*=be,z.addQuad([we,Ke,Ne,Ue],Re),we=Ke,Ue=Ne,Ae++}}}}})},Me.a=b},function(Ye,Me,pe){"use strict";var Oe=pe(13),ve=pe(0),ue=pe.n(ve),fe=pe(33),he=pe(1),le=pe.n(he),ae=le.a.vec3,ie=Oe.a.extend(function(){return{segmentScale:1,useNativeLine:!0,attributes:{position:new Oe.a.Attribute("position","float",3,"POSITION"),normal:new Oe.a.Attribute("normal","float",3,"NORMAL"),color:new Oe.a.Attribute("color","float",4,"COLOR")}}},{resetOffset:function(){this._vertexOffset=0,this._faceOffset=0},setQuadCount:function(me){var E=this.attributes,b=this.getQuadVertexCount()*me,z=this.getQuadTriangleCount()*me;this.vertexCount!==b&&(E.position.init(b),E.normal.init(b),E.color.init(b)),this.triangleCount!==z&&(this.indices=b>65535?new Uint32Array(z*3):new Uint16Array(z*3))},getQuadVertexCount:function(){return 4},getQuadTriangleCount:function(){return 2},addQuad:function(){var me=ae.create(),E=ae.create(),b=ae.create(),z=[0,3,1,3,2,1];return function(ne,oe){var se=this.attributes.position,de=this.attributes.normal,a=this.attributes.color;ae.sub(me,ne[1],ne[0]),ae.sub(E,ne[2],ne[1]),ae.cross(b,me,E),ae.normalize(b,b);for(var x=0;x<4;x++)se.set(this._vertexOffset+x,ne[x]),a.set(this._vertexOffset+x,oe),de.set(this._vertexOffset+x,b);for(var re=this._faceOffset*3,x=0;x<6;x++)this.indices[re+x]=z[x]+this._vertexOffset;this._vertexOffset+=4,this._faceOffset+=2}}()});ue.a.util.defaults(ie.prototype,fe.a),Me.a=ie},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(2),fe=pe(22),he=pe(3),le=pe(58),ae=pe(74),ie=he.a.firstNotNull,me={x:0,y:2,z:1};function E(z,ne){var oe=new ue.a.Mesh({geometry:new fe.a({useNativeLine:!1}),material:ne,castShadow:!1,ignorePicking:!0,renderOrder:2}),se=new le.a;se.material.depthMask=!1;var de=new ue.a.Node;de.add(oe),de.add(se),this.rootNode=de,this.dim=z,this.linesMesh=oe,this.labelsMesh=se,this.axisLineCoords=null,this.labelElements=[]}var b={x:"y",y:"x",z:"y"};E.prototype.update=function(z,ne,oe,se){var de=z.coordinateSystem,a=de.getAxis(this.dim),x=ne[this.dim],re=this.linesMesh.geometry,ce=this.labelsMesh.geometry;re.convertToDynamicArray(!0),ce.convertToDynamicArray(!0);var ge=a.model,_e=a.getExtent(),gt=se.getDevicePixelRatio(),ye=ge.getModel("axisLine",z.getModel("axisLine")),be=ge.getModel("axisTick",z.getModel("axisTick")),Se=ge.getModel("axisLabel",z.getModel("axisLabel")),Be=ye.get("lineStyle.color");if(ye.get("show")){var Ae=ye.getModel("lineStyle"),we=[0,0,0],Ue=[0,0,0],Pe=me[a.dim];we[Pe]=_e[0],Ue[Pe]=_e[1],this.axisLineCoords=[we,Ue];var ze=ue.a.parseColor(Be),Ke=ie(Ae.get("width"),1),Ne=ie(Ae.get("opacity"),1);ze[3]*=Ne,re.addLine(we,Ue,ze,Ke*gt)}if(be.get("show")){var Re=be.getModel("lineStyle"),$e=ue.a.parseColor(ie(Re.get("color"),Be)),Ke=ie(Re.get("width"),1);$e[3]*=ie(Re.get("opacity"),1);var nt=a.getTicksCoords(),ut=be.get("interval");(ut==null||ut==="auto")&&(ut=x);for(var Qe=be.get("length"),rt=0;rt<nt.length;rt++)if(!Object(ae.a)(a,rt,ut)){var pt=nt[rt],we=[0,0,0],Ue=[0,0,0],Pe=me[a.dim],At=me[b[a.dim]];we[Pe]=Ue[Pe]=pt,Ue[At]=Qe,re.addLine(we,Ue,$e,Ke*gt)}}this.labelElements=[];var gt=se.getDevicePixelRatio();if(Se.get("show")){for(var Ft=a.getLabelsCoords(),Ct=ge.get("data"),ut=x,Yt=Se.get("margin"),zt=ge.getFormattedLabels(),Xe=a.scale.getTicks(),rt=0;rt<Ft.length;rt++)if(!Object(ae.a)(a,rt,ut)){var pt=Ft[rt],Fe=[0,0,0],Pe=me[a.dim],At=me[b[a.dim]];Fe[Pe]=Fe[Pe]=pt,Fe[At]=Yt;var Le=Se;Ct&&Ct[Xe[rt]]&&Ct[Xe[rt]].textStyle&&(Le=new ve.a.Model(Ct[Xe[rt]].textStyle,Se,ge.ecModel));var Ze=ie(Le.get("color"),Be),et=new ve.a.graphic.Text;ve.a.graphic.setTextStyle(et.style,Le,{text:zt[rt],textFill:typeof Ze=="function"?Ze(a.type==="category"?zt[rt]:a.type==="value"?Xe[rt]+"":Xe[rt],rt):Ze,textVerticalAlign:"top",textAlign:"left"});var He=oe.add(et),We=et.getBoundingRect();ce.addSprite(Fe,[We.width*gt,We.height*gt],He),this.labelElements.push(et)}}if(ge.get("name")){var tt=ge.getModel("nameTextStyle"),Fe=[0,0,0],Pe=me[a.dim],At=me[b[a.dim]],at=ie(tt.get("color"),Be),ot=tt.get("borderColor"),Ke=tt.get("borderWidth");Fe[Pe]=Fe[Pe]=(_e[0]+_e[1])/2,Fe[At]=ge.get("nameGap");var et=new ve.a.graphic.Text;ve.a.graphic.setTextStyle(et.style,tt,{text:ge.get("name"),textFill:at,textStroke:ot,lineWidth:Ke});var He=oe.add(et),We=et.getBoundingRect();ce.addSprite(Fe,[We.width*gt,We.height*gt],He),et.__idx=this.labelElements.length,this.nameLabelElement=et}this.labelsMesh.material.set("textureAtlas",oe.getTexture()),this.labelsMesh.material.set("uvScale",oe.getCoordsScale()),re.convertToTypedArray(),ce.convertToTypedArray()},E.prototype.setSpriteAlign=function(z,ne,oe){for(var se=oe.getDevicePixelRatio(),de=this.labelsMesh.geometry,a=0;a<this.labelElements.length;a++){var x=this.labelElements[a],re=x.getBoundingRect();de.setSpriteAlign(a,[re.width*se,re.height*se],z,ne)}var ce=this.nameLabelElement;if(ce){var re=ce.getBoundingRect();de.setSpriteAlign(ce.__idx,[re.width*se,re.height*se],z,ne),de.dirty()}this.textAlign=z,this.textVerticalAlign=ne},Me.a=E},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(13),fe=pe(33),he=[0,1,2,0,2,3],le=ue.a.extend(function(){return{attributes:{position:new ue.a.Attribute("position","float",3,"POSITION"),texcoord:new ue.a.Attribute("texcoord","float",2,"TEXCOORD_0"),offset:new ue.a.Attribute("offset","float",2),color:new ue.a.Attribute("color","float",4,"COLOR")}}},{resetOffset:function(){this._vertexOffset=0,this._faceOffset=0},setSpriteCount:function(ae){this._spriteCount=ae;var ie=ae*4,me=ae*2;this.vertexCount!==ie&&(this.attributes.position.init(ie),this.attributes.offset.init(ie),this.attributes.color.init(ie)),this.triangleCount!==me&&(this.indices=ie>65535?new Uint32Array(me*3):new Uint16Array(me*3))},setSpriteAlign:function(ae,ie,me,E,b){me==null&&(me="left"),E==null&&(E="top");var z,ne,oe,se;switch(b=b||0,me){case"left":z=b,oe=ie[0]+b;break;case"center":case"middle":z=-ie[0]/2,oe=ie[0]/2;break;case"right":z=-ie[0]-b,oe=-b;break}switch(E){case"bottom":ne=b,se=ie[1]+b;break;case"middle":ne=-ie[1]/2,se=ie[1]/2;break;case"top":ne=-ie[1]-b,se=-b;break}var de=ae*4,a=this.attributes.offset;a.set(de,[z,se]),a.set(de+1,[oe,se]),a.set(de+2,[oe,ne]),a.set(de+3,[z,ne])},addSprite:function(ae,ie,me,E,b,z){var ne=this._vertexOffset;this.setSprite(this._vertexOffset/4,ae,ie,me,E,b,z);for(var oe=0;oe<he.length;oe++)this.indices[this._faceOffset*3+oe]=he[oe]+ne;return this._faceOffset+=2,this._vertexOffset+=4,ne/4},setSprite:function(ae,ie,me,E,b,z,ne){for(var oe=ae*4,se=this.attributes,de=0;de<4;de++)se.position.set(oe+de,ie);var a=se.texcoord;a.set(oe,[E[0][0],E[0][1]]),a.set(oe+1,[E[1][0],E[0][1]]),a.set(oe+2,[E[1][0],E[1][1]]),a.set(oe+3,[E[0][0],E[1][1]]),this.setSpriteAlign(ae,me,b,z,ne)}});ve.a.util.defaults(le.prototype,fe.a),Me.a=le},function(Ye,Me,pe){"use strict";Me.a=`@export ecgl.labels.vertex
|
|
|
|
|
|
attribute vec3 position: POSITION;
|
|
|
attribute vec2 texcoord: TEXCOORD_0;
|
|
|
attribute vec2 offset;
|
|
|
#ifdef VERTEX_COLOR
|
|
|
attribute vec4 a_Color : COLOR;
|
|
|
varying vec4 v_Color;
|
|
|
#endif
|
|
|
|
|
|
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
|
|
uniform vec4 viewport : VIEWPORT;
|
|
|
|
|
|
varying vec2 v_Texcoord;
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
vec4 proj = worldViewProjection * vec4(position, 1.0);
|
|
|
|
|
|
vec2 screen = (proj.xy / abs(proj.w) + 1.0) * 0.5 * viewport.zw;
|
|
|
|
|
|
screen += offset;
|
|
|
|
|
|
proj.xy = (screen / viewport.zw - 0.5) * 2.0 * abs(proj.w);
|
|
|
gl_Position = proj;
|
|
|
#ifdef VERTEX_COLOR
|
|
|
v_Color = a_Color;
|
|
|
#endif
|
|
|
v_Texcoord = texcoord;
|
|
|
}
|
|
|
@end
|
|
|
|
|
|
|
|
|
@export ecgl.labels.fragment
|
|
|
|
|
|
uniform vec3 color : [1.0, 1.0, 1.0];
|
|
|
uniform float alpha : 1.0;
|
|
|
uniform sampler2D textureAtlas;
|
|
|
uniform vec2 uvScale: [1.0, 1.0];
|
|
|
|
|
|
#ifdef VERTEX_COLOR
|
|
|
varying vec4 v_Color;
|
|
|
#endif
|
|
|
varying float v_Miter;
|
|
|
|
|
|
varying vec2 v_Texcoord;
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
gl_FragColor = vec4(color, alpha) * texture2D(textureAtlas, v_Texcoord * uvScale);
|
|
|
#ifdef VERTEX_COLOR
|
|
|
gl_FragColor *= v_Color;
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
@end`},function(Ye,Me,pe){"use strict";var Oe=pe(146),ve=pe(148),ue=pe(0),fe=pe.n(ue),he=pe(41),le=pe.n(he),ae=pe(20),ie=pe(3);function me(ne,oe){var se=ne.getBoxLayoutParams(),de=le.a.getLayoutRect(se,{width:oe.getWidth(),height:oe.getHeight()});de.y=oe.getHeight()-de.y-de.height,this.viewGL.setViewport(de.x,de.y,de.width,de.height,oe.getDevicePixelRatio());var a=ne.get("boxWidth"),x=ne.get("boxHeight"),re=ne.get("boxDepth");["x","y","z"].forEach(function(ce){if(!this.getAxis(ce))throw new Error("Grid"+ne.id+" don't have "+ce+"Axis")},this),this.getAxis("x").setExtent(-a/2,a/2),this.getAxis("y").setExtent(re/2,-re/2),this.getAxis("z").setExtent(-x/2,x/2),this.size=[a,x,re]}function E(ne,oe){var se={};function de(a,x){se[a]=se[a]||[1/0,-1/0],se[a][0]=Math.min(x[0],se[a][0]),se[a][1]=Math.max(x[1],se[a][1])}ne.eachSeries(function(a){if(a.coordinateSystem===this){var x=a.getData();["x","y","z"].forEach(function(re){de(re,x.getDataExtent(a.coordDimToDataDim(re)[0],!0))})}},this),["xAxis3D","yAxis3D","zAxis3D"].forEach(function(a){ne.eachComponent(a,function(x){var re=a.charAt(0),ce=x.getReferringComponents("grid3D")[0],ge=ce.coordinateSystem;if(ge===this){var _e=ge.getAxis(re);if(_e){console.warn("Can't have two %s in one grid3D",a);return}var ye=fe.a.helper.createScale(se[re]||[1/0,-1/0],x);_e=new ve.a(re,ye),_e.type=x.get("type");var be=_e.type==="category";_e.onBand=be&&x.get("boundaryGap"),_e.inverse=x.get("inverse"),x.axis=_e,_e.model=x,ge.addAxis(_e)}},this)},this),this.resize(this.model,oe)}var b={dimensions:Oe.a.prototype.dimensions,create:function(ne,oe){var se=[];ne.eachComponent("grid3D",function(x){x.__viewGL=x.__viewGL||new ae.a;var re=new Oe.a;re.model=x,re.viewGL=x.__viewGL,x.coordinateSystem=re,se.push(re),re.resize=me,re.update=E});var de=["xAxis3D","yAxis3D","zAxis3D"];function a(x,re){return de.map(function(ce){var ge=x.getReferringComponents(ce)[0];if(ge==null&&(ge=re.getComponent(ce)),!ge)throw new Error(ce+' "'+ie.a.firstNotNull(x.get(ce+"Index"),x.get(ce+"Id"),0)+'" not found');return ge})}return ne.eachSeries(function(x){if(x.get("coordinateSystem")==="cartesian3D"){var re=x.getReferringComponents("grid3D")[0];if(re==null){var ce=a(x,ne),re=ce[0].getCoordSysModel();ce.forEach(function(ye){var be=ye.getCoordSysModel();if(!be)throw new Error('grid3D "'+ie.a.firstNotNull(ye.get("gridIndex"),ye.get("gridId"),0)+'" not found');if(be!==re)throw new Error("xAxis3D, yAxis3D, zAxis3D must use the same grid")})}var ge=re.coordinateSystem;x.coordinateSystem=ge}}),se}};fe.a.registerCoordinateSystem("grid3D",b);var z=b},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(147),fe=pe.n(ue);function he(le){fe.a.call(this,le),this.size=[0,0,0]}he.prototype={constructor:he,type:"cartesian3D",dimensions:["x","y","z"],model:null,containPoint:function(le){return this.getAxis("x").contain(le[0])&&this.getAxis("y").contain(le[2])&&this.getAxis("z").contain(le[1])},containData:function(le){return this.getAxis("x").containData(le[0])&&this.getAxis("y").containData(le[1])&&this.getAxis("z").containData(le[2])},dataToPoint:function(le,ae,ie){return ae=ae||[],ae[0]=this.getAxis("x").dataToCoord(le[0],ie),ae[2]=this.getAxis("y").dataToCoord(le[1],ie),ae[1]=this.getAxis("z").dataToCoord(le[2],ie),ae},pointToData:function(le,ae,ie){return ae=ae||[],ae[0]=this.getAxis("x").coordToData(le[0],ie),ae[1]=this.getAxis("y").coordToData(le[2],ie),ae[2]=this.getAxis("z").coordToData(le[1],ie),ae}},ve.a.util.inherits(he,fe.a),Me.a=he},function(Ye,Me,pe){var Oe=pe(12);function ve(he){return this._axes[he]}var ue=function(he){this._axes={},this._dimList=[],this.name=he||""};ue.prototype={constructor:ue,type:"cartesian",getAxis:function(he){return this._axes[he]},getAxes:function(){return Oe.map(this._dimList,ve,this)},getAxesByScale:function(he){return he=he.toLowerCase(),Oe.filter(this.getAxes(),function(le){return le.scale.type===he})},addAxis:function(he){var le=he.dim;this._axes[le]=he,this._dimList.push(le)},dataToCoord:function(he){return this._dataCoordConvert(he,"dataToCoord")},coordToData:function(he){return this._dataCoordConvert(he,"coordToData")},_dataCoordConvert:function(he,le){for(var ae=this._dimList,ie=he instanceof Array?[]:{},me=0;me<ae.length;me++){var E=ae[me],b=this._axes[E];ie[E]=b[le](he[E])}return ie}};var fe=ue;Ye.exports=fe},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe);function ue(fe,he,le){ve.a.Axis.call(this,fe,he,le)}ue.prototype={constructor:ue,getExtentMin:function(){var fe=this._extent;return Math.min(fe[0],fe[1])},getExtentMax:function(){var fe=this._extent;return Math.max(fe[0],fe[1])}},ve.a.util.inherits(ue,ve.a.Axis),Me.a=ue},function(Ye,Me,pe){var Oe=pe(12),ve=pe(150),ue=pe(78);function fe(x){return isNaN(x)?"-":(x=(x+"").split("."),x[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(x.length>1?"."+x[1]:""))}function he(x,re){return x=(x||"").toLowerCase().replace(/-(.)/g,function(ce,ge){return ge.toUpperCase()}),re&&x&&(x=x.charAt(0).toUpperCase()+x.slice(1)),x}var le=Oe.normalizeCssArray;function ae(x){return String(x).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}var ie=["a","b","c","d","e","f","g"],me=function(x,re){return"{"+x+(re==null?"":re)+"}"};function E(x,re,ce){Oe.isArray(re)||(re=[re]);var ge=re.length;if(!ge)return"";for(var _e=re[0].$vars||[],ye=0;ye<_e.length;ye++){var be=ie[ye];x=x.replace(me(be),me(be,0))}for(var Se=0;Se<ge;Se++)for(var Be=0;Be<_e.length;Be++){var Ae=re[Se][_e[Be]];x=x.replace(me(ie[Be],Se),ce?ae(Ae):Ae)}return x}function b(x,re,ce){return Oe.each(re,function(ge,_e){x=x.replace("{"+_e+"}",ce?ae(ge):ge)}),x}function z(x,_e){x=Oe.isString(x)?{color:x,extraCssText:_e}:x||{};var ce=x.color,ge=x.type,_e=x.extraCssText;return ce?ge==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+ae(ce)+";"+(_e||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+ae(ce)+";"+(_e||"")+'"></span>':""}var ne=function(x){return x<10?"0"+x:x};function oe(x,re,ce){(x==="week"||x==="month"||x==="quarter"||x==="half-year"||x==="year")&&(x=`MM-dd
|
|
|
yyyy`);var ge=ue.parseDate(re),_e=ce?"UTC":"",ye=ge["get"+_e+"FullYear"](),be=ge["get"+_e+"Month"]()+1,Se=ge["get"+_e+"Date"](),Be=ge["get"+_e+"Hours"](),Ae=ge["get"+_e+"Minutes"](),we=ge["get"+_e+"Seconds"]();return x=x.replace("MM",ne(be)).replace("M",be).replace("yyyy",ye).replace("yy",ye%100).replace("dd",ne(Se)).replace("d",Se).replace("hh",ne(Be)).replace("h",Be).replace("mm",ne(Ae)).replace("m",Ae).replace("ss",ne(we)).replace("s",we),x}function se(x){return x&&x.charAt(0).toUpperCase()+x.substr(1)}var de=ve.truncateText,a=ve.getBoundingRect;Me.addCommas=fe,Me.toCamelCase=he,Me.normalizeCssArray=le,Me.encodeHTML=ae,Me.formatTpl=E,Me.formatTplSimple=b,Me.getTooltipMarker=z,Me.formatTime=oe,Me.capitalFirst=se,Me.truncateText=de,Me.getTextRect=a},function(Ye,Me,pe){var Oe=pe(75),ve=pe(151),ue=pe(12),fe=ue.getContext,he=ue.extend,le=ue.retrieve2,ae=ue.retrieve3,ie={},me=0,E=5e3,b=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,z="12px sans-serif",ne={};function oe(Ke,Ne){ne[Ke]=Ne}function se(Ke,Ne){Ne=Ne||z;var Re=Ke+":"+Ne;if(ie[Re])return ie[Re];for(var $e=(Ke+"").split(`
|
|
|
`),nt=0,ut=0,Qe=$e.length;ut<Qe;ut++)nt=Math.max(Ae($e[ut],Ne).width,nt);return me>E&&(me=0,ie={}),me++,ie[Re]=nt,nt}function de(Ke,Ne,Re,$e,nt,ut,Qe){return ut?x(Ke,Ne,Re,$e,nt,ut,Qe):a(Ke,Ne,Re,$e,nt,Qe)}function a(Ke,Ne,Re,$e,nt,ut){var Qe=we(Ke,Ne,nt,ut),rt=se(Ke,Ne);nt&&(rt+=nt[1]+nt[3]);var pt=Qe.outerHeight,At=re(0,rt,Re),gt=ce(0,pt,$e),Ft=new Oe(At,gt,rt,pt);return Ft.lineHeight=Qe.lineHeight,Ft}function x(Ke,Ne,Re,$e,nt,ut,Qe){var rt=Ue(Ke,{rich:ut,truncate:Qe,font:Ne,textAlign:Re,textPadding:nt}),pt=rt.outerWidth,At=rt.outerHeight,gt=re(0,pt,Re),Ft=ce(0,At,$e);return new Oe(gt,Ft,pt,At)}function re(Ke,Ne,Re){return Re==="right"?Ke-=Ne:Re==="center"&&(Ke-=Ne/2),Ke}function ce(Ke,Ne,Re){return Re==="middle"?Ke-=Ne/2:Re==="bottom"&&(Ke-=Ne),Ke}function ge(Ke,Ne,Re){var $e=Ne.x,nt=Ne.y,ut=Ne.height,Qe=Ne.width,rt=ut/2,pt="left",At="top";switch(Ke){case"left":$e-=Re,nt+=rt,pt="right",At="middle";break;case"right":$e+=Re+Qe,nt+=rt,At="middle";break;case"top":$e+=Qe/2,nt-=Re,pt="center",At="bottom";break;case"bottom":$e+=Qe/2,nt+=ut+Re,pt="center";break;case"inside":$e+=Qe/2,nt+=rt,pt="center",At="middle";break;case"insideLeft":$e+=Re,nt+=rt,At="middle";break;case"insideRight":$e+=Qe-Re,nt+=rt,pt="right",At="middle";break;case"insideTop":$e+=Qe/2,nt+=Re,pt="center";break;case"insideBottom":$e+=Qe/2,nt+=ut-Re,pt="center",At="bottom";break;case"insideTopLeft":$e+=Re,nt+=Re;break;case"insideTopRight":$e+=Qe-Re,nt+=Re,pt="right";break;case"insideBottomLeft":$e+=Re,nt+=ut-Re,At="bottom";break;case"insideBottomRight":$e+=Qe-Re,nt+=ut-Re,pt="right",At="bottom";break}return{x:$e,y:nt,textAlign:pt,textVerticalAlign:At}}function _e(Ke,Ne,Re,$e,nt){if(!Ne)return"";var ut=(Ke+"").split(`
|
|
|
`);nt=ye(Ne,Re,$e,nt);for(var Qe=0,rt=ut.length;Qe<rt;Qe++)ut[Qe]=be(ut[Qe],nt);return ut.join(`
|
|
|
`)}function ye(Ke,Ne,nt,$e){$e=he({},$e),$e.font=Ne;var nt=le(nt,"...");$e.maxIterations=le($e.maxIterations,2);var ut=$e.minChar=le($e.minChar,0);$e.cnCharWidth=se("\u56FD",Ne);var Qe=$e.ascCharWidth=se("a",Ne);$e.placeholder=le($e.placeholder,"");for(var rt=Ke=Math.max(0,Ke-1),pt=0;pt<ut&&rt>=Qe;pt++)rt-=Qe;var At=se(nt);return At>rt&&(nt="",At=0),rt=Ke-At,$e.ellipsis=nt,$e.ellipsisWidth=At,$e.contentWidth=rt,$e.containerWidth=Ke,$e}function be(Ke,Ne){var Re=Ne.containerWidth,$e=Ne.font,nt=Ne.contentWidth;if(!Re)return"";var ut=se(Ke,$e);if(ut<=Re)return Ke;for(var Qe=0;;Qe++){if(ut<=nt||Qe>=Ne.maxIterations){Ke+=Ne.ellipsis;break}var rt=Qe===0?Se(Ke,nt,Ne.ascCharWidth,Ne.cnCharWidth):ut>0?Math.floor(Ke.length*nt/ut):0;Ke=Ke.substr(0,rt),ut=se(Ke,$e)}return Ke===""&&(Ke=Ne.placeholder),Ke}function Se(Ke,Ne,Re,$e){for(var nt=0,ut=0,Qe=Ke.length;ut<Qe&&nt<Ne;ut++){var rt=Ke.charCodeAt(ut);nt+=0<=rt&&rt<=127?Re:$e}return ut}function Be(Ke){return se("\u56FD",Ke)}function Ae(Ke,Ne){return ne.measureText(Ke,Ne)}ne.measureText=function(Ke,Ne){var Re=fe();return Re.font=Ne||z,Re.measureText(Ke)};function we(Ke,Ne,Re,$e){Ke!=null&&(Ke+="");var nt=Be(Ne),ut=Ke?Ke.split(`
|
|
|
`):[],Qe=ut.length*nt,rt=Qe;if(Re&&(rt+=Re[0]+Re[2]),Ke&&$e){var pt=$e.outerHeight,At=$e.outerWidth;if(pt!=null&&rt>pt)Ke="",ut=[];else if(At!=null)for(var gt=ye(At-(Re?Re[1]+Re[3]:0),Ne,$e.ellipsis,{minChar:$e.minChar,placeholder:$e.placeholder}),Ft=0,Ct=ut.length;Ft<Ct;Ft++)ut[Ft]=be(ut[Ft],gt)}return{lines:ut,height:Qe,outerHeight:rt,lineHeight:nt}}function Ue(Ke,Ne){var Re={lines:[],width:0,height:0};if(Ke!=null&&(Ke+=""),!Ke)return Re;for(var $e=b.lastIndex=0,nt;(nt=b.exec(Ke))!=null;){var ut=nt.index;ut>$e&&Pe(Re,Ke.substring($e,ut)),Pe(Re,nt[2],nt[1]),$e=b.lastIndex}$e<Ke.length&&Pe(Re,Ke.substring($e,Ke.length));var Qe=Re.lines,rt=0,pt=0,At=[],gt=Ne.textPadding,Ft=Ne.truncate,Ct=Ft&&Ft.outerWidth,Yt=Ft&&Ft.outerHeight;gt&&(Ct!=null&&(Ct-=gt[1]+gt[3]),Yt!=null&&(Yt-=gt[0]+gt[2]));for(var zt=0;zt<Qe.length;zt++){for(var Xe=Qe[zt],Fe=0,Le=0,Ze=0;Ze<Xe.tokens.length;Ze++){var et=Xe.tokens[Ze],He=et.styleName&&Ne.rich[et.styleName]||{},We=et.textPadding=He.textPadding,tt=et.font=He.font||Ne.font,at=et.textHeight=le(He.textHeight,Be(tt));if(We&&(at+=We[0]+We[2]),et.height=at,et.lineHeight=ae(He.textLineHeight,Ne.textLineHeight,at),et.textAlign=He&&He.textAlign||Ne.textAlign,et.textVerticalAlign=He&&He.textVerticalAlign||"middle",Yt!=null&&rt+et.lineHeight>Yt)return{lines:[],width:0,height:0};et.textWidth=se(et.text,tt);var ot=He.textWidth,ct=ot==null||ot==="auto";if(typeof ot=="string"&&ot.charAt(ot.length-1)==="%")et.percentWidth=ot,At.push(et),ot=0;else{if(ct){ot=et.textWidth;var lt=He.textBackgroundColor,mt=lt&<.image;mt&&(mt=ve.findExistImage(mt),ve.isImageReady(mt)&&(ot=Math.max(ot,mt.width*at/mt.height)))}var Lt=We?We[1]+We[3]:0;ot+=Lt;var ft=Ct!=null?Ct-Le:null;ft!=null&&ft<ot&&(!ct||ft<Lt?(et.text="",et.textWidth=ot=0):(et.text=_e(et.text,ft-Lt,tt,Ft.ellipsis,{minChar:Ft.minChar}),et.textWidth=se(et.text,tt),ot=et.textWidth+Lt))}Le+=et.width=ot,He&&(Fe=Math.max(Fe,et.lineHeight))}Xe.width=Le,Xe.lineHeight=Fe,rt+=Fe,pt=Math.max(pt,Le)}Re.outerWidth=Re.width=le(Ne.textWidth,pt),Re.outerHeight=Re.height=le(Ne.textHeight,rt),gt&&(Re.outerWidth+=gt[1]+gt[3],Re.outerHeight+=gt[0]+gt[2]);for(var zt=0;zt<At.length;zt++){var et=At[zt],St=et.percentWidth;et.width=parseInt(St,10)/100*pt}return Re}function Pe(Ke,Ne,Re){for(var $e=Ne==="",nt=Ne.split(`
|
|
|
`),ut=Ke.lines,Qe=0;Qe<nt.length;Qe++){var rt=nt[Qe],pt={styleName:Re,text:rt,isLineHolder:!rt&&!$e};if(Qe)ut.push({tokens:[pt]});else{var At=(ut[ut.length-1]||(ut[0]={tokens:[]})).tokens,gt=At.length;gt===1&&At[0].isLineHolder?At[0]=pt:(rt||!gt||$e)&&At.push(pt)}}}function ze(Ke){return(Ke.fontSize||Ke.fontFamily)&&[Ke.fontStyle,Ke.fontWeight,(Ke.fontSize||12)+"px",Ke.fontFamily||"sans-serif"].join(" ")||Ke.textFont||Ke.font}Me.DEFAULT_FONT=z,Me.$override=oe,Me.getWidth=se,Me.getBoundingRect=de,Me.adjustTextX=re,Me.adjustTextY=ce,Me.adjustTextPositionOnRect=ge,Me.truncateText=_e,Me.getLineHeight=Be,Me.measureText=Ae,Me.parsePlainText=we,Me.parseRichText=Ue,Me.makeFont=ze},function(Ye,Me,pe){var Oe=pe(53),ve=new Oe(50);function ue(ae){if(typeof ae=="string"){var ie=ve.get(ae);return ie&&ie.image}else return ae}function fe(ae,ie,me,E,b){if(ae)if(typeof ae=="string"){if(ie&&ie.__zrImageSrc===ae||!me)return ie;var z=ve.get(ae),ne={hostEl:me,cb:E,cbPayload:b};return z?(ie=z.image,!le(ie)&&z.pending.push(ne)):(!ie&&(ie=new Image),ie.onload=he,ve.put(ae,ie.__cachedImgObj={image:ie,pending:[ne]}),ie.src=ie.__zrImageSrc=ae),ie}else return ae;else return ie}function he(){var ae=this.__cachedImgObj;this.onload=this.__cachedImgObj=null;for(var ie=0;ie<ae.pending.length;ie++){var me=ae.pending[ie],E=me.cb;E&&E(this,me.cbPayload),me.hostEl.dirty()}ae.pending.length=0}function le(ae){return ae&&ae.width&&ae.height}Me.findExistImage=ue,Me.createOrUpdateImage=fe,Me.isImageReady=le},function(Ye,Me,pe){"use strict";var Oe=pe(8),ve=pe(11),ue=pe(4),fe=pe(15),he=pe(52),le=pe(9),ae=pe(46),ie=pe(7),me=pe(19),E=pe(24),b=pe(72),z=pe(70),ne=pe(71),oe=pe(153),se=pe(17),de=pe(10),a=pe(6),x=pe(5),re=pe(25),ce=pe(36),ge=pe(30),_e=pe(14),ye=pe(79),be=pe(1),Se=pe.n(be),Be=pe(154),Ae=Se.a.mat4,we=Se.a.vec3,Ue=["px","nx","py","ny","pz","nz"];ie.a.import(Be.a);var Pe=Oe.a.extend(function(){return{softShadow:Pe.PCF,shadowBlur:1,lightFrustumBias:"auto",kernelPCF:new Float32Array([1,0,1,1,-1,1,0,1,-1,0,-1,-1,1,-1,0,-1]),precision:"mediump",_lastRenderNotCastShadow:!1,_frameBuffer:new de.a,_textures:{},_shadowMapNumber:{POINT_LIGHT:0,DIRECTIONAL_LIGHT:0,SPOT_LIGHT:0},_depthMaterials:{},_distanceMaterials:{},_opaqueCasters:[],_receivers:[],_lightsCastShadow:[],_lightCameras:{},_lightMaterials:{},_texturePool:new ye.a}},function(){this._gaussianPassH=new _e.a({fragment:ie.a.source("clay.compositor.gaussian_blur")}),this._gaussianPassV=new _e.a({fragment:ie.a.source("clay.compositor.gaussian_blur")}),this._gaussianPassH.setUniform("blurSize",this.shadowBlur),this._gaussianPassH.setUniform("blurDir",0),this._gaussianPassV.setUniform("blurSize",this.shadowBlur),this._gaussianPassV.setUniform("blurDir",1),this._outputDepthPass=new _e.a({fragment:ie.a.source("clay.sm.debug_depth")})},{render:function(ze,Ke,Ne,Re){Ne||(Ne=Ke.getMainCamera()),this.trigger("beforerender",this,ze,Ke,Ne),this._renderShadowPass(ze,Ke,Ne,Re),this.trigger("afterrender",this,ze,Ke,Ne)},renderDebug:function(ze,Ke){ze.saveClear();var Ne=ze.viewport,Re=0,$e=0,nt=Ke||Ne.width/4,ut=nt;this.softShadow===Pe.VSM?this._outputDepthPass.material.define("fragment","USE_VSM"):this._outputDepthPass.material.undefine("fragment","USE_VSM");for(var Qe in this._textures){var rt=this._textures[Qe];ze.setViewport(Re,$e,nt*rt.width/rt.height,ut),this._outputDepthPass.setUniform("depthMap",rt),this._outputDepthPass.render(ze),Re+=nt*rt.width/rt.height}ze.setViewport(Ne),ze.restoreClear()},_updateCasterAndReceiver:function(ze,Ke){if(Ke.castShadow&&this._opaqueCasters.push(Ke),Ke.receiveShadow?(this._receivers.push(Ke),Ke.material.set("shadowEnabled",1),Ke.material.set("pcfKernel",this.kernelPCF)):Ke.material.set("shadowEnabled",0),!Ke.material.shader&&Ke.material.updateShader&&Ke.material.updateShader(ze),this.softShadow===Pe.VSM)Ke.material.define("fragment","USE_VSM"),Ke.material.undefine("fragment","PCF_KERNEL_SIZE");else{Ke.material.undefine("fragment","USE_VSM");var Ne=this.kernelPCF;Ne&&Ne.length?Ke.material.define("fragment","PCF_KERNEL_SIZE",Ne.length/2):Ke.material.undefine("fragment","PCF_KERNEL_SIZE")}},_update:function(ze,Ke){for(var Ne=0;Ne<Ke.opaqueList.length;Ne++)this._updateCasterAndReceiver(ze,Ke.opaqueList[Ne]);for(var Ne=0;Ne<Ke.transparentList.length;Ne++)this._updateCasterAndReceiver(ze,Ke.transparentList[Ne]);for(var Ne=0;Ne<Ke.lights.length;Ne++){var Re=Ke.lights[Ne];Re.castShadow&&this._lightsCastShadow.push(Re)}},_renderShadowPass:function(ze,Ke,Ne,Re){for(var $e in this._shadowMapNumber)this._shadowMapNumber[$e]=0;this._lightsCastShadow.length=0,this._opaqueCasters.length=0,this._receivers.length=0;var nt=ze.gl;if(Re||Ke.update(),Ne&&Ne.update(),this._update(ze,Ke),!this._lightsCastShadow.length&&this._lastRenderNotCastShadow)return;this._lastRenderNotCastShadow=this._lightsCastShadow===0,nt.enable(nt.DEPTH_TEST),nt.depthMask(!0),nt.disable(nt.BLEND),nt.clearColor(1,1,1,1);for(var ut=[],Qe=[],rt=[],pt=[],At=[],gt=[],Ft,Ct=0;Ct<this._lightsCastShadow.length;Ct++){var Yt=this._lightsCastShadow[Ct];if(Yt instanceof z.a){if(Ft){console.warn("Only one direectional light supported with shadow cascade");continue}if(Yt.shadowCascade>4){console.warn("Support at most 4 cascade");continue}Yt.shadowCascade>1&&(Ft=Yt.shadowCascade),this.renderDirectionalLightShadow(ze,Ke,Ne,Yt,this._opaqueCasters,At,pt,rt)}else Yt instanceof b.a?this.renderSpotLightShadow(ze,Ke,Yt,this._opaqueCasters,Qe,ut):Yt instanceof ne.a&&this.renderPointLightShadow(ze,Ke,Yt,this._opaqueCasters,gt);this._shadowMapNumber[Yt.type]++}for(var zt in this._shadowMapNumber)for(var Xe=this._shadowMapNumber[zt],Fe=zt+"_SHADOWMAP_COUNT",Ct=0;Ct<this._receivers.length;Ct++){var Le=this._receivers[Ct],Ze=Le.material;Ze.fragmentDefines[Fe]!==Xe&&(Xe>0?Ze.define("fragment",Fe,Xe):Ze.isDefined("fragment",Fe)&&Ze.undefine("fragment",Fe))}for(var Ct=0;Ct<this._receivers.length;Ct++){var Le=this._receivers[Ct],Ze=Le.material;Ft?Ze.define("fragment","SHADOW_CASCADE",Ft.shadowCascade):Ze.undefine("fragment","SHADOW_CASCADE")}var et=Ke.shadowUniforms;function He(ct){return ct.height}if(rt.length>0){var We=rt.map(He);if(et.directionalLightShadowMaps={value:rt,type:"tv"},et.directionalLightMatrices={value:pt,type:"m4v"},et.directionalLightShadowMapSizes={value:We,type:"1fv"},Ft){var tt=At.slice(),at=At.slice();tt.pop(),at.shift(),tt.reverse(),at.reverse(),pt.reverse(),et.shadowCascadeClipsNear={value:tt,type:"1fv"},et.shadowCascadeClipsFar={value:at,type:"1fv"}}}if(ut.length>0){var ot=ut.map(He),et=Ke.shadowUniforms;et.spotLightShadowMaps={value:ut,type:"tv"},et.spotLightMatrices={value:Qe,type:"m4v"},et.spotLightShadowMapSizes={value:ot,type:"1fv"}}gt.length>0&&(et.pointLightShadowMaps={value:gt,type:"tv"})},renderDirectionalLightShadow:function(){var ze=new he.a,Ke=new le.a,Ne=new fe.a,Re=new le.a,$e=new le.a,nt=new le.a,ut=new le.a;return function(Qe,rt,pt,At,gt,Ft,Ct,Yt){var zt=this._getDepthMaterial(At),Xe={getMaterial:function(Ut){return Ut.shadowDepthMaterial||zt},sortCompare:ae.a.opaqueSortCompare};if(!rt.viewBoundingBoxLastFrame.isFinite()){var Fe=rt.getBoundingBox();rt.viewBoundingBoxLastFrame.copy(Fe).applyTransform(pt.viewMatrix)}var Le=Math.min(-rt.viewBoundingBoxLastFrame.min.z,pt.far),Ze=Math.max(-rt.viewBoundingBoxLastFrame.max.z,pt.near),et=this._getDirectionalLightCamera(At,rt,pt),He=nt.array;ut.copy(et.projectionMatrix),Ae.invert($e.array,et.worldTransform.array),Ae.multiply($e.array,$e.array,pt.worldTransform.array),Ae.multiply(He,ut.array,$e.array);for(var We=[],tt=pt instanceof ce.a,at=(pt.near+pt.far)/(pt.near-pt.far),ot=2*pt.near*pt.far/(pt.near-pt.far),ct=0;ct<=At.shadowCascade;ct++){var lt=Ze*Math.pow(Le/Ze,ct/At.shadowCascade),mt=Ze+(Le-Ze)*ct/At.shadowCascade,Lt=lt*At.cascadeSplitLogFactor+mt*(1-At.cascadeSplitLogFactor);We.push(Lt),Ft.push(-(-Lt*at+ot)/-Lt)}var ft=this._getTexture(At,At.shadowCascade);Yt.push(ft);var St=Qe.viewport,nn=Qe.gl;this._frameBuffer.attach(ft),this._frameBuffer.bind(Qe),nn.clear(nn.COLOR_BUFFER_BIT|nn.DEPTH_BUFFER_BIT);for(var ct=0;ct<At.shadowCascade;ct++){var on=We[ct],yn=We[ct+1];tt?Ae.perspective(Ke.array,pt.fov/180*Math.PI,pt.aspect,on,yn):Ae.ortho(Ke.array,pt.left,pt.right,pt.bottom,pt.top,on,yn),ze.setFromProjection(Ke),ze.getTransformedBoundingBox(Ne,$e),Ne.applyProjection(ut);var xn=Ne.min.array,an=Ne.max.array;xn[0]=Math.max(xn[0],-1),xn[1]=Math.max(xn[1],-1),an[0]=Math.min(an[0],1),an[1]=Math.min(an[1],1),Re.ortho(xn[0],an[0],xn[1],an[1],1,-1),et.projectionMatrix.multiplyLeft(Re);var An=At.shadowResolution||512;Qe.setViewport((At.shadowCascade-ct-1)*An,0,An,An,1),Qe.renderPass(gt,et,Xe),this.softShadow===Pe.VSM&&this._gaussianFilter(Qe,ft,ft.width);var Jt=new le.a;Jt.copy(et.viewMatrix).multiplyLeft(et.projectionMatrix),Ct.push(Jt.array),et.projectionMatrix.copy(ut)}this._frameBuffer.unbind(Qe),Qe.setViewport(St)}}(),renderSpotLightShadow:function(ze,Ke,Ne,Re,$e,nt){var ut=this._getTexture(Ne),Qe=this._getSpotLightCamera(Ne),rt=ze.gl;this._frameBuffer.attach(ut),this._frameBuffer.bind(ze),rt.clear(rt.COLOR_BUFFER_BIT|rt.DEPTH_BUFFER_BIT);var pt=this._getDepthMaterial(Ne),At={getMaterial:function(Ft){return Ft.shadowDepthMaterial||pt},sortCompare:ae.a.opaqueSortCompare};ze.renderPass(ze.cullRenderList(Re,null,Qe),Qe,At),this._frameBuffer.unbind(ze),this.softShadow===Pe.VSM&&this._gaussianFilter(ze,ut,ut.width);var gt=new le.a;gt.copy(Qe.worldTransform).invert().multiplyLeft(Qe.projectionMatrix),nt.push(ut),$e.push(gt.array)},renderPointLightShadow:function(ze,Ke,Ne,Re,$e){var nt=this._getTexture(Ne),ut=ze.gl;$e.push(nt);for(var Qe=this._getDepthMaterial(Ne),rt={getMaterial:function(Ft){return Ft.shadowDepthMaterial||Qe},sortCompare:ae.a.opaqueSortCompare},pt=0;pt<6;pt++){var At=Ue[pt],gt=this._getPointLightCamera(Ne,At);this._frameBuffer.attach(nt,ut.COLOR_ATTACHMENT0,ut.TEXTURE_CUBE_MAP_POSITIVE_X+pt),this._frameBuffer.bind(ze),ut.clear(ut.COLOR_BUFFER_BIT|ut.DEPTH_BUFFER_BIT),ze.renderPass(ze.cullRenderList(Re,null,gt),gt,rt)}this._frameBuffer.unbind(ze)},_getDepthMaterial:function(ze){var Ke=this._lightMaterials[ze.__uid__],Ne=ze instanceof ne.a;if(!Ke){var Re=Ne?"clay.sm.distance.":"clay.sm.depth.";Ke=new se.a({precision:this.precision,shader:new ie.a(ie.a.source(Re+"vertex"),ie.a.source(Re+"fragment"))}),this._lightMaterials[ze.__uid__]=Ke}return ze.shadowSlopeScale!=null&&Ke.setUniform("slopeScale",ze.shadowSlopeScale),ze.shadowBias!=null&&Ke.setUniform("shadowBias",ze.shadowBias),this.softShadow===Pe.VSM?Ke.define("fragment","USE_VSM"):Ke.undefine("fragment","USE_VSM"),Ne&&(Ke.set("lightPosition",ze.getWorldPosition().array),Ke.set("range",ze.range)),Ke},_gaussianFilter:function(ze,Ke,Ne){var Re={width:Ne,height:Ne,type:a.a.FLOAT},$e=this._texturePool.get(Re);this._frameBuffer.attach($e),this._frameBuffer.bind(ze),this._gaussianPassH.setUniform("texture",Ke),this._gaussianPassH.setUniform("textureWidth",Ne),this._gaussianPassH.render(ze),this._frameBuffer.attach(Ke),this._gaussianPassV.setUniform("texture",$e),this._gaussianPassV.setUniform("textureHeight",Ne),this._gaussianPassV.render(ze),this._frameBuffer.unbind(ze),this._texturePool.put($e)},_getTexture:function(ze,Ke){var Ne=ze.__uid__,Re=this._textures[Ne],$e=ze.shadowResolution||512;return Ke=Ke||1,Re||(ze instanceof ne.a?Re=new re.a:Re=new x.a,Re.width=$e*Ke,Re.height=$e,this.softShadow===Pe.VSM?(Re.type=a.a.FLOAT,Re.anisotropic=4):(Re.minFilter=ve.a.NEAREST,Re.magFilter=ve.a.NEAREST,Re.useMipmap=!1),this._textures[Ne]=Re),Re},_getPointLightCamera:function(ze,Ke){this._lightCameras.point||(this._lightCameras.point={px:new ce.a,nx:new ce.a,py:new ce.a,ny:new ce.a,pz:new ce.a,nz:new ce.a});var Ne=this._lightCameras.point[Ke];switch(Ne.far=ze.range,Ne.fov=90,Ne.position.set(0,0,0),Ke){case"px":Ne.lookAt(ue.a.POSITIVE_X,ue.a.NEGATIVE_Y);break;case"nx":Ne.lookAt(ue.a.NEGATIVE_X,ue.a.NEGATIVE_Y);break;case"py":Ne.lookAt(ue.a.POSITIVE_Y,ue.a.POSITIVE_Z);break;case"ny":Ne.lookAt(ue.a.NEGATIVE_Y,ue.a.NEGATIVE_Z);break;case"pz":Ne.lookAt(ue.a.POSITIVE_Z,ue.a.NEGATIVE_Y);break;case"nz":Ne.lookAt(ue.a.NEGATIVE_Z,ue.a.NEGATIVE_Y);break}return ze.getWorldPosition(Ne.position),Ne.update(),Ne},_getDirectionalLightCamera:function(){var ze=new le.a,Ke=new fe.a,Ne=new fe.a;return function(Re,$e,nt){this._lightCameras.directional||(this._lightCameras.directional=new ge.a);var ut=this._lightCameras.directional;Ke.copy($e.viewBoundingBoxLastFrame),Ke.intersection(nt.frustum.boundingBox),ut.position.copy(Ke.min).add(Ke.max).scale(.5).transformMat4(nt.worldTransform),ut.rotation.copy(Re.rotation),ut.scale.copy(Re.scale),ut.updateWorldTransform(),le.a.invert(ze,ut.worldTransform),le.a.multiply(ze,ze,nt.worldTransform),Ne.copy(Ke).applyTransform(ze);var Qe=Ne.min.array,rt=Ne.max.array;return ut.position.set((Qe[0]+rt[0])/2,(Qe[1]+rt[1])/2,rt[2]).transformMat4(ut.worldTransform),ut.near=0,ut.far=-Qe[2]+rt[2],isNaN(this.lightFrustumBias)?ut.far*=4:ut.far+=this.lightFrustumBias,ut.left=Qe[0],ut.right=rt[0],ut.top=rt[1],ut.bottom=Qe[1],ut.update(!0),ut}}(),_getSpotLightCamera:function(ze){this._lightCameras.spot||(this._lightCameras.spot=new ce.a);var Ke=this._lightCameras.spot;return Ke.fov=ze.penumbraAngle*2,Ke.far=ze.range,Ke.worldTransform.copy(ze.worldTransform),Ke.updateProjectionMatrix(),Ae.invert(Ke.viewMatrix.array,Ke.worldTransform.array),Ke},dispose:function(ze){var Ke=ze.gl||ze;this._frameBuffer&&this._frameBuffer.dispose(Ke);for(var Ne in this._textures)this._textures[Ne].dispose(Ke);this._texturePool.clear(ze.gl),this._depthMaterials={},this._distanceMaterials={},this._textures={},this._lightCameras={},this._shadowMapNumber={POINT_LIGHT:0,DIRECTIONAL_LIGHT:0,SPOT_LIGHT:0},this._meshMaterials={};for(var Re=0;Re<this._receivers.length;Re++){var $e=this._receivers[Re];if($e.material&&$e.material.shader){var nt=$e.material,ut=nt.shader;ut.undefine("fragment","POINT_LIGHT_SHADOW_COUNT"),ut.undefine("fragment","DIRECTIONAL_LIGHT_SHADOW_COUNT"),ut.undefine("fragment","AMBIENT_LIGHT_SHADOW_COUNT"),nt.set("shadowEnabled",0)}}this._opaqueCasters=[],this._receivers=[],this._lightsCastShadow=[]}});Pe.VSM=1,Pe.PCF=2,Me.a=Pe},function(Ye,Me,pe){"use strict";var Oe=pe(7),ve={};function ue(){this._pool={}}ue.prototype.get=function(ae){var ie=ae;if(this._pool[ie])return this._pool[ie];var me=ve[ae];if(!me){console.error('Shader "'+ae+'" is not in the library');return}var E=new Oe.a(me.vertex,me.fragment);return this._pool[ie]=E,E},ue.prototype.clear=function(){this._pool={}};function fe(ae,ie,me){ve[ae]={vertex:ie,fragment:me}}var he=new ue,le={createLibrary:function(){return new ue},get:function(){return he.get.apply(he,arguments)},template:fe,clear:function(){return he.clear()}}},function(Ye,Me,pe){"use strict";Me.a=`@export clay.sm.depth.vertex
|
|
|
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
|
|
attribute vec3 position : POSITION;
|
|
|
#ifdef SHADOW_TRANSPARENT
|
|
|
attribute vec2 texcoord : TEXCOORD_0;
|
|
|
#endif
|
|
|
@import clay.chunk.skinning_header
|
|
|
varying vec4 v_ViewPosition;
|
|
|
#ifdef SHADOW_TRANSPARENT
|
|
|
varying vec2 v_Texcoord;
|
|
|
#endif
|
|
|
void main(){
|
|
|
vec3 skinnedPosition = position;
|
|
|
#ifdef SKINNING
|
|
|
@import clay.chunk.skin_matrix
|
|
|
skinnedPosition = (skinMatrixWS * vec4(position, 1.0)).xyz;
|
|
|
#endif
|
|
|
v_ViewPosition = worldViewProjection * vec4(skinnedPosition, 1.0);
|
|
|
gl_Position = v_ViewPosition;
|
|
|
#ifdef SHADOW_TRANSPARENT
|
|
|
v_Texcoord = texcoord;
|
|
|
#endif
|
|
|
}
|
|
|
@end
|
|
|
@export clay.sm.depth.fragment
|
|
|
varying vec4 v_ViewPosition;
|
|
|
#ifdef SHADOW_TRANSPARENT
|
|
|
varying vec2 v_Texcoord;
|
|
|
#endif
|
|
|
uniform float bias : 0.001;
|
|
|
uniform float slopeScale : 1.0;
|
|
|
#ifdef SHADOW_TRANSPARENT
|
|
|
uniform sampler2D transparentMap;
|
|
|
#endif
|
|
|
@import clay.util.encode_float
|
|
|
void main(){
|
|
|
float depth = v_ViewPosition.z / v_ViewPosition.w;
|
|
|
#ifdef USE_VSM
|
|
|
depth = depth * 0.5 + 0.5;
|
|
|
float moment1 = depth;
|
|
|
float moment2 = depth * depth;
|
|
|
float dx = dFdx(depth);
|
|
|
float dy = dFdy(depth);
|
|
|
moment2 += 0.25*(dx*dx+dy*dy);
|
|
|
gl_FragColor = vec4(moment1, moment2, 0.0, 1.0);
|
|
|
#else
|
|
|
float dx = dFdx(depth);
|
|
|
float dy = dFdy(depth);
|
|
|
depth += sqrt(dx*dx + dy*dy) * slopeScale + bias;
|
|
|
#ifdef SHADOW_TRANSPARENT
|
|
|
if (texture2D(transparentMap, v_Texcoord).a <= 0.1) {
|
|
|
gl_FragColor = encodeFloat(0.9999);
|
|
|
return;
|
|
|
}
|
|
|
#endif
|
|
|
gl_FragColor = encodeFloat(depth * 0.5 + 0.5);
|
|
|
#endif
|
|
|
}
|
|
|
@end
|
|
|
@export clay.sm.debug_depth
|
|
|
uniform sampler2D depthMap;
|
|
|
varying vec2 v_Texcoord;
|
|
|
@import clay.util.decode_float
|
|
|
void main() {
|
|
|
vec4 tex = texture2D(depthMap, v_Texcoord);
|
|
|
#ifdef USE_VSM
|
|
|
gl_FragColor = vec4(tex.rgb, 1.0);
|
|
|
#else
|
|
|
float depth = decodeFloat(tex);
|
|
|
gl_FragColor = vec4(depth, depth, depth, 1.0);
|
|
|
#endif
|
|
|
}
|
|
|
@end
|
|
|
@export clay.sm.distance.vertex
|
|
|
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
|
|
uniform mat4 world : WORLD;
|
|
|
attribute vec3 position : POSITION;
|
|
|
@import clay.chunk.skinning_header
|
|
|
varying vec3 v_WorldPosition;
|
|
|
void main (){
|
|
|
vec3 skinnedPosition = position;
|
|
|
#ifdef SKINNING
|
|
|
@import clay.chunk.skin_matrix
|
|
|
skinnedPosition = (skinMatrixWS * vec4(position, 1.0)).xyz;
|
|
|
#endif
|
|
|
gl_Position = worldViewProjection * vec4(skinnedPosition , 1.0);
|
|
|
v_WorldPosition = (world * vec4(skinnedPosition, 1.0)).xyz;
|
|
|
}
|
|
|
@end
|
|
|
@export clay.sm.distance.fragment
|
|
|
uniform vec3 lightPosition;
|
|
|
uniform float range : 100;
|
|
|
varying vec3 v_WorldPosition;
|
|
|
@import clay.util.encode_float
|
|
|
void main(){
|
|
|
float dist = distance(lightPosition, v_WorldPosition);
|
|
|
#ifdef USE_VSM
|
|
|
gl_FragColor = vec4(dist, dist * dist, 0.0, 0.0);
|
|
|
#else
|
|
|
dist = dist / range;
|
|
|
gl_FragColor = encodeFloat(dist);
|
|
|
#endif
|
|
|
}
|
|
|
@end
|
|
|
@export clay.plugin.shadow_map_common
|
|
|
@import clay.util.decode_float
|
|
|
float tapShadowMap(sampler2D map, vec2 uv, float z){
|
|
|
vec4 tex = texture2D(map, uv);
|
|
|
return step(z, decodeFloat(tex) * 2.0 - 1.0);
|
|
|
}
|
|
|
float pcf(sampler2D map, vec2 uv, float z, float textureSize, vec2 scale) {
|
|
|
float shadowContrib = tapShadowMap(map, uv, z);
|
|
|
vec2 offset = vec2(1.0 / textureSize) * scale;
|
|
|
#ifdef PCF_KERNEL_SIZE
|
|
|
for (int _idx_ = 0; _idx_ < PCF_KERNEL_SIZE; _idx_++) {{
|
|
|
shadowContrib += tapShadowMap(map, uv + offset * pcfKernel[_idx_], z);
|
|
|
}}
|
|
|
return shadowContrib / float(PCF_KERNEL_SIZE + 1);
|
|
|
#else
|
|
|
shadowContrib += tapShadowMap(map, uv+vec2(offset.x, 0.0), z);
|
|
|
shadowContrib += tapShadowMap(map, uv+vec2(offset.x, offset.y), z);
|
|
|
shadowContrib += tapShadowMap(map, uv+vec2(-offset.x, offset.y), z);
|
|
|
shadowContrib += tapShadowMap(map, uv+vec2(0.0, offset.y), z);
|
|
|
shadowContrib += tapShadowMap(map, uv+vec2(-offset.x, 0.0), z);
|
|
|
shadowContrib += tapShadowMap(map, uv+vec2(-offset.x, -offset.y), z);
|
|
|
shadowContrib += tapShadowMap(map, uv+vec2(offset.x, -offset.y), z);
|
|
|
shadowContrib += tapShadowMap(map, uv+vec2(0.0, -offset.y), z);
|
|
|
return shadowContrib / 9.0;
|
|
|
#endif
|
|
|
}
|
|
|
float pcf(sampler2D map, vec2 uv, float z, float textureSize) {
|
|
|
return pcf(map, uv, z, textureSize, vec2(1.0));
|
|
|
}
|
|
|
float chebyshevUpperBound(vec2 moments, float z){
|
|
|
float p = 0.0;
|
|
|
z = z * 0.5 + 0.5;
|
|
|
if (z <= moments.x) {
|
|
|
p = 1.0;
|
|
|
}
|
|
|
float variance = moments.y - moments.x * moments.x;
|
|
|
variance = max(variance, 0.0000001);
|
|
|
float mD = moments.x - z;
|
|
|
float pMax = variance / (variance + mD * mD);
|
|
|
pMax = clamp((pMax-0.4)/(1.0-0.4), 0.0, 1.0);
|
|
|
return max(p, pMax);
|
|
|
}
|
|
|
float computeShadowContrib(
|
|
|
sampler2D map, mat4 lightVPM, vec3 position, float textureSize, vec2 scale, vec2 offset
|
|
|
) {
|
|
|
vec4 posInLightSpace = lightVPM * vec4(position, 1.0);
|
|
|
posInLightSpace.xyz /= posInLightSpace.w;
|
|
|
float z = posInLightSpace.z;
|
|
|
if(all(greaterThan(posInLightSpace.xyz, vec3(-0.99, -0.99, -1.0))) &&
|
|
|
all(lessThan(posInLightSpace.xyz, vec3(0.99, 0.99, 1.0)))){
|
|
|
vec2 uv = (posInLightSpace.xy+1.0) / 2.0;
|
|
|
#ifdef USE_VSM
|
|
|
vec2 moments = texture2D(map, uv * scale + offset).xy;
|
|
|
return chebyshevUpperBound(moments, z);
|
|
|
#else
|
|
|
return pcf(map, uv * scale + offset, z, textureSize, scale);
|
|
|
#endif
|
|
|
}
|
|
|
return 1.0;
|
|
|
}
|
|
|
float computeShadowContrib(sampler2D map, mat4 lightVPM, vec3 position, float textureSize) {
|
|
|
return computeShadowContrib(map, lightVPM, position, textureSize, vec2(1.0), vec2(0.0));
|
|
|
}
|
|
|
float computeShadowContribOmni(samplerCube map, vec3 direction, float range)
|
|
|
{
|
|
|
float dist = length(direction);
|
|
|
vec4 shadowTex = textureCube(map, direction);
|
|
|
#ifdef USE_VSM
|
|
|
vec2 moments = shadowTex.xy;
|
|
|
float variance = moments.y - moments.x * moments.x;
|
|
|
float mD = moments.x - dist;
|
|
|
float p = variance / (variance + mD * mD);
|
|
|
if(moments.x + 0.001 < dist){
|
|
|
return clamp(p, 0.0, 1.0);
|
|
|
}else{
|
|
|
return 1.0;
|
|
|
}
|
|
|
#else
|
|
|
return step(dist, (decodeFloat(shadowTex) + 0.0002) * range);
|
|
|
#endif
|
|
|
}
|
|
|
@end
|
|
|
@export clay.plugin.compute_shadow_map
|
|
|
#if defined(SPOT_LIGHT_SHADOWMAP_COUNT) || defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) || defined(POINT_LIGHT_SHADOWMAP_COUNT)
|
|
|
#ifdef SPOT_LIGHT_SHADOWMAP_COUNT
|
|
|
uniform sampler2D spotLightShadowMaps[SPOT_LIGHT_SHADOWMAP_COUNT]:unconfigurable;
|
|
|
uniform mat4 spotLightMatrices[SPOT_LIGHT_SHADOWMAP_COUNT]:unconfigurable;
|
|
|
uniform float spotLightShadowMapSizes[SPOT_LIGHT_SHADOWMAP_COUNT]:unconfigurable;
|
|
|
#endif
|
|
|
#ifdef DIRECTIONAL_LIGHT_SHADOWMAP_COUNT
|
|
|
#if defined(SHADOW_CASCADE)
|
|
|
uniform sampler2D directionalLightShadowMaps[1]:unconfigurable;
|
|
|
uniform mat4 directionalLightMatrices[SHADOW_CASCADE]:unconfigurable;
|
|
|
uniform float directionalLightShadowMapSizes[1]:unconfigurable;
|
|
|
uniform float shadowCascadeClipsNear[SHADOW_CASCADE]:unconfigurable;
|
|
|
uniform float shadowCascadeClipsFar[SHADOW_CASCADE]:unconfigurable;
|
|
|
#else
|
|
|
uniform sampler2D directionalLightShadowMaps[DIRECTIONAL_LIGHT_SHADOWMAP_COUNT]:unconfigurable;
|
|
|
uniform mat4 directionalLightMatrices[DIRECTIONAL_LIGHT_SHADOWMAP_COUNT]:unconfigurable;
|
|
|
uniform float directionalLightShadowMapSizes[DIRECTIONAL_LIGHT_SHADOWMAP_COUNT]:unconfigurable;
|
|
|
#endif
|
|
|
#endif
|
|
|
#ifdef POINT_LIGHT_SHADOWMAP_COUNT
|
|
|
uniform samplerCube pointLightShadowMaps[POINT_LIGHT_SHADOWMAP_COUNT]:unconfigurable;
|
|
|
#endif
|
|
|
uniform bool shadowEnabled : true;
|
|
|
#ifdef PCF_KERNEL_SIZE
|
|
|
uniform vec2 pcfKernel[PCF_KERNEL_SIZE];
|
|
|
#endif
|
|
|
@import clay.plugin.shadow_map_common
|
|
|
#if defined(SPOT_LIGHT_SHADOWMAP_COUNT)
|
|
|
void computeShadowOfSpotLights(vec3 position, inout float shadowContribs[SPOT_LIGHT_COUNT] ) {
|
|
|
float shadowContrib;
|
|
|
for(int _idx_ = 0; _idx_ < SPOT_LIGHT_SHADOWMAP_COUNT; _idx_++) {{
|
|
|
shadowContrib = computeShadowContrib(
|
|
|
spotLightShadowMaps[_idx_], spotLightMatrices[_idx_], position,
|
|
|
spotLightShadowMapSizes[_idx_]
|
|
|
);
|
|
|
shadowContribs[_idx_] = shadowContrib;
|
|
|
}}
|
|
|
for(int _idx_ = SPOT_LIGHT_SHADOWMAP_COUNT; _idx_ < SPOT_LIGHT_COUNT; _idx_++){{
|
|
|
shadowContribs[_idx_] = 1.0;
|
|
|
}}
|
|
|
}
|
|
|
#endif
|
|
|
#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)
|
|
|
#ifdef SHADOW_CASCADE
|
|
|
void computeShadowOfDirectionalLights(vec3 position, inout float shadowContribs[DIRECTIONAL_LIGHT_COUNT]){
|
|
|
float depth = (2.0 * gl_FragCoord.z - gl_DepthRange.near - gl_DepthRange.far)
|
|
|
/ (gl_DepthRange.far - gl_DepthRange.near);
|
|
|
float shadowContrib;
|
|
|
shadowContribs[0] = 1.0;
|
|
|
for (int _idx_ = 0; _idx_ < SHADOW_CASCADE; _idx_++) {{
|
|
|
if (
|
|
|
depth >= shadowCascadeClipsNear[_idx_] &&
|
|
|
depth <= shadowCascadeClipsFar[_idx_]
|
|
|
) {
|
|
|
shadowContrib = computeShadowContrib(
|
|
|
directionalLightShadowMaps[0], directionalLightMatrices[_idx_], position,
|
|
|
directionalLightShadowMapSizes[0],
|
|
|
vec2(1.0 / float(SHADOW_CASCADE), 1.0),
|
|
|
vec2(float(_idx_) / float(SHADOW_CASCADE), 0.0)
|
|
|
);
|
|
|
shadowContribs[0] = shadowContrib;
|
|
|
}
|
|
|
}}
|
|
|
for(int _idx_ = DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++) {{
|
|
|
shadowContribs[_idx_] = 1.0;
|
|
|
}}
|
|
|
}
|
|
|
#else
|
|
|
void computeShadowOfDirectionalLights(vec3 position, inout float shadowContribs[DIRECTIONAL_LIGHT_COUNT]){
|
|
|
float shadowContrib;
|
|
|
for(int _idx_ = 0; _idx_ < DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_++) {{
|
|
|
shadowContrib = computeShadowContrib(
|
|
|
directionalLightShadowMaps[_idx_], directionalLightMatrices[_idx_], position,
|
|
|
directionalLightShadowMapSizes[_idx_]
|
|
|
);
|
|
|
shadowContribs[_idx_] = shadowContrib;
|
|
|
}}
|
|
|
for(int _idx_ = DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++) {{
|
|
|
shadowContribs[_idx_] = 1.0;
|
|
|
}}
|
|
|
}
|
|
|
#endif
|
|
|
#endif
|
|
|
#if defined(POINT_LIGHT_SHADOWMAP_COUNT)
|
|
|
void computeShadowOfPointLights(vec3 position, inout float shadowContribs[POINT_LIGHT_COUNT] ){
|
|
|
vec3 lightPosition;
|
|
|
vec3 direction;
|
|
|
for(int _idx_ = 0; _idx_ < POINT_LIGHT_SHADOWMAP_COUNT; _idx_++) {{
|
|
|
lightPosition = pointLightPosition[_idx_];
|
|
|
direction = position - lightPosition;
|
|
|
shadowContribs[_idx_] = computeShadowContribOmni(pointLightShadowMaps[_idx_], direction, pointLightRange[_idx_]);
|
|
|
}}
|
|
|
for(int _idx_ = POINT_LIGHT_SHADOWMAP_COUNT; _idx_ < POINT_LIGHT_COUNT; _idx_++) {{
|
|
|
shadowContribs[_idx_] = 1.0;
|
|
|
}}
|
|
|
}
|
|
|
#endif
|
|
|
#endif
|
|
|
@end`},function(Ye,Me,pe){"use strict";var Oe=pe(7),ve=pe(5),ue=pe(6),fe=pe(10),he=pe(156),le=pe(162),ae=pe(164),ie=pe(166),me=pe(2),E=pe(167),b=pe(169),z=pe(9),ne=pe(170),oe=pe(171),se=pe(172),de=pe(173),a=pe(174),x=pe(175),re=pe(176),ce=pe(177),ge=pe(178),_e=pe(179),ye=pe(180),be=pe(181);Oe.a.import(oe.a),Oe.a.import(se.a),Oe.a.import(de.a),Oe.a.import(a.a),Oe.a.import(x.a),Oe.a.import(re.a),Oe.a.import(ce.a),Oe.a.import(ge.a),Oe.a.import(_e.a),Oe.a.import(ye.a),Oe.a.import(be.a);var Se={color:{parameters:{width:function(we){return we.getWidth()},height:function(we){return we.getHeight()}}}},Be=["composite","FXAA"];function Ae(){this._sourceTexture=new ve.a({type:ue.a.HALF_FLOAT}),this._depthTexture=new ve.a({format:ue.a.DEPTH_COMPONENT,type:ue.a.UNSIGNED_INT}),this._framebuffer=new fe.a,this._framebuffer.attach(this._sourceTexture),this._framebuffer.attach(this._depthTexture,fe.a.DEPTH_ATTACHMENT),this._normalPass=new E.a,this._compositor=Object(he.a)(ne.a);var we=this._compositor.getNodeByName("source");we.texture=this._sourceTexture;var Ue=this._compositor.getNodeByName("coc");this._sourceNode=we,this._cocNode=Ue,this._compositeNode=this._compositor.getNodeByName("composite"),this._fxaaNode=this._compositor.getNodeByName("FXAA"),this._dofBlurNodes=["dof_far_blur","dof_near_blur","dof_coc_blur"].map(function(ze){return this._compositor.getNodeByName(ze)},this),this._dofBlurKernel=0,this._dofBlurKernelSize=new Float32Array(0),this._finalNodesChain=Be.map(function(ze){return this._compositor.getNodeByName(ze)},this);var Pe={normalTexture:this._normalPass.getNormalTexture(),depthTexture:this._normalPass.getDepthTexture()};this._ssaoPass=new le.a(Pe),this._ssrPass=new ae.a(Pe),this._edgePass=new b.a(Pe)}Ae.prototype.resize=function(ze,Ke,Pe){Pe=Pe||1;var ze=ze*Pe,Ke=Ke*Pe,Ne=this._sourceTexture,Re=this._depthTexture;Ne.width=ze,Ne.height=Ke,Re.width=ze,Re.height=Ke},Ae.prototype._ifRenderNormalPass=function(){return this._enableSSAO||this._enableEdge||this._enableSSR},Ae.prototype._getPrevNode=function(we){for(var Ue=Be.indexOf(we.name)-1,Pe=this._finalNodesChain[Ue];Pe&&!this._compositor.getNodeByName(Pe.name);)Ue-=1,Pe=this._finalNodesChain[Ue];return Pe},Ae.prototype._getNextNode=function(we){for(var Ue=Be.indexOf(we.name)+1,Pe=this._finalNodesChain[Ue];Pe&&!this._compositor.getNodeByName(Pe.name);)Ue+=1,Pe=this._finalNodesChain[Ue];return Pe},Ae.prototype._addChainNode=function(we){var Ue=this._getPrevNode(we),Pe=this._getNextNode(we);Ue&&(Ue.outputs=Se,we.inputs.texture=Ue.name,Pe?(we.outputs=Se,Pe.inputs.texture=we.name):we.outputs=null,this._compositor.addNode(we))},Ae.prototype._removeChainNode=function(we){var Ue=this._getPrevNode(we),Pe=this._getNextNode(we);Ue&&(Pe?(Ue.outputs=Se,Pe.inputs.texture=Ue.name):Ue.outputs=null,this._compositor.removeNode(we))},Ae.prototype.updateNormal=function(we,Ue,Pe,ze){this._ifRenderNormalPass()&&this._normalPass.update(we,Ue,Pe)},Ae.prototype.updateSSAO=function(we,Ue,Pe,ze){this._ssaoPass.update(we,Pe,ze)},Ae.prototype.enableSSAO=function(){this._enableSSAO=!0},Ae.prototype.disableSSAO=function(){this._enableSSAO=!1},Ae.prototype.enableSSR=function(){this._enableSSR=!0},Ae.prototype.disableSSR=function(){this._enableSSR=!1},Ae.prototype.getSSAOTexture=function(we,Ue,Pe,ze){return this._ssaoPass.getTargetTexture()},Ae.prototype.getSourceFrameBuffer=function(){return this._framebuffer},Ae.prototype.getSourceTexture=function(){return this._sourceTexture},Ae.prototype.disableFXAA=function(){this._removeChainNode(this._fxaaNode)},Ae.prototype.enableFXAA=function(){this._addChainNode(this._fxaaNode)},Ae.prototype.enableBloom=function(){this._compositeNode.inputs.bloom="bloom_composite",this._compositor.dirty()},Ae.prototype.disableBloom=function(){this._compositeNode.inputs.bloom=null,this._compositor.dirty()},Ae.prototype.enableDOF=function(){this._compositeNode.inputs.texture="dof_composite",this._compositor.dirty()},Ae.prototype.disableDOF=function(){this._compositeNode.inputs.texture="source",this._compositor.dirty()},Ae.prototype.enableColorCorrection=function(){this._compositeNode.define("COLOR_CORRECTION"),this._enableColorCorrection=!0},Ae.prototype.disableColorCorrection=function(){this._compositeNode.undefine("COLOR_CORRECTION"),this._enableColorCorrection=!1},Ae.prototype.enableEdge=function(){this._enableEdge=!0},Ae.prototype.disableEdge=function(){this._enableEdge=!1},Ae.prototype.setBloomIntensity=function(we){this._compositeNode.setParameter("bloomIntensity",we)},Ae.prototype.setSSAOParameter=function(we,Ue){switch(we){case"quality":var Pe={low:6,medium:12,high:32,ultra:62}[Ue]||12;this._ssaoPass.setParameter("kernelSize",Pe);break;case"radius":this._ssaoPass.setParameter(we,Ue),this._ssaoPass.setParameter("bias",Ue/200);break;case"intensity":this._ssaoPass.setParameter(we,Ue);break;default:console.warn("Unkown SSAO parameter "+we)}},Ae.prototype.setDOFParameter=function(we,Ue){switch(we){case"focalDistance":case"focalRange":case"fstop":this._cocNode.setParameter(we,Ue);break;case"blurRadius":for(var Pe=0;Pe<this._dofBlurNodes.length;Pe++)this._dofBlurNodes[Pe].setParameter("blurRadius",Ue);break;case"quality":var ze={low:4,medium:8,high:16,ultra:32}[Ue]||8;this._dofBlurKernelSize=ze;for(var Pe=0;Pe<this._dofBlurNodes.length;Pe++)this._dofBlurNodes[Pe].pass.material.define("POISSON_KERNEL_SIZE",ze);this._dofBlurKernel=new Float32Array(ze*2);break;default:console.warn("Unkown DOF parameter "+we)}},Ae.prototype.setSSRParameter=function(we,Ue){switch(we){case"quality":var Pe={low:10,medium:20,high:40,ultra:80}[Ue]||20,ze={low:32,medium:16,high:8,ultra:4}[Ue]||16;this._ssrPass.setParameter("maxIteration",Pe),this._ssrPass.setParameter("pixelStride",ze);break;case"maxRoughness":this._ssrPass.setParameter("minGlossiness",Math.max(Math.min(1-Ue,1),0));break;default:console.warn("Unkown SSR parameter "+we)}},Ae.prototype.setEdgeColor=function(we){var Ue=me.a.parseColor(we);this._edgePass.setParameter("edgeColor",Ue)},Ae.prototype.setExposure=function(we){this._compositeNode.setParameter("exposure",Math.pow(2,we))},Ae.prototype.setColorLookupTexture=function(we,Ue){this._compositeNode.pass.material.setTextureImage("lut",this._enableColorCorrection?we:"none",Ue,{minFilter:me.a.Texture.NEAREST,magFilter:me.a.Texture.NEAREST,flipY:!1})},Ae.prototype.setColorCorrection=function(we,Ue){this._compositeNode.setParameter(we,Ue)},Ae.prototype.composite=function(we,Ue,Pe,ze){var Ke=this._sourceTexture,Ne=Ke;this._enableEdge&&(this._edgePass.update(we,Ue,Ke,ze),Ke=Ne=this._edgePass.getTargetTexture()),this._enableSSR&&(this._ssrPass.update(we,Ue,Ke,ze),Ne=this._ssrPass.getTargetTexture(),this._ssrPass.setSSAOTexture(this._enableSSAO?this._ssaoPass.getTargetTexture():null)),this._sourceNode.texture=Ne,this._cocNode.setParameter("depth",this._depthTexture);for(var Re=this._dofBlurKernel,$e=this._dofBlurKernelSize,nt=Math.floor(ie.a.length/2/$e),ut=ze%nt,Qe=0;Qe<$e*2;Qe++)Re[Qe]=ie.a[Qe+ut*$e*2];for(var Qe=0;Qe<this._dofBlurNodes.length;Qe++)this._dofBlurNodes[Qe].setParameter("percent",ze/30),this._dofBlurNodes[Qe].setParameter("poissonKernel",Re);this._cocNode.setParameter("zNear",Ue.near),this._cocNode.setParameter("zFar",Ue.far),this._compositor.render(we,Pe)},Ae.prototype.dispose=function(we){this._sourceTexture.dispose(we),this._depthTexture.dispose(we),this._framebuffer.dispose(we),this._compositor.dispose(we),this._normalPass.dispose(we),this._ssaoPass.dispose(we)},Me.a=Ae},function(Ye,Me,pe){"use strict";var Oe=pe(21),ve=pe(157),ue=pe(159),fe=pe(160),he=pe(161),le=pe(7),ae=pe(6),ie=pe(5),me=pe(25),E=/^#source\((.*?)\)/;function b(x,re){var ce=new ve.a;re=re||{};var ge={textures:{},parameters:{}},_e=function(Se,Be){for(var Ae=0;Ae<x.nodes.length;Ae++){var we=x.nodes[Ae],Ue=z(we,ge,re);Ue&&ce.addNode(Ue)}};for(var ye in x.parameters){var be=x.parameters[ye];ge.parameters[ye]=ne(be)}return oe(x,ge,re,function(Se){ge.textures=Se,_e()}),ce}function z(x,re,ce){var ge=x.type||"filter",_e,ye,be;if(ge==="filter"){var Se=x.shader.trim(),Be=E.exec(Se);if(Be?_e=le.a.source(Be[1].trim()):Se.charAt(0)==="#"&&(_e=re.shaders[Se.substr(1)]),_e||(_e=Se),!_e)return}if(x.inputs){ye={};for(var Ae in x.inputs)typeof x.inputs[Ae]=="string"?ye[Ae]=x.inputs[Ae]:ye[Ae]={node:x.inputs[Ae].node,pin:x.inputs[Ae].pin}}if(x.outputs){be={};for(var Ae in x.outputs){var we=x.outputs[Ae];be[Ae]={},we.attachment!=null&&(be[Ae].attachment=we.attachment),we.keepLastFrame!=null&&(be[Ae].keepLastFrame=we.keepLastFrame),we.outputLastFrame!=null&&(be[Ae].outputLastFrame=we.outputLastFrame),we.parameters&&(be[Ae].parameters=ne(we.parameters))}}var Ue;if(ge==="scene"?Ue=new ue.a({name:x.name,scene:ce.scene,camera:ce.camera,outputs:be}):ge==="texture"?Ue=new fe.a({name:x.name,outputs:be}):Ue=new he.a({name:x.name,shader:_e,inputs:ye,outputs:be}),Ue){if(x.parameters)for(var Ae in x.parameters){var Pe=x.parameters[Ae];typeof Pe=="string"&&(Pe=Pe.trim(),Pe.charAt(0)==="#"?Pe=re.textures[Pe.substr(1)]:Ue.on("beforerender",se(Ae,a(Pe)))),Ue.setParameter(Ae,Pe)}if(x.defines&&Ue.pass)for(var Ae in x.defines){var Pe=x.defines[Ae];Ue.pass.material.define("fragment",Ae,Pe)}}return Ue}function ne(x){var re={};return x&&(["type","minFilter","magFilter","wrapS","wrapT","flipY","useMipmap"].forEach(function(ce){var ge=x[ce];ge!=null&&(typeof ge=="string"&&(ge=ae.a[ge]),re[ce]=ge)}),["width","height"].forEach(function(ce){if(x[ce]!=null){var ge=x[ce];typeof ge=="string"?(ge=ge.trim(),re[ce]=de(ce,a(ge))):re[ce]=ge}}),x.useMipmap!=null&&(re.useMipmap=x.useMipmap)),re}function oe(x,re,ce,ge){if(!x.textures){ge({});return}var _e={},ye=0,be=!1,Se=ce.textureRootPath;Oe.a.each(x.textures,function(Be,Ae){var we,Ue=Be.path,Pe=ne(Be.parameters);if(Array.isArray(Ue)&&Ue.length===6)Se&&(Ue=Ue.map(function(ze){return Oe.a.relative2absolute(ze,Se)})),we=new me.a(Pe);else if(typeof Ue=="string")Se&&(Ue=Oe.a.relative2absolute(Ue,Se)),we=new ie.a(Pe);else return;we.load(Ue),ye++,we.once("success",function(){_e[Ae]=we,ye--,ye===0&&(ge(_e),be=!0)})}),ye===0&&!be&&ge(_e)}function se(x,re){return function(ce){var ge=ce.getDevicePixelRatio(),_e=ce.getWidth(),ye=ce.getHeight(),be=re(_e,ye,ge);this.setParameter(x,be)}}function de(x,re){return function(ce){var ge=ce.getDevicePixelRatio(),_e=ce.getWidth(),ye=ce.getHeight();return re(_e,ye,ge)}}function a(x){var re=/^expr\((.*)\)$/.exec(x);if(re)try{var ce=new Function("width","height","dpr","return "+re[1]);return ce(1,1),ce}catch(ge){throw new Error("Invalid expression.")}}Me.a=b},function(Ye,Me,pe){"use strict";var Oe=pe(158),ve=pe(79),ue=pe(10),fe=Oe.a.extend(function(){return{_outputs:[],_texturePool:new ve.a,_frameBuffer:new ue.a({depthBuffer:!1})}},{addNode:function(he){Oe.a.prototype.addNode.call(this,he),he._compositor=this},render:function(he,le){if(this._dirty){this.update(),this._dirty=!1,this._outputs.length=0;for(var ae=0;ae<this.nodes.length;ae++)this.nodes[ae].outputs||this._outputs.push(this.nodes[ae])}for(var ae=0;ae<this.nodes.length;ae++)this.nodes[ae].beforeFrame();for(var ae=0;ae<this._outputs.length;ae++)this._outputs[ae].updateReference();for(var ae=0;ae<this._outputs.length;ae++)this._outputs[ae].render(he,le);for(var ae=0;ae<this.nodes.length;ae++)this.nodes[ae].afterFrame()},allocateTexture:function(he){return this._texturePool.get(he)},releaseTexture:function(he){this._texturePool.put(he)},getFrameBuffer:function(){return this._frameBuffer},dispose:function(he){this._texturePool.clear(he)}});Me.a=fe},function(Ye,Me,pe){"use strict";var Oe=pe(8),ve=pe(42),ue=Oe.a.extend(function(){return{nodes:[]}},{dirty:function(){this._dirty=!0},addNode:function(fe){this.nodes.indexOf(fe)>=0||(this.nodes.push(fe),this._dirty=!0)},removeNode:function(fe){typeof fe=="string"&&(fe=this.getNodeByName(fe));var he=this.nodes.indexOf(fe);he>=0&&(this.nodes.splice(he,1),this._dirty=!0)},getNodeByName:function(fe){for(var he=0;he<this.nodes.length;he++)if(this.nodes[he].name===fe)return this.nodes[he]},update:function(){for(var fe=0;fe<this.nodes.length;fe++)this.nodes[fe].clear();for(var fe=0;fe<this.nodes.length;fe++){var he=this.nodes[fe];if(he.inputs){for(var le in he.inputs)if(he.inputs[le]){if(he.pass&&!he.pass.material.isUniformEnabled(le)){console.warn("Pin "+he.name+"."+le+" not used.");continue}var ae=he.inputs[le],ie=this.findPin(ae);ie?he.link(le,ie.node,ie.pin):console.warn(typeof ae=="string"?"Node "+ae+" not exist":"Pin of "+ae.node+"."+ae.pin+" not exist")}}}},findPin:function(fe){var he;if((typeof fe=="string"||fe instanceof ve.a)&&(fe={node:fe}),typeof fe.node=="string")for(var le=0;le<this.nodes.length;le++){var ae=this.nodes[le];ae.name===fe.node&&(he=ae)}else he=fe.node;if(he){var ie=fe.pin;if(ie||he.outputs&&(ie=Object.keys(he.outputs)[0]),he.outputs[ie])return{node:he,pin:ie}}}});Me.a=ue},function(Ye,Me,pe){"use strict";var Oe=pe(42),ve=pe(11),ue=pe(10),fe=Oe.a.extend({name:"scene",scene:null,camera:null,autoUpdateScene:!0,preZ:!1},function(){this.frameBuffer=new ue.a},{render:function(he){this._rendering=!0;var le=he.gl;this.trigger("beforerender");var ae;if(!this.outputs)ae=he.render(this.scene,this.camera,!this.autoUpdateScene,this.preZ);else{var ie=this.frameBuffer;for(var me in this.outputs){var E=this.updateParameter(me,he),b=this.outputs[me],z=this._compositor.allocateTexture(E);this._outputTextures[me]=z;var ne=b.attachment||le.COLOR_ATTACHMENT0;typeof ne=="string"&&(ne=le[ne]),ie.attach(z,ne)}ie.bind(he);var oe=he.getGLExtension("EXT_draw_buffers");if(oe){var se=[];for(var ne in this.outputs)ne=parseInt(ne),ne>=le.COLOR_ATTACHMENT0&&ne<=le.COLOR_ATTACHMENT0+8&&se.push(ne);oe.drawBuffersEXT(se)}he.saveClear(),he.clearBit=ve.a.DEPTH_BUFFER_BIT|ve.a.COLOR_BUFFER_BIT,ae=he.render(this.scene,this.camera,!this.autoUpdateScene,this.preZ),he.restoreClear(),ie.unbind(he)}this.trigger("afterrender",ae),this._rendering=!1,this._rendered=!0}});Me.a=fe},function(Ye,Me,pe){"use strict";var Oe=pe(42),ve=Oe.a.extend(function(){return{texture:null,outputs:{color:{}}}},function(){},{getOutput:function(ue,fe){return this.texture},beforeFrame:function(){},afterFrame:function(){}});Me.a=ve},function(Ye,Me,pe){"use strict";var Oe=pe(14),ve=pe(42),ue=ve.a.extend(function(){return{name:"",inputs:{},outputs:null,shader:"",inputLinks:{},outputLinks:{},pass:null,_prevOutputTextures:{},_outputTextures:{},_outputReferences:{},_rendering:!1,_rendered:!1,_compositor:null}},function(){var fe=new Oe.a({fragment:this.shader});this.pass=fe},{render:function(fe,he){this.trigger("beforerender",fe),this._rendering=!0;var le=fe.gl;for(var ae in this.inputLinks){var ie=this.inputLinks[ae],me=ie.node.getOutput(fe,ie.pin);this.pass.setUniform(ae,me)}if(!this.outputs)this.pass.outputs=null,this._compositor.getFrameBuffer().unbind(fe),this.pass.render(fe,he);else{this.pass.outputs={};var E={};for(var b in this.outputs){var z=this.updateParameter(b,fe);isNaN(z.width)&&this.updateParameter(b,fe);var ne=this.outputs[b],oe=this._compositor.allocateTexture(z);this._outputTextures[b]=oe;var se=ne.attachment||le.COLOR_ATTACHMENT0;typeof se=="string"&&(se=le[se]),E[se]=oe}this._compositor.getFrameBuffer().bind(fe);for(var se in E)this._compositor.getFrameBuffer().attach(E[se],se);this.pass.render(fe),this._compositor.getFrameBuffer().updateMipmap(fe.gl)}for(var ae in this.inputLinks){var ie=this.inputLinks[ae];ie.node.removeReference(ie.pin)}this._rendering=!1,this._rendered=!0,this.trigger("afterrender",fe)},updateParameter:function(fe,he){var le=this.outputs[fe],ae=le.parameters,ie=le._parametersCopy;if(ie||(ie=le._parametersCopy={}),ae)for(var me in ae)me!=="width"&&me!=="height"&&(ie[me]=ae[me]);var E,b;return ae.width instanceof Function?E=ae.width.call(this,he):E=ae.width,ae.height instanceof Function?b=ae.height.call(this,he):b=ae.height,(ie.width!==E||ie.height!==b)&&this._outputTextures[fe]&&this._outputTextures[fe].dispose(he),ie.width=E,ie.height=b,ie},setParameter:function(fe,he){this.pass.setUniform(fe,he)},getParameter:function(fe){return this.pass.getUniform(fe)},setParameters:function(fe){for(var he in fe)this.setParameter(he,fe[he])},define:function(fe,he){this.pass.material.define("fragment",fe,he)},undefine:function(fe){this.pass.material.undefine("fragment",fe)},removeReference:function(fe){if(this._outputReferences[fe]--,this._outputReferences[fe]===0){var he=this.outputs[fe];he.keepLastFrame?(this._prevOutputTextures[fe]&&this._compositor.releaseTexture(this._prevOutputTextures[fe]),this._prevOutputTextures[fe]=this._outputTextures[fe]):this._compositor.releaseTexture(this._outputTextures[fe])}},clear:function(){ve.a.prototype.clear.call(this),this.pass.material.disableTexturesAll()}});Me.a=ue},function(Ye,Me,pe){"use strict";var Oe=pe(9),ve=pe(4),ue=pe(5),fe=pe(6),he=pe(14),le=pe(7),ae=pe(10),ie=pe(43),me=pe(163);le.a.import(me.a);function E(oe){for(var se=new Uint8Array(oe*oe*4),de=0,a=new ve.a,x=0;x<oe;x++)for(var re=0;re<oe;re++)a.set(Math.random()*2-1,Math.random()*2-1,0).normalize(),se[de++]=(a.x*.5+.5)*255,se[de++]=(a.y*.5+.5)*255,se[de++]=0,se[de++]=255;return se}function b(oe){return new ue.a({pixels:E(oe),wrapS:fe.a.REPEAT,wrapT:fe.a.REPEAT,width:oe,height:oe})}function z(oe,se,de){var a=new Float32Array(oe*3);se=se||0;for(var x=0;x<oe;x++){var re=Object(ie.a)(x+se,2)*(de?1:2)*Math.PI,ce=Object(ie.a)(x+se,3)*Math.PI,ge=Math.random(),_e=Math.cos(re)*Math.sin(ce)*ge,ye=Math.cos(ce)*ge,be=Math.sin(re)*Math.sin(ce)*ge;a[x*3]=_e,a[x*3+1]=ye,a[x*3+2]=be}return a}function ne(oe){oe=oe||{},this._ssaoPass=new he.a({fragment:le.a.source("ecgl.ssao.estimate")}),this._blurPass=new he.a({fragment:le.a.source("ecgl.ssao.blur")}),this._framebuffer=new ae.a({depthBuffer:!1}),this._ssaoTexture=new ue.a,this._blurTexture=new ue.a,this._blurTexture2=new ue.a,this._depthTex=oe.depthTexture,this._normalTex=oe.normalTexture,this.setNoiseSize(4),this.setKernelSize(oe.kernelSize||12),oe.radius!=null&&this.setParameter("radius",oe.radius),oe.power!=null&&this.setParameter("power",oe.power),this._normalTex||(this._ssaoPass.material.disableTexture("normalTex"),this._blurPass.material.disableTexture("normalTex")),this._depthTex||this._blurPass.material.disableTexture("depthTex"),this._blurPass.material.setUniform("normalTex",this._normalTex),this._blurPass.material.setUniform("depthTex",this._depthTex)}ne.prototype.setDepthTexture=function(oe){this._depthTex=oe},ne.prototype.setNormalTexture=function(oe){this._normalTex=oe,this._ssaoPass.material[oe?"enableTexture":"disableTexture"]("normalTex"),this.setKernelSize(this._kernelSize)},ne.prototype.update=function(oe,se,de){var a=oe.getWidth(),x=oe.getHeight(),re=this._ssaoPass,ce=this._blurPass;re.setUniform("kernel",this._kernels[de%this._kernels.length]),re.setUniform("depthTex",this._depthTex),this._normalTex!=null&&re.setUniform("normalTex",this._normalTex),re.setUniform("depthTexSize",[this._depthTex.width,this._depthTex.height]);var ge=new Oe.a;Oe.a.transpose(ge,se.worldTransform),re.setUniform("projection",se.projectionMatrix.array),re.setUniform("projectionInv",se.invProjectionMatrix.array),re.setUniform("viewInverseTranspose",ge.array);var _e=this._ssaoTexture,ye=this._blurTexture,be=this._blurTexture2;_e.width=a/2,_e.height=x/2,ye.width=a,ye.height=x,be.width=a,be.height=x,this._framebuffer.attach(_e),this._framebuffer.bind(oe),oe.gl.clearColor(1,1,1,1),oe.gl.clear(oe.gl.COLOR_BUFFER_BIT),re.render(oe),ce.setUniform("textureSize",[a/2,x/2]),ce.setUniform("projection",se.projectionMatrix.array),this._framebuffer.attach(ye),ce.setUniform("direction",0),ce.setUniform("ssaoTexture",_e),ce.render(oe),this._framebuffer.attach(be),ce.setUniform("textureSize",[a,x]),ce.setUniform("direction",1),ce.setUniform("ssaoTexture",ye),ce.render(oe),this._framebuffer.unbind(oe);var Se=oe.clearColor;oe.gl.clearColor(Se[0],Se[1],Se[2],Se[3])},ne.prototype.getTargetTexture=function(){return this._blurTexture2},ne.prototype.setParameter=function(oe,se){oe==="noiseTexSize"?this.setNoiseSize(se):oe==="kernelSize"?this.setKernelSize(se):oe==="intensity"?this._ssaoPass.material.set("intensity",se):this._ssaoPass.setUniform(oe,se)},ne.prototype.setKernelSize=function(oe){this._kernelSize=oe,this._ssaoPass.material.define("fragment","KERNEL_SIZE",oe),this._kernels=this._kernels||[];for(var se=0;se<30;se++)this._kernels[se]=z(oe,se*oe,!!this._normalTex)},ne.prototype.setNoiseSize=function(oe){var se=this._ssaoPass.getUniform("noiseTex");se?(se.data=E(oe),se.width=se.height=oe,se.dirty()):(se=b(oe),this._ssaoPass.setUniform("noiseTex",b(oe))),this._ssaoPass.setUniform("noiseTexSize",[oe,oe])},ne.prototype.dispose=function(oe){this._blurTexture.dispose(oe),this._ssaoTexture.dispose(oe),this._blurTexture2.dispose(oe)},Me.a=ne},function(Ye,Me,pe){"use strict";Me.a=`@export ecgl.ssao.estimate
|
|
|
|
|
|
uniform sampler2D depthTex;
|
|
|
|
|
|
uniform sampler2D normalTex;
|
|
|
|
|
|
uniform sampler2D noiseTex;
|
|
|
|
|
|
uniform vec2 depthTexSize;
|
|
|
|
|
|
uniform vec2 noiseTexSize;
|
|
|
|
|
|
uniform mat4 projection;
|
|
|
|
|
|
uniform mat4 projectionInv;
|
|
|
|
|
|
uniform mat4 viewInverseTranspose;
|
|
|
|
|
|
uniform vec3 kernel[KERNEL_SIZE];
|
|
|
|
|
|
uniform float radius : 1;
|
|
|
|
|
|
uniform float power : 1;
|
|
|
|
|
|
uniform float bias: 1e-2;
|
|
|
|
|
|
uniform float intensity: 1.0;
|
|
|
|
|
|
varying vec2 v_Texcoord;
|
|
|
|
|
|
float ssaoEstimator(in vec3 originPos, in mat3 kernelBasis) {
|
|
|
float occlusion = 0.0;
|
|
|
|
|
|
for (int i = 0; i < KERNEL_SIZE; i++) {
|
|
|
vec3 samplePos = kernel[i];
|
|
|
#ifdef NORMALTEX_ENABLED
|
|
|
samplePos = kernelBasis * samplePos;
|
|
|
#endif
|
|
|
samplePos = samplePos * radius + originPos;
|
|
|
|
|
|
vec4 texCoord = projection * vec4(samplePos, 1.0);
|
|
|
texCoord.xy /= texCoord.w;
|
|
|
|
|
|
vec4 depthTexel = texture2D(depthTex, texCoord.xy * 0.5 + 0.5);
|
|
|
|
|
|
float sampleDepth = depthTexel.r * 2.0 - 1.0;
|
|
|
if (projection[3][3] == 0.0) {
|
|
|
sampleDepth = projection[3][2] / (sampleDepth * projection[2][3] - projection[2][2]);
|
|
|
}
|
|
|
else {
|
|
|
sampleDepth = (sampleDepth - projection[3][2]) / projection[2][2];
|
|
|
}
|
|
|
|
|
|
float rangeCheck = smoothstep(0.0, 1.0, radius / abs(originPos.z - sampleDepth));
|
|
|
occlusion += rangeCheck * step(samplePos.z, sampleDepth - bias);
|
|
|
}
|
|
|
#ifdef NORMALTEX_ENABLED
|
|
|
occlusion = 1.0 - occlusion / float(KERNEL_SIZE);
|
|
|
#else
|
|
|
occlusion = 1.0 - clamp((occlusion / float(KERNEL_SIZE) - 0.6) * 2.5, 0.0, 1.0);
|
|
|
#endif
|
|
|
return pow(occlusion, power);
|
|
|
}
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
|
|
|
vec4 depthTexel = texture2D(depthTex, v_Texcoord);
|
|
|
|
|
|
#ifdef NORMALTEX_ENABLED
|
|
|
vec4 tex = texture2D(normalTex, v_Texcoord);
|
|
|
if (dot(tex.rgb, tex.rgb) == 0.0) {
|
|
|
gl_FragColor = vec4(1.0);
|
|
|
return;
|
|
|
}
|
|
|
vec3 N = tex.rgb * 2.0 - 1.0;
|
|
|
N = (viewInverseTranspose * vec4(N, 0.0)).xyz;
|
|
|
|
|
|
vec2 noiseTexCoord = depthTexSize / vec2(noiseTexSize) * v_Texcoord;
|
|
|
vec3 rvec = texture2D(noiseTex, noiseTexCoord).rgb * 2.0 - 1.0;
|
|
|
vec3 T = normalize(rvec - N * dot(rvec, N));
|
|
|
vec3 BT = normalize(cross(N, T));
|
|
|
mat3 kernelBasis = mat3(T, BT, N);
|
|
|
#else
|
|
|
if (depthTexel.r > 0.99999) {
|
|
|
gl_FragColor = vec4(1.0);
|
|
|
return;
|
|
|
}
|
|
|
mat3 kernelBasis;
|
|
|
#endif
|
|
|
|
|
|
float z = depthTexel.r * 2.0 - 1.0;
|
|
|
|
|
|
vec4 projectedPos = vec4(v_Texcoord * 2.0 - 1.0, z, 1.0);
|
|
|
vec4 p4 = projectionInv * projectedPos;
|
|
|
|
|
|
vec3 position = p4.xyz / p4.w;
|
|
|
|
|
|
float ao = ssaoEstimator(position, kernelBasis);
|
|
|
ao = clamp(1.0 - (1.0 - ao) * intensity, 0.0, 1.0);
|
|
|
gl_FragColor = vec4(vec3(ao), 1.0);
|
|
|
}
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
@export ecgl.ssao.blur
|
|
|
#define SHADER_NAME SSAO_BLUR
|
|
|
|
|
|
uniform sampler2D ssaoTexture;
|
|
|
|
|
|
#ifdef NORMALTEX_ENABLED
|
|
|
uniform sampler2D normalTex;
|
|
|
#endif
|
|
|
|
|
|
varying vec2 v_Texcoord;
|
|
|
|
|
|
uniform vec2 textureSize;
|
|
|
uniform float blurSize : 1.0;
|
|
|
|
|
|
uniform int direction: 0.0;
|
|
|
|
|
|
#ifdef DEPTHTEX_ENABLED
|
|
|
uniform sampler2D depthTex;
|
|
|
uniform mat4 projection;
|
|
|
uniform float depthRange : 0.5;
|
|
|
|
|
|
float getLinearDepth(vec2 coord)
|
|
|
{
|
|
|
float depth = texture2D(depthTex, coord).r * 2.0 - 1.0;
|
|
|
return projection[3][2] / (depth * projection[2][3] - projection[2][2]);
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
float kernel[5];
|
|
|
kernel[0] = 0.122581;
|
|
|
kernel[1] = 0.233062;
|
|
|
kernel[2] = 0.288713;
|
|
|
kernel[3] = 0.233062;
|
|
|
kernel[4] = 0.122581;
|
|
|
|
|
|
vec2 off = vec2(0.0);
|
|
|
if (direction == 0) {
|
|
|
off[0] = blurSize / textureSize.x;
|
|
|
}
|
|
|
else {
|
|
|
off[1] = blurSize / textureSize.y;
|
|
|
}
|
|
|
|
|
|
vec2 coord = v_Texcoord;
|
|
|
|
|
|
float sum = 0.0;
|
|
|
float weightAll = 0.0;
|
|
|
|
|
|
#ifdef NORMALTEX_ENABLED
|
|
|
vec3 centerNormal = texture2D(normalTex, v_Texcoord).rgb * 2.0 - 1.0;
|
|
|
#endif
|
|
|
#if defined(DEPTHTEX_ENABLED)
|
|
|
float centerDepth = getLinearDepth(v_Texcoord);
|
|
|
#endif
|
|
|
|
|
|
for (int i = 0; i < 5; i++) {
|
|
|
vec2 coord = clamp(v_Texcoord + vec2(float(i) - 2.0) * off, vec2(0.0), vec2(1.0));
|
|
|
|
|
|
float w = kernel[i];
|
|
|
#ifdef NORMALTEX_ENABLED
|
|
|
vec3 normal = texture2D(normalTex, coord).rgb * 2.0 - 1.0;
|
|
|
w *= clamp(dot(normal, centerNormal), 0.0, 1.0);
|
|
|
#endif
|
|
|
#ifdef DEPTHTEX_ENABLED
|
|
|
float d = getLinearDepth(coord);
|
|
|
w *= (1.0 - smoothstep(abs(centerDepth - d) / depthRange, 0.0, 1.0));
|
|
|
#endif
|
|
|
|
|
|
weightAll += w;
|
|
|
sum += texture2D(ssaoTexture, coord).r * w;
|
|
|
}
|
|
|
|
|
|
gl_FragColor = vec4(vec3(sum / weightAll), 1.0);
|
|
|
}
|
|
|
|
|
|
@end
|
|
|
`},function(Ye,Me,pe){"use strict";var Oe=pe(9),ve=pe(4),ue=pe(5),fe=pe(6),he=pe(14),le=pe(7),ae=pe(10),ie=pe(43),me=pe(165);le.a.import(me.a);function E(b){b=b||{},this._ssrPass=new he.a({fragment:le.a.source("ecgl.ssr.main"),clearColor:[0,0,0,0]}),this._blurPass1=new he.a({fragment:le.a.source("ecgl.ssr.blur"),clearColor:[0,0,0,0]}),this._blurPass2=new he.a({fragment:le.a.source("ecgl.ssr.blur"),clearColor:[0,0,0,0]}),this._ssrPass.setUniform("gBufferTexture1",b.normalTexture),this._ssrPass.setUniform("gBufferTexture2",b.depthTexture),this._blurPass1.setUniform("gBufferTexture1",b.normalTexture),this._blurPass1.setUniform("gBufferTexture2",b.depthTexture),this._blurPass2.setUniform("gBufferTexture1",b.normalTexture),this._blurPass2.setUniform("gBufferTexture2",b.depthTexture),this._blurPass2.material.define("fragment","VERTICAL"),this._blurPass2.material.define("fragment","BLEND"),this._texture1=new ue.a({type:fe.a.HALF_FLOAT}),this._texture2=new ue.a({type:fe.a.HALF_FLOAT}),this._texture3=new ue.a({type:fe.a.HALF_FLOAT}),this._frameBuffer=new ae.a({depthBuffer:!1})}E.prototype.update=function(b,z,ne,oe){var se=b.getWidth(),de=b.getHeight(),a=b.getDevicePixelRatio(),x=this._texture1,re=this._texture2,ce=this._texture3;re.width=se/2,re.height=de/2,x.width=se,x.height=de,ce.width=se*a,ce.height=de*a;var ge=this._frameBuffer,_e=this._ssrPass,ye=this._blurPass1,be=this._blurPass2,Se=new Oe.a;Oe.a.transpose(Se,z.worldTransform),_e.setUniform("sourceTexture",ne),_e.setUniform("projection",z.projectionMatrix.array),_e.setUniform("projectionInv",z.invProjectionMatrix.array),_e.setUniform("viewInverseTranspose",Se.array),_e.setUniform("nearZ",z.near),_e.setUniform("jitterOffset",oe/30),ye.setUniform("textureSize",[se/2,de/2]),be.setUniform("textureSize",[se,de]),be.setUniform("sourceTexture",ne),ye.setUniform("projection",z.projectionMatrix.array),be.setUniform("projection",z.projectionMatrix.array),ge.attach(x),ge.bind(b),_e.render(b),ge.attach(re),ye.setUniform("texture",x),ye.render(b),ge.attach(ce),be.setUniform("texture",re),be.render(b),ge.unbind(b)},E.prototype.getTargetTexture=function(){return this._texture3},E.prototype.setParameter=function(b,z){b==="maxIteration"?this._ssrPass.material.define("fragment","MAX_ITERATION",z):this._ssrPass.setUniform(b,z)},E.prototype.setSSAOTexture=function(b){var z=this._blurPass2;b?(z.material.enableTexture("ssaoTex"),z.material.set("ssaoTex",b)):z.material.disableTexture("ssaoTex")},E.prototype.dispose=function(b){this._texture1.dispose(b),this._texture2.dispose(b),this._texture3.dispose(b),this._frameBuffer.dispose(b)},Me.a=E},function(Ye,Me,pe){"use strict";Me.a=`@export ecgl.ssr.main
|
|
|
|
|
|
#define MAX_ITERATION 20;
|
|
|
|
|
|
uniform sampler2D sourceTexture;
|
|
|
uniform sampler2D gBufferTexture1;
|
|
|
uniform sampler2D gBufferTexture2;
|
|
|
|
|
|
uniform mat4 projection;
|
|
|
uniform mat4 projectionInv;
|
|
|
uniform mat4 viewInverseTranspose;
|
|
|
|
|
|
uniform float maxRayDistance: 50;
|
|
|
|
|
|
uniform float pixelStride: 16;
|
|
|
uniform float pixelStrideZCutoff: 50;
|
|
|
uniform float screenEdgeFadeStart: 0.9;
|
|
|
uniform float eyeFadeStart : 0.2; uniform float eyeFadeEnd: 0.8;
|
|
|
uniform float minGlossiness: 0.2; uniform float zThicknessThreshold: 10;
|
|
|
|
|
|
uniform float nearZ;
|
|
|
uniform vec2 viewportSize : VIEWPORT_SIZE;
|
|
|
|
|
|
uniform float jitterOffset: 0;
|
|
|
|
|
|
varying vec2 v_Texcoord;
|
|
|
|
|
|
#ifdef DEPTH_DECODE
|
|
|
@import clay.util.decode_float
|
|
|
#endif
|
|
|
|
|
|
float fetchDepth(sampler2D depthTexture, vec2 uv)
|
|
|
{
|
|
|
vec4 depthTexel = texture2D(depthTexture, uv);
|
|
|
return depthTexel.r * 2.0 - 1.0;
|
|
|
}
|
|
|
|
|
|
float linearDepth(float depth)
|
|
|
{
|
|
|
if (projection[3][3] == 0.0) {
|
|
|
return projection[3][2] / (depth * projection[2][3] - projection[2][2]);
|
|
|
}
|
|
|
else {
|
|
|
return (depth - projection[3][2]) / projection[2][2];
|
|
|
}
|
|
|
}
|
|
|
|
|
|
bool rayIntersectDepth(float rayZNear, float rayZFar, vec2 hitPixel)
|
|
|
{
|
|
|
if (rayZFar > rayZNear)
|
|
|
{
|
|
|
float t = rayZFar; rayZFar = rayZNear; rayZNear = t;
|
|
|
}
|
|
|
float cameraZ = linearDepth(fetchDepth(gBufferTexture2, hitPixel));
|
|
|
return rayZFar <= cameraZ && rayZNear >= cameraZ - zThicknessThreshold;
|
|
|
}
|
|
|
|
|
|
|
|
|
bool traceScreenSpaceRay(
|
|
|
vec3 rayOrigin, vec3 rayDir, float jitter,
|
|
|
out vec2 hitPixel, out vec3 hitPoint, out float iterationCount
|
|
|
)
|
|
|
{
|
|
|
float rayLength = ((rayOrigin.z + rayDir.z * maxRayDistance) > -nearZ)
|
|
|
? (-nearZ - rayOrigin.z) / rayDir.z : maxRayDistance;
|
|
|
|
|
|
vec3 rayEnd = rayOrigin + rayDir * rayLength;
|
|
|
|
|
|
vec4 H0 = projection * vec4(rayOrigin, 1.0);
|
|
|
vec4 H1 = projection * vec4(rayEnd, 1.0);
|
|
|
|
|
|
float k0 = 1.0 / H0.w, k1 = 1.0 / H1.w;
|
|
|
|
|
|
vec3 Q0 = rayOrigin * k0, Q1 = rayEnd * k1;
|
|
|
|
|
|
vec2 P0 = (H0.xy * k0 * 0.5 + 0.5) * viewportSize;
|
|
|
vec2 P1 = (H1.xy * k1 * 0.5 + 0.5) * viewportSize;
|
|
|
|
|
|
P1 += dot(P1 - P0, P1 - P0) < 0.0001 ? 0.01 : 0.0;
|
|
|
vec2 delta = P1 - P0;
|
|
|
|
|
|
bool permute = false;
|
|
|
if (abs(delta.x) < abs(delta.y)) {
|
|
|
permute = true;
|
|
|
delta = delta.yx;
|
|
|
P0 = P0.yx;
|
|
|
P1 = P1.yx;
|
|
|
}
|
|
|
float stepDir = sign(delta.x);
|
|
|
float invdx = stepDir / delta.x;
|
|
|
|
|
|
vec3 dQ = (Q1 - Q0) * invdx;
|
|
|
float dk = (k1 - k0) * invdx;
|
|
|
|
|
|
vec2 dP = vec2(stepDir, delta.y * invdx);
|
|
|
|
|
|
float strideScaler = 1.0 - min(1.0, -rayOrigin.z / pixelStrideZCutoff);
|
|
|
float pixStride = 1.0 + strideScaler * pixelStride;
|
|
|
|
|
|
dP *= pixStride; dQ *= pixStride; dk *= pixStride;
|
|
|
|
|
|
vec4 pqk = vec4(P0, Q0.z, k0);
|
|
|
vec4 dPQK = vec4(dP, dQ.z, dk);
|
|
|
|
|
|
pqk += dPQK * jitter;
|
|
|
float rayZFar = (dPQK.z * 0.5 + pqk.z) / (dPQK.w * 0.5 + pqk.w);
|
|
|
float rayZNear;
|
|
|
|
|
|
bool intersect = false;
|
|
|
|
|
|
vec2 texelSize = 1.0 / viewportSize;
|
|
|
|
|
|
iterationCount = 0.0;
|
|
|
|
|
|
for (int i = 0; i < MAX_ITERATION; i++)
|
|
|
{
|
|
|
pqk += dPQK;
|
|
|
|
|
|
rayZNear = rayZFar;
|
|
|
rayZFar = (dPQK.z * 0.5 + pqk.z) / (dPQK.w * 0.5 + pqk.w);
|
|
|
|
|
|
hitPixel = permute ? pqk.yx : pqk.xy;
|
|
|
hitPixel *= texelSize;
|
|
|
|
|
|
intersect = rayIntersectDepth(rayZNear, rayZFar, hitPixel);
|
|
|
|
|
|
iterationCount += 1.0;
|
|
|
|
|
|
if (intersect) {
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
Q0.xy += dQ.xy * iterationCount;
|
|
|
Q0.z = pqk.z;
|
|
|
hitPoint = Q0 / pqk.w;
|
|
|
|
|
|
return intersect;
|
|
|
}
|
|
|
|
|
|
float calculateAlpha(
|
|
|
float iterationCount, float reflectivity,
|
|
|
vec2 hitPixel, vec3 hitPoint, float dist, vec3 rayDir
|
|
|
)
|
|
|
{
|
|
|
float alpha = clamp(reflectivity, 0.0, 1.0);
|
|
|
alpha *= 1.0 - (iterationCount / float(MAX_ITERATION));
|
|
|
vec2 hitPixelNDC = hitPixel * 2.0 - 1.0;
|
|
|
float maxDimension = min(1.0, max(abs(hitPixelNDC.x), abs(hitPixelNDC.y)));
|
|
|
alpha *= 1.0 - max(0.0, maxDimension - screenEdgeFadeStart) / (1.0 - screenEdgeFadeStart);
|
|
|
|
|
|
float _eyeFadeStart = eyeFadeStart;
|
|
|
float _eyeFadeEnd = eyeFadeEnd;
|
|
|
if (_eyeFadeStart > _eyeFadeEnd) {
|
|
|
float tmp = _eyeFadeEnd;
|
|
|
_eyeFadeEnd = _eyeFadeStart;
|
|
|
_eyeFadeStart = tmp;
|
|
|
}
|
|
|
|
|
|
float eyeDir = clamp(rayDir.z, _eyeFadeStart, _eyeFadeEnd);
|
|
|
alpha *= 1.0 - (eyeDir - _eyeFadeStart) / (_eyeFadeEnd - _eyeFadeStart);
|
|
|
|
|
|
alpha *= 1.0 - clamp(dist / maxRayDistance, 0.0, 1.0);
|
|
|
|
|
|
return alpha;
|
|
|
}
|
|
|
|
|
|
@import clay.util.rand
|
|
|
|
|
|
@import clay.util.rgbm
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
vec4 normalAndGloss = texture2D(gBufferTexture1, v_Texcoord);
|
|
|
|
|
|
if (dot(normalAndGloss.rgb, vec3(1.0)) == 0.0) {
|
|
|
discard;
|
|
|
}
|
|
|
|
|
|
float g = normalAndGloss.a;
|
|
|
if (g <= minGlossiness) {
|
|
|
discard;
|
|
|
}
|
|
|
|
|
|
float reflectivity = (g - minGlossiness) / (1.0 - minGlossiness);
|
|
|
|
|
|
vec3 N = normalAndGloss.rgb * 2.0 - 1.0;
|
|
|
N = normalize((viewInverseTranspose * vec4(N, 0.0)).xyz);
|
|
|
|
|
|
vec4 projectedPos = vec4(v_Texcoord * 2.0 - 1.0, fetchDepth(gBufferTexture2, v_Texcoord), 1.0);
|
|
|
vec4 pos = projectionInv * projectedPos;
|
|
|
vec3 rayOrigin = pos.xyz / pos.w;
|
|
|
|
|
|
vec3 rayDir = normalize(reflect(normalize(rayOrigin), N));
|
|
|
vec2 hitPixel;
|
|
|
vec3 hitPoint;
|
|
|
float iterationCount;
|
|
|
|
|
|
vec2 uv2 = v_Texcoord * viewportSize;
|
|
|
float jitter = rand(fract(v_Texcoord + jitterOffset));
|
|
|
|
|
|
bool intersect = traceScreenSpaceRay(rayOrigin, rayDir, jitter, hitPixel, hitPoint, iterationCount);
|
|
|
|
|
|
float dist = distance(rayOrigin, hitPoint);
|
|
|
|
|
|
float alpha = calculateAlpha(iterationCount, reflectivity, hitPixel, hitPoint, dist, rayDir) * float(intersect);
|
|
|
|
|
|
vec3 hitNormal = texture2D(gBufferTexture1, hitPixel).rgb * 2.0 - 1.0;
|
|
|
hitNormal = normalize((viewInverseTranspose * vec4(hitNormal, 0.0)).xyz);
|
|
|
|
|
|
if (dot(hitNormal, rayDir) >= 0.0) {
|
|
|
discard;
|
|
|
}
|
|
|
|
|
|
|
|
|
if (!intersect) {
|
|
|
discard;
|
|
|
}
|
|
|
vec4 color = decodeHDR(texture2D(sourceTexture, hitPixel));
|
|
|
gl_FragColor = encodeHDR(vec4(color.rgb * alpha, color.a));
|
|
|
}
|
|
|
@end
|
|
|
|
|
|
@export ecgl.ssr.blur
|
|
|
|
|
|
uniform sampler2D texture;
|
|
|
uniform sampler2D gBufferTexture1;
|
|
|
uniform sampler2D gBufferTexture2;
|
|
|
uniform mat4 projection;
|
|
|
uniform float depthRange : 0.05;
|
|
|
|
|
|
varying vec2 v_Texcoord;
|
|
|
|
|
|
uniform vec2 textureSize;
|
|
|
uniform float blurSize : 4.0;
|
|
|
|
|
|
#ifdef BLEND
|
|
|
#ifdef SSAOTEX_ENABLED
|
|
|
uniform sampler2D ssaoTex;
|
|
|
#endif
|
|
|
uniform sampler2D sourceTexture;
|
|
|
#endif
|
|
|
|
|
|
float getLinearDepth(vec2 coord)
|
|
|
{
|
|
|
float depth = texture2D(gBufferTexture2, coord).r * 2.0 - 1.0;
|
|
|
return projection[3][2] / (depth * projection[2][3] - projection[2][2]);
|
|
|
}
|
|
|
|
|
|
@import clay.util.rgbm
|
|
|
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
@import clay.compositor.kernel.gaussian_9
|
|
|
|
|
|
vec4 centerNTexel = texture2D(gBufferTexture1, v_Texcoord);
|
|
|
float g = centerNTexel.a;
|
|
|
float maxBlurSize = clamp(1.0 - g + 0.1, 0.0, 1.0) * blurSize;
|
|
|
#ifdef VERTICAL
|
|
|
vec2 off = vec2(0.0, maxBlurSize / textureSize.y);
|
|
|
#else
|
|
|
vec2 off = vec2(maxBlurSize / textureSize.x, 0.0);
|
|
|
#endif
|
|
|
|
|
|
vec2 coord = v_Texcoord;
|
|
|
|
|
|
vec4 sum = vec4(0.0);
|
|
|
float weightAll = 0.0;
|
|
|
|
|
|
vec3 cN = centerNTexel.rgb * 2.0 - 1.0;
|
|
|
float cD = getLinearDepth(v_Texcoord);
|
|
|
for (int i = 0; i < 9; i++) {
|
|
|
vec2 coord = clamp((float(i) - 4.0) * off + v_Texcoord, vec2(0.0), vec2(1.0));
|
|
|
float w = gaussianKernel[i]
|
|
|
* clamp(dot(cN, texture2D(gBufferTexture1, coord).rgb * 2.0 - 1.0), 0.0, 1.0);
|
|
|
float d = getLinearDepth(coord);
|
|
|
w *= (1.0 - smoothstep(abs(cD - d) / depthRange, 0.0, 1.0));
|
|
|
|
|
|
weightAll += w;
|
|
|
sum += decodeHDR(texture2D(texture, coord)) * w;
|
|
|
}
|
|
|
|
|
|
#ifdef BLEND
|
|
|
float aoFactor = 1.0;
|
|
|
#ifdef SSAOTEX_ENABLED
|
|
|
aoFactor = texture2D(ssaoTex, v_Texcoord).r;
|
|
|
#endif
|
|
|
gl_FragColor = encodeHDR(
|
|
|
sum / weightAll * aoFactor + decodeHDR(texture2D(sourceTexture, v_Texcoord))
|
|
|
);
|
|
|
#else
|
|
|
gl_FragColor = encodeHDR(sum / weightAll);
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
@end`},function(Ye,Me,pe){"use strict";Me.a=[0,0,-.321585265978,-.154972575841,.458126042375,.188473391593,.842080129861,.527766490688,.147304551086,-.659453822776,-.331943915203,-.940619700594,.0479226680259,.54812163202,.701581552186,-.709825561388,-.295436780218,.940589268233,-.901489676764,.237713156085,.973570876096,-.109899459384,-.866792314779,-.451805525005,.330975007087,.800048655954,-.344275183665,.381779221166,-.386139432542,-.437418421534,-.576478634965,-.0148463392551,.385798197415,-.262426961053,-.666302061145,.682427250835,-.628010632582,-.732836215494,.10163141741,-.987658134403,.711995289051,-.320024291314,.0296005138058,.950296523438,.0130612307608,-.351024443122,-.879596633704,-.10478487883,.435712737232,.504254490347,.779203817497,.206477676721,.388264289969,-.896736162545,-.153106280781,-.629203242522,-.245517550697,.657969239148,.126830499058,.26862328493,-.634888119007,-.302301223431,.617074219636,.779817204925]},function(Ye,Me,pe){"use strict";var Oe=pe(5),ve=pe(6),ue=pe(7),fe=pe(10),he=pe(17),le=pe(14),ae=pe(54),ie=pe(168);ue.a.import(ie.a);function me(z,ne,oe,se,de){var a=z.gl;ne.setUniform(a,"1i",oe,de),a.activeTexture(a.TEXTURE0+de),se.isRenderable()?se.bind(z):se.unbind(z)}function E(z,ne,oe,se,de){var a,x,re,ce,ge=z.gl;return function(_e,ye,be){if(!(ce&&ce.material===_e.material)){var Se=_e.material,Be=_e.__program,Ae=Se.get("roughness");Ae==null&&(Ae=1);var we=Se.get("normalMap")||ne,Ue=Se.get("roughnessMap"),Pe=Se.get("bumpMap"),ze=Se.get("uvRepeat"),Ke=Se.get("uvOffset"),Ne=Se.get("detailUvRepeat"),Re=Se.get("detailUvOffset"),$e=!!Pe&&Se.isTextureEnabled("bumpMap"),nt=!!Ue&&Se.isTextureEnabled("roughnessMap"),ut=Se.isDefined("fragment","DOUBLE_SIDED");Pe=Pe||oe,Ue=Ue||se,be!==ye?(ye.set("normalMap",we),ye.set("bumpMap",Pe),ye.set("roughnessMap",Ue),ye.set("useBumpMap",$e),ye.set("useRoughnessMap",nt),ye.set("doubleSide",ut),ze!=null&&ye.set("uvRepeat",ze),Ke!=null&&ye.set("uvOffset",Ke),Ne!=null&&ye.set("detailUvRepeat",Ne),Re!=null&&ye.set("detailUvOffset",Re),ye.set("roughness",Ae)):(Be.setUniform(ge,"1f","roughness",Ae),a!==we&&me(z,Be,"normalMap",we,0),x!==Pe&&Pe&&me(z,Be,"bumpMap",Pe,1),re!==Ue&&Ue&&me(z,Be,"roughnessMap",Ue,2),ze!=null&&Be.setUniform(ge,"2f","uvRepeat",ze),Ke!=null&&Be.setUniform(ge,"2f","uvOffset",Ke),Ne!=null&&Be.setUniform(ge,"2f","detailUvRepeat",Ne),Re!=null&&Be.setUniform(ge,"2f","detailUvOffset",Re),Be.setUniform(ge,"1i","useBumpMap",+$e),Be.setUniform(ge,"1i","useRoughnessMap",+nt),Be.setUniform(ge,"1i","doubleSide",+ut)),a=we,x=Pe,re=Ue,ce=_e}}}function b(z){z=z||{},this._depthTex=new Oe.a({format:ve.a.DEPTH_COMPONENT,type:ve.a.UNSIGNED_INT}),this._normalTex=new Oe.a({type:ve.a.HALF_FLOAT}),this._framebuffer=new fe.a,this._framebuffer.attach(this._normalTex),this._framebuffer.attach(this._depthTex,fe.a.DEPTH_ATTACHMENT),this._normalMaterial=new he.a({shader:new ue.a(ue.a.source("ecgl.normal.vertex"),ue.a.source("ecgl.normal.fragment"))}),this._normalMaterial.enableTexture(["normalMap","bumpMap","roughnessMap"]),this._defaultNormalMap=ae.a.createBlank("#000"),this._defaultBumpMap=ae.a.createBlank("#000"),this._defaultRoughessMap=ae.a.createBlank("#000"),this._debugPass=new le.a({fragment:ue.a.source("clay.compositor.output")}),this._debugPass.setUniform("texture",this._normalTex),this._debugPass.material.undefine("fragment","OUTPUT_ALPHA")}b.prototype.getDepthTexture=function(){return this._depthTex},b.prototype.getNormalTexture=function(){return this._normalTex},b.prototype.update=function(z,ne,oe){var se=z.getWidth(),de=z.getHeight(),a=this._depthTex,x=this._normalTex,re=this._normalMaterial;a.width=se,a.height=de,x.width=se,x.height=de;var ce=ne.opaqueList;this._framebuffer.bind(z),z.gl.clearColor(0,0,0,0),z.gl.clear(z.gl.COLOR_BUFFER_BIT|z.gl.DEPTH_BUFFER_BIT),z.gl.disable(z.gl.BLEND),z.renderPass(ce,oe,{getMaterial:function(){return re},ifRender:function(ge){return ge.renderNormal},beforeRender:E(z,this._defaultNormalMap,this._defaultBumpMap,this._defaultRoughessMap,this._normalMaterial),sort:z.opaqueSortCompare}),this._framebuffer.unbind(z)},b.prototype.renderDebug=function(z){this._debugPass.render(z)},b.prototype.dispose=function(z){this._depthTex.dispose(z),this._normalTex.dispose(z)},Me.a=b},function(Ye,Me,pe){"use strict";Me.a=`@export ecgl.normal.vertex
|
|
|
|
|
|
@import ecgl.common.transformUniforms
|
|
|
|
|
|
@import ecgl.common.uv.header
|
|
|
|
|
|
@import ecgl.common.attributes
|
|
|
|
|
|
varying vec3 v_Normal;
|
|
|
varying vec3 v_WorldPosition;
|
|
|
|
|
|
@import ecgl.common.normalMap.vertexHeader
|
|
|
|
|
|
@import ecgl.common.vertexAnimation.header
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
|
|
|
@import ecgl.common.vertexAnimation.main
|
|
|
|
|
|
@import ecgl.common.uv.main
|
|
|
|
|
|
v_Normal = normalize((worldInverseTranspose * vec4(normal, 0.0)).xyz);
|
|
|
v_WorldPosition = (world * vec4(pos, 1.0)).xyz;
|
|
|
|
|
|
@import ecgl.common.normalMap.vertexMain
|
|
|
|
|
|
gl_Position = worldViewProjection * vec4(pos, 1.0);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
@export ecgl.normal.fragment
|
|
|
|
|
|
#define ROUGHNESS_CHANEL 0
|
|
|
|
|
|
uniform bool useBumpMap;
|
|
|
uniform bool useRoughnessMap;
|
|
|
uniform bool doubleSide;
|
|
|
uniform float roughness;
|
|
|
|
|
|
@import ecgl.common.uv.fragmentHeader
|
|
|
|
|
|
varying vec3 v_Normal;
|
|
|
varying vec3 v_WorldPosition;
|
|
|
|
|
|
uniform mat4 viewInverse : VIEWINVERSE;
|
|
|
|
|
|
@import ecgl.common.normalMap.fragmentHeader
|
|
|
@import ecgl.common.bumpMap.header
|
|
|
|
|
|
uniform sampler2D roughnessMap;
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
vec3 N = v_Normal;
|
|
|
|
|
|
bool flipNormal = false;
|
|
|
if (doubleSide) {
|
|
|
vec3 eyePos = viewInverse[3].xyz;
|
|
|
vec3 V = normalize(eyePos - v_WorldPosition);
|
|
|
|
|
|
if (dot(N, V) < 0.0) {
|
|
|
flipNormal = true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@import ecgl.common.normalMap.fragmentMain
|
|
|
|
|
|
if (useBumpMap) {
|
|
|
N = bumpNormal(v_WorldPosition, v_Normal, N);
|
|
|
}
|
|
|
|
|
|
float g = 1.0 - roughness;
|
|
|
|
|
|
if (useRoughnessMap) {
|
|
|
float g2 = 1.0 - texture2D(roughnessMap, v_DetailTexcoord)[ROUGHNESS_CHANEL];
|
|
|
g = clamp(g2 + (g - 0.5) * 2.0, 0.0, 1.0);
|
|
|
}
|
|
|
|
|
|
if (flipNormal) {
|
|
|
N = -N;
|
|
|
}
|
|
|
|
|
|
gl_FragColor.rgb = (N.xyz + 1.0) * 0.5;
|
|
|
gl_FragColor.a = g;
|
|
|
}
|
|
|
@end`},function(Ye,Me,pe){"use strict";var Oe=pe(9),ve=pe(4),ue=pe(5),fe=pe(6),he=pe(14),le=pe(7),ae=pe(10);function ie(me){me=me||{},this._edgePass=new he.a({fragment:le.a.source("ecgl.edge")}),this._edgePass.setUniform("normalTexture",me.normalTexture),this._edgePass.setUniform("depthTexture",me.depthTexture),this._targetTexture=new ue.a({type:fe.a.HALF_FLOAT}),this._frameBuffer=new ae.a,this._frameBuffer.attach(this._targetTexture)}ie.prototype.update=function(me,E,b,z){var ne=me.getWidth(),oe=me.getHeight(),se=this._targetTexture;se.width=ne,se.height=oe;var de=this._frameBuffer;de.bind(me),this._edgePass.setUniform("projectionInv",E.invProjectionMatrix.array),this._edgePass.setUniform("textureSize",[ne,oe]),this._edgePass.setUniform("texture",b),this._edgePass.render(me),de.unbind(me)},ie.prototype.getTargetTexture=function(){return this._targetTexture},ie.prototype.setParameter=function(me,E){this._edgePass.setUniform(me,E)},ie.prototype.dispose=function(me){this._targetTexture.dispose(me),this._frameBuffer.dispose(me)},Me.a=ie},function(Ye,Me,pe){"use strict";Me.a={type:"compositor",nodes:[{name:"source",type:"texture",outputs:{color:{}}},{name:"source_half",shader:"#source(clay.compositor.downsample)",inputs:{texture:"source"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"bright",shader:"#source(clay.compositor.bright)",inputs:{texture:"source_half"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{threshold:2,scale:4,textureSize:"expr([width * 1.0 / 2, height / 2])"}},{name:"bright_downsample_4",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 2, height / 2] )"}},{name:"bright_downsample_8",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_4"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 4, height / 4] )"}},{name:"bright_downsample_16",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_8"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 8, height / 8] )"}},{name:"bright_downsample_32",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_16"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 32)",height:"expr(height * 1.0 / 32)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 16, height / 16] )"}},{name:"bright_upsample_16_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_32"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 32, height / 32] )"}},{name:"bright_upsample_16_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_16_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 16, height * 1.0 / 16] )"}},{name:"bright_upsample_8_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_16"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 16, height * 1.0 / 16] )"}},{name:"bright_upsample_8_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_8_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 8, height * 1.0 / 8] )"}},{name:"bright_upsample_8_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_8_blur_v",texture2:"bright_upsample_16_blur_v"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_4_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_8"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 8, height * 1.0 / 8] )"}},{name:"bright_upsample_4_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_4_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 4, height * 1.0 / 4] )"}},{name:"bright_upsample_4_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_4_blur_v",texture2:"bright_upsample_8_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_2_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_4"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 4, height * 1.0 / 4] )"}},{name:"bright_upsample_2_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_2_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 2, height * 1.0 / 2] )"}},{name:"bright_upsample_2_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_2_blur_v",texture2:"bright_upsample_4_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_full_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 2, height * 1.0 / 2] )"}},{name:"bright_upsample_full_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_full_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"bloom_composite",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_full_blur_v",texture2:"bright_upsample_2_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"coc",shader:"#source(ecgl.dof.coc)",outputs:{color:{parameters:{minFilter:"NEAREST",magFilter:"NEAREST",width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},parameters:{focalDist:50,focalRange:30}},{name:"dof_far_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"source",coc:"coc"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"dof_near_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"source",coc:"coc"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"},defines:{BLUR_NEARFIELD:null}},{name:"dof_coc_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"coc"},outputs:{color:{parameters:{minFilter:"NEAREST",magFilter:"NEAREST",width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"},defines:{BLUR_COC:null}},{name:"dof_composite",shader:"#source(ecgl.dof.composite)",inputs:{original:"source",blurred:"dof_far_blur",nearfield:"dof_near_blur",coc:"coc",nearcoc:"dof_coc_blur"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}}},{name:"composite",shader:"#source(clay.compositor.hdr.composite)",inputs:{texture:"source",bloom:"bloom_composite"},defines:{}},{name:"FXAA",shader:"#source(clay.compositor.fxaa)",inputs:{texture:"composite"}}]}},function(Ye,Me,pe){"use strict";Me.a=`@export clay.compositor.kernel.gaussian_9
|
|
|
float gaussianKernel[9];
|
|
|
gaussianKernel[0] = 0.07;
|
|
|
gaussianKernel[1] = 0.09;
|
|
|
gaussianKernel[2] = 0.12;
|
|
|
gaussianKernel[3] = 0.14;
|
|
|
gaussianKernel[4] = 0.16;
|
|
|
gaussianKernel[5] = 0.14;
|
|
|
gaussianKernel[6] = 0.12;
|
|
|
gaussianKernel[7] = 0.09;
|
|
|
gaussianKernel[8] = 0.07;
|
|
|
@end
|
|
|
@export clay.compositor.kernel.gaussian_13
|
|
|
float gaussianKernel[13];
|
|
|
gaussianKernel[0] = 0.02;
|
|
|
gaussianKernel[1] = 0.03;
|
|
|
gaussianKernel[2] = 0.06;
|
|
|
gaussianKernel[3] = 0.08;
|
|
|
gaussianKernel[4] = 0.11;
|
|
|
gaussianKernel[5] = 0.13;
|
|
|
gaussianKernel[6] = 0.14;
|
|
|
gaussianKernel[7] = 0.13;
|
|
|
gaussianKernel[8] = 0.11;
|
|
|
gaussianKernel[9] = 0.08;
|
|
|
gaussianKernel[10] = 0.06;
|
|
|
gaussianKernel[11] = 0.03;
|
|
|
gaussianKernel[12] = 0.02;
|
|
|
@end
|
|
|
@export clay.compositor.gaussian_blur
|
|
|
#define SHADER_NAME gaussian_blur
|
|
|
uniform sampler2D texture;varying vec2 v_Texcoord;
|
|
|
uniform float blurSize : 2.0;
|
|
|
uniform vec2 textureSize : [512.0, 512.0];
|
|
|
uniform float blurDir : 0.0;
|
|
|
@import clay.util.rgbm
|
|
|
@import clay.util.clamp_sample
|
|
|
void main (void)
|
|
|
{
|
|
|
@import clay.compositor.kernel.gaussian_9
|
|
|
vec2 off = blurSize / textureSize;
|
|
|
off *= vec2(1.0 - blurDir, blurDir);
|
|
|
vec4 sum = vec4(0.0);
|
|
|
float weightAll = 0.0;
|
|
|
for (int i = 0; i < 9; i++) {
|
|
|
float w = gaussianKernel[i];
|
|
|
vec4 texel = decodeHDR(clampSample(texture, v_Texcoord + float(i - 4) * off));
|
|
|
sum += texel * w;
|
|
|
weightAll += w;
|
|
|
}
|
|
|
gl_FragColor = encodeHDR(sum / max(weightAll, 0.01));
|
|
|
}
|
|
|
@end
|
|
|
`},function(Ye,Me,pe){"use strict";Me.a=`
|
|
|
@export clay.compositor.lut
|
|
|
varying vec2 v_Texcoord;
|
|
|
uniform sampler2D texture;
|
|
|
uniform sampler2D lookup;
|
|
|
void main()
|
|
|
{
|
|
|
vec4 tex = texture2D(texture, v_Texcoord);
|
|
|
float blueColor = tex.b * 63.0;
|
|
|
vec2 quad1;
|
|
|
quad1.y = floor(floor(blueColor) / 8.0);
|
|
|
quad1.x = floor(blueColor) - (quad1.y * 8.0);
|
|
|
vec2 quad2;
|
|
|
quad2.y = floor(ceil(blueColor) / 8.0);
|
|
|
quad2.x = ceil(blueColor) - (quad2.y * 8.0);
|
|
|
vec2 texPos1;
|
|
|
texPos1.x = (quad1.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.r);
|
|
|
texPos1.y = (quad1.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.g);
|
|
|
vec2 texPos2;
|
|
|
texPos2.x = (quad2.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.r);
|
|
|
texPos2.y = (quad2.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.g);
|
|
|
vec4 newColor1 = texture2D(lookup, texPos1);
|
|
|
vec4 newColor2 = texture2D(lookup, texPos2);
|
|
|
vec4 newColor = mix(newColor1, newColor2, fract(blueColor));
|
|
|
gl_FragColor = vec4(newColor.rgb, tex.w);
|
|
|
}
|
|
|
@end`},function(Ye,Me,pe){"use strict";Me.a=`@export clay.compositor.output
|
|
|
#define OUTPUT_ALPHA
|
|
|
varying vec2 v_Texcoord;
|
|
|
uniform sampler2D texture;
|
|
|
@import clay.util.rgbm
|
|
|
void main()
|
|
|
{
|
|
|
vec4 tex = decodeHDR(texture2D(texture, v_Texcoord));
|
|
|
gl_FragColor.rgb = tex.rgb;
|
|
|
#ifdef OUTPUT_ALPHA
|
|
|
gl_FragColor.a = tex.a;
|
|
|
#else
|
|
|
gl_FragColor.a = 1.0;
|
|
|
#endif
|
|
|
gl_FragColor = encodeHDR(gl_FragColor);
|
|
|
#ifdef PREMULTIPLY_ALPHA
|
|
|
gl_FragColor.rgb *= gl_FragColor.a;
|
|
|
#endif
|
|
|
}
|
|
|
@end`},function(Ye,Me,pe){"use strict";Me.a=`@export clay.compositor.bright
|
|
|
uniform sampler2D texture;
|
|
|
uniform float threshold : 1;
|
|
|
uniform float scale : 1.0;
|
|
|
uniform vec2 textureSize: [512, 512];
|
|
|
varying vec2 v_Texcoord;
|
|
|
const vec3 lumWeight = vec3(0.2125, 0.7154, 0.0721);
|
|
|
@import clay.util.rgbm
|
|
|
vec4 median(vec4 a, vec4 b, vec4 c)
|
|
|
{
|
|
|
return a + b + c - min(min(a, b), c) - max(max(a, b), c);
|
|
|
}
|
|
|
void main()
|
|
|
{
|
|
|
vec4 texel = decodeHDR(texture2D(texture, v_Texcoord));
|
|
|
#ifdef ANTI_FLICKER
|
|
|
vec3 d = 1.0 / textureSize.xyx * vec3(1.0, 1.0, 0.0);
|
|
|
vec4 s1 = decodeHDR(texture2D(texture, v_Texcoord - d.xz));
|
|
|
vec4 s2 = decodeHDR(texture2D(texture, v_Texcoord + d.xz));
|
|
|
vec4 s3 = decodeHDR(texture2D(texture, v_Texcoord - d.zy));
|
|
|
vec4 s4 = decodeHDR(texture2D(texture, v_Texcoord + d.zy));
|
|
|
texel = median(median(texel, s1, s2), s3, s4);
|
|
|
#endif
|
|
|
float lum = dot(texel.rgb , lumWeight);
|
|
|
vec4 color;
|
|
|
if (lum > threshold && texel.a > 0.0)
|
|
|
{
|
|
|
color = vec4(texel.rgb * scale, texel.a * scale);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
color = vec4(0.0);
|
|
|
}
|
|
|
gl_FragColor = encodeHDR(color);
|
|
|
}
|
|
|
@end
|
|
|
`},function(Ye,Me,pe){"use strict";Me.a=`@export clay.compositor.downsample
|
|
|
uniform sampler2D texture;
|
|
|
uniform vec2 textureSize : [512, 512];
|
|
|
varying vec2 v_Texcoord;
|
|
|
@import clay.util.rgbm
|
|
|
float brightness(vec3 c)
|
|
|
{
|
|
|
return max(max(c.r, c.g), c.b);
|
|
|
}
|
|
|
@import clay.util.clamp_sample
|
|
|
void main()
|
|
|
{
|
|
|
vec4 d = vec4(-1.0, -1.0, 1.0, 1.0) / textureSize.xyxy;
|
|
|
#ifdef ANTI_FLICKER
|
|
|
vec3 s1 = decodeHDR(clampSample(texture, v_Texcoord + d.xy)).rgb;
|
|
|
vec3 s2 = decodeHDR(clampSample(texture, v_Texcoord + d.zy)).rgb;
|
|
|
vec3 s3 = decodeHDR(clampSample(texture, v_Texcoord + d.xw)).rgb;
|
|
|
vec3 s4 = decodeHDR(clampSample(texture, v_Texcoord + d.zw)).rgb;
|
|
|
float s1w = 1.0 / (brightness(s1) + 1.0);
|
|
|
float s2w = 1.0 / (brightness(s2) + 1.0);
|
|
|
float s3w = 1.0 / (brightness(s3) + 1.0);
|
|
|
float s4w = 1.0 / (brightness(s4) + 1.0);
|
|
|
float oneDivideSum = 1.0 / (s1w + s2w + s3w + s4w);
|
|
|
vec4 color = vec4(
|
|
|
(s1 * s1w + s2 * s2w + s3 * s3w + s4 * s4w) * oneDivideSum,
|
|
|
1.0
|
|
|
);
|
|
|
#else
|
|
|
vec4 color = decodeHDR(clampSample(texture, v_Texcoord + d.xy));
|
|
|
color += decodeHDR(clampSample(texture, v_Texcoord + d.zy));
|
|
|
color += decodeHDR(clampSample(texture, v_Texcoord + d.xw));
|
|
|
color += decodeHDR(clampSample(texture, v_Texcoord + d.zw));
|
|
|
color *= 0.25;
|
|
|
#endif
|
|
|
gl_FragColor = encodeHDR(color);
|
|
|
}
|
|
|
@end`},function(Ye,Me,pe){"use strict";Me.a=`
|
|
|
@export clay.compositor.upsample
|
|
|
#define HIGH_QUALITY
|
|
|
uniform sampler2D texture;
|
|
|
uniform vec2 textureSize : [512, 512];
|
|
|
uniform float sampleScale: 0.5;
|
|
|
varying vec2 v_Texcoord;
|
|
|
@import clay.util.rgbm
|
|
|
@import clay.util.clamp_sample
|
|
|
void main()
|
|
|
{
|
|
|
#ifdef HIGH_QUALITY
|
|
|
vec4 d = vec4(1.0, 1.0, -1.0, 0.0) / textureSize.xyxy * sampleScale;
|
|
|
vec4 s;
|
|
|
s = decodeHDR(clampSample(texture, v_Texcoord - d.xy));
|
|
|
s += decodeHDR(clampSample(texture, v_Texcoord - d.wy)) * 2.0;
|
|
|
s += decodeHDR(clampSample(texture, v_Texcoord - d.zy));
|
|
|
s += decodeHDR(clampSample(texture, v_Texcoord + d.zw)) * 2.0;
|
|
|
s += decodeHDR(clampSample(texture, v_Texcoord )) * 4.0;
|
|
|
s += decodeHDR(clampSample(texture, v_Texcoord + d.xw)) * 2.0;
|
|
|
s += decodeHDR(clampSample(texture, v_Texcoord + d.zy));
|
|
|
s += decodeHDR(clampSample(texture, v_Texcoord + d.wy)) * 2.0;
|
|
|
s += decodeHDR(clampSample(texture, v_Texcoord + d.xy));
|
|
|
gl_FragColor = encodeHDR(s / 16.0);
|
|
|
#else
|
|
|
vec4 d = vec4(-1.0, -1.0, +1.0, +1.0) / textureSize.xyxy;
|
|
|
vec4 s;
|
|
|
s = decodeHDR(clampSample(texture, v_Texcoord + d.xy));
|
|
|
s += decodeHDR(clampSample(texture, v_Texcoord + d.zy));
|
|
|
s += decodeHDR(clampSample(texture, v_Texcoord + d.xw));
|
|
|
s += decodeHDR(clampSample(texture, v_Texcoord + d.zw));
|
|
|
gl_FragColor = encodeHDR(s / 4.0);
|
|
|
#endif
|
|
|
}
|
|
|
@end`},function(Ye,Me,pe){"use strict";Me.a=`@export clay.compositor.hdr.composite
|
|
|
uniform sampler2D texture;
|
|
|
#ifdef BLOOM_ENABLED
|
|
|
uniform sampler2D bloom;
|
|
|
#endif
|
|
|
#ifdef LENSFLARE_ENABLED
|
|
|
uniform sampler2D lensflare;
|
|
|
uniform sampler2D lensdirt;
|
|
|
#endif
|
|
|
#ifdef LUM_ENABLED
|
|
|
uniform sampler2D lum;
|
|
|
#endif
|
|
|
#ifdef LUT_ENABLED
|
|
|
uniform sampler2D lut;
|
|
|
#endif
|
|
|
#ifdef COLOR_CORRECTION
|
|
|
uniform float brightness : 0.0;
|
|
|
uniform float contrast : 1.0;
|
|
|
uniform float saturation : 1.0;
|
|
|
#endif
|
|
|
#ifdef VIGNETTE
|
|
|
uniform float vignetteDarkness: 1.0;
|
|
|
uniform float vignetteOffset: 1.0;
|
|
|
#endif
|
|
|
uniform float exposure : 1.0;
|
|
|
uniform float bloomIntensity : 0.25;
|
|
|
uniform float lensflareIntensity : 1;
|
|
|
varying vec2 v_Texcoord;
|
|
|
@import clay.util.srgb
|
|
|
vec3 ACESToneMapping(vec3 color)
|
|
|
{
|
|
|
const float A = 2.51;
|
|
|
const float B = 0.03;
|
|
|
const float C = 2.43;
|
|
|
const float D = 0.59;
|
|
|
const float E = 0.14;
|
|
|
return (color * (A * color + B)) / (color * (C * color + D) + E);
|
|
|
}
|
|
|
float eyeAdaption(float fLum)
|
|
|
{
|
|
|
return mix(0.2, fLum, 0.5);
|
|
|
}
|
|
|
#ifdef LUT_ENABLED
|
|
|
vec3 lutTransform(vec3 color) {
|
|
|
float blueColor = color.b * 63.0;
|
|
|
vec2 quad1;
|
|
|
quad1.y = floor(floor(blueColor) / 8.0);
|
|
|
quad1.x = floor(blueColor) - (quad1.y * 8.0);
|
|
|
vec2 quad2;
|
|
|
quad2.y = floor(ceil(blueColor) / 8.0);
|
|
|
quad2.x = ceil(blueColor) - (quad2.y * 8.0);
|
|
|
vec2 texPos1;
|
|
|
texPos1.x = (quad1.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.r);
|
|
|
texPos1.y = (quad1.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.g);
|
|
|
vec2 texPos2;
|
|
|
texPos2.x = (quad2.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.r);
|
|
|
texPos2.y = (quad2.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.g);
|
|
|
vec4 newColor1 = texture2D(lut, texPos1);
|
|
|
vec4 newColor2 = texture2D(lut, texPos2);
|
|
|
vec4 newColor = mix(newColor1, newColor2, fract(blueColor));
|
|
|
return newColor.rgb;
|
|
|
}
|
|
|
#endif
|
|
|
@import clay.util.rgbm
|
|
|
void main()
|
|
|
{
|
|
|
vec4 texel = vec4(0.0);
|
|
|
vec4 originalTexel = vec4(0.0);
|
|
|
#ifdef TEXTURE_ENABLED
|
|
|
texel = decodeHDR(texture2D(texture, v_Texcoord));
|
|
|
originalTexel = texel;
|
|
|
#endif
|
|
|
#ifdef BLOOM_ENABLED
|
|
|
vec4 bloomTexel = decodeHDR(texture2D(bloom, v_Texcoord));
|
|
|
texel.rgb += bloomTexel.rgb * bloomIntensity;
|
|
|
texel.a += bloomTexel.a * bloomIntensity;
|
|
|
#endif
|
|
|
#ifdef LENSFLARE_ENABLED
|
|
|
texel += decodeHDR(texture2D(lensflare, v_Texcoord)) * texture2D(lensdirt, v_Texcoord) * lensflareIntensity;
|
|
|
#endif
|
|
|
texel.a = min(texel.a, 1.0);
|
|
|
#ifdef LUM_ENABLED
|
|
|
float fLum = texture2D(lum, vec2(0.5, 0.5)).r;
|
|
|
float adaptedLumDest = 3.0 / (max(0.1, 1.0 + 10.0*eyeAdaption(fLum)));
|
|
|
float exposureBias = adaptedLumDest * exposure;
|
|
|
#else
|
|
|
float exposureBias = exposure;
|
|
|
#endif
|
|
|
texel.rgb *= exposureBias;
|
|
|
texel.rgb = ACESToneMapping(texel.rgb);
|
|
|
texel = linearTosRGB(texel);
|
|
|
#ifdef LUT_ENABLED
|
|
|
texel.rgb = lutTransform(clamp(texel.rgb,vec3(0.0),vec3(1.0)));
|
|
|
#endif
|
|
|
#ifdef COLOR_CORRECTION
|
|
|
texel.rgb = clamp(texel.rgb + vec3(brightness), 0.0, 1.0);
|
|
|
texel.rgb = clamp((texel.rgb - vec3(0.5))*contrast+vec3(0.5), 0.0, 1.0);
|
|
|
float lum = dot(texel.rgb, vec3(0.2125, 0.7154, 0.0721));
|
|
|
texel.rgb = mix(vec3(lum), texel.rgb, saturation);
|
|
|
#endif
|
|
|
#ifdef VIGNETTE
|
|
|
vec2 uv = (v_Texcoord - vec2(0.5)) * vec2(vignetteOffset);
|
|
|
texel.rgb = mix(texel.rgb, vec3(1.0 - vignetteDarkness), dot(uv, uv));
|
|
|
#endif
|
|
|
gl_FragColor = encodeHDR(texel);
|
|
|
#ifdef DEBUG
|
|
|
#if DEBUG == 1
|
|
|
gl_FragColor = encodeHDR(decodeHDR(texture2D(texture, v_Texcoord)));
|
|
|
#elif DEBUG == 2
|
|
|
gl_FragColor = encodeHDR(decodeHDR(texture2D(bloom, v_Texcoord)) * bloomIntensity);
|
|
|
#elif DEBUG == 3
|
|
|
gl_FragColor = encodeHDR(decodeHDR(texture2D(lensflare, v_Texcoord) * lensflareIntensity));
|
|
|
#endif
|
|
|
#endif
|
|
|
if (originalTexel.a <= 0.01 && gl_FragColor.a > 1e-5) {
|
|
|
gl_FragColor.a = dot(gl_FragColor.rgb, vec3(0.2125, 0.7154, 0.0721));
|
|
|
}
|
|
|
#ifdef PREMULTIPLY_ALPHA
|
|
|
gl_FragColor.rgb *= gl_FragColor.a;
|
|
|
#endif
|
|
|
}
|
|
|
@end`},function(Ye,Me,pe){"use strict";Me.a=`@export clay.compositor.blend
|
|
|
#define SHADER_NAME blend
|
|
|
#ifdef TEXTURE1_ENABLED
|
|
|
uniform sampler2D texture1;
|
|
|
uniform float weight1 : 1.0;
|
|
|
#endif
|
|
|
#ifdef TEXTURE2_ENABLED
|
|
|
uniform sampler2D texture2;
|
|
|
uniform float weight2 : 1.0;
|
|
|
#endif
|
|
|
#ifdef TEXTURE3_ENABLED
|
|
|
uniform sampler2D texture3;
|
|
|
uniform float weight3 : 1.0;
|
|
|
#endif
|
|
|
#ifdef TEXTURE4_ENABLED
|
|
|
uniform sampler2D texture4;
|
|
|
uniform float weight4 : 1.0;
|
|
|
#endif
|
|
|
#ifdef TEXTURE5_ENABLED
|
|
|
uniform sampler2D texture5;
|
|
|
uniform float weight5 : 1.0;
|
|
|
#endif
|
|
|
#ifdef TEXTURE6_ENABLED
|
|
|
uniform sampler2D texture6;
|
|
|
uniform float weight6 : 1.0;
|
|
|
#endif
|
|
|
varying vec2 v_Texcoord;
|
|
|
@import clay.util.rgbm
|
|
|
void main()
|
|
|
{
|
|
|
vec4 tex = vec4(0.0);
|
|
|
#ifdef TEXTURE1_ENABLED
|
|
|
tex += decodeHDR(texture2D(texture1, v_Texcoord)) * weight1;
|
|
|
#endif
|
|
|
#ifdef TEXTURE2_ENABLED
|
|
|
tex += decodeHDR(texture2D(texture2, v_Texcoord)) * weight2;
|
|
|
#endif
|
|
|
#ifdef TEXTURE3_ENABLED
|
|
|
tex += decodeHDR(texture2D(texture3, v_Texcoord)) * weight3;
|
|
|
#endif
|
|
|
#ifdef TEXTURE4_ENABLED
|
|
|
tex += decodeHDR(texture2D(texture4, v_Texcoord)) * weight4;
|
|
|
#endif
|
|
|
#ifdef TEXTURE5_ENABLED
|
|
|
tex += decodeHDR(texture2D(texture5, v_Texcoord)) * weight5;
|
|
|
#endif
|
|
|
#ifdef TEXTURE6_ENABLED
|
|
|
tex += decodeHDR(texture2D(texture6, v_Texcoord)) * weight6;
|
|
|
#endif
|
|
|
gl_FragColor = encodeHDR(tex);
|
|
|
}
|
|
|
@end`},function(Ye,Me,pe){"use strict";Me.a=`@export clay.compositor.fxaa
|
|
|
uniform sampler2D texture;
|
|
|
uniform vec4 viewport : VIEWPORT;
|
|
|
varying vec2 v_Texcoord;
|
|
|
#define FXAA_REDUCE_MIN (1.0/128.0)
|
|
|
#define FXAA_REDUCE_MUL (1.0/8.0)
|
|
|
#define FXAA_SPAN_MAX 8.0
|
|
|
@import clay.util.rgbm
|
|
|
void main()
|
|
|
{
|
|
|
vec2 resolution = 1.0 / viewport.zw;
|
|
|
vec3 rgbNW = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( -1.0, -1.0 ) ) * resolution ) ).xyz;
|
|
|
vec3 rgbNE = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( 1.0, -1.0 ) ) * resolution ) ).xyz;
|
|
|
vec3 rgbSW = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( -1.0, 1.0 ) ) * resolution ) ).xyz;
|
|
|
vec3 rgbSE = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( 1.0, 1.0 ) ) * resolution ) ).xyz;
|
|
|
vec4 rgbaM = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution ) );
|
|
|
vec3 rgbM = rgbaM.xyz;
|
|
|
float opacity = rgbaM.w;
|
|
|
vec3 luma = vec3( 0.299, 0.587, 0.114 );
|
|
|
float lumaNW = dot( rgbNW, luma );
|
|
|
float lumaNE = dot( rgbNE, luma );
|
|
|
float lumaSW = dot( rgbSW, luma );
|
|
|
float lumaSE = dot( rgbSE, luma );
|
|
|
float lumaM = dot( rgbM, luma );
|
|
|
float lumaMin = min( lumaM, min( min( lumaNW, lumaNE ), min( lumaSW, lumaSE ) ) );
|
|
|
float lumaMax = max( lumaM, max( max( lumaNW, lumaNE) , max( lumaSW, lumaSE ) ) );
|
|
|
vec2 dir;
|
|
|
dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE));
|
|
|
dir.y = ((lumaNW + lumaSW) - (lumaNE + lumaSE));
|
|
|
float dirReduce = max( ( lumaNW + lumaNE + lumaSW + lumaSE ) * ( 0.25 * FXAA_REDUCE_MUL ), FXAA_REDUCE_MIN );
|
|
|
float rcpDirMin = 1.0 / ( min( abs( dir.x ), abs( dir.y ) ) + dirReduce );
|
|
|
dir = min( vec2( FXAA_SPAN_MAX, FXAA_SPAN_MAX),
|
|
|
max( vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX),
|
|
|
dir * rcpDirMin)) * resolution;
|
|
|
vec3 rgbA = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * ( 1.0 / 3.0 - 0.5 ) ) ).xyz;
|
|
|
rgbA += decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * ( 2.0 / 3.0 - 0.5 ) ) ).xyz;
|
|
|
rgbA *= 0.5;
|
|
|
vec3 rgbB = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * -0.5 ) ).xyz;
|
|
|
rgbB += decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * 0.5 ) ).xyz;
|
|
|
rgbB *= 0.25;
|
|
|
rgbB += rgbA * 0.5;
|
|
|
float lumaB = dot( rgbB, luma );
|
|
|
if ( ( lumaB < lumaMin ) || ( lumaB > lumaMax ) )
|
|
|
{
|
|
|
gl_FragColor = vec4( rgbA, opacity );
|
|
|
}
|
|
|
else {
|
|
|
gl_FragColor = vec4( rgbB, opacity );
|
|
|
}
|
|
|
}
|
|
|
@end`},function(Ye,Me,pe){"use strict";Me.a=`@export ecgl.dof.coc
|
|
|
|
|
|
uniform sampler2D depth;
|
|
|
|
|
|
uniform float zNear: 0.1;
|
|
|
uniform float zFar: 2000;
|
|
|
|
|
|
uniform float focalDistance: 3;
|
|
|
uniform float focalRange: 1;
|
|
|
uniform float focalLength: 30;
|
|
|
uniform float fstop: 2.8;
|
|
|
|
|
|
varying vec2 v_Texcoord;
|
|
|
|
|
|
@import clay.util.encode_float
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
float z = texture2D(depth, v_Texcoord).r * 2.0 - 1.0;
|
|
|
|
|
|
float dist = 2.0 * zNear * zFar / (zFar + zNear - z * (zFar - zNear));
|
|
|
|
|
|
float aperture = focalLength / fstop;
|
|
|
|
|
|
float coc;
|
|
|
|
|
|
float uppper = focalDistance + focalRange;
|
|
|
float lower = focalDistance - focalRange;
|
|
|
if (dist <= uppper && dist >= lower) {
|
|
|
coc = 0.5;
|
|
|
}
|
|
|
else {
|
|
|
float focalAdjusted = dist > uppper ? uppper : lower;
|
|
|
|
|
|
coc = abs(aperture * (focalLength * (dist - focalAdjusted)) / (dist * (focalAdjusted - focalLength)));
|
|
|
coc = clamp(coc, 0.0, 2.0) / 2.00001;
|
|
|
|
|
|
if (dist < lower) {
|
|
|
coc = -coc;
|
|
|
}
|
|
|
coc = coc * 0.5 + 0.5;
|
|
|
}
|
|
|
|
|
|
gl_FragColor = encodeFloat(coc);
|
|
|
}
|
|
|
@end
|
|
|
|
|
|
|
|
|
@export ecgl.dof.composite
|
|
|
|
|
|
#define DEBUG 0
|
|
|
|
|
|
uniform sampler2D original;
|
|
|
uniform sampler2D blurred;
|
|
|
uniform sampler2D nearfield;
|
|
|
uniform sampler2D coc;
|
|
|
uniform sampler2D nearcoc;
|
|
|
varying vec2 v_Texcoord;
|
|
|
|
|
|
@import clay.util.rgbm
|
|
|
@import clay.util.float
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
vec4 blurredColor = decodeHDR(texture2D(blurred, v_Texcoord));
|
|
|
vec4 originalColor = decodeHDR(texture2D(original, v_Texcoord));
|
|
|
|
|
|
float fCoc = decodeFloat(texture2D(coc, v_Texcoord));
|
|
|
|
|
|
fCoc = abs(fCoc * 2.0 - 1.0);
|
|
|
|
|
|
float weight = smoothstep(0.0, 1.0, fCoc);
|
|
|
|
|
|
#ifdef NEARFIELD_ENABLED
|
|
|
vec4 nearfieldColor = decodeHDR(texture2D(nearfield, v_Texcoord));
|
|
|
float fNearCoc = decodeFloat(texture2D(nearcoc, v_Texcoord));
|
|
|
fNearCoc = abs(fNearCoc * 2.0 - 1.0);
|
|
|
|
|
|
gl_FragColor = encodeHDR(
|
|
|
mix(
|
|
|
nearfieldColor, mix(originalColor, blurredColor, weight),
|
|
|
pow(1.0 - fNearCoc, 4.0)
|
|
|
)
|
|
|
);
|
|
|
#else
|
|
|
gl_FragColor = encodeHDR(mix(originalColor, blurredColor, weight));
|
|
|
#endif
|
|
|
|
|
|
}
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
@export ecgl.dof.diskBlur
|
|
|
|
|
|
#define POISSON_KERNEL_SIZE 16;
|
|
|
|
|
|
uniform sampler2D texture;
|
|
|
uniform sampler2D coc;
|
|
|
varying vec2 v_Texcoord;
|
|
|
|
|
|
uniform float blurRadius : 10.0;
|
|
|
uniform vec2 textureSize : [512.0, 512.0];
|
|
|
|
|
|
uniform vec2 poissonKernel[POISSON_KERNEL_SIZE];
|
|
|
|
|
|
uniform float percent;
|
|
|
|
|
|
float nrand(const in vec2 n) {
|
|
|
return fract(sin(dot(n.xy ,vec2(12.9898,78.233))) * 43758.5453);
|
|
|
}
|
|
|
|
|
|
@import clay.util.rgbm
|
|
|
@import clay.util.float
|
|
|
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
vec2 offset = blurRadius / textureSize;
|
|
|
|
|
|
float rnd = 6.28318 * nrand(v_Texcoord + 0.07 * percent );
|
|
|
float cosa = cos(rnd);
|
|
|
float sina = sin(rnd);
|
|
|
vec4 basis = vec4(cosa, -sina, sina, cosa);
|
|
|
|
|
|
#if !defined(BLUR_NEARFIELD) && !defined(BLUR_COC)
|
|
|
offset *= abs(decodeFloat(texture2D(coc, v_Texcoord)) * 2.0 - 1.0);
|
|
|
#endif
|
|
|
|
|
|
#ifdef BLUR_COC
|
|
|
float cocSum = 0.0;
|
|
|
#else
|
|
|
vec4 color = vec4(0.0);
|
|
|
#endif
|
|
|
|
|
|
|
|
|
float weightSum = 0.0;
|
|
|
|
|
|
for (int i = 0; i < POISSON_KERNEL_SIZE; i++) {
|
|
|
vec2 ofs = poissonKernel[i];
|
|
|
|
|
|
ofs = vec2(dot(ofs, basis.xy), dot(ofs, basis.zw));
|
|
|
|
|
|
vec2 uv = v_Texcoord + ofs * offset;
|
|
|
vec4 texel = texture2D(texture, uv);
|
|
|
|
|
|
float w = 1.0;
|
|
|
#ifdef BLUR_COC
|
|
|
float fCoc = decodeFloat(texel) * 2.0 - 1.0;
|
|
|
cocSum += clamp(fCoc, -1.0, 0.0) * w;
|
|
|
#else
|
|
|
texel = decodeHDR(texel);
|
|
|
#if !defined(BLUR_NEARFIELD)
|
|
|
float fCoc = decodeFloat(texture2D(coc, uv)) * 2.0 - 1.0;
|
|
|
w *= abs(fCoc);
|
|
|
#endif
|
|
|
color += texel * w;
|
|
|
#endif
|
|
|
|
|
|
weightSum += w;
|
|
|
}
|
|
|
|
|
|
#ifdef BLUR_COC
|
|
|
gl_FragColor = encodeFloat(clamp(cocSum / weightSum, -1.0, 0.0) * 0.5 + 0.5);
|
|
|
#else
|
|
|
color /= weightSum;
|
|
|
gl_FragColor = encodeHDR(color);
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
@end`},function(Ye,Me,pe){"use strict";Me.a=`@export ecgl.edge
|
|
|
|
|
|
uniform sampler2D texture;
|
|
|
|
|
|
uniform sampler2D normalTexture;
|
|
|
uniform sampler2D depthTexture;
|
|
|
|
|
|
uniform mat4 projectionInv;
|
|
|
|
|
|
uniform vec2 textureSize;
|
|
|
|
|
|
uniform vec4 edgeColor: [0,0,0,0.8];
|
|
|
|
|
|
varying vec2 v_Texcoord;
|
|
|
|
|
|
vec3 packColor(vec2 coord) {
|
|
|
float z = texture2D(depthTexture, coord).r * 2.0 - 1.0;
|
|
|
vec4 p = vec4(v_Texcoord * 2.0 - 1.0, z, 1.0);
|
|
|
vec4 p4 = projectionInv * p;
|
|
|
|
|
|
return vec3(
|
|
|
texture2D(normalTexture, coord).rg,
|
|
|
-p4.z / p4.w / 5.0
|
|
|
);
|
|
|
}
|
|
|
|
|
|
void main() {
|
|
|
vec2 cc = v_Texcoord;
|
|
|
vec3 center = packColor(cc);
|
|
|
|
|
|
float size = clamp(1.0 - (center.z - 10.0) / 100.0, 0.0, 1.0) * 0.5;
|
|
|
float dx = size / textureSize.x;
|
|
|
float dy = size / textureSize.y;
|
|
|
|
|
|
vec2 coord;
|
|
|
vec3 topLeft = packColor(cc+vec2(-dx, -dy));
|
|
|
vec3 top = packColor(cc+vec2(0.0, -dy));
|
|
|
vec3 topRight = packColor(cc+vec2(dx, -dy));
|
|
|
vec3 left = packColor(cc+vec2(-dx, 0.0));
|
|
|
vec3 right = packColor(cc+vec2(dx, 0.0));
|
|
|
vec3 bottomLeft = packColor(cc+vec2(-dx, dy));
|
|
|
vec3 bottom = packColor(cc+vec2(0.0, dy));
|
|
|
vec3 bottomRight = packColor(cc+vec2(dx, dy));
|
|
|
|
|
|
vec3 v = -topLeft-2.0*top-topRight+bottomLeft+2.0*bottom+bottomRight;
|
|
|
vec3 h = -bottomLeft-2.0*left-topLeft+bottomRight+2.0*right+topRight;
|
|
|
|
|
|
float edge = sqrt(dot(h, h) + dot(v, v));
|
|
|
|
|
|
edge = smoothstep(0.8, 1.0, edge);
|
|
|
|
|
|
gl_FragColor = mix(texture2D(texture, v_Texcoord), vec4(edgeColor.rgb, 1.0), edgeColor.a * edge);
|
|
|
}
|
|
|
@end`},function(Ye,Me,pe){"use strict";var Oe=pe(43),ve=pe(14),ue=pe(10),fe=pe(5),he=pe(7),le=pe(9);function ae(ie){for(var me=[],E=0;E<30;E++)me.push([Object(Oe.a)(E,2),Object(Oe.a)(E,3)]);this._haltonSequence=me,this._frame=0,this._sourceTex=new fe.a,this._sourceFb=new ue.a,this._sourceFb.attach(this._sourceTex),this._prevFrameTex=new fe.a,this._outputTex=new fe.a;var b=this._blendPass=new ve.a({fragment:he.a.source("clay.compositor.blend")});b.material.disableTexturesAll(),b.material.enableTexture(["texture1","texture2"]),this._blendFb=new ue.a({depthBuffer:!1}),this._outputPass=new ve.a({fragment:he.a.source("clay.compositor.output"),blendWithPrevious:!0}),this._outputPass.material.define("fragment","OUTPUT_ALPHA"),this._outputPass.material.blend=function(z){z.blendEquationSeparate(z.FUNC_ADD,z.FUNC_ADD),z.blendFuncSeparate(z.ONE,z.ONE_MINUS_SRC_ALPHA,z.ONE,z.ONE_MINUS_SRC_ALPHA)}}ae.prototype={constructor:ae,jitterProjection:function(ie,me){var E=ie.viewport,b=E.devicePixelRatio||ie.getDevicePixelRatio(),z=E.width*b,ne=E.height*b,oe=this._haltonSequence[this._frame%this._haltonSequence.length],se=new le.a;se.array[12]=(oe[0]*2-1)/z,se.array[13]=(oe[1]*2-1)/ne,le.a.mul(me.projectionMatrix,se,me.projectionMatrix),le.a.invert(me.invProjectionMatrix,me.projectionMatrix)},resetFrame:function(){this._frame=0},getFrame:function(){return this._frame},getSourceFrameBuffer:function(){return this._sourceFb},getOutputTexture:function(){return this._outputTex},resize:function(ie,me){this._prevFrameTex.width=ie,this._prevFrameTex.height=me,this._outputTex.width=ie,this._outputTex.height=me,this._sourceTex.width=ie,this._sourceTex.height=me,this._prevFrameTex.dirty(),this._outputTex.dirty(),this._sourceTex.dirty()},isFinished:function(){return this._frame>=this._haltonSequence.length},render:function(ie,me,E){var b=this._blendPass;this._frame===0?(b.setUniform("weight1",0),b.setUniform("weight2",1)):(b.setUniform("weight1",.9),b.setUniform("weight2",.1)),b.setUniform("texture1",this._prevFrameTex),b.setUniform("texture2",me||this._sourceTex),this._blendFb.attach(this._outputTex),this._blendFb.bind(ie),b.render(ie),this._blendFb.unbind(ie),E||(this._outputPass.setUniform("texture",this._outputTex),this._outputPass.render(ie));var z=this._prevFrameTex;this._prevFrameTex=this._outputTex,this._outputTex=z,this._frame++},dispose:function(ie){this._sourceFb.dispose(ie),this._blendFb.dispose(ie),this._prevFrameTex.dispose(ie),this._outputTex.dispose(ie),this._sourceTex.dispose(ie),this._outputPass.dispose(ie),this._blendPass.dispose(ie)}},Me.a=ae},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(184),fe=pe(185),he=pe(82);ve.a.registerAction({type:"geo3DChangeCamera",event:"geo3dcamerachanged",update:"series:updateCamera"},function(le,ae){ae.eachComponent({mainType:"geo3D",query:le},function(ie){ie.setView(le)})})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(38),fe=pe(31),he=pe(32),le=pe(26),ae=pe(80),ie=ve.a.extendComponentModel({type:"geo3D",layoutMode:"box",coordinateSystem:null,optionUpdated:function(){var E=this.option;E.regions=this.getFilledRegions(E.regions,E.map);var b=ve.a.helper.completeDimensions(["value"],E.data,{encodeDef:this.get("encode"),dimsDef:this.get("dimensions")}),z=new ve.a.List(b,this);z.initData(E.regions);var ne={};z.each(function(oe){var se=z.getName(oe),de=z.getItemModel(oe);ne[se]=de}),this._regionModelMap=ne,this._data=z},getData:function(){return this._data},getRegionModel:function(E){var b=this.getData().getName(E);return this._regionModelMap[b]||new ve.a.Model(null,this)},getRegionPolygonCoords:function(E){var b=this.getData().getName(E),z=this.coordinateSystem.getRegion(b);return z?z.geometries:[]},getFormattedLabel:function(E,b){var z=this._data.getName(E),ne=this.getRegionModel(z),oe=ne.get(b==="normal"?["label","formatter"]:["emphasis","label","formatter"]);oe==null&&(oe=ne.get(["label","formatter"]));var se={name:z};if(typeof oe=="function")return se.status=b,oe(se);if(typeof oe=="string"){var de=se.seriesName;return oe.replace("{a}",de!=null?de:"")}else return z},defaultOption:{regions:[]}});ve.a.util.merge(ie.prototype,ae.a),ve.a.util.merge(ie.prototype,ue.a),ve.a.util.merge(ie.prototype,fe.a),ve.a.util.merge(ie.prototype,he.a),ve.a.util.merge(ie.prototype,le.a);var me=ie},function(Ye,Me,pe){"use strict";var Oe=pe(59),ve=pe(0),ue=pe.n(ve),fe=pe(2),he=pe(39),le=pe(34),ae=ue.a.extendComponentView({type:"geo3D",__ecgl__:!0,init:function(ie,me){this._geo3DBuilder=new Oe.a(me),this.groupGL=new fe.a.Node,this._lightRoot=new fe.a.Node,this._sceneHelper=new le.a(this._lightRoot),this._sceneHelper.initLight(this._lightRoot),this._control=new he.a({zr:me.getZr()}),this._control.init()},render:function(ie,me,E){this.groupGL.add(this._geo3DBuilder.rootNode);var b=ie.coordinateSystem;if(!(!b||!b.viewGL)){b.viewGL.add(this._lightRoot),ie.get("show")?b.viewGL.add(this.groupGL):b.viewGL.remove(this.groupGL);var z=this._control;z.setViewGL(b.viewGL);var ne=ie.getModel("viewControl");z.setFromViewControlModel(ne,0),this._sceneHelper.setScene(b.viewGL.scene),this._sceneHelper.updateLight(ie),b.viewGL.setPostEffect(ie.getModel("postEffect"),E),b.viewGL.setTemporalSuperSampling(ie.getModel("temporalSuperSampling")),this._geo3DBuilder.update(ie,me,E,0,ie.getData().count());var oe=b.viewGL.isLinearSpace()?"define":"undefine";this._geo3DBuilder.rootNode.traverse(function(se){se.material&&se.material[oe]("fragment","SRGB_DECODE")}),z.off("update"),z.on("update",function(){E.dispatchAction({type:"geo3DChangeCamera",alpha:z.getAlpha(),beta:z.getBeta(),distance:z.getDistance(),center:z.getCenter(),from:this.uid,geo3DId:ie.id})})}},afterRender:function(ie,me,E,b){var z=b.renderer;this._sceneHelper.updateAmbientCubemap(z,ie,E),this._sceneHelper.updateSkybox(z,ie,E)},dispose:function(){this._control.dispose()}})},function(Ye,Me,pe){"use strict";Me.a=Oe;function Oe(Pe,ze,Ke){Ke=Ke||2;var Ne=ze&&ze.length,Re=Ne?ze[0]*Ke:Pe.length,$e=ve(Pe,0,Re,Ke,!0),nt=[];if(!$e)return nt;var ut,Qe,rt,pt,At,gt,Ft;if(Ne&&($e=me(Pe,ze,$e,Ke)),Pe.length>80*Ke){ut=rt=Pe[0],Qe=pt=Pe[1];for(var Ct=Ke;Ct<Re;Ct+=Ke)At=Pe[Ct],gt=Pe[Ct+1],At<ut&&(ut=At),gt<Qe&&(Qe=gt),At>rt&&(rt=At),gt>pt&&(pt=gt);Ft=Math.max(rt-ut,pt-Qe)}return fe($e,nt,Ke,ut,Qe,Ft),nt}function ve(Pe,ze,Ke,Ne,Re){var $e,nt;if(Re===Ue(Pe,ze,Ke,Ne)>0)for($e=ze;$e<Ke;$e+=Ne)nt=Be($e,Pe[$e],Pe[$e+1],nt);else for($e=Ke-Ne;$e>=ze;$e-=Ne)nt=Be($e,Pe[$e],Pe[$e+1],nt);return nt&&ce(nt,nt.next)&&(Ae(nt),nt=nt.next),nt}function ue(Pe,ze){if(!Pe)return Pe;ze||(ze=Pe);var Ke=Pe,Ne;do if(Ne=!1,!Ke.steiner&&(ce(Ke,Ke.next)||re(Ke.prev,Ke,Ke.next)===0)){if(Ae(Ke),Ke=ze=Ke.prev,Ke===Ke.next)return null;Ne=!0}else Ke=Ke.next;while(Ne||Ke!==ze);return ze}function fe(Pe,ze,Ke,Ne,Re,$e,nt){if(Pe){!nt&&$e&&ne(Pe,Ne,Re,$e);for(var ut=Pe,Qe,rt;Pe.prev!==Pe.next;){if(Qe=Pe.prev,rt=Pe.next,$e?le(Pe,Ne,Re,$e):he(Pe)){ze.push(Qe.i/Ke),ze.push(Pe.i/Ke),ze.push(rt.i/Ke),Ae(Pe),Pe=rt.next,ut=rt.next;continue}if(Pe=rt,Pe===ut){nt?nt===1?(Pe=ae(Pe,ze,Ke),fe(Pe,ze,Ke,Ne,Re,$e,2)):nt===2&&ie(Pe,ze,Ke,Ne,Re,$e):fe(ue(Pe),ze,Ke,Ne,Re,$e,1);break}}}}function he(Pe){var ze=Pe.prev,Ke=Pe,Ne=Pe.next;if(re(ze,Ke,Ne)>=0)return!1;for(var Re=Pe.next.next;Re!==Pe.prev;){if(a(ze.x,ze.y,Ke.x,Ke.y,Ne.x,Ne.y,Re.x,Re.y)&&re(Re.prev,Re,Re.next)>=0)return!1;Re=Re.next}return!0}function le(Pe,ze,Ke,Ne){var Re=Pe.prev,$e=Pe,nt=Pe.next;if(re(Re,$e,nt)>=0)return!1;for(var ut=Re.x<$e.x?Re.x<nt.x?Re.x:nt.x:$e.x<nt.x?$e.x:nt.x,Qe=Re.y<$e.y?Re.y<nt.y?Re.y:nt.y:$e.y<nt.y?$e.y:nt.y,rt=Re.x>$e.x?Re.x>nt.x?Re.x:nt.x:$e.x>nt.x?$e.x:nt.x,pt=Re.y>$e.y?Re.y>nt.y?Re.y:nt.y:$e.y>nt.y?$e.y:nt.y,At=se(ut,Qe,ze,Ke,Ne),gt=se(rt,pt,ze,Ke,Ne),Ft=Pe.nextZ;Ft&&Ft.z<=gt;){if(Ft!==Pe.prev&&Ft!==Pe.next&&a(Re.x,Re.y,$e.x,$e.y,nt.x,nt.y,Ft.x,Ft.y)&&re(Ft.prev,Ft,Ft.next)>=0)return!1;Ft=Ft.nextZ}for(Ft=Pe.prevZ;Ft&&Ft.z>=At;){if(Ft!==Pe.prev&&Ft!==Pe.next&&a(Re.x,Re.y,$e.x,$e.y,nt.x,nt.y,Ft.x,Ft.y)&&re(Ft.prev,Ft,Ft.next)>=0)return!1;Ft=Ft.prevZ}return!0}function ae(Pe,ze,Ke){var Ne=Pe;do{var Re=Ne.prev,$e=Ne.next.next;!ce(Re,$e)&&ge(Re,Ne,Ne.next,$e)&&ye(Re,$e)&&ye($e,Re)&&(ze.push(Re.i/Ke),ze.push(Ne.i/Ke),ze.push($e.i/Ke),Ae(Ne),Ae(Ne.next),Ne=Pe=$e),Ne=Ne.next}while(Ne!==Pe);return Ne}function ie(Pe,ze,Ke,Ne,Re,$e){var nt=Pe;do{for(var ut=nt.next.next;ut!==nt.prev;){if(nt.i!==ut.i&&x(nt,ut)){var Qe=Se(nt,ut);nt=ue(nt,nt.next),Qe=ue(Qe,Qe.next),fe(nt,ze,Ke,Ne,Re,$e),fe(Qe,ze,Ke,Ne,Re,$e);return}ut=ut.next}nt=nt.next}while(nt!==Pe)}function me(Pe,ze,Ke,Ne){var Re=[],$e,nt,ut,Qe,rt;for($e=0,nt=ze.length;$e<nt;$e++)ut=ze[$e]*Ne,Qe=$e<nt-1?ze[$e+1]*Ne:Pe.length,rt=ve(Pe,ut,Qe,Ne,!1),rt===rt.next&&(rt.steiner=!0),Re.push(de(rt));for(Re.sort(E),$e=0;$e<Re.length;$e++)b(Re[$e],Ke),Ke=ue(Ke,Ke.next);return Ke}function E(Pe,ze){return Pe.x-ze.x}function b(Pe,ze){if(ze=z(Pe,ze),ze){var Ke=Se(ze,Pe);ue(Ke,Ke.next)}}function z(Pe,ze){var Ke=ze,Ne=Pe.x,Re=Pe.y,$e=-1/0,nt;do{if(Re<=Ke.y&&Re>=Ke.next.y&&Ke.next.y!==Ke.y){var ut=Ke.x+(Re-Ke.y)*(Ke.next.x-Ke.x)/(Ke.next.y-Ke.y);if(ut<=Ne&&ut>$e){if($e=ut,ut===Ne){if(Re===Ke.y)return Ke;if(Re===Ke.next.y)return Ke.next}nt=Ke.x<Ke.next.x?Ke:Ke.next}}Ke=Ke.next}while(Ke!==ze);if(!nt)return null;if(Ne===$e)return nt.prev;var Qe=nt,rt=nt.x,pt=nt.y,At=1/0,gt;for(Ke=nt.next;Ke!==Qe;)Ne>=Ke.x&&Ke.x>=rt&&Ne!==Ke.x&&a(Re<pt?Ne:$e,Re,rt,pt,Re<pt?$e:Ne,Re,Ke.x,Ke.y)&&(gt=Math.abs(Re-Ke.y)/(Ne-Ke.x),(gt<At||gt===At&&Ke.x>nt.x)&&ye(Ke,Pe)&&(nt=Ke,At=gt)),Ke=Ke.next;return nt}function ne(Pe,ze,Ke,Ne){var Re=Pe;do Re.z===null&&(Re.z=se(Re.x,Re.y,ze,Ke,Ne)),Re.prevZ=Re.prev,Re.nextZ=Re.next,Re=Re.next;while(Re!==Pe);Re.prevZ.nextZ=null,Re.prevZ=null,oe(Re)}function oe(Pe){var ze,Ke,Ne,Re,$e,nt,ut,Qe,rt=1;do{for(Ke=Pe,Pe=null,$e=null,nt=0;Ke;){for(nt++,Ne=Ke,ut=0,ze=0;ze<rt&&(ut++,Ne=Ne.nextZ,!!Ne);ze++);for(Qe=rt;ut>0||Qe>0&&Ne;)ut!==0&&(Qe===0||!Ne||Ke.z<=Ne.z)?(Re=Ke,Ke=Ke.nextZ,ut--):(Re=Ne,Ne=Ne.nextZ,Qe--),$e?$e.nextZ=Re:Pe=Re,Re.prevZ=$e,$e=Re;Ke=Ne}$e.nextZ=null,rt*=2}while(nt>1);return Pe}function se(Pe,ze,Ke,Ne,Re){return Pe=32767*(Pe-Ke)/Re,ze=32767*(ze-Ne)/Re,Pe=(Pe|Pe<<8)&16711935,Pe=(Pe|Pe<<4)&252645135,Pe=(Pe|Pe<<2)&858993459,Pe=(Pe|Pe<<1)&1431655765,ze=(ze|ze<<8)&16711935,ze=(ze|ze<<4)&252645135,ze=(ze|ze<<2)&858993459,ze=(ze|ze<<1)&1431655765,Pe|ze<<1}function de(Pe){var ze=Pe,Ke=Pe;do ze.x<Ke.x&&(Ke=ze),ze=ze.next;while(ze!==Pe);return Ke}function a(Pe,ze,Ke,Ne,Re,$e,nt,ut){return(Re-nt)*(ze-ut)-(Pe-nt)*($e-ut)>=0&&(Pe-nt)*(Ne-ut)-(Ke-nt)*(ze-ut)>=0&&(Ke-nt)*($e-ut)-(Re-nt)*(Ne-ut)>=0}function x(Pe,ze){return Pe.next.i!==ze.i&&Pe.prev.i!==ze.i&&!_e(Pe,ze)&&ye(Pe,ze)&&ye(ze,Pe)&&be(Pe,ze)}function re(Pe,ze,Ke){return(ze.y-Pe.y)*(Ke.x-ze.x)-(ze.x-Pe.x)*(Ke.y-ze.y)}function ce(Pe,ze){return Pe.x===ze.x&&Pe.y===ze.y}function ge(Pe,ze,Ke,Ne){return ce(Pe,ze)&&ce(Ke,Ne)||ce(Pe,Ne)&&ce(Ke,ze)?!0:re(Pe,ze,Ke)>0!=re(Pe,ze,Ne)>0&&re(Ke,Ne,Pe)>0!=re(Ke,Ne,ze)>0}function _e(Pe,ze){var Ke=Pe;do{if(Ke.i!==Pe.i&&Ke.next.i!==Pe.i&&Ke.i!==ze.i&&Ke.next.i!==ze.i&&ge(Ke,Ke.next,Pe,ze))return!0;Ke=Ke.next}while(Ke!==Pe);return!1}function ye(Pe,ze){return re(Pe.prev,Pe,Pe.next)<0?re(Pe,ze,Pe.next)>=0&&re(Pe,Pe.prev,ze)>=0:re(Pe,ze,Pe.prev)<0||re(Pe,Pe.next,ze)<0}function be(Pe,ze){var Ke=Pe,Ne=!1,Re=(Pe.x+ze.x)/2,$e=(Pe.y+ze.y)/2;do Ke.y>$e!=Ke.next.y>$e&&Ke.next.y!==Ke.y&&Re<(Ke.next.x-Ke.x)*($e-Ke.y)/(Ke.next.y-Ke.y)+Ke.x&&(Ne=!Ne),Ke=Ke.next;while(Ke!==Pe);return Ne}function Se(Pe,ze){var Ke=new we(Pe.i,Pe.x,Pe.y),Ne=new we(ze.i,ze.x,ze.y),Re=Pe.next,$e=ze.prev;return Pe.next=ze,ze.prev=Pe,Ke.next=Re,Re.prev=Ke,Ne.next=Ke,Ke.prev=Ne,$e.next=Ne,Ne.prev=$e,Ne}function Be(Pe,ze,Ke,Ne){var Re=new we(Pe,ze,Ke);return Ne?(Re.next=Ne.next,Re.prev=Ne,Ne.next.prev=Re,Ne.next=Re):(Re.prev=Re,Re.next=Re),Re}function Ae(Pe){Pe.next.prev=Pe.prev,Pe.prev.next=Pe.next,Pe.prevZ&&(Pe.prevZ.nextZ=Pe.nextZ),Pe.nextZ&&(Pe.nextZ.prevZ=Pe.prevZ)}function we(Pe,ze,Ke){this.i=Pe,this.x=ze,this.y=Ke,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}Oe.deviation=function(Pe,ze,Ke,Ne){var Re=ze&&ze.length,$e=Re?ze[0]*Ke:Pe.length,nt=Math.abs(Ue(Pe,0,$e,Ke));if(Re)for(var ut=0,Qe=ze.length;ut<Qe;ut++){var rt=ze[ut]*Ke,pt=ut<Qe-1?ze[ut+1]*Ke:Pe.length;nt-=Math.abs(Ue(Pe,rt,pt,Ke))}var At=0;for(ut=0;ut<Ne.length;ut+=3){var gt=Ne[ut]*Ke,Ft=Ne[ut+1]*Ke,Ct=Ne[ut+2]*Ke;At+=Math.abs((Pe[gt]-Pe[Ct])*(Pe[Ft+1]-Pe[gt+1])-(Pe[gt]-Pe[Ft])*(Pe[Ct+1]-Pe[gt+1]))}return nt===0&&At===0?0:Math.abs((At-nt)/nt)};function Ue(Pe,ze,Ke,Ne){for(var Re=0,$e=ze,nt=Ke-Ne;$e<Ke;$e+=Ne)Re+=(Pe[nt]-Pe[$e])*(Pe[$e+1]+Pe[nt+1]),nt=$e;return Re}},function(Ye,Me,pe){var Oe=pe(12),ve={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function ue(fe){Oe.each(fe.regions,function(he){var le=ve[he.name];if(le){var ae=he.center;ae[0]+=le[0]/10.5,ae[1]+=-le[1]/(10.5/.75)}})}Ye.exports=ue},function(Ye,Me,pe){var Oe=pe(12),ve={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function ue(fe){Oe.each(fe.regions,function(he){var le=ve[he.name];if(le){var ae=he.center;ae[0]=le[0],ae[1]=le[1]}})}Ye.exports=ue},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(190),fe=pe(191),he=pe(193);ve.a.registerAction({type:"globeChangeCamera",event:"globecamerachanged",update:"series:updateCamera"},function(le,ae){ae.eachComponent({mainType:"globe",query:le},function(ie){ie.setView(le)})}),ve.a.registerAction({type:"globeUpdateDisplacment",event:"globedisplacementupdated",update:"update"},function(le,ae){})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(38),fe=pe(31),he=pe(32),le=pe(26);function ae(E,b){E.id=E.id||E.name||b+""}var ie=ve.a.extendComponentModel({type:"globe",layoutMode:"box",coordinateSystem:null,init:function(){ie.superApply(this,"init",arguments),ve.a.util.each(this.option.layers,function(E,b){ve.a.util.merge(E,this.defaultLayerOption),ae(E,b)},this)},mergeOption:function(E){var b=this.option.layers;this.option.layers=null,ie.superApply(this,"mergeOption",arguments);function z(de){return ve.a.util.reduce(de,function(a,x,re){return ae(x,re),a[x.id]=x,a},{})}if(b&&b.length){var ne=z(E.layers),oe=z(b);for(var se in ne)oe[se]?ve.a.util.merge(oe[se],ne[se],!0):b.push(E.layers[se]);this.option.layers=b}ve.a.util.each(this.option.layers,function(de){ve.a.util.merge(de,this.defaultLayerOption)},this)},optionUpdated:function(){this.updateDisplacementHash()},defaultLayerOption:{show:!0,type:"overlay"},defaultOption:{show:!0,zlevel:-10,left:0,top:0,width:"100%",height:"100%",environment:"auto",baseColor:"#fff",baseTexture:"",heightTexture:"",displacementTexture:"",displacementScale:0,displacementQuality:"medium",globeRadius:100,globeOuterRadius:150,shading:"lambert",light:{main:{time:""}},viewControl:{autoRotate:!0,panSensitivity:0,targetCoord:null},layers:[]},setDisplacementData:function(E,b,z){this.displacementData=E,this.displacementWidth=b,this.displacementHeight=z},getDisplacementTexture:function(){return this.get("displacementTexture")||this.get("heightTexture")},getDisplacemenScale:function(){var E=this.getDisplacementTexture(),b=this.get("displacementScale");return(!E||E==="none")&&(b=0),b},hasDisplacement:function(){return this.getDisplacemenScale()>0},_displacementChanged:!0,_displacementScale:0,updateDisplacementHash:function(){var E=this.getDisplacementTexture(),b=this.getDisplacemenScale();this._displacementChanged=this._displacementTexture!==E||this._displacementScale!==b,this._displacementTexture=E,this._displacementScale=b},isDisplacementChanged:function(){return this._displacementChanged}});ve.a.util.merge(ie.prototype,ue.a),ve.a.util.merge(ie.prototype,fe.a),ve.a.util.merge(ie.prototype,he.a),ve.a.util.merge(ie.prototype,le.a);var me=ie},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(2),fe=pe(39),he=pe(34),le=pe(192),ae=pe(3),ie=ve.a.extendComponentView({type:"globe",__ecgl__:!0,_displacementScale:0,init:function(me,E){this.groupGL=new ue.a.Node,this._sphereGeometry=new ue.a.SphereGeometry({widthSegments:200,heightSegments:100,dynamic:!0}),this._overlayGeometry=new ue.a.SphereGeometry({widthSegments:80,heightSegments:40}),this._planeGeometry=new ue.a.PlaneGeometry,this._earthMesh=new ue.a.Mesh({renderNormal:!0}),this._lightRoot=new ue.a.Node,this._sceneHelper=new he.a,this._sceneHelper.initLight(this._lightRoot),this.groupGL.add(this._earthMesh),this._control=new fe.a({zr:E.getZr()}),this._control.init(),this._layerMeshes={}},render:function(me,E,b){var z=me.coordinateSystem,ne=me.get("shading");z.viewGL.add(this._lightRoot),me.get("show")?z.viewGL.add(this.groupGL):z.viewGL.remove(this.groupGL),this._sceneHelper.setScene(z.viewGL.scene),z.viewGL.setPostEffect(me.getModel("postEffect"),b),z.viewGL.setTemporalSuperSampling(me.getModel("temporalSuperSampling"));var oe=this._earthMesh;oe.geometry=this._sphereGeometry;var se="ecgl."+ne;(!oe.material||oe.material.shader.name!==se)&&(oe.material=ue.a.createMaterial(se)),ue.a.setMaterialFromModel(ne,oe.material,me,b),["roughnessMap","metalnessMap","detailMap","normalMap"].forEach(function(re){var ce=oe.material.get(re);ce&&(ce.flipY=!1)}),oe.material.set("color",ue.a.parseColor(me.get("baseColor")));var de=z.radius*.99;oe.scale.set(de,de,de);var a=oe.material.setTextureImage("diffuseMap",me.get("baseTexture"),b,{flipY:!1,anisotropic:8});a&&a.surface&&a.surface.attachToMesh(oe);var x=oe.material.setTextureImage("bumpMap",me.get("heightTexture"),b,{flipY:!1,anisotropic:8});x&&x.surface&&x.surface.attachToMesh(oe),oe.material[me.get("postEffect.enable")?"define":"undefine"]("fragment","SRGB_DECODE"),this._updateLight(me,b),this._displaceVertices(me,b),this._updateViewControl(me,b),this._updateLayers(me,b)},afterRender:function(me,E,b,z){var ne=z.renderer;this._sceneHelper.updateAmbientCubemap(ne,me,b),this._sceneHelper.updateSkybox(ne,me,b)},_updateLayers:function(me,E){var b=me.coordinateSystem,z=me.get("layers"),ne=b.radius,oe=[],se=[],de=[],a=[];ve.a.util.each(z,function(_e){var ye=new ve.a.Model(_e),be=ye.get("type"),Se=ue.a.loadTexture(ye.get("texture"),E,{flipY:!1,anisotropic:8});if(Se.surface&&Se.surface.attachToMesh(this._earthMesh),be==="blend"){var Be=ye.get("blendTo"),Ae=ae.a.firstNotNull(ye.get("intensity"),1);Be==="emission"?(de.push(Se),a.push(Ae)):(oe.push(Se),se.push(Ae))}else{var we=ye.get("id"),Ue=this._layerMeshes[we];Ue||(Ue=this._layerMeshes[we]=new ue.a.Mesh({geometry:this._overlayGeometry,castShadow:!1,ignorePicking:!0}));var Pe=ye.get("shading");Pe==="lambert"?(Ue.material=Ue.__lambertMaterial||new ue.a.Material({autoUpdateTextureStatus:!1,shader:ue.a.createShader("ecgl.lambert"),transparent:!0,depthMask:!1}),Ue.__lambertMaterial=Ue.material):(Ue.material=Ue.__colorMaterial||new ue.a.Material({autoUpdateTextureStatus:!1,shader:ue.a.createShader("ecgl.color"),transparent:!0,depthMask:!1}),Ue.__colorMaterial=Ue.material),Ue.material.enableTexture("diffuseMap");var ze=ye.get("distance"),Ke=ne+(ze==null?b.radius/100:ze);Ue.scale.set(Ke,Ke,Ke),ne=Ke;var Ne=this._blankTexture||(this._blankTexture=ue.a.createBlankTexture("rgba(255, 255, 255, 0)"));Ue.material.set("diffuseMap",Ne),ue.a.loadTexture(ye.get("texture"),E,{flipY:!1,anisotropic:8},function(Re){Re.surface&&Re.surface.attachToMesh(Ue),Ue.material.set("diffuseMap",Re),E.getZr().refresh()}),ye.get("show")?this.groupGL.add(Ue):this.groupGL.remove(Ue)}},this);var x=this._earthMesh.material;x.define("fragment","LAYER_DIFFUSEMAP_COUNT",oe.length),x.define("fragment","LAYER_EMISSIVEMAP_COUNT",de.length),x.set("layerDiffuseMap",oe),x.set("layerDiffuseIntensity",se),x.set("layerEmissiveMap",de),x.set("layerEmissionIntensity",a);var re=me.getModel("debug.wireframe");if(re.get("show")){x.define("both","WIREFRAME_TRIANGLE");var ce=ue.a.parseColor(re.get("lineStyle.color")||"rgba(0,0,0,0.5)"),ge=ae.a.firstNotNull(re.get("lineStyle.width"),1);x.set("wireframeLineWidth",ge),x.set("wireframeLineColor",ce)}else x.undefine("both","WIREFRAME_TRIANGLE")},_updateViewControl:function(me,E){var b=me.coordinateSystem,z=me.getModel("viewControl"),ne=b.viewGL.camera,oe=this;function se(){return{type:"globeChangeCamera",alpha:de.getAlpha(),beta:de.getBeta(),distance:de.getDistance()-b.radius,center:de.getCenter(),from:oe.uid,globeId:me.id}}var de=this._control;de.setViewGL(b.viewGL);var a=z.get("targetCoord"),x,re;a!=null&&(re=a[0]+90,x=a[1]),de.setFromViewControlModel(z,{baseDistance:b.radius,alpha:x,beta:re}),de.off("update"),de.on("update",function(){E.dispatchAction(se())})},_displaceVertices:function(me,E){var b=me.get("displacementQuality"),z=me.get("debug.wireframe.show"),ne=me.coordinateSystem;if(!(!me.isDisplacementChanged()&&b===this._displacementQuality&&z===this._showDebugWireframe)){this._displacementQuality=b,this._showDebugWireframe=z;var oe=this._sphereGeometry,se={low:100,medium:200,high:400,ultra:800}[b]||200,de=se/2;(oe.widthSegments!==se||z)&&(oe.widthSegments=se,oe.heightSegments=de,oe.build()),this._doDisplaceVertices(oe,ne),z&&oe.generateBarycentric()}},_doDisplaceVertices:function(me,E){var b=me.attributes.position.value,z=me.attributes.texcoord0.value,ne=me.__originalPosition;(!ne||ne.length!==b.length)&&(ne=new Float32Array(b.length),ne.set(b),me.__originalPosition=ne);for(var oe=E.displacementWidth,se=E.displacementHeight,de=E.displacementData,a=0;a<me.vertexCount;a++){var x=a*3,re=a*2,ce=ne[x+1],ge=ne[x+2],_e=ne[x+3],ye=z[re++],be=z[re++],Se=Math.round(ye*(oe-1)),Be=Math.round(be*(se-1)),Ae=Be*oe+Se,we=de?de[Ae]:0;b[x+1]=ce+ce*we,b[x+2]=ge+ge*we,b[x+3]=_e+_e*we}me.generateVertexNormals(),me.dirty(),me.updateBoundingBox()},_updateLight:function(me,E){var b=this._earthMesh;this._sceneHelper.updateLight(me);var z=this._sceneHelper.mainLight,ne=me.get("light.main.time")||new Date,oe=le.a.getPosition(ve.a.number.parseDate(ne),0,0),se=Math.cos(oe.altitude);z.position.y=-se*Math.cos(oe.azimuth),z.position.x=Math.sin(oe.altitude),z.position.z=se*Math.sin(oe.azimuth),z.lookAt(b.getWorldPosition())},dispose:function(me,E){this.groupGL.removeAll(),this._control.dispose()}})},function(Ye,Me,pe){"use strict";var Oe=Math.PI,ve=Math.sin,ue=Math.cos,fe=Math.tan,he=Math.asin,le=Math.atan2,ae=Oe/180,ie=1e3*60*60*24,me=2440588,E=2451545;function b(ye){return ye.valueOf()/ie-.5+me}function z(ye){return b(ye)-E}var ne=ae*23.4397;function oe(ye,be){return le(ve(ye)*ue(ne)-fe(be)*ve(ne),ue(ye))}function se(ye,be){return he(ve(be)*ue(ne)+ue(be)*ve(ne)*ve(ye))}function de(ye,be,Se){return le(ve(ye),ue(ye)*ve(be)-fe(Se)*ue(be))}function a(ye,be,Se){return he(ve(be)*ve(Se)+ue(be)*ue(Se)*ue(ye))}function x(ye,be){return ae*(280.16+360.9856235*ye)-be}function re(ye){return ae*(357.5291+.98560028*ye)}function ce(ye){var be=ae*(1.9148*ve(ye)+.02*ve(2*ye)+3e-4*ve(3*ye)),Se=ae*102.9372;return ye+be+Se+Oe}function ge(ye){var be=re(ye),Se=ce(be);return{dec:se(Se,0),ra:oe(Se,0)}}var _e={};_e.getPosition=function(ye,be,Se){var Be=ae*-Se,Ae=ae*be,we=z(ye),Ue=ge(we),Pe=x(we,Be)-Ue.ra;return{azimuth:de(Pe,Ae,Ue.dec),altitude:a(Pe,Ae,Ue.dec)}},Me.a=_e},function(Ye,Me,pe){"use strict";var Oe=pe(194),ve=pe(0),ue=pe.n(ve),fe=pe(41),he=pe.n(fe),le=pe(20),ae=pe(3),ie=pe(2);function me(oe,se){var de=document.createElement("canvas"),a=de.getContext("2d"),x=oe.width,re=oe.height;de.width=x,de.height=re,a.drawImage(oe,0,0,x,re);for(var ce=a.getImageData(0,0,x,re).data,ge=new Float32Array(ce.length/4),_e=0;_e<ce.length/4;_e++){var ye=ce[_e*4];ge[_e]=ye/255*se}return{data:ge,width:x,height:re}}function E(oe,se){var de=oe.getBoxLayoutParams(),a=he.a.getLayoutRect(de,{width:se.getWidth(),height:se.getHeight()});a.y=se.getHeight()-a.y-a.height,this.viewGL.setViewport(a.x,a.y,a.width,a.height,se.getDevicePixelRatio()),this.radius=oe.get("globeRadius");var x=oe.get("globeOuterRadius");this.altitudeAxis&&this.altitudeAxis.setExtent(0,x-this.radius)}function b(oe,se){var de=[1/0,-1/0];if(oe.eachSeries(function(x){if(x.coordinateSystem===this){var re=x.getData(),ce=x.coordDimToDataDim("alt")[0];if(ce){var ge=re.getDataExtent(ce,!0);de[0]=Math.min(de[0],ge[0]),de[1]=Math.max(de[1],ge[1])}}},this),de&&isFinite(de[1]-de[0])){var a=ue.a.helper.createScale(de,{type:"value",min:"dataMin",max:"dataMax"});this.altitudeAxis=new ue.a.Axis("altitude",a),this.resize(this.model,se)}}var z={dimensions:Oe.a.prototype.dimensions,create:function(oe,se){var de=[];return oe.eachComponent("globe",function(a){a.__viewGL=a.__viewGL||new le.a;var x=new Oe.a;x.viewGL=a.__viewGL,a.coordinateSystem=x,x.model=a,de.push(x),x.resize=E,x.resize(a,se),x.update=b}),oe.eachSeries(function(a){if(a.get("coordinateSystem")==="globe"){var x=a.getReferringComponents("globe")[0];if(x||(x=oe.getComponent("globe")),!x)throw new Error('globe "'+ae.a.firstNotNull(a.get("globe3DIndex"),a.get("globe3DId"),0)+'" not found');var re=x.coordinateSystem;a.coordinateSystem=re}}),oe.eachComponent("globe",function(a,x){var re=a.coordinateSystem,ce=a.getDisplacementTexture(),ge=a.getDisplacemenScale();if(a.isDisplacementChanged()){if(a.hasDisplacement()){var _e=!0;ie.a.loadTexture(ce,se,function(ye){var be=ye.image,Se=me(be,ge);a.setDisplacementData(Se.data,Se.width,Se.height),_e||se.dispatchAction({type:"globeUpdateDisplacment"})}),_e=!1}else re.setDisplacementData(null,0,0);re.setDisplacementData(a.displacementData,a.displacementWidth,a.displacementHeight)}}),de}};ue.a.registerCoordinateSystem("globe",z);var ne=z},function(Ye,Me,pe){"use strict";var Oe=pe(1),ve=pe.n(Oe),ue=ve.a.vec3;function fe(he){this.radius=he,this.viewGL=null,this.altitudeAxis,this.displacementData=null,this.displacementWidth,this.displacementHeight}fe.prototype={constructor:fe,dimensions:["lng","lat","alt"],type:"globe",containPoint:function(){},setDisplacementData:function(he,le,ae){this.displacementData=he,this.displacementWidth=le,this.displacementHeight=ae},_getDisplacementScale:function(he,le){var ae=(he+180)/360*(this.displacementWidth-1),ie=(90-le)/180*(this.displacementHeight-1),me=Math.round(ae)+Math.round(ie)*this.displacementWidth;return this.displacementData[me]},dataToPoint:function(he,le){var ae=he[0],ie=he[1],me=he[2]||0,E=this.radius;this.displacementData&&(E*=1+this._getDisplacementScale(ae,ie)),this.altitudeAxis&&(E+=this.altitudeAxis.dataToCoord(me)),ae=ae*Math.PI/180,ie=ie*Math.PI/180;var b=Math.cos(ie)*E;return le=le||[],le[0]=-b*Math.cos(ae+Math.PI),le[1]=Math.sin(ie)*E,le[2]=b*Math.sin(ae+Math.PI),le},pointToData:function(he,le){var ae=he[0],ie=he[1],me=he[2],E=ue.len(he);ae/=E,ie/=E,me/=E;var b=Math.asin(ie),z=Math.atan2(me,-ae);z<0&&(z=Math.PI*2+z);var ne=b*180/Math.PI,oe=z*180/Math.PI-180;return le=le||[],le[0]=oe,le[1]=ne,le[2]=E-this.radius,this.altitudeAxis&&(le[2]=this.altitudeAxis.coordToData(le[2])),le}},Me.a=fe},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(196),fe=pe(198),he=pe(199);ve.a.registerAction({type:"mapbox3DChangeCamera",event:"mapbox3dcamerachanged",update:"mapbox3D:updateCamera"},function(le,ae){ae.eachComponent({mainType:"mapbox3D",query:le},function(ie){ie.setMapboxCameraOption(le)})})},function(Ye,Me,pe){"use strict";var Oe=pe(197),ve=pe(0),ue=pe.n(ve),fe=pe(3),he=pe(2),le=pe(20);function ae(b,z){var ne=z.getWidth(),oe=z.getHeight(),se=z.getDevicePixelRatio();this.viewGL.setViewport(0,0,ne,oe,se),this.width=ne,this.height=oe,this.altitudeScale=b.get("altitudeScale"),this.boxHeight=b.get("boxHeight")}function ie(b,z){if(this.model.get("boxHeight")!=="auto"){var ne=[1/0,-1/0];b.eachSeries(function(oe){if(oe.coordinateSystem===this){var se=oe.getData(),de=oe.coordDimToDataDim("alt")[0];if(de){var a=se.getDataExtent(de,!0);ne[0]=Math.min(ne[0],a[0]),ne[1]=Math.max(ne[1],a[1])}}},this),ne&&isFinite(ne[1]-ne[0])&&(this.altitudeExtent=ne)}}var me={dimensions:Oe.a.prototype.dimensions,create:function(b,z){var ne=[];return b.eachComponent("mapbox3D",function(oe){var se=oe.__viewGL;se||(se=oe.__viewGL=new le.a,se.setRootNode(new he.a.Node));var de=new Oe.a;de.viewGL=oe.__viewGL,de.resize=ae,de.resize(oe,z),ne.push(de),oe.coordinateSystem=de,de.model=oe,de.setCameraOption(oe.getMapboxCameraOption()),de.update=ie}),b.eachSeries(function(oe){if(oe.get("coordinateSystem")==="mapbox3D"){var se=oe.getReferringComponents("mapbox3D")[0];if(se||(se=b.getComponent("mapbox3D")),!se)throw new Error('mapbox3D "'+fe.a.firstNotNull(oe.get("mapbox3DIndex"),oe.get("mapbox3DId"),0)+'" not found');oe.coordinateSystem=se.coordinateSystem}}),ne}};ue.a.registerCoordinateSystem("mapbox3D",me);var E=me},function(Ye,Me,pe){"use strict";var Oe=pe(1),ve=pe.n(Oe),ue=ve.a.mat4,fe=512,he=.6435011087932844,le=Math.PI,ae=1/10;function ie(){this.width=0,this.height=0,this.altitudeScale=1,this.boxHeight="auto",this.altitudeExtent,this.bearing=0,this.pitch=0,this.center=[0,0],this._origin,this.zoom=0,this._initialZoom}ie.prototype={constructor:ie,type:"mapbox3D",dimensions:["lng","lat","alt"],containPoint:function(){},setCameraOption:function(me){this.bearing=me.bearing,this.pitch=me.pitch,this.center=me.center,this.zoom=me.zoom,this._origin||(this._origin=this.projectOnTileWithScale(this.center,fe)),this._initialZoom==null&&(this._initialZoom=this.zoom),this.updateTransform()},updateTransform:function(){if(this.height){var me=.5/Math.tan(he/2)*this.height*ae,E=Math.max(Math.min(this.pitch,60),0)/180*Math.PI,b=he/2,z=Math.PI/2+E,ne=Math.sin(b)*me/Math.sin(Math.PI-z-b),oe=Math.cos(Math.PI/2-E)*ne+me,se=oe*1.1,de=new Float64Array(16);ue.perspective(de,he,this.width/this.height,1,se),this.viewGL.camera.projectionMatrix.setArray(de),this.viewGL.camera.decomposeProjectionMatrix();var de=ue.identity(new Float64Array(16)),a=this.dataToPoint(this.center);ue.scale(de,de,[1,-1,1]),ue.translate(de,de,[0,0,-me]),ue.rotateX(de,de,E),ue.rotateZ(de,de,-this.bearing/180*Math.PI),ue.translate(de,de,[-a[0]*this.getScale()*ae,-a[1]*this.getScale()*ae,0]),this.viewGL.camera.viewMatrix.array=de;var x=new Float64Array(16);ue.invert(x,de),this.viewGL.camera.worldTransform.array=x,this.viewGL.camera.decomposeWorldTransform();var re=fe*this.getScale(),ce;if(this.altitudeExtent&&!isNaN(this.boxHeight)){var ge=this.altitudeExtent[1]-this.altitudeExtent[0];ce=this.boxHeight/ge*this.getScale()/Math.pow(2,this._initialZoom)}else ce=re/(2*Math.PI*6378e3*Math.abs(Math.cos(this.center[1]*(Math.PI/180))))*this.altitudeScale*ae;this.viewGL.rootNode.scale.set(this.getScale()*ae,this.getScale()*ae,ce)}},getScale:function(){return Math.pow(2,this.zoom)},projectOnTile:function(me,E){return this.projectOnTileWithScale(me,this.getScale()*fe,E)},projectOnTileWithScale:function(me,E,b){var z=me[0],ne=me[1],oe=z*le/180,se=ne*le/180,de=E*(oe+le)/(2*le),a=E*(le-Math.log(Math.tan(le/4+se*.5)))/(2*le);return b=b||[],b[0]=de,b[1]=a,b},unprojectFromTile:function(me,E){return this.unprojectOnTileWithScale(me,this.getScale()*fe,E)},unprojectOnTileWithScale:function(me,E,b){var z=me[0],ne=me[1],oe=z/E*(2*le)-le,se=2*(Math.atan(Math.exp(le-ne/E*(2*le)))-le/4);return b=b||[],b[0]=oe*180/le,b[1]=se*180/le,b},dataToPoint:function(me,E){return E=this.projectOnTileWithScale(me,fe,E),E[0]-=this._origin[0],E[1]-=this._origin[1],E[2]=isNaN(me[2])?0:me[2],isNaN(me[2])||(E[2]=me[2],this.altitudeExtent&&(E[2]-=this.altitudeExtent[0])),E}},Me.a=ie},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(31),fe=pe(32),he=["zoom","center","pitch","bearing"],le=ve.a.extendComponentModel({type:"mapbox3D",layoutMode:"box",coordinateSystem:null,defaultOption:{zlevel:-10,style:"mapbox://styles/mapbox/light-v9",center:[0,0],zoom:0,pitch:0,bearing:0,light:{main:{alpha:20,beta:30}},altitudeScale:1,boxHeight:"auto"},getMapboxCameraOption:function(){var ie=this;return he.reduce(function(me,E){return me[E]=ie.get(E),me},{})},setMapboxCameraOption:function(ie){ie!=null&&he.forEach(function(me){ie[me]!=null&&(this.option[me]=ie[me])},this)},getMapbox:function(){return this._mapbox},setMapbox:function(ie){this._mapbox=ie}});ve.a.util.merge(le.prototype,ue.a),ve.a.util.merge(le.prototype,fe.a);var ae=le},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(200),fe=pe(34),he=pe(2),le=pe(201);he.a.Shader.import(le.a);var ae=512,ie=ve.a.extendComponentView({type:"mapbox3D",__ecgl__:!0,init:function(me,E){var b=E.getZr();this._zrLayer=new ue.a("mapbox3D",b),b.painter.insertLayer(-1e3,this._zrLayer),this._lightRoot=new he.a.Node,this._sceneHelper=new fe.a(this._lightRoot),this._sceneHelper.initLight(this._lightRoot);var z=this._zrLayer.getMapbox(),ne=this._dispatchInteractAction.bind(this,E,z);["zoom","rotate","drag","pitch","rotate","move"].forEach(function(oe){z.on(oe,ne)}),this._groundMesh=new he.a.Mesh({geometry:new he.a.PlaneGeometry,material:new he.a.Material({shader:new he.a.Shader({vertex:he.a.Shader.source("ecgl.displayShadow.vertex"),fragment:he.a.Shader.source("ecgl.displayShadow.fragment")}),depthMask:!1}),renderOrder:-100,culling:!1,castShadow:!1,$ignorePicking:!0,renderNormal:!0})},render:function(me,E,b){var z=this._zrLayer.getMapbox(),ne=me.get("style"),oe=JSON.stringify(ne);oe!==this._oldStyleStr&&ne&&z.setStyle(ne),this._oldStyleStr=oe,z.setCenter(me.get("center")),z.setZoom(me.get("zoom")),z.setPitch(me.get("pitch")),z.setBearing(me.get("bearing")),me.setMapbox(z);var se=me.coordinateSystem;se.viewGL.scene.add(this._lightRoot),se.viewGL.add(this._groundMesh),this._updateGroundMesh(),this._sceneHelper.setScene(se.viewGL.scene),this._sceneHelper.updateLight(me),se.viewGL.setPostEffect(me.getModel("postEffect"),b),se.viewGL.setTemporalSuperSampling(me.getModel("temporalSuperSampling")),this._mapbox3DModel=me},afterRender:function(me,E,b,z){var ne=z.renderer;this._sceneHelper.updateAmbientCubemap(ne,me,b),this._sceneHelper.updateSkybox(ne,me,b),me.coordinateSystem.viewGL.scene.traverse(function(oe){oe.material&&(oe.material.define("fragment","NORMAL_UP_AXIS",2),oe.material.define("fragment","NORMAL_FRONT_AXIS",1))})},updateCamera:function(me,E,b,z){me.coordinateSystem.setCameraOption(z),this._updateGroundMesh(),b.getZr().refresh()},_dispatchInteractAction:function(me,E,b){me.dispatchAction({type:"mapbox3DChangeCamera",pitch:E.getPitch(),zoom:E.getZoom(),center:E.getCenter().toArray(),bearing:E.getBearing(),mapbox3DId:this._mapbox3DModel&&this._mapbox3DModel.id})},_updateGroundMesh:function(){if(this._mapbox3DModel){var me=this._mapbox3DModel.coordinateSystem,E=me.dataToPoint(me.center);this._groundMesh.position.set(E[0],E[1],-.001);var b=new he.a.Plane(new he.a.Vector3(0,0,1),0),z=me.viewGL.camera.castRay(new he.a.Vector2(-1,-1)),ne=me.viewGL.camera.castRay(new he.a.Vector2(1,1)),oe=z.intersectPlane(b),se=ne.intersectPlane(b),de=oe.dist(se)/me.viewGL.rootNode.scale.x;this._groundMesh.scale.set(de,de,1)}},dispose:function(me,E){E.getZr().delLayer(-1e3)}})},function(Ye,Me,pe){"use strict";function Oe(ue,fe){if(this.id=ue,this.zr=fe,this.dom=document.createElement("div"),this.dom.style.cssText="position:absolute;left:0;right:0;top:0;bottom:0;",!mapboxgl)throw new Error("Mapbox GL library must be included. See https://www.mapbox.com/mapbox-gl-js/api/");this._mapbox=new mapboxgl.Map({container:this.dom}),this._initEvents()}Oe.prototype.resize=function(){this._mapbox.resize()},Oe.prototype.getMapbox=function(){return this._mapbox},Oe.prototype.clear=function(){},Oe.prototype.refresh=function(){this._mapbox.resize()};var ve=["mousedown","mouseup","click","dblclick","mousemove","mousewheel","wheel","touchstart","touchend","touchmove","touchcancel"];Oe.prototype._initEvents=function(){var ue=this._mapbox.getCanvasContainer();this._handlers=this._handlers||{contextmenu:function(fe){return fe.preventDefault(),!1}},ve.forEach(function(fe){this._handlers[fe]=function(he){var le={};for(var ae in he)le[ae]=he[ae];le.bubbles=!1;var ie=new he.constructor(he.type,le);ue.dispatchEvent(ie)},this.zr.dom.addEventListener(fe,this._handlers[fe])},this),this.zr.dom.addEventListener("contextmenu",this._handlers.contextmenu)},Oe.prototype.dispose=function(){ve.forEach(function(ue){this.zr.dom.removeEventListener(ue,this._handlers[ue])},this)},Me.a=Oe},function(Ye,Me,pe){"use strict";Me.a=`
|
|
|
@export ecgl.displayShadow.vertex
|
|
|
|
|
|
@import ecgl.common.transformUniforms
|
|
|
|
|
|
@import ecgl.common.uv.header
|
|
|
|
|
|
@import ecgl.common.attributes
|
|
|
|
|
|
varying vec3 v_WorldPosition;
|
|
|
|
|
|
varying vec3 v_Normal;
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
@import ecgl.common.uv.main
|
|
|
v_Normal = normalize((worldInverseTranspose * vec4(normal, 0.0)).xyz);
|
|
|
|
|
|
v_WorldPosition = (world * vec4(position, 1.0)).xyz;
|
|
|
gl_Position = worldViewProjection * vec4(position, 1.0);
|
|
|
}
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
@export ecgl.displayShadow.fragment
|
|
|
|
|
|
@import ecgl.common.uv.fragmentHeader
|
|
|
|
|
|
varying vec3 v_Normal;
|
|
|
varying vec3 v_WorldPosition;
|
|
|
|
|
|
uniform float roughness: 0.2;
|
|
|
|
|
|
#ifdef DIRECTIONAL_LIGHT_COUNT
|
|
|
@import clay.header.directional_light
|
|
|
#endif
|
|
|
|
|
|
@import ecgl.common.ssaoMap.header
|
|
|
|
|
|
@import clay.plugin.compute_shadow_map
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
float shadow = 1.0;
|
|
|
|
|
|
@import ecgl.common.ssaoMap.main
|
|
|
|
|
|
#if defined(DIRECTIONAL_LIGHT_COUNT) && defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)
|
|
|
float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT];
|
|
|
if(shadowEnabled)
|
|
|
{
|
|
|
computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir);
|
|
|
}
|
|
|
for (int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++) {
|
|
|
shadow = min(shadow, shadowContribsDir[i] * 0.5 + 0.5);
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
shadow *= 0.5 + ao * 0.5;
|
|
|
shadow = clamp(shadow, 0.0, 1.0);
|
|
|
|
|
|
gl_FragColor = vec4(vec3(0.0), 1.0 - shadow);
|
|
|
}
|
|
|
|
|
|
@end`},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(203),fe=pe(206),he=pe(208),le=pe(16);ve.a.registerVisual(Object(le.a)("bar3D")),ve.a.registerProcessor(function(ae,ie){ae.eachSeriesByType("bar3d",function(me){var E=me.getData();E.filterSelf(function(b){return E.hasValue(b)})})})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(4),fe=pe(1),he=pe.n(fe),le=pe(204),ae=pe(205),ie=he.a.vec3;function me(z,ne){var oe=z.getData(),se=z.get("minHeight")||0,de=z.get("barSize"),a=["lng","lat","alt"].map(function(ce){return z.coordDimToDataDim(ce)[0]});if(de==null){var x=ne.radius*Math.PI,re=Object(ae.a)(oe,a[0],a[1]);de=[x/Math.sqrt(oe.count()/re),x/Math.sqrt(oe.count()/re)]}else ve.a.util.isArray(de)||(de=[de,de]);oe.each(a,function(ce,ge,_e,ye){var be=oe.get(a[2],ye,!0),Se=oe.stackedOn?be-_e:ne.altitudeAxis.scale.getExtent()[0],Be=Math.max(ne.altitudeAxis.dataToCoord(_e),se),Ae=ne.dataToPoint([ce,ge,Se]),we=ne.dataToPoint([ce,ge,be]),Ue=ie.sub([],we,Ae);ie.normalize(Ue,Ue);var Pe=[de[0],Be,de[1]];oe.setItemLayout(ye,[Ae,Ue,Pe])}),oe.setLayout("orient",ue.a.UP.array)}function E(z,ne){var oe=z.getData(),se=z.get("barSize"),de=z.get("minHeight")||0,a=["lng","lat","alt"].map(function(ge){return z.coordDimToDataDim(ge)[0]});if(se==null){var x=Math.min(ne.size[0],ne.size[2]),re=Object(ae.a)(oe,a[0],a[1]);se=[x/Math.sqrt(oe.count()/re),x/Math.sqrt(oe.count()/re)]}else ve.a.util.isArray(se)||(se=[se,se]);var ce=[0,1,0];oe.each(a,function(ge,_e,ye,be){var Se=oe.get(a[2],be,!0),Be=oe.stackedOn?Se-ye:ne.altitudeAxis.scale.getExtent()[0],Ae=Math.max(ne.altitudeAxis.dataToCoord(ye),de),we=ne.dataToPoint([ge,_e,Be]),Ue=[se[0],Ae,se[1]];oe.setItemLayout(be,[we,ce,Ue])}),oe.setLayout("orient",[1,0,0])}function b(z,ne){var oe=z.getData(),se=z.coordDimToDataDim("lng")[0],de=z.coordDimToDataDim("lat")[0],a=z.coordDimToDataDim("alt")[0],x=z.get("barSize"),re=z.get("minHeight")||0;if(x==null){var ce=oe.getDataExtent(se),ge=oe.getDataExtent(de),_e=ne.dataToPoint([ce[0],ge[0]]),ye=ne.dataToPoint([ce[1],ge[1]]),be=Math.min(Math.abs(_e[0]-ye[0]),Math.abs(_e[1]-ye[1]))||1,Se=Object(ae.a)(oe,se,de);x=[be/Math.sqrt(oe.count()/Se),be/Math.sqrt(oe.count()/Se)]}else ve.a.util.isArray(x)||(x=[x,x]),x[0]/=ne.getScale()/16,x[1]/=ne.getScale()/16;var Be=[0,0,1];oe.each([se,de,a],function(Ae,we,Ue,Pe){var ze=oe.get(a,Pe,!0),Ke=oe.stackedOn?ze-Ue:0,Ne=ne.dataToPoint([Ae,we,Ke]),Re=ne.dataToPoint([Ae,we,ze]),$e=Math.max(Re[2]-Ne[2],re),nt=[x[0],$e,x[1]];oe.setItemLayout(Pe,[Ne,Be,nt])}),oe.setLayout("orient",[1,0,0])}ve.a.registerLayout(function(z,ne){z.eachSeriesByType("bar3D",function(oe){var se=oe.coordinateSystem,de=se&&se.type;if(de==="globe")me(oe,se);else if(de==="cartesian3D")Object(le.a)(oe,se);else if(de==="geo3D")E(oe,se);else if(de==="mapbox3D")b(oe,se);else throw se?new Error("bar3D doesn't support coordinate system "+se.type):new Error("bar3D doesn't have coordinate system.")})})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(1),fe=pe.n(ue),he=fe.a.vec3;function le(ie){var me=ie[0],E=ie[1];return!(me>0&&E>0||me<0&&E<0)}function ae(ie,me){var E=ie.getData(),b=ie.get("barSize");if(b==null){var z=me.size,ne,oe,se=me.getAxis("x"),de=me.getAxis("y");se.type==="category"?ne=se.getBandWidth()*.7:ne=Math.round(z[0]/Math.sqrt(E.count()))*.6,de.type==="category"?oe=de.getBandWidth()*.7:oe=Math.round(z[1]/Math.sqrt(E.count()))*.6,b=[ne,oe]}else ve.a.util.isArray(b)||(b=[b,b]);var a=me.getAxis("z").scale.getExtent(),x=le(a),re=["x","y","z"].map(function(ce){return ie.coordDimToDataDim(ce)[0]});E.each(re,function(ce,ge,_e,ye){var be=E.get(re[2],ye,!0),Se=E.stackedOn?be-_e:x?0:a[0],Be=me.dataToPoint([ce,ge,Se]),Ae=me.dataToPoint([ce,ge,be]),we=he.dist(Be,Ae),Ue=[0,Ae[1]<Be[1]?-1:1,0];Math.abs(we)===0&&(we=.1);var Pe=[b[0],we,b[1]];E.setItemLayout(ye,[Be,Ue,Pe])}),E.setLayout("orient",[1,0,0])}Me.a=ae},function(Ye,Me,pe){"use strict";Me.a=function(Oe,ve,ue){for(var fe=Oe.getDataExtent(ve),he=Oe.getDataExtent(ue),le=fe[1]-fe[0]||fe[0],ae=he[1]-he[0]||he[0],ie=50,me=new Uint8Array(ie*ie),E=0;E<Oe.count();E++){var b=Oe.get(ve,E),z=Oe.get(ue,E),ne=Math.floor((b-fe[0])/le*(ie-1)),oe=Math.floor((z-he[0])/ae*(ie-1)),se=oe*ie+ne;me[se]=me[se]||1}for(var de=0,E=0;E<me.length;E++)me[E]&&de++;return de/me.length}},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(2),fe=pe(3),he=pe(27),le=pe(207),ae=pe(61),ie=pe(1),me=pe.n(ie),E=me.a.vec3,b=ve.a.extendChartView({type:"bar3D",__ecgl__:!0,init:function(z,ne){this.groupGL=new ue.a.Node,this._api=ne,this._labelsBuilder=new ae.a(256,256,ne);var oe=this;this._labelsBuilder.getLabelPosition=function(se,de,a){if(oe._data){var x=oe._data.getItemLayout(se),re=x[0],ce=x[1],ge=x[2][1];return E.scaleAndAdd([],re,ce,a+ge)}else return[0,0]},this._labelsBuilder.getMesh().renderOrder=100},render:function(z,ne,oe){var se=this._prevBarMesh;this._prevBarMesh=this._barMesh,this._barMesh=se,this._barMesh||(this._barMesh=new ue.a.Mesh({geometry:new le.a,shadowDepthMaterial:new ue.a.Material({shader:new ue.a.Shader(ue.a.Shader.source("ecgl.sm.depth.vertex"),ue.a.Shader.source("ecgl.sm.depth.fragment"))}),culling:z.coordinateSystem.type==="cartesian3D",renderOrder:10,renderNormal:!0})),this.groupGL.remove(this._prevBarMesh),this.groupGL.add(this._barMesh),this.groupGL.add(this._labelsBuilder.getMesh());var de=z.coordinateSystem;if(this._doRender(z,oe),de&&de.viewGL){de.viewGL.add(this.groupGL);var a=de.viewGL.isLinearSpace()?"define":"undefine";this._barMesh.material[a]("fragment","SRGB_DECODE")}this._data=z.getData(),this._labelsBuilder.updateData(this._data),this._labelsBuilder.updateLabels(),this._updateAnimation(z)},_updateAnimation:function(z){ue.a.updateVertexAnimation([["prevPosition","position"],["prevNormal","normal"]],this._prevBarMesh,this._barMesh,z)},_doRender:function(z,ne){var oe=z.getData(),se=z.get("shading"),de=se!=="color",a=this,x=this._barMesh,re="ecgl."+se;(!x.material||x.material.shader.name!==re)&&(x.material=ue.a.createMaterial(re,["VERTEX_COLOR"])),ue.a.setMaterialFromModel(se,x.material,z,ne),x.geometry.enableNormal=de,x.geometry.resetOffset();var ce=z.get("bevelSize"),ge=z.get("bevelSmoothness");x.geometry.bevelSegments=ge,x.geometry.bevelSize=ce;var _e=[],ye=new Float32Array(oe.count()*4),be=0,we=0,Se=!1;oe.each(function(Pe){if(oe.hasValue(Pe)){var ze=oe.getItemVisual(Pe,"color"),Ke=oe.getItemVisual(Pe,"opacity");Ke==null&&(Ke=1),ue.a.parseColor(ze,_e),_e[3]*=Ke,ye[be++]=_e[0],ye[be++]=_e[1],ye[be++]=_e[2],ye[be++]=_e[3],_e[3]>0&&(we++,_e[3]<.99&&(Se=!0))}}),x.geometry.setBarCount(we);var Be=oe.getLayout("orient"),Ae=this._barIndexOfData=new Int32Array(oe.count()),we=0;oe.each(function(Pe){if(!oe.hasValue(Pe)){Ae[Pe]=-1;return}var ze=oe.getItemLayout(Pe),Ke=ze[0],Ne=ze[1],Re=ze[2],$e=Pe*4;_e[0]=ye[$e++],_e[1]=ye[$e++],_e[2]=ye[$e++],_e[3]=ye[$e++],_e[3]>0&&(a._barMesh.geometry.addBar(Ke,Ne,Be,Re,_e,Pe),Ae[Pe]=we++)}),x.geometry.dirty(),x.geometry.updateBoundingBox();var Ue=x.material;Ue.transparent=Se,Ue.depthMask=!Se,x.geometry.sortTriangles=Se,this._initHandler(z,ne)},_initHandler:function(z,ne){var oe=z.getData(),se=this._barMesh,de=z.coordinateSystem.type==="cartesian3D";se.seriesIndex=z.seriesIndex;var a=-1;se.off("mousemove"),se.off("mouseout"),se.on("mousemove",function(x){var re=se.geometry.getDataIndexOfVertex(x.triangle[0]);re!==a&&(this._downplay(a),this._highlight(re),this._labelsBuilder.updateLabels([re]),de&&ne.dispatchAction({type:"grid3DShowAxisPointer",value:[oe.get("x",re),oe.get("y",re),oe.get("z",re,!0)]})),a=re,se.dataIndex=re},this),se.on("mouseout",function(x){this._downplay(a),this._labelsBuilder.updateLabels(),a=-1,se.dataIndex=-1,de&&ne.dispatchAction({type:"grid3DHideAxisPointer"})},this)},_highlight:function(z){var ne=this._data;if(ne){var oe=this._barIndexOfData[z];if(!(oe<0)){var se=ne.getItemModel(z),de=se.getModel("emphasis.itemStyle"),a=de.get("color"),x=de.get("opacity");if(a==null){var re=ne.getItemVisual(z,"color");a=ve.a.color.lift(re,-.4)}x==null&&(x=ne.getItemVisual(z,"opacity"));var ce=ue.a.parseColor(a);ce[3]*=x,this._barMesh.geometry.setColor(oe,ce),this._api.getZr().refresh()}}},_downplay:function(z){var ne=this._data;if(ne){var oe=this._barIndexOfData[z];if(!(oe<0)){var se=ne.getItemVisual(z,"color"),de=ne.getItemVisual(z,"opacity"),a=ue.a.parseColor(se);a[3]*=de,this._barMesh.geometry.setColor(oe,a),this._api.getZr().refresh()}}},highlight:function(z,ne,oe,se){this._toggleStatus("highlight",z,ne,oe,se)},downplay:function(z,ne,oe,se){this._toggleStatus("downplay",z,ne,oe,se)},_toggleStatus:function(z,ne,oe,se,de){var a=ne.getData(),x=fe.a.queryDataIndex(a,de),re=this;x!=null?ve.a.util.each(he.a.normalizeToArray(x),function(ce){z==="highlight"?this._highlight(ce):this._downplay(ce)},this):a.each(function(ce){z==="highlight"?re._highlight(ce):re._downplay(ce)})},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(33),fe=pe(60),he=pe(13),le=pe(1),ae=pe.n(le),ie=ae.a.vec3,me=ae.a.mat3,E=he.a.extend(function(){return{attributes:{position:new he.a.Attribute("position","float",3,"POSITION"),normal:new he.a.Attribute("normal","float",3,"NORMAL"),color:new he.a.Attribute("color","float",4,"COLOR"),prevPosition:new he.a.Attribute("prevPosition","float",3),prevNormal:new he.a.Attribute("prevNormal","float",3)},dynamic:!0,enableNormal:!1,bevelSize:1,bevelSegments:0,_dataIndices:null,_vertexOffset:0,_triangleOffset:0}},{resetOffset:function(){this._vertexOffset=0,this._triangleOffset=0},setBarCount:function(b){var z=this.enableNormal,ne=this.getBarVertexCount()*b,oe=this.getBarTriangleCount()*b;this.vertexCount!==ne&&(this.attributes.position.init(ne),z?this.attributes.normal.init(ne):this.attributes.normal.value=null,this.attributes.color.init(ne)),this.triangleCount!==oe&&(this.indices=ne>65535?new Uint32Array(oe*3):new Uint16Array(oe*3),this._dataIndices=new Uint32Array(ne))},getBarVertexCount:function(){var b=this.bevelSize>0?this.bevelSegments:0;return b>0?this._getBevelBarVertexCount(b):this.enableNormal?24:8},getBarTriangleCount:function(){var b=this.bevelSize>0?this.bevelSegments:0;return b>0?this._getBevelBarTriangleCount(b):12},_getBevelBarVertexCount:function(b){return(b+1)*4*(b+1)*2},_getBevelBarTriangleCount:function(b){var z=b*4+3,ne=b*2+1;return(z+1)*ne*2+4},setColor:function(b,z){for(var ne=this.getBarVertexCount(),oe=ne*b,se=ne*(b+1),de=oe;de<se;de++)this.attributes.color.set(de,z);this.dirtyAttribute("color")},getDataIndexOfVertex:function(b){return this._dataIndices?this._dataIndices[b]:null},addBar:function(){for(var b=ie.create,z=ie.scaleAndAdd,ne=b(),oe=b(),se=b(),de=b(),a=b(),x=b(),re=b(),ce=[],ge=[],_e=0;_e<8;_e++)ce[_e]=b();for(var ye=[[0,1,5,4],[2,3,7,6],[4,5,6,7],[3,2,1,0],[0,4,7,3],[1,2,6,5]],be=[0,1,2,0,2,3],Se=[],_e=0;_e<ye.length;_e++)for(var Be=ye[_e],Ae=0;Ae<2;Ae++){for(var we=[],Ue=0;Ue<3;Ue++)we.push(Be[be[Ae*3+Ue]]);Se.push(we)}return function(Pe,ze,Ke,Ne,Re,$e){var nt=this._vertexOffset;if(this.bevelSize>0&&this.bevelSegments>0)this._addBevelBar(Pe,ze,Ke,Ne,this.bevelSize,this.bevelSegments,Re);else{ie.copy(se,ze),ie.normalize(se,se),ie.cross(de,Ke,se),ie.normalize(de,de),ie.cross(oe,se,de),ie.normalize(de,de),ie.negate(a,oe),ie.negate(x,se),ie.negate(re,de),z(ce[0],Pe,oe,Ne[0]/2),z(ce[0],ce[0],de,Ne[2]/2),z(ce[1],Pe,oe,Ne[0]/2),z(ce[1],ce[1],re,Ne[2]/2),z(ce[2],Pe,a,Ne[0]/2),z(ce[2],ce[2],re,Ne[2]/2),z(ce[3],Pe,a,Ne[0]/2),z(ce[3],ce[3],de,Ne[2]/2),z(ne,Pe,se,Ne[1]),z(ce[4],ne,oe,Ne[0]/2),z(ce[4],ce[4],de,Ne[2]/2),z(ce[5],ne,oe,Ne[0]/2),z(ce[5],ce[5],re,Ne[2]/2),z(ce[6],ne,a,Ne[0]/2),z(ce[6],ce[6],re,Ne[2]/2),z(ce[7],ne,a,Ne[0]/2),z(ce[7],ce[7],de,Ne[2]/2);var ut=this.attributes;if(this.enableNormal){ge[0]=oe,ge[1]=a,ge[2]=se,ge[3]=x,ge[4]=de,ge[5]=re;for(var Qe=this._vertexOffset,rt=0;rt<ye.length;rt++){for(var pt=this._triangleOffset*3,At=0;At<6;At++)this.indices[pt++]=Qe+be[At];Qe+=4,this._triangleOffset+=2}for(var rt=0;rt<ye.length;rt++)for(var gt=ge[rt],At=0;At<4;At++){var Ft=ye[rt][At];ut.position.set(this._vertexOffset,ce[Ft]),ut.normal.set(this._vertexOffset,gt),ut.color.set(this._vertexOffset++,Re)}}else{for(var rt=0;rt<Se.length;rt++){for(var pt=this._triangleOffset*3,At=0;At<3;At++)this.indices[pt+At]=Se[rt][At]+this._vertexOffset;this._triangleOffset++}for(var rt=0;rt<ce.length;rt++)ut.position.set(this._vertexOffset,ce[rt]),ut.color.set(this._vertexOffset++,Re)}}for(var Ct=this._vertexOffset,rt=nt;rt<Ct;rt++)this._dataIndices[rt]=$e}}(),_addBevelBar:function(){var b=ie.create(),z=ie.create(),ne=ie.create(),oe=me.create(),se=[],de=[1,-1,-1,1],a=[1,1,-1,-1],x=[2,0];return function(re,ce,ge,_e,ye,be,Se){ie.copy(z,ce),ie.normalize(z,z),ie.cross(ne,ge,z),ie.normalize(ne,ne),ie.cross(b,z,ne),ie.normalize(ne,ne),oe[0]=b[0],oe[1]=b[1],oe[2]=b[2],oe[3]=z[0],oe[4]=z[1],oe[5]=z[2],oe[6]=ne[0],oe[7]=ne[1],oe[8]=ne[2],ye=Math.min(_e[0],_e[2])/2*ye;for(var Be=0;Be<3;Be++)se[Be]=Math.max(_e[Be]-ye*2,0);for(var Ae=(_e[0]-se[0])/2,we=(_e[1]-se[1])/2,Ue=(_e[2]-se[2])/2,Pe=[],ze=[],Ke=this._vertexOffset,Ne=[],Be=0;Be<2;Be++){Ne[Be]=Ne[Be]=[];for(var Re=0;Re<=be;Re++)for(var $e=0;$e<4;$e++){(Re===0&&Be===0||Be===1&&Re===be)&&Ne[Be].push(Ke);for(var nt=0;nt<=be;nt++){var ut=nt/be*Math.PI/2+Math.PI/2*$e,Qe=Re/be*Math.PI/2+Math.PI/2*Be;ze[0]=Ae*Math.cos(ut)*Math.sin(Qe),ze[1]=we*Math.cos(Qe),ze[2]=Ue*Math.sin(ut)*Math.sin(Qe),Pe[0]=ze[0]+de[$e]*se[0]/2,Pe[1]=ze[1]+we+x[Be]*se[1]/2,Pe[2]=ze[2]+a[$e]*se[2]/2,Math.abs(Ae-we)<1e-6&&Math.abs(we-Ue)<1e-6||(ze[0]/=Ae*Ae,ze[1]/=we*we,ze[2]/=Ue*Ue),ie.normalize(ze,ze),ie.transformMat3(Pe,Pe,oe),ie.transformMat3(ze,ze,oe),ie.add(Pe,Pe,re),this.attributes.position.set(Ke,Pe),this.enableNormal&&this.attributes.normal.set(Ke,ze),this.attributes.color.set(Ke,Se),Ke++}}}for(var rt=be*4+3,pt=be*2+1,At=rt+1,$e=0;$e<pt;$e++)for(var Be=0;Be<=rt;Be++){var gt=$e*At+Be+this._vertexOffset,Ft=$e*At+(Be+1)%At+this._vertexOffset,Ct=($e+1)*At+(Be+1)%At+this._vertexOffset,Yt=($e+1)*At+Be+this._vertexOffset;this.setTriangleIndices(this._triangleOffset++,[Ct,gt,Ft]),this.setTriangleIndices(this._triangleOffset++,[Ct,Yt,gt])}this.setTriangleIndices(this._triangleOffset++,[Ne[0][0],Ne[0][2],Ne[0][1]]),this.setTriangleIndices(this._triangleOffset++,[Ne[0][0],Ne[0][3],Ne[0][2]]),this.setTriangleIndices(this._triangleOffset++,[Ne[1][0],Ne[1][1],Ne[1][2]]),this.setTriangleIndices(this._triangleOffset++,[Ne[1][0],Ne[1][2],Ne[1][3]]),this._vertexOffset=Ke}}()});ve.a.util.defaults(E.prototype,ue.a),ve.a.util.defaults(E.prototype,fe.a),Me.a=E},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(26),fe=pe(27),he=pe(35),le=pe(44),ae=ve.a.extendSeriesModel({type:"series.bar3D",dependencies:["globe"],visualColorAccessPath:"itemStyle.color",getInitialData:function(me,E){return Object(le.a)(this)},getFormattedLabel:function(me,E,b,z){var ne=fe.a.getFormattedLabel(this,me,E,b,z);return ne==null&&(ne=this.getData().get("z",me)),ne},formatTooltip:function(me){return Object(he.a)(this,me)},defaultOption:{coordinateSystem:"cartesian3D",globeIndex:0,grid3DIndex:0,zlevel:-10,bevelSize:0,bevelSmoothness:2,onGridPlane:"xy",shading:"color",minHeight:0,itemStyle:{opacity:1},label:{show:!1,distance:2,textStyle:{fontSize:14,color:"#000",backgroundColor:"rgba(255,255,255,0.7)",padding:3,borderRadius:3}},emphasis:{label:{show:!0}},animationDurationUpdate:500}});ve.a.util.merge(ae.prototype,ue.a);var ie=ae},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(210),fe=pe(211),he=pe(45),le=pe.n(he),ae=pe(16);ve.a.registerVisual(le()("line3D","circle",null)),ve.a.registerVisual(Object(ae.a)("line3D")),ve.a.registerLayout(function(ie,me){ie.eachSeriesByType("line3D",function(E){var b=E.getData(),z=E.coordinateSystem;if(z){if(z.type!=="cartesian3D"){console.error("line3D needs cartesian3D coordinateSystem");return}var ne=new Float32Array(b.count()*3),oe=[],se=[],de=z.dimensions,a=de.map(function(x){return E.coordDimToDataDim(x)[0]});z&&b.each(a,function(x,re,ce,ge){oe[0]=x,oe[1]=re,oe[2]=ce,z.dataToPoint(oe,se),ne[ge*3]=se[0],ne[ge*3+1]=se[1],ne[ge*3+2]=se[2]}),b.setLayout("points",ne)}})})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(35),fe=pe(44),he=ve.a.extendSeriesModel({type:"series.line3D",dependencies:["grid3D"],visualColorAccessPath:"lineStyle.color",getInitialData:function(ae,ie){return Object(fe.a)(this)},formatTooltip:function(ae){return Object(ue.a)(this,ae)},defaultOption:{coordinateSystem:"cartesian3D",zlevel:-10,grid3DIndex:0,lineStyle:{width:2},animationDurationUpdate:500}}),le=he},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(2),fe=pe(3),he=pe(22),le=pe(9),ae=pe(4),ie=pe(212),me=pe.n(ie),E=pe(1),b=pe.n(E),z=pe(40),ne=b.a.vec3;ue.a.Shader.import(z.a);var oe=ve.a.extendChartView({type:"line3D",__ecgl__:!0,init:function(se,de){this.groupGL=new ue.a.Node,this._api=de},render:function(se,de,a){var x=this._prevLine3DMesh;this._prevLine3DMesh=this._line3DMesh,this._line3DMesh=x,this._line3DMesh||(this._line3DMesh=new ue.a.Mesh({geometry:new he.a({useNativeLine:!1,sortTriangles:!0}),material:new ue.a.Material({shader:ue.a.createShader("ecgl.meshLines3D")}),renderOrder:10}),this._line3DMesh.geometry.pick=this._pick.bind(this)),this.groupGL.remove(this._prevLine3DMesh),this.groupGL.add(this._line3DMesh);var re=se.coordinateSystem;if(re&&re.viewGL){re.viewGL.add(this.groupGL);var ce=re.viewGL.isLinearSpace()?"define":"undefine";this._line3DMesh.material[ce]("fragment","SRGB_DECODE")}this._doRender(se,a),this._data=se.getData(),this._camera=re.viewGL.camera,this.updateCamera(),this._updateAnimation(se)},updateCamera:function(){this._updateNDCPosition()},_doRender:function(se,de){var a=se.getData(),x=this._line3DMesh;x.geometry.resetOffset();var re=a.getLayout("points"),ce=[],ge=new Float32Array(re.length/3*4),_e=0,ye=!1;a.each(function(Be){var Ae=a.getItemVisual(Be,"color"),we=a.getItemVisual(Be,"opacity");we==null&&(we=1),ue.a.parseColor(Ae,ce),ce[3]*=we,ge[_e++]=ce[0],ge[_e++]=ce[1],ge[_e++]=ce[2],ge[_e++]=ce[3],ce[3]<.99&&(ye=!0)}),x.geometry.setVertexCount(x.geometry.getPolylineVertexCount(re)),x.geometry.setTriangleCount(x.geometry.getPolylineTriangleCount(re)),x.geometry.addPolyline(re,ge,fe.a.firstNotNull(se.get("lineStyle.width"),1)),x.geometry.dirty(),x.geometry.updateBoundingBox();var be=x.material;be.transparent=ye,be.depthMask=!ye;var Se=se.getModel("debug.wireframe");Se.get("show")?(x.geometry.createAttribute("barycentric","float",3),x.geometry.generateBarycentric(),x.material.set("both","WIREFRAME_TRIANGLE"),x.material.set("wireframeLineColor",ue.a.parseColor(Se.get("lineStyle.color")||"rgba(0,0,0,0.5)")),x.material.set("wireframeLineWidth",fe.a.firstNotNull(Se.get("lineStyle.width"),1))):x.material.set("both","WIREFRAME_TRIANGLE"),this._points=re,this._initHandler(se,de)},_updateAnimation:function(se){ue.a.updateVertexAnimation([["prevPosition","position"],["prevPositionPrev","positionPrev"],["prevPositionNext","positionNext"]],this._prevLine3DMesh,this._line3DMesh,se)},_initHandler:function(se,de){var a=se.getData(),x=se.coordinateSystem,re=this._line3DMesh,ce=-1;re.seriesIndex=se.seriesIndex,re.off("mousemove"),re.off("mouseout"),re.on("mousemove",function(ge){var _e=x.pointToData(ge.point.array),ye=a.indicesOfNearest("x",_e[0])[0];ye!==ce&&(de.dispatchAction({type:"grid3DShowAxisPointer",value:[a.get("x",ye),a.get("y",ye),a.get("z",ye)]}),re.dataIndex=ye),ce=ye},this),re.on("mouseout",function(ge){ce=-1,re.dataIndex=-1,de.dispatchAction({type:"grid3DHideAxisPointer"})},this)},_updateNDCPosition:function(){var se=new le.a,de=this._camera;le.a.multiply(se,de.projectionMatrix,de.viewMatrix);var a=this._positionNDC,x=this._points,re=x.length/3;(!a||a.length/2!==re)&&(a=this._positionNDC=new Float32Array(re*2));for(var ce=[],ge=0;ge<re;ge++){var _e=ge*3,ye=ge*2;ce[0]=x[_e],ce[1]=x[_e+1],ce[2]=x[_e+2],ce[3]=1,ne.transformMat4(ce,ce,se.array),a[ye]=ce[0]/ce[3],a[ye+1]=ce[1]/ce[3]}},_pick:function(se,de,a,x,re,ce){var ge=this._positionNDC,_e=this._data.hostModel,ye=_e.get("lineStyle.width"),be=-1,Se=a.viewport.width,Be=a.viewport.height,Ae=Se*.5,we=Be*.5;se=(se+1)*Ae,de=(de+1)*we;for(var Ue=1;Ue<ge.length/2;Ue++){var Pe=(ge[(Ue-1)*2]+1)*Ae,ze=(ge[(Ue-1)*2+1]+1)*we,Ke=(ge[Ue*2]+1)*Ae,Ne=(ge[Ue*2+1]+1)*we;if(me.a.containStroke(Pe,ze,Ke,Ne,ye,se,de)){var Re=(Pe-se)*(Pe-se)+(ze-de)*(ze-de),$e=(Ke-se)*(Ke-se)+(Ne-de)*(Ne-de);be=Re<$e?Ue-1:Ue}}if(be>=0){var nt=be*3,ut=new ae.a(this._points[nt],this._points[nt+1],this._points[nt+2]);ce.push({dataIndex:be,point:ut,pointWorld:ut.clone(),target:this._line3DMesh,distance:this._camera.getWorldPosition().dist(ut)})}},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}})},function(Ye,Me){function pe(Oe,ve,ue,fe,he,le,ae){if(he===0)return!1;var ie=he,me=0,E=Oe;if(ae>ve+ie&&ae>fe+ie||ae<ve-ie&&ae<fe-ie||le>Oe+ie&&le>ue+ie||le<Oe-ie&&le<ue-ie)return!1;if(Oe!==ue)me=(ve-fe)/(Oe-ue),E=(Oe*fe-ue*ve)/(Oe-ue);else return Math.abs(le-Oe)<=ie/2;var b=me*le-ae+E,z=b*b/(me*me+1);return z<=ie/2*ie/2}Me.containStroke=pe},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(214),fe=pe(215),he=pe(45),le=pe.n(he),ae=pe(16);ve.a.registerVisual(le()("scatter3D","circle",null)),ve.a.registerVisual(Object(ae.a)("scatter3D")),ve.a.registerLayout({seriesType:"scatter3D",reset:function(ie){var me=ie.coordinateSystem;if(me){var E=me.dimensions;if(E.length<3){console.error("scatter3D needs 3D coordinateSystem");return}var b=E.map(function(oe){return ie.coordDimToDataDim(oe)[0]}),z=[],ne=[];return{progress:function(oe,se){for(var de=new Float32Array((oe.end-oe.start)*3),a=oe.start;a<oe.end;a++){var x=(a-oe.start)*3;z[0]=se.get(b[0],a),z[1]=se.get(b[1],a),z[2]=se.get(b[2],a),me.dataToPoint(z,ne),de[x]=ne[0],de[x+1]=ne[1],de[x+2]=ne[2]}se.setLayout("points",de)}}}}})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(27),fe=pe(35),he=pe(44);ve.a.extendSeriesModel({type:"series.scatter3D",dependencies:["globe","grid3D","geo3D"],visualColorAccessPath:"itemStyle.color",getInitialData:function(le,ae){return Object(he.a)(this)},getFormattedLabel:function(le,ae,ie,me){var E=ue.a.getFormattedLabel(this,le,ae,ie,me);if(E==null){var b=this.getData(),z=b.dimensions[b.dimensions.length-1];E=b.get(z,le)}return E},formatTooltip:function(le){return Object(fe.a)(this,le)},defaultOption:{coordinateSystem:"cartesian3D",zlevel:-10,progressive:1e5,progressiveThreshold:1e5,grid3DIndex:0,globeIndex:0,symbol:"circle",symbolSize:10,blendMode:"source-over",label:{show:!1,position:"right",distance:5,textStyle:{fontSize:14,color:"#000",backgroundColor:"rgba(255,255,255,0.7)",padding:3,borderRadius:3}},itemStyle:{opacity:.8},emphasis:{label:{show:!0}},animationDurationUpdate:500}})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(2),fe=pe(3),he=pe(27),le=pe(62);ve.a.extendChartView({type:"scatter3D",__ecgl__:!0,init:function(ae,ie){this.groupGL=new ue.a.Node,this._pointsBuilderList=[],this._currentStep=0},render:function(ae,ie,me){if(this.groupGL.removeAll(),!!ae.getData().count()){var E=ae.coordinateSystem;if(E&&E.viewGL){E.viewGL.add(this.groupGL),this._camera=E.viewGL.camera;var b=this._pointsBuilderList[0];b||(b=this._pointsBuilderList[0]=new le.a(!1,me)),this._pointsBuilderList.length=1,this.groupGL.add(b.rootNode),b.update(ae,ie,me),b.updateView(E.viewGL.camera)}else throw new Error("Invalid coordinate system")}},incrementalPrepareRender:function(ae,ie,me){var E=ae.coordinateSystem;if(E&&E.viewGL)E.viewGL.add(this.groupGL),this._camera=E.viewGL.camera;else throw new Error("Invalid coordinate system");this.groupGL.removeAll(),this._currentStep=0},incrementalRender:function(ae,ie,me,E){if(!(ae.end<=ae.start)){var b=this._pointsBuilderList[this._currentStep];b||(b=new le.a(!1,E),this._pointsBuilderList[this._currentStep]=b),this.groupGL.add(b.rootNode),b.update(ie,me,E,ae.start,ae.end),b.updateView(ie.coordinateSystem.viewGL.camera),this._currentStep++}},updateCamera:function(){this._pointsBuilderList.forEach(function(ae){ae.updateView(this._camera)},this)},highlight:function(ae,ie,me,E){this._toggleStatus("highlight",ae,ie,me,E)},downplay:function(ae,ie,me,E){this._toggleStatus("downplay",ae,ie,me,E)},_toggleStatus:function(ae,ie,me,E,b){var z=ie.getData(),ne=fe.a.queryDataIndex(z,b),oe=ae==="highlight";ne!=null?ve.a.util.each(he.a.normalizeToArray(ne),function(se){for(var de=0;de<this._pointsBuilderList.length;de++){var a=this._pointsBuilderList[de];oe?a.highlight(z,se):a.downplay(z,se)}},this):z.each(function(se){for(var de=0;de<this._pointsBuilderList.length;de++){var a=this._pointsBuilderList[de];oe?a.highlight(z,se):a.downplay(z,se)}})},dispose:function(){this.groupGL.removeAll()},remove:function(){this.groupGL.removeAll()}})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe);function ue(ae,E,me){var E=E||document.createElement("canvas");E.width=ae,E.height=ae;var b=E.getContext("2d");return me&&me(b),E}function fe(ae,ie,me,E){ve.a.util.isArray(ie)||(ie=[ie,ie]);var b=le.getMarginByStyle(me,E),z=ie[0]+b.left+b.right,ne=ie[1]+b.top+b.bottom,oe=ve.a.helper.createSymbol(ae,0,0,ie[0],ie[1]),se=Math.max(z,ne);oe.position=[b.left,b.top],z>ne?oe.position[1]+=(se-ne)/2:oe.position[0]+=(se-z)/2;var de=oe.getBoundingRect();return oe.position[0]-=de.x,oe.position[1]-=de.y,oe.setStyle(me),oe.update(),oe.__size=se,oe}function he(ae,ie,me){var E=ie.width,b=ie.height,z=ae.canvas.width,ne=ae.canvas.height,oe=E/z,se=b/ne;function de(be){return be<128?1:-1}function a(be,Se){var Be=1/0;be=Math.floor(be*oe),Se=Math.floor(Se*se);for(var Ae=Se*E+be,we=ie.data[Ae*4],Ue=de(we),Pe=Math.max(Se-me,0);Pe<Math.min(Se+me,b);Pe++)for(var ze=Math.max(be-me,0);ze<Math.min(be+me,E);ze++){var Ae=Pe*E+ze,Ke=ie.data[Ae*4],Ne=de(Ke),Re=ze-be,$e=Pe-Se;if(Ue!==Ne){var nt=Re*Re+$e*$e;nt<Be&&(Be=nt)}}return Ue*Math.sqrt(Be)}for(var x=ae.createImageData(z,ne),re=0;re<ne;re++)for(var ce=0;ce<z;ce++){var ge=a(ce,re),_e=ge/me*.5+.5,ye=(re*z+ce)*4;x.data[ye++]=(1-_e)*255,x.data[ye++]=(1-_e)*255,x.data[ye++]=(1-_e)*255,x.data[ye++]=255}return x}var le={getMarginByStyle:function(ae){var ie=ae.minMargin||0,me=0;ae.stroke&&ae.stroke!=="none"&&(me=ae.lineWidth==null?1:ae.lineWidth);var E=ae.shadowBlur||0,b=ae.shadowOffsetX||0,z=ae.shadowOffsetY||0,ne={};return ne.left=Math.max(me/2,-b+E,ie),ne.right=Math.max(me/2,b+E,ie),ne.top=Math.max(me/2,-z+E,ie),ne.bottom=Math.max(me/2,z+E,ie),ne},createSymbolSprite:function(ae,ie,me,E){var b=fe(ae,ie,me),z=le.getMarginByStyle(me);return{image:ue(b.__size,E,function(ne){b.brush(ne)}),margin:z}},createSDFFromCanvas:function(ae,ie,me,E){return ue(ie,E,function(b){var z=ae.getContext("2d"),ne=z.getImageData(0,0,ae.width,ae.height);b.putImageData(he(b,ne,me),0,0)})},createSimpleSprite:function(ae,ie){return ue(ae,ie,function(me){var E=ae/2;me.beginPath(),me.arc(E,E,60,0,Math.PI*2,!1),me.closePath();var b=me.createRadialGradient(E,E,0,E,E,E);b.addColorStop(0,"rgba(255, 255, 255, 1)"),b.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),b.addColorStop(1,"rgba(255, 255, 255, 0)"),me.fillStyle=b,me.fill()})}};Me.a=le},function(Ye,Me,pe){"use strict";var Oe=pe(2),ve=pe(218),ue=pe(0),fe=pe.n(ue),he=pe(1),le=pe.n(he),ae=pe(219),ie=le.a.vec4;Oe.a.Shader.import(ae.a);var me=Oe.a.Mesh.extend(function(){var E=new Oe.a.Geometry({dynamic:!0,attributes:{color:new Oe.a.Geometry.Attribute("color","float",4,"COLOR"),position:new Oe.a.Geometry.Attribute("position","float",3,"POSITION"),size:new Oe.a.Geometry.Attribute("size","float",1),prevPosition:new Oe.a.Geometry.Attribute("prevPosition","float",3),prevSize:new Oe.a.Geometry.Attribute("prevSize","float",1)}});fe.a.util.extend(E,ve.a);var b=new Oe.a.Material({shader:Oe.a.createShader("ecgl.sdfSprite"),transparent:!0,depthMask:!1});b.enableTexture("sprite"),b.define("both","VERTEX_COLOR"),b.define("both","VERTEX_SIZE");var z=new Oe.a.Texture2D({image:document.createElement("canvas"),flipY:!1});return b.set("sprite",z),E.pick=this._pick.bind(this),{geometry:E,material:b,mode:Oe.a.Mesh.POINTS,sizeScale:1}},{_pick:function(E,b,z,ne,oe,se){var de=this._positionNDC;if(de)for(var a=z.viewport,x=2/a.width,re=2/a.height,ce=this.geometry.vertexCount-1;ce>=0;ce--){var ge;this.geometry.indices?ge=this.geometry.indices[ce]:ge=ce;var _e=de[ge*2],ye=de[ge*2+1],be=this.geometry.attributes.size.get(ge)/this.sizeScale,Se=be/2;if(E>_e-Se*x&&E<_e+Se*x&&b>ye-Se*re&&b<ye+Se*re){var Be=new Oe.a.Vector3,Ae=new Oe.a.Vector3;this.geometry.attributes.position.get(ge,Be.array),Oe.a.Vector3.transformMat4(Ae,Be,this.worldTransform),se.push({vertexIndex:ge,point:Be,pointWorld:Ae,target:this,distance:Ae.distance(ne.getWorldPosition())})}}},updateNDCPosition:function(E,b,z){var ne=this._positionNDC,oe=this.geometry;(!ne||ne.length/2!==oe.vertexCount)&&(ne=this._positionNDC=new Float32Array(oe.vertexCount*2));for(var se=ie.create(),de=0;de<oe.vertexCount;de++)oe.attributes.position.get(de,se),se[3]=1,ie.transformMat4(se,se,E.array),ie.scale(se,se,1/se[3]),ne[de*2]=se[0],ne[de*2+1]=se[1]}});Me.a=me},function(Ye,Me,pe){"use strict";var Oe=pe(81),ve=pe(1),ue=pe.n(ve),fe=ue.a.vec3;Me.a={needsSortVertices:function(){return this.sortVertices},needsSortVerticesProgressively:function(){return this.needsSortVertices()&&this.vertexCount>=2e4},doSortVertices:function(he,le){var ae=this.indices,ie=fe.create();if(!ae){ae=this.indices=this.vertexCount>65535?new Uint32Array(this.vertexCount):new Uint16Array(this.vertexCount);for(var me=0;me<ae.length;me++)ae[me]=me}if(le===0){var E=this.attributes.position,he=he.array,b=0;(!this._zList||this._zList.length!==this.vertexCount)&&(this._zList=new Float32Array(this.vertexCount));for(var z,me=0;me<this.vertexCount;me++){E.get(me,ie);var ne=fe.sqrDist(ie,he);isNaN(ne)&&(ne=1e7,b++),me===0?(z=ne,ne=0):ne=ne-z,this._zList[me]=ne}this._noneCount=b}if(this.vertexCount<2e4)le===0&&this._simpleSort(this._noneCount/this.vertexCount>.05);else for(var me=0;me<3;me++)this._progressiveQuickSort(le*3+me);this.dirtyIndices()},_simpleSort:function(he){var le=this._zList,ae=this.indices;function ie(me,E){return le[E]-le[me]}he?Array.prototype.sort.call(ae,ie):Oe.a.sort(ae,ie,0,ae.length-1)},_progressiveQuickSort:function(he){var le=this._zList,ae=this.indices;this._quickSort=this._quickSort||new Oe.a,this._quickSort.step(ae,function(ie,me){return le[me]-le[ie]},he)}}},function(Ye,Me,pe){"use strict";Me.a=`@export ecgl.sdfSprite.vertex
|
|
|
|
|
|
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
|
|
uniform float elapsedTime : 0;
|
|
|
|
|
|
attribute vec3 position : POSITION;
|
|
|
|
|
|
#ifdef VERTEX_SIZE
|
|
|
attribute float size;
|
|
|
#else
|
|
|
uniform float u_Size;
|
|
|
#endif
|
|
|
|
|
|
#ifdef VERTEX_COLOR
|
|
|
attribute vec4 a_FillColor: COLOR;
|
|
|
varying vec4 v_Color;
|
|
|
#endif
|
|
|
|
|
|
#ifdef VERTEX_ANIMATION
|
|
|
attribute vec3 prevPosition;
|
|
|
attribute float prevSize;
|
|
|
uniform float percent : 1.0;
|
|
|
#endif
|
|
|
|
|
|
|
|
|
#ifdef POSITIONTEXTURE_ENABLED
|
|
|
uniform sampler2D positionTexture;
|
|
|
#endif
|
|
|
|
|
|
varying float v_Size;
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
|
|
|
#ifdef POSITIONTEXTURE_ENABLED
|
|
|
gl_Position = worldViewProjection * vec4(texture2D(positionTexture, position.xy).xy, -10.0, 1.0);
|
|
|
#else
|
|
|
|
|
|
#ifdef VERTEX_ANIMATION
|
|
|
vec3 pos = mix(prevPosition, position, percent);
|
|
|
#else
|
|
|
vec3 pos = position;
|
|
|
#endif
|
|
|
gl_Position = worldViewProjection * vec4(pos, 1.0);
|
|
|
#endif
|
|
|
|
|
|
#ifdef VERTEX_SIZE
|
|
|
#ifdef VERTEX_ANIMATION
|
|
|
v_Size = mix(prevSize, size, percent);
|
|
|
#else
|
|
|
v_Size = size;
|
|
|
#endif
|
|
|
#else
|
|
|
v_Size = u_Size;
|
|
|
#endif
|
|
|
|
|
|
#ifdef VERTEX_COLOR
|
|
|
v_Color = a_FillColor;
|
|
|
#endif
|
|
|
|
|
|
gl_PointSize = v_Size;
|
|
|
}
|
|
|
|
|
|
@end
|
|
|
|
|
|
@export ecgl.sdfSprite.fragment
|
|
|
|
|
|
uniform vec4 color: [1, 1, 1, 1];
|
|
|
uniform vec4 strokeColor: [1, 1, 1, 1];
|
|
|
uniform float smoothing: 0.07;
|
|
|
|
|
|
uniform float lineWidth: 0.0;
|
|
|
|
|
|
#ifdef VERTEX_COLOR
|
|
|
varying vec4 v_Color;
|
|
|
#endif
|
|
|
|
|
|
varying float v_Size;
|
|
|
|
|
|
uniform sampler2D sprite;
|
|
|
|
|
|
@import clay.util.srgb
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
gl_FragColor = color;
|
|
|
|
|
|
vec4 _strokeColor = strokeColor;
|
|
|
|
|
|
#ifdef VERTEX_COLOR
|
|
|
gl_FragColor *= v_Color;
|
|
|
#endif
|
|
|
|
|
|
#ifdef SPRITE_ENABLED
|
|
|
float d = texture2D(sprite, gl_PointCoord).r;
|
|
|
gl_FragColor.a *= smoothstep(0.5 - smoothing, 0.5 + smoothing, d);
|
|
|
|
|
|
if (lineWidth > 0.0) {
|
|
|
float sLineWidth = lineWidth / 2.0;
|
|
|
|
|
|
float outlineMaxValue0 = 0.5 + sLineWidth;
|
|
|
float outlineMaxValue1 = 0.5 + sLineWidth + smoothing;
|
|
|
float outlineMinValue0 = 0.5 - sLineWidth - smoothing;
|
|
|
float outlineMinValue1 = 0.5 - sLineWidth;
|
|
|
|
|
|
if (d <= outlineMaxValue1 && d >= outlineMinValue0) {
|
|
|
float a = _strokeColor.a;
|
|
|
if (d <= outlineMinValue1) {
|
|
|
a = a * smoothstep(outlineMinValue0, outlineMinValue1, d);
|
|
|
}
|
|
|
else {
|
|
|
a = a * smoothstep(outlineMaxValue1, outlineMaxValue0, d);
|
|
|
}
|
|
|
gl_FragColor.rgb = mix(gl_FragColor.rgb * gl_FragColor.a, _strokeColor.rgb, a);
|
|
|
gl_FragColor.a = gl_FragColor.a * (1.0 - a) + a;
|
|
|
}
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
#ifdef SRGB_DECODE
|
|
|
gl_FragColor = sRGBToLinear(gl_FragColor);
|
|
|
#endif
|
|
|
}
|
|
|
@end`},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(221),fe=pe(222),he=pe(225),le=pe(16);ve.a.registerVisual(Object(le.a)("lines3D")),ve.a.registerAction({type:"lines3DPauseEffect",event:"lines3deffectpaused",update:"series.lines3D:pauseEffect"},function(){}),ve.a.registerAction({type:"lines3DResumeEffect",event:"lines3deffectresumed",update:"series.lines3D:resumeEffect"},function(){}),ve.a.registerAction({type:"lines3DToggleEffect",event:"lines3deffectchanged",update:"series.lines3D:toggleEffect"},function(){})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(1),fe=pe.n(ue),he=fe.a.vec3,le=fe.a.vec2,ae=he.normalize,ie=he.cross,me=he.sub,E=he.add,b=he.create,z=b(),ne=b(),oe=b(),se=b(),de=[],a=[];function x(be,Se){le.copy(de,be[0]),le.copy(a,be[1]);var Be=[],Ae=Be[0]=b(),we=Be[1]=b(),Ue=Be[2]=b(),Pe=Be[3]=b();Se.dataToPoint(de,Ae),Se.dataToPoint(a,Pe),ae(z,Ae),me(ne,Pe,Ae),ae(ne,ne),ie(oe,ne,z),ae(oe,oe),ie(ne,z,oe),E(we,z,ne),ae(we,we),ae(z,Pe),me(ne,Ae,Pe),ae(ne,ne),ie(oe,ne,z),ae(oe,oe),ie(ne,z,oe),E(Ue,z,ne),ae(Ue,Ue),E(se,Ae,Pe),ae(se,se);var ze=he.dot(Ae,se),Ke=he.dot(se,we),Ne=(Math.max(he.len(Ae),he.len(Pe))-ze)/Ke*2;return he.scaleAndAdd(we,Ae,we,Ne),he.scaleAndAdd(Ue,Pe,Ue,Ne),Be}function re(be,Se,Be){var Ae=[],we=Ae[0]=he.create(),Ue=Ae[1]=he.create(),Pe=Ae[2]=he.create(),ze=Ae[3]=he.create();Se.dataToPoint(be[0],we),Se.dataToPoint(be[1],ze);var Ke=he.dist(we,ze);return he.lerp(Ue,we,ze,.3),he.lerp(Pe,we,ze,.3),he.scaleAndAdd(Ue,Ue,Be,Math.min(Ke*.1,10)),he.scaleAndAdd(Pe,Pe,Be,Math.min(Ke*.1,10)),Ae}function ce(be,Se){for(var Be=new Float32Array(be.length*3),Ae=0,we=[],Ue=0;Ue<be.length;Ue++)Se.dataToPoint(be[Ue],we),Be[Ae++]=we[0],Be[Ae++]=we[1],Be[Ae++]=we[2];return Be}function ge(be){var Se=[];return be.each(function(Be){var Ae=be.getItemModel(Be),we=Ae.option instanceof Array?Ae.option:Ae.getShallow("coords",!0);if(!(we instanceof Array&&we.length>0&&we[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(we)+". Lines must have 2d coords array in data item.");Se.push(we)}),{coordsList:Se}}function _e(be,Se){var Be=be.getData(),Ae=be.get("polyline");Be.setLayout("lineType",Ae?"polyline":"cubicBezier");var we=ge(Be);Be.each(function(Ue){var Pe=we.coordsList[Ue],ze=Ae?ce:x;Be.setItemLayout(Ue,ze(Pe,Se))})}function ye(be,Se,Be){var Ae=be.getData(),we=be.get("polyline"),Ue=ge(Ae);Ae.setLayout("lineType",we?"polyline":"cubicBezier"),Ae.each(function(Pe){var ze=Ue.coordsList[Pe],Ke=we?ce(ze,Se):re(ze,Se,Be);Ae.setItemLayout(Pe,Ke)})}ve.a.registerLayout(function(be,Se){be.eachSeriesByType("lines3D",function(Be){var Ae=Be.coordinateSystem;Ae.type==="globe"?_e(Be,Ae):Ae.type==="geo3D"?ye(Be,Ae,[0,1,0]):Ae.type==="mapbox3D"&&ye(Be,Ae,[0,0,1])})})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(2),fe=pe(22),he=pe(223),le=pe(40);ue.a.Shader.import(le.a);function ae(me){return me.radius!=null?me.radius:me.size!=null?Math.max(me.size[0],me.size[1],me.size[2]):100}var ie=ve.a.extendChartView({type:"lines3D",__ecgl__:!0,init:function(me,E){this.groupGL=new ue.a.Node,this._meshLinesMaterial=new ue.a.Material({shader:ue.a.createShader("ecgl.meshLines3D"),transparent:!0,depthMask:!1}),this._linesMesh=new ue.a.Mesh({geometry:new fe.a,material:this._meshLinesMaterial,$ignorePicking:!0}),this._trailMesh=new he.a},render:function(me,E,b){this.groupGL.add(this._linesMesh);var z=me.coordinateSystem,ne=me.getData();if(z&&z.viewGL){var oe=z.viewGL;oe.add(this.groupGL),this._updateLines(me,E,b);var se=z.viewGL.isLinearSpace()?"define":"undefine";this._linesMesh.material[se]("fragment","SRGB_DECODE"),this._trailMesh.material[se]("fragment","SRGB_DECODE")}var de=this._trailMesh;if(de.stopAnimation(),me.get("effect.show")){this.groupGL.add(de),de.updateData(ne,b,this._linesMesh.geometry),de.__time=de.__time||0;var a=3600*1e3;this._curveEffectsAnimator=de.animate("",{loop:!0}).when(a,{__time:a}).during(function(){de.setAnimationTime(de.__time)}).start()}else this.groupGL.remove(de),this._curveEffectsAnimator=null;this._linesMesh.material.blend=this._trailMesh.material.blend=me.get("blendMode")==="lighter"?ue.a.additiveBlend:null},pauseEffect:function(){this._curveEffectsAnimator&&this._curveEffectsAnimator.pause()},resumeEffect:function(){this._curveEffectsAnimator&&this._curveEffectsAnimator.resume()},toggleEffect:function(){var me=this._curveEffectsAnimator;me&&(me.isPaused()?me.resume():me.pause())},_updateLines:function(me,E,b){var z=me.getData(),ne=me.coordinateSystem,oe=this._linesMesh.geometry,se=me.get("polyline");oe.expandLine=!0;var de=ae(ne);oe.segmentScale=de/20;var a="lineStyle.width".split("."),x=b.getDevicePixelRatio(),re=0;z.each(function(ye){var be=z.getItemModel(ye),Se=be.get(a);Se==null&&(Se=1),z.setItemVisual(ye,"lineWidth",Se),re=Math.max(Se,re)}),oe.useNativeLine=!1;var ce=0,ge=0;z.each(function(ye){var be=z.getItemLayout(ye);se?(ce+=oe.getPolylineVertexCount(be),ge+=oe.getPolylineTriangleCount(be)):(ce+=oe.getCubicCurveVertexCount(be[0],be[1],be[2],be[3]),ge+=oe.getCubicCurveTriangleCount(be[0],be[1],be[2],be[3]))}),oe.setVertexCount(ce),oe.setTriangleCount(ge),oe.resetOffset();var _e=[];z.each(function(ye){var be=z.getItemLayout(ye),Se=z.getItemVisual(ye,"color"),Be=z.getItemVisual(ye,"opacity"),Ae=z.getItemVisual(ye,"lineWidth")*x;Be==null&&(Be=1),_e=ue.a.parseColor(Se,_e),_e[3]*=Be,se?oe.addPolyline(be,_e,Ae):oe.addCubicCurve(be[0],be[1],be[2],be[3],_e,Ae)}),oe.dirty()},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(2),fe=pe(1),he=pe.n(fe),le=pe(22),ae=pe(224),ie=he.a.vec3;function me(E){return E>0?1:-1}ue.a.Shader.import(ae.a),Me.a=ue.a.Mesh.extend(function(){var E=new ue.a.Material({shader:new ue.a.Shader(ue.a.Shader.source("ecgl.trail2.vertex"),ue.a.Shader.source("ecgl.trail2.fragment")),transparent:!0,depthMask:!1}),b=new le.a({dynamic:!0});return b.createAttribute("dist","float",1),b.createAttribute("distAll","float",1),b.createAttribute("start","float",1),{geometry:b,material:E,culling:!1,$ignorePicking:!0}},{updateData:function(E,b,z){var ne=E.hostModel,oe=this.geometry,se=ne.getModel("effect"),de=se.get("trailWidth")*b.getDevicePixelRatio(),a=se.get("trailLength"),x=ne.get("effect.constantSpeed"),re=ne.get("effect.period")*1e3,ce=x!=null;this.getScene()||console.error("TrailMesh must been add to scene before updateData"),ce?this.material.set("speed",x/1e3):this.material.set("period",re),this.material[ce?"define":"undefine"]("vertex","CONSTANT_SPEED");var ge=ne.get("polyline");oe.trailLength=a,this.material.set("trailLength",a),oe.resetOffset(),["position","positionPrev","positionNext"].forEach(function(Ne){oe.attributes[Ne].value=z.attributes[Ne].value});var _e=["dist","distAll","start","offset","color"];_e.forEach(function(Ne){oe.attributes[Ne].init(oe.vertexCount)}),oe.indices=z.indices;var ye=[],be=se.get("trailColor"),Se=se.get("trailOpacity"),Be=be!=null,Ae=Se!=null;this.updateWorldTransform();var we=this.worldTransform.x.len(),Ue=this.worldTransform.y.len(),Pe=this.worldTransform.z.len(),ze=0,Ke=0;E.each(function(Ne){var Re=E.getItemLayout(Ne),$e=Ae?Se:E.getItemVisual(Ne,"opacity"),nt=E.getItemVisual(Ne,"color");$e==null&&($e=1),ye=ue.a.parseColor(Be?be:nt,ye),ye[3]*=$e;for(var ut=ge?z.getPolylineVertexCount(Re):z.getCubicCurveVertexCount(Re[0],Re[1],Re[2],Re[3]),Qe=0,rt=[],pt=[],At=ze;At<ze+ut;At++)oe.attributes.position.get(At,rt),rt[0]*=we,rt[1]*=Ue,rt[2]*=Pe,At>ze&&(Qe+=ie.dist(rt,pt)),oe.attributes.dist.set(At,Qe),ie.copy(pt,rt);Ke=Math.max(Ke,Qe);for(var gt=Math.random()*(ce?Qe:re),At=ze;At<ze+ut;At++)oe.attributes.distAll.set(At,Qe),oe.attributes.start.set(At,gt),oe.attributes.offset.set(At,me(z.attributes.offset.get(At))*de/2),oe.attributes.color.set(At,ye);ze+=ut}),this.material.set("spotSize",Ke*.1*a),this.material.set("spotIntensity",se.get("spotIntensity")),oe.dirty()},setAnimationTime:function(E){this.material.set("time",E)}})},function(Ye,Me,pe){"use strict";Me.a=`@export ecgl.trail2.vertex
|
|
|
attribute vec3 position: POSITION;
|
|
|
attribute vec3 positionPrev;
|
|
|
attribute vec3 positionNext;
|
|
|
attribute float offset;
|
|
|
attribute float dist;
|
|
|
attribute float distAll;
|
|
|
attribute float start;
|
|
|
|
|
|
attribute vec4 a_Color : COLOR;
|
|
|
|
|
|
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
|
|
uniform vec4 viewport : VIEWPORT;
|
|
|
uniform float near : NEAR;
|
|
|
|
|
|
uniform float speed : 0;
|
|
|
uniform float trailLength: 0.3;
|
|
|
uniform float time;
|
|
|
uniform float period: 1000;
|
|
|
|
|
|
uniform float spotSize: 1;
|
|
|
|
|
|
varying vec4 v_Color;
|
|
|
varying float v_Percent;
|
|
|
varying float v_SpotPercent;
|
|
|
|
|
|
@import ecgl.common.wireframe.vertexHeader
|
|
|
|
|
|
@import ecgl.lines3D.clipNear
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
@import ecgl.lines3D.expandLine
|
|
|
|
|
|
gl_Position = currProj;
|
|
|
|
|
|
v_Color = a_Color;
|
|
|
|
|
|
@import ecgl.common.wireframe.vertexMain
|
|
|
|
|
|
#ifdef CONSTANT_SPEED
|
|
|
float t = mod((speed * time + start) / distAll, 1. + trailLength) - trailLength;
|
|
|
#else
|
|
|
float t = mod((time + start) / period, 1. + trailLength) - trailLength;
|
|
|
#endif
|
|
|
|
|
|
float trailLen = distAll * trailLength;
|
|
|
|
|
|
v_Percent = (dist - t * distAll) / trailLen;
|
|
|
|
|
|
v_SpotPercent = spotSize / distAll;
|
|
|
|
|
|
}
|
|
|
@end
|
|
|
|
|
|
|
|
|
@export ecgl.trail2.fragment
|
|
|
|
|
|
uniform vec4 color : [1.0, 1.0, 1.0, 1.0];
|
|
|
uniform float spotIntensity: 5;
|
|
|
|
|
|
varying vec4 v_Color;
|
|
|
varying float v_Percent;
|
|
|
varying float v_SpotPercent;
|
|
|
|
|
|
@import ecgl.common.wireframe.fragmentHeader
|
|
|
|
|
|
@import clay.util.srgb
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
if (v_Percent > 1.0 || v_Percent < 0.0) {
|
|
|
discard;
|
|
|
}
|
|
|
|
|
|
float fade = v_Percent;
|
|
|
|
|
|
#ifdef SRGB_DECODE
|
|
|
gl_FragColor = sRGBToLinear(color * v_Color);
|
|
|
#else
|
|
|
gl_FragColor = color * v_Color;
|
|
|
#endif
|
|
|
|
|
|
@import ecgl.common.wireframe.fragmentMain
|
|
|
|
|
|
if (v_Percent > (1.0 - v_SpotPercent)) {
|
|
|
gl_FragColor.rgb *= spotIntensity;
|
|
|
}
|
|
|
|
|
|
gl_FragColor.a *= fade;
|
|
|
}
|
|
|
|
|
|
@end`},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe);ve.a.extendSeriesModel({type:"series.lines3D",dependencies:["globe"],visualColorAccessPath:"lineStyle.color",getInitialData:function(ue,fe){var he=new ve.a.List(["value"],this);return he.hasItemOption=!1,he.initData(ue.data,[],function(le,ae,ie,me){if(le instanceof Array)return NaN;he.hasItemOption=!0;var E=le.value;if(E!=null)return E instanceof Array?E[me]:E}),he},defaultOption:{coordinateSystem:"globe",globeIndex:0,geo3DIndex:0,zlevel:-10,polyline:!1,effect:{show:!1,period:4,trailWidth:4,trailLength:.2,spotIntensity:6},silent:!0,blendMode:"source-over",lineStyle:{width:1,opacity:.5}}})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(227),fe=pe(228),he=pe(16);ve.a.registerVisual(Object(he.a)("polygons3D"))},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(26);function fe(ae,ie){for(var me=[],E=0;E<ie.length;E++)me.push(ae.dataToPoint(ie[E]));return me}var he=ve.a.extendSeriesModel({type:"series.polygons3D",getRegionModel:function(ae){return this.getData().getItemModel(ae)},getRegionPolygonCoords:function(ae){var ie=this.coordinateSystem,me=this.getData().getItemModel(ae),E=me.option instanceof Array?me.option:me.getShallow("coords");me.get("multiPolygon")||(E=[E]);for(var b=[],z=0;z<E.length;z++){for(var ne=[],oe=1;oe<E[z].length;oe++)ne.push(fe(ie,E[z][oe]));b.push({exterior:fe(ie,E[z][0]),interiors:ne})}return b},getInitialData:function(ae){var ie=new ve.a.List(["value"],this);return ie.hasItemOption=!1,ie.initData(ae.data,[],function(me,E,b,z){if(me instanceof Array)return NaN;ie.hasItemOption=!0;var ne=me.value;if(ne!=null)return ne instanceof Array?ne[z]:ne}),ie},defaultOption:{show:!0,data:null,multiPolygon:!1,progressiveThreshold:1e3,progressive:1e3,zlevel:-10,label:{show:!1,distance:2,textStyle:{fontSize:20,color:"#000",backgroundColor:"rgba(255,255,255,0.7)",padding:3,borderRadius:4}},itemStyle:{color:"#fff",borderWidth:0,borderColor:"#333"},emphasis:{itemStyle:{color:"#639fc0"},label:{show:!0}}}});ve.a.util.merge(he.prototype,ue.a);var le=he},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(59),fe=pe(2);ve.a.extendChartView({type:"polygons3D",__ecgl__:!0,init:function(he,le){this.groupGL=new fe.a.Node,this._geo3DBuilderList=[],this._currentStep=0},render:function(he,le,ae){this.groupGL.removeAll();var ie=he.coordinateSystem;ie&&ie.viewGL&&ie.viewGL.add(this.groupGL);var me=this._geo3DBuilderList[0];me||(me=new ue.a(ae),me.extrudeY=ie.type!=="mapbox3D",this._geo3DBuilderList[0]=me),this._updateShaderDefines(ie,me),me.update(he,le,ae),this._geo3DBuilderList.length=1,this.groupGL.add(me.rootNode)},incrementalPrepareRender:function(he,le,ae){this.groupGL.removeAll();var ie=he.coordinateSystem;ie&&ie.viewGL&&ie.viewGL.add(this.groupGL),this._currentStep=0},incrementalRender:function(he,le,ae,ie){var me=this._geo3DBuilderList[this._currentStep],E=le.coordinateSystem;me||(me=new ue.a(ie),me.extrudeY=E.type!=="mapbox3D",this._geo3DBuilderList[this._currentStep]=me),me.update(le,ae,ie,he.start,he.end),this.groupGL.add(me.rootNode),this._updateShaderDefines(E,me),this._currentStep++},_updateShaderDefines:function(he,le){var ae=he.viewGL.isLinearSpace()?"define":"undefine";le.rootNode.traverse(function(ie){ie.material&&(ie.material[ae]("fragment","SRGB_DECODE"),he.type==="mapbox3D"&&(ie.material.define("fragment","NORMAL_UP_AXIS",2),ie.material.define("fragment","NORMAL_FRONT_AXIS",1)))})},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(230),fe=pe(231),he=pe(232),le=pe(16);ve.a.registerVisual(Object(le.a)("surface"))},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(26),fe=pe(35),he=pe(44),le=ve.a.extendSeriesModel({type:"series.surface",dependencies:["globe","grid3D","geo3D"],visualColorAccessPath:"itemStyle.color",formatTooltip:function(ie){return Object(fe.a)(this,ie)},getInitialData:function(ie,me){var E=ie.data;function b(Re){return!(isNaN(Re.min)||isNaN(Re.max)||isNaN(Re.step))}function z(Re){var $e=ve.a.number.getPrecisionSafe;return Math.max($e(Re.min),$e(Re.max),$e(Re.step))+1}if(!E)if(E=[],ie.parametric){var ye=ie.parametricEquation||{},be=ye.u||{},Se=ye.v||{};["u","v"].forEach(function(Re){if(!b(ye[Re])){console.error("Invalid parametricEquation.%s",Re);return}}),["x","y","z"].forEach(function(Re){if(typeof ye[Re]!="function"){console.error("parametricEquation.%s needs to be function",Re);return}});for(var Be=z(be),Ae=z(Se),we=Se.min;we<Se.max+Se.step*.999;we+=Se.step)for(var Ue=be.min;Ue<be.max+be.step*.999;Ue+=be.step){var Pe=ve.a.number.round(Math.min(Ue,be.max),Be),ze=ve.a.number.round(Math.min(we,Se.max),Ae),re=ye.x(Pe,ze),x=ye.y(Pe,ze),_e=ye.z(Pe,ze);E.push([re,x,_e,Pe,ze])}}else{var ne=ie.equation||{},oe=ne.x||{},se=ne.y||{};if(["x","y"].forEach(function(Re){if(!b(ne[Re])){console.error("Invalid equation.%s",Re);return}}),typeof ne.z!="function"){console.error("equation.z needs to be function");return}for(var de=z(oe),a=z(se),x=se.min;x<se.max+se.step*.999;x+=se.step)for(var re=oe.min;re<oe.max+oe.step*.999;re+=oe.step){var ce=ve.a.number.round(Math.min(re,oe.max),de),ge=ve.a.number.round(Math.min(x,se.max),a),_e=ne.z(ce,ge);E.push([ce,ge,_e])}}var Ke=["x","y","z"];ie.parametric&&Ke.push("u","v");var Ne=Object(he.a)(this,Ke,ie.data||E);return Ne},defaultOption:{coordinateSystem:"cartesian3D",zlevel:-10,grid3DIndex:0,shading:"lambert",parametric:!1,wireframe:{show:!0,lineStyle:{color:"rgba(0,0,0,0.5)",width:1}},equation:{x:{min:-1,max:1,step:.1},y:{min:-1,max:1,step:.1},z:null},parametricEquation:{u:{min:-1,max:1,step:.1},v:{min:-1,max:1,step:.1},x:null,y:null,z:null},itemStyle:{},animationDurationUpdate:500}});ve.a.util.merge(le.prototype,ue.a);var ae=le},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(2),fe=pe(3),he=pe(1),le=pe.n(he),ae=pe(60),ie=le.a.vec3;function me(E){return isNaN(E[0])||isNaN(E[1])||isNaN(E[2])}ve.a.extendChartView({type:"surface",__ecgl__:!0,init:function(E,b){this.groupGL=new ue.a.Node},render:function(E,b,z){var ne=this._prevSurfaceMesh;this._prevSurfaceMesh=this._surfaceMesh,this._surfaceMesh=ne,this._surfaceMesh||(this._surfaceMesh=this._createSurfaceMesh()),this.groupGL.remove(this._prevSurfaceMesh),this.groupGL.add(this._surfaceMesh);var oe=E.coordinateSystem,se=E.get("shading"),de=E.getData(),a="ecgl."+se;if((!this._surfaceMesh.material||this._surfaceMesh.material.shader.name!==a)&&(this._surfaceMesh.material=ue.a.createMaterial(a,["VERTEX_COLOR","DOUBLE_SIDED"])),ue.a.setMaterialFromModel(se,this._surfaceMesh.material,E,z),oe&&oe.viewGL){oe.viewGL.add(this.groupGL);var x=oe.viewGL.isLinearSpace()?"define":"undefine";this._surfaceMesh.material[x]("fragment","SRGB_DECODE")}var re=E.get("parametric"),ce=this._getDataShape(de,re),ge=E.getModel("wireframe"),_e=ge.get("lineStyle.width"),ye=ge.get("show")&&_e>0;this._updateSurfaceMesh(this._surfaceMesh,E,ce,ye);var be=this._surfaceMesh.material;ye?(be.define("WIREFRAME_QUAD"),be.set("wireframeLineWidth",_e),be.set("wireframeLineColor",ue.a.parseColor(ge.get("lineStyle.color")))):be.undefine("WIREFRAME_QUAD"),this._initHandler(E,z),this._updateAnimation(E)},_updateAnimation:function(E){ue.a.updateVertexAnimation([["prevPosition","position"],["prevNormal","normal"]],this._prevSurfaceMesh,this._surfaceMesh,E)},_createSurfaceMesh:function(){var E=new ue.a.Mesh({geometry:new ue.a.Geometry({dynamic:!0,sortTriangles:!0}),shadowDepthMaterial:new ue.a.Material({shader:new ue.a.Shader(ue.a.Shader.source("ecgl.sm.depth.vertex"),ue.a.Shader.source("ecgl.sm.depth.fragment"))}),culling:!1,renderOrder:10,renderNormal:!0});return E.geometry.createAttribute("barycentric","float",4),E.geometry.createAttribute("prevPosition","float",3),E.geometry.createAttribute("prevNormal","float",3),ve.a.util.extend(E.geometry,ae.a),E},_initHandler:function(E,b){var z=E.getData(),ne=this._surfaceMesh,oe=E.coordinateSystem;function se(a,x){for(var re=1/0,ce=-1,ge=[],_e=0;_e<a.length;_e++){ne.geometry.attributes.position.get(a[_e],ge);var ye=ie.dist(x.array,ge);ye<re&&(re=ye,ce=a[_e])}return ce}ne.seriesIndex=E.seriesIndex;var de=-1;ne.off("mousemove"),ne.off("mouseout"),ne.on("mousemove",function(a){var x=se(a.triangle,a.point);if(x>=0){var re=[];ne.geometry.attributes.position.get(x,re);for(var ce=oe.pointToData(re),ge=1/0,_e=-1,ye=[],be=0;be<z.count();be++){ye[0]=z.get("x",be),ye[1]=z.get("y",be),ye[2]=z.get("z",be);var Se=ie.squaredDistance(ye,ce);Se<ge&&(_e=be,ge=Se)}_e!==de&&b.dispatchAction({type:"grid3DShowAxisPointer",value:ce}),de=_e,ne.dataIndex=_e}else ne.dataIndex=-1},this),ne.on("mouseout",function(a){de=-1,ne.dataIndex=-1,b.dispatchAction({type:"grid3DHideAxisPointer"})},this)},_updateSurfaceMesh:function(E,b,z,ne){var oe=E.geometry,se=b.getData(),de=se.getLayout("points"),a=0;se.each(function(mt){se.hasValue(mt)||a++});var x=a||ne,re=oe.attributes.position,ce=oe.attributes.normal,ge=oe.attributes.texcoord0,_e=oe.attributes.barycentric,ye=oe.attributes.color,be=z.row,Se=z.column,Be=b.get("shading"),Ae=Be!=="color";if(x){var we=(be-1)*(Se-1)*4;re.init(we),ne&&_e.init(we)}else re.value=new Float32Array(de);ye.init(oe.vertexCount),ge.init(oe.vertexCount);var Ue=[0,3,1,1,3,2],Pe=[[1,1,0,0],[0,1,0,1],[1,0,0,1],[1,0,1,0]],ze=oe.indices=new(oe.vertexCount>65535?Uint32Array:Uint16Array)((be-1)*(Se-1)*6),Ke=function(mt,Lt,ft){ft[1]=mt*Se+Lt,ft[0]=mt*Se+Lt+1,ft[3]=(mt+1)*Se+Lt+1,ft[2]=(mt+1)*Se+Lt},Ne=!1;if(x){var Re=[],$e=[],nt=0;Ae?ce.init(oe.vertexCount):ce.value=null;for(var ut=[[],[],[]],Qe=[],rt=[],pt=ie.create(),At=function(mt,Lt,ft){var St=Lt*3;return ft[0]=mt[St],ft[1]=mt[St+1],ft[2]=mt[St+2],ft},gt=new Float32Array(de.length),Ft=new Float32Array(de.length/3*4),Ct=0;Ct<se.count();Ct++)if(se.hasValue(Ct)){var ot=ue.a.parseColor(se.getItemVisual(Ct,"color")),Yt=se.getItemVisual(Ct,"opacity");ot[3]*=Yt,ot[3]<.99&&(Ne=!0);for(var zt=0;zt<4;zt++)Ft[Ct*4+zt]=ot[zt]}for(var Xe=[1e7,1e7,1e7],Ct=0;Ct<be-1;Ct++)for(var Fe=0;Fe<Se-1;Fe++){var Le=Ct*(Se-1)+Fe,Ze=Le*4;Ke(Ct,Fe,Re);for(var et=!1,zt=0;zt<4;zt++)At(de,Re[zt],$e),me($e)&&(et=!0);for(var zt=0;zt<4;zt++)et?re.set(Ze+zt,Xe):(At(de,Re[zt],$e),re.set(Ze+zt,$e)),ne&&_e.set(Ze+zt,Pe[zt]);for(var zt=0;zt<6;zt++)ze[nt++]=Ue[zt]+Ze;if(Ae&&!et)for(var zt=0;zt<2;zt++){for(var He=zt*3,We=0;We<3;We++){var tt=Re[Ue[He]+We];At(de,tt,ut[We])}ie.sub(Qe,ut[0],ut[1]),ie.sub(rt,ut[1],ut[2]),ie.cross(pt,Qe,rt);for(var We=0;We<3;We++){var at=Re[Ue[He]+We]*3;gt[at]=gt[at]+pt[0],gt[at+1]=gt[at+1]+pt[1],gt[at+2]=gt[at+2]+pt[2]}}}if(Ae)for(var Ct=0;Ct<gt.length/3;Ct++)At(gt,Ct,pt),ie.normalize(pt,pt),gt[Ct*3]=pt[0],gt[Ct*3+1]=pt[1],gt[Ct*3+2]=pt[2];for(var ot=[],ct=[],Ct=0;Ct<be-1;Ct++)for(var Fe=0;Fe<Se-1;Fe++){var Le=Ct*(Se-1)+Fe,Ze=Le*4;Ke(Ct,Fe,Re);for(var zt=0;zt<4;zt++){for(var We=0;We<4;We++)ot[We]=Ft[Re[zt]*4+We];ye.set(Ze+zt,ot),Ae&&(At(gt,Re[zt],pt),ce.set(Ze+zt,pt));var tt=Re[zt];ct[0]=tt%Se/(Se-1),ct[1]=Math.floor(tt/Se)/(be-1),ge.set(Ze+zt,ct)}Le++}}else{for(var ct=[],Ct=0;Ct<se.count();Ct++){ct[0]=Ct%Se/(Se-1),ct[1]=Math.floor(Ct/Se)/(be-1);var ot=ue.a.parseColor(se.getItemVisual(Ct,"color")),Yt=se.getItemVisual(Ct,"opacity");ot[3]*=Yt,ot[3]<.99&&(Ne=!0),ye.set(Ct,ot),ge.set(Ct,ct)}for(var Re=[],lt=0,Ct=0;Ct<be-1;Ct++)for(var Fe=0;Fe<Se-1;Fe++){Ke(Ct,Fe,Re);for(var zt=0;zt<6;zt++)ze[lt++]=Re[Ue[zt]]}Ae?oe.generateVertexNormals():ce.value=null}E.material.get("normalMap")&&oe.generateTangents(),oe.updateBoundingBox(),oe.dirty(),E.material.transparent=Ne,E.material.depthMask=!Ne},_getDataShape:function(E,b){for(var z=-1/0,ne=0,oe=0,se=0,de=b?"u":"x",a=0;a<E.count();a++){var x=E.get(de,a);if(x<z){if(se&&se!==oe)throw new Error("Invalid data. data should be a row major 2d array.");se=oe,oe=0,ne++}z=x,oe++}return{row:ne+1,column:oe}},dispose:function(){this.groupGL.removeAll()},remove:function(){this.groupGL.removeAll()}})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe);ve.a.registerLayout(function(ue,fe){ue.eachSeriesByType("surface",function(he){var le=he.coordinateSystem;(!le||le.type!=="cartesian3D")&&console.error("Surface chart only support cartesian3D coordinateSystem");var ae=he.getData(),ie=new Float32Array(3*ae.count()),me=[NaN,NaN,NaN];if(le&&le.type==="cartesian3D"){var E=le.dimensions,b=E.map(function(z){return he.coordDimToDataDim(z)[0]});ae.each(b,function(z,ne,oe,se){var de;ae.hasValue(se)?de=le.dataToPoint([z,ne,oe]):de=me,ie[se*3]=de[0],ie[se*3+1]=de[1],ie[se*3+2]=de[2]})}ae.setLayout("points",ie)})})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(83),fe=pe(234),he=pe(235),le=pe(16);ve.a.registerVisual(Object(le.a)("map3D")),ve.a.registerAction({type:"map3DChangeCamera",event:"map3dcamerachanged",update:"series:updateCamera"},function(ae,ie){ie.eachComponent({mainType:"series",subType:"map3D",query:ae},function(me){me.setView(ae)})})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(38),fe=pe(31),he=pe(32),le=pe(26),ae=pe(80),ie=pe(27),me=pe(35),E=pe(82);function b(oe,se){for(var de=[],a=0;a<se.length;a++)de.push(oe.dataToPoint(se[a]));return de}var z=ve.a.extendSeriesModel({type:"series.map3D",layoutMode:"box",coordinateSystem:null,visualColorAccessPath:"itemStyle.color",optionUpdated:function(oe){oe=oe||{};var se=this.get("coordinateSystem");if(!(se==null||se==="geo3D")){var de=["left","top","width","height","boxWidth","boxDepth","boxHeight","light","viewControl","postEffect","temporalSuperSampling","environment","groundPlane"],a=[];de.forEach(function(x){oe[x]!=null&&a.push(x)}),a.length&&console.warn("Property %s in map3D series will be ignored if coordinate system is %s",a.join(", "),se),this.get("groundPlane.show")&&(this.option.groundPlane.show=!1),this._geo=null}},getInitialData:function(oe){oe.data=this.getFilledRegions(oe.data,oe.map);var se=ve.a.helper.completeDimensions(["value"],oe.data),de=new ve.a.List(se,this);de.initData(oe.data);var a={};return de.each(function(x){var re=de.getName(x),ce=de.getItemModel(x);a[re]=ce}),this._regionModelMap=a,de},formatTooltip:function(oe){return Object(me.a)(this,oe)},getRegionModel:function(oe){var se=this.getData().getName(oe);return this._regionModelMap[se]||new ve.a.Model(null,this)},getRegionPolygonCoords:function(oe){var se=this.coordinateSystem,de=this.getData().getName(oe);if(se.transform){var a=se.getRegion(de);return a?a.geometries:[]}else{this._geo||(this._geo=E.a.createGeo3D(this));for(var a=this._geo.getRegion(de),x=[],re=0;re<a.geometries.length;re++){var ce=a.geometries[re],ge=[],_e=b(se,ce.exterior);if(ge&&ge.length)for(var ye=0;ye<ce.interiors.length;ye++)ge.push(b(se,ge[ye]));x.push({interiors:ge,exterior:_e})}return x}},getFormattedLabel:function(oe,se){var de=ie.a.getFormattedLabel(this,oe,se);return de==null&&(de=this.getData().getName(oe)),de},defaultOption:{coordinateSystem:"geo3D",data:null}});ve.a.util.merge(z.prototype,ae.a),ve.a.util.merge(z.prototype,ue.a),ve.a.util.merge(z.prototype,fe.a),ve.a.util.merge(z.prototype,he.a),ve.a.util.merge(z.prototype,le.a);var ne=z},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(2),fe=pe(39),he=pe(34),le=pe(59),ae=ve.a.extendChartView({type:"map3D",__ecgl__:!0,init:function(ie,me){this._geo3DBuilder=new le.a(me),this.groupGL=new ue.a.Node},render:function(ie,me,E){var b=ie.coordinateSystem;if(!(!b||!b.viewGL)){this.groupGL.add(this._geo3DBuilder.rootNode),b.viewGL.add(this.groupGL);var z;if(b.type==="geo3D"){z=b,this._sceneHelper||(this._sceneHelper=new he.a,this._sceneHelper.initLight(this.groupGL)),this._sceneHelper.setScene(b.viewGL.scene),this._sceneHelper.updateLight(ie),b.viewGL.setPostEffect(ie.getModel("postEffect"),E),b.viewGL.setTemporalSuperSampling(ie.getModel("temporalSuperSampling"));var ne=this._control;ne||(ne=this._control=new fe.a({zr:E.getZr()}),this._control.init());var oe=ie.getModel("viewControl");ne.setViewGL(b.viewGL),ne.setFromViewControlModel(oe,0),ne.off("update"),ne.on("update",function(){E.dispatchAction({type:"map3DChangeCamera",alpha:ne.getAlpha(),beta:ne.getBeta(),distance:ne.getDistance(),from:this.uid,map3DId:ie.id})}),this._geo3DBuilder.extrudeY=!0}else this._control&&(this._control.dispose(),this._control=null),this._sceneHelper&&(this._sceneHelper.dispose(),this._sceneHelper=null),z=ie.getData().getLayout("geo3D"),this._geo3DBuilder.extrudeY=!1;this._geo3DBuilder.update(ie,me,E,0,ie.getData().count());var se=b.viewGL.isLinearSpace()?"define":"undefine";this._geo3DBuilder.rootNode.traverse(function(de){de.material&&de.material[se]("fragment","SRGB_DECODE")})}},afterRender:function(ie,me,E,b){var z=b.renderer,ne=ie.coordinateSystem;ne&&ne.type==="geo3D"&&(this._sceneHelper.updateAmbientCubemap(z,ie,E),this._sceneHelper.updateSkybox(z,ie,E))},dispose:function(){this.groupGL.removeAll(),this._control.dispose()}})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(237),fe=pe(238),he=pe(45),le=pe.n(he),ae=pe(16);ve.a.registerVisual(le()("scatterGL","circle",null)),ve.a.registerVisual(Object(ae.a)("scatterGL")),ve.a.registerLayout({seriesType:"scatterGL",reset:function(ie){var me=ie.coordinateSystem,E;if(me){var b=me.dimensions,z=[];b.length===1?E=function(ne,oe){for(var se=new Float32Array((ne.end-ne.start)*2),de=ne.start;de<ne.end;de++){var a=(de-ne.start)*2,x=oe.get(b[0],de),re=me.dataToPoint(x);se[a]=re[0],se[a+1]=re[1]}oe.setLayout("points",se)}:b.length===2&&(E=function(ne,oe){for(var se=new Float32Array((ne.end-ne.start)*2),de=ne.start;de<ne.end;de++){var a=(de-ne.start)*2,x=oe.get(b[0],de),re=oe.get(b[1],de);z[0]=x,z[1]=re,z=me.dataToPoint(z),se[a]=z[0],se[a+1]=z[1]}oe.setLayout("points",se)})}return{progress:E}}})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe);ve.a.extendSeriesModel({type:"series.scatterGL",dependencies:["grid","polar","geo","singleAxis"],visualColorAccessPath:"itemStyle.color",getInitialData:function(){return ve.a.helper.createList(this)},defaultOption:{coordinateSystem:"cartesian2d",zlevel:10,progressive:1e5,progressiveThreshold:1e5,large:!1,symbol:"circle",symbolSize:10,zoomScale:0,blendMode:"source-over",itemStyle:{opacity:.8},postEffect:{enable:!1,colorCorrection:{exposure:0,brightness:0,contrast:1,saturation:1,enable:!0}}}})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(2),fe=pe(20),he=pe(62),le=pe(84),ae=pe(3);ve.a.extendChartView({type:"scatterGL",__ecgl__:!0,init:function(ie,me){this.groupGL=new ue.a.Node,this.viewGL=new fe.a("orthographic"),this.viewGL.add(this.groupGL),this._pointsBuilderList=[],this._currentStep=0,this._sizeScale=1,this._glViewHelper=new le.a(this.viewGL)},render:function(ie,me,E){if(this.groupGL.removeAll(),this._glViewHelper.reset(ie,E),!!ie.getData().count()){var b=this._pointsBuilderList[0];b||(b=this._pointsBuilderList[0]=new he.a(!0,E)),this._pointsBuilderList.length=1,this.groupGL.add(b.rootNode),this._removeTransformInPoints(ie.getData().getLayout("points")),b.update(ie,me,E),this.viewGL.setPostEffect(ie.getModel("postEffect"),E)}},incrementalPrepareRender:function(ie,me,E){this.groupGL.removeAll(),this._glViewHelper.reset(ie,E),this._currentStep=0,this.viewGL.setPostEffect(ie.getModel("postEffect"),E)},incrementalRender:function(ie,me,E,b){if(!(ie.end<=ie.start)){var z=this._pointsBuilderList[this._currentStep];z||(z=new he.a(!0,b),this._pointsBuilderList[this._currentStep]=z),this.groupGL.add(z.rootNode),this._removeTransformInPoints(me.getData().getLayout("points")),z.setSizeScale(this._sizeScale),z.update(me,E,b,ie.start,ie.end),b.getZr().refresh(),this._currentStep++}},updateTransform:function(ie,me,E){if(ie.coordinateSystem.getRoamTransform){this._glViewHelper.updateTransform(ie,E);var b=this._glViewHelper.getZoom(),z=Math.max((ie.get("zoomScale")||0)*(b-1)+1,0);this._sizeScale=z,this._pointsBuilderList.forEach(function(ne){ne.setSizeScale(z)})}},_removeTransformInPoints:function(ie){if(ie)for(var me=[],E=0;E<ie.length;E+=2)me[0]=ie[E],me[1]=ie[E+1],this._glViewHelper.removeTransformInPoint(me),ie[E]=me[0],ie[E+1]=me[1]},dispose:function(){this.groupGL.removeAll()},remove:function(){this.groupGL.removeAll()}})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(240),fe=pe(246),he=pe(45),le=pe.n(he),ae=pe(16);ve.a.registerVisual(le()("graphGL","circle",null)),ve.a.registerVisual(Object(ae.a)("graphGL")),ve.a.registerVisual(function(me){var E={};me.eachSeriesByType("graphGL",function(b){var z=b.getCategoriesData(),ne=b.getData(),oe={};z.each(function(se){var de=z.getName(se);oe[de]=se;var a=z.getItemModel(se),x=a.get("itemStyle.color")||b.getColorFromPalette(de,E);z.setItemVisual(se,"color",x)}),z.count()&&ne.each(function(se){var de=ne.getItemModel(se),a=de.getShallow("category");a!=null&&(typeof a=="string"&&(a=oe[a]),ne.getItemVisual(se,"color",!0)||ne.setItemVisual(se,"color",z.getItemVisual(a,"color")))})})}),ve.a.registerVisual(function(me){me.eachSeriesByType("graphGL",function(E){var b=E.getGraph(),z=E.getEdgeData(),ne="lineStyle.color".split("."),oe="lineStyle.opacity".split(".");z.setVisual("color",E.get(ne)),z.setVisual("opacity",E.get(oe)),z.each(function(se){var de=z.getItemModel(se),a=b.getEdgeByIndex(se),x=de.get(ne),re=de.get(oe);switch(x){case"source":x=a.node1.getVisual("color");break;case"target":x=a.node2.getVisual("color");break}a.setVisual("color",x),a.setVisual("opacity",re)})})}),ve.a.registerAction({type:"graphGLRoam",event:"graphglroam",update:"series.graphGL:roam"},function(me,E){E.eachComponent({mainType:"series",query:me},function(b){b.setView(me)})});function ie(){}ve.a.registerAction({type:"graphGLStartLayout",event:"graphgllayoutstarted",update:"series.graphGL:startLayout"},ie),ve.a.registerAction({type:"graphGLStopLayout",event:"graphgllayoutstopped",update:"series.graphGL:stopLayout"},ie),ve.a.registerAction({type:"graphGLFocusNodeAdjacency",event:"graphGLFocusNodeAdjacency",update:"series.graphGL:focusNodeAdjacency"},ie),ve.a.registerAction({type:"graphGLUnfocusNodeAdjacency",event:"graphGLUnfocusNodeAdjacency",update:"series.graphGL:unfocusNodeAdjacency"},ie)},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(241),fe=pe(27),he=ve.a.extendSeriesModel({type:"series.graphGL",visualColorAccessPath:"itemStyle.color",init:function(ae){he.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this._updateCategoriesData()},mergeOption:function(ae){he.superApply(this,"mergeOption",arguments),this._updateCategoriesData()},getFormattedLabel:function(ae,ie,me,E){var b=fe.a.getFormattedLabel(this,ae,ie,me,E);if(b==null){var z=this.getData(),ne=z.dimensions[z.dimensions.length-1];b=z.get(ne,ae)}return b},getInitialData:function(ae,ie){var me=ae.edges||ae.links||[],E=ae.data||ae.nodes||[],b=this;if(E&&me)return Object(ue.a)(E,me,this,!0,z).data;function z(ne,oe){ne.wrapMethod("getItemModel",function(x){var re=b._categoriesModels,ce=x.getShallow("category"),ge=re[ce];return ge&&(ge.parentModel=x.parentModel,x.parentModel=ge),x});var se=b.getModel("edgeLabel"),de=new ve.a.Model({label:se.option},se.parentModel,ie);oe.wrapMethod("getItemModel",function(x){return x.customizeGetParent(a),x});function a(x){return x=this.parsePath(x),x&&x[0]==="label"?de:this.parentModel}}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(ae,ie,me){if(me==="edge"){var E=this.getData(),b=this.getDataParams(ae,me),z=E.graph.getEdgeByIndex(ae),ne=E.getName(z.node1.dataIndex),oe=E.getName(z.node2.dataIndex),se=[];return ne!=null&&se.push(ne),oe!=null&&se.push(oe),se=ve.a.format.encodeHTML(se.join(" > ")),b.value&&(se+=" : "+ve.a.format.encodeHTML(b.value)),se}else return he.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var ae=(this.option.categories||[]).map(function(me){return me.value!=null?me:ve.a.util.extend({value:0},me)}),ie=new ve.a.List(["value"],this);ie.initData(ae),this._categoriesData=ie,this._categoriesModels=ie.mapArray(function(me){return ie.getItemModel(me,!0)})},setView:function(ae){ae.zoom!=null&&(this.option.zoom=ae.zoom),ae.offset!=null&&(this.option.offset=ae.offset)},setNodePosition:function(ae){for(var ie=0;ie<ae.length/2;ie++){var me=ae[ie*2],E=ae[ie*2+1],b=this.getData().getRawDataItem(ie);b.x=me,b.y=E}},isAnimationEnabled:function(){return he.superCall(this,"isAnimationEnabled")&&!(this.get("layout")==="force"&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:10,z:2,legendHoverLink:!0,layout:"forceAtlas2",forceAtlas2:{initLayout:null,GPU:!0,steps:1,maxSteps:1e3,repulsionByDegree:!0,linLogMode:!1,strongGravityMode:!1,gravity:1,edgeWeightInfluence:1,edgeWeight:[1,4],nodeWeight:[1,4],preventOverlap:!1,gravityCenter:null},focusNodeAdjacency:!0,focusNodeAdjacencyOn:"mouseover",left:"center",top:"center",symbol:"circle",symbolSize:5,roam:!1,center:null,zoom:1,label:{show:!1,formatter:"{b}",position:"right",distance:5,textStyle:{fontSize:14}},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{label:{show:!0}},animation:!1}}),le=he},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(242),fe=pe.n(ue),he=pe(245),le=pe.n(he),ae=pe(3);Me.a=function(ie,me,E,b,z){for(var ne=new fe.a(b),oe=0;oe<ie.length;oe++)ne.addNode(ae.a.firstNotNull(ie[oe].id,ie[oe].name,oe),oe);for(var se=[],de=[],a=0,oe=0;oe<me.length;oe++){var x=me[oe],re=x.source,ce=x.target;ne.addEdge(re,ce,a)&&(de.push(x),se.push(ae.a.firstNotNull(x.id,re+" > "+ce)),a++)}var ge,_e=ve.a.helper.completeDimensions(["value"],ie);ge=new ve.a.List(_e,E),ge.initData(ie);var ye=new ve.a.List(["value"],E);return ye.initData(de,se),z&&z(ge,ye),le()({mainData:ge,struct:ne,structAttr:"graph",datas:{node:ge,edge:ye},datasAttr:{node:"data",edge:"edgeData"}}),ne.update(),ne}},function(Ye,Me,pe){var Oe=pe(85),ve=Oe.__DEV__,ue=pe(12),fe=pe(244),he=fe.enableClassCheck;function le(ne){return"_EC_"+ne}var ae=function(ne){this._directed=ne||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},ie=ae.prototype;ie.type="graph",ie.isDirected=function(){return this._directed},ie.addNode=function(ne,oe){ne=ne||""+oe;var se=this._nodesMap;if(!se[le(ne)]){var de=new me(ne,oe);return de.hostGraph=this,this.nodes.push(de),se[le(ne)]=de,de}},ie.getNodeByIndex=function(ne){var oe=this.data.getRawIndex(ne);return this.nodes[oe]},ie.getNodeById=function(ne){return this._nodesMap[le(ne)]},ie.addEdge=function(ne,oe,se){var de=this._nodesMap,a=this._edgesMap;if(typeof ne=="number"&&(ne=this.nodes[ne]),typeof oe=="number"&&(oe=this.nodes[oe]),me.isInstance(ne)||(ne=de[le(ne)]),me.isInstance(oe)||(oe=de[le(oe)]),!(!ne||!oe)){var x=ne.id+"-"+oe.id;if(!a[x]){var re=new E(ne,oe,se);return re.hostGraph=this,this._directed&&(ne.outEdges.push(re),oe.inEdges.push(re)),ne.edges.push(re),ne!==oe&&oe.edges.push(re),this.edges.push(re),a[x]=re,re}}},ie.getEdgeByIndex=function(ne){var oe=this.edgeData.getRawIndex(ne);return this.edges[oe]},ie.getEdge=function(ne,oe){me.isInstance(ne)&&(ne=ne.id),me.isInstance(oe)&&(oe=oe.id);var se=this._edgesMap;return this._directed?se[ne+"-"+oe]:se[ne+"-"+oe]||se[oe+"-"+ne]},ie.eachNode=function(ne,oe){for(var se=this.nodes,de=se.length,a=0;a<de;a++)se[a].dataIndex>=0&&ne.call(oe,se[a],a)},ie.eachEdge=function(ne,oe){for(var se=this.edges,de=se.length,a=0;a<de;a++)se[a].dataIndex>=0&&se[a].node1.dataIndex>=0&&se[a].node2.dataIndex>=0&&ne.call(oe,se[a],a)},ie.breadthFirstTraverse=function(ne,oe,se,de){if(me.isInstance(oe)||(oe=this._nodesMap[le(oe)]),!!oe){for(var a=se==="out"?"outEdges":se==="in"?"inEdges":"edges",x=0;x<this.nodes.length;x++)this.nodes[x].__visited=!1;if(!ne.call(de,oe,null))for(var re=[oe];re.length;)for(var ce=re.shift(),ge=ce[a],x=0;x<ge.length;x++){var _e=ge[x],ye=_e.node1===ce?_e.node2:_e.node1;if(!ye.__visited){if(ne.call(de,ye,ce))return;re.push(ye),ye.__visited=!0}}}},ie.update=function(){for(var ne=this.data,oe=this.edgeData,se=this.nodes,de=this.edges,a=0,x=se.length;a<x;a++)se[a].dataIndex=-1;for(var a=0,x=ne.count();a<x;a++)se[ne.getRawIndex(a)].dataIndex=a;oe.filterSelf(function(re){var ce=de[oe.getRawIndex(re)];return ce.node1.dataIndex>=0&&ce.node2.dataIndex>=0});for(var a=0,x=de.length;a<x;a++)de[a].dataIndex=-1;for(var a=0,x=oe.count();a<x;a++)de[oe.getRawIndex(a)].dataIndex=a},ie.clone=function(){for(var ne=new ae(this._directed),oe=this.nodes,se=this.edges,de=0;de<oe.length;de++)ne.addNode(oe[de].id,oe[de].dataIndex);for(var de=0;de<se.length;de++){var a=se[de];ne.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return ne};function me(ne,oe){this.id=ne==null?"":ne,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=oe==null?-1:oe}me.prototype={constructor:me,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(ne){if(!(this.dataIndex<0)){var oe=this.hostGraph,se=oe.data.getItemModel(this.dataIndex);return se.getModel(ne)}}};function E(ne,oe,se){this.node1=ne,this.node2=oe,this.dataIndex=se==null?-1:se}E.prototype.getModel=function(ne){if(!(this.dataIndex<0)){var oe=this.hostGraph,se=oe.edgeData.getItemModel(this.dataIndex);return se.getModel(ne)}};var b=function(ne,oe){return{getValue:function(se){var de=this[ne][oe];return de.get(de.getDimension(se||"value"),this.dataIndex)},setVisual:function(se,de){this.dataIndex>=0&&this[ne][oe].setItemVisual(this.dataIndex,se,de)},getVisual:function(se,de){return this[ne][oe].getItemVisual(this.dataIndex,se,de)},setLayout:function(se,de){this.dataIndex>=0&&this[ne][oe].setItemLayout(this.dataIndex,se,de)},getLayout:function(){return this[ne][oe].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[ne][oe].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[ne][oe].getRawIndex(this.dataIndex)}}};ue.mixin(me,b("hostGraph","data")),ue.mixin(E,b("hostGraph","edgeData")),ae.Node=me,ae.Edge=E,he(me),he(E);var z=ae;Ye.exports=z},function(Ye,Me){var pe;pe=function(){return this}();try{pe=pe||Function("return this")()||(0,eval)("this")}catch(Oe){typeof window=="object"&&(pe=window)}Ye.exports=pe},function(Ye,Me,pe){var Oe=pe(85),ve=Oe.__DEV__,ue=pe(12),fe=".",he="___EC__COMPONENT__CONTAINER___";function le(se){var de={main:"",sub:""};return se&&(se=se.split(fe),de.main=se[0]||"",de.sub=se[1]||""),de}function ae(se){ue.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(se),'componentType "'+se+'" illegal')}function ie(se,de){se.$constructor=se,se.extend=function(a){var x=this,re=function(){a.$constructor?a.$constructor.apply(this,arguments):x.apply(this,arguments)};return ue.extend(re.prototype,a),re.extend=this.extend,re.superCall=b,re.superApply=z,ue.inherits(re,this),re.superClass=x,re}}var me=0;function E(se){var de=["__\0is_clz",me++,Math.random().toFixed(3)].join("_");se.prototype[de]=!0,se.isInstance=function(a){return!!(a&&a[de])}}function b(se,de){var a=ue.slice(arguments,2);return this.superClass.prototype[de].apply(se,a)}function z(se,de,a){return this.superClass.prototype[de].apply(se,a)}function ne(se,de){de=de||{};var a={};se.registerClass=function(ce,ge){if(ge){if(ae(ge),ge=le(ge),!ge.sub)a[ge.main]=ce;else if(ge.sub!==he){var _e=x(ge);_e[ge.sub]=ce}}return ce},se.getClass=function(ce,ge,_e){var ye=a[ce];if(ye&&ye[he]&&(ye=ge?ye[ge]:null),_e&&!ye)throw new Error(ge?"Component "+ce+"."+(ge||"")+" not exists. Load it first.":ce+".type should be specified.");return ye},se.getClassesByMainType=function(ce){ce=le(ce);var ge=[],_e=a[ce.main];return _e&&_e[he]?ue.each(_e,function(ye,be){be!==he&&ge.push(ye)}):ge.push(_e),ge},se.hasClass=function(ce){return ce=le(ce),!!a[ce.main]},se.getAllClassMainTypes=function(){var ce=[];return ue.each(a,function(ge,_e){ce.push(_e)}),ce},se.hasSubTypes=function(ce){ce=le(ce);var ge=a[ce.main];return ge&&ge[he]},se.parseClassType=le;function x(ce){var ge=a[ce.main];return(!ge||!ge[he])&&(ge=a[ce.main]={},ge[he]=!0),ge}if(de.registerWhenExtend){var re=se.extend;re&&(se.extend=function(ce){var ge=re.call(this,ce);return se.registerClass(ge,ce.type)})}return se}function oe(se,de){}Me.parseClassType=le,Me.enableClassExtend=ie,Me.enableClassCheck=E,Me.enableClassManagement=ne,Me.setReadOnly=oe},function(Ye,Me,pe){var Oe=pe(12),ve=Oe.each,ue="\0__link_datas",fe="\0__link_mainData";function he(oe){var se=oe.mainData,de=oe.datas;de||(de={main:se},oe.datasAttr={main:"data"}),oe.datas=oe.mainData=null,b(se,de,oe),ve(de,function(a){ve(se.TRANSFERABLE_METHODS,function(x){a.wrapMethod(x,Oe.curry(le,oe))})}),se.wrapMethod("cloneShallow",Oe.curry(ie,oe)),ve(se.CHANGABLE_METHODS,function(a){se.wrapMethod(a,Oe.curry(ae,oe))}),Oe.assert(de[se.dataType]===se)}function le(oe,se){if(E(this)){var de=Oe.extend({},this[ue]);de[this.dataType]=se,b(se,de,oe)}else z(se,this.dataType,this[fe],oe);return se}function ae(oe,se){return oe.struct&&oe.struct.update(this),se}function ie(oe,se){return ve(se[ue],function(de,a){de!==se&&z(de.cloneShallow(),a,se,oe)}),se}function me(oe){var se=this[fe];return oe==null||se==null?se:se[ue][oe]}function E(oe){return oe[fe]===oe}function b(oe,se,de){oe[ue]={},ve(se,function(a,x){z(a,x,oe,de)})}function z(oe,se,de,a){de[ue][se]=oe,oe[fe]=de,oe.dataType=se,a.struct&&(oe[a.structAttr]=a.struct,a.struct[a.datasAttr[se]]=oe),oe.getLinkedData=me}var ne=he;Ye.exports=ne},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(41),fe=pe.n(ue),he=pe(2),le=pe(20),ae=pe(86),ie=pe(3),me=pe(247),E=pe(249),b=pe(65),z=pe.n(b),ne=pe(1),oe=pe.n(ne),se=pe(251),de=pe(62),a=pe(252),x=oe.a.vec2;he.a.Shader.import(a.a);var re=1;ve.a.extendChartView({type:"graphGL",__ecgl__:!0,init:function(ce,ge){this.groupGL=new he.a.Node,this.viewGL=new le.a("orthographic"),this.viewGL.camera.left=this.viewGL.camera.right=0,this.viewGL.add(this.groupGL),this._pointsBuilder=new de.a(!0,ge),this._forceEdgesMesh=new he.a.Mesh({material:new he.a.Material({shader:he.a.createShader("ecgl.forceAtlas2.edges"),transparent:!0,depthMask:!1,depthTest:!1}),$ignorePicking:!0,geometry:new he.a.Geometry({attributes:{node:new he.a.Geometry.Attribute("node","float",2),color:new he.a.Geometry.Attribute("color","float",4,"COLOR")},dynamic:!0,mainAttribute:"node"}),renderOrder:-1,mode:he.a.Mesh.LINES}),this._edgesMesh=new he.a.Mesh({material:new he.a.Material({shader:he.a.createShader("ecgl.meshLines2D"),transparent:!0,depthMask:!1,depthTest:!1}),$ignorePicking:!0,geometry:new ae.a({useNativeLine:!1,dynamic:!0}),renderOrder:-1,culling:!1}),this._layoutId=0,this._control=new se.a({zr:ge.getZr(),viewGL:this.viewGL}),this._control.setTarget(this.groupGL),this._control.init(),this._clickHandler=this._clickHandler.bind(this)},render:function(ce,ge,_e){this.groupGL.add(this._pointsBuilder.rootNode),this._model=ce,this._api=_e,this._initLayout(ce,ge,_e),this._pointsBuilder.update(ce,ge,_e),this._forceLayoutInstance instanceof me.a||this.groupGL.remove(this._forceEdgesMesh),this._updateCamera(ce,_e),this._control.off("update"),this._control.on("update",function(){_e.dispatchAction({type:"graphGLRoam",seriesId:ce.id,zoom:this._control.getZoom(),offset:this._control.getOffset()}),this._pointsBuilder.updateView(this.viewGL.camera)},this),this._control.setZoom(ie.a.firstNotNull(ce.get("zoom"),1)),this._control.setOffset(ce.get("offset")||[0,0]);var ye=this._pointsBuilder.getPointsMesh();if(ye.off("mousemove",this._mousemoveHandler),ye.off("mouseout",this._mouseOutHandler,this),_e.getZr().off("click",this._clickHandler),this._pointsBuilder.highlightOnMouseover=!0,ce.get("focusNodeAdjacency")){var be=ce.get("focusNodeAdjacencyOn");be==="click"?_e.getZr().on("click",this._clickHandler):be==="mouseover"?(ye.on("mousemove",this._mousemoveHandler,this),ye.on("mouseout",this._mouseOutHandler,this),this._pointsBuilder.highlightOnMouseover=!1):console.warn("Unkown focusNodeAdjacencyOn value s"+be)}this._lastMouseOverDataIndex=-1},_clickHandler:function(ce){if(!this._layouting){var ge=this._pointsBuilder.getPointsMesh().dataIndex;ge>=0?this._api.dispatchAction({type:"graphGLFocusNodeAdjacency",seriesId:this._model.id,dataIndex:ge}):this._api.dispatchAction({type:"graphGLUnfocusNodeAdjacency",seriesId:this._model.id})}},_mousemoveHandler:function(ce){if(!this._layouting){var ge=this._pointsBuilder.getPointsMesh().dataIndex;ge>=0?ge!==this._lastMouseOverDataIndex&&this._api.dispatchAction({type:"graphGLFocusNodeAdjacency",seriesId:this._model.id,dataIndex:ge}):this._mouseOutHandler(ce),this._lastMouseOverDataIndex=ge}},_mouseOutHandler:function(ce){this._layouting||(this._api.dispatchAction({type:"graphGLUnfocusNodeAdjacency",seriesId:this._model.id}),this._lastMouseOverDataIndex=-1)},_updateForceEdgesGeometry:function(ce,ge){var _e=this._forceEdgesMesh.geometry,ye=ge.getEdgeData(),be=0,Se=this._forceLayoutInstance,Be=ye.count()*2;_e.attributes.node.init(Be),_e.attributes.color.init(Be),ye.each(function(Ae){var we=ce[Ae];_e.attributes.node.set(be,Se.getNodeUV(we.node1)),_e.attributes.node.set(be+1,Se.getNodeUV(we.node2));var Ue=ye.getItemVisual(we.dataIndex,"color"),Pe=he.a.parseColor(Ue);Pe[3]*=ie.a.firstNotNull(ye.getItemVisual(we.dataIndex,"opacity"),1),_e.attributes.color.set(be,Pe),_e.attributes.color.set(be+1,Pe),be+=2}),_e.dirty()},_updateMeshLinesGeometry:function(){var ge=this._model.getEdgeData(),ce=this._edgesMesh.geometry,ge=this._model.getEdgeData(),_e=this._model.getData().getLayout("points");ce.resetOffset(),ce.setVertexCount(ge.count()*ce.getLineVertexCount()),ce.setTriangleCount(ge.count()*ce.getLineTriangleCount());var ye=[],be=[],Se=["lineStyle","width"];this._originalEdgeColors=new Float32Array(ge.count()*4),this._edgeIndicesMap=new Float32Array(ge.count()),ge.each(function(Be){var Ae=ge.graph.getEdgeByIndex(Be),we=Ae.node1.dataIndex*2,Ue=Ae.node2.dataIndex*2;ye[0]=_e[we],ye[1]=_e[we+1],be[0]=_e[Ue],be[1]=_e[Ue+1];var Pe=ge.getItemVisual(Ae.dataIndex,"color"),ze=he.a.parseColor(Pe);ze[3]*=ie.a.firstNotNull(ge.getItemVisual(Ae.dataIndex,"opacity"),1);var Ke=ge.getItemModel(Ae.dataIndex),Ne=ie.a.firstNotNull(Ke.get(Se),1)*this._api.getDevicePixelRatio();ce.addLine(ye,be,ze,Ne);for(var Re=0;Re<4;Re++)this._originalEdgeColors[Ae.dataIndex*4+Re]=ze[Re];this._edgeIndicesMap[Ae.dataIndex]=Be},!1,this),ce.dirty()},_updateForceNodesGeometry:function(ce){for(var ge=this._pointsBuilder.getPointsMesh(),_e=[],ye=0;ye<ce.count();ye++)this._forceLayoutInstance.getNodeUV(ye,_e),ge.geometry.attributes.position.set(ye,_e);ge.geometry.dirty("position")},_initLayout:function(ce,ge,_e){var ye=ce.get("layout"),be=ce.getGraph(),Se=ce.getBoxLayoutParams(),Be=fe.a.getLayoutRect(Se,{width:_e.getWidth(),height:_e.getHeight()});ye==="force"&&(console.warn("Currently only forceAtlas2 layout supported."),ye="forceAtlas2"),this.stopLayout(ce,ge,_e,{beforeLayout:!0});var Ae=ce.getData(),we=ce.getData();if(ye==="forceAtlas2"){var Ue=ce.getModel("forceAtlas2"),Pe=this._forceLayoutInstance,ze=[],Ke=[],Ne=Ae.getDataExtent("value"),Re=we.getDataExtent("value"),$e=ie.a.firstNotNull(Ue.get("edgeWeight"),1),nt=ie.a.firstNotNull(Ue.get("nodeWeight"),1);typeof $e=="number"&&($e=[$e,$e]),typeof nt=="number"&&(nt=[nt,nt]);var ut=0,Qe={},rt=new Float32Array(Ae.count()*2);if(be.eachNode(function(At){var gt=At.dataIndex,Ft=Ae.get("value",gt),Ct,Yt;if(Ae.hasItemOption){var zt=Ae.getItemModel(gt);Ct=zt.get("x"),Yt=zt.get("y")}Ct==null&&(Ct=Be.x+Math.random()*Be.width,Yt=Be.y+Math.random()*Be.height),rt[ut*2]=Ct,rt[ut*2+1]=Yt,Qe[At.id]=ut++;var Xe=ve.a.number.linearMap(Ft,Ne,nt);isNaN(Xe)&&(isNaN(nt[0])?Xe=1:Xe=nt[0]),ze.push({x:Ct,y:Yt,mass:Xe,size:Ae.getItemVisual(gt,"symbolSize")})}),Ae.setLayout("points",rt),be.eachEdge(function(At){var gt=At.dataIndex,Ft=Ae.get("value",gt),Ct=ve.a.number.linearMap(Ft,Re,$e);isNaN(Ct)&&(isNaN($e[0])?Ct=1:Ct=$e[0]),Ke.push({node1:Qe[At.node1.id],node2:Qe[At.node2.id],weight:Ct,dataIndex:gt})}),!Pe){var pt=Ue.get("GPU");this._forceLayoutInstance&&(pt&&!(this._forceLayoutInstance instanceof me.a)||!pt&&!(this._forceLayoutInstance instanceof E.a))&&(this._forceLayoutInstanceToDispose=this._forceLayoutInstance),Pe=this._forceLayoutInstance=pt?new me.a:new E.a}Pe.initData(ze,Ke),Pe.updateOption(Ue.option),this._updateForceEdgesGeometry(Pe.getEdges(),ce),this._updatePositionTexture(),_e.dispatchAction({type:"graphGLStartLayout",from:this.uid})}else{var rt=new Float32Array(Ae.count()*2),ut=0;be.eachNode(function(Ft){var Ct=Ft.dataIndex,Yt,zt;if(Ae.hasItemOption){var Xe=Ae.getItemModel(Ct);Yt=Xe.get("x"),zt=Xe.get("y")}rt[ut++]=Yt,rt[ut++]=zt}),Ae.setLayout("points",rt),this._updateAfterLayout(ce,ge,_e)}},_updatePositionTexture:function(){var ce=this._forceLayoutInstance.getNodePositionTexture();this._pointsBuilder.setPositionTexture(ce),this._forceEdgesMesh.material.set("positionTex",ce)},startLayout:function(ce,ge,Se,ye){if(!(ye&&ye.from!=null&&ye.from!==this.uid)){var be=this.viewGL,Se=this._api,Be=this._forceLayoutInstance,Ae=this._model.getData(),we=this._model.getModel("forceAtlas2");if(!Be){console.error("None layout don't have startLayout action");return}if(this.groupGL.remove(this._edgesMesh),this.groupGL.add(this._forceEdgesMesh),!!this._forceLayoutInstance){this._updateForceNodesGeometry(ce.getData()),this._pointsBuilder.hideLabels();var Ue=this,Pe=this._layoutId=re++,ze=we.getShallow("maxSteps"),Ke=we.getShallow("steps"),Ne=0,Re=Math.max(Ke*2,20),$e=function(nt){if(nt===Ue._layoutId){if(Be.isFinished(ze)){Se.dispatchAction({type:"graphGLStopLayout",from:Ue.uid}),Se.dispatchAction({type:"graphGLFinishLayout",points:Ae.getLayout("points"),from:Ue.uid});return}Be.update(be.layer.renderer,Ke,function(){Ue._updatePositionTexture(),Ne+=Ke,Ne>=Re&&(Ue._syncNodePosition(ce),Ne=0),Se.getZr().refresh(),z()(function(){$e(nt)})})}};z()(function(){Ue._forceLayoutInstanceToDispose&&(Ue._forceLayoutInstanceToDispose.dispose(be.layer.renderer),Ue._forceLayoutInstanceToDispose=null),$e(Pe)}),this._layouting=!0}}},stopLayout:function(ce,ge,_e,ye){ye&&ye.from!=null&&ye.from!==this.uid||(this._layoutId=0,this.groupGL.remove(this._forceEdgesMesh),this.groupGL.add(this._edgesMesh),this._forceLayoutInstance&&this.viewGL.layer&&(ye&&ye.beforeLayout||(this._syncNodePosition(ce),this._updateAfterLayout(ce,ge,_e)),this._api.getZr().refresh(),this._layouting=!1))},_syncNodePosition:function(ce){var ge=this._forceLayoutInstance.getNodePosition(this.viewGL.layer.renderer);ce.getData().setLayout("points",ge),ce.setNodePosition(ge)},_updateAfterLayout:function(ce,ge,_e){this._updateMeshLinesGeometry(),this._pointsBuilder.removePositionTexture(),this._pointsBuilder.updateLayout(ce,ge,_e),this._pointsBuilder.updateView(this.viewGL.camera),this._pointsBuilder.updateLabels(),this._pointsBuilder.showLabels()},focusNodeAdjacency:function(ce,ge,_e,ye){var be=this._model.getData();this._downplayAll();var Se=ye.dataIndex,Be=be.graph,Ae=[],we=Be.getNodeByIndex(Se);Ae.push(we),we.edges.forEach(function(Pe){Pe.dataIndex<0||(Pe.node1!==we&&Ae.push(Pe.node1),Pe.node2!==we&&Ae.push(Pe.node2))},this),this._pointsBuilder.fadeOutAll(.05),this._fadeOutEdgesAll(.05),Ae.forEach(function(Pe){this._pointsBuilder.highlight(be,Pe.dataIndex)},this),this._pointsBuilder.updateLabels(Ae.map(function(Pe){return Pe.dataIndex}));var Ue=[];we.edges.forEach(function(Pe){Pe.dataIndex>=0&&(this._highlightEdge(Pe.dataIndex),Ue.push(Pe))},this),this._focusNodes=Ae,this._focusEdges=Ue},unfocusNodeAdjacency:function(ce,ge,_e,ye){this._downplayAll(),this._pointsBuilder.fadeInAll(),this._fadeInEdgesAll(),this._pointsBuilder.updateLabels()},_highlightEdge:function(ce){var ge=this._model.getEdgeData().getItemModel(ce),_e=he.a.parseColor(ge.get("emphasis.lineStyle.color")||ge.get("lineStyle.color")),ye=ie.a.firstNotNull(ge.get("emphasis.lineStyle.opacity"),ge.get("lineStyle.opacity"),1);_e[3]*=ye,this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[ce],_e)},_downplayAll:function(){this._focusNodes&&this._focusNodes.forEach(function(ce){this._pointsBuilder.downplay(this._model.getData(),ce.dataIndex)},this),this._focusEdges&&this._focusEdges.forEach(function(ce){this._downplayEdge(ce.dataIndex)},this)},_downplayEdge:function(ce){var ge=this._getColor(ce,[]);this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[ce],ge)},_setEdgeFade:function(){var ce=[];return function(ge,_e){this._getColor(ge,ce),ce[3]*=_e,this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[ge],ce)}}(),_getColor:function(ce,ge){for(var _e=0;_e<4;_e++)ge[_e]=this._originalEdgeColors[ce*4+_e];return ge},_fadeOutEdgesAll:function(ce){var ge=this._model.getData().graph;ge.eachEdge(function(_e){this._setEdgeFade(_e.dataIndex,ce)},this)},_fadeInEdgesAll:function(){this._fadeOutEdgesAll(1)},_updateCamera:function(ce,ge){this.viewGL.setViewport(0,0,ge.getWidth(),ge.getHeight(),ge.getDevicePixelRatio());for(var _e=this.viewGL.camera,ye=ce.getData(),be=ye.getLayout("points"),Se=x.create(1/0,1/0),Be=x.create(-1/0,-1/0),Ae=[],we=0;we<be.length;)Ae[0]=be[we++],Ae[1]=be[we++],x.min(Se,Se,Ae),x.max(Be,Be,Ae);var Ue=(Be[1]+Se[1])/2,Pe=(Be[0]+Se[0])/2;if(!(Pe>_e.left&&Pe<_e.right&&Ue<_e.bottom&&Ue>_e.top)){var ze=Math.max(Be[0]-Se[0],10),Ke=ze/ge.getWidth()*ge.getHeight();ze*=1.4,Ke*=1.4,Se[0]-=ze*.2,_e.left=Se[0],_e.top=Ue-Ke/2,_e.bottom=Ue+Ke/2,_e.right=ze+Se[0],_e.near=0,_e.far=100}},dispose:function(){var ce=this.viewGL.layer.renderer;this._forceLayoutInstance&&this._forceLayoutInstance.dispose(ce),this.groupGL.removeAll(),this._layoutId=-1},remove:function(){this.groupGL.removeAll(),this._control.dispose()}})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(2),fe=pe(14),he=pe(10),le=pe(248);ue.a.Shader.import(le.a);var ae={repulsionByDegree:!0,linLogMode:!1,strongGravityMode:!1,gravity:1,scaling:1,edgeWeightInfluence:1,jitterTolerence:.1,preventOverlap:!1,dissuadeHubs:!1,gravityCenter:null};function ie(me){var E={type:ue.a.Texture.FLOAT,minFilter:ue.a.Texture.NEAREST,magFilter:ue.a.Texture.NEAREST};this._positionSourceTex=new ue.a.Texture2D(E),this._positionSourceTex.flipY=!1,this._positionTex=new ue.a.Texture2D(E),this._positionPrevTex=new ue.a.Texture2D(E),this._forceTex=new ue.a.Texture2D(E),this._forcePrevTex=new ue.a.Texture2D(E),this._weightedSumTex=new ue.a.Texture2D(E),this._weightedSumTex.width=this._weightedSumTex.height=1,this._globalSpeedTex=new ue.a.Texture2D(E),this._globalSpeedPrevTex=new ue.a.Texture2D(E),this._globalSpeedTex.width=this._globalSpeedTex.height=1,this._globalSpeedPrevTex.width=this._globalSpeedPrevTex.height=1,this._nodeRepulsionPass=new fe.a({fragment:ue.a.Shader.source("ecgl.forceAtlas2.updateNodeRepulsion")}),this._positionPass=new fe.a({fragment:ue.a.Shader.source("ecgl.forceAtlas2.updatePosition")}),this._globalSpeedPass=new fe.a({fragment:ue.a.Shader.source("ecgl.forceAtlas2.calcGlobalSpeed")}),this._copyPass=new fe.a({fragment:ue.a.Shader.source("clay.compositor.output")});var b=function(z){z.blendEquation(z.FUNC_ADD),z.blendFunc(z.ONE,z.ONE)};this._edgeForceMesh=new ue.a.Mesh({geometry:new ue.a.Geometry({attributes:{node1:new ue.a.Geometry.Attribute("node1","float",2),node2:new ue.a.Geometry.Attribute("node2","float",2),weight:new ue.a.Geometry.Attribute("weight","float",1)},dynamic:!0,mainAttribute:"node1"}),material:new ue.a.Material({transparent:!0,shader:ue.a.createShader("ecgl.forceAtlas2.updateEdgeAttraction"),blend:b,depthMask:!1,depthText:!1}),mode:ue.a.Mesh.POINTS}),this._weightedSumMesh=new ue.a.Mesh({geometry:new ue.a.Geometry({attributes:{node:new ue.a.Geometry.Attribute("node","float",2)},dynamic:!0,mainAttribute:"node"}),material:new ue.a.Material({transparent:!0,shader:ue.a.createShader("ecgl.forceAtlas2.calcWeightedSum"),blend:b,depthMask:!1,depthText:!1}),mode:ue.a.Mesh.POINTS}),this._framebuffer=new he.a({depthBuffer:!1}),this._dummyCamera=new ue.a.OrthographicCamera({left:-1,right:1,top:1,bottom:-1,near:0,far:100}),this._globalSpeed=0}ie.prototype.updateOption=function(me){for(var E in ae)this[E]=ae[E];var b=this._nodes.length;if(b>5e4?this.jitterTolerence=10:b>5e3?this.jitterTolerence=1:this.jitterTolerence=.1,b>100?this.scaling=2:this.scaling=10,me)for(var E in ae)me[E]!=null&&(this[E]=me[E]);if(this.repulsionByDegree)for(var z=this._positionSourceTex.pixels,ne=0;ne<this._nodes.length;ne++)z[ne*4+2]=(this._nodes[ne].degree||0)+1},ie.prototype._updateGravityCenter=function(me){var E=this._nodes,b=this._edges;if(this.gravityCenter)this._gravityCenter=this.gravityCenter;else{for(var z=[1/0,1/0],ne=[-1/0,-1/0],oe=0;oe<E.length;oe++)z[0]=Math.min(E[oe].x,z[0]),z[1]=Math.min(E[oe].y,z[1]),ne[0]=Math.max(E[oe].x,ne[0]),ne[1]=Math.max(E[oe].y,ne[1]);this._gravityCenter=[(z[0]+ne[0])*.5,(z[1]+ne[1])*.5]}for(var oe=0;oe<b.length;oe++){var se=b[oe].node1,de=b[oe].node2;E[se].degree=(E[se].degree||0)+1,E[de].degree=(E[de].degree||0)+1}},ie.prototype.initData=function(me,E){this._nodes=me,this._edges=E,this._updateGravityCenter();var b=Math.ceil(Math.sqrt(me.length)),z=b,ne=new Float32Array(b*z*4);this._resize(b,z);for(var oe=0,se=0;se<me.length;se++){var de=me[se];ne[oe++]=de.x||0,ne[oe++]=de.y||0,ne[oe++]=de.mass||1,ne[oe++]=de.size||1}this._positionSourceTex.pixels=ne;var a=this._edgeForceMesh.geometry,x=E.length;a.attributes.node1.init(x*2),a.attributes.node2.init(x*2),a.attributes.weight.init(x*2);for(var re=[],se=0;se<E.length;se++){var ce=a.attributes,ge=E[se].weight;ge==null&&(ge=1),ce.node1.set(se,this.getNodeUV(E[se].node1,re)),ce.node2.set(se,this.getNodeUV(E[se].node2,re)),ce.weight.set(se,ge),ce.node1.set(se+x,this.getNodeUV(E[se].node2,re)),ce.node2.set(se+x,this.getNodeUV(E[se].node1,re)),ce.weight.set(se+x,ge)}var _e=this._weightedSumMesh.geometry;_e.attributes.node.init(me.length);for(var se=0;se<me.length;se++)_e.attributes.node.set(se,this.getNodeUV(se,re));a.dirty(),_e.dirty(),this._nodeRepulsionPass.material.define("fragment","NODE_COUNT",me.length),this._nodeRepulsionPass.material.setUniform("textureSize",[b,z]),this._inited=!1,this._frame=0},ie.prototype.getNodes=function(){return this._nodes},ie.prototype.getEdges=function(){return this._edges},ie.prototype.step=function(me){this._inited||(this._initFromSource(me),this._inited=!0),this._frame++,this._framebuffer.attach(this._forceTex),this._framebuffer.bind(me);var E=this._nodeRepulsionPass;E.setUniform("strongGravityMode",this.strongGravityMode),E.setUniform("gravity",this.gravity),E.setUniform("gravityCenter",this._gravityCenter),E.setUniform("scaling",this.scaling),E.setUniform("preventOverlap",this.preventOverlap),E.setUniform("positionTex",this._positionPrevTex),E.render(me);var b=this._edgeForceMesh;b.material.set("linLogMode",this.linLogMode),b.material.set("edgeWeightInfluence",this.edgeWeightInfluence),b.material.set("preventOverlap",this.preventOverlap),b.material.set("positionTex",this._positionPrevTex),me.gl.enable(me.gl.BLEND),me.renderPass([b],this._dummyCamera),this._framebuffer.attach(this._weightedSumTex),me.gl.clearColor(0,0,0,0),me.gl.clear(me.gl.COLOR_BUFFER_BIT),me.gl.enable(me.gl.BLEND);var z=this._weightedSumMesh;z.material.set("positionTex",this._positionPrevTex),z.material.set("forceTex",this._forceTex),z.material.set("forcePrevTex",this._forcePrevTex),me.renderPass([z],this._dummyCamera),this._framebuffer.attach(this._globalSpeedTex);var ne=this._globalSpeedPass;ne.setUniform("globalSpeedPrevTex",this._globalSpeedPrevTex),ne.setUniform("weightedSumTex",this._weightedSumTex),ne.setUniform("jitterTolerence",this.jitterTolerence),me.gl.disable(me.gl.BLEND),ne.render(me);var oe=this._positionPass;this._framebuffer.attach(this._positionTex),oe.setUniform("globalSpeedTex",this._globalSpeedTex),oe.setUniform("positionTex",this._positionPrevTex),oe.setUniform("forceTex",this._forceTex),oe.setUniform("forcePrevTex",this._forcePrevTex),oe.render(me),this._framebuffer.unbind(me),this._swapTexture()},ie.prototype.update=function(me,E,b){E==null&&(E=1),E=Math.max(E,1);for(var z=0;z<E;z++)this.step(me);b&&b()},ie.prototype.getNodePositionTexture=function(){return this._inited?this._positionPrevTex:this._positionSourceTex},ie.prototype.getNodeUV=function(me,E){E=E||[];var b=this._positionTex.width,z=this._positionTex.height;return E[0]=me%b/(b-1),E[1]=Math.floor(me/b)/(z-1)||0,E},ie.prototype.getNodePosition=function(me,E){var b=this._positionArr,z=this._positionTex.width,ne=this._positionTex.height,oe=z*ne;(!b||b.length!==oe*4)&&(b=this._positionArr=new Float32Array(oe*4)),this._framebuffer.bind(me),this._framebuffer.attach(this._positionPrevTex),me.gl.readPixels(0,0,z,ne,me.gl.RGBA,me.gl.FLOAT,b),this._framebuffer.unbind(me),E||(E=new Float32Array(this._nodes.length*2));for(var se=0;se<this._nodes.length;se++)E[se*2]=b[se*4],E[se*2+1]=b[se*4+1];return E},ie.prototype.getTextureData=function(me,E){var b=this["_"+E+"Tex"],z=b.width,ne=b.height;this._framebuffer.bind(me),this._framebuffer.attach(b);var oe=new Float32Array(z*ne*4);return me.gl.readPixels(0,0,z,ne,me.gl.RGBA,me.gl.FLOAT,oe),this._framebuffer.unbind(me),oe},ie.prototype.getTextureSize=function(){return{width:this._positionTex.width,height:this._positionTex.height}},ie.prototype.isFinished=function(me){return this._frame>me},ie.prototype._swapTexture=function(){var me=this._positionPrevTex;this._positionPrevTex=this._positionTex,this._positionTex=me;var me=this._forcePrevTex;this._forcePrevTex=this._forceTex,this._forceTex=me;var me=this._globalSpeedPrevTex;this._globalSpeedPrevTex=this._globalSpeedTex,this._globalSpeedTex=me},ie.prototype._initFromSource=function(me){this._framebuffer.attach(this._positionPrevTex),this._framebuffer.bind(me),this._copyPass.setUniform("texture",this._positionSourceTex),this._copyPass.render(me),me.gl.clearColor(0,0,0,0),this._framebuffer.attach(this._forcePrevTex),me.gl.clear(me.gl.COLOR_BUFFER_BIT),this._framebuffer.attach(this._globalSpeedPrevTex),me.gl.clear(me.gl.COLOR_BUFFER_BIT),this._framebuffer.unbind(me)},ie.prototype._resize=function(me,E){["_positionSourceTex","_positionTex","_positionPrevTex","_forceTex","_forcePrevTex"].forEach(function(b){this[b].width=me,this[b].height=E,this[b].dirty()},this)},ie.prototype.dispose=function(me){this._framebuffer.dispose(me),this._copyPass.dispose(me),this._nodeRepulsionPass.dispose(me),this._positionPass.dispose(me),this._globalSpeedPass.dispose(me),this._edgeForceMesh.geometry.dispose(me),this._weightedSumMesh.geometry.dispose(me),this._positionSourceTex.dispose(me),this._positionTex.dispose(me),this._positionPrevTex.dispose(me),this._forceTex.dispose(me),this._forcePrevTex.dispose(me),this._weightedSumTex.dispose(me),this._globalSpeedTex.dispose(me),this._globalSpeedPrevTex.dispose(me)},ve.a.ForceAtlas2GPU=ie,Me.a=ie},function(Ye,Me,pe){"use strict";Me.a=`@export ecgl.forceAtlas2.updateNodeRepulsion
|
|
|
|
|
|
#define NODE_COUNT 0
|
|
|
|
|
|
uniform sampler2D positionTex;
|
|
|
|
|
|
uniform vec2 textureSize;
|
|
|
uniform float gravity;
|
|
|
uniform float scaling;
|
|
|
uniform vec2 gravityCenter;
|
|
|
|
|
|
uniform bool strongGravityMode;
|
|
|
uniform bool preventOverlap;
|
|
|
|
|
|
varying vec2 v_Texcoord;
|
|
|
|
|
|
void main() {
|
|
|
|
|
|
vec4 n0 = texture2D(positionTex, v_Texcoord);
|
|
|
|
|
|
vec2 force = vec2(0.0);
|
|
|
for (int i = 0; i < NODE_COUNT; i++) {
|
|
|
vec2 uv = vec2(
|
|
|
mod(float(i), textureSize.x) / (textureSize.x - 1.0),
|
|
|
floor(float(i) / textureSize.x) / (textureSize.y - 1.0)
|
|
|
);
|
|
|
vec4 n1 = texture2D(positionTex, uv);
|
|
|
|
|
|
vec2 dir = n0.xy - n1.xy;
|
|
|
float d2 = dot(dir, dir);
|
|
|
|
|
|
if (d2 > 0.0) {
|
|
|
float factor = 0.0;
|
|
|
if (preventOverlap) {
|
|
|
float d = sqrt(d2);
|
|
|
d = d - n0.w - n1.w;
|
|
|
if (d > 0.0) {
|
|
|
factor = scaling * n0.z * n1.z / (d * d);
|
|
|
}
|
|
|
else if (d < 0.0) {
|
|
|
factor = scaling * 100.0 * n0.z * n1.z;
|
|
|
}
|
|
|
}
|
|
|
else {
|
|
|
factor = scaling * n0.z * n1.z / d2;
|
|
|
}
|
|
|
force += dir * factor;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
vec2 dir = gravityCenter - n0.xy;
|
|
|
float d = 1.0;
|
|
|
if (!strongGravityMode) {
|
|
|
d = length(dir);
|
|
|
}
|
|
|
|
|
|
force += dir * n0.z * gravity / (d + 1.0);
|
|
|
|
|
|
gl_FragColor = vec4(force, 0.0, 1.0);
|
|
|
}
|
|
|
@end
|
|
|
|
|
|
@export ecgl.forceAtlas2.updateEdgeAttraction.vertex
|
|
|
|
|
|
attribute vec2 node1;
|
|
|
attribute vec2 node2;
|
|
|
attribute float weight;
|
|
|
|
|
|
uniform sampler2D positionTex;
|
|
|
uniform float edgeWeightInfluence;
|
|
|
uniform bool preventOverlap;
|
|
|
uniform bool linLogMode;
|
|
|
|
|
|
uniform vec2 windowSize: WINDOW_SIZE;
|
|
|
|
|
|
varying vec2 v_Force;
|
|
|
|
|
|
void main() {
|
|
|
|
|
|
vec4 n0 = texture2D(positionTex, node1);
|
|
|
vec4 n1 = texture2D(positionTex, node2);
|
|
|
|
|
|
vec2 dir = n1.xy - n0.xy;
|
|
|
float d = length(dir);
|
|
|
float w;
|
|
|
if (edgeWeightInfluence == 0.0) {
|
|
|
w = 1.0;
|
|
|
}
|
|
|
else if (edgeWeightInfluence == 1.0) {
|
|
|
w = weight;
|
|
|
}
|
|
|
else {
|
|
|
w = pow(weight, edgeWeightInfluence);
|
|
|
}
|
|
|
vec2 offset = vec2(1.0 / windowSize.x, 1.0 / windowSize.y);
|
|
|
vec2 scale = vec2((windowSize.x - 1.0) / windowSize.x, (windowSize.y - 1.0) / windowSize.y);
|
|
|
vec2 pos = node1 * scale * 2.0 - 1.0;
|
|
|
gl_Position = vec4(pos + offset, 0.0, 1.0);
|
|
|
gl_PointSize = 1.0;
|
|
|
|
|
|
float factor;
|
|
|
if (preventOverlap) {
|
|
|
d = d - n1.w - n0.w;
|
|
|
}
|
|
|
if (d <= 0.0) {
|
|
|
v_Force = vec2(0.0);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (linLogMode) {
|
|
|
factor = w * log(d) / d;
|
|
|
}
|
|
|
else {
|
|
|
factor = w;
|
|
|
}
|
|
|
v_Force = dir * factor;
|
|
|
}
|
|
|
@end
|
|
|
|
|
|
@export ecgl.forceAtlas2.updateEdgeAttraction.fragment
|
|
|
|
|
|
varying vec2 v_Force;
|
|
|
|
|
|
void main() {
|
|
|
gl_FragColor = vec4(v_Force, 0.0, 0.0);
|
|
|
}
|
|
|
@end
|
|
|
|
|
|
@export ecgl.forceAtlas2.calcWeightedSum.vertex
|
|
|
|
|
|
attribute vec2 node;
|
|
|
|
|
|
varying vec2 v_NodeUv;
|
|
|
|
|
|
void main() {
|
|
|
|
|
|
v_NodeUv = node;
|
|
|
gl_Position = vec4(0.0, 0.0, 0.0, 1.0);
|
|
|
gl_PointSize = 1.0;
|
|
|
}
|
|
|
@end
|
|
|
|
|
|
@export ecgl.forceAtlas2.calcWeightedSum.fragment
|
|
|
|
|
|
varying vec2 v_NodeUv;
|
|
|
|
|
|
uniform sampler2D positionTex;
|
|
|
uniform sampler2D forceTex;
|
|
|
uniform sampler2D forcePrevTex;
|
|
|
|
|
|
void main() {
|
|
|
vec2 force = texture2D(forceTex, v_NodeUv).rg;
|
|
|
vec2 forcePrev = texture2D(forcePrevTex, v_NodeUv).rg;
|
|
|
|
|
|
float mass = texture2D(positionTex, v_NodeUv).z;
|
|
|
float swing = length(force - forcePrev) * mass;
|
|
|
float traction = length(force + forcePrev) * 0.5 * mass;
|
|
|
|
|
|
gl_FragColor = vec4(swing, traction, 0.0, 0.0);
|
|
|
}
|
|
|
@end
|
|
|
|
|
|
@export ecgl.forceAtlas2.calcGlobalSpeed
|
|
|
|
|
|
uniform sampler2D globalSpeedPrevTex;
|
|
|
uniform sampler2D weightedSumTex;
|
|
|
uniform float jitterTolerence;
|
|
|
|
|
|
void main() {
|
|
|
vec2 weightedSum = texture2D(weightedSumTex, vec2(0.5)).xy;
|
|
|
float prevGlobalSpeed = texture2D(globalSpeedPrevTex, vec2(0.5)).x;
|
|
|
float globalSpeed = jitterTolerence * jitterTolerence
|
|
|
* weightedSum.y / weightedSum.x;
|
|
|
if (prevGlobalSpeed > 0.0) {
|
|
|
globalSpeed = min(globalSpeed / prevGlobalSpeed, 1.5) * prevGlobalSpeed;
|
|
|
}
|
|
|
gl_FragColor = vec4(globalSpeed, 0.0, 0.0, 1.0);
|
|
|
}
|
|
|
@end
|
|
|
|
|
|
@export ecgl.forceAtlas2.updatePosition
|
|
|
|
|
|
uniform sampler2D forceTex;
|
|
|
uniform sampler2D forcePrevTex;
|
|
|
uniform sampler2D positionTex;
|
|
|
uniform sampler2D globalSpeedTex;
|
|
|
|
|
|
varying vec2 v_Texcoord;
|
|
|
|
|
|
void main() {
|
|
|
vec2 force = texture2D(forceTex, v_Texcoord).xy;
|
|
|
vec2 forcePrev = texture2D(forcePrevTex, v_Texcoord).xy;
|
|
|
vec4 node = texture2D(positionTex, v_Texcoord);
|
|
|
|
|
|
float globalSpeed = texture2D(globalSpeedTex, vec2(0.5)).r;
|
|
|
float swing = length(force - forcePrev);
|
|
|
float speed = 0.1 * globalSpeed / (0.1 + globalSpeed * sqrt(swing));
|
|
|
|
|
|
float df = length(force);
|
|
|
if (df > 0.0) {
|
|
|
speed = min(df * speed, 10.0) / df;
|
|
|
|
|
|
gl_FragColor = vec4(node.xy + speed * force, node.zw);
|
|
|
}
|
|
|
else {
|
|
|
gl_FragColor = node;
|
|
|
}
|
|
|
}
|
|
|
@end
|
|
|
|
|
|
@export ecgl.forceAtlas2.edges.vertex
|
|
|
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
|
|
|
|
|
attribute vec2 node;
|
|
|
attribute vec4 a_Color : COLOR;
|
|
|
varying vec4 v_Color;
|
|
|
|
|
|
uniform sampler2D positionTex;
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
gl_Position = worldViewProjection * vec4(
|
|
|
texture2D(positionTex, node).xy, -10.0, 1.0
|
|
|
);
|
|
|
v_Color = a_Color;
|
|
|
}
|
|
|
@end
|
|
|
|
|
|
@export ecgl.forceAtlas2.edges.fragment
|
|
|
uniform vec4 color : [1.0, 1.0, 1.0, 1.0];
|
|
|
varying vec4 v_Color;
|
|
|
void main() {
|
|
|
gl_FragColor = color * v_Color;
|
|
|
}
|
|
|
@end`},function(Ye,Me,pe){"use strict";var Oe=pe(5),ve=pe(6),ue=pe(250),fe=ue.a.toString();fe=fe.slice(fe.indexOf("{")+1,fe.lastIndexOf("}"));var he={barnesHutOptimize:!0,barnesHutTheta:1.5,repulsionByDegree:!0,linLogMode:!1,strongGravityMode:!1,gravity:1,scaling:1,edgeWeightInfluence:1,jitterTolerence:.1,preventOverlap:!1,dissuadeHubs:!1,gravityCenter:null},le=function(ae){for(var ie in he)this[ie]=he[ie];if(ae)for(var ie in ae)this[ie]=ae[ie];this._nodes=[],this._edges=[],this._disposed=!1,this._positionTex=new Oe.a({type:ve.a.FLOAT,flipY:!1,minFilter:ve.a.NEAREST,magFilter:ve.a.NEAREST})};le.prototype.initData=function(ae,ie){var me=new Blob([fe]),E=window.URL.createObjectURL(me);this._worker=new Worker(E),this._worker.onmessage=this._$onupdate.bind(this),this._nodes=ae,this._edges=ie,this._frame=0;for(var b=ae.length,z=ie.length,ne=new Float32Array(b*2),oe=new Float32Array(b),se=new Float32Array(b),de=new Float32Array(z*2),a=new Float32Array(z),x=0;x<ae.length;x++){var re=ae[x];ne[x*2]=re.x,ne[x*2+1]=re.y,oe[x]=re.mass==null?1:re.mass,se[x]=re.size==null?1:re.size}for(var x=0;x<ie.length;x++){var ce=ie[x],ge=ce.node1,_e=ce.node2;de[x*2]=ge,de[x*2+1]=_e,a[x]=ce.weight==null?1:ce.weight}var ye=Math.ceil(Math.sqrt(ae.length)),be=ye,Se=new Float32Array(ye*be*4),Be=this._positionTex;Be.width=ye,Be.height=be,Be.pixels=Se,this._worker.postMessage({cmd:"init",nodesPosition:ne,nodesMass:oe,nodesSize:se,edges:de,edgesWeight:a}),this._globalSpeed=1/0},le.prototype.updateOption=function(ae){var ie={};for(var me in he)ie[me]=he[me];var E=this._nodes,b=this._edges,z=E.length;if(z>5e4?ie.jitterTolerence=10:z>5e3?ie.jitterTolerence=1:ie.jitterTolerence=.1,z>100?ie.scaling=2:ie.scaling=10,z>1e3?ie.barnesHutOptimize=!0:ie.barnesHutOptimize=!1,ae)for(var me in he)ae[me]!=null&&(ie[me]=ae[me]);if(!ie.gravityCenter){for(var ne=[1/0,1/0],oe=[-1/0,-1/0],se=0;se<E.length;se++)ne[0]=Math.min(E[se].x,ne[0]),ne[1]=Math.min(E[se].y,ne[1]),oe[0]=Math.max(E[se].x,oe[0]),oe[1]=Math.max(E[se].y,oe[1]);ie.gravityCenter=[(ne[0]+oe[0])*.5,(ne[1]+oe[1])*.5]}for(var se=0;se<b.length;se++){var de=b[se].node1,a=b[se].node2;E[de].degree=(E[de].degree||0)+1,E[a].degree=(E[a].degree||0)+1}this._worker&&this._worker.postMessage({cmd:"updateConfig",config:ie})},le.prototype.update=function(ae,ie,me){ie==null&&(ie=1),ie=Math.max(ie,1),this._frame+=ie,this._onupdate=me,this._worker&&this._worker.postMessage({cmd:"update",steps:Math.round(ie)})},le.prototype._$onupdate=function(ae){if(!this._disposed){var ie=new Float32Array(ae.data.buffer);this._globalSpeed=ae.data.globalSpeed,this._positionArr=ie,this._updateTexture(ie),this._onupdate&&this._onupdate()}},le.prototype.getNodePositionTexture=function(){return this._positionTex},le.prototype.getNodeUV=function(ae,ie){ie=ie||[];var me=this._positionTex.width,E=this._positionTex.height;return ie[0]=ae%me/(me-1),ie[1]=Math.floor(ae/me)/(E-1),ie},le.prototype.getNodes=function(){return this._nodes},le.prototype.getEdges=function(){return this._edges},le.prototype.isFinished=function(ae){return this._frame>ae},le.prototype.getNodePosition=function(ae,ie){if(ie||(ie=new Float32Array(this._nodes.length*2)),this._positionArr)for(var me=0;me<this._positionArr.length;me++)ie[me]=this._positionArr[me];return ie},le.prototype._updateTexture=function(ae){for(var ie=this._positionTex.pixels,me=0,E=0;E<ae.length;)ie[me++]=ae[E++],ie[me++]=ae[E++],ie[me++]=1,ie[me++]=1;this._positionTex.dirty()},le.prototype.dispose=function(ae){this._disposed=!0,this._worker=null},Me.a=le},function(Ye,Me,pe){"use strict";function Oe(){var ve={create:function(){return new Float32Array(2)},dist:function(E,b){var z=b[0]-E[0],ne=b[1]-E[1];return Math.sqrt(z*z+ne*ne)},len:function(E){var b=E[0],z=E[1];return Math.sqrt(b*b+z*z)},scaleAndAdd:function(E,b,z,ne){return E[0]=b[0]+z[0]*ne,E[1]=b[1]+z[1]*ne,E},scale:function(E,b,z){return E[0]=b[0]*z,E[1]=b[1]*z,E},add:function(E,b,z){return E[0]=b[0]+z[0],E[1]=b[1]+z[1],E},sub:function(E,b,z){return E[0]=b[0]-z[0],E[1]=b[1]-z[1],E},normalize:function(E,b){var z=b[0],ne=b[1],oe=z*z+ne*ne;return oe>0&&(oe=1/Math.sqrt(oe),E[0]=b[0]*oe,E[1]=b[1]*oe),E},negate:function(E,b){return E[0]=-b[0],E[1]=-b[1],E},copy:function(E,b){return E[0]=b[0],E[1]=b[1],E},set:function(E,b,z){return E[0]=b,E[1]=z,E}};function ue(){this.subRegions=[],this.nSubRegions=0,this.node=null,this.mass=0,this.centerOfMass=null,this.bbox=new Float32Array(4),this.size=0}var fe=ue.prototype;fe.beforeUpdate=function(){for(var E=0;E<this.nSubRegions;E++)this.subRegions[E].beforeUpdate();this.mass=0,this.centerOfMass&&(this.centerOfMass[0]=0,this.centerOfMass[1]=0),this.nSubRegions=0,this.node=null},fe.afterUpdate=function(){this.subRegions.length=this.nSubRegions;for(var E=0;E<this.nSubRegions;E++)this.subRegions[E].afterUpdate()},fe.addNode=function(E){if(this.nSubRegions===0)if(this.node==null){this.node=E;return}else this._addNodeToSubRegion(this.node),this.node=null;this._addNodeToSubRegion(E),this._updateCenterOfMass(E)},fe.findSubRegion=function(E,b){for(var z=0;z<this.nSubRegions;z++){var ne=this.subRegions[z];if(ne.contain(E,b))return ne}},fe.contain=function(E,b){return this.bbox[0]<=E&&this.bbox[2]>=E&&this.bbox[1]<=b&&this.bbox[3]>=b},fe.setBBox=function(E,b,z,ne){this.bbox[0]=E,this.bbox[1]=b,this.bbox[2]=z,this.bbox[3]=ne,this.size=(z-E+ne-b)/2},fe._newSubRegion=function(){var E=this.subRegions[this.nSubRegions];return E||(E=new ue,this.subRegions[this.nSubRegions]=E),this.nSubRegions++,E},fe._addNodeToSubRegion=function(E){var b=this.findSubRegion(E.position[0],E.position[1]),z=this.bbox;if(!b){var ne=(z[0]+z[2])/2,oe=(z[1]+z[3])/2,se=(z[2]-z[0])/2,de=(z[3]-z[1])/2,a=E.position[0]>=ne?1:0,x=E.position[1]>=oe?1:0,b=this._newSubRegion();b.setBBox(a*se+z[0],x*de+z[1],(a+1)*se+z[0],(x+1)*de+z[1])}b.addNode(E)},fe._updateCenterOfMass=function(E){this.centerOfMass==null&&(this.centerOfMass=new Float32Array(2));var b=this.centerOfMass[0]*this.mass,z=this.centerOfMass[1]*this.mass;b+=E.position[0]*E.mass,z+=E.position[1]*E.mass,this.mass+=E.mass,this.centerOfMass[0]=b/this.mass,this.centerOfMass[1]=z/this.mass};function he(){this.position=new Float32Array(2),this.force=ve.create(),this.forcePrev=ve.create(),this.mass=1,this.inDegree=0,this.outDegree=0}function le(E,b){this.source=E,this.target=b,this.weight=1}function ae(){this.autoSettings=!0,this.barnesHutOptimize=!0,this.barnesHutTheta=1.5,this.repulsionByDegree=!0,this.linLogMode=!1,this.strongGravityMode=!1,this.gravity=1,this.scaling=1,this.edgeWeightInfluence=1,this.jitterTolerence=.1,this.preventOverlap=!1,this.dissuadeHubs=!1,this.rootRegion=new ue,this.rootRegion.centerOfMass=ve.create(),this.nodes=[],this.edges=[],this.bbox=new Float32Array(4),this.gravityCenter=null,this._massArr=null,this._swingingArr=null,this._sizeArr=null,this._globalSpeed=0}var ie=ae.prototype;ie.initNodes=function(E,b,z){var ne=b.length;this.nodes.length=0;for(var oe=typeof z!="undefined",se=0;se<ne;se++){var de=new he;de.position[0]=E[se*2],de.position[1]=E[se*2+1],de.mass=b[se],oe&&(de.size=z[se]),this.nodes.push(de)}this._massArr=b,this._swingingArr=new Float32Array(ne),oe&&(this._sizeArr=z)},ie.initEdges=function(E,b){var z=E.length/2;this.edges.length=0;for(var ne=0;ne<z;ne++){var oe=E[ne*2],se=E[ne*2+1],de=this.nodes[oe],a=this.nodes[se];if(!de||!a){console.error("Node not exists, try initNodes before initEdges");return}de.outDegree++,a.inDegree++;var x=new le(de,a);b&&(x.weight=b[ne]),this.edges.push(x)}},ie.updateSettings=function(){if(this.repulsionByDegree)for(var E=0;E<this.nodes.length;E++){var b=this.nodes[E];b.mass=b.inDegree+b.outDegree+1}else for(var E=0;E<this.nodes.length;E++){var b=this.nodes[E];b.mass=this._massArr[E]}},ie.update=function(){var E=this.nodes.length;if(this.updateSettings(),this.updateBBox(),this.barnesHutOptimize){this.rootRegion.setBBox(this.bbox[0],this.bbox[1],this.bbox[2],this.bbox[3]),this.rootRegion.beforeUpdate();for(var b=0;b<E;b++)this.rootRegion.addNode(this.nodes[b]);this.rootRegion.afterUpdate()}for(var b=0;b<E;b++){var z=this.nodes[b];ve.copy(z.forcePrev,z.force),ve.set(z.force,0,0)}for(var b=0;b<E;b++){var ne=this.nodes[b];if(this.barnesHutOptimize)this.applyRegionToNodeRepulsion(this.rootRegion,ne);else for(var oe=b+1;oe<E;oe++){var se=this.nodes[oe];this.applyNodeToNodeRepulsion(ne,se,!1)}this.gravity>0&&(this.strongGravityMode?this.applyNodeStrongGravity(ne):this.applyNodeGravity(ne))}for(var b=0;b<this.edges.length;b++)this.applyEdgeAttraction(this.edges[b]);for(var de=0,a=0,x=ve.create(),b=0;b<E;b++){var z=this.nodes[b],re=ve.dist(z.force,z.forcePrev);de+=re*z.mass,ve.add(x,z.force,z.forcePrev);var ce=ve.len(x)*.5;a+=ce*z.mass,this._swingingArr[b]=re}var ge=this.jitterTolerence*this.jitterTolerence*a/de;this._globalSpeed>0&&(ge=Math.min(ge/this._globalSpeed,1.5)*this._globalSpeed),this._globalSpeed=ge;for(var b=0;b<E;b++){var z=this.nodes[b],re=this._swingingArr[b],_e=.1*ge/(1+ge*Math.sqrt(re)),ye=ve.len(z.force);ye>0&&(_e=Math.min(ye*_e,10)/ye,ve.scaleAndAdd(z.position,z.position,z.force,_e))}},ie.applyRegionToNodeRepulsion=function(){var E=ve.create();return function(z,ne){if(z.node)this.applyNodeToNodeRepulsion(z.node,ne,!0);else{ve.sub(E,ne.position,z.centerOfMass);var oe=E[0]*E[0]+E[1]*E[1];if(oe>this.barnesHutTheta*z.size*z.size){var se=this.scaling*ne.mass*z.mass/oe;ve.scaleAndAdd(ne.force,ne.force,E,se)}else for(var de=0;de<z.nSubRegions;de++)this.applyRegionToNodeRepulsion(z.subRegions[de],ne)}}}(),ie.applyNodeToNodeRepulsion=function(){var E=ve.create();return function(z,ne,oe){if(z!=ne){ve.sub(E,z.position,ne.position);var se=E[0]*E[0]+E[1]*E[1];if(se!==0){var de;if(this.preventOverlap){var a=Math.sqrt(se);if(a=a-z.size-ne.size,a>0)de=this.scaling*z.mass*ne.mass/(a*a);else if(a<0)de=this.scaling*100*z.mass*ne.mass;else return}else de=this.scaling*z.mass*ne.mass/se;ve.scaleAndAdd(z.force,z.force,E,de),ve.scaleAndAdd(ne.force,ne.force,E,-de)}}}}(),ie.applyEdgeAttraction=function(){var E=ve.create();return function(z){var ne=z.source,oe=z.target;ve.sub(E,ne.position,oe.position);var se=ve.len(E),de;this.edgeWeightInfluence===0?de=1:this.edgeWeightInfluence===1?de=z.weight:de=Math.pow(z.weight,this.edgeWeightInfluence);var a;this.preventOverlap&&(se=se-ne.size-oe.size,se<=0)||(this.linLogMode?a=-de*Math.log(se+1)/(se+1):a=-de,ve.scaleAndAdd(ne.force,ne.force,E,a),ve.scaleAndAdd(oe.force,oe.force,E,-a))}}(),ie.applyNodeGravity=function(){var E=ve.create();return function(b){ve.sub(E,this.gravityCenter,b.position);var z=ve.len(E);ve.scaleAndAdd(b.force,b.force,E,this.gravity*b.mass/(z+1))}}(),ie.applyNodeStrongGravity=function(){var E=ve.create();return function(b){ve.sub(E,this.gravityCenter,b.position),ve.scaleAndAdd(b.force,b.force,E,this.gravity*b.mass)}}(),ie.updateBBox=function(){for(var E=1/0,b=1/0,z=-1/0,ne=-1/0,oe=0;oe<this.nodes.length;oe++){var se=this.nodes[oe].position;E=Math.min(E,se[0]),b=Math.min(b,se[1]),z=Math.max(z,se[0]),ne=Math.max(ne,se[1])}this.bbox[0]=E,this.bbox[1]=b,this.bbox[2]=z,this.bbox[3]=ne},ie.getGlobalSpeed=function(){return this._globalSpeed};var me=null;self.onmessage=function(E){switch(E.data.cmd){case"init":me=new ae,me.initNodes(E.data.nodesPosition,E.data.nodesMass,E.data.nodesSize),me.initEdges(E.data.edges,E.data.edgesWeight);break;case"updateConfig":if(me)for(var b in E.data.config)me[b]=E.data.config[b];break;case"update":var z=E.data.steps;if(me){for(var ne=0;ne<z;ne++)me.update();for(var oe=me.nodes.length,se=new Float32Array(oe*2),ne=0;ne<oe;ne++){var de=me.nodes[ne];se[ne*2]=de.position[0],se[ne*2+1]=de.position[1]}self.postMessage({buffer:se.buffer,globalSpeed:me.getGlobalSpeed()},[se.buffer])}else{var a=new Float32Array;self.postMessage({buffer:a.buffer,globalSpeed:me.getGlobalSpeed()},[a.buffer])}break}}}Me.a=Oe},function(Ye,Me,pe){"use strict";var Oe=pe(8),ve=pe(3),ue=Oe.a.extend(function(){return{zr:null,viewGL:null,minZoom:.2,maxZoom:5,_needsUpdate:!1,_dx:0,_dy:0,_zoom:1}},function(){this._mouseDownHandler=this._mouseDownHandler.bind(this),this._mouseWheelHandler=this._mouseWheelHandler.bind(this),this._mouseMoveHandler=this._mouseMoveHandler.bind(this),this._mouseUpHandler=this._mouseUpHandler.bind(this),this._update=this._update.bind(this)},{init:function(){var fe=this.zr;fe.on("mousedown",this._mouseDownHandler),fe.on("mousewheel",this._mouseWheelHandler),fe.on("globalout",this._mouseUpHandler),fe.animation.on("frame",this._update)},setTarget:function(fe){this._target=fe},setZoom:function(fe){this._zoom=Math.max(Math.min(fe,this.maxZoom),this.minZoom),this._needsUpdate=!0},setOffset:function(fe){this._dx=fe[0],this._dy=fe[1],this._needsUpdate=!0},getZoom:function(){return this._zoom},getOffset:function(){return[this._dx,this._dy]},_update:function(){if(this._target&&this._needsUpdate){var fe=this._target,he=this._zoom;fe.position.x=this._dx,fe.position.y=this._dy,fe.scale.set(he,he,he),this.zr.refresh(),this._needsUpdate=!1,this.trigger("update")}},_mouseDownHandler:function(fe){if(!fe.target){var he=fe.offsetX,le=fe.offsetY;if(!(this.viewGL&&!this.viewGL.containPoint(he,le))){this.zr.on("mousemove",this._mouseMoveHandler),this.zr.on("mouseup",this._mouseUpHandler);var ae=this._convertPos(he,le);this._x=ae.x,this._y=ae.y}}},_convertPos:function(fe,he){var le=this.viewGL.camera,ae=this.viewGL.viewport;return{x:(fe-ae.x)/ae.width*(le.right-le.left)+le.left,y:(he-ae.y)/ae.height*(le.bottom-le.top)+le.top}},_mouseMoveHandler:function(fe){var he=this._convertPos(fe.offsetX,fe.offsetY);this._dx+=he.x-this._x,this._dy+=he.y-this._y,this._x=he.x,this._y=he.y,this._needsUpdate=!0},_mouseUpHandler:function(fe){this.zr.off("mousemove",this._mouseMoveHandler),this.zr.off("mouseup",this._mouseUpHandler)},_mouseWheelHandler:function(fe){fe=fe.event;var he=fe.wheelDelta||-fe.detail;if(he!==0){var le=fe.offsetX,ae=fe.offsetY;if(!(this.viewGL&&!this.viewGL.containPoint(le,ae))){var ie=he>0?1.1:.9,me=Math.max(Math.min(this._zoom*ie,this.maxZoom),this.minZoom);ie=me/this._zoom;var E=this._convertPos(le,ae),b=(E.x-this._dx)*(ie-1),z=(E.y-this._dy)*(ie-1);this._dx-=b,this._dy-=z,this._zoom=me,this._needsUpdate=!0}}},dispose:function(){var fe=this.zr;fe.off("mousedown",this._mouseDownHandler),fe.off("mousemove",this._mouseMoveHandler),fe.off("mouseup",this._mouseUpHandler),fe.off("mousewheel",this._mouseWheelHandler),fe.off("globalout",this._mouseUpHandler),fe.animation.off("frame",this._update)}});Me.a=ue},function(Ye,Me,pe){"use strict";Me.a=`@export ecgl.lines2D.vertex
|
|
|
|
|
|
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
|
|
|
|
|
attribute vec2 position: POSITION;
|
|
|
attribute vec4 a_Color : COLOR;
|
|
|
varying vec4 v_Color;
|
|
|
|
|
|
#ifdef POSITIONTEXTURE_ENABLED
|
|
|
uniform sampler2D positionTexture;
|
|
|
#endif
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
gl_Position = worldViewProjection * vec4(position, -10.0, 1.0);
|
|
|
|
|
|
v_Color = a_Color;
|
|
|
}
|
|
|
|
|
|
@end
|
|
|
|
|
|
@export ecgl.lines2D.fragment
|
|
|
|
|
|
uniform vec4 color : [1.0, 1.0, 1.0, 1.0];
|
|
|
|
|
|
varying vec4 v_Color;
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
gl_FragColor = color * v_Color;
|
|
|
}
|
|
|
@end
|
|
|
|
|
|
|
|
|
@export ecgl.meshLines2D.vertex
|
|
|
|
|
|
attribute vec2 position: POSITION;
|
|
|
attribute vec2 normal;
|
|
|
attribute float offset;
|
|
|
attribute vec4 a_Color : COLOR;
|
|
|
|
|
|
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
|
|
uniform vec4 viewport : VIEWPORT;
|
|
|
|
|
|
varying vec4 v_Color;
|
|
|
varying float v_Miter;
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
vec4 p2 = worldViewProjection * vec4(position + normal, -10.0, 1.0);
|
|
|
gl_Position = worldViewProjection * vec4(position, -10.0, 1.0);
|
|
|
|
|
|
p2.xy /= p2.w;
|
|
|
gl_Position.xy /= gl_Position.w;
|
|
|
|
|
|
vec2 N = normalize(p2.xy - gl_Position.xy);
|
|
|
gl_Position.xy += N * offset / viewport.zw * 2.0;
|
|
|
|
|
|
gl_Position.xy *= gl_Position.w;
|
|
|
|
|
|
v_Color = a_Color;
|
|
|
}
|
|
|
@end
|
|
|
|
|
|
|
|
|
@export ecgl.meshLines2D.fragment
|
|
|
|
|
|
uniform vec4 color : [1.0, 1.0, 1.0, 1.0];
|
|
|
|
|
|
varying vec4 v_Color;
|
|
|
varying float v_Miter;
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
gl_FragColor = color * v_Color;
|
|
|
}
|
|
|
|
|
|
@end`},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(254),fe=pe(258)},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(2),fe=pe(3),he=pe(20),le=pe(255);ve.a.extendChartView({type:"flowGL",__ecgl__:!0,init:function(ae,ie){this.viewGL=new he.a("orthographic"),this.groupGL=new ue.a.Node,this.viewGL.add(this.groupGL),this._particleSurface=new le.a;var me=new ue.a.Mesh({geometry:new ue.a.PlaneGeometry,material:new ue.a.Material({shader:new ue.a.Shader({vertex:ue.a.Shader.source("ecgl.color.vertex"),fragment:ue.a.Shader.source("ecgl.color.fragment")}),transparent:!0})});me.material.enableTexture("diffuseMap"),this.groupGL.add(me),this._planeMesh=me},render:function(ae,ie,me){var E=this._particleSurface;E.setParticleType(ae.get("particleType")),E.setSupersampling(ae.get("supersampling")),this._updateData(ae,me),this._updateCamera(me.getWidth(),me.getHeight(),me.getDevicePixelRatio());var b=fe.a.firstNotNull(ae.get("particleDensity"),128);E.setParticleDensity(b,b);var z=this._planeMesh,ne=+new Date,oe=this,se=!0;z.__percent=0,z.stopAnimation(),z.animate("",{loop:!0}).when(1e5,{__percent:1}).during(function(){var x=+new Date,re=Math.min(x-ne,20);ne=ne+re,oe._renderer&&(E.update(oe._renderer,me,re/1e3,se),z.material.set("diffuseMap",E.getSurfaceTexture())),se=!1}).start();var de=ae.getModel("itemStyle"),a=ue.a.parseColor(de.get("color"));a[3]*=fe.a.firstNotNull(de.get("opacity"),1),z.material.set("color",a),E.setColorTextureImage(ae.get("colorTexture"),me),E.setParticleSize(ae.get("particleSize")),E.particleSpeedScaling=ae.get("particleSpeed"),E.motionBlurFactor=1-Math.pow(.1,ae.get("particleTrail"))},updateTransform:function(ae,ie,me){this._updateData(ae,me)},afterRender:function(ae,ie,me,E){var b=E.renderer;this._renderer=b},_updateData:function(ae,ie){var me=ae.coordinateSystem,E=me.dimensions.map(function(Se){return ae.coordDimToDataDim(Se)[0]}),b=ae.getData(),z=b.getDataExtent(E[0]),ne=b.getDataExtent(E[1]),oe=ae.get("gridWidth"),se=ae.get("gridHeight");if(oe==null||oe==="auto"){var de=(z[1]-z[0])/(ne[1]-ne[0]);oe=Math.round(Math.sqrt(de*b.count()))}(se==null||se==="auto")&&(se=Math.ceil(b.count()/oe));var a=this._particleSurface.vectorFieldTexture,x=a.pixels;if(!x||x.length!==se*oe*4)x=a.pixels=new Float32Array(oe*se*4);else for(var re=0;re<x.length;re++)x[re]=0;var ce=0,ge=1/0,_e=new Float32Array(b.count()*2),ye=0,be=[[1/0,1/0],[-1/0,-1/0]];b.each([E[0],E[1],"vx","vy"],function(Se,Be,Ae,we){var Ue=me.dataToPoint([Se,Be]);_e[ye++]=Ue[0],_e[ye++]=Ue[1],be[0][0]=Math.min(Ue[0],be[0][0]),be[0][1]=Math.min(Ue[1],be[0][1]),be[1][0]=Math.max(Ue[0],be[1][0]),be[1][1]=Math.max(Ue[1],be[1][1]);var Pe=Math.sqrt(Ae*Ae+we*we);ce=Math.max(ce,Pe),ge=Math.min(ge,Pe)}),b.each(["vx","vy"],function(Se,Be,Ae){var we=Math.round((_e[Ae*2]-be[0][0])/(be[1][0]-be[0][0])*(oe-1)),Ue=se-1-Math.round((_e[Ae*2+1]-be[0][1])/(be[1][1]-be[0][1])*(se-1)),Pe=(Ue*oe+we)*4;x[Pe]=Se/ce*.5+.5,x[Pe+1]=Be/ce*.5+.5,x[Pe+3]=1}),a.width=oe,a.height=se,ae.get("coordinateSystem")==="bmap"&&this._fillEmptyPixels(a),a.dirty(),this._updatePlanePosition(be[0],be[1],ae,ie),this._updateGradientTexture(b.getVisual("visualMeta"),[ge,ce])},_fillEmptyPixels:function(ae){var ie=ae.pixels,me=ae.width,E=ae.height;function b(_e,ye,be){_e=Math.max(Math.min(_e,me-1),0),ye=Math.max(Math.min(ye,E-1),0);var Se=(ye*(me-1)+_e)*4;return ie[Se+3]===0?!1:(be[0]=ie[Se],be[1]=ie[Se+1],!0)}function z(_e,ye,be){be[0]=_e[0]+ye[0],be[1]=_e[1]+ye[1]}for(var ne=[],oe=[],se=[],de=[],a=[],x=0,re=0;re<E;re++)for(var ce=0;ce<me;ce++){var ge=(re*(me-1)+ce)*4;ie[ge+3]===0&&(x=ne[0]=ne[1]=0,b(ce-1,re,oe)&&(x++,z(oe,ne,ne)),b(ce+1,re,se)&&(x++,z(se,ne,ne)),b(ce,re-1,de)&&(x++,z(de,ne,ne)),b(ce,re+1,a)&&(x++,z(a,ne,ne)),ne[0]/=x,ne[1]/=x,ie[ge]=ne[0],ie[ge+1]=ne[1]),ie[ge+3]=1}},_updateGradientTexture:function(ae,ie){if(!ae||!ae.length){this._particleSurface.setGradientTexture(null);return}this._gradientTexture=this._gradientTexture||new ue.a.Texture2D({image:document.createElement("canvas")});var me=this._gradientTexture,E=me.image;E.width=200,E.height=1;var b=E.getContext("2d"),z=b.createLinearGradient(0,.5,E.width,.5);ae[0].stops.forEach(function(ne){var oe;ie[1]===ie[0]?oe=0:(oe=ne.value/ie[1],oe=Math.min(Math.max(oe,0),1)),z.addColorStop(oe,ne.color)}),b.fillStyle=z,b.fillRect(0,0,E.width,E.height),me.dirty(),this._particleSurface.setGradientTexture(this._gradientTexture)},_updatePlanePosition:function(ae,ie,me,E){var b=this._limitInViewportAndFullFill(ae,ie,me,E);ae=b.leftTop,ie=b.rightBottom,this._particleSurface.setRegion(b.region),this._planeMesh.position.set((ae[0]+ie[0])/2,E.getHeight()-(ae[1]+ie[1])/2,0);var z=ie[0]-ae[0],ne=ie[1]-ae[1];this._planeMesh.scale.set(z/2,ne/2,1),this._particleSurface.resize(Math.max(Math.min(z,2048),1),Math.max(Math.min(ne,2048),1)),this._renderer&&this._particleSurface.clearFrame(this._renderer)},_limitInViewportAndFullFill:function(ae,ie,me,E){var b=[Math.max(ae[0],0),Math.max(ae[1],0)],z=[Math.min(ie[0],E.getWidth()),Math.min(ie[1],E.getHeight())];if(me.get("coordinateSystem")==="bmap"){var ne=me.getData().getDataExtent(me.coordDimToDataDim("lng")[0]),oe=Math.floor(ne[1]-ne[0])>=359;oe&&(b[0]>0&&(b[0]=0),z[0]<E.getWidth()&&(z[0]=E.getWidth()))}var se=ie[0]-ae[0],de=ie[1]-ae[1],a=z[0]-b[0],x=z[1]-b[1],re=[(b[0]-ae[0])/se,1-x/de-(b[1]-ae[1])/de,a/se,x/de];return{leftTop:b,rightBottom:z,region:re}},_updateCamera:function(ae,ie,me){this.viewGL.setViewport(0,0,ae,ie,me);var E=this.viewGL.camera;E.left=E.bottom=0,E.top=ie,E.right=ae,E.near=0,E.far=100,E.position.z=10},remove:function(){this._planeMesh.stopAnimation(),this.groupGL.removeAll()},dispose:function(){this._renderer&&this._particleSurface.dispose(this._renderer),this.groupGL.removeAll()}})},function(Ye,Me,pe){"use strict";var Oe=pe(14),ve=pe(13),ue=pe(24),fe=pe(17),he=pe(7),le=pe(5),ae=pe(6),ie=pe(30),me=pe(37),E=pe(10),b=pe(256),z=pe(257);he.a.import(z.a);function ne(se){var de=document.createElement("canvas");de.width=de.height=se;var a=de.getContext("2d");return a.fillStyle="#fff",a.arc(se/2,se/2,se/2,0,Math.PI*2),a.fill(),de}var oe=function(){this.motionBlurFactor=.99,this.vectorFieldTexture=new le.a({type:ae.a.FLOAT,flipY:!1}),this.particleLife=[5,20],this._particleType="point",this._particleSize=1,this.particleColor=[1,1,1,1],this.particleSpeedScaling=1,this._thisFrameTexture=null,this._particlePass=null,this._spawnTexture=null,this._particleTexture0=null,this._particleTexture1=null,this._particlePointsMesh=null,this._surfaceFrameBuffer=null,this._elapsedTime=0,this._scene=null,this._camera=null,this._lastFrameTexture=null,this._supersampling=1,this._downsampleTextures=[],this._width=512,this._height=512,this.init()};oe.prototype={constructor:oe,init:function(){var se={type:ae.a.FLOAT,minFilter:ae.a.NEAREST,magFilter:ae.a.NEAREST,useMipmap:!1};this._spawnTexture=new le.a(se),this._particleTexture0=new le.a(se),this._particleTexture1=new le.a(se),this._frameBuffer=new E.a({depthBuffer:!1}),this._particlePass=new Oe.a({fragment:he.a.source("ecgl.vfParticle.particle.fragment")}),this._particlePass.setUniform("velocityTexture",this.vectorFieldTexture),this._particlePass.setUniform("spawnTexture",this._spawnTexture),this._downsamplePass=new Oe.a({fragment:he.a.source("clay.compositor.downsample")});var de=new ue.a({renderOrder:10,material:new fe.a({shader:new he.a(he.a.source("ecgl.vfParticle.renderPoints.vertex"),he.a.source("ecgl.vfParticle.renderPoints.fragment"))}),mode:ue.a.POINTS,geometry:new ve.a({dynamic:!0,mainAttribute:"texcoord0"})}),a=new ue.a({renderOrder:10,material:new fe.a({shader:new he.a(he.a.source("ecgl.vfParticle.renderLines.vertex"),he.a.source("ecgl.vfParticle.renderLines.fragment"))}),geometry:new b.a,culling:!1}),x=new ue.a({material:new fe.a({shader:new he.a(he.a.source("ecgl.color.vertex"),he.a.source("ecgl.color.fragment"))}),geometry:new me.a});x.material.enableTexture("diffuseMap"),this._particlePointsMesh=de,this._particleLinesMesh=a,this._lastFrameFullQuadMesh=x,this._camera=new ie.a,this._thisFrameTexture=new le.a,this._lastFrameTexture=new le.a},setParticleDensity:function(se,de){for(var a=se*de,x=new Float32Array(a*4),re=0,ce=this.particleLife,ge=0;ge<se;ge++)for(var _e=0;_e<de;_e++,re++){x[re*4]=Math.random(),x[re*4+1]=Math.random(),x[re*4+2]=Math.random();var ye=(ce[1]-ce[0])*Math.random()+ce[0];x[re*4+3]=ye}this._particleType==="line"?this._setLineGeometry(se,de):this._setPointsGeometry(se,de),this._spawnTexture.width=se,this._spawnTexture.height=de,this._spawnTexture.pixels=x,this._particleTexture0.width=this._particleTexture1.width=se,this._particleTexture0.height=this._particleTexture1.height=de,this._particlePass.setUniform("textureSize",[se,de])},_setPointsGeometry:function(se,de){var a=se*de,x=this._particlePointsMesh.geometry,re=x.attributes;re.texcoord0.init(a);for(var ce=0,ge=0;ge<se;ge++)for(var _e=0;_e<de;_e++,ce++)re.texcoord0.value[ce*2]=ge/se,re.texcoord0.value[ce*2+1]=_e/de;x.dirty()},_setLineGeometry:function(se,de){var a=se*de,x=this._getParticleMesh().geometry;x.setLineCount(a),x.resetOffset();for(var re=0;re<se;re++)for(var ce=0;ce<de;ce++)x.addLine([re/se,ce/de]);x.dirty()},_getParticleMesh:function(){return this._particleType==="line"?this._particleLinesMesh:this._particlePointsMesh},update:function(se,de,a,x){var re=this._getParticleMesh(),ce=this._frameBuffer,ge=this._particlePass;x&&this._updateDownsampleTextures(se,de),re.material.set("size",this._particleSize*this._supersampling),re.material.set("color",this.particleColor),ge.setUniform("speedScaling",this.particleSpeedScaling),ce.attach(this._particleTexture1),ge.setUniform("firstFrameTime",x?(this.particleLife[1]+this.particleLife[0])/2:0),ge.setUniform("particleTexture",this._particleTexture0),ge.setUniform("deltaTime",a),ge.setUniform("elapsedTime",this._elapsedTime),ge.render(se,ce),re.material.set("particleTexture",this._particleTexture1),re.material.set("prevParticleTexture",this._particleTexture0),ce.attach(this._thisFrameTexture),ce.bind(se),se.gl.clear(se.gl.DEPTH_BUFFER_BIT|se.gl.COLOR_BUFFER_BIT);var _e=this._lastFrameFullQuadMesh;_e.material.set("diffuseMap",this._lastFrameTexture),_e.material.set("color",[1,1,1,this.motionBlurFactor]),this._camera.update(!0),se.renderPass([_e,re],this._camera),ce.unbind(se),this._downsample(se),this._swapTexture(),this._elapsedTime+=a},_downsample:function(se){var de=this._downsampleTextures;if(de.length!==0)for(var a=0,x=this._thisFrameTexture,re=de[a];re;)this._frameBuffer.attach(re),this._downsamplePass.setUniform("texture",x),this._downsamplePass.setUniform("textureSize",[x.width,x.height]),this._downsamplePass.render(se,this._frameBuffer),x=re,re=de[++a]},getSurfaceTexture:function(){var se=this._downsampleTextures;return se.length>0?se[se.length-1]:this._lastFrameTexture},setRegion:function(se){this._particlePass.setUniform("region",se)},resize:function(se,de){this._lastFrameTexture.width=se*this._supersampling,this._lastFrameTexture.height=de*this._supersampling,this._thisFrameTexture.width=se*this._supersampling,this._thisFrameTexture.height=de*this._supersampling,this._width=se,this._height=de},setParticleSize:function(se){var de=this._getParticleMesh();if(se<=2){de.material.disableTexture("spriteTexture"),de.material.transparent=!1;return}this._spriteTexture||(this._spriteTexture=new le.a),(!this._spriteTexture.image||this._spriteTexture.image.width!==se)&&(this._spriteTexture.image=ne(se),this._spriteTexture.dirty()),de.material.transparent=!0,de.material.enableTexture("spriteTexture"),de.material.set("spriteTexture",this._spriteTexture),this._particleSize=se},setGradientTexture:function(se){var de=this._getParticleMesh().material;de[se?"enableTexture":"disableTexture"]("gradientTexture"),de.setUniform("gradientTexture",se)},setColorTextureImage:function(se,de){var a=this._getParticleMesh().material;a.setTextureImage("colorTexture",se,de,{flipY:!0})},setParticleType:function(se){this._particleType=se},clearFrame:function(se){var de=this._frameBuffer;de.attach(this._lastFrameTexture),de.bind(se),se.gl.clear(se.gl.DEPTH_BUFFER_BIT|se.gl.COLOR_BUFFER_BIT),de.unbind(se)},setSupersampling:function(se){this._supersampling=se,this.resize(this._width,this._height)},_updateDownsampleTextures:function(se,de){for(var a=this._downsampleTextures,x=Math.max(Math.floor(Math.log(this._supersampling/de.getDevicePixelRatio())/Math.log(2)),0),re=2,ce=this._width*this._supersampling,ge=this._height*this._supersampling,_e=0;_e<x;_e++)a[_e]=a[_e]||new le.a,a[_e].width=ce/re,a[_e].height=ge/re,re*=2;for(;_e<a.length;_e++)a[_e].dispose(se);a.length=x},_swapTexture:function(){var se=this._particleTexture0;this._particleTexture0=this._particleTexture1,this._particleTexture1=se;var se=this._thisFrameTexture;this._thisFrameTexture=this._lastFrameTexture,this._lastFrameTexture=se},dispose:function(se){se.disposeFrameBuffer(this._frameBuffer),se.disposeTexture(this.vectorFieldTexture),se.disposeTexture(this._spawnTexture),se.disposeTexture(this._particleTexture0),se.disposeTexture(this._particleTexture1),se.disposeTexture(this._thisFrameTexture),se.disposeTexture(this._lastFrameTexture),se.disposeGeometry(this._particleLinesMesh.geometry),se.disposeGeometry(this._particlePointsMesh.geometry),se.disposeGeometry(this._lastFrameFullQuadMesh.geometry),this._spriteTexture&&se.disposeTexture(this._spriteTexture),this._particlePass.dispose(se),this._downsamplePass.dispose(se),this._downsampleTextures.forEach(function(de){de.dispose(se)})}},Me.a=oe},function(Ye,Me,pe){"use strict";var Oe=pe(13),ve=pe(0),ue=pe.n(ve),fe=Oe.a.extend(function(){return{dynamic:!0,attributes:{position:new Oe.a.Attribute("position","float",3,"POSITION")}}},{resetOffset:function(){this._vertexOffset=0,this._faceOffset=0},setLineCount:function(he){var le=this.attributes,ae=4*he,ie=2*he;this.vertexCount!==ae&&le.position.init(ae),this.triangleCount!==ie&&(ie===0?this.indices=null:this.indices=this.vertexCount>65535?new Uint32Array(ie*3):new Uint16Array(ie*3))},addLine:function(he){var le=this._vertexOffset;this.attributes.position.set(le,[he[0],he[1],1]),this.attributes.position.set(le+1,[he[0],he[1],-1]),this.attributes.position.set(le+2,[he[0],he[1],2]),this.attributes.position.set(le+3,[he[0],he[1],-2]),this.setTriangleIndices(this._faceOffset++,[le,le+1,le+2]),this.setTriangleIndices(this._faceOffset++,[le+1,le+2,le+3]),this._vertexOffset+=4}});Me.a=fe},function(Ye,Me,pe){"use strict";Me.a=`@export ecgl.vfParticle.particle.fragment
|
|
|
|
|
|
uniform sampler2D particleTexture;
|
|
|
uniform sampler2D spawnTexture;
|
|
|
uniform sampler2D velocityTexture;
|
|
|
|
|
|
uniform float deltaTime;
|
|
|
uniform float elapsedTime;
|
|
|
|
|
|
uniform float speedScaling : 1.0;
|
|
|
|
|
|
uniform vec2 textureSize;
|
|
|
uniform vec4 region : [0, 0, 1, 1];
|
|
|
uniform float firstFrameTime;
|
|
|
|
|
|
varying vec2 v_Texcoord;
|
|
|
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
vec4 p = texture2D(particleTexture, v_Texcoord);
|
|
|
bool spawn = false;
|
|
|
if (p.w <= 0.0) {
|
|
|
p = texture2D(spawnTexture, fract(v_Texcoord + elapsedTime / 10.0));
|
|
|
p.w -= firstFrameTime;
|
|
|
spawn = true;
|
|
|
}
|
|
|
vec2 v = texture2D(velocityTexture, fract(p.xy * region.zw + region.xy)).xy;
|
|
|
v = (v - 0.5) * 2.0;
|
|
|
p.z = length(v);
|
|
|
p.xy += v * deltaTime / 10.0 * speedScaling;
|
|
|
p.w -= deltaTime;
|
|
|
|
|
|
if (spawn || p.xy != fract(p.xy)) {
|
|
|
p.z = 0.0;
|
|
|
}
|
|
|
p.xy = fract(p.xy);
|
|
|
|
|
|
gl_FragColor = p;
|
|
|
}
|
|
|
@end
|
|
|
|
|
|
@export ecgl.vfParticle.renderPoints.vertex
|
|
|
|
|
|
#define PI 3.1415926
|
|
|
|
|
|
attribute vec2 texcoord : TEXCOORD_0;
|
|
|
|
|
|
uniform sampler2D particleTexture;
|
|
|
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
|
|
|
|
|
uniform float size : 1.0;
|
|
|
|
|
|
varying float v_Mag;
|
|
|
varying vec2 v_Uv;
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
vec4 p = texture2D(particleTexture, texcoord);
|
|
|
|
|
|
if (p.w > 0.0 && p.z > 1e-5) {
|
|
|
gl_Position = worldViewProjection * vec4(p.xy * 2.0 - 1.0, 0.0, 1.0);
|
|
|
}
|
|
|
else {
|
|
|
gl_Position = vec4(100000.0, 100000.0, 100000.0, 1.0);
|
|
|
}
|
|
|
|
|
|
v_Mag = p.z;
|
|
|
v_Uv = p.xy;
|
|
|
|
|
|
gl_PointSize = size;
|
|
|
}
|
|
|
|
|
|
@end
|
|
|
|
|
|
@export ecgl.vfParticle.renderPoints.fragment
|
|
|
|
|
|
uniform vec4 color : [1.0, 1.0, 1.0, 1.0];
|
|
|
uniform sampler2D gradientTexture;
|
|
|
uniform sampler2D colorTexture;
|
|
|
uniform sampler2D spriteTexture;
|
|
|
|
|
|
varying float v_Mag;
|
|
|
varying vec2 v_Uv;
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
gl_FragColor = color;
|
|
|
#ifdef SPRITETEXTURE_ENABLED
|
|
|
gl_FragColor *= texture2D(spriteTexture, gl_PointCoord);
|
|
|
if (color.a == 0.0) {
|
|
|
discard;
|
|
|
}
|
|
|
#endif
|
|
|
#ifdef GRADIENTTEXTURE_ENABLED
|
|
|
gl_FragColor *= texture2D(gradientTexture, vec2(v_Mag, 0.5));
|
|
|
#endif
|
|
|
#ifdef COLORTEXTURE_ENABLED
|
|
|
gl_FragColor *= texture2D(colorTexture, v_Uv);
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
@end
|
|
|
|
|
|
@export ecgl.vfParticle.renderLines.vertex
|
|
|
|
|
|
#define PI 3.1415926
|
|
|
|
|
|
attribute vec3 position : POSITION;
|
|
|
|
|
|
uniform sampler2D particleTexture;
|
|
|
uniform sampler2D prevParticleTexture;
|
|
|
|
|
|
uniform float size : 1.0;
|
|
|
uniform vec4 vp: VIEWPORT;
|
|
|
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
|
|
|
|
|
varying float v_Mag;
|
|
|
varying vec2 v_Uv;
|
|
|
|
|
|
@import clay.util.rand
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
vec4 p = texture2D(particleTexture, position.xy);
|
|
|
vec4 p2 = texture2D(prevParticleTexture, position.xy);
|
|
|
|
|
|
p.xy = p.xy * 2.0 - 1.0;
|
|
|
p2.xy = p2.xy * 2.0 - 1.0;
|
|
|
|
|
|
if (p.w > 0.0 && p.z > 1e-5) {
|
|
|
vec2 dir = normalize(p.xy - p2.xy);
|
|
|
vec2 norm = vec2(dir.y / vp.z, -dir.x / vp.w) * sign(position.z) * size;
|
|
|
if (abs(position.z) == 2.0) {
|
|
|
gl_Position = vec4(p.xy + norm, 0.0, 1.0);
|
|
|
v_Uv = p.xy;
|
|
|
v_Mag = p.z;
|
|
|
}
|
|
|
else {
|
|
|
gl_Position = vec4(p2.xy + norm, 0.0, 1.0);
|
|
|
v_Mag = p2.z;
|
|
|
v_Uv = p2.xy;
|
|
|
}
|
|
|
gl_Position = worldViewProjection * gl_Position;
|
|
|
}
|
|
|
else {
|
|
|
gl_Position = vec4(100000.0, 100000.0, 100000.0, 1.0);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@end
|
|
|
|
|
|
@export ecgl.vfParticle.renderLines.fragment
|
|
|
|
|
|
uniform vec4 color : [1.0, 1.0, 1.0, 1.0];
|
|
|
uniform sampler2D gradientTexture;
|
|
|
uniform sampler2D colorTexture;
|
|
|
|
|
|
varying float v_Mag;
|
|
|
varying vec2 v_Uv;
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
gl_FragColor = color;
|
|
|
#ifdef GRADIENTTEXTURE_ENABLED
|
|
|
gl_FragColor *= texture2D(gradientTexture, vec2(v_Mag, 0.5));
|
|
|
#endif
|
|
|
#ifdef COLORTEXTURE_ENABLED
|
|
|
gl_FragColor *= texture2D(colorTexture, v_Uv);
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
@end
|
|
|
`},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe);ve.a.extendSeriesModel({type:"series.flowGL",dependencies:["geo","grid","bmap"],visualColorAccessPath:"itemStyle.color",getInitialData:function(ue,fe){var he=ve.a.getCoordinateSystemDimensions(this.get("coordinateSystem"))||["x","y"];if(he.length>2)throw new Error("flowGL can only be used on 2d coordinate systems.");he.push("vx","vy");var le=ve.a.helper.completeDimensions(he,this.getSource(),{encodeDef:this.get("encode"),dimsDef:this.get("dimensions")}),ae=new ve.a.List(le,this);return ae.initData(this.getSource()),ae},defaultOption:{coordinateSystem:"cartesian2d",zlevel:10,supersampling:1,particleType:"point",particleDensity:128,particleSize:1,particleSpeed:1,particleTrail:2,colorTexture:null,gridWidth:"auto",gridHeight:"auto",itemStyle:{color:"#fff",opacity:.8}}})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(260),fe=pe(261),he=pe(16);ve.a.registerVisual(Object(he.a)("linesGL"))},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(12),fe=pe.n(ue),he=ve.a.extendSeriesModel({type:"series.linesGL",dependencies:["grid","geo"],visualColorAccessPath:"lineStyle.color",streamEnabled:!0,init:function(le){var ae=this._processFlatCoordsArray(le.data);this._flatCoords=ae.flatCoords,this._flatCoordsOffset=ae.flatCoordsOffset,ae.flatCoords&&(le.data=new Float32Array(ae.count)),he.superApply(this,"init",arguments)},mergeOption:function(le){var ae=this._processFlatCoordsArray(le.data);this._flatCoords=ae.flatCoords,this._flatCoordsOffset=ae.flatCoordsOffset,ae.flatCoords&&(le.data=new Float32Array(ae.count)),he.superApply(this,"mergeOption",arguments)},appendData:function(le){var ae=this._processFlatCoordsArray(le.data);ae.flatCoords&&(this._flatCoords?(this._flatCoords=Object(ue.concatArray)(this._flatCoords,ae.flatCoords),this._flatCoordsOffset=Object(ue.concatArray)(this._flatCoordsOffset,ae.flatCoordsOffset)):(this._flatCoords=ae.flatCoords,this._flatCoordsOffset=ae.flatCoordsOffset),le.data=new Float32Array(ae.count)),this.getRawData().appendData(le.data)},_getCoordsFromItemModel:function(le){var ae=this.getData().getItemModel(le),ie=ae.option instanceof Array?ae.option:ae.getShallow("coords");if(!(ie instanceof Array&&ie.length>0&&ie[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(ie)+". Lines must have 2d coords array in data item.");return ie},getLineCoordsCount:function(le){return this._flatCoordsOffset?this._flatCoordsOffset[le*2+1]:this._getCoordsFromItemModel(le).length},getLineCoords:function(le,ae){if(this._flatCoordsOffset){for(var ie=this._flatCoordsOffset[le*2],me=this._flatCoordsOffset[le*2+1],E=0;E<me;E++)ae[E]=ae[E]||[],ae[E][0]=this._flatCoords[ie+E*2],ae[E][1]=this._flatCoords[ie+E*2+1];return me}else{for(var b=this._getCoordsFromItemModel(le),E=0;E<b.length;E++)ae[E]=ae[E]||[],ae[E][0]=b[E][0],ae[E][1]=b[E][1];return b.length}},_processFlatCoordsArray:function(le){var ae=0;if(this._flatCoords&&(ae=this._flatCoords.length),typeof le[0]=="number"){for(var ie=le.length,me=new Uint32Array(ie),E=new Float64Array(ie),b=0,z=0,ne=0,oe=0;oe<ie;){ne++;var se=le[oe++];me[z++]=b+ae,me[z++]=se;for(var de=0;de<se;de++){var a=le[oe++],x=le[oe++];if(E[b++]=a,E[b++]=x,oe>ie)throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(me.buffer,0,z),flatCoords:E,count:ne}}return{flatCoordsOffset:null,flatCoords:null,count:le.length}},getInitialData:function(le,ae){var ie=new ve.a.List(["value"],this);return ie.hasItemOption=!1,ie.initData(le.data,[],function(me,E,b,z){if(me instanceof Array)return NaN;ie.hasItemOption=!0;var ne=me.value;if(ne!=null)return ne instanceof Array?ne[z]:ne}),ie},defaultOption:{coordinateSystem:"geo",zlevel:10,progressive:1e4,progressiveThreshold:5e4,blendMode:"source-over",lineStyle:{opacity:.8},postEffect:{enable:!1,colorCorrection:{exposure:0,brightness:0,contrast:1,saturation:1,enable:!0}}}})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(2),fe=pe(20),he=pe(86),le=pe(84),ae=pe(3);ve.a.extendChartView({type:"linesGL",__ecgl__:!0,init:function(ie,me){this.groupGL=new ue.a.Node,this.viewGL=new fe.a("orthographic"),this.viewGL.add(this.groupGL),this._glViewHelper=new le.a(this.viewGL),this._nativeLinesShader=ue.a.createShader("ecgl.lines3D"),this._meshLinesShader=ue.a.createShader("ecgl.meshLines3D"),this._linesMeshes=[],this._currentStep=0},render:function(ie,me,E){this.groupGL.removeAll(),this._glViewHelper.reset(ie,E);var b=this._linesMeshes[0];b||(b=this._linesMeshes[0]=this._createLinesMesh(ie)),this._linesMeshes.length=1,this.groupGL.add(b),this._updateLinesMesh(ie,b,0,ie.getData().count()),this.viewGL.setPostEffect(ie.getModel("postEffect"),E)},incrementalPrepareRender:function(ie,me,E){this.groupGL.removeAll(),this._glViewHelper.reset(ie,E),this._currentStep=0,this.viewGL.setPostEffect(ie.getModel("postEffect"),E)},incrementalRender:function(ie,me,E,b){var z=this._linesMeshes[this._currentStep];z||(z=this._createLinesMesh(me),this._linesMeshes[this._currentStep]=z),this._updateLinesMesh(me,z,ie.start,ie.end),this.groupGL.add(z),b.getZr().refresh(),this._currentStep++},updateTransform:function(ie,me,E){ie.coordinateSystem.getRoamTransform&&this._glViewHelper.updateTransform(ie,E)},_createLinesMesh:function(ie){var me=new ue.a.Mesh({$ignorePicking:!0,material:new ue.a.Material({shader:ue.a.createShader("ecgl.lines3D"),transparent:!0,depthMask:!1,depthTest:!1}),geometry:new he.a({segmentScale:10,useNativeLine:!0,dynamic:!1}),mode:ue.a.Mesh.LINES,culling:!1});return me},_updateLinesMesh:function(ie,me,E,b){var z=ie.getData();me.material.blend=ie.get("blendMode")==="lighter"?ue.a.additiveBlend:null;var ne=ie.get("lineStyle.curveness")||0,oe=ie.get("polyline"),se=me.geometry,de=ie.coordinateSystem,a=ae.a.firstNotNull(ie.get("lineStyle.width"),1);a>1?(me.material.shader!==this._meshLinesShader&&me.material.attachShader(this._meshLinesShader),me.mode=ue.a.Mesh.TRIANGLES):(me.material.shader!==this._nativeLinesShader&&me.material.attachShader(this._nativeLinesShader),me.mode=ue.a.Mesh.LINES),E=E||0,b=b||z.count(),se.resetOffset();var x=0,re=0,ce=[],ge=[],_e=[],ye=[],be=[],Se=.3,Be=.7;function Ae(){ge[0]=ce[0]*Be+ye[0]*Se-(ce[1]-ye[1])*ne,ge[1]=ce[1]*Be+ye[1]*Se-(ye[0]-ce[0])*ne,_e[0]=ce[0]*Se+ye[0]*Be-(ce[1]-ye[1])*ne,_e[1]=ce[1]*Se+ye[1]*Be-(ye[0]-ce[0])*ne}if(oe||ne!==0)for(var we=E;we<b;we++)if(oe){var Ue=ie.getLineCoordsCount(we);x+=se.getPolylineVertexCount(Ue),re+=se.getPolylineTriangleCount(Ue)}else ie.getLineCoords(we,be),this._glViewHelper.dataToPoint(de,be[0],ce),this._glViewHelper.dataToPoint(de,be[1],ye),Ae(),x+=se.getCubicCurveVertexCount(ce,ge,_e,ye),re+=se.getCubicCurveTriangleCount(ce,ge,_e,ye);else{var Pe=b-E;x+=Pe*se.getLineVertexCount(),re+=Pe*se.getLineVertexCount()}se.setVertexCount(x),se.setTriangleCount(re);for(var ze=E,Ke=[],we=E;we<b;we++){ue.a.parseColor(z.getItemVisual(ze,"color"),Ke);var Ne=ae.a.firstNotNull(z.getItemVisual(ze,"opacity"),1);Ke[3]*=Ne;for(var Ue=ie.getLineCoords(we,be),Re=0;Re<Ue;Re++)this._glViewHelper.dataToPoint(de,be[Re],be[Re]);oe?se.addPolyline(be,Ke,a,0,Ue):ne!==0?(ce=be[0],ye=be[1],Ae(),se.addCubicCurve(ce,ge,_e,ye,Ke,a)):se.addPolyline(be,Ke,a,0,2),ze++}},dispose:function(){this.groupGL.removeAll()},remove:function(){this.groupGL.removeAll()}})}])})},3867:function(Yn,en,Ce){var te=Ce(97671);(function(Ye,Me){Yn.exports=Me()})(this,function(){"use strict";function Ye(at){var ot=typeof at;return at!==null&&(ot==="object"||ot==="function")}function Me(at){return typeof at=="function"}var pe=void 0;Array.isArray?pe=Array.isArray:pe=function(at){return Object.prototype.toString.call(at)==="[object Array]"};var Oe=pe,ve=0,ue=void 0,fe=void 0,he=function(ot,ct){x[ve]=ot,x[ve+1]=ct,ve+=2,ve===2&&(fe?fe(re):ge())};function le(at){fe=at}function ae(at){he=at}var ie=typeof window!="undefined"?window:void 0,me=ie||{},E=me.MutationObserver||me.WebKitMutationObserver,b=typeof self=="undefined"&&typeof te!="undefined"&&{}.toString.call(te)==="[object process]",z=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function ne(){return function(){return te.nextTick(re)}}function oe(){return typeof ue!="undefined"?function(){ue(re)}:a()}function se(){var at=0,ot=new E(re),ct=document.createTextNode("");return ot.observe(ct,{characterData:!0}),function(){ct.data=at=++at%2}}function de(){var at=new MessageChannel;return at.port1.onmessage=re,function(){return at.port2.postMessage(0)}}function a(){var at=setTimeout;return function(){return at(re,1)}}var x=new Array(1e3);function re(){for(var at=0;at<ve;at+=2){var ot=x[at],ct=x[at+1];ot(ct),x[at]=void 0,x[at+1]=void 0}ve=0}function ce(){try{var at=Function("return this")().require("vertx");return ue=at.runOnLoop||at.runOnContext,oe()}catch(ot){return a()}}var ge=void 0;b?ge=ne():E?ge=se():z?ge=de():ie===void 0?ge=ce():ge=a();function _e(at,ot){var ct=this,lt=new this.constructor(Se);lt[be]===void 0&&Yt(lt);var mt=ct._state;if(mt){var Lt=arguments[mt-1];he(function(){return At(mt,lt,Lt,ct._result)})}else rt(ct,lt,at,ot);return lt}function ye(at){var ot=this;if(at&&typeof at=="object"&&at.constructor===ot)return at;var ct=new ot(Se);return $e(ct,at),ct}var be=Math.random().toString(36).substring(2);function Se(){}var Be=void 0,Ae=1,we=2;function Ue(){return new TypeError("You cannot resolve a promise with itself")}function Pe(){return new TypeError("A promises callback cannot return that same promise.")}function ze(at,ot,ct,lt){try{at.call(ot,ct,lt)}catch(mt){return mt}}function Ke(at,ot,ct){he(function(lt){var mt=!1,Lt=ze(ct,ot,function(ft){mt||(mt=!0,ot!==ft?$e(lt,ft):ut(lt,ft))},function(ft){mt||(mt=!0,Qe(lt,ft))},"Settle: "+(lt._label||" unknown promise"));!mt&&Lt&&(mt=!0,Qe(lt,Lt))},at)}function Ne(at,ot){ot._state===Ae?ut(at,ot._result):ot._state===we?Qe(at,ot._result):rt(ot,void 0,function(ct){return $e(at,ct)},function(ct){return Qe(at,ct)})}function Re(at,ot,ct){ot.constructor===at.constructor&&ct===_e&&ot.constructor.resolve===ye?Ne(at,ot):ct===void 0?ut(at,ot):Me(ct)?Ke(at,ot,ct):ut(at,ot)}function $e(at,ot){if(at===ot)Qe(at,Ue());else if(Ye(ot)){var ct=void 0;try{ct=ot.then}catch(lt){Qe(at,lt);return}Re(at,ot,ct)}else ut(at,ot)}function nt(at){at._onerror&&at._onerror(at._result),pt(at)}function ut(at,ot){at._state===Be&&(at._result=ot,at._state=Ae,at._subscribers.length!==0&&he(pt,at))}function Qe(at,ot){at._state===Be&&(at._state=we,at._result=ot,he(nt,at))}function rt(at,ot,ct,lt){var mt=at._subscribers,Lt=mt.length;at._onerror=null,mt[Lt]=ot,mt[Lt+Ae]=ct,mt[Lt+we]=lt,Lt===0&&at._state&&he(pt,at)}function pt(at){var ot=at._subscribers,ct=at._state;if(ot.length!==0){for(var lt=void 0,mt=void 0,Lt=at._result,ft=0;ft<ot.length;ft+=3)lt=ot[ft],mt=ot[ft+ct],lt?At(ct,lt,mt,Lt):mt(Lt);at._subscribers.length=0}}function At(at,ot,ct,lt){var mt=Me(ct),Lt=void 0,ft=void 0,St=!0;if(mt){try{Lt=ct(lt)}catch(nn){St=!1,ft=nn}if(ot===Lt){Qe(ot,Pe());return}}else Lt=lt;ot._state!==Be||(mt&&St?$e(ot,Lt):St===!1?Qe(ot,ft):at===Ae?ut(ot,Lt):at===we&&Qe(ot,Lt))}function gt(at,ot){try{ot(function(lt){$e(at,lt)},function(lt){Qe(at,lt)})}catch(ct){Qe(at,ct)}}var Ft=0;function Ct(){return Ft++}function Yt(at){at[be]=Ft++,at._state=void 0,at._result=void 0,at._subscribers=[]}function zt(){return new Error("Array Methods must be provided an Array")}var Xe=function(){function at(ot,ct){this._instanceConstructor=ot,this.promise=new ot(Se),this.promise[be]||Yt(this.promise),Oe(ct)?(this.length=ct.length,this._remaining=ct.length,this._result=new Array(this.length),this.length===0?ut(this.promise,this._result):(this.length=this.length||0,this._enumerate(ct),this._remaining===0&&ut(this.promise,this._result))):Qe(this.promise,zt())}return at.prototype._enumerate=function(ct){for(var lt=0;this._state===Be&<<ct.length;lt++)this._eachEntry(ct[lt],lt)},at.prototype._eachEntry=function(ct,lt){var mt=this._instanceConstructor,Lt=mt.resolve;if(Lt===ye){var ft=void 0,St=void 0,nn=!1;try{ft=ct.then}catch(yn){nn=!0,St=yn}if(ft===_e&&ct._state!==Be)this._settledAt(ct._state,lt,ct._result);else if(typeof ft!="function")this._remaining--,this._result[lt]=ct;else if(mt===We){var on=new mt(Se);nn?Qe(on,St):Re(on,ct,ft),this._willSettleAt(on,lt)}else this._willSettleAt(new mt(function(yn){return yn(ct)}),lt)}else this._willSettleAt(Lt(ct),lt)},at.prototype._settledAt=function(ct,lt,mt){var Lt=this.promise;Lt._state===Be&&(this._remaining--,ct===we?Qe(Lt,mt):this._result[lt]=mt),this._remaining===0&&ut(Lt,this._result)},at.prototype._willSettleAt=function(ct,lt){var mt=this;rt(ct,void 0,function(Lt){return mt._settledAt(Ae,lt,Lt)},function(Lt){return mt._settledAt(we,lt,Lt)})},at}();function Fe(at){return new Xe(this,at).promise}function Le(at){var ot=this;return Oe(at)?new ot(function(ct,lt){for(var mt=at.length,Lt=0;Lt<mt;Lt++)ot.resolve(at[Lt]).then(ct,lt)}):new ot(function(ct,lt){return lt(new TypeError("You must pass an array to race."))})}function Ze(at){var ot=this,ct=new ot(Se);return Qe(ct,at),ct}function et(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function He(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var We=function(){function at(ot){this[be]=Ct(),this._result=this._state=void 0,this._subscribers=[],Se!==ot&&(typeof ot!="function"&&et(),this instanceof at?gt(this,ot):He())}return at.prototype.catch=function(ct){return this.then(null,ct)},at.prototype.finally=function(ct){var lt=this,mt=lt.constructor;return Me(ct)?lt.then(function(Lt){return mt.resolve(ct()).then(function(){return Lt})},function(Lt){return mt.resolve(ct()).then(function(){throw Lt})}):lt.then(ct,ct)},at}();We.prototype.then=_e,We.all=Fe,We.race=Le,We.resolve=ye,We.reject=Ze,We._setScheduler=le,We._setAsap=ae,We._asap=he;function tt(){var at=void 0;if(typeof Ce.g!="undefined")at=Ce.g;else if(typeof self!="undefined")at=self;else try{at=Function("return this")()}catch(lt){throw new Error("polyfill failed because global object is unavailable in this environment")}var ot=at.Promise;if(ot){var ct=null;try{ct=Object.prototype.toString.call(ot.resolve())}catch(lt){}if(ct==="[object Promise]"&&!ot.cast)return}at.Promise=We}return We.polyfill=tt,We.Promise=We,We})},86204:function(Yn){"use strict";var en=typeof Reflect=="object"?Reflect:null,Ce=en&&typeof en.apply=="function"?en.apply:function(de,a,x){return Function.prototype.apply.call(de,a,x)},te;en&&typeof en.ownKeys=="function"?te=en.ownKeys:Object.getOwnPropertySymbols?te=function(de){return Object.getOwnPropertyNames(de).concat(Object.getOwnPropertySymbols(de))}:te=function(de){return Object.getOwnPropertyNames(de)};function Ye(se){console&&console.warn&&console.warn(se)}var Me=Number.isNaN||function(de){return de!==de};function pe(){pe.init.call(this)}Yn.exports=pe,Yn.exports.once=z,pe.EventEmitter=pe,pe.prototype._events=void 0,pe.prototype._eventsCount=0,pe.prototype._maxListeners=void 0;var Oe=10;function ve(se){if(typeof se!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof se)}Object.defineProperty(pe,"defaultMaxListeners",{enumerable:!0,get:function(){return Oe},set:function(se){if(typeof se!="number"||se<0||Me(se))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+se+".");Oe=se}}),pe.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},pe.prototype.setMaxListeners=function(de){if(typeof de!="number"||de<0||Me(de))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+de+".");return this._maxListeners=de,this};function ue(se){return se._maxListeners===void 0?pe.defaultMaxListeners:se._maxListeners}pe.prototype.getMaxListeners=function(){return ue(this)},pe.prototype.emit=function(de){for(var a=[],x=1;x<arguments.length;x++)a.push(arguments[x]);var re=de==="error",ce=this._events;if(ce!==void 0)re=re&&ce.error===void 0;else if(!re)return!1;if(re){var ge;if(a.length>0&&(ge=a[0]),ge instanceof Error)throw ge;var _e=new Error("Unhandled error."+(ge?" ("+ge.message+")":""));throw _e.context=ge,_e}var ye=ce[de];if(ye===void 0)return!1;if(typeof ye=="function")Ce(ye,this,a);else for(var be=ye.length,Se=me(ye,be),x=0;x<be;++x)Ce(Se[x],this,a);return!0};function fe(se,de,a,x){var re,ce,ge;if(ve(a),ce=se._events,ce===void 0?(ce=se._events=Object.create(null),se._eventsCount=0):(ce.newListener!==void 0&&(se.emit("newListener",de,a.listener?a.listener:a),ce=se._events),ge=ce[de]),ge===void 0)ge=ce[de]=a,++se._eventsCount;else if(typeof ge=="function"?ge=ce[de]=x?[a,ge]:[ge,a]:x?ge.unshift(a):ge.push(a),re=ue(se),re>0&&ge.length>re&&!ge.warned){ge.warned=!0;var _e=new Error("Possible EventEmitter memory leak detected. "+ge.length+" "+String(de)+" listeners added. Use emitter.setMaxListeners() to increase limit");_e.name="MaxListenersExceededWarning",_e.emitter=se,_e.type=de,_e.count=ge.length,Ye(_e)}return se}pe.prototype.addListener=function(de,a){return fe(this,de,a,!1)},pe.prototype.on=pe.prototype.addListener,pe.prototype.prependListener=function(de,a){return fe(this,de,a,!0)};function he(){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 le(se,de,a){var x={fired:!1,wrapFn:void 0,target:se,type:de,listener:a},re=he.bind(x);return re.listener=a,x.wrapFn=re,re}pe.prototype.once=function(de,a){return ve(a),this.on(de,le(this,de,a)),this},pe.prototype.prependOnceListener=function(de,a){return ve(a),this.prependListener(de,le(this,de,a)),this},pe.prototype.removeListener=function(de,a){var x,re,ce,ge,_e;if(ve(a),re=this._events,re===void 0)return this;if(x=re[de],x===void 0)return this;if(x===a||x.listener===a)--this._eventsCount===0?this._events=Object.create(null):(delete re[de],re.removeListener&&this.emit("removeListener",de,x.listener||a));else if(typeof x!="function"){for(ce=-1,ge=x.length-1;ge>=0;ge--)if(x[ge]===a||x[ge].listener===a){_e=x[ge].listener,ce=ge;break}if(ce<0)return this;ce===0?x.shift():E(x,ce),x.length===1&&(re[de]=x[0]),re.removeListener!==void 0&&this.emit("removeListener",de,_e||a)}return this},pe.prototype.off=pe.prototype.removeListener,pe.prototype.removeAllListeners=function(de){var a,x,re;if(x=this._events,x===void 0)return this;if(x.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):x[de]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete x[de]),this;if(arguments.length===0){var ce=Object.keys(x),ge;for(re=0;re<ce.length;++re)ge=ce[re],ge!=="removeListener"&&this.removeAllListeners(ge);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(a=x[de],typeof a=="function")this.removeListener(de,a);else if(a!==void 0)for(re=a.length-1;re>=0;re--)this.removeListener(de,a[re]);return this};function ae(se,de,a){var x=se._events;if(x===void 0)return[];var re=x[de];return re===void 0?[]:typeof re=="function"?a?[re.listener||re]:[re]:a?b(re):me(re,re.length)}pe.prototype.listeners=function(de){return ae(this,de,!0)},pe.prototype.rawListeners=function(de){return ae(this,de,!1)},pe.listenerCount=function(se,de){return typeof se.listenerCount=="function"?se.listenerCount(de):ie.call(se,de)},pe.prototype.listenerCount=ie;function ie(se){var de=this._events;if(de!==void 0){var a=de[se];if(typeof a=="function")return 1;if(a!==void 0)return a.length}return 0}pe.prototype.eventNames=function(){return this._eventsCount>0?te(this._events):[]};function me(se,de){for(var a=new Array(de),x=0;x<de;++x)a[x]=se[x];return a}function E(se,de){for(;de+1<se.length;de++)se[de]=se[de+1];se.pop()}function b(se){for(var de=new Array(se.length),a=0;a<de.length;++a)de[a]=se[a].listener||se[a];return de}function z(se,de){return new Promise(function(a,x){function re(ge){se.removeListener(de,ce),x(ge)}function ce(){typeof se.removeListener=="function"&&se.removeListener("error",re),a([].slice.call(arguments))}oe(se,de,ce,{once:!0}),de!=="error"&&ne(se,re,{once:!0})})}function ne(se,de,a){typeof se.on=="function"&&oe(se,"error",de,a)}function oe(se,de,a,x){if(typeof se.on=="function")x.once?se.once(de,a):se.on(de,a);else if(typeof se.addEventListener=="function")se.addEventListener(de,function re(ce){x.once&&se.removeEventListener(de,re),a(ce)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof se)}},53291:function(Yn){"use strict";var en=Array.isArray,Ce=Object.keys,te=Object.prototype.hasOwnProperty;Yn.exports=function Ye(Me,pe){if(Me===pe)return!0;if(Me&&pe&&typeof Me=="object"&&typeof pe=="object"){var Oe=en(Me),ve=en(pe),ue,fe,he;if(Oe&&ve){if(fe=Me.length,fe!=pe.length)return!1;for(ue=fe;ue--!==0;)if(!Ye(Me[ue],pe[ue]))return!1;return!0}if(Oe!=ve)return!1;var le=Me instanceof Date,ae=pe instanceof Date;if(le!=ae)return!1;if(le&&ae)return Me.getTime()==pe.getTime();var ie=Me instanceof RegExp,me=pe instanceof RegExp;if(ie!=me)return!1;if(ie&&me)return Me.toString()==pe.toString();var E=Ce(Me);if(fe=E.length,fe!==Ce(pe).length)return!1;for(ue=fe;ue--!==0;)if(!te.call(pe,E[ue]))return!1;for(ue=fe;ue--!==0;)if(he=E[ue],!Ye(Me[he],pe[he]))return!1;return!0}return Me!==Me&&pe!==pe}},24334:function(Yn,en,Ce){var te,Ye;(function(Me,pe){Yn.exports=pe(Me)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof Ce.g!="undefined"?Ce.g:this,function(Me){"use strict";Me=Me||{};var pe=Me.Base64,Oe="2.6.4",ve="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ue=function(Ae){for(var we={},Ue=0,Pe=Ae.length;Ue<Pe;Ue++)we[Ae.charAt(Ue)]=Ue;return we}(ve),fe=String.fromCharCode,he=function(Ae){if(Ae.length<2){var we=Ae.charCodeAt(0);return we<128?Ae:we<2048?fe(192|we>>>6)+fe(128|we&63):fe(224|we>>>12&15)+fe(128|we>>>6&63)+fe(128|we&63)}else{var we=65536+(Ae.charCodeAt(0)-55296)*1024+(Ae.charCodeAt(1)-56320);return fe(240|we>>>18&7)+fe(128|we>>>12&63)+fe(128|we>>>6&63)+fe(128|we&63)}},le=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ae=function(Ae){return Ae.replace(le,he)},ie=function(Ae){var we=[0,2,1][Ae.length%3],Ue=Ae.charCodeAt(0)<<16|(Ae.length>1?Ae.charCodeAt(1):0)<<8|(Ae.length>2?Ae.charCodeAt(2):0),Pe=[ve.charAt(Ue>>>18),ve.charAt(Ue>>>12&63),we>=2?"=":ve.charAt(Ue>>>6&63),we>=1?"=":ve.charAt(Ue&63)];return Pe.join("")},me=Me.btoa&&typeof Me.btoa=="function"?function(Ae){return Me.btoa(Ae)}:function(Ae){if(Ae.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ae.replace(/[\s\S]{1,3}/g,ie)},E=function(Ae){return me(ae(String(Ae)))},b=function(Ae){return Ae.replace(/[+\/]/g,function(we){return we=="+"?"-":"_"}).replace(/=/g,"")},z=function(Ae,we){return we?b(E(Ae)):E(Ae)},ne=function(Ae){return z(Ae,!0)},oe;Me.Uint8Array&&(oe=function(Ae,we){for(var Ue="",Pe=0,ze=Ae.length;Pe<ze;Pe+=3){var Ke=Ae[Pe],Ne=Ae[Pe+1],Re=Ae[Pe+2],$e=Ke<<16|Ne<<8|Re;Ue+=ve.charAt($e>>>18)+ve.charAt($e>>>12&63)+(typeof Ne!="undefined"?ve.charAt($e>>>6&63):"=")+(typeof Re!="undefined"?ve.charAt($e&63):"=")}return we?b(Ue):Ue});var se=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,de=function(Ae){switch(Ae.length){case 4:var we=(7&Ae.charCodeAt(0))<<18|(63&Ae.charCodeAt(1))<<12|(63&Ae.charCodeAt(2))<<6|63&Ae.charCodeAt(3),Ue=we-65536;return fe((Ue>>>10)+55296)+fe((Ue&1023)+56320);case 3:return fe((15&Ae.charCodeAt(0))<<12|(63&Ae.charCodeAt(1))<<6|63&Ae.charCodeAt(2));default:return fe((31&Ae.charCodeAt(0))<<6|63&Ae.charCodeAt(1))}},a=function(Ae){return Ae.replace(se,de)},x=function(Ae){var we=Ae.length,Ue=we%4,Pe=(we>0?ue[Ae.charAt(0)]<<18:0)|(we>1?ue[Ae.charAt(1)]<<12:0)|(we>2?ue[Ae.charAt(2)]<<6:0)|(we>3?ue[Ae.charAt(3)]:0),ze=[fe(Pe>>>16),fe(Pe>>>8&255),fe(Pe&255)];return ze.length-=[0,0,2,1][Ue],ze.join("")},re=Me.atob&&typeof Me.atob=="function"?function(Ae){return Me.atob(Ae)}:function(Ae){return Ae.replace(/\S{1,4}/g,x)},ce=function(Ae){return re(String(Ae).replace(/[^A-Za-z0-9\+\/]/g,""))},ge=function(Ae){return a(re(Ae))},_e=function(Ae){return String(Ae).replace(/[-_]/g,function(we){return we=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},ye=function(Ae){return ge(_e(Ae))},be;Me.Uint8Array&&(be=function(Ae){return Uint8Array.from(ce(_e(Ae)),function(we){return we.charCodeAt(0)})});var Se=function(){var Ae=Me.Base64;return Me.Base64=pe,Ae};if(Me.Base64={VERSION:Oe,atob:ce,btoa:me,fromBase64:ye,toBase64:z,utob:ae,encode:z,encodeURI:ne,btou:a,decode:ye,noConflict:Se,fromUint8Array:oe,toUint8Array:be},typeof Object.defineProperty=="function"){var Be=function(Ae){return{value:Ae,enumerable:!1,writable:!0,configurable:!0}};Me.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Be(function(){return ye(this)})),Object.defineProperty(String.prototype,"toBase64",Be(function(Ae){return z(this,Ae)})),Object.defineProperty(String.prototype,"toBase64URI",Be(function(){return z(this,!0)}))}}return Me.Meteor&&(Base64=Me.Base64),Yn.exports?Yn.exports.Base64=Me.Base64:(te=[],Ye=function(){return Me.Base64}.apply(en,te),Ye!==void 0&&(Yn.exports=Ye)),{Base64:Me.Base64}})},2859:function(Yn,en,Ce){"use strict";Ce.d(en,{hP:function(){return zt}});var te=function(Xe,Fe){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Le,Ze){Le.__proto__=Ze}||function(Le,Ze){for(var et in Ze)Object.prototype.hasOwnProperty.call(Ze,et)&&(Le[et]=Ze[et])})(Xe,Fe)};function Ye(Xe,Fe){function Le(){this.constructor=Xe}te(Xe,Fe),Xe.prototype=Fe===null?Object.create(Fe):(Le.prototype=Fe.prototype,new Le)}function Me(Xe,Fe,Le,Ze){return new(Le||(Le=Promise))(function(et,He){function We(ot){try{at(Ze.next(ot))}catch(ct){He(ct)}}function tt(ot){try{at(Ze.throw(ot))}catch(ct){He(ct)}}function at(ot){var ct;ot.done?et(ot.value):(ct=ot.value,ct instanceof Le?ct:new Le(function(lt){lt(ct)})).then(We,tt)}at((Ze=Ze.apply(Xe,Fe||[])).next())})}function pe(Xe,Fe){var Le,Ze,et,He,We={label:0,sent:function(){if(1&et[0])throw et[1];return et[1]},trys:[],ops:[]};return He={next:tt(0),throw:tt(1),return:tt(2)},typeof Symbol=="function"&&(He[Symbol.iterator]=function(){return this}),He;function tt(at){return function(ot){return function(ct){if(Le)throw new TypeError("Generator is already executing.");for(;We;)try{if(Le=1,Ze&&(et=2&ct[0]?Ze.return:ct[0]?Ze.throw||((et=Ze.return)&&et.call(Ze),0):Ze.next)&&!(et=et.call(Ze,ct[1])).done)return et;switch(Ze=0,et&&(ct=[2&ct[0],et.value]),ct[0]){case 0:case 1:et=ct;break;case 4:return We.label++,{value:ct[1],done:!1};case 5:We.label++,Ze=ct[1],ct=[0];continue;case 7:ct=We.ops.pop(),We.trys.pop();continue;default:if(et=We.trys,!((et=et.length>0&&et[et.length-1])||ct[0]!==6&&ct[0]!==2)){We=0;continue}if(ct[0]===3&&(!et||ct[1]>et[0]&&ct[1]<et[3])){We.label=ct[1];break}if(ct[0]===6&&We.label<et[1]){We.label=et[1],et=ct;break}if(et&&We.label<et[2]){We.label=et[2],We.ops.push(ct);break}et[2]&&We.ops.pop(),We.trys.pop();continue}ct=Fe.call(Xe,We)}catch(lt){ct=[6,lt],Ze=0}finally{Le=et=0}if(5&ct[0])throw ct[1];return{value:ct[0]?ct[1]:void 0,done:!0}}([at,ot])}}}function Oe(){for(var Xe=0,Fe=0,Le=arguments.length;Fe<Le;Fe++)Xe+=arguments[Fe].length;var Ze=Array(Xe),et=0;for(Fe=0;Fe<Le;Fe++)for(var He=arguments[Fe],We=0,tt=He.length;We<tt;We++,et++)Ze[et]=He[We];return Ze}var ve=function(){function Xe(){}return Xe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Xe.setAttributes=function(Fe,Le){for(var Ze=0,et=Le;Ze<et.length;Ze++){var He=et[Ze],We=He[0],tt=He[1];Fe.setAttribute(We,tt)}},Xe.createRect=function(Fe,Le,Ze){var et=document.createElementNS("http://www.w3.org/2000/svg","rect");return et.setAttribute("width",Fe.toString()),et.setAttribute("height",Le.toString()),Ze&&Xe.setAttributes(et,Ze),et},Xe.createLine=function(Fe,Le,Ze,et,He){var We=document.createElementNS("http://www.w3.org/2000/svg","line");return We.setAttribute("x1",Fe.toString()),We.setAttribute("y1",Le.toString()),We.setAttribute("x2",Ze.toString()),We.setAttribute("y2",et.toString()),He&&Xe.setAttributes(We,He),We},Xe.createPolygon=function(Fe,Le){var Ze=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Ze.setAttribute("points",Fe),Le&&Xe.setAttributes(Ze,Le),Ze},Xe.createCircle=function(Fe,Le){var Ze=document.createElementNS("http://www.w3.org/2000/svg","circle");return Ze.setAttribute("cx",(Fe/2).toString()),Ze.setAttribute("cy",(Fe/2).toString()),Ze.setAttribute("r",Fe.toString()),Le&&Xe.setAttributes(Ze,Le),Ze},Xe.createEllipse=function(Fe,Le,Ze){var et=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return et.setAttribute("cx",(Fe/2).toString()),et.setAttribute("cy",(Le/2).toString()),et.setAttribute("rx",(Fe/2).toString()),et.setAttribute("ry",(Le/2).toString()),Ze&&Xe.setAttributes(et,Ze),et},Xe.createGroup=function(Fe){var Le=document.createElementNS("http://www.w3.org/2000/svg","g");return Fe&&Xe.setAttributes(Le,Fe),Le},Xe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Xe.createMarker=function(Fe,Le,Ze,et,He,We,tt){var at=document.createElementNS("http://www.w3.org/2000/svg","marker");return Xe.setAttributes(at,[["id",Fe],["orient",Le],["markerWidth",Ze.toString()],["markerHeight",et.toString()],["refX",He.toString()],["refY",We.toString()]]),at.appendChild(tt),at},Xe.createText=function(Fe){var Le=document.createElementNS("http://www.w3.org/2000/svg","text");return Le.setAttribute("x","0"),Le.setAttribute("y","0"),Fe&&Xe.setAttributes(Le,Fe),Le},Xe.createTSpan=function(Fe,Le){var Ze=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Ze.textContent=Fe,Le&&Xe.setAttributes(Ze,Le),Ze},Xe.createImage=function(Fe){var Le=document.createElementNS("http://www.w3.org/2000/svg","image");return Fe&&Xe.setAttributes(Le,Fe),Le},Xe.createPoint=function(Fe,Le){var Ze=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Ze.x=Fe,Ze.y=Le,Ze},Xe.createPath=function(Fe,Le){var Ze=document.createElementNS("http://www.w3.org/2000/svg","path");return Ze.setAttribute("d",Fe),Le&&Xe.setAttributes(Ze,Le),Ze},Xe}(),ue=function(){function Xe(){}return Xe.addKey=function(Fe){Xe.key=Fe},Object.defineProperty(Xe,"isLicensed",{get:function(){return!!Xe.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Xe.key)},enumerable:!1,configurable:!0}),Xe}(),fe=function(){function Xe(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Xe.prototype.rasterize=function(Fe,Le,Ze){var et=this;return new Promise(function(He){var We=Ze!==void 0?Ze:document.createElement("canvas");Fe===null&&(et.markersOnly=!0,et.naturalSize=!1);var tt=document.createElementNS("http://www.w3.org/2000/svg","svg");tt.setAttribute("xmlns","http://www.w3.org/2000/svg"),tt.setAttribute("width",Le.width.baseVal.valueAsString),tt.setAttribute("height",Le.height.baseVal.valueAsString),tt.setAttribute("viewBox","0 0 "+Le.viewBox.baseVal.width.toString()+" "+Le.viewBox.baseVal.height.toString()),tt.innerHTML=Le.innerHTML,et.naturalSize===!0?(tt.width.baseVal.value=Fe.naturalWidth,tt.height.baseVal.value=Fe.naturalHeight):et.width!==void 0&&et.height!==void 0&&(tt.width.baseVal.value=et.width,tt.height.baseVal.value=et.height),We.width=tt.width.baseVal.value,We.height=tt.height.baseVal.value;var at=tt.outerHTML,ot=We.getContext("2d");et.markersOnly!==!0&&ot.drawImage(Fe,0,0,We.width,We.height);var ct=window.URL,lt=new Image(We.width,We.height);lt.setAttribute("crossOrigin","anonymous");var mt=new Blob([at],{type:"image/svg+xml"}),Lt=ct.createObjectURL(mt);lt.onload=function(){ot.drawImage(lt,0,0),ct.revokeObjectURL(Lt);var ft=We.toDataURL(et.imageType,et.imageQuality);He(ft)},lt.src=Lt})},Xe}(),he=function(){},le=function(){function Xe(Fe){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Fe+"_"}return Object.defineProperty(Xe.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.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(Xe.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Xe.prototype.addClass=function(Fe){return this.styleSheet===void 0&&this.addStyleSheet(),Fe.name=""+this.classNamePrefix+Fe.localName,this.classes.push(Fe),this.styleSheet.sheet.insertRule("."+Fe.name+" {"+Fe.style+"}",this.styleSheet.sheet.cssRules.length),Fe},Xe.prototype.addRule=function(Fe){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Fe),this.styleSheet.sheet.insertRule(Fe.selector+" {"+Fe.style+"}",this.styleSheet.sheet.cssRules.length)},Xe.prototype.addStyleSheet=function(){var Fe;this.styleSheet=document.createElement("style"),((Fe=this.styleSheetRoot)!==null&&Fe!==void 0?Fe:document.head).appendChild(this.styleSheet),this.addRule(new ae("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new ae("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new ae("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new ie("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new ie("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},Xe.prototype.removeStyleSheet=function(){var Fe;this.styleSheet&&(((Fe=this.styleSheetRoot)!==null&&Fe!==void 0?Fe:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Xe}(),ae=function(Xe,Fe){this.selector=Xe,this.style=Fe},ie=function(Xe,Fe){this.localName=Xe,this.style=Fe},me=function(){function Xe(Fe,Le,Ze,et,He){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Fe,this.displayMode=Le,this.markerItems=Ze,this.uiStyleSettings=et,this.styles=He,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Xe.prototype.show=function(Fe){var Le=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Fe,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Ze=document.createElement("div");Ze.className=this.toolbarBlockStyleClass.name,Ze.style.whiteSpace="nowrap",this.uiContainer.appendChild(Ze),this.addActionButton(Ze,'<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(Ze,'<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(Ze,'<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(Ze,'<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(Ze,'<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(Ze,'<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(Ze,'<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(Ze,'<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(He){var We=document.createElement("div");We.className=""+Le.toolbarButtonStyleClass.name,We.setAttribute("data-type-name",He.typeName),We.innerHTML=He.icon,We.addEventListener("click",function(){Le.markerToolbarButtonClicked(We,He)}),Le.buttons.push(We),Le.markerButtons.push(We)}),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 et=document.createElement("div");et.className=this.toolbarBlockStyleClass.name,et.style.whiteSpace="nowrap",et.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(et),this.addActionButton(et,'<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(et,'<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()},Xe.prototype.addButtonClickListener=function(Fe){this.buttonClickListeners.push(Fe)},Xe.prototype.removeButtonClickListener=function(Fe){this.buttonClickListeners.indexOf(Fe)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Fe),1)},Xe.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Xe.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Fe=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var Le=0;Le<this.markerButtons.length;Le++)Le<Fe||Le===Fe&&this.markerButtons.length-1===Fe?this.markerButtonBlock.appendChild(this.markerButtons[Le]):(Le===Fe&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[Le]))}},Xe.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")},Xe.prototype.resetButtonStyles=function(){var Fe=this;this.buttons.forEach(function(Le){Le.className=Le.className.replace(Fe.uiStyleSettings.toolbarButtonStyleColorsClassName?Fe.uiStyleSettings.toolbarButtonStyleColorsClassName:Fe.toolbarButtonStyleColorsClass.name,"").trim(),Le.className=Le.className.replace(Fe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Fe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Fe.toolbarActiveButtonStyleColorsClass.name,"").trim(),Le.className+=" "+(Fe.uiStyleSettings.toolbarButtonStyleColorsClassName?Fe.uiStyleSettings.toolbarButtonStyleColorsClassName:Fe.toolbarButtonStyleColorsClass.name)})},Xe.prototype.addActionButton=function(Fe,Le,Ze){var et=this,He=document.createElement("div");switch(He.className=""+this.toolbarButtonStyleClass.name,He.innerHTML=Le,He.setAttribute("data-action",Ze),He.addEventListener("click",function(){et.actionToolbarButtonClicked(He,Ze)}),Ze){case"select":He.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":He.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":He.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":He.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":He.style.fill=this.uiStyleSettings.closeButtonColor}Fe.appendChild(He),this.buttons.push(He)},Xe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ie("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 ie("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ie("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ie("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 ie("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var Fe=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ie("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Fe)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Fe)+`px;
|
|
|
padding: `+Fe+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ie("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ie("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new ae("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new ae("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},Xe.prototype.markerToolbarButtonClicked=function(Fe,Le){this.setActiveButton(Fe),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ze){return Ze("marker",Le)}),this.markerButtonOverflowBlock.style.display="none"},Xe.prototype.actionToolbarButtonClicked=function(Fe,Le){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ze){return Ze("action",Le)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Xe.prototype.setActiveButton=function(Fe){this.resetButtonStyles(),Fe.className=Fe.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Fe.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Xe.prototype.setActiveMarkerButton=function(Fe){var Le=this.markerButtons.find(function(Ze){return Ze.getAttribute("data-type-name")===Fe});Le&&this.setActiveButton(Le)},Xe.prototype.setCurrentMarker=function(Fe){var Le=this;this.currentMarker=Fe,this.buttons.filter(function(Ze){return/delete|notes/.test(Ze.getAttribute("data-action"))}).forEach(function(Ze){Le.currentMarker===void 0?(Ze.style.fillOpacity="0.4",Ze.style.pointerEvents="none"):(Ze.style.fillOpacity="1",Ze.style.pointerEvents="all")})},Xe}(),E=function(){function Xe(Fe,Le,Ze,et){this.panels=[],this.panelButtons=[],this.markerjsContainer=Fe,this.displayMode=Le,this.uiStyleSettings=Ze,this.styles=et,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Xe.prototype.addStyles=function(){var Fe;this.toolboxStyleClass=this.styles.addClass(new ie("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 ie("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var Le=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ie("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ie("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ie("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 ie("toolbox-panel-row_colors",`
|
|
|
background-color: `+((Fe=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Fe!==void 0?Fe:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ie("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Le)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Le)+`px;
|
|
|
padding: `+Le+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ie("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ie("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new ae("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new ae("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},Xe.prototype.show=function(Fe){var Le;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Fe,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Le=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Le!==void 0?Le:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Xe.prototype.setPanelButtons=function(Fe){var Le,Ze,et=this;this.panels=Fe,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((Le=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&Le!==void 0?Le:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Ze=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Ze!==void 0?Ze:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(He){var We;He.uiStyleSettings=et.uiStyleSettings;var tt=document.createElement("div");tt.className=et.toolboxButtonStyleClass.name+" "+((We=et.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&We!==void 0?We:et.toolboxButtonStyleColorsClass.name),tt.innerHTML=He.icon,tt.title=He.title,tt.addEventListener("click",function(){et.panelButtonClick(He)}),et.panelButtons.push(tt),et.buttonRow.appendChild(tt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Xe.prototype.panelButtonClick=function(Fe){var Le=this,Ze=-1;if(Fe!==this.activePanel){Ze=this.panels.indexOf(Fe),this.panelRow.innerHTML="";var et=Fe.getUi();et.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(et),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=Fe}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){Le.displayMode==="inline"?Le.panelRow.style.display="none":Le.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(He,We){var tt,at;He.className=Le.toolboxButtonStyleClass.name+" "+(We===Ze?""+((tt=Le.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&tt!==void 0?tt:Le.toolboxActiveButtonStyleColorsClass.name):""+((at=Le.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&at!==void 0?at:Le.toolboxButtonStyleColorsClass.name))})},Xe}(),b=function(Xe,Fe){this.title=Xe,this.icon=Fe},z=function(Xe){function Fe(Le,Ze,et,He){var We=Xe.call(this,Le,He||'<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 We.colors=[],We.addTransparent=!1,We.colorBoxes=[],We.colors=Ze,We.currentColor=et,We.setCurrentColor=We.setCurrentColor.bind(We),We.getColorBox=We.getColorBox.bind(We),We}return Ye(Fe,Xe),Fe.prototype.getUi=function(){var Le=this,Ze=document.createElement("div");return Ze.style.overflow="hidden",Ze.style.whiteSpace="nowrap",this.colors.forEach(function(et){var He=Le.getColorBox(et);Ze.appendChild(He),Le.colorBoxes.push(He)}),Ze},Fe.prototype.getColorBox=function(Le){var Ze=this,et=this.uiStyleSettings.toolbarHeight/4,He=this.uiStyleSettings.toolbarHeight-et,We=document.createElement("div");We.style.display="inline-block",We.style.boxSizing="content-box",We.style.width=He-2+"px",We.style.height=He-2+"px",We.style.padding="1px",We.style.marginRight="2px",We.style.marginBottom="2px",We.style.borderWidth="2px",We.style.borderStyle="solid",We.style.borderRadius=(He+2)/2+"px",We.style.borderColor=Le===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",We.addEventListener("click",function(){Ze.setCurrentColor(Le,We)});var tt=document.createElement("div");return tt.style.display="inline-block",tt.style.width=He-2+"px",tt.style.height=He-2+"px",tt.style.backgroundColor=Le,tt.style.borderRadius=He/2+"px",Le==="transparent"&&(tt.style.fill=this.uiStyleSettings.toolboxAccentColor,tt.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>`),We.appendChild(tt),We},Fe.prototype.setCurrentColor=function(Le,Ze){var et=this;this.currentColor=Le,this.colorBoxes.forEach(function(He){He.style.borderColor=He===Ze?et.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Le)},Fe}(b),ne=function(){function Xe(Fe,Le,Ze){this._state="new",this._isSelected=!1,this._container=Fe,this._overlayContainer=Le,this.globalSettings=Ze,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Xe.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Xe.prototype.ownsTarget=function(Fe){return!1},Object.defineProperty(Xe.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Xe.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Xe.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Xe.prototype.pointerDown=function(Fe,Le){},Xe.prototype.dblClick=function(Fe,Le){},Xe.prototype.manipulate=function(Fe){},Xe.prototype.pointerUp=function(Fe){this.stateChanged()},Xe.prototype.dispose=function(){},Xe.prototype.addMarkerVisualToContainer=function(Fe){this.container.childNodes.length>0?this.container.insertBefore(Fe,this.container.childNodes[0]):this.container.appendChild(Fe)},Xe.prototype.getState=function(){return{typeName:Xe.typeName,state:this.state,notes:this.notes}},Xe.prototype.restoreState=function(Fe){this._state=Fe.state,this.notes=Fe.notes},Xe.prototype.scale=function(Fe,Le){},Xe.prototype.colorChanged=function(Fe){this.onColorChanged&&this.onColorChanged(Fe),this.stateChanged()},Xe.prototype.fillColorChanged=function(Fe){this.onFillColorChanged&&this.onFillColorChanged(Fe),this.stateChanged()},Xe.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Fe=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Fe.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Fe)&&this.onStateChanged(this)}},Xe.typeName="MarkerBase",Xe}(),oe=function(){function Xe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Xe.prototype.findGripByVisual=function(Fe){return this.topLeft.ownsTarget(Fe)?this.topLeft:this.topCenter.ownsTarget(Fe)?this.topCenter:this.topRight.ownsTarget(Fe)?this.topRight:this.centerLeft.ownsTarget(Fe)?this.centerLeft:this.centerRight.ownsTarget(Fe)?this.centerRight:this.bottomLeft.ownsTarget(Fe)?this.bottomLeft:this.bottomCenter.ownsTarget(Fe)?this.bottomCenter:this.bottomRight.ownsTarget(Fe)?this.bottomRight:void 0},Xe}(),se=function(){function Xe(){this.GRIP_SIZE=10,this.visual=ve.createGroup(),this.visual.appendChild(ve.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ve.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Xe.prototype.ownsTarget=function(Fe){return Fe===this.visual||Fe===this.visual.childNodes[0]||Fe===this.visual.childNodes[1]},Xe}(),de=function(){function Xe(){}return Xe.toITransformMatrix=function(Fe){return{a:Fe.a,b:Fe.b,c:Fe.c,d:Fe.d,e:Fe.e,f:Fe.f}},Xe.toSVGMatrix=function(Fe,Le){return Fe.a=Le.a,Fe.b=Le.b,Fe.c=Le.c,Fe.d=Le.d,Fe.e=Le.e,Fe.f=Le.f,Fe},Xe}(),a=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,Ze,et)||this;return He.left=0,He.top=0,He.width=0,He.height=0,He.defaultSize={x:50,y:20},He.offsetX=0,He.offsetY=0,He.rotationAngle=0,He.CB_DISTANCE=10,He._suppressMarkerCreateEvent=!1,He.container.transform.baseVal.appendItem(ve.createTransform()),He.setupControlBox(),He}return Ye(Fe,Xe),Object.defineProperty(Fe.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Fe.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Fe.prototype,"visual",{get:function(){return this._visual},set:function(Le){this._visual=Le;var Ze=ve.createTransform();this._visual.transform.baseVal.appendItem(Ze)},enumerable:!1,configurable:!0}),Fe.prototype.ownsTarget=function(Le){return!!Xe.prototype.ownsTarget.call(this,Le)||!!(this.controlGrips.findGripByVisual(Le)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Le))},Fe.prototype.pointerDown=function(Le,Ze){Xe.prototype.pointerDown.call(this,Le,Ze),this.state==="new"&&(this.left=Le.x,this.top=Le.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var et=this.unrotatePoint(Le);if(this.manipulationStartX=et.x,this.manipulationStartY=et.y,this.offsetX=et.x-this.left,this.offsetY=et.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Ze),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ze)){this.activeGrip=this.rotatorGrip;var He=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=He.x-this.width/2,this.top=He.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var We=this.container.transform.baseVal.getItem(0);We.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(We,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Fe.prototype.pointerUp=function(Le){var Ze=this.state;Xe.prototype.pointerUp.call(this,Le),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(Le),this._state="select",Ze==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Fe.prototype.moveVisual=function(Le){this.visual.style.transform="translate("+Le.x+"px, "+Le.y+"px)"},Fe.prototype.manipulate=function(Le){var Ze=this.unrotatePoint(Le);this.state==="creating"?this.resize(Le):this.state==="move"?(this.left=this.manipulationStartLeft+(Ze.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Ze.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Ze):this.state==="rotate"&&this.rotate(Le)},Fe.prototype.resize=function(Le){var Ze=this.manipulationStartLeft,et=this.manipulationStartWidth,He=this.manipulationStartTop,We=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Ze=this.manipulationStartLeft+Le.x-this.manipulationStartX,et=this.manipulationStartWidth+this.manipulationStartLeft-Ze;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:et=this.manipulationStartWidth+Le.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:He=this.manipulationStartTop+Le.y-this.manipulationStartY,We=this.manipulationStartHeight+this.manipulationStartTop-He;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:We=this.manipulationStartHeight+Le.y-this.manipulationStartY}et>=0?(this.left=Ze,this.width=et):(this.left=Ze+et,this.width=-et),We>=0?(this.top=He,this.height=We):(this.top=He+We,this.height=-We),this.setSize()},Fe.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Fe.prototype.rotate=function(Le){if(Math.abs(Le.x-this.centerX)>.1){var Ze=Math.sign(Le.x-this.centerX);this.rotationAngle=180*Math.atan((Le.y-this.centerY)/(Le.x-this.centerX))/Math.PI+90*Ze,this.applyRotation()}},Fe.prototype.applyRotation=function(){var Le=this.container.transform.baseVal.getItem(0);Le.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Le,0)},Fe.prototype.rotatePoint=function(Le){if(this.rotationAngle===0)return Le;var Ze=this.container.getCTM(),et=ve.createPoint(Le.x,Le.y);return{x:(et=et.matrixTransform(Ze)).x,y:et.y}},Fe.prototype.unrotatePoint=function(Le){if(this.rotationAngle===0)return Le;var Ze=this.container.getCTM();Ze=Ze.inverse();var et=ve.createPoint(Le.x,Le.y);return{x:(et=et.matrixTransform(Ze)).x,y:et.y}},Fe.prototype.select=function(){Xe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Fe.prototype.deselect=function(){Xe.prototype.deselect.call(this),this.controlBox.style.display="none"},Fe.prototype.setupControlBox=function(){this.controlBox=ve.createGroup();var Le=ve.createTransform();Le.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Le),this.container.appendChild(this.controlBox),this.controlRect=ve.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=ve.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 oe,this.addControlGrips(),this.controlBox.style.display="none"},Fe.prototype.adjustControlBox=function(){var Le=this.controlBox.transform.baseVal.getItem(0);Le.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Le,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()},Fe.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()},Fe.prototype.createGrip=function(){var Le=new se;return Le.visual.transform.baseVal.appendItem(ve.createTransform()),this.controlBox.appendChild(Le.visual),Le},Fe.prototype.positionGrips=function(){var Le=this.controlGrips.topLeft.GRIP_SIZE,Ze=-Le/2,et=Ze,He=(this.width+this.CB_DISTANCE)/2-Le/2,We=(this.height+this.CB_DISTANCE)/2-Le/2,tt=this.height+this.CB_DISTANCE-Le/2,at=this.width+this.CB_DISTANCE-Le/2;this.positionGrip(this.controlGrips.topLeft.visual,Ze,et),this.positionGrip(this.controlGrips.topCenter.visual,He,et),this.positionGrip(this.controlGrips.topRight.visual,at,et),this.positionGrip(this.controlGrips.centerLeft.visual,Ze,We),this.positionGrip(this.controlGrips.centerRight.visual,at,We),this.positionGrip(this.controlGrips.bottomLeft.visual,Ze,tt),this.positionGrip(this.controlGrips.bottomCenter.visual,He,tt),this.positionGrip(this.controlGrips.bottomRight.visual,at,tt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,He,et-3*this.CB_DISTANCE)},Fe.prototype.positionGrip=function(Le,Ze,et){var He=Le.transform.baseVal.getItem(0);He.setTranslate(Ze,et),Le.transform.baseVal.replaceItem(He,0)},Fe.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Fe.prototype.showControlBox=function(){this.controlBox.style.display=""},Fe.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:de.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:de.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Xe.prototype.getState.call(this))},Fe.prototype.restoreState=function(Le){Xe.prototype.restoreState.call(this,Le);var Ze=Le;this.left=Ze.left,this.top=Ze.top,this.width=Ze.width,this.height=Ze.height,this.rotationAngle=Ze.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(de.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Ze.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(de.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Ze.containerTransformMatrix))},Fe.prototype.scale=function(Le,Ze){Xe.prototype.scale.call(this,Le,Ze);var et=this.rotatePoint({x:this.left,y:this.top}),He=this.unrotatePoint({x:et.x*Le,y:et.y*Ze});this.left=He.x,this.top=He.y,this.width=this.width*Le,this.height=this.height*Ze,this.adjustControlBox()},Fe}(ne),x=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,Ze,et)||this;return He.fillColor="transparent",He.strokeColor="transparent",He.strokeWidth=0,He.strokeDasharray="",He.opacity=1,He.setStrokeColor=He.setStrokeColor.bind(He),He.setFillColor=He.setFillColor.bind(He),He.setStrokeWidth=He.setStrokeWidth.bind(He),He.setStrokeDasharray=He.setStrokeDasharray.bind(He),He.createVisual=He.createVisual.bind(He),He}return Ye(Fe,Xe),Fe.prototype.ownsTarget=function(Le){return!(!Xe.prototype.ownsTarget.call(this,Le)&&Le!==this.visual)},Fe.prototype.createVisual=function(){this.visual=ve.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)},Fe.prototype.pointerDown=function(Le,Ze){Xe.prototype.pointerDown.call(this,Le,Ze),this.state==="new"&&(this.createVisual(),this.moveVisual(Le),this._state="creating")},Fe.prototype.manipulate=function(Le){Xe.prototype.manipulate.call(this,Le)},Fe.prototype.resize=function(Le){Xe.prototype.resize.call(this,Le),this.setSize()},Fe.prototype.setSize=function(){Xe.prototype.setSize.call(this),ve.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Fe.prototype.pointerUp=function(Le){Xe.prototype.pointerUp.call(this,Le),this.setSize()},Fe.prototype.setStrokeColor=function(Le){this.strokeColor=Le,this.visual&&ve.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Le),this.stateChanged()},Fe.prototype.setFillColor=function(Le){this.fillColor=Le,this.visual&&ve.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Fe.prototype.setStrokeWidth=function(Le){this.strokeWidth=Le,this.visual&&ve.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Fe.prototype.setStrokeDasharray=function(Le){this.strokeDasharray=Le,this.visual&&ve.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Fe.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Xe.prototype.getState.call(this))},Fe.prototype.restoreState=function(Le){var Ze=Le;this.fillColor=Ze.fillColor,this.strokeColor=Ze.strokeColor,this.strokeWidth=Ze.strokeWidth,this.strokeDasharray=Ze.strokeDasharray,this.opacity=Ze.opacity,this.createVisual(),Xe.prototype.restoreState.call(this,Le),this.setSize()},Fe.prototype.scale=function(Le,Ze){Xe.prototype.scale.call(this,Le,Ze),this.setSize()},Fe.title="Rectangle marker",Fe}(a),re=function(Xe){function Fe(Le,Ze,et,He){var We=Xe.call(this,Le,He||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return We.widths=[],We.widthBoxes=[],We.widths=Ze,We.currentWidth=et,We.setCurrentWidth=We.setCurrentWidth.bind(We),We}return Ye(Fe,Xe),Fe.prototype.getUi=function(){var Le=this,Ze=document.createElement("div");return Ze.style.display="flex",Ze.style.overflow="hidden",Ze.style.flexGrow="2",this.widths.forEach(function(et){var He=document.createElement("div");He.style.display="flex",He.style.flexGrow="2",He.style.alignItems="center",He.style.justifyContent="space-between",He.style.padding="5px",He.style.borderWidth="2px",He.style.borderStyle="solid",He.style.borderColor=et===Le.currentWidth?Le.uiStyleSettings.toolboxAccentColor:"transparent",He.addEventListener("click",function(){Le.setCurrentWidth(et,He)}),Ze.appendChild(He);var We=document.createElement("div");We.innerText=et.toString(),We.style.marginRight="5px",He.appendChild(We);var tt=document.createElement("div");tt.style.minHeight="20px",tt.style.flexGrow="2",tt.style.display="flex",tt.style.alignItems="center";var at=document.createElement("hr");at.style.minWidth="20px",at.style.border="0px",at.style.borderTop=et+"px solid "+Le.uiStyleSettings.toolboxColor,at.style.flexGrow="2",tt.appendChild(at),He.appendChild(tt),Le.widthBoxes.push(He)}),Ze},Fe.prototype.setCurrentWidth=function(Le,Ze){var et=this;this.currentWidth=Le,this.widthBoxes.forEach(function(He){He.style.borderColor=He===Ze?et.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Fe}(b),ce=function(Xe){function Fe(Le,Ze,et,He){var We=Xe.call(this,Le,He||'<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 We.styles=[],We.styleBoxes=[],We.styles=Ze,We.currentStyle=et,We.setCurrentStyle=We.setCurrentStyle.bind(We),We}return Ye(Fe,Xe),Fe.prototype.getUi=function(){var Le=this,Ze=document.createElement("div");return Ze.style.display="flex",Ze.style.overflow="hidden",Ze.style.flexGrow="2",this.styles.forEach(function(et){var He=document.createElement("div");He.style.display="flex",He.style.alignItems="center",He.style.justifyContent="space-between",He.style.padding="5px",He.style.borderWidth="2px",He.style.borderStyle="solid",He.style.overflow="hidden",He.style.maxWidth=100/Le.styles.length-5+"%",He.style.borderColor=et===Le.currentStyle?Le.uiStyleSettings.toolboxAccentColor:"transparent",He.addEventListener("click",function(){Le.setCurrentStyle(et,He)}),Ze.appendChild(He);var We=document.createElement("div");We.style.minHeight="20px",We.style.flexGrow="2",We.style.overflow="hidden";var tt=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+Le.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(et!==""?'stroke-dasharray="'+et+'"':"")+` />
|
|
|
</svg>`;We.innerHTML=tt,He.appendChild(We),Le.styleBoxes.push(He)}),Ze},Fe.prototype.setCurrentStyle=function(Le,Ze){var et=this;this.currentStyle=Le,this.styleBoxes.forEach(function(He){He.style.borderColor=He===Ze?et.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Fe}(b),ge=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,Ze,et)||this;return He.strokeColor=et.defaultColor,He.strokeWidth=et.defaultStrokeWidth,He.strokeDasharray=et.defaultStrokeDasharray,He.strokePanel=new z("Line color",et.defaultColorSet,et.defaultColor),He.strokePanel.onColorChanged=He.setStrokeColor,He.strokeWidthPanel=new re("Line width",et.defaultStrokeWidths,et.defaultStrokeWidth),He.strokeWidthPanel.onWidthChanged=He.setStrokeWidth,He.strokeStylePanel=new ce("Line style",et.defaultStrokeDasharrays,et.defaultStrokeDasharray),He.strokeStylePanel.onStyleChanged=He.setStrokeDasharray,He}return Ye(Fe,Xe),Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Le=Xe.prototype.getState.call(this);return Le.typeName=Fe.typeName,Le},Fe.typeName="FrameMarker",Fe.title="Frame marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Fe}(x),_e=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"},ye=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,Ze,et)||this;return He.x1=0,He.y1=0,He.x2=0,He.y2=0,He.defaultLength=50,He.manipulationStartX=0,He.manipulationStartY=0,He.manipulationStartX1=0,He.manipulationStartY1=0,He.manipulationStartX2=0,He.manipulationStartY2=0,He.setupControlBox(),He}return Ye(Fe,Xe),Fe.prototype.ownsTarget=function(Le){return!!Xe.prototype.ownsTarget.call(this,Le)||!(!this.grip1.ownsTarget(Le)&&!this.grip2.ownsTarget(Le))},Fe.prototype.pointerDown=function(Le,Ze){Xe.prototype.pointerDown.call(this,Le,Ze),this.manipulationStartX=Le.x,this.manipulationStartY=Le.y,this.state==="new"&&(this.x1=Le.x,this.y1=Le.y,this.x2=Le.x,this.y2=Le.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(Ze)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Ze)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Fe.prototype.pointerUp=function(Le){var Ze=this.state;Xe.prototype.pointerUp.call(this,Le),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(Le),this._state="select",Ze==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Fe.prototype.adjustVisual=function(){},Fe.prototype.manipulate=function(Le){this.state==="creating"?this.resize(Le):this.state==="move"?(this.x1=this.manipulationStartX1+Le.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Le.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Le.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Le.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Le)},Fe.prototype.resize=function(Le){switch(this.activeGrip){case this.grip1:this.x1=Le.x,this.y1=Le.y;break;case this.grip2:case void 0:this.x2=Le.x,this.y2=Le.y}this.adjustVisual(),this.adjustControlBox()},Fe.prototype.select=function(){Xe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Fe.prototype.deselect=function(){Xe.prototype.deselect.call(this),this.controlBox.style.display="none"},Fe.prototype.setupControlBox=function(){this.controlBox=ve.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Fe.prototype.adjustControlBox=function(){this.positionGrips()},Fe.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Fe.prototype.createGrip=function(){var Le=new se;return Le.visual.transform.baseVal.appendItem(ve.createTransform()),this.controlBox.appendChild(Le.visual),Le},Fe.prototype.positionGrips=function(){var Le=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Le/2,this.y1-Le/2),this.positionGrip(this.grip2.visual,this.x2-Le/2,this.y2-Le/2)},Fe.prototype.positionGrip=function(Le,Ze,et){var He=Le.transform.baseVal.getItem(0);He.setTranslate(Ze,et),Le.transform.baseVal.replaceItem(He,0)},Fe.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Xe.prototype.getState.call(this))},Fe.prototype.restoreState=function(Le){Xe.prototype.restoreState.call(this,Le);var Ze=Le;this.x1=Ze.x1,this.y1=Ze.y1,this.x2=Ze.x2,this.y2=Ze.y2},Fe.prototype.scale=function(Le,Ze){Xe.prototype.scale.call(this,Le,Ze),this.x1=this.x1*Le,this.y1=this.y1*Ze,this.x2=this.x2*Le,this.y2=this.y2*Ze,this.adjustVisual(),this.adjustControlBox()},Fe}(ne),be=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,Ze,et)||this;return He.strokeColor="transparent",He.strokeWidth=0,He.strokeDasharray="",He.setStrokeColor=He.setStrokeColor.bind(He),He.setStrokeWidth=He.setStrokeWidth.bind(He),He.setStrokeDasharray=He.setStrokeDasharray.bind(He),He.strokeColor=et.defaultColor,He.strokeWidth=et.defaultStrokeWidth,He.strokeDasharray=et.defaultStrokeDasharray,He.strokePanel=new z("Line color",et.defaultColorSet,et.defaultColor),He.strokePanel.onColorChanged=He.setStrokeColor,He.strokeWidthPanel=new re("Line width",et.defaultStrokeWidths,et.defaultStrokeWidth),He.strokeWidthPanel.onWidthChanged=He.setStrokeWidth,He.strokeStylePanel=new ce("Line style",et.defaultStrokeDasharrays,et.defaultStrokeDasharray),He.strokeStylePanel.onStyleChanged=He.setStrokeDasharray,He}return Ye(Fe,Xe),Fe.prototype.ownsTarget=function(Le){return!(!Xe.prototype.ownsTarget.call(this,Le)&&Le!==this.visual&&Le!==this.selectorLine&&Le!==this.visibleLine)},Fe.prototype.createVisual=function(){this.visual=ve.createGroup(),this.selectorLine=ve.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ve.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)},Fe.prototype.pointerDown=function(Le,Ze){Xe.prototype.pointerDown.call(this,Le,Ze),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Fe.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()),ve.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ve.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ve.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Fe.prototype.setStrokeColor=function(Le){this.strokeColor=Le,this.adjustVisual(),this.colorChanged(Le)},Fe.prototype.setStrokeWidth=function(Le){this.strokeWidth=Le,this.adjustVisual()},Fe.prototype.setStrokeDasharray=function(Le){this.strokeDasharray=Le,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Le=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Xe.prototype.getState.call(this));return Le.typeName=Fe.typeName,Le},Fe.prototype.restoreState=function(Le){Xe.prototype.restoreState.call(this,Le);var Ze=Le;this.strokeColor=Ze.strokeColor,this.strokeWidth=Ze.strokeWidth,this.strokeDasharray=Ze.strokeDasharray,this.createVisual(),this.adjustVisual()},Fe.typeName="LineMarker",Fe.title="Line marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Fe}(ye),Se=function(Xe){function Fe(Le,Ze,et,He){var We=Xe.call(this,Le,He||'<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 We.fonts=[],We.fontBoxes=[],We.fonts=Ze,We.currentFont=et,We.setCurrentFont=We.setCurrentFont.bind(We),We}return Ye(Fe,Xe),Fe.prototype.getUi=function(){var Le=this,Ze=document.createElement("div");return Ze.style.overflow="hidden",Ze.style.flexGrow="2",this.fonts.forEach(function(et){var He=document.createElement("div");He.style.display="inline-block",He.style.alignItems="center",He.style.justifyContent="space-between",He.style.padding="5px",He.style.borderWidth="2px",He.style.borderStyle="solid",He.style.overflow="hidden",He.style.maxWidth=100/Le.fonts.length-5+"%",He.style.borderColor=et===Le.currentFont?Le.uiStyleSettings.toolboxAccentColor:"transparent",He.addEventListener("click",function(){Le.setCurrentFont(et,He)}),Ze.appendChild(He);var We=document.createElement("div");We.style.display="flex",We.style.minHeight="20px",We.style.flexGrow="2",We.style.fontFamily=et,We.style.overflow="hidden";var tt=document.createElement("div");tt.style.whiteSpace="nowrap",tt.style.overflow="hidden",tt.style.textOverflow="ellipsis",tt.innerHTML="The quick brown fox jumps over the lazy dog",We.appendChild(tt),He.appendChild(We),Le.fontBoxes.push(He)}),Ze},Fe.prototype.setCurrentFont=function(Le,Ze){var et=this;this.currentFont=Le,this.fontBoxes.forEach(function(He){He.style.borderColor=He===Ze?et.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Fe}(b),Be=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,Ze,et)||this;return He.color="transparent",He.padding=5,He.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",He.text=He.DEFAULT_TEXT,He.isMoved=!1,He.color=et.defaultColor,He.fontFamily=et.defaultFontFamily,He.defaultSize={x:100,y:30},He.setColor=He.setColor.bind(He),He.setFont=He.setFont.bind(He),He.renderText=He.renderText.bind(He),He.sizeText=He.sizeText.bind(He),He.textEditDivClicked=He.textEditDivClicked.bind(He),He.showTextEditor=He.showTextEditor.bind(He),He.setSize=He.setSize.bind(He),He.positionTextEditor=He.positionTextEditor.bind(He),He.colorPanel=new z("Color",et.defaultColorSet,et.defaultColor),He.colorPanel.onColorChanged=He.setColor,He.fontFamilyPanel=new Se("Font",et.defaultFontFamilies,et.defaultFontFamily),He.fontFamilyPanel.onFontChanged=He.setFont,He}return Ye(Fe,Xe),Fe.prototype.ownsTarget=function(Le){if(Xe.prototype.ownsTarget.call(this,Le)||Le===this.visual||Le===this.textElement||Le===this.bgRectangle)return!0;var Ze=!1;return this.textElement.childNodes.forEach(function(et){et===Le&&(Ze=!0)}),Ze},Fe.prototype.createVisual=function(){this.visual=ve.createGroup(),this.bgRectangle=ve.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ve.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ve.createTransform()),this.textElement.transform.baseVal.appendItem(ve.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Fe.prototype.pointerDown=function(Le,Ze){Xe.prototype.pointerDown.call(this,Le,Ze),this.isMoved=!1,this.pointerDownPoint=Le,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Le),this._state="creating")},Fe.prototype.renderText=function(){var Le=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(Ze){Le.textElement.appendChild(ve.createTSpan(Ze.trim()===""?" ":Ze.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Fe.prototype.getTextScale=function(){var Le=this.textElement.getBBox(),Ze=1;if(Le.width>0&&Le.height>0){var et=(1*this.width-this.width*this.padding*2/100)/Le.width,He=(1*this.height-this.height*this.padding*2/100)/Le.height;Ze=Math.min(et,He)}return Ze},Fe.prototype.getTextPosition=function(Le){var Ze=this.textElement.getBBox(),et=0,He=0;return Ze.width>0&&Ze.height>0&&(et=(this.width-Ze.width*Le)/2,He=this.height/2-Ze.height*Le/2),{x:et,y:He}},Fe.prototype.sizeText=function(){var Le=this.textElement.getBBox(),Ze=this.getTextScale(),et=this.getTextPosition(Ze);et.y-=Le.y*Ze,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+et.x+"px, "+et.y+"px) scale("+Ze+", "+Ze+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(et.x,et.y),this.textElement.transform.baseVal.getItem(1).setScale(Ze,Ze))},Fe.prototype.manipulate=function(Le){Xe.prototype.manipulate.call(this,Le),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Le.x-this.pointerDownPoint.x)>5||Math.abs(Le.y-this.pointerDownPoint.y)>5)},Fe.prototype.resize=function(Le){Xe.prototype.resize.call(this,Le),this.isMoved=!0,this.setSize(),this.sizeText()},Fe.prototype.setSize=function(){Xe.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(ve.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ve.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Fe.prototype.pointerUp=function(Le){var Ze=this.state;Ze==="creating"&&(this._suppressMarkerCreateEvent=!0),Xe.prototype.pointerUp.call(this,Le),this.setSize(),(Ze==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Fe.prototype.showTextEditor=function(){var Le=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(Ze){Ze.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Ze=Number.parseFloat(Le.textEditor.style.fontSize);Le.textEditor.clientWidth>=Number.parseInt(Le.textEditor.style.maxWidth)&&Ze>.9;)Ze-=.1,Le.textEditor.style.fontSize=Math.max(Ze,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Ze){Ze.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Ze){if(Ze.clipboardData){var et=Ze.clipboardData.getData("text"),He=window.getSelection();if(!He.rangeCount)return!1;He.deleteFromDocument(),He.getRangeAt(0).insertNode(document.createTextNode(et)),Ze.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Le.textEditDivClicked(Le.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Fe.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Le=this.getTextScale(),Ze=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),et=this.textElement.getBBox(),He={x:et.width*Le,y:et.height*Le};Ze.x-=He.x/2,Ze.y-=He.y/2,this.textEditor.style.top=Ze.y+"px",this.textEditor.style.left=Ze.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Ze.x+"px",this.textEditor.style.fontSize=Math.max(16*Le,12)+"px",this.textElement.style.display="none"}},Fe.prototype.textEditDivClicked=function(Le){this.text=Le.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Fe.prototype.select=function(){Xe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Fe.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Xe.prototype.deselect.call(this)},Fe.prototype.dblClick=function(Le,Ze){Xe.prototype.dblClick.call(this,Le,Ze),this.showTextEditor()},Fe.prototype.setColor=function(Le){this.textElement&&ve.setAttributes(this.textElement,[["fill",Le]]),this.color=Le,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Le)},Fe.prototype.setFont=function(Le){this.textElement&&ve.setAttributes(this.textElement,[["font-family",Le]]),this.fontFamily=Le,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Fe.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Fe.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Le=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Xe.prototype.getState.call(this));return Le.typeName=Fe.typeName,Le},Fe.prototype.restoreState=function(Le){var Ze=Le;this.color=Ze.color,this.fontFamily=Ze.fontFamily,this.padding=Ze.padding,this.text=Ze.text,this.createVisual(),Xe.prototype.restoreState.call(this,Le),this.setSize()},Fe.prototype.scale=function(Le,Ze){Xe.prototype.scale.call(this,Le,Ze),this.setSize(),this.sizeText(),this.positionTextEditor()},Fe.typeName="TextMarker",Fe.title="Text marker",Fe.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>',Fe}(a),Ae=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,Ze,et)||this;return He.color="transparent",He.lineWidth=3,He.drawing=!1,He.pixelRatio=1,He.color=et.defaultColor,He.lineWidth=et.defaultStrokeWidth,He.pixelRatio=et.freehandPixelRatio,He.setColor=He.setColor.bind(He),He.addCanvas=He.addCanvas.bind(He),He.finishCreation=He.finishCreation.bind(He),He.setLineWidth=He.setLineWidth.bind(He),He.colorPanel=new z("Color",et.defaultColorSet,et.defaultColor),He.colorPanel.onColorChanged=He.setColor,He.lineWidthPanel=new re("Line width",et.defaultStrokeWidths,et.defaultStrokeWidth),He.lineWidthPanel.onWidthChanged=He.setLineWidth,He}return Ye(Fe,Xe),Fe.prototype.ownsTarget=function(Le){return!(!Xe.prototype.ownsTarget.call(this,Le)&&Le!==this.visual&&Le!==this.drawingImage)},Fe.prototype.createVisual=function(){this.visual=ve.createGroup(),this.drawingImage=ve.createImage(),this.visual.appendChild(this.drawingImage);var Le=ve.createTransform();this.visual.transform.baseVal.appendItem(Le),this.addMarkerVisualToContainer(this.visual)},Fe.prototype.pointerDown=function(Le,Ze){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(Le.x,Le.y),this.drawing=!0):Xe.prototype.pointerDown.call(this,Le,Ze)},Fe.prototype.manipulate=function(Le){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Le.x,Le.y),this.canvasContext.stroke()):Xe.prototype.manipulate.call(this,Le)},Fe.prototype.resize=function(Le){Xe.prototype.resize.call(this,Le),ve.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ve.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Fe.prototype.pointerUp=function(Le){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Xe.prototype.pointerUp.call(this,Le)},Fe.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)},Fe.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Xe.prototype.select.call(this)},Fe.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Xe.prototype.deselect.call(this)},Fe.prototype.finishCreation=function(){for(var Le=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Ze=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],et=Ze[0],He=Ze[1],We=Ze[2],tt=Ze[3],at=!1,ot=0;ot<this.canvasElement.height;ot++)for(var ct=0;ct<this.canvasElement.width;ct++)Le.data[ot*this.canvasElement.width*4+4*ct+3]>0&&(at=!0,ot<He&&(He=ot),ct<et&&(et=ct),ot>tt&&(tt=ot),ct>We&&(We=ct));if(at){this.left=et/this.pixelRatio,this.top=He/this.pixelRatio,this.width=(We-et)/this.pixelRatio,this.height=(tt-He)/this.pixelRatio;var lt=document.createElement("canvas");lt.width=We-et,lt.height=tt-He,lt.getContext("2d").putImageData(this.canvasContext.getImageData(et,He,We-et,tt-He),0,0),this.drawingImgUrl=lt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Fe.prototype.setDrawingImage=function(){ve.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ve.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Fe.prototype.setColor=function(Le){this.color=Le,this.colorChanged(Le)},Fe.prototype.setLineWidth=function(Le){this.lineWidth=Le},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Le=Object.assign({drawingImgUrl:this.drawingImgUrl},Xe.prototype.getState.call(this));return Le.typeName=Fe.typeName,Le},Fe.prototype.restoreState=function(Le){this.createVisual(),Xe.prototype.restoreState.call(this,Le),this.drawingImgUrl=Le.drawingImgUrl,this.setDrawingImage()},Fe.prototype.scale=function(Le,Ze){Xe.prototype.scale.call(this,Le,Ze),this.setDrawingImage()},Fe.typeName="FreehandMarker",Fe.title="Freehand marker",Fe.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>',Fe}(a),we=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,et||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return He.typeBoxes=[],He.currentType=Ze,He.setCurrentType=He.setCurrentType.bind(He),He}return Ye(Fe,Xe),Fe.prototype.getUi=function(){var Le=this,Ze=document.createElement("div");Ze.style.display="flex",Ze.style.overflow="hidden",Ze.style.flexGrow="2";for(var et=function(tt){var at="both";switch(tt){case 0:at="both";break;case 1:at="start";break;case 2:at="end";break;case 3:at="none"}var ot=document.createElement("div");if(ot.style.display="flex",ot.style.flexGrow="2",ot.style.alignItems="center",ot.style.justifyContent="space-between",ot.style.padding="5px",ot.style.borderWidth="2px",ot.style.borderStyle="solid",ot.style.borderColor=at===He.currentType?He.uiStyleSettings.toolboxAccentColor:"transparent",ot.addEventListener("click",function(){Le.setCurrentType(at,ot)}),Ze.appendChild(ot),at==="both"||at==="start"){var ct=document.createElement("div");ct.style.display="flex",ct.style.alignItems="center",ct.style.minHeight="20px",ct.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="`+(He.uiStyleSettings!==void 0?He.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,ct.style.marginLeft="5px",ot.appendChild(ct)}var lt=document.createElement("div");lt.style.display="flex",lt.style.alignItems="center",lt.style.minHeight="20px",lt.style.flexGrow="2";var mt=document.createElement("hr");if(mt.style.minWidth="20px",mt.style.border="0px",mt.style.borderTop="3px solid "+(He.uiStyleSettings!==void 0?He.uiStyleSettings.toolboxColor:"#eeeeee"),mt.style.flexGrow="2",lt.appendChild(mt),ot.appendChild(lt),at==="both"||at==="end"){var Lt=document.createElement("div");Lt.style.display="flex",Lt.style.alignItems="center",Lt.style.minHeight="20px",Lt.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="`+(He.uiStyleSettings!==void 0?He.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Lt.style.marginRight="5px",ot.appendChild(Lt)}He.typeBoxes.push(ot)},He=this,We=0;We<4;We++)et(We);return Ze},Fe.prototype.setCurrentType=function(Le,Ze){var et=this;this.currentType=Le,this.typeBoxes.forEach(function(He){He.style.borderColor=He===Ze?et.uiStyleSettings!==void 0?et.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Fe}(b),Ue=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,Ze,et)||this;return He.arrowType="end",He.arrowBaseHeight=10,He.arrowBaseWidth=10,He.getArrowPoints=He.getArrowPoints.bind(He),He.setArrowType=He.setArrowType.bind(He),He.arrowTypePanel=new we("Arrow type","end"),He.arrowTypePanel.onArrowTypeChanged=He.setArrowType,He}return Ye(Fe,Xe),Fe.prototype.ownsTarget=function(Le){return!(!Xe.prototype.ownsTarget.call(this,Le)&&Le!==this.arrow1&&Le!==this.arrow2)},Fe.prototype.getArrowPoints=function(Le,Ze){var et=this.arrowBaseWidth+2*this.strokeWidth,He=this.arrowBaseHeight+2*this.strokeWidth;return Le-et/2+","+(Ze+He/2)+" "+Le+","+(Ze-He/2)+" "+(Le+et/2)+","+(Ze+He/2)},Fe.prototype.createTips=function(){this.arrow1=ve.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ve.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ve.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ve.createTransform()),this.visual.appendChild(this.arrow2)},Fe.prototype.pointerDown=function(Le,Ze){Xe.prototype.pointerDown.call(this,Le,Ze),this.state==="creating"&&this.createTips()},Fe.prototype.adjustVisual=function(){if(Xe.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",ve.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ve.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var Le=0;Math.abs(this.x1-this.x2)>.1&&(Le=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Ze=this.arrow1.transform.baseVal.getItem(0);Ze.setRotate(Le,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Ze,0);var et=this.arrow2.transform.baseVal.getItem(0);et.setRotate(Le+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(et,0)}},Fe.prototype.setArrowType=function(Le){this.arrowType=Le,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Le=Object.assign({arrowType:this.arrowType},Xe.prototype.getState.call(this));return Le.typeName=Fe.typeName,Le},Fe.prototype.restoreState=function(Le){Xe.prototype.restoreState.call(this,Le);var Ze=Le;this.arrowType=Ze.arrowType,this.createTips(),this.adjustVisual()},Fe.typeName="ArrowMarker",Fe.title="Arrow marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Fe}(be),Pe=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,Ze,et)||this;return He.fillColor=et.defaultFillColor,He.strokeWidth=0,He.fillPanel=new z("Color",et.defaultColorSet,et.defaultFillColor),He.fillPanel.onColorChanged=He.setFillColor,He}return Ye(Fe,Xe),Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Le=Xe.prototype.getState.call(this);return Le.typeName=Fe.typeName,Le},Fe.typeName="CoverMarker",Fe.title="Cover marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Fe}(x),ze=function(Xe){function Fe(Le,Ze,et,He){var We=Xe.call(this,Le,He||'<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 We.opacities=[],We.opacityBoxes=[],We.opacities=Ze,We.currentOpacity=et,We.setCurrentOpacity=We.setCurrentOpacity.bind(We),We}return Ye(Fe,Xe),Fe.prototype.getUi=function(){var Le=this,Ze=document.createElement("div");return Ze.style.display="flex",Ze.style.overflow="hidden",Ze.style.flexGrow="2",Ze.style.justifyContent="space-between",this.opacities.forEach(function(et){var He=document.createElement("div");He.style.display="flex",He.style.alignItems="center",He.style.justifyContent="center",He.style.padding="5px",He.style.borderWidth="2px",He.style.borderStyle="solid",He.style.borderColor=et===Le.currentOpacity?Le.uiStyleSettings.toolboxAccentColor:"transparent",He.addEventListener("click",function(){Le.setCurrentOpacity(et,He)}),Ze.appendChild(He);var We=document.createElement("div");We.innerText=100*et+"%",He.appendChild(We),Le.opacityBoxes.push(He)}),Ze},Fe.prototype.setCurrentOpacity=function(Le,Ze){var et=this;this.currentOpacity=Le,this.opacityBoxes.forEach(function(He){He.style.borderColor=He===Ze?et.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Fe}(b),Ke=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,Ze,et)||this;return He.setOpacity=He.setOpacity.bind(He),He.fillColor=et.defaultHighlightColor,He.strokeWidth=0,He.opacity=et.defaultHighlightOpacity,He.fillPanel=new z("Color",et.defaultColorSet,He.fillColor),He.fillPanel.onColorChanged=He.setFillColor,He.opacityPanel=new ze("Opacity",et.defaultOpacitySteps,He.opacity),He.opacityPanel.onOpacityChanged=He.setOpacity,He}return Ye(Fe,Xe),Fe.prototype.setOpacity=function(Le){this.opacity=Le,this.visual&&ve.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Le=Xe.prototype.getState.call(this);return Le.typeName=Fe.typeName,Le},Fe.typeName="HighlightMarker",Fe.title="Highlight marker",Fe.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>',Fe}(Pe),Ne='<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>',Re='<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>',$e=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,Ze,et)||this;return He.bgColor="transparent",He.tipPosition={x:0,y:0},He.tipBase1Position={x:0,y:0},He.tipBase2Position={x:0,y:0},He.tipMoving=!1,He.color=et.defaultStrokeColor,He.bgColor=et.defaultFillColor,He.fontFamily=et.defaultFontFamily,He.defaultSize={x:100,y:30},He.setBgColor=He.setBgColor.bind(He),He.getTipPoints=He.getTipPoints.bind(He),He.positionTip=He.positionTip.bind(He),He.setTipPoints=He.setTipPoints.bind(He),He.colorPanel=new z("Text color",et.defaultColorSet,He.color,Ne),He.colorPanel.onColorChanged=He.setColor,He.bgColorPanel=new z("Fill color",et.defaultColorSet,He.bgColor,Re),He.bgColorPanel.onColorChanged=He.setBgColor,He.fontFamilyPanel=new Se("Font",et.defaultFontFamilies,et.defaultFontFamily),He.fontFamilyPanel.onFontChanged=He.setFont,He.tipGrip=new se,He.tipGrip.visual.transform.baseVal.appendItem(ve.createTransform()),He.controlBox.appendChild(He.tipGrip.visual),He}return Ye(Fe,Xe),Fe.prototype.ownsTarget=function(Le){return Xe.prototype.ownsTarget.call(this,Le)||this.tipGrip.ownsTarget(Le)||this.tip===Le},Fe.prototype.createTip=function(){ve.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ve.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Fe.prototype.pointerDown=function(Le,Ze){this.state==="new"&&Xe.prototype.pointerDown.call(this,Le,Ze),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Ze)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Xe.prototype.pointerDown.call(this,Le,Ze)},Fe.prototype.pointerUp=function(Le){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Xe.prototype.pointerUp.call(this,Le);else{var Ze=this.state==="creating";Xe.prototype.pointerUp.call(this,Le),this.setTipPoints(Ze),this.positionTip()}},Fe.prototype.manipulate=function(Le){if(this.tipMoving){var Ze=this.unrotatePoint(Le);this.tipPosition={x:Ze.x-this.manipulationStartLeft,y:Ze.y-this.manipulationStartTop},this.positionTip()}else Xe.prototype.manipulate.call(this,Le)},Fe.prototype.setBgColor=function(Le){this.bgRectangle&&this.tip&&(ve.setAttributes(this.bgRectangle,[["fill",Le]]),ve.setAttributes(this.tip,[["fill",Le]])),this.bgColor=Le,this.fillColorChanged(Le)},Fe.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},Fe.prototype.setTipPoints=function(Le){Le===void 0&&(Le=!1);var Ze=Math.min(this.height/2,15),et=this.height/5;Le&&(this.tipPosition={x:Ze+et/2,y:this.height+20});var He=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?He<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(et=this.width/5,Ze=Math.min(this.width/2,15),this.tipBase1Position={x:Ze,y:0},this.tipBase2Position={x:Ze+et,y:0}):(this.tipBase1Position={x:0,y:Ze},this.tipBase2Position={x:0,y:Ze+et}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?He<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(et=this.width/5,Ze=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ze-et,y:0},this.tipBase2Position={x:this.width-Ze,y:0}):(this.tipBase1Position={x:this.width,y:Ze},this.tipBase2Position={x:this.width,y:Ze+et}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?He<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(et=this.width/5,Ze=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ze-et,y:this.height},this.tipBase2Position={x:this.width-Ze,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Ze-et},this.tipBase2Position={x:this.width,y:this.height-Ze}):He<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(et=this.width/5,Ze=Math.min(this.width/2,15),this.tipBase1Position={x:Ze,y:this.height},this.tipBase2Position={x:Ze+et,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Ze},this.tipBase2Position={x:0,y:this.height-Ze-et})},Fe.prototype.resize=function(Le){Xe.prototype.resize.call(this,Le),this.positionTip()},Fe.prototype.positionTip=function(){ve.setAttributes(this.tip,[["points",this.getTipPoints()]]);var Le=this.tipGrip.visual.transform.baseVal.getItem(0);Le.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(Le,0)},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Fe.prototype.select=function(){this.positionTip(),Xe.prototype.select.call(this)},Fe.prototype.getState=function(){var Le=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Xe.prototype.getState.call(this));return Le.typeName=Fe.typeName,Le},Fe.prototype.restoreState=function(Le){var Ze=Le;this.bgColor=Ze.bgColor,this.tipPosition=Ze.tipPosition,Xe.prototype.restoreState.call(this,Le),this.createTip(),this.setTipPoints()},Fe.prototype.scale=function(Le,Ze){Xe.prototype.scale.call(this,Le,Ze),this.tipPosition={x:this.tipPosition.x*Le,y:this.tipPosition.y*Ze},this.positionTip()},Fe.typeName="CalloutMarker",Fe.title="Callout marker",Fe.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>',Fe}(Be),nt=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,Ze,et)||this;return He.fillColor="transparent",He.strokeColor="transparent",He.strokeWidth=0,He.strokeDasharray="",He.opacity=1,He.strokeColor=et.defaultColor,He.strokeWidth=et.defaultStrokeWidth,He.strokeDasharray=et.defaultStrokeDasharray,He.fillColor=et.defaultFillColor,He.setStrokeColor=He.setStrokeColor.bind(He),He.setFillColor=He.setFillColor.bind(He),He.setStrokeWidth=He.setStrokeWidth.bind(He),He.setStrokeDasharray=He.setStrokeDasharray.bind(He),He.setOpacity=He.setOpacity.bind(He),He.createVisual=He.createVisual.bind(He),He.strokePanel=new z("Line color",Oe(et.defaultColorSet,["transparent"]),et.defaultColor),He.strokePanel.onColorChanged=He.setStrokeColor,He.fillPanel=new z("Fill color",Oe(et.defaultColorSet,["transparent"]),He.fillColor,Re),He.fillPanel.onColorChanged=He.setFillColor,He.strokeWidthPanel=new re("Line width",et.defaultStrokeWidths,et.defaultStrokeWidth),He.strokeWidthPanel.onWidthChanged=He.setStrokeWidth,He.strokeStylePanel=new ce("Line style",et.defaultStrokeDasharrays,et.defaultStrokeDasharray),He.strokeStylePanel.onStyleChanged=He.setStrokeDasharray,He.opacityPanel=new ze("Opacity",et.defaultOpacitySteps,He.opacity),He.opacityPanel.onOpacityChanged=He.setOpacity,He}return Ye(Fe,Xe),Fe.prototype.ownsTarget=function(Le){return!(!Xe.prototype.ownsTarget.call(this,Le)&&Le!==this.visual)},Fe.prototype.createVisual=function(){this.visual=ve.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)},Fe.prototype.pointerDown=function(Le,Ze){Xe.prototype.pointerDown.call(this,Le,Ze),this.state==="new"&&(this.createVisual(),this.moveVisual(Le),this._state="creating")},Fe.prototype.manipulate=function(Le){Xe.prototype.manipulate.call(this,Le)},Fe.prototype.resize=function(Le){Xe.prototype.resize.call(this,Le),this.setSize()},Fe.prototype.setSize=function(){Xe.prototype.setSize.call(this),ve.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Fe.prototype.pointerUp=function(Le){Xe.prototype.pointerUp.call(this,Le),this.setSize()},Fe.prototype.setStrokeColor=function(Le){this.strokeColor=Le,this.visual&&ve.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Le),this.stateChanged()},Fe.prototype.setFillColor=function(Le){this.fillColor=Le,this.visual&&ve.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(Le),this.stateChanged()},Fe.prototype.setStrokeWidth=function(Le){this.strokeWidth=Le,this.visual&&ve.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Fe.prototype.setStrokeDasharray=function(Le){this.strokeDasharray=Le,this.visual&&ve.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Fe.prototype.setOpacity=function(Le){this.opacity=Le,this.visual&&ve.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Le=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Xe.prototype.getState.call(this));return Le.typeName=Fe.typeName,Le},Fe.prototype.restoreState=function(Le){var Ze=Le;this.fillColor=Ze.fillColor,this.strokeColor=Ze.strokeColor,this.strokeWidth=Ze.strokeWidth,this.strokeDasharray=Ze.strokeDasharray,this.opacity=Ze.opacity,this.createVisual(),Xe.prototype.restoreState.call(this,Le),this.setSize()},Fe.prototype.scale=function(Le,Ze){Xe.prototype.scale.call(this,Le,Ze),this.setSize()},Fe.typeName="EllipseMarker",Fe.title="Ellipse marker",Fe.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>',Fe}(a),ut=function(Xe){function Fe(Le,Ze,et){return Xe.call(this,Le,Ze,et)||this}return Ye(Fe,Xe),Object.defineProperty(Fe.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Fe.prototype.ownsTarget=function(Le){return!(!Xe.prototype.ownsTarget.call(this,Le)&&Le!==this.tip1&&Le!==this.tip2)},Fe.prototype.createTips=function(){this.tip1=ve.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(ve.createTransform()),this.visual.appendChild(this.tip1),this.tip2=ve.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(ve.createTransform()),this.visual.appendChild(this.tip2)},Fe.prototype.pointerDown=function(Le,Ze){Xe.prototype.pointerDown.call(this,Le,Ze),this.state==="creating"&&this.createTips()},Fe.prototype.adjustVisual=function(){if(Xe.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(ve.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()]]),ve.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 Le=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Ze=this.tip1.transform.baseVal.getItem(0);Ze.setRotate(Le,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Ze,0);var et=this.tip2.transform.baseVal.getItem(0);et.setRotate(Le+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(et,0)}},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Le=Xe.prototype.getState.call(this);return Le.typeName=Fe.typeName,Le},Fe.prototype.restoreState=function(Le){Xe.prototype.restoreState.call(this,Le),this.createTips(),this.adjustVisual()},Fe.typeName="MeasurementMarker",Fe.title="Measurement marker",Fe.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>',Fe}(be),Qe=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,Ze,et)||this;return He.strokePanel.colors=et.defaultColorSet,He.fillColor="transparent",He}return Ye(Fe,Xe),Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Le=Xe.prototype.getState.call(this);return Le.typeName=Fe.typeName,Le},Fe.typeName="EllipseFrameMarker",Fe.title="Ellipse frame marker",Fe.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>',Fe}(nt),rt=function(){function Xe(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Xe.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Xe.prototype.addUndoStep=function(Fe){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Fe)||(this.undoStack.push(Fe),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Fe)&&this.redoStack.splice(0,this.redoStack.length))},Xe.prototype.replaceLastUndoStep=function(Fe){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Fe)},Xe.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Xe.prototype.undo=function(){if(this.undoStack.length>1){var Fe=this.undoStack.pop();return Fe!==void 0&&this.redoStack.push(Fe),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Xe.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Xe}(),pt=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,Ze,et)||this;return He.strokeColor="transparent",He.strokeWidth=0,He.strokeDasharray="",He.curveX=0,He.curveY=0,He.manipulationStartCurveX=0,He.manipulationStartCurveY=0,He.setStrokeColor=He.setStrokeColor.bind(He),He.setStrokeWidth=He.setStrokeWidth.bind(He),He.setStrokeDasharray=He.setStrokeDasharray.bind(He),He.positionGrips=He.positionGrips.bind(He),He.addControlGrips=He.addControlGrips.bind(He),He.adjustVisual=He.adjustVisual.bind(He),He.setupControlBox=He.setupControlBox.bind(He),He.resize=He.resize.bind(He),He.strokeColor=et.defaultColor,He.strokeWidth=et.defaultStrokeWidth,He.strokeDasharray=et.defaultStrokeDasharray,He.strokePanel=new z("Line color",et.defaultColorSet,et.defaultColor),He.strokePanel.onColorChanged=He.setStrokeColor,He.strokeWidthPanel=new re("Line width",et.defaultStrokeWidths,et.defaultStrokeWidth),He.strokeWidthPanel.onWidthChanged=He.setStrokeWidth,He.strokeStylePanel=new ce("Line style",et.defaultStrokeDasharrays,et.defaultStrokeDasharray),He.strokeStylePanel.onStyleChanged=He.setStrokeDasharray,He}return Ye(Fe,Xe),Fe.prototype.ownsTarget=function(Le){return!(!Xe.prototype.ownsTarget.call(this,Le)&&Le!==this.visual&&Le!==this.selectorCurve&&Le!==this.visibleCurve&&!this.curveGrip.ownsTarget(Le))},Fe.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Fe.prototype.createVisual=function(){this.visual=ve.createGroup(),this.selectorCurve=ve.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ve.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)},Fe.prototype.pointerDown=function(Le,Ze){Xe.prototype.pointerDown.call(this,Le,Ze),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Le.x,this.curveY=Le.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Ze)&&(this.activeGrip=this.curveGrip,this._state="resize")},Fe.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),ve.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ve.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ve.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Fe.prototype.setupControlBox=function(){Xe.prototype.setupControlBox.call(this),this.curveControlLine1=ve.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ve.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)},Fe.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Xe.prototype.addControlGrips.call(this)},Fe.prototype.positionGrips=function(){Xe.prototype.positionGrips.call(this);var Le=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Le/2,this.curveY-Le/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()))},Fe.prototype.manipulate=function(Le){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Le.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Le.y-this.manipulationStartY),Xe.prototype.manipulate.call(this,Le)},Fe.prototype.resize=function(Le){this.activeGrip===this.curveGrip&&(this.curveX=Le.x,this.curveY=Le.y),Xe.prototype.resize.call(this,Le),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Fe.prototype.setStrokeColor=function(Le){this.strokeColor=Le,this.adjustVisual(),this.colorChanged(Le)},Fe.prototype.setStrokeWidth=function(Le){this.strokeWidth=Le,this.adjustVisual()},Fe.prototype.setStrokeDasharray=function(Le){this.strokeDasharray=Le,this.adjustVisual()},Fe.prototype.scale=function(Le,Ze){this.curveX=this.curveX*Le,this.curveY=this.curveY*Ze,Xe.prototype.scale.call(this,Le,Ze)},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Le=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Xe.prototype.getState.call(this));return Le.typeName=Fe.typeName,Le},Fe.prototype.restoreState=function(Le){Xe.prototype.restoreState.call(this,Le);var Ze=Le;this.strokeColor=Ze.strokeColor,this.strokeWidth=Ze.strokeWidth,this.strokeDasharray=Ze.strokeDasharray,this.curveX=Ze.curveX,this.curveY=Ze.curveY,this.createVisual(),this.adjustVisual()},Fe.typeName="CurveMarker",Fe.title="Curve marker",Fe.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>',Fe}(ye),At=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,Ze,et)||this;return He.fillColor="transparent",He.strokeColor="transparent",He.strokeWidth=0,He.strokeDasharray="",He.textColor="transparent",He.fontSize="1rem",He.isMoved=!1,He.captionText="Caption",He.PADDING=5,He.captionBoxWidth=0,He.captionBoxHeight=0,He.strokeColor=et.defaultColor,He.strokeWidth=et.defaultStrokeWidth,He.strokeDasharray=et.defaultStrokeDasharray,He.fillColor=et.defaultFillColor,He.textColor=et.defaultStrokeColor,He.fontFamily=et.defaultFontFamily,He.fontSize=et.defaultCaptionFontSize,He.captionText=et.defaultCaptionText,He.setStrokeColor=He.setStrokeColor.bind(He),He.setFillColor=He.setFillColor.bind(He),He.setStrokeWidth=He.setStrokeWidth.bind(He),He.setStrokeDasharray=He.setStrokeDasharray.bind(He),He.createVisual=He.createVisual.bind(He),He.sizeCaption=He.sizeCaption.bind(He),He.setCaptionText=He.setCaptionText.bind(He),He.showTextEditor=He.showTextEditor.bind(He),He.positionTextEditor=He.positionTextEditor.bind(He),He.finishTextEditing=He.finishTextEditing.bind(He),He.setFont=He.setFont.bind(He),He.setTextColor=He.setTextColor.bind(He),He.strokePanel=new z("Line color",Oe(et.defaultColorSet,["transparent"]),He.strokeColor),He.strokePanel.onColorChanged=He.setStrokeColor,He.fillPanel=new z("Fill color",Oe(et.defaultColorSet,["transparent"]),He.fillColor,Re),He.fillPanel.onColorChanged=He.setFillColor,He.strokeWidthPanel=new re("Line width",et.defaultStrokeWidths,et.defaultStrokeWidth),He.strokeWidthPanel.onWidthChanged=He.setStrokeWidth,He.strokeStylePanel=new ce("Line style",et.defaultStrokeDasharrays,et.defaultStrokeDasharray),He.strokeStylePanel.onStyleChanged=He.setStrokeDasharray,He.fontFamilyPanel=new Se("Font",et.defaultFontFamilies,et.defaultFontFamily),He.fontFamilyPanel.onFontChanged=He.setFont,He.textColorPanel=new z("Text color",et.defaultColorSet,He.textColor,Ne),He.textColorPanel.onColorChanged=He.setTextColor,He}return Ye(Fe,Xe),Fe.prototype.ownsTarget=function(Le){return!(!Xe.prototype.ownsTarget.call(this,Le)&&Le!==this.visual&&Le!==this.frame&&Le!==this.captionBg&&Le!==this.captionElement)},Fe.prototype.createVisual=function(){this.visual=ve.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=ve.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=ve.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=ve.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()},Fe.prototype.setCaptionText=function(Le){this.captionText=Le,this.captionElement.textContent=this.captionText,this.sizeCaption()},Fe.prototype.pointerDown=function(Le,Ze){Xe.prototype.pointerDown.call(this,Le,Ze),this.isMoved=!1,this.pointerDownPoint=Le,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Le),this._state="creating")},Fe.prototype.manipulate=function(Le){Xe.prototype.manipulate.call(this,Le),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Le.x-this.pointerDownPoint.x)>5||Math.abs(Le.y-this.pointerDownPoint.y)>5)},Fe.prototype.resize=function(Le){Xe.prototype.resize.call(this,Le),this.setSize()},Fe.prototype.sizeCaption=function(){var Le=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=Le.width+2*this.PADDING,this.captionBoxHeight=Le.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),ve.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')"]]),ve.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')"]])},Fe.prototype.showTextEditor=function(){var Le=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(Ze){Ze.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Ze){Ze.key==="Enter"&&Le.finishTextEditing(Le.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Ze){Ze.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){Le.finishTextEditing(Le.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){Le.finishTextEditing(Le.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Fe.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"))},Fe.prototype.finishTextEditing=function(Le){this.setCaptionText(Le.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Fe.prototype.setFont=function(Le){this.captionElement&&ve.setAttributes(this.captionElement,[["font-family",Le]]),this.fontFamily=Le,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Fe.prototype.setTextColor=function(Le){this.captionElement&&ve.setAttributes(this.captionElement,[["fill",Le]]),this.textColor=Le,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Fe.prototype.setSize=function(){Xe.prototype.setSize.call(this),ve.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Fe.prototype.pointerUp=function(Le){Xe.prototype.pointerUp.call(this,Le),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Fe.prototype.dblClick=function(Le,Ze){Xe.prototype.dblClick.call(this,Le,Ze),this.showTextEditor()},Fe.prototype.setStrokeColor=function(Le){this.strokeColor=Le,this.frame&&ve.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(Le),this.stateChanged()},Fe.prototype.setFillColor=function(Le){this.fillColor=Le,this.captionBg&&ve.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(Le),this.stateChanged()},Fe.prototype.setStrokeWidth=function(Le){this.strokeWidth=Le,this.frame&&ve.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Fe.prototype.setStrokeDasharray=function(Le){this.strokeDasharray=Le,this.frame&&ve.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Le=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},Xe.prototype.getState.call(this));return Le.typeName=this.typeName,Le},Fe.prototype.restoreState=function(Le){var Ze=Le;this.fillColor=Ze.fillColor,this.strokeColor=Ze.strokeColor,this.strokeWidth=Ze.strokeWidth,this.strokeDasharray=Ze.strokeDasharray,this.textColor=Ze.textColor,this.fontFamily=Ze.fontFamily,this.captionText=Ze.captionText,this.fontSize=Ze.fontSize,this.createVisual(),Xe.prototype.restoreState.call(this,Le),this.setSize()},Fe.prototype.scale=function(Le,Ze){Xe.prototype.scale.call(this,Le,Ze),this.setSize()},Fe.typeName="CaptionFrameMarker",Fe.title="Caption frame marker",Fe.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>',Fe}(a),gt=function(){function Xe(Fe,Le){Le===void 0&&(Le=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Fe,this.cancelable=Le}return Object.defineProperty(Xe.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Xe.prototype.preventDefault=function(){this._defaultPrevented=!0},Xe}(),Ft=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,!1)||this;return He.dataUrl=Ze,He.state=et,He}return Ye(Fe,Xe),Fe}(gt),Ct=function(Xe){function Fe(Le,Ze,et){et===void 0&&(et=!1);var He=Xe.call(this,Le,et)||this;return He.marker=Ze,He}return Ye(Fe,Xe),Fe}(gt),Yt=function(){function Xe(){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 Xe.prototype.addEventListener=function(Fe,Le){this[Fe].push(Le)},Xe.prototype.removeEventListener=function(Fe,Le){var Ze=this[Fe].indexOf(Le);Ze>-1&&this[Fe].splice(Ze,1)},Xe}(),zt=function(){function Xe(Fe){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new _e,this._isOpen=!1,this.undoRedoManager=new rt,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 Yt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Xe.instanceCounter++,this.styles=new le(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Fe,this.targetRoot=document.body,this.width=Fe.clientWidth,this.height=Fe.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(Xe.prototype,"ALL_MARKER_TYPES",{get:function(){return[ge,Ae,Ue,Be,Qe,nt,Ke,$e,ut,Pe,be,pt,At]},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ge,Ae,Ue,Be,nt,Ke,$e]},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ge,Ae,Ue,Be,Ke]},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Fe){var Le=this;this._availableMarkerTypes.splice(0),Fe.forEach(function(Ze){if(typeof Ze=="string"){var et=Le.ALL_MARKER_TYPES.find(function(He){return He.typeName===Ze});et!==void 0&&Le._availableMarkerTypes.push(et)}else Le._availableMarkerTypes.push(Ze)})},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Fe){this._zoomLevel=Fe,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(Xe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Xe.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},Xe.prototype.show=function(){var Fe=this;this.styles.styleSheetRoot===void 0&&he.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=he.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Le){return Le(new gt(Fe))})},Xe.prototype.render=function(){return Me(this,void 0,void 0,function(){var Fe;return pe(this,function(Le){switch(Le.label){case 0:return this.setCurrentMarker(),(Fe=new fe).naturalSize=this.renderAtNaturalSize,Fe.imageType=this.renderImageType,Fe.imageQuality=this.renderImageQuality,Fe.markersOnly=this.renderMarkersOnly,Fe.width=this.renderWidth,Fe.height=this.renderHeight,[4,Fe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Le.sent(),[4,Fe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Le.sent()]}})})},Xe.prototype.close=function(Fe){var Le=this;if(Fe===void 0&&(Fe=!1),this.isOpen){var Ze=!1;Fe||this.eventListeners.beforeclose.forEach(function(et){var He=new gt(Le,!0);et(He),He.defaultPrevented&&(Ze=!0)}),Ze||(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(et){return et(new gt(Le))}),this.detachEvents(),this._isOpen=!1)}},Xe.prototype.addMarkersToToolbar=function(){for(var Fe,Le=[],Ze=0;Ze<arguments.length;Ze++)Le[Ze]=arguments[Ze];(Fe=this._availableMarkerTypes).push.apply(Fe,Le)},Xe.prototype.addRenderEventListener=function(Fe){this.addEventListener("render",function(Le){Fe(Le.dataUrl,Le.state)})},Xe.prototype.removeRenderEventListener=function(Fe){},Xe.prototype.addCloseEventListener=function(Fe){this.addEventListener("close",function(){Fe()})},Xe.prototype.removeCloseEventListener=function(Fe){},Xe.prototype.setupResizeObserver=function(){var Fe=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Fe.resize(Fe.target.clientWidth,Fe.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Fe.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Xe.prototype.onPopupTargetResize=function(){var Fe=1*this.target.clientWidth/this.target.clientHeight,Le=this.editorCanvas.clientWidth/Fe>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Fe:this.editorCanvas.clientWidth,Ze=Le<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Fe;this.resize(Le,Ze)},Xe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Xe.prototype.resize=function(Fe,Le){this._isResizing=!0;var Ze=Fe/this.imageWidth,et=Le/this.imageHeight;this.imageWidth=Math.round(Fe),this.imageHeight=Math.round(Le),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(Ze,et),this._isResizing=!1},Xe.prototype.scaleMarkers=function(Fe,Le){var Ze,et=this;this._currentMarker&&this._currentMarker instanceof Be?this._currentMarker.scale(Fe,Le):(Ze=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(He){He!==et._currentMarker&&He.scale(Fe,Le)}),Ze!==void 0&&this.setCurrentMarker(Ze)},Xe.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"},Xe.prototype.setTopLeft=function(){var Fe=this.editingTarget.getBoundingClientRect(),Le=this.editorCanvas.getBoundingClientRect();this.left=Fe.left-Le.left,this.top=Fe.top-Le.top},Xe.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)},Xe.prototype.addDefs=function(){for(var Fe,Le=[],Ze=0;Ze<arguments.length;Ze++)Le[Ze]=arguments[Ze];this.defs=ve.createDefs(),this.addDefsToImage(),(Fe=this.defs).append.apply(Fe,Le)},Xe.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Xe.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)},Xe.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Xe.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Xe.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)},Xe.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Xe.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)},Xe.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 Fe=document.createElement("a");Fe.href="https://markerjs.com/",Fe.target="_blank",Fe.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>',Fe.title="Powered by marker.js",Fe.style.display="grid",Fe.style.alignItems="center",Fe.style.justifyItems="center",Fe.style.padding="3px",Fe.style.width="20px",Fe.style.height="20px",this.logoUI.appendChild(Fe),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Xe.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")},Xe.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"},Xe.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Xe.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 Fe=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=Fe+"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 E(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Xe.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Xe.prototype.removeMarker=function(Fe){this.markerImage.removeChild(Fe.container),this.markers.indexOf(Fe)>-1&&this.markers.splice(this.markers.indexOf(Fe),1),Fe.dispose()},Xe.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())},Xe.prototype.toolbarButtonClicked=function(Fe,Le){if(Fe==="marker"&&Le!==void 0)this.createNewMarker(Le);else if(Fe==="action")switch(Le){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()}},Xe.prototype.deleteSelectedMarker=function(){var Fe=this;if(this._currentMarker!==void 0){var Le=!1;if(this.eventListeners.markerbeforedelete.forEach(function(et){var He=new Ct(Fe,Fe._currentMarker,!0);et(He),He.defaultPrevented&&(Le=!0)}),!Le){var Ze=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(et){return et(new Ct(Fe,Ze))})}}},Xe.prototype.clear=function(){var Fe=this,Le=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(We){var tt=new Ct(Fe,void 0,!0);We(tt),tt.defaultPrevented&&(Le=!0)}),!Le)){this.setCurrentMarker();for(var Ze=function(We){var tt=et.markers[We];et.setCurrentMarker(et.markers[We]),et._currentMarker.dispose(),et.markerImage.removeChild(et._currentMarker.container),et.markers.splice(et.markers.indexOf(et._currentMarker),1),et.eventListeners.markerdelete.forEach(function(at){return at(new Ct(Fe,tt))})},et=this,He=this.markers.length-1;He>=0;He--)Ze(He);this.addUndoStep()}},Object.defineProperty(Xe.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Xe.prototype.showNotesEditor=function(){var Fe;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=(Fe=this._currentMarker.notes)!==null&&Fe!==void 0?Fe:"",this.overlayContainer.appendChild(this.notesArea))},Xe.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)},Xe.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Xe.prototype.addUndoStep=function(){var Fe=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Le=this.getState(),Ze=this.undoRedoManager.getLastUndoStep();if(!Ze||Ze.width===Le.width&&Ze.height===Le.height){var et=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Le),et<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(He){return He(new gt(Fe))})}else this.undoRedoManager.replaceLastUndoStep(Le),this.eventListeners.statechange.forEach(function(He){return He(new gt(Fe))})}},Xe.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Xe.prototype.undoStep=function(){var Fe=this,Le=this.undoRedoManager.undo();Le!==void 0&&(this.restoreState(Le),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ze){return Ze(new gt(Fe))}))},Xe.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Xe.prototype.redoStep=function(){var Fe=this,Le=this.undoRedoManager.redo();Le!==void 0&&(this.restoreState(Le),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ze){return Ze(new gt(Fe))}))},Xe.prototype.stepZoom=function(){var Fe=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Fe<this.zoomSteps.length-1?this.zoomSteps[Fe+1]:this.zoomSteps[0]},Xe.prototype.panTo=function(Fe){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Fe.x,top:this.prevPanPoint.y-Fe.y}),this.prevPanPoint=Fe},Xe.prototype.startRenderAndClose=function(){return Me(this,void 0,void 0,function(){var Fe,Le,Ze=this;return pe(this,function(et){switch(et.label){case 0:return[4,this.render()];case 1:return Fe=et.sent(),Le=this.getState(),this.eventListeners.render.forEach(function(He){return He(new Ft(Ze,Fe,Le))}),this.close(!0),[2]}})})},Xe.prototype.getState=function(Fe){Fe===!0&&this.setCurrentMarker();var Le={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Ze){return Le.markers.push(Ze.getState())}),Le},Xe.prototype.restoreState=function(Fe){var Le=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Fe.markers.forEach(function(Ze){var et=Le._availableMarkerTypes.find(function(We){return We.typeName===Ze.typeName});if(et!==void 0){var He=Le.addNewMarker(et);He.restoreState(Ze),Le.markers.push(He)}}),Fe.width&&Fe.height&&(Fe.width!==this.imageWidth||Fe.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Fe.width,this.imageHeight/Fe.height),this.eventListeners.restorestate.forEach(function(Ze){return Ze(new gt(Le))})},Xe.prototype.addNewMarker=function(Fe){var Le=ve.createGroup();return this.markerImage.appendChild(Le),new Fe(Le,this.overlayContainer,this.settings)},Xe.prototype.createNewMarker=function(Fe){var Le,Ze=this;(Le=typeof Fe=="string"?this._availableMarkerTypes.find(function(et){return et.typeName===Fe}):Fe)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(Le),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(Le.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(et){return et(new Ct(Ze,Ze._currentMarker))}))},Xe.prototype.markerCreated=function(Fe){var Le=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Fe),this.setCurrentMarker(Fe),Fe instanceof Ae&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ae):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Ze){return Ze(new Ct(Le,Le._currentMarker))})},Xe.prototype.colorChanged=function(Fe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Fe,this.settings.defaultStrokeColor=Fe)},Xe.prototype.fillColorChanged=function(Fe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Fe)},Xe.prototype.markerStateChanged=function(Fe){var Le=this;this.eventListeners.markerchange.forEach(function(Ze){return Ze(new Ct(Le,Fe))})},Xe.prototype.setCurrentMarker=function(Fe){var Le=this;this._currentMarker!==Fe&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Ze){return Ze(new Ct(Le,Le._currentMarker))})),this._currentMarker=Fe,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(Ze){return Ze(new Ct(Le,Le._currentMarker))}))},Xe.prototype.onPointerDown=function(Fe){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Fe.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var Le=this.markers.find(function(Ze){return Ze.ownsTarget(Fe.target)});Le!==void 0?(this.setCurrentMarker(Le),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Fe.clientX,Fe.clientY),Fe.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Fe.clientX,y:Fe.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Fe.clientX,Fe.clientY))},Xe.prototype.onDblClick=function(Fe){if(this._isFocused||this.focus(),this.mode==="select"){var Le=this.markers.find(function(Ze){return Ze.ownsTarget(Fe.target)});Le!==void 0&&Le!==this._currentMarker&&this.setCurrentMarker(Le),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Fe.clientX,Fe.clientY),Fe.target):this.setCurrentMarker()}},Xe.prototype.onPointerMove=function(Fe){this.touchPoints!==1&&Fe.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Fe.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Fe.clientX,Fe.clientY)):this.zoomLevel>1&&this.panTo({x:Fe.clientX,y:Fe.clientY}))},Xe.prototype.onPointerUp=function(Fe){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Fe.clientX,Fe.clientY)),this.isDragging=!1,this.addUndoStep()},Xe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Xe.prototype.onKeyUp=function(Fe){this._currentMarker===void 0||this.notesArea!==void 0||Fe.key!=="Delete"&&Fe.key!=="Backspace"||this.deleteSelectedMarker()},Xe.prototype.clientToLocalCoordinates=function(Fe,Le){var Ze=this.markerImage.getBoundingClientRect();return{x:(Fe-Ze.left)/this.zoomLevel,y:(Le-Ze.top)/this.zoomLevel}},Xe.prototype.onWindowResize=function(){this.positionUI()},Xe.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Fe=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Fe+"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()},Xe.prototype.addLicenseKey=function(Fe){ue.addKey(Fe)},Xe.prototype.addEventListener=function(Fe,Le){this.eventListeners.addEventListener(Fe,Le)},Xe.prototype.removeEventListener=function(Fe,Le){this.eventListeners.removeEventListener(Fe,Le)},Xe.prototype.renderState=function(Fe){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Fe),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Xe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Xe.prototype.focus=function(){var Fe=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(Le){return Le(new gt(Fe))}))},Xe.prototype.blur=function(){var Fe=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Le){return Le(new gt(Fe))}))},Xe.instanceCounter=0,Xe}()},6551:function(Yn,en,Ce){"use strict";Ce.d(en,{ZP:function(){return ue}});var te=Ce(72190),Ye=Ce(59301),Me=Ce(47273),pe=0,Oe=(0,Me.Z)();function ve(){var fe;return Oe?(fe=pe,pe+=1):fe="TEST_OR_SSR",fe}function ue(fe){var he=Ye.useState(),le=(0,te.Z)(he,2),ae=le[0],ie=le[1];return Ye.useEffect(function(){ie("rc_select_".concat(ve()))},[]),fe||ae}},37463:function(Yn,en,Ce){"use strict";Ce.d(en,{Ac:function(){return an},Xo:function(){return Jt},Wx:function(){return rn},ZP:function(){return tr},lk:function(){return de}});var te=Ce(60499),Ye=Ce(77654),Me=Ce(18642),pe=Ce(85899),Oe=Ce(72190),ve=Ce(42244),ue=Ce(43749),fe=Ce(18929),he=Ce(48736),le=Ce(59301),ae=Ce(92310),ie=Ce.n(ae),me=Ce(34280),E=Ce(49658),b=Ce(8654),z=function(Gt){var Rt=Gt.className,jt=Gt.customizeIcon,Mt=Gt.customizeIconProps,Kt=Gt.children,yt=Gt.onMouseDown,qt=Gt.onClick,vn=typeof jt=="function"?jt(Mt):jt;return le.createElement("span",{className:Rt,onMouseDown:function(It){It.preventDefault(),yt==null||yt(It)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:qt,"aria-hidden":!0},vn!==void 0?vn:le.createElement("span",{className:ie()(Rt.split(/\s+/).map(function(Tt){return"".concat(Tt,"-icon")}))},Kt))},ne=z,oe=function(Gt,Rt,jt,Mt,Kt){var yt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,qt=arguments.length>6?arguments[6]:void 0,vn=arguments.length>7?arguments[7]:void 0,Tt=le.useMemo(function(){if((0,ue.Z)(Mt)==="object")return Mt.clearIcon;if(Kt)return Kt},[Mt,Kt]),It=le.useMemo(function(){return!!(!yt&&Mt&&(jt.length||qt)&&!(vn==="combobox"&&qt===""))},[Mt,yt,jt.length,qt,vn]);return{allowClear:It,clearIcon:le.createElement(ne,{className:"".concat(Gt,"-clear"),onMouseDown:Rt,customizeIcon:Tt},"\xD7")}},se=le.createContext(null);function de(){return le.useContext(se)}function a(){var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Gt=le.useState(!1),Rt=(0,Oe.Z)(Gt,2),jt=Rt[0],Mt=Rt[1],Kt=le.useRef(null),yt=function(){window.clearTimeout(Kt.current)};le.useEffect(function(){return yt},[]);var qt=function(Tt,It){yt(),Kt.current=window.setTimeout(function(){Mt(Tt),It&&It()},Vt)};return[jt,qt,yt]}function x(){var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Gt=le.useRef(null),Rt=le.useRef(null);le.useEffect(function(){return function(){window.clearTimeout(Rt.current)}},[]);function jt(Mt){(Mt||Gt.current===null)&&(Gt.current=Mt),window.clearTimeout(Rt.current),Rt.current=window.setTimeout(function(){Gt.current=null},Vt)}return[function(){return Gt.current},jt]}function re(Vt,Gt,Rt,jt){var Mt=le.useRef(null);Mt.current={open:Gt,triggerOpen:Rt,customizedTrigger:jt},le.useEffect(function(){function Kt(yt){var qt;if(!((qt=Mt.current)!==null&&qt!==void 0&&qt.customizedTrigger)){var vn=yt.target;vn.shadowRoot&&yt.composed&&(vn=yt.composedPath()[0]||vn),Mt.current.open&&Vt().filter(function(Tt){return Tt}).every(function(Tt){return!Tt.contains(vn)&&Tt!==vn})&&Mt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Kt),function(){return window.removeEventListener("mousedown",Kt)}},[])}var ce=Ce(10228);function ge(Vt){return Vt&&![ce.Z.ESC,ce.Z.SHIFT,ce.Z.BACKSPACE,ce.Z.TAB,ce.Z.WIN_KEY,ce.Z.ALT,ce.Z.META,ce.Z.WIN_KEY_RIGHT,ce.Z.CTRL,ce.Z.SEMICOLON,ce.Z.EQUALS,ce.Z.CAPS_LOCK,ce.Z.CONTEXT_MENU,ce.Z.F1,ce.Z.F2,ce.Z.F3,ce.Z.F4,ce.Z.F5,ce.Z.F6,ce.Z.F7,ce.Z.F8,ce.Z.F9,ce.Z.F10,ce.Z.F11,ce.Z.F12].includes(Vt)}var _e=Ce(26112),ye=Ce(83836);function be(Vt,Gt,Rt){var jt=(0,pe.Z)((0,pe.Z)({},Vt),Rt?Gt:{});return Object.keys(Gt).forEach(function(Mt){var Kt=Gt[Mt];typeof Kt=="function"&&(jt[Mt]=function(){for(var yt,qt=arguments.length,vn=new Array(qt),Tt=0;Tt<qt;Tt++)vn[Tt]=arguments[Tt];return Kt.apply(void 0,vn),(yt=Vt[Mt])===null||yt===void 0?void 0:yt.call.apply(yt,[Vt].concat(vn))})}),jt}var Se=be,Be=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Ae=function(Gt,Rt){var jt=Gt.prefixCls,Mt=Gt.id,Kt=Gt.inputElement,yt=Gt.autoFocus,qt=Gt.autoComplete,vn=Gt.editable,Tt=Gt.activeDescendantId,It=Gt.value,Dt=Gt.open,Bt=Gt.attrs,Zt=(0,ve.Z)(Gt,Be),tn=Kt||le.createElement("input",null),Tn=tn,Fn=Tn.ref,dr=Tn.props;return(0,he.Kp)(!("maxLength"in tn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),tn=le.cloneElement(tn,(0,pe.Z)((0,pe.Z)((0,pe.Z)({type:"search"},Se(Zt,dr,!0)),{},{id:Mt,ref:(0,b.sQ)(Rt,Fn),autoComplete:qt||"off",autoFocus:yt,className:ie()("".concat(jt,"-selection-search-input"),dr==null?void 0:dr.className),role:"combobox","aria-expanded":Dt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Mt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Mt,"_list"),"aria-activedescendant":Dt?Tt:void 0},Bt),{},{value:vn?It:"",readOnly:!vn,unselectable:vn?null:"on",style:(0,pe.Z)((0,pe.Z)({},dr.style),{},{opacity:vn?null:0})})),tn},we=le.forwardRef(Ae),Ue=we;function Pe(Vt){return Array.isArray(Vt)?Vt:Vt!==void 0?[Vt]:[]}var ze=typeof window!="undefined"&&window.document&&window.document.documentElement,Ke=ze;function Ne(Vt){return Vt!=null}function Re(Vt){return!Vt&&Vt!==0}function $e(Vt){return["string","number"].includes((0,ue.Z)(Vt))}function nt(Vt){var Gt=void 0;return Vt&&($e(Vt.title)?Gt=Vt.title.toString():$e(Vt.label)&&(Gt=Vt.label.toString())),Gt}function ut(Vt,Gt){Ke?le.useLayoutEffect(Vt,Gt):le.useEffect(Vt,Gt)}function Qe(Vt){var Gt;return(Gt=Vt.key)!==null&&Gt!==void 0?Gt:Vt.value}var rt=function(Gt){Gt.preventDefault(),Gt.stopPropagation()},pt=function(Gt){var Rt=Gt.id,jt=Gt.prefixCls,Mt=Gt.values,Kt=Gt.open,yt=Gt.searchValue,qt=Gt.autoClearSearchValue,vn=Gt.inputRef,Tt=Gt.placeholder,It=Gt.disabled,Dt=Gt.mode,Bt=Gt.showSearch,Zt=Gt.autoFocus,tn=Gt.autoComplete,Tn=Gt.activeDescendantId,Fn=Gt.tabIndex,dr=Gt.removeIcon,_r=Gt.maxTagCount,Kr=Gt.maxTagTextLength,Sr=Gt.maxTagPlaceholder,hr=Sr===void 0?function(Fr){return"+ ".concat(Fr.length," ...")}:Sr,Mr=Gt.tagRender,Br=Gt.onToggleOpen,Wr=Gt.onRemove,Jn=Gt.onInputChange,ii=Gt.onInputPaste,Ur=Gt.onInputKeyDown,Gr=Gt.onInputMouseDown,qr=Gt.onInputCompositionStart,Li=Gt.onInputCompositionEnd,wi=Gt.onInputBlur,ui=le.useRef(null),Qr=(0,le.useState)(0),Di=(0,Oe.Z)(Qr,2),oi=Di[0],di=Di[1],ci=(0,le.useState)(!1),ki=(0,Oe.Z)(ci,2),Ki=ki[0],ua=ki[1],kn="".concat(jt,"-selection"),qi=Kt||Dt==="multiple"&&qt===!1||Dt==="tags"?yt:"",Qi=Dt==="tags"||Dt==="multiple"&&qt===!1||Bt&&(Kt||Ki);ut(function(){di(ui.current.scrollWidth)},[qi]);var ra=function(or,ei,si,wr,Ir){return le.createElement("span",{title:nt(or),className:ie()("".concat(kn,"-item"),(0,Me.Z)({},"".concat(kn,"-item-disabled"),si))},le.createElement("span",{className:"".concat(kn,"-item-content")},ei),wr&&le.createElement(ne,{className:"".concat(kn,"-item-remove"),onMouseDown:rt,onClick:Ir,customizeIcon:dr},"\xD7"))},_i=function(or,ei,si,wr,Ir,Hr){var ri=function(Vn){rt(Vn),Br(!Kt)};return le.createElement("span",{onMouseDown:ri},Mr({label:ei,value:or,disabled:si,closable:wr,onClose:Ir,isMaxTag:!!Hr}))},Ti=function(or){var ei=or.disabled,si=or.label,wr=or.value,Ir=!It&&!ei,Hr=si;if(typeof Kr=="number"&&(typeof si=="string"||typeof si=="number")){var ri=String(Hr);ri.length>Kr&&(Hr="".concat(ri.slice(0,Kr),"..."))}var un=function(Sn){Sn&&Sn.stopPropagation(),Wr(or)};return typeof Mr=="function"?_i(wr,Hr,ei,Ir,un):ra(or,Hr,ei,Ir,un)},Xr=function(or){if(!Mt.length)return null;var ei=typeof hr=="function"?hr(or):hr;return typeof Mr=="function"?_i(void 0,ei,!1,!1,void 0,!0):ra({title:ei},ei,!1)},rr=le.createElement("div",{className:"".concat(kn,"-search"),style:{width:oi},onFocus:function(){ua(!0)},onBlur:function(){ua(!1)}},le.createElement(Ue,{ref:vn,open:Kt,prefixCls:jt,id:Rt,inputElement:null,disabled:It,autoFocus:Zt,autoComplete:tn,editable:Qi,activeDescendantId:Tn,value:qi,onKeyDown:Ur,onMouseDown:Gr,onChange:Jn,onPaste:ii,onCompositionStart:qr,onCompositionEnd:Li,onBlur:wi,tabIndex:Fn,attrs:(0,_e.Z)(Gt,!0)}),le.createElement("span",{ref:ui,className:"".concat(kn,"-search-mirror"),"aria-hidden":!0},qi,"\xA0")),Dr=le.createElement(ye.Z,{prefixCls:"".concat(kn,"-overflow"),data:Mt,renderItem:Ti,renderRest:Xr,suffix:rr,itemKey:Qe,maxCount:_r});return le.createElement("span",{className:"".concat(kn,"-wrap")},Dr,!Mt.length&&!qi&&le.createElement("span",{className:"".concat(kn,"-placeholder")},Tt))},At=pt,gt=function(Gt){var Rt=Gt.inputElement,jt=Gt.prefixCls,Mt=Gt.id,Kt=Gt.inputRef,yt=Gt.disabled,qt=Gt.autoFocus,vn=Gt.autoComplete,Tt=Gt.activeDescendantId,It=Gt.mode,Dt=Gt.open,Bt=Gt.values,Zt=Gt.placeholder,tn=Gt.tabIndex,Tn=Gt.showSearch,Fn=Gt.searchValue,dr=Gt.activeValue,_r=Gt.maxLength,Kr=Gt.onInputKeyDown,Sr=Gt.onInputMouseDown,hr=Gt.onInputChange,Mr=Gt.onInputPaste,Br=Gt.onInputCompositionStart,Wr=Gt.onInputCompositionEnd,Jn=Gt.onInputBlur,ii=Gt.title,Ur=le.useState(!1),Gr=(0,Oe.Z)(Ur,2),qr=Gr[0],Li=Gr[1],wi=It==="combobox",ui=wi||Tn,Qr=Bt[0],Di=Fn||"";wi&&dr&&!qr&&(Di=dr),le.useEffect(function(){wi&&Li(!1)},[wi,dr]);var oi=It!=="combobox"&&!Dt&&!Tn?!1:!!Di,di=ii===void 0?nt(Qr):ii,ci=le.useMemo(function(){return Qr?null:le.createElement("span",{className:"".concat(jt,"-selection-placeholder"),style:oi?{visibility:"hidden"}:void 0},Zt)},[Qr,oi,Zt,jt]);return le.createElement("span",{className:"".concat(jt,"-selection-wrap")},le.createElement("span",{className:"".concat(jt,"-selection-search")},le.createElement(Ue,{ref:Kt,prefixCls:jt,id:Mt,open:Dt,inputElement:Rt,disabled:yt,autoFocus:qt,autoComplete:vn,editable:ui,activeDescendantId:Tt,value:Di,onKeyDown:Kr,onMouseDown:Sr,onChange:function(Ki){Li(!0),hr(Ki)},onPaste:Mr,onCompositionStart:Br,onCompositionEnd:Wr,onBlur:Jn,tabIndex:tn,attrs:(0,_e.Z)(Gt,!0),maxLength:wi?_r:void 0})),!wi&&Qr?le.createElement("span",{className:"".concat(jt,"-selection-item"),title:di,style:oi?{visibility:"hidden"}:void 0},Qr.label):null,ci)},Ft=gt,Ct=function(Gt,Rt){var jt=(0,le.useRef)(null),Mt=(0,le.useRef)(!1),Kt=Gt.prefixCls,yt=Gt.open,qt=Gt.mode,vn=Gt.showSearch,Tt=Gt.tokenWithEnter,It=Gt.disabled,Dt=Gt.prefix,Bt=Gt.autoClearSearchValue,Zt=Gt.onSearch,tn=Gt.onSearchSubmit,Tn=Gt.onToggleOpen,Fn=Gt.onInputKeyDown,dr=Gt.onInputBlur,_r=Gt.domRef;le.useImperativeHandle(Rt,function(){return{focus:function(di){jt.current.focus(di)},blur:function(){jt.current.blur()}}});var Kr=x(0),Sr=(0,Oe.Z)(Kr,2),hr=Sr[0],Mr=Sr[1],Br=function(di){var ci=di.which,ki=jt.current instanceof HTMLTextAreaElement;!ki&&yt&&(ci===ce.Z.UP||ci===ce.Z.DOWN)&&di.preventDefault(),Fn&&Fn(di),ci===ce.Z.ENTER&&qt==="tags"&&!Mt.current&&!yt&&(tn==null||tn(di.target.value)),!(ki&&!yt&&~[ce.Z.UP,ce.Z.DOWN,ce.Z.LEFT,ce.Z.RIGHT].indexOf(ci))&&ge(ci)&&Tn(!0)},Wr=function(){Mr(!0)},Jn=(0,le.useRef)(null),ii=function(di){Zt(di,!0,Mt.current)!==!1&&Tn(!0)},Ur=function(){Mt.current=!0},Gr=function(di){Mt.current=!1,qt!=="combobox"&&ii(di.target.value)},qr=function(di){var ci=di.target.value;if(Tt&&Jn.current&&/[\r\n]/.test(Jn.current)){var ki=Jn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");ci=ci.replace(ki,Jn.current)}Jn.current=null,ii(ci)},Li=function(di){var ci=di.clipboardData,ki=ci==null?void 0:ci.getData("text");Jn.current=ki||""},wi=function(di){var ci=di.target;if(ci!==jt.current){var ki=document.body.style.msTouchAction!==void 0;ki?setTimeout(function(){jt.current.focus()}):jt.current.focus()}},ui=function(di){var ci=hr();di.target!==jt.current&&!ci&&!(qt==="combobox"&&It)&&di.preventDefault(),(qt!=="combobox"&&(!vn||!ci)||!yt)&&(yt&&Bt!==!1&&Zt("",!0,!1),Tn())},Qr={inputRef:jt,onInputKeyDown:Br,onInputMouseDown:Wr,onInputChange:qr,onInputPaste:Li,onInputCompositionStart:Ur,onInputCompositionEnd:Gr,onInputBlur:dr},Di=qt==="multiple"||qt==="tags"?le.createElement(At,(0,te.Z)({},Gt,Qr)):le.createElement(Ft,(0,te.Z)({},Gt,Qr));return le.createElement("div",{ref:_r,className:"".concat(Kt,"-selector"),onClick:wi,onMouseDown:ui},Dt&&le.createElement("div",{className:"".concat(Kt,"-prefix")},Dt),Di)},Yt=le.forwardRef(Ct),zt=Yt,Xe=Ce(68196),Fe=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Le=function(Gt){var Rt=Gt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Rt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Rt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Rt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Rt,adjustY:1},htmlRegion:"scroll"}}},Ze=function(Gt,Rt){var jt=Gt.prefixCls,Mt=Gt.disabled,Kt=Gt.visible,yt=Gt.children,qt=Gt.popupElement,vn=Gt.animation,Tt=Gt.transitionName,It=Gt.dropdownStyle,Dt=Gt.dropdownClassName,Bt=Gt.direction,Zt=Bt===void 0?"ltr":Bt,tn=Gt.placement,Tn=Gt.builtinPlacements,Fn=Gt.dropdownMatchSelectWidth,dr=Gt.dropdownRender,_r=Gt.dropdownAlign,Kr=Gt.getPopupContainer,Sr=Gt.empty,hr=Gt.getTriggerDOMNode,Mr=Gt.onPopupVisibleChange,Br=Gt.onPopupMouseEnter,Wr=(0,ve.Z)(Gt,Fe),Jn="".concat(jt,"-dropdown"),ii=qt;dr&&(ii=dr(qt));var Ur=le.useMemo(function(){return Tn||Le(Fn)},[Tn,Fn]),Gr=vn?"".concat(Jn,"-").concat(vn):Tt,qr=typeof Fn=="number",Li=le.useMemo(function(){return qr?null:Fn===!1?"minWidth":"width"},[Fn,qr]),wi=It;qr&&(wi=(0,pe.Z)((0,pe.Z)({},wi),{},{width:Fn}));var ui=le.useRef(null);return le.useImperativeHandle(Rt,function(){return{getPopupElement:function(){var Di;return(Di=ui.current)===null||Di===void 0?void 0:Di.popupElement}}}),le.createElement(Xe.Z,(0,te.Z)({},Wr,{showAction:Mr?["click"]:[],hideAction:Mr?["click"]:[],popupPlacement:tn||(Zt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ur,prefixCls:Jn,popupTransitionName:Gr,popup:le.createElement("div",{onMouseEnter:Br},ii),ref:ui,stretch:Li,popupAlign:_r,popupVisible:Kt,getPopupContainer:Kr,popupClassName:ie()(Dt,(0,Me.Z)({},"".concat(Jn,"-empty"),Sr)),popupStyle:wi,getTriggerDOMNode:hr,onPopupVisibleChange:Mr}),yt)},et=le.forwardRef(Ze),He=et,We=Ce(48745);function tt(Vt,Gt){var Rt=Vt.key,jt;return"value"in Vt&&(jt=Vt.value),Rt!=null?Rt:jt!==void 0?jt:"rc-index-key-".concat(Gt)}function at(Vt){return typeof Vt!="undefined"&&!Number.isNaN(Vt)}function ot(Vt,Gt){var Rt=Vt||{},jt=Rt.label,Mt=Rt.value,Kt=Rt.options,yt=Rt.groupLabel,qt=jt||(Gt?"children":"label");return{label:qt,value:Mt||"value",options:Kt||"options",groupLabel:yt||qt}}function ct(Vt){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Rt=Gt.fieldNames,jt=Gt.childrenAsData,Mt=[],Kt=ot(Rt,!1),yt=Kt.label,qt=Kt.value,vn=Kt.options,Tt=Kt.groupLabel;function It(Dt,Bt){Array.isArray(Dt)&&Dt.forEach(function(Zt){if(Bt||!(vn in Zt)){var tn=Zt[qt];Mt.push({key:tt(Zt,Mt.length),groupOption:Bt,data:Zt,label:Zt[yt],value:tn})}else{var Tn=Zt[Tt];Tn===void 0&&jt&&(Tn=Zt.label),Mt.push({key:tt(Zt,Mt.length),group:!0,data:Zt,label:Tn}),It(Zt[vn],!0)}})}return It(Vt,!1),Mt}function lt(Vt){var Gt=(0,pe.Z)({},Vt);return"props"in Gt||Object.defineProperty(Gt,"props",{get:function(){return(0,he.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Gt}}),Gt}var mt=function(Gt,Rt,jt){if(!Rt||!Rt.length)return null;var Mt=!1,Kt=function qt(vn,Tt){var It=(0,We.Z)(Tt),Dt=It[0],Bt=It.slice(1);if(!Dt)return[vn];var Zt=vn.split(Dt);return Mt=Mt||Zt.length>1,Zt.reduce(function(tn,Tn){return[].concat((0,Ye.Z)(tn),(0,Ye.Z)(qt(Tn,Bt)))},[]).filter(Boolean)},yt=Kt(Gt,Rt);return Mt?typeof jt!="undefined"?yt.slice(0,jt):yt:null},Lt=le.createContext(null),ft=Lt;function St(Vt){var Gt=Vt.visible,Rt=Vt.values;if(!Gt)return null;var jt=50;return le.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Rt.slice(0,jt).map(function(Mt){var Kt=Mt.label,yt=Mt.value;return["number","string"].includes((0,ue.Z)(Kt))?Kt:yt}).join(", ")),Rt.length>jt?", ...":null)}var nn=["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"],on=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],yn=function(Gt){return Gt==="tags"||Gt==="multiple"},xn=le.forwardRef(function(Vt,Gt){var Rt,jt=Vt.id,Mt=Vt.prefixCls,Kt=Vt.className,yt=Vt.showSearch,qt=Vt.tagRender,vn=Vt.direction,Tt=Vt.omitDomProps,It=Vt.displayValues,Dt=Vt.onDisplayValuesChange,Bt=Vt.emptyOptions,Zt=Vt.notFoundContent,tn=Zt===void 0?"Not Found":Zt,Tn=Vt.onClear,Fn=Vt.mode,dr=Vt.disabled,_r=Vt.loading,Kr=Vt.getInputElement,Sr=Vt.getRawInputElement,hr=Vt.open,Mr=Vt.defaultOpen,Br=Vt.onDropdownVisibleChange,Wr=Vt.activeValue,Jn=Vt.onActiveValueChange,ii=Vt.activeDescendantId,Ur=Vt.searchValue,Gr=Vt.autoClearSearchValue,qr=Vt.onSearch,Li=Vt.onSearchSplit,wi=Vt.tokenSeparators,ui=Vt.allowClear,Qr=Vt.prefix,Di=Vt.suffixIcon,oi=Vt.clearIcon,di=Vt.OptionList,ci=Vt.animation,ki=Vt.transitionName,Ki=Vt.dropdownStyle,ua=Vt.dropdownClassName,kn=Vt.dropdownMatchSelectWidth,qi=Vt.dropdownRender,Qi=Vt.dropdownAlign,ra=Vt.placement,_i=Vt.builtinPlacements,Ti=Vt.getPopupContainer,Xr=Vt.showAction,rr=Xr===void 0?[]:Xr,Dr=Vt.onFocus,Fr=Vt.onBlur,or=Vt.onKeyUp,ei=Vt.onKeyDown,si=Vt.onMouseDown,wr=(0,ve.Z)(Vt,nn),Ir=yn(Fn),Hr=(yt!==void 0?yt:Ir)||Fn==="combobox",ri=(0,pe.Z)({},wr);on.forEach(function(Ri){delete ri[Ri]}),Tt==null||Tt.forEach(function(Ri){delete ri[Ri]});var un=le.useState(!1),Vn=(0,Oe.Z)(un,2),Sn=Vn[0],Rr=Vn[1];le.useEffect(function(){Rr((0,E.Z)())},[]);var ti=le.useRef(null),gn=le.useRef(null),mi=le.useRef(null),Nr=le.useRef(null),Ar=le.useRef(null),pi=le.useRef(!1),Gi=a(),gi=(0,Oe.Z)(Gi,3),Wi=gi[0],Jr=gi[1],li=gi[2];le.useImperativeHandle(Gt,function(){var Ri,hi;return{focus:(Ri=Nr.current)===null||Ri===void 0?void 0:Ri.focus,blur:(hi=Nr.current)===null||hi===void 0?void 0:hi.blur,scrollTo:function(za){var ga;return(ga=Ar.current)===null||ga===void 0?void 0:ga.scrollTo(za)},nativeElement:ti.current||gn.current}});var Zr=le.useMemo(function(){var Ri;if(Fn!=="combobox")return Ur;var hi=(Ri=It[0])===null||Ri===void 0?void 0:Ri.value;return typeof hi=="string"||typeof hi=="number"?String(hi):""},[Ur,Fn,It]),Vi=Fn==="combobox"&&typeof Kr=="function"&&Kr()||null,sa=typeof Sr=="function"&&Sr(),vi=(0,b.x1)(gn,sa==null||(Rt=sa.props)===null||Rt===void 0?void 0:Rt.ref),Ni=le.useState(!1),Ii=(0,Oe.Z)(Ni,2),Mi=Ii[0],fa=Ii[1];(0,me.Z)(function(){fa(!0)},[]);var ca=(0,fe.Z)(!1,{defaultValue:Mr,value:hr}),la=(0,Oe.Z)(ca,2),zi=la[0],Da=la[1],Ca=Mi?zi:!1,Ra=!tn&&Bt;(dr||Ra&&Ca&&Fn==="combobox")&&(Ca=!1);var to=Ra?!1:Ca,bi=le.useCallback(function(Ri){var hi=Ri!==void 0?Ri:!Ca;dr||(Da(hi),Ca!==hi&&(Br==null||Br(hi)))},[dr,Ca,Da,Br]),Yi=le.useMemo(function(){return(wi||[]).some(function(Ri){return[`
|
|
|
`,`\r
|
|
|
`].includes(Ri)})},[wi]),Ei=le.useContext(ft)||{},Ci=Ei.maxCount,kr=Ei.rawValues,Zi=function(hi,wa,za){if(!(Ir&&at(Ci)&&(kr==null?void 0:kr.size)>=Ci)){var ga=!0,ro=hi;Jn==null||Jn(null);var ka=mt(hi,wi,at(Ci)?Ci-kr.size:void 0),Co=za?null:ka;return Fn!=="combobox"&&Co&&(ro="",Li==null||Li(Co),bi(!1),ga=!1),qr&&Zr!==ro&&qr(ro,{source:wa?"typing":"effect"}),ga}},ma=function(hi){!hi||!hi.trim()||qr(hi,{source:"submit"})};le.useEffect(function(){!Ca&&!Ir&&Fn!=="combobox"&&Zi("",!1,!1)},[Ca]),le.useEffect(function(){zi&&dr&&Da(!1),dr&&!pi.current&&Jr(!1)},[dr]);var ba=x(),ir=(0,Oe.Z)(ba,2),Ji=ir[0],Va=ir[1],no=le.useRef(!1),Ya=function(hi){var wa=Ji(),za=hi.key,ga=za==="Enter";if(ga&&(Fn!=="combobox"&&hi.preventDefault(),Ca||bi(!0)),Va(!!Zr),za==="Backspace"&&!wa&&Ir&&!Zr&&It.length){for(var ro=(0,Ye.Z)(It),ka=null,Co=ro.length-1;Co>=0;Co-=1){var Qo=ro[Co];if(!Qo.disabled){ro.splice(Co,1),ka=Qo;break}}ka&&Dt(ro,{type:"remove",values:[ka]})}for(var Ro=arguments.length,Jo=new Array(Ro>1?Ro-1:0),wo=1;wo<Ro;wo++)Jo[wo-1]=arguments[wo];if(Ca&&(!ga||!no.current)){var Ns;ga&&(no.current=!0),(Ns=Ar.current)===null||Ns===void 0||Ns.onKeyDown.apply(Ns,[hi].concat(Jo))}ei==null||ei.apply(void 0,[hi].concat(Jo))},xi=function(hi){for(var wa=arguments.length,za=new Array(wa>1?wa-1:0),ga=1;ga<wa;ga++)za[ga-1]=arguments[ga];if(Ca){var ro;(ro=Ar.current)===null||ro===void 0||ro.onKeyUp.apply(ro,[hi].concat(za))}hi.key==="Enter"&&(no.current=!1),or==null||or.apply(void 0,[hi].concat(za))},pa=function(hi){var wa=It.filter(function(za){return za!==hi});Dt(wa,{type:"remove",values:[hi]})},_a=function(){no.current=!1},oa=le.useRef(!1),Wa=function(){Jr(!0),dr||(Dr&&!oa.current&&Dr.apply(void 0,arguments),rr.includes("focus")&&bi(!0)),oa.current=!0},Ka=function(){pi.current=!0,Jr(!1,function(){oa.current=!1,pi.current=!1,bi(!1)}),!dr&&(Zr&&(Fn==="tags"?qr(Zr,{source:"submit"}):Fn==="multiple"&&qr("",{source:"blur"})),Fr&&Fr.apply(void 0,arguments))},fo=[];le.useEffect(function(){return function(){fo.forEach(function(Ri){return clearTimeout(Ri)}),fo.splice(0,fo.length)}},[]);var Eo=function(hi){var wa,za=hi.target,ga=(wa=mi.current)===null||wa===void 0?void 0:wa.getPopupElement();if(ga&&ga.contains(za)){var ro=setTimeout(function(){var Ro=fo.indexOf(ro);if(Ro!==-1&&fo.splice(Ro,1),li(),!Sn&&!ga.contains(document.activeElement)){var Jo;(Jo=Nr.current)===null||Jo===void 0||Jo.focus()}});fo.push(ro)}for(var ka=arguments.length,Co=new Array(ka>1?ka-1:0),Qo=1;Qo<ka;Qo++)Co[Qo-1]=arguments[Qo];si==null||si.apply(void 0,[hi].concat(Co))},io=le.useState({}),ao=(0,Oe.Z)(io,2),Ba=ao[1];function Fa(){Ba({})}var Wo;sa&&(Wo=function(hi){bi(hi)}),re(function(){var Ri;return[ti.current,(Ri=mi.current)===null||Ri===void 0?void 0:Ri.getPopupElement()]},to,bi,!!sa);var Ta=le.useMemo(function(){return(0,pe.Z)((0,pe.Z)({},Vt),{},{notFoundContent:tn,open:Ca,triggerOpen:to,id:jt,showSearch:Hr,multiple:Ir,toggleOpen:bi})},[Vt,tn,to,Ca,jt,Hr,Ir,bi]),Oo=!!Di||_r,Do;Oo&&(Do=le.createElement(ne,{className:ie()("".concat(Mt,"-arrow"),(0,Me.Z)({},"".concat(Mt,"-arrow-loading"),_r)),customizeIcon:Di,customizeIconProps:{loading:_r,searchValue:Zr,open:Ca,focused:Wi,showSearch:Hr}}));var Xi=function(){var hi;Tn==null||Tn(),(hi=Nr.current)===null||hi===void 0||hi.focus(),Dt([],{type:"clear",values:It}),Zi("",!1,!1)},Pi=oe(Mt,Xi,It,ui,oi,dr,Zr,Fn),lo=Pi.allowClear,Qa=Pi.clearIcon,Ja=le.createElement(di,{ref:Ar}),zr=ie()(Mt,Kt,(0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)({},"".concat(Mt,"-focused"),Wi),"".concat(Mt,"-multiple"),Ir),"".concat(Mt,"-single"),!Ir),"".concat(Mt,"-allow-clear"),ui),"".concat(Mt,"-show-arrow"),Oo),"".concat(Mt,"-disabled"),dr),"".concat(Mt,"-loading"),_r),"".concat(Mt,"-open"),Ca),"".concat(Mt,"-customize-input"),Vi),"".concat(Mt,"-show-search"),Hr)),fi=le.createElement(He,{ref:mi,disabled:dr,prefixCls:Mt,visible:to,popupElement:Ja,animation:ci,transitionName:ki,dropdownStyle:Ki,dropdownClassName:ua,direction:vn,dropdownMatchSelectWidth:kn,dropdownRender:qi,dropdownAlign:Qi,placement:ra,builtinPlacements:_i,getPopupContainer:Ti,empty:Bt,getTriggerDOMNode:function(hi){return gn.current||hi},onPopupVisibleChange:Wo,onPopupMouseEnter:Fa},sa?le.cloneElement(sa,{ref:vi}):le.createElement(zt,(0,te.Z)({},Vt,{domRef:gn,prefixCls:Mt,inputElement:Vi,ref:Nr,id:jt,prefix:Qr,showSearch:Hr,autoClearSearchValue:Gr,mode:Fn,activeDescendantId:ii,tagRender:qt,values:It,open:Ca,onToggleOpen:bi,activeValue:Wr,searchValue:Zr,onSearch:Zi,onSearchSubmit:ma,onRemove:pa,tokenWithEnter:Yi,onInputBlur:_a}))),Sa;return sa?Sa=fi:Sa=le.createElement("div",(0,te.Z)({className:zr},ri,{ref:ti,onMouseDown:Eo,onKeyDown:Ya,onKeyUp:xi,onFocus:Wa,onBlur:Ka}),le.createElement(St,{visible:Wi&&!Ca,values:It}),fi,Do,lo&&Qa),le.createElement(se.Provider,{value:Ta},Sa)}),an=xn,An=function(){return null};An.isSelectOptGroup=!0;var Jt=An,Ut=function(){return null};Ut.isSelectOption=!0;var rn=Ut,_n=Ce(80547),Bn=Ce(2738),kt=Ce(48911);function ln(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Cn=["disabled","title","children","style","className"];function Mn(Vt){return typeof Vt=="string"||typeof Vt=="number"}var Qn=function(Gt,Rt){var jt=de(),Mt=jt.prefixCls,Kt=jt.id,yt=jt.open,qt=jt.multiple,vn=jt.mode,Tt=jt.searchValue,It=jt.toggleOpen,Dt=jt.notFoundContent,Bt=jt.onPopupScroll,Zt=le.useContext(ft),tn=Zt.maxCount,Tn=Zt.flattenOptions,Fn=Zt.onActiveValue,dr=Zt.defaultActiveFirstOption,_r=Zt.onSelect,Kr=Zt.menuItemSelectedIcon,Sr=Zt.rawValues,hr=Zt.fieldNames,Mr=Zt.virtual,Br=Zt.direction,Wr=Zt.listHeight,Jn=Zt.listItemHeight,ii=Zt.optionRender,Ur="".concat(Mt,"-item"),Gr=(0,_n.Z)(function(){return Tn},[yt,Tn],function(Xr,rr){return rr[0]&&Xr[1]!==rr[1]}),qr=le.useRef(null),Li=le.useMemo(function(){return qt&&at(tn)&&(Sr==null?void 0:Sr.size)>=tn},[qt,tn,Sr==null?void 0:Sr.size]),wi=function(rr){rr.preventDefault()},ui=function(rr){var Dr;(Dr=qr.current)===null||Dr===void 0||Dr.scrollTo(typeof rr=="number"?{index:rr}:rr)},Qr=le.useCallback(function(Xr){return vn==="combobox"?!1:Sr.has(Xr)},[vn,(0,Ye.Z)(Sr).toString(),Sr.size]),Di=function(rr){for(var Dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Fr=Gr.length,or=0;or<Fr;or+=1){var ei=(rr+or*Dr+Fr)%Fr,si=Gr[ei]||{},wr=si.group,Ir=si.data;if(!wr&&!(Ir!=null&&Ir.disabled)&&(Qr(Ir.value)||!Li))return ei}return-1},oi=le.useState(function(){return Di(0)}),di=(0,Oe.Z)(oi,2),ci=di[0],ki=di[1],Ki=function(rr){var Dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ki(rr);var Fr={source:Dr?"keyboard":"mouse"},or=Gr[rr];if(!or){Fn(null,-1,Fr);return}Fn(or.value,rr,Fr)};(0,le.useEffect)(function(){Ki(dr!==!1?Di(0):-1)},[Gr.length,Tt]);var ua=le.useCallback(function(Xr){return vn==="combobox"?String(Xr).toLowerCase()===Tt.toLowerCase():Sr.has(Xr)},[vn,Tt,(0,Ye.Z)(Sr).toString(),Sr.size]);(0,le.useEffect)(function(){var Xr=setTimeout(function(){if(!qt&&yt&&Sr.size===1){var Dr=Array.from(Sr)[0],Fr=Gr.findIndex(function(or){var ei=or.data;return Tt?String(ei.value).startsWith(Tt):ei.value===Dr});Fr!==-1&&(Ki(Fr),ui(Fr))}});if(yt){var rr;(rr=qr.current)===null||rr===void 0||rr.scrollTo(void 0)}return function(){return clearTimeout(Xr)}},[yt,Tt]);var kn=function(rr){rr!==void 0&&_r(rr,{selected:!Sr.has(rr)}),qt||It(!1)};if(le.useImperativeHandle(Rt,function(){return{onKeyDown:function(rr){var Dr=rr.which,Fr=rr.ctrlKey;switch(Dr){case ce.Z.N:case ce.Z.P:case ce.Z.UP:case ce.Z.DOWN:{var or=0;if(Dr===ce.Z.UP?or=-1:Dr===ce.Z.DOWN?or=1:ln()&&Fr&&(Dr===ce.Z.N?or=1:Dr===ce.Z.P&&(or=-1)),or!==0){var ei=Di(ci+or,or);ui(ei),Ki(ei,!0)}break}case ce.Z.TAB:case ce.Z.ENTER:{var si,wr=Gr[ci];wr&&!(wr!=null&&(si=wr.data)!==null&&si!==void 0&&si.disabled)&&!Li?kn(wr.value):kn(void 0),yt&&rr.preventDefault();break}case ce.Z.ESC:It(!1),yt&&rr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(rr){ui(rr)}}}),Gr.length===0)return le.createElement("div",{role:"listbox",id:"".concat(Kt,"_list"),className:"".concat(Ur,"-empty"),onMouseDown:wi},Dt);var qi=Object.keys(hr).map(function(Xr){return hr[Xr]}),Qi=function(rr){return rr.label};function ra(Xr,rr){var Dr=Xr.group;return{role:Dr?"presentation":"option",id:"".concat(Kt,"_list_").concat(rr)}}var _i=function(rr){var Dr=Gr[rr];if(!Dr)return null;var Fr=Dr.data||{},or=Fr.value,ei=Dr.group,si=(0,_e.Z)(Fr,!0),wr=Qi(Dr);return Dr?le.createElement("div",(0,te.Z)({"aria-label":typeof wr=="string"&&!ei?wr:null},si,{key:rr},ra(Dr,rr),{"aria-selected":ua(or)}),or):null},Ti={role:"listbox",id:"".concat(Kt,"_list")};return le.createElement(le.Fragment,null,Mr&&le.createElement("div",(0,te.Z)({},Ti,{style:{height:0,width:0,overflow:"hidden"}}),_i(ci-1),_i(ci),_i(ci+1)),le.createElement(kt.Z,{itemKey:"key",ref:qr,data:Gr,height:Wr,itemHeight:Jn,fullHeight:!1,onMouseDown:wi,onScroll:Bt,virtual:Mr,direction:Br,innerProps:Mr?null:Ti},function(Xr,rr){var Dr=Xr.group,Fr=Xr.groupOption,or=Xr.data,ei=Xr.label,si=Xr.value,wr=or.key;if(Dr){var Ir,Hr=(Ir=or.title)!==null&&Ir!==void 0?Ir:Mn(ei)?ei.toString():void 0;return le.createElement("div",{className:ie()(Ur,"".concat(Ur,"-group"),or.className),title:Hr},ei!==void 0?ei:wr)}var ri=or.disabled,un=or.title,Vn=or.children,Sn=or.style,Rr=or.className,ti=(0,ve.Z)(or,Cn),gn=(0,Bn.Z)(ti,qi),mi=Qr(si),Nr=ri||!mi&&Li,Ar="".concat(Ur,"-option"),pi=ie()(Ur,Ar,Rr,(0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)({},"".concat(Ar,"-grouped"),Fr),"".concat(Ar,"-active"),ci===rr&&!Nr),"".concat(Ar,"-disabled"),Nr),"".concat(Ar,"-selected"),mi)),Gi=Qi(Xr),gi=!Kr||typeof Kr=="function"||mi,Wi=typeof Gi=="number"?Gi:Gi||si,Jr=Mn(Wi)?Wi.toString():void 0;return un!==void 0&&(Jr=un),le.createElement("div",(0,te.Z)({},(0,_e.Z)(gn),Mr?{}:ra(Xr,rr),{"aria-selected":ua(si),className:pi,title:Jr,onMouseMove:function(){ci===rr||Nr||Ki(rr)},onClick:function(){Nr||kn(si)},style:Sn}),le.createElement("div",{className:"".concat(Ar,"-content")},typeof ii=="function"?ii(Xr,{index:rr}):Wi),le.isValidElement(Kr)||mi,gi&&le.createElement(ne,{className:"".concat(Ur,"-option-state"),customizeIcon:Kr,customizeIconProps:{value:si,disabled:Nr,isSelected:mi}},mi?"\u2713":null))}))},mr=le.forwardRef(Qn),lr=mr,Cr=function(Vt,Gt){var Rt=le.useRef({values:new Map,options:new Map}),jt=le.useMemo(function(){var Kt=Rt.current,yt=Kt.values,qt=Kt.options,vn=Vt.map(function(Dt){if(Dt.label===void 0){var Bt;return(0,pe.Z)((0,pe.Z)({},Dt),{},{label:(Bt=yt.get(Dt.value))===null||Bt===void 0?void 0:Bt.label})}return Dt}),Tt=new Map,It=new Map;return vn.forEach(function(Dt){Tt.set(Dt.value,Dt),It.set(Dt.value,Gt.get(Dt.value)||qt.get(Dt.value))}),Rt.current.values=Tt,Rt.current.options=It,vn},[Vt,Gt]),Mt=le.useCallback(function(Kt){return Gt.get(Kt)||Rt.current.options.get(Kt)},[Gt]);return[jt,Mt]};function nr(Vt,Gt){return Pe(Vt).join("").toUpperCase().includes(Gt)}var ur=function(Vt,Gt,Rt,jt,Mt){return le.useMemo(function(){if(!Rt||jt===!1)return Vt;var Kt=Gt.options,yt=Gt.label,qt=Gt.value,vn=[],Tt=typeof jt=="function",It=Rt.toUpperCase(),Dt=Tt?jt:function(Zt,tn){return Mt?nr(tn[Mt],It):tn[Kt]?nr(tn[yt!=="children"?yt:"label"],It):nr(tn[qt],It)},Bt=Tt?function(Zt){return lt(Zt)}:function(Zt){return Zt};return Vt.forEach(function(Zt){if(Zt[Kt]){var tn=Dt(Rt,Bt(Zt));if(tn)vn.push(Zt);else{var Tn=Zt[Kt].filter(function(Fn){return Dt(Rt,Bt(Fn))});Tn.length&&vn.push((0,pe.Z)((0,pe.Z)({},Zt),{},(0,Me.Z)({},Kt,Tn)))}return}Dt(Rt,Bt(Zt))&&vn.push(Zt)}),vn},[Vt,jt,Mt,Rt,Gt])},Nn=Ce(6551),In=Ce(11592),Wn=["children","value"],Kn=["children"];function Ln(Vt){var Gt=Vt,Rt=Gt.key,jt=Gt.props,Mt=jt.children,Kt=jt.value,yt=(0,ve.Z)(jt,Wn);return(0,pe.Z)({key:Rt,value:Kt!==void 0?Kt:Rt,children:Mt},yt)}function $n(Vt){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,In.Z)(Vt).map(function(Rt,jt){if(!le.isValidElement(Rt)||!Rt.type)return null;var Mt=Rt,Kt=Mt.type.isSelectOptGroup,yt=Mt.key,qt=Mt.props,vn=qt.children,Tt=(0,ve.Z)(qt,Kn);return Gt||!Kt?Ln(Rt):(0,pe.Z)((0,pe.Z)({key:"__RC_SELECT_GRP__".concat(yt===null?jt:yt,"__"),label:yt},Tt),{},{options:$n(vn)})}).filter(function(Rt){return Rt})}var ar=function(Gt,Rt,jt,Mt,Kt){return le.useMemo(function(){var yt=Gt,qt=!Gt;qt&&(yt=$n(Rt));var vn=new Map,Tt=new Map,It=function(Zt,tn,Tn){Tn&&typeof Tn=="string"&&Zt.set(tn[Tn],tn)},Dt=function Bt(Zt){for(var tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Tn=0;Tn<Zt.length;Tn+=1){var Fn=Zt[Tn];!Fn[jt.options]||tn?(vn.set(Fn[jt.value],Fn),It(Tt,Fn,jt.label),It(Tt,Fn,Mt),It(Tt,Fn,Kt)):Bt(Fn[jt.options],!0)}};return Dt(yt),{options:yt,valueOptions:vn,labelOptions:Tt}},[Gt,Rt,jt,Mt,Kt])},dn=ar;function Ie(Vt){var Gt=le.useRef();Gt.current=Vt;var Rt=le.useCallback(function(){return Gt.current.apply(Gt,arguments)},[]);return Rt}function je(Vt){var Gt=Vt.mode,Rt=Vt.options,jt=Vt.children,Mt=Vt.backfill,Kt=Vt.allowClear,yt=Vt.placeholder,qt=Vt.getInputElement,vn=Vt.showSearch,Tt=Vt.onSearch,It=Vt.defaultOpen,Dt=Vt.autoFocus,Bt=Vt.labelInValue,Zt=Vt.value,tn=Vt.inputValue,Tn=Vt.optionLabelProp,Fn=isMultiple(Gt),dr=vn!==void 0?vn:Fn||Gt==="combobox",_r=Rt||convertChildrenToData(jt);if(warning(Gt!=="tags"||_r.every(function(Mr){return!Mr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Gt==="tags"||Gt==="combobox"){var Kr=_r.some(function(Mr){return Mr.options?Mr.options.some(function(Br){return typeof("value"in Br?Br.value:Br.key)=="number"}):typeof("value"in Mr?Mr.value:Mr.key)=="number"});warning(!Kr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Gt!=="combobox"||!Tn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Gt==="combobox"||!Mt,"`backfill` only works with `combobox` mode."),warning(Gt==="combobox"||!qt,"`getInputElement` only work with `combobox` mode."),noteOnce(Gt!=="combobox"||!qt||!Kt||!yt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Tt&&!dr&&Gt!=="combobox"&&Gt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!It||Dt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Zt!=null){var Sr=toArray(Zt);warning(!Bt||Sr.every(function(Mr){return _typeof(Mr)==="object"&&("key"in Mr||"value"in Mr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Fn||Array.isArray(Zt),"`value` should be array when `mode` is `multiple` or `tags`")}if(jt){var hr=null;toNodeArray(jt).some(function(Mr){if(!React.isValidElement(Mr)||!Mr.type)return!1;var Br=Mr,Wr=Br.type;if(Wr.isSelectOption)return!1;if(Wr.isSelectOptGroup){var Jn=toNodeArray(Mr.props.children).every(function(ii){return!React.isValidElement(ii)||!Mr.type||ii.type.isSelectOption?!0:(hr=ii.type,!1)});return!Jn}return hr=Wr,!0}),hr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(hr.displayName||hr.name||hr,"`.")),warning(tn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Je(Vt,Gt){if(Vt){var Rt=function jt(Mt){for(var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,yt=0;yt<Mt.length;yt++){var qt=Mt[yt];if(qt[Gt==null?void 0:Gt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Kt&&Array.isArray(qt[Gt==null?void 0:Gt.options])&&jt(qt[Gt==null?void 0:Gt.options],!0))break}};Rt(Vt)}}var ht=null,Et=["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"],Qt=["inputValue"];function fn(Vt){return!Vt||(0,ue.Z)(Vt)!=="object"}var sn=le.forwardRef(function(Vt,Gt){var Rt=Vt.id,jt=Vt.mode,Mt=Vt.prefixCls,Kt=Mt===void 0?"rc-select":Mt,yt=Vt.backfill,qt=Vt.fieldNames,vn=Vt.inputValue,Tt=Vt.searchValue,It=Vt.onSearch,Dt=Vt.autoClearSearchValue,Bt=Dt===void 0?!0:Dt,Zt=Vt.onSelect,tn=Vt.onDeselect,Tn=Vt.dropdownMatchSelectWidth,Fn=Tn===void 0?!0:Tn,dr=Vt.filterOption,_r=Vt.filterSort,Kr=Vt.optionFilterProp,Sr=Vt.optionLabelProp,hr=Vt.options,Mr=Vt.optionRender,Br=Vt.children,Wr=Vt.defaultActiveFirstOption,Jn=Vt.menuItemSelectedIcon,ii=Vt.virtual,Ur=Vt.direction,Gr=Vt.listHeight,qr=Gr===void 0?200:Gr,Li=Vt.listItemHeight,wi=Li===void 0?20:Li,ui=Vt.labelRender,Qr=Vt.value,Di=Vt.defaultValue,oi=Vt.labelInValue,di=Vt.onChange,ci=Vt.maxCount,ki=(0,ve.Z)(Vt,Et),Ki=(0,Nn.ZP)(Rt),ua=yn(jt),kn=!!(!hr&&Br),qi=le.useMemo(function(){return dr===void 0&&jt==="combobox"?!1:dr},[dr,jt]),Qi=le.useMemo(function(){return ot(qt,kn)},[JSON.stringify(qt),kn]),ra=(0,fe.Z)("",{value:Tt!==void 0?Tt:vn,postState:function(Yi){return Yi||""}}),_i=(0,Oe.Z)(ra,2),Ti=_i[0],Xr=_i[1],rr=dn(hr,Br,Qi,Kr,Sr),Dr=rr.valueOptions,Fr=rr.labelOptions,or=rr.options,ei=le.useCallback(function(bi){var Yi=Pe(bi);return Yi.map(function(Ei){var Ci,kr,Zi,ma,ba;if(fn(Ei))Ci=Ei;else{var ir;Zi=Ei.key,kr=Ei.label,Ci=(ir=Ei.value)!==null&&ir!==void 0?ir:Zi}var Ji=Dr.get(Ci);if(Ji){var Va;if(kr===void 0&&(kr=Ji==null?void 0:Ji[Sr||Qi.label]),Zi===void 0&&(Zi=(Va=Ji==null?void 0:Ji.key)!==null&&Va!==void 0?Va:Ci),ma=Ji==null?void 0:Ji.disabled,ba=Ji==null?void 0:Ji.title,0)var no}return{label:kr,value:Ci,key:Zi,disabled:ma,title:ba}})},[Qi,Sr,Dr]),si=(0,fe.Z)(Di,{value:Qr}),wr=(0,Oe.Z)(si,2),Ir=wr[0],Hr=wr[1],ri=le.useMemo(function(){var bi,Yi=ua&&Ir===null?[]:Ir,Ei=ei(Yi);return jt==="combobox"&&Re((bi=Ei[0])===null||bi===void 0?void 0:bi.value)?[]:Ei},[Ir,ei,jt,ua]),un=Cr(ri,Dr),Vn=(0,Oe.Z)(un,2),Sn=Vn[0],Rr=Vn[1],ti=le.useMemo(function(){if(!jt&&Sn.length===1){var bi=Sn[0];if(bi.value===null&&(bi.label===null||bi.label===void 0))return[]}return Sn.map(function(Yi){var Ei;return(0,pe.Z)((0,pe.Z)({},Yi),{},{label:(Ei=typeof ui=="function"?ui(Yi):Yi.label)!==null&&Ei!==void 0?Ei:Yi.value})})},[jt,Sn,ui]),gn=le.useMemo(function(){return new Set(Sn.map(function(bi){return bi.value}))},[Sn]);le.useEffect(function(){if(jt==="combobox"){var bi,Yi=(bi=Sn[0])===null||bi===void 0?void 0:bi.value;Xr(Ne(Yi)?String(Yi):"")}},[Sn]);var mi=Ie(function(bi,Yi){var Ei=Yi!=null?Yi:bi;return(0,Me.Z)((0,Me.Z)({},Qi.value,bi),Qi.label,Ei)}),Nr=le.useMemo(function(){if(jt!=="tags")return or;var bi=(0,Ye.Z)(or),Yi=function(Ci){return Dr.has(Ci)};return(0,Ye.Z)(Sn).sort(function(Ei,Ci){return Ei.value<Ci.value?-1:1}).forEach(function(Ei){var Ci=Ei.value;Yi(Ci)||bi.push(mi(Ci,Ei.label))}),bi},[mi,or,Dr,Sn,jt]),Ar=ur(Nr,Qi,Ti,qi,Kr),pi=le.useMemo(function(){return jt!=="tags"||!Ti||Ar.some(function(bi){return bi[Kr||"value"]===Ti})||Ar.some(function(bi){return bi[Qi.value]===Ti})?Ar:[mi(Ti)].concat((0,Ye.Z)(Ar))},[mi,Kr,jt,Ar,Ti,Qi]),Gi=function bi(Yi){var Ei=(0,Ye.Z)(Yi).sort(function(Ci,kr){return _r(Ci,kr,{searchValue:Ti})});return Ei.map(function(Ci){return Array.isArray(Ci.options)?(0,pe.Z)((0,pe.Z)({},Ci),{},{options:Ci.options.length>0?bi(Ci.options):Ci.options}):Ci})},gi=le.useMemo(function(){return _r?Gi(pi):pi},[pi,_r,Ti]),Wi=le.useMemo(function(){return ct(gi,{fieldNames:Qi,childrenAsData:kn})},[gi,Qi,kn]),Jr=function(Yi){var Ei=ei(Yi);if(Hr(Ei),di&&(Ei.length!==Sn.length||Ei.some(function(Zi,ma){var ba;return((ba=Sn[ma])===null||ba===void 0?void 0:ba.value)!==(Zi==null?void 0:Zi.value)}))){var Ci=oi?Ei:Ei.map(function(Zi){return Zi.value}),kr=Ei.map(function(Zi){return lt(Rr(Zi.value))});di(ua?Ci:Ci[0],ua?kr:kr[0])}},li=le.useState(null),Zr=(0,Oe.Z)(li,2),Vi=Zr[0],sa=Zr[1],vi=le.useState(0),Ni=(0,Oe.Z)(vi,2),Ii=Ni[0],Mi=Ni[1],fa=Wr!==void 0?Wr:jt!=="combobox",ca=le.useCallback(function(bi,Yi){var Ei=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ci=Ei.source,kr=Ci===void 0?"keyboard":Ci;Mi(Yi),yt&&jt==="combobox"&&bi!==null&&kr==="keyboard"&&sa(String(bi))},[yt,jt]),la=function(Yi,Ei,Ci){var kr=function(){var pa,_a=Rr(Yi);return[oi?{label:_a==null?void 0:_a[Qi.label],value:Yi,key:(pa=_a==null?void 0:_a.key)!==null&&pa!==void 0?pa:Yi}:Yi,lt(_a)]};if(Ei&&Zt){var Zi=kr(),ma=(0,Oe.Z)(Zi,2),ba=ma[0],ir=ma[1];Zt(ba,ir)}else if(!Ei&&tn&&Ci!=="clear"){var Ji=kr(),Va=(0,Oe.Z)(Ji,2),no=Va[0],Ya=Va[1];tn(no,Ya)}},zi=Ie(function(bi,Yi){var Ei,Ci=ua?Yi.selected:!0;Ci?Ei=ua?[].concat((0,Ye.Z)(Sn),[bi]):[bi]:Ei=Sn.filter(function(kr){return kr.value!==bi}),Jr(Ei),la(bi,Ci),jt==="combobox"?sa(""):(!yn||Bt)&&(Xr(""),sa(""))}),Da=function(Yi,Ei){Jr(Yi);var Ci=Ei.type,kr=Ei.values;(Ci==="remove"||Ci==="clear")&&kr.forEach(function(Zi){la(Zi.value,!1,Ci)})},Ca=function(Yi,Ei){if(Xr(Yi),sa(null),Ei.source==="submit"){var Ci=(Yi||"").trim();if(Ci){var kr=Array.from(new Set([].concat((0,Ye.Z)(gn),[Ci])));Jr(kr),la(Ci,!0),Xr("")}return}Ei.source!=="blur"&&(jt==="combobox"&&Jr(Yi),It==null||It(Yi))},Ra=function(Yi){var Ei=Yi;jt!=="tags"&&(Ei=Yi.map(function(kr){var Zi=Fr.get(kr);return Zi==null?void 0:Zi.value}).filter(function(kr){return kr!==void 0}));var Ci=Array.from(new Set([].concat((0,Ye.Z)(gn),(0,Ye.Z)(Ei))));Jr(Ci),Ci.forEach(function(kr){la(kr,!0)})},to=le.useMemo(function(){var bi=ii!==!1&&Fn!==!1;return(0,pe.Z)((0,pe.Z)({},rr),{},{flattenOptions:Wi,onActiveValue:ca,defaultActiveFirstOption:fa,onSelect:zi,menuItemSelectedIcon:Jn,rawValues:gn,fieldNames:Qi,virtual:bi,direction:Ur,listHeight:qr,listItemHeight:wi,childrenAsData:kn,maxCount:ci,optionRender:Mr})},[ci,rr,Wi,ca,fa,zi,Jn,gn,Qi,ii,Fn,Ur,qr,wi,kn,Mr]);return le.createElement(ft.Provider,{value:to},le.createElement(an,(0,te.Z)({},ki,{id:Ki,prefixCls:Kt,ref:Gt,omitDomProps:Qt,mode:jt,displayValues:ti,onDisplayValuesChange:Da,direction:Ur,searchValue:Ti,onSearch:Ca,autoClearSearchValue:Bt,onSearchSplit:Ra,dropdownMatchSelectWidth:Fn,OptionList:lr,emptyOptions:!Wi.length,activeValue:Vi,activeDescendantId:"".concat(Ki,"_list_").concat(Ii)})))}),mn=sn;mn.Option=rn,mn.OptGroup=Jt;var Zn=mn,tr=Zn},22711:function(Yn,en,Ce){"use strict";Ce.r(en),Ce.d(en,{ResizableTextArea:function(){return Se},default:function(){return Ue}});var te=Ce(60499),Ye=Ce(18642),Me=Ce(85899),pe=Ce(77654),Oe=Ce(72190),ve=Ce(42244),ue=Ce(92310),fe=Ce.n(ue),he=Ce(36901),le=Ce(66003),ae=Ce(30292),ie=Ce(18929),me=Ce(59301),E=Ce(43749),b=Ce(29301),z=Ce(34280),ne=Ce(16089),oe=`
|
|
|
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;
|
|
|
`,se=["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"],de={},a;function x(Pe){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ke=Pe.getAttribute("id")||Pe.getAttribute("data-reactid")||Pe.getAttribute("name");if(ze&&de[Ke])return de[Ke];var Ne=window.getComputedStyle(Pe),Re=Ne.getPropertyValue("box-sizing")||Ne.getPropertyValue("-moz-box-sizing")||Ne.getPropertyValue("-webkit-box-sizing"),$e=parseFloat(Ne.getPropertyValue("padding-bottom"))+parseFloat(Ne.getPropertyValue("padding-top")),nt=parseFloat(Ne.getPropertyValue("border-bottom-width"))+parseFloat(Ne.getPropertyValue("border-top-width")),ut=se.map(function(rt){return"".concat(rt,":").concat(Ne.getPropertyValue(rt))}).join(";"),Qe={sizingStyle:ut,paddingSize:$e,borderSize:nt,boxSizing:Re};return ze&&Ke&&(de[Ke]=Qe),Qe}function re(Pe){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;a||(a=document.createElement("textarea"),a.setAttribute("tab-index","-1"),a.setAttribute("aria-hidden","true"),a.setAttribute("name","hiddenTextarea"),document.body.appendChild(a)),Pe.getAttribute("wrap")?a.setAttribute("wrap",Pe.getAttribute("wrap")):a.removeAttribute("wrap");var Re=x(Pe,ze),$e=Re.paddingSize,nt=Re.borderSize,ut=Re.boxSizing,Qe=Re.sizingStyle;a.setAttribute("style","".concat(Qe,";").concat(oe)),a.value=Pe.value||Pe.placeholder||"";var rt=void 0,pt=void 0,At,gt=a.scrollHeight;if(ut==="border-box"?gt+=nt:ut==="content-box"&&(gt-=$e),Ke!==null||Ne!==null){a.value=" ";var Ft=a.scrollHeight-$e;Ke!==null&&(rt=Ft*Ke,ut==="border-box"&&(rt=rt+$e+nt),gt=Math.max(rt,gt)),Ne!==null&&(pt=Ft*Ne,ut==="border-box"&&(pt=pt+$e+nt),At=gt>pt?"":"hidden",gt=Math.min(pt,gt))}var Ct={height:gt,overflowY:At,resize:"none"};return rt&&(Ct.minHeight=rt),pt&&(Ct.maxHeight=pt),Ct}var ce=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ge=0,_e=1,ye=2,be=me.forwardRef(function(Pe,ze){var Ke=Pe,Ne=Ke.prefixCls,Re=Ke.defaultValue,$e=Ke.value,nt=Ke.autoSize,ut=Ke.onResize,Qe=Ke.className,rt=Ke.style,pt=Ke.disabled,At=Ke.onChange,gt=Ke.onInternalAutoSize,Ft=(0,ve.Z)(Ke,ce),Ct=(0,ie.Z)(Re,{value:$e,postState:function(rn){return rn!=null?rn:""}}),Yt=(0,Oe.Z)(Ct,2),zt=Yt[0],Xe=Yt[1],Fe=function(rn){Xe(rn.target.value),At==null||At(rn)},Le=me.useRef();me.useImperativeHandle(ze,function(){return{textArea:Le.current}});var Ze=me.useMemo(function(){return nt&&(0,E.Z)(nt)==="object"?[nt.minRows,nt.maxRows]:[]},[nt]),et=(0,Oe.Z)(Ze,2),He=et[0],We=et[1],tt=!!nt,at=function(){try{if(document.activeElement===Le.current){var rn=Le.current,_n=rn.selectionStart,Bn=rn.selectionEnd,kt=rn.scrollTop;Le.current.setSelectionRange(_n,Bn),Le.current.scrollTop=kt}}catch(ln){}},ot=me.useState(ye),ct=(0,Oe.Z)(ot,2),lt=ct[0],mt=ct[1],Lt=me.useState(),ft=(0,Oe.Z)(Lt,2),St=ft[0],nn=ft[1],on=function(){mt(ge)};(0,z.Z)(function(){tt&&on()},[$e,He,We,tt]),(0,z.Z)(function(){if(lt===ge)mt(_e);else if(lt===_e){var Ut=re(Le.current,!1,He,We);mt(ye),nn(Ut)}else at()},[lt]);var yn=me.useRef(),xn=function(){ne.Z.cancel(yn.current)},an=function(rn){lt===ye&&(ut==null||ut(rn),nt&&(xn(),yn.current=(0,ne.Z)(function(){on()})))};me.useEffect(function(){return xn},[]);var An=tt?St:null,Jt=(0,Me.Z)((0,Me.Z)({},rt),An);return(lt===ge||lt===_e)&&(Jt.overflowY="hidden",Jt.overflowX="hidden"),me.createElement(b.Z,{onResize:an,disabled:!(nt||ut)},me.createElement("textarea",(0,te.Z)({},Ft,{ref:Le,style:Jt,className:fe()(Ne,Qe,(0,Ye.Z)({},"".concat(Ne,"-disabled"),pt)),disabled:pt,value:zt,onChange:Fe})))}),Se=be,Be=["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"],Ae=me.forwardRef(function(Pe,ze){var Ke,Ne=Pe.defaultValue,Re=Pe.value,$e=Pe.onFocus,nt=Pe.onBlur,ut=Pe.onChange,Qe=Pe.allowClear,rt=Pe.maxLength,pt=Pe.onCompositionStart,At=Pe.onCompositionEnd,gt=Pe.suffix,Ft=Pe.prefixCls,Ct=Ft===void 0?"rc-textarea":Ft,Yt=Pe.showCount,zt=Pe.count,Xe=Pe.className,Fe=Pe.style,Le=Pe.disabled,Ze=Pe.hidden,et=Pe.classNames,He=Pe.styles,We=Pe.onResize,tt=Pe.onClear,at=Pe.onPressEnter,ot=Pe.readOnly,ct=Pe.autoSize,lt=Pe.onKeyDown,mt=(0,ve.Z)(Pe,Be),Lt=(0,ie.Z)(Ne,{value:Re,defaultValue:Ne}),ft=(0,Oe.Z)(Lt,2),St=ft[0],nn=ft[1],on=St==null?"":String(St),yn=me.useState(!1),xn=(0,Oe.Z)(yn,2),an=xn[0],An=xn[1],Jt=me.useRef(!1),Ut=me.useState(null),rn=(0,Oe.Z)(Ut,2),_n=rn[0],Bn=rn[1],kt=(0,me.useRef)(null),ln=(0,me.useRef)(null),Cn=function(){var mn;return(mn=ln.current)===null||mn===void 0?void 0:mn.textArea},Mn=function(){Cn().focus()};(0,me.useImperativeHandle)(ze,function(){var sn;return{resizableTextArea:ln.current,focus:Mn,blur:function(){Cn().blur()},nativeElement:((sn=kt.current)===null||sn===void 0?void 0:sn.nativeElement)||Cn()}}),(0,me.useEffect)(function(){An(function(sn){return!Le&&sn})},[Le]);var Qn=me.useState(null),mr=(0,Oe.Z)(Qn,2),lr=mr[0],Cr=mr[1];me.useEffect(function(){if(lr){var sn;(sn=Cn()).setSelectionRange.apply(sn,(0,pe.Z)(lr))}},[lr]);var nr=(0,le.Z)(zt,Yt),ur=(Ke=nr.max)!==null&&Ke!==void 0?Ke:rt,Nn=Number(ur)>0,In=nr.strategy(on),Wn=!!ur&&In>ur,Kn=function(mn,Zn){var tr=Zn;!Jt.current&&nr.exceedFormatter&&nr.max&&nr.strategy(Zn)>nr.max&&(tr=nr.exceedFormatter(Zn,{max:nr.max}),Zn!==tr&&Cr([Cn().selectionStart||0,Cn().selectionEnd||0])),nn(tr),(0,ae.rJ)(mn.currentTarget,mn,ut,tr)},Ln=function(mn){Jt.current=!0,pt==null||pt(mn)},$n=function(mn){Jt.current=!1,Kn(mn,mn.currentTarget.value),At==null||At(mn)},ar=function(mn){Kn(mn,mn.target.value)},dn=function(mn){mn.key==="Enter"&&at&&at(mn),lt==null||lt(mn)},Ie=function(mn){An(!0),$e==null||$e(mn)},je=function(mn){An(!1),nt==null||nt(mn)},Je=function(mn){nn(""),Mn(),(0,ae.rJ)(Cn(),mn,ut)},ht=gt,Et;nr.show&&(nr.showFormatter?Et=nr.showFormatter({value:on,count:In,maxLength:ur}):Et="".concat(In).concat(Nn?" / ".concat(ur):""),ht=me.createElement(me.Fragment,null,ht,me.createElement("span",{className:fe()("".concat(Ct,"-data-count"),et==null?void 0:et.count),style:He==null?void 0:He.count},Et)));var Qt=function(mn){var Zn;We==null||We(mn),(Zn=Cn())!==null&&Zn!==void 0&&Zn.style.height&&Bn(!0)},fn=!ct&&!Yt&&!Qe;return me.createElement(he.BaseInput,{ref:kt,value:on,allowClear:Qe,handleReset:Je,suffix:ht,prefixCls:Ct,classNames:(0,Me.Z)((0,Me.Z)({},et),{},{affixWrapper:fe()(et==null?void 0:et.affixWrapper,(0,Ye.Z)((0,Ye.Z)({},"".concat(Ct,"-show-count"),Yt),"".concat(Ct,"-textarea-allow-clear"),Qe))}),disabled:Le,focused:an,className:fe()(Xe,Wn&&"".concat(Ct,"-out-of-range")),style:(0,Me.Z)((0,Me.Z)({},Fe),_n&&!fn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Et=="string"?Et:void 0}},hidden:Ze,readOnly:ot,onClear:tt},me.createElement(Se,(0,te.Z)({},mt,{autoSize:ct,maxLength:rt,onKeyDown:dn,onChange:ar,onFocus:Ie,onBlur:je,onCompositionStart:Ln,onCompositionEnd:$n,className:fe()(et==null?void 0:et.textarea),style:(0,Me.Z)((0,Me.Z)({},He==null?void 0:He.textarea),{},{resize:Fe==null?void 0:Fe.resize}),disabled:Le,prefixCls:Ct,onResize:Qt,ref:ln,readOnly:ot})))}),we=Ae,Ue=we},639:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return de}});var te=Ce(60499),Ye=Ce(18642),Me=Ce(85899),pe=Ce(72190),Oe=Ce(42244),ve=Ce(59301),ue=Ce(92310),fe=Ce.n(ue),he=Ce(26112),le=Ce(30699),ae=function(x){for(var re=x.prefixCls,ce=x.level,ge=x.isStart,_e=x.isEnd,ye="".concat(re,"-indent-unit"),be=[],Se=0;Se<ce;Se+=1)be.push(ve.createElement("span",{key:Se,className:fe()(ye,(0,Ye.Z)((0,Ye.Z)({},"".concat(ye,"-start"),ge[Se]),"".concat(ye,"-end"),_e[Se]))}));return ve.createElement("span",{"aria-hidden":"true",className:"".concat(re,"-indent")},be)},ie=ve.memo(ae),me=Ce(65065),E=Ce(34061),b=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],z="open",ne="close",oe="---",se=function(x){var re,ce,ge,_e=x.eventKey,ye=x.className,be=x.style,Se=x.dragOver,Be=x.dragOverGapTop,Ae=x.dragOverGapBottom,we=x.isLeaf,Ue=x.isStart,Pe=x.isEnd,ze=x.expanded,Ke=x.selected,Ne=x.checked,Re=x.halfChecked,$e=x.loading,nt=x.domRef,ut=x.active,Qe=x.data,rt=x.onMouseMove,pt=x.selectable,At=(0,Oe.Z)(x,b),gt=ve.useContext(le.k),Ft=ve.useContext(le.y),Ct=ve.useRef(null),Yt=ve.useState(!1),zt=(0,pe.Z)(Yt,2),Xe=zt[0],Fe=zt[1],Le=!!(gt.disabled||x.disabled||(re=Ft.nodeDisabled)!==null&&re!==void 0&&re.call(Ft,Qe)),Ze=ve.useMemo(function(){return!gt.checkable||x.checkable===!1?!1:gt.checkable},[gt.checkable,x.checkable]),et=function(In){Le||gt.onNodeSelect(In,(0,E.F)(x))},He=function(In){Le||!Ze||x.disableCheckbox||gt.onNodeCheck(In,(0,E.F)(x),!Ne)},We=ve.useMemo(function(){return typeof pt=="boolean"?pt:gt.selectable},[pt,gt.selectable]),tt=function(In){gt.onNodeClick(In,(0,E.F)(x)),We?et(In):He(In)},at=function(In){gt.onNodeDoubleClick(In,(0,E.F)(x))},ot=function(In){gt.onNodeMouseEnter(In,(0,E.F)(x))},ct=function(In){gt.onNodeMouseLeave(In,(0,E.F)(x))},lt=function(In){gt.onNodeContextMenu(In,(0,E.F)(x))},mt=ve.useMemo(function(){return!!(gt.draggable&&(!gt.draggable.nodeDraggable||gt.draggable.nodeDraggable(Qe)))},[gt.draggable,Qe]),Lt=function(In){In.stopPropagation(),Fe(!0),gt.onNodeDragStart(In,x);try{In.dataTransfer.setData("text/plain","")}catch(Wn){}},ft=function(In){In.preventDefault(),In.stopPropagation(),gt.onNodeDragEnter(In,x)},St=function(In){In.preventDefault(),In.stopPropagation(),gt.onNodeDragOver(In,x)},nn=function(In){In.stopPropagation(),gt.onNodeDragLeave(In,x)},on=function(In){In.stopPropagation(),Fe(!1),gt.onNodeDragEnd(In,x)},yn=function(In){In.preventDefault(),In.stopPropagation(),Fe(!1),gt.onNodeDrop(In,x)},xn=function(In){$e||gt.onNodeExpand(In,(0,E.F)(x))},an=ve.useMemo(function(){var Nn=(0,me.Z)(gt.keyEntities,_e)||{},In=Nn.children;return!!(In||[]).length},[gt.keyEntities,_e]),An=ve.useMemo(function(){return we===!1?!1:we||!gt.loadData&&!an||gt.loadData&&x.loaded&&!an},[we,gt.loadData,an,x.loaded]);ve.useEffect(function(){$e||typeof gt.loadData=="function"&&ze&&!An&&!x.loaded&>.onNodeLoad((0,E.F)(x))},[$e,gt.loadData,gt.onNodeLoad,ze,An,x]);var Jt=ve.useMemo(function(){var Nn;return(Nn=gt.draggable)!==null&&Nn!==void 0&&Nn.icon?ve.createElement("span",{className:"".concat(gt.prefixCls,"-draggable-icon")},gt.draggable.icon):null},[gt.draggable]),Ut=function(In){var Wn=x.switcherIcon||gt.switcherIcon;return typeof Wn=="function"?Wn((0,Me.Z)((0,Me.Z)({},x),{},{isLeaf:In})):Wn},rn=function(){if(An){var In=Ut(!0);return In!==!1?ve.createElement("span",{className:fe()("".concat(gt.prefixCls,"-switcher"),"".concat(gt.prefixCls,"-switcher-noop"))},In):null}var Wn=Ut(!1);return Wn!==!1?ve.createElement("span",{onClick:xn,className:fe()("".concat(gt.prefixCls,"-switcher"),"".concat(gt.prefixCls,"-switcher_").concat(ze?z:ne))},Wn):null},_n=ve.useMemo(function(){if(!Ze)return null;var Nn=typeof Ze!="boolean"?Ze:null;return ve.createElement("span",{className:fe()("".concat(gt.prefixCls,"-checkbox"),(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({},"".concat(gt.prefixCls,"-checkbox-checked"),Ne),"".concat(gt.prefixCls,"-checkbox-indeterminate"),!Ne&&Re),"".concat(gt.prefixCls,"-checkbox-disabled"),Le||x.disableCheckbox)),onClick:He,role:"checkbox","aria-checked":Re?"mixed":Ne,"aria-disabled":Le||x.disableCheckbox,"aria-label":"Select ".concat(typeof x.title=="string"?x.title:"tree node")},Nn)},[Ze,Ne,Re,Le,x.disableCheckbox,x.title]),Bn=ve.useMemo(function(){return An?null:ze?z:ne},[An,ze]),kt=ve.useMemo(function(){return ve.createElement("span",{className:fe()("".concat(gt.prefixCls,"-iconEle"),"".concat(gt.prefixCls,"-icon__").concat(Bn||"docu"),(0,Ye.Z)({},"".concat(gt.prefixCls,"-icon_loading"),$e))})},[gt.prefixCls,Bn,$e]),ln=ve.useMemo(function(){var Nn=!!gt.draggable,In=!x.disabled&&Nn&>.dragOverNodeKey===_e;return In?gt.dropIndicatorRender({dropPosition:gt.dropPosition,dropLevelOffset:gt.dropLevelOffset,indent:gt.indent,prefixCls:gt.prefixCls,direction:gt.direction}):null},[gt.dropPosition,gt.dropLevelOffset,gt.indent,gt.prefixCls,gt.direction,gt.draggable,gt.dragOverNodeKey,gt.dropIndicatorRender]),Cn=ve.useMemo(function(){var Nn=x.title,In=Nn===void 0?oe:Nn,Wn="".concat(gt.prefixCls,"-node-content-wrapper"),Kn;if(gt.showIcon){var Ln=x.icon||gt.icon;Kn=Ln?ve.createElement("span",{className:fe()("".concat(gt.prefixCls,"-iconEle"),"".concat(gt.prefixCls,"-icon__customize"))},typeof Ln=="function"?Ln(x):Ln):kt}else gt.loadData&&$e&&(Kn=kt);var $n;return typeof In=="function"?$n=In(Qe):gt.titleRender?$n=gt.titleRender(Qe):$n=In,ve.createElement("span",{ref:Ct,title:typeof In=="string"?In:"",className:fe()(Wn,"".concat(Wn,"-").concat(Bn||"normal"),(0,Ye.Z)({},"".concat(gt.prefixCls,"-node-selected"),!Le&&(Ke||Xe))),onMouseEnter:ot,onMouseLeave:ct,onContextMenu:lt,onClick:tt,onDoubleClick:at},Kn,ve.createElement("span",{className:"".concat(gt.prefixCls,"-title")},$n),ln)},[gt.prefixCls,gt.showIcon,x,gt.icon,kt,gt.titleRender,Qe,Bn,ot,ct,lt,tt,at]),Mn=(0,he.Z)(At,{aria:!0,data:!0}),Qn=(0,me.Z)(gt.keyEntities,_e)||{},mr=Qn.level,lr=Pe[Pe.length-1],Cr=!Le&&mt,nr=gt.draggingNodeKey===_e,ur=pt!==void 0?{"aria-selected":!!pt}:void 0;return ve.createElement("div",(0,te.Z)({ref:nt,role:"treeitem","aria-expanded":we?void 0:ze,className:fe()(ye,"".concat(gt.prefixCls,"-treenode"),(ge={},(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)(ge,"".concat(gt.prefixCls,"-treenode-disabled"),Le),"".concat(gt.prefixCls,"-treenode-switcher-").concat(ze?"open":"close"),!we),"".concat(gt.prefixCls,"-treenode-checkbox-checked"),Ne),"".concat(gt.prefixCls,"-treenode-checkbox-indeterminate"),Re),"".concat(gt.prefixCls,"-treenode-selected"),Ke),"".concat(gt.prefixCls,"-treenode-loading"),$e),"".concat(gt.prefixCls,"-treenode-active"),ut),"".concat(gt.prefixCls,"-treenode-leaf-last"),lr),"".concat(gt.prefixCls,"-treenode-draggable"),mt),"dragging",nr),(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)(ge,"drop-target",gt.dropTargetKey===_e),"drop-container",gt.dropContainerKey===_e),"drag-over",!Le&&Se),"drag-over-gap-top",!Le&&Be),"drag-over-gap-bottom",!Le&&Ae),"filter-node",(ce=gt.filterTreeNode)===null||ce===void 0?void 0:ce.call(gt,(0,E.F)(x))),"".concat(gt.prefixCls,"-treenode-leaf"),An))),style:be,draggable:Cr,onDragStart:Cr?Lt:void 0,onDragEnter:mt?ft:void 0,onDragOver:mt?St:void 0,onDragLeave:mt?nn:void 0,onDrop:mt?yn:void 0,onDragEnd:mt?on:void 0,onMouseMove:rt},ur,Mn),ve.createElement(ie,{prefixCls:gt.prefixCls,level:mr,isStart:Ue,isEnd:Pe}),Jt,rn(),_n,Cn)};se.isTreeNode=1;var de=se},30699:function(Yn,en,Ce){"use strict";Ce.d(en,{k:function(){return Ye},y:function(){return Me}});var te=Ce(59301),Ye=te.createContext(null),Me=te.createContext({})},87632:function(Yn,en,Ce){"use strict";Ce.d(en,{OF:function(){return _e.Z},y6:function(){return ne.y},ZP:function(){return Le}});var te=Ce(60499),Ye=Ce(43749),Me=Ce(85899),pe=Ce(77654),Oe=Ce(38705),ve=Ce(17212),ue=Ce(15793),fe=Ce(39153),he=Ce(55401),le=Ce(18642),ae=Ce(92310),ie=Ce.n(ae),me=Ce(10228),E=Ce(26112),b=Ce(48736),z=Ce(59301),ne=Ce(30699),oe=function(et){var He=et.dropPosition,We=et.dropLevelOffset,tt=et.indent,at={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(He){case-1:at.top=0,at.left=-We*tt;break;case 1:at.bottom=0,at.left=-We*tt;break;case 0:at.bottom=0,at.left=tt;break}return z.createElement("div",{style:at})},se=oe;function de(Ze){if(Ze==null)throw new TypeError("Cannot destructure "+Ze)}var a=Ce(72190),x=Ce(42244),re=Ce(34280),ce=Ce(48911),ge=Ce(77900),_e=Ce(639);function ye(Ze,et){var He=z.useState(!1),We=(0,a.Z)(He,2),tt=We[0],at=We[1];(0,re.Z)(function(){if(tt)return Ze(),function(){et()}},[tt]),(0,re.Z)(function(){return at(!0),function(){at(!1)}},[])}var be=ye,Se=Ce(34061),Be=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Ae=z.forwardRef(function(Ze,et){var He=Ze.className,We=Ze.style,tt=Ze.motion,at=Ze.motionNodes,ot=Ze.motionType,ct=Ze.onMotionStart,lt=Ze.onMotionEnd,mt=Ze.active,Lt=Ze.treeNodeRequiredProps,ft=(0,x.Z)(Ze,Be),St=z.useState(!0),nn=(0,a.Z)(St,2),on=nn[0],yn=nn[1],xn=z.useContext(ne.k),an=xn.prefixCls,An=at&&ot!=="hide";(0,re.Z)(function(){at&&An!==on&&yn(An)},[at]);var Jt=function(){at&&ct()},Ut=z.useRef(!1),rn=function(){at&&!Ut.current&&(Ut.current=!0,lt())};be(Jt,rn);var _n=function(kt){An===kt&&rn()};return at?z.createElement(ge.default,(0,te.Z)({ref:et,visible:on},tt,{motionAppear:ot==="show",onVisibleChanged:_n}),function(Bn,kt){var ln=Bn.className,Cn=Bn.style;return z.createElement("div",{ref:kt,className:ie()("".concat(an,"-treenode-motion"),ln),style:Cn},at.map(function(Mn){var Qn=Object.assign({},(de(Mn.data),Mn.data)),mr=Mn.title,lr=Mn.key,Cr=Mn.isStart,nr=Mn.isEnd;delete Qn.children;var ur=(0,Se.H8)(lr,Lt);return z.createElement(_e.Z,(0,te.Z)({},Qn,ur,{title:mr,active:mt,data:Mn.data,key:lr,isStart:Cr,isEnd:nr}))}))}):z.createElement(_e.Z,(0,te.Z)({domRef:et,className:He,style:We},ft,{active:mt}))}),we=Ae;function Ue(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],He=Ze.length,We=et.length;if(Math.abs(He-We)!==1)return{add:!1,key:null};function tt(at,ot){var ct=new Map;at.forEach(function(mt){ct.set(mt,!0)});var lt=ot.filter(function(mt){return!ct.has(mt)});return lt.length===1?lt[0]:null}return He<We?{add:!0,key:tt(Ze,et)}:{add:!1,key:tt(et,Ze)}}function Pe(Ze,et,He){var We=Ze.findIndex(function(ct){return ct.key===He}),tt=Ze[We+1],at=et.findIndex(function(ct){return ct.key===He});if(tt){var ot=et.findIndex(function(ct){return ct.key===tt.key});return et.slice(at+1,ot)}return et.slice(at+1)}var ze=["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"],Ke={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ne=function(){},Re="RC_TREE_MOTION_".concat(Math.random()),$e={key:Re},nt={key:Re,level:0,index:0,pos:"0",node:$e,nodes:[$e]},ut={parent:null,children:[],pos:nt.pos,data:$e,title:null,key:Re,isStart:[],isEnd:[]};function Qe(Ze,et,He,We){return et===!1||!He?Ze:Ze.slice(0,Math.ceil(He/We)+1)}function rt(Ze){var et=Ze.key,He=Ze.pos;return(0,Se.km)(et,He)}function pt(Ze){for(var et=String(Ze.data.key),He=Ze;He.parent;)He=He.parent,et="".concat(He.data.key," > ").concat(et);return et}var At=z.forwardRef(function(Ze,et){var He=Ze.prefixCls,We=Ze.data,tt=Ze.selectable,at=Ze.checkable,ot=Ze.expandedKeys,ct=Ze.selectedKeys,lt=Ze.checkedKeys,mt=Ze.loadedKeys,Lt=Ze.loadingKeys,ft=Ze.halfCheckedKeys,St=Ze.keyEntities,nn=Ze.disabled,on=Ze.dragging,yn=Ze.dragOverNodeKey,xn=Ze.dropPosition,an=Ze.motion,An=Ze.height,Jt=Ze.itemHeight,Ut=Ze.virtual,rn=Ze.scrollWidth,_n=Ze.focusable,Bn=Ze.activeItem,kt=Ze.focused,ln=Ze.tabIndex,Cn=Ze.onKeyDown,Mn=Ze.onFocus,Qn=Ze.onBlur,mr=Ze.onActiveChange,lr=Ze.onListChangeStart,Cr=Ze.onListChangeEnd,nr=(0,x.Z)(Ze,ze),ur=z.useRef(null),Nn=z.useRef(null);z.useImperativeHandle(et,function(){return{scrollTo:function(qt){ur.current.scrollTo(qt)},getIndentWidth:function(){return Nn.current.offsetWidth}}});var In=z.useState(ot),Wn=(0,a.Z)(In,2),Kn=Wn[0],Ln=Wn[1],$n=z.useState(We),ar=(0,a.Z)($n,2),dn=ar[0],Ie=ar[1],je=z.useState(We),Je=(0,a.Z)(je,2),ht=Je[0],Et=Je[1],Qt=z.useState([]),fn=(0,a.Z)(Qt,2),sn=fn[0],mn=fn[1],Zn=z.useState(null),tr=(0,a.Z)(Zn,2),Vt=tr[0],Gt=tr[1],Rt=z.useRef(We);Rt.current=We;function jt(){var yt=Rt.current;Ie(yt),Et(yt),mn([]),Gt(null),Cr()}(0,re.Z)(function(){Ln(ot);var yt=Ue(Kn,ot);if(yt.key!==null)if(yt.add){var qt=dn.findIndex(function(Zt){var tn=Zt.key;return tn===yt.key}),vn=Qe(Pe(dn,We,yt.key),Ut,An,Jt),Tt=dn.slice();Tt.splice(qt+1,0,ut),Et(Tt),mn(vn),Gt("show")}else{var It=We.findIndex(function(Zt){var tn=Zt.key;return tn===yt.key}),Dt=Qe(Pe(We,dn,yt.key),Ut,An,Jt),Bt=We.slice();Bt.splice(It+1,0,ut),Et(Bt),mn(Dt),Gt("hide")}else dn!==We&&(Ie(We),Et(We))},[ot,We]),z.useEffect(function(){on||jt()},[on]);var Mt=an?ht:We,Kt={expandedKeys:ot,selectedKeys:ct,loadedKeys:mt,loadingKeys:Lt,checkedKeys:lt,halfCheckedKeys:ft,dragOverNodeKey:yn,dropPosition:xn,keyEntities:St};return z.createElement(z.Fragment,null,kt&&Bn&&z.createElement("span",{style:Ke,"aria-live":"assertive"},pt(Bn)),z.createElement("div",null,z.createElement("input",{style:Ke,disabled:_n===!1||nn,tabIndex:_n!==!1?ln:null,onKeyDown:Cn,onFocus:Mn,onBlur:Qn,value:"",onChange:Ne,"aria-label":"for screen reader"})),z.createElement("div",{className:"".concat(He,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},z.createElement("div",{className:"".concat(He,"-indent")},z.createElement("div",{ref:Nn,className:"".concat(He,"-indent-unit")}))),z.createElement(ce.Z,(0,te.Z)({},nr,{data:Mt,itemKey:rt,height:An,fullHeight:!1,virtual:Ut,itemHeight:Jt,scrollWidth:rn,prefixCls:"".concat(He,"-list"),ref:ur,role:"tree",onVisibleChange:function(qt){qt.every(function(vn){return rt(vn)!==Re})&&jt()}}),function(yt){var qt=yt.pos,vn=Object.assign({},(de(yt.data),yt.data)),Tt=yt.title,It=yt.key,Dt=yt.isStart,Bt=yt.isEnd,Zt=(0,Se.km)(It,qt);delete vn.key,delete vn.children;var tn=(0,Se.H8)(Zt,Kt);return z.createElement(we,(0,te.Z)({},vn,tn,{title:Tt,active:!!Bn&&It===Bn.key,pos:qt,data:yt.data,isStart:Dt,isEnd:Bt,motion:an,motionNodes:It===Re?sn:null,motionType:Vt,onMotionStart:lr,onMotionEnd:jt,treeNodeRequiredProps:Kt,onMouseMove:function(){mr(null)}}))}))}),gt=At,Ft=Ce(82661),Ct=Ce(34643),Yt=Ce(65065),zt=10,Xe=function(Ze){(0,fe.Z)(He,Ze);var et=(0,he.Z)(He);function He(){var We;(0,Oe.Z)(this,He);for(var tt=arguments.length,at=new Array(tt),ot=0;ot<tt;ot++)at[ot]=arguments[ot];return We=et.call.apply(et,[this].concat(at)),(0,le.Z)((0,ue.Z)(We),"destroyed",!1),(0,le.Z)((0,ue.Z)(We),"delayedDragEnterLogic",void 0),(0,le.Z)((0,ue.Z)(We),"loadingRetryTimes",{}),(0,le.Z)((0,ue.Z)(We),"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,Se.w$)()}),(0,le.Z)((0,ue.Z)(We),"dragStartMousePosition",null),(0,le.Z)((0,ue.Z)(We),"dragNodeProps",null),(0,le.Z)((0,ue.Z)(We),"currentMouseOverDroppableNodeKey",null),(0,le.Z)((0,ue.Z)(We),"listRef",z.createRef()),(0,le.Z)((0,ue.Z)(We),"onNodeDragStart",function(ct,lt){var mt=We.state,Lt=mt.expandedKeys,ft=mt.keyEntities,St=We.props.onDragStart,nn=lt.eventKey;We.dragNodeProps=lt,We.dragStartMousePosition={x:ct.clientX,y:ct.clientY};var on=(0,Ft._5)(Lt,nn);We.setState({draggingNodeKey:nn,dragChildrenKeys:(0,Ft.wA)(nn,ft),indent:We.listRef.current.getIndentWidth()}),We.setExpandedKeys(on),window.addEventListener("dragend",We.onWindowDragEnd),St==null||St({event:ct,node:(0,Se.F)(lt)})}),(0,le.Z)((0,ue.Z)(We),"onNodeDragEnter",function(ct,lt){var mt=We.state,Lt=mt.expandedKeys,ft=mt.keyEntities,St=mt.dragChildrenKeys,nn=mt.flattenNodes,on=mt.indent,yn=We.props,xn=yn.onDragEnter,an=yn.onExpand,An=yn.allowDrop,Jt=yn.direction,Ut=lt.pos,rn=lt.eventKey;if(We.currentMouseOverDroppableNodeKey!==rn&&(We.currentMouseOverDroppableNodeKey=rn),!We.dragNodeProps){We.resetDragState();return}var _n=(0,Ft.OM)(ct,We.dragNodeProps,lt,on,We.dragStartMousePosition,An,nn,ft,Lt,Jt),Bn=_n.dropPosition,kt=_n.dropLevelOffset,ln=_n.dropTargetKey,Cn=_n.dropContainerKey,Mn=_n.dropTargetPos,Qn=_n.dropAllowed,mr=_n.dragOverNodeKey;if(St.includes(ln)||!Qn){We.resetDragState();return}if(We.delayedDragEnterLogic||(We.delayedDragEnterLogic={}),Object.keys(We.delayedDragEnterLogic).forEach(function(lr){clearTimeout(We.delayedDragEnterLogic[lr])}),We.dragNodeProps.eventKey!==lt.eventKey&&(ct.persist(),We.delayedDragEnterLogic[Ut]=window.setTimeout(function(){if(We.state.draggingNodeKey!==null){var lr=(0,pe.Z)(Lt),Cr=(0,Yt.Z)(ft,lt.eventKey);Cr&&(Cr.children||[]).length&&(lr=(0,Ft.L0)(Lt,lt.eventKey)),We.props.hasOwnProperty("expandedKeys")||We.setExpandedKeys(lr),an==null||an(lr,{node:(0,Se.F)(lt),expanded:!0,nativeEvent:ct.nativeEvent})}},800)),We.dragNodeProps.eventKey===ln&&kt===0){We.resetDragState();return}We.setState({dragOverNodeKey:mr,dropPosition:Bn,dropLevelOffset:kt,dropTargetKey:ln,dropContainerKey:Cn,dropTargetPos:Mn,dropAllowed:Qn}),xn==null||xn({event:ct,node:(0,Se.F)(lt),expandedKeys:Lt})}),(0,le.Z)((0,ue.Z)(We),"onNodeDragOver",function(ct,lt){var mt=We.state,Lt=mt.dragChildrenKeys,ft=mt.flattenNodes,St=mt.keyEntities,nn=mt.expandedKeys,on=mt.indent,yn=We.props,xn=yn.onDragOver,an=yn.allowDrop,An=yn.direction;if(We.dragNodeProps){var Jt=(0,Ft.OM)(ct,We.dragNodeProps,lt,on,We.dragStartMousePosition,an,ft,St,nn,An),Ut=Jt.dropPosition,rn=Jt.dropLevelOffset,_n=Jt.dropTargetKey,Bn=Jt.dropContainerKey,kt=Jt.dropTargetPos,ln=Jt.dropAllowed,Cn=Jt.dragOverNodeKey;Lt.includes(_n)||!ln||(We.dragNodeProps.eventKey===_n&&rn===0?We.state.dropPosition===null&&We.state.dropLevelOffset===null&&We.state.dropTargetKey===null&&We.state.dropContainerKey===null&&We.state.dropTargetPos===null&&We.state.dropAllowed===!1&&We.state.dragOverNodeKey===null||We.resetDragState():Ut===We.state.dropPosition&&rn===We.state.dropLevelOffset&&_n===We.state.dropTargetKey&&Bn===We.state.dropContainerKey&&kt===We.state.dropTargetPos&&ln===We.state.dropAllowed&&Cn===We.state.dragOverNodeKey||We.setState({dropPosition:Ut,dropLevelOffset:rn,dropTargetKey:_n,dropContainerKey:Bn,dropTargetPos:kt,dropAllowed:ln,dragOverNodeKey:Cn}),xn==null||xn({event:ct,node:(0,Se.F)(lt)}))}}),(0,le.Z)((0,ue.Z)(We),"onNodeDragLeave",function(ct,lt){We.currentMouseOverDroppableNodeKey===lt.eventKey&&!ct.currentTarget.contains(ct.relatedTarget)&&(We.resetDragState(),We.currentMouseOverDroppableNodeKey=null);var mt=We.props.onDragLeave;mt==null||mt({event:ct,node:(0,Se.F)(lt)})}),(0,le.Z)((0,ue.Z)(We),"onWindowDragEnd",function(ct){We.onNodeDragEnd(ct,null,!0),window.removeEventListener("dragend",We.onWindowDragEnd)}),(0,le.Z)((0,ue.Z)(We),"onNodeDragEnd",function(ct,lt){var mt=We.props.onDragEnd;We.setState({dragOverNodeKey:null}),We.cleanDragState(),mt==null||mt({event:ct,node:(0,Se.F)(lt)}),We.dragNodeProps=null,window.removeEventListener("dragend",We.onWindowDragEnd)}),(0,le.Z)((0,ue.Z)(We),"onNodeDrop",function(ct,lt){var mt,Lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ft=We.state,St=ft.dragChildrenKeys,nn=ft.dropPosition,on=ft.dropTargetKey,yn=ft.dropTargetPos,xn=ft.dropAllowed;if(xn){var an=We.props.onDrop;if(We.setState({dragOverNodeKey:null}),We.cleanDragState(),on!==null){var An=(0,Me.Z)((0,Me.Z)({},(0,Se.H8)(on,We.getTreeNodeRequiredProps())),{},{active:((mt=We.getActiveItem())===null||mt===void 0?void 0:mt.key)===on,data:(0,Yt.Z)(We.state.keyEntities,on).node}),Jt=St.includes(on);(0,b.ZP)(!Jt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ut=(0,Ft.yx)(yn),rn={event:ct,node:(0,Se.F)(An),dragNode:We.dragNodeProps?(0,Se.F)(We.dragNodeProps):null,dragNodesKeys:[We.dragNodeProps.eventKey].concat(St),dropToGap:nn!==0,dropPosition:nn+Number(Ut[Ut.length-1])};Lt||an==null||an(rn),We.dragNodeProps=null}}}),(0,le.Z)((0,ue.Z)(We),"cleanDragState",function(){var ct=We.state.draggingNodeKey;ct!==null&&We.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),We.dragStartMousePosition=null,We.currentMouseOverDroppableNodeKey=null}),(0,le.Z)((0,ue.Z)(We),"triggerExpandActionExpand",function(ct,lt){var mt=We.state,Lt=mt.expandedKeys,ft=mt.flattenNodes,St=lt.expanded,nn=lt.key,on=lt.isLeaf;if(!(on||ct.shiftKey||ct.metaKey||ct.ctrlKey)){var yn=ft.filter(function(an){return an.key===nn})[0],xn=(0,Se.F)((0,Me.Z)((0,Me.Z)({},(0,Se.H8)(nn,We.getTreeNodeRequiredProps())),{},{data:yn.data}));We.setExpandedKeys(St?(0,Ft._5)(Lt,nn):(0,Ft.L0)(Lt,nn)),We.onNodeExpand(ct,xn)}}),(0,le.Z)((0,ue.Z)(We),"onNodeClick",function(ct,lt){var mt=We.props,Lt=mt.onClick,ft=mt.expandAction;ft==="click"&&We.triggerExpandActionExpand(ct,lt),Lt==null||Lt(ct,lt)}),(0,le.Z)((0,ue.Z)(We),"onNodeDoubleClick",function(ct,lt){var mt=We.props,Lt=mt.onDoubleClick,ft=mt.expandAction;ft==="doubleClick"&&We.triggerExpandActionExpand(ct,lt),Lt==null||Lt(ct,lt)}),(0,le.Z)((0,ue.Z)(We),"onNodeSelect",function(ct,lt){var mt=We.state.selectedKeys,Lt=We.state,ft=Lt.keyEntities,St=Lt.fieldNames,nn=We.props,on=nn.onSelect,yn=nn.multiple,xn=lt.selected,an=lt[St.key],An=!xn;An?yn?mt=(0,Ft.L0)(mt,an):mt=[an]:mt=(0,Ft._5)(mt,an);var Jt=mt.map(function(Ut){var rn=(0,Yt.Z)(ft,Ut);return rn?rn.node:null}).filter(Boolean);We.setUncontrolledState({selectedKeys:mt}),on==null||on(mt,{event:"select",selected:An,node:lt,selectedNodes:Jt,nativeEvent:ct.nativeEvent})}),(0,le.Z)((0,ue.Z)(We),"onNodeCheck",function(ct,lt,mt){var Lt=We.state,ft=Lt.keyEntities,St=Lt.checkedKeys,nn=Lt.halfCheckedKeys,on=We.props,yn=on.checkStrictly,xn=on.onCheck,an=lt.key,An,Jt={event:"check",node:lt,checked:mt,nativeEvent:ct.nativeEvent};if(yn){var Ut=mt?(0,Ft.L0)(St,an):(0,Ft._5)(St,an),rn=(0,Ft._5)(nn,an);An={checked:Ut,halfChecked:rn},Jt.checkedNodes=Ut.map(function(Mn){return(0,Yt.Z)(ft,Mn)}).filter(Boolean).map(function(Mn){return Mn.node}),We.setUncontrolledState({checkedKeys:Ut})}else{var _n=(0,Ct.S)([].concat((0,pe.Z)(St),[an]),!0,ft),Bn=_n.checkedKeys,kt=_n.halfCheckedKeys;if(!mt){var ln=new Set(Bn);ln.delete(an);var Cn=(0,Ct.S)(Array.from(ln),{checked:!1,halfCheckedKeys:kt},ft);Bn=Cn.checkedKeys,kt=Cn.halfCheckedKeys}An=Bn,Jt.checkedNodes=[],Jt.checkedNodesPositions=[],Jt.halfCheckedKeys=kt,Bn.forEach(function(Mn){var Qn=(0,Yt.Z)(ft,Mn);if(Qn){var mr=Qn.node,lr=Qn.pos;Jt.checkedNodes.push(mr),Jt.checkedNodesPositions.push({node:mr,pos:lr})}}),We.setUncontrolledState({checkedKeys:Bn},!1,{halfCheckedKeys:kt})}xn==null||xn(An,Jt)}),(0,le.Z)((0,ue.Z)(We),"onNodeLoad",function(ct){var lt,mt=ct.key,Lt=We.state.keyEntities,ft=(0,Yt.Z)(Lt,mt);if(!(ft!=null&&(lt=ft.children)!==null&<!==void 0&<.length)){var St=new Promise(function(nn,on){We.setState(function(yn){var xn=yn.loadedKeys,an=xn===void 0?[]:xn,An=yn.loadingKeys,Jt=An===void 0?[]:An,Ut=We.props,rn=Ut.loadData,_n=Ut.onLoad;if(!rn||an.includes(mt)||Jt.includes(mt))return null;var Bn=rn(ct);return Bn.then(function(){var kt=We.state.loadedKeys,ln=(0,Ft.L0)(kt,mt);_n==null||_n(ln,{event:"load",node:ct}),We.setUncontrolledState({loadedKeys:ln}),We.setState(function(Cn){return{loadingKeys:(0,Ft._5)(Cn.loadingKeys,mt)}}),nn()}).catch(function(kt){if(We.setState(function(Cn){return{loadingKeys:(0,Ft._5)(Cn.loadingKeys,mt)}}),We.loadingRetryTimes[mt]=(We.loadingRetryTimes[mt]||0)+1,We.loadingRetryTimes[mt]>=zt){var ln=We.state.loadedKeys;(0,b.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),We.setUncontrolledState({loadedKeys:(0,Ft.L0)(ln,mt)}),nn()}on(kt)}),{loadingKeys:(0,Ft.L0)(Jt,mt)}})});return St.catch(function(){}),St}}),(0,le.Z)((0,ue.Z)(We),"onNodeMouseEnter",function(ct,lt){var mt=We.props.onMouseEnter;mt==null||mt({event:ct,node:lt})}),(0,le.Z)((0,ue.Z)(We),"onNodeMouseLeave",function(ct,lt){var mt=We.props.onMouseLeave;mt==null||mt({event:ct,node:lt})}),(0,le.Z)((0,ue.Z)(We),"onNodeContextMenu",function(ct,lt){var mt=We.props.onRightClick;mt&&(ct.preventDefault(),mt({event:ct,node:lt}))}),(0,le.Z)((0,ue.Z)(We),"onFocus",function(){var ct=We.props.onFocus;We.setState({focused:!0});for(var lt=arguments.length,mt=new Array(lt),Lt=0;Lt<lt;Lt++)mt[Lt]=arguments[Lt];ct==null||ct.apply(void 0,mt)}),(0,le.Z)((0,ue.Z)(We),"onBlur",function(){var ct=We.props.onBlur;We.setState({focused:!1}),We.onActiveChange(null);for(var lt=arguments.length,mt=new Array(lt),Lt=0;Lt<lt;Lt++)mt[Lt]=arguments[Lt];ct==null||ct.apply(void 0,mt)}),(0,le.Z)((0,ue.Z)(We),"getTreeNodeRequiredProps",function(){var ct=We.state,lt=ct.expandedKeys,mt=ct.selectedKeys,Lt=ct.loadedKeys,ft=ct.loadingKeys,St=ct.checkedKeys,nn=ct.halfCheckedKeys,on=ct.dragOverNodeKey,yn=ct.dropPosition,xn=ct.keyEntities;return{expandedKeys:lt||[],selectedKeys:mt||[],loadedKeys:Lt||[],loadingKeys:ft||[],checkedKeys:St||[],halfCheckedKeys:nn||[],dragOverNodeKey:on,dropPosition:yn,keyEntities:xn}}),(0,le.Z)((0,ue.Z)(We),"setExpandedKeys",function(ct){var lt=We.state,mt=lt.treeData,Lt=lt.fieldNames,ft=(0,Se.oH)(mt,ct,Lt);We.setUncontrolledState({expandedKeys:ct,flattenNodes:ft},!0)}),(0,le.Z)((0,ue.Z)(We),"onNodeExpand",function(ct,lt){var mt=We.state.expandedKeys,Lt=We.state,ft=Lt.listChanging,St=Lt.fieldNames,nn=We.props,on=nn.onExpand,yn=nn.loadData,xn=lt.expanded,an=lt[St.key];if(!ft){var An=mt.includes(an),Jt=!xn;if((0,b.ZP)(xn&&An||!xn&&!An,"Expand state not sync with index check"),mt=Jt?(0,Ft.L0)(mt,an):(0,Ft._5)(mt,an),We.setExpandedKeys(mt),on==null||on(mt,{node:lt,expanded:Jt,nativeEvent:ct.nativeEvent}),Jt&&yn){var Ut=We.onNodeLoad(lt);Ut&&Ut.then(function(){var rn=(0,Se.oH)(We.state.treeData,mt,St);We.setUncontrolledState({flattenNodes:rn})}).catch(function(){var rn=We.state.expandedKeys,_n=(0,Ft._5)(rn,an);We.setExpandedKeys(_n)})}}}),(0,le.Z)((0,ue.Z)(We),"onListChangeStart",function(){We.setUncontrolledState({listChanging:!0})}),(0,le.Z)((0,ue.Z)(We),"onListChangeEnd",function(){setTimeout(function(){We.setUncontrolledState({listChanging:!1})})}),(0,le.Z)((0,ue.Z)(We),"onActiveChange",function(ct){var lt=We.state.activeKey,mt=We.props,Lt=mt.onActiveChange,ft=mt.itemScrollOffset,St=ft===void 0?0:ft;lt!==ct&&(We.setState({activeKey:ct}),ct!==null&&We.scrollTo({key:ct,offset:St}),Lt==null||Lt(ct))}),(0,le.Z)((0,ue.Z)(We),"getActiveItem",function(){var ct=We.state,lt=ct.activeKey,mt=ct.flattenNodes;return lt===null?null:mt.find(function(Lt){var ft=Lt.key;return ft===lt})||null}),(0,le.Z)((0,ue.Z)(We),"offsetActiveKey",function(ct){var lt=We.state,mt=lt.flattenNodes,Lt=lt.activeKey,ft=mt.findIndex(function(on){var yn=on.key;return yn===Lt});ft===-1&&ct<0&&(ft=mt.length),ft=(ft+ct+mt.length)%mt.length;var St=mt[ft];if(St){var nn=St.key;We.onActiveChange(nn)}else We.onActiveChange(null)}),(0,le.Z)((0,ue.Z)(We),"onKeyDown",function(ct){var lt=We.state,mt=lt.activeKey,Lt=lt.expandedKeys,ft=lt.checkedKeys,St=lt.fieldNames,nn=We.props,on=nn.onKeyDown,yn=nn.checkable,xn=nn.selectable;switch(ct.which){case me.Z.UP:{We.offsetActiveKey(-1),ct.preventDefault();break}case me.Z.DOWN:{We.offsetActiveKey(1),ct.preventDefault();break}}var an=We.getActiveItem();if(an&&an.data){var An=We.getTreeNodeRequiredProps(),Jt=an.data.isLeaf===!1||!!(an.data[St.children]||[]).length,Ut=(0,Se.F)((0,Me.Z)((0,Me.Z)({},(0,Se.H8)(mt,An)),{},{data:an.data,active:!0}));switch(ct.which){case me.Z.LEFT:{Jt&&Lt.includes(mt)?We.onNodeExpand({},Ut):an.parent&&We.onActiveChange(an.parent.key),ct.preventDefault();break}case me.Z.RIGHT:{Jt&&!Lt.includes(mt)?We.onNodeExpand({},Ut):an.children&&an.children.length&&We.onActiveChange(an.children[0].key),ct.preventDefault();break}case me.Z.ENTER:case me.Z.SPACE:{yn&&!Ut.disabled&&Ut.checkable!==!1&&!Ut.disableCheckbox?We.onNodeCheck({},Ut,!ft.includes(mt)):!yn&&xn&&!Ut.disabled&&Ut.selectable!==!1&&We.onNodeSelect({},Ut);break}}}on==null||on(ct)}),(0,le.Z)((0,ue.Z)(We),"setUncontrolledState",function(ct){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!We.destroyed){var Lt=!1,ft=!0,St={};Object.keys(ct).forEach(function(nn){if(We.props.hasOwnProperty(nn)){ft=!1;return}Lt=!0,St[nn]=ct[nn]}),Lt&&(!lt||ft)&&We.setState((0,Me.Z)((0,Me.Z)({},St),mt))}}),(0,le.Z)((0,ue.Z)(We),"scrollTo",function(ct){We.listRef.current.scrollTo(ct)}),We}return(0,ve.Z)(He,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var tt=this.props,at=tt.activeKey,ot=tt.itemScrollOffset,ct=ot===void 0?0:ot;at!==void 0&&at!==this.state.activeKey&&(this.setState({activeKey:at}),at!==null&&this.scrollTo({key:at,offset:ct}))}},{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 tt=this.state,at=tt.focused,ot=tt.flattenNodes,ct=tt.keyEntities,lt=tt.draggingNodeKey,mt=tt.activeKey,Lt=tt.dropLevelOffset,ft=tt.dropContainerKey,St=tt.dropTargetKey,nn=tt.dropPosition,on=tt.dragOverNodeKey,yn=tt.indent,xn=this.props,an=xn.prefixCls,An=xn.className,Jt=xn.style,Ut=xn.showLine,rn=xn.focusable,_n=xn.tabIndex,Bn=_n===void 0?0:_n,kt=xn.selectable,ln=xn.showIcon,Cn=xn.icon,Mn=xn.switcherIcon,Qn=xn.draggable,mr=xn.checkable,lr=xn.checkStrictly,Cr=xn.disabled,nr=xn.motion,ur=xn.loadData,Nn=xn.filterTreeNode,In=xn.height,Wn=xn.itemHeight,Kn=xn.scrollWidth,Ln=xn.virtual,$n=xn.titleRender,ar=xn.dropIndicatorRender,dn=xn.onContextMenu,Ie=xn.onScroll,je=xn.direction,Je=xn.rootClassName,ht=xn.rootStyle,Et=(0,E.Z)(this.props,{aria:!0,data:!0}),Qt;Qn&&((0,Ye.Z)(Qn)==="object"?Qt=Qn:typeof Qn=="function"?Qt={nodeDraggable:Qn}:Qt={});var fn={prefixCls:an,selectable:kt,showIcon:ln,icon:Cn,switcherIcon:Mn,draggable:Qt,draggingNodeKey:lt,checkable:mr,checkStrictly:lr,disabled:Cr,keyEntities:ct,dropLevelOffset:Lt,dropContainerKey:ft,dropTargetKey:St,dropPosition:nn,dragOverNodeKey:on,indent:yn,direction:je,dropIndicatorRender:ar,loadData:ur,filterTreeNode:Nn,titleRender:$n,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 z.createElement(ne.k.Provider,{value:fn},z.createElement("div",{className:ie()(an,An,Je,(0,le.Z)((0,le.Z)((0,le.Z)({},"".concat(an,"-show-line"),Ut),"".concat(an,"-focused"),at),"".concat(an,"-active-focused"),mt!==null)),style:ht},z.createElement(gt,(0,te.Z)({ref:this.listRef,prefixCls:an,style:Jt,data:ot,disabled:Cr,selectable:kt,checkable:!!mr,motion:nr,dragging:lt!==null,height:In,itemHeight:Wn,virtual:Ln,focusable:rn,focused:at,tabIndex:Bn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:dn,onScroll:Ie,scrollWidth:Kn},this.getTreeNodeRequiredProps(),Et))))}}],[{key:"getDerivedStateFromProps",value:function(tt,at){var ot=at.prevProps,ct={prevProps:tt};function lt(Bn){return!ot&&tt.hasOwnProperty(Bn)||ot&&ot[Bn]!==tt[Bn]}var mt,Lt=at.fieldNames;if(lt("fieldNames")&&(Lt=(0,Se.w$)(tt.fieldNames),ct.fieldNames=Lt),lt("treeData")?mt=tt.treeData:lt("children")&&((0,b.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),mt=(0,Se.zn)(tt.children)),mt){ct.treeData=mt;var ft=(0,Se.I8)(mt,{fieldNames:Lt});ct.keyEntities=(0,Me.Z)((0,le.Z)({},Re,nt),ft.keyEntities)}var St=ct.keyEntities||at.keyEntities;if(lt("expandedKeys")||ot&<("autoExpandParent"))ct.expandedKeys=tt.autoExpandParent||!ot&&tt.defaultExpandParent?(0,Ft.r7)(tt.expandedKeys,St):tt.expandedKeys;else if(!ot&&tt.defaultExpandAll){var nn=(0,Me.Z)({},St);delete nn[Re];var on=[];Object.keys(nn).forEach(function(Bn){var kt=nn[Bn];kt.children&&kt.children.length&&on.push(kt.key)}),ct.expandedKeys=on}else!ot&&tt.defaultExpandedKeys&&(ct.expandedKeys=tt.autoExpandParent||tt.defaultExpandParent?(0,Ft.r7)(tt.defaultExpandedKeys,St):tt.defaultExpandedKeys);if(ct.expandedKeys||delete ct.expandedKeys,mt||ct.expandedKeys){var yn=(0,Se.oH)(mt||at.treeData,ct.expandedKeys||at.expandedKeys,Lt);ct.flattenNodes=yn}if(tt.selectable&&(lt("selectedKeys")?ct.selectedKeys=(0,Ft.BT)(tt.selectedKeys,tt):!ot&&tt.defaultSelectedKeys&&(ct.selectedKeys=(0,Ft.BT)(tt.defaultSelectedKeys,tt))),tt.checkable){var xn;if(lt("checkedKeys")?xn=(0,Ft.E6)(tt.checkedKeys)||{}:!ot&&tt.defaultCheckedKeys?xn=(0,Ft.E6)(tt.defaultCheckedKeys)||{}:mt&&(xn=(0,Ft.E6)(tt.checkedKeys)||{checkedKeys:at.checkedKeys,halfCheckedKeys:at.halfCheckedKeys}),xn){var an=xn,An=an.checkedKeys,Jt=An===void 0?[]:An,Ut=an.halfCheckedKeys,rn=Ut===void 0?[]:Ut;if(!tt.checkStrictly){var _n=(0,Ct.S)(Jt,!0,St);Jt=_n.checkedKeys,rn=_n.halfCheckedKeys}ct.checkedKeys=Jt,ct.halfCheckedKeys=rn}}return lt("loadedKeys")&&(ct.loadedKeys=tt.loadedKeys),ct}}]),He}(z.Component);(0,le.Z)(Xe,"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:se,allowDrop:function(){return!0},expandAction:!1}),(0,le.Z)(Xe,"TreeNode",_e.Z);var Fe=Xe,Le=Fe},82661:function(Yn,en,Ce){"use strict";Ce.d(en,{BT:function(){return z},E6:function(){return se},L0:function(){return le},OM:function(){return b},_5:function(){return he},r7:function(){return de},wA:function(){return ie},yx:function(){return ae}});var te=Ce(77654),Ye=Ce(43749),Me=Ce(48736),pe=Ce(59301),Oe=Ce(639),ve=Ce(65065),ue=Ce(34061),fe=null;function he(a,x){if(!a)return[];var re=a.slice(),ce=re.indexOf(x);return ce>=0&&re.splice(ce,1),re}function le(a,x){var re=(a||[]).slice();return re.indexOf(x)===-1&&re.push(x),re}function ae(a){return a.split("-")}function ie(a,x){var re=[],ce=(0,ve.Z)(x,a);function ge(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];_e.forEach(function(ye){var be=ye.key,Se=ye.children;re.push(be),ge(Se)})}return ge(ce.children),re}function me(a){if(a.parent){var x=ae(a.pos);return Number(x[x.length-1])===a.parent.children.length-1}return!1}function E(a){var x=ae(a.pos);return Number(x[x.length-1])===0}function b(a,x,re,ce,ge,_e,ye,be,Se,Be){var Ae,we=a.clientX,Ue=a.clientY,Pe=a.target.getBoundingClientRect(),ze=Pe.top,Ke=Pe.height,Ne=(Be==="rtl"?-1:1)*(((ge==null?void 0:ge.x)||0)-we),Re=(Ne-12)/ce,$e=Se.filter(function(Le){var Ze;return(Ze=be[Le])===null||Ze===void 0||(Ze=Ze.children)===null||Ze===void 0?void 0:Ze.length}),nt=(0,ve.Z)(be,re.eventKey);if(Ue<ze+Ke/2){var ut=ye.findIndex(function(Le){return Le.key===nt.key}),Qe=ut<=0?0:ut-1,rt=ye[Qe].key;nt=(0,ve.Z)(be,rt)}var pt=nt.key,At=nt,gt=nt.key,Ft=0,Ct=0;if(!$e.includes(pt))for(var Yt=0;Yt<Re&&me(nt);Yt+=1)nt=nt.parent,Ct+=1;var zt=x.data,Xe=nt.node,Fe=!0;return E(nt)&&nt.level===0&&Ue<ze+Ke/2&&_e({dragNode:zt,dropNode:Xe,dropPosition:-1})&&nt.key===re.eventKey?Ft=-1:(At.children||[]).length&&$e.includes(gt)?_e({dragNode:zt,dropNode:Xe,dropPosition:0})?Ft=0:Fe=!1:Ct===0?Re>-1.5?_e({dragNode:zt,dropNode:Xe,dropPosition:1})?Ft=1:Fe=!1:_e({dragNode:zt,dropNode:Xe,dropPosition:0})?Ft=0:_e({dragNode:zt,dropNode:Xe,dropPosition:1})?Ft=1:Fe=!1:_e({dragNode:zt,dropNode:Xe,dropPosition:1})?Ft=1:Fe=!1,{dropPosition:Ft,dropLevelOffset:Ct,dropTargetKey:nt.key,dropTargetPos:nt.pos,dragOverNodeKey:gt,dropContainerKey:Ft===0?null:((Ae=nt.parent)===null||Ae===void 0?void 0:Ae.key)||null,dropAllowed:Fe}}function z(a,x){if(a){var re=x.multiple;return re?a.slice():a.length?[a[0]]:a}}var ne=function(x){return x};function oe(a,x){if(!a)return[];var re=x||{},ce=re.processProps,ge=ce===void 0?ne:ce,_e=Array.isArray(a)?a:[a];return _e.map(function(ye){var be=ye.children,Se=_objectWithoutProperties(ye,fe),Be=oe(be,x);return React.createElement(TreeNode,_extends({key:Se.key},ge(Se)),Be)})}function se(a){if(!a)return null;var x;if(Array.isArray(a))x={checkedKeys:a,halfCheckedKeys:void 0};else if((0,Ye.Z)(a)==="object")x={checkedKeys:a.checked||void 0,halfCheckedKeys:a.halfChecked||void 0};else return(0,Me.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return x}function de(a,x){var re=new Set;function ce(ge){if(!re.has(ge)){var _e=(0,ve.Z)(x,ge);if(_e){re.add(ge);var ye=_e.parent,be=_e.node;be.disabled||ye&&ce(ye.key)}}}return(a||[]).forEach(function(ge){ce(ge)}),(0,te.Z)(re)}},34643:function(Yn,en,Ce){"use strict";Ce.d(en,{S:function(){return ue}});var te=Ce(48736),Ye=Ce(65065);function Me(fe,he){var le=new Set;return fe.forEach(function(ae){he.has(ae)||le.add(ae)}),le}function pe(fe){var he=fe||{},le=he.disabled,ae=he.disableCheckbox,ie=he.checkable;return!!(le||ae)||ie===!1}function Oe(fe,he,le,ae){for(var ie=new Set(fe),me=new Set,E=0;E<=le;E+=1){var b=he.get(E)||new Set;b.forEach(function(se){var de=se.key,a=se.node,x=se.children,re=x===void 0?[]:x;ie.has(de)&&!ae(a)&&re.filter(function(ce){return!ae(ce.node)}).forEach(function(ce){ie.add(ce.key)})})}for(var z=new Set,ne=le;ne>=0;ne-=1){var oe=he.get(ne)||new Set;oe.forEach(function(se){var de=se.parent,a=se.node;if(!(ae(a)||!se.parent||z.has(se.parent.key))){if(ae(se.parent.node)){z.add(de.key);return}var x=!0,re=!1;(de.children||[]).filter(function(ce){return!ae(ce.node)}).forEach(function(ce){var ge=ce.key,_e=ie.has(ge);x&&!_e&&(x=!1),!re&&(_e||me.has(ge))&&(re=!0)}),x&&ie.add(de.key),re&&me.add(de.key),z.add(de.key)}})}return{checkedKeys:Array.from(ie),halfCheckedKeys:Array.from(Me(me,ie))}}function ve(fe,he,le,ae,ie){for(var me=new Set(fe),E=new Set(he),b=0;b<=ae;b+=1){var z=le.get(b)||new Set;z.forEach(function(de){var a=de.key,x=de.node,re=de.children,ce=re===void 0?[]:re;!me.has(a)&&!E.has(a)&&!ie(x)&&ce.filter(function(ge){return!ie(ge.node)}).forEach(function(ge){me.delete(ge.key)})})}E=new Set;for(var ne=new Set,oe=ae;oe>=0;oe-=1){var se=le.get(oe)||new Set;se.forEach(function(de){var a=de.parent,x=de.node;if(!(ie(x)||!de.parent||ne.has(de.parent.key))){if(ie(de.parent.node)){ne.add(a.key);return}var re=!0,ce=!1;(a.children||[]).filter(function(ge){return!ie(ge.node)}).forEach(function(ge){var _e=ge.key,ye=me.has(_e);re&&!ye&&(re=!1),!ce&&(ye||E.has(_e))&&(ce=!0)}),re||me.delete(a.key),ce&&E.add(a.key),ne.add(a.key)}})}return{checkedKeys:Array.from(me),halfCheckedKeys:Array.from(Me(E,me))}}function ue(fe,he,le,ae){var ie=[],me;ae?me=ae:me=pe;var E=new Set(fe.filter(function(oe){var se=!!(0,Ye.Z)(le,oe);return se||ie.push(oe),se})),b=new Map,z=0;Object.keys(le).forEach(function(oe){var se=le[oe],de=se.level,a=b.get(de);a||(a=new Set,b.set(de,a)),a.add(se),z=Math.max(z,de)}),(0,te.ZP)(!ie.length,"Tree missing follow keys: ".concat(ie.slice(0,100).map(function(oe){return"'".concat(oe,"'")}).join(", ")));var ne;return he===!0?ne=Oe(E,b,z,me):ne=ve(E,he.halfCheckedKeys,b,z,me),ne}},65065:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return te}});function te(Ye,Me){return Ye[Me]}},34061:function(Yn,en,Ce){"use strict";Ce.d(en,{F:function(){return de},H8:function(){return se},I8:function(){return oe},km:function(){return ie},oH:function(){return z},w$:function(){return me},zn:function(){return b}});var te=Ce(43749),Ye=Ce(77654),Me=Ce(85899),pe=Ce(42244),Oe=Ce(11592),ve=Ce(2738),ue=Ce(48736),fe=Ce(65065),he=["children"];function le(a,x){return"".concat(a,"-").concat(x)}function ae(a){return a&&a.type&&a.type.isTreeNode}function ie(a,x){return a!=null?a:x}function me(a){var x=a||{},re=x.title,ce=x._title,ge=x.key,_e=x.children,ye=re||"title";return{title:ye,_title:ce||[ye],key:ge||"key",children:_e||"children"}}function E(a,x){var re=new Map;function ce(ge){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ge||[]).forEach(function(ye){var be=ye[x.key],Se=ye[x.children];warning(be!=null,"Tree node must have a certain key: [".concat(_e).concat(be,"]"));var Be=String(be);warning(!re.has(Be)||be===null||be===void 0,"Same 'key' exist in the Tree: ".concat(Be)),re.set(Be,!0),ce(Se,"".concat(_e).concat(Be," > "))})}ce(a)}function b(a){function x(re){var ce=(0,Oe.Z)(re);return ce.map(function(ge){if(!ae(ge))return(0,ue.ZP)(!ge,"Tree/TreeNode can only accept TreeNode as children."),null;var _e=ge.key,ye=ge.props,be=ye.children,Se=(0,pe.Z)(ye,he),Be=(0,Me.Z)({key:_e},Se),Ae=x(be);return Ae.length&&(Be.children=Ae),Be}).filter(function(ge){return ge})}return x(a)}function z(a,x,re){var ce=me(re),ge=ce._title,_e=ce.key,ye=ce.children,be=new Set(x===!0?[]:x),Se=[];function Be(Ae){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ae.map(function(Ue,Pe){for(var ze=le(we?we.pos:"0",Pe),Ke=ie(Ue[_e],ze),Ne,Re=0;Re<ge.length;Re+=1){var $e=ge[Re];if(Ue[$e]!==void 0){Ne=Ue[$e];break}}var nt=Object.assign((0,ve.Z)(Ue,[].concat((0,Ye.Z)(ge),[_e,ye])),{title:Ne,key:Ke,parent:we,pos:ze,children:null,data:Ue,isStart:[].concat((0,Ye.Z)(we?we.isStart:[]),[Pe===0]),isEnd:[].concat((0,Ye.Z)(we?we.isEnd:[]),[Pe===Ae.length-1])});return Se.push(nt),x===!0||be.has(Ke)?nt.children=Be(Ue[ye]||[],nt):nt.children=[],nt})}return Be(a),Se}function ne(a,x,re){var ce={};(0,te.Z)(re)==="object"?ce=re:ce={externalGetKey:re},ce=ce||{};var ge=ce,_e=ge.childrenPropName,ye=ge.externalGetKey,be=ge.fieldNames,Se=me(be),Be=Se.key,Ae=Se.children,we=_e||Ae,Ue;ye?typeof ye=="string"?Ue=function(Ke){return Ke[ye]}:typeof ye=="function"&&(Ue=function(Ke){return ye(Ke)}):Ue=function(Ke,Ne){return ie(Ke[Be],Ne)};function Pe(ze,Ke,Ne,Re){var $e=ze?ze[we]:a,nt=ze?le(Ne.pos,Ke):"0",ut=ze?[].concat((0,Ye.Z)(Re),[ze]):[];if(ze){var Qe=Ue(ze,nt),rt={node:ze,index:Ke,pos:nt,key:Qe,parentPos:Ne.node?Ne.pos:null,level:Ne.level+1,nodes:ut};x(rt)}$e&&$e.forEach(function(pt,At){Pe(pt,At,{node:ze,pos:nt,level:Ne?Ne.level+1:-1},ut)})}Pe(null)}function oe(a){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},re=x.initWrapper,ce=x.processEntity,ge=x.onProcessFinished,_e=x.externalGetKey,ye=x.childrenPropName,be=x.fieldNames,Se=arguments.length>2?arguments[2]:void 0,Be=_e||Se,Ae={},we={},Ue={posEntities:Ae,keyEntities:we};return re&&(Ue=re(Ue)||Ue),ne(a,function(Pe){var ze=Pe.node,Ke=Pe.index,Ne=Pe.pos,Re=Pe.key,$e=Pe.parentPos,nt=Pe.level,ut=Pe.nodes,Qe={node:ze,nodes:ut,index:Ke,key:Re,pos:Ne,level:nt},rt=ie(Re,Ne);Ae[Ne]=Qe,we[rt]=Qe,Qe.parent=Ae[$e],Qe.parent&&(Qe.parent.children=Qe.parent.children||[],Qe.parent.children.push(Qe)),ce&&ce(Qe,Ue)},{externalGetKey:Be,childrenPropName:ye,fieldNames:be}),ge&&ge(Ue),Ue}function se(a,x){var re=x.expandedKeys,ce=x.selectedKeys,ge=x.loadedKeys,_e=x.loadingKeys,ye=x.checkedKeys,be=x.halfCheckedKeys,Se=x.dragOverNodeKey,Be=x.dropPosition,Ae=x.keyEntities,we=(0,fe.Z)(Ae,a),Ue={eventKey:a,expanded:re.indexOf(a)!==-1,selected:ce.indexOf(a)!==-1,loaded:ge.indexOf(a)!==-1,loading:_e.indexOf(a)!==-1,checked:ye.indexOf(a)!==-1,halfChecked:be.indexOf(a)!==-1,pos:String(we?we.pos:""),dragOver:Se===a&&Be===0,dragOverGapTop:Se===a&&Be===-1,dragOverGapBottom:Se===a&&Be===1};return Ue}function de(a){var x=a.data,re=a.expanded,ce=a.selected,ge=a.checked,_e=a.loaded,ye=a.loading,be=a.halfChecked,Se=a.dragOver,Be=a.dragOverGapTop,Ae=a.dragOverGapBottom,we=a.pos,Ue=a.active,Pe=a.eventKey,ze=(0,Me.Z)((0,Me.Z)({},x),{},{expanded:re,selected:ce,checked:ge,loaded:_e,loading:ye,halfChecked:be,dragOver:Se,dragOverGapTop:Be,dragOverGapBottom:Ae,pos:we,active:Ue,key:Pe});return"props"in ze||Object.defineProperty(ze,"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`."),a}}),ze}},8224:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return Ye}});var te=Ce(4676);function Ye(Me,pe,Oe,ve){var ue=te.unstable_batchedUpdates?function(he){te.unstable_batchedUpdates(Oe,he)}:Oe;return Me!=null&&Me.addEventListener&&Me.addEventListener(pe,ue,ve),{remove:function(){Me!=null&&Me.removeEventListener&&Me.removeEventListener(pe,ue,ve)}}}},24514:function(Yn,en,Ce){"use strict";Ce.d(en,{G:function(){return pe}});var te=Ce(47273),Ye=function(ve){if((0,te.Z)()&&window.document.documentElement){var ue=Array.isArray(ve)?ve:[ve],fe=window.document.documentElement;return ue.some(function(he){return he in fe.style})}return!1},Me=function(ve,ue){if(!Ye(ve))return!1;var fe=document.createElement("div"),he=fe.style[ve];return fe.style[ve]=ue,fe.style[ve]!==he};function pe(Oe,ve){return!Array.isArray(Oe)&&ve!==void 0?Me(Oe,ve):Ye(Oe)}},48911:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return zt}});var te=Ce(60499),Ye=Ce(43749),Me=Ce(85899),pe=Ce(18642),Oe=Ce(72190),ve=Ce(42244),ue=Ce(92310),fe=Ce.n(ue),he=Ce(29301),le=Ce(70425),ae=Ce(34280),ie=Ce(59301),me=Ce(4676),E=ie.forwardRef(function(Xe,Fe){var Le=Xe.height,Ze=Xe.offsetY,et=Xe.offsetX,He=Xe.children,We=Xe.prefixCls,tt=Xe.onInnerResize,at=Xe.innerProps,ot=Xe.rtl,ct=Xe.extra,lt={},mt={display:"flex",flexDirection:"column"};return Ze!==void 0&&(lt={height:Le,position:"relative",overflow:"hidden"},mt=(0,Me.Z)((0,Me.Z)({},mt),{},(0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)({transform:"translateY(".concat(Ze,"px)")},ot?"marginRight":"marginLeft",-et),"position","absolute"),"left",0),"right",0),"top",0))),ie.createElement("div",{style:lt},ie.createElement(he.Z,{onResize:function(ft){var St=ft.offsetHeight;St&&tt&&tt()}},ie.createElement("div",(0,te.Z)({style:mt,className:fe()((0,pe.Z)({},"".concat(We,"-holder-inner"),We)),ref:Fe},at),He,ct)))});E.displayName="Filler";var b=E;function z(Xe){var Fe=Xe.children,Le=Xe.setRef,Ze=ie.useCallback(function(et){Le(et)},[]);return ie.cloneElement(Fe,{ref:Ze})}function ne(Xe,Fe,Le,Ze,et,He,We,tt){var at=tt.getKey;return Xe.slice(Fe,Le+1).map(function(ot,ct){var lt=Fe+ct,mt=We(ot,lt,{style:{width:Ze},offsetX:et}),Lt=at(ot);return ie.createElement(z,{key:Lt,setRef:function(St){return He(ot,St)}},mt)})}function oe(Xe,Fe,Le,Ze){var et=Le-Xe,He=Fe-Le,We=Math.min(et,He)*2;if(Ze<=We){var tt=Math.floor(Ze/2);return Ze%2?Le+tt+1:Le-tt}return et>He?Le-(Ze-He):Le+(Ze-et)}function se(Xe,Fe,Le){var Ze=Xe.length,et=Fe.length,He,We;if(Ze===0&&et===0)return null;Ze<et?(He=Xe,We=Fe):(He=Fe,We=Xe);var tt={__EMPTY_ITEM__:!0};function at(ft){return ft!==void 0?Le(ft):tt}for(var ot=null,ct=Math.abs(Ze-et)!==1,lt=0;lt<We.length;lt+=1){var mt=at(He[lt]),Lt=at(We[lt]);if(mt!==Lt){ot=lt,ct=ct||mt!==at(We[lt+1]);break}}return ot===null?null:{index:ot,multiple:ct}}function de(Xe,Fe,Le){var Ze=ie.useState(Xe),et=(0,Oe.Z)(Ze,2),He=et[0],We=et[1],tt=ie.useState(null),at=(0,Oe.Z)(tt,2),ot=at[0],ct=at[1];return ie.useEffect(function(){var lt=se(He||[],Xe||[],Fe);(lt==null?void 0:lt.index)!==void 0&&(Le==null||Le(lt.index),ct(Xe[lt.index])),We(Xe)},[Xe]),[ot]}var a=Ce(16089),x=(typeof navigator=="undefined"?"undefined":(0,Ye.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),re=x,ce=function(Xe,Fe,Le,Ze){var et=(0,ie.useRef)(!1),He=(0,ie.useRef)(null);function We(){clearTimeout(He.current),et.current=!0,He.current=setTimeout(function(){et.current=!1},50)}var tt=(0,ie.useRef)({top:Xe,bottom:Fe,left:Le,right:Ze});return tt.current.top=Xe,tt.current.bottom=Fe,tt.current.left=Le,tt.current.right=Ze,function(at,ot){var ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,lt=at?ot<0&&tt.current.left||ot>0&&tt.current.right:ot<0&&tt.current.top||ot>0&&tt.current.bottom;return ct&<?(clearTimeout(He.current),et.current=!1):(!lt||et.current)&&We(),!et.current&<}};function ge(Xe,Fe,Le,Ze,et,He,We){var tt=(0,ie.useRef)(0),at=(0,ie.useRef)(null),ot=(0,ie.useRef)(null),ct=(0,ie.useRef)(!1),lt=ce(Fe,Le,Ze,et);function mt(yn,xn){if(a.Z.cancel(at.current),!lt(!1,xn)){var an=yn;if(!an._virtualHandled)an._virtualHandled=!0;else return;tt.current+=xn,ot.current=xn,re||an.preventDefault(),at.current=(0,a.Z)(function(){var An=ct.current?10:1;We(tt.current*An,!1),tt.current=0})}}function Lt(yn,xn){We(xn,!0),re||yn.preventDefault()}var ft=(0,ie.useRef)(null),St=(0,ie.useRef)(null);function nn(yn){if(Xe){a.Z.cancel(St.current),St.current=(0,a.Z)(function(){ft.current=null},2);var xn=yn.deltaX,an=yn.deltaY,An=yn.shiftKey,Jt=xn,Ut=an;(ft.current==="sx"||!ft.current&&An&&an&&!xn)&&(Jt=an,Ut=0,ft.current="sx");var rn=Math.abs(Jt),_n=Math.abs(Ut);ft.current===null&&(ft.current=He&&rn>_n?"x":"y"),ft.current==="y"?mt(yn,Ut):Lt(yn,Jt)}}function on(yn){Xe&&(ct.current=yn.detail===ot.current)}return[nn,on]}function _e(Xe,Fe,Le,Ze){var et=ie.useMemo(function(){return[new Map,[]]},[Xe,Le.id,Ze]),He=(0,Oe.Z)(et,2),We=He[0],tt=He[1],at=function(ct){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ct,mt=We.get(ct),Lt=We.get(lt);if(mt===void 0||Lt===void 0)for(var ft=Xe.length,St=tt.length;St<ft;St+=1){var nn,on=Xe[St],yn=Fe(on);We.set(yn,St);var xn=(nn=Le.get(yn))!==null&&nn!==void 0?nn:Ze;if(tt[St]=(tt[St-1]||0)+xn,yn===ct&&(mt=St),yn===lt&&(Lt=St),mt!==void 0&&Lt!==void 0)break}return{top:tt[mt-1]||0,bottom:tt[Lt]}};return at}var ye=Ce(38705),be=Ce(17212),Se=function(){function Xe(){(0,ye.Z)(this,Xe),(0,pe.Z)(this,"maps",void 0),(0,pe.Z)(this,"id",0),(0,pe.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,be.Z)(Xe,[{key:"set",value:function(Le,Ze){this.diffRecords.set(Le,this.maps[Le]),this.maps[Le]=Ze,this.id+=1}},{key:"get",value:function(Le){return this.maps[Le]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),Xe}(),Be=Se;function Ae(Xe){var Fe=parseFloat(Xe);return isNaN(Fe)?0:Fe}function we(Xe,Fe,Le){var Ze=ie.useState(0),et=(0,Oe.Z)(Ze,2),He=et[0],We=et[1],tt=(0,ie.useRef)(new Map),at=(0,ie.useRef)(new Be),ot=(0,ie.useRef)(0);function ct(){ot.current+=1}function lt(){var Lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;ct();var ft=function(){var on=!1;tt.current.forEach(function(yn,xn){if(yn&&yn.offsetParent){var an=yn.offsetHeight,An=getComputedStyle(yn),Jt=An.marginTop,Ut=An.marginBottom,rn=Ae(Jt),_n=Ae(Ut),Bn=an+rn+_n;at.current.get(xn)!==Bn&&(at.current.set(xn,Bn),on=!0)}}),on&&We(function(yn){return yn+1})};if(Lt)ft();else{ot.current+=1;var St=ot.current;Promise.resolve().then(function(){St===ot.current&&ft()})}}function mt(Lt,ft){var St=Xe(Lt),nn=tt.current.get(St);ft?(tt.current.set(St,ft),lt()):tt.current.delete(St),!nn!=!ft&&(ft?Fe==null||Fe(Lt):Le==null||Le(Lt))}return(0,ie.useEffect)(function(){return ct},[]),[mt,lt,at.current,He]}var Ue=14/15;function Pe(Xe,Fe,Le){var Ze=(0,ie.useRef)(!1),et=(0,ie.useRef)(0),He=(0,ie.useRef)(0),We=(0,ie.useRef)(null),tt=(0,ie.useRef)(null),at,ot=function(Lt){if(Ze.current){var ft=Math.ceil(Lt.touches[0].pageX),St=Math.ceil(Lt.touches[0].pageY),nn=et.current-ft,on=He.current-St,yn=Math.abs(nn)>Math.abs(on);yn?et.current=ft:He.current=St;var xn=Le(yn,yn?nn:on,!1,Lt);xn&&Lt.preventDefault(),clearInterval(tt.current),xn&&(tt.current=setInterval(function(){yn?nn*=Ue:on*=Ue;var an=Math.floor(yn?nn:on);(!Le(yn,an,!0)||Math.abs(an)<=.1)&&clearInterval(tt.current)},16))}},ct=function(){Ze.current=!1,at()},lt=function(Lt){at(),Lt.touches.length===1&&!Ze.current&&(Ze.current=!0,et.current=Math.ceil(Lt.touches[0].pageX),He.current=Math.ceil(Lt.touches[0].pageY),We.current=Lt.target,We.current.addEventListener("touchmove",ot,{passive:!1}),We.current.addEventListener("touchend",ct,{passive:!0}))};at=function(){We.current&&(We.current.removeEventListener("touchmove",ot),We.current.removeEventListener("touchend",ct))},(0,ae.Z)(function(){return Xe&&Fe.current.addEventListener("touchstart",lt,{passive:!0}),function(){var mt;(mt=Fe.current)===null||mt===void 0||mt.removeEventListener("touchstart",lt),at(),clearInterval(tt.current)}},[Xe])}function ze(Xe){return Math.floor(Math.pow(Xe,.5))}function Ke(Xe,Fe){var Le="touches"in Xe?Xe.touches[0]:Xe;return Le[Fe?"pageX":"pageY"]-window[Fe?"scrollX":"scrollY"]}function Ne(Xe,Fe,Le){ie.useEffect(function(){var Ze=Fe.current;if(Xe&&Ze){var et=!1,He,We,tt=function(){a.Z.cancel(He)},at=function mt(){tt(),He=(0,a.Z)(function(){Le(We),mt()})},ot=function(){et=!1,tt()},ct=function(Lt){if(!(Lt.target.draggable||Lt.button!==0)){var ft=Lt;ft._virtualHandled||(ft._virtualHandled=!0,et=!0)}},lt=function(Lt){if(et){var ft=Ke(Lt,!1),St=Ze.getBoundingClientRect(),nn=St.top,on=St.bottom;if(ft<=nn){var yn=nn-ft;We=-ze(yn),at()}else if(ft>=on){var xn=ft-on;We=ze(xn),at()}else tt()}};return Ze.addEventListener("mousedown",ct),Ze.ownerDocument.addEventListener("mouseup",ot),Ze.ownerDocument.addEventListener("mousemove",lt),Ze.ownerDocument.addEventListener("dragend",ot),function(){Ze.removeEventListener("mousedown",ct),Ze.ownerDocument.removeEventListener("mouseup",ot),Ze.ownerDocument.removeEventListener("mousemove",lt),Ze.ownerDocument.removeEventListener("dragend",ot),tt()}}},[Xe])}var Re=10;function $e(Xe,Fe,Le,Ze,et,He,We,tt){var at=ie.useRef(),ot=ie.useState(null),ct=(0,Oe.Z)(ot,2),lt=ct[0],mt=ct[1];return(0,ae.Z)(function(){if(lt&<.times<Re){if(!Xe.current){mt(function(nr){return(0,Me.Z)({},nr)});return}He();var Lt=lt.targetAlign,ft=lt.originAlign,St=lt.index,nn=lt.offset,on=Xe.current.clientHeight,yn=!1,xn=Lt,an=null;if(on){for(var An=Lt||ft,Jt=0,Ut=0,rn=0,_n=Math.min(Fe.length-1,St),Bn=0;Bn<=_n;Bn+=1){var kt=et(Fe[Bn]);Ut=Jt;var ln=Le.get(kt);rn=Ut+(ln===void 0?Ze:ln),Jt=rn}for(var Cn=An==="top"?nn:on-nn,Mn=_n;Mn>=0;Mn-=1){var Qn=et(Fe[Mn]),mr=Le.get(Qn);if(mr===void 0){yn=!0;break}if(Cn-=mr,Cn<=0)break}switch(An){case"top":an=Ut-nn;break;case"bottom":an=rn-on+nn;break;default:{var lr=Xe.current.scrollTop,Cr=lr+on;Ut<lr?xn="top":rn>Cr&&(xn="bottom")}}an!==null&&We(an),an!==lt.lastTop&&(yn=!0)}yn&&mt((0,Me.Z)((0,Me.Z)({},lt),{},{times:lt.times+1,targetAlign:xn,lastTop:an}))}},[lt,Xe.current]),function(Lt){if(Lt==null){tt();return}if(a.Z.cancel(at.current),typeof Lt=="number")We(Lt);else if(Lt&&(0,Ye.Z)(Lt)==="object"){var ft,St=Lt.align;"index"in Lt?ft=Lt.index:ft=Fe.findIndex(function(yn){return et(yn)===Lt.key});var nn=Lt.offset,on=nn===void 0?0:nn;mt({times:0,index:ft,offset:on,originAlign:St})}}}var nt=ie.forwardRef(function(Xe,Fe){var Le=Xe.prefixCls,Ze=Xe.rtl,et=Xe.scrollOffset,He=Xe.scrollRange,We=Xe.onStartMove,tt=Xe.onStopMove,at=Xe.onScroll,ot=Xe.horizontal,ct=Xe.spinSize,lt=Xe.containerSize,mt=Xe.style,Lt=Xe.thumbStyle,ft=Xe.showScrollBar,St=ie.useState(!1),nn=(0,Oe.Z)(St,2),on=nn[0],yn=nn[1],xn=ie.useState(null),an=(0,Oe.Z)(xn,2),An=an[0],Jt=an[1],Ut=ie.useState(null),rn=(0,Oe.Z)(Ut,2),_n=rn[0],Bn=rn[1],kt=!Ze,ln=ie.useRef(),Cn=ie.useRef(),Mn=ie.useState(ft),Qn=(0,Oe.Z)(Mn,2),mr=Qn[0],lr=Qn[1],Cr=ie.useRef(),nr=function(){ft===!0||ft===!1||(clearTimeout(Cr.current),lr(!0),Cr.current=setTimeout(function(){lr(!1)},3e3))},ur=He-lt||0,Nn=lt-ct||0,In=ie.useMemo(function(){if(et===0||ur===0)return 0;var Je=et/ur;return Je*Nn},[et,ur,Nn]),Wn=function(ht){ht.stopPropagation(),ht.preventDefault()},Kn=ie.useRef({top:In,dragging:on,pageY:An,startTop:_n});Kn.current={top:In,dragging:on,pageY:An,startTop:_n};var Ln=function(ht){yn(!0),Jt(Ke(ht,ot)),Bn(Kn.current.top),We(),ht.stopPropagation(),ht.preventDefault()};ie.useEffect(function(){var Je=function(fn){fn.preventDefault()},ht=ln.current,Et=Cn.current;return ht.addEventListener("touchstart",Je,{passive:!1}),Et.addEventListener("touchstart",Ln,{passive:!1}),function(){ht.removeEventListener("touchstart",Je),Et.removeEventListener("touchstart",Ln)}},[]);var $n=ie.useRef();$n.current=ur;var ar=ie.useRef();ar.current=Nn,ie.useEffect(function(){if(on){var Je,ht=function(fn){var sn=Kn.current,mn=sn.dragging,Zn=sn.pageY,tr=sn.startTop;a.Z.cancel(Je);var Vt=ln.current.getBoundingClientRect(),Gt=lt/(ot?Vt.width:Vt.height);if(mn){var Rt=(Ke(fn,ot)-Zn)*Gt,jt=tr;!kt&&ot?jt-=Rt:jt+=Rt;var Mt=$n.current,Kt=ar.current,yt=Kt?jt/Kt:0,qt=Math.ceil(yt*Mt);qt=Math.max(qt,0),qt=Math.min(qt,Mt),Je=(0,a.Z)(function(){at(qt,ot)})}},Et=function(){yn(!1),tt()};return window.addEventListener("mousemove",ht,{passive:!0}),window.addEventListener("touchmove",ht,{passive:!0}),window.addEventListener("mouseup",Et,{passive:!0}),window.addEventListener("touchend",Et,{passive:!0}),function(){window.removeEventListener("mousemove",ht),window.removeEventListener("touchmove",ht),window.removeEventListener("mouseup",Et),window.removeEventListener("touchend",Et),a.Z.cancel(Je)}}},[on]),ie.useEffect(function(){return nr(),function(){clearTimeout(Cr.current)}},[et]),ie.useImperativeHandle(Fe,function(){return{delayHidden:nr}});var dn="".concat(Le,"-scrollbar"),Ie={position:"absolute",visibility:mr?null:"hidden"},je={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return ot?(Object.assign(Ie,{height:8,left:0,right:0,bottom:0}),Object.assign(je,(0,pe.Z)({height:"100%",width:ct},kt?"left":"right",In))):(Object.assign(Ie,(0,pe.Z)({width:8,top:0,bottom:0},kt?"right":"left",0)),Object.assign(je,{width:"100%",height:ct,top:In})),ie.createElement("div",{ref:ln,className:fe()(dn,(0,pe.Z)((0,pe.Z)((0,pe.Z)({},"".concat(dn,"-horizontal"),ot),"".concat(dn,"-vertical"),!ot),"".concat(dn,"-visible"),mr)),style:(0,Me.Z)((0,Me.Z)({},Ie),mt),onMouseDown:Wn,onMouseMove:nr},ie.createElement("div",{ref:Cn,className:fe()("".concat(dn,"-thumb"),(0,pe.Z)({},"".concat(dn,"-thumb-moving"),on)),style:(0,Me.Z)((0,Me.Z)({},je),Lt),onMouseDown:Ln}))}),ut=nt,Qe=20;function rt(){var Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Le=Xe/Fe*Xe;return isNaN(Le)&&(Le=0),Le=Math.max(Le,Qe),Math.floor(Le)}var pt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],At=[],gt={overflowY:"auto",overflowAnchor:"none"};function Ft(Xe,Fe){var Le=Xe.prefixCls,Ze=Le===void 0?"rc-virtual-list":Le,et=Xe.className,He=Xe.height,We=Xe.itemHeight,tt=Xe.fullHeight,at=tt===void 0?!0:tt,ot=Xe.style,ct=Xe.data,lt=Xe.children,mt=Xe.itemKey,Lt=Xe.virtual,ft=Xe.direction,St=Xe.scrollWidth,nn=Xe.component,on=nn===void 0?"div":nn,yn=Xe.onScroll,xn=Xe.onVirtualScroll,an=Xe.onVisibleChange,An=Xe.innerProps,Jt=Xe.extraRender,Ut=Xe.styles,rn=Xe.showScrollBar,_n=rn===void 0?"optional":rn,Bn=(0,ve.Z)(Xe,pt),kt=ie.useCallback(function(rr){return typeof mt=="function"?mt(rr):rr==null?void 0:rr[mt]},[mt]),ln=we(kt,null,null),Cn=(0,Oe.Z)(ln,4),Mn=Cn[0],Qn=Cn[1],mr=Cn[2],lr=Cn[3],Cr=!!(Lt!==!1&&He&&We),nr=ie.useMemo(function(){return Object.values(mr.maps).reduce(function(rr,Dr){return rr+Dr},0)},[mr.id,mr.maps]),ur=Cr&&ct&&(Math.max(We*ct.length,nr)>He||!!St),Nn=ft==="rtl",In=fe()(Ze,(0,pe.Z)({},"".concat(Ze,"-rtl"),Nn),et),Wn=ct||At,Kn=(0,ie.useRef)(),Ln=(0,ie.useRef)(),$n=(0,ie.useRef)(),ar=(0,ie.useState)(0),dn=(0,Oe.Z)(ar,2),Ie=dn[0],je=dn[1],Je=(0,ie.useState)(0),ht=(0,Oe.Z)(Je,2),Et=ht[0],Qt=ht[1],fn=(0,ie.useState)(!1),sn=(0,Oe.Z)(fn,2),mn=sn[0],Zn=sn[1],tr=function(){Zn(!0)},Vt=function(){Zn(!1)},Gt={getKey:kt};function Rt(rr){je(function(Dr){var Fr;typeof rr=="function"?Fr=rr(Dr):Fr=rr;var or=Wr(Fr);return Kn.current.scrollTop=or,or})}var jt=(0,ie.useRef)({start:0,end:Wn.length}),Mt=(0,ie.useRef)(),Kt=de(Wn,kt),yt=(0,Oe.Z)(Kt,1),qt=yt[0];Mt.current=qt;var vn=ie.useMemo(function(){if(!Cr)return{scrollHeight:void 0,start:0,end:Wn.length-1,offset:void 0};if(!ur){var rr;return{scrollHeight:((rr=Ln.current)===null||rr===void 0?void 0:rr.offsetHeight)||0,start:0,end:Wn.length-1,offset:void 0}}for(var Dr=0,Fr,or,ei,si=Wn.length,wr=0;wr<si;wr+=1){var Ir=Wn[wr],Hr=kt(Ir),ri=mr.get(Hr),un=Dr+(ri===void 0?We:ri);un>=Ie&&Fr===void 0&&(Fr=wr,or=Dr),un>Ie+He&&ei===void 0&&(ei=wr),Dr=un}return Fr===void 0&&(Fr=0,or=0,ei=Math.ceil(He/We)),ei===void 0&&(ei=Wn.length-1),ei=Math.min(ei+1,Wn.length-1),{scrollHeight:Dr,start:Fr,end:ei,offset:or}},[ur,Cr,Ie,Wn,lr,He]),Tt=vn.scrollHeight,It=vn.start,Dt=vn.end,Bt=vn.offset;jt.current.start=It,jt.current.end=Dt,ie.useLayoutEffect(function(){var rr=mr.getRecord();if(rr.size===1){var Dr=Array.from(rr.keys())[0],Fr=rr.get(Dr),or=Wn[It];if(or&&Fr===void 0){var ei=kt(or);if(ei===Dr){var si=mr.get(Dr),wr=si-We;Rt(function(Ir){return Ir+wr})}}}mr.resetRecord()},[Tt]);var Zt=ie.useState({width:0,height:He}),tn=(0,Oe.Z)(Zt,2),Tn=tn[0],Fn=tn[1],dr=function(Dr){Fn({width:Dr.offsetWidth,height:Dr.offsetHeight})},_r=(0,ie.useRef)(),Kr=(0,ie.useRef)(),Sr=ie.useMemo(function(){return rt(Tn.width,St)},[Tn.width,St]),hr=ie.useMemo(function(){return rt(Tn.height,Tt)},[Tn.height,Tt]),Mr=Tt-He,Br=(0,ie.useRef)(Mr);Br.current=Mr;function Wr(rr){var Dr=rr;return Number.isNaN(Br.current)||(Dr=Math.min(Dr,Br.current)),Dr=Math.max(Dr,0),Dr}var Jn=Ie<=0,ii=Ie>=Mr,Ur=Et<=0,Gr=Et>=St,qr=ce(Jn,ii,Ur,Gr),Li=function(){return{x:Nn?-Et:Et,y:Ie}},wi=(0,ie.useRef)(Li()),ui=(0,le.zX)(function(rr){if(xn){var Dr=(0,Me.Z)((0,Me.Z)({},Li()),rr);(wi.current.x!==Dr.x||wi.current.y!==Dr.y)&&(xn(Dr),wi.current=Dr)}});function Qr(rr,Dr){var Fr=rr;Dr?((0,me.flushSync)(function(){Qt(Fr)}),ui()):Rt(Fr)}function Di(rr){var Dr=rr.currentTarget.scrollTop;Dr!==Ie&&Rt(Dr),yn==null||yn(rr),ui()}var oi=function(Dr){var Fr=Dr,or=St?St-Tn.width:0;return Fr=Math.max(Fr,0),Fr=Math.min(Fr,or),Fr},di=(0,le.zX)(function(rr,Dr){Dr?((0,me.flushSync)(function(){Qt(function(Fr){var or=Fr+(Nn?-rr:rr);return oi(or)})}),ui()):Rt(function(Fr){var or=Fr+rr;return or})}),ci=ge(Cr,Jn,ii,Ur,Gr,!!St,di),ki=(0,Oe.Z)(ci,2),Ki=ki[0],ua=ki[1];Pe(Cr,Kn,function(rr,Dr,Fr,or){var ei=or;return qr(rr,Dr,Fr)?!1:!ei||!ei._virtualHandled?(ei&&(ei._virtualHandled=!0),Ki({preventDefault:function(){},deltaX:rr?Dr:0,deltaY:rr?0:Dr}),!0):!1}),Ne(ur,Kn,function(rr){Rt(function(Dr){return Dr+rr})}),(0,ae.Z)(function(){function rr(Fr){var or=Jn&&Fr.detail<0,ei=ii&&Fr.detail>0;Cr&&!or&&!ei&&Fr.preventDefault()}var Dr=Kn.current;return Dr.addEventListener("wheel",Ki,{passive:!1}),Dr.addEventListener("DOMMouseScroll",ua,{passive:!0}),Dr.addEventListener("MozMousePixelScroll",rr,{passive:!1}),function(){Dr.removeEventListener("wheel",Ki),Dr.removeEventListener("DOMMouseScroll",ua),Dr.removeEventListener("MozMousePixelScroll",rr)}},[Cr,Jn,ii]),(0,ae.Z)(function(){if(St){var rr=oi(Et);Qt(rr),ui({x:rr})}},[Tn.width,St]);var kn=function(){var Dr,Fr;(Dr=_r.current)===null||Dr===void 0||Dr.delayHidden(),(Fr=Kr.current)===null||Fr===void 0||Fr.delayHidden()},qi=$e(Kn,Wn,mr,We,kt,function(){return Qn(!0)},Rt,kn);ie.useImperativeHandle(Fe,function(){return{nativeElement:$n.current,getScrollInfo:Li,scrollTo:function(Dr){function Fr(or){return or&&(0,Ye.Z)(or)==="object"&&("left"in or||"top"in or)}Fr(Dr)?(Dr.left!==void 0&&Qt(oi(Dr.left)),qi(Dr.top)):qi(Dr)}}}),(0,ae.Z)(function(){if(an){var rr=Wn.slice(It,Dt+1);an(rr,Wn)}},[It,Dt,Wn]);var Qi=_e(Wn,kt,mr,We),ra=Jt==null?void 0:Jt({start:It,end:Dt,virtual:ur,offsetX:Et,offsetY:Bt,rtl:Nn,getSize:Qi}),_i=ne(Wn,It,Dt,St,Et,Mn,lt,Gt),Ti=null;He&&(Ti=(0,Me.Z)((0,pe.Z)({},at?"height":"maxHeight",He),gt),Cr&&(Ti.overflowY="hidden",St&&(Ti.overflowX="hidden"),mn&&(Ti.pointerEvents="none")));var Xr={};return Nn&&(Xr.dir="rtl"),ie.createElement("div",(0,te.Z)({ref:$n,style:(0,Me.Z)((0,Me.Z)({},ot),{},{position:"relative"}),className:In},Xr,Bn),ie.createElement(he.Z,{onResize:dr},ie.createElement(on,{className:"".concat(Ze,"-holder"),style:Ti,ref:Kn,onScroll:Di,onMouseEnter:kn},ie.createElement(b,{prefixCls:Ze,height:Tt,offsetX:Et,offsetY:Bt,scrollWidth:St,onInnerResize:Qn,ref:Ln,innerProps:An,rtl:Nn,extra:ra},_i))),ur&&Tt>He&&ie.createElement(ut,{ref:_r,prefixCls:Ze,scrollOffset:Ie,scrollRange:Tt,rtl:Nn,onScroll:Qr,onStartMove:tr,onStopMove:Vt,spinSize:hr,containerSize:Tn.height,style:Ut==null?void 0:Ut.verticalScrollBar,thumbStyle:Ut==null?void 0:Ut.verticalScrollBarThumb,showScrollBar:_n}),ur&&St>Tn.width&&ie.createElement(ut,{ref:Kr,prefixCls:Ze,scrollOffset:Et,scrollRange:St,rtl:Nn,onScroll:Qr,onStartMove:tr,onStopMove:Vt,spinSize:Sr,containerSize:Tn.width,horizontal:!0,style:Ut==null?void 0:Ut.horizontalScrollBar,thumbStyle:Ut==null?void 0:Ut.horizontalScrollBarThumb,showScrollBar:_n}))}var Ct=ie.forwardRef(Ft);Ct.displayName="List";var Yt=Ct,zt=Yt},51581:function(Yn,en,Ce){"use strict";Object.defineProperty(en,"__esModule",{value:!0});var te=function(){function ie(me,E){for(var b=0;b<E.length;b++){var z=E[b];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(me,z.key,z)}}return function(me,E,b){return E&&ie(me.prototype,E),b&&ie(me,b),me}}(),Ye=Ce(59301),Me=ve(Ye),pe=Ce(12708),Oe=ve(pe);function ve(ie){return ie&&ie.__esModule?ie:{default:ie}}function ue(ie,me){var E={};for(var b in ie)me.indexOf(b)>=0||Object.prototype.hasOwnProperty.call(ie,b)&&(E[b]=ie[b]);return E}function fe(ie,me){if(!(ie instanceof me))throw new TypeError("Cannot call a class as a function")}function he(ie,me){if(!ie)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return me&&(typeof me=="object"||typeof me=="function")?me:ie}function le(ie,me){if(typeof me!="function"&&me!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof me);ie.prototype=Object.create(me&&me.prototype,{constructor:{value:ie,enumerable:!1,writable:!0,configurable:!0}}),me&&(Object.setPrototypeOf?Object.setPrototypeOf(ie,me):ie.__proto__=me)}var ae=function(ie){le(me,ie);function me(E){fe(this,me);var b=he(this,(me.__proto__||Object.getPrototypeOf(me)).call(this,E));return b.scrollListener=b.scrollListener.bind(b),b.eventListenerOptions=b.eventListenerOptions.bind(b),b.mousewheelListener=b.mousewheelListener.bind(b),b}return te(me,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var b=this.getParentElement(this.scrollComponent);b.scrollTop=b.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var b=!1,z={get passive(){b=!0}};try{document.addEventListener("test",null,z),document.removeEventListener("test",null,z)}catch(ne){}return b}},{key:"eventListenerOptions",value:function(){var b=this.props.useCapture;return this.isPassiveSupported()&&(b={useCapture:this.props.useCapture,passive:!0}),b}},{key:"setDefaultLoader",value:function(b){this.defaultLoader=b}},{key:"detachMousewheelListener",value:function(){var b=window;this.props.useWindow===!1&&(b=this.scrollComponent.parentNode),b.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var b=window;this.props.useWindow===!1&&(b=this.getParentElement(this.scrollComponent)),b.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),b.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(b){var z=this.props.getScrollParent&&this.props.getScrollParent();return z!=null?z:b&&b.parentNode}},{key:"filterProps",value:function(b){return b}},{key:"attachScrollListener",value:function(){var b=this.getParentElement(this.scrollComponent);if(!(!this.props.hasMore||!b)){var z=window;this.props.useWindow===!1&&(z=b),z.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),z.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),z.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(b){b.deltaY===1&&!this.isPassiveSupported()&&b.preventDefault()}},{key:"scrollListener",value:function(){var b=this.scrollComponent,z=window,ne=this.getParentElement(b),oe=void 0;if(this.props.useWindow){var se=document.documentElement||document.body.parentNode||document.body,de=z.pageYOffset!==void 0?z.pageYOffset:se.scrollTop;this.props.isReverse?oe=de:oe=this.calculateOffset(b,de)}else this.props.isReverse?oe=ne.scrollTop:oe=b.scrollHeight-ne.scrollTop-ne.clientHeight;oe<Number(this.props.threshold)&&b&&b.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=ne.scrollHeight,this.beforeScrollTop=ne.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(b,z){return b?this.calculateTopPosition(b)+(b.offsetHeight-z-window.innerHeight):0}},{key:"calculateTopPosition",value:function(b){return b?b.offsetTop+this.calculateTopPosition(b.offsetParent):0}},{key:"render",value:function(){var b=this,z=this.filterProps(this.props),ne=z.children,oe=z.element,se=z.hasMore,de=z.initialLoad,a=z.isReverse,x=z.loader,re=z.loadMore,ce=z.pageStart,ge=z.ref,_e=z.threshold,ye=z.useCapture,be=z.useWindow,Se=z.getScrollParent,Be=ue(z,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);Be.ref=function(we){b.scrollComponent=we,ge&&ge(we)};var Ae=[ne];return se&&(x?a?Ae.unshift(x):Ae.push(x):this.defaultLoader&&(a?Ae.unshift(this.defaultLoader):Ae.push(this.defaultLoader))),Me.default.createElement(oe,Be,Ae)}}]),me}(Ye.Component);ae.propTypes={children:Oe.default.node.isRequired,element:Oe.default.node,hasMore:Oe.default.bool,initialLoad:Oe.default.bool,isReverse:Oe.default.bool,loader:Oe.default.node,loadMore:Oe.default.func.isRequired,pageStart:Oe.default.number,ref:Oe.default.func,getScrollParent:Oe.default.func,threshold:Oe.default.number,useCapture:Oe.default.bool,useWindow:Oe.default.bool},ae.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},en.default=ae,Yn.exports=en.default},26724:function(Yn,en,Ce){Yn.exports=Ce(51581)},62752:function(Yn,en){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),en.SizeSensorId=en.SensorTabIndex=en.SensorClassName=void 0;var Ce=en.SizeSensorId="size-sensor-id",te=en.SensorClassName="size-sensor-object",Ye=en.SensorTabIndex="-1"},25224:function(Yn,en){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),en.default=void 0;var Ce=en.default=function(Ye){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,pe=null;return function(){for(var Oe=this,ve=arguments.length,ue=new Array(ve),fe=0;fe<ve;fe++)ue[fe]=arguments[fe];clearTimeout(pe),pe=setTimeout(function(){Ye.apply(Oe,ue)},Me)}}},82196:function(Yn,en){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),en.default=void 0;var Ce=1,te=en.default=function(){return"".concat(Ce++)}},10413:function(Yn,en,Ce){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),en.ver=en.clear=en.bind=void 0;var te=Ce(2963),Ye=en.bind=function(ve,ue){var fe=(0,te.getSensor)(ve);return fe.bind(ue),function(){fe.unbind(ue)}},Me=en.clear=function(ve){var ue=(0,te.getSensor)(ve);(0,te.removeSensor)(ue)},pe=en.ver="1.0.3"},2963:function(Yn,en,Ce){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),en.removeSensor=en.getSensor=en.Sensors=void 0;var te=pe(Ce(82196)),Ye=Ce(42065),Me=Ce(62752);function pe(he){return he&&he.__esModule?he:{default:he}}var Oe=en.Sensors={};function ve(he){he&&Oe[he]&&delete Oe[he]}var ue=en.getSensor=function(le){var ae=le.getAttribute(Me.SizeSensorId);if(ae&&Oe[ae])return Oe[ae];var ie=(0,te.default)();le.setAttribute(Me.SizeSensorId,ie);var me=(0,Ye.createSensor)(le,function(){return ve(ie)});return Oe[ie]=me,me},fe=en.removeSensor=function(le){var ae=le.element.getAttribute(Me.SizeSensorId);le.destroy(),ve(ae)}},42065:function(Yn,en,Ce){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),en.createSensor=void 0;var te=Ce(38132),Ye=Ce(38950),Me=en.createSensor=typeof ResizeObserver!="undefined"?Ye.createSensor:te.createSensor},38132:function(Yn,en,Ce){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),en.createSensor=void 0;var te=Me(Ce(25224)),Ye=Ce(62752);function Me(Oe){return Oe&&Oe.__esModule?Oe:{default:Oe}}var pe=en.createSensor=function(ve,ue){var fe=void 0,he=[],le=function(){getComputedStyle(ve).position==="static"&&(ve.style.position="relative");var z=document.createElement("object");return z.onload=function(){z.contentDocument.defaultView.addEventListener("resize",ae),ae()},z.style.display="block",z.style.position="absolute",z.style.top="0",z.style.left="0",z.style.height="100%",z.style.width="100%",z.style.overflow="hidden",z.style.pointerEvents="none",z.style.zIndex="-1",z.style.opacity="0",z.setAttribute("class",Ye.SensorClassName),z.setAttribute("tabindex",Ye.SensorTabIndex),z.type="text/html",ve.appendChild(z),z.data="about:blank",z},ae=(0,te.default)(function(){he.forEach(function(b){b(ve)})}),ie=function(z){fe||(fe=le()),he.indexOf(z)===-1&&he.push(z)},me=function(){fe&&fe.parentNode&&(fe.contentDocument&&fe.contentDocument.defaultView.removeEventListener("resize",ae),fe.parentNode.removeChild(fe),ve.removeAttribute(Ye.SizeSensorId),fe=void 0,he=[],ue&&ue())},E=function(z){var ne=he.indexOf(z);ne!==-1&&he.splice(ne,1),he.length===0&&fe&&me()};return{element:ve,bind:ie,destroy:me,unbind:E}}},38950:function(Yn,en,Ce){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),en.createSensor=void 0;var te=Ce(62752),Ye=Me(Ce(25224));function Me(Oe){return Oe&&Oe.__esModule?Oe:{default:Oe}}var pe=en.createSensor=function(ve,ue){var fe=void 0,he=[],le=(0,Ye.default)(function(){he.forEach(function(b){b(ve)})}),ae=function(){var z=new ResizeObserver(le);return z.observe(ve),le(),z},ie=function(z){fe||(fe=ae()),he.indexOf(z)===-1&&he.push(z)},me=function(){fe&&fe.disconnect(),he=[],fe=void 0,ve.removeAttribute(te.SizeSensorId),ue&&ue()},E=function(z){var ne=he.indexOf(z);ne!==-1&&he.splice(ne,1),he.length===0&&fe&&me()};return{element:ve,bind:ie,destroy:me,unbind:E}}},82059:function(Yn){var en=arguments[3],Ce=arguments[4],te=arguments[5],Ye=JSON.stringify;Yn.exports=function(Me,pe){for(var Oe,ve=Object.keys(te),ue=0,fe=ve.length;ue<fe;ue++){var he=ve[ue],le=te[he].exports;if(le===Me||le&&le.default===Me){Oe=he;break}}if(!Oe){Oe=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var ae={},ue=0,fe=ve.length;ue<fe;ue++){var he=ve[ue];ae[he]=he}Ce[Oe]=["function(require,module,exports){"+Me+"(self); }",ae]}var ie=Math.floor(Math.pow(16,8)*Math.random()).toString(16),me={};me[Oe]=Oe,Ce[ie]=["function(require,module,exports){var f = require("+Ye(Oe)+");(f.default ? f.default : f)(self);}",me];var E={};b(ie);function b(a){E[a]=!0;for(var x in Ce[a][1]){var re=Ce[a][1][x];E[re]||b(re)}}var z="("+en+")({"+Object.keys(E).map(function(a){return Ye(a)+":["+Ce[a][0]+","+Ye(Ce[a][1])+"]"}).join(",")+"},{},["+Ye(ie)+"])",ne=window.URL||window.webkitURL||window.mozURL||window.msURL,oe=new Blob([z],{type:"text/javascript"});if(pe&&pe.bare)return oe;var se=ne.createObjectURL(oe),de=new Worker(se);return de.objectURL=se,de}},4977:function(Yn){"use strict";Yn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3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eCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},58143:function(Yn){"use strict";Yn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEAmxig4GACxhogpM6NY7jOKZO4nimwcFot23SNNNO02napJN0JjN9TNMm5eG3x4+YSeI3ftUGjCDGQMBgG4wxb+0u4mEeQhJI2tP539WR7i77uPfuvXfvar8zs7Mr7bnn8Z3vt9/5zlMQB5aAQQmsW7fO397eHujp6Rkfi8XGExFeDX2vABHVSSlrhBDDiKhdSnlOCBGWUu4mol1lZWWv3nfffccNZueJaMITpeBCeEICjz/++LCOjo5GIpogpWwUQjT2vU/A/wCClNJvtbBCCCml3CaEeGzChAmPLF269LLVtNx6jgFxS9IeyOehhx6q7OnpmSilnEhE2gsA4L0PhjHZillRUUHl5WUUf6+giopyKi+Pv8rKyrSX3++nnp4e7XXpUgedP3+ezp37lE6ebKPe3l4tCyFEhIj+UwjxaHNz8+ls+ebrewYkX5J3IN9169YNv3DhwsRYLIbXJAWBDoZRmbKFYkPRhw4dqgEwdCgAwOfyPiDKyefzWS454Dh58iQdPPiJBk0fKN1E9KyU8gehUKjVcuIOPciAOCRYJ5J95JFHyq9cuaJZACHEJCklIOgHQUqZ0QIAACg/FB+//niPwxD/H3793QqwJkePHqW2tjaSUsKinCOibwWDwfVulcFIPgyIESm5FGfDhg0lBw8ehOM7qbe3dxIggCXAe58VgBOcts0AgP6XfwCACho2bBgNGTLEpZoYz6arq4vee2+PBooQosvv999y//33bzaegrMxGRBn5ZuQOpR77dq1dVB4BQCsQB8Ag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7szv1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII="},14006:function(Yn){"use strict";Yn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXIAAADwCAYAAAAdK+9uAAAAAXNSR0IArs4c6QAAIABJREFUeF7svWuQXVd2Hrb3Puc++jbQ6AZAEN14A3zMEEMOZwb2SNRYHlpyZFV5XK6o5ES2ypbLZUellKryI5Wq5NfoR/Ijvy1VKkpScaJUOSPJqdgqyRM7RcUaUdIQmiFB4sEBSJAgAHLw6G40+nEf5+ydWvu59uOce7sbBLrJc2eIe/s89t5n73O+9e1vrb0OJc2n6YEd1gN3797du7a2drDf7w9WV1eXz507t77Dmtg0p+mBHdUDdEe1pmnM564H7t+/P7OyMliglM+XZbFABVkQgk6PyuLGxkb/uO6QIaVkkXKxLBhZIoQutQVd6ovW8le+8swypXT0ueu45oKbHkA90AB5czs8th5YXFzc1+/354dDvkAImydcLAjBpwnhhEMr5D/qr7LkCsi53gg7GEu2lQrykBK+LFguQZ6QclkItjQz0146ffr0Q0opKuSxXW5TUdMDj60HGiB/bF39+aro+vWl2U6nnB+NigXG+DznYoEQ0gNgtqgqQZopGEcgDj0lgXxt/TjstzttF+ptAOwG6OVvWZz3EUJwQugyY3SJlnxZZIrRd7vZ0urqzPK5cwuNbPP5ujU/k1fbAPlnclgf70V9+OHyXLtdznNeLAhRzgsBoM2mFD47Mswxuw722WM1pouiuLHWV9KKgXKF0QGwGzDHoO4dx/QpPMnoGWEDQfkS5XRZMGDzfIkQtsx5vtTINo/3Pmpq23oPNEC+9b77XJ65vLw8t7FRLjAm5jkvFwin85yIKcOMHdtGII4A3Py0AB+BvcLdsihubPT7x015GMwN8cZ6iQ/2emgixq7BHBphGLyh8YkC9KZVJvgSyDaU8mUhyFJHsKV2I9t8Lu//nXrRDZDv1JF5wu0SQtCVlRUJ2i0q5ksuFjgl81SIrtKzMddWf8vN4T4sm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bQj06fh0p0vHuh3tU4VWaP472971YoprGn4eHu4FJZnFKgBktvoY+KcIvdT2vtCRA89Sd+1hDytX66kzi/nz314TUQjpBvEwSoktoOOEtAquheBOH/7SNlwDoJ+5YNhuE1Fo/QaJJaiJG7BAHtrVmkl4wE1Bo25X6QO3HOCDN1wHVPxHP+j4MZMIBXZaLw5UflAT1rf94T37nkAp87dzSWmvhVvMDOEKKpmsTm0vRf2mgFvqTjtU7/a3j+3UU9Z/tPaxrWTK+g+8Fd3mBnVgL5mSOHhzYE8B+pjrqCQQtnkZWPdytlJbSe3UrY0cyU4fgHQTAtygOgE56pTT0V0AdHfktC/+HvsYrr0eh8+fC5zQ+FaDsK6T0o7ebe8LpMHGH629JJAGGf9ee52xjX7Po62fLEBt//a6BLTcscDPKBpvT+9Fv0/nPqSNAv4e64TCnWY6gnmnagsh4UEBPOZJxOvh2MO0H1ZAVKaVYTvYyXYmH8xODrmjYxlzVnW0XmhwWi/0PjZxqY0UDFbnTRMCPx9M5J1pevt4LIPeUEQ4ASedgqzN+O3rPVi4kB/0YRlXsFVMK0mZ0ye9fco9hurUuY6OoiFQYRKKH5DMRFQApNwbuqQqG3lKg3t17q3AvRXYnhW42zcp0qrhhoK4PaP5tvpLNAKIOnfKqQUB6tHrfLOC1/F84u35FrevV4lk5mUA5P8Pzc3nUv3QCekAAAAASUVORK5CYII="},48289:function(Yn,en,Ce){"use strict";Yn.exports=Ce.p+"static/bg.fff4723d.png"},72054:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return Ye}});var te=Ce(68688);function Ye(Me,pe){var Oe=typeof Symbol!="undefined"&&Me[Symbol.iterator]||Me["@@iterator"];if(!Oe){if(Array.isArray(Me)||(Oe=(0,te.Z)(Me))||pe&&Me&&typeof Me.length=="number"){Oe&&(Me=Oe);var ve=0,ue=function(){};return{s:ue,n:function(){return ve>=Me.length?{done:!0}:{done:!1,value:Me[ve++]}},e:function(ie){throw ie},f:ue}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var fe,he=!0,le=!1;return{s:function(){Oe=Oe.call(Me)},n:function(){var ie=Oe.next();return he=ie.done,ie},e:function(ie){le=!0,fe=ie},f:function(){try{he||Oe.return==null||Oe.return()}finally{if(le)throw fe}}}}},16722:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});const te=he=>typeof he=="object"&&he!=null&&he.nodeType===1,Ye=(he,le)=>(!le||he!=="hidden")&&he!=="visible"&&he!=="clip",Me=(he,le)=>{if(he.clientHeight<he.scrollHeight||he.clientWidth<he.scrollWidth){const ae=getComputedStyle(he,null);return Ye(ae.overflowY,le)||Ye(ae.overflowX,le)||(ie=>{const me=(E=>{if(!E.ownerDocument||!E.ownerDocument.defaultView)return null;try{return E.ownerDocument.defaultView.frameElement}catch(b){return null}})(ie);return!!me&&(me.clientHeight<ie.scrollHeight||me.clientWidth<ie.scrollWidth)})(he)}return!1},pe=(he,le,ae,ie,me,E,b,z)=>E<he&&b>le||E>he&&b<le?0:E<=he&&z<=ae||b>=le&&z>=ae?E-he-ie:b>le&&z<ae||E<he&&z>ae?b-le+me:0,Oe=he=>{const le=he.parentElement;return le==null?he.getRootNode().host||null:le},ve=(he,le)=>{var ae,ie,me,E;if(typeof document=="undefined")return[];const{scrollMode:b,block:z,inline:ne,boundary:oe,skipOverflowHiddenElements:se}=le,de=typeof oe=="function"?oe:ut=>ut!==oe;if(!te(he))throw new TypeError("Invalid target");const a=document.scrollingElement||document.documentElement,x=[];let re=he;for(;te(re)&&de(re);){if(re=Oe(re),re===a){x.push(re);break}re!=null&&re===document.body&&Me(re)&&!Me(document.documentElement)||re!=null&&Me(re,se)&&x.push(re)}const ce=(ie=(ae=window.visualViewport)==null?void 0:ae.width)!=null?ie:innerWidth,ge=(E=(me=window.visualViewport)==null?void 0:me.height)!=null?E:innerHeight,{scrollX:_e,scrollY:ye}=window,{height:be,width:Se,top:Be,right:Ae,bottom:we,left:Ue}=he.getBoundingClientRect(),{top:Pe,right:ze,bottom:Ke,left:Ne}=(ut=>{const Qe=window.getComputedStyle(ut);return{top:parseFloat(Qe.scrollMarginTop)||0,right:parseFloat(Qe.scrollMarginRight)||0,bottom:parseFloat(Qe.scrollMarginBottom)||0,left:parseFloat(Qe.scrollMarginLeft)||0}})(he);let Re=z==="start"||z==="nearest"?Be-Pe:z==="end"?we+Ke:Be+be/2-Pe+Ke,$e=ne==="center"?Ue+Se/2-Ne+ze:ne==="end"?Ae+ze:Ue-Ne;const nt=[];for(let ut=0;ut<x.length;ut++){const Qe=x[ut],{height:rt,width:pt,top:At,right:gt,bottom:Ft,left:Ct}=Qe.getBoundingClientRect();if(b==="if-needed"&&Be>=0&&Ue>=0&&we<=ge&&Ae<=ce&&(Qe===a&&!Me(Qe)||Be>=At&&we<=Ft&&Ue>=Ct&&Ae<=gt))return nt;const Yt=getComputedStyle(Qe),zt=parseInt(Yt.borderLeftWidth,10),Xe=parseInt(Yt.borderTopWidth,10),Fe=parseInt(Yt.borderRightWidth,10),Le=parseInt(Yt.borderBottomWidth,10);let Ze=0,et=0;const He="offsetWidth"in Qe?Qe.offsetWidth-Qe.clientWidth-zt-Fe:0,We="offsetHeight"in Qe?Qe.offsetHeight-Qe.clientHeight-Xe-Le:0,tt="offsetWidth"in Qe?Qe.offsetWidth===0?0:pt/Qe.offsetWidth:0,at="offsetHeight"in Qe?Qe.offsetHeight===0?0:rt/Qe.offsetHeight:0;if(a===Qe)Ze=z==="start"?Re:z==="end"?Re-ge:z==="nearest"?pe(ye,ye+ge,ge,Xe,Le,ye+Re,ye+Re+be,be):Re-ge/2,et=ne==="start"?$e:ne==="center"?$e-ce/2:ne==="end"?$e-ce:pe(_e,_e+ce,ce,zt,Fe,_e+$e,_e+$e+Se,Se),Ze=Math.max(0,Ze+ye),et=Math.max(0,et+_e);else{Ze=z==="start"?Re-At-Xe:z==="end"?Re-Ft+Le+We:z==="nearest"?pe(At,Ft,rt,Xe,Le+We,Re,Re+be,be):Re-(At+rt/2)+We/2,et=ne==="start"?$e-Ct-zt:ne==="center"?$e-(Ct+pt/2)+He/2:ne==="end"?$e-gt+Fe+He:pe(Ct,gt,pt,zt,Fe+He,$e,$e+Se,Se);const{scrollLeft:ot,scrollTop:ct}=Qe;Ze=at===0?0:Math.max(0,Math.min(ct+Ze/at,Qe.scrollHeight-rt/at+We)),et=tt===0?0:Math.max(0,Math.min(ot+et/tt,Qe.scrollWidth-pt/tt+He)),Re+=ct-Ze,$e+=ot-et}nt.push({el:Qe,top:Ze,left:et})}return nt},ue=he=>he===!1?{block:"end",inline:"nearest"}:(le=>le===Object(le)&&Object.keys(le).length!==0)(he)?he:{block:"start",inline:"nearest"};function fe(he,le){if(!he.isConnected||!(me=>{let E=me;for(;E&&E.parentNode;){if(E.parentNode===document)return!0;E=E.parentNode instanceof ShadowRoot?E.parentNode.host:E.parentNode}return!1})(he))return;const ae=(me=>{const E=window.getComputedStyle(me);return{top:parseFloat(E.scrollMarginTop)||0,right:parseFloat(E.scrollMarginRight)||0,bottom:parseFloat(E.scrollMarginBottom)||0,left:parseFloat(E.scrollMarginLeft)||0}})(he);if((me=>typeof me=="object"&&typeof me.behavior=="function")(le))return le.behavior(ve(he,le));const ie=typeof le=="boolean"||le==null?void 0:le.behavior;for(const{el:me,top:E,left:b}of ve(he,ue(le))){const z=E-ae.top+ae.bottom,ne=b-ae.left+ae.right;me.scroll({top:z,left:ne,behavior:ie})}}}}]);
|